rename CFG_ macros to CONFIG_SYS
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Thu, 16 Oct 2008 13:01:15 +0000 (15:01 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:03 +0000 (21:54 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2039 files changed:
Makefile
README
README.nios_CONFIG_SYS_NIOS_CPU [new file with mode: 0644]
api/api_storage.c
board/AtmarkTechno/suzaku/flash.c
board/BuS/EB+MCF-EV123/EB+MCF-EV123.c
board/BuS/EB+MCF-EV123/VCxK.c
board/BuS/EB+MCF-EV123/cfm_flash.c
board/BuS/EB+MCF-EV123/cfm_flash.h
board/BuS/EB+MCF-EV123/flash.c
board/BuS/EB+MCF-EV123/mii.c
board/LEOX/elpt860/elpt860.c
board/LEOX/elpt860/flash.c
board/MAI/AmigaOneG3SE/cmd_boota.c
board/MAI/AmigaOneG3SE/flash.c
board/MAI/AmigaOneG3SE/flash_new.c
board/MAI/AmigaOneG3SE/i8259.h
board/MAI/AmigaOneG3SE/interrupts.c
board/MAI/AmigaOneG3SE/ps2kbd.c
board/MAI/AmigaOneG3SE/serial.c
board/MAI/AmigaOneG3SE/usb_uhci.c
board/Marvell/common/flash.c
board/Marvell/common/i2c.c
board/Marvell/common/intel_flash.c
board/Marvell/common/intel_flash.h
board/Marvell/common/misc.S
board/Marvell/common/ns16550.c
board/Marvell/common/ns16550.h
board/Marvell/common/serial.c
board/Marvell/db64360/db64360.c
board/Marvell/db64360/mpsc.c
board/Marvell/db64360/pci.c
board/Marvell/db64360/sdram_init.c
board/Marvell/db64460/db64460.c
board/Marvell/db64460/mpsc.c
board/Marvell/db64460/pci.c
board/Marvell/db64460/sdram_init.c
board/MigoR/migo_r.c
board/RPXClassic/RPXClassic.c
board/RPXClassic/eccx.c
board/RPXClassic/flash.c
board/RPXlite/RPXlite.c
board/RPXlite/flash.c
board/RPXlite_dw/RPXlite_dw.c
board/RPXlite_dw/flash.c
board/RRvision/RRvision.c
board/RRvision/flash.c
board/a3000/a3000.c
board/a3000/flash.c
board/actux1/actux1.c
board/actux1/actux1_hw.h
board/actux2/actux2.c
board/actux2/actux2_hw.h
board/actux3/actux3.c
board/actux3/actux3_hw.h
board/actux4/actux4.c
board/actux4/actux4_hw.h
board/adder/adder.c
board/ads5121/ads5121.c
board/ads5121/ads5121_diu.c
board/ads5121/pci.c
board/alaska/alaska.c
board/alaska/flash.c
board/altera/common/AMDLV065D.c
board/altera/common/epled.c
board/altera/common/flash.c
board/altera/dk1c20/dk1c20.c
board/altera/dk1c20/flash.c
board/altera/dk1s10/flash.c
board/altera/dk1s10/vectors.S
board/amcc/acadia/acadia.c
board/amcc/acadia/cmd_acadia.c
board/amcc/acadia/memory.c
board/amcc/bamboo/bamboo.c
board/amcc/bamboo/config.mk
board/amcc/bamboo/flash.c
board/amcc/bamboo/init.S
board/amcc/bubinga/flash.c
board/amcc/canyonlands/bootstrap.c
board/amcc/canyonlands/canyonlands.c
board/amcc/canyonlands/config.mk
board/amcc/canyonlands/init.S
board/amcc/common/flash.c
board/amcc/ebony/config.mk
board/amcc/ebony/ebony.c
board/amcc/ebony/flash.c
board/amcc/ebony/init.S
board/amcc/katmai/config.mk
board/amcc/katmai/init.S
board/amcc/katmai/katmai.c
board/amcc/kilauea/cmd_pll.c
board/amcc/kilauea/kilauea.c
board/amcc/luan/config.mk
board/amcc/luan/flash.c
board/amcc/luan/init.S
board/amcc/luan/luan.c
board/amcc/makalu/cmd_pll.c
board/amcc/makalu/makalu.c
board/amcc/ocotea/config.mk
board/amcc/ocotea/flash.c
board/amcc/ocotea/init.S
board/amcc/ocotea/ocotea.c
board/amcc/ocotea/ocotea.h
board/amcc/redwood/config.mk
board/amcc/redwood/init.S
board/amcc/sequoia/cmd_sequoia.c
board/amcc/sequoia/config.mk
board/amcc/sequoia/init.S
board/amcc/sequoia/sdram.c
board/amcc/sequoia/sequoia.c
board/amcc/sequoia/u-boot.lds
board/amcc/taihu/flash.c
board/amcc/taihu/taihu.c
board/amcc/taihu/update.c
board/amcc/taishan/config.mk
board/amcc/taishan/init.S
board/amcc/taishan/lcd.c
board/amcc/taishan/taishan.c
board/amcc/taishan/update.c
board/amcc/walnut/flash.c
board/amcc/yosemite/config.mk
board/amcc/yosemite/init.S
board/amcc/yosemite/yosemite.c
board/amcc/yucca/config.mk
board/amcc/yucca/flash.c
board/amcc/yucca/init.S
board/amcc/yucca/yucca.c
board/amirix/ap1000/flash.c
board/amirix/ap1000/pci.c
board/amirix/ap1000/serial.c
board/ap325rxa/ap325rxa.c
board/apollon/apollon.c
board/apollon/lowlevel_init.S
board/apollon/mem.c
board/apollon/mem.h
board/armadillo/flash.c
board/atc/atc.c
board/atc/config.mk
board/atc/flash.c
board/atc/ti113x.c
board/atmel/at91cap9adk/at91cap9adk.c
board/atmel/at91cap9adk/nand.c
board/atmel/at91cap9adk/partition.c
board/atmel/at91rm9200dk/flash.c
board/atmel/at91rm9200dk/partition.c
board/atmel/at91sam9260ek/at91sam9260ek.c
board/atmel/at91sam9260ek/nand.c
board/atmel/at91sam9260ek/partition.c
board/atmel/at91sam9261ek/at91sam9261ek.c
board/atmel/at91sam9261ek/nand.c
board/atmel/at91sam9261ek/partition.c
board/atmel/at91sam9263ek/at91sam9263ek.c
board/atmel/at91sam9263ek/nand.c
board/atmel/at91sam9263ek/partition.c
board/atmel/at91sam9rlek/at91sam9rlek.c
board/atmel/at91sam9rlek/nand.c
board/atmel/at91sam9rlek/partition.c
board/atmel/atstk1000/flash.c
board/atum8548/atum8548.c
board/atum8548/law.c
board/atum8548/tlb.c
board/barco/barco.c
board/barco/barco_svc.h
board/barco/early_init.S
board/barco/flash.c
board/bc3450/bc3450.c
board/bc3450/cmd_bc3450.c
board/bf533-ezkit/bf533-ezkit.c
board/bf533-ezkit/flash-defines.h
board/bf533-ezkit/flash.c
board/bf533-ezkit/psd4256.h
board/bf533-ezkit/u-boot.lds.S
board/bf533-stamp/bf533-stamp.c
board/bf533-stamp/u-boot.lds.S
board/bf537-stamp/bf537-stamp.c
board/bf537-stamp/nand.c
board/bf537-stamp/post-memory.c
board/bf537-stamp/spi_flash.c
board/bf537-stamp/u-boot.lds.S
board/bf561-ezkit/bf561-ezkit.c
board/bf561-ezkit/u-boot.lds.S
board/bmw/README
board/bmw/early_init.S
board/bmw/flash.c
board/bmw/ns16550.c
board/bmw/ns16550.h
board/bmw/serial.c
board/c2mon/c2mon.c
board/c2mon/flash.c
board/c2mon/pcmcia.c
board/canmb/canmb.c
board/cerf250/flash.c
board/cerf250/lowlevel_init.S
board/cm4008/flash.c
board/cm41xx/flash.c
board/cm5200/cm5200.c
board/cm5200/cmd_cm5200.c
board/cmc_pu2/flash.c
board/cmi/cmi.c
board/cmi/flash.c
board/cobra5272/cobra5272.c
board/cobra5272/flash.c
board/cobra5272/mii.c
board/cogent/README
board/cogent/flash.c
board/cogent/lcd.c
board/cogent/mb.h
board/cpc45/cpc45.c
board/cpc45/flash.c
board/cpc45/pd67290.c
board/cpu86/config.mk
board/cpu86/cpu86.c
board/cpu86/cpu86.h
board/cpu86/flash.c
board/cpu87/config.mk
board/cpu87/cpu87.c
board/cpu87/cpu87.h
board/cpu87/flash.c
board/cradle/flash.c
board/cradle/lowlevel_init.S
board/cray/L1/L1.c
board/cray/L1/flash.c
board/csb226/flash.c
board/csb226/lowlevel_init.S
board/csb272/csb272.c
board/csb272/init.S
board/csb472/init.S
board/cu824/cu824.c
board/cu824/flash.c
board/dave/B2/flash.c
board/dave/PPChameleonEVB/PPChameleonEVB.c
board/dave/PPChameleonEVB/flash.c
board/dave/PPChameleonEVB/nand.c
board/dave/PPChameleonEVB/u-boot.lds
board/dave/common/flash.c
board/dave/common/fpga.c
board/dave/common/pci.c
board/davinci/common/misc.c
board/davinci/common/psc.c
board/davinci/dvevm/dvevm.c
board/davinci/schmoogie/schmoogie.c
board/davinci/sffsdr/sffsdr.c
board/davinci/sonata/sonata.c
board/dbau1x00/dbau1x00.c
board/dbau1x00/flash.c
board/dbau1x00/lowlevel_init.S
board/delta/delta.c
board/delta/lowlevel_init.S
board/delta/nand.c
board/dnp1110/flash.c
board/eXalion/eXalion.c
board/earthlcd/favr-32-ezkit/flash.c
board/eltec/bab7xx/asm_init.S
board/eltec/bab7xx/bab7xx.c
board/eltec/bab7xx/flash.c
board/eltec/bab7xx/l2cache.c
board/eltec/bab7xx/misc.c
board/eltec/bab7xx/pci.c
board/eltec/bab7xx/srom.h
board/eltec/elppc/asm_init.S
board/eltec/elppc/elppc.c
board/eltec/elppc/flash.c
board/eltec/elppc/misc.c
board/eltec/elppc/pci.c
board/eltec/elppc/srom.h
board/eltec/mhpc/flash.c
board/eltec/mhpc/mhpc.c
board/emk/common/flash.c
board/emk/common/vpd.c
board/emk/top5200/top5200.c
board/emk/top860/top860.c
board/ep7312/flash.c
board/ep8248/ep8248.c
board/ep8260/config.mk
board/ep8260/ep8260.c
board/ep8260/flash.c
board/ep8260/mii_phy.c
board/ep82xxm/ep82xxm.c
board/ep88x/ep88x.c
board/eric/eric.c
board/eric/flash.c
board/eric/init.S
board/esd/adciop/flash.c
board/esd/apc405/apc405.c
board/esd/ar405/flash.c
board/esd/ash405/ash405.c
board/esd/ash405/flash.c
board/esd/canbt/flash.c
board/esd/cms700/cms700.c
board/esd/cms700/flash.c
board/esd/common/auto_update.c
board/esd/common/esd405ep_nand.c
board/esd/common/flash.c
board/esd/common/fpga.c
board/esd/common/lcd.c
board/esd/common/pci.c
board/esd/common/xilinx_jtag/ports.h
board/esd/cpci2dp/cpci2dp.c
board/esd/cpci2dp/flash.c
board/esd/cpci405/cpci405.c
board/esd/cpci405/flash.c
board/esd/cpci5200/cpci5200.c
board/esd/cpci5200/strataflash.c
board/esd/cpci750/cpci750.c
board/esd/cpci750/i2c.c
board/esd/cpci750/ide.c
board/esd/cpci750/local.h
board/esd/cpci750/misc.S
board/esd/cpci750/mpsc.c
board/esd/cpci750/pci.c
board/esd/cpci750/sdram_init.c
board/esd/cpciiser4/flash.c
board/esd/dasa_sim/cmd_dasa_sim.c
board/esd/dasa_sim/flash.c
board/esd/dp405/flash.c
board/esd/du405/flash.c
board/esd/du440/config.mk
board/esd/du440/du440.c
board/esd/du440/du440.h
board/esd/du440/init.S
board/esd/du440/u-boot.lds
board/esd/hh405/flash.c
board/esd/hh405/hh405.c
board/esd/hub405/flash.c
board/esd/hub405/hub405.c
board/esd/mecp5200/mecp5200.c
board/esd/ocrtc/flash.c
board/esd/pci405/flash.c
board/esd/pci405/pci405.c
board/esd/pf5200/flash.c
board/esd/pf5200/pf5200.c
board/esd/plu405/flash.c
board/esd/plu405/plu405.c
board/esd/pmc405/pmc405.c
board/esd/pmc440/cmd_pmc440.c
board/esd/pmc440/config.mk
board/esd/pmc440/init.S
board/esd/pmc440/pmc440.c
board/esd/pmc440/pmc440.h
board/esd/pmc440/sdram.c
board/esd/pmc440/u-boot.lds
board/esd/tasreg/flash.c
board/esd/tasreg/tasreg.c
board/esd/voh405/flash.c
board/esd/voh405/voh405.c
board/esd/vom405/flash.c
board/esd/wuh405/flash.c
board/esd/wuh405/wuh405.c
board/esteem192e/esteem192e.c
board/esteem192e/flash.c
board/etin/debris/debris.c
board/etin/debris/flash.c
board/etin/debris/phantom.c
board/etin/kvme080/kvme080.c
board/etx094/etx094.c
board/etx094/flash.c
board/evb4510/flash.c
board/evb64260/evb64260.c
board/evb64260/flash.c
board/evb64260/intel_flash.c
board/evb64260/intel_flash.h
board/evb64260/local.h
board/evb64260/misc.S
board/evb64260/mpsc.c
board/evb64260/pci.c
board/evb64260/sdram_init.c
board/evb64260/serial.c
board/exbitgen/flash.c
board/exbitgen/init.S
board/fads/fads.c
board/fads/fads.h
board/fads/flash.c
board/flagadm/flagadm.c
board/flagadm/flash.c
board/freescale/common/cadmus.c
board/freescale/common/fsl_diu_fb.c
board/freescale/common/pixis.c
board/freescale/common/sys_eeprom.c
board/freescale/m52277evb/m52277evb.c
board/freescale/m5235evb/m5235evb.c
board/freescale/m5235evb/mii.c
board/freescale/m5249evb/m5249evb.c
board/freescale/m5253demo/flash.c
board/freescale/m5253demo/m5253demo.c
board/freescale/m5253evbe/m5253evbe.c
board/freescale/m5271evb/m5271evb.c
board/freescale/m5271evb/mii.c
board/freescale/m5272c3/flash.c
board/freescale/m5272c3/m5272c3.c
board/freescale/m5272c3/mii.c
board/freescale/m5275evb/m5275evb.c
board/freescale/m5275evb/mii.c
board/freescale/m5282evb/m5282evb.c
board/freescale/m5282evb/mii.c
board/freescale/m5329evb/m5329evb.c
board/freescale/m5329evb/mii.c
board/freescale/m5329evb/nand.c
board/freescale/m5373evb/m5373evb.c
board/freescale/m5373evb/mii.c
board/freescale/m5373evb/nand.c
board/freescale/m54451evb/m54451evb.c
board/freescale/m54451evb/mii.c
board/freescale/m54455evb/m54455evb.c
board/freescale/m54455evb/mii.c
board/freescale/m547xevb/m547xevb.c
board/freescale/m547xevb/mii.c
board/freescale/m548xevb/m548xevb.c
board/freescale/m548xevb/mii.c
board/freescale/mpc7448hpc2/asm_init.S
board/freescale/mpc7448hpc2/mpc7448hpc2.c
board/freescale/mpc7448hpc2/tsi108_init.c
board/freescale/mpc8260ads/flash.c
board/freescale/mpc8260ads/mpc8260ads.c
board/freescale/mpc8266ads/flash.c
board/freescale/mpc8266ads/mpc8266ads.c
board/freescale/mpc8313erdb/mpc8313erdb.c
board/freescale/mpc8313erdb/sdram.c
board/freescale/mpc8315erdb/mpc8315erdb.c
board/freescale/mpc8315erdb/sdram.c
board/freescale/mpc8323erdb/mpc8323erdb.c
board/freescale/mpc832xemds/mpc832xemds.c
board/freescale/mpc832xemds/pci.c
board/freescale/mpc8349emds/mpc8349emds.c
board/freescale/mpc8349emds/pci.c
board/freescale/mpc8349itx/mpc8349itx.c
board/freescale/mpc8349itx/pci.c
board/freescale/mpc8360emds/mpc8360emds.c
board/freescale/mpc8360emds/pci.c
board/freescale/mpc8360erdk/mpc8360erdk.c
board/freescale/mpc8360erdk/nand.c
board/freescale/mpc837xemds/mpc837xemds.c
board/freescale/mpc837xemds/pci.c
board/freescale/mpc837xerdb/mpc837xerdb.c
board/freescale/mpc837xerdb/pci.c
board/freescale/mpc8536ds/law.c
board/freescale/mpc8536ds/mpc8536ds.c
board/freescale/mpc8536ds/tlb.c
board/freescale/mpc8540ads/law.c
board/freescale/mpc8540ads/mpc8540ads.c
board/freescale/mpc8540ads/tlb.c
board/freescale/mpc8541cds/law.c
board/freescale/mpc8541cds/mpc8541cds.c
board/freescale/mpc8541cds/tlb.c
board/freescale/mpc8544ds/law.c
board/freescale/mpc8544ds/mpc8544ds.c
board/freescale/mpc8544ds/tlb.c
board/freescale/mpc8548cds/law.c
board/freescale/mpc8548cds/mpc8548cds.c
board/freescale/mpc8548cds/tlb.c
board/freescale/mpc8555cds/law.c
board/freescale/mpc8555cds/mpc8555cds.c
board/freescale/mpc8555cds/tlb.c
board/freescale/mpc8560ads/law.c
board/freescale/mpc8560ads/mpc8560ads.c
board/freescale/mpc8560ads/tlb.c
board/freescale/mpc8568mds/bcsr.c
board/freescale/mpc8568mds/law.c
board/freescale/mpc8568mds/mpc8568mds.c
board/freescale/mpc8568mds/tlb.c
board/freescale/mpc8572ds/law.c
board/freescale/mpc8572ds/mpc8572ds.c
board/freescale/mpc8572ds/tlb.c
board/freescale/mpc8610hpcd/law.c
board/freescale/mpc8610hpcd/mpc8610hpcd.c
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c
board/freescale/mpc8641hpcn/law.c
board/freescale/mpc8641hpcn/mpc8641hpcn.c
board/funkwerk/vovpn-gw/flash.c
board/funkwerk/vovpn-gw/vovpn-gw.c
board/g2000/g2000.c
board/g2000/strataflash.c
board/gaisler/gr_cpci_ax2000/u-boot.lds
board/gaisler/gr_ep2s60/u-boot.lds
board/gaisler/gr_xc3s_1500/u-boot.lds
board/gaisler/grsim/u-boot.lds
board/gaisler/grsim_leon2/u-boot.lds
board/gcplus/flash.c
board/gen860t/beeper.c
board/gen860t/flash.c
board/gen860t/fpga.c
board/gen860t/gen860t.c
board/genietv/flash.c
board/genietv/genietv.c
board/gth/ee_access.c
board/gth/ee_dev.h
board/gth/flash.c
board/gth/gth.c
board/gth/pcmcia.c
board/gth2/flash.c
board/gth2/gth2.c
board/gth2/lowlevel_init.S
board/gw8260/flash.c
board/gw8260/gw8260.c
board/hermes/flash.c
board/hermes/hermes.c
board/hidden_dragon/early_init.S
board/hidden_dragon/flash.c
board/hidden_dragon/hidden_dragon.c
board/hmi1001/hmi1001.c
board/hymod/bsp.c
board/hymod/eeprom.c
board/hymod/env.c
board/hymod/flash.c
board/hymod/hymod.c
board/hymod/input.c
board/icecube/flash.c
board/icecube/icecube.c
board/icu862/flash.c
board/icu862/icu862.c
board/icu862/pcmcia.c
board/idmr/flash.c
board/idmr/idmr.c
board/idmr/mii.c
board/ids8247/config.mk
board/ids8247/flash.c
board/ids8247/ids8247.c
board/impa7/flash.c
board/incaip/flash.c
board/incaip/incaip.c
board/inka4x0/inka4x0.c
board/innokom/flash.c
board/innokom/lowlevel_init.S
board/integratorap/flash.c
board/integratorap/integratorap.c
board/integratorcp/flash.c
board/integratorcp/integratorcp.c
board/ip860/flash.c
board/ip860/ip860.c
board/iphase4539/flash.c
board/iphase4539/iphase4539.c
board/ispan/ispan.c
board/ivm/flash.c
board/ivm/ivm.c
board/ixdp425/flash.c
board/ixdp425/ixdp425.c
board/jse/flash.c
board/jse/jse.c
board/jse/sdram.c
board/jupiter/jupiter.c
board/keymile/common/common.c
board/keymile/mgcoge/mgcoge.c
board/keymile/mgsuvd/mgsuvd.c
board/korat/config.mk
board/korat/init.S
board/korat/korat.c
board/korat/u-boot.lds
board/kup/common/flash.c
board/kup/common/kup.c
board/kup/common/load_sernum_ethaddr.c
board/kup/common/pcmcia.c
board/kup/kup4k/kup4k.c
board/kup/kup4x/kup4x.c
board/lantec/flash.c
board/lantec/lantec.c
board/lart/flash.c
board/linkstation/avr.c
board/linkstation/hwctl.c
board/linkstation/ide.c
board/linkstation/linkstation.c
board/logodl/flash.c
board/logodl/logodl.c
board/logodl/lowlevel_init.S
board/lpc2292sodimm/flash.c
board/lpd7a40x/flash.c
board/lubbock/flash.c
board/lubbock/lowlevel_init.S
board/lwmon/flash.c
board/lwmon/lwmon.c
board/lwmon/pcmcia.c
board/lwmon5/config.mk
board/lwmon5/init.S
board/lwmon5/kbd.c
board/lwmon5/lwmon5.c
board/lwmon5/sdram.c
board/lwmon5/u-boot.lds
board/m501sk/eeprom.c
board/matrix_vision/mvbc_p/mvbc_p.c
board/matrix_vision/mvblm7/fpga.c
board/matrix_vision/mvblm7/mvblm7.c
board/matrix_vision/mvblm7/pci.c
board/mbx8xx/csr.h
board/mbx8xx/flash.c
board/mbx8xx/mbx8xx.c
board/mbx8xx/pcmcia.c
board/mbx8xx/vpd.c
board/mcc200/auto_update.c
board/mcc200/mcc200.c
board/ml2/flash.c
board/ml2/serial.c
board/modnet50/flash.c
board/motionpro/motionpro.c
board/mousse/flash.c
board/mousse/mousse.c
board/mousse/mousse.h
board/mp2usb/flash.c
board/mpc8540eval/flash.c
board/mpc8540eval/law.c
board/mpc8540eval/mpc8540eval.c
board/mpc8540eval/tlb.c
board/mpl/common/common_util.c
board/mpl/common/flash.c
board/mpl/common/isa.c
board/mpl/common/kbd.c
board/mpl/common/usb_uhci.c
board/mpl/mip405/mip405.c
board/mpl/pati/cmd_pati.c
board/mpl/pati/pati.c
board/mpl/pip405/pip405.c
board/mpl/pip405/pip405.h
board/mpl/vcma9/flash.c
board/mpr2/mpr2.c
board/ms7720se/ms7720se.c
board/ms7722se/ms7722se.c
board/ms7750se/ms7750se.c
board/muas3001/muas3001.c
board/mucmc52/mucmc52.c
board/munices/munices.c
board/musenki/flash.c
board/musenki/musenki.c
board/mvblue/flash.c
board/mvblue/mvblue.c
board/mx1ads/syncflash.c
board/mx1fs2/flash.c
board/mx1fs2/lowlevel_init.S
board/nc650/flash.c
board/nc650/nc650.c
board/netphone/flash.c
board/netphone/netphone.c
board/netphone/phone_console.c
board/netstal/hcu4/hcu4.c
board/netstal/hcu5/README.txt
board/netstal/hcu5/hcu5.c
board/netstal/hcu5/init.S
board/netstal/hcu5/sdram.c
board/netstal/hcu5/u-boot.lds
board/netstal/mcu25/mcu25.c
board/netstar/flash.c
board/netta/codec.c
board/netta/dsp.c
board/netta/flash.c
board/netta/netta.c
board/netta/pcmcia.c
board/netta2/flash.c
board/netta2/netta2.c
board/netvia/flash.c
board/netvia/netvia.c
board/ns9750dev/flash.c
board/nx823/flash.c
board/nx823/nx823.c
board/o2dnt/flash.c
board/o2dnt/o2dnt.c
board/omap1610inn/flash.c
board/omap2420h4/mem.c
board/omap2420h4/omap2420h4.c
board/omap730p2/flash.c
board/oxc/flash.c
board/oxc/oxc.c
board/pb1x00/flash.c
board/pb1x00/pb1x00.c
board/pcippc2/cpc710_init_ram.c
board/pcippc2/flash.c
board/pcippc2/i2c.c
board/pcippc2/sconsole.c
board/pcippc2/sconsole.h
board/pcs440ep/config.mk
board/pcs440ep/flash.c
board/pcs440ep/init.S
board/pcs440ep/pcs440ep.c
board/pleb2/flash.c
board/pleb2/lowlevel_init.S
board/pm520/flash.c
board/pm520/pm520.c
board/pm826/flash.c
board/pm826/pm826.c
board/pm828/flash.c
board/pm828/pm828.c
board/pm854/law.c
board/pm854/pm854.c
board/pm854/tlb.c
board/pm856/law.c
board/pm856/pm856.c
board/pm856/tlb.c
board/pn62/pn62.c
board/ppmc7xx/flash.c
board/ppmc7xx/pci.c
board/ppmc7xx/ppmc7xx.c
board/ppmc8260/ppmc8260.c
board/ppmc8260/strataflash.c
board/prodrive/alpr/alpr.c
board/prodrive/alpr/config.mk
board/prodrive/alpr/fpga.c
board/prodrive/alpr/init.S
board/prodrive/alpr/nand.c
board/prodrive/common/flash.c
board/prodrive/common/fpga.c
board/prodrive/p3mx/misc.S
board/prodrive/p3mx/mpsc.c
board/prodrive/p3mx/p3mx.c
board/prodrive/p3mx/pci.c
board/prodrive/p3mx/sdram_init.c
board/prodrive/p3p440/config.mk
board/prodrive/p3p440/init.S
board/prodrive/p3p440/p3p440.c
board/prodrive/p3p440/p3p440.h
board/prodrive/pdnb3/flash.c
board/prodrive/pdnb3/nand.c
board/prodrive/pdnb3/pdnb3.c
board/psyent/common/AMDLV065D.c
board/psyent/pk1c20/led.c
board/purple/flash.c
board/purple/purple.c
board/purple/sconsole.c
board/purple/sconsole.h
board/pxa255_idp/lowlevel_init.S
board/pxa255_idp/pxa_idp.c
board/pxa255_idp/pxa_reg_calcs.out
board/pxa255_idp/pxa_reg_calcs.py
board/quad100hd/nand.c
board/quantum/fpga.c
board/quantum/quantum.c
board/r2dplus/r2dplus.c
board/r360mpi/flash.c
board/r360mpi/pcmcia.c
board/r360mpi/r360mpi.c
board/r7780mp/r7780mp.c
board/rattler/rattler.c
board/rbc823/flash.c
board/rbc823/kbd.c
board/rbc823/rbc823.c
board/rmu/flash.c
board/rmu/rmu.c
board/rpxsuper/flash.c
board/rpxsuper/mii_phy.c
board/rpxsuper/rpxsuper.c
board/rsdproto/flash.c
board/rsdproto/rsdproto.c
board/rsk7203/rsk7203.c
board/sacsng/clkinit.c
board/sacsng/flash.c
board/sacsng/sacsng.c
board/samsung/smdk6400/smdk6400.c
board/sandburst/common/flash.c
board/sandburst/common/ppc440gx_i2c.c
board/sandburst/common/ppc440gx_i2c.h
board/sandburst/common/sb_common.c
board/sandburst/karef/config.mk
board/sandburst/karef/init.S
board/sandburst/karef/karef.c
board/sandburst/metrobox/config.mk
board/sandburst/metrobox/init.S
board/sandburst/metrobox/metrobox.c
board/sandpoint/early_init.S
board/sandpoint/flash.c
board/sandpoint/sandpoint.c
board/sbc2410x/flash.c
board/sbc405/strataflash.c
board/sbc8240/flash.c
board/sbc8240/sbc8240.c
board/sbc8260/flash.c
board/sbc8260/sbc8260.c
board/sbc8349/pci.c
board/sbc8349/sbc8349.c
board/sbc8548/law.c
board/sbc8548/sbc8548.c
board/sbc8548/tlb.c
board/sbc8560/law.c
board/sbc8560/sbc8560.c
board/sbc8560/tlb.c
board/sbc8641d/law.c
board/sbc8641d/sbc8641d.c
board/sc3/sc3nand.c
board/sc520_cdp/flash.c
board/sc520_cdp/flash_old.c
board/sc520_cdp/sc520_cdp.c
board/sc520_spunk/flash.c
board/sc520_spunk/sc520_spunk.c
board/scb9328/flash.c
board/scb9328/lowlevel_init.S
board/sh7763rdp/sh7763rdp.c
board/sh7785lcr/sh7785lcr.c
board/shannon/flash.c
board/siemens/CCM/ccm.c
board/siemens/CCM/flash.c
board/siemens/CCM/fpga_ccm.c
board/siemens/IAD210/IAD210.c
board/siemens/IAD210/atm.c
board/siemens/IAD210/atm.h
board/siemens/IAD210/flash.c
board/siemens/SCM/config.mk
board/siemens/SCM/flash.c
board/siemens/SCM/fpga_scm.c
board/siemens/SCM/scm.c
board/siemens/SMN42/flash.c
board/siemens/pcu_e/flash.c
board/siemens/pcu_e/pcu_e.c
board/sixnet/flash.c
board/sixnet/sixnet.c
board/sl8245/flash.c
board/sl8245/sl8245.c
board/smdk2400/flash.c
board/smdk2410/flash.c
board/snmc/qs850/flash.c
board/snmc/qs850/qs850.c
board/snmc/qs860t/flash.c
board/snmc/qs860t/qs860t.c
board/socrates/law.c
board/socrates/nand.c
board/socrates/sdram.c
board/socrates/socrates.c
board/socrates/tlb.c
board/sorcery/sorcery.c
board/spc1920/hpi.c
board/spc1920/spc1920.c
board/spd8xx/flash.c
board/spd8xx/spd8xx.c
board/ssv/adnpesc1/adnpesc1.c
board/ssv/adnpesc1/config.mk
board/ssv/adnpesc1/flash.c
board/ssv/adnpesc1/vectors.S
board/ssv/common/flash.c
board/ssv/common/post.c
board/stxgp3/flash.c
board/stxgp3/law.c
board/stxgp3/stxgp3.c
board/stxgp3/tlb.c
board/stxssa/law.c
board/stxssa/stxssa.c
board/stxssa/tlb.c
board/stxxtc/stxxtc.c
board/svm_sc8xx/flash.c
board/svm_sc8xx/svm_sc8xx.c
board/tb0229/flash.c
board/tb0229/tb0229.c
board/total5200/sdram.c
board/total5200/total5200.c
board/tqc/tqm5200/cam5200_flash.c
board/tqc/tqm5200/cmd_stk52xx.c
board/tqc/tqm5200/tqm5200.c
board/tqc/tqm8260/config.mk
board/tqc/tqm8260/flash.c
board/tqc/tqm8260/tqm8260.c
board/tqc/tqm8272/config.mk
board/tqc/tqm8272/nand.c
board/tqc/tqm8272/tqm8272.c
board/tqc/tqm834x/pci.c
board/tqc/tqm834x/tqm834x.c
board/tqc/tqm85xx/law.c
board/tqc/tqm85xx/nand.c
board/tqc/tqm85xx/sdram.c
board/tqc/tqm85xx/tlb.c
board/tqc/tqm85xx/tqm85xx.c
board/tqc/tqm8xx/load_sernum_ethaddr.c
board/tqc/tqm8xx/tqm8xx.c
board/trab/auto_update.c
board/trab/flash.c
board/trab/memory.c
board/trab/trab.c
board/trizepsiv/lowlevel_init.S
board/uc100/pcmcia.c
board/uc100/uc100.c
board/uc101/uc101.c
board/utx8245/flash.c
board/utx8245/utx8245.c
board/v37/flash.c
board/v37/v37.c
board/v38b/v38b.c
board/versatile/flash.c
board/w7o/cmd_vpd.c
board/w7o/flash.c
board/w7o/init.S
board/w7o/post2.c
board/w7o/vpd.c
board/w7o/w7o.c
board/w7o/watchdog.c
board/wepep250/flash.c
board/westel/amx860/amx860.c
board/westel/amx860/flash.c
board/xaeniax/flash.c
board/xaeniax/lowlevel_init.S
board/xilinx/ml300/serial.c
board/xilinx/ml401/ml401.c
board/xilinx/ppc440-generic/u-boot-ram.lds
board/xilinx/ppc440-generic/u-boot-rom.lds
board/xilinx/ppc440-generic/xilinx_ppc440_generic.c
board/xilinx/xilinx_iic/iic_adapter.c
board/xilinx/xupv2p/xupv2p.c
board/xm250/flash.c
board/xm250/lowlevel_init.S
board/xpedite1k/config.mk
board/xpedite1k/flash.c
board/xpedite1k/init.S
board/xpedite1k/xpedite1k.c
board/xsengine/flash.c
board/xsengine/lowlevel_init.S
board/zeus/update.c
board/zeus/zeus.c
board/zpc1900/zpc1900.c
board/zylonite/flash.c
board/zylonite/lowlevel_init.S
board/zylonite/nand.c
common/ACEX1K.c
common/cmd_autoscript.c
common/cmd_bdinfo.c
common/cmd_bedbug.c
common/cmd_bmp.c
common/cmd_boot.c
common/cmd_bootm.c
common/cmd_date.c
common/cmd_diag.c
common/cmd_display.c
common/cmd_doc.c
common/cmd_dtt.c
common/cmd_eeprom.c
common/cmd_elf.c
common/cmd_ext2.c
common/cmd_fat.c
common/cmd_fdc.c
common/cmd_fdos.c
common/cmd_fdt.c
common/cmd_flash.c
common/cmd_i2c.c
common/cmd_ide.c
common/cmd_immap.c
common/cmd_jffs2.c
common/cmd_load.c
common/cmd_log.c
common/cmd_mem.c
common/cmd_misc.c
common/cmd_mp.c
common/cmd_nand.c
common/cmd_nvedit.c
common/cmd_pci.c
common/cmd_pcmcia.c
common/cmd_reginfo.c
common/cmd_reiser.c
common/cmd_sata.c
common/cmd_scsi.c
common/cmd_usb.c
common/command.c
common/console.c
common/cyclon2.c
common/devices.c
common/env_common.c
common/env_eeprom.c
common/env_embedded.c
common/env_nvram.c
common/flash.c
common/hush.c
common/image.c
common/kgdb.c
common/lcd.c
common/main.c
common/miiphyutil.c
common/serial.c
common/spartan2.c
common/spartan3.c
common/update.c
common/usb_kbd.c
common/virtex2.c
cpu/74xx_7xx/cache.S
cpu/74xx_7xx/cpu.c
cpu/74xx_7xx/interrupts.c
cpu/74xx_7xx/kgdb.S
cpu/74xx_7xx/speed.c
cpu/74xx_7xx/start.S
cpu/arm1136/cpu.c
cpu/arm1136/mx31/interrupts.c
cpu/arm1136/mx31/serial.c
cpu/arm1136/omap24xx/interrupts.c
cpu/arm1136/start.S
cpu/arm1176/s3c64xx/interrupts.c
cpu/arm1176/start.S
cpu/arm720t/cpu.c
cpu/arm720t/interrupts.c
cpu/arm720t/lpc2292/flash.c
cpu/arm720t/serial.c
cpu/arm720t/serial_netarm.c
cpu/arm720t/start.S
cpu/arm920t/at91rm9200/i2c.c
cpu/arm920t/at91rm9200/interrupts.c
cpu/arm920t/at91rm9200/lowlevel_init.S
cpu/arm920t/at91rm9200/spi.c
cpu/arm920t/at91rm9200/usb.c
cpu/arm920t/cpu.c
cpu/arm920t/imx/interrupts.c
cpu/arm920t/interrupts.c
cpu/arm920t/s3c24x0/i2c.c
cpu/arm920t/s3c24x0/interrupts.c
cpu/arm920t/s3c24x0/usb.c
cpu/arm920t/start.S
cpu/arm925t/cpu.c
cpu/arm925t/interrupts.c
cpu/arm925t/start.S
cpu/arm926ejs/at91/spi.c
cpu/arm926ejs/at91/timer.c
cpu/arm926ejs/at91/usb.c
cpu/arm926ejs/cpu.c
cpu/arm926ejs/davinci/i2c.c
cpu/arm926ejs/davinci/nand.c
cpu/arm926ejs/davinci/timer.c
cpu/arm926ejs/omap/timer.c
cpu/arm926ejs/start.S
cpu/arm926ejs/versatile/timer.c
cpu/arm946es/cpu.c
cpu/arm946es/interrupts.c
cpu/arm946es/start.S
cpu/arm_intcm/cpu.c
cpu/arm_intcm/start.S
cpu/at32ap/at32ap700x/clk.c
cpu/at32ap/at32ap700x/gpio.c
cpu/at32ap/cache.c
cpu/at32ap/cpu.c
cpu/at32ap/hsdramc.c
cpu/at32ap/interrupts.c
cpu/at32ap/start.S
cpu/blackfin/interrupts.c
cpu/blackfin/start.S
cpu/blackfin/traps.c
cpu/i386/interrupts.c
cpu/i386/sc520.c
cpu/i386/sc520_asm.S
cpu/i386/start.S
cpu/i386/timer.c
cpu/ixp/cpu.c
cpu/ixp/interrupts.c
cpu/ixp/npe/include/npe.h
cpu/ixp/npe/npe.c
cpu/ixp/serial.c
cpu/ixp/start.S
cpu/ixp/timer.c
cpu/leon2/interrupts.c
cpu/leon2/prom.c
cpu/leon2/serial.c
cpu/leon2/start.S
cpu/leon3/cpu_init.c
cpu/leon3/interrupts.c
cpu/leon3/prom.c
cpu/leon3/serial.c
cpu/leon3/start.S
cpu/lh7a40x/cpu.c
cpu/lh7a40x/interrupts.c
cpu/lh7a40x/start.S
cpu/mcf5227x/cpu_init.c
cpu/mcf5227x/interrupts.c
cpu/mcf5227x/speed.c
cpu/mcf5227x/start.S
cpu/mcf523x/cpu.c
cpu/mcf523x/cpu_init.c
cpu/mcf523x/interrupts.c
cpu/mcf523x/speed.c
cpu/mcf523x/start.S
cpu/mcf52x2/cpu.c
cpu/mcf52x2/cpu_init.c
cpu/mcf52x2/interrupts.c
cpu/mcf52x2/speed.c
cpu/mcf52x2/start.S
cpu/mcf532x/cpu.c
cpu/mcf532x/cpu_init.c
cpu/mcf532x/interrupts.c
cpu/mcf532x/speed.c
cpu/mcf532x/start.S
cpu/mcf5445x/cpu_init.c
cpu/mcf5445x/dspi.c
cpu/mcf5445x/interrupts.c
cpu/mcf5445x/pci.c
cpu/mcf5445x/speed.c
cpu/mcf5445x/start.S
cpu/mcf547x_8x/cpu.c
cpu/mcf547x_8x/cpu_init.c
cpu/mcf547x_8x/interrupts.c
cpu/mcf547x_8x/pci.c
cpu/mcf547x_8x/slicetimer.c
cpu/mcf547x_8x/speed.c
cpu/mcf547x_8x/start.S
cpu/microblaze/exception.c
cpu/microblaze/interrupts.c
cpu/microblaze/start.S
cpu/microblaze/timer.c
cpu/mips/au1x00_eth.c
cpu/mips/au1x00_serial.c
cpu/mips/cache.S
cpu/mips/cpu.c
cpu/mips/start.S
cpu/mpc512x/cpu.c
cpu/mpc512x/cpu_init.c
cpu/mpc512x/i2c.c
cpu/mpc512x/interrupts.c
cpu/mpc512x/iopin.c
cpu/mpc512x/serial.c
cpu/mpc512x/speed.c
cpu/mpc512x/start.S
cpu/mpc5xx/cpu.c
cpu/mpc5xx/cpu_init.c
cpu/mpc5xx/interrupts.c
cpu/mpc5xx/serial.c
cpu/mpc5xx/speed.c
cpu/mpc5xx/spi.c
cpu/mpc5xx/start.S
cpu/mpc5xxx/cpu.c
cpu/mpc5xxx/cpu_init.c
cpu/mpc5xxx/firmware_sc_task_bestcomm.impl.S
cpu/mpc5xxx/i2c.c
cpu/mpc5xxx/interrupts.c
cpu/mpc5xxx/pci_mpc5200.c
cpu/mpc5xxx/serial.c
cpu/mpc5xxx/speed.c
cpu/mpc5xxx/start.S
cpu/mpc5xxx/usb.c
cpu/mpc8220/cpu.c
cpu/mpc8220/cpu_init.c
cpu/mpc8220/dramSetup.c
cpu/mpc8220/interrupts.c
cpu/mpc8220/pci.c
cpu/mpc8220/speed.c
cpu/mpc8220/start.S
cpu/mpc824x/cpu.c
cpu/mpc824x/cpu_init.c
cpu/mpc824x/drivers/epic/epic1.c
cpu/mpc824x/drivers/i2c/i2c.c
cpu/mpc824x/interrupts.c
cpu/mpc824x/start.S
cpu/mpc8260/commproc.c
cpu/mpc8260/cpu.c
cpu/mpc8260/cpu_init.c
cpu/mpc8260/ether_fcc.c
cpu/mpc8260/ether_scc.c
cpu/mpc8260/i2c.c
cpu/mpc8260/interrupts.c
cpu/mpc8260/kgdb.S
cpu/mpc8260/pci.c
cpu/mpc8260/serial_scc.c
cpu/mpc8260/serial_smc.c
cpu/mpc8260/speed.c
cpu/mpc8260/spi.c
cpu/mpc8260/start.S
cpu/mpc8260/traps.c
cpu/mpc83xx/cpu.c
cpu/mpc83xx/cpu_init.c
cpu/mpc83xx/ecc.c
cpu/mpc83xx/fdt.c
cpu/mpc83xx/interrupts.c
cpu/mpc83xx/nand_init.c
cpu/mpc83xx/pci.c
cpu/mpc83xx/qe_io.c
cpu/mpc83xx/serdes.c
cpu/mpc83xx/spd_sdram.c
cpu/mpc83xx/speed.c
cpu/mpc83xx/start.S
cpu/mpc83xx/traps.c
cpu/mpc85xx/commproc.c
cpu/mpc85xx/cpu.c
cpu/mpc85xx/cpu_init.c
cpu/mpc85xx/ddr-gen1.c
cpu/mpc85xx/ddr-gen2.c
cpu/mpc85xx/ddr-gen3.c
cpu/mpc85xx/ether_fcc.c
cpu/mpc85xx/fdt.c
cpu/mpc85xx/interrupts.c
cpu/mpc85xx/mp.c
cpu/mpc85xx/mpc8536_serdes.c
cpu/mpc85xx/pci.c
cpu/mpc85xx/qe_io.c
cpu/mpc85xx/serial_scc.c
cpu/mpc85xx/speed.c
cpu/mpc85xx/start.S
cpu/mpc85xx/tlb.c
cpu/mpc85xx/traps.c
cpu/mpc86xx/cache.S
cpu/mpc86xx/cpu.c
cpu/mpc86xx/cpu_init.c
cpu/mpc86xx/ddr-8641.c
cpu/mpc86xx/fdt.c
cpu/mpc86xx/interrupts.c
cpu/mpc86xx/speed.c
cpu/mpc86xx/start.S
cpu/mpc8xx/commproc.c
cpu/mpc8xx/cpu.c
cpu/mpc8xx/cpu_init.c
cpu/mpc8xx/fec.c
cpu/mpc8xx/i2c.c
cpu/mpc8xx/interrupts.c
cpu/mpc8xx/kgdb.S
cpu/mpc8xx/lcd.c
cpu/mpc8xx/scc.c
cpu/mpc8xx/serial.c
cpu/mpc8xx/speed.c
cpu/mpc8xx/spi.c
cpu/mpc8xx/start.S
cpu/mpc8xx/upatch.c
cpu/mpc8xx/video.c
cpu/mpc8xxx/ddr/ddr.h
cpu/nios/asmi.c
cpu/nios/interrupts.c
cpu/nios/serial.c
cpu/nios/spi.c
cpu/nios/start.S
cpu/nios2/cpu.c
cpu/nios2/epcs.c
cpu/nios2/interrupts.c
cpu/nios2/serial.c
cpu/nios2/start.S
cpu/nios2/sysid.c
cpu/ppc4xx/40x_spd_sdram.c
cpu/ppc4xx/44x_spd_ddr.c
cpu/ppc4xx/44x_spd_ddr2.c
cpu/ppc4xx/4xx_enet.c
cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c
cpu/ppc4xx/4xx_pci.c
cpu/ppc4xx/4xx_pcie.c
cpu/ppc4xx/4xx_uart.c
cpu/ppc4xx/cache.S
cpu/ppc4xx/commproc.c
cpu/ppc4xx/cpu.c
cpu/ppc4xx/cpu_init.c
cpu/ppc4xx/denali_data_eye.c
cpu/ppc4xx/denali_spd_ddr2.c
cpu/ppc4xx/ecc.c
cpu/ppc4xx/ecc.h
cpu/ppc4xx/gpio.c
cpu/ppc4xx/i2c.c
cpu/ppc4xx/ndfc.c
cpu/ppc4xx/sdram.c
cpu/ppc4xx/sdram.h
cpu/ppc4xx/start.S
cpu/ppc4xx/usb.c
cpu/ppc4xx/usb_ohci.c
cpu/ppc4xx/usbdev.h
cpu/pxa/cpu.c
cpu/pxa/i2c.c
cpu/pxa/interrupts.c
cpu/pxa/mmc.c
cpu/pxa/pxafb.c
cpu/pxa/start.S
cpu/pxa/usb.c
cpu/s3c44b0/interrupts.c
cpu/s3c44b0/start.S
cpu/sa1100/cpu.c
cpu/sa1100/interrupts.c
cpu/sa1100/start.S
cpu/sh2/start.S
cpu/sh2/time.c
cpu/sh3/start.S
cpu/sh3/time.c
cpu/sh4/start.S
cpu/sh4/time.c
disk/part.c
disk/part_efi.c
doc/I2C_Edge_Conditions
doc/README.JFFS2
doc/README.JFFS2_NAND
doc/README.MBX
doc/README.MPC866
doc/README.PIP405
doc/README.PXA_CF
doc/README.TQM8260
doc/README.adnpesc1
doc/README.adnpesc1_base32
doc/README.alaska8220
doc/README.cmi
doc/README.dk1c20_std32
doc/README.dk1s10_mldk20
doc/README.dk1s10_std32
doc/README.dk1s40_std32
doc/README.dk20k200_std32
doc/README.ebony
doc/README.generic_usb_ohci
doc/README.lynxkdi
doc/README.m52277evb
doc/README.m5253evbe
doc/README.m5373evb
doc/README.m54455evb
doc/README.m5475evb
doc/README.m68k
doc/README.marubun-pcmcia
doc/README.mpc8313erdb
doc/README.mpc8315erdb
doc/README.mpc8641hpcn
doc/README.nand
doc/README.nios
doc/README.nios_CFG_NIOS_CPU [deleted file]
doc/README.ppc440
doc/README.serial_multi
doc/README.sha1
doc/README.silent
doc/uImage.FIT/command_syntax_extensions.txt
drivers/block/ahci.c
drivers/block/ata_piix.c
drivers/block/ata_piix.h
drivers/block/fsl_sata.c
drivers/block/sata_sil3114.c
drivers/block/sil680.c
drivers/block/sym53c8xx.c
drivers/block/systemace.c
drivers/hwmon/adm1021.c
drivers/hwmon/ds1621.c
drivers/hwmon/ds1775.c
drivers/hwmon/lm73.c
drivers/hwmon/lm75.c
drivers/i2c/fsl_i2c.c
drivers/i2c/mxc_i2c.c
drivers/i2c/omap1510_i2c.c
drivers/i2c/omap24xx_i2c.c
drivers/i2c/soft_i2c.c
drivers/i2c/tsi108_i2c.c
drivers/input/i8042.c
drivers/input/keyboard.c
drivers/input/ps2ser.c
drivers/misc/fsl_law.c
drivers/misc/ns87308.c
drivers/mmc/atmel_mci.c
drivers/mtd/cfi_flash.c
drivers/mtd/dataflash.c
drivers/mtd/jedec_flash.c
drivers/mtd/nand/fsl_elbc_nand.c
drivers/mtd/nand/nand.c
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/s3c64xx.c
drivers/mtd/nand_legacy/nand_legacy.c
drivers/mtd/onenand/onenand_uboot.c
drivers/mtd/spi/spi_flash_internal.h
drivers/mtd/spi/stmicro.c
drivers/net/bcm570x.c
drivers/net/bfin_mac.c
drivers/net/cs8900.c
drivers/net/dm9000x.c
drivers/net/eepro100.c
drivers/net/fsl_mcdmafec.c
drivers/net/lan91c96.c
drivers/net/macb.c
drivers/net/mcffec.c
drivers/net/ne2000_base.c
drivers/net/netarm_eth.c
drivers/net/ns7520_eth.c
drivers/net/ns9750_eth.c
drivers/net/phy/miiphybb.c
drivers/net/sk98lin/h/skdrv1st.h
drivers/net/sk98lin/h/skgehw.h
drivers/net/sk98lin/skgeinit.c
drivers/net/sk98lin/u-boot_compat.h
drivers/net/smc91111.c
drivers/net/tsec.c
drivers/net/tsi108_eth.c
drivers/net/vsc7385.c
drivers/pci/pci.c
drivers/pci/pci_auto.c
drivers/pci/tsi108_pci.c
drivers/pci/w83c553f.c
drivers/pcmcia/i82365.c
drivers/pcmcia/marubun_pcmcia.c
drivers/pcmcia/mpc8xx_pcmcia.c
drivers/pcmcia/pxa_pcmcia.c
drivers/pcmcia/ti_pci1410a.c
drivers/pcmcia/tqm8xx_pcmcia.c
drivers/qe/uec.c
drivers/rtc/ds1306.c
drivers/rtc/ds1307.c
drivers/rtc/ds1337.c
drivers/rtc/ds1374.c
drivers/rtc/ds1556.c
drivers/rtc/ds164x.c
drivers/rtc/ds174x.c
drivers/rtc/ds3231.c
drivers/rtc/isl1208.c
drivers/rtc/m41t11.c
drivers/rtc/m41t60.c
drivers/rtc/m41t62.c
drivers/rtc/m48t35ax.c
drivers/rtc/max6900.c
drivers/rtc/mc146818.c
drivers/rtc/mcfrtc.c
drivers/rtc/mpc5xxx.c
drivers/rtc/mpc8xx.c
drivers/rtc/pcf8563.c
drivers/rtc/pl031.c
drivers/rtc/rs5c372.c
drivers/rtc/rx8025.c
drivers/rtc/x1205.c
drivers/serial/mcfuart.c
drivers/serial/ns16550.c
drivers/serial/serial.c
drivers/spi/mpc8xxx_spi.c
drivers/spi/soft_spi.c
drivers/usb/sl811_usb.c
drivers/usb/usb_ohci.c
drivers/usb/usb_ohci.h
drivers/usb/usbdcore_mpc8xx.c
drivers/video/ati_radeon_fb.c
drivers/video/cfb_console.c
drivers/video/ct69000.c
drivers/video/mb862xx.c
drivers/video/smiLynxEM.c
drivers/video/videomodes.c
drivers/video/videomodes.h
examples/mem_to_mem_idma2intr.c
examples/test_burst.c
fs/jffs2/jffs2_1pass.c
fs/jffs2/jffs2_nand_1pass.c
fs/jffs2/jffs2_private.h
include/4xx_i2c.h
include/altera.h
include/api_public.h
include/asm-arm/arch-davinci/nand_defs.h
include/asm-arm/arch-omap24xx/mem.h
include/asm-arm/global_data.h
include/asm-avr32/arch-at32ap700x/clk.h
include/asm-avr32/global_data.h
include/asm-blackfin/blackfin-config-post.h
include/asm-blackfin/blackfin-config-pre.h
include/asm-blackfin/global_data.h
include/asm-i386/global_data.h
include/asm-m68k/global_data.h
include/asm-m68k/immap.h
include/asm-m68k/immap_5227x.h
include/asm-m68k/immap_5235.h
include/asm-m68k/immap_5249.h
include/asm-m68k/immap_5253.h
include/asm-m68k/immap_5271.h
include/asm-m68k/immap_5272.h
include/asm-m68k/immap_5275.h
include/asm-m68k/immap_5282.h
include/asm-m68k/immap_547x_8x.h
include/asm-m68k/m5249.h
include/asm-m68k/m5271.h
include/asm-m68k/m5282.h
include/asm-microblaze/global_data.h
include/asm-mips/global_data.h
include/asm-ppc/4xx_pcie.h
include/asm-ppc/cache.h
include/asm-ppc/cpm_8260.h
include/asm-ppc/global_data.h
include/asm-ppc/immap_85xx.h
include/asm-ppc/immap_86xx.h
include/asm-ppc/iopin_8260.h
include/asm-ppc/iopin_85xx.h
include/asm-ppc/iopin_8xx.h
include/asm-ppc/status_led.h
include/asm-sparc/asmmacro.h
include/asm-sparc/global_data.h
include/asm-sparc/io.h
include/ata.h
include/command.h
include/common.h
include/commproc.h
include/configs/A3000.h
include/configs/ADCIOP.h
include/configs/ADNPESC1.h
include/configs/ADNPESC1_base_32.h
include/configs/ADS860.h
include/configs/AMX860.h
include/configs/AP1000.h
include/configs/APC405.h
include/configs/AR405.h
include/configs/ASH405.h
include/configs/ATUM8548.h
include/configs/Adder.h
include/configs/AdderUSB.h
include/configs/Alaska8220.h
include/configs/AmigaOneG3SE.h
include/configs/B2.h
include/configs/BAB7xx.h
include/configs/BC3450.h
include/configs/BMW.h
include/configs/CANBT.h
include/configs/CATcenter.h
include/configs/CCM.h
include/configs/CMS700.h
include/configs/CPC45.h
include/configs/CPCI2DP.h
include/configs/CPCI405.h
include/configs/CPCI4052.h
include/configs/CPCI405AB.h
include/configs/CPCI405DT.h
include/configs/CPCI750.h
include/configs/CPCIISER4.h
include/configs/CPU86.h
include/configs/CPU87.h
include/configs/CRAYL1.h
include/configs/CU824.h
include/configs/DASA_SIM.h
include/configs/DB64360.h
include/configs/DB64460.h
include/configs/DK1C20.h
include/configs/DK1C20_safe_32.h
include/configs/DK1C20_standard_32.h
include/configs/DK1S10.h
include/configs/DK1S10_mtx_ldk_20.h
include/configs/DK1S10_safe_32.h
include/configs/DK1S10_standard_32.h
include/configs/DP405.h
include/configs/DU405.h
include/configs/DU440.h
include/configs/EB+MCF-EV123.h
include/configs/ELPPC.h
include/configs/ELPT860.h
include/configs/EP1C20.h
include/configs/EP1S10.h
include/configs/EP1S40.h
include/configs/EP88x.h
include/configs/ERIC.h
include/configs/ESTEEM192E.h
include/configs/ETX094.h
include/configs/EVB64260.h
include/configs/EXBITGEN.h
include/configs/FADS823.h
include/configs/FADS850SAR.h
include/configs/FADS860T.h
include/configs/FLAGADM.h
include/configs/FPS850L.h
include/configs/FPS860L.h
include/configs/G2000.h
include/configs/GEN860T.h
include/configs/GENIETV.h
include/configs/GTH.h
include/configs/HH405.h
include/configs/HIDDEN_DRAGON.h
include/configs/HMI10.h
include/configs/HUB405.h
include/configs/IAD210.h
include/configs/ICU862.h
include/configs/IDS8247.h
include/configs/IP860.h
include/configs/IPHASE4539.h
include/configs/ISPAN.h
include/configs/IVML24.h
include/configs/IVMS8.h
include/configs/IceCube.h
include/configs/JSE.h
include/configs/KAREF.h
include/configs/KUP4K.h
include/configs/KUP4X.h
include/configs/LANTEC.h
include/configs/M52277EVB.h
include/configs/M5235EVB.h
include/configs/M5249EVB.h
include/configs/M5253DEMO.h
include/configs/M5253EVBE.h
include/configs/M5271EVB.h
include/configs/M5272C3.h
include/configs/M5275EVB.h
include/configs/M5282EVB.h
include/configs/M5329EVB.h
include/configs/M5373EVB.h
include/configs/M54451EVB.h
include/configs/M54455EVB.h
include/configs/M5475EVB.h
include/configs/M5485EVB.h
include/configs/MBX.h
include/configs/MBX860T.h
include/configs/METROBOX.h
include/configs/MHPC.h
include/configs/MIP405.h
include/configs/ML2.h
include/configs/MOUSSE.h
include/configs/MPC8260ADS.h
include/configs/MPC8266ADS.h
include/configs/MPC8313ERDB.h
include/configs/MPC8315ERDB.h
include/configs/MPC8323ERDB.h
include/configs/MPC832XEMDS.h
include/configs/MPC8349EMDS.h
include/configs/MPC8349ITX.h
include/configs/MPC8360EMDS.h
include/configs/MPC8360ERDK.h
include/configs/MPC837XEMDS.h
include/configs/MPC837XERDB.h
include/configs/MPC8536DS.h
include/configs/MPC8540ADS.h
include/configs/MPC8540EVAL.h
include/configs/MPC8541CDS.h
include/configs/MPC8544DS.h
include/configs/MPC8548CDS.h
include/configs/MPC8555CDS.h
include/configs/MPC8560ADS.h
include/configs/MPC8568MDS.h
include/configs/MPC8572DS.h
include/configs/MPC8610HPCD.h
include/configs/MPC8641HPCN.h
include/configs/MPC86xADS.h
include/configs/MPC885ADS.h
include/configs/MUSENKI.h
include/configs/MVBC_P.h
include/configs/MVBLM7.h
include/configs/MVBLUE.h
include/configs/MVS1.h
include/configs/MigoR.h
include/configs/NC650.h
include/configs/NETPHONE.h
include/configs/NETTA.h
include/configs/NETTA2.h
include/configs/NETVIA.h
include/configs/NSCU.h
include/configs/NX823.h
include/configs/OCRTC.h
include/configs/ORSG.h
include/configs/OXC.h
include/configs/P3G4.h
include/configs/PATI.h
include/configs/PCI405.h
include/configs/PCI5441.h
include/configs/PCIPPC2.h
include/configs/PCIPPC6.h
include/configs/PIP405.h
include/configs/PK1C20.h
include/configs/PLU405.h
include/configs/PM520.h
include/configs/PM826.h
include/configs/PM828.h
include/configs/PM854.h
include/configs/PM856.h
include/configs/PMC405.h
include/configs/PMC440.h
include/configs/PN62.h
include/configs/PPChameleonEVB.h
include/configs/QS823.h
include/configs/QS850.h
include/configs/QS860T.h
include/configs/R360MPI.h
include/configs/RBC823.h
include/configs/RPXClassic.h
include/configs/RPXlite.h
include/configs/RPXlite_DW.h
include/configs/RPXsuper.h
include/configs/RRvision.h
include/configs/Rattler.h
include/configs/SBC8540.h
include/configs/SCM.h
include/configs/SL8245.h
include/configs/SM850.h
include/configs/SMN42.h
include/configs/SPD823TS.h
include/configs/SX1.h
include/configs/SXNI855T.h
include/configs/Sandpoint8240.h
include/configs/Sandpoint8245.h
include/configs/TASREG.h
include/configs/TB5200.h
include/configs/TK885D.h
include/configs/TOP5200.h
include/configs/TOP860.h
include/configs/TQM5200.h
include/configs/TQM823L.h
include/configs/TQM823M.h
include/configs/TQM8260.h
include/configs/TQM8272.h
include/configs/TQM834x.h
include/configs/TQM850L.h
include/configs/TQM850M.h
include/configs/TQM855L.h
include/configs/TQM855M.h
include/configs/TQM85xx.h
include/configs/TQM860L.h
include/configs/TQM860M.h
include/configs/TQM862L.h
include/configs/TQM862M.h
include/configs/TQM866M.h
include/configs/TQM885D.h
include/configs/Total5200.h
include/configs/VCMA9.h
include/configs/VOH405.h
include/configs/VOM405.h
include/configs/VoVPN-GW.h
include/configs/W7OLMC.h
include/configs/W7OLMG.h
include/configs/WUH405.h
include/configs/XPEDITE1K.h
include/configs/Yukon8220.h
include/configs/ZPC1900.h
include/configs/ZUMA.h
include/configs/acadia.h
include/configs/actux1.h
include/configs/actux2.h
include/configs/actux3.h
include/configs/actux4.h
include/configs/ads5121.h
include/configs/aev.h
include/configs/alpr.h
include/configs/amcc-common.h
include/configs/ap325rxa.h
include/configs/apollon.h
include/configs/armadillo.h
include/configs/assabet.h
include/configs/at91cap9adk.h
include/configs/at91rm9200dk.h
include/configs/at91sam9260ek.h
include/configs/at91sam9261ek.h
include/configs/at91sam9263ek.h
include/configs/at91sam9rlek.h
include/configs/atc.h
include/configs/atngw100.h
include/configs/atstk1002.h
include/configs/atstk1003.h
include/configs/atstk1004.h
include/configs/atstk1006.h
include/configs/bamboo.h
include/configs/barco.h
include/configs/bf533-ezkit.h
include/configs/bf533-stamp.h
include/configs/bf537-stamp.h
include/configs/bf561-ezkit.h
include/configs/bubinga.h
include/configs/c2mon.h
include/configs/canmb.h
include/configs/canyonlands.h
include/configs/cerf250.h
include/configs/cm4008.h
include/configs/cm41xx.h
include/configs/cm5200.h
include/configs/cmc_pu2.h
include/configs/cmi_mpc5xx.h
include/configs/cobra5272.h
include/configs/cogent_mpc8260.h
include/configs/cogent_mpc8xx.h
include/configs/cpci5200.h
include/configs/cradle.h
include/configs/csb226.h
include/configs/csb272.h
include/configs/csb472.h
include/configs/csb637.h
include/configs/davinci_dvevm.h
include/configs/davinci_schmoogie.h
include/configs/davinci_sffsdr.h
include/configs/davinci_sonata.h
include/configs/dbau1x00.h
include/configs/debris.h
include/configs/delta.h
include/configs/dnp1110.h
include/configs/eXalion.h
include/configs/ebony.h
include/configs/ep7312.h
include/configs/ep8248.h
include/configs/ep8260.h
include/configs/ep82xxm.h
include/configs/evb4510.h
include/configs/favr-32-ezkit.h
include/configs/gcplus.h
include/configs/gr_cpci_ax2000.h
include/configs/gr_ep2s60.h
include/configs/gr_xc3s_1500.h
include/configs/grsim.h
include/configs/grsim_leon2.h
include/configs/gth2.h
include/configs/gw8260.h
include/configs/hammerhead.h
include/configs/hcu4.h
include/configs/hcu5.h
include/configs/hermes.h
include/configs/hmi1001.h
include/configs/hymod.h
include/configs/idmr.h
include/configs/impa7.h
include/configs/imx31_litekit.h
include/configs/imx31_phycore.h
include/configs/incaip.h
include/configs/inka4x0.h
include/configs/innokom.h
include/configs/integratorap.h
include/configs/integratorcp.h
include/configs/ixdp425.h
include/configs/ixdpg425.h
include/configs/jupiter.h
include/configs/katmai.h
include/configs/kb9202.h
include/configs/kilauea.h
include/configs/korat.h
include/configs/kvme080.h
include/configs/lart.h
include/configs/linkstation.h
include/configs/logodl.h
include/configs/lpc2292sodimm.h
include/configs/lpd7a400-10.h
include/configs/lpd7a400.h
include/configs/lpd7a404-10.h
include/configs/lpd7a404.h
include/configs/luan.h
include/configs/lubbock.h
include/configs/lwmon.h
include/configs/lwmon5.h
include/configs/m501sk.h
include/configs/makalu.h
include/configs/mcc200.h
include/configs/mcu25.h
include/configs/mecp5200.h
include/configs/mgcoge.h
include/configs/mgsuvd.h
include/configs/mimc200.h
include/configs/ml300.h
include/configs/ml401.h
include/configs/ml507.h
include/configs/modnet50.h
include/configs/motionpro.h
include/configs/mp2usb.h
include/configs/mpc7448hpc2.h
include/configs/mpr2.h
include/configs/ms7720se.h
include/configs/ms7722se.h
include/configs/ms7750se.h
include/configs/muas3001.h
include/configs/mucmc52.h
include/configs/munices.h
include/configs/mx1ads.h
include/configs/mx1fs2.h
include/configs/mx31ads.h
include/configs/netstar.h
include/configs/ns9750dev.h
include/configs/o2dnt.h
include/configs/ocotea.h
include/configs/omap1510inn.h
include/configs/omap1610h2.h
include/configs/omap1610inn.h
include/configs/omap2420h4.h
include/configs/omap5912osk.h
include/configs/omap730p2.h
include/configs/p3mx.h
include/configs/p3p440.h
include/configs/pb1x00.h
include/configs/pcs440ep.h
include/configs/pcu_e.h
include/configs/pdnb3.h
include/configs/pf5200.h
include/configs/pleb2.h
include/configs/ppmc7xx.h
include/configs/ppmc8260.h
include/configs/purple.h
include/configs/pxa255_idp.h
include/configs/qemu-mips.h
include/configs/quad100hd.h
include/configs/quantum.h
include/configs/r2dplus.h
include/configs/r7780mp.h
include/configs/redwood.h
include/configs/rmu.h
include/configs/rsdproto.h
include/configs/rsk7203.h
include/configs/sacsng.h
include/configs/sbc2410x.h
include/configs/sbc405.h
include/configs/sbc8240.h
include/configs/sbc8260.h
include/configs/sbc8349.h
include/configs/sbc8548.h
include/configs/sbc8560.h
include/configs/sbc8641d.h
include/configs/sc3.h
include/configs/sc520_cdp.h
include/configs/sc520_spunk.h
include/configs/scb9328.h
include/configs/sequoia.h
include/configs/sh7763rdp.h
include/configs/sh7785lcr.h
include/configs/shannon.h
include/configs/smdk2400.h
include/configs/smdk2410.h
include/configs/smdk6400.h
include/configs/smmaco4.h
include/configs/socrates.h
include/configs/sorcery.h
include/configs/spc1920.h
include/configs/spieval.h
include/configs/stxgp3.h
include/configs/stxssa.h
include/configs/stxxtc.h
include/configs/suzaku.h
include/configs/svm_sc8xx.h
include/configs/taihu.h
include/configs/taishan.h
include/configs/tb0229.h
include/configs/trab.h
include/configs/trizepsiv.h
include/configs/uc100.h
include/configs/uc101.h
include/configs/utx8245.h
include/configs/v37.h
include/configs/v38b.h
include/configs/v5fx30teval.h
include/configs/versatile.h
include/configs/virtlab2.h
include/configs/voiceblue.h
include/configs/walnut.h
include/configs/wepep250.h
include/configs/xaeniax.h
include/configs/xilinx-ppc440-generic.h
include/configs/xilinx-ppc440.h
include/configs/xm250.h
include/configs/xsengine.h
include/configs/xupv2p.h
include/configs/yosemite.h
include/configs/yucca.h
include/configs/zeus.h
include/configs/zylonite.h
include/dataflash.h
include/dtt.h
include/environment.h
include/flash.h
include/fpga.h
include/galileo/core.h
include/i2c.h
include/i8042.h
include/ide.h
include/lcd.h
include/lh7a40x.h
include/miiphy.h
include/mk48t59.h
include/mpc106.h
include/mpc512x.h
include/mpc5xx.h
include/mpc5xxx.h
include/mpc8220.h
include/mpc824x.h
include/mpc86xx.h
include/mpc8xx_irq.h
include/nand.h
include/net.h
include/ns16550.h
include/ns87308.h
include/pcmcia.h
include/post.h
include/ppc405.h
include/ppc440.h
include/ppc4xx.h
include/ppc4xx_enet.h
include/ps2mult.h
include/radeon.h
include/serial.h
include/status_led.h
include/tsec.h
include/w83c553f.h
include/xilinx.h
lib_arm/board.c
lib_avr32/board.c
lib_blackfin/board.c
lib_blackfin/post.c
lib_blackfin/tests.c
lib_generic/vsprintf.c
lib_i386/board.c
lib_m68k/board.c
lib_m68k/bootm.c
lib_m68k/interrupts.c
lib_m68k/time.c
lib_microblaze/board.c
lib_microblaze/time.c
lib_mips/board.c
lib_mips/time.c
lib_nios/board.c
lib_nios/mult.c
lib_nios2/board.c
lib_nios2/cache.S
lib_nios2/mult.c
lib_ppc/board.c
lib_ppc/bootm.c
lib_ppc/cache.c
lib_ppc/extable.c
lib_ppc/interrupts.c
lib_ppc/time.c
lib_sh/board.c
lib_sh/bootm.c
lib_sh/time.c
lib_sparc/board.c
lib_sparc/bootm.c
nand_spl/board/amcc/acadia/config.mk
nand_spl/board/amcc/bamboo/config.mk
nand_spl/board/amcc/bamboo/sdram.c
nand_spl/board/amcc/canyonlands/config.mk
nand_spl/board/amcc/canyonlands/ddr2_fixed.c
nand_spl/board/amcc/kilauea/config.mk
nand_spl/board/amcc/sequoia/config.mk
nand_spl/nand_boot.c
nand_spl/nand_boot_fsl_elbc.c
net/bootp.c
net/net.c
net/nfs.c
net/tftp.c
onenand_ipl/board/apollon/apollon.c
onenand_ipl/onenand_boot.c
onenand_ipl/onenand_ipl.h
onenand_ipl/onenand_read.c
post/board/lwmon/sysmon.c
post/board/lwmon5/dsp.c
post/board/lwmon5/dspic.c
post/board/lwmon5/fpga.c
post/board/lwmon5/gdc.c
post/board/lwmon5/sysmon.c
post/board/lwmon5/watchdog.c
post/board/netta/codec.c
post/board/netta/dsp.c
post/cpu/mpc8xx/cache.c
post/cpu/mpc8xx/cache_8xx.S
post/cpu/mpc8xx/ether.c
post/cpu/mpc8xx/spr.c
post/cpu/mpc8xx/uart.c
post/cpu/mpc8xx/usb.c
post/cpu/mpc8xx/watchdog.c
post/cpu/ppc4xx/cache.c
post/cpu/ppc4xx/cache_4xx.S
post/cpu/ppc4xx/denali_ecc.c
post/cpu/ppc4xx/ether.c
post/cpu/ppc4xx/ocm.c
post/cpu/ppc4xx/spr.c
post/cpu/ppc4xx/uart.c
post/cpu/ppc4xx/watchdog.c
post/drivers/i2c.c
post/drivers/memory.c
post/drivers/rtc.c
post/lib_ppc/andi.c
post/lib_ppc/asm.S
post/lib_ppc/b.c
post/lib_ppc/cmp.c
post/lib_ppc/cmpi.c
post/lib_ppc/complex.c
post/lib_ppc/cpu.c
post/lib_ppc/cr.c
post/lib_ppc/fpu/20001122-1.c
post/lib_ppc/fpu/20010114-2.c
post/lib_ppc/fpu/20010226-1.c
post/lib_ppc/fpu/980619-1.c
post/lib_ppc/fpu/acc1.c
post/lib_ppc/fpu/compare-fp-1.c
post/lib_ppc/fpu/fpu.c
post/lib_ppc/fpu/mul-subnormal-single-1.c
post/lib_ppc/load.c
post/lib_ppc/multi.c
post/lib_ppc/rlwimi.c
post/lib_ppc/rlwinm.c
post/lib_ppc/rlwnm.c
post/lib_ppc/srawi.c
post/lib_ppc/store.c
post/lib_ppc/string.c
post/lib_ppc/three.c
post/lib_ppc/threei.c
post/lib_ppc/threex.c
post/lib_ppc/two.c
post/lib_ppc/twox.c
post/post.c
post/tests.c
tools/env/fw_env.c
tools/envcrc.c
tools/updater/cmd_flash.c
tools/updater/flash.c
tools/updater/flash_hw.c
tools/updater/utils.c

index 7c6c786125cf5b245de93d1afe1e539f17e9d995..c711df6f3465d0b89a9e797d74d20842ccf35601 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1701,7 +1701,7 @@ ISPAN_config              \
 ISPAN_REVB_config:     unconfig
        @mkdir -p $(obj)include
        @if [ "$(findstring _REVB_,$@)" ] ; then \
-               echo "#define CFG_REV_B" > $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
        fi
        @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
 
@@ -1728,8 +1728,8 @@ PQ2FADS-ZU_66MHz_lowboot_config   \
        @mkdir -p $(obj)include
        @mkdir -p $(obj)board/freescale/mpc8260ads
        $(if $(findstring PQ2FADS,$@), \
-       @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
-       @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
+       @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
+       @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
        $(if $(findstring MHz,$@), \
        @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
        $(if $(findstring VR,$@), \
@@ -1981,19 +1981,19 @@ M54451EVB_stmicro_config :      unconfig
        M54451EVB_stmicro_config)       FLASH=STMICRO;; \
        esac; \
        if [ "$${FLASH}" = "SPANSION" ] ; then \
-               echo "#define CFG_SPANSION_BOOT"        >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
                echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
                cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
                $(XECHO) "... with SPANSION boot..." ; \
        fi; \
        if [ "$${FLASH}" = "STMICRO" ] ; then \
                echo "#define CONFIG_CF_SBF"    >> $(obj)include/config.h ; \
-               echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_STMICRO_BOOT"  >> $(obj)include/config.h ; \
                echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
                cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
                $(XECHO) "... with ST Micro boot..." ; \
        fi; \
-       echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
+       echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
        @$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
 
 M54455EVB_config \
@@ -2015,25 +2015,25 @@ M54455EVB_stm33_config :        unconfig
        M54455EVB_stm33_config)         FLASH=STMICRO; FREQ=33333333;; \
        esac; \
        if [ "$${FLASH}" = "INTEL" ] ; then \
-               echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
                echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
                cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
                $(XECHO) "... with INTEL boot..." ; \
        fi; \
        if [ "$${FLASH}" = "ATMEL" ] ; then \
-               echo "#define CFG_ATMEL_BOOT"   >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_ATMEL_BOOT"    >> $(obj)include/config.h ; \
                echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
                cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
                $(XECHO) "... with ATMEL boot..." ; \
        fi; \
        if [ "$${FLASH}" = "STMICRO" ] ; then \
                echo "#define CONFIG_CF_SBF"    >> $(obj)include/config.h ; \
-               echo "#define CFG_STMICRO_BOOT" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_STMICRO_BOOT"  >> $(obj)include/config.h ; \
                echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
                cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
                $(XECHO) "... with ST Micro boot..." ; \
        fi; \
-       echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
+       echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
        $(XECHO) "... with $${FREQ}Hz input clock"
        @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
 
@@ -2053,20 +2053,20 @@ M5475GFE_config :       unconfig
        M5475FFE_config)        BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
        M5475GFE_config)        BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
        esac; \
-       echo "#define CFG_BUSCLK        133333333" > $(obj)include/config.h ; \
-       echo "#define CFG_BOOTSZ        $${BOOT}" >> $(obj)include/config.h ; \
-       echo "#define CFG_DRAMSZ        $${RAM}" >> $(obj)include/config.h ; \
+       echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
+       echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
+       echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
        if [ "$${RAM1}" != "0" ] ; then \
-               echo "#define CFG_DRAMSZ1       $${RAM1}" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_DRAMSZ1        $${RAM1}" >> $(obj)include/config.h ; \
        fi; \
        if [ "$${CODE}" != "0" ] ; then \
-               echo "#define CFG_NOR1SZ        $${CODE}" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
        fi; \
        if [ "$${VID}" == "1" ] ; then \
-               echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
        fi; \
        if [ "$${USB}" == "1" ] ; then \
-               echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
        fi
        @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
 
@@ -2088,20 +2088,20 @@ M5485HFE_config :       unconfig
        M5485GFE_config)        BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
        M5485HFE_config)        BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
        esac; \
-       echo "#define CFG_BUSCLK        100000000" > $(obj)include/config.h ; \
-       echo "#define CFG_BOOTSZ        $${BOOT}" >> $(obj)include/config.h ; \
-       echo "#define CFG_DRAMSZ        $${RAM}" >> $(obj)include/config.h ; \
+       echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
+       echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
+       echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
        if [ "$${RAM1}" != "0" ] ; then \
-               echo "#define CFG_DRAMSZ1       $${RAM1}" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_DRAMSZ1        $${RAM1}" >> $(obj)include/config.h ; \
        fi; \
        if [ "$${CODE}" != "0" ] ; then \
-               echo "#define CFG_NOR1SZ        $${CODE}" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
        fi; \
        if [ "$${VID}" == "1" ] ; then \
-               echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
        fi; \
        if [ "$${USB}" == "1" ] ; then \
-               echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
        fi
        @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
 
@@ -2120,11 +2120,11 @@ MPC8313ERDB_NAND_66_config: unconfig
        @mkdir -p $(obj)board/freescale/mpc8313erdb
        @if [ "$(findstring _33_,$@)" ] ; then \
                $(XECHO) -n "...33M ..." ; \
-               echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
        fi ; \
        if [ "$(findstring _66_,$@)" ] ; then \
                $(XECHO) -n "...66M..." ; \
-               echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
+               echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
        fi ; \
        if [ "$(findstring _NAND_,$@)" ] ; then \
                $(XECHO) -n "...NAND..." ; \
diff --git a/README b/README
index c63c72014147ab15a56a2ac1dfee0b166178445b..ebee20f63ea46f8929786bd50c111fc442fcc539 100644 (file)
--- a/README
+++ b/README
@@ -210,7 +210,7 @@ There are two classes of configuration variables:
 * Configuration _SETTINGS_:
   These depend on the hardware etc. and should not be meddled with if
   you don't know what you're doing; they have names beginning with
-  "CFG_".
+  "CONFIG_SYS_".
 
 Later we will add a configuration tool - probably similar to or even
 identical to what's used for the Linux kernel. Right now, we have to
@@ -284,10 +284,10 @@ The following options need to be configured:
 - Board flavour: (if CONFIG_MPC8260ADS is defined)
                CONFIG_ADSTYPE
                Possible values are:
-                       CFG_8260ADS     - original MPC8260ADS
-                       CFG_8266ADS     - MPC8266ADS
-                       CFG_PQ2FADS     - PQ2FADS-ZU or PQ2FADS-VR
-                       CFG_8272ADS     - MPC8272ADS
+                       CONFIG_SYS_8260ADS      - original MPC8260ADS
+                       CONFIG_SYS_8266ADS      - MPC8266ADS
+                       CONFIG_SYS_PQ2FADS      - PQ2FADS-ZU or PQ2FADS-VR
+                       CONFIG_SYS_8272ADS      - MPC8272ADS
 
 - MPC824X Family Member (if CONFIG_MPC824X is defined)
                Define exactly one of
@@ -302,28 +302,28 @@ The following options need to be configured:
                                          or XTAL/EXTAL)
 
 - 859/866/885 CPU options: (if using a MPC859 or MPC866 or MPC885 CPU):
-               CFG_8xx_CPUCLK_MIN
-               CFG_8xx_CPUCLK_MAX
+               CONFIG_SYS_8xx_CPUCLK_MIN
+               CONFIG_SYS_8xx_CPUCLK_MAX
                CONFIG_8xx_CPUCLK_DEFAULT
                        See doc/README.MPC866
 
-               CFG_MEASURE_CPUCLK
+               CONFIG_SYS_MEASURE_CPUCLK
 
                Define this to measure the actual CPU clock instead
                of relying on the correctness of the configured
                values. Mostly useful for board bringup to make sure
                the PLL is locked at the intended frequency. Note
                that this requires a (stable) reference clock (32 kHz
-               RTC clock or CFG_8XX_XIN)
+               RTC clock or CONFIG_SYS_8XX_XIN)
 
 - Intel Monahans options:
-               CFG_MONAHANS_RUN_MODE_OSC_RATIO
+               CONFIG_SYS_MONAHANS_RUN_MODE_OSC_RATIO
 
                Defines the Monahans run mode to oscillator
                ratio. Valid values are 8, 16, 24, 31. The core
                frequency is this value multiplied by 13 MHz.
 
-               CFG_MONAHANS_TURBO_RUN_MODE_RATIO
+               CONFIG_SYS_MONAHANS_TURBO_RUN_MODE_RATIO
 
                Defines the Monahans turbo mode to oscillator
                ratio. Valid values are 1 (default if undefined) and
@@ -436,7 +436,7 @@ The following options need to be configured:
                        CONFIG_CONSOLE_CURSOR   cursor drawing on/off
                                                (requires blink timer
                                                cf. i8042.c)
-                       CFG_CONSOLE_BLINK_COUNT blink interval (cf. i8042.c)
+                       CONFIG_SYS_CONSOLE_BLINK_COUNT blink interval (cf. i8042.c)
                        CONFIG_CONSOLE_TIME     display time/date info in
                                                upper right corner
                                                (requires CONFIG_CMD_DATE)
@@ -461,8 +461,8 @@ The following options need to be configured:
 - Console Baudrate:
                CONFIG_BAUDRATE - in bps
                Select one of the baudrates listed in
-               CFG_BAUDRATE_TABLE, see below.
-               CFG_BRGCLK_PRESCALE, baudrate prescale
+               CONFIG_SYS_BAUDRATE_TABLE, see below.
+               CONFIG_SYS_BRGCLK_PRESCALE, baudrate prescale
 
 - Interrupt driven serial port input:
                CONFIG_SERIAL_SOFTWARE_FIFO
@@ -546,7 +546,7 @@ The following options need to be configured:
 - Kgdb Serial Baudrate: (if CONFIG_CMD_KGDB is defined)
                CONFIG_KGDB_BAUDRATE
                Select one of the baudrates listed in
-               CFG_BAUDRATE_TABLE, see below.
+               CONFIG_SYS_BAUDRATE_TABLE, see below.
 
 - Monitor Functions:
                Monitor commands can be included or excluded
@@ -673,7 +673,7 @@ The following options need to be configured:
                CONFIG_RTC_DS164x       - use Dallas DS164x RTC
                CONFIG_RTC_ISL1208      - use Intersil ISL1208 RTC
                CONFIG_RTC_MAX6900      - use Maxim, Inc. MAX6900 RTC
-               CFG_RTC_DS1337_NOOSC    - Turn off the OSC output for DS1337
+               CONFIG_SYS_RTC_DS1337_NOOSC     - Turn off the OSC output for DS1337
 
                Note that if the RTC uses I2C, then the I2C interface
                must also be configured. See I2C Support, below.
@@ -711,11 +711,11 @@ The following options need to be configured:
                CONFIG_LBA48
 
                Set this to enable support for disks larger than 137GB
-               Also look at CFG_64BIT_LBA ,CFG_64BIT_VSPRINTF and CFG_64BIT_STRTOUL
+               Also look at CONFIG_SYS_64BIT_LBA ,CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL
                Whithout these , LBA48 support uses 32bit variables and will 'only'
                support disks up to 2.1TB.
 
-               CFG_64BIT_LBA:
+               CONFIG_SYS_64BIT_LBA:
                        When enabled, makes the IDE subsystem use 64bit sector addresses.
                        Default is 32bit.
 
@@ -724,12 +724,12 @@ The following options need to be configured:
                SYM53C8XX SCSI controller; define
                CONFIG_SCSI_SYM53C8XX to enable it.
 
-               CFG_SCSI_MAX_LUN [8], CFG_SCSI_MAX_SCSI_ID [7] and
-               CFG_SCSI_MAX_DEVICE [CFG_SCSI_MAX_SCSI_ID *
-               CFG_SCSI_MAX_LUN] can be adjusted to define the
+               CONFIG_SYS_SCSI_MAX_LUN [8], CONFIG_SYS_SCSI_MAX_SCSI_ID [7] and
+               CONFIG_SYS_SCSI_MAX_DEVICE [CONFIG_SYS_SCSI_MAX_SCSI_ID *
+               CONFIG_SYS_SCSI_MAX_LUN] can be adjusted to define the
                maximum numbers of LUNs, SCSI ID's and target
                devices.
-               CFG_SCSI_SYM53C8XX_CCF to fix clock timing (80Mhz)
+               CONFIG_SYS_SCSI_SYM53C8XX_CCF to fix clock timing (80Mhz)
 
 - NETWORK Support (PCI):
                CONFIG_E1000
@@ -811,7 +811,7 @@ The following options need to be configured:
                        CONFIG_USB_CONFIG
                                for differential drivers: 0x00001000
                                for single ended drivers: 0x00005000
-                       CFG_USB_EVENT_POLL
+                       CONFIG_SYS_USB_EVENT_POLL
                                May be defined to allow interrupt polling
                                instead of using asynchronous interrupts
 
@@ -838,18 +838,18 @@ The following options need to be configured:
                        Define this to have a tty type of device available to
                        talk to the UDC device
 
-                       CFG_CONSOLE_IS_IN_ENV
+                       CONFIG_SYS_CONSOLE_IS_IN_ENV
                        Define this if you want stdin, stdout &/or stderr to
                        be set to usbtty.
 
                        mpc8xx:
-                               CFG_USB_EXTC_CLK 0xBLAH
+                               CONFIG_SYS_USB_EXTC_CLK 0xBLAH
                                Derive USB clock from external clock "blah"
-                               - CFG_USB_EXTC_CLK 0x02
+                               - CONFIG_SYS_USB_EXTC_CLK 0x02
 
-                               CFG_USB_BRG_CLK 0xBLAH
+                               CONFIG_SYS_USB_BRG_CLK 0xBLAH
                                Derive USB clock from brgclk
-                               - CFG_USB_BRG_CLK 0x04
+                               - CONFIG_SYS_USB_BRG_CLK 0x04
 
                If you have a USB-IF assigned VendorID then you may wish to
                define your own vendor specific values either in BoardName.h
@@ -891,16 +891,16 @@ The following options need to be configured:
                CONFIG_JFFS2_NAND_DEV
                Define these for a default partition on a NAND device
 
-               CFG_JFFS2_FIRST_SECTOR,
-               CFG_JFFS2_FIRST_BANK, CFG_JFFS2_NUM_BANKS
+               CONFIG_SYS_JFFS2_FIRST_SECTOR,
+               CONFIG_SYS_JFFS2_FIRST_BANK, CONFIG_SYS_JFFS2_NUM_BANKS
                Define these for a default partition on a NOR device
 
-               CFG_JFFS_CUSTOM_PART
+               CONFIG_SYS_JFFS_CUSTOM_PART
                Define this to create an own partition. You have to provide a
                function struct part_info* jffs2_part_info(int part_num)
 
                If you define only one JFFS2 partition you may also want to
-               #define CFG_JFFS_SINGLE_PART    1
+               #define CONFIG_SYS_JFFS_SINGLE_PART     1
                to disable the command chpart. This is the default when you
                have not defined a custom partition
 
@@ -1014,7 +1014,7 @@ The following options need to be configured:
                        320x240. Black & white.
 
                Normally display is black on white background; define
-               CFG_WHITE_ON_BLACK to get it inverted.
+               CONFIG_SYS_WHITE_ON_BLACK to get it inverted.
 
 - Splash Screen Support: CONFIG_SPLASH_SCREEN
 
@@ -1041,7 +1041,7 @@ The following options need to be configured:
                compressed images are supported.
 
                NOTE: the bzip2 algorithm requires a lot of RAM, so
-               the malloc area (as defined by CFG_MALLOC_LEN) should
+               the malloc area (as defined by CONFIG_SYS_MALLOC_LEN) should
                be at least 4MB.
 
                CONFIG_LZMA
@@ -1065,7 +1065,7 @@ The following options need to be configured:
 
                Use the lzmainfo tool to determinate the lc and lp values and
                then calculate the amount of needed dynamic memory (ensuring
-               the appropriate CFG_MALLOC_LEN value).
+               the appropriate CONFIG_SYS_MALLOC_LEN value).
 
 - MII/PHY support:
                CONFIG_PHY_ADDR
@@ -1282,15 +1282,15 @@ The following options need to be configured:
                There are several other quantities that must also be
                defined when you define CONFIG_HARD_I2C or CONFIG_SOFT_I2C.
 
-               In both cases you will need to define CFG_I2C_SPEED
+               In both cases you will need to define CONFIG_SYS_I2C_SPEED
                to be the frequency (in Hz) at which you wish your i2c bus
-               to run and CFG_I2C_SLAVE to be the address of this node (ie
+               to run and CONFIG_SYS_I2C_SLAVE to be the address of this node (ie
                the CPU's i2c node address).
 
                Now, the u-boot i2c code for the mpc8xx (cpu/mpc8xx/i2c.c)
                sets the CPU up as a master node and so its address should
                therefore be cleared to 0 (See, eg, MPC823e User's Manual
-               p.16-473). So, set CFG_I2C_SLAVE to 0.
+               p.16-473). So, set CONFIG_SYS_I2C_SLAVE to 0.
 
                That's all that's required for CONFIG_HARD_I2C.
 
@@ -1361,7 +1361,7 @@ The following options need to be configured:
 
                #define I2C_DELAY  udelay(2)
 
-               CFG_I2C_INIT_BOARD
+               CONFIG_SYS_I2C_INIT_BOARD
 
                When a board is reset during an i2c bus transfer
                chips might think that the current transfer is still
@@ -1385,7 +1385,7 @@ The following options need to be configured:
                active.  To switch to a different bus, use the 'i2c dev' command.
                Note that bus numbering is zero-based.
 
-               CFG_I2C_NOPROBES
+               CONFIG_SYS_I2C_NOPROBES
 
                This option specifies a list of I2C devices that will be skipped
                when the 'i2c probe' command is issued (or 'iprobe' using the legacy
@@ -1394,31 +1394,31 @@ The following options need to be configured:
 
                e.g.
                        #undef  CONFIG_I2C_MULTI_BUS
-                       #define CFG_I2C_NOPROBES        {0x50,0x68}
+                       #define CONFIG_SYS_I2C_NOPROBES {0x50,0x68}
 
                will skip addresses 0x50 and 0x68 on a board with one I2C bus
 
                        #define CONFIG_I2C_MULTI_BUS
-                       #define CFG_I2C_MULTI_NOPROBES  {{0,0x50},{0,0x68},{1,0x54}}
+                       #define CONFIG_SYS_I2C_MULTI_NOPROBES   {{0,0x50},{0,0x68},{1,0x54}}
 
                will skip addresses 0x50 and 0x68 on bus 0 and address 0x54 on bus 1
 
-               CFG_SPD_BUS_NUM
+               CONFIG_SYS_SPD_BUS_NUM
 
                If defined, then this indicates the I2C bus number for DDR SPD.
                If not defined, then U-Boot assumes that SPD is on I2C bus 0.
 
-               CFG_RTC_BUS_NUM
+               CONFIG_SYS_RTC_BUS_NUM
 
                If defined, then this indicates the I2C bus number for the RTC.
                If not defined, then U-Boot assumes that RTC is on I2C bus 0.
 
-               CFG_DTT_BUS_NUM
+               CONFIG_SYS_DTT_BUS_NUM
 
                If defined, then this indicates the I2C bus number for the DTT.
                If not defined, then U-Boot assumes that DTT is on I2C bus 0.
 
-               CFG_I2C_DTT_ADDR:
+               CONFIG_SYS_I2C_DTT_ADDR:
 
                If defined, specifies the I2C address of the DTT device.
                If not defined, then U-Boot uses predefined value for
@@ -1529,11 +1529,11 @@ The following options need to be configured:
 
                Specify the number of FPGA devices to support.
 
-               CFG_FPGA_PROG_FEEDBACK
+               CONFIG_SYS_FPGA_PROG_FEEDBACK
 
                Enable printing of hash marks during FPGA configuration.
 
-               CFG_FPGA_CHECK_BUSY
+               CONFIG_SYS_FPGA_CHECK_BUSY
 
                Enable checks on FPGA configuration interface busy
                status by the configuration function. This option
@@ -1545,29 +1545,29 @@ The following options need to be configured:
                If defined, a function that provides delays in the FPGA
                configuration driver.
 
-               CFG_FPGA_CHECK_CTRLC
+               CONFIG_SYS_FPGA_CHECK_CTRLC
                Allow Control-C to interrupt FPGA configuration
 
-               CFG_FPGA_CHECK_ERROR
+               CONFIG_SYS_FPGA_CHECK_ERROR
 
                Check for configuration errors during FPGA bitfile
                loading. For example, abort during Virtex II
                configuration if the INIT_B line goes low (which
                indicated a CRC error).
 
-               CFG_FPGA_WAIT_INIT
+               CONFIG_SYS_FPGA_WAIT_INIT
 
                Maximum time to wait for the INIT_B line to deassert
                after PROB_B has been deasserted during a Virtex II
                FPGA configuration sequence. The default time is 500
                ms.
 
-               CFG_FPGA_WAIT_BUSY
+               CONFIG_SYS_FPGA_WAIT_BUSY
 
                Maximum time to wait for BUSY to deassert during
                Virtex II FPGA configuration. The default is 5 ms.
 
-               CFG_FPGA_WAIT_CONFIG
+               CONFIG_SYS_FPGA_WAIT_CONFIG
 
                Time to wait after FPGA configuration. The default is
                200 ms.
@@ -1665,7 +1665,7 @@ The following options need to be configured:
                for the "hush" shell.
 
 
-               CFG_HUSH_PARSER
+               CONFIG_SYS_HUSH_PARSER
 
                Define this variable to enable the "hush" shell (from
                Busybox) as command line interpreter, thus enabling
@@ -1677,7 +1677,7 @@ The following options need to be configured:
                with a somewhat smaller memory footprint.
 
 
-               CFG_PROMPT_HUSH_PS2
+               CONFIG_SYS_PROMPT_HUSH_PS2
 
                This defines the secondary prompt string, which is
                printed when the command interpreter needs more input
@@ -1749,10 +1749,10 @@ The following options need to be configured:
                Adding this option adds support for Xilinx SystemACE
                chips attached via some sort of local bus. The address
                of the chip must also be defined in the
-               CFG_SYSTEMACE_BASE macro. For example:
+               CONFIG_SYS_SYSTEMACE_BASE macro. For example:
 
                #define CONFIG_SYSTEMACE
-               #define CFG_SYSTEMACE_BASE 0xf0000000
+               #define CONFIG_SYS_SYSTEMACE_BASE 0xf0000000
 
                When SystemACE support is added, the "ace" device type
                becomes available to the fat commands, i.e. fatls.
@@ -2000,53 +2000,53 @@ Modem Support:
 Configuration Settings:
 -----------------------
 
-- CFG_LONGHELP: Defined when you want long help messages included;
+- CONFIG_SYS_LONGHELP: Defined when you want long help messages included;
                undefine this when you're short of memory.
 
-- CFG_PROMPT:  This is what U-Boot prints on the console to
+- CONFIG_SYS_PROMPT:   This is what U-Boot prints on the console to
                prompt for user input.
 
-- CFG_CBSIZE:  Buffer size for input from the Console
+- CONFIG_SYS_CBSIZE:   Buffer size for input from the Console
 
-- CFG_PBSIZE:  Buffer size for Console output
+- CONFIG_SYS_PBSIZE:   Buffer size for Console output
 
-- CFG_MAXARGS: max. Number of arguments accepted for monitor commands
+- CONFIG_SYS_MAXARGS:  max. Number of arguments accepted for monitor commands
 
-- CFG_BARGSIZE: Buffer size for Boot Arguments which are passed to
+- CONFIG_SYS_BARGSIZE: Buffer size for Boot Arguments which are passed to
                the application (usually a Linux kernel) when it is
                booted
 
-- CFG_BAUDRATE_TABLE:
+- CONFIG_SYS_BAUDRATE_TABLE:
                List of legal baudrate settings for this board.
 
-- CFG_CONSOLE_INFO_QUIET
+- CONFIG_SYS_CONSOLE_INFO_QUIET
                Suppress display of console information at boot.
 
-- CFG_CONSOLE_IS_IN_ENV
+- CONFIG_SYS_CONSOLE_IS_IN_ENV
                If the board specific function
                        extern int overwrite_console (void);
                returns 1, the stdin, stderr and stdout are switched to the
                serial port, else the settings in the environment are used.
 
-- CFG_CONSOLE_OVERWRITE_ROUTINE
+- CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
                Enable the call to overwrite_console().
 
-- CFG_CONSOLE_ENV_OVERWRITE
+- CONFIG_SYS_CONSOLE_ENV_OVERWRITE
                Enable overwrite of previous console environment settings.
 
-- CFG_MEMTEST_START, CFG_MEMTEST_END:
+- CONFIG_SYS_MEMTEST_START, CONFIG_SYS_MEMTEST_END:
                Begin and End addresses of the area used by the
                simple memory test.
 
-- CFG_ALT_MEMTEST:
+- CONFIG_SYS_ALT_MEMTEST:
                Enable an alternate, more extensive memory test.
 
-- CFG_MEMTEST_SCRATCH:
+- CONFIG_SYS_MEMTEST_SCRATCH:
                Scratch address used by the alternate memory test
                You only need to set this if address zero isn't writeable
 
-- CFG_MEM_TOP_HIDE (PPC only):
-               If CFG_MEM_TOP_HIDE is defined in the board config header,
+- CONFIG_SYS_MEM_TOP_HIDE (PPC only):
+               If CONFIG_SYS_MEM_TOP_HIDE is defined in the board config header,
                this specified memory area will get subtracted from the top
                (end) of RAM and won't get "touched" at all by U-Boot. By
                fixing up gd->ram_size the Linux kernel should gets passed
@@ -2066,75 +2066,75 @@ Configuration Settings:
                non page size aligned address and this could cause major
                problems.
 
-- CFG_TFTP_LOADADDR:
+- CONFIG_SYS_TFTP_LOADADDR:
                Default load address for network file downloads
 
-- CFG_LOADS_BAUD_CHANGE:
+- CONFIG_SYS_LOADS_BAUD_CHANGE:
                Enable temporary baudrate change while serial download
 
-- CFG_SDRAM_BASE:
+- CONFIG_SYS_SDRAM_BASE:
                Physical start address of SDRAM. _Must_ be 0 here.
 
-- CFG_MBIO_BASE:
+- CONFIG_SYS_MBIO_BASE:
                Physical start address of Motherboard I/O (if using a
                Cogent motherboard)
 
-- CFG_FLASH_BASE:
+- CONFIG_SYS_FLASH_BASE:
                Physical start address of Flash memory.
 
-- CFG_MONITOR_BASE:
+- CONFIG_SYS_MONITOR_BASE:
                Physical start address of boot monitor code (set by
                make config files to be same as the text base address
                (TEXT_BASE) used when linking) - same as
-               CFG_FLASH_BASE when booting from flash.
+               CONFIG_SYS_FLASH_BASE when booting from flash.
 
-- CFG_MONITOR_LEN:
+- CONFIG_SYS_MONITOR_LEN:
                Size of memory reserved for monitor code, used to
                determine _at_compile_time_ (!) if the environment is
                embedded within the U-Boot image, or in a separate
                flash sector.
 
-- CFG_MALLOC_LEN:
+- CONFIG_SYS_MALLOC_LEN:
                Size of DRAM reserved for malloc() use.
 
-- CFG_BOOTM_LEN:
+- CONFIG_SYS_BOOTM_LEN:
                Normally compressed uImages are limited to an
                uncompressed size of 8 MBytes. If this is not enough,
-               you can define CFG_BOOTM_LEN in your board config file
+               you can define CONFIG_SYS_BOOTM_LEN in your board config file
                to adjust this setting to your needs.
 
-- CFG_BOOTMAPSZ:
+- CONFIG_SYS_BOOTMAPSZ:
                Maximum size of memory mapped by the startup code of
                the Linux kernel; all data that must be processed by
                the Linux kernel (bd_info, boot arguments, FDT blob if
                used) must be put below this limit, unless "bootm_low"
                enviroment variable is defined and non-zero. In such case
                all data for the Linux kernel must be between "bootm_low"
-               and "bootm_low" + CFG_BOOTMAPSZ.
+               and "bootm_low" + CONFIG_SYS_BOOTMAPSZ.
 
-- CFG_MAX_FLASH_BANKS:
+- CONFIG_SYS_MAX_FLASH_BANKS:
                Max number of Flash memory banks
 
-- CFG_MAX_FLASH_SECT:
+- CONFIG_SYS_MAX_FLASH_SECT:
                Max number of sectors on a Flash chip
 
-- CFG_FLASH_ERASE_TOUT:
+- CONFIG_SYS_FLASH_ERASE_TOUT:
                Timeout for Flash erase operations (in ms)
 
-- CFG_FLASH_WRITE_TOUT:
+- CONFIG_SYS_FLASH_WRITE_TOUT:
                Timeout for Flash write operations (in ms)
 
-- CFG_FLASH_LOCK_TOUT
+- CONFIG_SYS_FLASH_LOCK_TOUT
                Timeout for Flash set sector lock bit operation (in ms)
 
-- CFG_FLASH_UNLOCK_TOUT
+- CONFIG_SYS_FLASH_UNLOCK_TOUT
                Timeout for Flash clear lock bits operation (in ms)
 
-- CFG_FLASH_PROTECTION
+- CONFIG_SYS_FLASH_PROTECTION
                If defined, hardware flash sectors protection is used
                instead of U-Boot software protection.
 
-- CFG_DIRECT_FLASH_TFTP:
+- CONFIG_SYS_DIRECT_FLASH_TFTP:
 
                Enable TFTP transfers directly to flash memory;
                without this option such a download has to be
@@ -2147,7 +2147,7 @@ Configuration Settings:
                too limited to allow for a temporary copy of the
                downloaded image) this option may be very useful.
 
-- CFG_FLASH_CFI:
+- CONFIG_SYS_FLASH_CFI:
                Define if the flash driver uses extra elements in the
                common flash structure for storing flash geometry.
 
@@ -2155,14 +2155,14 @@ Configuration Settings:
                This option also enables the building of the cfi_flash driver
                in the drivers directory
 
-- CFG_FLASH_USE_BUFFER_WRITE
+- CONFIG_SYS_FLASH_USE_BUFFER_WRITE
                Use buffered writes to flash.
 
 - CONFIG_FLASH_SPANSION_S29WS_N
                s29ws-n MirrorBit flash has non-standard addresses for buffered
                write commands.
 
-- CFG_FLASH_QUIET_TEST
+- CONFIG_SYS_FLASH_QUIET_TEST
                If this option is defined, the common CFI flash doesn't
                print it's warning upon not recognized FLASH banks. This
                is useful, if some of the configured banks are only
@@ -2173,7 +2173,7 @@ Configuration Settings:
                digits and dots.  Recommended value: 45 (9..1) for 80
                column displays, 15 (3..1) for 40 column displays.
 
-- CFG_RX_ETH_BUFFER:
+- CONFIG_SYS_RX_ETH_BUFFER:
                Defines the number of Ethernet receive buffers. On some
                Ethernet controllers it is recommended to set this value
                to 8 or even higher (EEPRO100 or 405 EMAC), since all
@@ -2208,7 +2208,7 @@ following configurations:
           type flash chips the second sector can be used: the offset
           for this sector is given here.
 
-          CONFIG_ENV_OFFSET is used relative to CFG_FLASH_BASE.
+          CONFIG_ENV_OFFSET is used relative to CONFIG_SYS_FLASH_BASE.
 
        - CONFIG_ENV_ADDR:
 
@@ -2291,24 +2291,24 @@ to save the current settings.
          These two #defines specify the offset and size of the
          environment area within the total memory of your EEPROM.
 
-       - CFG_I2C_EEPROM_ADDR:
+       - CONFIG_SYS_I2C_EEPROM_ADDR:
          If defined, specified the chip address of the EEPROM device.
          The default address is zero.
 
-       - CFG_EEPROM_PAGE_WRITE_BITS:
+       - CONFIG_SYS_EEPROM_PAGE_WRITE_BITS:
          If defined, the number of bits used to address bytes in a
          single page in the EEPROM device.  A 64 byte page, for example
          would require six bits.
 
-       - CFG_EEPROM_PAGE_WRITE_DELAY_MS:
+       - CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS:
          If defined, the number of milliseconds to delay between
          page writes.  The default is zero milliseconds.
 
-       - CFG_I2C_EEPROM_ADDR_LEN:
+       - CONFIG_SYS_I2C_EEPROM_ADDR_LEN:
          The length in bytes of the EEPROM memory array address.  Note
          that this is NOT the chip address length!
 
-       - CFG_I2C_EEPROM_ADDR_OVERFLOW:
+       - CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW:
          EEPROM chips that implement "address overflow" are ones
          like Catalyst 24WC04/08/16 which has 9/10/11 bits of
          address and the extra bits end up in the "chip address" bit
@@ -2319,7 +2319,7 @@ to save the current settings.
          still be one byte because the extra address bits are hidden
          in the chip address.
 
-       - CFG_EEPROM_SIZE:
+       - CONFIG_SYS_EEPROM_SIZE:
          The size in bytes of the EEPROM device.
 
 
@@ -2358,7 +2358,7 @@ to save the current settings.
        to a block boundary, and CONFIG_ENV_SIZE must be a multiple of
        the NAND devices block size.
 
-- CFG_SPI_INIT_OFFSET
+- CONFIG_SYS_SPI_INIT_OFFSET
 
        Defines offset to the initial SPI buffer area in DPRAM. The
        area is used at an early stage (ROM part) if the environment
@@ -2384,29 +2384,29 @@ Note: once the monitor has been relocated, then it will complain if
 the default environment is used; a new CRC is computed as soon as you
 use the "saveenv" command to store a valid environment.
 
-- CFG_FAULT_ECHO_LINK_DOWN:
+- CONFIG_SYS_FAULT_ECHO_LINK_DOWN:
                Echo the inverted Ethernet link state to the fault LED.
 
-               Note: If this option is active, then CFG_FAULT_MII_ADDR
+               Note: If this option is active, then CONFIG_SYS_FAULT_MII_ADDR
                      also needs to be defined.
 
-- CFG_FAULT_MII_ADDR:
+- CONFIG_SYS_FAULT_MII_ADDR:
                MII address of the PHY to check for the Ethernet link state.
 
-- CFG_64BIT_VSPRINTF:
+- CONFIG_SYS_64BIT_VSPRINTF:
                Makes vsprintf (and all *printf functions) support printing
                of 64bit values by using the L quantifier
 
-- CFG_64BIT_STRTOUL:
+- CONFIG_SYS_64BIT_STRTOUL:
                Adds simple_strtoull that returns a 64bit value
 
 Low Level (hardware related) configuration options:
 ---------------------------------------------------
 
-- CFG_CACHELINE_SIZE:
+- CONFIG_SYS_CACHELINE_SIZE:
                Cache Line Size of the CPU.
 
-- CFG_DEFAULT_IMMR:
+- CONFIG_SYS_DEFAULT_IMMR:
                Default address of the IMMR after system reset.
 
                Needed on some 8260 systems (MPC8260ADS, PQ2FADS-ZU,
@@ -2414,36 +2414,36 @@ Low Level (hardware related) configuration options:
                the IMMR register after a reset.
 
 - Floppy Disk Support:
-               CFG_FDC_DRIVE_NUMBER
+               CONFIG_SYS_FDC_DRIVE_NUMBER
 
                the default drive number (default value 0)
 
-               CFG_ISA_IO_STRIDE
+               CONFIG_SYS_ISA_IO_STRIDE
 
                defines the spacing between FDC chipset registers
                (default value 1)
 
-               CFG_ISA_IO_OFFSET
+               CONFIG_SYS_ISA_IO_OFFSET
 
                defines the offset of register from address. It
                depends on which part of the data bus is connected to
                the FDC chipset. (default value 0)
 
-               If CFG_ISA_IO_STRIDE CFG_ISA_IO_OFFSET and
-               CFG_FDC_DRIVE_NUMBER are undefined, they take their
+               If CONFIG_SYS_ISA_IO_STRIDE CONFIG_SYS_ISA_IO_OFFSET and
+               CONFIG_SYS_FDC_DRIVE_NUMBER are undefined, they take their
                default value.
 
-               if CFG_FDC_HW_INIT is defined, then the function
+               if CONFIG_SYS_FDC_HW_INIT is defined, then the function
                fdc_hw_init() is called at the beginning of the FDC
                setup. fdc_hw_init() must be provided by the board
                source code. It is used to make hardware dependant
                initializations.
 
-- CFG_IMMR:    Physical address of the Internal Memory.
+- CONFIG_SYS_IMMR:     Physical address of the Internal Memory.
                DO NOT CHANGE unless you know exactly what you're
                doing! (11-4) [MPC8xx/82xx systems only]
 
-- CFG_INIT_RAM_ADDR:
+- CONFIG_SYS_INIT_RAM_ADDR:
 
                Start address of memory area that can be used for
                initial data and stack; please note that this must be
@@ -2458,91 +2458,91 @@ Low Level (hardware related) configuration options:
                - MPC824X: data cache
                - PPC4xx:  data cache
 
-- CFG_GBL_DATA_OFFSET:
+- CONFIG_SYS_GBL_DATA_OFFSET:
 
                Offset of the initial data structure in the memory
-               area defined by CFG_INIT_RAM_ADDR. Usually
-               CFG_GBL_DATA_OFFSET is chosen such that the initial
+               area defined by CONFIG_SYS_INIT_RAM_ADDR. Usually
+               CONFIG_SYS_GBL_DATA_OFFSET is chosen such that the initial
                data is located at the end of the available space
-               (sometimes written as (CFG_INIT_RAM_END -
-               CFG_INIT_DATA_SIZE), and the initial stack is just
-               below that area (growing from (CFG_INIT_RAM_ADDR +
-               CFG_GBL_DATA_OFFSET) downward.
+               (sometimes written as (CONFIG_SYS_INIT_RAM_END -
+               CONFIG_SYS_INIT_DATA_SIZE), and the initial stack is just
+               below that area (growing from (CONFIG_SYS_INIT_RAM_ADDR +
+               CONFIG_SYS_GBL_DATA_OFFSET) downward.
 
        Note:
                On the MPC824X (or other systems that use the data
                cache for initial memory) the address chosen for
-               CFG_INIT_RAM_ADDR is basically arbitrary - it must
+               CONFIG_SYS_INIT_RAM_ADDR is basically arbitrary - it must
                point to an otherwise UNUSED address space between
                the top of RAM and the start of the PCI space.
 
-- CFG_SIUMCR:  SIU Module Configuration (11-6)
+- CONFIG_SYS_SIUMCR:   SIU Module Configuration (11-6)
 
-- CFG_SYPCR:   System Protection Control (11-9)
+- CONFIG_SYS_SYPCR:    System Protection Control (11-9)
 
-- CFG_TBSCR:   Time Base Status and Control (11-26)
+- CONFIG_SYS_TBSCR:    Time Base Status and Control (11-26)
 
-- CFG_PISCR:   Periodic Interrupt Status and Control (11-31)
+- CONFIG_SYS_PISCR:    Periodic Interrupt Status and Control (11-31)
 
-- CFG_PLPRCR:  PLL, Low-Power, and Reset Control Register (15-30)
+- CONFIG_SYS_PLPRCR:   PLL, Low-Power, and Reset Control Register (15-30)
 
-- CFG_SCCR:    System Clock and reset Control Register (15-27)
+- CONFIG_SYS_SCCR:     System Clock and reset Control Register (15-27)
 
-- CFG_OR_TIMING_SDRAM:
+- CONFIG_SYS_OR_TIMING_SDRAM:
                SDRAM timing
 
-- CFG_MAMR_PTA:
+- CONFIG_SYS_MAMR_PTA:
                periodic timer for refresh
 
-- CFG_DER:     Debug Event Register (37-47)
+- CONFIG_SYS_DER:      Debug Event Register (37-47)
 
-- FLASH_BASE0_PRELIM, FLASH_BASE1_PRELIM, CFG_REMAP_OR_AM,
-  CFG_PRELIM_OR_AM, CFG_OR_TIMING_FLASH, CFG_OR0_REMAP,
-  CFG_OR0_PRELIM, CFG_BR0_PRELIM, CFG_OR1_REMAP, CFG_OR1_PRELIM,
-  CFG_BR1_PRELIM:
+- FLASH_BASE0_PRELIM, FLASH_BASE1_PRELIM, CONFIG_SYS_REMAP_OR_AM,
+  CONFIG_SYS_PRELIM_OR_AM, CONFIG_SYS_OR_TIMING_FLASH, CONFIG_SYS_OR0_REMAP,
+  CONFIG_SYS_OR0_PRELIM, CONFIG_SYS_BR0_PRELIM, CONFIG_SYS_OR1_REMAP, CONFIG_SYS_OR1_PRELIM,
+  CONFIG_SYS_BR1_PRELIM:
                Memory Controller Definitions: BR0/1 and OR0/1 (FLASH)
 
 - SDRAM_BASE2_PRELIM, SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE,
-  CFG_OR_TIMING_SDRAM, CFG_OR2_PRELIM, CFG_BR2_PRELIM,
-  CFG_OR3_PRELIM, CFG_BR3_PRELIM:
+  CONFIG_SYS_OR_TIMING_SDRAM, CONFIG_SYS_OR2_PRELIM, CONFIG_SYS_BR2_PRELIM,
+  CONFIG_SYS_OR3_PRELIM, CONFIG_SYS_BR3_PRELIM:
                Memory Controller Definitions: BR2/3 and OR2/3 (SDRAM)
 
-- CFG_MAMR_PTA, CFG_MPTPR_2BK_4K, CFG_MPTPR_1BK_4K, CFG_MPTPR_2BK_8K,
-  CFG_MPTPR_1BK_8K, CFG_MAMR_8COL, CFG_MAMR_9COL:
+- CONFIG_SYS_MAMR_PTA, CONFIG_SYS_MPTPR_2BK_4K, CONFIG_SYS_MPTPR_1BK_4K, CONFIG_SYS_MPTPR_2BK_8K,
+  CONFIG_SYS_MPTPR_1BK_8K, CONFIG_SYS_MAMR_8COL, CONFIG_SYS_MAMR_9COL:
                Machine Mode Register and Memory Periodic Timer
                Prescaler definitions (SDRAM timing)
 
-- CFG_I2C_UCODE_PATCH, CFG_I2C_DPMEM_OFFSET [0x1FC0]:
+- CONFIG_SYS_I2C_UCODE_PATCH, CONFIG_SYS_I2C_DPMEM_OFFSET [0x1FC0]:
                enable I2C microcode relocation patch (MPC8xx);
                define relocation offset in DPRAM [DSP2]
 
-- CFG_SMC_UCODE_PATCH, CFG_SMC_DPMEM_OFFSET [0x1FC0]:
+- CONFIG_SYS_SMC_UCODE_PATCH, CONFIG_SYS_SMC_DPMEM_OFFSET [0x1FC0]:
                enable SMC microcode relocation patch (MPC8xx);
                define relocation offset in DPRAM [SMC1]
 
-- CFG_SPI_UCODE_PATCH, CFG_SPI_DPMEM_OFFSET [0x1FC0]:
+- CONFIG_SYS_SPI_UCODE_PATCH, CONFIG_SYS_SPI_DPMEM_OFFSET [0x1FC0]:
                enable SPI microcode relocation patch (MPC8xx);
                define relocation offset in DPRAM [SCC4]
 
-- CFG_USE_OSCCLK:
+- CONFIG_SYS_USE_OSCCLK:
                Use OSCM clock mode on MBX8xx board. Be careful,
                wrong setting might damage your board. Read
                doc/README.MBX before setting this variable!
 
-- CFG_CPM_POST_WORD_ADDR: (MPC8xx, MPC8260 only)
+- CONFIG_SYS_CPM_POST_WORD_ADDR: (MPC8xx, MPC8260 only)
                Offset of the bootmode word in DPRAM used by post
                (Power On Self Tests). This definition overrides
                #define'd default value in commproc.h resp.
                cpm_8260.h.
 
-- CFG_PCI_SLV_MEM_LOCAL, CFG_PCI_SLV_MEM_BUS, CFG_PICMR0_MASK_ATTRIB,
-  CFG_PCI_MSTR0_LOCAL, CFG_PCIMSK0_MASK, CFG_PCI_MSTR1_LOCAL,
-  CFG_PCIMSK1_MASK, CFG_PCI_MSTR_MEM_LOCAL, CFG_PCI_MSTR_MEM_BUS,
-  CFG_CPU_PCI_MEM_START, CFG_PCI_MSTR_MEM_SIZE, CFG_POCMR0_MASK_ATTRIB,
-  CFG_PCI_MSTR_MEMIO_LOCAL, CFG_PCI_MSTR_MEMIO_BUS, CPU_PCI_MEMIO_START,
-  CFG_PCI_MSTR_MEMIO_SIZE, CFG_POCMR1_MASK_ATTRIB, CFG_PCI_MSTR_IO_LOCAL,
-  CFG_PCI_MSTR_IO_BUS, CFG_CPU_PCI_IO_START, CFG_PCI_MSTR_IO_SIZE,
-  CFG_POCMR2_MASK_ATTRIB: (MPC826x only)
+- CONFIG_SYS_PCI_SLV_MEM_LOCAL, CONFIG_SYS_PCI_SLV_MEM_BUS, CONFIG_SYS_PICMR0_MASK_ATTRIB,
+  CONFIG_SYS_PCI_MSTR0_LOCAL, CONFIG_SYS_PCIMSK0_MASK, CONFIG_SYS_PCI_MSTR1_LOCAL,
+  CONFIG_SYS_PCIMSK1_MASK, CONFIG_SYS_PCI_MSTR_MEM_LOCAL, CONFIG_SYS_PCI_MSTR_MEM_BUS,
+  CONFIG_SYS_CPU_PCI_MEM_START, CONFIG_SYS_PCI_MSTR_MEM_SIZE, CONFIG_SYS_POCMR0_MASK_ATTRIB,
+  CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL, CONFIG_SYS_PCI_MSTR_MEMIO_BUS, CPU_PCI_MEMIO_START,
+  CONFIG_SYS_PCI_MSTR_MEMIO_SIZE, CONFIG_SYS_POCMR1_MASK_ATTRIB, CONFIG_SYS_PCI_MSTR_IO_LOCAL,
+  CONFIG_SYS_PCI_MSTR_IO_BUS, CONFIG_SYS_CPU_PCI_IO_START, CONFIG_SYS_PCI_MSTR_IO_SIZE,
+  CONFIG_SYS_POCMR2_MASK_ATTRIB: (MPC826x only)
                Overrides the default PCI memory map in cpu/mpc8260/pci.c if set.
 
 - CONFIG_SPD_EEPROM
@@ -2552,16 +2552,16 @@ Low Level (hardware related) configuration options:
   SPD_EEPROM_ADDRESS
                I2C address of the SPD EEPROM
 
-- CFG_SPD_BUS_NUM
+- CONFIG_SYS_SPD_BUS_NUM
                If SPD EEPROM is on an I2C bus other than the first
                one, specify here. Note that the value must resolve
                to something your driver can deal with.
 
-- CFG_83XX_DDR_USES_CS0
+- CONFIG_SYS_83XX_DDR_USES_CS0
                Only for 83xx systems. If specified, then DDR should
                be configured using CS0 and CS1 instead of CS2 and CS3.
 
-- CFG_83XX_DDR_USES_CS0
+- CONFIG_SYS_83XX_DDR_USES_CS0
                Only for 83xx systems. If specified, then DDR should
                be configured using CS0 and CS1 instead of CS2 and CS3.
 
@@ -2861,7 +2861,7 @@ Some configuration options can be set using Environment Variables:
                  for use by the bootm command. See also "bootm_size"
                  environment variable. Address defined by "bootm_low" is
                  also the base of the initial memory mapping for the Linux
-                 kernel -- see the description of CFG_BOOTMAPSZ.
+                 kernel -- see the description of CONFIG_SYS_BOOTMAPSZ.
 
   bootm_size   - Memory range available for image processing in the bootm
                  command can be restricted. This variable is given as
@@ -2909,7 +2909,7 @@ Some configuration options can be set using Environment Variables:
                  is usually what you want since it allows for
                  maximum initrd size. If for some reason you want to
                  make sure that the initrd image is loaded below the
-                 CFG_BOOTMAPSZ limit, you can set this environment
+                 CONFIG_SYS_BOOTMAPSZ limit, you can set this environment
                  variable to a value of "no" or "off" or "0".
                  Alternatively, you can set it to a maximum upper
                  address to use (U-Boot will still check that it
@@ -3183,7 +3183,7 @@ Just make sure your machine specific header file (for instance
 include/asm-ppc/tqm8xx.h) includes the same definition of the Board
 Information structure as we define in include/asm-<arch>/u-boot.h,
 and make sure that your definition of IMAP_ADDR uses the same value
-as your U-Boot configuration in CFG_IMMR.
+as your U-Boot configuration in CONFIG_SYS_IMMR.
 
 
 Configuring the Linux kernel:
@@ -3730,7 +3730,7 @@ locked as (mis-) used as memory, etc.
        cause you grief during the initial boot! It is frequently not
        used.
 
-       CFG_INIT_RAM_ADDR should be somewhere that won't interfere
+       CONFIG_SYS_INIT_RAM_ADDR should be somewhere that won't interfere
        with your processor/board/system design. The default value
        you will find in any recent u-boot distribution in
        walnut.h should work for you. I'd set it to a value larger
@@ -3827,7 +3827,7 @@ U-Boot is installed in the first 128 kB of the first Flash bank (on
 TQM8xxL modules this is the range 0x40000000 ... 0x4001FFFF). After
 booting and sizing and initializing DRAM, the code relocates itself
 to the upper end of DRAM. Immediately below the U-Boot code some
-memory is reserved for use by malloc() [see CFG_MALLOC_LEN
+memory is reserved for use by malloc() [see CONFIG_SYS_MALLOC_LEN
 configuration setting]. Below that, a structure with global Board
 Info data is placed, followed by the stack (growing downward).
 
diff --git a/README.nios_CONFIG_SYS_NIOS_CPU b/README.nios_CONFIG_SYS_NIOS_CPU
new file mode 100644 (file)
index 0000000..3547c34
--- /dev/null
@@ -0,0 +1,140 @@
+
+===============================================================================
+       C F G _ N I O S _ C P U _ *   v s .   N I O S   S D K
+===============================================================================
+
+When ever you have to make a new NIOS CPU configuration you can use this table
+as a reference list to the original NIOS SDK symbols made by Alteras SOPC
+Builder. Look into excalibur.h and excalibur.s in your SDK path cpu_sdk/inc.
+Symbols beginning with a '[ptf]:' are coming from your SOPC sytem description
+(PTF file) in sections WIZARD_SCRIPT_ARGUMENTS or SYSTEM_BUILDER_INFO.
+
+C O R E                                        N I O S   S D K                 [1],[7]
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_CLK                                        nasys_clock_freq
+CONFIG_SYS_NIOS_CPU_ICACHE                                     nasys_icache_size
+CONFIG_SYS_NIOS_CPU_DCACHE                                     nasys_dcache_size
+CONFIG_SYS_NIOS_CPU_REG_NUMS                                   nasys_nios_num_regs
+CONFIG_SYS_NIOS_CPU_MUL                                        __nios_use_multiply__
+CONFIG_SYS_NIOS_CPU_MSTEP                                      __nios_use_mstep__
+CONFIG_SYS_NIOS_CPU_STACK                                      nasys_stack_top
+CONFIG_SYS_NIOS_CPU_VEC_BASE                                   nasys_vector_table
+CONFIG_SYS_NIOS_CPU_VEC_SIZE                                   nasys_vector_table_size
+CONFIG_SYS_NIOS_CPU_VEC_NUMS
+CONFIG_SYS_NIOS_CPU_RST_VECT                                   nasys_reset_address
+CONFIG_SYS_NIOS_CPU_DBG_CORE                                   nasys_debug_core
+CONFIG_SYS_NIOS_CPU_RAM_BASE           na_onchip_ram_64_kbytes
+CONFIG_SYS_NIOS_CPU_RAM_SIZE           na_onchip_ram_64_kbytes_size
+CONFIG_SYS_NIOS_CPU_ROM_BASE           na_boot_monitor_rom
+CONFIG_SYS_NIOS_CPU_ROM_SIZE           na_boot_monitor_rom_size
+CONFIG_SYS_NIOS_CPU_OCI_BASE                                   nasys_oci_core
+CONFIG_SYS_NIOS_CPU_OCI_SIZE
+CONFIG_SYS_NIOS_CPU_SRAM_BASE          na_ext_ram              nasys_program_mem
+                                                       nasys_data_mem
+CONFIG_SYS_NIOS_CPU_SRAM_SIZE          na_ext_ram_size         nasys_program_mem_size
+                                                       nasys_data_mem_size
+CONFIG_SYS_NIOS_CPU_SDRAM_BASE          na_sdram
+CONFIG_SYS_NIOS_CPU_SDRAM_SIZE          na_sdram_size
+CONFIG_SYS_NIOS_CPU_FLASH_BASE          na_ext_flash           nasys_main_flash
+                                                       nasys_am29lv065d_flash_0
+                                                       nasys_flash_0
+CONFIG_SYS_NIOS_CPU_FLASH_SIZE     na_ext_flash_size           nasys_main_flash_size
+
+T I M E R                              N I O S   S D K                     [3]
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_TIMER_NUMS                                 nasys_timer_count
+CONFIG_SYS_NIOS_CPU_TIMER[0-9]                                 nasys_timer_[0-9]
+CONFIG_SYS_NIOS_CPU_TIMER[0-9]_IRQ                             nasys_timer_[0-9]_irq
+CONFIG_SYS_NIOS_CPU_TIMER[0-9]_PER                             [ptf]:period
+                                                       [ptf]:period_units
+                                                       [ptf]:mult
+CONFIG_SYS_NIOS_CPU_TIMER[0-9]_AR                              [ptf]:always_run
+CONFIG_SYS_NIOS_CPU_TIMER[0-9]_FP                              [ptf]:fixed_period
+CONFIG_SYS_NIOS_CPU_TIMER[0-9]_SS                              [ptf]:snapshot
+
+U A R T                                        N I O S   S D K                     [2]
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_UART_NUMS                                  nasys_uart_count
+CONFIG_SYS_NIOS_CPU_UART[0-9]                                  nasys_uart_[0-9]
+CONFIG_SYS_NIOS_CPU_UART[0-9]_IRQ                              nasys_uart_[0-9]_irq
+CONFIG_SYS_NIOS_CPU_UART[0-9]_BR                               [ptf]:baud
+CONFIG_SYS_NIOS_CPU_UART[0-9]_DB                               [ptf]:data_bits
+CONFIG_SYS_NIOS_CPU_UART[0-9]_SB                               [ptf]:stop_bits
+CONFIG_SYS_NIOS_CPU_UART[0-9]_PA                               [ptf]:parity
+CONFIG_SYS_NIOS_CPU_UART[0-9]_HS                               [ptf]:use_cts_rts
+CONFIG_SYS_NIOS_CPU_UART[0-9]_EOP                              [ptf]:use_eop_register
+
+P I O                                  N I O S   S D K                     [4]
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_PIO_NUMS                                   nasys_pio_count
+CONFIG_SYS_NIOS_CPU_PIO[0-9]                                   nasys_pio_[0-9]
+CONFIG_SYS_NIOS_CPU_PIO[0-9]_IRQ                               nasys_pio_[0-9]_irq
+CONFIG_SYS_NIOS_CPU_PIO[0-9]_BITS                              [ptf]:Data_Width
+CONFIG_SYS_NIOS_CPU_PIO[0-9]_TYPE                              [ptf]:has_tri
+                                                       [ptf]:has_out
+                                                       [ptf]:has_in
+CONFIG_SYS_NIOS_CPU_PIO[0-9]_CAP                               [ptf]:capture
+CONFIG_SYS_NIOS_CPU_PIO[0-9]_EDGE                              [ptf]:edge_type
+CONFIG_SYS_NIOS_CPU_PIO[0-9]_ITYPE                             [ptf]:irq_type
+
+S P I                                  N I O S   S D K                     [6]
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_SPI_NUMS                                   nasys_spi_count
+CONFIG_SYS_NIOS_CPU_SPI[0-9]                                   nasys_spi_[0-9]
+CONFIG_SYS_NIOS_CPU_SPI[0-9]_IRQ                               nasys_spi_[0-9]_irq
+CONFIG_SYS_NIOS_CPU_SPI[0-9]_BITS                              [ptf]:databits
+CONFIG_SYS_NIOS_CPU_SPI[0-9]_MA                                [ptf]:ismaster
+CONFIG_SYS_NIOS_CPU_SPI[0-9]_SLN                               [ptf]:numslaves
+CONFIG_SYS_NIOS_CPU_SPI[0-9]_TCLK                              [ptf]:targetclock
+CONFIG_SYS_NIOS_CPU_SPI[0-9]_TDELAY                            [ptf]:targetdelay
+CONFIG_SYS_NIOS_CPU_SPI[0-9]_*                                 [ptf]:*
+
+I D E                                  N I O S   S D K
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_IDE_NUMS                                   nasys_usersocket_count
+CONFIG_SYS_NIOS_CPU_IDE[0-9]                                   nasys_usersocket_[0-9]
+
+A S M I                                        N I O S   S D K                     [5]
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_ASMI_NUMS                                  nasys_asmi_count
+CONFIG_SYS_NIOS_CPU_ASMI[0-9]                                  nasys_asmi_[0-9]
+CONFIG_SYS_NIOS_CPU_ASMI[0-9]_IRQ                              nasys_asmi_[0-9]_irq
+
+E t h e r n e t          ( L A N )             N I O S   S D K
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_LAN_NUMS
+CONFIG_SYS_NIOS_CPU_LAN[0-9]_BASE      na_lan91c111
+CONFIG_SYS_NIOS_CPU_LAN[0-9]_OFFS                              LAN91C111_REGISTERS_OFFSET
+CONFIG_SYS_NIOS_CPU_LAN[0-9]_IRQ       na_lan91c111_irq
+CONFIG_SYS_NIOS_CPU_LAN[0-9]_BUSW                              LAN91C111_DATA_BUS_WIDTH
+CONFIG_SYS_NIOS_CPU_LAN[0-9]_TYPE
+
+s y s t e m   c o m p o s i n g                N I O S   S D K
+-------------------------------------------------------------------------------
+CONFIG_SYS_NIOS_CPU_TICK_TIMER         (na_low_priority_timer2)
+CONFIG_SYS_NIOS_CPU_USER_TIMER         (na_timer1)
+CONFIG_SYS_NIOS_CPU_BUTTON_PIO         (na_button_pio)
+CONFIG_SYS_NIOS_CPU_LCD_PIO            (na_lcd_pio)
+CONFIG_SYS_NIOS_CPU_LED_PIO            (na_led_pio)
+CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO       (na_seven_seg_pio)
+CONFIG_SYS_NIOS_CPU_RECONF_PIO         (na_reconfig_request_pio)
+CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO      (na_cf_present_pio)
+CONFIG_SYS_NIOS_CPU_CFPOWER_PIO        (na_cf_power_pio)
+CONFIG_SYS_NIOS_CPU_CFATASEL_PIO       (na_cf_ata_select_pio)
+CONFIG_SYS_NIOS_CPU_USER_SPI           (na_spi)
+
+
+===============================================================================
+       R E F E R E N C E S
+===============================================================================
+[1]    http://www.altera.com/literature/ds/ds_nioscpu.pdf
+[2]    http://www.altera.com/literature/ds/ds_nios_uart.pdf
+[3]    http://www.altera.com/literature/ds/ds_nios_timer.pdf
+[4]    http://www.altera.com/literature/ds/ds_nios_pio.pdf
+[5]    http://www.altera.com/literature/ds/ds_nios_asmi.pdf
+[6]    http://www.altera.com/literature/ds/ds_nios_spi.pdf
+[7]    http://www.altera.com/literature/ds/ds_legacy_sdram_ctrl.pdf
+
+
+===============================================================================
+Stephan Linz <linz@li-pro.net>
index 5642dd33bc32c71265e1d470e767c214d821cf1d..6fac98bffd19e49617c7a9a12198d41b00def03f 100644 (file)
@@ -67,28 +67,28 @@ static struct stor_spec specs[ENUM_MAX] = { { 0, 0, 0, 0, "" }, };
 void dev_stor_init(void)
 {
 #if defined(CONFIG_CMD_IDE)
-       specs[ENUM_IDE].max_dev = CFG_IDE_MAXDEVICE;
+       specs[ENUM_IDE].max_dev = CONFIG_SYS_IDE_MAXDEVICE;
        specs[ENUM_IDE].enum_started = 0;
        specs[ENUM_IDE].enum_ended = 0;
        specs[ENUM_IDE].type = DEV_TYP_STOR | DT_STOR_IDE;
        specs[ENUM_IDE].name = "ide";
 #endif
 #if defined(CONFIG_CMD_MMC)
-       specs[ENUM_MMC].max_dev = CFG_MMC_MAX_DEVICE;
+       specs[ENUM_MMC].max_dev = CONFIG_SYS_MMC_MAX_DEVICE;
        specs[ENUM_MMC].enum_started = 0;
        specs[ENUM_MMC].enum_ended = 0;
        specs[ENUM_MMC].type = DEV_TYP_STOR | DT_STOR_MMC;
        specs[ENUM_MMC].name = "mmc";
 #endif
 #if defined(CONFIG_CMD_SATA)
-       specs[ENUM_SATA].max_dev = CFG_SATA_MAX_DEVICE;
+       specs[ENUM_SATA].max_dev = CONFIG_SYS_SATA_MAX_DEVICE;
        specs[ENUM_SATA].enum_started = 0;
        specs[ENUM_SATA].enum_ended = 0;
        specs[ENUM_SATA].type = DEV_TYP_STOR | DT_STOR_SATA;
        specs[ENUM_SATA].name = "sata";
 #endif
 #if defined(CONFIG_CMD_SCSI)
-       specs[ENUM_SCSI].max_dev = CFG_SCSI_MAX_DEVICE;
+       specs[ENUM_SCSI].max_dev = CONFIG_SYS_SCSI_MAX_DEVICE;
        specs[ENUM_SCSI].enum_started = 0;
        specs[ENUM_SCSI].enum_ended = 0;
        specs[ENUM_SCSI].type = DEV_TYP_STOR | DT_STOR_SCSI;
index 49a06733a50594c7a23ae0b90b630e50f2056d58..ce6fae01b4f08886c33cc60e9d86522e565f259b 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <common.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 unsigned long flash_init(void)
 {
index 39c97b1f53ceb22d7aae6198fcd5e14e24c14153..d509a8fdbc3c1e7398cb03595800e2c41597d052 100644 (file)
@@ -32,7 +32,7 @@
 int checkboard (void)
 {
        puts ("Board: MCF-EV1 + MCF-EV23 (BuS Elektronik GmbH & Co. KG)\n");
-#if (TEXT_BASE ==  CFG_INT_FLASH_BASE)
+#if (TEXT_BASE ==  CONFIG_SYS_INT_FLASH_BASE)
        puts ("       Boot from Internal FLASH\n");
 #endif
 
@@ -45,10 +45,10 @@ phys_size_t initdram (int board_type)
 
        size = 0;
        MCFSDRAMC_DCR = MCFSDRAMC_DCR_RTIM_6
-                       | MCFSDRAMC_DCR_RC ((15 * CFG_CLK) >> 4);
-#ifdef CFG_SDRAM_BASE0
+                       | MCFSDRAMC_DCR_RC ((15 * CONFIG_SYS_CLK) >> 4);
+#ifdef CONFIG_SYS_SDRAM_BASE0
 
-       MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE (CFG_SDRAM_BASE0)
+       MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE (CONFIG_SYS_SDRAM_BASE0)
                        | MCFSDRAMC_DACR_CASL (1)
                        | MCFSDRAMC_DACR_CBM (3)
                        | MCFSDRAMC_DACR_PS_16;
@@ -57,17 +57,17 @@ phys_size_t initdram (int board_type)
 
        MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_IP;
 
-       *(unsigned short *) (CFG_SDRAM_BASE0) = 0xA5A5;
+       *(unsigned short *) (CONFIG_SYS_SDRAM_BASE0) = 0xA5A5;
        MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_RE;
        for (i = 0; i < 2000; i++)
                asm (" nop");
        mbar_writeLong (MCFSDRAMC_DACR0,
                        mbar_readLong (MCFSDRAMC_DACR0) | MCFSDRAMC_DACR_IMRS);
-       *(unsigned int *) (CFG_SDRAM_BASE0 + 0x220) = 0xA5A5;
-       size += CFG_SDRAM_SIZE * 1024 * 1024;
+       *(unsigned int *) (CONFIG_SYS_SDRAM_BASE0 + 0x220) = 0xA5A5;
+       size += CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 #endif
-#ifdef CFG_SDRAM_BASE1
-       MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE (CFG_SDRAM_BASE1)
+#ifdef CONFIG_SYS_SDRAM_BASE1
+       MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE (CONFIG_SYS_SDRAM_BASE1)
                        | MCFSDRAMC_DACR_CASL (1)
                        | MCFSDRAMC_DACR_CBM (3)
                        | MCFSDRAMC_DACR_PS_16;
@@ -76,25 +76,25 @@ phys_size_t initdram (int board_type)
 
        MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IP;
 
-       *(unsigned short *) (CFG_SDRAM_BASE1) = 0xA5A5;
+       *(unsigned short *) (CONFIG_SYS_SDRAM_BASE1) = 0xA5A5;
        MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_RE;
 
        for (i = 0; i < 2000; i++)
                asm (" nop");
 
        MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IMRS;
-       *(unsigned int *) (CFG_SDRAM_BASE1 + 0x220) = 0xA5A5;
-       size += CFG_SDRAM_SIZE1 * 1024 * 1024;
+       *(unsigned int *) (CONFIG_SYS_SDRAM_BASE1 + 0x220) = 0xA5A5;
+       size += CONFIG_SYS_SDRAM_SIZE1 * 1024 * 1024;
 #endif
        return size;
 }
 
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("SDRAM test phase 1:\n");
index 4b46b7c9a59ed5a05b2396c6192cca8e835b4d20..f2fe353dbeb40874938d4fd96ebc9f2975a88523 100644 (file)
@@ -25,7 +25,7 @@
 #include <asm/m5282.h>
 #include "VCxK.h"
 
-vu_char *vcxk_bws = (vu_char *)(CFG_CS3_BASE);
+vu_char *vcxk_bws = (vu_char *)(CONFIG_SYS_CS3_BASE);
 #define VCXK_BWS vcxk_bws
 
 static ulong vcxk_driver;
index 98e563fc5c5df272ae211aed0add616f4c3f2fc5..fe03b17581103efcf2905af50674e6064207785a 100644 (file)
 
 #if defined(CONFIG_M5281) || defined(CONFIG_M5282)
 
-#if (CFG_CLK>20000000)
-       #define CFM_CLK  (((long) CFG_CLK / (400000 * 8) + 1) | 0x40)
+#if (CONFIG_SYS_CLK>20000000)
+       #define CFM_CLK  (((long) CONFIG_SYS_CLK / (400000 * 8) + 1) | 0x40)
 #else
-       #define CFM_CLK  ((long) CFG_CLK / 400000 + 1)
+       #define CFM_CLK  ((long) CONFIG_SYS_CLK / 400000 + 1)
 #endif
 
 #define cmf_backdoor_address(addr)     (((addr) & 0x0007FFFF) | 0x04000000 | \
-                                        (CFG_MBAR & 0xC0000000))
+                                        (CONFIG_SYS_MBAR & 0xC0000000))
 
 void cfm_flash_print_info (flash_info_t * info)
 {
@@ -60,8 +60,8 @@ void cfm_flash_init (flash_info_t * info)
        MCFCFM_MCR = 0;
        MCFCFM_CLKD = CFM_CLK;
        debug ("CFM Clock divider: %ld (%d Hz @ %ld Hz)\n",CFM_CLK,\
-               CFG_CLK / (2* ((CFM_CLK & 0x3F)+1) * (1+((CFM_CLK & 0x40)>>6)*7)),\
-               CFG_CLK);
+               CONFIG_SYS_CLK / (2* ((CFM_CLK & 0x3F)+1) * (1+((CFM_CLK & 0x40)>>6)*7)),\
+               CONFIG_SYS_CLK);
        MCFCFM_SACC = 0;
        MCFCFM_DACC = 0;
 
@@ -86,7 +86,7 @@ void cfm_flash_init (flash_info_t * info)
        {
                if (sector == 0)
                {
-                       info->start[sector] = CFG_INT_FLASH_BASE;
+                       info->start[sector] = CONFIG_SYS_INT_FLASH_BASE;
                }
                else
                {
@@ -187,7 +187,7 @@ int cfm_flash_write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cn
        return rc;
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 
 int cfm_flash_protect(flash_info_t * info,long sector,int prot)
 {
index cc8cdbd1ebf085856dddeb043c4bd27cad4c8984..ed4e7943e721446b5e0769203aa7bcf4f32bcce9 100644 (file)
@@ -33,7 +33,7 @@ extern void cfm_flash_print_info (flash_info_t * info);
 extern int cfm_flash_erase_sector (flash_info_t * info, int sector);
 extern void cfm_flash_init (flash_info_t * info);
 extern int cfm_flash_write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt);
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 extern int cfm_flash_protect(flash_info_t * info,long sector,int prot);
 #endif
 
index c2a1b6ff62dfc59f38b9e5f991396b9021ca0175..3c36367d742b630b634348e7f8cb29c0586e8bd1 100644 (file)
 #include <common.h>
 #include  "cfm_flash.h"
 
-#define PHYS_FLASH_1 CFG_FLASH_BASE
+#define PHYS_FLASH_1 CONFIG_SYS_FLASH_BASE
 #define FLASH_BANK_SIZE 0x200000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 void flash_print_info (flash_info_t * info)
 {
@@ -83,7 +83,7 @@ unsigned long flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                switch (i)
@@ -93,8 +93,8 @@ unsigned long flash_init (void)
                                (AMD_MANUFACT & FLASH_VENDMASK) |
                                (AMD_ID_LV160B & FLASH_TYPEMASK);
                        flash_info[i].size = FLASH_BANK_SIZE;
-                       flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-                       memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+                       flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+                       memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                        flashbase = PHYS_FLASH_1;
                        for (j = 0; j < flash_info[i].sector_count; j++) {
                                if (j == 0) {
@@ -128,8 +128,8 @@ unsigned long flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + 0xffff, &flash_info[0]);
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + 0xffff, &flash_info[0]);
 
        return size;
 }
@@ -177,7 +177,7 @@ int amd_flash_erase_sector(flash_info_t * info, int sector)
                result = *addr;
 
                /* check timeout */
-               if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                        state = ERR_TIMOUT;
                }
@@ -303,7 +303,7 @@ volatile static int amd_write_word (flash_info_t * info, ulong dest, u16 data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                state = ERR_TIMOUT;
                }
                if (!state && ((result & BIT_RDY_MASK) == (data & BIT_RDY_MASK)))
@@ -390,7 +390,7 @@ int amd_flash_protect(flash_info_t * info,long sector,int prot)
        return rc;
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 
 int flash_real_protect(flash_info_t * info,long sector,int prot)
 {
index 8ae2ec69ce39ee178446af2c3c6b0339cfc15a07..7f925142c90c447030f6fc560c69b6c04dc4127f 100644 (file)
@@ -38,15 +38,15 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
 {
        if (setclear) {
                MCFGPIO_PASPAR |= 0x0F00;
-               MCFGPIO_PEHLPAR = CFG_PEHLPAR;
+               MCFGPIO_PEHLPAR = CONFIG_SYS_PEHLPAR;
        } else {
                MCFGPIO_PASPAR &= 0xF0FF;
-               MCFGPIO_PEHLPAR &= ~CFG_PEHLPAR;
+               MCFGPIO_PEHLPAR &= ~CONFIG_SYS_PEHLPAR;
        }
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -132,9 +132,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -199,7 +199,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index 5f506314c5efc7f41c6554a0df61afa11e6321e1..905df92b1dd974db425ec365f85b99be34b7f590 100644 (file)
@@ -138,23 +138,23 @@ const uint sdram_table[] = {
 
 /* ------------------------------------------------------------------------- */
 
-#define CFG_PC4    0x0800
+#define CONFIG_SYS_PC4    0x0800
 
-#define CFG_DS1    CFG_PC4
+#define CONFIG_SYS_DS1    CONFIG_SYS_PC4
 
 /*
  * Very early board init code (fpga boot, etc.)
  */
 int board_early_init_f (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /*
         * Light up the red led on ELPT860 pcb (DS1) (PCDAT)
         */
-       immr->im_ioport.iop_pcdat &= ~CFG_DS1;  /* PCDAT (DS1 = 0)                */
-       immr->im_ioport.iop_pcpar &= ~CFG_DS1;  /* PCPAR (0=general purpose I/O)  */
-       immr->im_ioport.iop_pcdir |= CFG_DS1;   /* PCDIR (I/O: 0=input, 1=output) */
+       immr->im_ioport.iop_pcdat &= ~CONFIG_SYS_DS1;   /* PCDAT (DS1 = 0)                */
+       immr->im_ioport.iop_pcpar &= ~CONFIG_SYS_DS1;   /* PCPAR (0=general purpose I/O)  */
+       immr->im_ioport.iop_pcdir |= CONFIG_SYS_DS1;    /* PCDIR (I/O: 0=input, 1=output) */
 
        return (0);             /* success */
 }
@@ -181,7 +181,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size8, size9;
        long int size_b0 = 0;
@@ -207,7 +207,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        /*
         * The following value is used as an address (i.e. opcode) for
@@ -229,10 +229,10 @@ phys_size_t initdram (int board_type)
         * preliminary addresses - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -252,7 +252,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL,
                           SDRAM_BASE1_PRELIM, SDRAM_MAX_SIZE);
 
        udelay (1000);
@@ -260,7 +260,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL,
                           SDRAM_BASE1_PRELIM, SDRAM_MAX_SIZE);
 
        if (size8 < size9) {    /* leave configuration at 9 columns       */
@@ -269,7 +269,7 @@ phys_size_t initdram (int board_type)
        } else {                /* back to 8 columns                      */
 
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
                /* debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20); */
        }
@@ -282,22 +282,22 @@ phys_size_t initdram (int board_type)
         */
        if (size_b0 < 0x02000000) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
        /*
         * Final mapping: map bigger bank first
         */
-       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        {
                unsigned long reg;
 
                /* adjust refresh rate depending on SDRAM type, one bank */
                reg = memctl->memc_mptpr;
-               reg >>= 1;      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+               reg >>= 1;      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
                memctl->memc_mptpr = reg;
        }
 
@@ -319,7 +319,7 @@ phys_size_t initdram (int board_type)
 static long int
 dram_size (long int mamr_value, long int *base, long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -329,20 +329,20 @@ dram_size (long int mamr_value, long int *base, long int maxsize)
 
 /* ------------------------------------------------------------------------- */
 
-#define CFG_PA1     0x4000
-#define CFG_PA2     0x2000
+#define CONFIG_SYS_PA1     0x4000
+#define CONFIG_SYS_PA2     0x2000
 
-#define CFG_LBKs    (CFG_PA2 | CFG_PA1)
+#define CONFIG_SYS_LBKs    (CONFIG_SYS_PA2 | CONFIG_SYS_PA1)
 
 void reset_phy (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /*
         * Ensure LBK LXT901 ethernet 1 & 2 = 0 ... for normal loopback in effect
         *                                          and no AUI loopback
         */
-       immr->im_ioport.iop_padat &= ~CFG_LBKs; /* PADAT (LBK eth 1&2 = 0)        */
-       immr->im_ioport.iop_papar &= ~CFG_LBKs; /* PAPAR (0=general purpose I/O)  */
-       immr->im_ioport.iop_padir |= CFG_LBKs;  /* PADIR (I/O: 0=input, 1=output) */
+       immr->im_ioport.iop_padat &= ~CONFIG_SYS_LBKs;  /* PADAT (LBK eth 1&2 = 0)        */
+       immr->im_ioport.iop_papar &= ~CONFIG_SYS_LBKs;  /* PAPAR (0=general purpose I/O)  */
+       immr->im_ioport.iop_padir |= CONFIG_SYS_LBKs;   /* PADIR (I/O: 0=input, 1=output) */
 }
index 668aee2f847862abc6d491f4a19ef4691ff6e785..9a75aad18d0ffcfaaf2e42bf5dea5ef253fed2b7 100644 (file)
@@ -33,7 +33,7 @@
 /*
 ** Note 1: In this file, you have to provide the following variable:
 ** ------
-**              flash_info_t    flash_info[CFG_MAX_FLASH_BANKS]
+**              flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS]
 ** 'flash_info_t' structure is defined into 'include/flash.h'
 ** and defined as extern into 'common/cmd_flash.c'
 **
 
 
 #ifndef        CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Internal Functions
@@ -82,13 +82,13 @@ static int write_byte (flash_info_t *info, ulong dest, uchar data);
 unsigned long
 flash_init (void)
 {
-  volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+  volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
   volatile memctl8xx_t *memctl = &immap->im_memctl;
   unsigned long         size_b0;
   int i;
 
   /* Init: no FLASHes known */
-  for (i=0; i<CFG_MAX_FLASH_BANKS; ++i)
+  for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i)
     {
       flash_info[i].flash_id = FLASH_UNKNOWN;
     }
@@ -105,20 +105,20 @@ flash_init (void)
     }
 
   /* Remap FLASH according to real size */
-  memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
-  memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_PS_8 | BR_V;
+  memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
+  memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_PS_8 | BR_V;
 
   /* Re-do sizing to get full correct info */
-  size_b0 = flash_get_size ((volatile unsigned char *)CFG_FLASH_BASE,
+  size_b0 = flash_get_size ((volatile unsigned char *)CONFIG_SYS_FLASH_BASE,
                            &flash_info[0]);
 
-  flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+  flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
   /* monitor protection ON by default */
   flash_protect (FLAG_PROTECT_SET,
-                CFG_MONITOR_BASE,
-                CFG_MONITOR_BASE + monitor_flash_len-1,
+                CONFIG_SYS_MONITOR_BASE,
+                CONFIG_SYS_MONITOR_BASE + monitor_flash_len-1,
                 &flash_info[0]);
 #endif
 
@@ -383,7 +383,7 @@ flash_erase (flash_info_t  *info,
   addr = (volatile unsigned char *)(info->start[l_sect]);
   while ( (addr[0] & 0x80) != 0x80 )
     {
-      if ( (now = get_timer(start)) > CFG_FLASH_ERASE_TOUT )
+      if ( (now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT )
        {
          printf ("Timeout\n");
          return ( 1 );
@@ -556,7 +556,7 @@ write_word (flash_info_t  *info,
   start = get_timer (0);
   while ( (*((vu_long *)dest) & 0x00800080) != (data & 0x00800080) )
     {
-      if ( get_timer(start) > CFG_FLASH_WRITE_TOUT )
+      if ( get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT )
        {
          return (1);
        }
@@ -602,7 +602,7 @@ write_byte (flash_info_t  *info,
   start = get_timer (0);
   while ( (*((volatile unsigned char *)dest) & 0x80) != (data & 0x80) )
     {
-      if ( get_timer(start) > CFG_FLASH_WRITE_TOUT )
+      if ( get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT )
        {
          return (1);
        }
index 40c951d068c69b216c4308677c4828452e0627fb..949af1802549629e8c37cb1a79c1bde382e91fb3 100644 (file)
@@ -27,7 +27,7 @@ struct bootcode_block bblk;
 
 int do_boota (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
-       unsigned char *load_address = (unsigned char *) CFG_LOAD_ADDR;
+       unsigned char *load_address = (unsigned char *) CONFIG_SYS_LOAD_ADDR;
        unsigned char *base_address;
        unsigned long offset;
 
index 409b955fd59864fab9eaa1b0462058d704f78ebe..a96d5bae299e4645fc383ab78cf953e577685081 100644 (file)
@@ -1,14 +1,14 @@
 #include <common.h>
 #include <flash.h>
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 unsigned long flash_init(void)
 {
     int i;
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
     {
        flash_info[i].flash_id = FLASH_UNKNOWN;
        flash_info[i].sector_count = 0;
index 3efee7e98efcbed097d0dafb85b21673bec9ef6e..7b7ea1697ae7ae350bfe2bd0a4990eb9f0dae008 100644 (file)
@@ -39,7 +39,7 @@
 #endif
 /*---------------------------------------------------------------------*/
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static ulong flash_get_size (ulong addr, flash_info_t *info);
 static int flash_get_offsets (ulong base, flash_info_t *info);
@@ -80,7 +80,7 @@ unsigned long flash_init_old(void)
 {
     int i;
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
     {
        flash_info[i].flash_id = FLASH_UNKNOWN;
        flash_info[i].sector_count = 0;
@@ -101,25 +101,25 @@ unsigned long flash_init (void)
        flash_to_xd();
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = 0;
                flash_info[i].size = 0;
        }
 
-       DEBUGF("\n## Get flash size @ 0x%08x\n", CFG_FLASH_BASE);
+       DEBUGF("\n## Get flash size @ 0x%08x\n", CONFIG_SYS_FLASH_BASE);
 
-       flash_size = flash_get_size (CFG_FLASH_BASE, flash_info);
+       flash_size = flash_get_size (CONFIG_SYS_FLASH_BASE, flash_info);
 
        DEBUGF("## Flash bank size: %08lx\n", flash_size);
 
        if (flash_size) {
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE && \
-    CFG_MONITOR_BASE < CFG_FLASH_BASE + CFG_FLASH_MAX_SIZE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE && \
+    CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_MAX_SIZE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE + monitor_flash_len - 1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                              &flash_info[0]);
 #endif
 
@@ -286,10 +286,10 @@ static ulong flash_get_size (ulong addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        if (! flash_get_offsets (addr, info)) {
@@ -418,10 +418,10 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = info->start[l_sect];
 
-       DEBUGF ("Start erase timeout: %d\n", CFG_FLASH_ERASE_TOUT);
+       DEBUGF ("Start erase timeout: %d\n", CONFIG_SYS_FLASH_ERASE_TOUT);
 
        while ((in8(addr) & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        flash_reset (info->start[0]);
                        flash_to_mem();
@@ -562,7 +562,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                /* data polling for D7 */
                start = get_timer (0);
                while ((in8(dest+i) & 0x80) != (data_ch[i] & 0x80)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                flash_reset (addr);
                                flash_to_mem();
                                return (1);
index 05c40522d1fd3ec14b8f134c649aebcbaa585c18..eb08e13d437708c104e406a0773680c0b0b533d7 100644 (file)
  * MA 02111-1307 USA
  */
 
-#define ICW1_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW1
-#define ICW1_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW1
-#define ICW2_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW2
-#define ICW2_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW2
-#define ICW3_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW3
-#define ICW3_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW3
-#define ICW4_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW4
-#define ICW4_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW4
-#define OCW1_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW1
-#define OCW1_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW1
-#define OCW2_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW2
-#define OCW2_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW2
-#define OCW3_1  CFG_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW3
-#define OCW3_2  CFG_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW3
+#define ICW1_1  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW1
+#define ICW1_2  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW1
+#define ICW2_1  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW2
+#define ICW2_2  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW2
+#define ICW3_1  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW3
+#define ICW3_2  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW3
+#define ICW4_1  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT1_ICW4
+#define ICW4_2  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT2_ICW4
+#define OCW1_1  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW1
+#define OCW1_2  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW1
+#define OCW2_1  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW2
+#define OCW2_2  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW2
+#define OCW3_1  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT1_OCW3
+#define OCW3_2  CONFIG_SYS_ISA_IO_BASE_ADDRESS + ISA_INT2_OCW3
 
 #define IMR_1   OCW1_1
 #define IMR_2   OCW1_2
index 86b44150d56dcb27c7df4b06734a23f2eaeea716..de46d6e37e99fe968f47dfaeb902d2fa4880ed7f 100644 (file)
@@ -119,12 +119,12 @@ int interrupt_init (void)
 #ifdef DEBUG
        puts("interrupt_init: setting decrementer_count\n");
 #endif
-       decrementer_count = get_tbclk() / CFG_HZ;
+       decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
 
 #ifdef DEBUG
        puts("interrupt_init: setting actual decremter\n");
 #endif
-       set_dec (get_tbclk() / CFG_HZ);
+       set_dec (get_tbclk() / CONFIG_SYS_HZ);
 
 #ifdef DEBUG
        puts("interrupt_init: clearing external interrupt table\n");
index 724a44db7da82e99bc1c54151a789aa2c3c4eb9c..a297005ed28b4db77de8c3c7c4294e19123d9cdf 100644 (file)
@@ -214,7 +214,7 @@ int isa_kbd_init (void)
        }
 }
 
-#ifdef CFG_CONSOLE_OVERWRITE_ROUTINE
+#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
 extern int overwrite_console (void);
 #else
 int overwrite_console (void)
@@ -492,22 +492,22 @@ unsigned char handle_kbd_event (void)
  */
 unsigned char kbd_read_status(void)
 {
-       return(in8(CFG_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT));
+       return(in8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT));
 }
 
 unsigned char kbd_read_input(void)
 {
-       return(in8(CFG_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT));
+       return(in8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT));
 }
 
 void kbd_write_command(unsigned char cmd)
 {
-       out8(CFG_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT,cmd);
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT,cmd);
 }
 
 void kbd_write_output(unsigned char data)
 {
-       out8(CFG_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT, data);
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT, data);
 }
 
 int kbd_read_data(void)
index b6f57c7246bd652cc33ff66159261e1e1ea891cb..88039f3d00aa2a7ee5da36ffd54a104cb765e06b 100644 (file)
@@ -6,7 +6,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifndef CFG_NS16550
+#ifndef CONFIG_SYS_NS16550
 static uint32 ComPort1;
 
 uint16 SerialEcho = 1;
@@ -147,8 +147,8 @@ void serial_debug_putc (int c)
 
 #else
 
-const NS16550_t Com0 = (NS16550_t) CFG_NS16550_COM1;
-const NS16550_t Com1 = (NS16550_t) CFG_NS16550_COM2;
+const NS16550_t Com0 = (NS16550_t) CONFIG_SYS_NS16550_COM1;
+const NS16550_t Com1 = (NS16550_t) CONFIG_SYS_NS16550_COM2;
 
 int serial_init (void)
 {
index 26cdcdf7604c9f5600ec4fc9a2e86ce6406d3f56..6d1133f84edf20fc7cef91fbb098542ff9b72367 100644 (file)
@@ -627,7 +627,7 @@ int usb_lowlevel_init(void)
        pci_read_config_dword(busdevfunc,PCI_BASE_ADDRESS_4,&usb_base_addr);
        USB_UHCI_PRINTF("IO Base Address = 0x%lx\n",usb_base_addr);
        usb_base_addr&=0xFFFFFFF0;
-       usb_base_addr+=CFG_ISA_IO_BASE_ADDRESS;
+       usb_base_addr+=CONFIG_SYS_ISA_IO_BASE_ADDRESS;
        rh.devnum = 0;
        usb_init_skel();
        reset_hc();
index 3603372d0768e14bda8ea5fd30450657898badb4..21eae0e949068ddae43a50e37c519efc09303959 100644 (file)
@@ -48,7 +48,7 @@
 int flash_erase_intel (flash_info_t * info, int s_first, int s_last);
 int write_word_intel (bank_addr_t addr, bank_word_t value);
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -68,14 +68,14 @@ unsigned long flash_init (void)
        unsigned long base, flash_size;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* the boot flash */
-       base = CFG_FLASH_BASE;
+       base = CONFIG_SYS_FLASH_BASE;
        size_b0 =
-               flash_get_size (CFG_BOOT_FLASH_WIDTH, (vu_long *) base,
+               flash_get_size (CONFIG_SYS_BOOT_FLASH_WIDTH, (vu_long *) base,
                                &flash_info[0]);
 
        printf ("[%ldkB@%lx] ", size_b0 / 1024, base);
@@ -84,11 +84,11 @@ unsigned long flash_init (void)
                printf ("## Unknown FLASH at %08lx: Size = 0x%08lx = %ld MB\n", base, size_b0, size_b0 << 20);
        }
 
-       base = memoryGetDeviceBaseAddress (CFG_EXTRA_FLASH_DEVICE);
+       base = memoryGetDeviceBaseAddress (CONFIG_SYS_EXTRA_FLASH_DEVICE);
 /*     base = memoryGetDeviceBaseAddress(DEV_CS3_BASE_ADDR);*/
-       for (i = 1; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 1; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                unsigned long size =
-                       flash_get_size (CFG_EXTRA_FLASH_WIDTH,
+                       flash_get_size (CONFIG_SYS_EXTRA_FLASH_WIDTH,
                                        (vu_long *) base, &flash_info[i]);
 
                printf ("[%ldMB@%lx] ", size >> 20, base);
@@ -617,7 +617,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                                        /* has the timeout limit been reached? */
                                                        if (get_timer (start)
                                                            >
-                                                           CFG_FLASH_ERASE_TOUT)
+                                                           CONFIG_SYS_FLASH_ERASE_TOUT)
                                                        {
                                                                /* timeout limit reached */
                                                                printf ("Time out limit reached erasing sector at address %08lx\n", info->start[sect]);
@@ -776,7 +776,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        addr = (volatile unsigned char *) (info->start[l_sect]);
        /* broken for 2x16: TODO */
        while ((addr[0] & 0x80) != 0x80) {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -956,7 +956,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                                {
                                        /* has the timeout limit been reached? */
                                        if (get_timer (start) >
-                                           CFG_FLASH_WRITE_TOUT) {
+                                           CONFIG_SYS_FLASH_WRITE_TOUT) {
                                                /* timeout limit reached */
                                                printf ("Time out limit reached programming address %08lx with data %08lx\n", dest, data);
                                                /* reset the flash */
@@ -1064,7 +1064,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *) dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 32b2b30a4a23af30d0bec002502bbf9632e66cfc..d426044392900da8835ae9fbb08e1759fbb19e06 100644 (file)
@@ -48,7 +48,7 @@ static void i2c_init (int speed, int slaveaddr)
        unsigned int actualN = 0, actualM = 0;
        unsigned int control, status;
        unsigned int minMargin = 0xffffffff;
-       unsigned int tclk = CFG_TCLK;
+       unsigned int tclk = CONFIG_SYS_TCLK;
        unsigned int i2cFreq = speed;   /* 100000 max. Fast mode not supported */
 
        DP (puts ("i2c_init\n"));
@@ -372,7 +372,7 @@ i2c_read (uchar dev_addr, unsigned int offset, int alen, uchar * data,
          int len)
 {
        uchar status = 0;
-       unsigned int i2cFreq = CFG_I2C_SPEED;
+       unsigned int i2cFreq = CONFIG_SYS_I2C_SPEED;
 
        DP (puts ("i2c_read\n"));
 
@@ -447,7 +447,7 @@ i2c_write (uchar dev_addr, unsigned int offset, int alen, uchar * data,
           int len)
 {
        uchar status = 0;
-       unsigned int i2cFreq = CFG_I2C_SPEED;
+       unsigned int i2cFreq = CONFIG_SYS_I2C_SPEED;
 
        DP (puts ("i2c_write\n"));
 
@@ -500,7 +500,7 @@ int i2c_probe (uchar chip)
        unsigned int i2c_status;
 #endif
        uchar status = 0;
-       unsigned int i2cFreq = CFG_I2C_SPEED;
+       unsigned int i2cFreq = CONFIG_SYS_I2C_SPEED;
 
        DP (puts ("i2c_probe\n"));
 
index d26f883ad33f36be918e0023123c78348f5dc0e5..42b3ee15486377bf533fdc7a9593bdf64fe35568 100644 (file)
@@ -152,7 +152,7 @@ int write_word_intel (bank_addr_t addr, bank_word_t value)
        /* data polling for D7 */
        start = get_timer (0);
        do {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        retval = 1;
                        goto done;
                }
@@ -227,7 +227,7 @@ int flash_erase_intel (flash_info_t * info, int s_first, int s_last)
                        do {
                                now = get_timer (start);
 
-                               if (now - estart > CFG_FLASH_ERASE_TOUT) {
+                               if (now - estart > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout (sect %d)\n", sect);
                                        haderr = 1;
                                        break;
index 666a4cdcadd92ae2f01462d7224d4eee086c8f49..bd8941ea5fc3c2768ee0c2c08b5f30640ce58c1a 100644 (file)
@@ -68,7 +68,7 @@
 /* ID and Lock Configuration */
 #define CHIP_RD_ID_LOCK                0x01            /* Bit 0 of each byte */
 #define CHIP_RD_ID_MAN         0x89            /* Manufacturer code = 0x89 */
-#define CHIP_RD_ID_DEV         CFG_FLASH_ID
+#define CHIP_RD_ID_DEV         CONFIG_SYS_FLASH_ID
 
 /* dimensions */
 #define CHIP_WIDTH             2               /* chips are in 16 bit mode */
index 41c3a9508e90f3713924b40ecfa673a9475ada96..b3a089803aa5aba27e8a256fdf1d13732ef8f612 100644 (file)
@@ -16,7 +16,7 @@
 board_relocate_rom:
        mflr    r7
        /* update the location of the GT registers */
-       lis     r11, CFG_GT_REGS@h
+       lis     r11, CONFIG_SYS_GT_REGS@h
        /* if we're using ECC, we must use the DMA engine to copy ourselves */
        bl      start_idma_transfer_0
        bl      wait_for_idma_0
@@ -29,12 +29,12 @@ board_relocate_rom:
 board_init_ecc:
        mflr    r7
        /* NOTE: r10 still contains the location we've been relocated to
-        * which happens to be TOP_OF_RAM - CFG_MONITOR_LEN */
+        * which happens to be TOP_OF_RAM - CONFIG_SYS_MONITOR_LEN */
 
        /* now that we're running from ram, init the rest of main memory
         * for ECC use */
-       lis     r8, CFG_MONITOR_LEN@h
-       ori     r8, r8, CFG_MONITOR_LEN@l
+       lis     r8, CONFIG_SYS_MONITOR_LEN@h
+       ori     r8, r8, CONFIG_SYS_MONITOR_LEN@l
 
        divw    r3, r10, r8
 
@@ -120,15 +120,15 @@ stop_idma_engine_0:
        blr
 #endif
 
-#ifdef CFG_BOARD_ASM_INIT
+#ifdef CONFIG_SYS_BOARD_ASM_INIT
        /* NOTE: trashes r3-r7 */
        .globl board_asm_init
 board_asm_init:
        /* just move the GT registers to where they belong */
-       lis     r3, CFG_DFL_GT_REGS@h
-       ori     r3, r3, CFG_DFL_GT_REGS@l
-       lis     r4, CFG_GT_REGS@h
-       ori     r4, r4, CFG_GT_REGS@l
+       lis     r3, CONFIG_SYS_DFL_GT_REGS@h
+       ori     r3, r3, CONFIG_SYS_DFL_GT_REGS@l
+       lis     r4, CONFIG_SYS_GT_REGS@h
+       ori     r4, r4, CONFIG_SYS_GT_REGS@l
        li      r5, INTERNAL_SPACE_DECODE
 
        /* test to see if we've already moved */
index 475445b7886112ce7540254e62fc6af2884b0359..7fbf28a60902556834eb5d9886ed9992b9aedfec 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * COM1 NS16550 support
  * originally from linux source (arch/ppc/boot/ns16550.c)
- * modified to use CFG_ISA_MEM and new defines
+ * modified to use CONFIG_SYS_ISA_MEM and new defines
  *
  * further modified by Josh Huber <huber@mclx.com> to support
  * the DUART on the Galileo Eval board. (db64360)
@@ -13,8 +13,8 @@
 #ifdef ZUMA_NTL
 /* no 16550 device */
 #else
-const NS16550_t COM_PORTS[] = { (NS16550_t) (CFG_DUART_IO + 0),
-       (NS16550_t) (CFG_DUART_IO + 0x20)
+const NS16550_t COM_PORTS[] = { (NS16550_t) (CONFIG_SYS_DUART_IO + 0),
+       (NS16550_t) (CONFIG_SYS_DUART_IO + 0x20)
 };
 
 volatile struct NS16550 *NS16550_init (int chan, int baud_divisor)
index f2ed2abc9eb842cf21aeb2610d956914586560b0..b9691ab5afb8e096b07ee0ad3a6af28b744528a4 100644 (file)
@@ -2,7 +2,7 @@
  * NS16550 Serial Port
  * originally from linux source (arch/ppc/boot/ns16550.h)
  * modified slightly to
- * have addresses as offsets from CFG_ISA_BASE
+ * have addresses as offsets from CONFIG_SYS_ISA_BASE
  * added a few more definitions
  * added prototypes for ns16550.c
  * reduced no of com ports to 2
index 01efbea77b195c80e842625363e6ba96df48c325..3e7f406ffb1a93d933dbcce301b801bda3b9af8f 100644 (file)
@@ -52,17 +52,17 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int serial_init (void)
 {
-#if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2)
+#if (defined CONFIG_SYS_INIT_CHAN1) || (defined CONFIG_SYS_INIT_CHAN2)
        int clock_divisor = 230400 / gd->baudrate;
 #endif
 
        mpsc_init (gd->baudrate);
 
        /* init the DUART chans so that KGDB in the kernel can use them */
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        NS16550_reinit (COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        NS16550_reinit (COM_PORTS[1], clock_divisor);
 #endif
        return (0);
@@ -97,10 +97,10 @@ int serial_init (void)
 {
        int clock_divisor = 230400 / gd->baudrate;
 
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        (void) NS16550_init (0, clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        (void) NS16550_init (1, clock_divisor);
 #endif
        return (0);
@@ -109,29 +109,29 @@ int serial_init (void)
 void serial_putc (const char c)
 {
        if (c == '\n')
-               NS16550_putc (COM_PORTS[CFG_DUART_CHAN], '\r');
+               NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], '\r');
 
-       NS16550_putc (COM_PORTS[CFG_DUART_CHAN], c);
+       NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], c);
 }
 
 int serial_getc (void)
 {
-       return NS16550_getc (COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_getc (COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 int serial_tstc (void)
 {
-       return NS16550_tstc (COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_tstc (COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 void serial_setbrg (void)
 {
        int clock_divisor = 230400 / gd->baudrate;
 
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        NS16550_reinit (COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        NS16550_reinit (COM_PORTS[1], clock_divisor);
 #endif
 }
index c03d03d3876ec6561bb85e98e8f47e1533749bee..35b695e86204c3db80e55edb18a631123b612849 100644 (file)
@@ -55,7 +55,7 @@
 /* ------------------------------------------------------------------------- */
 
 /* this is the current GT register space location */
-/* it starts at CFG_DFL_GT_REGS but moves later to CFG_GT_REGS */
+/* it starts at CONFIG_SYS_DFL_GT_REGS but moves later to CONFIG_SYS_GT_REGS */
 
 /* Unfortunately, we cant change it while we are in flash, so we initialize it
  * to the "final" value. This means that any debug_led calls before
@@ -64,7 +64,7 @@
  */
 
 void board_prebootm_init (void);
-unsigned int INTERNAL_REG_BASE_ADDR = CFG_GT_REGS;
+unsigned int INTERNAL_REG_BASE_ADDR = CONFIG_SYS_GT_REGS;
 int display_mem_map (void);
 
 /* ------------------------------------------------------------------------- */
@@ -127,7 +127,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_0_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_0_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
 
        }
        if ((GTREGREAD (PCI_1_MODE) & (BIT4 | BIT5)) != 0) {    /*if  PCI-X */
@@ -136,7 +136,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_1_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_1_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
        }
 
        /* Enable master */
@@ -154,21 +154,21 @@ static void gt_pci_config (void)
        /* ronen- add write to pci remap registers for 64460.
           in 64360 when writing to pci base go and overide remap automaticaly,
           in 64460 it doesn't */
-       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CFG_PCI0_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CFG_PCI0_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_0_IO_SIZE, (CFG_PCI0_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CONFIG_SYS_PCI0_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CONFIG_SYS_PCI0_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_0_IO_SIZE, (CONFIG_SYS_PCI0_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CFG_PCI0_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CONFIG_SYS_PCI0_MEM_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CFG_PCI1_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CFG_PCI1_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_1_IO_SIZE, (CFG_PCI1_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CONFIG_SYS_PCI1_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CONFIG_SYS_PCI1_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_1_IO_SIZE, (CONFIG_SYS_PCI1_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CFG_PCI1_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CONFIG_SYS_PCI1_MEM_SIZE - 1) >> 16);
 
        /* PCI interface settings */
        /* Timeout set to retry forever */
@@ -184,7 +184,7 @@ static void gt_pci_config (void)
        for (stat = 0; stat <= PCI_HOST1; stat++)
                pciWriteConfigReg (stat,
                                   PCI_INTERNAL_REGISTERS_MEMORY_MAPPED_BASE_ADDRESS,
-                                  SELF, CFG_GT_REGS);
+                                  SELF, CONFIG_SYS_GT_REGS);
 #endif
 
 }
@@ -200,7 +200,7 @@ static void gt_cpu_config (void)
        tmp = GTREGREAD (CPU_CONFIGURATION);
 
        /* set the SINGLE_CPU bit  see MV64360 P.399 */
-#ifndef CFG_GT_DUAL_CPU                /* SINGLE_CPU seems to cause JTAG problems */
+#ifndef CONFIG_SYS_GT_DUAL_CPU         /* SINGLE_CPU seems to cause JTAG problems */
        tmp |= CPU_CONF_SINGLE_CPU;
 #endif
 
@@ -251,7 +251,7 @@ int board_early_init_f (void)
         * it last time. (huber)
         */
 
-       my_remap_gt_regs (CFG_DFL_GT_REGS, CFG_GT_REGS);
+       my_remap_gt_regs (CONFIG_SYS_DFL_GT_REGS, CONFIG_SYS_GT_REGS);
 
        /* No PCI in first release of Port To_do: enable it. */
 #ifdef CONFIG_PCI
@@ -297,56 +297,56 @@ int board_early_init_f (void)
         * on-board sram on the eval board, and updates the correct
         * registers to boot from the sram. (device0)
         */
-       if (memoryGetDeviceBaseAddress (DEVICE0) == CFG_DFL_BOOTCS_BASE)
+       if (memoryGetDeviceBaseAddress (DEVICE0) == CONFIG_SYS_DFL_BOOTCS_BASE)
                sram_boot = 1;
        if (!sram_boot)
-               memoryMapDeviceSpace (DEVICE0, CFG_DEV0_SPACE, CFG_DEV0_SIZE);
+               memoryMapDeviceSpace (DEVICE0, CONFIG_SYS_DEV0_SPACE, CONFIG_SYS_DEV0_SIZE);
 
-       memoryMapDeviceSpace (DEVICE1, CFG_DEV1_SPACE, CFG_DEV1_SIZE);
-       memoryMapDeviceSpace (DEVICE2, CFG_DEV2_SPACE, CFG_DEV2_SIZE);
-       memoryMapDeviceSpace (DEVICE3, CFG_DEV3_SPACE, CFG_DEV3_SIZE);
+       memoryMapDeviceSpace (DEVICE1, CONFIG_SYS_DEV1_SPACE, CONFIG_SYS_DEV1_SIZE);
+       memoryMapDeviceSpace (DEVICE2, CONFIG_SYS_DEV2_SPACE, CONFIG_SYS_DEV2_SIZE);
+       memoryMapDeviceSpace (DEVICE3, CONFIG_SYS_DEV3_SPACE, CONFIG_SYS_DEV3_SIZE);
 
 
        /* configure device timing */
-#ifdef CFG_DEV0_PAR            /* set port parameters for SRAM device module access */
+#ifdef CONFIG_SYS_DEV0_PAR             /* set port parameters for SRAM device module access */
        if (!sram_boot)
-               GT_REG_WRITE (DEVICE_BANK0PARAMETERS, CFG_DEV0_PAR);
+               GT_REG_WRITE (DEVICE_BANK0PARAMETERS, CONFIG_SYS_DEV0_PAR);
 #endif
 
-#ifdef CFG_DEV1_PAR            /* set port parameters for RTC device module access */
-       GT_REG_WRITE (DEVICE_BANK1PARAMETERS, CFG_DEV1_PAR);
+#ifdef CONFIG_SYS_DEV1_PAR             /* set port parameters for RTC device module access */
+       GT_REG_WRITE (DEVICE_BANK1PARAMETERS, CONFIG_SYS_DEV1_PAR);
 #endif
-#ifdef CFG_DEV2_PAR            /* set port parameters for DUART device module access */
-       GT_REG_WRITE (DEVICE_BANK2PARAMETERS, CFG_DEV2_PAR);
+#ifdef CONFIG_SYS_DEV2_PAR             /* set port parameters for DUART device module access */
+       GT_REG_WRITE (DEVICE_BANK2PARAMETERS, CONFIG_SYS_DEV2_PAR);
 #endif
 
-#ifdef CFG_32BIT_BOOT_PAR      /* set port parameters for Flash device module access */
+#ifdef CONFIG_SYS_32BIT_BOOT_PAR       /* set port parameters for Flash device module access */
        /* detect if we are booting from the 32 bit flash */
        if (GTREGREAD (DEVICE_BOOT_BANK_PARAMETERS) & (0x3 << 20)) {
                /* 32 bit boot flash */
-               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CFG_8BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
                GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS,
-                             CFG_32BIT_BOOT_PAR);
+                             CONFIG_SYS_32BIT_BOOT_PAR);
        } else {
                /* 8 bit boot flash */
-               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CFG_32BIT_BOOT_PAR);
-               GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CONFIG_SYS_32BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
        }
 #else
        /* 8 bit boot flash only */
-/*     GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);*/
+/*     GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);*/
 #endif
 
 
        gt_cpu_config ();
 
        /* MPP setup */
-       GT_REG_WRITE (MPP_CONTROL0, CFG_MPP_CONTROL_0);
-       GT_REG_WRITE (MPP_CONTROL1, CFG_MPP_CONTROL_1);
-       GT_REG_WRITE (MPP_CONTROL2, CFG_MPP_CONTROL_2);
-       GT_REG_WRITE (MPP_CONTROL3, CFG_MPP_CONTROL_3);
+       GT_REG_WRITE (MPP_CONTROL0, CONFIG_SYS_MPP_CONTROL_0);
+       GT_REG_WRITE (MPP_CONTROL1, CONFIG_SYS_MPP_CONTROL_1);
+       GT_REG_WRITE (MPP_CONTROL2, CONFIG_SYS_MPP_CONTROL_2);
+       GT_REG_WRITE (MPP_CONTROL3, CONFIG_SYS_MPP_CONTROL_3);
 
-       GT_REG_WRITE (GPP_LEVEL_CONTROL, CFG_GPP_LEVEL_CONTROL);
+       GT_REG_WRITE (GPP_LEVEL_CONTROL, CONFIG_SYS_GPP_LEVEL_CONTROL);
        DEBUG_LED0_ON ();
        DEBUG_LED1_ON ();
        DEBUG_LED2_ON ();
@@ -359,7 +359,7 @@ int board_early_init_f (void)
 int misc_init_r ()
 {
        icache_enable ();
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        l2cache_enable ();
 #endif
 #ifdef CONFIG_MPSC
@@ -380,9 +380,9 @@ void after_reloc (ulong dest_addr, gd_t * gd)
        /* check to see if we booted from the sram.  If so, move things
         * back to the way they should be. (we're running from main
         * memory at this point now */
-       if (memoryGetDeviceBaseAddress (DEVICE0) == CFG_DFL_BOOTCS_BASE) {
-               memoryMapDeviceSpace (DEVICE0, CFG_DEV0_SPACE, CFG_DEV0_SIZE);
-               memoryMapDeviceSpace (BOOT_DEVICE, CFG_DFL_BOOTCS_BASE, _8M);
+       if (memoryGetDeviceBaseAddress (DEVICE0) == CONFIG_SYS_DFL_BOOTCS_BASE) {
+               memoryMapDeviceSpace (DEVICE0, CONFIG_SYS_DEV0_SPACE, CONFIG_SYS_DEV0_SIZE);
+               memoryMapDeviceSpace (BOOT_DEVICE, CONFIG_SYS_DFL_BOOTCS_BASE, _8M);
        }
        display_mem_map ();
        /* now, jump to the main ppcboot board init code */
@@ -402,7 +402,7 @@ int checkboard (void)
 {
        int l_type = 0;
 
-       printf ("BOARD: %s\n", CFG_BOARD_NAME);
+       printf ("BOARD: %s\n", CONFIG_SYS_BOARD_NAME);
        return (l_type);
 }
 
@@ -415,34 +415,34 @@ void debug_led (int led, int mode)
        if (mode == 1) {
                switch (led) {
                case 0:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x08000);
                        break;
 
                case 1:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x0c000);
                        break;
 
                case 2:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x10000);
                        break;
                }
        } else if (mode == 0) {
                switch (led) {
                case 0:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x14000);
                        break;
 
                case 1:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x18000);
                        break;
 
                case 2:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x1c000);
                        break;
                }
@@ -513,7 +513,7 @@ int display_mem_map (void)
 
 /* DRAM check routines copied from gw8260 */
 
-#if defined (CFG_DRAM_TEST)
+#if defined (CONFIG_SYS_DRAM_TEST)
 
 /*********************************************************************/
 /* NAME:  move64() -  moves a double word (64-bit)                  */
@@ -544,7 +544,7 @@ static void move64 (unsigned long long *src, unsigned long long *dest)
 }
 
 
-#if defined (CFG_DRAM_TEST_DATA)
+#if defined (CONFIG_SYS_DRAM_TEST_DATA)
 
 unsigned long long pattern[] = {
        0xaaaaaaaaaaaaaaaaULL,
@@ -607,7 +607,7 @@ unsigned long long pattern[] = {
 /*********************************************************************/
 int mem_test_data (void)
 {
-       unsigned long long *pmem = (unsigned long long *) CFG_MEMTEST_START;
+       unsigned long long *pmem = (unsigned long long *) CONFIG_SYS_MEMTEST_START;
        unsigned long long temp64 = 0;
        int num_patterns = sizeof (pattern) / sizeof (pattern[0]);
        int i;
@@ -634,9 +634,9 @@ int mem_test_data (void)
 
        return 0;
 }
-#endif /* CFG_DRAM_TEST_DATA */
+#endif /* CONFIG_SYS_DRAM_TEST_DATA */
 
-#if defined (CFG_DRAM_TEST_ADDRESS)
+#if defined (CONFIG_SYS_DRAM_TEST_ADDRESS)
 /*********************************************************************/
 /* NAME:  mem_test_address() - test address lines                   */
 /*                                                                  */
@@ -661,8 +661,8 @@ int mem_test_data (void)
 int mem_test_address (void)
 {
        volatile unsigned int *pmem =
-               (volatile unsigned int *) CFG_MEMTEST_START;
-       const unsigned int size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 4;
+               (volatile unsigned int *) CONFIG_SYS_MEMTEST_START;
+       const unsigned int size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 4;
        unsigned int i;
 
        /* write address to each location */
@@ -679,9 +679,9 @@ int mem_test_address (void)
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_ADDRESS */
+#endif /* CONFIG_SYS_DRAM_TEST_ADDRESS */
 
-#if defined (CFG_DRAM_TEST_WALK)
+#if defined (CONFIG_SYS_DRAM_TEST_WALK)
 /*********************************************************************/
 /* NAME:   mem_march() -  memory march                              */
 /*                                                                  */
@@ -739,7 +739,7 @@ int mem_march (volatile unsigned long long *base,
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_WALK */
+#endif /* CONFIG_SYS_DRAM_TEST_WALK */
 
 /*********************************************************************/
 /* NAME:   mem_test_walk() -  a simple walking ones test            */
@@ -771,8 +771,8 @@ int mem_test_walk (void)
 {
        unsigned long long mask;
        volatile unsigned long long *pmem =
-               (volatile unsigned long long *) CFG_MEMTEST_START;
-       const unsigned long size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 8;
+               (volatile unsigned long long *) CONFIG_SYS_MEMTEST_START;
+       const unsigned long size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 8;
 
        unsigned int i;
 
@@ -848,9 +848,9 @@ int testdram (void)
 /*    runwalk = 0; */
 
        if ((rundata == 1) || (runaddress == 1) || (runwalk == 1)) {
-               printf ("Testing RAM from 0x%08x to 0x%08x ...  (don't panic... that will take a moment !!!!)\n", CFG_MEMTEST_START, CFG_MEMTEST_END);
+               printf ("Testing RAM from 0x%08x to 0x%08x ...  (don't panic... that will take a moment !!!!)\n", CONFIG_SYS_MEMTEST_START, CONFIG_SYS_MEMTEST_END);
        }
-#ifdef CFG_DRAM_TEST_DATA
+#ifdef CONFIG_SYS_DRAM_TEST_DATA
        if (rundata == 1) {
                printf ("Test DATA ...  ");
                if (mem_test_data () == 1) {
@@ -860,7 +860,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_ADDRESS
+#ifdef CONFIG_SYS_DRAM_TEST_ADDRESS
        if (runaddress == 1) {
                printf ("Test ADDRESS ...  ");
                if (mem_test_address () == 1) {
@@ -870,7 +870,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_WALK
+#ifdef CONFIG_SYS_DRAM_TEST_WALK
        if (runwalk == 1) {
                printf ("Test WALKING ONEs ...  ");
                if (mem_test_walk () == 1) {
@@ -886,7 +886,7 @@ int testdram (void)
        return 0;
 
 }
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 /* ronen - the below functions are used by the bootm function           */
 /*  - we map the base register to fbe00000 (same mapping as in the LSP) */
@@ -925,7 +925,7 @@ void board_prebootm_init ()
 /* MV_REG_WRITE (MV64360_ETH_RECEIVE_QUEUE_COMMAND_REG(2), 0x0000ff00); */
 
 /* Relocate MV64360 internal regs */
-       my_remap_gt_regs_bootm (CFG_GT_REGS, BRIDGE_REG_BASE_BOOTM);
+       my_remap_gt_regs_bootm (CONFIG_SYS_GT_REGS, BRIDGE_REG_BASE_BOOTM);
 
        icache_disable ();
        dcache_disable ();
index 923d95555b262603c1e32bf43a0186d25f26a6e8..7ad6ae8c0edefecec5648a2c384b1b39db07e7af 100644 (file)
@@ -426,7 +426,7 @@ void mpsc_sdma_init (void)
                          (MV64360_CUNIT_BASE_ADDR_WIN_0_BIT * 2)));
 
 /* Setup MPSC internal address space base address      */
-       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CFG_GT_REGS);
+       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CONFIG_SYS_GT_REGS);
 
 /* no high address remap*/
        GT_REG_WRITE (CUNIT_HIGH_ADDR_REMAP_REG0, 0x00);
@@ -516,9 +516,9 @@ int galbrg_set_baudrate (int channel, int rate)
 
 #ifdef ZUMA_NTL
        /* from tclk */
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #else
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #endif
 
        galbrg_set_CDV (channel, clock);        /* set timer Reg. for BRG */
index 563728412476cdb1b5b130f4fda1378792640aa8..a7e3c95b8c7b92bd95f0d739863e4bc98aeaa3f8 100644 (file)
@@ -859,14 +859,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci0_hose.regions + 0,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci0_hose.regions + 1,
-                       CFG_PCI0_IO_SPACE_PCI,
-                       CFG_PCI0_IO_SPACE, CFG_PCI0_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI0_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI0_IO_SPACE, CONFIG_SYS_PCI0_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci0_hose,
                     pci_hose_read_config_byte_via_dword,
@@ -901,14 +901,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci1_hose.regions + 0,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci1_hose.regions + 1,
-                       CFG_PCI1_IO_SPACE_PCI,
-                       CFG_PCI1_IO_SPACE, CFG_PCI1_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI1_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI1_IO_SPACE, CONFIG_SYS_PCI1_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci1_hose,
                     pci_hose_read_config_byte_via_dword,
index ecadaf2710282a5641195d7e0e2606b31f7374b7..d0817d7e206e277acaec62cb65df20a6ef80649c 100644 (file)
@@ -312,7 +312,7 @@ return 0;
        } else
                dimmInfo->slot = slot;  /* start to fill up dimminfo for this "slot" */
 
-#ifdef CFG_DISPLAY_DIMM_SPD_CONTENT
+#ifdef CONFIG_SYS_DISPLAY_DIMM_SPD_CONTENT
 
        for (i = 0; i <= 127; i++) {
                printf ("SPD-EEPROM Byte %3d = %3x (%3d)\n", i, data[i],
@@ -690,16 +690,16 @@ return 0;
                                                if ((dimmInfo->
                                                     minimumCycleTimeAtMaxCasLatancy_LoP
                                                     <
-                                                    CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                    CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                    ||
                                                    ((dimmInfo->
                                                      minimumCycleTimeAtMaxCasLatancy_LoP
                                                      ==
-                                                     CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                     CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                     && (dimmInfo->
                                                         minimumCycleTimeAtMaxCasLatancy_RoP
                                                         <
-                                                        CFG_DDR_SDRAM_CYCLE_COUNT_ROP)))
+                                                        CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_ROP)))
                                                {
                                                        dimmInfo->
                                                                maxClSupported_DDR
@@ -714,16 +714,16 @@ return 0;
                                                if ((dimmInfo->
                                                     minimumCycleTimeAtMaxCasLatancy_LoP
                                                     >
-                                                    CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                    CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                    ||
                                                    ((dimmInfo->
                                                      minimumCycleTimeAtMaxCasLatancy_LoP
                                                      ==
-                                                     CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                     CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                     && (dimmInfo->
                                                         minimumCycleTimeAtMaxCasLatancy_RoP
                                                         >
-                                                        CFG_DDR_SDRAM_CYCLE_COUNT_ROP)))
+                                                        CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_ROP)))
                                                {
                                                        printf ("*********************************************************\n");
                                                        printf ("*** sysClock is higher than SDRAM's allowed frequency ***\n");
@@ -1290,37 +1290,37 @@ int setup_sdram (AUX_MEM_DIMM_INFO * info)
        case 0x0:
        case 0x80:              /* refresh period is 15.625 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 15.625 * (float) CFG_BUS_HZ)
+                       (unsigned int) (((float) 15.625 * (float) CONFIG_SYS_BUS_HZ)
                                        / (float) 1000000.0);
                break;
        case 0x1:
        case 0x81:              /* refresh period is 3.9 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 3.9 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 3.9 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x2:
        case 0x82:              /* refresh period is 7.8 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 7.8 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 7.8 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x3:
        case 0x83:              /* refresh period is 31.3 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 31.3 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 31.3 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x4:
        case 0x84:              /* refresh period is 62.5 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 62.5 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 62.5 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x5:
        case 0x85:              /* refresh period is 125 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 125 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 125 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        default:                /* refresh period undefined */
@@ -1807,7 +1807,7 @@ phys_size_t initdram (int board_type)
 
        printf ("-- DIMM2 has %d banks\n", dimmInfo2.numOfModuleBanks);
 
-       for (bank_no = 0; bank_no < CFG_DRAM_BANKS; bank_no++) {
+       for (bank_no = 0; bank_no < CONFIG_SYS_DRAM_BANKS; bank_no++) {
                /* skip over banks that are not populated */
                if (!checkbank[bank_no])
                        continue;
index 8a05cd20985a130a1dee3d91b7039ecf66742f72..14e635592ee5acd1cb4e51b0273a8edabbffc1cb 100644 (file)
@@ -55,7 +55,7 @@
 /* ------------------------------------------------------------------------- */
 
 /* this is the current GT register space location */
-/* it starts at CFG_DFL_GT_REGS but moves later to CFG_GT_REGS */
+/* it starts at CONFIG_SYS_DFL_GT_REGS but moves later to CONFIG_SYS_GT_REGS */
 
 /* Unfortunately, we cant change it while we are in flash, so we initialize it
  * to the "final" value. This means that any debug_led calls before
@@ -64,7 +64,7 @@
  */
 
 void board_prebootm_init (void);
-unsigned int INTERNAL_REG_BASE_ADDR = CFG_GT_REGS;
+unsigned int INTERNAL_REG_BASE_ADDR = CONFIG_SYS_GT_REGS;
 int display_mem_map (void);
 
 /* ------------------------------------------------------------------------- */
@@ -127,7 +127,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_0_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_0_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
 
        }
        if ((GTREGREAD (PCI_1_MODE) & (BIT4 | BIT5)) != 0) {    /*if  PCI-X */
@@ -136,7 +136,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_1_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_1_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
        }
 
        /* Enable master */
@@ -154,21 +154,21 @@ static void gt_pci_config (void)
        /* ronen- add write to pci remap registers for 64460.
           in 64360 when writing to pci base go and overide remap automaticaly,
           in 64460 it doesn't */
-       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CFG_PCI0_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CFG_PCI0_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_0_IO_SIZE, (CFG_PCI0_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CONFIG_SYS_PCI0_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CONFIG_SYS_PCI0_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_0_IO_SIZE, (CONFIG_SYS_PCI0_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CFG_PCI0_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CONFIG_SYS_PCI0_MEM_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CFG_PCI1_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CFG_PCI1_IO_BASE >> 16);
-       GT_REG_WRITE (PCI_1_IO_SIZE, (CFG_PCI1_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CONFIG_SYS_PCI1_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CONFIG_SYS_PCI1_IO_BASE >> 16);
+       GT_REG_WRITE (PCI_1_IO_SIZE, (CONFIG_SYS_PCI1_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CFG_PCI1_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CONFIG_SYS_PCI1_MEM_SIZE - 1) >> 16);
 
        /* PCI interface settings */
        /* Timeout set to retry forever */
@@ -184,7 +184,7 @@ static void gt_pci_config (void)
        for (stat = 0; stat <= PCI_HOST1; stat++)
                pciWriteConfigReg (stat,
                                   PCI_INTERNAL_REGISTERS_MEMORY_MAPPED_BASE_ADDRESS,
-                                  SELF, CFG_GT_REGS);
+                                  SELF, CONFIG_SYS_GT_REGS);
 #endif
 
 }
@@ -200,7 +200,7 @@ static void gt_cpu_config (void)
        tmp = GTREGREAD (CPU_CONFIGURATION);
 
        /* set the SINGLE_CPU bit  see MV64460 P.399 */
-#ifndef CFG_GT_DUAL_CPU                /* SINGLE_CPU seems to cause JTAG problems */
+#ifndef CONFIG_SYS_GT_DUAL_CPU         /* SINGLE_CPU seems to cause JTAG problems */
        tmp |= CPU_CONF_SINGLE_CPU;
 #endif
 
@@ -251,7 +251,7 @@ int board_early_init_f (void)
         * it last time. (huber)
         */
 
-       my_remap_gt_regs (CFG_DFL_GT_REGS, CFG_GT_REGS);
+       my_remap_gt_regs (CONFIG_SYS_DFL_GT_REGS, CONFIG_SYS_GT_REGS);
 
        /* No PCI in first release of Port To_do: enable it. */
 #ifdef CONFIG_PCI
@@ -297,56 +297,56 @@ int board_early_init_f (void)
         * on-board sram on the eval board, and updates the correct
         * registers to boot from the sram. (device0)
         */
-       if (memoryGetDeviceBaseAddress (DEVICE0) == CFG_DFL_BOOTCS_BASE)
+       if (memoryGetDeviceBaseAddress (DEVICE0) == CONFIG_SYS_DFL_BOOTCS_BASE)
                sram_boot = 1;
        if (!sram_boot)
-               memoryMapDeviceSpace (DEVICE0, CFG_DEV0_SPACE, CFG_DEV0_SIZE);
+               memoryMapDeviceSpace (DEVICE0, CONFIG_SYS_DEV0_SPACE, CONFIG_SYS_DEV0_SIZE);
 
-       memoryMapDeviceSpace (DEVICE1, CFG_DEV1_SPACE, CFG_DEV1_SIZE);
-       memoryMapDeviceSpace (DEVICE2, CFG_DEV2_SPACE, CFG_DEV2_SIZE);
-       memoryMapDeviceSpace (DEVICE3, CFG_DEV3_SPACE, CFG_DEV3_SIZE);
+       memoryMapDeviceSpace (DEVICE1, CONFIG_SYS_DEV1_SPACE, CONFIG_SYS_DEV1_SIZE);
+       memoryMapDeviceSpace (DEVICE2, CONFIG_SYS_DEV2_SPACE, CONFIG_SYS_DEV2_SIZE);
+       memoryMapDeviceSpace (DEVICE3, CONFIG_SYS_DEV3_SPACE, CONFIG_SYS_DEV3_SIZE);
 
 
        /* configure device timing */
-#ifdef CFG_DEV0_PAR            /* set port parameters for SRAM device module access */
+#ifdef CONFIG_SYS_DEV0_PAR             /* set port parameters for SRAM device module access */
        if (!sram_boot)
-               GT_REG_WRITE (DEVICE_BANK0PARAMETERS, CFG_DEV0_PAR);
+               GT_REG_WRITE (DEVICE_BANK0PARAMETERS, CONFIG_SYS_DEV0_PAR);
 #endif
 
-#ifdef CFG_DEV1_PAR            /* set port parameters for RTC device module access */
-       GT_REG_WRITE (DEVICE_BANK1PARAMETERS, CFG_DEV1_PAR);
+#ifdef CONFIG_SYS_DEV1_PAR             /* set port parameters for RTC device module access */
+       GT_REG_WRITE (DEVICE_BANK1PARAMETERS, CONFIG_SYS_DEV1_PAR);
 #endif
-#ifdef CFG_DEV2_PAR            /* set port parameters for DUART device module access */
-       GT_REG_WRITE (DEVICE_BANK2PARAMETERS, CFG_DEV2_PAR);
+#ifdef CONFIG_SYS_DEV2_PAR             /* set port parameters for DUART device module access */
+       GT_REG_WRITE (DEVICE_BANK2PARAMETERS, CONFIG_SYS_DEV2_PAR);
 #endif
 
-#ifdef CFG_32BIT_BOOT_PAR      /* set port parameters for Flash device module access */
+#ifdef CONFIG_SYS_32BIT_BOOT_PAR       /* set port parameters for Flash device module access */
        /* detect if we are booting from the 32 bit flash */
        if (GTREGREAD (DEVICE_BOOT_BANK_PARAMETERS) & (0x3 << 20)) {
                /* 32 bit boot flash */
-               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CFG_8BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
                GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS,
-                             CFG_32BIT_BOOT_PAR);
+                             CONFIG_SYS_32BIT_BOOT_PAR);
        } else {
                /* 8 bit boot flash */
-               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CFG_32BIT_BOOT_PAR);
-               GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CONFIG_SYS_32BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
        }
 #else
        /* 8 bit boot flash only */
-/*     GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);*/
+/*     GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);*/
 #endif
 
 
        gt_cpu_config ();
 
        /* MPP setup */
-       GT_REG_WRITE (MPP_CONTROL0, CFG_MPP_CONTROL_0);
-       GT_REG_WRITE (MPP_CONTROL1, CFG_MPP_CONTROL_1);
-       GT_REG_WRITE (MPP_CONTROL2, CFG_MPP_CONTROL_2);
-       GT_REG_WRITE (MPP_CONTROL3, CFG_MPP_CONTROL_3);
+       GT_REG_WRITE (MPP_CONTROL0, CONFIG_SYS_MPP_CONTROL_0);
+       GT_REG_WRITE (MPP_CONTROL1, CONFIG_SYS_MPP_CONTROL_1);
+       GT_REG_WRITE (MPP_CONTROL2, CONFIG_SYS_MPP_CONTROL_2);
+       GT_REG_WRITE (MPP_CONTROL3, CONFIG_SYS_MPP_CONTROL_3);
 
-       GT_REG_WRITE (GPP_LEVEL_CONTROL, CFG_GPP_LEVEL_CONTROL);
+       GT_REG_WRITE (GPP_LEVEL_CONTROL, CONFIG_SYS_GPP_LEVEL_CONTROL);
        DEBUG_LED0_ON ();
        DEBUG_LED1_ON ();
        DEBUG_LED2_ON ();
@@ -359,7 +359,7 @@ int board_early_init_f (void)
 int misc_init_r ()
 {
        icache_enable ();
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        l2cache_enable ();
 #endif
 #ifdef CONFIG_MPSC
@@ -380,9 +380,9 @@ void after_reloc (ulong dest_addr, gd_t * gd)
        /* check to see if we booted from the sram.  If so, move things
         * back to the way they should be. (we're running from main
         * memory at this point now */
-       if (memoryGetDeviceBaseAddress (DEVICE0) == CFG_DFL_BOOTCS_BASE) {
-               memoryMapDeviceSpace (DEVICE0, CFG_DEV0_SPACE, CFG_DEV0_SIZE);
-               memoryMapDeviceSpace (BOOT_DEVICE, CFG_DFL_BOOTCS_BASE, _8M);
+       if (memoryGetDeviceBaseAddress (DEVICE0) == CONFIG_SYS_DFL_BOOTCS_BASE) {
+               memoryMapDeviceSpace (DEVICE0, CONFIG_SYS_DEV0_SPACE, CONFIG_SYS_DEV0_SIZE);
+               memoryMapDeviceSpace (BOOT_DEVICE, CONFIG_SYS_DFL_BOOTCS_BASE, _8M);
        }
        display_mem_map ();
        /* now, jump to the main ppcboot board init code */
@@ -402,7 +402,7 @@ int checkboard (void)
 {
        int l_type = 0;
 
-       printf ("BOARD: %s\n", CFG_BOARD_NAME);
+       printf ("BOARD: %s\n", CONFIG_SYS_BOARD_NAME);
        return (l_type);
 }
 
@@ -415,34 +415,34 @@ void debug_led (int led, int mode)
        if (mode == 1) {
                switch (led) {
                case 0:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x08000);
                        break;
 
                case 1:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x0c000);
                        break;
 
                case 2:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x10000);
                        break;
                }
        } else if (mode == 0) {
                switch (led) {
                case 0:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x14000);
                        break;
 
                case 1:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x18000);
                        break;
 
                case 2:
-                       addr = (int *) ((unsigned int) CFG_DEV1_SPACE |
+                       addr = (int *) ((unsigned int) CONFIG_SYS_DEV1_SPACE |
                                        0x1c000);
                        break;
                }
@@ -513,7 +513,7 @@ int display_mem_map (void)
 
 /* DRAM check routines copied from gw8260 */
 
-#if defined (CFG_DRAM_TEST)
+#if defined (CONFIG_SYS_DRAM_TEST)
 
 /*********************************************************************/
 /* NAME:  move64() -  moves a double word (64-bit)                  */
@@ -544,7 +544,7 @@ static void move64 (unsigned long long *src, unsigned long long *dest)
 }
 
 
-#if defined (CFG_DRAM_TEST_DATA)
+#if defined (CONFIG_SYS_DRAM_TEST_DATA)
 
 unsigned long long pattern[] = {
        0xaaaaaaaaaaaaaaaaULL,
@@ -607,7 +607,7 @@ unsigned long long pattern[] = {
 /*********************************************************************/
 int mem_test_data (void)
 {
-       unsigned long long *pmem = (unsigned long long *) CFG_MEMTEST_START;
+       unsigned long long *pmem = (unsigned long long *) CONFIG_SYS_MEMTEST_START;
        unsigned long long temp64 = 0;
        int num_patterns = sizeof (pattern) / sizeof (pattern[0]);
        int i;
@@ -634,9 +634,9 @@ int mem_test_data (void)
 
        return 0;
 }
-#endif /* CFG_DRAM_TEST_DATA */
+#endif /* CONFIG_SYS_DRAM_TEST_DATA */
 
-#if defined (CFG_DRAM_TEST_ADDRESS)
+#if defined (CONFIG_SYS_DRAM_TEST_ADDRESS)
 /*********************************************************************/
 /* NAME:  mem_test_address() - test address lines                   */
 /*                                                                  */
@@ -661,8 +661,8 @@ int mem_test_data (void)
 int mem_test_address (void)
 {
        volatile unsigned int *pmem =
-               (volatile unsigned int *) CFG_MEMTEST_START;
-       const unsigned int size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 4;
+               (volatile unsigned int *) CONFIG_SYS_MEMTEST_START;
+       const unsigned int size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 4;
        unsigned int i;
 
        /* write address to each location */
@@ -679,9 +679,9 @@ int mem_test_address (void)
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_ADDRESS */
+#endif /* CONFIG_SYS_DRAM_TEST_ADDRESS */
 
-#if defined (CFG_DRAM_TEST_WALK)
+#if defined (CONFIG_SYS_DRAM_TEST_WALK)
 /*********************************************************************/
 /* NAME:   mem_march() -  memory march                              */
 /*                                                                  */
@@ -739,7 +739,7 @@ int mem_march (volatile unsigned long long *base,
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_WALK */
+#endif /* CONFIG_SYS_DRAM_TEST_WALK */
 
 /*********************************************************************/
 /* NAME:   mem_test_walk() -  a simple walking ones test            */
@@ -771,8 +771,8 @@ int mem_test_walk (void)
 {
        unsigned long long mask;
        volatile unsigned long long *pmem =
-               (volatile unsigned long long *) CFG_MEMTEST_START;
-       const unsigned long size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 8;
+               (volatile unsigned long long *) CONFIG_SYS_MEMTEST_START;
+       const unsigned long size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 8;
 
        unsigned int i;
 
@@ -848,9 +848,9 @@ int testdram (void)
 /*    runwalk = 0; */
 
        if ((rundata == 1) || (runaddress == 1) || (runwalk == 1)) {
-               printf ("Testing RAM from 0x%08x to 0x%08x ...  (don't panic... that will take a moment !!!!)\n", CFG_MEMTEST_START, CFG_MEMTEST_END);
+               printf ("Testing RAM from 0x%08x to 0x%08x ...  (don't panic... that will take a moment !!!!)\n", CONFIG_SYS_MEMTEST_START, CONFIG_SYS_MEMTEST_END);
        }
-#ifdef CFG_DRAM_TEST_DATA
+#ifdef CONFIG_SYS_DRAM_TEST_DATA
        if (rundata == 1) {
                printf ("Test DATA ...  ");
                if (mem_test_data () == 1) {
@@ -860,7 +860,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_ADDRESS
+#ifdef CONFIG_SYS_DRAM_TEST_ADDRESS
        if (runaddress == 1) {
                printf ("Test ADDRESS ...  ");
                if (mem_test_address () == 1) {
@@ -870,7 +870,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_WALK
+#ifdef CONFIG_SYS_DRAM_TEST_WALK
        if (runwalk == 1) {
                printf ("Test WALKING ONEs ...  ");
                if (mem_test_walk () == 1) {
@@ -886,7 +886,7 @@ int testdram (void)
        return 0;
 
 }
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 /* ronen - the below functions are used by the bootm function           */
 /*  - we map the base register to fbe00000 (same mapping as in the LSP) */
@@ -925,7 +925,7 @@ void board_prebootm_init ()
        GT_REG_WRITE (MV64460_ETH_RECEIVE_QUEUE_COMMAND_REG (2), 0x0000ff00);
 
 /* Relocate MV64460 internal regs */
-       my_remap_gt_regs_bootm (CFG_GT_REGS, BRIDGE_REG_BASE_BOOTM);
+       my_remap_gt_regs_bootm (CONFIG_SYS_GT_REGS, BRIDGE_REG_BASE_BOOTM);
 
        icache_disable ();
        dcache_disable ();
index 359b831406111d092cc2b84e444ba8b6af737b39..303a63615f730ea9ae2629dd85437d60a9ab9328 100644 (file)
@@ -426,7 +426,7 @@ void mpsc_sdma_init (void)
                          (MV64460_CUNIT_BASE_ADDR_WIN_0_BIT * 2)));
 
 /* Setup MPSC internal address space base address      */
-       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CFG_GT_REGS);
+       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CONFIG_SYS_GT_REGS);
 
 /* no high address remap*/
        GT_REG_WRITE (CUNIT_HIGH_ADDR_REMAP_REG0, 0x00);
@@ -516,9 +516,9 @@ int galbrg_set_baudrate (int channel, int rate)
 
 #ifdef ZUMA_NTL
        /* from tclk */
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #else
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #endif
 
        galbrg_set_CDV (channel, clock);        /* set timer Reg. for BRG */
index 563728412476cdb1b5b130f4fda1378792640aa8..a7e3c95b8c7b92bd95f0d739863e4bc98aeaa3f8 100644 (file)
@@ -859,14 +859,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci0_hose.regions + 0,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci0_hose.regions + 1,
-                       CFG_PCI0_IO_SPACE_PCI,
-                       CFG_PCI0_IO_SPACE, CFG_PCI0_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI0_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI0_IO_SPACE, CONFIG_SYS_PCI0_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci0_hose,
                     pci_hose_read_config_byte_via_dword,
@@ -901,14 +901,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci1_hose.regions + 0,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci1_hose.regions + 1,
-                       CFG_PCI1_IO_SPACE_PCI,
-                       CFG_PCI1_IO_SPACE, CFG_PCI1_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI1_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI1_IO_SPACE, CONFIG_SYS_PCI1_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci1_hose,
                     pci_hose_read_config_byte_via_dword,
index f36f3484aba03eb9fc0f3b221df9880f9917c497..6d6b12644328e551f318f7b5052fd26614187cbb 100644 (file)
@@ -312,7 +312,7 @@ return 0;
        } else
                dimmInfo->slot = slot;  /* start to fill up dimminfo for this "slot" */
 
-#ifdef CFG_DISPLAY_DIMM_SPD_CONTENT
+#ifdef CONFIG_SYS_DISPLAY_DIMM_SPD_CONTENT
 
        for (i = 0; i <= 127; i++) {
                printf ("SPD-EEPROM Byte %3d = %3x (%3d)\n", i, data[i],
@@ -690,16 +690,16 @@ return 0;
                                                if ((dimmInfo->
                                                     minimumCycleTimeAtMaxCasLatancy_LoP
                                                     <
-                                                    CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                    CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                    ||
                                                    ((dimmInfo->
                                                      minimumCycleTimeAtMaxCasLatancy_LoP
                                                      ==
-                                                     CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                     CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                     && (dimmInfo->
                                                         minimumCycleTimeAtMaxCasLatancy_RoP
                                                         <
-                                                        CFG_DDR_SDRAM_CYCLE_COUNT_ROP)))
+                                                        CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_ROP)))
                                                {
                                                        dimmInfo->
                                                                maxClSupported_DDR
@@ -714,16 +714,16 @@ return 0;
                                                if ((dimmInfo->
                                                     minimumCycleTimeAtMaxCasLatancy_LoP
                                                     >
-                                                    CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                    CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                    ||
                                                    ((dimmInfo->
                                                      minimumCycleTimeAtMaxCasLatancy_LoP
                                                      ==
-                                                     CFG_DDR_SDRAM_CYCLE_COUNT_LOP)
+                                                     CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP)
                                                     && (dimmInfo->
                                                         minimumCycleTimeAtMaxCasLatancy_RoP
                                                         >
-                                                        CFG_DDR_SDRAM_CYCLE_COUNT_ROP)))
+                                                        CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_ROP)))
                                                {
                                                        printf ("*********************************************************\n");
                                                        printf ("*** sysClock is higher than SDRAM's allowed frequency ***\n");
@@ -1289,37 +1289,37 @@ int setup_sdram (AUX_MEM_DIMM_INFO * info)
        case 0x0:
        case 0x80:              /* refresh period is 15.625 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 15.625 * (float) CFG_BUS_HZ)
+                       (unsigned int) (((float) 15.625 * (float) CONFIG_SYS_BUS_HZ)
                                        / (float) 1000000.0);
                break;
        case 0x1:
        case 0x81:              /* refresh period is 3.9 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 3.9 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 3.9 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x2:
        case 0x82:              /* refresh period is 7.8 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 7.8 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 7.8 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x3:
        case 0x83:              /* refresh period is 31.3 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 31.3 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 31.3 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x4:
        case 0x84:              /* refresh period is 62.5 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 62.5 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 62.5 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        case 0x5:
        case 0x85:              /* refresh period is 125 usec */
                sdram_config_reg =
-                       (unsigned int) (((float) 125 * (float) CFG_BUS_HZ) /
+                       (unsigned int) (((float) 125 * (float) CONFIG_SYS_BUS_HZ) /
                                        (float) 1000000.0);
                break;
        default:                /* refresh period undefined */
@@ -1816,7 +1816,7 @@ phys_size_t initdram (int board_type)
 
        printf ("-- DIMM2 has %d banks\n", dimmInfo2.numOfModuleBanks);
 
-       for (bank_no = 0; bank_no < CFG_DRAM_BANKS; bank_no++) {
+       for (bank_no = 0; bank_no < CONFIG_SYS_DRAM_BANKS; bank_no++) {
                /* skip over banks that are not populated */
                if (!checkbank[bank_no])
                        continue;
index b31f37d0f6ad1fd10d0037d4938e7486229d0ce0..204ca78fa4ff6c87010847cc30477532d9640f56 100644 (file)
@@ -42,9 +42,9 @@ int dram_init (void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index 804635a4aee6403a74d628e490070569a1b4d8ff..9fdf700ff5e45308057e8fa774079fdd75b41af9 100644 (file)
@@ -111,7 +111,7 @@ void board_get_enetaddr (uchar * enet)
        char buff[256], *cp;
 
        /* Initialize I2C                                       */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /* Read 256 bytes in EEPROM                             */
        i2c_read (0x54, 0, 1, (uchar *)buff, 128);
@@ -167,7 +167,7 @@ void rpxclassic_init (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size10;
 
@@ -175,15 +175,15 @@ phys_size_t initdram (int board_type)
                           sizeof (sdram_table) / sizeof (uint));
 
        /* Refresh clock prescalar */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_mar = 0x00000000;
 
        /* Map controller banks 1 to the SDRAM bank */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_10COL & (~(MAMR_PTAE));    /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_10COL & (~(MAMR_PTAE));     /* no refresh yet */
 
        udelay (200);
 
@@ -200,7 +200,7 @@ phys_size_t initdram (int board_type)
         * try 10 column mode
         */
 
-       size10 = dram_size (CFG_MAMR_10COL, SDRAM_BASE_PRELIM,
+       size10 = dram_size (CONFIG_SYS_MAMR_10COL, SDRAM_BASE_PRELIM,
                                                SDRAM_MAX_SIZE);
 
        return (size10);
@@ -218,7 +218,7 @@ phys_size_t initdram (int board_type)
 
 static long int dram_size (long int mamr_value, long int *base, long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index cc76bbdfae47d221304cc6e75c3250161d2c352c..e1f3f9d07bd1533557df4b9cd18aa3eb3d2ae88a 100644 (file)
@@ -299,7 +299,7 @@ void video_get_info_str (int line_number, char *info)
  */
 unsigned int board_video_init (void)
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
 
     /* Program ECCX registers                                                */
index 2e0b8f958800f01fdaddc47f85c2ae5aa47683d5..f07d96052aa5c66f32c5adfd678b678eb6053a4c 100644 (file)
@@ -33,7 +33,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -51,20 +51,20 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -313,7 +313,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long *)(info->start[l_sect]);
        while ((addr[0] & 0x80808080) != 0x80808080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -436,7 +436,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index bca31e4c8e6e5d0933c5abc53f1cbe43be478739..dca53a46812b2a925aae58582a6da8397874c2cd 100644 (file)
@@ -104,7 +104,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size10;
 
@@ -112,15 +112,15 @@ phys_size_t initdram (int board_type)
                   sizeof (sdram_table) / sizeof (uint));
 
        /* Refresh clock prescalar */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_mar = 0x00000000;
 
        /* Map controller banks 1 to the SDRAM bank */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_10COL & (~(MAMR_PTAE));    /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_10COL & (~(MAMR_PTAE));     /* no refresh yet */
 
        udelay (200);
 
@@ -137,7 +137,7 @@ phys_size_t initdram (int board_type)
         * try 10 column mode
         */
 
-       size10 = dram_size (CFG_MAMR_10COL, SDRAM_BASE_PRELIM,
+       size10 = dram_size (CONFIG_SYS_MAMR_10COL, SDRAM_BASE_PRELIM,
                            SDRAM_MAX_SIZE);
 
        return (size10);
@@ -156,7 +156,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index 659d60a2dc73e74ad725ffd997c5918e25cdfccb..788fcdf299a680c73801f22273d5705511b75f34 100644 (file)
@@ -38,7 +38,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -52,13 +52,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-/*     volatile immap_t     *immap  = (immap_t *)CFG_IMMR; */
+/*     volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR; */
 /*     volatile memctl8xx_t *memctl = &immap->im_memctl; */
        unsigned long size_b0 ;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -73,19 +73,19 @@ unsigned long flash_init (void)
 */
        /* Remap FLASH according to real size */
 /*%%%
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 %%%*/
        /* Re-do sizing to get full correct info */
 
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -390,7 +390,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long *)(info->start[l_sect]);
        while ((addr[0] & 0x80808080) != 0x80808080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -513,7 +513,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index d6fabf04eaca0585a20a7b8c4d84f0cee03eccb4..364a3165cde51580e394baa78ccdee35fcfdde9b 100644 (file)
@@ -106,22 +106,22 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size9;
 
        upmconfig(UPMA, (uint *)sdram_table, sizeof(sdram_table)/sizeof(uint));
 
        /* Refresh clock prescalar */
-       memctl->memc_mptpr = CFG_MPTPR ;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR ;
 
        memctl->memc_mar  = 0x00000088;
 
        /* Map controller banks 1 to the SDRAM bank */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_9COL & (~(MAMR_PTAE)); /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_9COL & (~(MAMR_PTAE)); /* no refresh yet */
        /*Disable Periodic timer A. */
 
        udelay(200);
@@ -142,13 +142,13 @@ phys_size_t initdram (int board_type)
          * try 9 column mode
          */
 
-       size9 = dram_size (CFG_MAMR_9COL, SDRAM_BASE_PRELIM, SDRAM_MAX_SIZE);
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, SDRAM_BASE_PRELIM, SDRAM_MAX_SIZE);
 
        /*
         * Final mapping:
         */
 
-       memctl->memc_or1 = ((-size9) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+       memctl->memc_or1 = ((-size9) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
 
        udelay (1000);
 
@@ -171,7 +171,7 @@ void rpxlite_init (void)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index 41cb036bb8ab1fb1eecab59bfbb639365b247380..91788af206b0f5ce2188d13ee1628eb141e42b33 100644 (file)
@@ -49,7 +49,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions   vu_long : volatile unsigned long IN include/common.h
@@ -64,22 +64,22 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* If Monitor is in the cope of FLASH,then
         * protect this area by default in case for
         * other occupation. [SAM] */
 
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+CFG_MONITOR_LEN-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1,
                      &flash_info[0]);
 #endif
        flash_info[0].size = size_b0;
@@ -360,7 +360,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long *)(info->start[l_sect]);
        while ((addr[0] & 0x80808080) != 0x80808080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -482,7 +482,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index c0b772d7272801e3823fe78f68b7398bf4187a5d..9d016c59d3c42a24fe5fe9ca19ec0439948f8038 100644 (file)
@@ -112,7 +112,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long reg;
        long int size8, size9;
@@ -126,17 +126,17 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
        /*
         * Map controller bank 1 the SDRAM bank 2 at physical address 0.
         */
-       memctl->memc_or1 = CFG_OR2_PRELIM;
-       memctl->memc_br1 = CFG_BR2_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR2_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -156,7 +156,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL,
                           SDRAM_BASE2_PRELIM,
                           SDRAM_MAX_SIZE);
 
@@ -165,7 +165,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL,
                           SDRAM_BASE2_PRELIM,
                           SDRAM_MAX_SIZE);
 
@@ -174,7 +174,7 @@ phys_size_t initdram (int board_type)
 /*             debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                        /* back to 8 columns            */
                size = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*             debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -187,15 +187,15 @@ phys_size_t initdram (int board_type)
         */
        if (size < 0x02000000) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
        /*
         * Final mapping
         */
-       memctl->memc_or1 = ((-size) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or1 = ((-size) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        /*
         * No bank 1
@@ -206,7 +206,7 @@ phys_size_t initdram (int board_type)
 
        /* adjust refresh rate depending on SDRAM type, one bank */
        reg = memctl->memc_mptpr;
-       reg >>= 1;                      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+       reg >>= 1;                      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
        memctl->memc_mptpr = reg;
 
        udelay (10000);
@@ -227,7 +227,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                                                   long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index 6608bca1374f8fc6adeb7988bc65f5c1828134c4..fdbe928fb977f19872ce498e5ee79396560f602e 100644 (file)
 #include <mpc8xx.h>
 
 #ifndef        CONFIG_ENV_ADDR
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -43,13 +43,13 @@ static int write_word (flash_info_t *info, ulong dest, ulong data);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -63,17 +63,17 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size & OR_AM_MSK);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size & OR_AM_MSK);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -388,7 +388,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long*)(info->start[l_sect]);
        while ((addr[0] & 0x00800080) != 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        puts ("Timeout\n");
                        return 1;
                }
@@ -511,7 +511,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 1ba21edf72d852e06dc0a205ed3a6fa198418da2..ce2cf28e3c12aae01ae0c66dd013b94ec8df85b6 100644 (file)
@@ -46,7 +46,7 @@ phys_size_t initdram (int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
index add2a28866604e995bf6aa387f58d31253f83565..b671ce7298aa03485d8af4d955e06ccb26837463 100644 (file)
@@ -27,7 +27,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR  (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR  (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE  CONFIG_ENV_SECT_SIZE
@@ -48,7 +48,7 @@
 #endif
 /*---------------------------------------------------------------------*/
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -65,13 +65,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       unsigned long flash_banks[CFG_MAX_FLASH_BANKS] = CFG_FLASH_BANKS;
-       unsigned long size, size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long flash_banks[CONFIG_SYS_MAX_FLASH_BANKS] = CONFIG_SYS_FLASH_BANKS;
+       unsigned long size, size_b[CONFIG_SYS_MAX_FLASH_BANKS];
 
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i)
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i)
        {
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
@@ -99,12 +99,12 @@ unsigned long flash_init (void)
        }
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-       DEBUGF("protect monitor %x @ %x\n", CFG_MONITOR_BASE, CFG_MONITOR_LEN);
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+       DEBUGF("protect monitor %x @ %x\n", CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN);
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+CFG_MONITOR_LEN-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1,
                      &flash_info[0]);
 #endif
 
@@ -119,7 +119,7 @@ unsigned long flash_init (void)
 
        size = 0;
        DEBUGF("## Final Flash bank sizes: ");
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i)
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i)
        {
                DEBUGF("%08lx ", size_b[i]);
                size += size_b[i];
@@ -285,10 +285,10 @@ static ulong flash_get_size (vu_char *addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = BS(0xFF);             /* restore read mode */
@@ -356,7 +356,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = BS(*addr)) & BYTEME(0x00800080)) != BYTEME(0x00800080)) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = BS(0xB0); /* suspend erase        */
                                        *addr = BS(0xFF); /* reset to read mode */
@@ -439,7 +439,7 @@ static int write_data (flash_info_t *info, uchar *dest, uchar data)
        start = get_timer (0);
 
        while (((status = BS(*addr)) & BYTEME(0x00800080)) != BYTEME(0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = BS(0xFF);       /* restore read mode */
                        return 1;
                }
index d1d7f6cd353130e24bc434f9591d8fd4c5c83621..399be23e1e22ff510f77161f951ab67cf507ac75 100644 (file)
@@ -49,16 +49,16 @@ int board_init (void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x00000100;
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_IORST);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_IORST);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_IORST);
 
        /* Setup GPIO's for PCI INTA */
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_PCI1_INTA);
-       GPIO_INT_ACT_LOW_SET (CFG_GPIO_PCI1_INTA);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_PCI1_INTA);
+       GPIO_INT_ACT_LOW_SET (CONFIG_SYS_GPIO_PCI1_INTA);
 
        /* Setup GPIO's for 33MHz clock output */
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_PCI_CLK);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_EXTBUS_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_PCI_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_EXTBUS_CLK);
        *IXP425_GPIO_GPCLKR = 0x011001FF;
 
        /* CS5: Debug port */
@@ -69,7 +69,7 @@ int board_init (void)
        *IXP425_EXP_CS7 = 0x80900003;
 
        udelay (533);
-       GPIO_OUTPUT_SET (CFG_GPIO_IORST);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_IORST);
 
        ACTUX1_LED1 (2);
        ACTUX1_LED2 (2);
index bb3b7f953b0debd36ba7b08789533c51871f9531..fe454c58e4517c16f663e9fac1438a7b5ea4262f 100644 (file)
 #define ACTUX1_BOARDREL        (readb(IXP425_EXP_BUS_CS6_BASE_PHYS) & 0x0F)
 
 /* GPIO settings */
-#define CFG_GPIO_PCI1_INTA             2
-#define CFG_GPIO_PCI2_INTA             3
-#define CFG_GPIO_I2C_SDA               4
-#define CFG_GPIO_I2C_SCL               5
-#define CFG_GPIO_DBGJUMPER             9
-#define CFG_GPIO_BUTTON1               10
-#define CFG_GPIO_DBGSENSE              11
-#define CFG_GPIO_DTR                   12
-#define CFG_GPIO_IORST                 13      /* Out */
-#define CFG_GPIO_PCI_CLK               14      /* Out */
-#define CFG_GPIO_EXTBUS_CLK            15      /* Out */
+#define CONFIG_SYS_GPIO_PCI1_INTA              2
+#define CONFIG_SYS_GPIO_PCI2_INTA              3
+#define CONFIG_SYS_GPIO_I2C_SDA                4
+#define CONFIG_SYS_GPIO_I2C_SCL                5
+#define CONFIG_SYS_GPIO_DBGJUMPER              9
+#define CONFIG_SYS_GPIO_BUTTON1                10
+#define CONFIG_SYS_GPIO_DBGSENSE               11
+#define CONFIG_SYS_GPIO_DTR                    12
+#define CONFIG_SYS_GPIO_IORST                  13      /* Out */
+#define CONFIG_SYS_GPIO_PCI_CLK                14      /* Out */
+#define CONFIG_SYS_GPIO_EXTBUS_CLK             15      /* Out */
 
 #endif
index 99daef6c5a3db7fc6e1203ea88e1ca2ed0555e79..d6aaad6201aa5544d906d2cc69bcb7f3e82e965d 100644 (file)
@@ -50,24 +50,24 @@ int board_init (void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x00000100;
 
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_IORST);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_ETHRST);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_DSR);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_DCD);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_ETHRST);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_DSR);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_DCD);
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_IORST);
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_ETHRST);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_ETHRST);
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_DSR);
-       GPIO_OUTPUT_SET (CFG_GPIO_DCD);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_DSR);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_DCD);
 
        /* Setup GPIO's for Interrupt inputs */
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_DBGINT);
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_ETHINT);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_DBGINT);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_ETHINT);
 
        /* Setup GPIO's for 33MHz clock output */
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_PCI_CLK);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_EXTBUS_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_PCI_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_EXTBUS_CLK);
        *IXP425_GPIO_GPCLKR = 0x011001FF;
 
        /* CS1: IPAC-X */
@@ -80,8 +80,8 @@ int board_init (void)
        *IXP425_EXP_CS7 = 0x80900003;
 
        udelay (533);
-       GPIO_OUTPUT_SET (CFG_GPIO_IORST);
-       GPIO_OUTPUT_SET (CFG_GPIO_ETHRST);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_ETHRST);
 
        ACTUX2_LED1 (1);
        ACTUX2_LED2 (0);
index 8ffb82a813b378c7bc64ace3b907e289f5dda444..0f5ebcbf99ab2e48856f8dc6cfea0d68c7d0bb3f 100644 (file)
 /*
  * GPIO settings
  */
-#define CFG_GPIO_DBGINT                        0
-#define CFG_GPIO_ETHINT                        1
-#define CFG_GPIO_ETHRST                        2       /* Out */
-#define CFG_GPIO_LED5_GN               3       /* Out */
-#define CFG_GPIO_UNUSED4               4
-#define CFG_GPIO_UNUSED5               5
-#define CFG_GPIO_DSR                   6       /* Out */
-#define CFG_GPIO_DCD                   7       /* Out */
-#define CFG_GPIO_IPAC_INT              8
-#define CFG_GPIO_DBGJUMPER             9
-#define CFG_GPIO_BUTTON1               10
-#define CFG_GPIO_DBGSENSE              11
-#define CFG_GPIO_DTR                   12
-#define CFG_GPIO_IORST                 13      /* Out */
-#define CFG_GPIO_PCI_CLK               14      /* Out */
-#define CFG_GPIO_EXTBUS_CLK            15      /* Out */
+#define CONFIG_SYS_GPIO_DBGINT                 0
+#define CONFIG_SYS_GPIO_ETHINT                 1
+#define CONFIG_SYS_GPIO_ETHRST                 2       /* Out */
+#define CONFIG_SYS_GPIO_LED5_GN                3       /* Out */
+#define CONFIG_SYS_GPIO_UNUSED4                4
+#define CONFIG_SYS_GPIO_UNUSED5                5
+#define CONFIG_SYS_GPIO_DSR                    6       /* Out */
+#define CONFIG_SYS_GPIO_DCD                    7       /* Out */
+#define CONFIG_SYS_GPIO_IPAC_INT               8
+#define CONFIG_SYS_GPIO_DBGJUMPER              9
+#define CONFIG_SYS_GPIO_BUTTON1                10
+#define CONFIG_SYS_GPIO_DBGSENSE               11
+#define CONFIG_SYS_GPIO_DTR                    12
+#define CONFIG_SYS_GPIO_IORST                  13      /* Out */
+#define CONFIG_SYS_GPIO_PCI_CLK                14      /* Out */
+#define CONFIG_SYS_GPIO_EXTBUS_CLK             15      /* Out */
 
 #endif
index 812bc2b1a6167e9b334ff59990ac2a1642151989..63bf365b8a3dc414a87f78feffff3127591405db 100644 (file)
@@ -50,35 +50,35 @@ int board_init (void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x00000100;
 
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_IORST);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_ETHRST);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_DSR);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_DCD);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_LED5_GN);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_LED6_RT);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_LED6_GN);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_ETHRST);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_DSR);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_DCD);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_LED5_GN);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_LED6_RT);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_LED6_GN);
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_IORST);
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_ETHRST);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_ETHRST);
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_DSR);
-       GPIO_OUTPUT_SET (CFG_GPIO_DCD);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_DSR);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_DCD);
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_LED5_GN);
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_LED6_RT);
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_LED6_GN);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_LED5_GN);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_LED6_RT);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_LED6_GN);
 
        /*
         * Setup GPIO's for Interrupt inputs
         */
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_DBGINT);
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_ETHINT);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_DBGINT);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_ETHINT);
 
        /*
         * Setup GPIO's for 33MHz clock output
         */
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_PCI_CLK);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_EXTBUS_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_PCI_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_EXTBUS_CLK);
        *IXP425_GPIO_GPCLKR = 0x011001FF;
 
        /* CS1: IPAC-X */
@@ -91,8 +91,8 @@ int board_init (void)
        *IXP425_EXP_CS7 = 0x80900003;
 
        udelay (533);
-       GPIO_OUTPUT_SET (CFG_GPIO_IORST);
-       GPIO_OUTPUT_SET (CFG_GPIO_ETHRST);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_ETHRST);
 
        ACTUX3_LED1_RT (1);
        ACTUX3_LED1_GN (0);
index 9b7cbce6f17ff1a3be4af13819ffc87997583161..c3c0cfc5d0bd011f4c8766e9a9dafd51aabab217 100644 (file)
 #define ACTUX3_OPTION          (readb(IXP425_EXP_BUS_CS6_BASE_PHYS) & 0xF0)
 
 /* GPIO settings */
-#define CFG_GPIO_DBGINT                        0
-#define CFG_GPIO_ETHINT                        1
-#define CFG_GPIO_ETHRST                        2       /* Out */
-#define CFG_GPIO_LED5_GN               3       /* Out */
-#define CFG_GPIO_LED6_RT               4       /* Out */
-#define CFG_GPIO_LED6_GN               5       /* Out */
-#define CFG_GPIO_DSR                   6       /* Out */
-#define CFG_GPIO_DCD                   7       /* Out */
-#define CFG_GPIO_DBGJUMPER             9
-#define CFG_GPIO_BUTTON1               10
-#define CFG_GPIO_DBGSENSE              11
-#define CFG_GPIO_DTR                   12
-#define CFG_GPIO_IORST                 13      /* Out */
-#define CFG_GPIO_PCI_CLK               14      /* Out */
-#define CFG_GPIO_EXTBUS_CLK            15      /* Out */
+#define CONFIG_SYS_GPIO_DBGINT                 0
+#define CONFIG_SYS_GPIO_ETHINT                 1
+#define CONFIG_SYS_GPIO_ETHRST                 2       /* Out */
+#define CONFIG_SYS_GPIO_LED5_GN                3       /* Out */
+#define CONFIG_SYS_GPIO_LED6_RT                4       /* Out */
+#define CONFIG_SYS_GPIO_LED6_GN                5       /* Out */
+#define CONFIG_SYS_GPIO_DSR                    6       /* Out */
+#define CONFIG_SYS_GPIO_DCD                    7       /* Out */
+#define CONFIG_SYS_GPIO_DBGJUMPER              9
+#define CONFIG_SYS_GPIO_BUTTON1                10
+#define CONFIG_SYS_GPIO_DBGSENSE               11
+#define CONFIG_SYS_GPIO_DTR                    12
+#define CONFIG_SYS_GPIO_IORST                  13      /* Out */
+#define CONFIG_SYS_GPIO_PCI_CLK                14      /* Out */
+#define CONFIG_SYS_GPIO_EXTBUS_CLK             15      /* Out */
 
 #endif
index 84037fabaf102f8199ac643b3ffccd6d5393baad..f373b5877731e9b03e4bde0edea43d8d4041158a 100644 (file)
@@ -49,53 +49,53 @@ int board_init (void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x00000100;
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_nPWRON);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_nPWRON);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_nPWRON);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_nPWRON);
 
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_IORST);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_IORST);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_IORST);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_IORST);
 
        /* led not populated on board*/
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_LED3);
-       GPIO_OUTPUT_SET (CFG_GPIO_LED3);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_LED3);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_LED3);
 
        /* middle LED */
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_LED2);
-       GPIO_OUTPUT_SET (CFG_GPIO_LED2);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_LED2);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_LED2);
 
        /* right LED */
        /* weak pulldown = LED weak on */
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_LED1);
-       GPIO_OUTPUT_SET (CFG_GPIO_LED1);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_LED1);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_LED1);
 
        /* Setup GPIO's for Interrupt inputs */
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_USBINTA);
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_USBINTB);
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_USBINTC);
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_RTCINT);
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_PCI_INTA);
-       GPIO_OUTPUT_DISABLE (CFG_GPIO_PCI_INTB);
-
-       GPIO_INT_ACT_LOW_SET (CFG_GPIO_USBINTA);
-       GPIO_INT_ACT_LOW_SET (CFG_GPIO_USBINTB);
-       GPIO_INT_ACT_LOW_SET (CFG_GPIO_USBINTC);
-       GPIO_INT_ACT_LOW_SET (CFG_GPIO_RTCINT);
-       GPIO_INT_ACT_LOW_SET (CFG_GPIO_PCI_INTA);
-       GPIO_INT_ACT_LOW_SET (CFG_GPIO_PCI_INTB);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_USBINTA);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_USBINTB);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_USBINTC);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_RTCINT);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_PCI_INTA);
+       GPIO_OUTPUT_DISABLE (CONFIG_SYS_GPIO_PCI_INTB);
+
+       GPIO_INT_ACT_LOW_SET (CONFIG_SYS_GPIO_USBINTA);
+       GPIO_INT_ACT_LOW_SET (CONFIG_SYS_GPIO_USBINTB);
+       GPIO_INT_ACT_LOW_SET (CONFIG_SYS_GPIO_USBINTC);
+       GPIO_INT_ACT_LOW_SET (CONFIG_SYS_GPIO_RTCINT);
+       GPIO_INT_ACT_LOW_SET (CONFIG_SYS_GPIO_PCI_INTA);
+       GPIO_INT_ACT_LOW_SET (CONFIG_SYS_GPIO_PCI_INTB);
 
        /* Setup GPIO's for 33MHz clock output */
        *IXP425_GPIO_GPCLKR = 0x011001FF;
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_EXTBUS_CLK);
-       GPIO_OUTPUT_ENABLE (CFG_GPIO_PCI_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_EXTBUS_CLK);
+       GPIO_OUTPUT_ENABLE (CONFIG_SYS_GPIO_PCI_CLK);
 
        *IXP425_EXP_CS1 = 0xbd113c42;
 
        udelay (10000);
-       GPIO_OUTPUT_SET (CFG_GPIO_IORST);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_IORST);
        udelay (10000);
-       GPIO_OUTPUT_CLEAR (CFG_GPIO_IORST);
+       GPIO_OUTPUT_CLEAR (CONFIG_SYS_GPIO_IORST);
        udelay (10000);
-       GPIO_OUTPUT_SET (CFG_GPIO_IORST);
+       GPIO_OUTPUT_SET (CONFIG_SYS_GPIO_IORST);
 
        return 0;
 }
index 8b3ecf3415a54cb24f6d89d87217f33f9bb1eb05..afd1c06f59591f682f7e457b0c400a1240d9669a 100644 (file)
 /*
  * GPIO settings
  */
-#define CFG_GPIO_USBINTA               0
-#define CFG_GPIO_USBINTB               1
-#define CFG_GPIO_USBINTC               2
-#define CFG_GPIO_nPWRON                        3       /* Out */
-#define CFG_GPIO_I2C_SCL               4
-#define CFG_GPIO_I2C_SDA               5
-#define CFG_GPIO_PCI_INTB              6
-#define CFG_GPIO_BUTTON1               7
-#define CFG_GPIO_LED1                  8       /* Out */
-#define CFG_GPIO_RTCINT                        9
-#define CFG_GPIO_LED2                  10      /* Out */
-#define CFG_GPIO_PCI_INTA              11
-#define CFG_GPIO_IORST                 12      /* Out */
-#define CFG_GPIO_LED3                  13      /* Out */
-#define CFG_GPIO_PCI_CLK               14      /* Out */
-#define CFG_GPIO_EXTBUS_CLK            15      /* Out */
+#define CONFIG_SYS_GPIO_USBINTA                0
+#define CONFIG_SYS_GPIO_USBINTB                1
+#define CONFIG_SYS_GPIO_USBINTC                2
+#define CONFIG_SYS_GPIO_nPWRON                 3       /* Out */
+#define CONFIG_SYS_GPIO_I2C_SCL                4
+#define CONFIG_SYS_GPIO_I2C_SDA                5
+#define CONFIG_SYS_GPIO_PCI_INTB               6
+#define CONFIG_SYS_GPIO_BUTTON1                7
+#define CONFIG_SYS_GPIO_LED1                   8       /* Out */
+#define CONFIG_SYS_GPIO_RTCINT                 9
+#define CONFIG_SYS_GPIO_LED2                   10      /* Out */
+#define CONFIG_SYS_GPIO_PCI_INTA               11
+#define CONFIG_SYS_GPIO_IORST                  12      /* Out */
+#define CONFIG_SYS_GPIO_LED3                   13      /* Out */
+#define CONFIG_SYS_GPIO_PCI_CLK                14      /* Out */
+#define CONFIG_SYS_GPIO_EXTBUS_CLK             15      /* Out */
 
 #endif
index e8a5737f587ad827a3a96ff6c109e7c51e0db527..87791deb5abcf2a5e0cbb64d3a642f883069b9e7 100644 (file)
@@ -68,7 +68,7 @@ static uint sdram_table[] = {
 phys_size_t initdram (int board_type)
 {
        long int msize;
-       volatile immap_t     *immap  = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        upmconfig(UPMA, sdram_table, sizeof(sdram_table) / sizeof(uint));
@@ -76,7 +76,7 @@ phys_size_t initdram (int board_type)
        /* Configure SDRAM refresh */
        memctl->memc_mptpr = MPTPR_PTP_DIV32; /* BRGCLK/32 */
 
-       memctl->memc_mamr = (94 << 24) | CFG_MAMR; /* No refresh */
+       memctl->memc_mamr = (94 << 24) | CONFIG_SYS_MAMR; /* No refresh */
        udelay(200);
 
        /* Run precharge from location 0x15 */
@@ -94,10 +94,10 @@ phys_size_t initdram (int board_type)
        udelay(200);
 
        memctl->memc_mamr |=  MAMR_PTAE; /* Enable refresh */
-       memctl->memc_or1   = ~(CFG_SDRAM_MAX_SIZE - 1) | OR_CSNT_SAM;
-       memctl->memc_br1   =  CFG_SDRAM_BASE | BR_PS_32 | BR_MS_UPMA | BR_V;
+       memctl->memc_or1   = ~(CONFIG_SYS_SDRAM_MAX_SIZE - 1) | OR_CSNT_SAM;
+       memctl->memc_br1   =  CONFIG_SYS_SDRAM_BASE | BR_PS_32 | BR_MS_UPMA | BR_V;
 
-       msize = get_ram_size(CFG_SDRAM_BASE, CFG_SDRAM_MAX_SIZE);
+       msize = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_MAX_SIZE);
        memctl->memc_or1  |= ~(msize - 1);
 
        return msize;
index deaa292b9af60ff893195c3f6688333ac5e579fa..06109286e90925fc7d5bafc68bbe7b9fe18e5c8f 100644 (file)
@@ -53,16 +53,16 @@ long int fixed_sdram(void);
 
 int board_early_init_f (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 lpcaw;
 
        /*
         * Initialize Local Window for the CPLD registers access (CS2 selects
         * the CPLD chip)
         */
-       im->sysconf.lpcs2aw = CSAW_START(CFG_CPLD_BASE) |
-                             CSAW_STOP(CFG_CPLD_BASE, CFG_CPLD_SIZE);
-       im->lpc.cs_cfg[2] = CFG_CS2_CFG;
+       im->sysconf.lpcs2aw = CSAW_START(CONFIG_SYS_CPLD_BASE) |
+                             CSAW_STOP(CONFIG_SYS_CPLD_BASE, CONFIG_SYS_CPLD_SIZE);
+       im->lpc.cs_cfg[2] = CONFIG_SYS_CS2_CFG;
 
        /*
         * According to MPC5121e RM, configuring local access windows should
@@ -80,21 +80,21 @@ int board_early_init_f (void)
         */
 
 #ifdef CONFIG_ADS5121_REV2
-       *((volatile u8 *)(CFG_CPLD_BASE + 0x08)) = 0xC1;
+       *((volatile u8 *)(CONFIG_SYS_CPLD_BASE + 0x08)) = 0xC1;
 #else
-       if (*((u8 *)(CFG_CPLD_BASE + 0x08)) & 0x04) {
-               *((volatile u8 *)(CFG_CPLD_BASE + 0x08)) = 0xC1;
+       if (*((u8 *)(CONFIG_SYS_CPLD_BASE + 0x08)) & 0x04) {
+               *((volatile u8 *)(CONFIG_SYS_CPLD_BASE + 0x08)) = 0xC1;
        } else {
                /* running from Backup flash */
-               *((volatile u8 *)(CFG_CPLD_BASE + 0x08)) = 0x32;
+               *((volatile u8 *)(CONFIG_SYS_CPLD_BASE + 0x08)) = 0x32;
        }
 #endif
        /*
         * Configure Flash Speed
         */
-       *((volatile u32 *)(CFG_IMMR + LPC_OFFSET + CS0_CONFIG)) = CFG_CS0_CFG;
+       *((volatile u32 *)(CONFIG_SYS_IMMR + LPC_OFFSET + CS0_CONFIG)) = CONFIG_SYS_CS0_CFG;
        if (SVR_MJREV (im->sysconf.spridr) >= 2) {
-               *((volatile u32 *)(CFG_IMMR + LPC_OFFSET + CS_ALE_TIMING_CONFIG)) = CFG_CS_ALETIMING;
+               *((volatile u32 *)(CONFIG_SYS_IMMR + LPC_OFFSET + CS_ALE_TIMING_CONFIG)) = CONFIG_SYS_CS_ALETIMING;
        }
        /*
         * Enable clocks
@@ -120,8 +120,8 @@ phys_size_t initdram (int board_type)
  */
 long int fixed_sdram (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
-       u32 msize = CFG_DDR_SIZE * 1024 * 1024;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       u32 msize = CONFIG_SYS_DDR_SIZE * 1024 * 1024;
        u32 msize_log2 = __ilog2 (msize);
        u32 i;
 
@@ -129,7 +129,7 @@ long int fixed_sdram (void)
        im->io_ctrl.regs[IOCTL_MEM/4] = IOCTRL_MUX_DDR;
 
        /* Initialize DDR Local Window */
-       im->sysconf.ddrlaw.bar = CFG_DDR_BASE & 0xFFFFF000;
+       im->sysconf.ddrlaw.bar = CONFIG_SYS_DDR_BASE & 0xFFFFF000;
        im->sysconf.ddrlaw.ar = msize_log2 - 1;
 
        /*
@@ -141,68 +141,68 @@ long int fixed_sdram (void)
        __asm__ __volatile__ ("isync");
 
        /* Enable DDR */
-       im->mddrc.ddr_sys_config = CFG_MDDRC_SYS_CFG_EN;
+       im->mddrc.ddr_sys_config = CONFIG_SYS_MDDRC_SYS_CFG_EN;
 
        /* Initialize DDR Priority Manager */
-       im->mddrc.prioman_config1 = CFG_MDDRCGRP_PM_CFG1;
-       im->mddrc.prioman_config2 = CFG_MDDRCGRP_PM_CFG2;
-       im->mddrc.hiprio_config = CFG_MDDRCGRP_HIPRIO_CFG;
-       im->mddrc.lut_table0_main_upper = CFG_MDDRCGRP_LUT0_MU;
-       im->mddrc.lut_table0_main_lower = CFG_MDDRCGRP_LUT0_ML;
-       im->mddrc.lut_table1_main_upper = CFG_MDDRCGRP_LUT1_MU;
-       im->mddrc.lut_table1_main_lower = CFG_MDDRCGRP_LUT1_ML;
-       im->mddrc.lut_table2_main_upper = CFG_MDDRCGRP_LUT2_MU;
-       im->mddrc.lut_table2_main_lower = CFG_MDDRCGRP_LUT2_ML;
-       im->mddrc.lut_table3_main_upper = CFG_MDDRCGRP_LUT3_MU;
-       im->mddrc.lut_table3_main_lower = CFG_MDDRCGRP_LUT3_ML;
-       im->mddrc.lut_table4_main_upper = CFG_MDDRCGRP_LUT4_MU;
-       im->mddrc.lut_table4_main_lower = CFG_MDDRCGRP_LUT4_ML;
-       im->mddrc.lut_table0_alternate_upper = CFG_MDDRCGRP_LUT0_AU;
-       im->mddrc.lut_table0_alternate_lower = CFG_MDDRCGRP_LUT0_AL;
-       im->mddrc.lut_table1_alternate_upper = CFG_MDDRCGRP_LUT1_AU;
-       im->mddrc.lut_table1_alternate_lower = CFG_MDDRCGRP_LUT1_AL;
-       im->mddrc.lut_table2_alternate_upper = CFG_MDDRCGRP_LUT2_AU;
-       im->mddrc.lut_table2_alternate_lower = CFG_MDDRCGRP_LUT2_AL;
-       im->mddrc.lut_table3_alternate_upper = CFG_MDDRCGRP_LUT3_AU;
-       im->mddrc.lut_table3_alternate_lower = CFG_MDDRCGRP_LUT3_AL;
-       im->mddrc.lut_table4_alternate_upper = CFG_MDDRCGRP_LUT4_AU;
-       im->mddrc.lut_table4_alternate_lower = CFG_MDDRCGRP_LUT4_AL;
+       im->mddrc.prioman_config1 = CONFIG_SYS_MDDRCGRP_PM_CFG1;
+       im->mddrc.prioman_config2 = CONFIG_SYS_MDDRCGRP_PM_CFG2;
+       im->mddrc.hiprio_config = CONFIG_SYS_MDDRCGRP_HIPRIO_CFG;
+       im->mddrc.lut_table0_main_upper = CONFIG_SYS_MDDRCGRP_LUT0_MU;
+       im->mddrc.lut_table0_main_lower = CONFIG_SYS_MDDRCGRP_LUT0_ML;
+       im->mddrc.lut_table1_main_upper = CONFIG_SYS_MDDRCGRP_LUT1_MU;
+       im->mddrc.lut_table1_main_lower = CONFIG_SYS_MDDRCGRP_LUT1_ML;
+       im->mddrc.lut_table2_main_upper = CONFIG_SYS_MDDRCGRP_LUT2_MU;
+       im->mddrc.lut_table2_main_lower = CONFIG_SYS_MDDRCGRP_LUT2_ML;
+       im->mddrc.lut_table3_main_upper = CONFIG_SYS_MDDRCGRP_LUT3_MU;
+       im->mddrc.lut_table3_main_lower = CONFIG_SYS_MDDRCGRP_LUT3_ML;
+       im->mddrc.lut_table4_main_upper = CONFIG_SYS_MDDRCGRP_LUT4_MU;
+       im->mddrc.lut_table4_main_lower = CONFIG_SYS_MDDRCGRP_LUT4_ML;
+       im->mddrc.lut_table0_alternate_upper = CONFIG_SYS_MDDRCGRP_LUT0_AU;
+       im->mddrc.lut_table0_alternate_lower = CONFIG_SYS_MDDRCGRP_LUT0_AL;
+       im->mddrc.lut_table1_alternate_upper = CONFIG_SYS_MDDRCGRP_LUT1_AU;
+       im->mddrc.lut_table1_alternate_lower = CONFIG_SYS_MDDRCGRP_LUT1_AL;
+       im->mddrc.lut_table2_alternate_upper = CONFIG_SYS_MDDRCGRP_LUT2_AU;
+       im->mddrc.lut_table2_alternate_lower = CONFIG_SYS_MDDRCGRP_LUT2_AL;
+       im->mddrc.lut_table3_alternate_upper = CONFIG_SYS_MDDRCGRP_LUT3_AU;
+       im->mddrc.lut_table3_alternate_lower = CONFIG_SYS_MDDRCGRP_LUT3_AL;
+       im->mddrc.lut_table4_alternate_upper = CONFIG_SYS_MDDRCGRP_LUT4_AU;
+       im->mddrc.lut_table4_alternate_lower = CONFIG_SYS_MDDRCGRP_LUT4_AL;
 
        /* Initialize MDDRC */
-       im->mddrc.ddr_sys_config = CFG_MDDRC_SYS_CFG;
-       im->mddrc.ddr_time_config0 = CFG_MDDRC_TIME_CFG0;
-       im->mddrc.ddr_time_config1 = CFG_MDDRC_TIME_CFG1;
-       im->mddrc.ddr_time_config2 = CFG_MDDRC_TIME_CFG2;
+       im->mddrc.ddr_sys_config = CONFIG_SYS_MDDRC_SYS_CFG;
+       im->mddrc.ddr_time_config0 = CONFIG_SYS_MDDRC_TIME_CFG0;
+       im->mddrc.ddr_time_config1 = CONFIG_SYS_MDDRC_TIME_CFG1;
+       im->mddrc.ddr_time_config2 = CONFIG_SYS_MDDRC_TIME_CFG2;
 
        /* Initialize DDR */
        for (i = 0; i < 10; i++)
-               im->mddrc.ddr_command = CFG_MICRON_NOP;
-
-       im->mddrc.ddr_command = CFG_MICRON_PCHG_ALL;
-       im->mddrc.ddr_command = CFG_MICRON_NOP;
-       im->mddrc.ddr_command = CFG_MICRON_RFSH;
-       im->mddrc.ddr_command = CFG_MICRON_NOP;
-       im->mddrc.ddr_command = CFG_MICRON_RFSH;
-       im->mddrc.ddr_command = CFG_MICRON_NOP;
-       im->mddrc.ddr_command = CFG_MICRON_INIT_DEV_OP;
-       im->mddrc.ddr_command = CFG_MICRON_NOP;
-       im->mddrc.ddr_command = CFG_MICRON_EM2;
-       im->mddrc.ddr_command = CFG_MICRON_NOP;
-       im->mddrc.ddr_command = CFG_MICRON_PCHG_ALL;
-       im->mddrc.ddr_command = CFG_MICRON_EM2;
-       im->mddrc.ddr_command = CFG_MICRON_EM3;
-       im->mddrc.ddr_command = CFG_MICRON_EN_DLL;
-       im->mddrc.ddr_command = CFG_MICRON_INIT_DEV_OP;
-       im->mddrc.ddr_command = CFG_MICRON_PCHG_ALL;
-       im->mddrc.ddr_command = CFG_MICRON_RFSH;
-       im->mddrc.ddr_command = CFG_MICRON_INIT_DEV_OP;
-       im->mddrc.ddr_command = CFG_MICRON_OCD_DEFAULT;
-       im->mddrc.ddr_command = CFG_MICRON_PCHG_ALL;
-       im->mddrc.ddr_command = CFG_MICRON_NOP;
+               im->mddrc.ddr_command = CONFIG_SYS_MICRON_NOP;
+
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_PCHG_ALL;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_NOP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_RFSH;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_NOP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_RFSH;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_NOP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_INIT_DEV_OP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_NOP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_EM2;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_NOP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_PCHG_ALL;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_EM2;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_EM3;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_EN_DLL;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_INIT_DEV_OP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_PCHG_ALL;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_RFSH;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_INIT_DEV_OP;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_OCD_DEFAULT;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_PCHG_ALL;
+       im->mddrc.ddr_command = CONFIG_SYS_MICRON_NOP;
 
        /* Start MDDRC */
-       im->mddrc.ddr_time_config0 = CFG_MDDRC_TIME_CFG0_RUN;
-       im->mddrc.ddr_sys_config = CFG_MDDRC_SYS_CFG_RUN;
+       im->mddrc.ddr_time_config0 = CONFIG_SYS_MDDRC_TIME_CFG0_RUN;
+       im->mddrc.ddr_sys_config = CONFIG_SYS_MDDRC_SYS_CFG_RUN;
 
        return msize;
 }
@@ -292,8 +292,8 @@ static  iopin_t ioregs_init[] = {
 
 int checkboard (void)
 {
-       ushort brd_rev = *(vu_short *) (CFG_CPLD_BASE + 0x00);
-       uchar cpld_rev = *(vu_char *) (CFG_CPLD_BASE + 0x02);
+       ushort brd_rev = *(vu_short *) (CONFIG_SYS_CPLD_BASE + 0x00);
+       uchar cpld_rev = *(vu_char *) (CONFIG_SYS_CPLD_BASE + 0x02);
 
        printf ("Board: ADS5121 rev. 0x%04x (CPLD rev. 0x%02x)\n",
                brd_rev, cpld_rev);
index 26628d3eb54045fec5105e3195ace78f7c05df7d..11450aabc666e84207a4e2c2a5db9eac0014255b 100644 (file)
@@ -43,7 +43,7 @@ static int xres, yres;
 
 void diu_set_pixel_clock(unsigned int pixclock)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile clk512x_t *clk = &immap->clk;
        volatile unsigned int *clkdvdr = &clk->scfr[0];
        unsigned long speed_ccb, temp, pixval;
@@ -100,7 +100,7 @@ int ads5121diu_init_show_bmp(cmd_tbl_t *cmdtp,
 }
 
 U_BOOT_CMD(
-       diufb, CFG_MAXARGS, 1, ads5121diu_init_show_bmp,
+       diufb, CONFIG_SYS_MAXARGS, 1, ads5121diu_init_show_bmp,
        "diufb init | addr - Init or Display BMP file\n",
        "init\n    - initialize DIU\n"
        "addr\n    - display bmp at address 'addr'\n"
index a338604f69e34d5cfc27da38fdb8893d82801821..b747e812ada3f2181c215927c1ae33cef99c3f91 100644 (file)
@@ -33,8 +33,8 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* System RAM mapped to PCI space */
-#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CONFIG_SYS_SDRAM_BASE
 
 static struct pci_controller pci_hose;
 
@@ -46,7 +46,7 @@ static struct pci_controller pci_hose;
 void
 pci_init_board(void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile law512x_t *pci_law;
        volatile pot512x_t *pci_pot;
        volatile pcictrl512x_t *pci_ctrl;
@@ -87,10 +87,10 @@ pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_512M;
 
-       pci_law[1].bar = CFG_PCI_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_16M;
 
        /*
@@ -98,18 +98,18 @@ pci_init_board(void)
         */
 
        /* PCI mem space - prefetch */
-       pci_pot[0].potar = (CFG_PCI_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[0].pobar = (CFG_PCI_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[0].potar = (CONFIG_SYS_PCI_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[0].pobar = (CONFIG_SYS_PCI_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[0].pocmr = POCMR_EN | POCMR_PRE | POCMR_CM_256M;
 
        /* PCI IO space */
-       pci_pot[1].potar = (CFG_PCI_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[1].pobar = (CFG_PCI_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[1].potar = (CONFIG_SYS_PCI_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[1].pobar = (CONFIG_SYS_PCI_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[1].pocmr = POCMR_EN | POCMR_IO | POCMR_CM_16M;
 
        /* PCI mmio - non-prefetch mem space */
-       pci_pot[2].potar = (CFG_PCI_MMIO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[2].pobar = (CFG_PCI_MMIO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[2].potar = (CONFIG_SYS_PCI_MMIO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[2].pobar = (CONFIG_SYS_PCI_MMIO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[2].pocmr = POCMR_EN | POCMR_CM_256M;
 
        /*
@@ -129,23 +129,23 @@ pci_init_board(void)
 
        /* PCI memory prefetch space */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI_MEM_BASE,
-                      CFG_PCI_MEM_PHYS,
-                      CFG_PCI_MEM_SIZE,
+                      CONFIG_SYS_PCI_MEM_BASE,
+                      CONFIG_SYS_PCI_MEM_PHYS,
+                      CONFIG_SYS_PCI_MEM_SIZE,
                       PCI_REGION_MEM|PCI_REGION_PREFETCH);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI_MMIO_BASE,
-                      CFG_PCI_MMIO_PHYS,
-                      CFG_PCI_MMIO_SIZE,
+                      CONFIG_SYS_PCI_MMIO_BASE,
+                      CONFIG_SYS_PCI_MMIO_PHYS,
+                      CONFIG_SYS_PCI_MMIO_SIZE,
                       PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose->regions + 2,
-                      CFG_PCI_IO_BASE,
-                      CFG_PCI_IO_PHYS,
-                      CFG_PCI_IO_SIZE,
+                      CONFIG_SYS_PCI_IO_BASE,
+                      CONFIG_SYS_PCI_IO_PHYS,
+                      CONFIG_SYS_PCI_IO_SIZE,
                       PCI_REGION_IO);
 
        /* System memory space */
@@ -158,8 +158,8 @@ pci_init_board(void)
        hose->region_count = 4;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR + 0x8300),
-                          (CFG_IMMR + 0x8304));
+                          (CONFIG_SYS_IMMR + 0x8300),
+                          (CONFIG_SYS_IMMR + 0x8304));
 
        pci_register_hose(hose);
 
index 49a8f712ba9aed64ef8290b550e54e7934d610ae..33b4a6ee4aa9578ca1ed0b7e372890023ffb41f4 100644 (file)
@@ -32,48 +32,48 @@ void setupBat (ulong size)
        int blocksize = 0;
 
        /* Flash 0 */
-#if defined (CFG_AMD_BOOT)
-       batu = CFG_FLASH0_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
+#if defined (CONFIG_SYS_AMD_BOOT)
+       batu = CONFIG_SYS_FLASH0_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
 #else
-       batu = CFG_FLASH0_BASE | (BL_16M << 2) | BPP_RW | BPP_RX;
+       batu = CONFIG_SYS_FLASH0_BASE | (BL_16M << 2) | BPP_RW | BPP_RX;
 #endif
-       batl = CFG_FLASH0_BASE | 0x22;
+       batl = CONFIG_SYS_FLASH0_BASE | 0x22;
        write_bat (IBAT0, batu, batl);
        write_bat (DBAT0, batu, batl);
 
        /* Flash 1 */
-#if defined (CFG_AMD_BOOT)
-       batu = CFG_FLASH1_BASE | (BL_16M << 2) | BPP_RW | BPP_RX;
+#if defined (CONFIG_SYS_AMD_BOOT)
+       batu = CONFIG_SYS_FLASH1_BASE | (BL_16M << 2) | BPP_RW | BPP_RX;
 #else
-       batu = CFG_FLASH1_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
+       batu = CONFIG_SYS_FLASH1_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
 #endif
-       batl = CFG_FLASH1_BASE | 0x22;
+       batl = CONFIG_SYS_FLASH1_BASE | 0x22;
        write_bat (IBAT1, batu, batl);
        write_bat (DBAT1, batu, batl);
 
        /* CPLD */
-       batu = CFG_CPLD_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
-       batl = CFG_CPLD_BASE | 0x22;
+       batu = CONFIG_SYS_CPLD_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
+       batl = CONFIG_SYS_CPLD_BASE | 0x22;
        write_bat (IBAT2, 0, 0);
        write_bat (DBAT2, batu, batl);
 
        /* FPGA */
-       batu = CFG_FPGA_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
-       batl = CFG_FPGA_BASE | 0x22;
+       batu = CONFIG_SYS_FPGA_BASE | (BL_512K << 2) | BPP_RW | BPP_RX;
+       batl = CONFIG_SYS_FPGA_BASE | 0x22;
        write_bat (IBAT3, 0, 0);
        write_bat (DBAT3, batu, batl);
 
        /* MBAR - Data only */
-       batu = CFG_MBAR | BPP_RW | BPP_RX;
-       batl = CFG_MBAR | 0x22;
+       batu = CONFIG_SYS_MBAR | BPP_RW | BPP_RX;
+       batl = CONFIG_SYS_MBAR | 0x22;
        mtspr (IBAT4L, 0);
        mtspr (IBAT4U, 0);
        mtspr (DBAT4L, batl);
        mtspr (DBAT4U, batu);
 
        /* MBAR - SRAM */
-       batu = CFG_SRAM_BASE | BPP_RW | BPP_RX;
-       batl = CFG_SRAM_BASE | 0x42;
+       batu = CONFIG_SYS_SRAM_BASE | BPP_RW | BPP_RX;
+       batl = CONFIG_SYS_SRAM_BASE | 0x42;
        mtspr (IBAT5L, batl);
        mtspr (IBAT5U, batu);
        mtspr (DBAT5L, batl);
@@ -93,8 +93,8 @@ void setupBat (ulong size)
                blocksize = BL_256M << 2;
 
        /* Memory */
-       batu = CFG_SDRAM_BASE | blocksize | BPP_RW | BPP_RX;
-       batl = CFG_SDRAM_BASE | 0x42;
+       batu = CONFIG_SYS_SDRAM_BASE | blocksize | BPP_RW | BPP_RX;
+       batl = CONFIG_SYS_SDRAM_BASE | 0x42;
        mtspr (IBAT6L, batl);
        mtspr (IBAT6U, batu);
        mtspr (DBAT6L, batl);
@@ -120,9 +120,9 @@ void setupBat (ulong size)
                else if (size <= 0x10000000)    /* 256MB */
                        blocksize = BL_256M << 2;
 
-               batu = (CFG_SDRAM_BASE +
+               batu = (CONFIG_SYS_SDRAM_BASE +
                        0x10000000) | blocksize | BPP_RW | BPP_RX;
-               batl = (CFG_SDRAM_BASE + 0x10000000) | 0x42;
+               batl = (CONFIG_SYS_SDRAM_BASE + 0x10000000) | 0x42;
        }
 
        mtspr (IBAT7L, batl);
index 556c16893fd036e12e13429c32e69bf1c5c0e494..aed3b6f59c9711b40287050c4b9864c02e5f94da 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH8
@@ -86,30 +86,30 @@ unsigned long flash_init (void)
        ulong size = 0;
        ulong fsize = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                memset (&flash_info[i], 0, sizeof (flash_info_t));
 
                switch (i) {
                case 0:
-                       flash_get_size ((FPW *) CFG_FLASH1_BASE,
+                       flash_get_size ((FPW *) CONFIG_SYS_FLASH1_BASE,
                                        &flash_info[i]);
-                       flash_get_offsets (CFG_FLASH1_BASE, &flash_info[i]);
+                       flash_get_offsets (CONFIG_SYS_FLASH1_BASE, &flash_info[i]);
                        break;
                case 1:
-                       flash_get_size ((FPW *) CFG_FLASH1_BASE,
+                       flash_get_size ((FPW *) CONFIG_SYS_FLASH1_BASE,
                                        &flash_info[i]);
-                       fsize = CFG_FLASH1_BASE + flash_info[i - 1].size;
+                       fsize = CONFIG_SYS_FLASH1_BASE + flash_info[i - 1].size;
                        flash_get_offsets (fsize, &flash_info[i]);
                        break;
                case 2:
-                       flash_get_size ((FPW *) CFG_FLASH0_BASE,
+                       flash_get_size ((FPW *) CONFIG_SYS_FLASH0_BASE,
                                        &flash_info[i]);
-                       flash_get_offsets (CFG_FLASH0_BASE, &flash_info[i]);
+                       flash_get_offsets (CONFIG_SYS_FLASH0_BASE, &flash_info[i]);
                        break;
                case 3:
-                       flash_get_size ((FPW *) CFG_FLASH0_BASE,
+                       flash_get_size ((FPW *) CONFIG_SYS_FLASH0_BASE,
                                        &flash_info[i]);
-                       fsize = CFG_FLASH0_BASE + flash_info[i - 1].size;
+                       fsize = CONFIG_SYS_FLASH0_BASE + flash_info[i - 1].size;
                        flash_get_offsets (fsize, &flash_info[i]);
                        break;
                default:
@@ -124,23 +124,23 @@ unsigned long flash_init (void)
 
        /* Protect monitor and environment sectors
         */
-#if defined (CFG_AMD_BOOT)
+#if defined (CONFIG_SYS_AMD_BOOT)
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                       &flash_info[2]);
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_INTEL_BASE,
-                      CFG_INTEL_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_INTEL_BASE,
+                      CONFIG_SYS_INTEL_BASE + monitor_flash_len - 1,
                       &flash_info[1]);
 #else
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                       &flash_info[3]);
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_AMD_BASE,
-                      CFG_AMD_BASE + monitor_flash_len - 1, &flash_info[0]);
+                      CONFIG_SYS_AMD_BASE,
+                      CONFIG_SYS_AMD_BASE + monitor_flash_len - 1, &flash_info[0]);
 #endif
 
        flash_protect (FLAG_PROTECT_SET,
@@ -294,10 +294,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        if (value == (FPW) INTEL_ID_28F128J3A)
@@ -348,7 +348,7 @@ static unsigned char intel_sector_protected (flash_info_t *info, ushort sector)
        /*
         * first, wait for the WSM to be finished. The rationale for
         * waiting for the WSM to become idle for at most
-        * CFG_FLASH_ERASE_TOUT is as follows. The WSM can be busy
+        * CONFIG_SYS_FLASH_ERASE_TOUT is as follows. The WSM can be busy
         * because of: (1) erase, (2) program or (3) lock bit
         * configuration. So we just wait for the longest timeout of
         * the (1)-(3), i.e. the erase timeout.
@@ -361,7 +361,7 @@ static unsigned char intel_sector_protected (flash_info_t *info, ushort sector)
 
        start = get_timer (0);
        while ((*addr & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        *addr = (FPW) INTEL_RESET; /* restore read mode */
                        printf("WSM busy too long, can't get prot status\n");
                        return 1;
@@ -391,7 +391,7 @@ static unsigned char intel_sector_protected (flash_info_t *info, ushort sector)
  */
 static unsigned char same_chip_banks (int bank1, int bank2)
 {
-       unsigned char same_chip[CFG_MAX_FLASH_BANKS][CFG_MAX_FLASH_BANKS] = {
+       unsigned char same_chip[CONFIG_SYS_MAX_FLASH_BANKS][CONFIG_SYS_MAX_FLASH_BANKS] = {
                {1, 1, 0, 0},
                {1, 1, 0, 0},
                {0, 0, 1, 1},
@@ -467,7 +467,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        } else {
                                FPWV *base;     /* first address in bank */
 
-                               base = (FPWV *) (CFG_AMD_BASE);
+                               base = (FPWV *) (CONFIG_SYS_AMD_BASE);
                                base[FLASH_CYCLE1] = (FPW) 0x00AA00AA;  /* unlock */
                                base[FLASH_CYCLE2] = (FPW) 0x00550055;  /* unlock */
                                base[FLASH_CYCLE1] = (FPW) 0x00800080;  /* erase mode */
@@ -479,7 +479,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        while (((status =
                                 *addr) & (FPW) 0x00800080) !=
                               (FPW) 0x00800080) {
-                               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        if (intel) {
                                                *addr = (FPW) 0x00B000B0;       /* suspend erase     */
@@ -684,7 +684,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while ((*addr & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
@@ -728,7 +728,7 @@ static int write_data_block (flash_info_t * info, ulong src, ulong dest)
 
        /* wait while polling the status register */
        while ((*dstaddr & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dstaddr = (FPW) 0x00FF00FF;    /* restore read mode */
                        return (1);
                }
@@ -746,7 +746,7 @@ static int write_data_block (flash_info_t * info, ulong src, ulong dest)
 
        /* wait while polling the status register */
        while ((*dstaddr & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dstaddr = (FPW) 0x00FF00FF;    /* restore read mode */
                        return (1);
                }
@@ -779,7 +779,7 @@ static int write_word_amd (flash_info_t * info, FPWV * dest, FPW data)
                return (2);
        }
 
-       base = (FPWV *) (CFG_AMD_BASE);
+       base = (FPWV *) (CONFIG_SYS_AMD_BASE);
 
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts ();
@@ -799,7 +799,7 @@ static int write_word_amd (flash_info_t * info, FPWV * dest, FPW data)
        /* data polling for D7 */
        while (res == 0
               && (*dest & (FPW) 0x00800080) != (data & (FPW) 0x00800080)) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW) 0x00F000F0;       /* reset bank */
                        res = 1;
                }
@@ -856,7 +856,7 @@ int flash_real_protect (flash_info_t * info, long sector, int prot)
        start = get_timer (0);
 
        while ((*addr & INTEL_FINISHED) != INTEL_FINISHED) {
-               if (get_timer (start) > CFG_FLASH_UNLOCK_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                        printf ("Flash lock bit operation timed out\n");
                        rc = 1;
                        break;
@@ -886,17 +886,17 @@ int flash_real_protect (flash_info_t * info, long sector, int prot)
                 */
 
                /* find the current bank number */
-               curr_bank = CFG_MAX_FLASH_BANKS + 1;
-               for (j = 0; j < CFG_MAX_FLASH_BANKS; ++j) {
+               curr_bank = CONFIG_SYS_MAX_FLASH_BANKS + 1;
+               for (j = 0; j < CONFIG_SYS_MAX_FLASH_BANKS; ++j) {
                        if (&flash_info[j] == info) {
                                curr_bank = j;
                        }
                }
-               if (curr_bank == CFG_MAX_FLASH_BANKS + 1) {
+               if (curr_bank == CONFIG_SYS_MAX_FLASH_BANKS + 1) {
                        printf("Error: can't determine bank number!\n");
                }
 
-               for (bank = 0; bank < CFG_MAX_FLASH_BANKS; ++bank) {
+               for (bank = 0; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        if (!same_chip_banks(curr_bank, bank)) {
                                continue;
                        }
@@ -910,7 +910,7 @@ int flash_real_protect (flash_info_t * info, long sector, int prot)
                                        while ((*addr & INTEL_FINISHED) !=
                                               INTEL_FINISHED) {
                                                if (get_timer (start) >
-                                                   CFG_FLASH_UNLOCK_TOUT) {
+                                                   CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                                                        printf ("Flash lock bit operation timed out\n");
                                                        rc = 1;
                                                        break;
index 8a7b14ee2f5fa47df09e66a69953248a0cd05bae..0fcf354cdc4289cab4a7f1515066937416c9a226 100644 (file)
@@ -30,7 +30,7 @@
 #endif
 
 #define SECTSZ         (64 * 1024)
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*----------------------------------------------------------------------*/
 unsigned long flash_init (void)
@@ -39,18 +39,18 @@ unsigned long flash_init (void)
        unsigned long addr;
        flash_info_t *fli = &flash_info[0];
 
-       fli->size = CFG_FLASH_SIZE;
-       fli->sector_count = CFG_MAX_FLASH_SECT;
+       fli->size = CONFIG_SYS_FLASH_SIZE;
+       fli->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        fli->flash_id = FLASH_MAN_AMD + FLASH_AMDLV065D;
 
-       addr = CFG_FLASH_BASE;
+       addr = CONFIG_SYS_FLASH_BASE;
        for (i = 0; i < fli->sector_count; ++i) {
                fli->start[i] = addr;
                addr += SECTSZ;
                fli->protect[i] = 1;
        }
 
-       return (CFG_FLASH_SIZE);
+       return (CONFIG_SYS_FLASH_SIZE);
 }
 /*--------------------------------------------------------------------*/
 void flash_print_info (flash_info_t * info)
@@ -135,7 +135,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        while ( readb (addr2) != 0xff) {
                                udelay (1000 * 1000);
                                putc ('.');
-                               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("timeout\n");
                                        return 1;
                                }
@@ -177,7 +177,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                /* Verify write */
                start = get_timer (0);
                while (readb (dst) != b) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return 1;
                        }
                }
index c75fe8c573dba99021627e310b0c9bc253d82c7e..e5e770576129a49e9165f2d0b659ed9fa7d8d207 100644 (file)
@@ -33,7 +33,7 @@ static led_id_t val = 0;
 
 void __led_init (led_id_t mask, int state)
 {
-       nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR;
+       nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR;
 
        if (state == STATUS_LED_ON)
                val &= ~mask;
@@ -44,7 +44,7 @@ void __led_init (led_id_t mask, int state)
 
 void __led_set (led_id_t mask, int state)
 {
-       nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR;
+       nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR;
 
        if (state == STATUS_LED_ON)
                val &= ~mask;
@@ -55,7 +55,7 @@ void __led_set (led_id_t mask, int state)
 
 void __led_toggle (led_id_t mask)
 {
-       nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR;
+       nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR;
 
        val ^= mask;
        writel (&pio->data, val);
index 2638ea899ac736dde64c06879fd506855ae169c3..83bb7c222c63687743e935df91949fec99f7c325 100644 (file)
@@ -25,7 +25,7 @@
 #include <common.h>
 #include <nios.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*--------------------------------------------------------------------*/
 void flash_print_info (flash_info_t * info)
@@ -68,8 +68,8 @@ void flash_print_info (flash_info_t * info)
 
 int flash_erase (flash_info_t * info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int prot, sect;
        unsigned oldpri;
        ulong start;
@@ -112,7 +112,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
         */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
                        *addr = 0xaa;
                        *addr = 0x55;
                        *addr = 0x80;
@@ -128,7 +128,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        while (*addr2 != 0xff) {
                                udelay (1000 * 1000);
                                putc ('.');
-                               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("timeout\n");
                                        return 1;
                                }
@@ -181,7 +181,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                /* Verify write */
                start = get_timer (0);
                while (*dst != b) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                ipri (oldpri);
                                return 1;
                        }
index 46695bea92459c24fa1a998b8363d92b54c7ffed..11c19b7eedb252773e9521b8547c136bc9f84350 100644 (file)
@@ -58,9 +58,9 @@ phys_size_t initdram (int board_type)
 #if defined(CONFIG_CMD_IDE)
 int ide_preinit (void)
 {
-       nios_pio_t *present = (nios_pio_t *) CFG_CF_PRESENT;
-       nios_pio_t *power = (nios_pio_t *) CFG_CF_POWER;
-       nios_pio_t *atasel = (nios_pio_t *) CFG_CF_ATASEL;
+       nios_pio_t *present = (nios_pio_t *) CONFIG_SYS_CF_PRESENT;
+       nios_pio_t *power = (nios_pio_t *) CONFIG_SYS_CF_POWER;
+       nios_pio_t *atasel = (nios_pio_t *) CONFIG_SYS_CF_ATASEL;
 
        /* setup data direction registers */
        present->direction = NIOS_PIO_IN;
index 1f344dd337a49ac7600ada23a80ba70e9d92d31f..8bddd38e166a9f7081c5dac8c2e5459eaf4939cd 100644 (file)
@@ -31,7 +31,7 @@
 #include "../common/flash.c"
 
 /*----------------------------------------------------------------------*/
-#define BANKSZ         CFG_FLASH_SIZE
+#define BANKSZ         CONFIG_SYS_FLASH_SIZE
 #define SECTSZ         (64 * 1024)
 #define USERFLASH      (2 * 1024 * 1024)       /* bottom 2 MB for user */
 
@@ -43,16 +43,16 @@ unsigned long flash_init (void)
        flash_info_t *fli = &flash_info[0];
 
        fli->size = BANKSZ;
-       fli->sector_count = CFG_MAX_FLASH_SECT;
+       fli->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        fli->flash_id = FLASH_MAN_AMD + FLASH_AMDLV065D;
 
-       addr = CFG_FLASH_BASE;
+       addr = CONFIG_SYS_FLASH_BASE;
        for (i = 0; i < fli->sector_count; ++i) {
                fli->start[i] = addr;
                addr += SECTSZ;
 
                /* Protect all but 2 MByte user area */
-               if (addr < (CFG_FLASH_BASE + USERFLASH))
+               if (addr < (CONFIG_SYS_FLASH_BASE + USERFLASH))
                        fli->protect[i] = 0;
                else
                        fli->protect[i] = 1;
index 5c7093352ec1ba3e469a16489654c505b4b85cda..d1f2db13b00cfecb46a62a95bc16ba2f6161810f 100644 (file)
@@ -43,16 +43,16 @@ unsigned long flash_init (void)
        flash_info_t *fli = &flash_info[0];
 
        fli->size = BANKSZ;
-       fli->sector_count = CFG_MAX_FLASH_SECT;
+       fli->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        fli->flash_id = FLASH_MAN_AMD + FLASH_AMDLV065D;
 
-       addr = CFG_FLASH_BASE;
+       addr = CONFIG_SYS_FLASH_BASE;
        for (i = 0; i < fli->sector_count; ++i) {
                fli->start[i] = addr;
                addr += SECTSZ;
 
                /* Protect all but 2 MByte user area */
-               if (addr < (CFG_FLASH_BASE + USERFLASH))
+               if (addr < (CONFIG_SYS_FLASH_BASE + USERFLASH))
                        fli->protect[i] = 0;
                else
                        fli->protect[i] = 1;
index 2f44875dcc64e5dc47729f976de7f7d5f43f1bae..226f65bb536fc3efea12303dcfb8b769a38a7b61 100644 (file)
        .align  4
 _vectors:
 
-#if    defined(CFG_NIOS_CPU_OCI_BASE)
+#if    defined(CONFIG_SYS_NIOS_CPU_OCI_BASE)
        /* OCI does the reset job */
        .long   _def_xhandler@h         /* Vector 0  - NMI / Reset */
 #else
        /* there is no OCI, so we have to do a direct reset jump here */
-       .long   CFG_NIOS_CPU_RST_VECT   /* Vector 0  - Reset to GERMS */
+       .long   CONFIG_SYS_NIOS_CPU_RST_VECT    /* Vector 0  - Reset to GERMS */
 #endif
        .long   _cwp_lolimit@h          /* Vector 1  - underflow */
        .long   _cwp_hilimit@h          /* Vector 2  - overflow */
@@ -81,7 +81,7 @@ _vectors:
        .long   _def_xhandler@h         /* Vector 13 - future reserved */
        .long   _def_xhandler@h         /* Vector 14 - future reserved */
        .long   _def_xhandler@h         /* Vector 15 - future reserved */
-#if    (CFG_NIOS_TMRIRQ == 16)
+#if    (CONFIG_SYS_NIOS_TMRIRQ == 16)
        .long   _timebase_int@h         /* Vector 16 - lopri timer*/
 #else
        .long   _def_xhandler@h         /* Vector 16 */
@@ -119,7 +119,7 @@ _vectors:
        .long   _def_xhandler@h         /* Vector 47 */
        .long   _def_xhandler@h         /* Vector 48 */
        .long   _def_xhandler@h         /* Vector 49 */
-#if    (CFG_NIOS_TMRIRQ == 50)
+#if    (CONFIG_SYS_NIOS_TMRIRQ == 50)
        .long   _timebase_int@h         /* Vector 50 - lopri timer*/
 #else
        .long   _def_xhandler@h         /* Vector 50 */
index 8b82ea40edefdb0d74041156e1e4b81035875ded..8d79be2cedc264988a7304e71db4a7607480afbb 100644 (file)
@@ -31,24 +31,24 @@ static void acadia_gpio_init(void)
        /*
         * GPIO0 setup (select GPIO or alternate function)
         */
-       out32(GPIO0_OSRL, CFG_GPIO0_OSRL);
-       out32(GPIO0_OSRH, CFG_GPIO0_OSRH);      /* output select */
-       out32(GPIO0_ISR1L, CFG_GPIO0_ISR1L);
-       out32(GPIO0_ISR1H, CFG_GPIO0_ISR1H);    /* input select */
-       out32(GPIO0_TSRL, CFG_GPIO0_TSRL);
-       out32(GPIO0_TSRH, CFG_GPIO0_TSRH);      /* three-state select */
-       out32(GPIO0_TCR, CFG_GPIO0_TCR);  /* enable output driver for outputs */
+       out32(GPIO0_OSRL, CONFIG_SYS_GPIO0_OSRL);
+       out32(GPIO0_OSRH, CONFIG_SYS_GPIO0_OSRH);       /* output select */
+       out32(GPIO0_ISR1L, CONFIG_SYS_GPIO0_ISR1L);
+       out32(GPIO0_ISR1H, CONFIG_SYS_GPIO0_ISR1H);     /* input select */
+       out32(GPIO0_TSRL, CONFIG_SYS_GPIO0_TSRL);
+       out32(GPIO0_TSRH, CONFIG_SYS_GPIO0_TSRH);       /* three-state select */
+       out32(GPIO0_TCR, CONFIG_SYS_GPIO0_TCR);  /* enable output driver for outputs */
 
        /*
         * Ultra (405EZ) was nice enough to add another GPIO controller
         */
-       out32(GPIO1_OSRH, CFG_GPIO1_OSRH);      /* output select */
-       out32(GPIO1_OSRL, CFG_GPIO1_OSRL);
-       out32(GPIO1_ISR1H, CFG_GPIO1_ISR1H);    /* input select */
-       out32(GPIO1_ISR1L, CFG_GPIO1_ISR1L);
-       out32(GPIO1_TSRH, CFG_GPIO1_TSRH);      /* three-state select */
-       out32(GPIO1_TSRL, CFG_GPIO1_TSRL);
-       out32(GPIO1_TCR, CFG_GPIO1_TCR);  /* enable output driver for outputs */
+       out32(GPIO1_OSRH, CONFIG_SYS_GPIO1_OSRH);       /* output select */
+       out32(GPIO1_OSRL, CONFIG_SYS_GPIO1_OSRL);
+       out32(GPIO1_ISR1H, CONFIG_SYS_GPIO1_ISR1H);     /* input select */
+       out32(GPIO1_ISR1L, CONFIG_SYS_GPIO1_ISR1L);
+       out32(GPIO1_TSRH, CONFIG_SYS_GPIO1_TSRH);       /* three-state select */
+       out32(GPIO1_TSRL, CONFIG_SYS_GPIO1_TSRL);
+       out32(GPIO1_TCR, CONFIG_SYS_GPIO1_TCR);  /* enable output driver for outputs */
 }
 
 int board_early_init_f(void)
@@ -68,7 +68,7 @@ int board_early_init_f(void)
        mtsdr(sdrnand0, SDR_NAND0_NDEN | SDR_NAND0_NDAREN | SDR_NAND0_NDRBEN);
        mfsdr(sdrultra0, reg);
        reg &= ~SDR_ULTRA0_CSN_MASK;
-       reg |= (SDR_ULTRA0_CSNSEL0 >> CFG_NAND_CS) |
+       reg |= (SDR_ULTRA0_CSNSEL0 >> CONFIG_SYS_NAND_CS) |
                SDR_ULTRA0_NDGPIOBP |
                SDR_ULTRA0_EBCRDYEN |
                SDR_ULTRA0_NFSRSTEN;
@@ -91,7 +91,7 @@ int board_early_init_f(void)
 int misc_init_f(void)
 {
        /* Set EPLD to take PHY out of reset */
-       out8(CFG_CPLD_BASE + 0x05, 0x00);
+       out8(CONFIG_SYS_CPLD_BASE + 0x05, 0x00);
        udelay(100000);
 
        return 0;
@@ -105,7 +105,7 @@ int checkboard(void)
        char *s = getenv("serial#");
        u8 rev;
 
-       rev = in8(CFG_CPLD_BASE + 0);
+       rev = in8(CONFIG_SYS_CPLD_BASE + 0);
        printf("Board: Acadia - AMCC PPC405EZ Evaluation Board, Rev. %X", rev);
 
        if (s != NULL) {
index fb7ea3595454ad31be0e04216980acbf10392197..052cf6184a9f1c46db1d4befe2f6a510de4adc4e 100644 (file)
@@ -84,7 +84,7 @@ static int do_bootstrap(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (i2c_write(chip, 0, 1, buf, 16) != 0)
                printf("Error writing to EEPROM at address 0x%x\n", chip);
-       udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+       udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
        if (i2c_write(chip, 0x10, 1, buf+16, 4) != 0)
                printf("Error2 writing to EEPROM at address 0x%x\n", chip);
 
index 48a6725745614dbcf16d11e032d72da464fa2f5d..3e5c80ea42909a8e8f418b7d4eab3e4da6943526 100644 (file)
@@ -39,7 +39,7 @@ static void cram_bcr_write(u32 wr_val)
        wr_val <<= 2;
 
        /* set CRAM_CRE to 1 */
-       gpio_write_bit(CFG_GPIO_CRAM_CRE, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_CRAM_CRE, 1);
 
        /* Write BCR to CRAM on CS1 */
        out32(wr_val + 0x00200000, 0);
@@ -53,7 +53,7 @@ static void cram_bcr_write(u32 wr_val)
        eieio();
 
        /* set CRAM_CRE back to 0 (normal operation) */
-       gpio_write_bit(CFG_GPIO_CRAM_CRE, 0);
+       gpio_write_bit(CONFIG_SYS_GPIO_CRAM_CRE, 0);
 
        return;
 }
@@ -75,10 +75,10 @@ phys_size_t initdram(int board_type)
        u32 val;
 
        /* 1. EBC need to program READY, CLK, ADV for ASync mode */
-       gpio_config(CFG_GPIO_CRAM_CLK, GPIO_OUT, GPIO_SEL, GPIO_OUT_0);
-       gpio_config(CFG_GPIO_CRAM_ADV, GPIO_OUT, GPIO_SEL, GPIO_OUT_0);
-       gpio_config(CFG_GPIO_CRAM_CRE, GPIO_OUT, GPIO_SEL, GPIO_OUT_0);
-       gpio_config(CFG_GPIO_CRAM_WAIT, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG);
+       gpio_config(CONFIG_SYS_GPIO_CRAM_CLK, GPIO_OUT, GPIO_SEL, GPIO_OUT_0);
+       gpio_config(CONFIG_SYS_GPIO_CRAM_ADV, GPIO_OUT, GPIO_SEL, GPIO_OUT_0);
+       gpio_config(CONFIG_SYS_GPIO_CRAM_CRE, GPIO_OUT, GPIO_SEL, GPIO_OUT_0);
+       gpio_config(CONFIG_SYS_GPIO_CRAM_WAIT, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG);
 
        /* 2. EBC in Async mode */
        mtebc(pb1ap, 0x078F1EC0);
@@ -94,8 +94,8 @@ phys_size_t initdram(int board_type)
        mtebc(pb2ap, 0x9C0201C0);
 
        /* Set GPIO pins back to alternate function */
-       gpio_config(CFG_GPIO_CRAM_CLK, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG);
-       gpio_config(CFG_GPIO_CRAM_ADV, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG);
+       gpio_config(CONFIG_SYS_GPIO_CRAM_CLK, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG);
+       gpio_config(CONFIG_SYS_GPIO_CRAM_ADV, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG);
 
        /* Config EBC to use RDY */
        mfsdr(sdrultra0, val);
@@ -106,5 +106,5 @@ phys_size_t initdram(int board_type)
                ;
 #endif
 
-       return (CFG_MBYTES_RAM << 20);
+       return (CONFIG_SYS_MBYTES_RAM << 20);
 }
index f4157017f192b3d7d4feac66f28a9681e7f31021..febc61a0869d7e2d0ea76448c298d1c1df1899ec 100644 (file)
@@ -462,7 +462,7 @@ phys_size_t initdram (int board_type)
 
        return dram_size;
 #else
-       return CFG_MBYTES_SDRAM << 20;
+       return CONFIG_SYS_MBYTES_SDRAM << 20;
 #endif
 }
 
@@ -529,7 +529,7 @@ int pci_pre_init(struct pci_controller *hose)
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -543,14 +543,14 @@ void pci_target_init(struct pci_controller *hose)
          | Make this region non-prefetchable.
          +--------------------------------------------------------------------------*/
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE);       /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE);        /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
        out32r(PCIX0_PMM1MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM1LA, CFG_PCI_MEMBASE2); /* PMM0 Local Address */
-       out32r(PCIX0_PMM1PCILA, CFG_PCI_MEMBASE2);      /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM1LA, CONFIG_SYS_PCI_MEMBASE2); /* PMM0 Local Address */
+       out32r(PCIX0_PMM1PCILA, CONFIG_SYS_PCI_MEMBASE2);       /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM1MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
@@ -565,8 +565,8 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's subsystem id/vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
-       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_ID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_ID);
 
        /* Configure command register as bus master */
        pci_write_config_word(0, PCI_COMMAND, PCI_COMMAND_MASTER);
@@ -580,13 +580,13 @@ void pci_target_init(struct pci_controller *hose)
        pci_write_config_dword(0, PCI_BRDGOPT2, 0x00000101);
 
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  pci_master_init
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -601,7 +601,7 @@ void pci_master_init(struct pci_controller *hose)
                              temp_short | PCI_COMMAND_MASTER |
                              PCI_COMMAND_MEMORY);
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 /*************************************************************************
  *  is_pci_host
index b46527dcc5fb1c7f4300f621e6a2520a8518c12e..a37636a0a1452e44047a28b6ca89e98797b68787 100644 (file)
@@ -34,5 +34,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index d004ed7859f0be6654c54927772b7b9565d4af76..001348ac5c9dce0bcccaad13624faa389843eddd 100644 (file)
 #define DEBUGF(x...)
 #endif                         /* DEBUG */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 /*
  * Mark big flash bank (16 bit instead of 8 bit access) in address with bit 0
  */
-static unsigned long flash_addr_table[][CFG_MAX_FLASH_BANKS] = {
+static unsigned long flash_addr_table[][CONFIG_SYS_MAX_FLASH_BANKS] = {
        {0x87800001, 0xFFF00000, 0xFFF80000}, /* 0:boot from small flash */
        {0x00000000, 0x00000000, 0x00000000}, /* 1:boot from pci 66      */
        {0x87800001, 0x00000000, 0x00000000}, /* 0:boot from nand flash  */
@@ -79,7 +79,7 @@ static int write_word(flash_info_t * info, ulong dest, ulong data);
 unsigned long flash_init(void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
        unsigned short index = 0;
        int i;
        unsigned long val;
@@ -128,7 +128,7 @@ unsigned long flash_init(void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -150,8 +150,8 @@ unsigned long flash_init(void)
                }
 
                /* Monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+               (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[i]);
 #if defined(CONFIG_ENV_IS_IN_FLASH)
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
index f4d2ae3f410b4dc141bda68e48db0e61dfe8089b..a5c9d6d76493155d5066dae1cad9e55c426eb7b8 100644 (file)
@@ -48,29 +48,29 @@ tlbtab:
         * speed up boot process. It is patched after relocation to enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry(CFG_BOOT_BASE_ADDR, SZ_256M, CFG_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
 #else
-       tlbentry(CFG_NAND_BOOT_SPL_SRC, SZ_4K, CFG_NAND_BOOT_SPL_SRC, 0, AC_R|AC_W|AC_X|SA_G)
-       tlbentry(CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
 #endif
 
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry(CFG_INIT_RAM_ADDR, SZ_4K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
 
        /* PCI base & peripherals */
-       tlbentry(CFG_PCI_BASE, SZ_256M, CFG_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_NVRAM_BASE_ADDR, SZ_256M, CFG_NVRAM_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I)
-       tlbentry(CFG_NAND_ADDR, SZ_4K, CFG_NAND_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I)
+       tlbentry(CONFIG_SYS_NVRAM_BASE_ADDR, SZ_256M, CONFIG_SYS_NVRAM_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I)
+       tlbentry(CONFIG_SYS_NAND_ADDR, SZ_4K, CONFIG_SYS_NAND_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I)
 
        /* PCI */
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, CFG_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I)
 
        /* USB 2.0 Device */
-       tlbentry(CFG_USB_DEVICE, SZ_1K, CFG_USB_DEVICE, 0, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_USB_DEVICE, SZ_1K, CONFIG_SYS_USB_DEVICE, 0, AC_R|AC_W|SA_G|SA_I)
 
        tlbtab_end
 
@@ -79,8 +79,8 @@ tlbtab:
         * For NAND booting the first TLB has to be reconfigured to full size
         * and with caching disabled after running from RAM!
         */
-#define TLB00  TLB0(CFG_BOOT_BASE_ADDR, SZ_256M)
-#define TLB01  TLB1(CFG_BOOT_BASE_ADDR, 0)
+#define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
+#define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 0)
 #define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
 
        .globl  reconfig_tlb0
index d71cc292e93d040497db948e31dd05ed489394ca..a10babbf73985d6c406acfbe545d96f91edee72b 100644 (file)
@@ -32,7 +32,7 @@
 #include <ppc4xx.h>
 #include <asm/processor.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 #undef DEBUG
 #ifdef DEBUG
@@ -60,7 +60,7 @@ unsigned long flash_init(void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -75,14 +75,14 @@ unsigned long flash_init(void)
        }
 
        /* Only one bank */
-       if (CFG_MAX_FLASH_BANKS == 1) {
+       if (CONFIG_SYS_MAX_FLASH_BANKS == 1) {
                /* Setup offsets */
                flash_get_offsets(FLASH_BASE0_PRELIM, &flash_info[0]);
 
                /* Monitor protection ON by default */
                (void)flash_protect(FLAG_PROTECT_SET,
-                                   CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+                                   CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[0]);
 #ifdef CONFIG_ENV_IS_IN_FLASH
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
@@ -133,7 +133,7 @@ unsigned long flash_init(void)
 
                /* monitor protection ON by default */
                (void)flash_protect(FLAG_PROTECT_SET,
-                                   base_b0 + size_b0 - CFG_MONITOR_LEN,
+                                   base_b0 + size_b0 - CONFIG_SYS_MONITOR_LEN,
                                    base_b0 + size_b0 - 1, &flash_info[0]);
                /* Also protect sector containing initial power-up instruction */
                /* (flash_protect() checks address range - other call ignored) */
@@ -151,12 +151,12 @@ unsigned long flash_init(void)
 
                        /* monitor protection ON by default */
                        (void)flash_protect(FLAG_PROTECT_SET,
-                                           base_b1 + size_b1 - CFG_MONITOR_LEN,
+                                           base_b1 + size_b1 - CONFIG_SYS_MONITOR_LEN,
                                            base_b1 + size_b1 - 1,
                                            &flash_info[1]);
                        /* monitor protection OFF by default (one is enough) */
                        (void)flash_protect(FLAG_PROTECT_CLEAR,
-                                           base_b0 + size_b0 - CFG_MONITOR_LEN,
+                                           base_b0 + size_b0 - CONFIG_SYS_MONITOR_LEN,
                                            base_b0 + size_b0 - 1,
                                            &flash_info[0]);
                } else {
index 1d125b6e6ea8b8c14544fdd6a741461c7fdc4cad..6b74743550b3aa77ed67a9f35a1edb9e166dcbd2 100644 (file)
@@ -168,7 +168,7 @@ static int do_bootstrap(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (i2c_write(I2C_EEPROM_ADDR, 0, 1, buf, 16) != 0)
                printf("Error writing to EEPROM at address 0x%x\n", I2C_EEPROM_ADDR);
-       udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+       udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 
        printf("Done\n");
        printf("Please power-cycle the board for the changes to take effect\n");
index 47667eeec39964f5ca1fcf5af21e648d4559d3e1..e9186f868d583c98c7030fa9719563ff377b4ab2 100644 (file)
 #include <asm/4xx_pcie.h>
 #include <asm/gpio.h>
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define CFG_BCSR3_PCIE         0x10
+#define CONFIG_SYS_BCSR3_PCIE          0x10
 
 #define BOARD_CANYONLANDS_PCIE 1
 #define BOARD_CANYONLANDS_SATA 2
@@ -86,7 +86,7 @@ int board_early_init_f(void)
                SDR0_CUST0_NDFC_BW_8_BIT        |
                SDR0_CUST0_NDFC_ARE_MASK        |
                SDR0_CUST0_NDFC_BAC_ENCODE(3)   |
-               (0x80000000 >> (28 + CFG_NAND_CS));
+               (0x80000000 >> (28 + CONFIG_SYS_NAND_CS));
        mtsdr(SDR0_CUST0, sdr0_cust0);
 
        /*
@@ -99,13 +99,13 @@ int board_early_init_f(void)
        mtsdr(SDR0_PCI0, 0xe0000000);
 
        /* Enable ethernet and take out of reset */
-       out_8((void *)CFG_BCSR_BASE + 6, 0);
+       out_8((void *)CONFIG_SYS_BCSR_BASE + 6, 0);
 
        /* Remove NOR-FLASH, NAND-FLASH & EEPROM hardware write protection */
-       out_8((void *)CFG_BCSR_BASE + 5, 0);
+       out_8((void *)CONFIG_SYS_BCSR_BASE + 5, 0);
 
        /* Enable USB host & USB-OTG */
-       out_8((void *)CFG_BCSR_BASE + 7, 0);
+       out_8((void *)CONFIG_SYS_BCSR_BASE + 7, 0);
 
        mtsdr(SDR0_SRST1, 0);   /* Pull AHB out of reset default=1 */
 
@@ -158,7 +158,7 @@ int checkboard(void)
                gd->board_type = BOARD_GLACIER;
        } else {
                printf("Board: Canyonlands - AMCC PPC460EX Evaluation Board");
-               if (in_8((void *)(CFG_BCSR_BASE + 3)) & CFG_BCSR3_PCIE)
+               if (in_8((void *)(CONFIG_SYS_BCSR_BASE + 3)) & CONFIG_SYS_BCSR3_PCIE)
                        gd->board_type = BOARD_CANYONLANDS_PCIE;
                else
                        gd->board_type = BOARD_CANYONLANDS_SATA;
@@ -175,7 +175,7 @@ int checkboard(void)
                break;
        }
 
-       printf(", Rev. %X", in_8((void *)(CFG_BCSR_BASE + 0)));
+       printf(", Rev. %X", in_8((void *)(CONFIG_SYS_BCSR_BASE + 0)));
 
        if (s != NULL) {
                puts(", serial# ");
@@ -208,7 +208,7 @@ u32 ddr_clktr(u32 default_val) {
  */
 phys_size_t initdram(int board_type)
 {
-       return CFG_MBYTES_SDRAM << 20;
+       return CONFIG_SYS_MBYTES_SDRAM << 20;
 }
 #endif
 
@@ -219,7 +219,7 @@ phys_size_t initdram(int board_type)
  *     inbound map (PIM). But the bootstrap config choices are limited and
  *     may not be sufficient for a given board.
  */
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*
@@ -234,7 +234,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440
         * strapping options to not support sizes such as 128/256 MB.
         */
-       out_le32((void *)PCIX0_PIM0LAL, CFG_SDRAM_BASE);
+       out_le32((void *)PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE);
        out_le32((void *)PCIX0_PIM0LAH, 0);
        out_le32((void *)PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1);
        out_le32((void *)PCIX0_BAR0, 0);
@@ -242,12 +242,12 @@ void pci_target_init(struct pci_controller * hose )
        /*
         * Program the board's subsystem id/vendor id
         */
-       out_le16((void *)PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID);
-       out_le16((void *)PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID);
+       out_le16((void *)PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       out_le16((void *)PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID);
 
        out_le16((void *)PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY);
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 #if defined(CONFIG_PCI)
 /*
@@ -314,9 +314,9 @@ void pcie_setup_hoses(int busno)
 
                /* setup mem resource */
                pci_set_region(hose->regions + 0,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMSIZE,
                               PCI_REGION_MEM);
                hose->region_count = 1;
                pci_register_hose(hose);
@@ -362,16 +362,16 @@ int board_early_init_r (void)
 
        /* Remap the NOR FLASH to 0xcc00.0000 ... 0xcfff.ffff */
 #if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
-       mtebc(pb3cr, CFG_FLASH_BASE_PHYS_L | 0xda000);
+       mtebc(pb3cr, CONFIG_SYS_FLASH_BASE_PHYS_L | 0xda000);
 #else
-       mtebc(pb0cr, CFG_FLASH_BASE_PHYS_L | 0xda000);
+       mtebc(pb0cr, CONFIG_SYS_FLASH_BASE_PHYS_L | 0xda000);
 #endif
 
        /* Remove TLB entry of boot EBC mapping */
-       remove_tlb(CFG_BOOT_BASE_ADDR, 16 << 20);
+       remove_tlb(CONFIG_SYS_BOOT_BASE_ADDR, 16 << 20);
 
        /* Add TLB entry for 0xfc00.0000 -> 0x4.cc00.0000 */
-       program_tlb(CFG_FLASH_BASE_PHYS, CFG_FLASH_BASE, CFG_FLASH_SIZE,
+       program_tlb(CONFIG_SYS_FLASH_BASE_PHYS, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_SIZE,
                    TLB_WORD2_I_ENABLE);
 
        /*
@@ -427,9 +427,9 @@ int misc_init_r(void)
         * Disable square wave output: Batterie will be drained
         * quickly, when this output is not disabled
         */
-       val = i2c_reg_read(CFG_I2C_RTC_ADDR, 0xa);
+       val = i2c_reg_read(CONFIG_SYS_I2C_RTC_ADDR, 0xa);
        val &= ~0x40;
-       i2c_reg_write(CFG_I2C_RTC_ADDR, 0xa, val);
+       i2c_reg_write(CONFIG_SYS_I2C_RTC_ADDR, 0xa, val);
 
        return 0;
 }
@@ -445,7 +445,7 @@ void ft_board_setup(void *blob, bd_t *bd)
        /* Fixup NOR mapping */
        val[0] = 0;                             /* chip select number */
        val[1] = 0;                             /* always 0 */
-       val[2] = CFG_FLASH_BASE_PHYS_L;         /* we fixed up this address */
+       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);
index 2330cae925bb759677cfda5fa28d8a2afb73cb39..551a8175563bf9499385b248529909e19d7d21bc 100644 (file)
@@ -37,5 +37,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 258fb5de8ffb9dea5a30ddd780e5be48fbcef1db..179dd324add25f820cfcc575a552904cbf5c1f5f 100644 (file)
@@ -47,10 +47,10 @@ tlbtab:
         * enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry(CFG_BOOT_BASE_ADDR, SZ_16M, CFG_BOOT_BASE_ADDR, 4, AC_R|AC_W|AC_X|SA_G) /* TLB 0 */
+       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_16M, CONFIG_SYS_BOOT_BASE_ADDR, 4, AC_R|AC_W|AC_X|SA_G) /* TLB 0 */
 #else
-       tlbentry(CFG_NAND_BOOT_SPL_SRC, SZ_4K, CFG_NAND_BOOT_SPL_SRC, 4, AC_R|AC_W|AC_X|SA_G)
-       tlbentry(CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 4, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
        tlbentry(256 << 20, SZ_256M, 256 << 20, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
 #endif
 
@@ -60,37 +60,37 @@ tlbtab:
         * routine.
         */
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry(CFG_INIT_RAM_ADDR, SZ_4K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
 #endif
 
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
 
        /* PCIe UTL register */
-       tlbentry(CFG_PCIE_BASE, SZ_16K, 0x08010000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x08010000, 0xC, AC_R|AC_W|SA_G|SA_I)
 
        /* TLB-entry for NAND */
-       tlbentry(CFG_NAND_ADDR, SZ_16M, CFG_NAND_ADDR, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_NAND_ADDR, SZ_16M, CONFIG_SYS_NAND_ADDR, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
 
        /* TLB-entry for CPLD */
-       tlbentry(CFG_BCSR_BASE, SZ_1K, CFG_BCSR_BASE, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_BCSR_BASE, SZ_1K, CONFIG_SYS_BCSR_BASE, 4, AC_R|AC_W|SA_G|SA_I)
 
        /* TLB-entry for OCM */
-       tlbentry(CFG_OCM_BASE, SZ_16K, 0x00040000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_OCM_BASE, SZ_16K, 0x00040000, 4, AC_R|AC_W|AC_X|SA_I)
 
        /* TLB-entry for Local Configuration registers => peripherals */
-       tlbentry(CFG_LOCAL_CONF_REGS, SZ_16M, CFG_LOCAL_CONF_REGS, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_LOCAL_CONF_REGS, SZ_16M, CONFIG_SYS_LOCAL_CONF_REGS, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
 
        /* AHB: Internal USB Peripherals (USB, SATA) */
-       tlbentry(CFG_AHB_BASE, SZ_1M, 0xbff00000, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_AHB_BASE, SZ_1M, 0xbff00000, 4, AC_R|AC_W|AC_X|SA_G|SA_I)
 
        tlbtab_end
 
@@ -99,8 +99,8 @@ tlbtab:
         * For NAND booting the first TLB has to be reconfigured to full size
         * and with caching disabled after running from RAM!
         */
-#define TLB00  TLB0(CFG_BOOT_BASE_ADDR, SZ_256M)
-#define TLB01  TLB1(CFG_BOOT_BASE_ADDR, 1)
+#define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
+#define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 1)
 #define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
 
        .globl  reconfig_tlb0
index eba0511f2623bf766f75de2b4d93c93e8e179e04..9943c744b7af120631e47ad5c8c8692c530973ec 100644 (file)
 #include <ppc4xx.h>
 #include <asm/processor.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
  */
 static int write_word(flash_info_t * info, ulong dest, ulong data);
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static int write_word_1(flash_info_t * info, ulong dest, ulong data);
 static int write_word_2(flash_info_t * info, ulong dest, ulong data);
 static int flash_erase_1(flash_info_t * info, int s_first, int s_last);
@@ -171,7 +171,7 @@ void flash_print_info(flash_info_t * info)
 /*
  * The following code cannot be run from FLASH!
  */
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 {
        /* bit 0 used for big flash marking */
@@ -188,32 +188,32 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 #endif
 {
        short i;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00900090;
        udelay(1000);
 
        value = addr2[0];
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_WORD_SIZE) FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_WORD_SIZE) SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_WORD_SIZE) STM_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) STM_MANUFACT:
                info->flash_id = FLASH_MAN_STM;
                break;
        default:
@@ -227,67 +227,67 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        DEBUGF("\nFLASH DEVICEID: %x\n", value);
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000;         /* => 512 KiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_F040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_F040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000;         /* => 512 KiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) STM_ID_M29W040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) STM_ID_M29W040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000;         /* => 512 KiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_F016D:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_F016D:
                info->flash_id += FLASH_AMD016;
                info->sector_count = 32;
                info->size = 0x00200000;        /* => 2 MiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV033C:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV033C:
                info->flash_id += FLASH_AMDLV033C;
                info->sector_count = 64;
                info->size = 0x00400000;        /* => 4 MiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV400T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV400T:
                info->flash_id += FLASH_AM400T;
                info->sector_count = 11;
                info->size = 0x00080000;        /* => 512 KiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV400B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV400B:
                info->flash_id += FLASH_AM400B;
                info->sector_count = 11;
                info->size = 0x00080000;        /* => 512 KiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV800T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV800T:
                info->flash_id += FLASH_AM800T;
                info->sector_count = 19;
                info->size = 0x00100000;        /* => 1 MiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV800B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV800B:
                info->flash_id += FLASH_AM800B;
                info->sector_count = 19;
                info->size = 0x00100000;        /* => 1 MiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV160T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV160T:
                info->flash_id += FLASH_AM160T;
                info->sector_count = 35;
                info->size = 0x00200000;        /* => 2 MiB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV160B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV160B:
                info->flash_id += FLASH_AM160B;
                info->sector_count = 35;
                info->size = 0x00200000;        /* => 2 MiB */
@@ -331,14 +331,14 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                /* For AMD29033C flash we need to resend the command of *
                 * reading flash protection for upper 8 Mb of flash     */
                if (i == 32) {
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90909090;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90909090;
                }
 
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST)
@@ -348,7 +348,7 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
 
        return (info->size);
 }
@@ -356,14 +356,14 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 static int wait_for_DQ7_1(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-           (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+           (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-              (CFG_FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+              (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -376,7 +376,7 @@ static int wait_for_DQ7_1(flash_info_t * info, int sect)
        return 0;
 }
 
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 int flash_erase(flash_info_t * info, int s_first, int s_last)
 {
        if (((info->flash_id & FLASH_TYPEMASK) == FLASH_AM320B) ||
@@ -394,8 +394,8 @@ static int flash_erase_1(flash_info_t * info, int s_first, int s_last)
 int flash_erase(flash_info_t * info, int s_first, int s_last)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        int i;
 
@@ -435,24 +435,24 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00500050;    /* block erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00500050;     /* block erase */
                                for (i = 0; i < 50; i++)
                                        udelay(1000);   /* wait 1 ms */
                        } else {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00300030;    /* sector erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00300030;     /* sector erase */
                        }
                        l_sect = sect;
                        /*
@@ -474,8 +474,8 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;      /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -557,7 +557,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
  * 1 - write timeout
  * 2 - Flash not erased
  */
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static int write_word(flash_info_t * info, ulong dest, ulong data)
 {
        if (((info->flash_id & FLASH_TYPEMASK) == FLASH_AM320B) ||
@@ -575,9 +575,9 @@ static int write_word_1(flash_info_t * info, ulong dest, ulong data)
 static int write_word(flash_info_t * info, ulong dest, ulong data)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i;
 
@@ -586,15 +586,15 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
                return (2);
        }
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                int flag;
 
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00A000A0;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -604,10 +604,10 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                      (data2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                      (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -616,10 +616,10 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
        return (0);
 }
 
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 
-#undef  CFG_FLASH_WORD_SIZE
-#define CFG_FLASH_WORD_SIZE unsigned short
+#undef  CONFIG_SYS_FLASH_WORD_SIZE
+#define CONFIG_SYS_FLASH_WORD_SIZE unsigned short
 
 /*
  * The following code cannot be run from FLASH!
@@ -628,35 +628,35 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
 {
        short i;
        int n;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00900090;
        udelay(1000);
 
        value = addr2[0];
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_WORD_SIZE) FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_WORD_SIZE) SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_WORD_SIZE) STM_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) STM_MANUFACT:
                info->flash_id = FLASH_MAN_STM;
                break;
-       case (CFG_FLASH_WORD_SIZE) MX_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) MX_MANUFACT:
                info->flash_id = FLASH_MAN_MX;
                break;
        default:
@@ -672,22 +672,22 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
 
        switch (value) {
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320T:
                info->flash_id += FLASH_AM320T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MiB     */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320B:
                info->flash_id += FLASH_AM320B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MiB     */
 
-       case (CFG_FLASH_WORD_SIZE)STM_ID_29W320DT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)STM_ID_29W320DT:
                info->flash_id += FLASH_STMW320DT;
                info->sector_count = 67;
                info->size = 0x00400000;  break;        /* => 4 MiB     */
 
-       case (CFG_FLASH_WORD_SIZE)MX_ID_LV320T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)MX_ID_LV320T:
                info->flash_id += FLASH_MXLV320T;
                info->sector_count = 71;
                info->size = 0x00400000;
@@ -776,14 +776,14 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                /* For AMD29033C flash we need to resend the command of *
                 * reading flash protection for upper 8 Mb of flash     */
                if (i == 32) {
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90909090;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90909090;
                }
 
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST)
@@ -793,7 +793,7 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
 
        return (info->size);
 }
@@ -801,14 +801,14 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
 static int wait_for_DQ7_2(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-           (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+           (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-              (CFG_FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+              (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -823,8 +823,8 @@ static int wait_for_DQ7_2(flash_info_t * info, int sect)
 
 static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        int i;
 
@@ -864,24 +864,24 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00500050;    /* block erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00500050;     /* block erase */
                                for (i = 0; i < 50; i++)
                                        udelay(1000);   /* wait 1 ms */
                        } else {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00300030;    /* sector erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00300030;     /* sector erase */
                        }
                        l_sect = sect;
                        /*
@@ -903,8 +903,8 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;      /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -912,9 +912,9 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
 
 static int write_word_2(flash_info_t * info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i;
 
@@ -923,15 +923,15 @@ static int write_word_2(flash_info_t * info, ulong dest, ulong data)
                return (2);
        }
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                int flag;
 
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00A000A0;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -941,10 +941,10 @@ static int write_word_2(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                      (data2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                      (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -952,4 +952,4 @@ static int write_word_2(flash_info_t * info, ulong dest, ulong data)
 
        return (0);
 }
-#endif /* CFG_FLASH_2ND_16BIT_DEV */
+#endif /* CONFIG_SYS_FLASH_2ND_16BIT_DEV */
index e5722dd36a76e47ed9c2f94f878e03ff05c48993..60d3bf4d27ce4b76aff3d278126c84ef2456a967 100644 (file)
@@ -40,5 +40,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 9bcdf5997f1babca86f011fd23b4a0523b7acf94..ad09e62077c082ed93451ee2e665cc5586bced95 100644 (file)
@@ -35,7 +35,7 @@ long int fixed_sdram(void);
 int board_early_init_f(void)
 {
        uint reg;
-       unsigned char *fpga_base = (unsigned char *)CFG_FPGA_BASE;
+       unsigned char *fpga_base = (unsigned char *)CONFIG_SYS_FPGA_BASE;
        unsigned char status;
 
        /*--------------------------------------------------------------------
@@ -204,7 +204,7 @@ int pci_pre_init(struct pci_controller *hose)
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -219,7 +219,7 @@ void pci_target_init(struct pci_controller *hose)
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
      * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r(PCIX0_PIM0LAL, CFG_SDRAM_BASE);
+       out32r(PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE);
        out32r(PCIX0_PIM0LAH, 0);
        out32r(PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1);
 
@@ -228,12 +228,12 @@ void pci_target_init(struct pci_controller *hose)
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r(PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID);
-       out16r(PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID);
+       out16r(PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       out16r(PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID);
 
        out16r(PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY);
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  is_pci_host
index d9c69744b9d2fa8c970bc7d41c73af30a6a9644d..8fe3ba1b8f0df4777e97dde510a73583c3c95f0d 100644 (file)
@@ -50,7 +50,7 @@
 #define     FLASH_ONBD_N_VAL        2
 #define     FLASH_SRAM_SEL_VAL      1
 
-static unsigned long flash_addr_table[8][CFG_MAX_FLASH_BANKS] = {
+static unsigned long flash_addr_table[8][CONFIG_SYS_MAX_FLASH_BANKS] = {
        {0xffc00000, 0xffe00000, 0xff880000},   /* 0:000: configuraton 3 */
        {0xffc00000, 0xffe00000, 0xff800000},   /* 1:001: configuraton 4 */
        {0xffc00000, 0xffe00000, 0x00000000},   /* 2:010: configuraton 7 */
@@ -74,8 +74,8 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info);
 unsigned long flash_init(void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
-       unsigned char *fpga_base = (unsigned char *)CFG_FPGA_BASE;
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
+       unsigned char *fpga_base = (unsigned char *)CONFIG_SYS_FPGA_BASE;
        unsigned char switch_status;
        unsigned short index = 0;
        int i;
@@ -98,7 +98,7 @@ unsigned long flash_init(void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -121,8 +121,8 @@ unsigned long flash_init(void)
                }
 
                /* Monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+               (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[2]);
 #ifdef CONFIG_ENV_IS_IN_FLASH
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
index c86076e806914f344efb5143d3abf22c3384739b..811a96a1f4690ea4dfe7dcd1e85ae27f51dfc629 100644 (file)
@@ -49,9 +49,9 @@ tlbtab:
         * routine.
         */
 
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CFG_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X)
+       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
index c512b53c6f3409de48780a3be6b1cf90da380bc1..ef0cf96720d1ef63af0b35a6560c7e149b7921bc 100644 (file)
@@ -34,5 +34,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index e3f3da6bd84f75bdd3176444453afc209f7814a4..1c74a82c3d63d8ac4b43268dd5bf373a4aee6316 100644 (file)
@@ -59,20 +59,20 @@ tlbtabA:
         * routine.
         */
 
-       tlbentry(CFG_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
-
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-
-       tlbentry(CFG_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
 
 /**************************************************************************
@@ -99,20 +99,20 @@ tlbtabB:
         * routine.
         */
 
-       tlbentry(CFG_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
 
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_ACE_BASE, SZ_1K, CFG_ACE_BASE, 4,AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_ACE_BASE, SZ_1K, CONFIG_SYS_ACE_BASE, 4,AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
index 172b5811e3ecfdb31af0dd283d13bf0429d159ad..b6c0c11ef2645e2772d1e677ba30dffefbe9866a 100644 (file)
@@ -224,11 +224,11 @@ int board_early_init_f (void)
        mfr |= SDR0_MFR_FIXD;           /* Workaround for PCI/DMA */
        mtsdr(sdr_mfr, mfr);
 
-       mtsdr(SDR0_PFC0, CFG_PFC0);
+       mtsdr(SDR0_PFC0, CONFIG_SYS_PFC0);
 
-       out32(GPIO0_OR, CFG_GPIO_OR);
-       out32(GPIO0_ODR, CFG_GPIO_ODR);
-       out32(GPIO0_TCR, CFG_GPIO_TCR);
+       out32(GPIO0_OR, CONFIG_SYS_GPIO_OR);
+       out32(GPIO0_ODR, CONFIG_SYS_GPIO_ODR);
+       out32(GPIO0_TCR, CONFIG_SYS_GPIO_TCR);
 
        return 0;
 }
@@ -298,7 +298,7 @@ int pci_pre_init(struct pci_controller * hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*-------------------------------------------------------------------+
@@ -313,7 +313,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440
         * strapping options to not support sizes such as 128/256 MB.
         *-------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
        out32r( PCIX0_BAR0, 0 );
@@ -321,12 +321,12 @@ void pci_target_init(struct pci_controller * hose )
        /*-------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *-------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY );
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 #if defined(CONFIG_PCI)
 /*************************************************************************
@@ -357,11 +357,11 @@ static int katmai_pcie_card_present(int port)
        val = in32(GPIO0_IR);
        switch (port) {
        case 0:
-               return !(val & GPIO_VAL(CFG_GPIO_PCIE_PRESENT0));
+               return !(val & GPIO_VAL(CONFIG_SYS_GPIO_PCIE_PRESENT0));
        case 1:
-               return !(val & GPIO_VAL(CFG_GPIO_PCIE_PRESENT1));
+               return !(val & GPIO_VAL(CONFIG_SYS_GPIO_PCIE_PRESENT1));
        case 2:
-               return !(val & GPIO_VAL(CFG_GPIO_PCIE_PRESENT2));
+               return !(val & GPIO_VAL(CONFIG_SYS_GPIO_PCIE_PRESENT2));
        default:
                return 0;
        }
@@ -404,9 +404,9 @@ void pcie_setup_hoses(int busno)
 
                /* setup mem resource */
                pci_set_region(hose->regions + 0,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMSIZE,
                               PCI_REGION_MEM);
                hose->region_count = 1;
                pci_register_hose(hose);
index 0d2f27fe520eb74df6132f003c0ff224ae2178f7..0f571fefed748d34b914d8fde38d22833426e18d 100644 (file)
@@ -48,7 +48,7 @@
        do {                                                            \
                int __i;                                                \
                for (__i = 0; __i < 2; __i++)                           \
-                       eeprom_write (CFG_I2C_EEPROM_ADDR,              \
+                       eeprom_write (CONFIG_SYS_I2C_EEPROM_ADDR,               \
                                      EEPROM_CONF_OFFSET + __i*BUF_STEP, \
                                      pll_select[freq],                 \
                                      BUF_STEP + __i*BUF_STEP);         \
@@ -151,7 +151,7 @@ pll_debug(int off)
        uchar buffer[EEPROM_SDSTP_PARAM];
 
        memset(buffer, 0, sizeof(buffer));
-       eeprom_read(CFG_I2C_EEPROM_ADDR, off,
+       eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, off,
                    buffer, EEPROM_SDSTP_PARAM);
 
        printf("Debug: SDSTP[0-3] at offset \"0x%02x\" lists as follows: \n", off);
@@ -168,9 +168,9 @@ test_write(void)
        /*
         * Write twice, 8 bytes per write
         */
-       eeprom_write (CFG_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET,
+       eeprom_write (CONFIG_SYS_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET,
                      testbuf, 8);
-       eeprom_write (CFG_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET+8,
+       eeprom_write (CONFIG_SYS_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET+8,
                      testbuf, 16);
        printf("done\n");
 
@@ -236,7 +236,7 @@ ret:
 }
 
 U_BOOT_CMD(
-       pllalter, CFG_MAXARGS, 1,        do_pll_alter,
+       pllalter, CONFIG_SYS_MAXARGS, 1,        do_pll_alter,
        "pllalter- change pll frequence \n",
        "pllalter <selection>      - change pll frequence \n\n\
        ** New freq take effect after reset. ** \n\
index f407e195be7b9533e05e119b38c54280d69e8c4d..7e84a61a96da1a3e7d00f3c7de73bc96c8cee3df 100644 (file)
@@ -36,7 +36,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips   */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 /*
  * Board early initialization function
@@ -197,7 +197,7 @@ int board_early_init_f (void)
                SDR0_CUST0_NDFC_ENABLE |
                SDR0_CUST0_NDFC_BW_8_BIT |
                SDR0_CUST0_NRB_BUSY |
-               (0x80000000 >> (28 + CFG_NAND_CS));
+               (0x80000000 >> (28 + CONFIG_SYS_NAND_CS));
        mtsdr(SDR0_CUST0, val);
 
        /*
@@ -210,9 +210,9 @@ int board_early_init_f (void)
        /*
         * Configure FPGA register with PCIe reset
         */
-       out_be32((void *)CFG_FPGA_BASE, 0xff570cc4);    /* assert PCIe reset */
+       out_be32((void *)CONFIG_SYS_FPGA_BASE, 0xff570cc4);     /* assert PCIe reset */
        mdelay(50);
-       out_be32((void *)CFG_FPGA_BASE, 0xff570cc7);    /* deassert PCIe reset */
+       out_be32((void *)CONFIG_SYS_FPGA_BASE, 0xff570cc7);     /* deassert PCIe reset */
 
        return 0;
 }
@@ -222,7 +222,7 @@ int misc_init_r(void)
 #ifdef CONFIG_ENV_IS_IN_FLASH
        /* Monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     -CFG_MONITOR_LEN,
+                     -CONFIG_SYS_MONITOR_LEN,
                      0xffffffff,
                      &flash_info[0]);
 #endif
@@ -330,9 +330,9 @@ void pcie_setup_hoses(int busno)
 
                /* setup mem resource */
                pci_set_region(hose->regions + 0,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMSIZE,
                               PCI_REGION_MEM);
                hose->region_count = 1;
                pci_register_hose(hose);
index f52c206177c2cd64829dd452f5554885be391e10..cd02aab575e6d342ddaae5113cbb314829def585 100644 (file)
@@ -40,5 +40,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index d28bf9d23e039b180f270a492e698bff713eee00..2d3b15438b4e2b0a52428d02cd7a7907a72cb88c 100644 (file)
@@ -42,7 +42,7 @@
 #define DEBUGF(x...)
 #endif                         /* DEBUG */
 
-static unsigned long flash_addr_table[1][CFG_MAX_FLASH_BANKS] = {
+static unsigned long flash_addr_table[1][CONFIG_SYS_MAX_FLASH_BANKS] = {
        {0xff900000, 0xff980000, 0xffc00000},   /* 0:000: configuraton 3 */
 };
 
@@ -59,7 +59,7 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info);
 unsigned long flash_init(void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
        unsigned short index = 0;
        int i;
 
@@ -69,7 +69,7 @@ unsigned long flash_init(void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -92,8 +92,8 @@ unsigned long flash_init(void)
                }
 
                /* Monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+               (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[2]);
 #ifdef CONFIG_ENV_IS_IN_FLASH
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
index d5ee117dfaca2a6e713b0f01223ab1e8eab24924..fb54dea3a08150887d7d0486d92183be611944e7 100644 (file)
@@ -54,7 +54,7 @@ tlbtab:
        tlbentry(0xffd00000, SZ_1M, 0xffd00000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
        tlbentry(0xffe00000, SZ_1M, 0xffe00000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
        tlbentry(0xff900000, SZ_1M, 0xff900000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(CFG_EPLD_BASE, SZ_256K, 0xff000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_EPLD_BASE, SZ_256K, 0xff000000, 1, AC_R|AC_W|SA_G|SA_I)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -63,12 +63,12 @@ tlbtab:
         */
 
        /* internal ram (l2 cache) */
-       tlbentry(CFG_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_I)
 
        /* peripherals at f0000000 */
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_4K, CFG_PERIPHERAL_BASE, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, CONFIG_SYS_PERIPHERAL_BASE, 1, AC_R|AC_W|SA_G|SA_I)
 
        /* PCI */
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 9, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x10000000, 9, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 9, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 9, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
index b14b6e1b5611da3cc651439957bee0b2d96936d4..b28ebf98e970963505ee521b3aef59613b4c24e2 100644 (file)
@@ -30,7 +30,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 
 /*************************************************************************
@@ -80,7 +80,7 @@ int board_early_init_f(void)
  ************************************************************************/
 int misc_init_r(void)
 {
-       volatile epld_t *x = (epld_t *) CFG_EPLD_BASE;
+       volatile epld_t *x = (epld_t *) CONFIG_SYS_EPLD_BASE;
 
        /* set modes of operation */
        x->ethuart |= EPLD2_ETH_MODE_10 | EPLD2_ETH_MODE_100 |
@@ -166,7 +166,7 @@ int pci_pre_init( struct pci_controller *hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -181,7 +181,7 @@ void pci_target_init(struct pci_controller *hose)
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
         * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
 
@@ -190,12 +190,12 @@ void pci_target_init(struct pci_controller *hose)
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY );
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 
 /*************************************************************************
index 0d2f27fe520eb74df6132f003c0ff224ae2178f7..0f571fefed748d34b914d8fde38d22833426e18d 100644 (file)
@@ -48,7 +48,7 @@
        do {                                                            \
                int __i;                                                \
                for (__i = 0; __i < 2; __i++)                           \
-                       eeprom_write (CFG_I2C_EEPROM_ADDR,              \
+                       eeprom_write (CONFIG_SYS_I2C_EEPROM_ADDR,               \
                                      EEPROM_CONF_OFFSET + __i*BUF_STEP, \
                                      pll_select[freq],                 \
                                      BUF_STEP + __i*BUF_STEP);         \
@@ -151,7 +151,7 @@ pll_debug(int off)
        uchar buffer[EEPROM_SDSTP_PARAM];
 
        memset(buffer, 0, sizeof(buffer));
-       eeprom_read(CFG_I2C_EEPROM_ADDR, off,
+       eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, off,
                    buffer, EEPROM_SDSTP_PARAM);
 
        printf("Debug: SDSTP[0-3] at offset \"0x%02x\" lists as follows: \n", off);
@@ -168,9 +168,9 @@ test_write(void)
        /*
         * Write twice, 8 bytes per write
         */
-       eeprom_write (CFG_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET,
+       eeprom_write (CONFIG_SYS_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET,
                      testbuf, 8);
-       eeprom_write (CFG_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET+8,
+       eeprom_write (CONFIG_SYS_I2C_EEPROM_ADDR, EEPROM_TEST_OFFSET+8,
                      testbuf, 16);
        printf("done\n");
 
@@ -236,7 +236,7 @@ ret:
 }
 
 U_BOOT_CMD(
-       pllalter, CFG_MAXARGS, 1,        do_pll_alter,
+       pllalter, CONFIG_SYS_MAXARGS, 1,        do_pll_alter,
        "pllalter- change pll frequence \n",
        "pllalter <selection>      - change pll frequence \n\n\
        ** New freq take effect after reset. ** \n\
index fc79907baa35fa743e0cbf87892d734c8aa8115d..9fc0ec6667ef282a25e53d3b59c4e91e544abdfa 100644 (file)
@@ -37,7 +37,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips   */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 /*
  * Board early initialization function
@@ -194,9 +194,9 @@ int board_early_init_f (void)
        mtsdr(SDR0_SRST, 0);
 
        /* Reset PCIe slots */
-       gpio_write_bit(CFG_GPIO_PCIE_RST, 0);
+       gpio_write_bit(CONFIG_SYS_GPIO_PCIE_RST, 0);
        udelay(100);
-       gpio_write_bit(CFG_GPIO_PCIE_RST, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_PCIE_RST, 1);
 
        /*
         * Configure PFC (Pin Function Control) registers
@@ -213,7 +213,7 @@ int misc_init_r(void)
 #ifdef CONFIG_ENV_IS_IN_FLASH
        /* Monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     -CFG_MONITOR_LEN,
+                     -CONFIG_SYS_MONITOR_LEN,
                      0xffffffff,
                      &flash_info[0]);
 #endif
@@ -286,9 +286,9 @@ void pcie_setup_hoses(int busno)
 
                /* setup mem resource */
                pci_set_region(hose->regions + 0,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                              CFG_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                              CONFIG_SYS_PCIE_MEMSIZE,
                               PCI_REGION_MEM);
                hose->region_count = 1;
                pci_register_hose(hose);
index 9e1833591a2337129b5a90001069f1377677ab57..b62e776d30edb7b1345ca52c0f953b8125ee0c92 100644 (file)
@@ -40,5 +40,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 46c6946f3e28e58ea1363addc3c1c6999b72d41e..a83f93afacfd496dbb98e32989060d8821fc1b78 100644 (file)
@@ -53,9 +53,9 @@
 #define     FLASH_ONBD_N_VAL        2
 #define     FLASH_SRAM_SEL_VAL      1
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
-static unsigned long flash_addr_table[8][CFG_MAX_FLASH_BANKS] = {
+static unsigned long flash_addr_table[8][CONFIG_SYS_MAX_FLASH_BANKS] = {
        {0xFF800000, 0xFF880000, 0xFFC00000},   /* 0:000: configuraton 4 */
        {0xFF900000, 0xFF980000, 0xFFC00000},   /* 1:001: configuraton 3 */
        {0x00000000, 0x00000000, 0x00000000},   /* 2:010: configuraton 8 */
@@ -83,8 +83,8 @@ static int write_word(flash_info_t * info, ulong dest, ulong data);
 unsigned long flash_init(void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
-       unsigned char *fpga_base = (unsigned char *)CFG_FPGA_BASE;
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
+       unsigned char *fpga_base = (unsigned char *)CONFIG_SYS_FPGA_BASE;
        unsigned char switch_status;
        unsigned short index = 0;
        int i;
@@ -107,7 +107,7 @@ unsigned long flash_init(void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -131,8 +131,8 @@ unsigned long flash_init(void)
                }
 
                /* Monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+               (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[i]);
 #ifdef CONFIG_ENV_IS_IN_FLASH
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
index d211c710b2320ff99c7bf8e2dbb4c9b1b1480022..8bcfbb197ec3527c5262e84ea1321da68a6dd610 100644 (file)
@@ -49,9 +49,9 @@ tlbtab:
         * routine.
         */
 
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CFG_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X)
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X)
+       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
index 4d1d093219eb1972f1712ba733bdd8a06fae0c28..fe4540849da7e844a1a22fc9676aacedb9e92eea 100644 (file)
@@ -42,7 +42,7 @@ void fpga_init (void);
 int board_early_init_f (void)
 {
        unsigned long mfr;
-       unsigned char *fpga_base = (unsigned char *) CFG_FPGA_BASE;
+       unsigned char *fpga_base = (unsigned char *) CONFIG_SYS_FPGA_BASE;
        unsigned char switch_status;
        unsigned long cs0_base;
        unsigned long cs0_size;
@@ -315,7 +315,7 @@ int pci_pre_init(struct pci_controller * hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*--------------------------------------------------------------------------+
@@ -330,7 +330,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
         * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
 
@@ -339,12 +339,12 @@ void pci_target_init(struct pci_controller * hose )
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY );
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 
 /*************************************************************************
index 95ce1fd3512f51ef18ae806c52b8381e7e3caff1..400852ab7c92e46b51229e5bfe14e7f20ffb835f 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 /* Board specific FPGA stuff ... */
-#define FPGA_REG0                       (CFG_FPGA_BASE + 0x00)
+#define FPGA_REG0                       (CONFIG_SYS_FPGA_BASE + 0x00)
 #define   FPGA_REG0_SSCG_MASK             0x80
 #define   FPGA_REG0_SSCG_DISABLE          0x00
 #define   FPGA_REG0_SSCG_ENABLE           0x80
@@ -48,7 +48,7 @@
 #define   FPGA_REG0_ONBOARD_FLASH_ENABLE  0x00
 #define   FPGA_REG0_ONBOARD_FLASH_DISABLE 0x02
 #define   FPGA_REG0_FLASH                 0x01
-#define FPGA_REG1                       (CFG_FPGA_BASE + 0x01)
+#define FPGA_REG1                       (CONFIG_SYS_FPGA_BASE + 0x01)
 #define   FPGA_REG1_9772_FSELFBX_MASK     0x80
 #define   FPGA_REG1_9772_FSELFBX_6        0x00
 #define   FPGA_REG1_9772_FSELFBX_10       0x80
@@ -71,7 +71,7 @@
 #define   FPGA_REG1_SOURCE_SSDIV1         0x05
 #define   FPGA_REG1_SOURCE_SSDIV2         0x06
 #define   FPGA_REG1_SOURCE_SSDIV4         0x07
-#define FPGA_REG2                       (CFG_FPGA_BASE + 0x02)
+#define FPGA_REG2                       (CONFIG_SYS_FPGA_BASE + 0x02)
 #define   FPGA_REG2_TC0                   0x80
 #define   FPGA_REG2_TC1                   0x40
 #define   FPGA_REG2_TC2                   0x20
@@ -82,7 +82,7 @@
 #define   FPGA_REG2_EXT_INTFACE_DISABLE   0x04
 #define   FPGA_REG2_SMII_RESET_DISABLE    0x02   /*Use on Ocotea pass 3 boards*/
 #define   FPGA_REG2_DEFAULT_UART1_N       0x01
-#define FPGA_REG3                       (CFG_FPGA_BASE + 0x03)
+#define FPGA_REG3                       (CONFIG_SYS_FPGA_BASE + 0x03)
 #define   FPGA_REG3_GIGABIT_RESET_DISABLE 0x80   /*Use on Ocotea pass 1 boards*/
 #define   FPGA_REG3_ENET_MASK1            0x70   /*Use on Ocotea pass 1 boards*/
 #define   FPGA_REG3_ENET_MASK2            0xF0   /*Use on Ocotea pass 2 boards*/
 #define   FPGA_REG3_STAT_LED4_DISAB       0x00
 #define   FPGA_REG3_STAT_LED2_DISAB       0x00
 #define   FPGA_REG3_STAT_LED1_DISAB       0x00
-#define FPGA_REG4                       (CFG_FPGA_BASE + 0x04)
+#define FPGA_REG4                       (CONFIG_SYS_FPGA_BASE + 0x04)
 #define   FPGA_REG4_GPHY_MODE10           0x80
 #define   FPGA_REG4_GPHY_MODE100          0x40
 #define   FPGA_REG4_GPHY_MODE1000         0x20
index f33336d93c89367c41bfa1e3c6db1b0ad79e9164..381f2b23d0a867ffc01d7c668dc41734a1fc0226 100644 (file)
@@ -38,5 +38,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index fcffada30554a228db6c448659e63232a8e43cde..363d7932aca1357af25d8ad6f67f5942c45fd60b 100644 (file)
@@ -54,24 +54,24 @@ tlbtab:
         */
 
        /* Although 512 KB, map 256k at a time */
-       tlbentry(CFG_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CFG_ISRAM_BASE + 0x40000, SZ_256K, 0x00040000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE + 0x40000, SZ_256K, 0x00040000, 4, AC_R|AC_W|AC_X|SA_I)
 
-       tlbentry(CFG_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
 
        /*
         * Peripheral base
         */
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_16K, 0xEF600000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_16K, 0xEF600000, 4, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCIE0_XCFGBASE,SZ_16M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_XCFGBASE,SZ_16M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_XCFGBASE,SZ_16M, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE,SZ_16M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE,SZ_16M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE,SZ_16M, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCIE0_MEMBASE, SZ_256M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_MEMBASE, SZ_256M, 0x00000000, 0xE, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_MEMBASE, SZ_256M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_MEMBASE, SZ_256M, 0x00000000, 0xE, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCIE0_REGBASE, SZ_64K, 0x30000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_REGBASE, SZ_64K, 0x30010000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_REGBASE, SZ_64K, 0x30020000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_REGBASE, SZ_64K, 0x30000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_REGBASE, SZ_64K, 0x30010000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_REGBASE, SZ_64K, 0x30020000, 0xC, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
index 6b9043a0586bf3512709e83fbe9f1f88e0a20623..3402f84a3e62565f217544318f9c26e93950a8bc 100644 (file)
@@ -46,7 +46,7 @@
 #define NAND_COMPATIBLE        0x01
 #define NOR_COMPATIBLE  0x02
 
-/* check with Stefan on CFG_I2C_EEPROM_ADDR */
+/* check with Stefan on CONFIG_SYS_I2C_EEPROM_ADDR */
 #define I2C_EEPROM_ADDR 0x52
 
 static char *config_labels[] = {
@@ -207,7 +207,7 @@ static int do_bootstrap(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
        /* check CPLD register +5 for PCI 66MHz flag */
-       if ((in_8((void *)(CFG_BCSR_BASE + 5)) & CFG_BCSR5_PCI66EN) == 0)
+       if ((in_8((void *)(CONFIG_SYS_BCSR_BASE + 5)) & CONFIG_SYS_BCSR5_PCI66EN) == 0)
                /*
                 * PLB-to-PCI divisor = 3 for 33MHz sync PCI
                 * instead of 2 for 66MHz systems
@@ -216,7 +216,7 @@ static int do_bootstrap(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (i2c_write(I2C_EEPROM_ADDR, 0, 1, buf, 16) != 0)
                printf("Error writing to EEPROM at address 0x%x\n", I2C_EEPROM_ADDR);
-       udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+       udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 
        printf("Done\n");
        printf("Please power-cycle the board for the changes to take effect\n");
index 5e04ee4e369464e11aae6177dc88155a53d4313b..6c748c9143fad00d7eac5160b64c7183961f141a 100644 (file)
@@ -41,5 +41,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 46a37c6a20175acc01c1273ef528f7147d18b06c..bd346bf04b87698b9b408fa15b339a2c9b8ba961 100644 (file)
@@ -45,36 +45,36 @@ tlbtab:
 
        /* TLB-entry for DDR SDRAM (Up to 2GB) */
 #ifdef CONFIG_4xx_DCACHE
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G)
 #else
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
 #endif
 
        /* TLB-entry for EBC */
-       tlbentry( CFG_BCSR_BASE, SZ_256M, CFG_BCSR_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_BCSR_BASE, SZ_256M, CONFIG_SYS_BCSR_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* BOOT_CS (FLASH) must be forth. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry( CFG_BOOT_BASE_ADDR, SZ_256M, CFG_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
 #else
-       tlbentry( CFG_NAND_BOOT_SPL_SRC, SZ_4K, CFG_NAND_BOOT_SPL_SRC, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 1, AC_R|AC_W|AC_X|SA_G )
 #endif
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CFG_INIT_RAM_ADDR, SZ_64K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, CFG_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
 
        /* TLB-entry for NAND */
-       tlbentry( CFG_NAND_ADDR, SZ_1K, CFG_NAND_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND_ADDR, SZ_1K, CONFIG_SYS_NAND_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB-entry for Internal Registers & OCM */
        tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I )
@@ -95,8 +95,8 @@ tlbtab:
         * For NAND booting the first TLB has to be reconfigured to full size
         * and with caching disabled after running from RAM!
         */
-#define TLB00  TLB0(CFG_BOOT_BASE_ADDR, SZ_256M)
-#define TLB01  TLB1(CFG_BOOT_BASE_ADDR, 1)
+#define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
+#define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 1)
 #define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
 
        .globl  reconfig_tlb0
index 77e6c7b4d1297d7185461d22b3d6d1a18082fcbe..64eb06308d059710a622554967b7ef80c23e0f4e 100644 (file)
@@ -113,5 +113,5 @@ phys_size_t initdram (int board_type)
         */
        set_mcsr(get_mcsr());
 
-       return (CFG_MBYTES_SDRAM << 20);
+       return (CONFIG_SYS_MBYTES_SDRAM << 20);
 }
index e439fb90e2dc6df612678c926683ce315f88df8b..d6668e29b9643cff08f5099b8f653b11aab8d992 100644 (file)
@@ -33,7 +33,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 ulong flash_get_size (ulong base, int banknum);
 
@@ -74,16 +74,16 @@ int board_early_init_f(void)
        mtdcr(uic2sr, 0xffffffff);      /* clear all */
 
        /* 50MHz tmrclk */
-       out_8((u8 *) CFG_BCSR_BASE + 0x04, 0x00);
+       out_8((u8 *) CONFIG_SYS_BCSR_BASE + 0x04, 0x00);
 
        /* clear write protects */
-       out_8((u8 *) CFG_BCSR_BASE + 0x07, 0x00);
+       out_8((u8 *) CONFIG_SYS_BCSR_BASE + 0x07, 0x00);
 
        /* enable Ethernet */
-       out_8((u8 *) CFG_BCSR_BASE + 0x08, 0x00);
+       out_8((u8 *) CONFIG_SYS_BCSR_BASE + 0x08, 0x00);
 
        /* enable USB device */
-       out_8((u8 *) CFG_BCSR_BASE + 0x09, 0x20);
+       out_8((u8 *) CONFIG_SYS_BCSR_BASE + 0x09, 0x20);
 
        /* select Ethernet (and optionally IIC1) pins */
        mfsdr(SDR0_PFC1, sdr0_pfc1);
@@ -113,7 +113,7 @@ int board_early_init_f(void)
                SDR0_CUST0_NDFC_ENABLE          |
                SDR0_CUST0_NDFC_BW_8_BIT        |
                SDR0_CUST0_NDFC_ARE_MASK        |
-               (0x80000000 >> (28 + CFG_NAND_CS));
+               (0x80000000 >> (28 + CONFIG_SYS_NAND_CS));
        mtsdr(SDR0_CUST0, sdr0_cust0);
 
        return 0;
@@ -160,7 +160,7 @@ int misc_init_r(void)
 #ifdef CONFIG_ENV_IS_IN_FLASH
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
@@ -320,8 +320,8 @@ int checkboard(void)
        printf("Board: Rainier - AMCC PPC440GRx Evaluation Board");
 #endif
 
-       rev = in_8((void *)(CFG_BCSR_BASE + 0));
-       val = in_8((void *)(CFG_BCSR_BASE + 5)) & CFG_BCSR5_PCI66EN;
+       rev = in_8((void *)(CONFIG_SYS_BCSR_BASE + 0));
+       val = in_8((void *)(CONFIG_SYS_BCSR_BASE + 5)) & CONFIG_SYS_BCSR5_PCI66EN;
        printf(", Rev. %X, PCI=%d MHz", rev, val ? 66 : 33);
 
        if (s != NULL) {
@@ -407,7 +407,7 @@ int pci_pre_init(struct pci_controller *hose)
  * inbound map (PIM). But the bootstrap config choices are limited and
  * may not be sufficient for a given board.
  */
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*
@@ -423,16 +423,16 @@ void pci_target_init(struct pci_controller *hose)
         */
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute */
                                                /* - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE); /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE); /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xE0000001);       /* 512M + No prefetching, */
                                                /* and enable region */
 
        out32r(PCIX0_PMM1MA, 0x00000000);       /* PMM0 Mask/Attribute */
                                                /* - disabled b4 setting */
-       out32r(PCIX0_PMM1LA, CFG_PCI_MEMBASE2); /* PMM0 Local Address */
-       out32r(PCIX0_PMM1PCILA, CFG_PCI_MEMBASE2); /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM1LA, CONFIG_SYS_PCI_MEMBASE2); /* PMM0 Local Address */
+       out32r(PCIX0_PMM1PCILA, CONFIG_SYS_PCI_MEMBASE2); /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM1MA, 0xE0000001);       /* 512M + No prefetching, */
                                                /* and enable region */
@@ -448,8 +448,8 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's subsystem id/vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
-       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_ID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_ID);
 
        /* Configure command register as bus master */
        pci_write_config_word(0, PCI_COMMAND, PCI_COMMAND_MASTER);
@@ -463,9 +463,9 @@ void pci_target_init(struct pci_controller *hose)
        pci_write_config_dword(0, PCI_BRDGOPT2, 0x00000101);
 
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -480,7 +480,7 @@ void pci_master_init(struct pci_controller *hose)
                              temp_short | PCI_COMMAND_MASTER |
                              PCI_COMMAND_MEMORY);
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 /*
  * is_pci_host
index b20fb1c0a282c5499f6a8d580991a6acb7a943f6..3cfec834e2dbcd31261163b96a69446f325a435d 100644 (file)
@@ -137,7 +137,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index ae92bb25b331be444cd607c6a0c44b097fc49973..110cbe5e9d0259a3c56b68f9450ffbdd16221386 100644 (file)
@@ -32,7 +32,7 @@
 #include <ppc4xx.h>
 #include <asm/processor.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 #undef DEBUG
 #ifdef DEBUG
@@ -41,9 +41,9 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
 #define DEBUGF(x...)
 #endif                         /* DEBUG */
 
-#define CFG_FLASH_CHAR_SIZE unsigned char
-#define CFG_FLASH_CHAR_ADDR0 (0x0aaa)
-#define CFG_FLASH_CHAR_ADDR1 (0x0555)
+#define CONFIG_SYS_FLASH_CHAR_SIZE unsigned char
+#define CONFIG_SYS_FLASH_CHAR_ADDR0 (0x0aaa)
+#define CONFIG_SYS_FLASH_CHAR_ADDR1 (0x0555)
 /*-----------------------------------------------------------------------
  * Functions
  */
@@ -65,7 +65,7 @@ unsigned long flash_init(void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -84,8 +84,8 @@ unsigned long flash_init(void)
                flash_get_offsets(FLASH_BASE0_PRELIM, &flash_info[0]);
                /* Monitor protection ON by default */
                (void)flash_protect(FLAG_PROTECT_SET,
-                                   CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+                                   CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[0]);
 #ifdef CONFIG_ENV_IS_IN_FLASH
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
@@ -299,32 +299,32 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 #endif
 {
        short i;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00900090;
        udelay(1000);
 
        value = addr2[0];
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_WORD_SIZE) FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_WORD_SIZE) SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_WORD_SIZE) STM_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) STM_MANUFACT:
                info->flash_id = FLASH_MAN_STM;
                break;
        default:
@@ -338,67 +338,67 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        DEBUGF("\nFLASH DEVICEID: %x\n", value);
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000; /* => 512 ko */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_F040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_F040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000; /* => 512 ko */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) STM_ID_M29W040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) STM_ID_M29W040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000; /* => 512 ko */
                break;
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_F016D:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_F016D:
                info->flash_id += FLASH_AMD016;
                info->sector_count = 32;
                info->size = 0x00200000;
                break;          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV033C:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV033C:
                info->flash_id += FLASH_AMDLV033C;
                info->sector_count = 64;
                info->size = 0x00400000;
                break;          /* => 4 MB              */
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV400T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV400T:
                info->flash_id += FLASH_AM400T;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV400B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV400B:
                info->flash_id += FLASH_AM400B;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV800T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV800T:
                info->flash_id += FLASH_AM800T;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV800B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV800B:
                info->flash_id += FLASH_AM800B;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV160T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV160T:
                info->flash_id += FLASH_AM160T;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE) AMD_ID_LV160B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV160B:
                info->flash_id += FLASH_AM160B;
                info->sector_count = 35;
                info->size = 0x00200000;
@@ -445,14 +445,14 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                /* For AMD29033C flash we need to resend the command of *
                 * reading flash protection for upper 8 Mb of flash     */
                if (i == 32) {
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90909090;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90909090;
                }
 
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST)
@@ -462,7 +462,7 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
 
        return info->size;
 }
@@ -470,14 +470,14 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 static int wait_for_DQ7_1(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-           (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+           (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-              (CFG_FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+              (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -509,8 +509,8 @@ static int flash_erase_1(flash_info_t * info, int s_first, int s_last)
 int flash_erase(flash_info_t * info, int s_first, int s_last)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        int i;
 
@@ -550,24 +550,24 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00500050;    /* block erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00500050;     /* block erase */
                                for (i = 0; i < 50; i++)
                                        udelay(1000);   /* wait 1 ms */
                        } else {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00300030;    /* sector erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00300030;     /* sector erase */
                        }
                        l_sect = sect;
                        /*
@@ -589,8 +589,8 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;      /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -691,9 +691,9 @@ static int write_word_1(flash_info_t * info, ulong dest, ulong data)
 static int write_word(flash_info_t * info, ulong dest, ulong data)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i;
 
@@ -702,15 +702,15 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
                return 2;
        }
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                int flag;
 
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00A000A0;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -720,10 +720,10 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                      (data2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                      (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return 1;
                        }
                }
@@ -740,32 +740,32 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
 static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
 {
        short i;
-       CFG_FLASH_CHAR_SIZE value;
+       CONFIG_SYS_FLASH_CHAR_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-       addr2[CFG_FLASH_CHAR_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-       addr2[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90909090;
+       addr2[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+       addr2[CONFIG_SYS_FLASH_CHAR_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+       addr2[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90909090;
        udelay(1000);
 
-       value = (CFG_FLASH_CHAR_SIZE)addr2[0];
+       value = (CONFIG_SYS_FLASH_CHAR_SIZE)addr2[0];
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-       case (CFG_FLASH_CHAR_SIZE) AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_CHAR_SIZE) FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_CHAR_SIZE) SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_CHAR_SIZE) STM_MANUFACT:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) STM_MANUFACT:
                info->flash_id = FLASH_MAN_STM;
                break;
        default:
@@ -775,83 +775,83 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
                return 0;               /* no or unknown flash */
        }
 
-       value = (CFG_FLASH_CHAR_SIZE)addr2[2];  /* device ID */
+       value = (CONFIG_SYS_FLASH_CHAR_SIZE)addr2[2];   /* device ID */
        DEBUGF("\nFLASH DEVICEID: %x\n", value);
 
        switch (value) {
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV040B:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000; /* => 512 ko */
                break;
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_F040B:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_F040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000; /* => 512 ko */
                break;
 
-       case (CFG_FLASH_CHAR_SIZE) STM_ID_M29W040B:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) STM_ID_M29W040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000; /* => 512 ko */
                break;
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_F016D:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_F016D:
                info->flash_id += FLASH_AMD016;
                info->sector_count = 32;
                info->size = 0x00200000;
                break;                  /* => 2 MB */
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV033C:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV033C:
                info->flash_id += FLASH_AMDLV033C;
                info->sector_count = 64;
                info->size = 0x00400000;
                break;                  /* => 4 MB */
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV400T:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV400T:
                info->flash_id += FLASH_AM400T;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                  /* => 0.5 MB */
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV400B:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV400B:
                info->flash_id += FLASH_AM400B;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                  /* => 0.5 MB */
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV800T:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV800T:
                info->flash_id += FLASH_AM800T;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                  /* => 1 MB */
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV800B:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV800B:
                info->flash_id += FLASH_AM800B;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                  /* => 1 MB */
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV160T:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV160T:
                info->flash_id += FLASH_AM160T;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                  /* => 2 MB */
 
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_LV160B:
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_LV160B:
                info->flash_id += FLASH_AM160B;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                  /* => 2 MB */
-       case (CFG_FLASH_CHAR_SIZE) AMD_ID_MIRROR:
-               if ((CFG_FLASH_CHAR_SIZE)addr2[0x1c] == (CFG_FLASH_CHAR_SIZE)AMD_ID_LV128U_2
-                               && (CFG_FLASH_CHAR_SIZE)addr2[0x1e] ==  (CFG_FLASH_CHAR_SIZE)AMD_ID_LV128U_3) {
+       case (CONFIG_SYS_FLASH_CHAR_SIZE) AMD_ID_MIRROR:
+               if ((CONFIG_SYS_FLASH_CHAR_SIZE)addr2[0x1c] == (CONFIG_SYS_FLASH_CHAR_SIZE)AMD_ID_LV128U_2
+                               && (CONFIG_SYS_FLASH_CHAR_SIZE)addr2[0x1e] ==  (CONFIG_SYS_FLASH_CHAR_SIZE)AMD_ID_LV128U_3) {
                        info->flash_id += FLASH_AMLV128U;
                        info->sector_count = 256;
                        info->size = 0x01000000;
-               } else if ((CFG_FLASH_CHAR_SIZE)addr2[0x1c] == (CFG_FLASH_CHAR_SIZE)AMD_ID_GL128N_2
-                               && (CFG_FLASH_CHAR_SIZE)addr2[0x1e] ==  (CFG_FLASH_CHAR_SIZE)AMD_ID_GL128N_3 ) {
+               } else if ((CONFIG_SYS_FLASH_CHAR_SIZE)addr2[0x1c] == (CONFIG_SYS_FLASH_CHAR_SIZE)AMD_ID_GL128N_2
+                               && (CONFIG_SYS_FLASH_CHAR_SIZE)addr2[0x1e] ==  (CONFIG_SYS_FLASH_CHAR_SIZE)AMD_ID_GL128N_3 ) {
                        info->flash_id += FLASH_S29GL128N;
                        info->sector_count = 128;
                        info->size = 0x01000000;
@@ -904,38 +904,38 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                /* For AMD29033C flash we need to resend the command of *
                 * reading flash protection for upper 8 Mb of flash     */
                if (i == 32) {
-                       addr2[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                       addr2[CFG_FLASH_CHAR_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                       addr2[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90909090;
+                       addr2[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                       addr2[CONFIG_SYS_FLASH_CHAR_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                       addr2[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90909090;
                }
 
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST)
                        info->protect[i] = 0;
                else
-                       info->protect[i] = (CFG_FLASH_CHAR_SIZE)addr2[4] & 1;
+                       info->protect[i] = (CONFIG_SYS_FLASH_CHAR_SIZE)addr2[4] & 1;
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0xF0F0F0F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xF0F0F0F0;
        return info->size;
 }
 
 static int wait_for_DQ7_2(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-           (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+           (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while (((CFG_FLASH_WORD_SIZE)addr[0] & (CFG_FLASH_WORD_SIZE) 0x80808080) !=
-              (CFG_FLASH_WORD_SIZE) 0x80808080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while (((CONFIG_SYS_FLASH_WORD_SIZE)addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x80808080) !=
+              (CONFIG_SYS_FLASH_WORD_SIZE) 0x80808080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -950,8 +950,8 @@ static int wait_for_DQ7_2(flash_info_t * info, int sect)
 
 static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        int i;
 
@@ -991,24 +991,24 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                               addr[CFG_FLASH_CHAR_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                               addr[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x80808080;
-                               addr[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                               addr[CFG_FLASH_CHAR_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x50505050;    /* block erase */
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x80808080;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x50505050;     /* block erase */
                                for (i = 0; i < 50; i++)
                                        udelay(1000);   /* wait 1 ms */
                        } else {
-                               addr[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                               addr[CFG_FLASH_CHAR_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                               addr[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x80808080;
-                               addr[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                               addr[CFG_FLASH_CHAR_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x30303030;    /* sector erase */
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x80808080;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                               addr[CONFIG_SYS_FLASH_CHAR_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x30303030;     /* sector erase */
                        }
                        l_sect = sect;
                        /*
@@ -1030,8 +1030,8 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0xF0F0F0F0; /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xF0F0F0F0; /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -1039,9 +1039,9 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
 
 static int write_word_2(flash_info_t * info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i;
 
@@ -1050,15 +1050,15 @@ static int write_word_2(flash_info_t * info, ulong dest, ulong data)
                return 2;
        }
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                int flag;
 
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-               addr2[CFG_FLASH_CHAR_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-               addr2[CFG_FLASH_CHAR_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xA0A0A0A0;
+               addr2[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+               addr2[CONFIG_SYS_FLASH_CHAR_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+               addr2[CONFIG_SYS_FLASH_CHAR_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xA0A0A0A0;
 
                dest2[i] = data2[i];
 
@@ -1068,10 +1068,10 @@ static int write_word_2(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x80808080) !=
-                      (data2[i] & (CFG_FLASH_WORD_SIZE) 0x80808080)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x80808080) !=
+                      (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x80808080)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return 1;
                        }
                }
index ee0939aa3cdb737dc95ca185874700e2764241cd..6e9330f684f78c9bbd5032d9aa75a4ec791e535c 100644 (file)
@@ -48,8 +48,8 @@ int board_early_init_f(void)
        mtdcr(uicsr, 0xFFFFFFFF);       /* clear all ints */
        mtdcr(uicvcr, 0x00000001);      /* set vect base=0,INT0 highest priority */
 
-       mtebc(pb3ap, CFG_EBC_PB3AP);    /* memory bank 3 (CPLD_LCM) initialization */
-       mtebc(pb3cr, CFG_EBC_PB3CR);
+       mtebc(pb3ap, CONFIG_SYS_EBC_PB3AP);     /* memory bank 3 (CPLD_LCM) initialization */
+       mtebc(pb3cr, CONFIG_SYS_EBC_PB3CR);
 
        /*
         * Configure CPC0_PCI to enable PerWE as output
index 55ad535c8cba788f72fd7104c37e1ff54d38877b..52bad56bfd68a3096d7091f36e937bba1ed4964a 100644 (file)
@@ -101,7 +101,7 @@ static uchar buf_66[] =
 static int update_boot_eeprom(cmd_tbl_t* cmdtp, int flag, int argc, char *argv[])
 {
        ulong len = 0x20;
-       uchar chip = CFG_I2C_EEPROM_ADDR;
+       uchar chip = CONFIG_SYS_I2C_EEPROM_ADDR;
        uchar *pbuf;
        uchar base;
        int i;
index 4eefff21dd7180a8628bf8ceb5d9e9a241a0e936..ee5eb1ba6c72afd60e50dace20c040ea9638ed60 100644 (file)
@@ -40,5 +40,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 8db043ba181618079f6ee6fadefecadedf6172de..748ec0ab5224bd58b95e7d152cde2a7480fdc669 100644 (file)
@@ -89,9 +89,9 @@
 tlbtab:
        tlbtab_start
        tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CFG_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X )
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X )
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
        tlbtab_end
index 8d2dce35ca40946bb9289585551843ea4f1abf51..624ae40f627d8d603c5f11b327d3b2582e1f3f5a 100644 (file)
@@ -31,9 +31,9 @@
 
 #define LCD_DELAY_NORMAL_US    100
 #define LCD_DELAY_NORMAL_MS    2
-#define LCD_CMD_ADDR           ((volatile char *)(CFG_EBC2_LCM_BASE))
-#define LCD_DATA_ADDR          ((volatile char *)(CFG_EBC2_LCM_BASE+1))
-#define LCD_BLK_CTRL           ((volatile char *)(CFG_EBC1_FPGA_BASE+0x2))
+#define LCD_CMD_ADDR           ((volatile char *)(CONFIG_SYS_EBC2_LCM_BASE))
+#define LCD_DATA_ADDR          ((volatile char *)(CONFIG_SYS_EBC2_LCM_BASE+1))
+#define LCD_BLK_CTRL           ((volatile char *)(CONFIG_SYS_EBC1_FPGA_BASE+0x2))
 
 #define mdelay(t)      ({unsigned long msec=(t); while (msec--) { udelay(1000);}})
 
@@ -359,7 +359,7 @@ void set_phy_normal_mode(void)
 static int do_led_test_off(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        volatile unsigned int *GpioOr =
-               (volatile unsigned int *)(CFG_PERIPHERAL_BASE + 0x700);
+               (volatile unsigned int *)(CONFIG_SYS_PERIPHERAL_BASE + 0x700);
        *GpioOr |= 0x00300000;
        return 0;
 }
@@ -367,7 +367,7 @@ static int do_led_test_off(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 static int do_led_test_on(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        volatile unsigned int *GpioOr =
-               (volatile unsigned int *)(CFG_PERIPHERAL_BASE + 0x700);
+               (volatile unsigned int *)(CONFIG_SYS_PERIPHERAL_BASE + 0x700);
        *GpioOr &= ~0x00300000;
        return 0;
 }
index cd432cb98bfa0b71b6b0ca910c31ad5a48abb6d4..28bdab5dbb9d8462d20f1e94ede36d135ebd6d6e 100644 (file)
@@ -29,7 +29,7 @@
 #include <ppc4xx_enet.h>
 #include <netdev.h>
 
-#ifdef CFG_INIT_SHOW_RESET_REG
+#ifdef CONFIG_SYS_INIT_SHOW_RESET_REG
 void show_reset_reg(void);
 #endif
 
@@ -63,7 +63,7 @@ int board_early_init_f (void)
              EBC_BXAP_TH_ENCODE(3) | EBC_BXAP_RE_DISABLED |
              EBC_BXAP_BEM_WRITEONLY |
              EBC_BXAP_PEN_DISABLED);
-       mtebc(pb0cr, EBC_BXCR_BAS_ENCODE(CFG_FLASH_BASE) |
+       mtebc(pb0cr, EBC_BXCR_BAS_ENCODE(CONFIG_SYS_FLASH_BASE) |
              EBC_BXCR_BS_64MB | EBC_BXCR_BU_RW|EBC_BXCR_BW_32BIT);
 
        /*-------------------------------------------------------------------------+
@@ -173,9 +173,9 @@ int board_early_init_f (void)
        mtsdr(sdr_pfc1,reg);
 
        /* Set GPIO 10 and 11 as output */
-       GpioOdr = (volatile unsigned int*)(CFG_PERIPHERAL_BASE+0x718);
-       GpioTcr = (volatile unsigned int*)(CFG_PERIPHERAL_BASE+0x704);
-       GpioOr  = (volatile unsigned int*)(CFG_PERIPHERAL_BASE+0x700);
+       GpioOdr = (volatile unsigned int*)(CONFIG_SYS_PERIPHERAL_BASE+0x718);
+       GpioTcr = (volatile unsigned int*)(CONFIG_SYS_PERIPHERAL_BASE+0x704);
+       GpioOr  = (volatile unsigned int*)(CONFIG_SYS_PERIPHERAL_BASE+0x700);
 
        *GpioOdr &= ~(0x00300000);
        *GpioTcr |= 0x00300000;
@@ -202,7 +202,7 @@ int checkboard (void)
        }
        putc ('\n');
 
-#ifdef CFG_INIT_SHOW_RESET_REG
+#ifdef CONFIG_SYS_INIT_SHOW_RESET_REG
        show_reset_reg();
 #endif
 
@@ -248,7 +248,7 @@ int pci_pre_init(struct pci_controller * hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*--------------------------------------------------------------------------+
@@ -263,7 +263,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
         * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
 
@@ -272,12 +272,12 @@ void pci_target_init(struct pci_controller * hose )
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY );
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  is_pci_host
index ed2c196dcf54f7de3cce7eeb941257a973cd455f..96b918be0bac490e31759e3ad2305060d904d358 100644 (file)
@@ -51,7 +51,7 @@ const uchar bootstrap_buf[16] = {
 static int update_boot_eeprom(void)
 {
        ulong len = 0x10;
-       uchar chip = CFG_BOOTSTRAP_IIC_ADDR;
+       uchar chip = CONFIG_SYS_BOOTSTRAP_IIC_ADDR;
        uchar *pbuf = (uchar *)bootstrap_buf;
        int ii, jj;
 
index fe6ca6c5c5b7ce588997e8355256f2b8924e115e..d363564d5501234060655186b793c8ebcfd19bd5 100644 (file)
@@ -58,7 +58,7 @@ unsigned long flash_init(void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -73,14 +73,14 @@ unsigned long flash_init(void)
        }
 
        /* Only one bank */
-       if (CFG_MAX_FLASH_BANKS == 1) {
+       if (CONFIG_SYS_MAX_FLASH_BANKS == 1) {
                /* Setup offsets */
                flash_get_offsets(FLASH_BASE0_PRELIM, &flash_info[0]);
 
                /* Monitor protection ON by default */
                (void)flash_protect(FLAG_PROTECT_SET,
-                                   CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+                                   CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[0]);
 #ifdef CONFIG_ENV_IS_IN_FLASH
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
index 4ab0ea0084f7a5544960511e52d60473495e5d88..df5466e2c05cb28d32c4e7234af48b08ac7e25b5 100644 (file)
@@ -40,5 +40,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 425ad0868f8950438b63e71de6db0f64f1649432..f9382365ca6f9afb68531a1d4210e540bf58bf08 100644 (file)
@@ -91,22 +91,22 @@ tlbtab:
      * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
      * speed up boot process. It is patched after relocation to enable SA_I
      */
-    tlbentry( CFG_BOOT_BASE_ADDR, SZ_256M, CFG_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
+    tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
 
     /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-    tlbentry( CFG_INIT_RAM_ADDR, SZ_64K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+    tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
 
-    tlbentry( CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-    tlbentry( CFG_PCI_BASE, SZ_256M, CFG_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CFG_NVRAM_BASE_ADDR, SZ_256M, CFG_NVRAM_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I )
+    tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_NVRAM_BASE_ADDR, SZ_256M, CONFIG_SYS_NVRAM_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_W|SA_I )
 
     /* PCI */
-    tlbentry( CFG_PCI_MEMBASE, SZ_256M, CFG_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I )
 
     /* USB 2.0 Device */
-    tlbentry( CFG_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_R|AC_W|SA_G|SA_I )
 
     tlbtab_end
index 05be40acdf99dfd5fb60362fccbc862719c7b2a1..3982896cb3282abad57b95beed10c01b5aee33ef 100644 (file)
@@ -31,7 +31,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips   */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 int board_early_init_f(void)
 {
@@ -107,18 +107,18 @@ int board_early_init_f(void)
        mtsdr(sdr_pfc1, 0x00048000);    /* Pin function: UART0 has 4 pins */
 
        /*clear tmrclk divisor */
-       *(unsigned char *)(CFG_BCSR_BASE | 0x04) = 0x00;
+       *(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x04) = 0x00;
 
        /*enable ethernet */
-       *(unsigned char *)(CFG_BCSR_BASE | 0x08) = 0xf0;
+       *(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x08) = 0xf0;
 
 #ifdef CONFIG_440EP
        /*enable usb 1.1 fs device and remove usb 2.0 reset */
-       *(unsigned char *)(CFG_BCSR_BASE | 0x09) = 0x00;
+       *(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x09) = 0x00;
 #endif
 
        /*get rid of flash write protect */
-       *(unsigned char *)(CFG_BCSR_BASE | 0x07) = 0x00;
+       *(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x07) = 0x00;
 
        return 0;
 }
@@ -167,7 +167,7 @@ int misc_init_r (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
@@ -186,8 +186,8 @@ int checkboard(void)
        printf("Board: Yellowstone - AMCC PPC440GR Evaluation Board");
 #endif
 
-       rev = in_8((void *)(CFG_BCSR_BASE + 0));
-       val = in_8((void *)(CFG_BCSR_BASE + 5)) & CFG_BCSR5_PCI66EN;
+       rev = in_8((void *)(CONFIG_SYS_BCSR_BASE + 0));
+       val = in_8((void *)(CONFIG_SYS_BCSR_BASE + 5)) & CONFIG_SYS_BCSR5_PCI66EN;
        printf(", Rev. %X, PCI=%d MHz", rev, val ? 66 : 33);
 
        if (s != NULL) {
@@ -329,7 +329,7 @@ phys_size_t initdram(int board)
        sdram_tr1_set(0x08000000, &tr1_bank2);
        mtsdram(mem_tr1, (((tr1_bank1+tr1_bank2)/2) | 0x80800800));
 
-       return CFG_SDRAM_BANKS * (CFG_KBYTES_SDRAM * 1024);     /* return bytes */
+       return CONFIG_SYS_SDRAM_BANKS * (CONFIG_SYS_KBYTES_SDRAM * 1024);       /* return bytes */
 }
 
 /*************************************************************************
@@ -395,7 +395,7 @@ int pci_pre_init(struct pci_controller *hose)
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -409,14 +409,14 @@ void pci_target_init(struct pci_controller *hose)
          | Make this region non-prefetchable.
          +--------------------------------------------------------------------------*/
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE);       /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE);        /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
        out32r(PCIX0_PMM1MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM1LA, CFG_PCI_MEMBASE2); /* PMM0 Local Address */
-       out32r(PCIX0_PMM1PCILA, CFG_PCI_MEMBASE2);      /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM1LA, CONFIG_SYS_PCI_MEMBASE2);  /* PMM0 Local Address */
+       out32r(PCIX0_PMM1PCILA, CONFIG_SYS_PCI_MEMBASE2);       /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM1MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
@@ -431,8 +431,8 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's subsystem id/vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
-       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_ID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_ID);
 
        /* Configure command register as bus master */
        pci_write_config_word(0, PCI_COMMAND, PCI_COMMAND_MASTER);
@@ -446,13 +446,13 @@ void pci_target_init(struct pci_controller *hose)
        pci_write_config_dword(0, PCI_BRDGOPT2, 0x00000101);
 
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  pci_master_init
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -467,7 +467,7 @@ void pci_master_init(struct pci_controller *hose)
                              temp_short | PCI_COMMAND_MASTER |
                              PCI_COMMAND_MEMORY);
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 /*************************************************************************
  *  is_pci_host
@@ -508,5 +508,5 @@ void hw_watchdog_reset(void)
 void board_reset(void)
 {
        /* give reset to BCSR */
-       *(unsigned char *)(CFG_BCSR_BASE | 0x06) = 0x09;
+       *(unsigned char *)(CONFIG_SYS_BCSR_BASE | 0x06) = 0x09;
 }
index ff454ebf10a12fbf9acdd365520f4c7dac88cee6..3ce3cc171827b8f90b713cf4c9ad388ecec25e2e 100644 (file)
@@ -38,5 +38,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index c4053465feddae09b94a9207a9bc10b1a67b545f..eda49eb1746b81bce157c7efb9cf035f3bc3ac32 100644 (file)
 #define DEBUGF(x...)
 #endif                         /* DEBUG */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*
  * Mark big flash bank (16 bit instead of 8 bit access) in address with bit 0
  */
-static unsigned long flash_addr_table[][CFG_MAX_FLASH_BANKS] = {
+static unsigned long flash_addr_table[][CONFIG_SYS_MAX_FLASH_BANKS] = {
        {0xfff00000, 0xfff80000, 0xe7c00001}, /* 0:boot from small flash */
        {0x00000000, 0x00000000, 0x00000000}, /* 1:boot from pci 66      */
        {0x00000000, 0x00000000, 0x00000000}, /* 2:boot from nand flash  */
@@ -67,7 +67,7 @@ static unsigned long flash_addr_table[][CFG_MAX_FLASH_BANKS] = {
  * Functions
  */
 static int write_word(flash_info_t * info, ulong dest, ulong data);
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static int write_word_1(flash_info_t * info, ulong dest, ulong data);
 static int write_word_2(flash_info_t * info, ulong dest, ulong data);
 static int flash_erase_1(flash_info_t * info, int s_first, int s_last);
@@ -198,7 +198,7 @@ void flash_print_info(flash_info_t * info)
 /*
  * The following code cannot be run from FLASH!
  */
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 {
        /* bit 0 used for big flash marking */
@@ -214,32 +214,32 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 #endif
 {
        short i;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00900090;
        udelay(1000);
 
        value = addr2[0];
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                        info->flash_id = FLASH_MAN_AMD;
                        break;
-               case (CFG_FLASH_WORD_SIZE) FUJ_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) FUJ_MANUFACT:
                        info->flash_id = FLASH_MAN_FUJ;
                        break;
-               case (CFG_FLASH_WORD_SIZE) SST_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) SST_MANUFACT:
                        info->flash_id = FLASH_MAN_SST;
                        break;
-               case (CFG_FLASH_WORD_SIZE) STM_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) STM_MANUFACT:
                        info->flash_id = FLASH_MAN_STM;
                        break;
                default:
@@ -253,67 +253,67 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        DEBUGF("\nFLASH DEVICEID: %x\n", value);
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV040B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV040B:
                        info->flash_id += FLASH_AM040;
                        info->sector_count = 8;
                        info->size = 0x0080000; /* => 512 ko */
                        break;
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_F040B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_F040B:
                        info->flash_id += FLASH_AM040;
                        info->sector_count = 8;
                        info->size = 0x0080000; /* => 512 ko */
                        break;
 
-               case (CFG_FLASH_WORD_SIZE) STM_ID_M29W040B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) STM_ID_M29W040B:
                        info->flash_id += FLASH_AM040;
                        info->sector_count = 8;
                        info->size = 0x0080000; /* => 512 ko */
                        break;
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_F016D:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_F016D:
                        info->flash_id += FLASH_AMD016;
                        info->sector_count = 32;
                        info->size = 0x00200000;
                        break;          /* => 2 MB              */
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV033C:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV033C:
                        info->flash_id += FLASH_AMDLV033C;
                        info->sector_count = 64;
                        info->size = 0x00400000;
                        break;          /* => 4 MB              */
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV400T:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV400T:
                        info->flash_id += FLASH_AM400T;
                        info->sector_count = 11;
                        info->size = 0x00080000;
                        break;          /* => 0.5 MB            */
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV400B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV400B:
                        info->flash_id += FLASH_AM400B;
                        info->sector_count = 11;
                        info->size = 0x00080000;
                        break;          /* => 0.5 MB            */
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV800T:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV800T:
                        info->flash_id += FLASH_AM800T;
                        info->sector_count = 19;
                        info->size = 0x00100000;
                        break;          /* => 1 MB              */
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV800B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV800B:
                        info->flash_id += FLASH_AM800B;
                        info->sector_count = 19;
                        info->size = 0x00100000;
                        break;          /* => 1 MB              */
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV160T:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV160T:
                        info->flash_id += FLASH_AM160T;
                        info->sector_count = 35;
                        info->size = 0x00200000;
                        break;          /* => 2 MB              */
 
-               case (CFG_FLASH_WORD_SIZE) AMD_ID_LV160B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_ID_LV160B:
                        info->flash_id += FLASH_AM160B;
                        info->sector_count = 35;
                        info->size = 0x00200000;
@@ -357,14 +357,14 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                /* For AMD29033C flash we need to resend the command of *
                 * reading flash protection for upper 8 Mb of flash     */
                if (i == 32) {
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90909090;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90909090;
                }
 
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST)
@@ -374,7 +374,7 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
 
        return (info->size);
 }
@@ -382,14 +382,14 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 static int wait_for_DQ7_1(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-               (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+               (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                       (CFG_FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                       (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -402,7 +402,7 @@ static int wait_for_DQ7_1(flash_info_t * info, int sect)
        return 0;
 }
 
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 int flash_erase(flash_info_t * info, int s_first, int s_last)
 {
        if (((info->flash_id & FLASH_TYPEMASK) == FLASH_AM320B) ||
@@ -420,8 +420,8 @@ static int flash_erase_1(flash_info_t * info, int s_first, int s_last)
 int flash_erase(flash_info_t * info, int s_first, int s_last)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        int i;
 
@@ -457,24 +457,24 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00500050;    /* block erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00500050;     /* block erase */
                                for (i = 0; i < 50; i++)
                                        udelay(1000);   /* wait 1 ms */
                        } else {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00300030;    /* sector erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00300030;     /* sector erase */
                        }
                        l_sect = sect;
                        /*
@@ -496,8 +496,8 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;      /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -577,7 +577,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
  * 1 - write timeout
  * 2 - Flash not erased
  */
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static int write_word(flash_info_t * info, ulong dest, ulong data)
 {
        if (((info->flash_id & FLASH_TYPEMASK) == FLASH_AM320B) ||
@@ -595,9 +595,9 @@ static int write_word_1(flash_info_t * info, ulong dest, ulong data)
 static int write_word(flash_info_t * info, ulong dest, ulong data)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i, flag;
 
@@ -605,13 +605,13 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
        if ((*((vu_long *)dest) & data) != data)
                return (2);
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00A000A0;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -621,10 +621,10 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                               (data2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                               (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
        }
@@ -632,10 +632,10 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
        return (0);
 }
 
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 
-#undef  CFG_FLASH_WORD_SIZE
-#define CFG_FLASH_WORD_SIZE unsigned short
+#undef  CONFIG_SYS_FLASH_WORD_SIZE
+#define CONFIG_SYS_FLASH_WORD_SIZE unsigned short
 
 /*
  * The following code cannot be run from FLASH!
@@ -644,37 +644,37 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
 {
        short i;
        int n;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00900090;
        udelay(1000);
 
        value = addr2[0];
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                        info->flash_id = FLASH_MAN_AMD;
                        break;
-               case (CFG_FLASH_WORD_SIZE) FUJ_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) FUJ_MANUFACT:
                        info->flash_id = FLASH_MAN_FUJ;
                        break;
-               case (CFG_FLASH_WORD_SIZE) SST_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) SST_MANUFACT:
                        info->flash_id = FLASH_MAN_SST;
                        break;
-               case (CFG_FLASH_WORD_SIZE) STM_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) STM_MANUFACT:
                        info->flash_id = FLASH_MAN_STM;
                        break;
-               case (CFG_FLASH_WORD_SIZE) MX_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) MX_MANUFACT:
                        info->flash_id = FLASH_MAN_MX;
                        break;
                default:
@@ -688,22 +688,22 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
        DEBUGF("\nFLASH DEVICEID: %x\n", value);
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320T:
+               case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320T:
                        info->flash_id += FLASH_AM320T;
                        info->sector_count = 71;
                        info->size = 0x00400000;
                        break;  /* => 4 MB      */
-               case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320B:
                        info->flash_id += FLASH_AM320B;
                        info->sector_count = 71;
                        info->size = 0x00400000;
                        break;  /* => 4 MB      */
-               case (CFG_FLASH_WORD_SIZE)STM_ID_29W320DT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE)STM_ID_29W320DT:
                        info->flash_id += FLASH_STMW320DT;
                        info->sector_count = 67;
                        info->size = 0x00400000;
                        break;  /* => 4 MB      */
-               case (CFG_FLASH_WORD_SIZE)MX_ID_LV320T:
+               case (CONFIG_SYS_FLASH_WORD_SIZE)MX_ID_LV320T:
                        info->flash_id += FLASH_MXLV320T;
                        info->sector_count = 71;
                        info->size = 0x00400000;
@@ -782,14 +782,14 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                /* For AMD29033C flash we need to resend the command of *
                 * reading flash protection for upper 8 Mb of flash     */
                if (i == 32) {
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAAAAAAAA;
-                       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55555555;
-                       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90909090;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAAAAAAAA;
+                       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55555555;
+                       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90909090;
                }
 
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST)
@@ -799,7 +799,7 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
 
        return (info->size);
 }
@@ -807,14 +807,14 @@ static ulong flash_get_size_2(vu_long * addr, flash_info_t * info)
 static int wait_for_DQ7_2(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-               (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+               (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                       (CFG_FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                       (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -829,8 +829,8 @@ static int wait_for_DQ7_2(flash_info_t * info, int sect)
 
 static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        int i;
 
@@ -866,24 +866,24 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00500050;    /* block erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00500050;     /* block erase */
                                for (i = 0; i < 50; i++)
                                        udelay(1000);   /* wait 1 ms */
                        } else {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00300030;    /* sector erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00300030;     /* sector erase */
                        }
                        l_sect = sect;
                        /*
@@ -905,8 +905,8 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;      /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -914,9 +914,9 @@ static int flash_erase_2(flash_info_t * info, int s_first, int s_last)
 
 static int write_word_2(flash_info_t * info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i;
 
@@ -924,15 +924,15 @@ static int write_word_2(flash_info_t * info, ulong dest, ulong data)
        if ((*((vu_long *)dest) & data) != data)
                return (2);
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                int flag;
 
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00A000A0;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -942,17 +942,17 @@ static int write_word_2(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                               (data2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                               (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
        }
 
        return (0);
 }
-#endif /* CFG_FLASH_2ND_16BIT_DEV */
+#endif /* CONFIG_SYS_FLASH_2ND_16BIT_DEV */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -966,7 +966,7 @@ static int write_word(flash_info_t * info, ulong dest, ulong data);
 unsigned long flash_init(void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
        unsigned short index = 0;
        int i;
        unsigned long val;
@@ -1011,7 +1011,7 @@ unsigned long flash_init(void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -1034,8 +1034,8 @@ unsigned long flash_init(void)
                }
 
                /* Monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+               (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[i]);
 #if defined(CONFIG_ENV_IS_IN_FLASH)
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
index 67e8f8f3a2c53bc1c5432555b479c3fcb16f6c44..9308fdac2015d89d5a9da02500610c73f53496e1 100644 (file)
@@ -59,23 +59,23 @@ tlbtabA:
         * routine.
         */
 
-       tlbentry(CFG_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CFG_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_R|AC_W|SA_I)
-
-       tlbentry(CFG_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
-
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-
-       tlbentry(CFG_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_R|AC_W|SA_I)
+
+       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_BASE, SZ_16K, 0x20000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x40000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x80000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0xC0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x50000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x90000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0xD0000000, 0xC, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
 
 /**************************************************************************
@@ -102,20 +102,20 @@ tlbtabB:
         * routine.
         */
 
-       tlbentry(CFG_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
-       tlbentry(CFG_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_R|AC_W|SA_I)
+       tlbentry(CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x00000000, 4, AC_R|AC_W|AC_X|SA_I)
+       tlbentry(CONFIG_SYS_FPGA_BASE, SZ_1K, 0xE2000000, 4,AC_R|AC_W|SA_I)
 
-       tlbentry(CFG_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry(CFG_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_OPER_FLASH, SZ_16M, 0xE7000000, 4,AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PERIPHERAL_BASE, SZ_4K, 0xF0000000, 4, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x10000000, 0xC, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE_MEMBASE, SZ_256M, 0xB0000000, 0xD, AC_R|AC_W|SA_G|SA_I)
 
-       tlbentry(CFG_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_CFGBASE, SZ_16M, 0x00000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_CFGBASE, SZ_16M, 0x20000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_CFGBASE, SZ_16M, 0x40000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE0_XCFGBASE, SZ_1K, 0x10000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE1_XCFGBASE, SZ_1K, 0x30000000, 0xD, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCIE2_XCFGBASE, SZ_1K, 0x50000000, 0xD, AC_R|AC_W|SA_G|SA_I)
        tlbtab_end
index e0c12687d39d6daa9d051ca21d8d095a18622431..c8055689f70ef0f412312750df1c439e27079e4b 100644 (file)
@@ -626,7 +626,7 @@ int pci_pre_init(struct pci_controller * hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*-------------------------------------------------------------------+
@@ -641,7 +641,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440
         * strapping options to not support sizes such as 128/256 MB.
         *-------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
        out32r( PCIX0_BAR0, 0 );
@@ -649,12 +649,12 @@ void pci_target_init(struct pci_controller * hose )
        /*-------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *-------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY );
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 #if defined(CONFIG_PCI)
 /*************************************************************************
@@ -843,9 +843,9 @@ void pcie_setup_hoses(int busno)
 
                /* setup mem resource */
                pci_set_region(hose->regions + 0,
-                       CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                       CFG_PCIE_MEMBASE + i * CFG_PCIE_MEMSIZE,
-                       CFG_PCIE_MEMSIZE,
+                       CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                       CONFIG_SYS_PCIE_MEMBASE + i * CONFIG_SYS_PCIE_MEMSIZE,
+                       CONFIG_SYS_PCIE_MEMSIZE,
                        PCI_REGION_MEM);
                hose->region_count = 1;
                pci_register_hose(hose);
index 1a3b25218c52f6bfaec7074c83943f7125419fa1..1e742e5275489f5a7763449ecc690b4b62319ae9 100644 (file)
@@ -110,7 +110,7 @@ typedef union {
 
 #define NUM_ERASE_REGIONS 4
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -130,7 +130,7 @@ static int flash_write_cfiword (flash_info_t * info, ulong dest,
                                cfiword_t cword);
 static int flash_full_status_check (flash_info_t * info, ulong sector,
                                    ulong tout, char *prompt);
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 static int flash_write_cfibuffer (flash_info_t * info, ulong dest, uchar * cp,
                                  int len);
 #endif
@@ -270,7 +270,7 @@ unsigned long flash_init (void)
        flash_info[0].flash_id = FLASH_UNKNOWN;
        flash_info[0].portwidth = FLASH_CFI_16BIT;
        flash_info[0].chipwidth = FLASH_CFI_16BIT;
-       size += flash_info[0].size = flash_get_size (CFG_PROGFLASH_BASE, 0);
+       size += flash_info[0].size = flash_get_size (CONFIG_SYS_PROGFLASH_BASE, 0);
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank %d - Size = 0x%08lx = %ld MB\n", 1, flash_info[0].size, flash_info[0].size << 20);
        };
@@ -278,7 +278,7 @@ unsigned long flash_init (void)
        flash_info[1].flash_id = FLASH_UNKNOWN;
        flash_info[1].portwidth = FLASH_CFI_8BIT;
        flash_info[1].chipwidth = FLASH_CFI_16BIT;
-       size += flash_info[1].size = flash_get_size (CFG_CONFFLASH_BASE, 1);
+       size += flash_info[1].size = flash_get_size (CONFIG_SYS_CONFFLASH_BASE, 1);
        if (flash_info[1].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank %d - Size = 0x%08lx = %ld MB\n", 2, flash_info[1].size, flash_info[1].size << 20);
        };
@@ -398,7 +398,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                        return rc;
                wp = cp;
        }
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        while (cnt >= info->portwidth) {
                i = info->buffer_size > cnt ? cnt : info->buffer_size;
                if ((rc = flash_write_cfibuffer (info, wp, src, i)) != ERR_OK)
@@ -419,7 +419,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                wp += info->portwidth;
                cnt -= info->portwidth;
        }
-#endif /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
        if (cnt == 0) {
                return (0);
        }
@@ -824,7 +824,7 @@ static int flash_write_cfiword (flash_info_t * info, ulong dest,
        return flash_full_status_check (info, 0, info->write_tout, "write");
 }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /* loop through the sectors from the highest address
  * when the passed address is greater or equal to the sector address
@@ -900,4 +900,4 @@ static int flash_write_cfibuffer (flash_info_t * info, ulong dest, uchar * cp,
        flash_write_cmd (info, sector, 0, FLASH_CMD_CLEAR_STATUS);
        return retcode;
 }
-#endif /* CFG_USE_FLASH_BUFFER_WRITE */
+#endif /* CONFIG_SYS_USE_FLASH_BUFFER_WRITE */
index a6436ac5bb39b4bb60bafee01c3b37c81f328fac..a9b3fd89fb6d37da5596cd523130e3cf3d67363a 100644 (file)
@@ -267,10 +267,10 @@ static int psII_write_config_dword (struct pci_controller *hose,
 static struct pci_config_table ap1000_config_table[] = {
 #ifdef CONFIG_AP1000
        {PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
-        PCI_BUS (CFG_ETH_DEV_FN), PCI_DEV (CFG_ETH_DEV_FN),
-        PCI_FUNC (CFG_ETH_DEV_FN),
+        PCI_BUS (CONFIG_SYS_ETH_DEV_FN), PCI_DEV (CONFIG_SYS_ETH_DEV_FN),
+        PCI_FUNC (CONFIG_SYS_ETH_DEV_FN),
         pci_cfgfunc_config_device,
-        {CFG_ETH_IOBASE, CFG_ETH_MEMBASE,
+        {CONFIG_SYS_ETH_IOBASE, CONFIG_SYS_ETH_MEMBASE,
          PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER}},
 #endif
        {}
index 508e8804031b4ceedea8ca81f0d7c3b58847208c..87003be9c12450c21e9e4c0c6be8ee25d534fe1c 100644 (file)
 DECLARE_GLOBAL_DATA_PTR;
 
 const NS16550_t COM_PORTS[] =
-       { (NS16550_t) CFG_NS16550_COM1, (NS16550_t) CFG_NS16550_COM2 };
+       { (NS16550_t) CONFIG_SYS_NS16550_COM1, (NS16550_t) CONFIG_SYS_NS16550_COM2 };
 
-#undef CFG_DUART_CHAN
-#define CFG_DUART_CHAN gComPort
+#undef CONFIG_SYS_DUART_CHAN
+#define CONFIG_SYS_DUART_CHAN gComPort
 static int gComPort = 0;
 
 int serial_init (void)
 {
-       int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate;
 
        (void) NS16550_init (COM_PORTS[0], clock_divisor);
        gComPort = 0;
@@ -49,30 +49,30 @@ int serial_init (void)
 void serial_putc (const char c)
 {
        if (c == '\n') {
-               NS16550_putc (COM_PORTS[CFG_DUART_CHAN], '\r');
+               NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], '\r');
        }
 
-       NS16550_putc (COM_PORTS[CFG_DUART_CHAN], c);
+       NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], c);
 }
 
 int serial_getc (void)
 {
-       return NS16550_getc (COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_getc (COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 int serial_tstc (void)
 {
-       return NS16550_tstc (COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_tstc (COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 void serial_setbrg (void)
 {
-       int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate;
 
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        NS16550_reinit (COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        NS16550_reinit (COM_PORTS[1], clock_divisor);
 #endif
 }
index cfa02617a2d2b38748dd6363688785d869a9bd21..9f1112a4360941222415c2a6bc8293d7eab99808 100644 (file)
@@ -144,9 +144,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index 8efa7039512b29fa428a2b7bb95abaf9ad79a73e..8964eba7f862dfd5b0b352bda8d278ba3869a935 100644 (file)
@@ -245,7 +245,7 @@ void peripheral_enable(void)
        __raw_writel(v, CM_CLKSEL2_CORE);
        __raw_writel(0x1, CM_CLKSEL_WKUP);
 
-#ifdef CFG_NS16550
+#ifdef CONFIG_SYS_NS16550
        /* Enable UART1 clock */
        func_clks |= BIT21;
        if_clks |= BIT21;
index 8381feae086246457c5e13bedcb0d8ef9ecca873..64550f61e138e97b656f47cf55b53db20e900263 100644 (file)
@@ -51,7 +51,7 @@ _TEXT_BASE:
 .globl lowlevel_init
 lowlevel_init:
 
-#ifdef CFG_NOR_BOOT
+#ifdef CONFIG_SYS_NOR_BOOT
        /* Check running in SDRAM */
        mov     r0, pc, lsr #28
        cmp     r0, #8
index 0211c6ad2ef7bb92effa3b52549a1e7c036adde7..36bf6e922399d3a59b82296a0e15e38fa64a8196 100644 (file)
@@ -146,7 +146,7 @@ void gpmc_init(void)
        __raw_writel(0x10, GPMC_SYSCONFIG);     /* smart idle */
        __raw_writel(0x0, GPMC_IRQENABLE);      /* isr's sources masked */
        __raw_writel(tval, GPMC_TIMEOUT_CONTROL);       /* timeout disable */
-#ifdef CFG_NAND_BOOT
+#ifdef CONFIG_SYS_NAND_BOOT
        /* set nWP, disable limited addr */
        __raw_writel(0x001, GPMC_CONFIG);
 #else
@@ -164,7 +164,7 @@ void gpmc_init(void)
        __raw_writel(0x0, GPMC_CONFIG7_0);      /* disable current map */
        sdelay(1000);
 
-#ifdef CFG_NOR_BOOT
+#ifdef CONFIG_SYS_NOR_BOOT
        __raw_writel(APOLLON_24XX_GPMC_CONFIG1_3, GPMC_CONFIG1_0);
        __raw_writel(APOLLON_24XX_GPMC_CONFIG2_3, GPMC_CONFIG2_0);
        __raw_writel(APOLLON_24XX_GPMC_CONFIG3_3, GPMC_CONFIG3_0);
@@ -208,13 +208,13 @@ void gpmc_init(void)
        __raw_writel(APOLLON_24XX_GPMC_CONFIG4_0, GPMC_CONFIG4_2);
        __raw_writel(APOLLON_24XX_GPMC_CONFIG5_0, GPMC_CONFIG5_2);
        __raw_writel(APOLLON_24XX_GPMC_CONFIG6_0, GPMC_CONFIG6_2);
-#ifdef CFG_NOR_BOOT
+#ifdef CONFIG_SYS_NOR_BOOT
        __raw_writel(APOLLON_24XX_GPMC_CONFIG7_0, GPMC_CONFIG7_2);
 #else
        __raw_writel(APOLLON_24XX_GPMC_CONFIG7_2, GPMC_CONFIG7_2);
 #endif
 
-#ifndef CFG_NOR_BOOT
+#ifndef CONFIG_SYS_NOR_BOOT
        /* setup cs3 */
        __raw_writel(0, GPMC_CONFIG7_3);        /* disable any mapping */
        sdelay(1000);
index d4636f405111a18766ed2165f5224691fbfa63af..09c4ea43c8b066fbbe28b0e011f04d14cc2d4fd2 100644 (file)
 #endif /* endif PRCM_CONFIG_II */
 
 #ifdef PRCM_CONFIG_III         /* L3 at 133MHz */
-# ifdef CFG_NAND_BOOT
+# ifdef CONFIG_SYS_NAND_BOOT
 #  define APOLLON_24XX_GPMC_CONFIG1_0   0x0
 #  define APOLLON_24XX_GPMC_CONFIG2_0   0x00141400
 #  define APOLLON_24XX_GPMC_CONFIG3_0   0x00141400
 #  define APOLLON_24XX_GPMC_CONFIG4_0   0x10081008
 #  define APOLLON_24XX_GPMC_CONFIG5_0   0x01131F1F
 #  define APOLLON_24XX_GPMC_CONFIG6_0   0x000004c4
-# endif        /* endif CFG_NAND_BOOT */
+# endif        /* endif CONFIG_SYS_NAND_BOOT */
 # define APOLLON_24XX_GPMC_CONFIG7_0   (0x00000C40|(APOLLON_CS0_BASE >> 24))
 # define APOLLON_24XX_GPMC_CONFIG1_1   0x00011000
 # define APOLLON_24XX_GPMC_CONFIG2_1   0x001f1f01
 # define APOLLON_24XX_GPMC_CONFIG5_1   0x041f1F1F
 # define APOLLON_24XX_GPMC_CONFIG6_1   0x000004C4
 # define APOLLON_24XX_GPMC_CONFIG7_1   (0x00000F40|(APOLLON_CS1_BASE >> 24))
-#endif /* endif CFG_PRCM_III */
+#endif /* endif CONFIG_SYS_PRCM_III */
 
 #endif /* endif _APOLLON_OMAP24XX_MEM_H_ */
index 6ed88f401b610d6038bda3ba20e250e839c78ac0..cdbbfd01c2dda153cc66df59b91dc8b8a45dfa7f 100644 (file)
@@ -37,7 +37,7 @@
 #define FL_WORD(addr) (*(volatile unsigned short*)(addr))
 #define FLASH_TIMEOUT 20000000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  */
@@ -47,14 +47,14 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id = (FUJ_MANUFACT & FLASH_VENDMASK);
                /*(INTEL_ID_28F128J3 & FLASH_TYPEMASK); */
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -69,8 +69,8 @@ ulong flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
index b627c1c6bc6b07ea0a7b688fb6e5bcac84919c54..936c031c6750664de0c34320a5fb73c39d2b8666 100644 (file)
@@ -281,7 +281,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         */
        maxsize = (1 + (~orx | 0x7fff)) / 2;
 
-       /* Since CFG_SDRAM_BASE is always 0 (??), we assume that
+       /* Since CONFIG_SYS_SDRAM_BASE is always 0 (??), we assume that
         * we are configuring CS1 if base != 0
         */
        sdmr_ptr = &memctl->memc_psdmr;
@@ -306,7 +306,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -317,7 +317,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -331,7 +331,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 int misc_init_r(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
        upmconfig(UPMA, (uint *)rtc_table, sizeof(rtc_table) / sizeof(uint));
@@ -342,37 +342,37 @@ int misc_init_r(void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong size8, size9;
 #endif
        long psize;
 
        psize = 8 * 1024 * 1024;
 
-       memctl->memc_mptpr = CFG_MPTPR;
-       memctl->memc_psrt = CFG_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                         (uchar *) CFG_SDRAM_BASE);
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR2_9COL,
-                         (uchar *) CFG_SDRAM_BASE);
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                         (uchar *) CONFIG_SYS_SDRAM_BASE);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR2_9COL,
+                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
        if (size8 < size9) {
                psize = size9;
                printf ("(60x:9COL) ");
        } else {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:8COL) ");
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -382,7 +382,7 @@ phys_size_t initdram (int board_type)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-       doc_probe (CFG_DOC_BASE);
+       doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
 
index eee7a60e3f8bf7f415d8808cfa1d1dff4c600351..dd854e7e4c3c564c6bf81921691558d3cf40a292 100644 (file)
@@ -25,7 +25,7 @@
 # ATC boards
 #
 
-# This should be equal to the CFG_FLASH_BASE define in config_atc.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in config_atc.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index 7835e8f45672469a4f2d579a94cd5ac813a48d24..fd76723e898530e4f16c7db94fec3eed9a8d00b7 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /* NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it
  *        has nothing to do with the flash chip being 8-bit or 16-bit.
@@ -67,11 +67,11 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
 #if 0
                ulong flashbase = (i == 0) ? PHYS_FLASH_1 : PHYS_FLASH_2;
 #else
-               ulong flashbase = CFG_FLASH_BASE;
+               ulong flashbase = CONFIG_SYS_FLASH_BASE;
 #endif
 
                memset(&flash_info[i], 0, sizeof(flash_info_t));
@@ -87,12 +87,12 @@ unsigned long flash_init (void)
                size += flash_info[i].size;
        }
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
-                     flash_get_info(CFG_MONITOR_BASE));
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -164,13 +164,13 @@ static flash_info_t *flash_get_info(ulong base)
        int i;
        flash_info_t * info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->start[0] <= base && base < info->start[0] + info->size)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 
 /*-----------------------------------------------------------------------
@@ -476,7 +476,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while ((*addr & (FPW)0x00800080) != (FPW)0x00800080) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
 
                                if (intel) {
@@ -490,14 +490,14 @@ int       flash_erase (flash_info_t *info, int s_first, int s_last)
                        }
 
                        /* show that we're waiting */
-                       if ((get_timer(last)) > CFG_HZ) {/* every second */
+                       if ((get_timer(last)) > CONFIG_SYS_HZ) {/* every second */
                                putc ('.');
                                last = get_timer(0);
                        }
                }
 
                /* show that we're waiting */
-               if ((get_timer(last)) > CFG_HZ) {       /* every second */
+               if ((get_timer(last)) > CONFIG_SYS_HZ) {        /* every second */
                        putc ('.');
                        last = get_timer(0);
                }
@@ -601,7 +601,7 @@ static int write_word_amd (flash_info_t *info, FPWV *dest, FPW data)
 
        /* data polling for D7 */
        while (res == 0 && (*dest & (FPW)0x00800080) != (data & (FPW)0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW)0x00F000F0;        /* reset bank */
                        res = 1;
                }
@@ -647,7 +647,7 @@ static int write_word_intel (flash_info_t *info, FPWV *dest, FPW data)
        start = get_timer (0);
 
        while (res == 0 && (*dest & (FPW)0x00800080) != (FPW)0x00800080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW)0x00B000B0;        /* Suspend program      */
                        res = 1;
                }
index e112eca85d72a12fe5839612569d039665a97fdc..473bb10af774a9fee7a949f036700bf8a66b22cf 100644 (file)
@@ -526,8 +526,8 @@ int i82365_init (void)
        mem.map = 0;
        mem.flags = MAP_ATTRIB | MAP_ACTIVE;
        mem.speed = 300;
-       mem.sys_start = CFG_PCMCIA_MEM_ADDR;
-       mem.sys_stop = CFG_PCMCIA_MEM_ADDR + CFG_PCMCIA_MEM_SIZE - 1;
+       mem.sys_start = CONFIG_SYS_PCMCIA_MEM_ADDR;
+       mem.sys_stop = CONFIG_SYS_PCMCIA_MEM_ADDR + CONFIG_SYS_PCMCIA_MEM_SIZE - 1;
        mem.card_start = 0;
        i365_set_mem_map (&socket, &mem);
 
@@ -613,8 +613,8 @@ static void i82365_dump_regions (pci_dev_t dev)
 {
        u_int tmp[2];
        u_int *mem = (void *) socket.cb_phys;
-       u_char *cis = (void *) CFG_PCMCIA_MEM_ADDR;
-       u_char *ide = (void *) (CFG_ATA_BASE_ADDR + CFG_ATA_REG_OFFSET);
+       u_char *cis = (void *) CONFIG_SYS_PCMCIA_MEM_ADDR;
+       u_char *ide = (void *) (CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_REG_OFFSET);
 
        pci_read_config_dword (dev, 0x00, tmp + 0);
        pci_read_config_dword (dev, 0x80, tmp + 1);
index 787d64d80b0dc188522db8ace7b2e5d8eb45564b..544c932f2673a85f023e6b53f4026118670648f2 100644 (file)
@@ -147,9 +147,9 @@ static void at91cap9_nand_hw_init(void)
        at91_sys_write(AT91_SMC_MODE(3),
                       AT91_SMC_READMODE | AT91_SMC_WRITEMODE |
                       AT91_SMC_EXNWMODE_DISABLE |
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
                       AT91_SMC_DBW_16 |
-#else /* CFG_NAND_DBW_8 */
+#else /* CONFIG_SYS_NAND_DBW_8 */
                       AT91_SMC_DBW_8 |
 #endif
                       AT91_SMC_TDF_(1));
index 1dec5582f7a7c02b85771a08033a5e17ca5877b7..cc2263b023a3e383ed18c75f79dd13a7b869ef2d 100644 (file)
@@ -62,7 +62,7 @@ static void at91cap9adk_nand_hwcontrol(struct mtd_info *mtd,
 int board_nand_init(struct nand_chip *nand)
 {
        nand->ecc.mode = NAND_ECC_SOFT;
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
        nand->options = NAND_BUSWIDTH_16;
 #endif
        nand->cmd_ctrl = at91cap9adk_nand_hwcontrol;
index eb1a724ab1fb10f7b32152287069572a35fa5a1d..7e1d46f5309822d9189906abcedc49e9dadfb0e3 100644 (file)
 #include <asm/hardware.h>
 #include <dataflash.h>
 
-AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS];
+AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 
-struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {
-       {CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},      /* Logical adress, CS */
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},       /* Logical adress, CS */
 };
 
 /*define the area offsets*/
index ef8d9a8309cd2662db9ea9388c854c7363b69472..902c3c41c03d7f50a6224113cc3f19f204871ab1 100644 (file)
@@ -59,7 +59,7 @@ OrgDef OrgAT49BV6416[] =
        { 127, 64*1024 },       /* 127 * 64 kBytes sectors */
 };
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /* AT49BV1614A Codes */
 #define FLASH_CODE1            0xAA
@@ -77,8 +77,8 @@ flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
 #define CMD_UNLOCK_BYPASS      0x0020
 #define CMD_SECTOR_UNLOCK      0x0070
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00005555<<1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00002AAA<<1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00005555<<1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00002AAA<<1)))
 
 #define BIT_ERASE_DONE         0x0080
 #define BIT_RDY_MASK           0x0080
@@ -99,9 +99,9 @@ void flash_identification (flash_info_t * info)
        MEM_FLASH_ADDR2 = FLASH_CODE2;
        MEM_FLASH_ADDR1 = ID_IN_CODE;
 
-       manuf_code = *(volatile u16 *) CFG_FLASH_BASE;
-       device_code = *(volatile u16 *) (CFG_FLASH_BASE + 2);
-       add_device_code = *(volatile u16 *) (CFG_FLASH_BASE + (3 << 1));
+       manuf_code = *(volatile u16 *) CONFIG_SYS_FLASH_BASE;
+       device_code = *(volatile u16 *) (CONFIG_SYS_FLASH_BASE + 2);
+       add_device_code = *(volatile u16 *) (CONFIG_SYS_FLASH_BASE + (3 << 1));
 
        MEM_FLASH_ADDR1 = FLASH_CODE1;
        MEM_FLASH_ADDR2 = FLASH_CODE2;
@@ -157,7 +157,7 @@ ulong flash_init (void)
 
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_identification (&flash_info[i]);
@@ -216,8 +216,8 @@ ulong flash_init (void)
 
        /* Protect binary boot image */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + CFG_BOOT_SIZE - 1, &flash_info[0]);
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + CONFIG_SYS_BOOT_SIZE - 1, &flash_info[0]);
 
        /* Protect environment variables */
        flash_protect (FLAG_PROTECT_SET,
@@ -226,8 +226,8 @@ ulong flash_init (void)
 
        /* Protect U-Boot gzipped image */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_U_BOOT_BASE,
-                      CFG_U_BOOT_BASE + CFG_U_BOOT_SIZE - 1, &flash_info[0]);
+                      CONFIG_SYS_U_BOOT_BASE,
+                      CONFIG_SYS_U_BOOT_BASE + CONFIG_SYS_U_BOOT_SIZE - 1, &flash_info[0]);
 
        return size;
 }
@@ -345,7 +345,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                result = *addr;
 
                                /* check timeout */
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip1 = TMO;
                                        break;
@@ -433,7 +433,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        chip1 = ERR | TMO;
                        break;
                }
index 975be1746477c1672fe04d07f48fdfb1d0f4792a..c739b116bf1ab210f97439ddce07a7a118f9ef40 100644 (file)
 #include <asm/hardware.h>
 #include <dataflash.h>
 
-AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS];
+AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 
-struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {
-       {CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},      /* Logical adress, CS */
-       {CFG_DATAFLASH_LOGIC_ADDR_CS3, 3}
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},       /* Logical adress, CS */
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3, 3}
 };
 
 /*define the area offsets*/
index 913e3fb34c13e9df45adf3e6412f793d0f9b53e2..372cfb22f380e2f12bdb15ad16e2d48e982489fb 100644 (file)
@@ -92,9 +92,9 @@ static void at91sam9260ek_nand_hw_init(void)
        at91_sys_write(AT91_SMC_MODE(3),
                       AT91_SMC_READMODE | AT91_SMC_WRITEMODE |
                       AT91_SMC_EXNWMODE_DISABLE |
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
                       AT91_SMC_DBW_16 |
-#else /* CFG_NAND_DBW_8 */
+#else /* CONFIG_SYS_NAND_DBW_8 */
                       AT91_SMC_DBW_8 |
 #endif
                       AT91_SMC_TDF_(2));
index 665e35c54b96b4894bb721bc69efa620f552026b..c5ac634aab8093d8acb8fce0fafde63394bb283c 100644 (file)
@@ -67,7 +67,7 @@ static int at91sam9260ek_nand_ready(struct mtd_info *mtd)
 int board_nand_init(struct nand_chip *nand)
 {
        nand->ecc.mode = NAND_ECC_SOFT;
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
        nand->options = NAND_BUSWIDTH_16;
 #endif
        nand->cmd_ctrl = at91sam9260ek_nand_hwcontrol;
index 557d6954f46929de84a267828abf06d008f469a4..2629c671868e9ea93d81845f61ea26ac47fbe14a 100644 (file)
 #include <asm/hardware.h>
 #include <dataflash.h>
 
-AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS];
+AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 
-struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {
-       {CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},      /* Logical adress, CS */
-       {CFG_DATAFLASH_LOGIC_ADDR_CS1, 1}
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},       /* Logical adress, CS */
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1, 1}
 };
 
 /*define the area offsets*/
index 647aab52566dfbc4bc7bb503abe20a65f2c54cc5..76f56d6ae75d531f9fc6a3d0f54632a9721c0847 100644 (file)
@@ -92,9 +92,9 @@ static void at91sam9261ek_nand_hw_init(void)
        at91_sys_write(AT91_SMC_MODE(3),
                       AT91_SMC_READMODE | AT91_SMC_WRITEMODE |
                       AT91_SMC_EXNWMODE_DISABLE |
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
                       AT91_SMC_DBW_16 |
-#else /* CFG_NAND_DBW_8 */
+#else /* CONFIG_SYS_NAND_DBW_8 */
                       AT91_SMC_DBW_8 |
 #endif
                       AT91_SMC_TDF_(2));
index fccb9d78def34449be0c8cdc74873672822af388..06395ee215c7949d8ea34cedd4946eec3c25d930 100644 (file)
@@ -67,7 +67,7 @@ static int at91sam9261ek_nand_ready(struct mtd_info *mtd)
 int board_nand_init(struct nand_chip *nand)
 {
        nand->ecc.mode = NAND_ECC_SOFT;
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
        nand->options = NAND_BUSWIDTH_16;
 #endif
        nand->cmd_ctrl = at91sam9261ek_nand_hwcontrol;
index 975be1746477c1672fe04d07f48fdfb1d0f4792a..c739b116bf1ab210f97439ddce07a7a118f9ef40 100644 (file)
 #include <asm/hardware.h>
 #include <dataflash.h>
 
-AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS];
+AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 
-struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {
-       {CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},      /* Logical adress, CS */
-       {CFG_DATAFLASH_LOGIC_ADDR_CS3, 3}
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},       /* Logical adress, CS */
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3, 3}
 };
 
 /*define the area offsets*/
index c7050745573b03b836c1d011bfda9f976d47e016..dd513b9e12f3c2271668ef88ddf939cea3c50c5a 100644 (file)
@@ -95,9 +95,9 @@ static void at91sam9263ek_nand_hw_init(void)
        at91_sys_write(AT91_SMC_MODE(3),
                       AT91_SMC_READMODE | AT91_SMC_WRITEMODE |
                       AT91_SMC_EXNWMODE_DISABLE |
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
                       AT91_SMC_DBW_16 |
-#else /* CFG_NAND_DBW_8 */
+#else /* CONFIG_SYS_NAND_DBW_8 */
                       AT91_SMC_DBW_8 |
 #endif
                       AT91_SMC_TDF_(2));
index 250ec7f3943c059211864cf12982df41772662ff..3c247f6e5f3276f6e7666e6595870961f9627052 100644 (file)
@@ -67,7 +67,7 @@ static int at91sam9263ek_nand_ready(struct mtd_info *mtd)
 int board_nand_init(struct nand_chip *nand)
 {
        nand->ecc.mode = NAND_ECC_SOFT;
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
        nand->options = NAND_BUSWIDTH_16;
 #endif
        nand->cmd_ctrl = at91sam9263ek_nand_hwcontrol;
index eb1a724ab1fb10f7b32152287069572a35fa5a1d..7e1d46f5309822d9189906abcedc49e9dadfb0e3 100644 (file)
 #include <asm/hardware.h>
 #include <dataflash.h>
 
-AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS];
+AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 
-struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {
-       {CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},      /* Logical adress, CS */
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},       /* Logical adress, CS */
 };
 
 /*define the area offsets*/
index 509e7c38e15c7cd9db46a3d335c1fab1a8a14655..7bf1f439b2ee158ef7eb5e05db4663f60f07ed61 100644 (file)
@@ -92,9 +92,9 @@ static void at91sam9rlek_nand_hw_init(void)
        at91_sys_write(AT91_SMC_MODE(3),
                       AT91_SMC_READMODE | AT91_SMC_WRITEMODE |
                       AT91_SMC_EXNWMODE_DISABLE |
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
                       AT91_SMC_DBW_16 |
-#else /* CFG_NAND_DBW_8 */
+#else /* CONFIG_SYS_NAND_DBW_8 */
                       AT91_SMC_DBW_8 |
 #endif
                       AT91_SMC_TDF_(2));
index eb342b842f211e41e9ae60b7ce11ca21f995617a..625f6ec9bc353e7ce9e46ea730b9b4dce53f5175 100644 (file)
@@ -67,7 +67,7 @@ static int at91sam9rlek_nand_ready(struct mtd_info *mtd)
 int board_nand_init(struct nand_chip *nand)
 {
        nand->ecc.mode = NAND_ECC_SOFT;
-#ifdef CFG_NAND_DBW_16
+#ifdef CONFIG_SYS_NAND_DBW_16
        nand->options = NAND_BUSWIDTH_16;
 #endif
        nand->cmd_ctrl = at91sam9rlek_nand_hwcontrol;
index eb1a724ab1fb10f7b32152287069572a35fa5a1d..7e1d46f5309822d9189906abcedc49e9dadfb0e3 100644 (file)
 #include <asm/hardware.h>
 #include <dataflash.h>
 
-AT91S_DATAFLASH_INFO dataflash_info[CFG_MAX_DATAFLASH_BANKS];
+AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 
-struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS] = {
-       {CFG_DATAFLASH_LOGIC_ADDR_CS0, 0},      /* Logical adress, CS */
+struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
+       {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0, 0},       /* Logical adress, CS */
 };
 
 /*define the area offsets*/
index e2bfd4aff27f79e322206b8d922bfe442497dbef..4d380f3faca2436f02d8eb7a35dbfb103664719b 100644 (file)
@@ -55,17 +55,17 @@ unsigned long flash_init(void)
        unsigned long addr;
        unsigned int i;
 
-       flash_info[0].size = CFG_FLASH_SIZE;
+       flash_info[0].size = CONFIG_SYS_FLASH_SIZE;
        flash_info[0].sector_count = 135;
 
-       flash_identify(uncached((void *)CFG_FLASH_BASE), &flash_info[0]);
+       flash_identify(uncached((void *)CONFIG_SYS_FLASH_BASE), &flash_info[0]);
 
        for (i = 0, addr = 0; i < 8; i++, addr += 0x2000)
                flash_info[0].start[i] = addr;
        for (; i < flash_info[0].sector_count; i++, addr += 0x10000)
                flash_info[0].start[i] = addr;
 
-       return CFG_FLASH_SIZE;
+       return CONFIG_SYS_FLASH_SIZE;
 }
 
 void flash_print_info(flash_info_t *info)
index 337cf31ad51b02cc0260795e5e4dbe7887c295e4..2ef19ce696467d0edff6dab1e5738a0e9b7b551b 100644 (file)
@@ -50,9 +50,9 @@ int board_early_init_f (void)
 
 int checkboard (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
 
        if ((uint)&gur->porpllsr != 0xe00e0000) {
                printf("immap size error %lx\n",(ulong)&gur->porpllsr);
@@ -73,15 +73,15 @@ int checkboard (void)
  ************************************************************************/
 long int fixed_sdram (void)
 {
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
-
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_0 = CFG_DDR_TIMING_0;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
+
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
     #if defined (CONFIG_DDR_ECC)
        ddr->err_disable = 0x0000000D;
        ddr->err_sbe = 0x00ff0000;
@@ -90,13 +90,13 @@ long int fixed_sdram (void)
        udelay(500);
     #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
     #else
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
     #endif
        asm("sync; isync; msync");
        udelay(500);
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
@@ -127,17 +127,17 @@ initdram(int board_type)
        return dram_size;
 }
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int
 testdram(void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("Testing DRAM from 0x%08x to 0x%08x\n",
-              CFG_MEMTEST_START,
-              CFG_MEMTEST_END);
+              CONFIG_SYS_MEMTEST_START,
+              CONFIG_SYS_MEMTEST_END);
 
        printf("DRAM test phase 1:\n");
        for (p = pstart; p < pend; p++) {
@@ -185,7 +185,7 @@ int first_free_busno=0;
 void
 pci_init_board(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
        uint devdisr = gur->devdisr;
        uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
@@ -210,7 +210,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE1
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_ep = (host_agent == 5);
@@ -228,32 +228,32 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE1_MEM_BASE,
-                              CFG_PCIE1_MEM_PHYS,
-                              CFG_PCIE1_MEM_SIZE,
+                              CONFIG_SYS_PCIE1_MEM_BASE,
+                              CONFIG_SYS_PCIE1_MEM_PHYS,
+                              CONFIG_SYS_PCIE1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE1_IO_BASE,
-                              CFG_PCIE1_IO_PHYS,
-                              CFG_PCIE1_IO_SIZE,
+                              CONFIG_SYS_PCIE1_IO_BASE,
+                              CONFIG_SYS_PCIE1_IO_PHYS,
+                              CONFIG_SYS_PCIE1_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
-#ifdef CFG_PCIE1_MEM_BASE2
+#ifdef CONFIG_SYS_PCIE1_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCIE1_MEM_BASE2,
-                              CFG_PCIE1_MEM_PHYS2,
-                              CFG_PCIE1_MEM_SIZE2,
+                              CONFIG_SYS_PCIE1_MEM_BASE2,
+                              CONFIG_SYS_PCIE1_MEM_PHYS2,
+                              CONFIG_SYS_PCIE1_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -278,7 +278,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCI1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
 
@@ -301,23 +301,23 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCI1_MEM_BASE,
-                              CFG_PCI1_MEM_PHYS,
-                              CFG_PCI1_MEM_SIZE,
+                              CONFIG_SYS_PCI1_MEM_BASE,
+                              CONFIG_SYS_PCI1_MEM_PHYS,
+                              CONFIG_SYS_PCI1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCI1_IO_BASE,
-                              CFG_PCI1_IO_PHYS,
-                              CFG_PCI1_IO_SIZE,
+                              CONFIG_SYS_PCI1_IO_BASE,
+                              CONFIG_SYS_PCI1_IO_PHYS,
+                              CONFIG_SYS_PCI1_IO_SIZE,
                               PCI_REGION_IO);
                hose->region_count = 3;
                hose->first_busno=first_free_busno;
@@ -337,27 +337,27 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCI2
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI2_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI2_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci2_hose;
 
        if (!(devdisr & MPC85xx_DEVDISR_PCI2)) {
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                pci_set_region(hose->regions + 1,
-                              CFG_PCI2_MEM_BASE,
-                              CFG_PCI2_MEM_PHYS,
-                              CFG_PCI2_MEM_SIZE,
+                              CONFIG_SYS_PCI2_MEM_BASE,
+                              CONFIG_SYS_PCI2_MEM_PHYS,
+                              CONFIG_SYS_PCI2_MEM_SIZE,
                               PCI_REGION_MEM);
 
                pci_set_region(hose->regions + 2,
-                              CFG_PCI2_IO_BASE,
-                              CFG_PCI2_IO_PHYS,
-                              CFG_PCI2_IO_SIZE,
+                              CONFIG_SYS_PCI2_IO_BASE,
+                              CONFIG_SYS_PCI2_IO_PHYS,
+                              CONFIG_SYS_PCI2_IO_SIZE,
                               PCI_REGION_IO);
                hose->region_count = 3;
                hose->first_busno=first_free_busno;
index b66fd7b29703e34a4b2e488474144cbcc1e22957..b70b0910d9eaaa86104d2875ec7011d3c469c7a9 100644 (file)
  */
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAWAR_SIZE_1M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
-       SET_LAW(CFG_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
-       SET_LAW(CFG_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAWAR_SIZE_1M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
        /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */
-       SET_LAW(CFG_LBC_CACHE_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LBC_CACHE_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 1ef4de41efbab706a3ec64821c26410062141de9..ef7942cb1bff470bf3932ce5d1905f7bd635b1c2 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -47,11 +47,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xf8000000   128M    FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE + 0x4000000, CFG_FLASH_BASE + 0x4000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE + 0x4000000, CONFIG_SYS_FLASH_BASE + 0x4000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_64M, 1),
 
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_64M, 1),
 
@@ -59,7 +59,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       1G      Non-cacheable, guarded
         * 0x80000000   1G      PCI1/PCIE  8,9,a,b
         */
-       SET_TLB_ENTRY(1, CFG_PCI_PHYS, CFG_PCI_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI_PHYS, CONFIG_SYS_PCI_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_1G, 1),
 
@@ -67,11 +67,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3, 4:    512M    Non-cacheable, guarded
         * 0xc0000000   1G      PCI2
         */
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS, CFG_PCI2_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS, CONFIG_SYS_PCI2_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS + 0x10000000, CFG_PCI2_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -82,7 +82,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe210_0000  1M      PCI2 IO
         * 0xe300_0000  1M      PCIe IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 };
index f8b2084c454cf9362bfcce9bfe8552ff9cad810e..ed3557219506741f229cbe00784ceabebfae3f7d 100644 (file)
@@ -90,7 +90,7 @@ phys_size_t initdram (int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size (CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size (CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg (MEAR1);
@@ -188,14 +188,14 @@ unsigned update_flash (unsigned char *buf)
 unsigned scan_flash (void)
 {
        char section[] =  "kernel";
-       int cfgFileLen  =  (CFG_FLASH_ERASE_SECTOR_LENGTH >> 1);
+       int cfgFileLen  =  (CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH >> 1);
        int sectionPtr  = 0;
        int foundItem   = 0; /* 0: None, 1: section found, 2: "=" found */
        int bufPtr;
        unsigned char *buf;
 
-       buf = (unsigned char*)(CFG_FLASH_RANGE_BASE + CFG_FLASH_RANGE_SIZE \
-                       - CFG_FLASH_ERASE_SECTOR_LENGTH);
+       buf = (unsigned char*)(CONFIG_SYS_FLASH_RANGE_BASE + CONFIG_SYS_FLASH_RANGE_SIZE \
+                       - CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH);
        for (bufPtr = 0; bufPtr < cfgFileLen; ++bufPtr) {
                if ((buf[bufPtr]==0xFF) && (*(int*)(buf+bufPtr)==0xFFFFFFFF)) {
                        return BOOT_DEFAULT;
@@ -236,14 +236,14 @@ TSBootInfo* find_boot_info (void)
 
        switch (bootimage) {
        case TRY_WORKING:
-               info->address = CFG_WORKING_KERNEL_ADDRESS;
+               info->address = CONFIG_SYS_WORKING_KERNEL_ADDRESS;
                break;
        case BOOT_WORKING :
-               info->address = CFG_WORKING_KERNEL_ADDRESS;
+               info->address = CONFIG_SYS_WORKING_KERNEL_ADDRESS;
                break;
        case BOOT_DEFAULT:
        default:
-               info->address= CFG_DEFAULT_KERNEL_ADDRESS;
+               info->address= CONFIG_SYS_DEFAULT_KERNEL_ADDRESS;
 
        }
        info->size = *((unsigned int *)(info->address ));
index bd924f2b18efac907391a6a7cd067c9f50b176ec..e1032609c537ad6b4b3ab19247ef2e5ab7cdfdaf 100644 (file)
 #include <asm/io.h>
 
 /* Defines for the barcohydra board */
-#ifndef CFG_FLASH_ERASE_SECTOR_LENGTH
-#define CFG_FLASH_ERASE_SECTOR_LENGTH (0x10000)
+#ifndef CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH
+#define CONFIG_SYS_FLASH_ERASE_SECTOR_LENGTH (0x10000)
 #endif
 
-#ifndef CFG_DEFAULT_KERNEL_ADDRESS
-#define CFG_DEFAULT_KERNEL_ADDRESS (CFG_FLASH_BASE + 0x30000)
+#ifndef CONFIG_SYS_DEFAULT_KERNEL_ADDRESS
+#define CONFIG_SYS_DEFAULT_KERNEL_ADDRESS (CONFIG_SYS_FLASH_BASE + 0x30000)
 #endif
 
-#ifndef CFG_WORKING_KERNEL_ADDRESS
-#define CFG_WORKING_KERNEL_ADDRESS (0xFFE00000)
+#ifndef CONFIG_SYS_WORKING_KERNEL_ADDRESS
+#define CONFIG_SYS_WORKING_KERNEL_ADDRESS (0xFFE00000)
 #endif
 
 
index 07dafb716f915b2fdb37401973f67223fb000004..531dcdf4ae22e5dd00c2c6f7718df775394927ea 100644 (file)
 
 #if defined(USE_DINK32)
   /* We are running from RAM, so do not clear the MCCR1_MEMGO bit! */
-  #define MCCR1VAL ((CFG_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CFG_ROMFAL << MCCR1_ROMFAL_SHIFT) | MCCR1_MEMGO)
+  #define MCCR1VAL ((CONFIG_SYS_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CONFIG_SYS_ROMFAL << MCCR1_ROMFAL_SHIFT) | MCCR1_MEMGO)
 #else
-  #define MCCR1VAL (CFG_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CFG_ROMFAL << MCCR1_ROMFAL_SHIFT)
+  #define MCCR1VAL (CONFIG_SYS_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CONFIG_SYS_ROMFAL << MCCR1_ROMFAL_SHIFT)
 #endif
 
        .text
 
        /* Values to program into memory controller registers */
 tbl:   .long   MCCR1, MCCR1VAL
-       .long   MCCR2, CFG_REFINT << MCCR2_REFINT_SHIFT
+       .long   MCCR2, CONFIG_SYS_REFINT << MCCR2_REFINT_SHIFT
        .long   MCCR3
-       .long   (((CFG_BSTOPRE & 0x000000f0) >> 4) << MCCR3_BSTOPRE2TO5_SHIFT) | \
-               (CFG_REFREC << MCCR3_REFREC_SHIFT) | \
-               (CFG_RDLAT  << MCCR3_RDLAT_SHIFT)
+       .long   (((CONFIG_SYS_BSTOPRE & 0x000000f0) >> 4) << MCCR3_BSTOPRE2TO5_SHIFT) | \
+               (CONFIG_SYS_REFREC << MCCR3_REFREC_SHIFT) | \
+               (CONFIG_SYS_RDLAT  << MCCR3_RDLAT_SHIFT)
        .long   MCCR4
-       .long   (CFG_PRETOACT << MCCR4_PRETOACT_SHIFT) | (CFG_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) | \
-               (CFG_REGISTERD_TYPE_BUFFER << 20) | \
-               (((CFG_BSTOPRE & 0x00000300) >> 8) << MCCR4_BSTOPRE0TO1_SHIFT ) | \
-               ((CFG_SDMODE_CAS_LAT << 4) | (CFG_SDMODE_WRAP << 3) | \
-               (CFG_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) | \
-               (CFG_ACTTORW << MCCR4_ACTTORW_SHIFT) | \
-               ((CFG_BSTOPRE & 0x0000000f) << MCCR4_BSTOPRE6TO9_SHIFT )
+       .long   (CONFIG_SYS_PRETOACT << MCCR4_PRETOACT_SHIFT) | (CONFIG_SYS_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) | \
+               (CONFIG_SYS_REGISTERD_TYPE_BUFFER << 20) | \
+               (((CONFIG_SYS_BSTOPRE & 0x00000300) >> 8) << MCCR4_BSTOPRE0TO1_SHIFT ) | \
+               ((CONFIG_SYS_SDMODE_CAS_LAT << 4) | (CONFIG_SYS_SDMODE_WRAP << 3) | \
+               (CONFIG_SYS_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) | \
+               (CONFIG_SYS_ACTTORW << MCCR4_ACTTORW_SHIFT) | \
+               ((CONFIG_SYS_BSTOPRE & 0x0000000f) << MCCR4_BSTOPRE6TO9_SHIFT )
        .long   MSAR1
-       .long   (((CFG_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMSAR1
-       .long   (((CFG_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MSAR2
-       .long   (((CFG_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMSAR2
-       .long   (((CFG_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MEAR1
-       .long   (((CFG_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMEAR1
-       .long   (((CFG_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MEAR2
-       .long   (((CFG_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMEAR2
-       .long   (((CFG_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   0
 
 
@@ -123,7 +123,7 @@ loop:       lwz     r1, 4(r5)
        /* set bank enable bits */
        lis     r0, MBER@h
        ori     r0, 0, MBER@l
-       li      r1, CFG_BANK_ENABLE
+       li      r1, CONFIG_SYS_BANK_ENABLE
        stwbrx  r0, 0, r3
        eieio
        stb     r1, 0(r4)
@@ -145,8 +145,8 @@ delay:      bdnz    delay
        eieio
 
        /* set up stack pointer */
-       lis     r1, CFG_INIT_SP_OFFSET@h
-       ori     r1, r1, CFG_INIT_SP_OFFSET@l
+       lis     r1, CONFIG_SYS_INIT_SP_OFFSET@h
+       ori     r1, r1, CONFIG_SYS_INIT_SP_OFFSET@l
 
        mtlr    r10
        blr
index 53fc58ca154bd6f3a1e025a5aec93b071a9fadb9..c9efb15e369a224347ca3b4a747c25a2afe20e2c 100644 (file)
 #define ROM_CS0_START  0xFF800000
 #define ROM_CS1_START  0xFF000000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR  (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR  (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE  CONFIG_ENV_SECT_SIZE
@@ -140,10 +140,10 @@ unsigned long flash_init(void)
 {
        unsigned long i;
        unsigned char j;
-       static const ulong flash_banks[] = CFG_FLASH_BANKS;
+       static const ulong flash_banks[] = CONFIG_SYS_FLASH_BANKS;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++){
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++){
                flash_info_t * const pflinfo = &flash_info[i];
                pflinfo->flash_id = FLASH_UNKNOWN;
                pflinfo->size = 0;
@@ -217,10 +217,10 @@ unsigned long flash_init(void)
                                break;
                }
                /* Protect monitor and environment sectors */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                flash_protect(FLAG_PROTECT_SET,
-                               CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE + monitor_flash_len - 1,
+                               CONFIG_SYS_MONITOR_BASE,
+                               CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                                &flash_info[0]);
 #endif
 
@@ -458,7 +458,7 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
        addr = (FLASH_WORD_SIZE *)(info->start[0] + (
                                (info->start[l_sect] - info->start[0]) << sh8b));
        while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -599,7 +599,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                start = get_timer (0);
                while ((dest2[i << sh8b] & (FLASH_WORD_SIZE)0x00800080) !=
                                (data2[i] & (FLASH_WORD_SIZE)0x00800080)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index 7ddf74c1c8dea99e5b680f0bfd01dc2b3cbf704c..6fb0096bede97a7e4f70885c7c09a86d2649b175 100644 (file)
@@ -53,7 +53,7 @@
 void ps2mult_early_init(void);
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -100,7 +100,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *           use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *           use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *           is something else than 0x00000000.
  */
 
@@ -109,7 +109,7 @@ phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -130,9 +130,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -158,9 +158,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS1 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x20000000);
+       test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x20000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x20000000);
+       test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x20000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize2 = test1;
@@ -181,7 +181,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -199,7 +199,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize;
 }
@@ -209,7 +209,7 @@ phys_size_t initdram (int board_type)
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup and enable SDRAM chip selects */
@@ -228,9 +228,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size */
        sdram_start(0);
-       test1 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -241,12 +241,12 @@ phys_size_t initdram (int board_type)
        /* set SDRAM end address according to size */
        *(vu_long *)MPC5XXX_SDRAM_STOP = ((dramsize - 1) >> 15);
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* Retrieve amount of SDRAM available */
        dramsize = ((*(vu_long *)MPC5XXX_SDRAM_STOP + 1) << 15);
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize;
 }
@@ -405,34 +405,34 @@ int last_stage_init (void)
         */
 
        /* save original SRAM content  */
-       save = *(volatile u16 *)CFG_CS2_START;
+       save = *(volatile u16 *)CONFIG_SYS_CS2_START;
        restore = 1;
 
        /* write test pattern to SRAM */
-       *(volatile u16 *)CFG_CS2_START = 0xA5A5;
+       *(volatile u16 *)CONFIG_SYS_CS2_START = 0xA5A5;
        __asm__ volatile ("sync");
        /*
         * Put a different pattern on the data lines: otherwise they may float
         * long enough to read back what we wrote.
         */
-       tmp = *(volatile u16 *)CFG_FLASH_BASE;
+       tmp = *(volatile u16 *)CONFIG_SYS_FLASH_BASE;
        if (tmp == 0xA5A5)
                puts ("!! possible error in SRAM detection\n");
 
-       if (*(volatile u16 *)CFG_CS2_START != 0xA5A5) {
+       if (*(volatile u16 *)CONFIG_SYS_CS2_START != 0xA5A5) {
                /* no SRAM at all, disable cs */
                *(vu_long *)MPC5XXX_ADDECR &= ~(1 << 18);
                *(vu_long *)MPC5XXX_CS2_START = 0x0000FFFF;
                *(vu_long *)MPC5XXX_CS2_STOP = 0x0000FFFF;
                restore = 0;
                __asm__ volatile ("sync");
-       } else if (*(volatile u16 *)(CFG_CS2_START + (1<<19)) == 0xA5A5) {
+       } else if (*(volatile u16 *)(CONFIG_SYS_CS2_START + (1<<19)) == 0xA5A5) {
                /* make sure that we access a mirrored address */
-               *(volatile u16 *)CFG_CS2_START = 0x1111;
+               *(volatile u16 *)CONFIG_SYS_CS2_START = 0x1111;
                __asm__ volatile ("sync");
-               if (*(volatile u16 *)(CFG_CS2_START + (1<<19)) == 0x1111) {
+               if (*(volatile u16 *)(CONFIG_SYS_CS2_START + (1<<19)) == 0x1111) {
                        /* SRAM size = 512 kByte */
-                       *(vu_long *)MPC5XXX_CS2_STOP = STOP_REG(CFG_CS2_START,
+                       *(vu_long *)MPC5XXX_CS2_STOP = STOP_REG(CONFIG_SYS_CS2_START,
                                                                0x80000);
                        __asm__ volatile ("sync");
                        puts ("SRAM:  512 kB\n");
@@ -444,7 +444,7 @@ int last_stage_init (void)
        }
        /* restore origianl SRAM content  */
        if (restore) {
-               *(volatile u16 *)CFG_CS2_START = save;
+               *(volatile u16 *)CONFIG_SYS_CS2_START = save;
                __asm__ volatile ("sync");
        }
 
@@ -453,21 +453,21 @@ int last_stage_init (void)
         */
 
        /* save origianl FB content  */
-       save = *(volatile u16 *)CFG_CS1_START;
+       save = *(volatile u16 *)CONFIG_SYS_CS1_START;
        restore = 1;
 
        /* write test pattern to FB memory */
-       *(volatile u16 *)CFG_CS1_START = 0xA5A5;
+       *(volatile u16 *)CONFIG_SYS_CS1_START = 0xA5A5;
        __asm__ volatile ("sync");
        /*
         * Put a different pattern on the data lines: otherwise they may float
         * long enough to read back what we wrote.
         */
-       tmp = *(volatile u16 *)CFG_FLASH_BASE;
+       tmp = *(volatile u16 *)CONFIG_SYS_FLASH_BASE;
        if (tmp == 0xA5A5)
                puts ("!! possible error in grafic controller detection\n");
 
-       if (*(volatile u16 *)CFG_CS1_START != 0xA5A5) {
+       if (*(volatile u16 *)CONFIG_SYS_CS1_START != 0xA5A5) {
                /* no grafic controller at all, disable cs */
                *(vu_long *)MPC5XXX_ADDECR &= ~(1 << 17);
                *(vu_long *)MPC5XXX_CS1_START = 0x0000FFFF;
@@ -479,7 +479,7 @@ int last_stage_init (void)
        }
        /* restore origianl FB content  */
        if (restore) {
-               *(volatile u16 *)CFG_CS1_START = save;
+               *(volatile u16 *)CONFIG_SYS_CS1_START = save;
                __asm__ volatile ("sync");
        }
 
@@ -607,21 +607,21 @@ unsigned int board_video_init (void)
         */
 
        /* save origianl FB content  */
-       save = *(volatile u16 *)CFG_CS1_START;
+       save = *(volatile u16 *)CONFIG_SYS_CS1_START;
        restore = 1;
 
        /* write test pattern to FB memory */
-       *(volatile u16 *)CFG_CS1_START = 0xA5A5;
+       *(volatile u16 *)CONFIG_SYS_CS1_START = 0xA5A5;
        __asm__ volatile ("sync");
        /*
         * Put a different pattern on the data lines: otherwise they may float
         * long enough to read back what we wrote.
         */
-       tmp = *(volatile u16 *)CFG_FLASH_BASE;
+       tmp = *(volatile u16 *)CONFIG_SYS_FLASH_BASE;
        if (tmp == 0xA5A5)
                puts ("!! possible error in grafic controller detection\n");
 
-       if (*(volatile u16 *)CFG_CS1_START != 0xA5A5) {
+       if (*(volatile u16 *)CONFIG_SYS_CS1_START != 0xA5A5) {
                /* no grafic controller found */
                restore = 0;
                ret = 0;
@@ -630,7 +630,7 @@ unsigned int board_video_init (void)
        }
 
        if (restore) {
-               *(volatile u16 *)CFG_CS1_START = save;
+               *(volatile u16 *)CONFIG_SYS_CS1_START = save;
                __asm__ volatile ("sync");
        }
        return ret;
index 48bc65de22313ea22f2ee5c80a8dbd45a9ad9640..ae5061f94b3c52fc6c0686de31f7a26ced6800ac 100644 (file)
@@ -52,9 +52,9 @@
 #define THERM_WRITE_TL         0x02
 #define THERM_WRITE_TH         0x01
 
-#define CFG_CPU                        2
-#define CFG_1SHOT              1
-#define CFG_STANDALONE         0
+#define CONFIG_SYS_CPU                 2
+#define CONFIG_SYS_1SHOT               1
+#define CONFIG_SYS_STANDALONE          0
 
 struct therm {
        int hi;
@@ -513,7 +513,7 @@ static int cmd_temp (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        therm.hi <<= 1;
                        therm.lo <<= 1;
                        ds1620_write_state (&therm);
-                       ds1620_out (THERM_WRITE_CONFIG, 8, CFG_STANDALONE);
+                       ds1620_out (THERM_WRITE_CONFIG, 8, CONFIG_SYS_STANDALONE);
                        return 0;
                }
        }
@@ -538,9 +538,9 @@ int can_init (void)
        static int init_done = 0;
        int i;
        struct mpc5xxx_mscan *can1 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0900);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0900);
        struct mpc5xxx_mscan *can2 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0980);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0980);
 
        /* GPIO configuration of the CAN pins is done in BC3450.h */
 
@@ -686,9 +686,9 @@ int do_can (char *argv[])
 {
        int i;
        struct mpc5xxx_mscan *can1 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0900);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0900);
        struct mpc5xxx_mscan *can2 =
-               (struct mpc5xxx_mscan *) (CFG_MBAR + 0x0980);
+               (struct mpc5xxx_mscan *) (CONFIG_SYS_MBAR + 0x0980);
 
        /* send a message on CAN1 */
        can1->cantbsel = 0x01;
index 583560adb32b987417120e576e09c3c9e3a28ca7..42c4b50555114bb7c67aee3ddfcd8242217c8802 100644 (file)
@@ -50,12 +50,12 @@ phys_size_t initdram(int board_type)
        printf("tRCD %d SCLK Cycles,tRP %d SCLK Cycles,tRAS %d SCLK Cycles"
               "tWR %d SCLK Cycles,CAS Latency %d SCLK cycles \n",
               3, 3, 6, 2, 3);
-       printf("SDRAM Begin: 0x%x\n", CFG_SDRAM_BASE);
-       printf("Bank size = %d MB\n", CFG_MAX_RAM_SIZE >> 20);
+       printf("SDRAM Begin: 0x%x\n", CONFIG_SYS_SDRAM_BASE);
+       printf("Bank size = %d MB\n", CONFIG_SYS_MAX_RAM_SIZE >> 20);
 #endif
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_MAX_RAM_SIZE;
-       return CFG_MAX_RAM_SIZE;
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
+       return CONFIG_SYS_MAX_RAM_SIZE;
 }
 
 #if defined(CONFIG_MISC_INIT_R)
@@ -63,10 +63,10 @@ phys_size_t initdram(int board_type)
 int misc_init_r(void)
 {
        /* Set direction bits for Video en/decoder reset as output      */
-       *(volatile unsigned char *)(CFG_FLASH1_BASE + PSD_PORTA_DIR) =
+       *(volatile unsigned char *)(CONFIG_SYS_FLASH1_BASE + PSD_PORTA_DIR) =
            PSDA_VDEC_RST | PSDA_VENC_RST;
        /* Deactivate Video en/decoder reset lines                      */
-       *(volatile unsigned char *)(CFG_FLASH1_BASE + PSD_PORTA_DOUT) =
+       *(volatile unsigned char *)(CONFIG_SYS_FLASH1_BASE + PSD_PORTA_DOUT) =
            PSDA_VDEC_RST | PSDA_VENC_RST;
 
        return 0;
index 4e043e072b745670117ea79014916b24833edb63..1a4aa5f2f706de1a72eeeef38035a06a5629b973 100644 (file)
 #define FLASH_TOT_SECT         40
 #define FLASH_SIZE             0x220000
 #define FLASH_MAN_ST           2
-#define CFG_FLASH0_BASE                0x20000000
+#define CONFIG_SYS_FLASH0_BASE         0x20000000
 #define RESET_VAL              0xF0
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 int get_codes(void);
 int poll_toggle_bit(long lOffset);
index cdf4dc69ba459f1a6ee8e0346b5aa95231eebe39..a861e16a3df40790d25009840bc239b9f3d888b6 100644 (file)
@@ -82,7 +82,7 @@ unsigned long flash_init(void)
 
        size_b0 = size_b1 = size_b2 = 0;
 #ifdef DEBUG
-       printf("Flash Memory Start 0x%x\n", CFG_FLASH_BASE);
+       printf("Flash Memory Start 0x%x\n", CONFIG_SYS_FLASH_BASE);
        printf("Memory Map for the Flash\n");
        printf("0x20000000 - 0x200FFFFF Flash A Primary (1MB)\n");
        printf("0x20100000 - 0x201FFFFF Flash B Primary (1MB)\n");
@@ -90,20 +90,20 @@ unsigned long flash_init(void)
        printf("0x20280000 - 0x2028FFFF Flash B Secondary (64KB)\n");
        printf("Please type command flinfo for information on Sectors \n");
 #endif
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       size_b0 = flash_get_size(CFG_FLASH0_BASE, &flash_info[0], 0);
-       size_b1 = flash_get_size(CFG_FLASH0_BASE, &flash_info[1], 1);
-       size_b2 = flash_get_size(CFG_FLASH0_BASE, &flash_info[2], 2);
+       size_b0 = flash_get_size(CONFIG_SYS_FLASH0_BASE, &flash_info[0], 0);
+       size_b1 = flash_get_size(CONFIG_SYS_FLASH0_BASE, &flash_info[1], 1);
+       size_b2 = flash_get_size(CONFIG_SYS_FLASH0_BASE, &flash_info[2], 2);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size_b0 == 0) {
                printf("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                       size_b0, size_b0 >> 20);
        }
 
-       (void)flash_protect(FLAG_PROTECT_SET, CFG_FLASH0_BASE,
+       (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_FLASH0_BASE,
                            (flash_info[0].start[2] - 1), &flash_info[0]);
 
        return (size_b0 + size_b1 + size_b2);
@@ -180,7 +180,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
        int ret;
        int d;
        if (addr % 2) {
-               read_flash(addr - 1 - CFG_FLASH_BASE, &d);
+               read_flash(addr - 1 - CONFIG_SYS_FLASH_BASE, &d);
                d = (int)((d & 0x00FF) | (*src++ << 8));
                ret = write_data(addr - 1, 2, (uchar *) & d);
                if (ret == FLASH_FAIL)
@@ -196,7 +196,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
 int write_data(long lStart, long lCount, uchar * pnData)
 {
        long i = 0;
-       unsigned long ulOffset = lStart - CFG_FLASH_BASE;
+       unsigned long ulOffset = lStart - CONFIG_SYS_FLASH_BASE;
        int d;
        int nSector = 0;
        int flag = 0;
@@ -285,7 +285,7 @@ int write_flash(long nOffset, int nValue)
 {
        long addr;
 
-       addr = (CFG_FLASH_BASE + nOffset);
+       addr = (CONFIG_SYS_FLASH_BASE + nOffset);
        SSYNC();
        *(unsigned volatile short *)addr = nValue;
        SSYNC();
@@ -297,7 +297,7 @@ int write_flash(long nOffset, int nValue)
 int read_flash(long nOffset, int *pnValue)
 {
        int nValue = 0x0;
-       long addr = (CFG_FLASH_BASE + nOffset);
+       long addr = (CONFIG_SYS_FLASH_BASE + nOffset);
 
        if (nOffset != 0x2)
                reset_flash();
@@ -396,7 +396,7 @@ int erase_block_flash(int nBlock, unsigned long address)
        if ((nBlock < 0) || (nBlock > AFP_NumSectors))
                return FALSE;
 
-       ulSectorOff = (address - CFG_FLASH_BASE);
+       ulSectorOff = (address - CONFIG_SYS_FLASH_BASE);
 
        write_flash((WRITESEQ1 | ulSectorOff), WRITEDATA1);
        write_flash((WRITESEQ2 | ulSectorOff), WRITEDATA2);
index cc654b89561436e8c47b64a3f4795439d5ecd3e2..9b381d27fec03687ed16b13a0b733d11920d055d 100644 (file)
@@ -27,8 +27,8 @@
 
 /*
  * Flash A/B Port A configuration registers.
- * Addresses are offset values to CFG_FLASH1_BASE
- * for Flash A and CFG_FLASH2_BASE for Flash B.
+ * Addresses are offset values to CONFIG_SYS_FLASH1_BASE
+ * for Flash A and CONFIG_SYS_FLASH2_BASE for Flash B.
  */
 
 #define        PSD_PORTA_DIN   0x070000
@@ -37,8 +37,8 @@
 
 /*
  * Flash A/B Port B configuration registers
- * Addresses are offset values to CFG_FLASH1_BASE
- * for Flash A and CFG_FLASH2_BASE for Flash B.
+ * Addresses are offset values to CONFIG_SYS_FLASH1_BASE
+ * for Flash A and CONFIG_SYS_FLASH2_BASE for Flash B.
  */
 
 #define        PSD_PORTB_DIN   0x070001
index 1fedbc5fb7b175deca988ef5e899c1af43e2ac93..538a19f81b46ebc8b0f1c1364ec4e3b89b7608ee 100644 (file)
@@ -36,7 +36,7 @@
  * for different CPU's which may lack non-cache L1 data.
  */
 #ifndef L1_DATA_B_SRAM
-# define L1_DATA_B_SRAM      CFG_MONITOR_BASE
+# define L1_DATA_B_SRAM      CONFIG_SYS_MONITOR_BASE
 # define L1_DATA_B_SRAM_SIZE 0
 #endif
 
@@ -45,7 +45,7 @@ OUTPUT_ARCH(bfin)
 /* The 0xC offset is so we don't clobber the tiny LDR jump block. */
 MEMORY
 {
-       ram     : ORIGIN = CFG_MONITOR_BASE, LENGTH = CFG_MONITOR_LEN
+       ram     : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
        l1_code : ORIGIN = L1_INST_SRAM+0xC, LENGTH = L1_INST_SRAM_SIZE
        l1_data : ORIGIN = L1_DATA_B_SRAM,   LENGTH = L1_DATA_B_SRAM_SIZE
 }
index 7a17dfa55bdf413ead6243d8fbf4c86c9bb1af42..a113c40fd23d10df308b13acfa91db2f5d8be9c1 100644 (file)
@@ -56,11 +56,11 @@ phys_size_t initdram(int board_type)
            ("  tRCD:%d Cycles; tRP:%d Cycles; tRAS:%d Cycles; tWR:%d Cycles; "
             "CAS Latency:%d cycles\n", (SDRAM_tRCD >> 15), (SDRAM_tRP >> 11),
             (SDRAM_tRAS >> 6), (SDRAM_tWR >> 19), (SDRAM_CL >> 2));
-       printf("SDRAM Begin: 0x%x\n", CFG_SDRAM_BASE);
+       printf("SDRAM Begin: 0x%x\n", CONFIG_SYS_SDRAM_BASE);
        printf("Bank size = %d MB\n", 128);
 #endif
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_MAX_RAM_SIZE;
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
        return (gd->bd->bi_memsize);
 }
 
index 4e7fd7c04190be77777919c7082ea1e477e97b15..97ebd79260135e6ce1f08b11349a788f31526ed0 100644 (file)
@@ -36,7 +36,7 @@
  * for different CPU's which may lack non-cache L1 data.
  */
 #ifndef L1_DATA_B_SRAM
-# define L1_DATA_B_SRAM      CFG_MONITOR_BASE
+# define L1_DATA_B_SRAM      CONFIG_SYS_MONITOR_BASE
 # define L1_DATA_B_SRAM_SIZE 0
 #endif
 
@@ -45,7 +45,7 @@ OUTPUT_ARCH(bfin)
 /* The 0xC offset is so we don't clobber the tiny LDR jump block. */
 MEMORY
 {
-       ram     : ORIGIN = CFG_MONITOR_BASE, LENGTH = CFG_MONITOR_LEN
+       ram     : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
        l1_code : ORIGIN = L1_INST_SRAM+0xC, LENGTH = L1_INST_SRAM_SIZE
        l1_data : ORIGIN = L1_DATA_B_SRAM,   LENGTH = L1_DATA_B_SRAM_SIZE
 }
index 4567213111bbd5a942f38275ee7998c8049bbce1..7303f1b4155e59cf003b8bee64c4690bbe8433e7 100644 (file)
@@ -109,12 +109,12 @@ phys_size_t initdram(int board_type)
        printf("tRCD %d SCLK Cycles,tRP %d SCLK Cycles,tRAS %d SCLK Cycles"
               "tWR %d SCLK Cycles,CAS Latency %d SCLK cycles \n",
               3, 3, 6, 2, 3);
-       printf("SDRAM Begin: 0x%x\n", CFG_SDRAM_BASE);
-       printf("Bank size = %d MB\n", CFG_MAX_RAM_SIZE >> 20);
+       printf("SDRAM Begin: 0x%x\n", CONFIG_SYS_SDRAM_BASE);
+       printf("Bank size = %d MB\n", CONFIG_SYS_MAX_RAM_SIZE >> 20);
 #endif
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_MAX_RAM_SIZE;
-       return CFG_MAX_RAM_SIZE;
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
+       return CONFIG_SYS_MAX_RAM_SIZE;
 }
 
 #if defined(CONFIG_MISC_INIT_R)
@@ -236,11 +236,11 @@ int flash_post_test(int flags)
                erase_block_flash(n);
                printf("OK\r");
                printf("--------Program block:%2d...", n);
-               write_data(CFG_FLASH_BASE + offset, BLOCK_SIZE, pbuf);
+               write_data(CONFIG_SYS_FLASH_BASE + offset, BLOCK_SIZE, pbuf);
                printf("OK\r");
                printf("--------Verify  block:%2d...", n);
                for (i = 0; i < BLOCK_SIZE; i += 2) {
-                       if (*(unsigned short *)(CFG_FLASH_BASE + offset + i) !=
+                       if (*(unsigned short *)(CONFIG_SYS_FLASH_BASE + offset + i) !=
                            *temp++) {
                                value = 1;
                                result = 1;
index 9800083c9e9fc993749f0a92b725fbf92053f8bb..c597f2db1e3586340e630254976f78f7badf8143 100644 (file)
@@ -44,13 +44,13 @@ static void bfin_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
 
        if (ctrl & NAND_CTRL_CHANGE) {
                if( ctrl & NAND_CLE )
-                       IO_ADDR_W = CFG_NAND_BASE + BFIN_NAND_CLE;
+                       IO_ADDR_W = CONFIG_SYS_NAND_BASE + BFIN_NAND_CLE;
                else
-                       IO_ADDR_W = CFG_NAND_BASE;
+                       IO_ADDR_W = CONFIG_SYS_NAND_BASE;
                if( ctrl & NAND_ALE )
-                       IO_ADDR_W = CFG_NAND_BASE + BFIN_NAND_ALE;
+                       IO_ADDR_W = CONFIG_SYS_NAND_BASE + BFIN_NAND_ALE;
                else
-                       IO_ADDR_W = CFG_NAND_BASE;
+                       IO_ADDR_W = CONFIG_SYS_NAND_BASE;
                this->IO_ADDR_W = (void __iomem *) IO_ADDR_W;
        }
        this->IO_ADDR_R = this->IO_ADDR_W;
index fa119919b39a9e3703ae72758bd2a82b6aea0205..7c36c8155e04dbf4c5b717debbf5ac4f141f0bbe 100644 (file)
@@ -6,7 +6,7 @@
 #include <post.h>
 #include <watchdog.h>
 
-#if CONFIG_POST & CFG_POST_MEMORY
+#if CONFIG_POST & CONFIG_SYS_POST_MEMORY
 #define CLKIN 25000000
 #define PATTERN1 0x5A5A5A5A
 #define PATTERN2 0xAAAAAAAA
@@ -71,10 +71,10 @@ int memory_post_test(int flags)
                        post_init_uart(sclk);
                        post_out_buff("\n\r\0");
                        post_out_buff(log[m][n]);
-                       for (addr = 0x0; addr < CFG_MAX_RAM_SIZE; addr += 4)
+                       for (addr = 0x0; addr < CONFIG_SYS_MAX_RAM_SIZE; addr += 4)
                                *(unsigned long *)addr = PATTERN1;
                        post_out_buff("Reading...\0");
-                       for (addr = 0x0; addr < CFG_MAX_RAM_SIZE; addr += 4) {
+                       for (addr = 0x0; addr < CONFIG_SYS_MAX_RAM_SIZE; addr += 4) {
                                if ((*(unsigned long *)addr) != PATTERN1) {
                                        post_out_buff("Error\n\r\0");
                                        ret = 0;
@@ -318,5 +318,5 @@ int post_init_sdram(int sclk)
        return mem_SDRRC;
 }
 
-#endif                         /* CONFIG_POST & CFG_POST_MEMORY */
+#endif                         /* CONFIG_POST & CONFIG_SYS_POST_MEMORY */
 #endif                         /* CONFIG_POST */
index 7c73ddd7208ae8b049306bc18bcc34f38240381d..11a2803e6f2a1d08dc53981ea45dd8456e1141b6 100644 (file)
@@ -412,7 +412,7 @@ void spi_init_f(void)
  */
 void spi_init_r(void)
 {
-#if defined(CONFIG_POST) && (CONFIG_POST & CFG_POST_SPI)
+#if defined(CONFIG_POST) && (CONFIG_POST & CONFIG_SYS_POST_SPI)
        /* Our testing strategy here is pretty basic:
         *  - fill src memory with an 8-bit pattern
         *  - write the src memory to the SPI flash
index 4e7fd7c04190be77777919c7082ea1e477e97b15..97ebd79260135e6ce1f08b11349a788f31526ed0 100644 (file)
@@ -36,7 +36,7 @@
  * for different CPU's which may lack non-cache L1 data.
  */
 #ifndef L1_DATA_B_SRAM
-# define L1_DATA_B_SRAM      CFG_MONITOR_BASE
+# define L1_DATA_B_SRAM      CONFIG_SYS_MONITOR_BASE
 # define L1_DATA_B_SRAM_SIZE 0
 #endif
 
@@ -45,7 +45,7 @@ OUTPUT_ARCH(bfin)
 /* The 0xC offset is so we don't clobber the tiny LDR jump block. */
 MEMORY
 {
-       ram     : ORIGIN = CFG_MONITOR_BASE, LENGTH = CFG_MONITOR_LEN
+       ram     : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
        l1_code : ORIGIN = L1_INST_SRAM+0xC, LENGTH = L1_INST_SRAM_SIZE
        l1_data : ORIGIN = L1_DATA_B_SRAM,   LENGTH = L1_DATA_B_SRAM_SIZE
 }
index 7345b42cb41fb764836fa3fbdcc47749b7e2721f..a74ff0db6ead89e65ad5deece9b58d78ee958c0e 100644 (file)
@@ -50,12 +50,12 @@ phys_size_t initdram(int board_type)
        printf("tRCD %d SCLK Cycles,tRP %d SCLK Cycles,tRAS %d SCLK Cycles"
               "tWR %d SCLK Cycles,CAS Latency %d SCLK cycles \n",
               3, 3, 6, 2, 3);
-       printf("SDRAM Begin: 0x%x\n", CFG_SDRAM_BASE);
-       printf("Bank size = %d MB\n", CFG_MAX_RAM_SIZE >> 20);
+       printf("SDRAM Begin: 0x%x\n", CONFIG_SYS_SDRAM_BASE);
+       printf("Bank size = %d MB\n", CONFIG_SYS_MAX_RAM_SIZE >> 20);
 #endif
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_MAX_RAM_SIZE;
-       return CFG_MAX_RAM_SIZE;
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
+       return CONFIG_SYS_MAX_RAM_SIZE;
 }
 
 #if defined(CONFIG_MISC_INIT_R)
index ab5ef0881d44216653fad509c873a9a1cc1e2537..3defef45ae28add44c63cb9e7ec4c2a9f5986f25 100644 (file)
@@ -36,7 +36,7 @@
  * for different CPU's which may lack non-cache L1 data.
  */
 #ifndef L1_DATA_B_SRAM
-# define L1_DATA_B_SRAM      CFG_MONITOR_BASE
+# define L1_DATA_B_SRAM      CONFIG_SYS_MONITOR_BASE
 # define L1_DATA_B_SRAM_SIZE 0
 #endif
 
@@ -45,7 +45,7 @@ OUTPUT_ARCH(bfin)
 /* The 0xC offset is so we don't clobber the tiny LDR jump block. */
 MEMORY
 {
-       ram     : ORIGIN = CFG_MONITOR_BASE, LENGTH = CFG_MONITOR_LEN
+       ram     : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
        l1_code : ORIGIN = L1_INST_SRAM+0xC, LENGTH = L1_INST_SRAM_SIZE
        l1_data : ORIGIN = L1_DATA_B_SRAM,   LENGTH = L1_DATA_B_SRAM_SIZE
 }
index 1f04b1b8a13f3dda0804e62e199b9ec8dde7c512..1fbef79e6414522dde050c6b8b82d9868a4b0a96 100644 (file)
@@ -62,26 +62,26 @@ IO/MMU (BAT) Configuration
 The following Block-Address-Translation (BAT) configuration
 is recommended to access all I/O devices.
 
-#define CFG_IBAT0L  (0x00000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (0x00000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L  (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U  (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_IBAT0L  (0x00000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (0x00000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L  (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U  (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 
 Interrupt Mappings
index 57a06a91f6f438a213f9e5108346f77e9c38b163..63c29d500fe5d0d53080e9080cf189c51bc6dd17 100644 (file)
@@ -86,10 +86,10 @@ iommu_setup:
 /*
  *  Set up I/D BAT0
  */
-       lis     r4, CFG_DBAT0L@h
-       ori     r4, r4, CFG_DBAT0L@l
-       lis     r3, CFG_DBAT0U@h
-       ori     r3, r3, CFG_DBAT0U@l
+       lis     r4, CONFIG_SYS_DBAT0L@h
+       ori     r4, r4, CONFIG_SYS_DBAT0L@l
+       lis     r3, CONFIG_SYS_DBAT0U@h
+       ori     r3, r3, CONFIG_SYS_DBAT0U@l
 
        mtdbat0l(r4)
        isync
@@ -97,10 +97,10 @@ iommu_setup:
        isync
        sync
 
-       lis     r4, CFG_IBAT0L@h
-       ori     r4, r4, CFG_IBAT0L@l
-       lis     r3, CFG_IBAT0U@h
-       ori     r3, r3, CFG_IBAT0U@l
+       lis     r4, CONFIG_SYS_IBAT0L@h
+       ori     r4, r4, CONFIG_SYS_IBAT0L@l
+       lis     r3, CONFIG_SYS_IBAT0U@h
+       ori     r3, r3, CONFIG_SYS_IBAT0U@l
 
        isync
        mtibat0l(r4)
@@ -111,10 +111,10 @@ iommu_setup:
 /*
  *  Set up I/D BAT1
  */
-       lis     r4, CFG_IBAT1L@h
-       ori     r4, r4, CFG_IBAT1L@l
-       lis     r3, CFG_IBAT1U@h
-       ori     r3, r3, CFG_IBAT1U@l
+       lis     r4, CONFIG_SYS_IBAT1L@h
+       ori     r4, r4, CONFIG_SYS_IBAT1L@l
+       lis     r3, CONFIG_SYS_IBAT1U@h
+       ori     r3, r3, CONFIG_SYS_IBAT1U@l
 
        isync
        mtibat1l(r4)
@@ -130,10 +130,10 @@ iommu_setup:
 /*
  *  Set up I/D BAT2
  */
-       lis     r4, CFG_IBAT2L@h
-       ori     r4, r4, CFG_IBAT2L@l
-       lis     r3, CFG_IBAT2U@h
-       ori     r3, r3, CFG_IBAT2U@l
+       lis     r4, CONFIG_SYS_IBAT2L@h
+       ori     r4, r4, CONFIG_SYS_IBAT2L@l
+       lis     r3, CONFIG_SYS_IBAT2U@h
+       ori     r3, r3, CONFIG_SYS_IBAT2U@l
 
        isync
        mtibat2l(r4)
@@ -149,10 +149,10 @@ iommu_setup:
 /*
  *  Setup I/D BAT3
  */
-       lis     r4, CFG_IBAT3L@h
-       ori     r4, r4, CFG_IBAT3L@l
-       lis     r3, CFG_IBAT3U@h
-       ori     r3, r3, CFG_IBAT3U@l
+       lis     r4, CONFIG_SYS_IBAT3L@h
+       ori     r4, r4, CONFIG_SYS_IBAT3L@l
+       lis     r3, CONFIG_SYS_IBAT3U@h
+       ori     r3, r3, CONFIG_SYS_IBAT3U@l
 
        isync
        mtibat3l(r4)
@@ -466,7 +466,7 @@ X4_KAHLUA_START:
 
        LOADPTR (r3, EUMBBAR)
        stwbrx  r3,0,r5
-       LOADPTR (r4, CFG_EUMB_ADDR)
+       LOADPTR (r4, CONFIG_SYS_EUMB_ADDR)
        stwbrx  r4,0,r6
 
 L1not8245:
index 0d0bc2f78b1ad1a993f34887b298f0f4be2e2b99..57ffe0890f45ccf21aec9c1e056364c8e0fc8571 100644 (file)
 #define ROM_CS0_START  0xFF800000
 #define ROM_CS1_START  0xFF000000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR  (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR  (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE  CONFIG_ENV_SECT_SIZE
@@ -141,10 +141,10 @@ unsigned long flash_init (void)
 {
        unsigned long i;
        unsigned char j;
-       static const ulong flash_banks[] = CFG_FLASH_BANKS;
+       static const ulong flash_banks[] = CONFIG_SYS_FLASH_BANKS;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                flash_info_t *const pflinfo = &flash_info[i];
 
                pflinfo->flash_id = FLASH_UNKNOWN;
@@ -217,10 +217,10 @@ unsigned long flash_init (void)
                }
                /* Protect monitor and environment sectors
                 */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                flash_protect (FLAG_PROTECT_SET,
-                              CFG_MONITOR_BASE,
-                              CFG_MONITOR_BASE + monitor_flash_len - 1,
+                              CONFIG_SYS_MONITOR_BASE,
+                              CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                               &flash_info[0]);
 #endif
 
@@ -627,7 +627,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                                       start[0]) << sh8b));
        while ((addr[0] & (FLASH_WORD_SIZE) 0x00800080) !=
               (FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -766,7 +766,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                start = get_timer (0);
                while ((dest2[i << sh8b] & (FLASH_WORD_SIZE) 0x00800080) !=
                       (data2[i] & (FLASH_WORD_SIZE) 0x00800080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index 706456724466c18cb964a418f6cda009b484018c..7250591030aa08d9786f34b7c15f977216631d11 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * COM1 NS16550 support
  * originally from linux source (arch/ppc/boot/ns16550.c)
- * modified to use CFG_ISA_MEM and new defines
+ * modified to use CONFIG_SYS_ISA_MEM and new defines
  */
 
 #include <config.h>
@@ -10,8 +10,8 @@
 typedef struct NS16550 *NS16550_t;
 
 const NS16550_t COM_PORTS[] =
-       { (NS16550_t) ((CFG_EUMB_ADDR) + 0x4500),
-(NS16550_t) ((CFG_EUMB_ADDR) + 0x4600) };
+       { (NS16550_t) ((CONFIG_SYS_EUMB_ADDR) + 0x4500),
+(NS16550_t) ((CONFIG_SYS_EUMB_ADDR) + 0x4600) };
 
 volatile struct NS16550 *NS16550_init (int chan, int baud_divisor)
 {
index 104f45bfb03566640e102c9cee0acf0b977214f6..210aea4b2fd5791f44b562b246edc086ec4e1d7a 100644 (file)
@@ -2,7 +2,7 @@
  * NS16550 Serial Port
  * originally from linux source (arch/ppc/boot/ns16550.h)
  * modified slightly to
- * have addresses as offsets from CFG_ISA_BASE
+ * have addresses as offsets from CONFIG_SYS_ISA_BASE
  * added a few more definitions
  * added prototypes for ns16550.c
  * reduced no of com ports to 2
index 712a95b19e50e50e4b39449708d1a90d42369ba1..0c97f1288f12662ffdd38668ae3d0d28d9609bcf 100644 (file)
@@ -28,10 +28,10 @@ DECLARE_GLOBAL_DATA_PTR;
 
 #if CONFIG_CONS_INDEX == 1
 static struct NS16550 *console =
-               (struct NS16550 *) (CFG_EUMB_ADDR + 0x4500);
+               (struct NS16550 *) (CONFIG_SYS_EUMB_ADDR + 0x4500);
 #elif CONFIG_CONS_INDEX == 2
 static struct NS16550 *console =
-               (struct NS16550 *) (CFG_EUMB_ADDR + 0x4500);
+               (struct NS16550 *) (CONFIG_SYS_EUMB_ADDR + 0x4500);
 #else
 #error no valid console defined
 #endif
index 7d2f746f4526238f23a69ddb61c20565257dca32..717a64bb802fa9bdd5aec46b38e304849046eb22 100644 (file)
@@ -110,7 +110,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long reg;
        long int size8, size9;
@@ -124,17 +124,17 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
        /*
         * Map controller bank 2 the SDRAM bank 2 at physical address 0.
         */
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -154,7 +154,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL,
                           SDRAM_BASE2_PRELIM,
                           SDRAM_MAX_SIZE);
 
@@ -163,7 +163,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL,
                           SDRAM_BASE2_PRELIM,
                           SDRAM_MAX_SIZE);
 
@@ -172,7 +172,7 @@ phys_size_t initdram (int board_type)
 /*             debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                        /* back to 8 columns            */
                size = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*             debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -185,15 +185,15 @@ phys_size_t initdram (int board_type)
         */
        if (size < 0x02000000) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
        /*
         * Final mapping
         */
-       memctl->memc_or2 = ((-size) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br2 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or2 = ((-size) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br2 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        /*
         * No bank 1
@@ -204,7 +204,7 @@ phys_size_t initdram (int board_type)
 
        /* adjust refresh rate depending on SDRAM type, one bank */
        reg = memctl->memc_mptpr;
-       reg >>= 1;                      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+       reg >>= 1;                      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
        memctl->memc_mptpr = reg;
 
        udelay (10000);
@@ -225,7 +225,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                                                   long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index 7cc5ef0c3bdfc74f67ea52dbd245f5fb8432e296..d33cb6ce433b80c639df5dfcacb9b7489dbdb2c0 100644 (file)
 #include <mpc8xx.h>
 
 #ifndef        CONFIG_ENV_ADDR
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -42,13 +42,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -79,19 +79,19 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -104,21 +104,21 @@ unsigned long flash_init (void)
 #endif
 
        if (size_b1) {
-               memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
-               memctl->memc_br1 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
+               memctl->memc_br1 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                    BR_MS_GPCM | BR_V;
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                          &flash_info[1]);
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
 
@@ -436,7 +436,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long*)(info->start[l_sect]);
        while ((addr[0] & 0x00800080) != 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -559,7 +559,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 57846b10cf528d2b9b63c3ac4d3de6050e17e514..c833b20b7bedb7aa6dddb7618ee45a7b27e666cc 100644 (file)
@@ -22,8 +22,8 @@ static void cfg_ports (void)
        volatile cpm8xx_t       *cp;
        ushort sreg;
 
-       immap = (immap_t *)CFG_IMMR;
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /*
        * Configure Port C for TPS2211 PC-Card Power-Interface Switch
@@ -69,10 +69,10 @@ int pcmcia_hardware_enable(int slot)
 
        udelay(10000);
 
-       immap = (immap_t *)CFG_IMMR;
-       sysp  = (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       sysp  = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /* Configure Ports for TPS2211A PC-Card Power-Interface Switch */
        cfg_ports ();
@@ -175,8 +175,8 @@ int pcmcia_hardware_disable(int slot)
 
        debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
        /* Configure PCMCIA General Control Register */
        debug ("Disable PCMCIA buffers and assert RESET\n");
@@ -209,9 +209,9 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
                        " Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
        'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
 
-       immap = (immap_t *)CFG_IMMR;
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        /*
        * Disable PCMCIA buffers (isolate the interface)
        * and assert RESET signal
index d3711d0779948d8adee35e65b352122ece041e4f..dce07bf785aaf52d410e34a207289217fc01af36 100644 (file)
@@ -34,7 +34,7 @@
 #include "mt48lc16m32s2-75.h"
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -77,7 +77,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -86,7 +86,7 @@ phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -107,9 +107,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -135,10 +135,10 @@ phys_size_t initdram (int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start(0);
-       test2 = test1 = get_ram_size((ulong *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = test1 = get_ram_size((ulong *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((ulong *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+               test2 = get_ram_size((ulong *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        }
        if (test1 > test2) {
                sdram_start(0);
@@ -160,7 +160,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -178,7 +178,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize + dramsize2;
 }
@@ -188,7 +188,7 @@ phys_size_t initdram (int board_type)
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup and enable SDRAM chip selects */
@@ -207,9 +207,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size */
        sdram_start(0);
-       test1 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -220,12 +220,12 @@ phys_size_t initdram (int board_type)
        /* set SDRAM end address according to size */
        *(vu_long *)MPC5XXX_SDRAM_STOP = ((dramsize - 1) >> 15);
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* Retrieve amount of SDRAM available */
        dramsize = ((*(vu_long *)MPC5XXX_SDRAM_STOP + 1) << 15);
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize;
 }
@@ -244,8 +244,8 @@ int board_early_init_r (void)
 {
        *(vu_long *)MPC5XXX_BOOTCS_CFG &= ~0x1; /* clear RO */
        *(vu_long *)MPC5XXX_BOOTCS_START =
-       *(vu_long *)MPC5XXX_CS0_START = START_REG(CFG_FLASH_BASE);
+       *(vu_long *)MPC5XXX_CS0_START = START_REG(CONFIG_SYS_FLASH_BASE);
        *(vu_long *)MPC5XXX_BOOTCS_STOP =
-       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CFG_FLASH_BASE, CFG_FLASH_SIZE);
+       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_SIZE);
        return 0;
 }
index 3ff19bc5e5c88a98ccb86487b7db4c4058d67ed9..a4b201e011fa84bfe2362d7eafec0b381a7f0647 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -85,8 +85,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -203,10 +203,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;             /* restore read mode */
@@ -276,7 +276,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW) 0x00D000D0;       /* erase confirm */
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -410,7 +410,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index ad3c59f9fbfc2118cf2f7b58d609f952c9433728..5bfe53c728e7472a6484a4a79fd180996a91b2bc 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
    .macro CPWAIT reg
@@ -49,67 +49,67 @@ lowlevel_init:
        /* Set up GPIO pins first ----------------------------------------- */
 
        ldr     r0, =GPSR0
-       ldr     r1, =CFG_GPSR0_VAL
+       ldr     r1, =CONFIG_SYS_GPSR0_VAL
        str     r1, [r0]
 
        ldr     r0, =GPSR1
-       ldr     r1, =CFG_GPSR1_VAL
+       ldr     r1, =CONFIG_SYS_GPSR1_VAL
        str     r1, [r0]
 
        ldr     r0, =GPSR2
-       ldr     r1, =CFG_GPSR2_VAL
+       ldr     r1, =CONFIG_SYS_GPSR2_VAL
        str     r1, [r0]
 
        ldr     r0, =GPCR0
-       ldr     r1, =CFG_GPCR0_VAL
+       ldr     r1, =CONFIG_SYS_GPCR0_VAL
        str     r1, [r0]
 
        ldr     r0, =GPCR1
-       ldr     r1, =CFG_GPCR1_VAL
+       ldr     r1, =CONFIG_SYS_GPCR1_VAL
        str     r1, [r0]
 
        ldr     r0, =GPCR2
-       ldr     r1, =CFG_GPCR2_VAL
+       ldr     r1, =CONFIG_SYS_GPCR2_VAL
        str     r1, [r0]
 
        ldr     r0, =GPDR0
-       ldr     r1, =CFG_GPDR0_VAL
+       ldr     r1, =CONFIG_SYS_GPDR0_VAL
        str     r1, [r0]
 
        ldr     r0, =GPDR1
-       ldr     r1, =CFG_GPDR1_VAL
+       ldr     r1, =CONFIG_SYS_GPDR1_VAL
        str     r1, [r0]
 
        ldr     r0, =GPDR2
-       ldr     r1, =CFG_GPDR2_VAL
+       ldr     r1, =CONFIG_SYS_GPDR2_VAL
        str     r1, [r0]
 
        ldr     r0, =GAFR0_L
-       ldr     r1, =CFG_GAFR0_L_VAL
+       ldr     r1, =CONFIG_SYS_GAFR0_L_VAL
        str     r1, [r0]
 
        ldr     r0, =GAFR0_U
-       ldr     r1, =CFG_GAFR0_U_VAL
+       ldr     r1, =CONFIG_SYS_GAFR0_U_VAL
        str     r1, [r0]
 
        ldr     r0, =GAFR1_L
-       ldr     r1, =CFG_GAFR1_L_VAL
+       ldr     r1, =CONFIG_SYS_GAFR1_L_VAL
        str     r1, [r0]
 
        ldr     r0, =GAFR1_U
-       ldr     r1, =CFG_GAFR1_U_VAL
+       ldr     r1, =CONFIG_SYS_GAFR1_U_VAL
        str     r1, [r0]
 
        ldr     r0, =GAFR2_L
-       ldr     r1, =CFG_GAFR2_L_VAL
+       ldr     r1, =CONFIG_SYS_GAFR2_L_VAL
        str     r1, [r0]
 
        ldr     r0, =GAFR2_U
-       ldr     r1, =CFG_GAFR2_U_VAL
+       ldr     r1, =CONFIG_SYS_GAFR2_U_VAL
        str     r1, [r0]
 
        ldr     r0, =PSSR                       /* enable GPIO pins */
-       ldr     r1, =CFG_PSSR_VAL
+       ldr     r1, =CONFIG_SYS_PSSR_VAL
        str     r1, [r0]
 
        /* ---------------------------------------------------------------- */
@@ -147,17 +147,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2, =CFG_MSC0_VAL
+       ldr     r2, =CONFIG_SYS_MSC0_VAL
        str     r2, [r1, #MSC0_OFFSET]
        ldr     r2, [r1, #MSC0_OFFSET]          /* read back to ensure      */
                                                /* that data latches        */
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2, =CFG_MSC1_VAL
+       ldr     r2, =CONFIG_SYS_MSC1_VAL
        str     r2, [r1, #MSC1_OFFSET]
        ldr     r2, [r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2, =CFG_MSC2_VAL
+       ldr     r2, =CONFIG_SYS_MSC2_VAL
        str     r2, [r1, #MSC2_OFFSET]
        ldr     r2, [r1, #MSC2_OFFSET]
 
@@ -166,37 +166,37 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2, =CFG_MECR_VAL
+       ldr     r2, =CONFIG_SYS_MECR_VAL
        str     r2, [r1, #MECR_OFFSET]
        ldr     r2, [r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2, =CFG_MCMEM0_VAL
+       ldr     r2, =CONFIG_SYS_MCMEM0_VAL
        str     r2, [r1, #MCMEM0_OFFSET]
        ldr     r2, [r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2, =CFG_MCMEM1_VAL
+       ldr     r2, =CONFIG_SYS_MCMEM1_VAL
        str     r2, [r1, #MCMEM1_OFFSET]
        ldr     r2, [r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2, =CFG_MCATT0_VAL
+       ldr     r2, =CONFIG_SYS_MCATT0_VAL
        str     r2, [r1, #MCATT0_OFFSET]
        ldr     r2, [r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2, =CFG_MCATT1_VAL
+       ldr     r2, =CONFIG_SYS_MCATT1_VAL
        str     r2, [r1, #MCATT1_OFFSET]
        ldr     r2, [r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2, =CFG_MCIO0_VAL
+       ldr     r2, =CONFIG_SYS_MCIO0_VAL
        str     r2, [r1, #MCIO0_OFFSET]
        ldr     r2, [r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2, =CFG_MCIO1_VAL
+       ldr     r2, =CONFIG_SYS_MCIO1_VAL
        str     r2, [r1, #MCIO1_OFFSET]
        ldr     r2, [r1, #MCIO1_OFFSET]
 
@@ -212,7 +212,7 @@ mem_init:
        /* Before accessing MDREFR we need a valid DRI field, so we set     */
        /* this to power on defaults + DRI field, set SDRAM clocks free running */
 
-       ldr     r3, =CFG_MDREFR_VAL
+       ldr     r3, =CONFIG_SYS_MDREFR_VAL
        ldr     r2, =0xFFF
        and     r3, r3,  r2
 
@@ -243,7 +243,7 @@ mem_init:
 
        /* set MDREFR according to user define with exception of a few bits */
 
-       ldr     r4, =CFG_MDREFR_VAL
+       ldr     r4, =CONFIG_SYS_MDREFR_VAL
        ldr     r2, =(MDREFR_K0RUN|MDREFR_K0DB2|MDREFR_K1RUN|MDREFR_K1DB2|\
                                        MDREFR_K2RUN |MDREFR_K2DB2)
        and     r4, r4, r2
@@ -262,7 +262,7 @@ mem_init:
 
        /* Step 4c: assert MDREFR:E1PIN and E0PIO as desired, set KXFREE  */
 
-       ldr     r4, =CFG_MDREFR_VAL
+       ldr     r4, =CONFIG_SYS_MDREFR_VAL
        ldr     r2, =(MDREFR_E0PIN|MDREFR_E1PIN|MDREFR_K0FREE| \
                        MDREFR_K1FREE | MDREFR_K2FREE)
        and     r4, r4, r2
@@ -274,7 +274,7 @@ mem_init:
        /* Step 4d: write MDCNFG with MDCNFG:DEx deasserted (set to 0), to  */
        /*          configure but not enable each SDRAM partition pair.     */
 
-       ldr     r4, =CFG_MDCNFG_VAL
+       ldr     r4, =CONFIG_SYS_MDCNFG_VAL
        bic     r4, r4, #(MDCNFG_DE0|MDCNFG_DE1)
        bic     r4, r4, #(MDCNFG_DE2|MDCNFG_DE3)
        str     r4, [r1, #MDCNFG_OFFSET]        /* write back MDCNFG        */
@@ -301,7 +301,7 @@ mem_init:
        /*          documented in SDRAM data sheets. The address(es) used   */
        /*          for this purpose must not be cacheable.                 */
 
-       ldr     r3, =CFG_DRAM_BASE
+       ldr     r3, =CONFIG_SYS_DRAM_BASE
 .rept 8
        str     r2, [r3]
 .endr
@@ -315,7 +315,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2, =CFG_MDMRS_VAL
+       ldr     r2, =CONFIG_SYS_MDMRS_VAL
        str     r2, [r1, #MDMRS_OFFSET]
 
 
index 86c8e2a5f0ca5739a6ecd85ef991b6000ece10f7..2e6687246aa4afd310709b1eb07201f78177c6d9 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 #define mb() __asm__ __volatile__ ("" : : : "memory")
 
@@ -51,7 +51,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((unsigned char *) PHYS_FLASH_1, &flash_info[i]);
@@ -71,8 +71,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + _bss_start - _armboot_start,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start,
                       &flash_info[0]);
 
        return size;
@@ -189,10 +189,10 @@ static ulong flash_get_size (unsigned char * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = 0xFF; /* restore read mode */
@@ -259,7 +259,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                        while (((status = *addr) & 0x80) != 0x80) {
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0xB0;   /* suspend erase */
                                        *addr = 0xFF;   /* reset to read mode */
@@ -388,7 +388,7 @@ static int write_data (flash_info_t * info, ulong dest, unsigned char data)
 
        /* wait while polling the status register */
        while (((status = *addr) & 0x80) != 0x80) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = 0xFF;   /* restore read mode */
                        return (1);
                }
index 86c8e2a5f0ca5739a6ecd85ef991b6000ece10f7..2e6687246aa4afd310709b1eb07201f78177c6d9 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 #define mb() __asm__ __volatile__ ("" : : : "memory")
 
@@ -51,7 +51,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((unsigned char *) PHYS_FLASH_1, &flash_info[i]);
@@ -71,8 +71,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + _bss_start - _armboot_start,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start,
                       &flash_info[0]);
 
        return size;
@@ -189,10 +189,10 @@ static ulong flash_get_size (unsigned char * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = 0xFF; /* restore read mode */
@@ -259,7 +259,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                        while (((status = *addr) & 0x80) != 0x80) {
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0xB0;   /* suspend erase */
                                        *addr = 0xFF;   /* reset to read mode */
@@ -388,7 +388,7 @@ static int write_data (flash_info_t * info, ulong dest, unsigned char data)
 
        /* wait while polling the status register */
        while (((status = *addr) & 0x80) != 0x80) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = 0xFF;   /* restore read mode */
                        return (1);
                }
index 24e8db0c60b7cd730150daf42a4afea4d13d1182..9e2f1a5366bbdc43d061988c07cc511c97ff0f8d 100644 (file)
@@ -57,7 +57,7 @@ DECLARE_GLOBAL_DATA_PTR;
 static hw_id_t hw_id;
 
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 /*
  * Helper function to initialize SDRAM controller.
  */
@@ -87,7 +87,7 @@ static void sdram_start(int hi_addr, mem_conf_t *mem_conf)
        /* normal operation */
        *(vu_long *)MPC5XXX_SDRAM_CTRL = mem_conf->control | hi_addr_bit;
 }
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 
 /*
@@ -117,7 +117,7 @@ static mem_conf_t* get_mem_config(int board_type)
 phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
        mem_conf_t *mem_conf;
 
@@ -131,9 +131,9 @@ phys_size_t initdram(int board_type)
        *(vu_long *)MPC5XXX_SDRAM_CONFIG2 = mem_conf->config2;
 
        sdram_start(0, mem_conf);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1, mem_conf);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0, mem_conf);
                dramsize = test1;
@@ -150,14 +150,14 @@ phys_size_t initdram(int board_type)
                        __builtin_ffs(dramsize >> 20) - 1;
        } else
                *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0; /* disabled */
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
        if (dramsize >= 0x13)
                dramsize = (1 << (dramsize - 0x13)) << 20;
        else
                dramsize = 0;
-#endif /* !CFG_RAMBOOT */
+#endif /* !CONFIG_SYS_RAMBOOT */
 
        /*
         * On MPC5200B we need to set the special configuration delay in the
@@ -178,7 +178,7 @@ static void read_hw_id(hw_id_t hw_id)
 {
        int i;
        for (i = 0; i < HW_ID_ELEM_COUNT; ++i)
-               if (i2c_read(CFG_I2C_EEPROM,
+               if (i2c_read(CONFIG_SYS_I2C_EEPROM,
                                hw_id_format[i].offset,
                                2,
                                (uchar *)&hw_id[i][0],
@@ -298,7 +298,7 @@ int checkboard(void)
         * also use a little trick to silence I2C-related output.
         */
        gd->flags |= GD_FLG_SILENT;
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        gd->flags &= ~GD_FLG_SILENT;
 
        read_hw_id(hw_id_tmp);
@@ -363,7 +363,7 @@ int misc_init_r(void)
        char hostname[MODULE_NAME_MAXLEN];
 
        /* Read ethaddr from EEPROM */
-       if (i2c_read(CFG_I2C_EEPROM, CONFIG_MAC_OFFSET, 2, buf, 6) == 0) {
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM, CONFIG_MAC_OFFSET, 2, buf, 6) == 0) {
                sprintf(str, "%02X:%02X:%02X:%02X:%02X:%02X",
                        buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
                /* Check if MAC addr is owned by Schindler */
@@ -377,7 +377,7 @@ int misc_init_r(void)
                }
        } else {
                printf(LOG_PREFIX "Warning - Unable to read MAC from I2C"
-                       " device at address %02X:%04X\n", CFG_I2C_EEPROM,
+                       " device at address %02X:%04X\n", CONFIG_SYS_I2C_EEPROM,
                        CONFIG_MAC_OFFSET);
        }
 #endif /* defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C) */
index 2201bdd8cc863464ff5088ce5be3deb30ab9c766..00f0671d7851bd98a3111afa1fff490eb7c40fa8 100644 (file)
@@ -39,18 +39,18 @@ int do_i2c(char *argv[])
        getc();
 
        temp = 0xf0; /* set io 0-4 as output */
-       i2c_write(CFG_I2C_IO, 3, 1, (uchar *)&temp, 1);
+       i2c_write(CONFIG_SYS_I2C_IO, 3, 1, (uchar *)&temp, 1);
 
        printf("Press I2C4-7. LED I2C0-3 should have the same state\n\n"
                "Press any key to stop\n\n");
 
        while (!tstc()) {
-               i2c_read(CFG_I2C_IO, 0, 1, (uchar *)&temp, 1);
+               i2c_read(CONFIG_SYS_I2C_IO, 0, 1, (uchar *)&temp, 1);
                temp1 = (temp >> 4) & 0x03;
                temp1 |= (temp >> 3) & 0x08; /* S302 -> LED303 */
                temp1 |= (temp >> 5) & 0x04; /* S303 -> LED302 */
                temp = temp1;
-               i2c_write(CFG_I2C_IO, 1, 1, (uchar *)&temp, 1);
+               i2c_write(CONFIG_SYS_I2C_IO, 1, 1, (uchar *)&temp, 1);
        }
        getc();
 
@@ -392,7 +392,7 @@ int do_rs232(char *argv[])
                error_status = 1;
                break;
        }
-       gpio->port_config |= (CFG_GPS_PORT_CONFIG & 0xFF0FF80F);
+       gpio->port_config |= (CONFIG_SYS_GPS_PORT_CONFIG & 0xFF0FF80F);
 
        return error_status;
 }
index 8966399f7a6b662528814d75d3f75fff179abfb7..d832e6209f83f0f3e2a9d4323bfc28c83258a3be 100644 (file)
 #include <common.h>
 
 #ifndef        CONFIG_ENV_ADDR
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #define FLASH_CYCLE1   0x0555
 #define FLASH_CYCLE2   0x02AA
@@ -54,7 +54,7 @@ static flash_info_t *flash_get_info(ulong base);
 unsigned long flash_init (void)
 {
        unsigned long size = 0;
-       ulong flashbase = CFG_FLASH_BASE;
+       ulong flashbase = CONFIG_SYS_FLASH_BASE;
 
        /* Init: no FLASHes known */
        memset(&flash_info[0], 0, sizeof(flash_info_t));
@@ -63,12 +63,12 @@ unsigned long flash_init (void)
 
        size = flash_info[0].size;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
-                     flash_get_info(CFG_MONITOR_BASE));
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -104,14 +104,14 @@ static flash_info_t *flash_get_info(ulong base)
        flash_info_t * info;
 
        info = NULL;
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->size && info->start[0] <= base &&
                    base <= info->start[0] + info->size - 1)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 
 /*-----------------------------------------------------------------------
@@ -339,7 +339,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                last  = 0;
                addr = (vu_short *)(info->start[l_sect]);
                while ((addr[0] & 0x0080) != 0x0080) {
-                       if ((now = get_timer_masked ()) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer_masked ()) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                return 1;
                        }
@@ -459,7 +459,7 @@ static int write_word_amd (flash_info_t *info, vu_short *dest, ushort data)
 
        /* data polling for D7 */
        while ((*dest & 0x0080) != (data & 0x0080)) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = 0x00F0; /* reset bank */
                        return (1);
                }
index ee243db66a7071fa1f1210c6cfcfccad557bf9a4..b78183e13cd18405b9d00df3432a97d395c8f274 100644 (file)
@@ -70,4 +70,4 @@ phys_size_t initdram(int board_type)
 /*
  * Absolute environment address for linker file.
  */
-GEN_ABS(env_start, CONFIG_ENV_OFFSET + CFG_FLASH_BASE);
+GEN_ABS(env_start, CONFIG_ENV_OFFSET + CONFIG_SYS_FLASH_BASE);
index 0d4582b239b468e4f9e5980c3e9e55587d886d60..630c3305e16b8bd2286694233e8396689193a33d 100644 (file)
@@ -38,7 +38,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -62,7 +62,7 @@
 #define FLASH_CMD_PROTECT_CLEAR                0x00D0
 #define FLASH_STATUS_DONE              0x0080
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*
  * Local function prototypes
@@ -81,7 +81,7 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -102,11 +102,11 @@ unsigned long flash_init (void)
 
        flash_info[0].size = size_b0;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -268,10 +268,10 @@ static ulong flash_get_size (vu_short *addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = FLASH_CMD_RESET;              /* restore read mode */
@@ -345,7 +345,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & FLASH_STATUS_DONE) != FLASH_STATUS_DONE) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf("Flash erase timeout at address %lx\n", info->start[sect]);
                                        *addr = FLASH_CMD_SUSPEND_ERASE;
                                        *addr = FLASH_CMD_RESET;
@@ -473,7 +473,7 @@ static int write_short (flash_info_t *info, ulong dest, ushort data)
 
        /* wait for error or finish */
        while(!(addr[0] & FLASH_STATUS_DONE)){
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        addr[0] = FLASH_CMD_RESET;
                        return (1);
                }
@@ -504,7 +504,7 @@ int flash_real_protect(flash_info_t *info, long sector, int prot)
        /* wait for error or finish */
        start = get_timer (0);
        while(!(addr[0] & FLASH_STATUS_DONE)){
-               if (get_timer(start) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Flash protect timeout at address %lx\n",  info->start[sector]);
                        addr[0] = FLASH_CMD_RESET;
                        return (1);
index b9285505041759e9b6e0405f018497402e0cec5c..a62214cf597a2964a3d2cae3d5158ad49f2ad46d 100644 (file)
@@ -42,7 +42,7 @@ phys_size_t initdram (int board_type)
        /* Dummy write to start SDRAM */
        *((volatile unsigned long *) 0) = 0;
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 };
 
 int testdram (void)
index 82452e2c4811108b43ee94e99c1db4b1546b42c2..33c936120ff965a5c4549888e3c0e16836414b08 100644 (file)
 
 #include <common.h>
 
-#define PHYS_FLASH_1 CFG_FLASH_BASE
+#define PHYS_FLASH_1 CONFIG_SYS_FLASH_BASE
 #define FLASH_BANK_SIZE 0x200000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 void flash_print_info (flash_info_t * info)
 {
@@ -74,15 +74,15 @@ unsigned long flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                        (AMD_MANUFACT & FLASH_VENDMASK) |
                        (AMD_ID_PL160CB & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -113,8 +113,8 @@ unsigned long flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + 0x3ffff, &flash_info[0]);
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + 0x3ffff, &flash_info[0]);
 
        return size;
 }
@@ -128,8 +128,8 @@ unsigned long flash_init (void)
 #define CMD_PROGRAM            0x00A0
 #define CMD_UNLOCK_BYPASS      0x0020
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00000555<<1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x000002AA<<1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555<<1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA<<1)))
 
 #define BIT_ERASE_DONE         0x0080
 #define BIT_RDY_MASK           0x0080
@@ -211,7 +211,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                result = *addr;
 
                                /* check timeout */
-                               if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip1 = TMO;
                                        break;
@@ -299,7 +299,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        chip1 = ERR | TMO;
                        break;
                }
index b30ba803f9215c8b02e124edf0ab72b09e2a5ab0..161c694b82e46873a198c8a37821a27d3bf887be 100644 (file)
@@ -45,7 +45,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -131,9 +131,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -198,7 +198,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index e6eef662c9bbe04781832625f24c2a16dc64558b..31ca187b59bb9eb1f4debc416798e166dd91d238 100644 (file)
@@ -80,16 +80,16 @@ To configure, perform the usual U-Boot configuration task of editing
 "include/config_cogent_mpc8xx.h" and reviewing all the options and
 settings in there. In particular, check the chip select values
 installed into the memory controller's various option and base
-registers - these are set by the defines CFG_CMA_CSn_{BASE,SIZE} and
-CFG_{B,O}Rn_PRELIM. Also be careful of the clock settings installed
-into the SCCR - via the define CFG_SCCR. Finally, decide whether you
+registers - these are set by the defines CONFIG_SYS_CMA_CSn_{BASE,SIZE} and
+CONFIG_SYS_{B,O}Rn_PRELIM. Also be careful of the clock settings installed
+into the SCCR - via the define CONFIG_SYS_SCCR. Finally, decide whether you
 want the serial console on motherboard serial port A or on one of the
 8xx SMC ports, and set CONFIG_8xx_CONS_{SMC1,SMC2,NONE} accordingly
 (NONE means use Cogent motherboard serial port A).
 
 Then edit the file "cogent/config.mk". Firstly, set TEXT_BASE to be
 the base address of the EPROM for the CPU module. This should be the
-same as the value selected for CFG_MONITOR_BASE in
+same as the value selected for CONFIG_SYS_MONITOR_BASE in
 "include/config_cogent_*.h" (in fact, I have made this automatic via
 the -DTEXT_BASE=... option in CPPFLAGS).
 
index 942f33ab02d4a9aa75986a80216aa16a359bedd8..e6c85b6d9a56a332b2906ed20be2b905660a56e7 100644 (file)
 #include <common.h>
 #include <board/cogent/flash.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -121,7 +121,7 @@ c302f_probe(flash_info_t *fip, c302f_addr_t base)
                fip->size += C302F_BNK_SIZE;
                osc = fip->sector_count;
                fip->sector_count += C302F_BNK_NBLOCKS;
-               if ((nsc = fip->sector_count) >= CFG_MAX_FLASH_SECT)
+               if ((nsc = fip->sector_count) >= CONFIG_SYS_MAX_FLASH_SECT)
                        panic("Too many sectors in flash at address 0x%08lx\n",
                                (unsigned long)base);
 
@@ -264,7 +264,7 @@ c302f_write_word(c302f_addr_t addr, c302f_word_t value)
        /* data polling for D7 */
        start = get_timer (0);
        do {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        retval = 1;
                        goto done;
                }
@@ -295,7 +295,7 @@ flash_init(void)
        flash_info_t *fip;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -303,7 +303,7 @@ flash_init(void)
        total = 0L;
 
 #if defined(CONFIG_CMA302)
-       c302f_probe(fip, (c302f_addr_t)CFG_FLASH_BASE);
+       c302f_probe(fip, (c302f_addr_t)CONFIG_SYS_FLASH_BASE);
        total += fip->size;
        fip++;
 #endif
@@ -320,10 +320,10 @@ flash_init(void)
         * protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE == CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE == CONFIG_SYS_FLASH_BASE
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -472,7 +472,7 @@ flash_erase(flash_info_t *info, int s_first, int s_last)
                        do {
                                now = get_timer(start);
 
-                               if (now - estart > CFG_FLASH_ERASE_TOUT) {
+                               if (now - estart > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout (sect %d)\n", sect);
                                        haderr = 1;
                                        break;
index 814b4c80a0459b55611b4ea4a2a2b9a930a7179e..76f5ad103fa1b6f24742cf5866291ef6a02da7c7 100644 (file)
@@ -197,7 +197,7 @@ void
 lcd_printf(const char *fmt, ...)
 {
     va_list args;
-    char buf[CFG_PBSIZE];
+    char buf[CONFIG_SYS_PBSIZE];
 
     va_start(args, fmt);
     (void)vsprintf(buf, fmt, args);
@@ -234,7 +234,7 @@ lcd_heartbeat(void)
 void board_show_activity (ulong timestamp)
 {
 #ifdef CONFIG_STATUS_LED
-       if ((timestamp % (CFG_HZ / 2) == 0)
+       if ((timestamp % (CONFIG_SYS_HZ / 2) == 0)
                lcd_heartbeat ();
 #endif
 }
index f6eaf0ac5ee8839b360c21aa175fec90088b908e..b3aba48f7f29a30ee12b31e1839f347547fc1f95 100644 (file)
  * 0xA000000-0xDFFFFFF.
  */
 
-#define CMA_MB_RAM_BASE                (CFG_CMA_MB_BASE+0x0000000)
+#define CMA_MB_RAM_BASE                (CONFIG_SYS_CMA_MB_BASE+0x0000000)
 #define CMA_MB_RAM_SIZE                0x2000000       /* dip sws set actual size */
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_SLOT1)
-#define CMA_MB_SLOT1_BASE      (CFG_CMA_MB_BASE+0x2000000)
+#define CMA_MB_SLOT1_BASE      (CONFIG_SYS_CMA_MB_BASE+0x2000000)
 #define CMA_MB_SLOT1_SIZE      0x2000000
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_SLOT2)
-#define CMA_MB_SLOT2_BASE      (CFG_CMA_MB_BASE+0x4000000)
+#define CMA_MB_SLOT2_BASE      (CONFIG_SYS_CMA_MB_BASE+0x4000000)
 #define CMA_MB_SLOT2_SIZE      0x2000000
 #endif
 #if (CMA_MB_CAPS & CMA_MB_CAP_PCI)
-#define CMA_MB_STDPCI_BASE     (CFG_CMA_MB_BASE+0x4000000)
+#define CMA_MB_STDPCI_BASE     (CONFIG_SYS_CMA_MB_BASE+0x4000000)
 #define CMA_MB_STDPCI_SIZE     0x1ff0000
-#define CMA_MB_V360EPC_BASE    (CFG_CMA_MB_BASE+0x5ff0000)
+#define CMA_MB_V360EPC_BASE    (CONFIG_SYS_CMA_MB_BASE+0x5ff0000)
 #define CMA_MB_V360EPC_SIZE    0x10000
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_SLOT3)
-#define CMA_MB_SLOT3_BASE      (CFG_CMA_MB_BASE+0x6000000)
+#define CMA_MB_SLOT3_BASE      (CONFIG_SYS_CMA_MB_BASE+0x6000000)
 #define CMA_MB_SLOT3_SIZE      0x2000000
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_PCI_EXT)
-#define CMA_MB_EXTPCI_BASE     (CFG_CMA_MB_BASE+0xa000000)
+#define CMA_MB_EXTPCI_BASE     (CONFIG_SYS_CMA_MB_BASE+0xa000000)
 #define CMA_MB_EXTPCI_SIZE     0x4000000
 #endif
 
-#define CMA_MB_ROMLOW_BASE     (CFG_CMA_MB_BASE+0xe000000)
+#define CMA_MB_ROMLOW_BASE     (CONFIG_SYS_CMA_MB_BASE+0xe000000)
 #define CMA_MB_ROMLOW_SIZE     0x800000
 #if (CMA_MB_CAPS & CMA_MB_CAP_FLASH)
-#define CMA_MB_FLLOW_EXEC_BASE (CFG_CMA_MB_BASE+0xe000000)
+#define CMA_MB_FLLOW_EXEC_BASE (CONFIG_SYS_CMA_MB_BASE+0xe000000)
 #define CMA_MB_FLLOW_EXEC_SIZE 0x100000
-#define CMA_MB_FLLOW_RDWR_BASE (CFG_CMA_MB_BASE+0xe400000)
+#define CMA_MB_FLLOW_RDWR_BASE (CONFIG_SYS_CMA_MB_BASE+0xe400000)
 #define CMA_MB_FLLOW_RDWR_SIZE 0x400000
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_RTC)
-#define CMA_MB_RTC_BASE                (CFG_CMA_MB_BASE+0xe800000)
+#define CMA_MB_RTC_BASE                (CONFIG_SYS_CMA_MB_BASE+0xe800000)
 #define CMA_MB_RTC_SIZE                0x4000
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_SERPAR)
-#define CMA_MB_SERPAR_BASE     (CFG_CMA_MB_BASE+0xe900000)
+#define CMA_MB_SERPAR_BASE     (CONFIG_SYS_CMA_MB_BASE+0xe900000)
 #define   CMA_MB_SERIALB_BASE    (CMA_MB_SERPAR_BASE+0x00)
 #define   CMA_MB_SERIALA_BASE    (CMA_MB_SERPAR_BASE+0x40)
 #define   CMA_MB_PARALLEL_BASE   (CMA_MB_SERPAR_BASE+0x80)
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_KBM)
-#define CMA_MB_PKBM_BASE       (CFG_CMA_MB_BASE+0xe900100)
+#define CMA_MB_PKBM_BASE       (CONFIG_SYS_CMA_MB_BASE+0xe900100)
 #define CMA_MB_PKBM_SIZE       0x10
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_LCD)
-#define CMA_MB_LCD_BASE                (CFG_CMA_MB_BASE+0xeb00000)
+#define CMA_MB_LCD_BASE                (CONFIG_SYS_CMA_MB_BASE+0xeb00000)
 #define CMA_MB_LCD_SIZE                0x10
 #endif
 
-#define CMA_MB_DIPSW_BASE      (CFG_CMA_MB_BASE+0xec00000)
+#define CMA_MB_DIPSW_BASE      (CONFIG_SYS_CMA_MB_BASE+0xec00000)
 #define CMA_MB_DIPSW_SIZE      0x10
 
 #if (CMA_MB_CAPS & (CMA_MB_CAP_SLOT1|CMA_MB_CAP_SER2|CMA_MB_CAP_KBM))
-#define CMA_MB_SLOT1CFG_BASE   (CFG_CMA_MB_BASE+0xf100000)
+#define CMA_MB_SLOT1CFG_BASE   (CONFIG_SYS_CMA_MB_BASE+0xf100000)
 #if (CMA_MB_CAPS & CMA_MB_CAP_SER2)
 #define   CMA_MB_SER2_BASE       (CMA_MB_SLOT1CFG_BASE+0x80)
 #define     CMA_MB_SER2B_BASE      (CMA_MB_SER2_BASE+0x00)
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_SLOT2)
-#define CMA_MB_SLOT2CFG_BASE   (CFG_CMA_MB_BASE+0xf200000)
+#define CMA_MB_SLOT2CFG_BASE   (CONFIG_SYS_CMA_MB_BASE+0xf200000)
 #if defined(CONFIG_CMA302) && defined(CONFIG_CMA302_SLOT2)
 #define   CMA_MB_S2KBM_BASE      (CMA_MB_SLOT2CFG_BASE+0x200)
 #endif
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_PCI)
-#define CMA_MB_PCICTL_BASE     (CFG_CMA_MB_BASE+0xf200000)
+#define CMA_MB_PCICTL_BASE     (CONFIG_SYS_CMA_MB_BASE+0xf200000)
 #define   CMA_MB_PCI_V3CTL_BASE          (CMA_MB_PCICTL_BASE+0x100)
 #define   CMA_MB_PCI_IDSEL_BASE          (CMA_MB_PCICTL_BASE+0x200)
 #define   CMA_MB_PCI_IMASK_BASE          (CMA_MB_PCICTL_BASE+0x300)
 #endif
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_SLOT3)
-#define CMA_MB_SLOT3CFG_BASE   (CFG_CMA_MB_BASE+0xf300000)
+#define CMA_MB_SLOT3CFG_BASE   (CONFIG_SYS_CMA_MB_BASE+0xf300000)
 #if defined(CONFIG_CMA302) && defined(CONFIG_CMA302_SLOT3)
 #define   CMA_MB_S3KBM_BASE      (CMA_MB_SLOT3CFG_BASE+0x200)
 #endif
 #define CMA_MB_SLOT3CFG_SIZE   0x400
 #endif
 
-#define CMA_MB_ROMHIGH_BASE    (CFG_CMA_MB_BASE+0xf800000)
+#define CMA_MB_ROMHIGH_BASE    (CONFIG_SYS_CMA_MB_BASE+0xf800000)
 #define CMA_MB_ROMHIGH_SIZE    0x800000
 #if (CMA_MB_CAPS & CMA_MB_CAP_FLASH)
-#define CMA_MB_FLHIGH_EXEC_BASE        (CFG_CMA_MB_BASE+0xf800000)
+#define CMA_MB_FLHIGH_EXEC_BASE        (CONFIG_SYS_CMA_MB_BASE+0xf800000)
 #define CMA_MB_FLHIGH_EXEC_SIZE        0x100000
-#define CMA_MB_FLHIGH_RDWR_BASE        (CFG_CMA_MB_BASE+0xfc00000)
+#define CMA_MB_FLHIGH_RDWR_BASE        (CONFIG_SYS_CMA_MB_BASE+0xfc00000)
 #define CMA_MB_FLHIGH_RDWR_SIZE        0x400000
 #endif
 
index 16ead75def07b65eb11ebc841a1bf5b676ab5922..1178822db36586e753648c5ee42876125be79ce4 100644 (file)
@@ -72,7 +72,7 @@ phys_size_t initdram (int board_type)
        uint8_t mber = 0;
        unsigned int tmp;
 
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        if (i2c_reg_read (0x50, 2) != 0x04)
                return 0;       /* Memory type */
@@ -89,7 +89,7 @@ phys_size_t initdram (int board_type)
        CONFIG_READ_WORD(MCCR2, mccr2);
        mccr2 &= 0xffff0000;
 
-       start = CFG_SDRAM_BASE;
+       start = CONFIG_SYS_SDRAM_BASE;
        end = start + (1 << (col + row + 3) ) * bank - 1;
 
        for (i = 0; i < m; i++) {
@@ -243,8 +243,8 @@ int sysControlDisplay (int digit,   /* number of digit 0..7 */
 
 #if defined(CONFIG_CMD_PCMCIA)
 
-#ifdef CFG_PCMCIA_MEM_ADDR
-volatile unsigned char *pcmcia_mem = (unsigned char*)CFG_PCMCIA_MEM_ADDR;
+#ifdef CONFIG_SYS_PCMCIA_MEM_ADDR
+volatile unsigned char *pcmcia_mem = (unsigned char*)CONFIG_SYS_PCMCIA_MEM_ADDR;
 #endif
 
 int pcmcia_init(void)
index 3826a54a3dc7d89a2b7e2568816d5b3aad996282..8fe758425821f2ae87eb00ae34362a21bd6ff7de 100644 (file)
@@ -27,7 +27,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -41,7 +41,7 @@
 #define MAIN_SECT_SIZE  0x40000
 #define PARAM_SECT_SIZE 0x8000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static int write_data (flash_info_t * info, ulong dest, ulong * data);
 static void write_via_fpu (vu_long * addr, ulong * data);
@@ -81,8 +81,8 @@ unsigned long flash_init (void)
 
        __asm__ volatile ("sync\n eieio");
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
-               vu_long *addr = (vu_long *) (CFG_FLASH_BASE + i * FLASH_BANK_SIZE);
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
+               vu_long *addr = (vu_long *) (CONFIG_SYS_FLASH_BASE + i * FLASH_BANK_SIZE);
 
                addr[0] = 0x00900090;
 
@@ -124,17 +124,17 @@ unsigned long flash_init (void)
                addr[0] = 0xFFFFFFFF;
 
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                for (j = 0; j < flash_info[i].sector_count; j++) {
                        if (j > 30) {
-                               flash_info[i].start[j] = CFG_FLASH_BASE +
+                               flash_info[i].start[j] = CONFIG_SYS_FLASH_BASE +
                                        i * FLASH_BANK_SIZE +
                                        (MAIN_SECT_SIZE * 31) + (j -
                                                                 31) *
                                        PARAM_SECT_SIZE;
                        } else {
-                               flash_info[i].start[j] = CFG_FLASH_BASE +
+                               flash_info[i].start[j] = CONFIG_SYS_FLASH_BASE +
                                        i * FLASH_BANK_SIZE +
                                        j * MAIN_SECT_SIZE;
                        }
@@ -162,20 +162,20 @@ unsigned long flash_init (void)
 
        /* Protect monitor and environment sectors
         */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE + FLASH_BANK_SIZE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE + FLASH_BANK_SIZE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                       &flash_info[1]);
 #else
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
-#if CONFIG_ENV_ADDR >= CFG_FLASH_BASE + FLASH_BANK_SIZE
+#if CONFIG_ENV_ADDR >= CONFIG_SYS_FLASH_BASE + FLASH_BANK_SIZE
        flash_protect (FLAG_PROTECT_SET,
                       CONFIG_ENV_ADDR,
                       CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[1]);
@@ -309,7 +309,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        while (((addr[0] & 0x00800080) != 0x00800080) ||
                               ((addr[1] & 0x00800080) != 0x00800080)) {
                                if ((now = get_timer (start)) >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        addr[0] = 0x00B000B0;   /* suspend erase */
                                        addr[0] = 0x00FF00FF;   /* to read mode  */
@@ -486,7 +486,7 @@ static int write_data (flash_info_t * info, ulong dest, ulong * data)
 
        while (((addr[0] & 0x00800080) != 0x00800080) ||
               ((addr[1] & 0x00800080) != 0x00800080)) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        addr[0] = 0x00FF00FF;   /* restore read mode */
                        return (1);
                }
index d8f4be516d134dbd2e2a03e8b539cbbb9d60bdf1..12c9c746c5bc9a08c96fae3a7ff3fb5c0bec2eb7 100644 (file)
@@ -699,16 +699,16 @@ int i82365_init (void)
        mem.map = 0;
        mem.flags = MAP_ATTRIB | MAP_ACTIVE;
        mem.speed = 300;
-       mem.sys_start = CFG_PCMCIA_MEM_ADDR;
-       mem.sys_stop = CFG_PCMCIA_MEM_ADDR + CFG_PCMCIA_MEM_SIZE - 1;
+       mem.sys_start = CONFIG_SYS_PCMCIA_MEM_ADDR;
+       mem.sys_stop = CONFIG_SYS_PCMCIA_MEM_ADDR + CONFIG_SYS_PCMCIA_MEM_SIZE - 1;
        mem.card_start = 0;
        i365_set_mem_map (&socket, &mem);
 
        mem.map = 1;
        mem.flags = MAP_ACTIVE;
        mem.speed = 300;
-       mem.sys_start = CFG_PCMCIA_MEM_ADDR + CFG_PCMCIA_MEM_SIZE;
-       mem.sys_stop = CFG_PCMCIA_MEM_ADDR + (2 * CFG_PCMCIA_MEM_SIZE) - 1;
+       mem.sys_start = CONFIG_SYS_PCMCIA_MEM_ADDR + CONFIG_SYS_PCMCIA_MEM_SIZE;
+       mem.sys_stop = CONFIG_SYS_PCMCIA_MEM_ADDR + (2 * CONFIG_SYS_PCMCIA_MEM_SIZE) - 1;
        mem.card_start = 0;
        i365_set_mem_map (&socket, &mem);
 
@@ -794,8 +794,8 @@ static void i82365_dump_regions (pci_dev_t dev)
 {
        u_int tmp[2];
        u_int *mem = (void *) socket.cb_phys;
-       u_char *cis = (void *) CFG_PCMCIA_MEM_ADDR;
-       u_char *ide = (void *) (CFG_ATA_BASE_ADDR + CFG_ATA_REG_OFFSET);
+       u_char *cis = (void *) CONFIG_SYS_PCMCIA_MEM_ADDR;
+       u_char *ide = (void *) (CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_REG_OFFSET);
 
        pci_read_config_dword (dev, 0x00, tmp + 0);
        pci_read_config_dword (dev, 0x80, tmp + 1);
index 00354c46bd60b3a3f1d2cea7cbc5965c39fc15a8..5fe0ca0886fa1843f076c66f82c9fc3a3329687c 100644 (file)
@@ -25,7 +25,7 @@
 # CPU86 boards
 #
 
-# This should be equal to the CFG_FLASH_BASE define in config_CPU86.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in config_CPU86.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index 23ec283d4ff796172595539127b7b8b81aeb1704..bc7ebfea183c2ead3001babd497c4cdbaed97349 100644 (file)
@@ -225,7 +225,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         */
        maxsize = (1 + (~orx | 0x7fff)) / 2;
 
-       /* Since CFG_SDRAM_BASE is always 0 (??), we assume that
+       /* Since CONFIG_SYS_SDRAM_BASE is always 0 (??), we assume that
         * we are configuring CS1 if base != 0
         */
        sdmr_ptr = &memctl->memc_psdmr;
@@ -250,7 +250,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -261,7 +261,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -275,37 +275,37 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong size8, size9;
 #endif
        long psize;
 
        psize = 32 * 1024 * 1024;
 
-       memctl->memc_mptpr = CFG_MPTPR;
-       memctl->memc_psrt = CFG_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                         (uchar *) CFG_SDRAM_BASE);
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR2_9COL,
-                         (uchar *) CFG_SDRAM_BASE);
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                         (uchar *) CONFIG_SYS_SDRAM_BASE);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR2_9COL,
+                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
        if (size8 < size9) {
                psize = size9;
                printf ("(60x:9COL) ");
        } else {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:8COL) ");
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -315,6 +315,6 @@ phys_size_t initdram (int board_type)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-       doc_probe (CFG_DOC_BASE);
+       doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
index cf7852cefda98ec345e09169f6657190a1b7344c..ca0c39f6b8b8e8ab8eddc5a3baa5f5c2010c9a36 100644 (file)
@@ -6,19 +6,19 @@
 #define REG8(x)                        (*(volatile unsigned char *)(x))
 
 /* CPU86 register definitions */
-#define CPU86_VME_EAC          REG8(CFG_BCRS_BASE + 0x00)
-#define CPU86_VME_SAC          REG8(CFG_BCRS_BASE + 0x01)
-#define CPU86_VME_MAC          REG8(CFG_BCRS_BASE + 0x02)
-#define CPU86_BCR              REG8(CFG_BCRS_BASE + 0x03)
-#define CPU86_BSR              REG8(CFG_BCRS_BASE + 0x04)
-#define CPU86_WDOG_RPORT       REG8(CFG_BCRS_BASE + 0x05)
-#define CPU86_MBOX_IRQ         REG8(CFG_BCRS_BASE + 0x04)
-#define CPU86_REV              REG8(CFG_BCRS_BASE + 0x07)
-#define CPU86_VME_IRQMASK      REG8(CFG_BCRS_BASE + 0x80)
-#define CPU86_VME_IRQSTATUS    REG8(CFG_BCRS_BASE + 0x81)
-#define CPU86_LOCAL_IRQMASK    REG8(CFG_BCRS_BASE + 0x82)
-#define CPU86_LOCAL_IRQSTATUS  REG8(CFG_BCRS_BASE + 0x83)
-#define CPU86_PMCL_IRQSTATUS   REG8(CFG_BCRS_BASE + 0x84)
+#define CPU86_VME_EAC          REG8(CONFIG_SYS_BCRS_BASE + 0x00)
+#define CPU86_VME_SAC          REG8(CONFIG_SYS_BCRS_BASE + 0x01)
+#define CPU86_VME_MAC          REG8(CONFIG_SYS_BCRS_BASE + 0x02)
+#define CPU86_BCR              REG8(CONFIG_SYS_BCRS_BASE + 0x03)
+#define CPU86_BSR              REG8(CONFIG_SYS_BCRS_BASE + 0x04)
+#define CPU86_WDOG_RPORT       REG8(CONFIG_SYS_BCRS_BASE + 0x05)
+#define CPU86_MBOX_IRQ         REG8(CONFIG_SYS_BCRS_BASE + 0x04)
+#define CPU86_REV              REG8(CONFIG_SYS_BCRS_BASE + 0x07)
+#define CPU86_VME_IRQMASK      REG8(CONFIG_SYS_BCRS_BASE + 0x80)
+#define CPU86_VME_IRQSTATUS    REG8(CONFIG_SYS_BCRS_BASE + 0x81)
+#define CPU86_LOCAL_IRQMASK    REG8(CONFIG_SYS_BCRS_BASE + 0x82)
+#define CPU86_LOCAL_IRQSTATUS  REG8(CONFIG_SYS_BCRS_BASE + 0x83)
+#define CPU86_PMCL_IRQSTATUS   REG8(CONFIG_SYS_BCRS_BASE + 0x84)
 
 /* Board Control Register bits */
 #define CPU86_BCR_FWPT         0x01
index 845a3b2af9af4a3adae7adf7f5f86160b928b23f..8135780c54dbfce5be3be45decce9138d835574a 100644 (file)
@@ -28,7 +28,7 @@
 #include <mpc8xx.h>
 #include "cpu86.h"
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  */
@@ -177,7 +177,7 @@ unsigned long flash_init (void)
 
        /* Init: no FLASHes known
         */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -186,8 +186,8 @@ unsigned long flash_init (void)
 
        /* Static FLASH Bank configuration here (only one bank) */
 
-       size_b0 = flash_int_get_size ((ulong *) CFG_FLASH_BASE, &flash_info[0]);
-       size_b1 = flash_amd_get_size ((uchar *) CFG_BOOTROM_BASE, &flash_info[1]);
+       size_b0 = flash_int_get_size ((ulong *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
+       size_b1 = flash_amd_get_size ((uchar *) CONFIG_SYS_BOOTROM_BASE, &flash_info[1]);
 
        if (size_b0 > 0 || size_b1 > 0) {
 
@@ -210,22 +210,22 @@ unsigned long flash_init (void)
        /* protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE >= CFG_BOOTROM_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_BOOTROM_BASE
        if (size_b1) {
-               /* If U-Boot is booted from ROM the CFG_MONITOR_BASE > CFG_FLASH_BASE
+               /* If U-Boot is booted from ROM the CONFIG_SYS_MONITOR_BASE > CONFIG_SYS_FLASH_BASE
                 * but we shouldn't protect it.
                 */
 
                flash_protect  (FLAG_PROTECT_SET,
-                               CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[1]
+                               CONFIG_SYS_MONITOR_BASE,
+                               CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[1]
                );
        }
 #else
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
        );
 #endif
 #endif
@@ -234,7 +234,7 @@ unsigned long flash_init (void)
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
 # endif
-# if CONFIG_ENV_ADDR >= CFG_BOOTROM_BASE
+# if CONFIG_ENV_ADDR >= CONFIG_SYS_BOOTROM_BASE
        if (size_b1) {
                flash_protect (FLAG_PROTECT_SET,
                                CONFIG_ENV_ADDR,
@@ -382,7 +382,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                last  = start;
                addr = (vu_char *)(info->start[l_sect]);
                while ((addr[0] & 0x80) != 0x80) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                return 1;
                        }
@@ -434,7 +434,7 @@ AMD_DONE:
                                last = start;
                                while ((addr[0] & 0x00800080) != 0x00800080 ||
                                   (addr[1] & 0x00800080) != 0x00800080) {
-                                       if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                                       if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                                printf ("Timeout (erase suspended!)\n");
                                                /* Suspend erase
                                                 */
@@ -549,7 +549,7 @@ static int write_word (flash_info_t * info, volatile unsigned long *addr,
 
        start = get_timer (0);
        while ((*addr & 0x00800080) != 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        /* Suspend program
                         */
                        *addr = 0x00B000B0;
@@ -604,7 +604,7 @@ static int write_byte (flash_info_t *info, ulong dest, uchar data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_char *)dest) & 0x80) != (data & 0x80)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 6384c78397ecaba91ec936b93816d2d2987a57ae..6a694a40543670f02138b146f3b7d9becb97d505 100644 (file)
@@ -25,7 +25,7 @@
 # CPU87 board
 #
 
-# This should be equal to the CFG_FLASH_BASE define in configs/cpu87.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in configs/cpu87.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index c7a96f9131bbf382609607842322b36095db469d..057a34c2c325310d333ca5009bffe7bbf86e70ee 100644 (file)
@@ -227,7 +227,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         */
        maxsize = (1 + (~orx | 0x7fff)) / 2;
 
-       /* Since CFG_SDRAM_BASE is always 0 (??), we assume that
+       /* Since CONFIG_SYS_SDRAM_BASE is always 0 (??), we assume that
         * we are configuring CS1 if base != 0
         */
        sdmr_ptr = &memctl->memc_psdmr;
@@ -252,7 +252,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -263,7 +263,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -277,45 +277,45 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong size8, size9, size10;
 #endif
        long psize;
 
        psize = 32 * 1024 * 1024;
 
-       memctl->memc_mptpr = CFG_MPTPR;
-       memctl->memc_psrt = CFG_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                         (uchar *) CFG_SDRAM_BASE);
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR2_9COL,
-                         (uchar *) CFG_SDRAM_BASE);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR2_9COL,
+                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
-       size10 = try_init (memctl, CFG_PSDMR_10COL, CFG_OR2_10COL,
-                         (uchar *) CFG_SDRAM_BASE);
+       size10 = try_init (memctl, CONFIG_SYS_PSDMR_10COL, CONFIG_SYS_OR2_10COL,
+                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
        psize = max(size8,max(size9,size10));
 
        if (psize == size8) {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:8COL) ");
        } else if (psize == size9){
-               psize = try_init (memctl, CFG_PSDMR_9COL, CFG_OR2_9COL,
-                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR2_9COL,
+                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:9COL) ");
        } else
                printf ("(60x:10COL) ");
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -325,7 +325,7 @@ phys_size_t initdram (int board_type)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-       doc_probe (CFG_DOC_BASE);
+       doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
 
index 5dbd4ae07d648f4a6484e78d51f6f09ae94afbb3..45cb853a26afc41bca12dcc25bbf8e8032130f87 100644 (file)
@@ -6,19 +6,19 @@
 #define REG8(x)                        (*(volatile unsigned char *)(x))
 
 /* CPU86 register definitions */
-#define CPU86_VME_EAC          REG8(CFG_BCRS_BASE + 0x00)
-#define CPU86_VME_SAC          REG8(CFG_BCRS_BASE + 0x01)
-#define CPU86_VME_MAC          REG8(CFG_BCRS_BASE + 0x02)
-#define CPU86_BCR              REG8(CFG_BCRS_BASE + 0x03)
-#define CPU86_BSR              REG8(CFG_BCRS_BASE + 0x04)
-#define CPU86_WDOG_RPORT       REG8(CFG_BCRS_BASE + 0x05)
-#define CPU86_MBOX_IRQ         REG8(CFG_BCRS_BASE + 0x04)
-#define CPU86_REV              REG8(CFG_BCRS_BASE + 0x07)
-#define CPU86_VME_IRQMASK      REG8(CFG_BCRS_BASE + 0x80)
-#define CPU86_VME_IRQSTATUS    REG8(CFG_BCRS_BASE + 0x81)
-#define CPU86_LOCAL_IRQMASK    REG8(CFG_BCRS_BASE + 0x82)
-#define CPU86_LOCAL_IRQSTATUS  REG8(CFG_BCRS_BASE + 0x83)
-#define CPU86_PMCL_IRQSTATUS   REG8(CFG_BCRS_BASE + 0x84)
+#define CPU86_VME_EAC          REG8(CONFIG_SYS_BCRS_BASE + 0x00)
+#define CPU86_VME_SAC          REG8(CONFIG_SYS_BCRS_BASE + 0x01)
+#define CPU86_VME_MAC          REG8(CONFIG_SYS_BCRS_BASE + 0x02)
+#define CPU86_BCR              REG8(CONFIG_SYS_BCRS_BASE + 0x03)
+#define CPU86_BSR              REG8(CONFIG_SYS_BCRS_BASE + 0x04)
+#define CPU86_WDOG_RPORT       REG8(CONFIG_SYS_BCRS_BASE + 0x05)
+#define CPU86_MBOX_IRQ         REG8(CONFIG_SYS_BCRS_BASE + 0x04)
+#define CPU86_REV              REG8(CONFIG_SYS_BCRS_BASE + 0x07)
+#define CPU86_VME_IRQMASK      REG8(CONFIG_SYS_BCRS_BASE + 0x80)
+#define CPU86_VME_IRQSTATUS    REG8(CONFIG_SYS_BCRS_BASE + 0x81)
+#define CPU86_LOCAL_IRQMASK    REG8(CONFIG_SYS_BCRS_BASE + 0x82)
+#define CPU86_LOCAL_IRQSTATUS  REG8(CONFIG_SYS_BCRS_BASE + 0x83)
+#define CPU86_PMCL_IRQSTATUS   REG8(CONFIG_SYS_BCRS_BASE + 0x84)
 
 /* Board Control Register bits */
 #define CPU86_BCR_FWPT         0x01
index f7e121f09cf57168871fb95cc4b7ee846bbb9614..c35757b3020b3bd4afd659ecceff9741f0cd49b7 100644 (file)
@@ -28,7 +28,7 @@
 #include <mpc8xx.h>
 #include "cpu87.h"
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  */
@@ -183,7 +183,7 @@ unsigned long flash_init (void)
 
        /* Init: no FLASHes known
         */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -192,8 +192,8 @@ unsigned long flash_init (void)
 
        /* Static FLASH Bank configuration here (only one bank) */
 
-       size_b0 = flash_int_get_size ((ulong *) CFG_FLASH_BASE, &flash_info[0]);
-       size_b1 = flash_amd_get_size ((uchar *) CFG_BOOTROM_BASE, &flash_info[1]);
+       size_b0 = flash_int_get_size ((ulong *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
+       size_b1 = flash_amd_get_size ((uchar *) CONFIG_SYS_BOOTROM_BASE, &flash_info[1]);
 
        if (size_b0 > 0 || size_b1 > 0) {
 
@@ -216,22 +216,22 @@ unsigned long flash_init (void)
        /* protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE >= CFG_BOOTROM_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_BOOTROM_BASE
        if (size_b1) {
-               /* If U-Boot is booted from ROM the CFG_MONITOR_BASE > CFG_FLASH_BASE
+               /* If U-Boot is booted from ROM the CONFIG_SYS_MONITOR_BASE > CONFIG_SYS_FLASH_BASE
                 * but we shouldn't protect it.
                 */
 
                flash_protect  (FLAG_PROTECT_SET,
-                               CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[1]
+                               CONFIG_SYS_MONITOR_BASE,
+                               CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[1]
                );
        }
 #else
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
        );
 #endif
 #endif
@@ -240,7 +240,7 @@ unsigned long flash_init (void)
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
 # endif
-# if CONFIG_ENV_ADDR >= CFG_BOOTROM_BASE
+# if CONFIG_ENV_ADDR >= CONFIG_SYS_BOOTROM_BASE
        if (size_b1) {
                flash_protect (FLAG_PROTECT_SET,
                                CONFIG_ENV_ADDR,
@@ -391,7 +391,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                last  = start;
                addr = (vu_char *)(info->start[l_sect]);
                while ((addr[0] & 0x80) != 0x80) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                return 1;
                        }
@@ -443,7 +443,7 @@ AMD_DONE:
                                last = start;
                                while ((addr[0] & 0x00800080) != 0x00800080 ||
                                   (addr[1] & 0x00800080) != 0x00800080) {
-                                       if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                                       if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                                printf ("Timeout (erase suspended!)\n");
                                                /* Suspend erase
                                                 */
@@ -558,7 +558,7 @@ static int write_word (flash_info_t * info, volatile unsigned long *addr,
 
        start = get_timer (0);
        while ((*addr & 0x00800080) != 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        /* Suspend program
                         */
                        *addr = 0x00B000B0;
@@ -613,7 +613,7 @@ static int write_byte (flash_info_t *info, ulong dest, uchar data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_char *)dest) & 0x80) != (data & 0x80)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 4783d92608b580c087fc37a4bab3380edc18a8da..b5635fbc265874e1739dbb925eaa6b2859d2d63d 100644 (file)
@@ -30,7 +30,7 @@
 #define FLASH_BANK_SIZE 0x400000
 #define MAIN_SECT_SIZE  0x20000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 /*-----------------------------------------------------------------------
@@ -41,15 +41,15 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                        (INTEL_MANUFACT & FLASH_VENDMASK) |
                        (INTEL_ID_28F128J3 & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                switch (i) {
                case 0:
                        flashbase = PHYS_FLASH_1;
@@ -71,8 +71,8 @@ ulong flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -88,7 +88,7 @@ void flash_print_info (flash_info_t * info)
 {
        int i, j;
 
-       for (j = 0; j < CFG_MAX_FLASH_BANKS; j++) {
+       for (j = 0; j < CONFIG_SYS_MAX_FLASH_BANKS; j++) {
                switch (info->flash_id & FLASH_VENDMASK) {
                case (INTEL_MANUFACT & FLASH_VENDMASK):
                        printf ("Intel: ");
@@ -183,7 +183,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                        while ((*addr & 0x80) != 0x80) {
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = 0xB0;   /* suspend erase */
                                        *addr = 0xFF;   /* reset to read mode */
                                        rc = ERR_TIMOUT;
@@ -250,7 +250,7 @@ static int write_word (flash_info_t * info, ulong dest, ushort data)
 
        /* wait while polling the status register */
        while (((val = *addr) & 0x80) != 0x80) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        rc = ERR_TIMOUT;
                        /* suspend program command */
                        *addr = 0xB0;
index 2fd307f1d0e34c072fdaf097b1a84f2daed2ee41..6b5cfb922b5225f3e8642c2a5069adfeef9bd665 100644 (file)
@@ -24,7 +24,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
    .macro CPWAIT reg
@@ -51,98 +51,98 @@ lowlevel_init:
     /* Set up GPIO pins first */
 
    ldr      r0,   =GPSR0
-   ldr      r1,   =CFG_GPSR0_VAL
+   ldr      r1,   =CONFIG_SYS_GPSR0_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPSR1
-   ldr      r1,   =CFG_GPSR1_VAL
+   ldr      r1,   =CONFIG_SYS_GPSR1_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPSR2
-   ldr      r1,   =CFG_GPSR2_VAL
+   ldr      r1,   =CONFIG_SYS_GPSR2_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPCR0
-   ldr      r1,   =CFG_GPCR0_VAL
+   ldr      r1,   =CONFIG_SYS_GPCR0_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPCR1
-   ldr      r1,   =CFG_GPCR1_VAL
+   ldr      r1,   =CONFIG_SYS_GPCR1_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPCR2
-   ldr      r1,   =CFG_GPCR2_VAL
+   ldr      r1,   =CONFIG_SYS_GPCR2_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GRER0
-   ldr      r1,   =CFG_GRER0_VAL
+   ldr      r1,   =CONFIG_SYS_GRER0_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GRER1
-   ldr      r1,   =CFG_GRER1_VAL
+   ldr      r1,   =CONFIG_SYS_GRER1_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GRER2
-   ldr      r1,   =CFG_GRER2_VAL
+   ldr      r1,   =CONFIG_SYS_GRER2_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GFER0
-   ldr      r1,   =CFG_GFER0_VAL
+   ldr      r1,   =CONFIG_SYS_GFER0_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GFER1
-   ldr      r1,   =CFG_GFER1_VAL
+   ldr      r1,   =CONFIG_SYS_GFER1_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GFER2
-   ldr      r1,   =CFG_GFER2_VAL
+   ldr      r1,   =CONFIG_SYS_GFER2_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPDR0
-   ldr      r1,   =CFG_GPDR0_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR0_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPDR1
-   ldr      r1,   =CFG_GPDR1_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR1_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GPDR2
-   ldr      r1,   =CFG_GPDR2_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR2_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GAFR0_L
-   ldr      r1,   =CFG_GAFR0_L_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR0_L_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GAFR0_U
-   ldr      r1,   =CFG_GAFR0_U_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR0_U_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GAFR1_L
-   ldr      r1,   =CFG_GAFR1_L_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR1_L_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GAFR1_U
-   ldr      r1,   =CFG_GAFR1_U_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR1_U_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GAFR2_L
-   ldr      r1,   =CFG_GAFR2_L_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR2_L_VAL
    str      r1,   [r0]
 
    ldr      r0,   =GAFR2_U
-   ldr      r1,   =CFG_GAFR2_U_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR2_U_VAL
    str      r1,   [r0]
 
    /* enable GPIO pins */
    ldr      r0,   =PSSR
-   ldr      r1,   =CFG_PSSR_VAL
+   ldr      r1,   =CONFIG_SYS_PSSR_VAL
    str      r1,   [r0]
 
    SET_LED 1
 
    ldr    r3, =MSC1             /* low - bank 2 Lubbock Registers / SRAM */
-   ldr    r2, =CFG_MSC1_VAL     /* high - bank 3 Ethernet Controller */
+   ldr    r2, =CONFIG_SYS_MSC1_VAL     /* high - bank 3 Ethernet Controller */
    str    r2, [r3]              /* need to set MSC1 before trying to write to the HEX LEDs */
    ldr    r2, [r3]              /* need to read it back to make sure the value latches (see MSC section of manual) */
 
@@ -181,47 +181,47 @@ mem_init:
    @ Step 2a
    @ write msc0, read back to ensure data latches
    @
-   ldr     r2,   =CFG_MSC0_VAL
+   ldr     r2,   =CONFIG_SYS_MSC0_VAL
    str     r2,   [r1, #MSC0_OFFSET]
    ldr     r2,   [r1, #MSC0_OFFSET]
 
    @ write msc1
-   ldr     r2,  =CFG_MSC1_VAL
+   ldr     r2,  =CONFIG_SYS_MSC1_VAL
    str     r2,  [r1, #MSC1_OFFSET]
    ldr     r2,  [r1, #MSC1_OFFSET]
 
    @ write msc2
-   ldr     r2,  =CFG_MSC2_VAL
+   ldr     r2,  =CONFIG_SYS_MSC2_VAL
    str     r2,  [r1, #MSC2_OFFSET]
    ldr     r2,  [r1, #MSC2_OFFSET]
 
    @ Step 2b
    @ write mecr
-   ldr     r2,  =CFG_MECR_VAL
+   ldr     r2,  =CONFIG_SYS_MECR_VAL
    str     r2,  [r1, #MECR_OFFSET]
 
    @ write mcmem0
-   ldr     r2,  =CFG_MCMEM0_VAL
+   ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
    str     r2,  [r1, #MCMEM0_OFFSET]
 
    @ write mcmem1
-   ldr     r2,  =CFG_MCMEM1_VAL
+   ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
    str     r2,  [r1, #MCMEM1_OFFSET]
 
    @ write mcatt0
-   ldr     r2,  =CFG_MCATT0_VAL
+   ldr     r2,  =CONFIG_SYS_MCATT0_VAL
    str     r2,  [r1, #MCATT0_OFFSET]
 
    @ write mcatt1
-   ldr     r2,  =CFG_MCATT1_VAL
+   ldr     r2,  =CONFIG_SYS_MCATT1_VAL
    str     r2,  [r1, #MCATT1_OFFSET]
 
    @ write mcio0
-   ldr     r2,  =CFG_MCIO0_VAL
+   ldr     r2,  =CONFIG_SYS_MCIO0_VAL
    str     r2,  [r1, #MCIO0_OFFSET]
 
    @ write mcio1
-   ldr     r2,  =CFG_MCIO1_VAL
+   ldr     r2,  =CONFIG_SYS_MCIO1_VAL
    str     r2,  [r1, #MCIO1_OFFSET]
 
    /*SET_LED 3 */
@@ -229,14 +229,14 @@ mem_init:
    @ Step 2c
    @ fly-by-dma is defeatured on this part
    @ write flycnfg
-   @ldr     r2,  =CFG_FLYCNFG_VAL
+   @ldr     r2,  =CONFIG_SYS_FLYCNFG_VAL
    @str     r2,  [r1, #FLYCNFG_OFFSET]
 
 /* FIXME Does this sequence really make sense */
 #ifdef REDBOOT_WAY
    @ Step 2d
    @ get the mdrefr settings
-   ldr     r3,  =CFG_MDREFR_VAL
+   ldr     r3,  =CONFIG_SYS_MDREFR_VAL
 
    @ extract DRI field (we need a valid DRI field)
    @
@@ -319,7 +319,7 @@ mem_init:
 #else
    @ Step 2d
    @ get the mdrefr settings
-   ldr     r3,  =CFG_MDREFR_VAL
+   ldr     r3,  =CONFIG_SYS_MDREFR_VAL
 
    @ write back mdrefr
    @
@@ -363,7 +363,7 @@ mem_init:
    @ Step 4d
    @ fetch platform value of mdcnfg
    @
-   ldr     r2,  =CFG_MDCNFG_VAL
+   ldr     r2,  =CONFIG_SYS_MDCNFG_VAL
 
    @ disable all sdram banks
    @
@@ -400,7 +400,7 @@ mem_init:
    @ Access memory *not yet enabled* for CBR refresh cycles (8)
    @ - CBR is generated for all banks
 
-   ldr     r2, =CFG_DRAM_BASE
+   ldr     r2, =CONFIG_SYS_DRAM_BASE
    str     r2, [r2]
    str     r2, [r2]
    str     r2, [r2]
@@ -430,7 +430,7 @@ mem_init:
    @ Step 4h
    @ write mdmrs
    @
-   ldr     r2,  =CFG_MDMRS_VAL
+   ldr     r2,  =CONFIG_SYS_MDMRS_VAL
    str     r2,  [r1, #MDMRS_OFFSET]
 
    @ Done Memory Init
@@ -449,7 +449,7 @@ mem_init:
 
    @ Set interrupt mask register
    @
-   ldr     r1,  =CFG_ICMR_VAL
+   ldr     r1,  =CONFIG_SYS_ICMR_VAL
    ldr     r2,  =ICMR
    str     r1,  [r2]
 
@@ -465,7 +465,7 @@ mem_init:
 
    @ set core clocks
    @
-   ldr     r2,  =CFG_CCCR_VAL
+   ldr     r2,  =CONFIG_SYS_CCCR_VAL
    ldr     r1,  =CCCR
    str     r2,  [r1]
 
@@ -488,7 +488,7 @@ mem_init:
        @ Turn on needed clocks
        @
    ldr     r1,  =CKEN
-   ldr     r2,  =CFG_CKEN_VAL
+   ldr     r2,  =CONFIG_SYS_CKEN_VAL
    str     r2,  [r1]
 
    /*SET_LED 7 */
index 49a9e5e11d0d97fe309f26fb85a1f426712f6f07..2babd2d358ac37dd3534be8d48d4ccb548c900ea 100644 (file)
@@ -139,7 +139,7 @@ int misc_init_r (void)
        struct rtc_time tm;
        char bootcmd[32];
 
-       hdr = (image_header_t *) (CFG_MONITOR_BASE - image_get_header_size ());
+       hdr = (image_header_t *) (CONFIG_SYS_MONITOR_BASE - image_get_header_size ());
 #if defined(CONFIG_FIT)
        if (genimg_get_format ((void *)hdr) != IMAGE_FORMAT_LEGACY) {
                puts ("Non legacy image format not supported\n");
index f3132740e3c0c902e451a0e21b4f21b589be25bb..36d186fb9d264327efa3b2a44b9332b717d89e48 100644 (file)
@@ -43,7 +43,7 @@
 #define FLASH_AM320B    0x0009
 
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -79,7 +79,7 @@ unsigned long flash_init (void)
        }
 
        /* Only one bank */
-       if (CFG_MAX_FLASH_BANKS == 1)
+       if (CONFIG_SYS_MAX_FLASH_BANKS == 1)
          {
            /* Setup offsets */
            flash_get_offsets (FLASH_BASE0_PRELIM, &flash_info[0]);
@@ -253,7 +253,7 @@ int wait_for_DQ7(flash_info_t *info, int sect)
        start = get_timer (0);
     last  = start;
     while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return -1;
        }
@@ -457,7 +457,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
            start = get_timer (0);
            while ((dest2[i] & (FLASH_WORD_SIZE)0x00800080) !=
                   (data2[i] & (FLASH_WORD_SIZE)0x00800080)) {
-             if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+             if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                return (1);
              }
            }
index 2a609094a6d38a27431e673603eccdf2e3b6fe0b..02ded1c45a0d2d97ae33a0cc521dafabeec97285 100644 (file)
@@ -37,7 +37,7 @@
 #define FLASH_BANK_SIZE 0x02000000
 #define MAIN_SECT_SIZE 0x40000         /* 2x16 = 256k per sector */
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 /**
@@ -51,14 +51,14 @@ ulong flash_init(void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
                flash_info[i].flash_id =
                        (INTEL_MANUFACT & FLASH_VENDMASK) |
                        (INTEL_ID_28F128J3 & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
 
                switch (i) {
                case 0:
@@ -76,8 +76,8 @@ ulong flash_init(void)
 
        /* Protect monitor and environment sectors */
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect(FLAG_PROTECT_SET,
@@ -97,7 +97,7 @@ void flash_print_info  (flash_info_t *info)
 {
        int i, j;
 
-       for (j=0; j<CFG_MAX_FLASH_BANKS; j++) {
+       for (j=0; j<CONFIG_SYS_MAX_FLASH_BANKS; j++) {
 
                switch (info->flash_id & FLASH_VENDMASK) {
                case (INTEL_MANUFACT & FLASH_VENDMASK):
@@ -189,7 +189,7 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
                        *addr = 0x00D000D0;     /* erase confirm */
 
                        while ((*addr & 0x00800080) != 0x00800080) {
-                               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = 0x00B000B0; /* suspend erase*/
                                        *addr = 0x00FF00FF; /* read mode    */
                                        rc = ERR_TIMOUT;
@@ -251,7 +251,7 @@ static int write_long (flash_info_t *info, ulong dest, ulong data)
 
        /* wait while polling the status register */
        while(((val = *addr) & 0x00800080) != 0x00800080) {
-               if (get_timer_masked() > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked() > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        rc = ERR_TIMOUT;
                        /* suspend program command */
                        *addr = 0x00B000B0;
index 4c9f10ffbd65bbfb2cde18233b180d845093d749..9892430a1c769fbd57f29c4ec5fe91d996753770 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
    .macro CPWAIT reg
@@ -54,71 +54,71 @@ lowlevel_init:
        /* Set up GPIO pins first ----------------------------------------- */
 
        ldr             r0,     =GPSR0
-       ldr             r1,     =CFG_GPSR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR1
-       ldr             r1,     =CFG_GPSR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR2
-       ldr             r1,     =CFG_GPSR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR0
-       ldr             r1,     =CFG_GPCR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR1
-       ldr             r1,     =CFG_GPCR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR2
-       ldr             r1,     =CFG_GPCR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR0
-       ldr             r1,     =CFG_GPDR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR1
-       ldr             r1,     =CFG_GPDR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR2
-       ldr             r1,     =CFG_GPDR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_L
-       ldr             r1,     =CFG_GAFR0_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_U
-       ldr             r1,     =CFG_GAFR0_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_L
-       ldr             r1,     =CFG_GAFR1_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_U
-       ldr             r1,     =CFG_GAFR1_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_L
-       ldr             r1,     =CFG_GAFR2_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_U
-       ldr             r1,     =CFG_GAFR2_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_U_VAL
        str             r1,   [r0]
 
        ldr     r0,     =PSSR           /* enable GPIO pins */
-       ldr             r1,     =CFG_PSSR_VAL
+       ldr             r1,     =CONFIG_SYS_PSSR_VAL
        str             r1,   [r0]
 
 /*     ldr     r3,     =MSC1           /  low - bank 2 Lubbock Registers / SRAM */
-/*     ldr     r2,     =CFG_MSC1_VAL   /  high - bank 3 Ethernet Controller */
+/*     ldr     r2,     =CONFIG_SYS_MSC1_VAL    /  high - bank 3 Ethernet Controller */
 /*     str     r2,     [r3]            /  need to set MSC1 before trying to write to the HEX LEDs */
 /*     ldr     r2,     [r3]            /  need to read it back to make sure the value latches (see MSC section of manual) */
 /* */
@@ -168,17 +168,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]        /* read back to ensure      */
                                                /* that data latches        */
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
@@ -187,37 +187,37 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
        ldr     r2,     [r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
        ldr     r2,     [r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
        ldr     r2,     [r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
        ldr     r2,     [r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
        ldr     r2,     [r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
        ldr     r2,     [r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
        ldr     r2,     [r1, #MCIO1_OFFSET]
 
@@ -239,7 +239,7 @@ mem_init:
        /* Before accessing MDREFR we need a valid DRI field, so we set     */
        /* this to power on defaults + DRI field.                           */
 
-       ldr     r3,     =CFG_MDREFR_VAL
+       ldr     r3,     =CONFIG_SYS_MDREFR_VAL
        ldr     r2,     =0xFFF
        and     r3,     r3, r2
        ldr     r4,     =0x03ca4000
@@ -269,7 +269,7 @@ mem_init:
        /* Step 4a: assert MDREFR:K?RUN and configure                       */
        /*          MDREFR:K1DB2 and MDREFR:K2DB2 as desired.               */
 
-       ldr     r4,     =CFG_MDREFR_VAL
+       ldr     r4,     =CONFIG_SYS_MDREFR_VAL
        str     r4,     [r1, #MDREFR_OFFSET]    /* write back MDREFR        */
        ldr     r4,     [r1, #MDREFR_OFFSET]
 
@@ -292,7 +292,7 @@ mem_init:
        /* Step 4d: write MDCNFG with MDCNFG:DEx deasserted (set to 0), to  */
        /*          configure but not enable each SDRAM partition pair.     */
 
-       ldr     r4,     =CFG_MDCNFG_VAL
+       ldr     r4,     =CONFIG_SYS_MDCNFG_VAL
        bic     r4,     r4,     #(MDCNFG_DE0|MDCNFG_DE1)
 
        str     r4,     [r1, #MDCNFG_OFFSET]    /* write back MDCNFG        */
@@ -325,7 +325,7 @@ mem_init:
        /*          Jan 2003, Errata #116, page 30.                         */
 
 
-       ldr     r3,     =CFG_DRAM_BASE
+       ldr     r3,     =CONFIG_SYS_DRAM_BASE
        str     r2, [r3]
        str     r2, [r3]
        str     r2, [r3]
@@ -345,7 +345,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
 
index 5a585ae37f79398f65fbfae31c4598c7a2bf6780..11596d2b7e9636b8769eedc28057729ceb9db528 100644 (file)
@@ -51,9 +51,9 @@ uchar pll_fs6377_regs[16] = {
  */
 int pll_init(void)
 {
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
-       return  i2c_write(CFG_I2C_PLL_ADDR, 0, 1,
+       return  i2c_write(CONFIG_SYS_I2C_PLL_ADDR, 0, 1,
                (uchar *) pll_fs6377_regs, sizeof(pll_fs6377_regs));
 }
 
index e00ebf89c15ddb5604227b0be4df380e58e4314e..ab371f20d4b75668d55b8873bd01dc38f95600f2 100644 (file)
@@ -82,11 +82,11 @@ ext_bus_cntlr_init:
        mflr    r3                      /* get address of ..getAddr */
 
        /* Calculate number of cache lines for this function */
-       addi    r4, 0, (((.Lfe0 - ..getAddr) / CFG_CACHELINE_SIZE) + 2)
+       addi    r4, 0, (((.Lfe0 - ..getAddr) / CONFIG_SYS_CACHELINE_SIZE) + 2)
        mtctr   r4
 ..ebcloop:
        icbt    r0, r3                  /* prefetch cache line for addr in r3*/
-       addi    r3, r3, CFG_CACHELINE_SIZE /* move to next cache line */
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE /* move to next cache line */
        bdnz    ..ebcloop               /* continue for $CTR cache lines */
 
        /********************************************************************
index aec42a14b97664e5ebba5af821b4a8ade2562df0..4b6958aefc0817bcf07b57b7cf2b43df998369f1 100644 (file)
@@ -82,11 +82,11 @@ ext_bus_cntlr_init:
        mflr    r3                      /* get address of ..getAddr */
 
        /* Calculate number of cache lines for this function */
-       addi    r4, 0, (((.Lfe0 - ..getAddr) / CFG_CACHELINE_SIZE) + 2)
+       addi    r4, 0, (((.Lfe0 - ..getAddr) / CONFIG_SYS_CACHELINE_SIZE) + 2)
        mtctr   r4
 ..ebcloop:
        icbt    r0, r3                  /* prefetch cache line for addr in r3*/
-       addi    r3, r3, CFG_CACHELINE_SIZE /* move to next cache line */
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE /* move to next cache line */
        bdnz    ..ebcloop               /* continue for $CTR cache lines */
 
        /********************************************************************
index 0fd4223e902df01ff69d683614e47e494f5726c8..720c56fc083b4be1ed213f0ac31c3cbd097913e5 100644 (file)
@@ -53,7 +53,7 @@ phys_size_t initdram(int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
index 6fe2978c209a374667fc6767f0dd28ae6e6c6d6b..bd0f8d326213661fa82e4dd038f732ccbb353854 100644 (file)
@@ -27,7 +27,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -43,7 +43,7 @@
 
 #define BOARD_CTRL_REG 0xFE800013
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static int write_data (flash_info_t *info, ulong dest, ulong *data);
 static void write_via_fpu(vu_long *addr, ulong *data);
@@ -75,8 +75,8 @@ unsigned long flash_init(void)
     *bcr |= 0x6;       /* FWP0 = FWP1 = 1 */
     DEBUGF("Write protect is:  0x%02X\n", *bcr);
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
-       vu_long *addr = (vu_long *)(CFG_FLASH_BASE + i * FLASH_BANK_SIZE);
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
+       vu_long *addr = (vu_long *)(CONFIG_SYS_FLASH_BASE + i * FLASH_BANK_SIZE);
 
        addr[0] = 0x00900090;
 
@@ -103,15 +103,15 @@ unsigned long flash_init(void)
        addr[0] = 0xFFFFFFFF;
 
        flash_info[i].size = FLASH_BANK_SIZE;
-       flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-       memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+       flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+       memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
        for (j = 0; j < flash_info[i].sector_count; j++) {
                if (j <= 7) {
-                       flash_info[i].start[j] = CFG_FLASH_BASE +
+                       flash_info[i].start[j] = CONFIG_SYS_FLASH_BASE +
                                                 i * FLASH_BANK_SIZE +
                                                 j * PARAM_SECT_SIZE;
                } else {
-                       flash_info[i].start[j] = CFG_FLASH_BASE +
+                       flash_info[i].start[j] = CONFIG_SYS_FLASH_BASE +
                                                 i * FLASH_BANK_SIZE +
                                                 (j - 7)*MAIN_SECT_SIZE;
                }
@@ -121,22 +121,22 @@ unsigned long flash_init(void)
 
     /* Protect monitor and environment sectors
      */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE + FLASH_BANK_SIZE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE + FLASH_BANK_SIZE
     flash_protect(FLAG_PROTECT_SET,
-             CFG_MONITOR_BASE,
-             CFG_MONITOR_BASE + monitor_flash_len - 1,
+             CONFIG_SYS_MONITOR_BASE,
+             CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
              &flash_info[1]);
 #else
     flash_protect(FLAG_PROTECT_SET,
-             CFG_MONITOR_BASE,
-             CFG_MONITOR_BASE + monitor_flash_len - 1,
+             CONFIG_SYS_MONITOR_BASE,
+             CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
              &flash_info[0]);
 #endif
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
-#if CONFIG_ENV_ADDR >= CFG_FLASH_BASE + FLASH_BANK_SIZE
+#if CONFIG_ENV_ADDR >= CONFIG_SYS_FLASH_BASE + FLASH_BANK_SIZE
     flash_protect(FLAG_PROTECT_SET,
              CONFIG_ENV_ADDR,
              CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1,
@@ -268,7 +268,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        while (((addr[0] & 0x00800080) != 0x00800080) ||
                               ((addr[1] & 0x00800080) != 0x00800080) ) {
                                if ((now=get_timer(start)) >
-                                          CFG_FLASH_ERASE_TOUT) {
+                                          CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        addr[0] = 0x00B000B0; /* suspend erase */
                                        addr[0] = 0x00FF00FF; /* to read mode  */
@@ -452,7 +452,7 @@ static int write_data (flash_info_t *info, ulong dest, ulong *data)
 
        while (((addr[0] & 0x00800080) != 0x00800080) ||
               ((addr[1] & 0x00800080) != 0x00800080) ) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        addr[0] = 0x00FF00FF;   /* restore read mode */
                        return (1);
                }
index ad67e865b380942f14981e24b58eaceb31741176..bb892e6700b79fea3e7cbfa4982c01062c03cfbc 100644 (file)
@@ -41,19 +41,19 @@ static void flash_get_offsets (ulong base, flash_info_t * info);
 unsigned long flash_init (void)
 {
 #ifdef __DEBUG_START_FROM_SRAM__
-       return CFG_DUMMY_FLASH_SIZE;
+       return CONFIG_SYS_DUMMY_FLASH_SIZE;
 #else
        unsigned long size_b0;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here - FIXME XXX */
 
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index c715ad414a56a6a8f3dcfb483e5374c1249b5803..a6aa6554b95a21edbb61ef94dfa23518bbcdc8a6 100644 (file)
@@ -38,8 +38,8 @@ int gunzip(void *, int, unsigned char *, unsigned long *);
 
 int board_early_init_f (void)
 {
-       out32(GPIO0_OR, CFG_NAND0_CE);                 /* set initial outputs     */
-       out32(GPIO0_OR, CFG_NAND1_CE);                 /* set initial outputs     */
+       out32(GPIO0_OR, CONFIG_SYS_NAND0_CE);                 /* set initial outputs     */
+       out32(GPIO0_OR, CONFIG_SYS_NAND1_CE);                 /* set initial outputs     */
 
        /*
         * IRQ 0-15  405GP internally generated; active high; level sensitive
@@ -85,10 +85,10 @@ int misc_init_r (void)
 {
        /* adjust flash start and size as well as the offset */
        gd->bd->bi_flashstart = 0 - flash_info[0].size;
-       gd->bd->bi_flashoffset= flash_info[0].size - CFG_MONITOR_LEN;
+       gd->bd->bi_flashoffset= flash_info[0].size - CONFIG_SYS_MONITOR_LEN;
 #if 0
        volatile unsigned short *fpga_mode =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
        volatile unsigned char *duart0_mcr =
                (unsigned char *)((ulong)DUART0_BA + 4);
        volatile unsigned char *duart1_mcr =
@@ -103,8 +103,8 @@ int misc_init_r (void)
        int i;
        unsigned long cntrl0Reg;
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
@@ -168,7 +168,7 @@ int misc_init_r (void)
        /*
         * Enable power on PS/2 interface
         */
-       *fpga_mode |= CFG_FPGA_CTRL_PS2_RESET;
+       *fpga_mode |= CONFIG_SYS_FPGA_CTRL_PS2_RESET;
 
        /*
         * Enable interrupts in exar duart mcr[3]
index 692d275a59eca43dfd36e9ec2fa0a124ae6c176e..e5a0d3d17e2214facd7aaaba3700744c3980363f 100644 (file)
@@ -42,7 +42,7 @@ static void flash_get_offsets (ulong base, flash_info_t * info);
 unsigned long flash_init (void)
 {
 #ifdef __DEBUG_START_FROM_SRAM__
-       return CFG_DUMMY_FLASH_SIZE;
+       return CONFIG_SYS_DUMMY_FLASH_SIZE;
 #else
        unsigned long size;
        int i;
@@ -54,7 +54,7 @@ unsigned long flash_init (void)
        debug("[%s, %d] flash_info = 0x%08X ...\n", __FUNCTION__, __LINE__, flash_info);
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -102,7 +102,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 3ccbf650db40a981860ded66ee28d107fb2899a8..14b61a4eb3d57db1dac50ca92187e09b9b716fbf 100644 (file)
@@ -67,11 +67,11 @@ static int ppchameleonevb_device_ready(struct mtd_info *mtdinfo)
 
        /* use the base addr to find out which chip are we dealing with */
        switch((ulong) this->IO_ADDR_W) {
-       case CFG_NAND0_BASE:
-               rb_gpio_pin = CFG_NAND0_RDY;
+       case CONFIG_SYS_NAND0_BASE:
+               rb_gpio_pin = CONFIG_SYS_NAND0_RDY;
                break;
-       case CFG_NAND1_BASE:
-               rb_gpio_pin = CFG_NAND1_RDY;
+       case CONFIG_SYS_NAND1_BASE:
+               rb_gpio_pin = CONFIG_SYS_NAND1_RDY;
                break;
        default: /* this should never happen */
                return 0;
index e42c76f8863eebb2435888a3b3ff4f91d1192a54..ed02cef81286aa9c8f4b9b185a55dca801ec8819 100644 (file)
@@ -143,7 +143,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
   . = 0xFFFF8000;
   .ppcenv :
   {
index bf0f2bf282fd9fc5accf51e5876bdf1e729cc77b..b6af63b3b9326398d0b18cb0fecb9b53b5659827 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <asm/processor.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -162,7 +162,7 @@ void flash_print_info  (flash_info_t *info)
 
        printf ("  Sector Start Addresses:");
        for (i=0; i<info->sector_count; ++i) {
-#ifdef CFG_FLASH_EMPTY_INFO
+#ifdef CONFIG_SYS_FLASH_EMPTY_INFO
                /*
                 * Check if whole sector is erased
                 */
@@ -216,30 +216,30 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 {
        short i;
        short n;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong)addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *)addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)addr;
 
        debug("[%s, %d] Entering ...\n", __FUNCTION__, __LINE__);
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00900090;
 
-       value = addr2[CFG_FLASH_READ0];
+       value = addr2[CONFIG_SYS_FLASH_READ0];
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_WORD_SIZE)FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_WORD_SIZE)SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_WORD_SIZE)STM_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)STM_MANUFACT:
                info->flash_id = FLASH_MAN_STM;
                break;
        default:
@@ -249,92 +249,92 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
                return (0);                     /* no or unknown flash  */
        }
 
-       value = addr2[CFG_FLASH_READ1];         /* device ID            */
+       value = addr2[CONFIG_SYS_FLASH_READ1];          /* device ID            */
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400T:
                info->flash_id += FLASH_AM400T;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400B:
                info->flash_id += FLASH_AM400B;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800T:
                info->flash_id += FLASH_AM800T;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800B:
                info->flash_id += FLASH_AM800B;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160T:
                info->flash_id += FLASH_AM160T;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160B:
                info->flash_id += FLASH_AM160B;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)STM_ID_29W320DT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)STM_ID_29W320DT:
                info->flash_id += FLASH_STMW320DT;
                info->sector_count = 67;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320T:
                info->flash_id += FLASH_AM320T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320B:
                info->flash_id += FLASH_AM320B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322T:
                info->flash_id += FLASH_AMDL322T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322B:
                info->flash_id += FLASH_AMDL322B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323T:
                info->flash_id += FLASH_AMDL323T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323B:
                info->flash_id += FLASH_AMDL323B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV640U:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV640U:
                info->flash_id += FLASH_AM640U;
                info->sector_count = 128;
                info->size = 0x00800000;  break;        /* => 8 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF800A:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF800A:
                info->flash_id += FLASH_SST800A;
                info->sector_count = 16;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF160A:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF160A:
                info->flash_id += FLASH_SST160A;
                info->sector_count = 32;
                info->size = 0x00200000;
@@ -432,19 +432,19 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST)
                  info->protect[i] = 0;
                else
-                 info->protect[i] = addr2[CFG_FLASH_READ2] & 1;
+                 info->protect[i] = addr2[CONFIG_SYS_FLASH_READ2] & 1;
        }
 
        /*
         * Prevent writes to uninitialized FLASH.
         */
        if (info->flash_id != FLASH_UNKNOWN) {
-               addr2 = (CFG_FLASH_WORD_SIZE *)info->start[0];
-               *addr2 = (CFG_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
+               addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+               *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;        /* reset bank */
        }
 
        return (info->size);
@@ -456,8 +456,8 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 
 int    flash_erase (flash_info_t *info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        ulong start, now, last;
        int i;
@@ -498,25 +498,25 @@ int       flash_erase (flash_info_t *info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect<=s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                   addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[sect]);
+                   addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[sect]);
                    if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                       addr2[0] = (CFG_FLASH_WORD_SIZE)0x00500050;  /* block erase */
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00500050;  /* block erase */
                        for (i=0; i<50; i++)
                          udelay(1000);  /* wait 1 ms */
                    } else {
                        if (sect == s_first) {
-                           addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                           addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                           addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                           addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                           addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
+                           addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                           addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                           addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                           addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                           addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
                        }
-                       addr2[0] = (CFG_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
+                       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
                    }
                    l_sect = sect;
                }
@@ -537,9 +537,9 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 
        start = get_timer (0);
        last  = start;
-       addr = (CFG_FLASH_WORD_SIZE *)(info->start[l_sect]);
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE)0x00800080) != (CFG_FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[l_sect]);
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) != (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -552,8 +552,8 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 
 DONE:
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *)info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE)0x00F000F0;      /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
 
        printf (" done\n");
        return 0;
@@ -663,9 +663,9 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
  */
 static int write_word (flash_info_t *info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *)dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *)&data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *)dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *)&data;
        ulong start;
        int flag;
        int i;
@@ -677,11 +677,11 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts();
 
-       for (i=0; i<4/sizeof(CFG_FLASH_WORD_SIZE); i++)
+       for (i=0; i<4/sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++)
          {
-           addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-           addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-           addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00A000A0;
+           addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+           addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+           addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00A000A0;
 
            dest2[i] = data2[i];
 
@@ -691,9 +691,9 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
 
            /* data polling for D7 */
            start = get_timer (0);
-           while ((dest2[i] & (CFG_FLASH_WORD_SIZE)0x00800080) !=
-                  (data2[i] & (CFG_FLASH_WORD_SIZE)0x00800080)) {
-             if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+           while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) !=
+                  (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080)) {
+             if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                return (1);
              }
            }
index 5b5b5e9d2e6b467fcbee9616408f67165ad3c8f7..30bc196267dc52a8f58e37f50312648d71790133 100644 (file)
 
 #define MAX_ONES               226
 
-#ifdef CFG_FPGA_PRG
-# define FPGA_PRG              CFG_FPGA_PRG /* FPGA program pin (ppc output)*/
-# define FPGA_CLK              CFG_FPGA_CLK /* FPGA clk pin (ppc output)    */
-# define FPGA_DATA             CFG_FPGA_DATA /* FPGA data pin (ppc output)  */
-# define FPGA_DONE             CFG_FPGA_DONE /* FPGA done pin (ppc input)   */
-# define FPGA_INIT             CFG_FPGA_INIT /* FPGA init pin (ppc input)   */
+#ifdef CONFIG_SYS_FPGA_PRG
+# define FPGA_PRG              CONFIG_SYS_FPGA_PRG /* FPGA program pin (ppc output)*/
+# define FPGA_CLK              CONFIG_SYS_FPGA_CLK /* FPGA clk pin (ppc output)    */
+# define FPGA_DATA             CONFIG_SYS_FPGA_DATA /* FPGA data pin (ppc output)  */
+# define FPGA_DONE             CONFIG_SYS_FPGA_DONE /* FPGA done pin (ppc input)   */
+# define FPGA_INIT             CONFIG_SYS_FPGA_INIT /* FPGA init pin (ppc input)   */
 #else
 # define FPGA_PRG              0x04000000  /* FPGA program pin (ppc output) */
 # define FPGA_CLK              0x02000000  /* FPGA clk pin (ppc output)     */
@@ -74,7 +74,7 @@ static int fpga_boot (unsigned char *fpgadata, int size)
        int i, index, len;
        int count;
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        int j;
 #else
        unsigned char b;
@@ -89,7 +89,7 @@ static int fpga_boot (unsigned char *fpgadata, int size)
                index += len + 3;
        }
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        /* search for preamble 0xFFFFFFFF */
        while (1) {
                if ((fpgadata[index] == 0xff) && (fpgadata[index + 1] == 0xff)
@@ -167,7 +167,7 @@ static int fpga_boot (unsigned char *fpgadata, int size)
        DBG ("write configuration data into fpga\n");
        /* write configuration-data into fpga... */
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        /*
         * Load uncompressed image into fpga
         */
@@ -181,7 +181,7 @@ static int fpga_boot (unsigned char *fpgadata, int size)
                        fpgadata[i] <<= 1;
                }
        }
-#else  /* ! CFG_FPGA_SPARTAN2 */
+#else  /* ! CONFIG_SYS_FPGA_SPARTAN2 */
        /* send 0xff 0x20 */
        FPGA_WRITE_1;
        FPGA_WRITE_1;
@@ -228,7 +228,7 @@ static int fpga_boot (unsigned char *fpgadata, int size)
                        FPGA_WRITE_1;
                }
        }
-#endif /* CFG_FPGA_SPARTAN2 */
+#endif /* CONFIG_SYS_FPGA_SPARTAN2 */
 
        DBG ("%s, ",
             ((in32 (GPIO0_IR) & FPGA_DONE) == 0) ? "NOT DONE" : "DONE");
index f8f180c6c4f4ae964a388386de3877c6912d1796..ec0d76125ed3ff83ae1f7dc5d25daecf57c89433 100644 (file)
@@ -119,24 +119,24 @@ static void pci_dasa_sim_config_pci9054(struct pci_controller *hose, pci_dev_t d
   /*
    * Configure PLX PCI9054
    */
-  pci_read_config_word(CFG_PCI9054_DEV_FN, PCI_COMMAND, &status);
+  pci_read_config_word(CONFIG_SYS_PCI9054_DEV_FN, PCI_COMMAND, &status);
   status |= PCI_COMMAND_MASTER | PCI_COMMAND_IO | PCI_COMMAND_MEMORY;
-  pci_write_config_word(CFG_PCI9054_DEV_FN, PCI_COMMAND, status);
+  pci_write_config_word(CONFIG_SYS_PCI9054_DEV_FN, PCI_COMMAND, status);
 
   /* Check the latency timer for values >= 0x60.
    */
-  pci_read_config_byte(CFG_PCI9054_DEV_FN, PCI_LATENCY_TIMER, &timer);
+  pci_read_config_byte(CONFIG_SYS_PCI9054_DEV_FN, PCI_LATENCY_TIMER, &timer);
   if (timer < 0x60)
     {
-      pci_write_config_byte(CFG_PCI9054_DEV_FN, PCI_LATENCY_TIMER, 0x60);
+      pci_write_config_byte(CONFIG_SYS_PCI9054_DEV_FN, PCI_LATENCY_TIMER, 0x60);
     }
 
   /* Set I/O base register.
    */
-  pci_write_config_dword(CFG_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, CFG_PCI9054_IOBASE);
-  pci_read_config_dword(CFG_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, &iobase);
+  pci_write_config_dword(CONFIG_SYS_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, CONFIG_SYS_PCI9054_IOBASE);
+  pci_read_config_dword(CONFIG_SYS_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, &iobase);
 
-  pci9054_iobase = pci_mem_to_phys(CFG_PCI9054_DEV_FN, iobase & PCI_BASE_ADDRESS_MEM_MASK);
+  pci9054_iobase = pci_mem_to_phys(CONFIG_SYS_PCI9054_DEV_FN, iobase & PCI_BASE_ADDRESS_MEM_MASK);
 
   if (pci9054_iobase == 0xffffffff)
     {
@@ -149,13 +149,13 @@ static void pci_dasa_sim_config_pci9054(struct pci_controller *hose, pci_dev_t d
 static struct pci_config_table pci9054_config_table[] = {
 #ifndef CONFIG_PCI_PNP
   { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
-    PCI_BUS(CFG_ETH_DEV_FN), PCI_DEV(CFG_ETH_DEV_FN), PCI_FUNC(CFG_ETH_DEV_FN),
-    pci_cfgfunc_config_device, { CFG_ETH_IOBASE,
-                                CFG_ETH_IOBASE,
+    PCI_BUS(CONFIG_SYS_ETH_DEV_FN), PCI_DEV(CONFIG_SYS_ETH_DEV_FN), PCI_FUNC(CONFIG_SYS_ETH_DEV_FN),
+    pci_cfgfunc_config_device, { CONFIG_SYS_ETH_IOBASE,
+                                CONFIG_SYS_ETH_IOBASE,
                                 PCI_COMMAND_IO | PCI_COMMAND_MASTER }},
 #ifdef CONFIG_DASA_SIM
   { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
-    PCI_BUS(CFG_PCI9054_DEV_FN), PCI_DEV(CFG_PCI9054_DEV_FN), PCI_FUNC(CFG_PCI9054_DEV_FN),
+    PCI_BUS(CONFIG_SYS_PCI9054_DEV_FN), PCI_DEV(CONFIG_SYS_PCI9054_DEV_FN), PCI_FUNC(CONFIG_SYS_PCI9054_DEV_FN),
     pci_dasa_sim_config_pci9054 },
 #endif
 #endif
index 71a3b87acf5f01f84056486dab74c3f0760a44de..be709bf81e9046c74331911644f6c8a37c5687b7 100644 (file)
@@ -39,7 +39,7 @@ int dram_init(void)
 
 static int dv_get_pllm_output(uint32_t pllm)
 {
-       return (pllm + 1) * (CFG_HZ_CLOCK / 1000000);
+       return (pllm + 1) * (CONFIG_SYS_HZ_CLOCK / 1000000);
 }
 
 void dv_display_clk_infos(void)
@@ -54,9 +54,9 @@ void dv_display_clk_infos(void)
  */
 int dvevm_read_mac_address(uint8_t *buf)
 {
-#ifdef CFG_I2C_EEPROM_ADDR
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR
        /* Read MAC address. */
-       if (i2c_read(CFG_I2C_EEPROM_ADDR, 0x7F00, CFG_I2C_EEPROM_ADDR_LEN,
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0x7F00, CONFIG_SYS_I2C_EEPROM_ADDR_LEN,
                     (uint8_t *) &buf[0], 6))
                goto i2cerr;
 
@@ -67,9 +67,9 @@ int dvevm_read_mac_address(uint8_t *buf)
        return 1; /* Found */
 
 i2cerr:
-       printf("Read from EEPROM @ 0x%02x failed\n", CFG_I2C_EEPROM_ADDR);
+       printf("Read from EEPROM @ 0x%02x failed\n", CONFIG_SYS_I2C_EEPROM_ADDR);
 err:
-#endif /* CFG_I2C_EEPROM_ADDR */
+#endif /* CONFIG_SYS_I2C_EEPROM_ADDR */
 
        return 0;
 }
index 00dc07c3f6fcd40e5eeda3167c68d1c576f3f34b..d538d51f2a92a40dc6852ec20456b4cca8c8af9a 100644 (file)
@@ -81,7 +81,7 @@ void lpsc_on(unsigned int id)
 }
 
 /* If DSPLINK is used, we don't want U-Boot to power on the DSP. */
-#if !defined(CFG_USE_DSPLINK)
+#if !defined(CONFIG_SYS_USE_DSPLINK)
 void dsp_on(void)
 {
        int i;
@@ -114,4 +114,4 @@ void dsp_on(void)
 
        REG(PSC_GBLCTL) &= ~0x1f;
 }
-#endif /* CFG_USE_DSPLINK */
+#endif /* CONFIG_SYS_USE_DSPLINK */
index 151f8a9007f96a1309e8fcde798d88baea9326bf..abf60b35b085a032c1a4d98c50a97ef9c5498f1f 100644 (file)
@@ -53,10 +53,10 @@ int board_init(void)
        lpsc_on(DAVINCI_LPSC_TIMER1);
        lpsc_on(DAVINCI_LPSC_GPIO);
 
-#if !defined(CFG_USE_DSPLINK)
+#if !defined(CONFIG_SYS_USE_DSPLINK)
        /* Powerup the DSP */
        dsp_on();
-#endif /* CFG_USE_DSPLINK */
+#endif /* CONFIG_SYS_USE_DSPLINK */
 
        /* Bringup UART0 out of reset */
        REG(UART0_PWREMU_MGMT) = 0x0000e003;
index 99fd32629ff757680765a97fa688fda57142d2f4..3504a2ec19fa1d1a2ffc311f25e4bf183f5817cb 100644 (file)
@@ -53,10 +53,10 @@ int board_init(void)
        lpsc_on(DAVINCI_LPSC_TIMER1);
        lpsc_on(DAVINCI_LPSC_GPIO);
 
-#if !defined(CFG_USE_DSPLINK)
+#if !defined(CONFIG_SYS_USE_DSPLINK)
        /* Powerup the DSP */
        dsp_on();
-#endif /* CFG_USE_DSPLINK */
+#endif /* CONFIG_SYS_USE_DSPLINK */
 
        /* Bringup UART0 out of reset */
        REG(UART0_PWREMU_MGMT) = 0x0000e003;
@@ -125,13 +125,13 @@ int misc_init_r(void)
        dv_display_clk_infos();
 
        /* Set serial number from UID chip */
-       if (i2c_read(CFG_UID_ADDR, 0, 1, buf, 8)) {
-               printf("\nUID @ 0x%02x read FAILED!!!\n", CFG_UID_ADDR);
+       if (i2c_read(CONFIG_SYS_UID_ADDR, 0, 1, buf, 8)) {
+               printf("\nUID @ 0x%02x read FAILED!!!\n", CONFIG_SYS_UID_ADDR);
                forceenv("serial#", "FAILED");
        } else {
                if (buf[0] != 0x70) {
                        /* Device Family Code */
-                       printf("\nUID @ 0x%02x read FAILED!!!\n", CFG_UID_ADDR);
+                       printf("\nUID @ 0x%02x read FAILED!!!\n", CONFIG_SYS_UID_ADDR);
                        forceenv("serial#", "FAILED");
                }
        }
@@ -141,7 +141,7 @@ int misc_init_r(void)
                tmp[0] = crc_tbl[tmp[0] ^ buf[i]];
 
        if (tmp[0] != 0) {
-               printf("\nUID @ 0x%02x - BAD CRC!!!\n", CFG_UID_ADDR);
+               printf("\nUID @ 0x%02x - BAD CRC!!!\n", CONFIG_SYS_UID_ADDR);
                forceenv("serial#", "FAILED");
        } else {
                /* CRC OK, set "serial" env variable */
index 6e878eb5722e55dffefbf91605b76be1b4f57f7f..9296d7b634bb57fe58aa65765b88f72c969c56cc 100644 (file)
@@ -63,10 +63,10 @@ int board_init(void)
        lpsc_on(DAVINCI_LPSC_TIMER1);
        lpsc_on(DAVINCI_LPSC_GPIO);
 
-#if !defined(CFG_USE_DSPLINK)
+#if !defined(CONFIG_SYS_USE_DSPLINK)
        /* Powerup the DSP */
        dsp_on();
-#endif /* CFG_USE_DSPLINK */
+#endif /* CONFIG_SYS_USE_DSPLINK */
 
        /* Bringup UART0 out of reset */
        REG(UART0_PWREMU_MGMT) = 0x0000e003;
@@ -99,35 +99,35 @@ static int sffsdr_read_mac_address(uint8_t *buf)
        u_int32_t value, mac[2], address;
 
        /* Read Integrity data structure checkword. */
-       if (i2c_read(CFG_I2C_EEPROM_ADDR, INTEGRITY_CHECKWORD_OFFSET,
-                    CFG_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, INTEGRITY_CHECKWORD_OFFSET,
+                    CONFIG_SYS_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
                goto err;
        if (value != INTEGRITY_CHECKWORD_VALUE)
                return 0;
 
        /* Read SYSCFG structure offset. */
-       if (i2c_read(CFG_I2C_EEPROM_ADDR, INTEGRITY_SYSCFG_OFFSET,
-                    CFG_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, INTEGRITY_SYSCFG_OFFSET,
+                    CONFIG_SYS_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
                goto err;
        address = 0x800 + (int) value; /* Address of SYSCFG structure. */
 
        /* Read NET CONFIG structure offset. */
-       if (i2c_read(CFG_I2C_EEPROM_ADDR, address,
-                    CFG_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, address,
+                    CONFIG_SYS_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
                goto err;
        address = 0x800 + (int) value; /* Address of NET CONFIG structure. */
        address += 12; /* Address of NET INTERFACE CONFIG structure. */
 
        /* Read NET INTERFACE CONFIG 2 structure offset. */
-       if (i2c_read(CFG_I2C_EEPROM_ADDR, address,
-                    CFG_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, address,
+                    CONFIG_SYS_I2C_EEPROM_ADDR_LEN, (uint8_t *) &value, 4))
                goto err;
        address = 0x800 + 16 + (int) value;     /* Address of NET INTERFACE
                                                 * CONFIG 2 structure. */
 
        /* Read MAC address. */
-       if (i2c_read(CFG_I2C_EEPROM_ADDR, address,
-                    CFG_I2C_EEPROM_ADDR_LEN, (uint8_t *) &mac[0], 8))
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, address,
+                    CONFIG_SYS_I2C_EEPROM_ADDR_LEN, (uint8_t *) &mac[0], 8))
                goto err;
 
        buf[0] = mac[0] >> 24;
@@ -140,7 +140,7 @@ static int sffsdr_read_mac_address(uint8_t *buf)
        return 1; /* Found */
 
 err:
-       printf("Read from EEPROM @ 0x%02x failed\n", CFG_I2C_EEPROM_ADDR);
+       printf("Read from EEPROM @ 0x%02x failed\n", CONFIG_SYS_I2C_EEPROM_ADDR);
        return 0;
 }
 
@@ -156,10 +156,10 @@ int misc_init_r(void)
        dv_display_clk_infos();
 
        /* Configure I2C switch (PCA9543) to enable channel 0. */
-       i2cbuf = CFG_I2C_PCA9543_ENABLE_CH0;
-       if (i2c_write(CFG_I2C_PCA9543_ADDR, 0,
-                     CFG_I2C_PCA9543_ADDR_LEN, &i2cbuf, 1)) {
-               printf("Write to MUX @ 0x%02x failed\n", CFG_I2C_PCA9543_ADDR);
+       i2cbuf = CONFIG_SYS_I2C_PCA9543_ENABLE_CH0;
+       if (i2c_write(CONFIG_SYS_I2C_PCA9543_ADDR, 0,
+                     CONFIG_SYS_I2C_PCA9543_ADDR_LEN, &i2cbuf, 1)) {
+               printf("Write to MUX @ 0x%02x failed\n", CONFIG_SYS_I2C_PCA9543_ADDR);
                return 1;
        }
 
index a6fe82593a3de2adc78edd02b03b7cbf4e119d3e..6de9356c743b79805c7f43f272b11e560faa6150 100644 (file)
@@ -52,10 +52,10 @@ int board_init(void)
        lpsc_on(DAVINCI_LPSC_TIMER1);
        lpsc_on(DAVINCI_LPSC_GPIO);
 
-#if !defined(CFG_USE_DSPLINK)
+#if !defined(CONFIG_SYS_USE_DSPLINK)
        /* Powerup the DSP */
        dsp_on();
-#endif /* CFG_USE_DSPLINK */
+#endif /* CONFIG_SYS_USE_DSPLINK */
 
        /* Bringup UART0 out of reset */
        REG(UART0_PWREMU_MGMT) = 0x0000e003;
index 629dc317e090589b1d193ceb8cf5fb4019ef7c2c..42756f5b822e7be307f247558bf2f6ada992c91c 100644 (file)
@@ -106,19 +106,19 @@ int checkboard (void)
        /* We dont need theese unless we run whole pcmcia package */
        write_one_tlb(20,                 /* index */
                      0x01ffe000,         /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_IO_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_IO_BASE, /* Hi */
                      0x3C000017,         /* Lo0 */
                      0x3C200017);        /* Lo1 */
 
        write_one_tlb(21,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_ATTR_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_ATTR_BASE, /* Hi */
                      0x3D000017,           /* Lo0 */
                      0x3D200017);          /* Lo1 */
 #endif /* 0 */
        write_one_tlb(22,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_MEM_ADDR,  /* Hi */
+                     CONFIG_SYS_PCMCIA_MEM_ADDR,  /* Hi */
                      0x3E000017,           /* Lo0 */
                      0x3E200017);          /* Lo1 */
 #endif /* CONFIG_IDE_PCMCIA */
index 3cf29e844bc61a8193fd0732f6ced274a23d5fe8..a2fed1d713e7cb08713f056168b700538b4c102c 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * flash_init()
index 13e6bfcf3327948dbbf4e43b83740de5e11fed4d..842fb76e5873e768d0a11b518ecb0aa3a4cacf8a 100644 (file)
@@ -8,8 +8,8 @@
 #define AU1500_SYS_ADDR                0xB1900000
 #define sys_endian             0x0038
 #define CP0_Config0            $16
-#define CPU_SCALE              ((CFG_MHZ) / 12) /* CPU clock is a multiple of 12 MHz */
-#define MEM_1MS                        ((CFG_MHZ) * 1000)
+#define CPU_SCALE              ((CONFIG_SYS_MHZ) / 12) /* CPU clock is a multiple of 12 MHz */
+#define MEM_1MS                        ((CONFIG_SYS_MHZ) * 1000)
 
        .text
        .set noreorder
index 6e227748b0168bbc687fa07ba2bf86a6a2bb6b8f..878416f73dc01b50eeef9ab49b480459512ca74e 100644 (file)
@@ -304,8 +304,8 @@ static void init_DA9030()
        GPCR0 = (1<<17);        /* drive GPIO17 low */
        GPSR0 = (1<<17);        /* drive GPIO17 high */
 
-#if CFG_DA9030_EXTON_DELAY
-       udelay((unsigned long) CFG_DA9030_EXTON_DELAY); /* wait for DA9030 */
+#if CONFIG_SYS_DA9030_EXTON_DELAY
+       udelay((unsigned long) CONFIG_SYS_DA9030_EXTON_DELAY);  /* wait for DA9030 */
 #endif
        GPCR0 = (1<<17);        /* drive GPIO17 low */
 
index f059db5059be45a027c14365e3db342ccd638f6c..eef631854f57d6feb98521e22af3e20199625ced 100644 (file)
@@ -24,7 +24,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 .macro wait time
        ldr             r2, =OSCR
@@ -108,10 +108,10 @@ mem_init:
        orr             r1, r1, #MDCNFG_DMCEN
        str             r1, [r0]
 
-#ifndef CFG_SKIP_DRAM_SCRUB
+#ifndef CONFIG_SYS_SKIP_DRAM_SCRUB
        /* scrub/init SDRAM if enabled/present */
-       ldr     r8, =CFG_DRAM_BASE      /* base address of SDRAM (CFG_DRAM_BASE) */
-       ldr     r9, =CFG_DRAM_SIZE      /* size of memory to scrub (CFG_DRAM_SIZE) */
+       ldr     r8, =CONFIG_SYS_DRAM_BASE       /* base address of SDRAM (CONFIG_SYS_DRAM_BASE) */
+       ldr     r9, =CONFIG_SYS_DRAM_SIZE       /* size of memory to scrub (CONFIG_SYS_DRAM_SIZE) */
        mov     r0, #0                  /* scrub with 0x0000:0000 */
        mov     r1, #0
        mov     r2, #0
@@ -125,7 +125,7 @@ mem_init:
        stmia   r8!, {r0-r7}
        beq     15f
        b       10b
-#endif /* CFG_SKIP_DRAM_SCRUB */
+#endif /* CONFIG_SYS_SKIP_DRAM_SCRUB */
 
 15:
        /* Mask all interrupts */
index ceb798bd2d3321db6c3ee95b56862b739c692e97..14382f5a8546ad8acfb8134636051ebfea708c4b 100644 (file)
 #include <nand.h>
 #include <asm/arch/pxa-regs.h>
 
-#ifdef CFG_DFC_DEBUG1
+#ifdef CONFIG_SYS_DFC_DEBUG1
 # define DFC_DEBUG1(fmt, args...) printf(fmt, ##args)
 #else
 # define DFC_DEBUG1(fmt, args...)
 #endif
 
-#ifdef CFG_DFC_DEBUG2
+#ifdef CONFIG_SYS_DFC_DEBUG2
 # define DFC_DEBUG2(fmt, args...) printf(fmt, ##args)
 #else
 # define DFC_DEBUG2(fmt, args...)
 #endif
 
-#ifdef CFG_DFC_DEBUG3
+#ifdef CONFIG_SYS_DFC_DEBUG3
 # define DFC_DEBUG3(fmt, args...) printf(fmt, ##args)
 #else
 # define DFC_DEBUG3(fmt, args...)
@@ -206,7 +206,7 @@ static void wait_us(unsigned long us)
 static void dfc_clear_nddb(void)
 {
        NDCR &= ~NDCR_ND_RUN;
-       wait_us(CFG_NAND_OTHER_TO);
+       wait_us(CONFIG_SYS_NAND_OTHER_TO);
 }
 
 /* wait_event with timeout */
@@ -217,9 +217,9 @@ static unsigned long dfc_wait_event(unsigned long event)
        if(!event)
                return 0xff000000;
        else if(event & (NDSR_CS0_CMDD | NDSR_CS0_BBD))
-               timeout = CFG_NAND_PROG_ERASE_TO * OSCR_CLK_FREQ;
+               timeout = CONFIG_SYS_NAND_PROG_ERASE_TO * OSCR_CLK_FREQ;
        else
-               timeout = CFG_NAND_OTHER_TO * OSCR_CLK_FREQ;
+               timeout = CONFIG_SYS_NAND_OTHER_TO * OSCR_CLK_FREQ;
 
        while(1) {
                ndsr = NDSR;
@@ -242,7 +242,7 @@ static void dfc_new_cmd(void)
        int retry = 0;
        unsigned long status;
 
-       while(retry++ <= CFG_NAND_SENDCMD_RETRY) {
+       while(retry++ <= CONFIG_SYS_NAND_SENDCMD_RETRY) {
                /* Clear NDSR */
                NDSR = 0xFFF;
 
@@ -433,8 +433,8 @@ int board_nand_init(struct nand_chip *nand)
        /* turn on the NAND Controller Clock (104 MHz @ D0) */
        CKENA |= (CKENA_4_NAND | CKENA_9_SMC);
 
-#undef CFG_TIMING_TIGHT
-#ifndef CFG_TIMING_TIGHT
+#undef CONFIG_SYS_TIMING_TIGHT
+#ifndef CONFIG_SYS_TIMING_TIGHT
        tCH = MIN(((unsigned long) (NAND_TIMING_tCH * DFC_CLK_PER_US) + 1),
                  DFC_MAX_tCH);
        tCS = MIN(((unsigned long) (NAND_TIMING_tCS * DFC_CLK_PER_US) + 1),
@@ -473,7 +473,7 @@ int board_nand_init(struct nand_chip *nand)
                   DFC_MAX_tWHR);
        tAR = MIN(((unsigned long) (NAND_TIMING_tAR * DFC_CLK_PER_US) - 2),
                  DFC_MAX_tAR);
-#endif /* CFG_TIMING_TIGHT */
+#endif /* CONFIG_SYS_TIMING_TIGHT */
 
 
        DFC_DEBUG2("tCH=%u, tCS=%u, tWH=%u, tWP=%u, tRH=%u, tRP=%u, tR=%u, tWHR=%u, tAR=%u.\n", tCH, tCS, tWH, tWP, tRH, tRP, tR, tWHR, tAR);
index 84b820aaa108da315916f2d0adf26f5b4ca157cc..c81abc50fd20eb4caa082fb74a16ba6d4def4904 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /* Board support for 1 or 2 flash devices */
 #undef FLASH_PORT_WIDTH32
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
    int i;
     ulong size = 0;
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
     {
        switch (i)
        {
@@ -83,8 +83,8 @@ unsigned long flash_init (void)
     /* Protect monitor and environment sectors
      */
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_FLASH_BASE,
-                 CFG_FLASH_BASE + monitor_flash_len  - 1,
+                 CONFIG_SYS_FLASH_BASE,
+                 CONFIG_SYS_FLASH_BASE + monitor_flash_len  - 1,
                  &flash_info[0]);
 
     flash_protect(FLAG_PROTECT_SET,
@@ -194,10 +194,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
     }
 
        addr[0] = (FPW)0x00FF00FF;      /* restore read mode */
@@ -267,7 +267,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW)0x00D000D0;        /* erase confirm */
 
                        while (((status = *addr) & (FPW)0x00800080) != (FPW)0x00800080) {
-               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW)0x00B000B0; /* suspend erase         */
                                        *addr = (FPW)0x00FF00FF; /* reset to read mode */
@@ -402,7 +402,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW)0x00800080) != (FPW)0x00800080) {
-               if (get_timer_masked() > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked() > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW)0x00FF00FF;        /* restore read mode */
                        return (1);
                }
index c5dff24f05ad2d1cb0147a464136e6d85e4152be..34538c4a18a4539f5a6127681dbfac3003557488 100644 (file)
@@ -56,12 +56,12 @@ int checkflash (void)
 phys_size_t initdram (int board_type)
 {
        int i, cnt;
-       volatile uchar *base = CFG_SDRAM_BASE;
+       volatile uchar *base = CONFIG_SYS_SDRAM_BASE;
        volatile ulong *addr;
        ulong save[32];
        ulong val, ret = 0;
 
-       for (i = 0, cnt = (CFG_MAX_RAM_SIZE / sizeof (long)) >> 1; cnt > 0;
+       for (i = 0, cnt = (CONFIG_SYS_MAX_RAM_SIZE / sizeof (long)) >> 1; cnt > 0;
             cnt >>= 1) {
                addr = (volatile ulong *) base + cnt;
                save[i++] = *addr;
@@ -77,7 +77,7 @@ phys_size_t initdram (int board_type)
                goto Done;
        }
 
-       for (cnt = 1; cnt <= CFG_MAX_RAM_SIZE / sizeof (long); cnt <<= 1) {
+       for (cnt = 1; cnt <= CONFIG_SYS_MAX_RAM_SIZE / sizeof (long); cnt <<= 1) {
                addr = (volatile ulong *) base + cnt;
                val = *addr;
                *addr = save[--i];
@@ -100,7 +100,7 @@ phys_size_t initdram (int board_type)
                }
        }
 
-       ret = CFG_MAX_RAM_SIZE;
+       ret = CONFIG_SYS_MAX_RAM_SIZE;
       Done:
        return ret;
 }
index 2aa9415e8f5642a7f0ecea4903566bf6a0db1887..5f73ff04df12a93e5b17e734e5e51db6db12ce58 100644 (file)
@@ -53,17 +53,17 @@ unsigned long flash_init(void)
        unsigned long addr;
        unsigned int i;
 
-       flash_info[0].size = CFG_FLASH_SIZE;
+       flash_info[0].size = CONFIG_SYS_FLASH_SIZE;
        flash_info[0].sector_count = 135;
 
-       flash_identify(uncached((void *)CFG_FLASH_BASE), &flash_info[0]);
+       flash_identify(uncached((void *)CONFIG_SYS_FLASH_BASE), &flash_info[0]);
 
        for (i = 0, addr = 0; i < 8; i++, addr += 0x2000)
                flash_info[0].start[i] = addr;
        for (; i < flash_info[0].sector_count; i++, addr += 0x10000)
                flash_info[0].start[i] = addr;
 
-       return CFG_FLASH_SIZE;
+       return CONFIG_SYS_FLASH_SIZE;
 }
 
 void flash_print_info(flash_info_t *info)
index 2a9b33e12cafa43ace68d77c003e53b85b8833e9..a85fb8b892a327845c2ef72b0e1096f081a2c68e 100644 (file)
@@ -125,7 +125,7 @@ board_asm_init:
     lis     r2, 0xfee0
     ori     r2, r2, 0xcfc
 
-#ifdef CFG_ADDRESS_MAP_A
+#ifdef CONFIG_SYS_ADDRESS_MAP_A
 /*
  * Switch to address map A if necessary.
  */
@@ -835,17 +835,17 @@ toggleError2:
 /*
  * Get base addr of ISA I/O space
  */
-    lis     r6, CFG_ISA_IO@h
-    ori     r6, r6, CFG_ISA_IO@l
+    lis     r6, CONFIG_SYS_ISA_IO@h
+    ori     r6, r6, CONFIG_SYS_ISA_IO@l
 
 /*
  * Set offset to base address for config registers.
  */
-#if defined(CFG_NS87308_BADDR_0x)
+#if defined(CONFIG_SYS_NS87308_BADDR_0x)
     addi    r4, r0, 0x0279
-#elif defined(CFG_NS87308_BADDR_10)
+#elif defined(CONFIG_SYS_NS87308_BADDR_10)
     addi    r4, r0, 0x015C
-#elif defined(CFG_NS87308_BADDR_11)
+#elif defined(CONFIG_SYS_NS87308_BADDR_11)
     addi    r4, r0, 0x002E
 #endif
     add     r6, r6, r4          /* add offset to base */
@@ -867,7 +867,7 @@ toggleError2:
     addi    r5, r0, SIO_LUNENABLE
     bl      .sio_bw
 
-    lis     r8, CFG_ISA_IO@h
+    lis     r8, CONFIG_SYS_ISA_IO@h
     ori     r8, r8, 0x0460
     li      r9, 0x03
     stb     r9, 0(r8)               /* select PMC2 register */
@@ -898,7 +898,7 @@ toggleError2:
 /*
  * Init COM1 for polled output
  */
-    lis     r8, CFG_ISA_IO@h
+    lis     r8, CONFIG_SYS_ISA_IO@h
     ori     r8, r8, 0x03f8
     li      r9, 0x00
     stb     r9, 1(r8)           /* int disabled */
@@ -972,8 +972,8 @@ waitEmpty1:
 /*
  * Get base addr of ISA I/O space
  */
-    lis     r3, CFG_ISA_IO@h
-    ori     r3, r3, CFG_ISA_IO@l
+    lis     r3, CONFIG_SYS_ISA_IO@h
+    ori     r3, r3, CONFIG_SYS_ISA_IO@l
 
     addi    r3, r3, 0x015C      /* adjust to superI/O 87308 base */
     or      r6, r3, r3          /* make a copy */
@@ -1076,7 +1076,7 @@ waitEmpty1:
  */
 .globl Printf
 Printf:
-    lis     r10, CFG_ISA_IO@h   /* COM1 port */
+    lis     r10, CONFIG_SYS_ISA_IO@h   /* COM1 port */
     ori     r10, r10, 0x03f8
 
 WaitChr:
@@ -1107,7 +1107,7 @@ OutHex4:
 OutHex:
     li      r9, 28              /* shift reg for 8 digits */
 OHstart:
-    lis     r10, CFG_ISA_IO@h   /* COM1 port */
+    lis     r10, CONFIG_SYS_ISA_IO@h   /* COM1 port */
     ori     r10, r10, 0x03f8
 OutDig:
     lbz     r0, 5(r10)          /* read link status */
@@ -1149,7 +1149,7 @@ OutDec:
     mullw   r10, r0, r6
     subf    r7, r10, r3
 
-    lis     r10, CFG_ISA_IO@h   /* COM1 port */
+    lis     r10, CONFIG_SYS_ISA_IO@h   /* COM1 port */
     ori     r10, r10, 0x03f8
 
     or.     r7, r7, r7
@@ -1198,7 +1198,7 @@ OutDec6:
  */
 .globl    OutChr
 OutChr:
-    lis     r10, CFG_ISA_IO@h   /* COM1 port */
+    lis     r10, CONFIG_SYS_ISA_IO@h   /* COM1 port */
     ori     r10, r10, 0x03f8
 
 OutChr1:
@@ -1216,7 +1216,7 @@ OutChr1:
 spdRead:
     mfspr   r26, 8              /* save link register */
 
-    lis     r30, CFG_ISA_IO@h
+    lis     r30, CONFIG_SYS_ISA_IO@h
     ori     r30, r30, 0x220     /* GPIO Port 1 */
     li      r7, 0x00
     li      r8, 0x100
index 8c561161c579c1703a70dedcc5f5a653a75a2a60..1f78f8d16ec127b40a9d0acaa332fbd8cbdd9914 100644 (file)
@@ -44,7 +44,7 @@ ulong bab7xx_get_bus_freq (void)
         * The GPIO Port 1 on BAB7xx reflects the bus speed.
         */
        volatile struct GPIO *gpio =
-               (struct GPIO *) (CFG_ISA_IO + CFG_NS87308_GPIO_BASE);
+               (struct GPIO *) (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_GPIO_BASE);
 
        unsigned char data = gpio->dta1;
 
@@ -87,7 +87,7 @@ int checkcpu (void)
 
 int checkboard (void)
 {
-#ifdef CFG_ADDRESS_MAP_A
+#ifdef CONFIG_SYS_ADDRESS_MAP_A
        puts ("Board: ELTEC BAB7xx PReP\n");
 #else
        puts ("Board: ELTEC BAB7xx CHRP\n");
@@ -126,16 +126,16 @@ long int dram_size (int board_type)
 
        register unsigned long i, msar1, mear1, memSize;
 
-#if defined(CFG_MEMTEST)
+#if defined(CONFIG_SYS_MEMTEST)
        register unsigned long reg;
 
        printf ("Testing DRAM\n");
 
        /* write each mem addr with it's address */
-       for (reg = CFG_MEMTEST_START; reg < CFG_MEMTEST_END; reg += 4)
+       for (reg = CONFIG_SYS_MEMTEST_START; reg < CONFIG_SYS_MEMTEST_END; reg += 4)
                *reg = reg;
 
-       for (reg = CFG_MEMTEST_START; reg < CFG_MEMTEST_END; reg += 4) {
+       for (reg = CONFIG_SYS_MEMTEST_START; reg < CONFIG_SYS_MEMTEST_END; reg += 4) {
                if (*reg != reg)
                        return -1;
        }
index 442dd00519af80d099ccbeb1accc6235c0585c5f..21ae09892dddba872597f067a253703c0d204438 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/processor.h>
 #include <asm/pci_io.h>
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 ulong flash_get_size (vu_long *addr, flash_info_t *info);
 static int write_word (flash_info_t *info, ulong dest, ulong data);
@@ -55,7 +55,7 @@ unsigned long flash_init (void)
     int i;
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i)
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i)
     {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
@@ -96,8 +96,8 @@ unsigned long flash_init (void)
     if (size2 == 4*1024*1024)
     {
        (void)flash_protect(FLAG_PROTECT_SET,
-               CFG_FLASH_BASE,
-               CFG_FLASH_BASE+monitor_flash_len-1,
+               CONFIG_SYS_FLASH_BASE,
+               CONFIG_SYS_FLASH_BASE+monitor_flash_len-1,
                &flash_info[1]);
     }
 
@@ -370,7 +370,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
     last  = start;
     addr = (FLASH_WORD_SIZE *)(info->start[l_sect]);
     while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -500,7 +500,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
            start = get_timer (0);
            while ((dest2[i] & (FLASH_WORD_SIZE)0x00800080) !=
                   (data2[i] & (FLASH_WORD_SIZE)0x00800080)) {
-             if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+             if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                return (1);
              }
            }
index 1e7537745abadd94158d89d87c93c2758fd46456..787704f409df02addb209781698985cb58d489d7 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CFG_L2_BAB7xx)
+#if defined(CONFIG_SYS_L2_BAB7xx)
 
 #include <pci.h>
 #include <mpc106.h>
@@ -77,7 +77,7 @@ int l2_cache_enable (int l2control)
        pci_write_config_dword (devbusfn, PCI_PICR2, reg32);
 
        /* cache size */
-       if (*(volatile unsigned char *) (CFG_ISA_IO + 0x220) & 0x04)
+       if (*(volatile unsigned char *) (CONFIG_SYS_ISA_IO + 0x220) & 0x04)
        {
            /* cache size is 512 KB */
            picr2CacheSize = PICR2_L2_SIZE_512K;
@@ -156,4 +156,4 @@ int l2_cache_enable (int l2control)
 
 /*----------------------------------------------------------------------------*/
 
-#endif /* (CFG_L2_BAB7xx) */
+#endif /* (CONFIG_SYS_L2_BAB7xx) */
index 6a2480741110ad2a9562967c21c2290316d70907..1c94a76d48236be33415df8834834f22f3848794 100644 (file)
@@ -31,7 +31,7 @@
 #include "srom.h"
 
 /* imports  */
-extern char console_buffer[CFG_CBSIZE];
+extern char console_buffer[CONFIG_SYS_CBSIZE];
 extern int l2_cache_enable (int l2control);
 extern void *nvram_read (void *dest, const short src, size_t count);
 extern void nvram_write (short dest, const void *src, size_t count);
@@ -134,7 +134,7 @@ int misc_init_r (void)
                SECOND_DEVICE, FIRST_BLOCK);
 
     /* read out current nvram shadow image */
-    nvram_read (buf, CFG_NV_SROM_COPY_ADDR, CFG_SROM_SIZE);
+    nvram_read (buf, CONFIG_SYS_NV_SROM_COPY_ADDR, CONFIG_SYS_SROM_SIZE);
 
     if (strcmp (eerev.magic, "ELTEC") != 0)
     {
@@ -162,8 +162,8 @@ int misc_init_r (void)
        copyNv   = 1;  /* copy to nvram */
     }
 
-    if ((copyNv == 0) &&   (el_srom_checksum((u_char*)&eerev, CFG_SROM_SIZE) !=
-               el_srom_checksum((u_char*)buf, CFG_SROM_SIZE)))
+    if ((copyNv == 0) &&   (el_srom_checksum((u_char*)&eerev, CONFIG_SYS_SROM_SIZE) !=
+               el_srom_checksum((u_char*)buf, CONFIG_SYS_SROM_SIZE)))
     {
        printf ("Invalid revision info copy in nvram !\n");
        printf ("Press key:\n  <c> to copy current revision info to nvram.\n");
@@ -304,13 +304,13 @@ int misc_init_r (void)
            printf("OK\n\n");
 
        /* write new values as shadow image to nvram */
-       nvram_write (CFG_NV_SROM_COPY_ADDR, (void *)&eerev, CFG_SROM_SIZE);
+       nvram_write (CONFIG_SYS_NV_SROM_COPY_ADDR, (void *)&eerev, CONFIG_SYS_SROM_SIZE);
 
     } /*if (initSrom) */
 
     /* copy current values as shadow image to nvram */
     if (initSrom == 0 && copyNv == 1)
-       nvram_write (CFG_NV_SROM_COPY_ADDR, (void *)&eerev, CFG_SROM_SIZE);
+       nvram_write (CONFIG_SYS_NV_SROM_COPY_ADDR, (void *)&eerev, CONFIG_SYS_SROM_SIZE);
 
     /* update environment */
     sprintf (buf, "%02x:%02x:%02x:%02x:%02x:%02x",
@@ -333,7 +333,7 @@ int misc_init_r (void)
    /*
     * L2 cache configuration
     */
-#if defined(CFG_L2_BAB7xx)
+#if defined(CONFIG_SYS_L2_BAB7xx)
     ptr = getenv("l2cache");
     if (*ptr == '0')
     {
index edbd3ddf733e9c55805c461653389e3c1d6927c0..46e5a8bb17bf8762a6c078e10f9aa550eec09782 100644 (file)
@@ -43,41 +43,41 @@ void pci_init_board(void)
     hose->last_busno = 0xff;
 
     pci_set_region(hose->regions + 0,
-       CFG_PCI_MEMORY_BUS,
-       CFG_PCI_MEMORY_PHYS,
+       CONFIG_SYS_PCI_MEMORY_BUS,
+       CONFIG_SYS_PCI_MEMORY_PHYS,
     /*
     * Attention: pci_hose_phys_to_bus() failes in address compare,
-    * so we need (CFG_PCI_MEMORY_SIZE-1)
+    * so we need (CONFIG_SYS_PCI_MEMORY_SIZE-1)
     */
-       CFG_PCI_MEMORY_SIZE-1,
+       CONFIG_SYS_PCI_MEMORY_SIZE-1,
        PCI_REGION_MEM | PCI_REGION_MEMORY);
 
     /* PCI memory space */
     pci_set_region(hose->regions + 1,
-       CFG_PCI_MEM_BUS,
-       CFG_PCI_MEM_PHYS,
-       CFG_PCI_MEM_SIZE,
+       CONFIG_SYS_PCI_MEM_BUS,
+       CONFIG_SYS_PCI_MEM_PHYS,
+       CONFIG_SYS_PCI_MEM_SIZE,
        PCI_REGION_MEM);
 
     /* ISA/PCI memory space */
     pci_set_region(hose->regions + 2,
-       CFG_ISA_MEM_BUS,
-       CFG_ISA_MEM_PHYS,
-       CFG_ISA_MEM_SIZE,
+       CONFIG_SYS_ISA_MEM_BUS,
+       CONFIG_SYS_ISA_MEM_PHYS,
+       CONFIG_SYS_ISA_MEM_SIZE,
        PCI_REGION_MEM);
 
     /* PCI I/O space */
     pci_set_region(hose->regions + 3,
-       CFG_PCI_IO_BUS,
-       CFG_PCI_IO_PHYS,
-       CFG_PCI_IO_SIZE,
+       CONFIG_SYS_PCI_IO_BUS,
+       CONFIG_SYS_PCI_IO_PHYS,
+       CONFIG_SYS_PCI_IO_SIZE,
        PCI_REGION_IO);
 
     /* ISA/PCI I/O space */
     pci_set_region(hose->regions + 4,
-       CFG_ISA_IO_BUS,
-       CFG_ISA_IO_PHYS,
-       CFG_ISA_IO_SIZE,
+       CONFIG_SYS_ISA_IO_BUS,
+       CONFIG_SYS_ISA_IO_PHYS,
+       CONFIG_SYS_ISA_IO_SIZE,
        PCI_REGION_IO);
 
     hose->region_count = 5;
index c18ab9164575375bf438bed24de061b3fdea4d12..504b742a687f2ce23fc1a8a68f3cd92735b348fc 100644 (file)
@@ -40,8 +40,8 @@
 #define SROM_SHORT(pX)          (*(u8 *)(pX) | *((u8 *)(pX)+1) << 8)
 
 /* bab7xx ELTEC srom */
-#define I2C_BUS_DAT             (CFG_ISA_IO + 0x220)
-#define I2C_BUS_DIR             (CFG_ISA_IO + 0x221)
+#define I2C_BUS_DAT             (CONFIG_SYS_ISA_IO + 0x220)
+#define I2C_BUS_DIR             (CONFIG_SYS_ISA_IO + 0x221)
 
 /* srom at mpc107 */
 #define MPC107_I2CADDR          (mpc107_eumb_addr + 0x3000)     /* address      */
index 1b8d399ed33efba424e3bd803d610d5d41f2593e..8cbe9d88e5af80b039a9fe1a244029d7cafec2a7 100644 (file)
@@ -272,15 +272,15 @@ memStartWait:
  * set LEDs first time
  */
     li      r3, 0x1
-    lis     r30, CFG_USR_LED_BASE@h
+    lis     r30, CONFIG_SYS_USR_LED_BASE@h
     stb     r3, 2(r30)
     sync
 
 /*
  * init COM1 for polled output
  */
-    lis     r8, CFG_NS16550_COM1@h  /* COM1 base address*/
-    ori     r8, r8, CFG_NS16550_COM1@l
+    lis     r8, CONFIG_SYS_NS16550_COM1@h  /* COM1 base address*/
+    ori     r8, r8, CONFIG_SYS_NS16550_COM1@l
     li      r9, 0x00
     stb     r9, 1(r8)           /* int disabled */
     eieio
@@ -290,10 +290,10 @@ memStartWait:
     li      r9, 0x80
     stb     r9, 3(r8)           /* link ctrl */
     eieio
-    li      r9, (CFG_NS16550_CLK / 16 / CONFIG_BAUDRATE)
+    li      r9, (CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE)
     stb     r9, 0(r8)           /* baud rate (LSB)*/
     eieio
-    li      r9, ((CFG_NS16550_CLK / 16 / CONFIG_BAUDRATE) >> 8)
+    li      r9, ((CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE) >> 8)
     stb     r9, 1(r8)           /* baud rate (MSB) */
     eieio
     li      r9, 0x07
@@ -589,7 +589,7 @@ memStartWait_1:
  * set LEDs end
  */
     li      r3, 0xf
-    lis     r30, CFG_USR_LED_BASE@h
+    lis     r30, CONFIG_SYS_USR_LED_BASE@h
     stb     r3, 2(r30)
     sync
 
@@ -602,8 +602,8 @@ memStartWait_1:
  */
 
 Printf:
-    lis     r10, CFG_NS16550_COM1@h /* COM1 base address*/
-    ori     r10, r10, CFG_NS16550_COM1@l
+    lis     r10, CONFIG_SYS_NS16550_COM1@h /* COM1 base address*/
+    ori     r10, r10, CONFIG_SYS_NS16550_COM1@l
 WaitChr:
     lbz     r0, 5(r10)          /* read link status */
     eieio
@@ -622,8 +622,8 @@ WaitChr:
  * print a char to COM1 in polling mode (r10=COM1 port, r3=char)
  */
 OutChr:
-    lis     r10, CFG_NS16550_COM1@h /* COM1 base address*/
-    ori     r10, r10, CFG_NS16550_COM1@l
+    lis     r10, CONFIG_SYS_NS16550_COM1@h /* COM1 base address*/
+    ori     r10, r10, CONFIG_SYS_NS16550_COM1@l
 OutChr1:
     lbz     r0, 5(r10)          /* read link status */
     eieio
@@ -645,8 +645,8 @@ OutHex4:
 OutHex:
     li      r9, 28              /* shift reg for 8 digits */
 OHstart:
-    lis     r10, CFG_NS16550_COM1@h /* COM1 base address*/
-    ori     r10, r10, CFG_NS16550_COM1@l
+    lis     r10, CONFIG_SYS_NS16550_COM1@h /* COM1 base address*/
+    ori     r10, r10, CONFIG_SYS_NS16550_COM1@l
 OutDig:
     lbz     r0, 0(r29)          /* slow down dummy read */
     lbz     r0, 5(r10)          /* read link status */
@@ -685,8 +685,8 @@ OutDec:
     divwu   r0, r3, r6          /* r0 = r3 / 10, r7 = r3 mod 10 */
     mullw   r10, r0, r6
     subf    r7, r10, r3
-    lis     r10, CFG_NS16550_COM1@h /* COM1 base address*/
-    ori     r10, r10, CFG_NS16550_COM1@l
+    lis     r10, CONFIG_SYS_NS16550_COM1@h /* COM1 base address*/
+    ori     r10, r10, CONFIG_SYS_NS16550_COM1@l
     or.     r7, r7, r7
     bne     noblank1
     li      r3, 0x20
index d3ac2784acb2eea9a4f78835f76cacd8672edcb4..e73c712cbb9a60eea25fbee21f92fc3225627705 100644 (file)
@@ -68,16 +68,16 @@ long int dram_size (int board_type)
 
        register unsigned long i, msar1, mear1, memSize;
 
-#if defined(CFG_MEMTEST)
+#if defined(CONFIG_SYS_MEMTEST)
        register unsigned long reg;
 
        printf ("Testing DRAM\n");
 
        /* write each mem addr with it's address */
-       for (reg = CFG_MEMTEST_START; reg < CFG_MEMTEST_END; reg += 4)
+       for (reg = CONFIG_SYS_MEMTEST_START; reg < CONFIG_SYS_MEMTEST_END; reg += 4)
                *reg = reg;
 
-       for (reg = CFG_MEMTEST_START; reg < CFG_MEMTEST_END; reg += 4) {
+       for (reg = CONFIG_SYS_MEMTEST_START; reg < CONFIG_SYS_MEMTEST_END; reg += 4) {
                if (*reg != reg)
                        return -1;
        }
index 442dd00519af80d099ccbeb1accc6235c0585c5f..21ae09892dddba872597f067a253703c0d204438 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/processor.h>
 #include <asm/pci_io.h>
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 ulong flash_get_size (vu_long *addr, flash_info_t *info);
 static int write_word (flash_info_t *info, ulong dest, ulong data);
@@ -55,7 +55,7 @@ unsigned long flash_init (void)
     int i;
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i)
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i)
     {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
@@ -96,8 +96,8 @@ unsigned long flash_init (void)
     if (size2 == 4*1024*1024)
     {
        (void)flash_protect(FLAG_PROTECT_SET,
-               CFG_FLASH_BASE,
-               CFG_FLASH_BASE+monitor_flash_len-1,
+               CONFIG_SYS_FLASH_BASE,
+               CONFIG_SYS_FLASH_BASE+monitor_flash_len-1,
                &flash_info[1]);
     }
 
@@ -370,7 +370,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
     last  = start;
     addr = (FLASH_WORD_SIZE *)(info->start[l_sect]);
     while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -500,7 +500,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
            start = get_timer (0);
            while ((dest2[i] & (FLASH_WORD_SIZE)0x00800080) !=
                   (data2[i] & (FLASH_WORD_SIZE)0x00800080)) {
-             if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+             if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                return (1);
              }
            }
index 5e3a81c6e196c0a1cc5abd9244ecde8403d8cc9c..cbaf10b7e676533040c22f41bbc7e594cb4a4635 100644 (file)
@@ -29,7 +29,7 @@
 #include "srom.h"
 
 /* imports  */
-extern char console_buffer[CFG_CBSIZE];
+extern char console_buffer[CONFIG_SYS_CBSIZE];
 extern int l2_cache_enable (int l2control);
 extern int eepro100_write_eeprom (struct eth_device *dev, int location,
                                  int addr_len, unsigned short data);
@@ -95,7 +95,7 @@ int misc_init_r (void)
                          SECOND_DEVICE, FIRST_BLOCK);
 
        /* read out current nvram shadow image */
-       nvram_read (buf, CFG_NV_SROM_COPY_ADDR, CFG_SROM_SIZE);
+       nvram_read (buf, CONFIG_SYS_NV_SROM_COPY_ADDR, CONFIG_SYS_SROM_SIZE);
 
        if (strcmp (eerev.magic, "ELTEC") != 0) {
                /* srom is not initialized -> create a default revision info */
@@ -124,8 +124,8 @@ int misc_init_r (void)
        }
 
        if ((copyNv == 0)
-           && (el_srom_checksum ((u_char *) & eerev, CFG_SROM_SIZE) !=
-               el_srom_checksum ((u_char *) buf, CFG_SROM_SIZE))) {
+           && (el_srom_checksum ((u_char *) & eerev, CONFIG_SYS_SROM_SIZE) !=
+               el_srom_checksum ((u_char *) buf, CONFIG_SYS_SROM_SIZE))) {
                printf ("Invalid revision info copy in nvram !\n");
                printf ("Press key:\n  <c> to copy current revision info to nvram.\n");
                printf ("  <r> to reenter revision info.\n");
@@ -232,16 +232,16 @@ int misc_init_r (void)
                        printf ("OK\n\n");
 
                /* write new values as shadow image to nvram */
-               nvram_write (CFG_NV_SROM_COPY_ADDR, (void *) &eerev,
-                            CFG_SROM_SIZE);
+               nvram_write (CONFIG_SYS_NV_SROM_COPY_ADDR, (void *) &eerev,
+                            CONFIG_SYS_SROM_SIZE);
 
        }
 
        /*if (initSrom) */
        /* copy current values as shadow image to nvram */
        if (initSrom == 0 && copyNv == 1)
-               nvram_write (CFG_NV_SROM_COPY_ADDR, (void *) &eerev,
-                            CFG_SROM_SIZE);
+               nvram_write (CONFIG_SYS_NV_SROM_COPY_ADDR, (void *) &eerev,
+                            CONFIG_SYS_SROM_SIZE);
 
        /* update environment */
        sprintf (buf, "%02x:%02x:%02x:%02x:%02x:%02x",
index 5b115ea617bf584188b426c559658a9d185d25d6..bf133b77de95d3b8afbf4fac8cf0dec52e0be639 100644 (file)
@@ -42,37 +42,37 @@ void pci_init_board(void)
     hose->last_busno = 0xff;
 
     pci_set_region(hose->regions + 0,
-       CFG_PCI_MEMORY_BUS,
-       CFG_PCI_MEMORY_PHYS,
-       CFG_PCI_MEMORY_SIZE,
+       CONFIG_SYS_PCI_MEMORY_BUS,
+       CONFIG_SYS_PCI_MEMORY_PHYS,
+       CONFIG_SYS_PCI_MEMORY_SIZE,
        PCI_REGION_MEM | PCI_REGION_MEMORY);
 
     /* PCI memory space */
     pci_set_region(hose->regions + 1,
-       CFG_PCI_MEM_BUS,
-       CFG_PCI_MEM_PHYS,
-       CFG_PCI_MEM_SIZE,
+       CONFIG_SYS_PCI_MEM_BUS,
+       CONFIG_SYS_PCI_MEM_PHYS,
+       CONFIG_SYS_PCI_MEM_SIZE,
        PCI_REGION_MEM);
 
     /* ISA/PCI memory space */
     pci_set_region(hose->regions + 2,
-       CFG_ISA_MEM_BUS,
-       CFG_ISA_MEM_PHYS,
-       CFG_ISA_MEM_SIZE,
+       CONFIG_SYS_ISA_MEM_BUS,
+       CONFIG_SYS_ISA_MEM_PHYS,
+       CONFIG_SYS_ISA_MEM_SIZE,
        PCI_REGION_MEM);
 
     /* PCI I/O space */
     pci_set_region(hose->regions + 3,
-       CFG_PCI_IO_BUS,
-       CFG_PCI_IO_PHYS,
-       CFG_PCI_IO_SIZE,
+       CONFIG_SYS_PCI_IO_BUS,
+       CONFIG_SYS_PCI_IO_PHYS,
+       CONFIG_SYS_PCI_IO_SIZE,
        PCI_REGION_IO);
 
     /* ISA/PCI I/O space */
     pci_set_region(hose->regions + 4,
-       CFG_ISA_IO_BUS,
-       CFG_ISA_IO_PHYS,
-       CFG_ISA_IO_SIZE,
+       CONFIG_SYS_ISA_IO_BUS,
+       CONFIG_SYS_ISA_IO_PHYS,
+       CONFIG_SYS_ISA_IO_SIZE,
        PCI_REGION_IO);
 
     hose->region_count = 5;
index c18ab9164575375bf438bed24de061b3fdea4d12..504b742a687f2ce23fc1a8a68f3cd92735b348fc 100644 (file)
@@ -40,8 +40,8 @@
 #define SROM_SHORT(pX)          (*(u8 *)(pX) | *((u8 *)(pX)+1) << 8)
 
 /* bab7xx ELTEC srom */
-#define I2C_BUS_DAT             (CFG_ISA_IO + 0x220)
-#define I2C_BUS_DIR             (CFG_ISA_IO + 0x221)
+#define I2C_BUS_DAT             (CONFIG_SYS_ISA_IO + 0x220)
+#define I2C_BUS_DIR             (CONFIG_SYS_ISA_IO + 0x221)
 
 /* srom at mpc107 */
 #define MPC107_I2CADDR          (mpc107_eumb_addr + 0x3000)     /* address      */
index 4cc66a973dbefed0f21e63984568212a5b48709d..2fbdb2771826451ba4dd7c540454f2bfee42200b 100644 (file)
@@ -25,7 +25,7 @@
 #include <mpc8xx.h>
 #include <linux/byteorder/swab.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Protection Flags:
@@ -62,13 +62,13 @@ static void  flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -81,18 +81,18 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((FPW *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((FPW *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           CFG_FLASH_BASE,
-                           CFG_FLASH_BASE+monitor_flash_len-1,
+                           CONFIG_SYS_FLASH_BASE,
+                           CONFIG_SYS_FLASH_BASE+monitor_flash_len-1,
                            &flash_info[0]);
 
        flash_info[0].size = size_b0;
@@ -203,10 +203,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW)0xFF00FF00;      /* restore read mode */
@@ -277,7 +277,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = SWAP(*addr)) & (FPW)0x00800080) != (FPW)0x00800080) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW)0xB000B000; /* suspend erase */
                                        *addr = (FPW)0xFF00FF00; /* reset to read mode */
@@ -419,7 +419,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
        start = get_timer (0);
 
        while (((status = SWAP(*addr)) & (FPW)0x00800080) != (FPW)0x00800080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW)0xFF00FF00;        /* restore read mode */
                        return (1);
                }
index 3666791e986d439ec2686c06c3c4c5dc1547fc17..7cca6b28c1c168acfb04ce4e0c7b721186ca98bd 100644 (file)
@@ -36,7 +36,7 @@
 #include <video_fb.h>
 
 /* imports from common/main.c */
-extern char console_buffer[CFG_CBSIZE];
+extern char console_buffer[CONFIG_SYS_CBSIZE];
 
 extern void eeprom_init (void);
 extern int eeprom_read (unsigned dev_addr, unsigned offset,
@@ -105,7 +105,7 @@ static const unsigned int sdram_table[] = {
 
 int board_early_init_f (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(im->im_cpm);
        volatile iop8xx_t *ip = (iop8xx_t *) & (im->im_ioport);
 
@@ -160,7 +160,7 @@ int misc_init_r (void)
        int i;
 
        /* check revision data */
-       eeprom_read (CFG_I2C_EEPROM_ADDR, 480, (uchar *) &mhpcRevInfo, 32);
+       eeprom_read (CONFIG_SYS_I2C_EEPROM_ADDR, 480, (uchar *) &mhpcRevInfo, 32);
 
        if (strncmp ((char *) &mhpcRevInfo.board[2], "MHPC", 4) != 0) {
                printf ("Enter revision number (0-9): %c  ",
@@ -228,7 +228,7 @@ int misc_init_r (void)
                }
 
                /* setup new revision data */
-               eeprom_write (CFG_I2C_EEPROM_ADDR, 480, (uchar *) &mhpcRevInfo,
+               eeprom_write (CONFIG_SYS_I2C_EEPROM_ADDR, 480, (uchar *) &mhpcRevInfo,
                              32);
        }
 
@@ -253,13 +253,13 @@ int misc_init_r (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        upmconfig (UPMA, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
 
-       memctl->memc_mamr = CFG_MAMR & (~(MAMR_PTAE));  /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR & (~(MAMR_PTAE));   /* no refresh yet */
        memctl->memc_mbmr = MBMR_GPL_B4DIS;     /* should this be mamr? - NTL */
        memctl->memc_mptpr = MPTPR_PTP_DIV64;
        memctl->memc_mar = 0x00008800;
@@ -267,15 +267,15 @@ phys_size_t initdram (int board_type)
        /*
         * Map controller SDRAM bank 0
         */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
        udelay (200);
 
        /*
         * Map controller SDRAM bank 1
         */
-       memctl->memc_or2 = CFG_OR2;
-       memctl->memc_br2 = CFG_BR2;
+       memctl->memc_or2 = CONFIG_SYS_OR2;
+       memctl->memc_br2 = CONFIG_SYS_BR2;
 
        /*
         * Perform SDRAM initializsation sequence
@@ -419,7 +419,7 @@ void *video_hw_init (void)
 {
        unsigned int clut = 0;
        unsigned char *penv;
-       immap_t *immr = (immap_t *) CFG_IMMR;
+       immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /* enable video only on CLUT value */
        if ((penv = (uchar *)getenv ("clut")) != NULL)
@@ -470,7 +470,7 @@ void video_set_lut (unsigned int index,
                    unsigned char r, unsigned char g, unsigned char b)
 {
        unsigned int lum;
-       unsigned short *pLut = (unsigned short *) (CFG_IMMR + 0x0e00);
+       unsigned short *pLut = (unsigned short *) (CONFIG_SYS_IMMR + 0x0e00);
 
        /* 16 bit lut values, 12 bit used, xxxx BBGG RRii iiii */
        /* y = 0.299*R + 0.587*G + 0.114*B */
index 04c35bc93f388d3b840735a0b9580715474fef6f..330978b9511acd225c8573be4810e45043da0fd7 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <common.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined (CONFIG_TOP860)
   typedef unsigned short FLASH_PORT_WIDTH;
@@ -95,7 +95,7 @@ unsigned long flash_init (void)
        int i = 0;
        extern void flash_preinit(void);
        extern void flash_afterinit(uint, ulong, ulong);
-       ulong flashbase = CFG_FLASH_BASE;
+       ulong flashbase = CONFIG_SYS_FLASH_BASE;
 
        flash_preinit();
 
@@ -105,12 +105,12 @@ unsigned long flash_init (void)
                        flash_get_size((FPW *)flashbase, &flash_info[i]);
        size += flash_info[i].size;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
-                     flash_get_info(CFG_MONITOR_BASE));
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -147,14 +147,14 @@ static flash_info_t *flash_get_info(ulong base)
        int i;
        flash_info_t * info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->size &&
                        info->start[0] <= base && base <= info->start[0] + info->size - 1)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 
 /*-----------------------------------------------------------------------
@@ -459,7 +459,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while ((*addr & (FPW)0x00800080) != (FPW)0x00800080) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
 
                                if (intel) {
@@ -473,14 +473,14 @@ int       flash_erase (flash_info_t *info, int s_first, int s_last)
                        }
 
                        /* show that we're waiting */
-                       if ((get_timer(last)) > CFG_HZ) {/* every second */
+                       if ((get_timer(last)) > CONFIG_SYS_HZ) {/* every second */
                                putc ('.');
                                last = get_timer(0);
                        }
                }
 
                /* show that we're waiting */
-               if ((get_timer(last)) > CFG_HZ) {       /* every second */
+               if ((get_timer(last)) > CONFIG_SYS_HZ) {        /* every second */
                        putc ('.');
                        last = get_timer(0);
                }
@@ -581,7 +581,7 @@ static int write_word_amd (flash_info_t *info, FPWV *dest, FPW data)
 
        /* data polling for D7 */
        while (res == 0 && (*dest & (FPW)0x00800080) != (data & (FPW)0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW)0x00F000F0;        /* reset bank */
                        res = 1;
                }
index 8a3a12b047f99f1d635aef2a36e8d253852b3c73..c2af21952edb53a70ffd8aa46671e325cd8d802a 100644 (file)
@@ -36,8 +36,8 @@ void read_factory_r (void)
        uint len;
 
        /* get length first */
-       addr = CFG_FACT_OFFSET;
-       if (eeprom_read (CFG_I2C_FACT_ADDR, addr, buf, 2)) {
+       addr = CONFIG_SYS_FACT_OFFSET;
+       if (eeprom_read (CONFIG_SYS_I2C_FACT_ADDR, addr, buf, 2)) {
          bailout:
                printf ("cannot read factory configuration\n");
                printf ("be sure to set ethaddr yourself!\n");
@@ -47,14 +47,14 @@ void read_factory_r (void)
        addr += 2;
 
        /* sanity check */
-       if (length < 20 || length > CFG_FACT_SIZE - 2)
+       if (length < 20 || length > CONFIG_SYS_FACT_SIZE - 2)
                goto bailout;
 
        /* read lines */
        while (length > 0) {
                /* read one line */
                len = length > 80 ? 80 : length;
-               if (eeprom_read (CFG_I2C_FACT_ADDR, addr, buf, len))
+               if (eeprom_read (CONFIG_SYS_I2C_FACT_ADDR, addr, buf, len))
                        goto bailout;
                /* mark end of buffer */
                buf[len] = 0;
index 27886261c779bf0bf2d18b89930166ab374d1e06..7efbcb089098584c679b645a1a5df81dbb809c03 100644 (file)
@@ -35,7 +35,7 @@
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #if 0
        ulong   t;
        ulong   tap_del;
@@ -46,33 +46,33 @@ phys_size_t initdram (int board_type)
        #define SOFT_REF        4
 
        /* configure SDRAM start/end */
-       *(vu_long *)MPC5XXX_SDRAM_CS0CFG = (CFG_SDRAM_BASE & 0xFFF00000) | CFG_DRAM_RAM_SIZE;
+       *(vu_long *)MPC5XXX_SDRAM_CS0CFG = (CONFIG_SYS_SDRAM_BASE & 0xFFF00000) | CONFIG_SYS_DRAM_RAM_SIZE;
        *(vu_long *)MPC5XXX_SDRAM_CS1CFG = 0x80000000;  /* disabled */
 
        /* setup config registers */
-       *(vu_long *)MPC5XXX_SDRAM_CONFIG1 = CFG_DRAM_CONFIG1;
-       *(vu_long *)MPC5XXX_SDRAM_CONFIG2 = CFG_DRAM_CONFIG2;
+       *(vu_long *)MPC5XXX_SDRAM_CONFIG1 = CONFIG_SYS_DRAM_CONFIG1;
+       *(vu_long *)MPC5XXX_SDRAM_CONFIG2 = CONFIG_SYS_DRAM_CONFIG2;
 
        /* unlock mode register */
-       *(vu_long *)MPC5XXX_SDRAM_CTRL = CFG_DRAM_CONTROL | MODE_EN;
+       *(vu_long *)MPC5XXX_SDRAM_CTRL = CONFIG_SYS_DRAM_CONTROL | MODE_EN;
        /* precharge all banks */
-       *(vu_long *)MPC5XXX_SDRAM_CTRL = CFG_DRAM_CONTROL | MODE_EN | SOFT_PRE;
-#ifdef CFG_DRAM_DDR
+       *(vu_long *)MPC5XXX_SDRAM_CTRL = CONFIG_SYS_DRAM_CONTROL | MODE_EN | SOFT_PRE;
+#ifdef CONFIG_SYS_DRAM_DDR
        /* set extended mode register */
-       *(vu_short *)MPC5XXX_SDRAM_MODE = CFG_DRAM_EMODE;
+       *(vu_short *)MPC5XXX_SDRAM_MODE = CONFIG_SYS_DRAM_EMODE;
 #endif
        /* set mode register */
-       *(vu_short *)MPC5XXX_SDRAM_MODE = CFG_DRAM_MODE | 0x0400;
+       *(vu_short *)MPC5XXX_SDRAM_MODE = CONFIG_SYS_DRAM_MODE | 0x0400;
        /* precharge all banks */
-       *(vu_long *)MPC5XXX_SDRAM_CTRL = CFG_DRAM_CONTROL | MODE_EN | SOFT_PRE;
+       *(vu_long *)MPC5XXX_SDRAM_CTRL = CONFIG_SYS_DRAM_CONTROL | MODE_EN | SOFT_PRE;
        /* auto refresh */
-       *(vu_long *)MPC5XXX_SDRAM_CTRL = CFG_DRAM_CONTROL | MODE_EN | SOFT_REF;
+       *(vu_long *)MPC5XXX_SDRAM_CTRL = CONFIG_SYS_DRAM_CONTROL | MODE_EN | SOFT_REF;
        /* set mode register */
-       *(vu_short *)MPC5XXX_SDRAM_MODE = CFG_DRAM_MODE;
+       *(vu_short *)MPC5XXX_SDRAM_MODE = CONFIG_SYS_DRAM_MODE;
        /* normal operation */
-       *(vu_long *)MPC5XXX_SDRAM_CTRL = CFG_DRAM_CONTROL;
+       *(vu_long *)MPC5XXX_SDRAM_CTRL = CONFIG_SYS_DRAM_CONTROL;
        /* write default TAP delay */
-       *(vu_long *)MPC5XXX_CDM_PORCFG = CFG_DRAM_TAP_DEL << 24;
+       *(vu_long *)MPC5XXX_CDM_PORCFG = CONFIG_SYS_DRAM_TAP_DEL << 24;
 
 #if 0
        for (tap_del = 0; tap_del < 32; tap_del++)
@@ -97,7 +97,7 @@ phys_size_t initdram (int board_type)
                }
        }
 #endif
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        dramsize = ((1 << (*(vu_long *)MPC5XXX_SDRAM_CS0CFG - 0x13)) << 20);
 
index aca4991f54ac2815b987ae172f1eb350618c2e8a..76f7a0c5f9c84e0769cbee59a1f16f757ef7cc9e 100644 (file)
@@ -78,7 +78,7 @@ int checkboard (void)
  *****************************************************************************/
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        /*
@@ -93,8 +93,8 @@ phys_size_t initdram (int board_type)
                           sizeof (edo_60ns_25MHz_tbl) / sizeof (uint));
                memctl->memc_mptpr = 0x0200;
                memctl->memc_mamr = 0x0ca20330;
-               memctl->memc_or2 = -CFG_DRAM_MAX | OR_CSNT_SAM;
-               memctl->memc_br2 = CFG_DRAM_BASE | BR_MS_UPMA | BR_V;
+               memctl->memc_or2 = -CONFIG_SYS_DRAM_MAX | OR_CSNT_SAM;
+               memctl->memc_br2 = CONFIG_SYS_DRAM_BASE | BR_MS_UPMA | BR_V;
                /*
                 * Do 8 read accesses to DRAM
                 */
@@ -112,7 +112,7 @@ phys_size_t initdram (int board_type)
                addr2[1] = 0x47110815;
                if (addr1[0] == 0xfeedc0de && addr1[1] == 0x47110815) {
                        /* only 4MB populated */
-                       memctl->memc_or2 = -(CFG_DRAM_MAX / 4) | OR_CSNT_SAM;
+                       memctl->memc_or2 = -(CONFIG_SYS_DRAM_MAX / 4) | OR_CSNT_SAM;
                }
        }
 
index 1ef06f861f131cad34ff684c026afcfd24ba8a1f..0c2b3aedc2a859c24834f5bef20d788202c15dd0 100644 (file)
@@ -27,7 +27,7 @@
 #define FLASH_BANK_SIZE 0x1000000
 #define MAIN_SECT_SIZE  0x20000
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 /*-----------------------------------------------------------------------
@@ -38,15 +38,15 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                                (INTEL_MANUFACT & FLASH_VENDMASK) |
                                (INTEL_ID_28F128J3 & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -60,8 +60,8 @@ ulong flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -165,7 +165,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        *addr = 0xD0;           /* erase confirm */
 
                        while ((*addr & 0x80) != 0x80) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = 0xB0;   /* suspend erase */
                                        *addr = 0xFF;   /* reset to read mode */
                                        rc = ERR_TIMOUT;
@@ -232,7 +232,7 @@ static int write_word (flash_info_t * info, ulong dest, ushort data)
 
        /* wait while polling the status register */
        while (((val = *addr) & 0x80) != 0x80) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        rc = ERR_TIMOUT;
                        /* suspend program command */
                        *addr = 0xB0;
index 4cfb2acc85c3109bc850d01df7a1127bd97d2ee4..bc20ba739c2ee942bb8dac526530843b5751d8c1 100644 (file)
  * according to the five values podr/pdir/ppar/psor/pdat for that entry
  */
 
-#define CFG_FCC1 (CONFIG_ETHER_INDEX == 1)
-#define CFG_FCC2 (CONFIG_ETHER_INDEX == 2)
+#define CONFIG_SYS_FCC1 (CONFIG_ETHER_INDEX == 1)
+#define CONFIG_SYS_FCC2 (CONFIG_ETHER_INDEX == 2)
 
 const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port A */
     {  /*            conf      ppar psor pdir podr pdat */
-       /* PA31 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL    */
-       /* PA30 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS    */
-       /* PA29 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER  */
-       /* PA28 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN  */
-       /* PA27 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV  */
-       /* PA26 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER  */
+       /* PA31 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL    */
+       /* PA30 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS    */
+       /* PA29 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER  */
+       /* PA28 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN  */
+       /* PA27 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV  */
+       /* PA26 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER  */
        /* PA25 */ { 0,          0,   0,   0,   0,   0 }, /* PA25            */
        /* PA24 */ { 0,          0,   0,   0,   0,   0 }, /* PA24            */
        /* PA23 */ { 0,          0,   0,   0,   0,   0 }, /* PA23            */
        /* PA22 */ { 0,          0,   0,   0,   0,   0 }, /* PA22            */
-       /* PA21 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
-       /* PA20 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
-       /* PA19 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
-       /* PA18 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
-       /* PA17 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
-       /* PA16 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
-       /* PA15 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
-       /* PA14 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
+       /* PA21 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
+       /* PA20 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
+       /* PA19 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
+       /* PA18 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
+       /* PA17 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
+       /* PA16 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
+       /* PA15 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
+       /* PA14 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
        /* PA13 */ { 0,          0,   0,   0,   0,   0 }, /* PA13            */
        /* PA12 */ { 0,          0,   0,   0,   0,   0 }, /* PA12            */
        /* PA11 */ { 0,          0,   0,   0,   0,   0 }, /* PA11            */
@@ -78,20 +78,20 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port B */
     {   /*           conf      ppar psor pdir podr pdat */
-       /* PB31 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
-       /* PB30 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
-       /* PB29 */ { CFG_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
-       /* PB28 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
-       /* PB27 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
-       /* PB26 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
-       /* PB25 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
-       /* PB24 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
-       /* PB23 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
-       /* PB22 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
-       /* PB21 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
-       /* PB20 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
-       /* PB19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
-       /* PB18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
+       /* PB31 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
+       /* PB30 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
+       /* PB29 */ { CONFIG_SYS_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
+       /* PB28 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
+       /* PB27 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
+       /* PB26 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
+       /* PB25 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
+       /* PB24 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
+       /* PB23 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
+       /* PB22 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
+       /* PB21 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
+       /* PB20 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
+       /* PB19 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
+       /* PB18 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
        /* PB17 */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
        /* PB16 */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
        /* PB15 */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
@@ -123,11 +123,11 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PC25 */ { 0,          0,   0,   0,   0,   0 }, /* PC25            */
        /* PC24 */ { 0,          0,   0,   0,   0,   0 }, /* PC24            */
        /* PC23 */ { 0,          0,   0,   0,   0,   0 }, /* PC23            */
-       /* PC22 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 RxClk (CLK10) */
-       /* PC21 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 TxClk (CLK11) */
+       /* PC22 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 RxClk (CLK10) */
+       /* PC21 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 TxClk (CLK11) */
        /* PC20 */ { 0,          0,   0,   0,   0,   0 }, /* PC20            */
-       /* PC19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 RxClk (CLK13) */
-       /* PC18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 TxClk (CLK14) */
+       /* PC19 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 RxClk (CLK13) */
+       /* PC18 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 TxClk (CLK14) */
        /* PC17 */ { 0,          0,   0,   0,   0,   0 }, /* PC17            */
        /* PC16 */ { 0,          0,   0,   0,   0,   0 }, /* PC16            */
        /* PC15 */ { 0,          0,   0,   0,   0,   0 }, /* PC15            */
@@ -187,7 +187,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
 int board_early_init_f (void)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        bcsr[4] |= 0x30; /* Turn the LEDs off */
 
@@ -198,39 +198,39 @@ int board_early_init_f (void)
        bcsr[7] |= 0x10;
 #endif
 
-#if CFG_FCC1
+#if CONFIG_SYS_FCC1
        bcsr[8] |= 0xC0;
-#endif /* CFG_FCC1 */
-#if CFG_FCC2
+#endif /* CONFIG_SYS_FCC1 */
+#if CONFIG_SYS_FCC2
        bcsr[8] |= 0x30;
-#endif /* CFG_FCC2 */
+#endif /* CONFIG_SYS_FCC2 */
 
        return 0;
 }
 
 phys_size_t initdram(int board_type)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
        long int msize = 16L << (bcsr[2] & 3);
 
-#ifndef CFG_RAMBOOT
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+#ifndef CONFIG_SYS_RAMBOOT
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
-       vu_char *ramaddr = (vu_char *)CFG_SDRAM_BASE;
+       vu_char *ramaddr = (vu_char *)CONFIG_SYS_SDRAM_BASE;
        uchar c = 0xFF;
-       uint psdmr = CFG_PSDMR;
+       uint psdmr = CONFIG_SYS_PSDMR;
        int i;
 
        immap->im_siu_conf.sc_ppc_acr  = 0x02;
        immap->im_siu_conf.sc_ppc_alrh = 0x30126745;
        immap->im_siu_conf.sc_tescr1   = 0x00004000;
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /* Initialise 60x bus SDRAM */
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_or1  = CFG_SDRAM_OR;
-       memctl->memc_br1  = CFG_SDRAM_BR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_or1  = CONFIG_SYS_SDRAM_OR;
+       memctl->memc_br1  = CONFIG_SYS_SDRAM_BR;
        memctl->memc_psdmr = psdmr | PSDMR_OP_PREA; /* Precharge all banks */
        *ramaddr = c;
        memctl->memc_psdmr = psdmr | PSDMR_OP_CBRR; /* CBR refresh */
@@ -240,7 +240,7 @@ phys_size_t initdram(int board_type)
        *ramaddr = c;
        memctl->memc_psdmr = psdmr | PSDMR_RFEN;    /* Refresh enable */
        *ramaddr = c;
-#endif /* !CFG_RAMBOOT */
+#endif /* !CONFIG_SYS_RAMBOOT */
 
        /* Return total 60x bus SDRAM size */
        return msize * 1024 * 1024;
@@ -248,7 +248,7 @@ phys_size_t initdram(int board_type)
 
 int checkboard(void)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        puts("Board: ");
        switch (bcsr[0]) {
index eaf1560e6fc0abba2d3eab3eb3bc8dead629addf..1225830becb9ff769067b7419801dfab0cfbfe8a 100644 (file)
@@ -25,7 +25,7 @@
 # EP8260 boards
 #
 
-# This should be equal to the CFG_FLASH_BASE define in config_ep8260.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in config_ep8260.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index 0e43c6df974e60a982a04de0e4430a90c293b0ae..90ab047f719ba22ae564745dfab4e826c286fe29 100644 (file)
@@ -190,12 +190,12 @@ const iop_conf_t iop_conf_tab[4][32] = {
 */
 int board_early_init_f (void)
 {
-       volatile t_ep_regs *regs = (t_ep_regs *) CFG_REGS_BASE;
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile t_ep_regs *regs = (t_ep_regs *) CONFIG_SYS_REGS_BASE;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-       memctl->memc_br4 = CFG_BR4_PRELIM;
-       memctl->memc_or4 = CFG_OR4_PRELIM;
+       memctl->memc_br4 = CONFIG_SYS_BR4_PRELIM;
+       memctl->memc_or4 = CONFIG_SYS_OR4_PRELIM;
        regs->bcsr1 = 0x62;     /* to enable terminal on SMC1 */
        regs->bcsr2 = 0x30;     /* enable NVRAM and writing FLASH */
        return 0;
@@ -203,7 +203,7 @@ int board_early_init_f (void)
 
 void reset_phy (void)
 {
-       volatile t_ep_regs *regs = (t_ep_regs *) CFG_REGS_BASE;
+       volatile t_ep_regs *regs = (t_ep_regs *) CONFIG_SYS_REGS_BASE;
 
        regs->bcsr4 = 0xC0;
 }
@@ -216,7 +216,7 @@ void reset_phy (void)
 
 int checkboard (void)
 {
-       volatile t_ep_regs *regs = (t_ep_regs *) CFG_REGS_BASE;
+       volatile t_ep_regs *regs = (t_ep_regs *) CONFIG_SYS_REGS_BASE;
        uint major = 0, minor = 0;
 
        switch (regs->bcsr0) {
@@ -245,18 +245,18 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        volatile uchar c = 0;
-       volatile uchar *ramaddr = (uchar *) (CFG_SDRAM_BASE) + 0x110;
+       volatile uchar *ramaddr = (uchar *) (CONFIG_SYS_SDRAM_BASE) + 0x110;
 
 /*
-       ulong psdmr = CFG_PSDMR;
-#ifdef CFG_LSDRAM
-       ulong lsdmr = CFG_LSDMR;
+       ulong psdmr = CONFIG_SYS_PSDMR;
+#ifdef CONFIG_SYS_LSDRAM
+       ulong lsdmr = CONFIG_SYS_LSDMR;
 #endif
 */
-       long size = CFG_SDRAM0_SIZE;
+       long size = CONFIG_SYS_SDRAM0_SIZE;
        int i;
 
 
@@ -277,44 +277,44 @@ phys_size_t initdram (int board_type)
 *  accessing the SDRAM with a single-byte transaction."
 *
 * The appropriate BRx/ORx registers have already been set when we
-* get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+* get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
 */
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-       memctl->memc_psdmr = (ulong) CFG_PSDMR | PSDMR_OP_PREA;
+       memctl->memc_psdmr = (ulong) CONFIG_SYS_PSDMR | PSDMR_OP_PREA;
        *ramaddr = c;
 
-       memctl->memc_psdmr = (ulong) CFG_PSDMR | PSDMR_OP_CBRR;
+       memctl->memc_psdmr = (ulong) CONFIG_SYS_PSDMR | PSDMR_OP_CBRR;
        for (i = 0; i < 8; i++)
                *ramaddr = c;
 
-       memctl->memc_psdmr = (ulong) CFG_PSDMR | PSDMR_OP_MRW;
+       memctl->memc_psdmr = (ulong) CONFIG_SYS_PSDMR | PSDMR_OP_MRW;
        *ramaddr = c;
 
-       memctl->memc_psdmr = (ulong) CFG_PSDMR | PSDMR_OP_NORM | PSDMR_RFEN;
+       memctl->memc_psdmr = (ulong) CONFIG_SYS_PSDMR | PSDMR_OP_NORM | PSDMR_RFEN;
        *ramaddr = c;
 
-#ifndef CFG_RAMBOOT
-#ifdef CFG_LSDRAM
-       size += CFG_SDRAM1_SIZE;
-       ramaddr = (uchar *) (CFG_SDRAM1_BASE) + 0x8c;
-       memctl->memc_lsrt = CFG_LSRT;
+#ifndef CONFIG_SYS_RAMBOOT
+#ifdef CONFIG_SYS_LSDRAM
+       size += CONFIG_SYS_SDRAM1_SIZE;
+       ramaddr = (uchar *) (CONFIG_SYS_SDRAM1_BASE) + 0x8c;
+       memctl->memc_lsrt = CONFIG_SYS_LSRT;
 
-       memctl->memc_lsdmr = (ulong) CFG_LSDMR | PSDMR_OP_PREA;
+       memctl->memc_lsdmr = (ulong) CONFIG_SYS_LSDMR | PSDMR_OP_PREA;
        *ramaddr = c;
 
-       memctl->memc_lsdmr = (ulong) CFG_LSDMR | PSDMR_OP_CBRR;
+       memctl->memc_lsdmr = (ulong) CONFIG_SYS_LSDMR | PSDMR_OP_CBRR;
        for (i = 0; i < 8; i++)
                *ramaddr = c;
 
-       memctl->memc_lsdmr = (ulong) CFG_LSDMR | PSDMR_OP_MRW;
+       memctl->memc_lsdmr = (ulong) CONFIG_SYS_LSDMR | PSDMR_OP_MRW;
        *ramaddr = c;
 
-       memctl->memc_lsdmr = (ulong) CFG_LSDMR | PSDMR_OP_NORM | PSDMR_RFEN;
+       memctl->memc_lsdmr = (ulong) CONFIG_SYS_LSDMR | PSDMR_OP_NORM | PSDMR_RFEN;
        *ramaddr = c;
-#endif /* CFG_LSDRAM */
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_LSDRAM */
+#endif /* CONFIG_SYS_RAMBOOT */
        return (size * 1024 * 1024);
 }
index d32486d3453a433919731426bb1b6ccbcd18f579..2a81de570ca134c6f2dde91e78b0000241f4f92d 100644 (file)
@@ -35,7 +35,7 @@
 #define V_BYTE(a)      (*(volatile unsigned char *)( a ))
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 /*-----------------------------------------------------------------------
@@ -134,13 +134,13 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here (only one bank) */
 
-       size_b0 = flash_get_size(CFG_FLASH0_BASE, &flash_info[0]);
+       size_b0 = flash_get_size(CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size_b0 == 0) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                        size_b0, size_b0>>20);
@@ -150,10 +150,10 @@ unsigned long flash_init (void)
         * protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -284,7 +284,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        while ((V_ULONG( info->start[l_sect] ) & 0x00800080) != 0x00800080 ||
               (V_ULONG( info->start[l_sect] + 4 ) & 0x00800080) != 0x00800080)
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -403,7 +403,7 @@ static int write_dword (flash_info_t *info, ulong dest, unsigned char * pdata)
        start = get_timer (0);
        while (((V_ULONG( dest ) & 0x00800080) != (ch & 0x00800080)) ||
               ((V_ULONG( dest + 4 ) & 0x00800080) != (cl & 0x00800080))) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 813f020ee9a90d124fa973a0a939e8da7c916073..c7aa2755f7bf1ccb553e0870f808035404d22548 100644 (file)
@@ -54,7 +54,7 @@ mii_phy_read(unsigned short reg)
 {
     int i;
     unsigned short tmp, val = 0, adr = 0;
-    t_ep_regs *regs = (t_ep_regs*)CFG_REGS_BASE;
+    t_ep_regs *regs = (t_ep_regs*)CONFIG_SYS_REGS_BASE;
 
     tmp = 0x6002 | (adr << 7) | (reg << 2);
     regs->bcsr4 = 0xC3;
@@ -83,7 +83,7 @@ mii_phy_write(unsigned short reg, unsigned short val)
 {
     int i;
     unsigned short tmp, adr = 0;
-    t_ep_regs *regs = (t_ep_regs*)CFG_REGS_BASE;
+    t_ep_regs *regs = (t_ep_regs*)CONFIG_SYS_REGS_BASE;
 
     tmp = 0x5002 | (adr << 7) | (reg << 2);
     regs->bcsr4 = 0xC3;
index 03baf0b59a45bb324b30914746530d152b84217b..c1d6e9100ba5f445619a8457d81729032a647446 100644 (file)
@@ -39,8 +39,8 @@
  * according to the five values podr/pdir/ppar/psor/pdat for that entry
  */
 
-#define CFG_FCC2 1
-#define CFG_FCC3 1
+#define CONFIG_SYS_FCC2 1
+#define CONFIG_SYS_FCC3 1
 
 const iop_conf_t iop_conf_tab[4][32] = {
 
@@ -82,34 +82,34 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port B */
     {  /*           conf       ppar psor pdir podr pdat */
-       /* PB31 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
-       /* PB30 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
-       /* PB29 */ { CFG_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
-       /* PB28 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
-       /* PB27 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
-       /* PB26 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
-       /* PB25 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
-       /* PB24 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
-       /* PB23 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
-       /* PB22 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
-       /* PB21 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
-       /* PB20 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
-       /* PB19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
-       /* PB18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
-       /* PB17 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RX_DIV     */
-       /* PB16 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RX_ERR     */
-       /* PB15 */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TX_ERR     */
-       /* PB14 */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TX_EN      */
-       /* PB13 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:COL        */
-       /* PB12 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:CRS        */
-       /* PB11 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD        */
-       /* PB10 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD        */
-       /* PB9  */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD        */
-       /* PB8  */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD        */
+       /* PB31 */ { CONFIG_SYS_FCC2,    1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
+       /* PB30 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
+       /* PB29 */ { CONFIG_SYS_FCC2,    1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
+       /* PB28 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
+       /* PB27 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
+       /* PB26 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
+       /* PB25 */ { CONFIG_SYS_FCC2,    1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
+       /* PB24 */ { CONFIG_SYS_FCC2,    1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
+       /* PB23 */ { CONFIG_SYS_FCC2,    1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
+       /* PB22 */ { CONFIG_SYS_FCC2,    1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
+       /* PB21 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
+       /* PB20 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
+       /* PB19 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
+       /* PB18 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
+       /* PB17 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:RX_DIV     */
+       /* PB16 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:RX_ERR     */
+       /* PB15 */ { CONFIG_SYS_FCC3,    1,   0,   1,   0,   0 }, /* FCC3:TX_ERR     */
+       /* PB14 */ { CONFIG_SYS_FCC3,    1,   0,   1,   0,   0 }, /* FCC3:TX_EN      */
+       /* PB13 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:COL        */
+       /* PB12 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:CRS        */
+       /* PB11 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:RXD        */
+       /* PB10 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:RXD        */
+       /* PB9  */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:RXD        */
+       /* PB8  */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* FCC3:RXD        */
        /* PB7  */ { 0,          0,   0,   0,   0,   0 }, /* PB7             */
-       /* PB6  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD        */
-       /* PB5  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD        */
-       /* PB4  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD        */
+       /* PB6  */ { CONFIG_SYS_FCC3,    1,   0,   1,   0,   0 }, /* FCC3:TXD        */
+       /* PB5  */ { CONFIG_SYS_FCC3,    1,   0,   1,   0,   0 }, /* FCC3:TXD        */
+       /* PB4  */ { CONFIG_SYS_FCC3,    1,   0,   1,   0,   0 }, /* FCC3:TXD        */
        /* PB3  */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
        /* PB2  */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
        /* PB1  */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
@@ -122,7 +122,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PC30 */ { 0,          0,   0,   0,   0,   0 }, /* PC30            */
        /* PC29 */ { 1,          1,   1,   0,   0,   0 }, /* SCC1 CTS#       */
        /* PC28 */ { 0,          0,   0,   0,   0,   0 }, /* PC28            */
-       /* PC27 */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3: TXD[0]    */
+       /* PC27 */ { CONFIG_SYS_FCC3,    1,   0,   1,   0,   0 }, /* FCC3: TXD[0]    */
        /* PC26 */ { 0,          0,   0,   0,   0,   0 }, /* PC26            */
        /* PC25 */ { 0,          0,   0,   0,   0,   0 }, /* PC25            */
        /* PC24 */ { 0,          0,   0,   0,   0,   0 }, /* PC24            */
@@ -130,10 +130,10 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PC22 */ { 0,          0,   0,   0,   0,   0 }, /* PC22            */
        /* PC21 */ { 0,          0,   0,   0,   0,   0 }, /* PC21            */
        /* PC20 */ { 0,          0,   0,   0,   0,   0 }, /* PC20            */
-       /* PC19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* RxClk (CLK13)   */
-       /* PC18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* TxClk (CLK14)   */
-       /* PC17 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* RxClk (CLK15)   */
-       /* PC16 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* TxClk (CLK16)   */
+       /* PC19 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* RxClk (CLK13)   */
+       /* PC18 */ { CONFIG_SYS_FCC2,    1,   0,   0,   0,   0 }, /* TxClk (CLK14)   */
+       /* PC17 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* RxClk (CLK15)   */
+       /* PC16 */ { CONFIG_SYS_FCC3,    1,   0,   0,   0,   0 }, /* TxClk (CLK16)   */
        /* PC15 */ { 0,          0,   0,   0,   0,   0 }, /* PC15            */
        /* PC14 */ { 1,          1,   0,   0,   0,   0 }, /* SCC1 CD#        */
        /* PC13 */ { 1,          1,   0,   0,   0,   0 }, /* SCC2 CTS#       */
@@ -198,7 +198,7 @@ typedef struct pci_ic_s {
 
 int board_early_init_f (void)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        bcsr[4] |= 0x30; /* Turn the LEDs off */
 
@@ -209,12 +209,12 @@ int board_early_init_f (void)
        bcsr[7] |= 0x10;
 #endif
 
-#if CFG_FCC3
+#if CONFIG_SYS_FCC3
        bcsr[8] |= 0xC0;
-#endif /* CFG_FCC3 */
-#if CFG_FCC2
+#endif /* CONFIG_SYS_FCC3 */
+#if CONFIG_SYS_FCC2
        bcsr[8] |= 0x30;
-#endif /* CFG_FCC2 */
+#endif /* CONFIG_SYS_FCC2 */
 
        return 0;
 }
@@ -224,23 +224,23 @@ phys_size_t initdram(int board_type)
        /* Size in MB of SDRAM populated on board*/
        long int msize = 256;
 
-#ifndef CFG_RAMBOOT
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+#ifndef CONFIG_SYS_RAMBOOT
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
-       uint psdmr = CFG_PSDMR;
+       uint psdmr = CONFIG_SYS_PSDMR;
        int i;
 
        unsigned char   ramtmp;
        unsigned char   *ramptr1 = (unsigned char *)0x00000110;
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
 udelay(400);
 
        /* Initialise 60x bus SDRAM */
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_or1  = CFG_SDRAM_OR;
-       memctl->memc_br1  = CFG_SDRAM_BR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_or1  = CONFIG_SYS_SDRAM_OR;
+       memctl->memc_br1  = CONFIG_SYS_SDRAM_BR;
        memctl->memc_psdmr = psdmr;
 
 udelay(400);
@@ -255,7 +255,7 @@ udelay(400);
        memctl->memc_psdmr = psdmr | PSDMR_OP_MRW;  /* Mode Register write */
        *ramptr1  = 0xFF;
        memctl->memc_psdmr = psdmr | PSDMR_RFEN;    /* Refresh enable */
-#endif /* !CFG_RAMBOOT */
+#endif /* !CONFIG_SYS_RAMBOOT */
 
        /* Return total 60x bus SDRAM size */
        return msize * 1024 * 1024;
@@ -263,7 +263,7 @@ udelay(400);
 
 int checkboard(void)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        puts("Board: ");
        switch (bcsr[0]) {
index 92e5f0c12c25e84ad3eb910f0e963f99cbf2b76b..7e95007379f7e688c9e1c04b5dff75a215625bc8 100644 (file)
@@ -63,7 +63,7 @@ static uint sdram_table[] = {
 
 int board_early_init_f (void)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        bcsr[0] |= 0x0C; /* Turn the LEDs off */
        bcsr[2] |= 0x08; /* Enable flash WE# line - necessary for
@@ -89,7 +89,7 @@ int board_early_init_f (void)
 phys_size_t initdram (int board_type)
 {
        long int msize;
-       volatile immap_t     *immap  = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        upmconfig(UPMA, sdram_table, sizeof(sdram_table) / sizeof(uint));
@@ -97,7 +97,7 @@ phys_size_t initdram (int board_type)
        /* Configure SDRAM refresh */
        memctl->memc_mptpr = MPTPR_PTP_DIV2; /* BRGCLK/2 */
 
-       memctl->memc_mamr = (65 << 24) | CFG_MAMR; /* No refresh */
+       memctl->memc_mamr = (65 << 24) | CONFIG_SYS_MAMR; /* No refresh */
        udelay(100);
 
        /* Run MRS pattern from location 0x36 */
@@ -106,10 +106,10 @@ phys_size_t initdram (int board_type)
        udelay(100);
 
        memctl->memc_mamr |=  MAMR_PTAE; /* Enable refresh */
-       memctl->memc_or1   = ~(CFG_SDRAM_MAX_SIZE - 1) | OR_CSNT_SAM;
-       memctl->memc_br1   =  CFG_SDRAM_BASE | BR_PS_32 | BR_MS_UPMA | BR_V;
+       memctl->memc_or1   = ~(CONFIG_SYS_SDRAM_MAX_SIZE - 1) | OR_CSNT_SAM;
+       memctl->memc_br1   =  CONFIG_SYS_SDRAM_BASE | BR_PS_32 | BR_MS_UPMA | BR_V;
 
-       msize = get_ram_size(CFG_SDRAM_BASE, CFG_SDRAM_MAX_SIZE);
+       msize = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_MAX_SIZE);
        memctl->memc_or1  |= ~(msize - 1);
 
        return msize;
@@ -117,7 +117,7 @@ phys_size_t initdram (int board_type)
 
 int checkboard( void )
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        puts("Board: ");
        switch (bcsr[15]) {
index 972d485b5a6d06e8373cabae9d73cc300fde1eec..600b9d7a7ced4e2bb15f266efbfda334b49487b0 100644 (file)
@@ -142,7 +142,7 @@ phys_size_t initdram (int board_type)
         * so let init.S do the init job for SDRAM
         * and simply return 32MByte here
         */
-       return (CFG_SDRAM_SIZE * 1024 * 1024);
+       return (CONFIG_SYS_SDRAM_SIZE * 1024 * 1024);
 #else
 
        /* Read Serial Presence Detect Information */
index 2c7d2a08c402dcf2975fcb18ede5fc6da53c0577..7e57513aebf57489786ffa1325a57dd859c5ad41 100644 (file)
 #include <ppc4xx.h>
 #include <asm/processor.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 
-#ifdef CFG_FLASH_16BIT
+#ifdef CONFIG_SYS_FLASH_16BIT
 #define FLASH_WORD_SIZE        unsigned short
 #define        FLASH_ID_MASK   0xFFFF
 #else
@@ -42,7 +42,7 @@ flash_info_t  flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
 /* stolen from esteem192e/flash.c */
 ulong flash_get_size (volatile FLASH_WORD_SIZE *addr, flash_info_t *info);
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 static int write_word (flash_info_t *info, ulong dest, ulong data);
 #else
 static int write_short (flash_info_t *info, ulong dest, ushort data);
@@ -61,7 +61,7 @@ unsigned long flash_init (void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -75,7 +75,7 @@ unsigned long flash_init (void)
        }
 
        /* Only one bank */
-       if (CFG_MAX_FLASH_BANKS == 1)
+       if (CONFIG_SYS_MAX_FLASH_BANKS == 1)
          {
            /* Setup offsets */
            flash_get_offsets (FLASH_BASE0_PRELIM, &flash_info[0]);
@@ -88,8 +88,8 @@ unsigned long flash_init (void)
                                &flash_info[0]);
 #else
            (void)flash_protect(FLAG_PROTECT_SET,
-                               CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE+monitor_flash_len-1,
+                               CONFIG_SYS_MONITOR_BASE,
+                               CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                                &flash_info[0]);
 #endif
            size_b1 = 0 ;
@@ -137,8 +137,8 @@ unsigned long flash_init (void)
                                &flash_info[0]);
 #else
            (void)flash_protect(FLAG_PROTECT_SET,
-                               CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE+monitor_flash_len-1,
+                               CONFIG_SYS_MONITOR_BASE,
+                               CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                                &flash_info[0]);
 #endif
 
@@ -187,7 +187,7 @@ static void flash_get_offsets (ulong base, flash_info_t *info)
        } else if (info->flash_id & FLASH_BTYPE) {
             if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL) {
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                /* set sector offsets for bottom boot block type        */
                info->start[0] = base + 0x00000000;
                info->start[1] = base + 0x00004000;
@@ -241,7 +241,7 @@ static void flash_get_offsets (ulong base, flash_info_t *info)
                i = info->sector_count - 1;
             if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL) {
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                info->start[i--] = base + info->size - 0x00004000;
                info->start[i--] = base + info->size - 0x00008000;
                info->start[i--] = base + info->size - 0x0000C000;
@@ -403,7 +403,7 @@ ulong flash_get_size (volatile FLASH_WORD_SIZE *addr, flash_info_t *info)
        /* Write auto select command: read Manufacturer ID */
 
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 
        /*
         * Note: if it is an AMD flash and the word at addr[0000]
@@ -654,7 +654,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts();
     if(info->flash_id < FLASH_AMD_COMP) {
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
        addr[0x0555] = 0x00AA00AA;
        addr[0x02AA] = 0x00550055;
        addr[0x0555] = 0x00800080;
@@ -695,7 +695,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        while ((addr[0] & (0x00800080&FLASH_ID_MASK)) !=
                          (0x00800080&FLASH_ID_MASK)  )
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -716,7 +716,7 @@ DONE:
        for (sect = s_first; sect<=s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
                        barf = 0;
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                        addr = (vu_long*)(info->start[sect]);
                        addr[0] = 0x00200020;
                        addr[0] = 0x00D000D0;
@@ -767,7 +767,7 @@ DONE:
        flash_info_t *info;
        int i;
 
-       for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
+       for (i=0, info=&flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
                if ((addr >= info->start[0]) &&
                    (addr < (info->start[0] + info->size)) ) {
                        return (info);
@@ -844,7 +844,7 @@ DONE:
 
 int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
 {
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
        ulong cp, wp, data;
        int l;
 #else
@@ -853,7 +853,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
 #endif
        int i, rc;
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 
 
        wp = (addr & ~3);       /* get lower word aligned address */
@@ -980,7 +980,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
  * 1 - write timeout
  * 2 - Flash not erased
  */
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 static int write_word (flash_info_t * info, ulong dest, ulong data)
 {
        vu_long *addr = (vu_long *) (info->start[0]);
@@ -1018,7 +1018,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
 
                while ((*((vu_long *) dest) & 0x00800080) !=
                       (data & 0x00800080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -1026,7 +1026,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
        } else {
 
                while (!(addr[0] & 0x00800080)) {       /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
 
@@ -1093,7 +1093,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
        if (info->flash_id < FLASH_AMD_COMP) {
                /* AMD stuff */
                while ((*((vu_short *) dest) & 0x0080) != (data & 0x0080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -1101,7 +1101,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
        } else {
                /* intel stuff */
                while (!(addr[0] & 0x0080)) {   /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
 
@@ -1120,7 +1120,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
                *addr = 0x00B0;
                *addr = 0x0070;
                while (!(addr[0] & 0x0080)) {   /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
                *addr = 0x00FF;
index 9d4e7ff48246f62ca95d08b64bfc4541a2d85e30..2304cc7bbe6d476e8689738b3cd750f402962068 100644 (file)
@@ -219,7 +219,7 @@ sdram_init:
 
        mflr    r31
 
-#ifdef CFG_SDRAM_MANUALLY
+#ifdef CONFIG_SYS_SDRAM_MANUALLY
        /*------------------------------------------------------------------- */
        /* Set MB0CF for bank 0. (0-32MB) Address Mode 4 since 12x8(2) */
        /*------------------------------------------------------------------- */
index d9eccba1ea8375f06650687c10595e94a7a0c125..dd578c8939bd447ba0493fc3072a9438cafc5e9a 100644 (file)
@@ -45,7 +45,7 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index e629fd94913ad7c213dc7a74be71fe4e331dea3d..ac9bbb3f45e5be1c33538bc589bc75b4da40f4b6 100644 (file)
@@ -41,7 +41,7 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
 extern void lxt971_no_sleep(void);
 extern ulong flash_get_size (ulong base, int banknum);
 
-int flash_banks = CFG_MAX_FLASH_BANKS_DETECT;
+int flash_banks = CONFIG_SYS_MAX_FLASH_BANKS_DETECT;
 
 /* fpga configuration data - gzip compressed and generated by bin2c */
 const unsigned char fpgadata[] =
@@ -140,7 +140,7 @@ int board_early_init_f (void)
         * First pull fpga-prg pin low, to disable fpga logic
         */
        out_be32((void*)GPIO0_ODR, 0x00000000);        /* no open drain pins */
-       out_be32((void*)GPIO0_TCR, CFG_FPGA_PRG);      /* setup for output   */
+       out_be32((void*)GPIO0_TCR, CONFIG_SYS_FPGA_PRG);      /* setup for output   */
        out_be32((void*)GPIO0_OR, 0);                  /* pull prg low       */
 
        /*
@@ -178,8 +178,8 @@ int board_early_init_f (void)
                mtebc(pb1cr, 0);
 
                /* resize CS0 to 32MB */
-               mtebc(pb0ap, CFG_EBC_PB0AP_HWREV8);
-               mtebc(pb0cr, CFG_EBC_PB0CR_HWREV8);
+               mtebc(pb0ap, CONFIG_SYS_EBC_PB0AP_HWREV8);
+               mtebc(pb0cr, CONFIG_SYS_EBC_PB0CR_HWREV8);
        }
 
        return 0;
@@ -200,8 +200,8 @@ int board_early_init_r(void)
 
 int misc_init_r(void)
 {
-       u16 *fpga_mode = (u16 *)(CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
-       u16 *fpga_ctrl2 =(u16 *)(CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL2);
+       u16 *fpga_mode = (u16 *)(CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
+       u16 *fpga_ctrl2 =(u16 *)(CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL2);
        u8 *duart0_mcr = (u8 *)(DUART0_BA + 4);
        u8 *duart1_mcr = (u8 *)(DUART1_BA + 4);
        unsigned char *dst;
@@ -222,8 +222,8 @@ int misc_init_r(void)
        cntrl0Reg = mfdcr(cntrl0);
        mtdcr(cntrl0, cntrl0Reg | 0x00300000);
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip(dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip(dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf("GUNZIP ERROR - must RESET board to recover\n");
                do_reset(NULL, 0, 0, NULL);
        }
@@ -297,11 +297,11 @@ int misc_init_r(void)
        /*
         * Enable power on PS/2 interface (with reset)
         */
-       out_be16(fpga_mode, in_be16(fpga_mode) | CFG_FPGA_CTRL_PS2_RESET);
+       out_be16(fpga_mode, in_be16(fpga_mode) | CONFIG_SYS_FPGA_CTRL_PS2_RESET);
        for (i=0;i<100;i++)
                udelay(1000);
        udelay(1000);
-       out_be16(fpga_mode, in_be16(fpga_mode) & ~CFG_FPGA_CTRL_PS2_RESET);
+       out_be16(fpga_mode, in_be16(fpga_mode) & ~CONFIG_SYS_FPGA_CTRL_PS2_RESET);
 
        /*
         * Enable interrupts in exar duart mcr[3]
@@ -315,15 +315,15 @@ int misc_init_r(void)
        str = getenv("splashimage");
        if (str) {
                logo_addr = (uchar *)simple_strtoul(str, NULL, 16);
-               logo_size = CFG_VIDEO_LOGO_MAX_SIZE;
+               logo_size = CONFIG_SYS_VIDEO_LOGO_MAX_SIZE;
        } else {
                logo_addr = logo_bmp;
                logo_size = sizeof(logo_bmp);
        }
 
        if (gd->board_type >= 6) {
-               result = lcd_init((uchar *)CFG_LCD_BIG_REG,
-                                 (uchar *)CFG_LCD_BIG_MEM,
+               result = lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG,
+                                 (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                                  regs_13505_640_480_16bpp,
                                  sizeof(regs_13505_640_480_16bpp) /
                                  sizeof(regs_13505_640_480_16bpp[0]),
@@ -332,16 +332,16 @@ int misc_init_r(void)
                        /* retry with internal image */
                        logo_addr = logo_bmp;
                        logo_size = sizeof(logo_bmp);
-                       lcd_init((uchar *)CFG_LCD_BIG_REG,
-                                (uchar *)CFG_LCD_BIG_MEM,
+                       lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG,
+                                (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                                 regs_13505_640_480_16bpp,
                                 sizeof(regs_13505_640_480_16bpp) /
                                 sizeof(regs_13505_640_480_16bpp[0]),
                                 logo_addr, logo_size);
                }
        } else {
-               result = lcd_init((uchar *)CFG_LCD_BIG_REG,
-                                 (uchar *)CFG_LCD_BIG_MEM,
+               result = lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG,
+                                 (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                                  regs_13806_640_480_16bpp,
                                  sizeof(regs_13806_640_480_16bpp) /
                                  sizeof(regs_13806_640_480_16bpp[0]),
@@ -350,8 +350,8 @@ int misc_init_r(void)
                        /* retry with internal image */
                        logo_addr = logo_bmp;
                        logo_size = sizeof(logo_bmp);
-                       lcd_init((uchar *)CFG_LCD_BIG_REG,
-                                (uchar *)CFG_LCD_BIG_MEM,
+                       lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG,
+                                (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                                 regs_13806_640_480_16bpp,
                                 sizeof(regs_13806_640_480_16bpp) /
                                 sizeof(regs_13806_640_480_16bpp[0]),
@@ -389,12 +389,12 @@ int misc_init_r(void)
         * fix environment for field updated units
         */
        if (getenv("altbootcmd") == NULL) {
-               setenv("usb_load", CFG_USB_LOAD_COMMAND);
-               setenv("usbargs", CFG_USB_ARGS);
+               setenv("usb_load", CONFIG_SYS_USB_LOAD_COMMAND);
+               setenv("usbargs", CONFIG_SYS_USB_ARGS);
                setenv("bootcmd", CONFIG_BOOTCOMMAND);
-               setenv("usb_self", CFG_USB_SELF_COMMAND);
-               setenv("bootlimit", CFG_BOOTLIMIT);
-               setenv("altbootcmd", CFG_ALT_BOOTCOMMAND);
+               setenv("usb_self", CONFIG_SYS_USB_SELF_COMMAND);
+               setenv("bootlimit", CONFIG_SYS_BOOTLIMIT);
+               setenv("altbootcmd", CONFIG_SYS_ALT_BOOTCOMMAND);
                saveenv();
        }
 
@@ -426,17 +426,17 @@ int checkboard (void)
 #ifdef CONFIG_IDE_RESET
 void ide_set_reset(int on)
 {
-       u16 *fpga_mode = (u16 *)(CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
+       u16 *fpga_mode = (u16 *)(CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
 
        /*
         * Assert or deassert CompactFlash Reset Pin
         */
        if (on) {
                out_be16(fpga_mode,
-                        in_be16(fpga_mode) & ~CFG_FPGA_CTRL_CF_RESET);
+                        in_be16(fpga_mode) & ~CONFIG_SYS_FPGA_CTRL_CF_RESET);
        } else {
                out_be16(fpga_mode,
-                        in_be16(fpga_mode) | CFG_FPGA_CTRL_CF_RESET);
+                        in_be16(fpga_mode) | CONFIG_SYS_FPGA_CTRL_CF_RESET);
        }
 }
 #endif /* CONFIG_IDE_RESET */
@@ -449,7 +449,7 @@ void reset_phy(void)
        lxt971_no_sleep();
 }
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_BOARD_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_BOARD_INIT)
 int usb_board_init(void)
 {
        return 0;
@@ -480,4 +480,4 @@ int usb_board_init_fail(void)
        usb_board_stop();
        return 0;
 }
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_BOARD_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_BOARD_INIT) */
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index c3710ab48111e0417f4cf256de1b9f4b3f3d7cbc..dd1e2ec2e22b5399e9aa4ef8e9debb5a733d8fb2 100644 (file)
@@ -94,8 +94,8 @@ int misc_init_r (void)
        int index;
        int i;
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
@@ -157,9 +157,9 @@ int misc_init_r (void)
        /*
         * Reset external DUARTs
         */
-       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_DUART_RST);
+       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_DUART_RST);
        udelay(10); /* wait 10us */
-       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CFG_DUART_RST);
+       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CONFIG_SYS_DUART_RST);
        udelay(1000); /* wait 1ms */
 
        /*
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index de847f9beac33ba27fe583b12ef0d170a6770617..56c822ec97f981a36bef309988f5b4b43ae7c182 100644 (file)
@@ -47,7 +47,7 @@ unsigned long flash_init (void)
        unsigned long base_b0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index 806c755c6f651616f1241d23e9c37135837275fd..5709d45047199b246aeab3aa236b052e2dc9082c 100644 (file)
@@ -69,9 +69,9 @@ int board_early_init_f (void)
        /*
         * Reset CPLD via GPIO12 (CS3) pin
         */
-       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CFG_PLD_RESET);
+       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CONFIG_SYS_PLD_RESET);
        udelay(1000); /* wait 1ms */
-       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_PLD_RESET);
+       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_PLD_RESET);
        udelay(1000); /* wait 1ms */
 
        return 0;
@@ -86,7 +86,7 @@ int misc_init_r (void)
        /*
         * Setup and enable EEPROM write protection
         */
-       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_EEPROM_WP);
+       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
 
        return (0);
 }
@@ -101,8 +101,8 @@ int checkboard (void)
        char str[64];
        int flashcnt;
        int delay;
-       volatile unsigned char *led_reg = (unsigned char *)((ulong)CFG_PLD_BASE + 0x1000);
-       volatile unsigned char *ver_reg = (unsigned char *)((ulong)CFG_PLD_BASE + 0x1001);
+       volatile unsigned char *led_reg = (unsigned char *)((ulong)CONFIG_SYS_PLD_BASE + 0x1000);
+       volatile unsigned char *ver_reg = (unsigned char *)((ulong)CONFIG_SYS_PLD_BASE + 0x1001);
 
        puts ("Board: ");
 
@@ -132,7 +132,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 /* Input: <dev_addr>  I2C address of EEPROM device to enable.
  *         <state>     -1: deliver current state
  *                    0: disable write
@@ -143,23 +143,23 @@ int checkboard (void)
  */
 int eeprom_write_enable (unsigned dev_addr, int state)
 {
-       if (CFG_I2C_EEPROM_ADDR != dev_addr) {
+       if (CONFIG_SYS_I2C_EEPROM_ADDR != dev_addr) {
                return -1;
        } else {
                switch (state) {
                case 1:
                        /* Enable write access, clear bit GPIO_SINT2. */
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CFG_EEPROM_WP);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                case 0:
                        /* Disable write access, set bit GPIO_SINT2. */
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_EEPROM_WP);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                default:
                        /* Read current status back. */
-                       state = (0 == (in_be32((void *)GPIO0_OR) & CFG_EEPROM_WP));
+                       state = (0 == (in_be32((void *)GPIO0_OR) & CONFIG_SYS_EEPROM_WP));
                        break;
                }
        }
@@ -173,21 +173,21 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (query) {
                /* Query write access state. */
-               state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, -1);
+               state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, -1);
                if (state < 0) {
                        puts ("Query of write access state failed.\n");
                } else {
                        printf ("Write access for device 0x%0x is %sabled.\n",
-                               CFG_I2C_EEPROM_ADDR, state ? "en" : "dis");
+                               CONFIG_SYS_I2C_EEPROM_ADDR, state ? "en" : "dis");
                        state = 0;
                }
        } else {
                if ('0' == argv[1][0]) {
                        /* Disable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 0);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 0);
                } else {
                        /* Enable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 1);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 1);
                }
                if (state < 0) {
                        puts ("Setup of write access state failed.\n");
@@ -200,7 +200,7 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 U_BOOT_CMD(eepwren,    2,      0,      do_eep_wren,
           "eepwren - Enable / disable / query EEPROM write access\n",
           NULL);
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
 
 /* ------------------------------------------------------------------------- */
 
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index a1e0ce5a27199b74ac804ea2c952f6cd0b5e2a3d..633f64178e6ecff1d32b7118120df64cef9f6477 100644 (file)
@@ -72,7 +72,7 @@ extern int nand_legacy_erase(struct nand_chip* nand, size_t ofs,
                             size_t len, int clean);
 #endif
 
-extern block_dev_desc_t ide_dev_desc[CFG_IDE_MAXDEVICE];
+extern block_dev_desc_t ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE];
 
 int au_check_cksum_valid(int i, long nbytes)
 {
@@ -335,7 +335,7 @@ static void process_macros (const char *input, char *output)
        char c, prev;
        const char *varname_start = NULL;
        int inputcnt  = strlen (input);
-       int outputcnt = CFG_CBSIZE;
+       int outputcnt = CONFIG_SYS_CBSIZE;
        int state = 0;  /* 0 = waiting for '$'  */
                        /* 1 = waiting for '(' or '{' */
                        /* 2 = waiting for ')' or '}' */
@@ -394,7 +394,7 @@ static void process_macros (const char *input, char *output)
            case 2:                     /* Waiting for )        */
                if (c == ')' || c == '}') {
                        int i;
-                       char envname[CFG_CBSIZE], *envval;
+                       char envname[CONFIG_SYS_CBSIZE], *envval;
                        /* Varname # of chars */
                        int envcnt = input - varname_start - 1;
 
index 40d1efb081b295abee3425f137e157ba488141e6..736176f5db24dfadff517998438440e0d7334604 100644 (file)
@@ -35,17 +35,17 @@ static void esd405ep_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int
        struct nand_chip *this = mtd->priv;
        if (ctrl & NAND_CTRL_CHANGE) {
                if ( ctrl & NAND_CLE )
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_NAND_CLE);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_NAND_CLE);
                else
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CFG_NAND_CLE);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CONFIG_SYS_NAND_CLE);
                if ( ctrl & NAND_ALE )
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_NAND_ALE);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_NAND_ALE);
                else
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CFG_NAND_ALE);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CONFIG_SYS_NAND_ALE);
                if ( ctrl & NAND_NCE )
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CFG_NAND_CE);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~CONFIG_SYS_NAND_CE);
                else
-                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_NAND_CE);
+                       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_NAND_CE);
        }
 
        if (cmd != NAND_CMD_NONE)
@@ -58,7 +58,7 @@ static void esd405ep_nand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int
  */
 static int esd405ep_nand_device_ready(struct mtd_info *mtdinfo)
 {
-       if (in_be32((void *)GPIO0_IR) & CFG_NAND_RDY)
+       if (in_be32((void *)GPIO0_IR) & CONFIG_SYS_NAND_RDY)
                return 1;
        return 0;
 }
@@ -69,8 +69,8 @@ int board_nand_init(struct nand_chip *nand)
        /*
         * Set NAND-FLASH GPIO signals to defaults
         */
-       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~(CFG_NAND_CLE | CFG_NAND_ALE));
-       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CFG_NAND_CE);
+       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) & ~(CONFIG_SYS_NAND_CLE | CONFIG_SYS_NAND_ALE));
+       out_be32((void *)GPIO0_OR, in_be32((void *)GPIO0_OR) | CONFIG_SYS_NAND_CE);
 
        /*
         * Initialize nand_chip structure
index bda361ead949ec5c63988729e6b3cd9f2ab15c1c..3ea053b8cc48221c11de3ab8a7b5a9e251e35cbc 100644 (file)
@@ -27,7 +27,7 @@
 #endif
 #include <asm/processor.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -167,7 +167,7 @@ void flash_print_info  (flash_info_t *info)
 
        printf ("  Sector Start Addresses:");
        for (i=0; i<info->sector_count; ++i) {
-#ifdef CFG_FLASH_EMPTY_INFO
+#ifdef CONFIG_SYS_FLASH_EMPTY_INFO
                /*
                 * Check if whole sector is erased
                 */
@@ -221,28 +221,28 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 {
        short i;
        short n;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong)addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *)addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)addr;
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00900090;
 
-       value = addr2[CFG_FLASH_READ0];
+       value = addr2[CONFIG_SYS_FLASH_READ0];
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_WORD_SIZE)FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_WORD_SIZE)SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_WORD_SIZE)EXCEL_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)EXCEL_MANUFACT:
                info->flash_id = FLASH_MAN_EXCEL;
                break;
        default:
@@ -252,104 +252,104 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
                return (0);                     /* no or unknown flash  */
        }
 
-       value = addr2[CFG_FLASH_READ1];         /* device ID            */
+       value = addr2[CONFIG_SYS_FLASH_READ1];          /* device ID            */
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400T:
                info->flash_id += FLASH_AM400T;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400B:
                info->flash_id += FLASH_AM400B;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800T:
                info->flash_id += FLASH_AM800T;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800B:
                info->flash_id += FLASH_AM800B;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160T:
                info->flash_id += FLASH_AM160T;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160B:
                info->flash_id += FLASH_AM160B;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320T:
                info->flash_id += FLASH_AM320T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320B:
                info->flash_id += FLASH_AM320B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322T:
                info->flash_id += FLASH_AMDL322T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322B:
                info->flash_id += FLASH_AMDL322B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323T:
                info->flash_id += FLASH_AMDL323T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323B:
                info->flash_id += FLASH_AMDL323B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV640U:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV640U:
                info->flash_id += FLASH_AM640U;
                info->sector_count = 128;
                info->size = 0x00800000;  break;        /* => 8 MB      */
 
 #if !(defined(CONFIG_ADCIOP) || defined(CONFIG_DASA_SIM))
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF800A:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF800A:
                info->flash_id += FLASH_SST800A;
                info->sector_count = 16;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF160A:
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF1601:
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF1602:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF160A:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF1601:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF1602:
                info->flash_id += FLASH_SST160A;
                info->sector_count = 32;
                info->size = 0x00200000;
                break;                          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF3201:
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF3202:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF3201:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF3202:
                info->flash_id += FLASH_SST320;
                info->sector_count = 64;
                info->size = 0x00400000;
                break;                          /* => 4 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF6401:
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF6402:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF6401:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF6402:
                info->flash_id += FLASH_SST640;
                info->sector_count = 128;
                info->size = 0x00800000;
@@ -424,19 +424,19 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
                if ((info->flash_id & FLASH_VENDMASK) != FLASH_MAN_AMD)
                  info->protect[i] = 0;
                else
-                 info->protect[i] = addr2[CFG_FLASH_READ2] & 1;
+                 info->protect[i] = addr2[CONFIG_SYS_FLASH_READ2] & 1;
        }
 
        /*
         * Prevent writes to uninitialized FLASH.
         */
        if (info->flash_id != FLASH_UNKNOWN) {
-               addr2 = (CFG_FLASH_WORD_SIZE *)info->start[0];
-               *addr2 = (CFG_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
+               addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+               *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;        /* reset bank */
        }
 
        return (info->size);
@@ -448,8 +448,8 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 
 int    flash_erase (flash_info_t *info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        ulong start, now, last;
        int i;
@@ -490,25 +490,25 @@ int       flash_erase (flash_info_t *info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect<=s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                   addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[sect]);
+                   addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[sect]);
                    if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                       addr2[0] = (CFG_FLASH_WORD_SIZE)0x00500050;  /* block erase */
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00500050;  /* block erase */
                        for (i=0; i<50; i++)
                          udelay(1000);  /* wait 1 ms */
                    } else {
                        if (sect == s_first) {
-                           addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                           addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                           addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                           addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                           addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
+                           addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                           addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                           addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                           addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                           addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
                        }
-                       addr2[0] = (CFG_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
+                       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
                    }
                    l_sect = sect;
                }
@@ -529,9 +529,9 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 
        start = get_timer (0);
        last  = start;
-       addr = (CFG_FLASH_WORD_SIZE *)(info->start[l_sect]);
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE)0x00800080) != (CFG_FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[l_sect]);
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) != (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -544,8 +544,8 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 
 DONE:
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *)info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE)0x00F000F0;      /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
 
        printf (" done\n");
        return 0;
@@ -630,9 +630,9 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
  */
 static int write_word (flash_info_t *info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *)dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *)&data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *)dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *)&data;
        ulong start;
        int flag;
        int i;
@@ -645,11 +645,11 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts();
 
-       for (i=0; i<4/sizeof(CFG_FLASH_WORD_SIZE); i++)
+       for (i=0; i<4/sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++)
          {
-           addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-           addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-           addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00A000A0;
+           addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+           addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+           addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00A000A0;
 
            dest2[i] = data2[i];
 
@@ -659,9 +659,9 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
 
            /* data polling for D7 */
            start = get_timer (0);
-           while ((dest2[i] & (CFG_FLASH_WORD_SIZE)0x00800080) !=
-                  (data2[i] & (CFG_FLASH_WORD_SIZE)0x00800080)) {
-             if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+           while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) !=
+                  (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080)) {
+             if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                return (1);
              }
            }
index 9e2be7eaf044bed9d2a8ad0c85c034d5c08c643c..5232dddc9e88028d8c3215969990a284ebcb442d 100644 (file)
 
 #define MAX_ONES               226
 
-#ifdef CFG_FPGA_PRG
-# define FPGA_PRG              CFG_FPGA_PRG    /* FPGA program pin (ppc output) */
-# define FPGA_CLK              CFG_FPGA_CLK    /* FPGA clk pin (ppc output)    */
-# define FPGA_DATA             CFG_FPGA_DATA   /* FPGA data pin (ppc output)  */
-# define FPGA_DONE             CFG_FPGA_DONE   /* FPGA done pin (ppc input)   */
-# define FPGA_INIT             CFG_FPGA_INIT   /* FPGA init pin (ppc input)   */
+#ifdef CONFIG_SYS_FPGA_PRG
+# define FPGA_PRG              CONFIG_SYS_FPGA_PRG     /* FPGA program pin (ppc output) */
+# define FPGA_CLK              CONFIG_SYS_FPGA_CLK     /* FPGA clk pin (ppc output)    */
+# define FPGA_DATA             CONFIG_SYS_FPGA_DATA    /* FPGA data pin (ppc output)  */
+# define FPGA_DONE             CONFIG_SYS_FPGA_DONE    /* FPGA done pin (ppc input)   */
+# define FPGA_INIT             CONFIG_SYS_FPGA_INIT    /* FPGA init pin (ppc input)   */
 #else
 # define FPGA_PRG              0x04000000      /* FPGA program pin (ppc output) */
 # define FPGA_CLK              0x02000000      /* FPGA clk pin (ppc output)     */
@@ -98,7 +98,7 @@ static int fpga_boot (const unsigned char *fpgadata, int size)
        int count;
        unsigned char b;
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        int j;
 #else
        int bit;
@@ -112,7 +112,7 @@ static int fpga_boot (const unsigned char *fpgadata, int size)
                index += len + 3;
        }
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        /* search for preamble 0xFFFFFFFF */
        while (1) {
                if ((fpgadata[index] == 0xff) && (fpgadata[index + 1] == 0xff)
@@ -186,7 +186,7 @@ static int fpga_boot (const unsigned char *fpgadata, int size)
        DBG ("write configuration data into fpga\n");
        /* write configuration-data into fpga... */
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        /*
         * Load uncompressed image into fpga
         */
index c23dc81a26616a7dc5af944c927c991c1760d94e..1eea59ecb12e9dd197a1ccaecf7d6de2a1247d06 100644 (file)
@@ -37,7 +37,7 @@ int lcd_depth;
 unsigned char *glob_lcd_reg;
 unsigned char *glob_lcd_mem;
 
-#if defined(CFG_LCD_ENDIAN)
+#if defined(CONFIG_SYS_LCD_ENDIAN)
 void lcd_setup(int lcd, int config)
 {
        if (lcd == 0) {
@@ -47,21 +47,21 @@ void lcd_setup(int lcd, int config)
 
                /* set reset to low */
                out_be32((void*)GPIO0_OR,
-                        in_be32((void*)GPIO0_OR) & ~CFG_LCD0_RST);
+                        in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_LCD0_RST);
                udelay(10); /* wait 10us */
                if (config == 1) {
                        /* big-endian */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) | CFG_LCD_ENDIAN);
+                                in_be32((void*)GPIO0_OR) | CONFIG_SYS_LCD_ENDIAN);
                } else {
                        /* little-endian */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) & ~CFG_LCD_ENDIAN);
+                                in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_LCD_ENDIAN);
                }
                udelay(10); /* wait 10us */
                /* set reset to high */
                out_be32((void*)GPIO0_OR,
-                        in_be32((void*)GPIO0_OR) | CFG_LCD0_RST);
+                        in_be32((void*)GPIO0_OR) | CONFIG_SYS_LCD0_RST);
        } else {
                /*
                 * Set endianess and reset lcd controller 1 (big)
@@ -69,29 +69,29 @@ void lcd_setup(int lcd, int config)
 
                /* set reset to low */
                out_be32((void*)GPIO0_OR,
-                        in_be32((void*)GPIO0_OR) & ~CFG_LCD1_RST);
+                        in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_LCD1_RST);
                udelay(10); /* wait 10us */
                if (config == 1) {
                        /* big-endian */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) | CFG_LCD_ENDIAN);
+                                in_be32((void*)GPIO0_OR) | CONFIG_SYS_LCD_ENDIAN);
                } else {
                        /* little-endian */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) & ~CFG_LCD_ENDIAN);
+                                in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_LCD_ENDIAN);
                }
                udelay(10); /* wait 10us */
                /* set reset to high */
                out_be32((void*)GPIO0_OR,
-                        in_be32((void*)GPIO0_OR) | CFG_LCD1_RST);
+                        in_be32((void*)GPIO0_OR) | CONFIG_SYS_LCD1_RST);
        }
 
        /*
-        * CFG_LCD_ENDIAN may also be FPGA_RESET, so set inactive
+        * CONFIG_SYS_LCD_ENDIAN may also be FPGA_RESET, so set inactive
         */
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_LCD_ENDIAN);
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_LCD_ENDIAN);
 }
-#endif /* CFG_LCD_ENDIAN */
+#endif /* CONFIG_SYS_LCD_ENDIAN */
 
 
 int lcd_bmp(uchar *logo_bmp)
@@ -116,20 +116,20 @@ int lcd_bmp(uchar *logo_bmp)
                /*
                 * Decompress bmp image
                 */
-               len = CFG_VIDEO_LOGO_MAX_SIZE;
-               dst = malloc(CFG_VIDEO_LOGO_MAX_SIZE);
+               len = CONFIG_SYS_VIDEO_LOGO_MAX_SIZE;
+               dst = malloc(CONFIG_SYS_VIDEO_LOGO_MAX_SIZE);
                if (dst == NULL) {
                        printf("Error: malloc for gunzip failed!\n");
                        return 1;
                }
-               if (gunzip(dst, CFG_VIDEO_LOGO_MAX_SIZE,
+               if (gunzip(dst, CONFIG_SYS_VIDEO_LOGO_MAX_SIZE,
                           (uchar *)logo_bmp, &len) != 0) {
                        free(dst);
                        return 1;
                }
-               if (len == CFG_VIDEO_LOGO_MAX_SIZE) {
+               if (len == CONFIG_SYS_VIDEO_LOGO_MAX_SIZE) {
                        printf("Image could be truncated"
-                              " (increase CFG_VIDEO_LOGO_MAX_SIZE)!\n");
+                              " (increase CONFIG_SYS_VIDEO_LOGO_MAX_SIZE)!\n");
                }
 
                /*
index f711205efe57362f1a69ce860b6b4054b64f18ec..dcb764cd1f3c0c625ea31b2af2b1e0a133f0b70b 100644 (file)
@@ -119,24 +119,24 @@ static void pci_dasa_sim_config_pci9054(struct pci_controller *hose, pci_dev_t d
   /*
    * Configure PLX PCI9054
    */
-  pci_read_config_word(CFG_PCI9054_DEV_FN, PCI_COMMAND, &status);
+  pci_read_config_word(CONFIG_SYS_PCI9054_DEV_FN, PCI_COMMAND, &status);
   status |= PCI_COMMAND_MASTER | PCI_COMMAND_IO | PCI_COMMAND_MEMORY;
-  pci_write_config_word(CFG_PCI9054_DEV_FN, PCI_COMMAND, status);
+  pci_write_config_word(CONFIG_SYS_PCI9054_DEV_FN, PCI_COMMAND, status);
 
   /* Check the latency timer for values >= 0x60.
    */
-  pci_read_config_byte(CFG_PCI9054_DEV_FN, PCI_LATENCY_TIMER, &timer);
+  pci_read_config_byte(CONFIG_SYS_PCI9054_DEV_FN, PCI_LATENCY_TIMER, &timer);
   if (timer < 0x60)
     {
-      pci_write_config_byte(CFG_PCI9054_DEV_FN, PCI_LATENCY_TIMER, 0x60);
+      pci_write_config_byte(CONFIG_SYS_PCI9054_DEV_FN, PCI_LATENCY_TIMER, 0x60);
     }
 
   /* Set I/O base register.
    */
-  pci_write_config_dword(CFG_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, CFG_PCI9054_IOBASE);
-  pci_read_config_dword(CFG_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, &iobase);
+  pci_write_config_dword(CONFIG_SYS_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, CONFIG_SYS_PCI9054_IOBASE);
+  pci_read_config_dword(CONFIG_SYS_PCI9054_DEV_FN, PCI_BASE_ADDRESS_0, &iobase);
 
-  pci9054_iobase = pci_mem_to_phys(CFG_PCI9054_DEV_FN, iobase & PCI_BASE_ADDRESS_MEM_MASK);
+  pci9054_iobase = pci_mem_to_phys(CONFIG_SYS_PCI9054_DEV_FN, iobase & PCI_BASE_ADDRESS_MEM_MASK);
 
   if (pci9054_iobase == 0xffffffff)
     {
@@ -149,13 +149,13 @@ static void pci_dasa_sim_config_pci9054(struct pci_controller *hose, pci_dev_t d
 static struct pci_config_table pci9054_config_table[] = {
 #ifndef CONFIG_PCI_PNP
   { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
-    PCI_BUS(CFG_ETH_DEV_FN), PCI_DEV(CFG_ETH_DEV_FN), PCI_FUNC(CFG_ETH_DEV_FN),
-    pci_cfgfunc_config_device, { CFG_ETH_IOBASE,
-                                CFG_ETH_IOBASE,
+    PCI_BUS(CONFIG_SYS_ETH_DEV_FN), PCI_DEV(CONFIG_SYS_ETH_DEV_FN), PCI_FUNC(CONFIG_SYS_ETH_DEV_FN),
+    pci_cfgfunc_config_device, { CONFIG_SYS_ETH_IOBASE,
+                                CONFIG_SYS_ETH_IOBASE,
                                 PCI_COMMAND_IO | PCI_COMMAND_MASTER }},
 #ifdef CONFIG_DASA_SIM
   { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
-    PCI_BUS(CFG_PCI9054_DEV_FN), PCI_DEV(CFG_PCI9054_DEV_FN), PCI_FUNC(CFG_PCI9054_DEV_FN),
+    PCI_BUS(CONFIG_SYS_PCI9054_DEV_FN), PCI_DEV(CONFIG_SYS_PCI9054_DEV_FN), PCI_FUNC(CONFIG_SYS_PCI9054_DEV_FN),
     pci_dasa_sim_config_pci9054 },
 #endif
 #endif
index 0e389907ff69232c5e3dc35e50dc10fb143f12c3..b702fdd9a786427673d3a746277af7d54b1c9bc0 100644 (file)
 #define TDI (short) 2
 
 /*
- * Use CFG_FPGA_xxx defines from board include file.
+ * Use CONFIG_SYS_FPGA_xxx defines from board include file.
  */
-#define JTAG_TMS   CFG_FPGA_PRG     /* output */
-#define JTAG_TCK   CFG_FPGA_CLK     /* output */
-#define JTAG_TDI   CFG_FPGA_DATA    /* output */
-#define JTAG_TDO   CFG_FPGA_DONE    /* input */
+#define JTAG_TMS   CONFIG_SYS_FPGA_PRG     /* output */
+#define JTAG_TCK   CONFIG_SYS_FPGA_CLK     /* output */
+#define JTAG_TDI   CONFIG_SYS_FPGA_DATA    /* output */
+#define JTAG_TDO   CONFIG_SYS_FPGA_DONE    /* input */
 
 /* set the port "p" (TCK, TMS, or TDI) to val (0 or 1) */
 void setPort(short p, short val);
index 8bc40d5a2f09125d8b13e2e94d1a29426369a038..dcab9060b66f85f4a503c21cc16a0b17d1655fee 100644 (file)
@@ -36,12 +36,12 @@ int board_early_init_f (void)
         * Setup GPIO pins
         */
        cntrl0Reg = mfdcr(cntrl0);
-       mtdcr(cntrl0, cntrl0Reg | ((CFG_EEPROM_WP | CFG_PB_LED | CFG_SELF_RST | CFG_INTA_FAKE) << 5));
+       mtdcr(cntrl0, cntrl0Reg | ((CONFIG_SYS_EEPROM_WP | CONFIG_SYS_PB_LED | CONFIG_SYS_SELF_RST | CONFIG_SYS_INTA_FAKE) << 5));
 
        /* set output pins to high */
-       out32(GPIO0_OR,  CFG_EEPROM_WP);
+       out32(GPIO0_OR,  CONFIG_SYS_EEPROM_WP);
        /* setup for output (LED=off) */
-       out32(GPIO0_TCR, CFG_EEPROM_WP | CFG_PB_LED);
+       out32(GPIO0_TCR, CONFIG_SYS_EEPROM_WP | CONFIG_SYS_PB_LED);
 
        /*
         * IRQ 0-15  405GP internally generated; active high; level sensitive
@@ -108,7 +108,7 @@ int checkboard (void)
        return 0;
 }
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 /* Input: <dev_addr>  I2C address of EEPROM device to enable.
  *        <state>     -1: deliver current state
  *                    0: disable write
@@ -118,23 +118,23 @@ int checkboard (void)
  *                  0/1: current state if <state> was -1.
  */
 int eeprom_write_enable (unsigned dev_addr, int state) {
-       if (CFG_I2C_EEPROM_ADDR != dev_addr) {
+       if (CONFIG_SYS_I2C_EEPROM_ADDR != dev_addr) {
                return -1;
        } else {
                switch (state) {
                case 1:
                        /* Enable write access, clear bit GPIO_SINT2. */
-                       out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_EEPROM_WP);
+                       out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                case 0:
                        /* Disable write access, set bit GPIO_SINT2. */
-                       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_EEPROM_WP);
+                       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                default:
                        /* Read current status back. */
-                       state = (0 == (in32(GPIO0_OR) & CFG_EEPROM_WP));
+                       state = (0 == (in32(GPIO0_OR) & CONFIG_SYS_EEPROM_WP));
                        break;
                }
        }
@@ -142,7 +142,7 @@ int eeprom_write_enable (unsigned dev_addr, int state) {
 }
 #endif
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        int query = argc == 1;
@@ -150,21 +150,21 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (query) {
                /* Query write access state. */
-               state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, -1);
+               state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, -1);
                if (state < 0) {
                        puts ("Query of write access state failed.\n");
                } else {
                        printf ("Write access for device 0x%0x is %sabled.\n",
-                               CFG_I2C_EEPROM_ADDR, state ? "en" : "dis");
+                               CONFIG_SYS_I2C_EEPROM_ADDR, state ? "en" : "dis");
                        state = 0;
                }
        } else {
                if ('0' == argv[1][0]) {
                        /* Disable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 0);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 0);
                } else {
                        /* Enable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 1);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 1);
                }
                if (state < 0) {
                        puts ("Setup of write access state failed.\n");
@@ -179,4 +179,4 @@ U_BOOT_CMD(
        "eepwren - Enable / disable / query EEPROM write access\n",
        NULL
        );
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
index de847f9beac33ba27fe583b12ef0d170a6770617..56c822ec97f981a36bef309988f5b4b43ae7c182 100644 (file)
@@ -47,7 +47,7 @@ unsigned long flash_init (void)
        unsigned long base_b0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index fb349576a84224baf7fb6ad36828d055943bcad8..c5ccb348a72e61b81649eede29a55485e32ec28b 100644 (file)
@@ -110,8 +110,8 @@ int board_early_init_f (void)
         * First pull fpga-prg pin low, to disable fpga logic (on version 2 board)
         */
        out32(GPIO0_ODR, 0x00000000);        /* no open drain pins      */
-       out32(GPIO0_TCR, CFG_FPGA_PRG);      /* setup for output        */
-       out32(GPIO0_OR,  CFG_FPGA_PRG);      /* set output pins to high */
+       out32(GPIO0_TCR, CONFIG_SYS_FPGA_PRG);      /* setup for output */
+       out32(GPIO0_OR,  CONFIG_SYS_FPGA_PRG);      /* set output pins to high */
        out32(GPIO0_OR, 0);                  /* pull prg low            */
 
        /*
@@ -282,8 +282,8 @@ int misc_init_r (void)
                cntrl0Reg = mfdcr(cntrl0);
                mtdcr(cntrl0, cntrl0Reg | 0x00300000);
 
-               dst = malloc(CFG_FPGA_MAX_SIZE);
-               if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+               dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+               if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                        printf ("GUNZIP ERROR - must RESET board to recover\n");
                        do_reset (NULL, 0, 0, NULL);
                }
@@ -347,13 +347,13 @@ int misc_init_r (void)
 
 #ifdef CONFIG_CPCI405_6U
                if (cpci405_version() == 3) {
-                       volatile unsigned short *fpga_mode = (unsigned short *)CFG_FPGA_BASE_ADDR;
-                       volatile unsigned char *leds = (unsigned char *)CFG_LED_ADDR;
+                       volatile unsigned short *fpga_mode = (unsigned short *)CONFIG_SYS_FPGA_BASE_ADDR;
+                       volatile unsigned char *leds = (unsigned char *)CONFIG_SYS_LED_ADDR;
 
                        /*
                         * Enable outputs in fpga on version 3 board
                         */
-                       *fpga_mode |= CFG_FPGA_MODE_ENABLE_OUTPUT;
+                       *fpga_mode |= CONFIG_SYS_FPGA_MODE_ENABLE_OUTPUT;
 
                        /*
                         * Set outputs to 0
@@ -363,9 +363,9 @@ int misc_init_r (void)
                        /*
                         * Reset external DUART
                         */
-                       *fpga_mode |= CFG_FPGA_MODE_DUART_RESET;
+                       *fpga_mode |= CONFIG_SYS_FPGA_MODE_DUART_RESET;
                        udelay(100);
-                       *fpga_mode &= ~(CFG_FPGA_MODE_DUART_RESET);
+                       *fpga_mode &= ~(CONFIG_SYS_FPGA_MODE_DUART_RESET);
                }
 #endif
        }
@@ -445,9 +445,9 @@ int checkboard (void)
 
 #if 0 /* test-only */
        if (ver >= 2) {
-               volatile u16 *fpga_status = (u16 *)CFG_FPGA_BASE_ADDR + 1;
+               volatile u16 *fpga_status = (u16 *)CONFIG_SYS_FPGA_BASE_ADDR + 1;
 
-               if (*fpga_status & CFG_FPGA_STATUS_FLASH) {
+               if (*fpga_status & CONFIG_SYS_FPGA_STATUS_FLASH) {
                        puts ("FLASH Bank B, ");
                } else {
                        puts ("FLASH Bank A, ");
@@ -504,15 +504,15 @@ void reset_phy(void)
 
 void ide_set_reset(int on)
 {
-       volatile unsigned short *fpga_mode = (unsigned short *)CFG_FPGA_BASE_ADDR;
+       volatile unsigned short *fpga_mode = (unsigned short *)CONFIG_SYS_FPGA_BASE_ADDR;
 
        /*
         * Assert or deassert CompactFlash Reset Pin
         */
        if (on) {               /* assert RESET */
-               *fpga_mode &= ~(CFG_FPGA_MODE_CF_RESET);
+               *fpga_mode &= ~(CONFIG_SYS_FPGA_MODE_CF_RESET);
        } else {                /* release RESET */
-               *fpga_mode |= CFG_FPGA_MODE_CF_RESET;
+               *fpga_mode |= CONFIG_SYS_FPGA_MODE_CF_RESET;
        }
 }
 
@@ -555,12 +555,12 @@ int pci_pre_init(struct pci_controller *hose)
 
 #ifdef CONFIG_CPCI405AB
 
-#define ONE_WIRE_CLEAR  (*(volatile unsigned short *)(CFG_FPGA_BASE_ADDR + CFG_FPGA_MODE) \
-                         |= CFG_FPGA_MODE_1WIRE_DIR)
-#define ONE_WIRE_SET    (*(volatile unsigned short *)(CFG_FPGA_BASE_ADDR + CFG_FPGA_MODE) \
-                         &= ~CFG_FPGA_MODE_1WIRE_DIR)
-#define ONE_WIRE_GET    (*(volatile unsigned short *)(CFG_FPGA_BASE_ADDR + CFG_FPGA_STATUS) \
-                         & CFG_FPGA_MODE_1WIRE)
+#define ONE_WIRE_CLEAR  (*(volatile unsigned short *)(CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_MODE) \
+                         |= CONFIG_SYS_FPGA_MODE_1WIRE_DIR)
+#define ONE_WIRE_SET    (*(volatile unsigned short *)(CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_MODE) \
+                         &= ~CONFIG_SYS_FPGA_MODE_1WIRE_DIR)
+#define ONE_WIRE_GET    (*(volatile unsigned short *)(CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_STATUS) \
+                         & CONFIG_SYS_FPGA_MODE_1WIRE)
 
 /*
  * Generate a 1-wire reset, return 1 if no presence detect was found,
@@ -690,7 +690,7 @@ U_BOOT_CMD(
        NULL
        );
 
-#define CFG_I2C_EEPROM_ADDR_2  0x51    /* EEPROM CAT28WC32             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_2   0x51    /* EEPROM CAT28WC32             */
 #define CONFIG_ENV_SIZE_2      0x800   /* 2048 bytes may be used for env vars*/
 
 /*
@@ -706,7 +706,7 @@ int do_get_bpip(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        IPaddr_t ipaddr;
 
        buf = malloc(CONFIG_ENV_SIZE_2);
-       if (eeprom_read(CFG_I2C_EEPROM_ADDR_2, 0, (uchar *)buf, CONFIG_ENV_SIZE_2)) {
+       if (eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR_2, 0, (uchar *)buf, CONFIG_ENV_SIZE_2)) {
                puts("\nError reading backplane EEPROM!\n");
        } else {
                crc = crc32(0, (uchar *)(buf+4), CONFIG_ENV_SIZE_2-4);
@@ -771,7 +771,7 @@ int do_set_bpip(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        crc = crc32(0, (uchar *)(buf+4), CONFIG_ENV_SIZE_2-4);
        *(ulong *)buf = crc;
 
-       if (eeprom_write(CFG_I2C_EEPROM_ADDR_2, 0, (uchar *)buf, CONFIG_ENV_SIZE_2)) {
+       if (eeprom_write(CONFIG_SYS_I2C_EEPROM_ADDR_2, 0, (uchar *)buf, CONFIG_ENV_SIZE_2)) {
                puts("\nError writing backplane EEPROM!\n");
        }
 
index e766895bb06eb185726536ec07329f7cbdc3e024..d535924f86fa1460cbe84b8c53e6081ca72f31a4 100644 (file)
@@ -66,7 +66,7 @@ unsigned long flash_init (void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index 2a42e65de0dd9fc4250eff9f2c2569c9aeec6325..6eedb83ff15bd38cbf2bcfb4c5a29ae2d7535e79 100644 (file)
@@ -81,7 +81,7 @@ static void sdram_start(int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -106,9 +106,9 @@ phys_size_t initdram(int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE, 0x80000000);
 
        if (test1 > test2) {
                sdram_start(0);
@@ -144,9 +144,9 @@ phys_size_t initdram(int board_type)
 #if 0
        /* find RAM size using SDRAM CS1 only */
        sdram_start(0);
-       get_ram_size((ulong *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+       get_ram_size((ulong *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        sdram_start(1);
-       get_ram_size((ulong *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+       get_ram_size((ulong *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        sdram_start(0);
 #endif
        /* set SDRAM CS1 size according to the amount of RAM found */
@@ -180,10 +180,10 @@ void flash_afterinit(ulong size)
                /* adjust mapping */
                *(vu_long *) MPC5XXX_BOOTCS_START =
                    *(vu_long *) MPC5XXX_CS0_START =
-                   START_REG(CFG_BOOTCS_START | size);
+                   START_REG(CONFIG_SYS_BOOTCS_START | size);
                *(vu_long *) MPC5XXX_BOOTCS_STOP =
                    *(vu_long *) MPC5XXX_CS0_STOP =
-                   STOP_REG(CFG_BOOTCS_START | size, size);
+                   STOP_REG(CONFIG_SYS_BOOTCS_START | size, size);
        }
 }
 
index d76af02dbefeb5dfc522ed3c7e5ec308df01600c..9b578b5f5ecf746881104961eea4015e5abf8210 100644 (file)
@@ -102,7 +102,7 @@ typedef union {
 
 #define NUM_ERASE_REGIONS 4
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -121,7 +121,7 @@ static int flash_write_cfiword(flash_info_t * info, ulong dest,
                               cfiword_t cword);
 static int flash_full_status_check(flash_info_t * info, ulong sector,
                                   ulong tout, char *prompt);
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp,
                                 int len);
 #endif
@@ -185,14 +185,14 @@ unsigned long flash_init(void)
         *
         */
 
-       address = CFG_FLASH_BASE;
+       address = CONFIG_SYS_FLASH_BASE;
        size = 0;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                size += flash_info[i].size = flash_get_size(address, i);
-               address += CFG_FLASH_INCREMENT;
+               address += CONFIG_SYS_FLASH_INCREMENT;
                if (flash_info[i].flash_id == FLASH_UNKNOWN) {
                        printf
                            ("## Unknown FLASH on Bank %d - Size = 0x%08lx = %ld MB\n",
@@ -202,9 +202,9 @@ unsigned long flash_init(void)
 
 #if 0                          /* test-only */
        /* Monitor protection ON by default */
-#if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
+#if (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)
        for (i = 0;
-            flash_info[0].start[i] < CFG_MONITOR_BASE + monitor_flash_len - 1;
+            flash_info[0].start[i] < CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1;
             i++)
                (void)flash_real_protect(&flash_info[0], i, 1);
 #endif
@@ -326,7 +326,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                        return rc;
                wp = cp;
        }
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        while (cnt >= info->portwidth) {
                i = info->buffer_size > cnt ? cnt : info->buffer_size;
                if ((rc = flash_write_cfibuffer(info, wp, src, i)) != ERR_OK)
@@ -347,7 +347,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                wp += info->portwidth;
                cnt -= info->portwidth;
        }
-#endif                         /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif                         /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
        if (cnt == 0) {
                return (0);
        }
@@ -727,7 +727,7 @@ static int flash_write_cfiword(flash_info_t * info, ulong dest, cfiword_t cword)
        return flash_full_status_check(info, 0, info->write_tout, "write");
 }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /* loop through the sectors from the highest address
  * when the passed address is greater or equal to the sector address
@@ -801,4 +801,4 @@ static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp,
        flash_write_cmd(info, sector, 0, FLASH_CMD_CLEAR_STATUS);
        return retcode;
 }
-#endif                         /* CFG_USE_FLASH_BUFFER_WRITE */
+#endif                         /* CONFIG_SYS_USE_FLASH_BUFFER_WRITE */
index 5ab76c6b8720d413420c5b7fd0313c7b9a5b62a7..70bae60c68d703f3d3b500482cfe0a6e5756de9f 100644 (file)
@@ -125,7 +125,7 @@ extern flash_info_t flash_info[];
 /* ------------------------------------------------------------------------- */
 
 /* this is the current GT register space location */
-/* it starts at CFG_DFL_GT_REGS but moves later to CFG_GT_REGS */
+/* it starts at CONFIG_SYS_DFL_GT_REGS but moves later to CONFIG_SYS_GT_REGS */
 
 /* Unfortunately, we cant change it while we are in flash, so we initialize it
  * to the "final" value. This means that any debug_led calls before
@@ -134,7 +134,7 @@ extern flash_info_t flash_info[];
  */
 
 void board_prebootm_init (void);
-unsigned int INTERNAL_REG_BASE_ADDR = CFG_GT_REGS;
+unsigned int INTERNAL_REG_BASE_ADDR = CONFIG_SYS_GT_REGS;
 int display_mem_map (void);
 
 /* ------------------------------------------------------------------------- */
@@ -197,7 +197,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_0_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_0_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
 
        }
        if ((GTREGREAD (PCI_1_MODE) & (BIT4 | BIT5)) != 0) {    /*if  PCI-X */
@@ -206,7 +206,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_1_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_1_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
        }
 
        /* Enable master */
@@ -224,21 +224,21 @@ static void gt_pci_config (void)
        /* ronen- add write to pci remap registers for 64460.
           in 64360 when writing to pci base go and overide remap automaticaly,
           in 64460 it doesn't */
-       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CFG_PCI0_IO_SPACE >> 16);
-       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CFG_PCI0_IO_SPACE_PCI >> 16);
-       GT_REG_WRITE (PCI_0_IO_SIZE, (CFG_PCI0_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CONFIG_SYS_PCI0_IO_SPACE >> 16);
+       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CONFIG_SYS_PCI0_IO_SPACE_PCI >> 16);
+       GT_REG_WRITE (PCI_0_IO_SIZE, (CONFIG_SYS_PCI0_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CFG_PCI0_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CONFIG_SYS_PCI0_MEM_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CFG_PCI1_IO_SPACE >> 16);
-       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CFG_PCI1_IO_SPACE_PCI >> 16);
-       GT_REG_WRITE (PCI_1_IO_SIZE, (CFG_PCI1_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CONFIG_SYS_PCI1_IO_SPACE >> 16);
+       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CONFIG_SYS_PCI1_IO_SPACE_PCI >> 16);
+       GT_REG_WRITE (PCI_1_IO_SIZE, (CONFIG_SYS_PCI1_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CFG_PCI1_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CONFIG_SYS_PCI1_MEM_SIZE - 1) >> 16);
 
        /* PCI interface settings */
        /* Timeout set to retry forever */
@@ -254,7 +254,7 @@ static void gt_pci_config (void)
        for (stat = 0; stat <= PCI_HOST1; stat++)
                pciWriteConfigReg (stat,
                                   PCI_INTERNAL_REGISTERS_MEMORY_MAPPED_BASE_ADDRESS,
-                                  SELF, CFG_GT_REGS);
+                                  SELF, CONFIG_SYS_GT_REGS);
 #endif
 
 }
@@ -270,7 +270,7 @@ static void gt_cpu_config (void)
        tmp = GTREGREAD (CPU_CONFIGURATION);
 
        /* set the SINGLE_CPU bit  see MV64360 P.399 */
-#ifndef CFG_GT_DUAL_CPU                /* SINGLE_CPU seems to cause JTAG problems */
+#ifndef CONFIG_SYS_GT_DUAL_CPU         /* SINGLE_CPU seems to cause JTAG problems */
        tmp |= CPU_CONF_SINGLE_CPU;
 #endif
 
@@ -320,7 +320,7 @@ int board_early_init_f (void)
         * it last time. (huber)
         */
 
-       my_remap_gt_regs (CFG_DFL_GT_REGS, CFG_GT_REGS);
+       my_remap_gt_regs (CONFIG_SYS_DFL_GT_REGS, CONFIG_SYS_GT_REGS);
 
        /* No PCI in first release of Port To_do: enable it. */
 #ifdef CONFIG_PCI
@@ -364,45 +364,45 @@ int board_early_init_f (void)
         * registers to boot from the sram. (device0)
         */
 
-       memoryMapDeviceSpace (DEVICE0, CFG_DEV0_SPACE, CFG_DEV0_SIZE);
-       memoryMapDeviceSpace (DEVICE1, CFG_DEV1_SPACE, CFG_DEV1_SIZE);
-       memoryMapDeviceSpace (DEVICE2, CFG_DEV2_SPACE, CFG_DEV2_SIZE);
-       memoryMapDeviceSpace (DEVICE3, CFG_DEV3_SPACE, CFG_DEV3_SIZE);
+       memoryMapDeviceSpace (DEVICE0, CONFIG_SYS_DEV0_SPACE, CONFIG_SYS_DEV0_SIZE);
+       memoryMapDeviceSpace (DEVICE1, CONFIG_SYS_DEV1_SPACE, CONFIG_SYS_DEV1_SIZE);
+       memoryMapDeviceSpace (DEVICE2, CONFIG_SYS_DEV2_SPACE, CONFIG_SYS_DEV2_SIZE);
+       memoryMapDeviceSpace (DEVICE3, CONFIG_SYS_DEV3_SPACE, CONFIG_SYS_DEV3_SIZE);
 
 
        /* configure device timing */
-       GT_REG_WRITE (DEVICE_BANK0PARAMETERS, CFG_DEV0_PAR);
-       GT_REG_WRITE (DEVICE_BANK1PARAMETERS, CFG_DEV1_PAR);
-       GT_REG_WRITE (DEVICE_BANK2PARAMETERS, CFG_DEV2_PAR);
-       GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CFG_DEV3_PAR);
+       GT_REG_WRITE (DEVICE_BANK0PARAMETERS, CONFIG_SYS_DEV0_PAR);
+       GT_REG_WRITE (DEVICE_BANK1PARAMETERS, CONFIG_SYS_DEV1_PAR);
+       GT_REG_WRITE (DEVICE_BANK2PARAMETERS, CONFIG_SYS_DEV2_PAR);
+       GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CONFIG_SYS_DEV3_PAR);
 
-#ifdef CFG_32BIT_BOOT_PAR      /* set port parameters for Flash device module access */
+#ifdef CONFIG_SYS_32BIT_BOOT_PAR       /* set port parameters for Flash device module access */
        /* detect if we are booting from the 32 bit flash */
        if (GTREGREAD (DEVICE_BOOT_BANK_PARAMETERS) & (0x3 << 20)) {
                /* 32 bit boot flash */
-               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CFG_8BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
                GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS,
-                             CFG_32BIT_BOOT_PAR);
+                             CONFIG_SYS_32BIT_BOOT_PAR);
        } else {
                /* 8 bit boot flash */
-               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CFG_32BIT_BOOT_PAR);
-               GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BANK3PARAMETERS, CONFIG_SYS_32BIT_BOOT_PAR);
+               GT_REG_WRITE (DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
        }
 #else
        /* 8 bit boot flash only */
-/*     GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);*/
+/*     GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);*/
 #endif
 
 
        gt_cpu_config ();
 
        /* MPP setup */
-       GT_REG_WRITE (MPP_CONTROL0, CFG_MPP_CONTROL_0);
-       GT_REG_WRITE (MPP_CONTROL1, CFG_MPP_CONTROL_1);
-       GT_REG_WRITE (MPP_CONTROL2, CFG_MPP_CONTROL_2);
-       GT_REG_WRITE (MPP_CONTROL3, CFG_MPP_CONTROL_3);
+       GT_REG_WRITE (MPP_CONTROL0, CONFIG_SYS_MPP_CONTROL_0);
+       GT_REG_WRITE (MPP_CONTROL1, CONFIG_SYS_MPP_CONTROL_1);
+       GT_REG_WRITE (MPP_CONTROL2, CONFIG_SYS_MPP_CONTROL_2);
+       GT_REG_WRITE (MPP_CONTROL3, CONFIG_SYS_MPP_CONTROL_3);
 
-       GT_REG_WRITE (GPP_LEVEL_CONTROL, CFG_GPP_LEVEL_CONTROL);
+       GT_REG_WRITE (GPP_LEVEL_CONTROL, CONFIG_SYS_GPP_LEVEL_CONTROL);
        DEBUG_LED0_ON ();
        DEBUG_LED1_ON ();
        DEBUG_LED2_ON ();
@@ -415,7 +415,7 @@ int board_early_init_f (void)
 int misc_init_r ()
 {
        icache_enable ();
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        l2cache_enable ();
 #endif
 #ifdef CONFIG_MPSC
@@ -428,19 +428,19 @@ int misc_init_r ()
        /* disable the dcache and MMU */
        dcache_lock ();
 #endif
-       if (flash_info[3].size < CFG_FLASH_INCREMENT) {
+       if (flash_info[3].size < CONFIG_SYS_FLASH_INCREMENT) {
                unsigned int flash_offset;
                unsigned int l;
 
-               flash_offset =  CFG_FLASH_INCREMENT - flash_info[3].size;
-               for (l = 0; l < CFG_MAX_FLASH_SECT; l++) {
+               flash_offset =  CONFIG_SYS_FLASH_INCREMENT - flash_info[3].size;
+               for (l = 0; l < CONFIG_SYS_MAX_FLASH_SECT; l++) {
                        if (flash_info[3].start[l] != 0) {
                              flash_info[3].start[l] += flash_offset;
                        }
                }
                flash_protect (FLAG_PROTECT_SET,
-                              CFG_MONITOR_BASE,
-                              CFG_MONITOR_BASE + monitor_flash_len  - 1,
+                              CONFIG_SYS_MONITOR_BASE,
+                              CONFIG_SYS_MONITOR_BASE + monitor_flash_len  - 1,
                               &flash_info[3]);
        }
        return 0;
@@ -449,7 +449,7 @@ int misc_init_r ()
 void after_reloc (ulong dest_addr, gd_t * gd)
 {
 
-  memoryMapDeviceSpace (BOOT_DEVICE, CFG_BOOT_SPACE, CFG_BOOT_SIZE);
+  memoryMapDeviceSpace (BOOT_DEVICE, CONFIG_SYS_BOOT_SPACE, CONFIG_SYS_BOOT_SIZE);
 
   display_mem_map ();
   /* now, jump to the main ppcboot board init code */
@@ -469,7 +469,7 @@ int checkboard (void)
 {
        int l_type = 0;
 
-       printf ("BOARD: %s\n", CFG_BOARD_NAME);
+       printf ("BOARD: %s\n", CONFIG_SYS_BOARD_NAME);
        return (l_type);
 }
 
@@ -540,7 +540,7 @@ int display_mem_map (void)
 
 /* DRAM check routines copied from gw8260 */
 
-#if defined (CFG_DRAM_TEST)
+#if defined (CONFIG_SYS_DRAM_TEST)
 
 /*********************************************************************/
 /* NAME:  move64() -  moves a double word (64-bit)                  */
@@ -571,7 +571,7 @@ static void move64 (unsigned long long *src, unsigned long long *dest)
 }
 
 
-#if defined (CFG_DRAM_TEST_DATA)
+#if defined (CONFIG_SYS_DRAM_TEST_DATA)
 
 unsigned long long pattern[] = {
        0xaaaaaaaaaaaaaaaaLL,
@@ -634,7 +634,7 @@ unsigned long long pattern[] = {
 /*********************************************************************/
 int mem_test_data (void)
 {
-       unsigned long long *pmem = (unsigned long long *) CFG_MEMTEST_START;
+       unsigned long long *pmem = (unsigned long long *) CONFIG_SYS_MEMTEST_START;
        unsigned long long temp64 = 0;
        int num_patterns = sizeof (pattern) / sizeof (pattern[0]);
        int i;
@@ -661,9 +661,9 @@ int mem_test_data (void)
 
        return 0;
 }
-#endif /* CFG_DRAM_TEST_DATA */
+#endif /* CONFIG_SYS_DRAM_TEST_DATA */
 
-#if defined (CFG_DRAM_TEST_ADDRESS)
+#if defined (CONFIG_SYS_DRAM_TEST_ADDRESS)
 /*********************************************************************/
 /* NAME:  mem_test_address() - test address lines                   */
 /*                                                                  */
@@ -688,8 +688,8 @@ int mem_test_data (void)
 int mem_test_address (void)
 {
        volatile unsigned int *pmem =
-               (volatile unsigned int *) CFG_MEMTEST_START;
-       const unsigned int size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 4;
+               (volatile unsigned int *) CONFIG_SYS_MEMTEST_START;
+       const unsigned int size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 4;
        unsigned int i;
 
        /* write address to each location */
@@ -706,9 +706,9 @@ int mem_test_address (void)
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_ADDRESS */
+#endif /* CONFIG_SYS_DRAM_TEST_ADDRESS */
 
-#if defined (CFG_DRAM_TEST_WALK)
+#if defined (CONFIG_SYS_DRAM_TEST_WALK)
 /*********************************************************************/
 /* NAME:   mem_march() -  memory march                              */
 /*                                                                  */
@@ -766,7 +766,7 @@ int mem_march (volatile unsigned long long *base,
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_WALK */
+#endif /* CONFIG_SYS_DRAM_TEST_WALK */
 
 /*********************************************************************/
 /* NAME:   mem_test_walk() -  a simple walking ones test            */
@@ -798,8 +798,8 @@ int mem_test_walk (void)
 {
        unsigned long long mask;
        volatile unsigned long long *pmem =
-               (volatile unsigned long long *) CFG_MEMTEST_START;
-       const unsigned long size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 8;
+               (volatile unsigned long long *) CONFIG_SYS_MEMTEST_START;
+       const unsigned long size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 8;
 
        unsigned int i;
 
@@ -865,23 +865,23 @@ int testdram (void)
        int runaddress = 0;
        int runwalk    = 0;
 
-#ifdef CFG_DRAM_TEST_DATA
+#ifdef CONFIG_SYS_DRAM_TEST_DATA
        s = getenv ("testdramdata");
        rundata = (s && (*s == 'y')) ? 1 : 0;
 #endif
-#ifdef CFG_DRAM_TEST_ADDRESS
+#ifdef CONFIG_SYS_DRAM_TEST_ADDRESS
        s = getenv ("testdramaddress");
        runaddress = (s && (*s == 'y')) ? 1 : 0;
 #endif
-#ifdef CFG_DRAM_TEST_WALK
+#ifdef CONFIG_SYS_DRAM_TEST_WALK
        s = getenv ("testdramwalk");
        runwalk = (s && (*s == 'y')) ? 1 : 0;
 #endif
 
        if ((rundata == 1) || (runaddress == 1) || (runwalk == 1)) {
-               printf ("Testing RAM from 0x%08x to 0x%08x ...  (don't panic... that will take a moment !!!!)\n", CFG_MEMTEST_START, CFG_MEMTEST_END);
+               printf ("Testing RAM from 0x%08x to 0x%08x ...  (don't panic... that will take a moment !!!!)\n", CONFIG_SYS_MEMTEST_START, CONFIG_SYS_MEMTEST_END);
        }
-#ifdef CFG_DRAM_TEST_DATA
+#ifdef CONFIG_SYS_DRAM_TEST_DATA
        if (rundata == 1) {
                printf ("Test DATA ...  ");
                if (mem_test_data () == 1) {
@@ -891,7 +891,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_ADDRESS
+#ifdef CONFIG_SYS_DRAM_TEST_ADDRESS
        if (runaddress == 1) {
                printf ("Test ADDRESS ...  ");
                if (mem_test_address () == 1) {
@@ -901,7 +901,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_WALK
+#ifdef CONFIG_SYS_DRAM_TEST_WALK
        if (runwalk == 1) {
                printf ("Test WALKING ONEs ...  ");
                if (mem_test_walk () == 1) {
@@ -917,7 +917,7 @@ int testdram (void)
        return 0;
 
 }
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 /* ronen - the below functions are used by the bootm function          */
 /*  - we map the base register to fbe00000 (same mapping as in the LSP) */
@@ -956,7 +956,7 @@ void board_prebootm_init ()
 /*      GV_REG_WRITE (MV64360_ETH_RECEIVE_QUEUE_COMMAND_REG (2), 0x0000ff00); */
 
 /* Relocate MV64360 internal regs */
-       my_remap_gt_regs_bootm (CFG_GT_REGS, CFG_DFL_GT_REGS);
+       my_remap_gt_regs_bootm (CONFIG_SYS_GT_REGS, CONFIG_SYS_DFL_GT_REGS);
 
        icache_disable ();
        dcache_disable ();
index 5b1bc01c21ebe0e037877a4af03712e859996323..d95567f7df943d61ab1de123658b42695a422b06 100644 (file)
@@ -46,7 +46,7 @@ static void i2c_init (int speed, int slaveaddr)
        unsigned int n, m, freq, margin, power;
        unsigned int actualN = 0, actualM = 0;
        unsigned int minMargin = 0xffffffff;
-       unsigned int tclk = CFG_TCLK;
+       unsigned int tclk = CONFIG_SYS_TCLK;
        unsigned int i2cFreq = speed;   /* 100000 max. Fast mode not supported */
 
        DP (puts ("i2c_init\n"));
@@ -380,7 +380,7 @@ i2c_read (uchar dev_addr, unsigned int offset, int alen, uchar * data,
          int len)
 {
        uchar status = 0;
-       unsigned int i2cFreq = CFG_I2C_SPEED;
+       unsigned int i2cFreq = CONFIG_SYS_I2C_SPEED;
 
        DP (puts ("i2c_read\n"));
 
@@ -428,7 +428,7 @@ i2c_write (uchar dev_addr, unsigned int offset, int alen, uchar * data,
           int len)
 {
        uchar status = 0;
-       unsigned int i2cFreq = CFG_I2C_SPEED;
+       unsigned int i2cFreq = CONFIG_SYS_I2C_SPEED;
 
        DP (puts ("i2c_write\n"));
 
@@ -464,7 +464,7 @@ int i2c_probe (uchar chip)
        unsigned int i2c_status;
 #endif
        uchar status = 0;
-       unsigned int i2cFreq = CFG_I2C_SPEED;
+       unsigned int i2cFreq = CONFIG_SYS_I2C_SPEED;
 
        DP (puts ("i2c_probe\n"));
 
index 0adafe2d085ec5fb21eae76dcc784eef05bac04f..9bdc52345346f5730e911e0738544ca862a77ac3 100644 (file)
@@ -30,7 +30,7 @@
 #include <ide.h>
 #include <pci.h>
 
-extern ulong ide_bus_offset[CFG_IDE_MAXBUS];
+extern ulong ide_bus_offset[CONFIG_SYS_IDE_MAXBUS];
 
 int ide_preinit (void)
 {
@@ -39,7 +39,7 @@ int ide_preinit (void)
        int l;
 
        status = 1;
-       for (l = 0; l < CFG_IDE_MAXBUS; l++) {
+       for (l = 0; l < CONFIG_SYS_IDE_MAXBUS; l++) {
                ide_bus_offset[l] = -ATA_STATUS;
        }
        devbusfn = pci_find_device (0x1103, 0x0004, 0);
@@ -51,11 +51,11 @@ int ide_preinit (void)
                pci_read_config_dword (devbusfn, PCI_BASE_ADDRESS_0,
                                       (u32 *) & ide_bus_offset[0]);
                ide_bus_offset[0] &= 0xfffffffe;
-               ide_bus_offset[0] += CFG_PCI0_IO_SPACE;
+               ide_bus_offset[0] += CONFIG_SYS_PCI0_IO_SPACE;
                pci_read_config_dword (devbusfn, PCI_BASE_ADDRESS_2,
                                       (u32 *) & ide_bus_offset[1]);
                ide_bus_offset[1] &= 0xfffffffe;
-               ide_bus_offset[1] += CFG_PCI0_IO_SPACE;
+               ide_bus_offset[1] += CONFIG_SYS_PCI0_IO_SPACE;
        }
        return (status);
 }
index bca0e1ff5065edd8626bd065c9ac29f3c160dfc0..de3758a51362e88acaa9a5a3124215723722fed8 100644 (file)
@@ -48,7 +48,7 @@
 /* #define CONFIG_BOOTCOMMAND */
 /* #define CONFIG_RAMBOOTCOMMAND */
 /* #define CONFIG_NFSBOOTCOMMAND */
-/* #define CFG_AUTOLOAD */
+/* #define CONFIG_SYS_AUTOLOAD */
 /* #define CONFIG_PREBOOT */
 
 /* These don't */
index 160b1d31f7640b89706f715ac51807ff08834407..233fd83bcca10e68e02115ad2373573764540b65 100644 (file)
@@ -16,7 +16,7 @@
 board_relocate_rom:
        mflr    r7
        /* update the location of the GT registers */
-       lis     r11, CFG_GT_REGS@h
+       lis     r11, CONFIG_SYS_GT_REGS@h
        /* if we're using ECC, we must use the DMA engine to copy ourselves */
        bl      start_idma_transfer_0
        bl      wait_for_idma_0
@@ -29,12 +29,12 @@ board_relocate_rom:
 board_init_ecc:
        mflr    r7
        /* NOTE: r10 still contains the location we've been relocated to
-        * which happens to be TOP_OF_RAM - CFG_MONITOR_LEN */
+        * which happens to be TOP_OF_RAM - CONFIG_SYS_MONITOR_LEN */
 
        /* now that we're running from ram, init the rest of main memory
         * for ECC use */
-       lis     r8, CFG_MONITOR_LEN@h
-       ori     r8, r8, CFG_MONITOR_LEN@l
+       lis     r8, CONFIG_SYS_MONITOR_LEN@h
+       ori     r8, r8, CONFIG_SYS_MONITOR_LEN@l
 
        divw    r3, r10, r8
 
@@ -120,15 +120,15 @@ stop_idma_engine_0:
        blr
 #endif
 
-#ifdef CFG_BOARD_ASM_INIT
+#ifdef CONFIG_SYS_BOARD_ASM_INIT
        /* NOTE: trashes r3-r7 */
        .globl board_asm_init
 board_asm_init:
        /* just move the GT registers to where they belong */
-       lis     r3, CFG_DFL_GT_REGS@h
-       ori     r3, r3, CFG_DFL_GT_REGS@l
-       lis     r4, CFG_GT_REGS@h
-       ori     r4, r4, CFG_GT_REGS@l
+       lis     r3, CONFIG_SYS_DFL_GT_REGS@h
+       ori     r3, r3, CONFIG_SYS_DFL_GT_REGS@l
+       lis     r4, CONFIG_SYS_GT_REGS@h
+       ori     r4, r4, CONFIG_SYS_GT_REGS@l
        li      r5, INTERNAL_SPACE_DECODE
 
        /* test to see if we've already moved */
@@ -153,11 +153,11 @@ board_asm_init:
        cmp     cr0, r7, r6
        bne     1b
 
-       lis     r3, CFG_INT_SRAM_BASE@h
-       ori     r3, r3, CFG_INT_SRAM_BASE@l
+       lis     r3, CONFIG_SYS_INT_SRAM_BASE@h
+       ori     r3, r3, CONFIG_SYS_INT_SRAM_BASE@l
        rlwinm  r3, r3, 16, 16, 31
-       lis     r4, CFG_GT_REGS@h
-       ori     r4, r4, CFG_GT_REGS@l
+       lis     r4, CONFIG_SYS_GT_REGS@h
+       ori     r4, r4, CONFIG_SYS_GT_REGS@l
        li      r5, INTEGRATED_SRAM_BASE_ADDR
        stwbrx  r3, r5, r4
 
index fa8d3bda964659ceb47a28912dfe41b09bd4af36..c89426d085896be68a26889c0f6aa1af224beef0 100644 (file)
@@ -427,7 +427,7 @@ void mpsc_sdma_init (void)
                          (MV64360_CUNIT_BASE_ADDR_WIN_0_BIT * 2)));
 
 /* Setup MPSC internal address space base address      */
-       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CFG_GT_REGS);
+       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CONFIG_SYS_GT_REGS);
 
 /* no high address remap*/
        GT_REG_WRITE (CUNIT_HIGH_ADDR_REMAP_REG0, 0x00);
@@ -517,9 +517,9 @@ int galbrg_set_baudrate (int channel, int rate)
 
 #ifdef ZUMA_NTL
        /* from tclk */
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #else
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #endif
 
        galbrg_set_CDV (channel, clock);        /* set timer Reg. for BRG */
index c335ebf0bf83209b9bbf9965ddbf72ad4d0c799b..cbe766ffd232e708e44cfe9848d9a601f1d0d201 100644 (file)
@@ -932,14 +932,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci0_hose.regions + 0,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci0_hose.regions + 1,
-                       CFG_PCI0_IO_SPACE_PCI,
-                       CFG_PCI0_IO_SPACE, CFG_PCI0_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI0_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI0_IO_SPACE, CONFIG_SYS_PCI0_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci0_hose,
                     pci_hose_read_config_byte_via_dword,
@@ -981,14 +981,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci1_hose.regions + 0,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci1_hose.regions + 1,
-                       CFG_PCI1_IO_SPACE_PCI,
-                       CFG_PCI1_IO_SPACE, CFG_PCI1_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI1_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI1_IO_SPACE, CONFIG_SYS_PCI1_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci1_hose,
                     pci_hose_read_config_byte_via_dword,
index 0291937e0b30b5fbe7f65c5c678956521280b384..4c03630fb574fd02eaefe9e56a811b69b863fa84 100644 (file)
@@ -350,7 +350,7 @@ static int check_dimm (uchar slot, AUX_MEM_DIMM_INFO * dimmInfo)
        } else
                dimmInfo->slot = slot;  /* start to fill up dimminfo for this "slot" */
 
-#ifdef CFG_DISPLAY_DIMM_SPD_CONTENT
+#ifdef CONFIG_SYS_DISPLAY_DIMM_SPD_CONTENT
 
        for (i = 0; i <= 127; i++) {
                printf ("SPD-EEPROM Byte %3d = %3x (%3d)\n", i, data[i],
@@ -1656,13 +1656,13 @@ initdram(int board_type)
        if (dimmInfo2.numOfModuleBanks > 2)
                printf("Error, SPD claims DIMM2 has >2 banks\n");
 
-       for (bank_no = 0; bank_no < CFG_DRAM_BANKS; bank_no++) {
+       for (bank_no = 0; bank_no < CONFIG_SYS_DRAM_BANKS; bank_no++) {
                /* skip over banks that are not populated */
                if (! checkbank[bank_no])
                        continue;
 
-               if ((total + check) > CFG_GT_REGS)
-                       check = CFG_GT_REGS - total;
+               if ((total + check) > CONFIG_SYS_GT_REGS)
+                       check = CONFIG_SYS_GT_REGS - total;
 
                memory_map_bank(bank_no, total, check);
                realsize = dram_size((long int *)total, check);
index de847f9beac33ba27fe583b12ef0d170a6770617..56c822ec97f981a36bef309988f5b4b43ae7c182 100644 (file)
@@ -47,7 +47,7 @@ unsigned long flash_init (void)
        unsigned long base_b0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index 89a4aaf80a5d339d94c8ac8a7e0f71b976861a9b..36dd58c3e4b47f01bbfd5eb220fe59651c1f4fa0 100644 (file)
@@ -48,13 +48,13 @@ static unsigned int PciEepromReadLongVPD (int offs)
        unsigned int ret;
        int count;
 
-       pci_write_config_dword (CFG_PCI9054_DEV_FN, 0x4c,
+       pci_write_config_dword (CONFIG_SYS_PCI9054_DEV_FN, 0x4c,
                                (offs << 16) | 0x0003);
        count = 0;
 
        for (;;) {
                udelay (10 * 1000);
-               pci_read_config_dword (CFG_PCI9054_DEV_FN, 0x4c, &ret);
+               pci_read_config_dword (CONFIG_SYS_PCI9054_DEV_FN, 0x4c, &ret);
                if ((ret & 0x80000000) != 0) {
                        break;
                } else {
@@ -66,7 +66,7 @@ static unsigned int PciEepromReadLongVPD (int offs)
                }
        }
 
-       pci_read_config_dword (CFG_PCI9054_DEV_FN, 0x50, &value);
+       pci_read_config_dword (CONFIG_SYS_PCI9054_DEV_FN, 0x50, &value);
 
        return value;
 }
@@ -77,14 +77,14 @@ static int PciEepromWriteLongVPD (int offs, unsigned int value)
        unsigned int ret;
        int count;
 
-       pci_write_config_dword (CFG_PCI9054_DEV_FN, 0x50, value);
-       pci_write_config_dword (CFG_PCI9054_DEV_FN, 0x4c,
+       pci_write_config_dword (CONFIG_SYS_PCI9054_DEV_FN, 0x50, value);
+       pci_write_config_dword (CONFIG_SYS_PCI9054_DEV_FN, 0x4c,
                                (offs << 16) | 0x80000003);
        count = 0;
 
        for (;;) {
                udelay (10 * 1000);
-               pci_read_config_dword (CFG_PCI9054_DEV_FN, 0x4c, &ret);
+               pci_read_config_dword (CONFIG_SYS_PCI9054_DEV_FN, 0x4c, &ret);
                if ((ret & 0x80000000) == 0) {
                        break;
                } else {
@@ -109,7 +109,7 @@ static void showPci9054 (void)
        for (l = 0; l < 6; l++) {
                printf ("%02x: ", l * 0x10);
                for (i = 0; i < 4; i++) {
-                       pci_read_config_dword (CFG_PCI9054_DEV_FN,
+                       pci_read_config_dword (CONFIG_SYS_PCI9054_DEV_FN,
                                                l * 16 + i * 4,
                                                (unsigned int *)&val);
                        printf ("%08x ", val);
index d2ac13fcd8de361aab0a73011e93ec002319ff72..9c71b043cbf13a1e705061115606fe73bdda98fd 100644 (file)
@@ -47,7 +47,7 @@ unsigned long flash_init (void)
        unsigned long base_b0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 14549c0147e329bb6345488a424db35db26eae92..240aa09f5b4302295507eed1a3a083ff8fed274e 100644 (file)
@@ -47,7 +47,7 @@ unsigned long flash_init (void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index 51643345005f18f57033506d579b9b2e6f1bccb5..91e65ec8a98dedf153b80991ddba6ec13f8fbb79 100644 (file)
@@ -33,5 +33,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 6dca35d6267ee093ee1146da3d1e55500b1f761d..2f97a1262a39558baef18d82e635aa16a1bace82 100644 (file)
@@ -29,7 +29,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 extern ulong flash_get_size (ulong base, int banknum);
 
 int usbhub_init(void);
@@ -51,8 +51,8 @@ int board_early_init_f(void)
        /*
         * Setup the GPIO pins
         */
-       out_be32((void*)GPIO0_OR, 0x00000000 | CFG_GPIO0_EP_EEP);
-       out_be32((void*)GPIO0_TCR, 0x0000001f | CFG_GPIO0_EP_EEP);
+       out_be32((void*)GPIO0_OR, 0x00000000 | CONFIG_SYS_GPIO0_EP_EEP);
+       out_be32((void*)GPIO0_TCR, 0x0000001f | CONFIG_SYS_GPIO0_EP_EEP);
        out_be32((void*)GPIO0_OSRL, 0x50055400);
        out_be32((void*)GPIO0_OSRH, 0x55005000);
        out_be32((void*)GPIO0_TSRL, 0x50055400);
@@ -66,13 +66,13 @@ int board_early_init_f(void)
 
        out_be32((void*)GPIO1_OR, 0x00000000);
        out_be32((void*)GPIO1_TCR, 0xc2000000 |
-                CFG_GPIO1_IORSTN |
-                CFG_GPIO1_IORST2N |
-                CFG_GPIO1_LEDUSR1 |
-                CFG_GPIO1_LEDUSR2 |
-                CFG_GPIO1_LEDPOST |
-                CFG_GPIO1_LEDDU);
-       out_be32((void*)GPIO1_ODR, CFG_GPIO1_LEDDU);
+                CONFIG_SYS_GPIO1_IORSTN |
+                CONFIG_SYS_GPIO1_IORST2N |
+                CONFIG_SYS_GPIO1_LEDUSR1 |
+                CONFIG_SYS_GPIO1_LEDUSR2 |
+                CONFIG_SYS_GPIO1_LEDPOST |
+                CONFIG_SYS_GPIO1_LEDDU);
+       out_be32((void*)GPIO1_ODR, CONFIG_SYS_GPIO1_LEDDU);
        out_be32((void*)GPIO1_OSRL, 0x0c280000);
        out_be32((void*)GPIO1_OSRH, 0x00000000);
        out_be32((void*)GPIO1_TSRL, 0xcc000000);
@@ -154,8 +154,8 @@ int board_early_init_f(void)
                SDR0_CUST0_NDFC_ENABLE          |
                SDR0_CUST0_NDFC_BW_8_BIT        |
                SDR0_CUST0_NDFC_ARE_MASK        |
-               (0x80000000 >> (28 + CFG_NAND0_CS)) |
-               (0x80000000 >> (28 + CFG_NAND1_CS));
+               (0x80000000 >> (28 + CONFIG_SYS_NAND0_CS)) |
+               (0x80000000 >> (28 + CONFIG_SYS_NAND1_CS));
        mtsdr(SDR0_CUST0, sdr0_cust0);
 
        return 0;
@@ -273,7 +273,7 @@ int misc_init_r(void)
         * We have to wait at least 560ms until we may call usbhub_init
         */
        out_be32((void*)GPIO1_OR, in_be32((void*)GPIO1_OR) |
-                CFG_GPIO1_IORSTN | CFG_GPIO1_IORST2N);
+                CONFIG_SYS_GPIO1_IORSTN | CONFIG_SYS_GPIO1_IORST2N);
 
        /*
         * flash USR1/2 LEDs (600ms)
@@ -282,22 +282,22 @@ int misc_init_r(void)
         */
        for (j = 0; j < 3; j++) {
                out_be32((void*)GPIO1_OR,
-                        (in_be32((void*)GPIO1_OR) & ~CFG_GPIO1_LEDUSR2) |
-                        CFG_GPIO1_LEDUSR1);
+                        (in_be32((void*)GPIO1_OR) & ~CONFIG_SYS_GPIO1_LEDUSR2) |
+                        CONFIG_SYS_GPIO1_LEDUSR1);
 
                for (i = 0; i < 100; i++)
                        udelay(1000);
 
                out_be32((void*)GPIO1_OR,
-                        (in_be32((void*)GPIO1_OR) & ~CFG_GPIO1_LEDUSR1) |
-                        CFG_GPIO1_LEDUSR2);
+                        (in_be32((void*)GPIO1_OR) & ~CONFIG_SYS_GPIO1_LEDUSR1) |
+                        CONFIG_SYS_GPIO1_LEDUSR2);
 
                for (i = 0; i < 100; i++)
                        udelay(1000);
        }
 
        out_be32((void*)GPIO1_OR, in_be32((void*)GPIO1_OR) &
-                ~(CFG_GPIO1_LEDUSR1 | CFG_GPIO1_LEDUSR2));
+                ~(CONFIG_SYS_GPIO1_LEDUSR1 | CONFIG_SYS_GPIO1_LEDUSR2));
 
        if (usbhub_init())
                du440_post_errors++;
@@ -310,14 +310,14 @@ int misc_init_r(void)
 
 int pld_revision(void)
 {
-       out8(CFG_CPLD_BASE, 0x00);
-       return (int)(in8(CFG_CPLD_BASE) & CPLD_VERSION_MASK);
+       out8(CONFIG_SYS_CPLD_BASE, 0x00);
+       return (int)(in8(CONFIG_SYS_CPLD_BASE) & CPLD_VERSION_MASK);
 }
 
 int board_revision(void)
 {
-       int rpins = (int)((in_be32((void*)GPIO1_IR) & CFG_GPIO1_HWVER_MASK)
-                         >> CFG_GPIO1_HWVER_SHIFT);
+       int rpins = (int)((in_be32((void*)GPIO1_IR) & CONFIG_SYS_GPIO1_HWVER_MASK)
+                         >> CONFIG_SYS_GPIO1_HWVER_SHIFT);
 
        return ((rpins & 1) << 3) | ((rpins & 2) << 1) |
                ((rpins & 4) >> 1) | ((rpins & 8) >> 3);
@@ -328,7 +328,7 @@ void board_show_activity (ulong timestamp)
 {
        if ((timestamp % 100) == 0)
                out_be32((void*)GPIO1_OR,
-                        in_be32((void*)GPIO1_OR) ^ CFG_GPIO1_LEDUSR1);
+                        in_be32((void*)GPIO1_OR) ^ CONFIG_SYS_GPIO1_LEDUSR1);
 }
 
 void show_activity(int arg)
@@ -421,7 +421,7 @@ int pci_pre_init(struct pci_controller *hose)
  * inbound map (PIM). But the bootstrap config choices are limited and
  * may not be sufficient for a given board.
  */
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*
@@ -437,16 +437,16 @@ void pci_target_init(struct pci_controller *hose)
         */
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute */
                                                /* - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE); /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE); /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xE0000001);       /* 512M + No prefetching, */
                                                /* and enable region */
 
        out32r(PCIX0_PMM1MA, 0x00000000);       /* PMM0 Mask/Attribute */
                                                /* - disabled b4 setting */
-       out32r(PCIX0_PMM1LA, CFG_PCI_MEMBASE2); /* PMM0 Local Address */
-       out32r(PCIX0_PMM1PCILA, CFG_PCI_MEMBASE2); /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM1LA, CONFIG_SYS_PCI_MEMBASE2); /* PMM0 Local Address */
+       out32r(PCIX0_PMM1PCILA, CONFIG_SYS_PCI_MEMBASE2); /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM1MA, 0xE0000001);       /* 512M + No prefetching, */
                                                /* and enable region */
@@ -479,9 +479,9 @@ void pci_target_init(struct pci_controller *hose)
        pci_write_config_dword(0, PCI_BRDGOPT2, 0x00000101);
 
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -496,7 +496,7 @@ void pci_master_init(struct pci_controller *hose)
                              temp_short | PCI_COMMAND_MASTER |
                              PCI_COMMAND_MEMORY);
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 /*
  * is_pci_host
@@ -524,18 +524,18 @@ int last_stage_init(void)
        int e, i;
 
        /* everyting is ok: turn on POST-LED */
-       out_be32((void*)GPIO1_OR, in_be32((void*)GPIO1_OR) | CFG_GPIO1_LEDPOST);
+       out_be32((void*)GPIO1_OR, in_be32((void*)GPIO1_OR) | CONFIG_SYS_GPIO1_LEDPOST);
 
        /* slowly blink on errors and finally keep LED off */
        for (e = 0; e < du440_post_errors; e++) {
                out_be32((void*)GPIO1_OR,
-                        in_be32((void*)GPIO1_OR) | CFG_GPIO1_LEDPOST);
+                        in_be32((void*)GPIO1_OR) | CONFIG_SYS_GPIO1_LEDPOST);
 
                for (i = 0; i < 500; i++)
                        udelay(1000);
 
                out_be32((void*)GPIO1_OR,
-                        in_be32((void*)GPIO1_OR) & ~CFG_GPIO1_LEDPOST);
+                        in_be32((void*)GPIO1_OR) & ~CONFIG_SYS_GPIO1_LEDPOST);
 
                for (i = 0; i < 500; i++)
                        udelay(1000);
@@ -583,9 +583,9 @@ int do_dcf77(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                printf("ERROR - no signal\n");
 
        t1 = t2 = 0;
-       pinold = in_be32((void*)GPIO1_IR) & CFG_GPIO1_DCF77;
+       pinold = in_be32((void*)GPIO1_IR) & CONFIG_SYS_GPIO1_DCF77;
        while (!ctrlc()) {
-               pin = in_be32((void*)GPIO1_IR) & CFG_GPIO1_DCF77;
+               pin = in_be32((void*)GPIO1_IR) & CONFIG_SYS_GPIO1_DCF77;
                if (pin && !pinold) { /* bit start */
                        t1 = get_ticks();
                        if (t2 && ((unsigned int)(t1 - t2) /
@@ -661,7 +661,7 @@ U_BOOT_CMD(
        );
 #endif /* CONFIG_I2C_MULTI_BUS */
 
-#define CFG_BOOT_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_BOOT_EEPROM_PAGE_WRITE_BITS 3
 int boot_eeprom_write (unsigned dev_addr,
                       unsigned offset,
                       uchar *buffer,
@@ -671,7 +671,7 @@ int boot_eeprom_write (unsigned dev_addr,
        unsigned blk_off;
        int rcode = 0;
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
        eeprom_write_enable(dev_addr, 1);
 #endif
        /*
@@ -700,9 +700,9 @@ int boot_eeprom_write (unsigned dev_addr,
                 * bytes that can be ccessed with the single read or write
                 * operation.
                 */
-#if defined(CFG_BOOT_EEPROM_PAGE_WRITE_BITS)
+#if defined(CONFIG_SYS_BOOT_EEPROM_PAGE_WRITE_BITS)
 
-#define        BOOT_EEPROM_PAGE_SIZE (1 << CFG_BOOT_EEPROM_PAGE_WRITE_BITS)
+#define        BOOT_EEPROM_PAGE_SIZE (1 << CONFIG_SYS_BOOT_EEPROM_PAGE_WRITE_BITS)
 #define BOOT_EEPROM_PAGE_OFFSET(x) ((x) & (BOOT_EEPROM_PAGE_SIZE - 1))
 
                maxlen = BOOT_EEPROM_PAGE_SIZE -
@@ -722,11 +722,11 @@ int boot_eeprom_write (unsigned dev_addr,
                buffer += len;
                offset += len;
 
-#if defined(CFG_EEPROM_PAGE_WRITE_DELAY_MS)
-               udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+#if defined(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS)
+               udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 #endif
        }
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
        eeprom_write_enable(dev_addr, 0);
 #endif
        return rcode;
@@ -779,7 +779,7 @@ int do_setup_boot_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
        printf("Writing boot EEPROM ...\n");
-       if (boot_eeprom_write(CFG_I2C_BOOT_EEPROM_ADDR,
+       if (boot_eeprom_write(CONFIG_SYS_I2C_BOOT_EEPROM_ADDR,
                              0, (uchar*)sdsdp, 16) != 0)
                printf("boot_eeprom_write failed\n");
        else
@@ -793,7 +793,7 @@ U_BOOT_CMD(
        NULL
        );
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 /*
  * Input: <dev_addr>  I2C address of EEPROM device to enable.
  *         <state>     -1: deliver current state
@@ -805,27 +805,27 @@ U_BOOT_CMD(
  */
 int eeprom_write_enable (unsigned dev_addr, int state)
 {
-       if ((CFG_I2C_EEPROM_ADDR != dev_addr) &&
-           (CFG_I2C_BOOT_EEPROM_ADDR != dev_addr))
+       if ((CONFIG_SYS_I2C_EEPROM_ADDR != dev_addr) &&
+           (CONFIG_SYS_I2C_BOOT_EEPROM_ADDR != dev_addr))
                return -1;
        else {
                switch (state) {
                case 1:
                        /* Enable write access, clear bit GPIO_SINT2. */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) & ~CFG_GPIO0_EP_EEP);
+                                in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_GPIO0_EP_EEP);
                        state = 0;
                        break;
                case 0:
                        /* Disable write access, set bit GPIO_SINT2. */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) | CFG_GPIO0_EP_EEP);
+                                in_be32((void*)GPIO0_OR) | CONFIG_SYS_GPIO0_EP_EEP);
                        state = 0;
                        break;
                default:
                        /* Read current status back. */
                        state = (0 == (in_be32((void*)GPIO0_OR) &
-                                      CFG_GPIO0_EP_EEP));
+                                      CONFIG_SYS_GPIO0_EP_EEP));
                        break;
                }
        }
@@ -839,21 +839,21 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (query) {
                /* Query write access state. */
-               state = eeprom_write_enable(CFG_I2C_EEPROM_ADDR, -1);
+               state = eeprom_write_enable(CONFIG_SYS_I2C_EEPROM_ADDR, -1);
                if (state < 0)
                        puts ("Query of write access state failed.\n");
                else {
                        printf ("Write access for device 0x%0x is %sabled.\n",
-                               CFG_I2C_EEPROM_ADDR, state ? "en" : "dis");
+                               CONFIG_SYS_I2C_EEPROM_ADDR, state ? "en" : "dis");
                        state = 0;
                }
        } else {
                if ('0' == argv[1][0]) {
                        /* Disable write access. */
-                       state = eeprom_write_enable(CFG_I2C_EEPROM_ADDR, 0);
+                       state = eeprom_write_enable(CONFIG_SYS_I2C_EEPROM_ADDR, 0);
                } else {
                        /* Enable write access. */
-                       state = eeprom_write_enable(CFG_I2C_EEPROM_ADDR, 1);
+                       state = eeprom_write_enable(CONFIG_SYS_I2C_EEPROM_ADDR, 1);
                }
                if (state < 0)
                        puts ("Setup of write access state failed.\n");
@@ -865,19 +865,19 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 U_BOOT_CMD(eepwren, 2, 0, do_eep_wren,
           "eepwren - Enable / disable / query EEPROM write access\n",
           NULL);
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
 
 static int got_pldirq;
 
 static int pld_interrupt(u32 arg)
 {
        int rc = -1; /* not for us */
-       u8 status = in8(CFG_CPLD_BASE);
+       u8 status = in8(CONFIG_SYS_CPLD_BASE);
 
        /* check for PLD interrupt */
        if (status & PWR_INT_FLAG) {
                /* reset this int */
-               out8(CFG_CPLD_BASE, 0);
+               out8(CONFIG_SYS_CPLD_BASE, 0);
                rc = 0;
                got_pldirq = 1; /* trigger backend */
        }
@@ -890,7 +890,7 @@ int do_waitpwrirq(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        got_pldirq = 0;
 
        /* clear any pending interrupt */
-       out8(CFG_CPLD_BASE, 0);
+       out8(CONFIG_SYS_CPLD_BASE, 0);
 
        irq_install_handler(CPLD_IRQ,
                            (interrupt_handler_t *)pld_interrupt, 0);
@@ -906,7 +906,7 @@ int do_waitpwrirq(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        if (got_pldirq) {
                printf("Got interrupt!\n");
                printf("Power %sready!\n",
-                      in8(CFG_CPLD_BASE) & PWR_RDY ? "":"NOT ");
+                      in8(CONFIG_SYS_CPLD_BASE) & PWR_RDY ? "":"NOT ");
        }
 
        irq_free_handler(CPLD_IRQ);
@@ -970,7 +970,7 @@ U_BOOT_CMD(
 int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        unsigned long long start, end;
-       char c, cmd[CFG_CBSIZE];
+       char c, cmd[CONFIG_SYS_CBSIZE];
        char *p, *d = cmd;
        int ret, i;
        ulong us;
@@ -998,7 +998,7 @@ int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return ret;
 }
 U_BOOT_CMD(
-       time,   CFG_MAXARGS,    1,      do_time,
+       time,   CONFIG_SYS_MAXARGS,     1,      do_time,
        "time    - run command and output execution time\n",
        NULL
        );
@@ -1048,7 +1048,7 @@ int do_gfxdemo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return 0;
 }
 U_BOOT_CMD(
-       gfxdemo,        CFG_MAXARGS,    1,      do_gfxdemo,
+       gfxdemo,        CONFIG_SYS_MAXARGS,     1,      do_gfxdemo,
        "gfxdemo - demo\n",
        NULL
        );
index 83fdac7c63fe85784efc0de32edc5faf1af1e135..a124a7ee9b51df8f16f245a55247673efbb87b4d 100644 (file)
 
 #define SDR0_USB0              0x0320     /* USB Control Register */
 
-#define CFG_GPIO0_EP_EEP       (0x80000000 >> 23)       /* GPIO0_23 */
-#define CFG_GPIO1_DCF77                (0x80000000 >> (42-32))  /* GPIO1_42 */
+#define CONFIG_SYS_GPIO0_EP_EEP        (0x80000000 >> 23)       /* GPIO0_23 */
+#define CONFIG_SYS_GPIO1_DCF77         (0x80000000 >> (42-32))  /* GPIO1_42 */
 
-#define CFG_GPIO1_IORSTN       (0x80000000 >> (55-32))  /* GPIO1_55 */
-#define CFG_GPIO1_IORST2N      (0x80000000 >> (47-32))  /* GPIO1_47 */
+#define CONFIG_SYS_GPIO1_IORSTN        (0x80000000 >> (55-32))  /* GPIO1_55 */
+#define CONFIG_SYS_GPIO1_IORST2N       (0x80000000 >> (47-32))  /* GPIO1_47 */
 
-#define CFG_GPIO1_HWVER_MASK   0x000000f0 /* GPIO1_56-59 */
-#define CFG_GPIO1_HWVER_SHIFT  4
-#define CFG_GPIO1_LEDUSR1      0x00000008 /* GPIO1_60 */
-#define CFG_GPIO1_LEDUSR2      0x00000004 /* GPIO1_61 */
-#define CFG_GPIO1_LEDPOST      0x00000002 /* GPIO1_62 */
-#define CFG_GPIO1_LEDDU                0x00000001 /* GPIO1_63 */
+#define CONFIG_SYS_GPIO1_HWVER_MASK    0x000000f0 /* GPIO1_56-59 */
+#define CONFIG_SYS_GPIO1_HWVER_SHIFT   4
+#define CONFIG_SYS_GPIO1_LEDUSR1       0x00000008 /* GPIO1_60 */
+#define CONFIG_SYS_GPIO1_LEDUSR2       0x00000004 /* GPIO1_61 */
+#define CONFIG_SYS_GPIO1_LEDPOST       0x00000002 /* GPIO1_62 */
+#define CONFIG_SYS_GPIO1_LEDDU         0x00000001 /* GPIO1_63 */
 
 #define CPLD_VERSION_MASK      0x0f
 #define PWR_INT_FLAG           0x80
index 4390b507448e4df82871bfa3096d80f0cd46a8fd..3cac6b11bb0af849104e4cdbd9981e8c4b370cd8 100644 (file)
@@ -44,30 +44,30 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry( CFG_BOOT_BASE_ADDR, SZ_256M, CFG_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CFG_INIT_RAM_ADDR, SZ_64K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M,  CFG_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M,  CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
 
        /* TLB-entry for PCI IO */
-       tlbentry( CFG_PCI_IOBASE, SZ_64K, CFG_PCI_IOBASE, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_IOBASE, SZ_64K, CONFIG_SYS_PCI_IOBASE, 1, AC_R|AC_W|SA_G|SA_I )
 
        /* TLB-entries for EBC:  CPLD, DUMEM, DUIO */
-       tlbentry( CFG_CPLD_BASE, SZ_1K, CFG_CPLD_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_DUMEM_BASE, SZ_1M, CFG_DUMEM_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_DUIO_BASE, SZ_64K, CFG_DUIO_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CPLD_BASE, SZ_1K, CONFIG_SYS_CPLD_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_DUMEM_BASE, SZ_1M, CONFIG_SYS_DUMEM_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_DUIO_BASE, SZ_64K, CONFIG_SYS_DUIO_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB-entry for NAND */
-       tlbentry( CFG_NAND0_ADDR, SZ_1K, CFG_NAND0_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_NAND1_ADDR, SZ_1K, CFG_NAND1_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND0_ADDR, SZ_1K, CONFIG_SYS_NAND0_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND1_ADDR, SZ_1K, CONFIG_SYS_NAND1_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB-entry for Internal Registers & OCM */
        tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I )
index b20fb1c0a282c5499f6a8d580991a6acb7a943f6..3cfec834e2dbcd31261163b96a69446f325a435d 100644 (file)
@@ -137,7 +137,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 9fc41c879c4ea80dda9003d053b397f36b24e72a..efadf164602ddaebdfcf6d2c07bb84497b557a4e 100644 (file)
@@ -345,7 +345,7 @@ int board_early_init_f (void)
        mtdcr(uicsr, 0xFFFFFFFF);       /* clear all ints */
        mtdcr(uicer, 0x00000000);       /* disable all ints */
        mtdcr(uiccr, 0x00000000);       /* set all to be non-critical*/
-       mtdcr(uicpr, CFG_UIC0_POLARITY);/* set int polarities */
+       mtdcr(uicpr, CONFIG_SYS_UIC0_POLARITY);/* set int polarities */
        mtdcr(uictr, 0x10000000);       /* set int trigger levels */
        mtdcr(uicvcr, 0x00000001);      /* set vect base=0,INT0 highest priority*/
        mtdcr(uicsr, 0xFFFFFFFF);       /* clear all ints */
@@ -363,26 +363,26 @@ int cf_enable(void)
        int i;
 
        volatile unsigned short *fpga_ctrl =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
        volatile unsigned short *fpga_status =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL + 2);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL + 2);
 
        if (gd->board_type >= 2) {
-               if (*fpga_status & CFG_FPGA_STATUS_CF_DETECT) {
-                       if (!(*fpga_ctrl & CFG_FPGA_CTRL_CF_BUS_EN)) {
-                               *fpga_ctrl &= ~CFG_FPGA_CTRL_CF_PWRN;
+               if (*fpga_status & CONFIG_SYS_FPGA_STATUS_CF_DETECT) {
+                       if (!(*fpga_ctrl & CONFIG_SYS_FPGA_CTRL_CF_BUS_EN)) {
+                               *fpga_ctrl &= ~CONFIG_SYS_FPGA_CTRL_CF_PWRN;
 
                                for (i=0; i<300; i++)
                                        udelay(1000);
 
-                               *fpga_ctrl |= CFG_FPGA_CTRL_CF_BUS_EN;
+                               *fpga_ctrl |= CONFIG_SYS_FPGA_CTRL_CF_BUS_EN;
 
                                for (i=0; i<20; i++)
                                        udelay(1000);
                        }
                } else {
-                       *fpga_ctrl &= ~CFG_FPGA_CTRL_CF_BUS_EN;
-                       *fpga_ctrl |= CFG_FPGA_CTRL_CF_PWRN;
+                       *fpga_ctrl &= ~CONFIG_SYS_FPGA_CTRL_CF_BUS_EN;
+                       *fpga_ctrl |= CONFIG_SYS_FPGA_CTRL_CF_PWRN;
                }
        }
 
@@ -392,11 +392,11 @@ int cf_enable(void)
 int misc_init_r (void)
 {
        volatile unsigned short *fpga_ctrl =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
        volatile unsigned short *lcd_contrast =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL + 4);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL + 4);
        volatile unsigned short *lcd_backlight =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL + 6);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL + 6);
        unsigned char *dst;
        ulong len = sizeof(fpgadata);
        int status;
@@ -405,8 +405,8 @@ int misc_init_r (void)
        char *str;
        unsigned long contrast0 = 0xffffffff;
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
@@ -474,22 +474,22 @@ int misc_init_r (void)
        /*
         * Setup and enable EEPROM write protection
         */
-       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_EEPROM_WP);
+       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
 
        /*
         * Reset touch-screen controller
         */
-       out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_TOUCH_RST);
+       out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_TOUCH_RST);
        udelay(1000);
-       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_TOUCH_RST);
+       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_TOUCH_RST);
 
        /*
         * Enable power on PS/2 interface (with reset)
         */
-       *fpga_ctrl &= ~(CFG_FPGA_CTRL_PS2_PWR);
+       *fpga_ctrl &= ~(CONFIG_SYS_FPGA_CTRL_PS2_PWR);
        for (i=0;i<500;i++)
                udelay(1000);
-       *fpga_ctrl |= (CFG_FPGA_CTRL_PS2_PWR);
+       *fpga_ctrl |= (CONFIG_SYS_FPGA_CTRL_PS2_PWR);
 
        /*
         * Get contrast value from environment variable
@@ -512,11 +512,11 @@ int misc_init_r (void)
                /*
                 * Switch backlight on
                 */
-               *fpga_ctrl |= CFG_FPGA_CTRL_VGA0_BL;
+               *fpga_ctrl |= CONFIG_SYS_FPGA_CTRL_VGA0_BL;
                *lcd_backlight = 0x0000;
 
                lcd_setup(1, 0);
-               lcd_init((uchar *)CFG_LCD_BIG_REG, (uchar *)CFG_LCD_BIG_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG, (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                         regs_13806_1024_768_8bpp,
                         sizeof(regs_13806_1024_768_8bpp)/sizeof(regs_13806_1024_768_8bpp[0]),
                         logo_bmp_1024, sizeof(logo_bmp_1024));
@@ -524,11 +524,11 @@ int misc_init_r (void)
                /*
                 * Switch backlight on
                 */
-               *fpga_ctrl &= ~CFG_FPGA_CTRL_VGA0_BL;
+               *fpga_ctrl &= ~CONFIG_SYS_FPGA_CTRL_VGA0_BL;
                *lcd_backlight = 0x0000;
 
                lcd_setup(1, 0);
-               lcd_init((uchar *)CFG_LCD_BIG_REG, (uchar *)CFG_LCD_BIG_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG, (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                         regs_13806_640_480_16bpp,
                         sizeof(regs_13806_640_480_16bpp)/sizeof(regs_13806_640_480_16bpp[0]),
                         logo_bmp_640, sizeof(logo_bmp_640));
@@ -545,7 +545,7 @@ int misc_init_r (void)
                /*
                 * Switch backlight on
                 */
-               *fpga_ctrl |= CFG_FPGA_CTRL_VGA0_BL | CFG_FPGA_CTRL_VGA0_BL_MODE;
+               *fpga_ctrl |= CONFIG_SYS_FPGA_CTRL_VGA0_BL | CONFIG_SYS_FPGA_CTRL_VGA0_BL_MODE;
                /*
                 * Set lcd clock (small epson)
                 */
@@ -553,7 +553,7 @@ int misc_init_r (void)
                udelay(100);               /* wait for 100 us */
 
                lcd_setup(0, 1);
-               lcd_init((uchar *)CFG_LCD_SMALL_REG, (uchar *)CFG_LCD_SMALL_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_SMALL_REG, (uchar *)CONFIG_SYS_LCD_SMALL_MEM,
                         regs_13705_320_240_8bpp,
                         sizeof(regs_13705_320_240_8bpp)/sizeof(regs_13705_320_240_8bpp[0]),
                         logo_bmp_320_8bpp, sizeof(logo_bmp_320_8bpp));
@@ -570,14 +570,14 @@ int misc_init_r (void)
                /*
                 * Switch backlight on
                 */
-               *fpga_ctrl |= CFG_FPGA_CTRL_VGA0_BL | CFG_FPGA_CTRL_VGA0_BL_MODE;
+               *fpga_ctrl |= CONFIG_SYS_FPGA_CTRL_VGA0_BL | CONFIG_SYS_FPGA_CTRL_VGA0_BL_MODE;
                /*
                 * Set lcd clock (small epson), enable 1-wire interface
                 */
-               *fpga_ctrl |= LCD_CLK_08330 | CFG_FPGA_CTRL_OW_ENABLE;
+               *fpga_ctrl |= LCD_CLK_08330 | CONFIG_SYS_FPGA_CTRL_OW_ENABLE;
 
                lcd_setup(0, 1);
-               lcd_init((uchar *)CFG_LCD_SMALL_REG, (uchar *)CFG_LCD_SMALL_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_SMALL_REG, (uchar *)CONFIG_SYS_LCD_SMALL_MEM,
                         regs_13704_320_240_4bpp,
                         sizeof(regs_13704_320_240_4bpp)/sizeof(regs_13704_320_240_4bpp[0]),
                         logo_bmp_320, sizeof(logo_bmp_320));
@@ -647,27 +647,27 @@ int checkboard (void)
 void ide_set_reset(int on)
 {
        volatile unsigned short *fpga_mode =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
        volatile unsigned short *fpga_status =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL + 2);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL + 2);
 
-       if (((gd->board_type >= 2) && (*fpga_status & CFG_FPGA_STATUS_CF_DETECT)) ||
+       if (((gd->board_type >= 2) && (*fpga_status & CONFIG_SYS_FPGA_STATUS_CF_DETECT)) ||
            (gd->board_type < 2)) {
                /*
                 * Assert or deassert CompactFlash Reset Pin
                 */
                if (on) {               /* assert RESET */
                        cf_enable();
-                       *fpga_mode &= ~(CFG_FPGA_CTRL_CF_RESET);
+                       *fpga_mode &= ~(CONFIG_SYS_FPGA_CTRL_CF_RESET);
                } else {                /* release RESET */
-                       *fpga_mode |= CFG_FPGA_CTRL_CF_RESET;
+                       *fpga_mode |= CONFIG_SYS_FPGA_CTRL_CF_RESET;
                }
        }
 }
 #endif /* CONFIG_IDE_RESET */
 
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 /* Input: <dev_addr>  I2C address of EEPROM device to enable.
  *         <state>     -1: deliver current state
  *                    0: disable write
@@ -678,23 +678,23 @@ void ide_set_reset(int on)
  */
 int eeprom_write_enable (unsigned dev_addr, int state)
 {
-       if (CFG_I2C_EEPROM_ADDR != dev_addr) {
+       if (CONFIG_SYS_I2C_EEPROM_ADDR != dev_addr) {
                return -1;
        } else {
                switch (state) {
                case 1:
                        /* Enable write access, clear bit GPIO_SINT2. */
-                       out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_EEPROM_WP);
+                       out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                case 0:
                        /* Disable write access, set bit GPIO_SINT2. */
-                       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_EEPROM_WP);
+                       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                default:
                        /* Read current status back. */
-                       state = (0 == (in32(GPIO0_OR) & CFG_EEPROM_WP));
+                       state = (0 == (in32(GPIO0_OR) & CONFIG_SYS_EEPROM_WP));
                        break;
                }
        }
@@ -708,21 +708,21 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (query) {
                /* Query write access state. */
-               state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, -1);
+               state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, -1);
                if (state < 0) {
                        puts ("Query of write access state failed.\n");
                } else {
                        printf ("Write access for device 0x%0x is %sabled.\n",
-                               CFG_I2C_EEPROM_ADDR, state ? "en" : "dis");
+                               CONFIG_SYS_I2C_EEPROM_ADDR, state ? "en" : "dis");
                        state = 0;
                }
        } else {
                if ('0' == argv[1][0]) {
                        /* Disable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 0);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 0);
                } else {
                        /* Enable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 1);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 1);
                }
                if (state < 0) {
                        puts ("Setup of write access state failed.\n");
@@ -735,7 +735,7 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 U_BOOT_CMD(eepwren,    2,      0,      do_eep_wren,
           "eepwren - Enable / disable / query EEPROM write access\n",
           NULL);
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
 
 
 #ifdef CONFIG_VIDEO_SM501
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 38a6f7a4e10a66bccda2bb03f5ce29e521c0d7e8..8785e6c84f3bd001d07c4efda92d47c7c510cc6f 100644 (file)
@@ -125,23 +125,23 @@ int misc_init_r (void)
         * Set RS232/RS422 control (RS232 = high on GPIO)
         */
        val = in32(GPIO0_OR);
-       val &= ~(CFG_UART2_RS232 | CFG_UART3_RS232 | CFG_UART4_RS232 | CFG_UART5_RS232);
+       val &= ~(CONFIG_SYS_UART2_RS232 | CONFIG_SYS_UART3_RS232 | CONFIG_SYS_UART4_RS232 | CONFIG_SYS_UART5_RS232);
 
        str = getenv("phys0");
        if (!str || (str && (str[0] == '0')))
-               val |= CFG_UART2_RS232;
+               val |= CONFIG_SYS_UART2_RS232;
 
        str = getenv("phys1");
        if (!str || (str && (str[0] == '0')))
-               val |= CFG_UART3_RS232;
+               val |= CONFIG_SYS_UART3_RS232;
 
        str = getenv("phys2");
        if (!str || (str && (str[0] == '0')))
-               val |= CFG_UART4_RS232;
+               val |= CONFIG_SYS_UART4_RS232;
 
        str = getenv("phys3");
        if (!str || (str && (str[0] == '0')))
-               val |= CFG_UART5_RS232;
+               val |= CONFIG_SYS_UART5_RS232;
 
        out32(GPIO0_OR, val);
 
@@ -174,9 +174,9 @@ int misc_init_r (void)
        /*
         * Reset external DUARTs
         */
-       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_DUART_RST); /* set reset to high */
+       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_DUART_RST); /* set reset to high */
        udelay(10); /* wait 10us */
-       out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_DUART_RST); /* set reset to low */
+       out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_DUART_RST); /* set reset to low */
        udelay(1000); /* wait 1ms */
 
        /*
index ff44abdac5bb7e5271413ab32da2ea130092cc52..31924502e41e29265831693bf29ec2af7f1b602e 100644 (file)
@@ -81,7 +81,7 @@ static void sdram_start(int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -106,9 +106,9 @@ phys_size_t initdram(int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size(CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size(CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x80000000);
 
        if (test1 > test2) {
                sdram_start(0);
@@ -143,9 +143,9 @@ phys_size_t initdram(int board_type)
 #if 0
        /* find RAM size using SDRAM CS1 only */
        sdram_start(0);
-       get_ram_size((ulong *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+       get_ram_size((ulong *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        sdram_start(1);
-       get_ram_size((ulong *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+       get_ram_size((ulong *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        sdram_start(0);
 #endif
        /* set SDRAM CS1 size according to the amount of RAM found */
@@ -175,14 +175,14 @@ void flash_preinit(void)
 
 void flash_afterinit(ulong size)
 {
-       if (size == CFG_FLASH_SIZE) {
+       if (size == CONFIG_SYS_FLASH_SIZE) {
                /* adjust mapping */
                *(vu_long *) MPC5XXX_BOOTCS_START =
                    *(vu_long *) MPC5XXX_CS0_START =
-                   START_REG(CFG_BOOTCS_START | size);
+                   START_REG(CONFIG_SYS_BOOTCS_START | size);
                *(vu_long *) MPC5XXX_BOOTCS_STOP =
                    *(vu_long *) MPC5XXX_CS0_STOP =
-                   STOP_REG(CFG_BOOTCS_START | size, size);
+                   STOP_REG(CONFIG_SYS_BOOTCS_START | size, size);
        }
 }
 
index c3d8bec91378863aefcb481325827374f7ae3c18..e763a895ea4d37ebc3134a4ff7affc29cc937a67 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index 3b21781d7df25b79d5588f0ca1a7c4455f2768b4..905848380084b6f37987c9dde3edfe1afc81f2d6 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
index f8d7c28b839c4690eb37d149da0b4579f291197d..4db70521b8e6a432b1e61d5cde4bc7d4e2450d30 100644 (file)
@@ -57,11 +57,11 @@ const unsigned char fpgadata[] =
  */
 #include "../common/fpga.c"
 
-#define FPGA_DONE_STATE_V11 (in32(GPIO0_IR) & CFG_FPGA_DONE)
-#define FPGA_DONE_STATE_V12 (in32(GPIO0_IR) & CFG_FPGA_DONE_V12)
+#define FPGA_DONE_STATE_V11 (in32(GPIO0_IR) & CONFIG_SYS_FPGA_DONE)
+#define FPGA_DONE_STATE_V12 (in32(GPIO0_IR) & CONFIG_SYS_FPGA_DONE_V12)
 
-#define FPGA_INIT_STATE_V11 (in32(GPIO0_IR) & CFG_FPGA_INIT)
-#define FPGA_INIT_STATE_V12 (in32(GPIO0_IR) & CFG_FPGA_INIT_V12)
+#define FPGA_INIT_STATE_V11 (in32(GPIO0_IR) & CONFIG_SYS_FPGA_INIT)
+#define FPGA_INIT_STATE_V12 (in32(GPIO0_IR) & CONFIG_SYS_FPGA_INIT_V12)
 
 
 int board_revision(void)
@@ -138,8 +138,8 @@ int board_early_init_f (void)
         * First pull fpga-prg pin low, to disable fpga logic (on version 1.2 board)
         */
        out32(GPIO0_ODR, 0x00000000);        /* no open drain pins      */
-       out32(GPIO0_TCR, CFG_FPGA_PRG);      /* setup for output        */
-       out32(GPIO0_OR,  CFG_FPGA_PRG);      /* set output pins to high */
+       out32(GPIO0_TCR, CONFIG_SYS_FPGA_PRG);      /* setup for output        */
+       out32(GPIO0_OR,  CONFIG_SYS_FPGA_PRG);      /* set output pins to high */
        out32(GPIO0_OR, 0);                  /* pull prg low            */
 
        /*
@@ -205,8 +205,8 @@ int misc_init_r (void)
         * FPGA can be gzip compressed (malloc) and booted this late.
         */
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
index 8178b56ce746e5ef8be9b84fcf3e84864a45441e..9850445465c1783f57004abaae67169bcae9e957 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 typedef unsigned short FLASH_PORT_WIDTH;
 typedef volatile unsigned short FLASH_PORT_WIDTHV;
@@ -60,7 +60,7 @@ unsigned long flash_init(void)
        extern void flash_preinit(void);
        extern void flash_afterinit(uint, ulong, ulong);
 
-       ulong flashbase = CFG_FLASH_BASE;
+       ulong flashbase = CONFIG_SYS_FLASH_BASE;
 
        flash_preinit();
 
@@ -69,11 +69,11 @@ unsigned long flash_init(void)
        flash_info[i].size = flash_get_size((FPW *) flashbase, &flash_info[i]);
        size += flash_info[i].size;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
-       flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE + monitor_flash_len - 1,
-                     flash_get_info(CFG_MONITOR_BASE));
+       flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef  CONFIG_ENV_IS_IN_FLASH
@@ -107,14 +107,14 @@ static flash_info_t *flash_get_info(ulong base) {
        int i;
        flash_info_t *info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                info = &flash_info[i];
                if ((info->size) && (info->start[0] <= base)
                    && (base <= info->start[0] + info->size - 1)) {
                        break;
                }
        }
-       return (i == CFG_MAX_FLASH_BANKS ? 0 : info);
+       return (i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info);
 }
 
 /*-----------------------------------------------------------------------
@@ -336,7 +336,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last) {
                udelay(1000);
 
                while ((*addr & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf("Timeout\n");
                                if (intel) {
                                        /* suspend erase        */
@@ -347,14 +347,14 @@ int flash_erase(flash_info_t * info, int s_first, int s_last) {
                                break;
                        }
                        /* show that we're waiting */
-                       if ((get_timer(last)) > CFG_HZ) {
+                       if ((get_timer(last)) > CONFIG_SYS_HZ) {
                                /* every second */
                                putc('.');
                                last = get_timer(0);
                        }
                }
                /* show that we're waiting */
-               if ((get_timer(last)) > CFG_HZ) {
+               if ((get_timer(last)) > CONFIG_SYS_HZ) {
                        /* every second */
                        putc('.');
                        last = get_timer(0);
@@ -452,7 +452,7 @@ static int write_word_amd(flash_info_t * info, FPWV * dest, FPW data) {
        /* data polling for D7 */
        while (res == 0
               && (*dest & (FPW) 0x00800080) != (data & (FPW) 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW) 0x00F000F0;       /* reset bank */
                        res = 1;
                }
index c4c0221d02f6363e9da440ec47ac9451460d9a52..f7962afa5c31b0f65db4a5fcf4fb67b4d116e3b2 100644 (file)
@@ -81,7 +81,7 @@ static void sdram_start(int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -106,9 +106,9 @@ phys_size_t initdram(int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *) CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *) CONFIG_SYS_SDRAM_BASE, 0x80000000);
 
        if (test1 > test2) {
                sdram_start(0);
@@ -144,9 +144,9 @@ phys_size_t initdram(int board_type)
 #if 0
        /* find RAM size using SDRAM CS1 only */
        sdram_start(0);
-       get_ram_size((ulong *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+       get_ram_size((ulong *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        sdram_start(1);
-       get_ram_size((ulong *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+       get_ram_size((ulong *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        sdram_start(0);
 #endif
        /* set SDRAM CS1 size according to the amount of RAM found */
@@ -180,10 +180,10 @@ void flash_afterinit(ulong size)
                /* adjust mapping */
                *(vu_long *) MPC5XXX_BOOTCS_START =
                    *(vu_long *) MPC5XXX_CS0_START =
-                   START_REG(CFG_BOOTCS_START | size);
+                   START_REG(CONFIG_SYS_BOOTCS_START | size);
                *(vu_long *) MPC5XXX_BOOTCS_STOP =
                    *(vu_long *) MPC5XXX_CS0_STOP =
-                   STOP_REG(CFG_BOOTCS_START | size, size);
+                   STOP_REG(CONFIG_SYS_BOOTCS_START | size, size);
        }
 }
 
@@ -258,10 +258,10 @@ void init_power_switch(void)
                *(vu_long *) MPC5XXX_SIMPLEIO_GPIO_DATA_OUTPUT |= GPIO_USB0;
                __asm__ volatile ("sync");
        }
-       *(vu_char *) CFG_CS1_START = 0x02;      /* Red Power LED on */
+       *(vu_char *) CONFIG_SYS_CS1_START = 0x02;       /* Red Power LED on */
        __asm__ volatile ("sync");
 
-       *(vu_char *) (CFG_CS1_START + 1) = 0x02;        /* Disable driver for KB11 */
+       *(vu_char *) (CONFIG_SYS_CS1_START + 1) = 0x02; /* Disable driver for KB11 */
        __asm__ volatile ("sync");
 }
 
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 3db9c0ad100d5d3a79e25764c213087090ac0c6a..61186a8d7c35288653d0e82e6db6ed2d3e98133c 100644 (file)
@@ -113,8 +113,8 @@ int misc_init_r (void)
        gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize;
        gd->bd->bi_flashoffset = 0;
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
@@ -179,23 +179,23 @@ int misc_init_r (void)
        /*
         * Reset external DUARTs
         */
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_DUART_RST);
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_DUART_RST);
        udelay(10);
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~CFG_DUART_RST);
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_DUART_RST);
        udelay(1000);
 
        /*
         * Set NAND-FLASH GPIO signals to default
         */
        out_be32((void*)GPIO0_OR,
-                in_be32((void*)GPIO0_OR) & ~(CFG_NAND_CLE | CFG_NAND_ALE));
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_NAND_CE);
+                in_be32((void*)GPIO0_OR) & ~(CONFIG_SYS_NAND_CLE | CONFIG_SYS_NAND_ALE));
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_NAND_CE);
 
        /*
         * Setup EEPROM write protection
         */
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_EEPROM_WP);
-       out_be32((void*)GPIO0_TCR, in_be32((void*)GPIO0_TCR) | CFG_EEPROM_WP);
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
+       out_be32((void*)GPIO0_TCR, in_be32((void*)GPIO0_TCR) | CONFIG_SYS_EEPROM_WP);
 
        /*
         * Enable interrupts in exar duart mcr[3]
@@ -230,15 +230,15 @@ int checkboard (void)
 void ide_set_reset(int on)
 {
        volatile unsigned short *fpga_mode =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
 
        /*
         * Assert or deassert CompactFlash Reset Pin
         */
        if (on) {               /* assert RESET */
-               *fpga_mode &= ~(CFG_FPGA_CTRL_CF_RESET);
+               *fpga_mode &= ~(CONFIG_SYS_FPGA_CTRL_CF_RESET);
        } else {                /* release RESET */
-               *fpga_mode |= CFG_FPGA_CTRL_CF_RESET;
+               *fpga_mode |= CONFIG_SYS_FPGA_CTRL_CF_RESET;
        }
 }
 #endif /* CONFIG_IDE_RESET */
@@ -254,7 +254,7 @@ void reset_phy(void)
 #endif
 }
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 /* Input: <dev_addr>  I2C address of EEPROM device to enable.
  *         <state>     -1: deliver current state
  *                    0: disable write
@@ -265,26 +265,26 @@ void reset_phy(void)
  */
 int eeprom_write_enable (unsigned dev_addr, int state)
 {
-       if (CFG_I2C_EEPROM_ADDR != dev_addr) {
+       if (CONFIG_SYS_I2C_EEPROM_ADDR != dev_addr) {
                return -1;
        } else {
                switch (state) {
                case 1:
                        /* Enable write access, clear bit GPIO0. */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) & ~CFG_EEPROM_WP);
+                                in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                case 0:
                        /* Disable write access, set bit GPIO0. */
                        out_be32((void*)GPIO0_OR,
-                                in_be32((void*)GPIO0_OR) | CFG_EEPROM_WP);
+                                in_be32((void*)GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                default:
                        /* Read current status back. */
                        state = (0 == (in_be32((void*)GPIO0_OR) &
-                                      CFG_EEPROM_WP));
+                                      CONFIG_SYS_EEPROM_WP));
                        break;
                }
        }
@@ -298,21 +298,21 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (query) {
                /* Query write access state. */
-               state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, -1);
+               state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, -1);
                if (state < 0) {
                        puts ("Query of write access state failed.\n");
                } else {
                        printf ("Write access for device 0x%0x is %sabled.\n",
-                               CFG_I2C_EEPROM_ADDR, state ? "en" : "dis");
+                               CONFIG_SYS_I2C_EEPROM_ADDR, state ? "en" : "dis");
                        state = 0;
                }
        } else {
                if ('0' == argv[1][0]) {
                        /* Disable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 0);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 0);
                } else {
                        /* Enable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 1);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 1);
                }
                if (state < 0) {
                        puts ("Setup of write access state failed.\n");
@@ -325,4 +325,4 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 U_BOOT_CMD(eepwren,    2,      0,      do_eep_wren,
           "eepwren - Enable / disable / query EEPROM write access\n",
           NULL);
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
index 90a212b8c4337ce4799dd430752442bf3f177906..c0781dc950ef7b1815764d03660516778ece4f00 100644 (file)
@@ -72,23 +72,23 @@ int board_early_init_f (void)
         * Setup GPIO pins
         */
 
-       mtdcr(cntrl0, mfdcr(cntrl0) | ((CFG_FPGA_INIT | \
-                                       CFG_FPGA_DONE | \
-                                       CFG_XEREADY | \
-                                       CFG_NONMONARCH | \
-                                       CFG_REV1_2) << 5));
+       mtdcr(cntrl0, mfdcr(cntrl0) | ((CONFIG_SYS_FPGA_INIT | \
+                                       CONFIG_SYS_FPGA_DONE | \
+                                       CONFIG_SYS_XEREADY | \
+                                       CONFIG_SYS_NONMONARCH | \
+                                       CONFIG_SYS_REV1_2) << 5));
 
-       if (!(in32(GPIO0_IR) & CFG_REV1_2)) {
+       if (!(in32(GPIO0_IR) & CONFIG_SYS_REV1_2)) {
                /* rev 1.2 boards */
-               mtdcr(cntrl0, mfdcr(cntrl0) | ((CFG_INTA_FAKE | \
-                                               CFG_SELF_RST) << 5));
+               mtdcr(cntrl0, mfdcr(cntrl0) | ((CONFIG_SYS_INTA_FAKE | \
+                                               CONFIG_SYS_SELF_RST) << 5));
        }
 
        out32(GPIO0_OR, 0);
-       out32(GPIO0_TCR, CFG_FPGA_PRG | CFG_FPGA_CLK | CFG_FPGA_DATA | CFG_XEREADY); /* setup for output */
+       out32(GPIO0_TCR, CONFIG_SYS_FPGA_PRG | CONFIG_SYS_FPGA_CLK | CONFIG_SYS_FPGA_DATA | CONFIG_SYS_XEREADY); /* setup for output */
 
        /* - check if rev1_2 is low, then:
-        * - set/reset CFG_INTA_FAKE/CFG_SELF_RST in TCR to assert INTA# or SELFRST#
+        * - set/reset CONFIG_SYS_INTA_FAKE/CONFIG_SYS_SELF_RST in TCR to assert INTA# or SELFRST#
         */
 
        return 0;
@@ -104,7 +104,7 @@ int misc_init_r (void)
        gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize;
        gd->bd->bi_flashoffset = 0;
 
-       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_XEREADY); /* deassert EREADY# */
+       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_XEREADY); /* deassert EREADY# */
        return (0);
 }
 
@@ -112,13 +112,13 @@ ushort pmc405_pci_subsys_deviceid(void)
 {
        ulong val;
        val = in32(GPIO0_IR);
-       if (!(val & CFG_REV1_2)) { /* low=rev1.2 */
-               if (val & CFG_NONMONARCH) { /* monarch# signal */
-                       return CFG_PCI_SUBSYS_DEVICEID_NONMONARCH;
+       if (!(val & CONFIG_SYS_REV1_2)) { /* low=rev1.2 */
+               if (val & CONFIG_SYS_NONMONARCH) { /* monarch# signal */
+                       return CONFIG_SYS_PCI_SUBSYS_DEVICEID_NONMONARCH;
                }
-               return CFG_PCI_SUBSYS_DEVICEID_MONARCH;
+               return CONFIG_SYS_PCI_SUBSYS_DEVICEID_MONARCH;
        }
-       return CFG_PCI_SUBSYS_DEVICEID_NONMONARCH;
+       return CONFIG_SYS_PCI_SUBSYS_DEVICEID_NONMONARCH;
 }
 
 /*
@@ -140,9 +140,9 @@ int checkboard (void)
        }
 
        val = in32(GPIO0_IR);
-       if (!(val & CFG_REV1_2)) { /* low=rev1.2 */
+       if (!(val & CONFIG_SYS_REV1_2)) { /* low=rev1.2 */
                puts(" rev1.2 (");
-               if (val & CFG_NONMONARCH) { /* monarch# signal */
+               if (val & CONFIG_SYS_NONMONARCH) { /* monarch# signal */
                        puts("non-");
                }
                puts("monarch)");
index 74cf4c3e15be63d2d739082f66191e3e0c1d3455..38ee74eb4bc57c6c5df0f82ce30e8aa9e92191ba 100644 (file)
@@ -323,7 +323,7 @@ int do_setup_bootstrap_eeprom(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]
        }
 
        printf("Writing boot EEPROM ...\n");
-       if (bootstrap_eeprom_write(CFG_I2C_BOOT_EEPROM_ADDR,
+       if (bootstrap_eeprom_write(CONFIG_SYS_I2C_BOOT_EEPROM_ADDR,
                                   0, (uchar*)sdsdp, count) != 0)
                printf("bootstrap_eeprom_write failed\n");
        else
@@ -513,7 +513,7 @@ U_BOOT_CMD(
        "<pciaddr> (pciaddr will be aligned to 256MB)\n"
        );
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 int do_eep_wren(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        int query = argc == 1;
@@ -521,21 +521,21 @@ int do_eep_wren(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (query) {
                /* Query write access state. */
-               state = eeprom_write_enable(CFG_I2C_EEPROM_ADDR, -1);
+               state = eeprom_write_enable(CONFIG_SYS_I2C_EEPROM_ADDR, -1);
                if (state < 0) {
                        puts("Query of write access state failed.\n");
                } else {
                        printf("Write access for device 0x%0x is %sabled.\n",
-                              CFG_I2C_EEPROM_ADDR, state ? "en" : "dis");
+                              CONFIG_SYS_I2C_EEPROM_ADDR, state ? "en" : "dis");
                        state = 0;
                }
        } else {
                if ('0' == argv[1][0]) {
                        /* Disable write access. */
-                       state = eeprom_write_enable(CFG_I2C_EEPROM_ADDR, 0);
+                       state = eeprom_write_enable(CONFIG_SYS_I2C_EEPROM_ADDR, 0);
                } else {
                        /* Enable write access. */
-                       state = eeprom_write_enable(CFG_I2C_EEPROM_ADDR, 1);
+                       state = eeprom_write_enable(CONFIG_SYS_I2C_EEPROM_ADDR, 1);
                }
                if (state < 0) {
                        puts("Setup of write access state failed.\n");
@@ -547,6 +547,6 @@ int do_eep_wren(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 U_BOOT_CMD(eepwren, 2, 0, do_eep_wren,
           "eepwren - Enable / disable / query EEPROM write access\n",
           NULL);
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
 
 #endif /* CONFIG_CMD_BSP */
index e62b8d30e41e09d70481af20dc1c294b02e69c20..0c4d58282e7a422e4325c7c8c4974b8f45fa8412 100644 (file)
@@ -37,5 +37,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 148af71bb533c88d9fad1904fd549b2ebcaee665..26a8282cec021e35cb07731887f613746701de11 100644 (file)
@@ -44,28 +44,28 @@ tlbtab:
         * speed up boot process. It is patched after relocation to enable SA_I
         */
 #ifndef CONFIG_NAND_SPL
-       tlbentry( CFG_BOOT_BASE_ADDR, SZ_256M, CFG_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G )
 #else
-       tlbentry( CFG_NAND_BOOT_SPL_SRC, SZ_4K, CFG_NAND_BOOT_SPL_SRC, 1, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_NAND_BOOT_SPL_SRC, SZ_4K, CONFIG_SYS_NAND_BOOT_SPL_SRC, 1, AC_R|AC_W|AC_X|SA_G )
 #endif
 
        /* TLB-entry for DDR SDRAM (Up to 2GB) */
 #ifdef CONFIG_4xx_DCACHE
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G)
 #else
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
 #endif
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CFG_INIT_RAM_ADDR, SZ_64K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, CFG_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I )
 
        /* TLB-entries for EBC */
        /* PMC440 maps EBC to 0xef000000 which is handled by the peripheral
@@ -76,7 +76,7 @@ tlbtab:
        tlbentry( 0xc0000000, SZ_256M, 0xc0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB-entry for NAND */
-       tlbentry( CFG_NAND_ADDR, SZ_1K, CFG_NAND_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND_ADDR, SZ_1K, CONFIG_SYS_NAND_ADDR, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB-entry for Internal Registers & OCM */
        tlbentry( 0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I )
@@ -98,8 +98,8 @@ tlbtab:
         * For NAND booting the first TLB has to be reconfigured to full size
         * and with caching disabled after running from RAM!
         */
-#define TLB00  TLB0(CFG_BOOT_BASE_ADDR, SZ_256M)
-#define TLB01  TLB1(CFG_BOOT_BASE_ADDR, 1)
+#define TLB00  TLB0(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M)
+#define TLB01  TLB1(CONFIG_SYS_BOOT_BASE_ADDR, 1)
 #define TLB02  TLB2(AC_R|AC_W|AC_X|SA_G|SA_I)
 
        .globl  reconfig_tlb0
index 85ef26f67bed5ba34cfb657c54f452648c027763..013815e2659dc0dbd51cc74a7407f4c32ee0d98e 100644 (file)
@@ -44,7 +44,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 ulong flash_get_size(ulong base, int banknum);
 int pci_is_66mhz(void);
@@ -71,7 +71,7 @@ struct serial_device *default_serial_console(void)
                /* mark scratchreg valid */
                scratchreg = (scratchreg & 0xffffff00) | 0x80;
 
-               i = bootstrap_eeprom_read(CFG_I2C_BOOT_EEPROM_ADDR,
+               i = bootstrap_eeprom_read(CONFIG_SYS_I2C_BOOT_EEPROM_ADDR,
                                          0x10, buf, 4);
                if ((i != -1) && (buf[0] == 0x19) && (buf[1] == 0x75)) {
                        scratchreg |= buf[2];
@@ -103,7 +103,7 @@ int board_early_init_f(void)
 
        /*
         * Setup the GPIO pins
-        * TODO: setup GPIOs via CFG_4xx_GPIO_TABLE in board's config file
+        * TODO: setup GPIOs via CONFIG_SYS_4xx_GPIO_TABLE in board's config file
         */
        out32(GPIO0_OR,    0x40000002);
        out32(GPIO0_TCR,   0x4c90011f);
@@ -190,7 +190,7 @@ int board_early_init_f(void)
                SDR0_CUST0_NDFC_ENABLE          |
                SDR0_CUST0_NDFC_BW_8_BIT        |
                SDR0_CUST0_NDFC_ARE_MASK        |
-               (0x80000000 >> (28 + CFG_NAND_CS));
+               (0x80000000 >> (28 + CONFIG_SYS_NAND_CS));
        mtsdr(SDR0_CUST0, sdr0_cust0);
 
        return 0;
@@ -242,7 +242,7 @@ int misc_init_r(void)
 #ifdef CONFIG_ENV_IS_IN_FLASH
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
@@ -498,7 +498,7 @@ int pci_pre_init(struct pci_controller *hose)
  * inbound map (PIM). But the bootstrap config choices are limited and
  * may not be sufficient for a given board.
  */
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        char *ptmla_str, *ptmms_str;
@@ -516,8 +516,8 @@ void pci_target_init(struct pci_controller *hose)
         */
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute */
                                                /* - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE); /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE); /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xc0000001);       /* 1G + No prefetching, */
                                                /* and enable region */
@@ -563,7 +563,7 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
 
        /* disabled for PMC405 backward compatibility */
        /* Configure command register as bus master */
@@ -581,9 +581,9 @@ void pci_target_init(struct pci_controller *hose)
        if (!is_monarch()) {
                /* Program the board's subsystem id/classcode */
                pci_write_config_word(0, PCI_SUBSYSTEM_ID,
-                                     CFG_PCI_SUBSYS_ID_NONMONARCH);
+                                     CONFIG_SYS_PCI_SUBSYS_ID_NONMONARCH);
                pci_write_config_word(0, PCI_CLASS_SUB_CODE,
-                                     CFG_PCI_CLASSCODE_NONMONARCH);
+                                     CONFIG_SYS_PCI_CLASSCODE_NONMONARCH);
 
                /* PCI configuration done: release ERREADY */
                out_be32((void*)GPIO1_OR,
@@ -593,17 +593,17 @@ void pci_target_init(struct pci_controller *hose)
        } else {
                /* Program the board's subsystem id/classcode */
                pci_write_config_word(0, PCI_SUBSYSTEM_ID,
-                                     CFG_PCI_SUBSYS_ID_MONARCH);
+                                     CONFIG_SYS_PCI_SUBSYS_ID_MONARCH);
                pci_write_config_word(0, PCI_CLASS_SUB_CODE,
-                                     CFG_PCI_CLASSCODE_MONARCH);
+                                     CONFIG_SYS_PCI_CLASSCODE_MONARCH);
        }
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*
  * pci_master_init
  */
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -620,7 +620,7 @@ void pci_master_init(struct pci_controller *hose)
                                      PCI_COMMAND_MEMORY);
        }
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 static void wait_for_pci_ready(void)
 {
@@ -708,7 +708,7 @@ void reset_phy(void)
 }
 #endif
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 /*
  *  Input: <dev_addr> I2C address of EEPROM device to enable.
  *         <state>    -1: deliver current state
@@ -720,8 +720,8 @@ void reset_phy(void)
  */
 int eeprom_write_enable(unsigned dev_addr, int state)
 {
-       if ((CFG_I2C_EEPROM_ADDR != dev_addr) &&
-           (CFG_I2C_BOOT_EEPROM_ADDR != dev_addr)) {
+       if ((CONFIG_SYS_I2C_EEPROM_ADDR != dev_addr) &&
+           (CONFIG_SYS_I2C_BOOT_EEPROM_ADDR != dev_addr)) {
                return -1;
        } else {
                switch (state) {
@@ -743,9 +743,9 @@ int eeprom_write_enable(unsigned dev_addr, int state)
        }
        return state;
 }
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
 
-#define CFG_BOOT_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_BOOT_EEPROM_PAGE_WRITE_BITS 3
 int bootstrap_eeprom_write(unsigned dev_addr, unsigned offset,
                           uchar *buffer, unsigned cnt)
 {
@@ -753,7 +753,7 @@ int bootstrap_eeprom_write(unsigned dev_addr, unsigned offset,
        unsigned blk_off;
        int rcode = 0;
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
        eeprom_write_enable(dev_addr, 1);
 #endif
        /*
@@ -776,7 +776,7 @@ int bootstrap_eeprom_write(unsigned dev_addr, unsigned offset,
 
                len = end - offset;
 
-#define        BOOT_EEPROM_PAGE_SIZE      (1 << CFG_BOOT_EEPROM_PAGE_WRITE_BITS)
+#define        BOOT_EEPROM_PAGE_SIZE      (1 << CONFIG_SYS_BOOT_EEPROM_PAGE_WRITE_BITS)
 #define        BOOT_EEPROM_PAGE_OFFSET(x) ((x) & (BOOT_EEPROM_PAGE_SIZE - 1))
 
                maxlen = BOOT_EEPROM_PAGE_SIZE -
@@ -793,11 +793,11 @@ int bootstrap_eeprom_write(unsigned dev_addr, unsigned offset,
                buffer += len;
                offset += len;
 
-#if defined(CFG_EEPROM_PAGE_WRITE_DELAY_MS)
-               udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+#if defined(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS)
+               udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 #endif
        }
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
        eeprom_write_enable(dev_addr, 0);
 #endif
        return rcode;
@@ -845,7 +845,7 @@ int bootstrap_eeprom_read (unsigned dev_addr, unsigned offset,
        return rcode;
 }
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_BOARD_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_BOARD_INIT)
 int usb_board_init(void)
 {
        char *act = getenv("usbact");
@@ -875,4 +875,4 @@ int usb_board_init_fail(void)
        usb_board_stop();
        return 0;
 }
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_BOARD_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_BOARD_INIT) */
index 7e70fd1cb704cad77367a5e8acd9d40427109829..d834f258571ccccd7a8500bb61605a925a675b68 100644 (file)
@@ -54,7 +54,7 @@
 /*-----------------------------------------------------------------------
  * FPGA interface
  */
-#define FPGA_BA CFG_FPGA_BASE0
+#define FPGA_BA CONFIG_SYS_FPGA_BASE0
 #define FPGA_OUT32(p,v) out_be32(((void*)(p)), (v))
 #define FPGA_IN32(p) in_be32((void*)(p))
 #define FPGA_SETBITS(p,v) out_be32(((void*)(p)), in_be32((void*)(p)) | (v))
@@ -134,7 +134,7 @@ typedef struct pmc440_fpga_s pmc440_fpga_t;
 #define HOSTCTRL_HCINT_GATE  (1 <<  1)
 #define HOSTCTRL_HCINT_FLAG  (1 <<  0)
 
-#define NGCC_CTRL_BASE         (CFG_FPGA_BASE0 + 0x80000)
+#define NGCC_CTRL_BASE         (CONFIG_SYS_FPGA_BASE0 + 0x80000)
 #define NGCC_CTRL_FPGARST_N    (1 <<  2)
 
 /*-----------------------------------------------------------------------
index c7294c994598649797ab04fe2644a35f006bf50e..197857ad097381dfe125e09a2ed3c340b3f7e0e0 100644 (file)
@@ -111,5 +111,5 @@ phys_size_t initdram (int board_type)
         */
        set_mcsr(get_mcsr());
 
-       return (CFG_MBYTES_SDRAM << 20);
+       return (CONFIG_SYS_MBYTES_SDRAM << 20);
 }
index b20fb1c0a282c5499f6a8d580991a6acb7a943f6..3cfec834e2dbcd31261163b96a69446f325a435d 100644 (file)
@@ -137,7 +137,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index 13c07d2d33fb52437eb4aeda61b161a838371f4b..ce905e94c0e880789a4e2e76fa76b1eba42dbf64 100644 (file)
@@ -45,13 +45,13 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here - FIXME XXX */
 
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
@@ -65,8 +65,8 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           CFG_FLASH_BASE,
-                           CFG_FLASH_BASE+CFG_MONITOR_LEN-1,
+                           CONFIG_SYS_FLASH_BASE,
+                           CONFIG_SYS_FLASH_BASE+CONFIG_SYS_MONITOR_LEN-1,
                            &flash_info[0]);
 
        flash_info[0].size = size_b0;
index fabb7464fde55e379094d8b8ce21a0d46328947b..64e6d632962fce07d07a382d123b8914c8c972da 100644 (file)
@@ -40,8 +40,8 @@ int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len);
 
 /* predefine these here for FPGA programming (before including fpga.c) */
 #define SET_FPGA(data)  mbar2_writeLong(MCFSIM_GPIO1_OUT, data)
-#define FPGA_DONE_STATE (mbar2_readLong(MCFSIM_GPIO1_READ) & CFG_FPGA_DONE)
-#define FPGA_INIT_STATE (mbar2_readLong(MCFSIM_GPIO1_READ) & CFG_FPGA_INIT)
+#define FPGA_DONE_STATE (mbar2_readLong(MCFSIM_GPIO1_READ) & CONFIG_SYS_FPGA_DONE)
+#define FPGA_INIT_STATE (mbar2_readLong(MCFSIM_GPIO1_READ) & CONFIG_SYS_FPGA_INIT)
 #define FPGA_PROG_ACTIVE_HIGH          /* on this platform is PROG active high!   */
 #define out32(a,b)                     /* nothing to do (gpio already configured) */
 
@@ -70,7 +70,7 @@ int checkboard (void) {
        /*
         * Set LED on
         */
-       val = mbar2_readLong(MCFSIM_GPIO1_OUT) & ~CFG_GPIO1_LED;
+       val = mbar2_readLong(MCFSIM_GPIO1_OUT) & ~CONFIG_SYS_GPIO1_LED;
        mbar2_writeLong(MCFSIM_GPIO1_OUT, val);   /* Set LED on */
 
        return 0;
@@ -85,13 +85,13 @@ phys_size_t initdram (int board_type) {
         *      RC = ([(RefreshTime/#rows) / (1/BusClk)] / 16) - 1
         */
 
-#ifdef CFG_FAST_CLK
+#ifdef CONFIG_SYS_FAST_CLK
        /*
         * Busclk=70MHz, RefreshTime=64ms, #rows=4096 (4K)
         * SO=1, NAM=0, COC=0, RTIM=01 (6clk refresh), RC=39
         */
        mbar_writeShort(MCFSIM_DCR, 0x8239);
-#elif CFG_PLL_BYPASS
+#elif CONFIG_SYS_PLL_BYPASS
        /*
         * Busclk=5.6448MHz, RefreshTime=64ms, #rows=8192 (8K)
         * SO=1, NAM=0, COC=0, RTIM=01 (6clk refresh), RC=02
@@ -129,7 +129,7 @@ phys_size_t initdram (int board_type) {
        mbar_writeLong(MCFSIM_DACR0, 0x0000b364);  /* Enable DACR0[IMRS] (bit 6); RE remains enabled */
        *((volatile unsigned long *) 0x800) = junk; /* Access RAM to initialize the mode register */
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 };
 
 
@@ -150,8 +150,8 @@ int misc_init_r (void)
        int i;
        uchar buf[8];
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 115f8b4abff61b354ac75e54525395704d68b64b..ec65ffd434677250f7ff8013b5cf05fd37998823 100644 (file)
@@ -109,9 +109,9 @@ int misc_init_r (void)
        unsigned char *duart0_mcr = (unsigned char *)((ulong)DUART0_BA + 4);
        unsigned char *duart1_mcr = (unsigned char *)((ulong)DUART1_BA + 4);
        unsigned short *lcd_contrast =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL + 4);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL + 4);
        unsigned short *lcd_backlight =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL + 6);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL + 6);
        unsigned char *dst;
        ulong len = sizeof(fpgadata);
        int status;
@@ -119,8 +119,8 @@ int misc_init_r (void)
        int i;
        char *str;
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
@@ -183,22 +183,22 @@ int misc_init_r (void)
        /*
         * Reset external DUARTs
         */
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_DUART_RST); /* set reset to high */
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_DUART_RST); /* set reset to high */
        udelay(10); /* wait 10us */
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~CFG_DUART_RST); /* set reset to low */
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_DUART_RST); /* set reset to low */
        udelay(1000); /* wait 1ms */
 
        /*
         * Set NAND-FLASH GPIO signals to default
         */
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~(CFG_NAND_CLE | CFG_NAND_ALE));
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_NAND_CE);
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~(CONFIG_SYS_NAND_CLE | CONFIG_SYS_NAND_ALE));
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_NAND_CE);
 
        /*
         * Setup EEPROM write protection
         */
-       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_EEPROM_WP);
-       out_be32((void*)GPIO0_TCR, in_be32((void*)GPIO0_TCR) | CFG_EEPROM_WP);
+       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
+       out_be32((void*)GPIO0_TCR, in_be32((void*)GPIO0_TCR) | CONFIG_SYS_EEPROM_WP);
 
        /*
         * Enable interrupts in exar duart mcr[3]
@@ -212,29 +212,29 @@ int misc_init_r (void)
        str = getenv("bd_type");
        if (strcmp(str, "voh405_bw") == 0) {
                lcd_setup(0, 1);
-               lcd_init((uchar *)CFG_LCD_SMALL_REG, (uchar *)CFG_LCD_SMALL_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_SMALL_REG, (uchar *)CONFIG_SYS_LCD_SMALL_MEM,
                         regs_13704_320_240_4bpp,
                         sizeof(regs_13704_320_240_4bpp)/sizeof(regs_13704_320_240_4bpp[0]),
                         logo_bmp_320, sizeof(logo_bmp_320));
        } else if (strcmp(str, "voh405_bwbw") == 0) {
                lcd_setup(0, 1);
-               lcd_init((uchar *)CFG_LCD_SMALL_REG, (uchar *)CFG_LCD_SMALL_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_SMALL_REG, (uchar *)CONFIG_SYS_LCD_SMALL_MEM,
                         regs_13704_320_240_4bpp,
                         sizeof(regs_13704_320_240_4bpp)/sizeof(regs_13704_320_240_4bpp[0]),
                         logo_bmp_320, sizeof(logo_bmp_320));
                lcd_setup(1, 1);
-               lcd_init((uchar *)CFG_LCD_BIG_REG, (uchar *)CFG_LCD_BIG_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG, (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                         regs_13806_320_240_4bpp,
                         sizeof(regs_13806_320_240_4bpp)/sizeof(regs_13806_320_240_4bpp[0]),
                         logo_bmp_320, sizeof(logo_bmp_320));
        } else if (strcmp(str, "voh405_bwc") == 0) {
                lcd_setup(0, 1);
-               lcd_init((uchar *)CFG_LCD_SMALL_REG, (uchar *)CFG_LCD_SMALL_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_SMALL_REG, (uchar *)CONFIG_SYS_LCD_SMALL_MEM,
                         regs_13704_320_240_4bpp,
                         sizeof(regs_13704_320_240_4bpp)/sizeof(regs_13704_320_240_4bpp[0]),
                         logo_bmp_320, sizeof(logo_bmp_320));
                lcd_setup(1, 0);
-               lcd_init((uchar *)CFG_LCD_BIG_REG, (uchar *)CFG_LCD_BIG_MEM,
+               lcd_init((uchar *)CONFIG_SYS_LCD_BIG_REG, (uchar *)CONFIG_SYS_LCD_BIG_MEM,
                         regs_13806_640_480_16bpp,
                         sizeof(regs_13806_640_480_16bpp)/sizeof(regs_13806_640_480_16bpp[0]),
                         logo_bmp_640, sizeof(logo_bmp_640));
@@ -246,8 +246,8 @@ int misc_init_r (void)
        /*
         * Set invert bit in small lcd controller
         */
-       out_8((unsigned char *)(CFG_LCD_SMALL_REG + 2),
-             in_8((unsigned char *)(CFG_LCD_SMALL_REG + 2)) | 0x01);
+       out_8((unsigned char *)(CONFIG_SYS_LCD_SMALL_REG + 2),
+             in_8((unsigned char *)(CONFIG_SYS_LCD_SMALL_REG + 2)) | 0x01);
 
        /*
         * Set default contrast voltage on epson vga controller
@@ -262,7 +262,7 @@ int misc_init_r (void)
        /*
         * Enable external I2C bus
         */
-       out_be32((void*)GPIO0_TCR, in_be32((void*)GPIO0_TCR) | CFG_IIC_ON);
+       out_be32((void*)GPIO0_TCR, in_be32((void*)GPIO0_TCR) | CONFIG_SYS_IIC_ON);
 
        return (0);
 }
@@ -300,15 +300,15 @@ int checkboard (void)
 void ide_set_reset(int on)
 {
        volatile unsigned short *fpga_mode =
-               (unsigned short *)((ulong)CFG_FPGA_BASE_ADDR + CFG_FPGA_CTRL);
+               (unsigned short *)((ulong)CONFIG_SYS_FPGA_BASE_ADDR + CONFIG_SYS_FPGA_CTRL);
 
        /*
         * Assert or deassert CompactFlash Reset Pin
         */
        if (on) {               /* assert RESET */
-               *fpga_mode &= ~(CFG_FPGA_CTRL_CF_RESET);
+               *fpga_mode &= ~(CONFIG_SYS_FPGA_CTRL_CF_RESET);
        } else {                /* release RESET */
-               *fpga_mode |= CFG_FPGA_CTRL_CF_RESET;
+               *fpga_mode |= CONFIG_SYS_FPGA_CTRL_CF_RESET;
        }
 }
 #endif /* CONFIG_IDE_RESET */
@@ -326,7 +326,7 @@ void reset_phy(void)
 }
 #endif
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 /* Input: <dev_addr>  I2C address of EEPROM device to enable.
  *         <state>     -1: deliver current state
  *                    0: disable write
@@ -337,23 +337,23 @@ void reset_phy(void)
  */
 int eeprom_write_enable (unsigned dev_addr, int state)
 {
-       if (CFG_I2C_EEPROM_ADDR != dev_addr) {
+       if (CONFIG_SYS_I2C_EEPROM_ADDR != dev_addr) {
                return -1;
        } else {
                switch (state) {
                case 1:
                        /* Enable write access, clear bit GPIO0. */
-                       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~CFG_EEPROM_WP);
+                       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) & ~CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                case 0:
                        /* Disable write access, set bit GPIO0. */
-                       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CFG_EEPROM_WP);
+                       out_be32((void*)GPIO0_OR, in_be32((void*)GPIO0_OR) | CONFIG_SYS_EEPROM_WP);
                        state = 0;
                        break;
                default:
                        /* Read current status back. */
-                       state = (0 == (in_be32((void*)GPIO0_OR) & CFG_EEPROM_WP));
+                       state = (0 == (in_be32((void*)GPIO0_OR) & CONFIG_SYS_EEPROM_WP));
                        break;
                }
        }
@@ -367,21 +367,21 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (query) {
                /* Query write access state. */
-               state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, -1);
+               state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, -1);
                if (state < 0) {
                        puts ("Query of write access state failed.\n");
                } else {
                        printf ("Write access for device 0x%0x is %sabled.\n",
-                               CFG_I2C_EEPROM_ADDR, state ? "en" : "dis");
+                               CONFIG_SYS_I2C_EEPROM_ADDR, state ? "en" : "dis");
                        state = 0;
                }
        } else {
                if ('0' == argv[1][0]) {
                        /* Disable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 0);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 0);
                } else {
                        /* Enable write access. */
-                       state = eeprom_write_enable (CFG_I2C_EEPROM_ADDR, 1);
+                       state = eeprom_write_enable (CONFIG_SYS_I2C_EEPROM_ADDR, 1);
                }
                if (state < 0) {
                        puts ("Setup of write access state failed.\n");
@@ -394,4 +394,4 @@ int do_eep_wren (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 U_BOOT_CMD(eepwren,    2,      0,      do_eep_wren,
           "eepwren - Enable / disable / query EEPROM write access\n",
           NULL);
-#endif /* #if defined(CFG_EEPROM_WREN) */
+#endif /* #if defined(CONFIG_SYS_EEPROM_WREN) */
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 89af1190a8a5098ca139fc23d16122a9eba2c3de..274ada9fe5c235de15a9b4ec073572a5893f32f7 100644 (file)
@@ -48,7 +48,7 @@ unsigned long flash_init (void)
        int size_val = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,7 +91,7 @@ unsigned long flash_init (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
index 3a94fd86b27c296cfd1d1665492b516453c367cf..5eca3bd380dff1f5d5cbcdf156b85a167ad937c8 100644 (file)
@@ -92,8 +92,8 @@ int misc_init_r (void)
        int index;
        int i;
 
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip (dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip (dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf ("GUNZIP ERROR - must RESET board to recover\n");
                do_reset (NULL, 0, 0, NULL);
        }
@@ -155,9 +155,9 @@ int misc_init_r (void)
        /*
         * Reset external DUARTs
         */
-       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_DUART_RST); /* set reset to high */
+       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_DUART_RST); /* set reset to high */
        udelay(10); /* wait 10us */
-       out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_DUART_RST); /* set reset to low */
+       out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_DUART_RST); /* set reset to low */
        udelay(1000); /* wait 1ms */
 
        /*
index f3c8662cdba42b37693ffb90640ff5d6cad970dd..b784cbb5b75b9c8f1f75bf0082d45fa85d634ac6 100644 (file)
@@ -103,7 +103,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0, size_b1;
 
@@ -113,7 +113,7 @@ phys_size_t initdram (int board_type)
 
        memctl->memc_mptpr = 0x0200;    /* divide by 32 */
 
-       memctl->memc_mamr = 0x18003112; /*CFG_MAMR_8COL; */ /* 0x18005112 TODO: explain here */
+       memctl->memc_mamr = 0x18003112; /*CONFIG_SYS_MAMR_8COL; */ /* 0x18005112 TODO: explain here */
 
        upmconfig (UPMA, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
@@ -124,11 +124,11 @@ phys_size_t initdram (int board_type)
         * SDRAM size has been determined.
         */
 
-       memctl->memc_or2 = CFG_OR2_PRELIM;      /* not defined yet */
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;       /* not defined yet */
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
 
        /* perform SDRAM initializsation sequence */
@@ -139,7 +139,7 @@ phys_size_t initdram (int board_type)
        memctl->memc_mcr = 0x80006830;  /* SDRAM bank 1 execute 8 refresh */
        memctl->memc_mcr = 0x80006105;  /* SDRAM bank 1 */
 
-       memctl->memc_mamr = CFG_MAMR_8COL;      /* 0x18803112  start refresh timer TODO: explain here */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;       /* 0x18803112  start refresh timer TODO: explain here */
 
 /* printf ("banks 0 and 1 are programed\n"); */
 
index d5eb2019b603eb00d1df892179b80c3c803b3f03..cce73fa7be6f65df31553c2af7159b88ca725cc5 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 #ifdef CONFIG_FLASH_16BIT
 #define FLASH_WORD_SIZE        unsigned short
@@ -54,13 +54,13 @@ static void flash_get_offsets (ulong base, flash_info_t * info);
  */
 unsigned long flash_init (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -91,44 +91,44 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = CFG_FLASH_BASE | 0x00000801; /*  (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V; */
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = CONFIG_SYS_FLASH_BASE | 0x00000801;  /*  (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V; */
 
        /* Re-do sizing to get full correct info */
 
-       size_b0 = flash_get_size ((volatile FLASH_WORD_SIZE *) CFG_FLASH_BASE,
+       size_b0 = flash_get_size ((volatile FLASH_WORD_SIZE *) CONFIG_SYS_FLASH_BASE,
                                  &flash_info[0]);
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        (void) flash_protect (FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE + monitor_flash_len - 1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                              &flash_info[0]);
 #endif
 
        if (size_b1) {
                memctl->memc_or1 =
-                       CFG_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
+                       CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
                memctl->memc_br1 =
-                       (CFG_FLASH_BASE | 0x00000801) + (size_b0 & BR_BA_MSK);
-               /*((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+                       (CONFIG_SYS_FLASH_BASE | 0x00000801) + (size_b0 & BR_BA_MSK);
+               /*((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                   BR_MS_GPCM | BR_V; */
 
                /* Re-do sizing to get full correct info */
                size_b1 =
                        flash_get_size ((volatile FLASH_WORD_SIZE
-                                        *) (CFG_FLASH_BASE + size_b0),
+                                        *) (CONFIG_SYS_FLASH_BASE + size_b0),
                                        &flash_info[1]);
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                (void) flash_protect (FLAG_PROTECT_SET,
-                                     CFG_MONITOR_BASE,
-                                     CFG_MONITOR_BASE + monitor_flash_len -
+                                     CONFIG_SYS_MONITOR_BASE,
+                                     CONFIG_SYS_MONITOR_BASE + monitor_flash_len -
                                      1, &flash_info[1]);
 #endif
        } else {
@@ -769,7 +769,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                addr = (volatile FLASH_WORD_SIZE *) (info->start[l_sect]);
                while ((addr[0] & (0x00800080 & FLASH_ID_MASK)) !=
                       (0x00800080 & FLASH_ID_MASK)) {
-                       if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                return 1;
                        }
@@ -1022,7 +1022,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
 
                while ((*((vu_long *) dest) & 0x00800080) !=
                       (data & 0x00800080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -1030,7 +1030,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
        } else {
 
                while (!(addr[0] & 0x00800080)) {       /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
 
@@ -1096,7 +1096,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
        if (info->flash_id < FLASH_AMD_COMP) {
                /* AMD stuff */
                while ((*((vu_short *) dest) & 0x0080) != (data & 0x0080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -1104,7 +1104,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
        } else {
                /* intel stuff */
                while (!(addr[0] & 0x0080)) {   /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
 
@@ -1123,7 +1123,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
                *addr = 0x00B0;
                *addr = 0x0070;
                while (!(addr[0] & 0x0080)) {   /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
                *addr = 0x00FF;
index a5d394c8f6e4755f9a167aa094a4c1fdb0aa4c7c..227c49a14dfed02da344bf066bf2e5c77b549559 100644 (file)
@@ -63,7 +63,7 @@ phys_size_t initdram (int board_type)
        uint32_t mear2 = 0, emear2 = 0, msar2 = 0, emsar2 = 0;
        uint8_t mber = 0;
 
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        if (i2c_reg_read (0x50, 2) != 0x04) return 0;   /* Memory type */
        m = i2c_reg_read (0x50, 5);     /* # of physical banks */
@@ -74,7 +74,7 @@ phys_size_t initdram (int board_type)
        CONFIG_READ_WORD(MCCR1, mccr1);
        mccr1 &= 0xffff0000;
 
-       start = CFG_SDRAM_BASE;
+       start = CONFIG_SYS_SDRAM_BASE;
        end = start + (1 << (col + row + 3) ) * bank - 1;
 
        for (i = 0; i < m; i++) {
@@ -174,7 +174,7 @@ void nvram_write(long dest, const void *src, size_t count)
 int misc_init_r(void)
 {
        /* Write ethernet addr in NVRAM for VxWorks */
-       nvram_write(CONFIG_ENV_ADDR + CFG_NVRAM_VXWORKS_OFFS,
+       nvram_write(CONFIG_ENV_ADDR + CONFIG_SYS_NVRAM_VXWORKS_OFFS,
                        (char*)&gd->bd->bi_enetaddr[0], 6);
        return 0;
 }
index a4100e57b6673122bbe78d0e97755b4aad4a514b..a3c8138841c2aa4098a62203d2dcccc381ac14e5 100644 (file)
@@ -71,7 +71,7 @@ static uint16_t cfi_read_query(flash_info_t *flash, uint32_t addr)
        return (uint16_t)read32(base + addr);
 }
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 static void move64(uint64_t *src, uint64_t *dest)
 {
@@ -99,7 +99,7 @@ static int cfi_write_dword(flash_info_t *flash, ulong dest, cfi_word data)
                status &= CMD(0x80);
                if(status == CMD(0x80))
                        break;
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        cfi_cmd(flash, 0xff, 0);
                        return 1;
                }
@@ -128,7 +128,7 @@ static int jedec_write_dword (flash_info_t *flash, ulong dest, cfi_word data)
        start = get_timer (0);
        status = ~data;
        while(status != data) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                        return 1;
                status = cfi_read(flash, dest);
                udelay(1);
@@ -230,7 +230,7 @@ static int cfi_erase_oneblock(flash_info_t *flash, uint32_t sect)
                status &= CMD(0x80);
                if (status == CMD(0x80))
                        break;
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        cfi_cmd(flash, 0xff, 0);
                        printf ("Timeout\n");
                        return ERR_TIMOUT;
@@ -296,7 +296,7 @@ static int jedec_erase(flash_info_t *flash, uint32_t s_first, uint32_t s_last)
                if (status == CMD(0xffff))
                        break;
 
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return ERR_TIMOUT;
                }
@@ -581,7 +581,7 @@ unsigned long flash_init (void)
        mtdbat1u(0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP);
        set_msr(msr);
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
                flash_info[i].flash_id = FLASH_UNKNOWN;
        size = cfi_init(FLASH_BASE0_PRELIM, &flash_info[0]);
        if (!size)
index 48b81f71e7765fcdb31df92daa1c70813a289466..fcb4c40eaae9444b1c445f1bf10a4ae919dc694e 100644 (file)
@@ -20,7 +20,7 @@
 
 #if defined(CONFIG_CMD_DATE)
 
-#define RTC_BASE (CFG_NVRAM_BASE_ADDR + 0x7fff8)
+#define RTC_BASE (CONFIG_SYS_NVRAM_BASE_ADDR + 0x7fff8)
 
 #define RTC_YEAR                ( RTC_BASE + 7 )
 #define RTC_MONTH               ( RTC_BASE + 6 )
index be6924d15a479828625fd5539b4791f1f74c9cd7..8c6afc9ca70c156dd1750108b5a75668b5104376 100644 (file)
@@ -46,7 +46,7 @@ unsigned long setdram(int m, int row, int col, int bank)
        CONFIG_READ_WORD(MCCR1, mccr1);
        mccr1 &= 0xffff0000;
 
-       start = CFG_SDRAM_BASE;
+       start = CONFIG_SYS_SDRAM_BASE;
        end = start + (1 << (col + row + 3) ) * bank - 1;
 
        for (i = 0; i < m; i++) {
@@ -101,31 +101,31 @@ phys_size_t initdram(int board_type)
 
        msr = mfmsr();
        mtmsr(msr & ~(MSR_IR | MSR_DR));
-       mtspr(IBAT2L, CFG_IBAT0L + 0x10000000);
-       mtspr(IBAT2U, CFG_IBAT0U + 0x10000000);
-       mtspr(DBAT2L, CFG_DBAT0L + 0x10000000);
-       mtspr(DBAT2U, CFG_DBAT0U + 0x10000000);
+       mtspr(IBAT2L, CONFIG_SYS_IBAT0L + 0x10000000);
+       mtspr(IBAT2U, CONFIG_SYS_IBAT0U + 0x10000000);
+       mtspr(DBAT2L, CONFIG_SYS_DBAT0L + 0x10000000);
+       mtspr(DBAT2U, CONFIG_SYS_DBAT0U + 0x10000000);
        mtmsr(msr);
 
-       if (setdram(2,13,10,4) == get_ram_size(CFG_SDRAM_BASE, 0x20000000))
+       if (setdram(2,13,10,4) == get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x20000000))
                size = 0x20000000;      /* 512MB */
-       else if (setdram(1,13,10,4) == get_ram_size(CFG_SDRAM_BASE, 0x10000000))
+       else if (setdram(1,13,10,4) == get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x10000000))
                size = 0x10000000;      /* 256MB */
-       else if (setdram(2,13,9,4) == get_ram_size(CFG_SDRAM_BASE, 0x10000000))
+       else if (setdram(2,13,9,4) == get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x10000000))
                size = 0x10000000;      /* 256MB */
-       else if (setdram(1,13,9,4) == get_ram_size(CFG_SDRAM_BASE, 0x08000000))
+       else if (setdram(1,13,9,4) == get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x08000000))
                size = 0x08000000;      /* 128MB */
-       else if (setdram(2,12,9,4) == get_ram_size(CFG_SDRAM_BASE, 0x08000000))
+       else if (setdram(2,12,9,4) == get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x08000000))
                size = 0x08000000;      /* 128MB */
-       else if (setdram(1,12,9,4) == get_ram_size(CFG_SDRAM_BASE, 0x04000000))
+       else if (setdram(1,12,9,4) == get_ram_size(CONFIG_SYS_SDRAM_BASE, 0x04000000))
                size = 0x04000000;      /* 64MB */
 
        msr = mfmsr();
        mtmsr(msr & ~(MSR_IR | MSR_DR));
-       mtspr(IBAT2L, CFG_IBAT2L);
-       mtspr(IBAT2U, CFG_IBAT2U);
-       mtspr(DBAT2L, CFG_DBAT2L);
-       mtspr(DBAT2U, CFG_DBAT2U);
+       mtspr(IBAT2L, CONFIG_SYS_IBAT2L);
+       mtspr(IBAT2U, CONFIG_SYS_IBAT2U);
+       mtspr(DBAT2L, CONFIG_SYS_DBAT2L);
+       mtspr(DBAT2U, CONFIG_SYS_DBAT2U);
        mtmsr(msr);
 
        return size;
index 7806519e305b0a4feca9fe4f8c166d2853e4f946..d6f638af65c4103d5824605ce5c66f96f05aff20 100644 (file)
@@ -127,7 +127,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0, size_b1, size8, size9;
 
@@ -140,7 +140,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_1BK_4K;  /* MPTPR_PTP_DIV32 0x0200 */
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_4K;   /* MPTPR_PTP_DIV32 0x0200 */
 
        /* A3(SDRAM)=0      => Bursttype = Sequential
         * A2-A0(SDRAM)=010 => Burst length = 4
@@ -153,15 +153,15 @@ phys_size_t initdram (int board_type)
         * preliminary addresses - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
        if (board_type == 0) {  /* "L" type boards have only one bank SDRAM */
-               memctl->memc_or3 = CFG_OR3_PRELIM;
-               memctl->memc_br3 = CFG_BR3_PRELIM;
+               memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+               memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
        }
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -186,7 +186,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, (long *) SDRAM_BASE2_PRELIM,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, (long *) SDRAM_BASE2_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        udelay (1000);
@@ -194,7 +194,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (long *) SDRAM_BASE2_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *) SDRAM_BASE2_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        if (size8 < size9) {            /* leave configuration at 9 columns */
@@ -202,7 +202,7 @@ phys_size_t initdram (int board_type)
 /*     debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                                        /* back to 8 columns            */
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*     debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -230,7 +230,7 @@ phys_size_t initdram (int board_type)
         */
        if ((size_b0 < 0x02000000) && (size_b1 < 0x02000000)) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;  /*DIV16 */
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;   /*DIV16 */
                udelay (1000);
        }
 
@@ -239,18 +239,18 @@ phys_size_t initdram (int board_type)
         */
        if (size_b1 > size_b0) {        /* SDRAM Bank 1 is bigger - map first   */
 
-               memctl->memc_or3 = ((-size_b1) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+               memctl->memc_or3 = ((-size_b1) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                memctl->memc_br3 =
-                       (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+                       (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
                if (size_b0 > 0) {
                        /*
                         * Position Bank 0 immediately above Bank 1
                         */
                        memctl->memc_or2 =
-                               ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+                               ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                        memctl->memc_br2 =
-                               ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
+                               ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
                                + size_b1;
                } else {
                        unsigned long reg;
@@ -264,24 +264,24 @@ phys_size_t initdram (int board_type)
 
                        /* adjust refresh rate depending on SDRAM type, one bank */
                        reg = memctl->memc_mptpr;
-                       reg >>= 1;      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+                       reg >>= 1;      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
                        memctl->memc_mptpr = reg;
                }
 
        } else {                        /* SDRAM Bank 0 is bigger - map first   */
 
-               memctl->memc_or2 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+               memctl->memc_or2 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                memctl->memc_br2 =
-                               (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+                               (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
                if (size_b1 > 0) {
                        /*
                         * Position Bank 1 immediately above Bank 0
                         */
                        memctl->memc_or3 =
-                                       ((-size_b1) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+                                       ((-size_b1) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                        memctl->memc_br3 =
-                                       ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
+                                       ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
                                        + size_b0;
                } else {
                        unsigned long reg;
@@ -295,7 +295,7 @@ phys_size_t initdram (int board_type)
 
                        /* adjust refresh rate depending on SDRAM type, one bank */
                        reg = memctl->memc_mptpr;
-                       reg >>= 1;      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+                       reg >>= 1;      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
                        memctl->memc_mptpr = reg;
                }
        }
@@ -318,7 +318,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                                                   long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -343,7 +343,7 @@ void read_hw_vers ()
        unsigned short rd_msk = 0x02A0;
 
        /* HW-ID pin-definition */
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        immr->im_ioport.iop_pddir &= ~(rd_msk);
        immr->im_ioport.iop_pdpar &= ~(rd_msk);
index 98a7c0c8d7715a7aaa15810cd31d4b47bc809f25..fa51c90378bd00f4b25db525d1bd8a4f458d22ed 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,13 +38,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -75,47 +75,47 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
 #ifdef CONFIG_FLASH_16BIT
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V | BR_PS_16; /* 16 Bit data port */
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V | BR_PS_16; /* 16 Bit data port */
 #else
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 #endif
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
        if (size_b1) {
-               memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
+               memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
 #ifdef CONFIG_FLASH_16BIT
-               memctl->memc_br1 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_br1 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                    BR_MS_GPCM | BR_V | BR_PS_16;
 #else
-               memctl->memc_br1 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_br1 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                    BR_MS_GPCM | BR_V;
 #endif
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                          &flash_info[1]);
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
        } else {
@@ -388,10 +388,10 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
@@ -548,7 +548,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 #else
                        while ((sect_addr[0] & 0x00800080) != 0x00800080) {
 #endif
-                               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        return 1;
                                }
@@ -693,7 +693,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_short *)dest) & 0x0080) != (high_data & 0x0080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
@@ -733,7 +733,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
 #endif
 
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index bcefafcd933bbab9de9ede85c23c45f02e8b5210..c9c6e024c41c75da1b59dda71b04b8a519ffc535 100644 (file)
@@ -26,7 +26,7 @@
 #include <asm/hardware.h>
 #include <flash.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 typedef enum {
        FLASH_DEV_U9_512KB = 0,
@@ -327,7 +327,7 @@ unsigned long flash_init (void)
        s16 amd160 = -1;
        u32 amd160base = 0;
 
-#if CFG_MAX_FLASH_BANKS == 2
+#if CONFIG_SYS_MAX_FLASH_BANKS == 2
        s16 amd040 = -1;
        u32 amd040base = 0;
 #endif
@@ -336,7 +336,7 @@ unsigned long flash_init (void)
        if (_detectFlash (FLASH_DEV_U7_2MB, PHYS_FLASH_1, 0x1, 0x49)) {
                amd160 = 0;
                amd160base = PHYS_FLASH_1;
-#if CFG_MAX_FLASH_BANKS == 1
+#if CONFIG_SYS_MAX_FLASH_BANKS == 1
        }
 #else
                if (_detectFlash
@@ -401,7 +401,7 @@ unsigned long flash_init (void)
        flash_protect (FLAG_PROTECT_SET,
                       CONFIG_ENV_ADDR, CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, info);
 
-#if CFG_MAX_FLASH_BANKS == 2
+#if CONFIG_SYS_MAX_FLASH_BANKS == 2
        /* Configure AMD Am29LV040B (512KB) */
        info = &flash_info[amd040];
        info->flash_id = FLASH_DEV_U9_512KB;
@@ -421,7 +421,7 @@ unsigned long flash_init (void)
 #endif
 
        return flash_info[0].size
-#if CFG_MAX_FLASH_BANKS == 2
+#if CONFIG_SYS_MAX_FLASH_BANKS == 2
                + flash_info[1].size
 #endif
                ;
@@ -478,7 +478,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        error = _flash_poll (info->flash_id,
                                             info->
                                             start[i] | CACHE_DISABLE_MASK,
-                                            0xFF, CFG_FLASH_ERASE_TOUT);
+                                            0xFF, CONFIG_SYS_FLASH_ERASE_TOUT);
                        FLASH_CMD_RESET (info->flash_id,
                                         (info->
                                          start[0] | CACHE_DISABLE_MASK));
@@ -524,7 +524,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                /*  Check if the write is done */
                for (i = 0; i < 0xff; i++);
                error = _flash_poll (info->flash_id, (u32) bp, *bps,
-                                    CFG_FLASH_WRITE_TOUT);
+                                    CONFIG_SYS_FLASH_WRITE_TOUT);
                if (error) {
                        return error;
                }
index bc108d0594e12cbbeac1f74e288210481a6e4764..80756a5cdf5828e5499f3d5c68419e714545da1e 100644 (file)
@@ -57,7 +57,7 @@ extern void zuma_mbox_init(void);
 /* ------------------------------------------------------------------------- */
 
 /* this is the current GT register space location */
-/* it starts at CFG_DFL_GT_REGS but moves later to CFG_GT_REGS */
+/* it starts at CONFIG_SYS_DFL_GT_REGS but moves later to CONFIG_SYS_GT_REGS */
 
 /* Unfortunately, we cant change it while we are in flash, so we initialize it
  * to the "final" value. This means that any debug_led calls before
@@ -65,7 +65,7 @@ extern void zuma_mbox_init(void);
  * See also my_remap_gt_regs below. (NTL)
  */
 
-unsigned int INTERNAL_REG_BASE_ADDR = CFG_GT_REGS;
+unsigned int INTERNAL_REG_BASE_ADDR = CONFIG_SYS_GT_REGS;
 
 /* ------------------------------------------------------------------------- */
 
@@ -100,26 +100,26 @@ gt_pci_config(void)
 {
        /* move PCI stuff out of the way - NTL */
        /* map PCI Host 0 */
-       pciMapSpace(PCI_HOST0, PCI_REGION0, CFG_PCI0_0_MEM_SPACE,
-               CFG_PCI0_0_MEM_SPACE, CFG_PCI0_MEM_SIZE);
+       pciMapSpace(PCI_HOST0, PCI_REGION0, CONFIG_SYS_PCI0_0_MEM_SPACE,
+               CONFIG_SYS_PCI0_0_MEM_SPACE, CONFIG_SYS_PCI0_MEM_SIZE);
 
        pciMapSpace(PCI_HOST0, PCI_REGION1, 0, 0, 0);
        pciMapSpace(PCI_HOST0, PCI_REGION2, 0, 0, 0);
        pciMapSpace(PCI_HOST0, PCI_REGION3, 0, 0, 0);
 
-       pciMapSpace(PCI_HOST0, PCI_IO, CFG_PCI0_IO_SPACE_PCI,
-               CFG_PCI0_IO_SPACE, CFG_PCI0_IO_SIZE);
+       pciMapSpace(PCI_HOST0, PCI_IO, CONFIG_SYS_PCI0_IO_SPACE_PCI,
+               CONFIG_SYS_PCI0_IO_SPACE, CONFIG_SYS_PCI0_IO_SIZE);
 
        /* map PCI Host 1 */
-       pciMapSpace(PCI_HOST1, PCI_REGION0, CFG_PCI1_0_MEM_SPACE,
-               CFG_PCI1_0_MEM_SPACE, CFG_PCI1_MEM_SIZE);
+       pciMapSpace(PCI_HOST1, PCI_REGION0, CONFIG_SYS_PCI1_0_MEM_SPACE,
+               CONFIG_SYS_PCI1_0_MEM_SPACE, CONFIG_SYS_PCI1_MEM_SIZE);
 
        pciMapSpace(PCI_HOST1, PCI_REGION1, 0, 0, 0);
        pciMapSpace(PCI_HOST1, PCI_REGION2, 0, 0, 0);
        pciMapSpace(PCI_HOST1, PCI_REGION3, 0, 0, 0);
 
-       pciMapSpace(PCI_HOST1, PCI_IO, CFG_PCI1_IO_SPACE_PCI,
-               CFG_PCI1_IO_SPACE, CFG_PCI1_IO_SIZE);
+       pciMapSpace(PCI_HOST1, PCI_IO, CONFIG_SYS_PCI1_IO_SPACE_PCI,
+               CONFIG_SYS_PCI1_IO_SPACE, CONFIG_SYS_PCI1_IO_SIZE);
 
        /* PCI interface settings */
        GT_REG_WRITE(PCI_0TIMEOUT_RETRY, 0xffff);
@@ -201,7 +201,7 @@ int board_early_init_f (void)
         * that if it's not at the power-on location, it's where we put
         * it last time. (huber)
         */
-       my_remap_gt_regs(CFG_DFL_GT_REGS, CFG_GT_REGS);
+       my_remap_gt_regs(CONFIG_SYS_DFL_GT_REGS, CONFIG_SYS_GT_REGS);
 
        gt_pci_config();
 
@@ -218,7 +218,7 @@ int board_early_init_f (void)
        GT_REG_WRITE(CPU_INT_3_MASK, 0);
 
        /* now, onto the configuration */
-       GT_REG_WRITE(SDRAM_CONFIGURATION, CFG_SDRAM_CONFIG);
+       GT_REG_WRITE(SDRAM_CONFIGURATION, CONFIG_SYS_SDRAM_CONFIG);
 
        /* ----- DEVICE BUS SETTINGS ------ */
 
@@ -245,61 +245,61 @@ int board_early_init_f (void)
        /* Zuma has no SRAM */
        sram_boot = 0;
 #else
-       if (memoryGetDeviceBaseAddress(DEVICE0) && 0xfff00000 == CFG_MONITOR_BASE)
+       if (memoryGetDeviceBaseAddress(DEVICE0) && 0xfff00000 == CONFIG_SYS_MONITOR_BASE)
                sram_boot = 1;
 #endif
 
-               memoryMapDeviceSpace(DEVICE0, CFG_DEV0_SPACE, CFG_DEV0_SIZE);
+               memoryMapDeviceSpace(DEVICE0, CONFIG_SYS_DEV0_SPACE, CONFIG_SYS_DEV0_SIZE);
 
-       memoryMapDeviceSpace(DEVICE1, CFG_DEV1_SPACE, CFG_DEV1_SIZE);
-       memoryMapDeviceSpace(DEVICE2, CFG_DEV2_SPACE, CFG_DEV2_SIZE);
-       memoryMapDeviceSpace(DEVICE3, CFG_DEV3_SPACE, CFG_DEV3_SIZE);
+       memoryMapDeviceSpace(DEVICE1, CONFIG_SYS_DEV1_SPACE, CONFIG_SYS_DEV1_SIZE);
+       memoryMapDeviceSpace(DEVICE2, CONFIG_SYS_DEV2_SPACE, CONFIG_SYS_DEV2_SIZE);
+       memoryMapDeviceSpace(DEVICE3, CONFIG_SYS_DEV3_SPACE, CONFIG_SYS_DEV3_SIZE);
 
        /* configure device timing */
-#ifdef CFG_DEV0_PAR
+#ifdef CONFIG_SYS_DEV0_PAR
        if (!sram_boot)
-               GT_REG_WRITE(DEVICE_BANK0PARAMETERS, CFG_DEV0_PAR);
+               GT_REG_WRITE(DEVICE_BANK0PARAMETERS, CONFIG_SYS_DEV0_PAR);
 #endif
 
-#ifdef CFG_DEV1_PAR
-       GT_REG_WRITE(DEVICE_BANK1PARAMETERS, CFG_DEV1_PAR);
+#ifdef CONFIG_SYS_DEV1_PAR
+       GT_REG_WRITE(DEVICE_BANK1PARAMETERS, CONFIG_SYS_DEV1_PAR);
 #endif
-#ifdef CFG_DEV2_PAR
-       GT_REG_WRITE(DEVICE_BANK2PARAMETERS, CFG_DEV2_PAR);
+#ifdef CONFIG_SYS_DEV2_PAR
+       GT_REG_WRITE(DEVICE_BANK2PARAMETERS, CONFIG_SYS_DEV2_PAR);
 #endif
 
 #ifdef CONFIG_EVB64260
-#ifdef CFG_32BIT_BOOT_PAR
+#ifdef CONFIG_SYS_32BIT_BOOT_PAR
        /* detect if we are booting from the 32 bit flash */
        if (GTREGREAD(DEVICE_BOOT_BANK_PARAMETERS) & (0x3 << 20)) {
                /* 32 bit boot flash */
-               GT_REG_WRITE(DEVICE_BANK3PARAMETERS, CFG_8BIT_BOOT_PAR);
-               GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_32BIT_BOOT_PAR);
+               GT_REG_WRITE(DEVICE_BANK3PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
+               GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_32BIT_BOOT_PAR);
        } else {
                /* 8 bit boot flash */
-               GT_REG_WRITE(DEVICE_BANK3PARAMETERS, CFG_32BIT_BOOT_PAR);
-               GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);
+               GT_REG_WRITE(DEVICE_BANK3PARAMETERS, CONFIG_SYS_32BIT_BOOT_PAR);
+               GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
        }
 #else
        /* 8 bit boot flash only */
-       GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_8BIT_BOOT_PAR);
+       GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_8BIT_BOOT_PAR);
 #endif
 #else /* CONFIG_EVB64260 not defined */
                /* We are booting from 16-bit flash.
                 */
-       GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_16BIT_BOOT_PAR);
+       GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_16BIT_BOOT_PAR);
 #endif
 
        gt_cpu_config();
 
        /* MPP setup */
-       GT_REG_WRITE(MPP_CONTROL0, CFG_MPP_CONTROL_0);
-       GT_REG_WRITE(MPP_CONTROL1, CFG_MPP_CONTROL_1);
-       GT_REG_WRITE(MPP_CONTROL2, CFG_MPP_CONTROL_2);
-       GT_REG_WRITE(MPP_CONTROL3, CFG_MPP_CONTROL_3);
+       GT_REG_WRITE(MPP_CONTROL0, CONFIG_SYS_MPP_CONTROL_0);
+       GT_REG_WRITE(MPP_CONTROL1, CONFIG_SYS_MPP_CONTROL_1);
+       GT_REG_WRITE(MPP_CONTROL2, CONFIG_SYS_MPP_CONTROL_2);
+       GT_REG_WRITE(MPP_CONTROL3, CONFIG_SYS_MPP_CONTROL_3);
 
-       GT_REG_WRITE(GPP_LEVEL_CONTROL, CFG_GPP_LEVEL_CONTROL);
-       GT_REG_WRITE(SERIAL_PORT_MULTIPLEX, CFG_SERIAL_PORT_MUX);
+       GT_REG_WRITE(GPP_LEVEL_CONTROL, CONFIG_SYS_GPP_LEVEL_CONTROL);
+       GT_REG_WRITE(SERIAL_PORT_MULTIPLEX, CONFIG_SYS_SERIAL_PORT_MUX);
 
        return 0;
 }
@@ -309,7 +309,7 @@ int board_early_init_f (void)
 int misc_init_r (void)
 {
        icache_enable();
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        l2cache_enable();
 #endif
 
@@ -330,9 +330,9 @@ after_reloc(ulong dest_addr)
         * back to the way they should be. (we're running from main
         * memory at this point now */
 
-       if (memoryGetDeviceBaseAddress(DEVICE0) == CFG_MONITOR_BASE) {
-               memoryMapDeviceSpace(DEVICE0, CFG_DEV0_SPACE, CFG_DEV0_SIZE);
-               memoryMapDeviceSpace(BOOT_DEVICE, CFG_FLASH_BASE, _1M);
+       if (memoryGetDeviceBaseAddress(DEVICE0) == CONFIG_SYS_MONITOR_BASE) {
+               memoryMapDeviceSpace(DEVICE0, CONFIG_SYS_DEV0_SPACE, CONFIG_SYS_DEV0_SIZE);
+               memoryMapDeviceSpace(BOOT_DEVICE, CONFIG_SYS_FLASH_BASE, _1M);
        }
 
        /* now, jump to the main U-Boot board init code */
@@ -350,7 +350,7 @@ after_reloc(ulong dest_addr)
 int
 checkboard (void)
 {
-       puts ("Board: " CFG_BOARD_NAME "\n");
+       puts ("Board: " CONFIG_SYS_BOARD_NAME "\n");
        return (0);
 }
 
@@ -365,29 +365,29 @@ debug_led(int led, int mode)
        if (mode == 1) {
                switch (led) {
                case 0:
-                       addr = (int *)((unsigned int)CFG_DEV1_SPACE | 0x08000);
+                       addr = (int *)((unsigned int)CONFIG_SYS_DEV1_SPACE | 0x08000);
                        break;
 
                case 1:
-                       addr = (int *)((unsigned int)CFG_DEV1_SPACE | 0x0c000);
+                       addr = (int *)((unsigned int)CONFIG_SYS_DEV1_SPACE | 0x0c000);
                        break;
 
                case 2:
-                       addr = (int *)((unsigned int)CFG_DEV1_SPACE | 0x10000);
+                       addr = (int *)((unsigned int)CONFIG_SYS_DEV1_SPACE | 0x10000);
                        break;
                }
        } else if (mode == 0) {
                switch (led) {
                case 0:
-                       addr = (int *)((unsigned int)CFG_DEV1_SPACE | 0x14000);
+                       addr = (int *)((unsigned int)CONFIG_SYS_DEV1_SPACE | 0x14000);
                        break;
 
                case 1:
-                       addr = (int *)((unsigned int)CFG_DEV1_SPACE | 0x18000);
+                       addr = (int *)((unsigned int)CONFIG_SYS_DEV1_SPACE | 0x18000);
                        break;
 
                case 2:
-                       addr = (int *)((unsigned int)CFG_DEV1_SPACE | 0x1c000);
+                       addr = (int *)((unsigned int)CONFIG_SYS_DEV1_SPACE | 0x1c000);
                        break;
                }
        }
index f2d5390ac47cb9db8865f84fb456f1d59e512f6d..115e8cd4dae03827b6343ed82c3c56d42f28d22d 100644 (file)
@@ -46,7 +46,7 @@
 int flash_erase_intel(flash_info_t *info, int s_first, int s_last);
 int write_word_intel(bank_addr_t addr, bank_word_t value);
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -67,16 +67,16 @@ flash_init (void)
        unsigned long base, flash_size;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* the boot flash */
-       base = CFG_FLASH_BASE;
-#ifndef CFG_BOOT_FLASH_WIDTH
-#define CFG_BOOT_FLASH_WIDTH   1
+       base = CONFIG_SYS_FLASH_BASE;
+#ifndef CONFIG_SYS_BOOT_FLASH_WIDTH
+#define CONFIG_SYS_BOOT_FLASH_WIDTH    1
 #endif
-       size_b0 = flash_get_size(CFG_BOOT_FLASH_WIDTH, (vu_long *)base,
+       size_b0 = flash_get_size(CONFIG_SYS_BOOT_FLASH_WIDTH, (vu_long *)base,
                                 &flash_info[0]);
 
 #ifndef CONFIG_P3G4
@@ -90,9 +90,9 @@ flash_init (void)
                        base, size_b0, size_b0<<20);
        }
 
-       base = memoryGetDeviceBaseAddress(CFG_EXTRA_FLASH_DEVICE);
-       for(i=1;i<CFG_MAX_FLASH_BANKS;i++) {
-           unsigned long size = flash_get_size(CFG_EXTRA_FLASH_WIDTH, (vu_long *)base, &flash_info[i]);
+       base = memoryGetDeviceBaseAddress(CONFIG_SYS_EXTRA_FLASH_DEVICE);
+       for(i=1;i<CONFIG_SYS_MAX_FLASH_BANKS;i++) {
+           unsigned long size = flash_get_size(CONFIG_SYS_EXTRA_FLASH_WIDTH, (vu_long *)base, &flash_info[i]);
 
 #ifndef CONFIG_P3G4
            printf("[");
@@ -111,12 +111,12 @@ flash_init (void)
            base+=size;
        }
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE + monitor_flash_len - 1,
-                     flash_get_info(CFG_MONITOR_BASE));
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef  CONFIG_ENV_IS_IN_FLASH
@@ -183,13 +183,13 @@ static flash_info_t *flash_get_info(ulong base)
        int i;
        flash_info_t * info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->start[0] <= base && base <= info->start[0] + info->size - 1)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 
 /*-----------------------------------------------------------------------
@@ -682,7 +682,7 @@ flash_erase (flash_info_t *info, int s_first, int s_last)
        addr = (volatile unsigned char *)(info->start[l_sect]);
        /* broken for 2x16: TODO */
        while ((addr[0] & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -846,7 +846,7 @@ write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index ed6a2a029221e01b4b7e4ae36bda05b206e1f2a6..994264a7ab01072fb68b65f10e3b6700050cec06 100644 (file)
@@ -157,7 +157,7 @@ write_word_intel(bank_addr_t addr, bank_word_t value)
        /* data polling for D7 */
        start = get_timer (0);
        do {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        retval = 1;
                        goto done;
                }
@@ -234,7 +234,7 @@ flash_erase_intel(flash_info_t *info, int s_first, int s_last)
                        do {
                                now = get_timer(start);
 
-                               if (now - estart > CFG_FLASH_ERASE_TOUT) {
+                               if (now - estart > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout (sect %d)\n", sect);
                                        haderr = 1;
                                        break;
index dc2aa0008ecda0c5fabae7b31b0166aa37e079ad..cc3a33965d019f36667fd0a33f145cff5cc75b67 100644 (file)
@@ -42,7 +42,7 @@
 /* ID and Lock Configuration */
 #define CHIP_RD_ID_LOCK                0x01            /* Bit 0 of each byte */
 #define CHIP_RD_ID_MAN         0x89            /* Manufacturer code = 0x89 */
-#define CHIP_RD_ID_DEV         CFG_FLASH_ID
+#define CHIP_RD_ID_DEV         CONFIG_SYS_FLASH_ID
 
 /* dimensions */
 #define CHIP_WIDTH             2               /* chips are in 16 bit mode */
index 3d9b443e7b84a28b25291aebc655e378276d3d3d..8a3f4b2944795abec740f50f7c85694ad16bcd79 100644 (file)
@@ -26,7 +26,7 @@
 /* #define CONFIG_BOOTCOMMAND */
 /* #define CONFIG_RAMBOOTCOMMAND */
 /* #define CONFIG_NFSBOOTCOMMAND */
-/* #define CFG_AUTOLOAD */
+/* #define CONFIG_SYS_AUTOLOAD */
 /* #define CONFIG_PREBOOT */
 
 /* These don't */
index 438dea61264f23178d3739ff6a23aff14275a6f9..f09528d42958c429f7e77c33ce22266922386980 100644 (file)
@@ -16,7 +16,7 @@
 board_relocate_rom:
        mflr    r7
        /* update the location of the GT registers */
-       lis     r11, CFG_GT_REGS@h
+       lis     r11, CONFIG_SYS_GT_REGS@h
        /* if we're using ECC, we must use the DMA engine to copy ourselves */
        bl      start_idma_transfer_0
        bl      wait_for_idma_0
@@ -29,12 +29,12 @@ board_relocate_rom:
 board_init_ecc:
        mflr    r7
        /* NOTE: r10 still contains the location we've been relocated to
-        * which happens to be TOP_OF_RAM - CFG_MONITOR_LEN */
+        * which happens to be TOP_OF_RAM - CONFIG_SYS_MONITOR_LEN */
 
        /* now that we're running from ram, init the rest of main memory
         * for ECC use */
-       lis     r8, CFG_MONITOR_LEN@h
-       ori     r8, r8, CFG_MONITOR_LEN@l
+       lis     r8, CONFIG_SYS_MONITOR_LEN@h
+       ori     r8, r8, CONFIG_SYS_MONITOR_LEN@l
 
        divw    r3, r10, r8
 
@@ -120,15 +120,15 @@ stop_idma_engine_0:
        blr
 #endif
 
-#ifdef CFG_BOARD_ASM_INIT
+#ifdef CONFIG_SYS_BOARD_ASM_INIT
        /* NOTE: trashes r3-r7 */
        .globl board_asm_init
 board_asm_init:
        /* just move the GT registers to where they belong */
-       lis     r3, CFG_DFL_GT_REGS@h
-       ori     r3, r3, CFG_DFL_GT_REGS@l
-       lis     r4, CFG_GT_REGS@h
-       ori     r4, r4, CFG_GT_REGS@l
+       lis     r3, CONFIG_SYS_DFL_GT_REGS@h
+       ori     r3, r3, CONFIG_SYS_DFL_GT_REGS@l
+       lis     r4, CONFIG_SYS_GT_REGS@h
+       ori     r4, r4, CONFIG_SYS_GT_REGS@l
        li      r5, INTERNAL_SPACE_DECODE
 
        /* test to see if we've already moved */
index 3b338c72eea98f35a4f63c209ae11e3ede7941f3..8c4a4c899028ccc714752e196e8608410eb615df 100644 (file)
@@ -390,7 +390,7 @@ galbrg_set_baudrate(int channel, int rate)
 
 #if defined(CONFIG_ZUMA_V2) || defined(CONFIG_P3G4)
        /* from tclk */
-       clock = (CFG_BUS_HZ/(16*rate)) - 1;
+       clock = (CONFIG_SYS_BUS_HZ/(16*rate)) - 1;
 #else
        clock = (3686400/(16*rate)) - 1;
 #endif
index 59b9acb2f7d62518aa0cbd9a7db24ffa1da19407..582f24c67bbc775940fee2f0d35563f9896aa15e 100644 (file)
@@ -675,14 +675,14 @@ void pci_init_board (void)
        local_buses[0] = pci0_hose.first_busno;
        /* PCI memory space */
        pci_set_region (pci0_hose.regions + 0,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci0_hose.regions + 1,
-                       CFG_PCI0_IO_SPACE_PCI,
-                       CFG_PCI0_IO_SPACE, CFG_PCI0_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI0_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI0_IO_SPACE, CONFIG_SYS_PCI0_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci0_hose,
                     pci_hose_read_config_byte_via_dword,
@@ -720,14 +720,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci1_hose.regions + 0,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci1_hose.regions + 1,
-                       CFG_PCI1_IO_SPACE_PCI,
-                       CFG_PCI1_IO_SPACE, CFG_PCI1_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI1_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI1_IO_SPACE, CONFIG_SYS_PCI1_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci1_hose,
                     pci_hose_read_config_byte_via_dword,
index 9ae446544171ed76ef845012950fc7fcf547b7b9..e2f07699c3df1ccea1042d38193918de03757056 100644 (file)
@@ -300,7 +300,7 @@ static int check_dimm (uchar slot, sdram_info_t * info)
 
        DP (printf ("tpar set to: %d\n", info->tpar));
 
-#ifdef CFG_BROKEN_CL2
+#ifdef CONFIG_SYS_BROKEN_CL2
        if (info->tpar == 2) {
                info->tpar = 3;
                DP (printf ("tpar fixed-up to: %d\n", info->tpar));
@@ -598,7 +598,7 @@ phys_size_t initdram (int board_type)
         *         limitation: we only support 256M per bank due to
         *         us only having 1 BAT for all DRAM
         */
-       for (bank_no = 0; bank_no < CFG_DRAM_BANKS; bank_no++) {
+       for (bank_no = 0; bank_no < CONFIG_SYS_DRAM_BANKS; bank_no++) {
                /* skip over banks that are not populated */
                if (!checkbank[bank_no])
                        continue;
@@ -617,7 +617,7 @@ phys_size_t initdram (int board_type)
         *         space.
         */
        dimm_info[0].banks = dimm_info[1].banks = 0;
-       for (bank_no = 0; bank_no < CFG_DRAM_BANKS; bank_no++) {
+       for (bank_no = 0; bank_no < CONFIG_SYS_DRAM_BANKS; bank_no++) {
                if (!checkbank[bank_no])
                        continue;
 
index f1bcab3f0056d920e4f75614facf6a26d1f8fe6e..9d711151f0cf455030b0b893fa9b477bcb8a1a10 100644 (file)
@@ -31,7 +31,7 @@
 #include <command.h>
 #include <galileo/memory.h>
 
-#if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2)
+#if (defined CONFIG_SYS_INIT_CHAN1) || (defined CONFIG_SYS_INIT_CHAN2)
 #include <ns16550.h>
 #endif
 
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2)
-const NS16550_t COM_PORTS[] = { (NS16550_t) CFG_NS16550_COM1,
-                               (NS16550_t) CFG_NS16550_COM2 };
+#if (defined CONFIG_SYS_INIT_CHAN1) || (defined CONFIG_SYS_INIT_CHAN2)
+const NS16550_t COM_PORTS[] = { (NS16550_t) CONFIG_SYS_NS16550_COM1,
+                               (NS16550_t) CONFIG_SYS_NS16550_COM2 };
 #endif
 
 #ifdef CONFIG_MPSC
 
 int serial_init (void)
 {
-#if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2)
-       int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+#if (defined CONFIG_SYS_INIT_CHAN1) || (defined CONFIG_SYS_INIT_CHAN2)
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate;
 #endif
 
        mpsc_init(gd->baudrate);
 
        /* init the DUART chans so that KGDB in the kernel can use them */
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        NS16550_reinit(COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        NS16550_reinit(COM_PORTS[1], clock_divisor);
 #endif
        return (0);
@@ -97,12 +97,12 @@ serial_setbrg (void)
 
 int serial_init (void)
 {
-       int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate;
 
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        (void)NS16550_init(COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        (void)NS16550_init(COM_PORTS[1], clock_divisor);
 #endif
 
@@ -113,32 +113,32 @@ void
 serial_putc(const char c)
 {
        if (c == '\n')
-               NS16550_putc(COM_PORTS[CFG_DUART_CHAN], '\r');
+               NS16550_putc(COM_PORTS[CONFIG_SYS_DUART_CHAN], '\r');
 
-       NS16550_putc(COM_PORTS[CFG_DUART_CHAN], c);
+       NS16550_putc(COM_PORTS[CONFIG_SYS_DUART_CHAN], c);
 }
 
 int
 serial_getc(void)
 {
-       return NS16550_getc(COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_getc(COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 int
 serial_tstc(void)
 {
-       return NS16550_tstc(COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_tstc(COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 void
 serial_setbrg (void)
 {
-       int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate;
 
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        NS16550_reinit(COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        NS16550_reinit(COM_PORTS[1], clock_divisor);
 #endif
 }
index 745fba2af8a8f513891076904f3fe7d9051af8d1..cd45cb697dd8610f742ef4f479f245a865be982a 100644 (file)
@@ -33,7 +33,7 @@
 #include <asm/processor.h>
 #include <ppc4xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -68,7 +68,7 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].size = 0;
        }
@@ -76,7 +76,7 @@ unsigned long flash_init (void)
        tot_size = 0;
 
        /* Detect Boot Flash */
-       bank_addr = CFG_FLASH0_BASE;
+       bank_addr = CONFIG_SYS_FLASH0_BASE;
        bank_size = flash_get_size((vu_long *)bank_addr, &flash_info[0]);
        if (bank_size > 0) {
                (void)flash_protect(FLAG_PROTECT_CLEAR,
@@ -91,8 +91,8 @@ unsigned long flash_init (void)
        tot_size += bank_size;
 
        /* Detect Application Flash */
-       bank_addr = CFG_FLASH1_BASE;
-       for (i = 1; i < CFG_MAX_FLASH_BANKS; ++i) {
+       bank_addr = CONFIG_SYS_FLASH1_BASE;
+       for (i = 1; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                bank_size = flash_get_size((vu_long *)bank_addr, &flash_info[i]);
                if (flash_info[i].flash_id == FLASH_UNKNOWN) {
                        break;
@@ -112,13 +112,13 @@ unsigned long flash_init (void)
        }
 
        /* Protect monitor and environment sectors */
-#if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
        flash_protect(FLAG_PROTECT_SET,
-               CFG_MONITOR_BASE,
-               CFG_MONITOR_BASE + monitor_flash_len - 1,
+               CONFIG_SYS_MONITOR_BASE,
+               CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                &flash_info[0]);
-#if 0xfffffffc >= CFG_FLASH0_BASE
-#if 0xfffffffc <= CFG_FLASH0_BASE + CFG_FLASH0_SIZE - 1
+#if 0xfffffffc >= CONFIG_SYS_FLASH0_BASE
+#if 0xfffffffc <= CONFIG_SYS_FLASH0_BASE + CONFIG_SYS_FLASH0_SIZE - 1
        flash_protect(FLAG_PROTECT_SET,
                0xfffffffc, 0xffffffff,
                &flash_info[0]);
@@ -450,7 +450,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        while ((addr2[0] & 0x00800080) !=
                                (FLASH_WORD_SIZE) 0x00800080) {
                                if ((now=get_timer(start)) >
-                                          CFG_FLASH_ERASE_TOUT) {
+                                          CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        addr[0] = (FLASH_WORD_SIZE)0x00F000F0;
                                        return 1;
@@ -581,7 +581,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                /* data polling for D7 */
                start = get_timer (0);
                while ((dest2[i] & 0x00800080) != (data2[i] & 0x00800080)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                addr2[0] = (FLASH_WORD_SIZE)0x00F000F0;
                                return (1);
                        }
index 71aefb97cfcb70ab7b369f85a41e7eead4ec1c67..760835aab8e7c157fd4178bd8b900f484a380702 100644 (file)
@@ -265,7 +265,7 @@ setup_continue:
        .globl  sdram_init
 
 sdram_init:
-#if CFG_MONITOR_BASE < CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
        blr
 #else
        mflr    r31
@@ -402,7 +402,7 @@ sdram_init:
        addi    r9, 0, 13       /* bit offset of addressing mode in configuration register  */
        slw     r29, r29, r9    /*  */
        or      r3, r29, r3     /* merge size code and addressing mode */
-       ori     r6, r3, CFG_SDRAM_BASE + 1 /* insert base address and enable bank */
+       ori     r6, r3, CONFIG_SYS_SDRAM_BASE + 1 /* insert base address and enable bank */
 
        /* Calculate banksize r15 = (density << 22) / 2 */
        /*--------------------------------------------- */
index 9e601df1bc705573d3863f8cbc640c8a3b370650..278fa2ab2e2b331062cdacf5ab2db40f9fd2f56a 100644 (file)
@@ -190,7 +190,7 @@ static const uint edo_70ns[] =
 /* ------------------------------------------------------------------------- */
 static int _draminit (uint base, uint noMbytes, uint edo, uint delay)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        /* init upm */
@@ -283,7 +283,7 @@ static int _draminit (uint base, uint noMbytes, uint edo, uint delay)
 
 static void _dramdisable(void)
 {
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_br2 = 0x00000000;
@@ -423,7 +423,7 @@ static const uint sdram_table[] =
 
 static int _initsdram(uint base, uint noMbytes)
 {
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        upmconfig(UPMB, (uint *)sdram_table,sizeof(sdram_table)/sizeof(uint));
@@ -501,7 +501,7 @@ static int _initsdram(uint base, uint noMbytes)
 
 static int _initsdram(uint base, uint noMbytes)
 {
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        upmconfig(UPMB, (uint *)sdram_table,sizeof(sdram_table)/sizeof(uint));
@@ -564,7 +564,7 @@ static int _initsdram(uint base, uint noMbytes)
 
 static void _sdramdisable(void)
 {
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_br4 = 0x00000000;
@@ -576,7 +576,7 @@ static void _sdramdisable(void)
 
 static int initsdram(uint base, uint *noMbytes)
 {
-       uint m = CFG_SDRAM_SIZE>>20;
+       uint m = CONFIG_SYS_SDRAM_SIZE>>20;
 
        /* _initsdram needs access to sdram */
        *((uint *)BCSR1) |= BCSR1_SDRAM_EN; /* enable sdram */
@@ -688,7 +688,7 @@ int testdram (void)
  * Check Board Identity:
  */
 
-#if defined(CONFIG_FADS) && defined(CFG_DAUGHTERBOARD)
+#if defined(CONFIG_FADS) && defined(CONFIG_SYS_DAUGHTERBOARD)
 static void checkdboard(void)
 {
        /* get db type from BCSR 3 */
@@ -722,7 +722,7 @@ static void checkdboard(void)
        default : printf("0x%x", k);
        }
 }
-#endif /* defined(CONFIG_FADS) && defined(CFG_DAUGHTERBOARD) */
+#endif /* defined(CONFIG_FADS) && defined(CONFIG_SYS_DAUGHTERBOARD) */
 
 int checkboard (void)
 {
@@ -780,8 +780,8 @@ int checkboard (void)
 
 #if defined(CONFIG_CMD_PCMCIA)
 
-#ifdef CFG_PCMCIA_MEM_ADDR
-volatile unsigned char *pcmcia_mem = (unsigned char*)CFG_PCMCIA_MEM_ADDR;
+#ifdef CONFIG_SYS_PCMCIA_MEM_ADDR
+volatile unsigned char *pcmcia_mem = (unsigned char*)CONFIG_SYS_PCMCIA_MEM_ADDR;
 #endif
 
 int pcmcia_init(void)
@@ -792,10 +792,10 @@ int pcmcia_init(void)
        /*
        ** Enable the PCMCIA for a Flash card.
        */
-       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
 #if 0
-       pcmp->pcmc_pbr0 = CFG_PCMCIA_MEM_ADDR;
+       pcmp->pcmc_pbr0 = CONFIG_SYS_PCMCIA_MEM_ADDR;
        pcmp->pcmc_por0 = 0xc00ff05d;
 #endif
 
@@ -925,25 +925,25 @@ int pcmcia_init(void)
 
 /* ========================================================================= */
 
-#ifdef CFG_PC_IDE_RESET
+#ifdef CONFIG_SYS_PC_IDE_RESET
 
 void ide_set_reset(int on)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
        /*
         * Configure PC for IDE Reset Pin
         */
        if (on) {               /* assert RESET */
-               immr->im_ioport.iop_pcdat &= ~(CFG_PC_IDE_RESET);
+               immr->im_ioport.iop_pcdat &= ~(CONFIG_SYS_PC_IDE_RESET);
        } else {                /* release RESET */
-               immr->im_ioport.iop_pcdat |=   CFG_PC_IDE_RESET;
+               immr->im_ioport.iop_pcdat |=   CONFIG_SYS_PC_IDE_RESET;
        }
 
        /* program port pin as GPIO output */
-       immr->im_ioport.iop_pcpar &= ~(CFG_PC_IDE_RESET);
-       immr->im_ioport.iop_pcso  &= ~(CFG_PC_IDE_RESET);
-       immr->im_ioport.iop_pcdir |=   CFG_PC_IDE_RESET;
+       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_IDE_RESET);
+       immr->im_ioport.iop_pcso  &= ~(CONFIG_SYS_PC_IDE_RESET);
+       immr->im_ioport.iop_pcdir |=   CONFIG_SYS_PC_IDE_RESET;
 }
 
-#endif /* CFG_PC_IDE_RESET */
+#endif /* CONFIG_SYS_PC_IDE_RESET */
index 23310a4391eeb73c75e9bc6abc0eb092f083c984..24e43eab3f582767d3e7aa53a32fda7e4db3b319 100644 (file)
@@ -95,7 +95,7 @@
 #endif
 
 #ifdef CONFIG_FEC_ENET
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII_INIT                1
 #endif
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_PROMPT              "=>"            /* Monitor Command Prompt       */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define        CFG_LONGHELP                            /* #undef to save memory        */
+#define        CONFIG_SYS_PROMPT               "=>"            /* Monitor Command Prompt       */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define        CONFIG_SYS_LONGHELP                             /* #undef to save memory        */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) /* Print Buffer Size  */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buffer Size     */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
 #if defined(CONFIG_MPC86xADS) || defined(CONFIG_MPC885ADS) /* New ADS or Duet */
-#define        CFG_SDRAM_SIZE          0x00800000      /* 8 Mbyte */
+#define        CONFIG_SYS_SDRAM_SIZE           0x00800000      /* 8 Mbyte */
 /*
  * 2048        SDRAM rows
  * 1000        factor s -> ms
  * 4   Number of refresh cycles per period
  * 64  Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK                ((2048 * 64 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK         ((2048 * 64 * 1000) / (4 * 64))
 #elif defined(CONFIG_FADS)                             /* Old/new FADS */
-#define        CFG_SDRAM_SIZE          0x00400000              /* 4 Mbyte */
+#define        CONFIG_SYS_SDRAM_SIZE           0x00400000              /* 4 Mbyte */
 #else                                                  /* Old ADS */
-#define        CFG_SDRAM_SIZE          0x00000000              /* No SDRAM */
+#define        CONFIG_SYS_SDRAM_SIZE           0x00000000              /* No SDRAM */
 #endif
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#if (CFG_SDRAM_SIZE)
-#define CFG_MEMTEST_END                CFG_SDRAM_SIZE  /* 1 ... SDRAM_SIZE     */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#if (CONFIG_SYS_SDRAM_SIZE)
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_SDRAM_SIZE   /* 1 ... SDRAM_SIZE     */
 #else
-#define CFG_MEMTEST_END                0x0400000       /* 1 ... 4 MB in DRAM   */
-#endif /* CFG_SDRAM_SIZE */
+#define CONFIG_SYS_MEMTEST_END         0x0400000       /* 1 ... 4 MB in DRAM   */
+#endif /* CONFIG_SYS_SDRAM_SIZE */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 KB for monitor   */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 KB for monitor   */
 
 #ifdef CONFIG_BZIP2
-#define        CFG_MALLOC_LEN          (2500 << 10)    /* Reserve ~2.5 MB for malloc() */
+#define        CONFIG_SYS_MALLOC_LEN           (2500 << 10)    /* Reserve ~2.5 MB for malloc() */
 #else
-#define        CFG_MALLOC_LEN          (384 << 10)     /* Reserve 384 kB for malloc()  */
+#define        CONFIG_SYS_MALLOC_LEN           (384 << 10)     /* Reserve 384 kB for malloc()  */
 #endif /* CONFIG_BZIP2 */
 
 /*-----------------------------------------------------------------------
  * Flash organization
  */
-#define CFG_FLASH_BASE         CFG_MONITOR_BASE
-#define CFG_FLASH_SIZE         ((uint)(8 * 1024 * 1024))       /* max 8Mbyte   */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_MONITOR_BASE
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(8 * 1024 * 1024))       /* max 8Mbyte   */
 
-#define CFG_MAX_FLASH_BANKS    4       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     4       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* see README - env sector total size   */
 #define CONFIG_ENV_OFFSET              CONFIG_ENV_SECT_SIZE
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment            */
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 #if defined(CONFIG_CMD_JFFS2)
 
 #define MTDPARTS_DEFAULT       "mtdparts=fads-0:-@1m(user1),fads-1:-(user2),fads-2:-(user3),fads-3:-(user4)"
 */
 
-#define CFG_JFFS2_SORT_FRAGMENTS
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 
 /*-----------------------------------------------------------------------
  * I2C configuration
  */
 #if defined(CONFIG_CMD_I2C)
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address defaults */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address defaults */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       SCCR_TBS
+#define CONFIG_SYS_SCCR        SCCR_TBS
 
 /*-----------------------------------------------------------------------
  * DER - Debug Enable Register
  *-----------------------------------------------------------------------
  * Set to zero to prevent the processor from entering debug mode
  */
-#define CFG_DER                 0
+#define CONFIG_SYS_DER          0
 
 /* Because of the way the 860 starts up and assigns CS0 the entire
  * address space, we have to set the memory controller differently.
 
 #define BCSR_ADDR              ((uint) 0xFF080000)
 
-#define CFG_PRELIM_OR_AM       0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF800000      /* OR addr mask */
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0 */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)   /* 8 Mbyte until detected */
-#define CFG_BR0_PRELIM ((CFG_FLASH_BASE & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)   /* 8 Mbyte until detected */
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_V )
 
 /* BCSRx - Board Control and Status Registers */
-#define CFG_OR1_PRELIM 0xFFFF8110              /* 64Kbyte address space */
-#define CFG_BR1_PRELIM ((BCSR_ADDR) | BR_V)
+#define CONFIG_SYS_OR1_PRELIM  0xFFFF8110              /* 64Kbyte address space */
+#define CONFIG_SYS_BR1_PRELIM  ((BCSR_ADDR) | BR_V)
 
 /*
  * Internal Definitions
 
 /* BSCR5 exists on MPC86xADS and MPC885ADS only */
 
-#define CFG_PHYDEV_ADDR                (BCSR_ADDR + 0x20000)
+#define CONFIG_SYS_PHYDEV_ADDR         (BCSR_ADDR + 0x20000)
 
-#define BCSR5                  (CFG_PHYDEV_ADDR + 0x300)
+#define BCSR5                  (CONFIG_SYS_PHYDEV_ADDR + 0x300)
 
 #define BCSR5_MII2_EN          0x40
 #define BCSR5_MII2_RST         0x20
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 2 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 2 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0000
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000
 
 #define CONFIG_DISK_SPINUP_TIME 1000000
 /* #undef CONFIG_DISK_SPINUP_TIME */   /* usin  Compact Flash */
index cd0e4d5dc20a2e610f98fb7b773ca86b908c12fb..b9afb75170130ed996c74b42ba149a1be26f3d4e 100644 (file)
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -54,14 +54,14 @@ static int write_word (flash_info_t * info, ulong dest, ulong data);
  */
 unsigned long flash_init (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        vu_long *bcsr = (vu_long *)BCSR_ADDR;
        unsigned long pd_size, total_size, bsize, or_am;
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].size = 0;
                flash_info[i].sector_count = 0;
@@ -94,8 +94,8 @@ unsigned long flash_init (void)
        }
 
        total_size = 0;
-       for (i = 0; i < CFG_MAX_FLASH_BANKS && total_size < pd_size; ++i) {
-               bsize = flash_get_size((vu_long *)(CFG_FLASH_BASE + total_size),
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS && total_size < pd_size; ++i) {
+               bsize = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + total_size),
                                       &flash_info[i]);
 
                if (flash_info[i].flash_id == FLASH_UNKNOWN) {
@@ -112,15 +112,15 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = or_am | CFG_OR_TIMING_FLASH;
+       memctl->memc_or0 = or_am | CONFIG_SYS_OR_TIMING_FLASH;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS && flash_info[i].size != 0; ++i) {
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS && flash_info[i].size != 0; ++i) {
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
-               if (CFG_MONITOR_BASE >= flash_info[i].start[0])
+               if (CONFIG_SYS_MONITOR_BASE >= flash_info[i].start[0])
                        flash_protect (FLAG_PROTECT_SET,
-                                      CFG_MONITOR_BASE,
-                                      CFG_MONITOR_BASE + monitor_flash_len - 1,
+                                      CONFIG_SYS_MONITOR_BASE,
+                                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                                       &flash_info[i]);
 #endif
 
@@ -428,7 +428,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        addr = (vu_long *) (info->start[l_sect]);
        while ((addr[0] & 0xFFFFFFFF) != 0xFFFFFFFF)
        {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return ERR_TIMOUT;
                }
@@ -552,7 +552,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
        start = get_timer (0);
        while ((*((vu_long *) dest) & 0x80808080) != (data & 0x80808080))
        {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return ERR_TIMOUT;
                }
        }
index 7caedc99a32f063bc0cba55d36c6ca259f86c8ff..dc9e2dcc1b09788eca89a0264d039b632847e347 100644 (file)
@@ -98,18 +98,18 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0;
 
-       memctl->memc_or2 = CFG_OR2;
-       memctl->memc_br2 = CFG_BR2;
+       memctl->memc_or2 = CONFIG_SYS_OR2;
+       memctl->memc_br2 = CONFIG_SYS_BR2;
 
        udelay(100);
        upmconfig(UPMA, (uint *)sdram_table, sizeof(sdram_table)/sizeof(uint));
 
        memctl->memc_mptpr = MPTPR_PTP_DIV16;
-       memctl->memc_mamr = CFG_MAMR_48_SDR | MAMR_TLFA_1X;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_48_SDR | MAMR_TLFA_1X;
 
        /*Do the initialization of the SDRAM*/
        /*Start with the precharge cycle*/
@@ -117,7 +117,7 @@ phys_size_t initdram (int board_type)
                                MCR_MLCF(1) | MCR_MAD(0x5));
 
        /*Then we need two refresh cycles*/
-       memctl->memc_mamr = CFG_MAMR_48_SDR | MAMR_TLFA_2X;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_48_SDR | MAMR_TLFA_2X;
        memctl->memc_mcr = (MCR_OP_RUN | MCR_UPM_A | MCR_MB_CS2 | \
                                MCR_MLCF(2) | MCR_MAD(0x30));
 
@@ -127,7 +127,7 @@ phys_size_t initdram (int board_type)
                                MCR_MLCF(1) | MCR_MAD(0x1C));
 
        /* That should do it, just enable the periodic refresh in burst of 4*/
-       memctl->memc_mamr = CFG_MAMR_48_SDR | MAMR_TLFA_4X;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_48_SDR | MAMR_TLFA_4X;
        memctl->memc_mamr |= (MAMR_PTAE | MAMR_GPL_A4DIS);
 
        size_b0 = 16*1024*1024;
@@ -143,8 +143,8 @@ phys_size_t initdram (int board_type)
 
        memctl->memc_mbmr = MBMR_GPL_B4DIS;
 
-       memctl->memc_or4 = CFG_OR4;
-       memctl->memc_br4 = CFG_BR4;
+       memctl->memc_or4 = CONFIG_SYS_OR4;
+       memctl->memc_br4 = CONFIG_SYS_BR4;
 
        return (size_b0);
 }
index aa8b0f9943c3a92a4fe06a575633c62e6287fd9b..bbefbacea95fed867b3e0f01b79ac75ad649d73a 100644 (file)
@@ -25,7 +25,7 @@
 #include <mpc8xx.h>
 #include <flash.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -39,45 +39,45 @@ int _flash_real_protect(flash_info_t *info, long idx, int on);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t        *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t        *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t    *memctl = &immap->im_memctl;
        int i;
        int rec;
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       *((vu_short*)CFG_FLASH_BASE) = 0xffff;
+       *((vu_short*)CONFIG_SYS_FLASH_BASE) = 0xffff;
 
-       flash_get_geometry ((vu_long*)CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_geometry ((vu_long*)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-flash_info[0].size & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) |
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-flash_info[0].size & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) |
                (memctl->memc_br0 & ~(BR_BA_MSK));
 
-       rec = flash_recognize((vu_long*)CFG_FLASH_BASE);
+       rec = flash_recognize((vu_long*)CONFIG_SYS_FLASH_BASE);
 
        if (rec == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                                flash_info[0].size, flash_info[0].size<<20);
        }
 
-#if CFG_FLASH_PROTECTION
+#if CONFIG_SYS_FLASH_PROTECTION
        /*Unprotect all the flash memory*/
        flash_unprotect(&flash_info[0]);
 #endif
 
-       *((vu_short*)CFG_FLASH_BASE) = 0xffff;
+       *((vu_short*)CONFIG_SYS_FLASH_BASE) = 0xffff;
 
        return (flash_info[0].size);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -400,7 +400,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = 0x70; /*Read status register command*/
                        tmp = (short)*addr & 0x00FF; /* Read the status */
                        while (!(tmp & INTEL_FLASH_STATUS_WSMS)) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = 0x0050; /* Reset the status register */
                                        *addr = 0xffff;
                                        printf ("Timeout\n");
@@ -440,7 +440,7 @@ void flash_unprotect (flash_info_t *info)
        for(i = 0; i < info->sector_count; i++)
                info->protect[i] = 0;
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
                _flash_real_protect(info, 0, 0);
 #endif
 }
@@ -555,7 +555,7 @@ int write_word (flash_info_t *info, ulong dest, ulong da)
                flag  = 0;
                *addr = 0x0070; /*Read statusregister command */
                while (((csr = *addr) & INTEL_FLASH_STATUS_WSMS)!=INTEL_FLASH_STATUS_WSMS) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                flag = 1;
                                break;
                        }
@@ -642,7 +642,7 @@ int _flash_real_protect(flash_info_t *info, long idx, int prot)
        while(!(tmp & INTEL_FLASH_STATUS_WSMS)) {
                /*Write State Machine Busy*/
                /*Wait untill done or timeout.*/
-               if ((now=get_timer(start)) > CFG_FLASH_WRITE_TOUT) {
+               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = 0x0050; /* Reset the status register */
                        *addr = 0xffff; /* Reset the chip */
                        printf ("TTimeout\n");
@@ -670,7 +670,7 @@ int _flash_real_protect(flash_info_t *info, long idx, int prot)
        tmp = ((ushort)(*addr)) & 0x00FF; /* Read the status */
        while (!(tmp & INTEL_FLASH_STATUS_WSMS)) {
                /* Write State Machine Busy */
-               if ((now=get_timer(start)) > CFG_FLASH_WRITE_TOUT) {
+               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = 0x0050; /* Reset the status register */
                        *addr = 0xffff;
                        printf ("Timeout\n");
index 5f86de5af22ff4129bf36898f65d25d7208b557e..db54bc4d51dd329b93d7b0054f415f15e16c4f70 100644 (file)
@@ -27,8 +27,8 @@
 /*
  * CADMUS Board System Registers
  */
-#ifndef CFG_CADMUS_BASE_REG
-#define CFG_CADMUS_BASE_REG    (CADMUS_BASE_ADDR + 0x4000)
+#ifndef CONFIG_SYS_CADMUS_BASE_REG
+#define CONFIG_SYS_CADMUS_BASE_REG     (CADMUS_BASE_ADDR + 0x4000)
 #endif
 
 typedef struct cadmus_reg {
@@ -47,7 +47,7 @@ typedef struct cadmus_reg {
 unsigned int
 get_board_version(void)
 {
-       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_CADMUS_BASE_REG;
+       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG;
 
        return cadmus->cm_ver;
 }
@@ -56,7 +56,7 @@ get_board_version(void)
 unsigned long
 get_clock_freq(void)
 {
-       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_CADMUS_BASE_REG;
+       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG;
 
        uint pci1_speed = (cadmus->cm_pci >> 2) & 0x3; /* PSPEED in [4:5] */
 
@@ -74,7 +74,7 @@ get_clock_freq(void)
 unsigned int
 get_pci_slot(void)
 {
-       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_CADMUS_BASE_REG;
+       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG;
 
        /*
         * PCI slot in USER bits CSR[6:7] by convention.
@@ -86,7 +86,7 @@ get_pci_slot(void)
 unsigned int
 get_pci_dual(void)
 {
-       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CFG_CADMUS_BASE_REG;
+       volatile cadmus_reg_t *cadmus = (cadmus_reg_t *)CONFIG_SYS_CADMUS_BASE_REG;
 
        /*
         * PCI DUAL in CM_PCI[3]
index 4d4b0a1460ff7f64e98c3dc5f98db56f95e47c45..2fc878be8a73e1b086824ab728cba085fd0adecd 100644 (file)
@@ -205,7 +205,7 @@ int fsl_diu_init(int xres,
        unsigned int i, j;
 
        debug("Enter fsl_diu_init\n");
-       dr.diu_reg = (struct diu *) (CFG_DIU_ADDR);
+       dr.diu_reg = (struct diu *) (CONFIG_SYS_DIU_ADDR);
        hw = (struct diu *) dr.diu_reg;
 
        disable_lcdc();
index b5a0e847ad7a3a17ad01d486036cc307a4ee9439..348696ee174ef254680fbbfa34f7aa4b3b3011b0 100644 (file)
@@ -207,8 +207,8 @@ void read_from_px_regs_altbank(int set)
        out8(PIXIS_BASE + PIXIS_VCFGEN1, tmp);
 }
 
-#ifndef CFG_PIXIS_VBOOT_MASK
-#define CFG_PIXIS_VBOOT_MASK   (0x40)
+#ifndef CONFIG_SYS_PIXIS_VBOOT_MASK
+#define CONFIG_SYS_PIXIS_VBOOT_MASK    (0x40)
 #endif
 
 void clear_altbank(void)
@@ -216,7 +216,7 @@ void clear_altbank(void)
        u8 tmp;
 
        tmp = in8(PIXIS_BASE + PIXIS_VBOOT);
-       tmp &= ~CFG_PIXIS_VBOOT_MASK;
+       tmp &= ~CONFIG_SYS_PIXIS_VBOOT_MASK;
 
        out8(PIXIS_BASE + PIXIS_VBOOT, tmp);
 }
@@ -227,7 +227,7 @@ void set_altbank(void)
        u8 tmp;
 
        tmp = in8(PIXIS_BASE + PIXIS_VBOOT);
-       tmp |= CFG_PIXIS_VBOOT_MASK;
+       tmp |= CONFIG_SYS_PIXIS_VBOOT_MASK;
 
        out8(PIXIS_BASE + PIXIS_VBOOT, tmp);
 }
@@ -327,7 +327,7 @@ int pixis_set_sgmii(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(
-               pixis_set_sgmii, CFG_MAXARGS, 1, pixis_set_sgmii,
+               pixis_set_sgmii, CONFIG_SYS_MAXARGS, 1, pixis_set_sgmii,
                "pixis_set_sgmii"
                " - Enable or disable SGMII mode for a given TSEC \n",
                "\npixis_set_sgmii [TSEC num] <on|off|switch>\n"
@@ -518,7 +518,7 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 
 U_BOOT_CMD(
-       pixis_reset, CFG_MAXARGS, 1, pixis_reset_cmd,
+       pixis_reset, CONFIG_SYS_MAXARGS, 1, pixis_reset_cmd,
        "pixis_reset - Reset the board using the FPGA sequencer\n",
        "    pixis_reset\n"
        "    pixis_reset [altbank]\n"
index 9bef92e8155603e6252317cd1d41015b397f0367..eb58c7fd57c0ab3a78d399756731bbe435fee59e 100644 (file)
@@ -30,8 +30,8 @@
 
 #include "../common/eeprom.h"
 
-#if !defined(CFG_I2C_EEPROM_CCID) && !defined(CFG_I2C_EEPROM_NXID)
-#error "Please define either CFG_I2C_EEPROM_CCID or CFG_I2C_EEPROM_NXID"
+#if !defined(CONFIG_SYS_I2C_EEPROM_CCID) && !defined(CONFIG_SYS_I2C_EEPROM_NXID)
+#error "Please define either CONFIG_SYS_I2C_EEPROM_CCID or CONFIG_SYS_I2C_EEPROM_NXID"
 #endif
 
 /**
@@ -40,7 +40,7 @@
  * See application note AN3638 for details.
  */
 static struct __attribute__ ((__packed__)) eeprom {
-#ifdef CFG_I2C_EEPROM_CCID
+#ifdef CONFIG_SYS_I2C_EEPROM_CCID
        u8 id[4];         /* 0x00 - 0x03 EEPROM Tag 'CCID' */
        u8 major;         /* 0x04        Board revision, major */
        u8 minor;         /* 0x05        Board revision, minor */
@@ -53,7 +53,7 @@ static struct __attribute__ ((__packed__)) eeprom {
        u8 mac[8][6];     /* 0x42 - 0x71 MAC addresses */
        u32 crc;          /* 0x72        CRC32 checksum */
 #endif
-#ifdef CFG_I2C_EEPROM_NXID
+#ifdef CONFIG_SYS_I2C_EEPROM_NXID
        u8 id[4];         /* 0x00 - 0x03 EEPROM Tag 'NXID' */
        u8 sn[12];        /* 0x04 - 0x0F Serial Number */
        u8 errata[5];     /* 0x10 - 0x14 Errata Level */
@@ -74,12 +74,12 @@ static struct __attribute__ ((__packed__)) eeprom {
 /* Set to 1 if we've read EEPROM into memory */
 static int has_been_read = 0;
 
-#ifdef CFG_I2C_EEPROM_NXID
+#ifdef CONFIG_SYS_I2C_EEPROM_NXID
 /* Is this a valid NXID EEPROM? */
 #define is_valid (*((u32 *)e.id) == (('N' << 24) | ('X' << 16) | ('I' << 8) | 'D'))
 #endif
 
-#ifdef CFG_I2C_EEPROM_CCID
+#ifdef CONFIG_SYS_I2C_EEPROM_CCID
 /* Is this a valid CCID EEPROM? */
 #define is_valid (*((u32 *)e.id) == (('C' << 24) | ('C' << 16) | ('I' << 8) | 'D'))
 #endif
@@ -93,7 +93,7 @@ static void show_eeprom(void)
        unsigned int crc;
 
        /* EEPROM tag ID, either CCID or NXID */
-#ifdef CFG_I2C_EEPROM_NXID
+#ifdef CONFIG_SYS_I2C_EEPROM_NXID
        printf("ID: %c%c%c%c v%u\n", e.id[0], e.id[1], e.id[2], e.id[3],
                be32_to_cpu(e.version));
 #else
@@ -104,7 +104,7 @@ static void show_eeprom(void)
        printf("SN: %s\n", e.sn);
 
        /* Errata level. */
-#ifdef CFG_I2C_EEPROM_NXID
+#ifdef CONFIG_SYS_I2C_EEPROM_NXID
        printf("Errata: %s\n", e.errata);
 #else
        printf("Errata: %c%c\n",
@@ -152,22 +152,22 @@ static void show_eeprom(void)
 static int read_eeprom(void)
 {
        int ret;
-#ifdef CFG_EEPROM_BUS_NUM
+#ifdef CONFIG_SYS_EEPROM_BUS_NUM
        unsigned int bus;
 #endif
 
        if (has_been_read)
                return 0;
 
-#ifdef CFG_EEPROM_BUS_NUM
+#ifdef CONFIG_SYS_EEPROM_BUS_NUM
        bus = i2c_get_bus_num();
-       i2c_set_bus_num(CFG_EEPROM_BUS_NUM);
+       i2c_set_bus_num(CONFIG_SYS_EEPROM_BUS_NUM);
 #endif
 
-       ret = i2c_read(CFG_I2C_EEPROM_ADDR, 0, CFG_I2C_EEPROM_ADDR_LEN,
+       ret = i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, CONFIG_SYS_I2C_EEPROM_ADDR_LEN,
                (void *)&e, sizeof(e));
 
-#ifdef CFG_EEPROM_BUS_NUM
+#ifdef CONFIG_SYS_EEPROM_BUS_NUM
        i2c_set_bus_num(bus);
 #endif
 
@@ -188,12 +188,12 @@ static int prog_eeprom(void)
        int ret, i, length;
        unsigned int crc;
        void *p;
-#ifdef CFG_EEPROM_BUS_NUM
+#ifdef CONFIG_SYS_EEPROM_BUS_NUM
        unsigned int bus;
 #endif
 
        /* Set the reserved values to 0xFF   */
-#ifdef CFG_I2C_EEPROM_NXID
+#ifdef CONFIG_SYS_I2C_EEPROM_NXID
        e.res_0 = 0xFF;
        memset(e.res_1, 0xFF, sizeof(e.res_1));
 #else
@@ -204,20 +204,20 @@ static int prog_eeprom(void)
        crc = crc32(0, (void *)&e, length - 4);
        e.crc = cpu_to_be32(crc);
 
-#ifdef CFG_EEPROM_BUS_NUM
+#ifdef CONFIG_SYS_EEPROM_BUS_NUM
        bus = i2c_get_bus_num();
-       i2c_set_bus_num(CFG_EEPROM_BUS_NUM);
+       i2c_set_bus_num(CONFIG_SYS_EEPROM_BUS_NUM);
 #endif
 
        for (i = 0, p = &e; i < length; i += 8, p += 8) {
-               ret = i2c_write(CFG_I2C_EEPROM_ADDR, i, CFG_I2C_EEPROM_ADDR_LEN,
+               ret = i2c_write(CONFIG_SYS_I2C_EEPROM_ADDR, i, CONFIG_SYS_I2C_EEPROM_ADDR_LEN,
                        p, min((length - i), 8));
                if (ret)
                        break;
                udelay(5000);   /* 5ms write cycle timing */
        }
 
-#ifdef CFG_EEPROM_BUS_NUM
+#ifdef CONFIG_SYS_EEPROM_BUS_NUM
        i2c_set_bus_num(bus);
 #endif
 
@@ -343,7 +343,7 @@ int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                strncpy((char *)e.sn, argv[2], sizeof(e.sn) - 1);
                break;
        case 'e':       /* errata */
-#ifdef CFG_I2C_EEPROM_NXID
+#ifdef CONFIG_SYS_I2C_EEPROM_NXID
                memset(e.errata, 0, 5);
                strncpy((char *)e.errata, argv[2], 4);
 #else
@@ -429,7 +429,7 @@ int mac_read_from_eeprom(void)
        return 0;
 }
 
-#ifdef CFG_I2C_EEPROM_CCID
+#ifdef CONFIG_SYS_I2C_EEPROM_CCID
 
 /**
  * get_cpu_board_revision - get the CPU board revision on 85xx boards
@@ -439,11 +439,11 @@ int mac_read_from_eeprom(void)
  * This function is called before relocation, so we need to read a private
  * copy of the EEPROM into a local variable on the stack.
  *
- * Also, we assume that CFG_EEPROM_BUS_NUM == CFG_SPD_BUS_NUM.  The global
- * variable i2c_bus_num must be compile-time initialized to CFG_SPD_BUS_NUM,
+ * Also, we assume that CONFIG_SYS_EEPROM_BUS_NUM == CONFIG_SYS_SPD_BUS_NUM.  The global
+ * variable i2c_bus_num must be compile-time initialized to CONFIG_SYS_SPD_BUS_NUM,
  * so that the SPD code will work.  This means that all pre-relocation I2C
- * operations can only occur on the CFG_SPD_BUS_NUM bus.  So if
- * CFG_EEPROM_BUS_NUM != CFG_SPD_BUS_NUM, then we can't read the EEPROM when
+ * operations can only occur on the CONFIG_SYS_SPD_BUS_NUM bus.  So if
+ * CONFIG_SYS_EEPROM_BUS_NUM != CONFIG_SYS_SPD_BUS_NUM, then we can't read the EEPROM when
  * this function is called.  Oh well.
  */
 unsigned int get_cpu_board_revision(void)
@@ -454,7 +454,7 @@ unsigned int get_cpu_board_revision(void)
                u8 minor;         /* 0x05        Board revision, minor */
        } be;
 
-       i2c_read(CFG_I2C_EEPROM_ADDR, 0, CFG_I2C_EEPROM_ADDR_LEN,
+       i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, CONFIG_SYS_I2C_EEPROM_ADDR_LEN,
                (void *)&be, sizeof(be));
 
        if (be.id != (('C' << 24) | ('C' << 16) | ('I' << 8) | 'D'))
index e5f47d2d93860b774ae9223a6773b725bd396fbc..838a6de0f92c38fb0e13c3c37903f8eaa37712b7 100644 (file)
@@ -41,7 +41,7 @@ phys_size_t initdram(int board_type)
        volatile sdramc_t *sdram = (volatile sdramc_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       dramsize = CFG_SDRAM_SIZE * 0x100000;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -49,28 +49,28 @@ phys_size_t initdram(int board_type)
        }
        i--;
 
-       sdram->sdcs0 = (CFG_SDRAM_BASE | i);
+       sdram->sdcs0 = (CONFIG_SYS_SDRAM_BASE | i);
 
-       sdram->sdcfg1 = CFG_SDRAM_CFG1;
-       sdram->sdcfg2 = CFG_SDRAM_CFG2;
+       sdram->sdcfg1 = CONFIG_SYS_SDRAM_CFG1;
+       sdram->sdcfg2 = CONFIG_SYS_SDRAM_CFG2;
 
        /* Issue PALL */
-       sdram->sdcr = CFG_SDRAM_CTRL | 2;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Issue LEMR */
-       /*sdram->sdmr = CFG_SDRAM_EMOD; */
-       sdram->sdmr = CFG_SDRAM_MODE;
+       /*sdram->sdmr = CONFIG_SYS_SDRAM_EMOD; */
+       sdram->sdmr = CONFIG_SYS_SDRAM_MODE;
 
        udelay(1000);
 
        /* Issue PALL */
-       sdram->sdcr = CFG_SDRAM_CTRL | 2;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Perform two refresh cycles */
-       sdram->sdcr = CFG_SDRAM_CTRL | 4;
-       sdram->sdcr = CFG_SDRAM_CTRL | 4;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 4;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 4;
 
-       sdram->sdcr = (CFG_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
+       sdram->sdcr = (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
 
        udelay(100);
 
index bd8a4e5e68838c1ee43668d8fc38b9c206979bc3..b9e61269c74c94ada7a54c4e3c6ef6fb7adf17d7 100644 (file)
@@ -57,7 +57,7 @@ phys_size_t initdram(int board_type)
            GPIO_PAR_SDRAM_SDWE | GPIO_PAR_SDRAM_SCAS | GPIO_PAR_SDRAM_SRAS |
            GPIO_PAR_SDRAM_SCKE | GPIO_PAR_SDRAM_SDCS(3);
 
-       dramsize = CFG_SDRAM_SIZE * 0x100000;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
                        break;
@@ -65,7 +65,7 @@ phys_size_t initdram(int board_type)
        i--;
 
        if (!(sdram->dacr0 & SDRAMC_DARCn_RE)) {
-               dramclk = gd->bus_clk / (CFG_HZ * CFG_HZ);
+               dramclk = gd->bus_clk / (CONFIG_SYS_HZ * CONFIG_SYS_HZ);
 
                /* Initialize DRAM Control Register: DCR */
                sdram->dcr = SDRAMC_DCR_RTIM_9CLKS |
@@ -73,7 +73,7 @@ phys_size_t initdram(int board_type)
 
                /* Initialize DACR0 */
                sdram->dacr0 =
-                   SDRAMC_DARCn_BA(CFG_SDRAM_BASE) | SDRAMC_DARCn_CASL_C1 |
+                   SDRAMC_DARCn_BA(CONFIG_SYS_SDRAM_BASE) | SDRAMC_DARCn_CASL_C1 |
                    SDRAMC_DARCn_CBM_CMD20 | SDRAMC_DARCn_PS_32;
                asm("nop");
 
@@ -90,7 +90,7 @@ phys_size_t initdram(int board_type)
                }
 
                /* Write to this block to initiate precharge */
-               *(u32 *) (CFG_SDRAM_BASE) = 0xA5A59696;
+               *(u32 *) (CONFIG_SYS_SDRAM_BASE) = 0xA5A59696;
 
                /*  Set RE (bit 15) in DACR */
                sdram->dacr0 |= SDRAMC_DARCn_RE;
@@ -105,7 +105,7 @@ phys_size_t initdram(int board_type)
                asm("nop");
 
                /* Write to the SDRAM Mode Register */
-               *(u32 *) (CFG_SDRAM_BASE + 0x400) = 0xA5A59696;
+               *(u32 *) (CONFIG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
        }
 
        return dramsize;
index 1fd4d99c1e01a78669e054157fec7f94549eab89..5fbbd667a19c5a671185b5d8e1daa3d2d755d329 100644 (file)
@@ -49,7 +49,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -135,9 +135,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || (CONFIG_MII) */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || (CONFIG_MII) */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -202,7 +202,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index c9ed341bbd1c875788bbd0b4172344db4e7eeeb9..b1ccbebde5b504ffb8af2ff3ca9bc10151216c0c 100644 (file)
@@ -42,7 +42,7 @@ int checkboard (void) {
        /*
         * Set LED on
         */
-       val = mbar2_readLong(MCFSIM_GPIO1_OUT) & ~CFG_GPIO1_LED;
+       val = mbar2_readLong(MCFSIM_GPIO1_OUT) & ~CONFIG_SYS_GPIO1_LED;
        mbar2_writeLong(MCFSIM_GPIO1_OUT, val);   /* Set LED on */
 
        return 0;
@@ -57,13 +57,13 @@ phys_size_t initdram (int board_type) {
         *      RC = ([(RefreshTime/#rows) / (1/BusClk)] / 16) - 1
         */
 
-#ifdef CFG_FAST_CLK
+#ifdef CONFIG_SYS_FAST_CLK
        /*
         * Busclk=70MHz, RefreshTime=64ms, #rows=4096 (4K)
         * SO=1, NAM=0, COC=0, RTIM=01 (6clk refresh), RC=39
         */
        mbar_writeShort(MCFSIM_DCR, 0x8239);
-#elif CFG_PLL_BYPASS
+#elif CONFIG_SYS_PLL_BYPASS
        /*
         * Busclk=5.6448MHz, RefreshTime=64ms, #rows=8192 (8K)
         * SO=1, NAM=0, COC=0, RTIM=01 (6clk refresh), RC=02
@@ -101,7 +101,7 @@ phys_size_t initdram (int board_type) {
        mbar_writeLong(MCFSIM_DACR0, 0x0000b364);  /* Enable DACR0[IMRS] (bit 6); RE remains enabled */
        *((volatile unsigned long *) 0x800) = junk; /* Access RAM to initialize the mode register */
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 };
 
 
index 1bf1e9759b9388662e1764efeb9dabdb9959afab..08f767d106da63b23b9c3265bccd095705a3d826 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <asm/immap.h>
 
-#ifndef CFG_FLASH_CFI
+#ifndef CONFIG_SYS_FLASH_CFI
 typedef unsigned short FLASH_PORT_WIDTH;
 typedef volatile unsigned short FLASH_PORT_WIDTHV;
 
@@ -49,14 +49,14 @@ int flash_get_offsets(ulong base, flash_info_t * info);
 int write_word(flash_info_t * info, FPWV * dest, u16 data);
 void inline spin_wheel(void);
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 ulong flash_init(void)
 {
        ulong size = 0;
        ulong fbase = 0;
 
-       fbase = (ulong) CFG_FLASH_BASE;
+       fbase = (ulong) CONFIG_SYS_FLASH_BASE;
        flash_get_size((FPWV *) fbase, &flash_info[0]);
        flash_get_offsets((ulong) fbase, &flash_info[0]);
        fbase += flash_info[0].size;
@@ -64,8 +64,8 @@ ulong flash_init(void)
 
        /* Protect monitor and environment sectors */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
 
        return size;
 }
@@ -77,8 +77,8 @@ int flash_get_offsets(ulong base, flash_info_t * info)
        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
 
                info->start[0] = base;
-               for (k = 0, j = 0; j < CFG_SST_SECT; j++, k++) {
-                       info->start[k + 1] = info->start[k] + CFG_SST_SECTSZ;
+               for (k = 0, j = 0; j < CONFIG_SYS_SST_SECT; j++, k++) {
+                       info->start[k + 1] = info->start[k] + CONFIG_SYS_SST_SECTSZ;
                        info->protect[k] = 0;
                }
        }
@@ -174,16 +174,16 @@ ulong flash_get_size(FPWV * addr, flash_info_t * info)
 
        info->sector_count = 0;
        info->size = 0;
-       info->sector_count = CFG_SST_SECT;
-       info->size = CFG_SST_SECT * CFG_SST_SECTSZ;
+       info->sector_count = CONFIG_SYS_SST_SECT;
+       info->size = CONFIG_SYS_SST_SECT * CONFIG_SYS_SST_SECTSZ;
 
        /* reset ID mode */
        *addr = (FPWV) 0x00F000F0;
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf("** ERROR: sector count %d > max (%d) **\n",
-                      info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                      info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        return (info->size);
@@ -235,7 +235,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        start = get_timer(0);
        last = start;
 
-       if ((s_last - s_first) == (CFG_SST_SECT - 1)) {
+       if ((s_last - s_first) == (CONFIG_SYS_SST_SECT - 1)) {
                if (prot == 0) {
                        addr = (FPWV *) info->start[0];
 
@@ -255,7 +255,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
                                        count = 0;
                                }
 
-                               if (get_timer(start) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf("Timeout\n");
                                        *addr = 0x00F0; /* reset to read mode */
 
@@ -271,7 +271,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
                                enable_interrupts();
 
                        return 0;
-               } else if (prot == CFG_SST_SECT) {
+               } else if (prot == CONFIG_SYS_SST_SECT) {
                        return 1;
                }
        }
@@ -294,7 +294,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
 
                                        flag = disable_interrupts();
 
-                                       base = (FPWV *) (CFG_FLASH_BASE);       /* First sector */
+                                       base = (FPWV *) (CONFIG_SYS_FLASH_BASE);        /* First sector */
 
                                        base[FLASH_CYCLE1] = 0x00AA;    /* unlock */
                                        base[FLASH_CYCLE2] = 0x0055;    /* unlock */
@@ -308,7 +308,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
 
                                        while ((*addr & 0x0080) != 0x0080) {
                                                if (get_timer(start) >
-                                                   CFG_FLASH_ERASE_TOUT) {
+                                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                                        printf("Timeout\n");
                                                        *addr = 0x00F0; /* reset to read mode */
 
@@ -424,7 +424,7 @@ int write_word(flash_info_t * info, FPWV * dest, u16 data)
                return (2);
        }
 
-       base = (FPWV *) (CFG_FLASH_BASE);
+       base = (FPWV *) (CONFIG_SYS_FLASH_BASE);
 
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts();
@@ -444,7 +444,7 @@ int write_word(flash_info_t * info, FPWV * dest, u16 data)
        /* data polling for D7 */
        while (res == 0
               && (*dest & (u8) 0x00800080) != (data & (u8) 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (u8) 0x00F000F0;        /* reset bank */
                        res = 1;
                }
index 2eb6a0444f9e6be8763b5d91896aca3a5f762b24..b39cd4d7a51349635fd1585b6883778f818b83d0 100644 (file)
@@ -45,7 +45,7 @@ phys_size_t initdram(int board_type)
        if (!(mbar_readLong(MCFSIM_DCR) & 0x8000)) {
                u32 RC, temp;
 
-               RC = (CFG_CLK / 1000000) >> 1;
+               RC = (CONFIG_SYS_CLK / 1000000) >> 1;
                RC = (RC * 15) >> 4;
 
                /* Initialize DRAM Control Register: DCR */
@@ -56,7 +56,7 @@ phys_size_t initdram(int board_type)
                __asm__("nop");
 
                /* Initialize DMR0 */
-               dramsize = (CFG_SDRAM_SIZE << 20);
+               dramsize = (CONFIG_SYS_SDRAM_SIZE << 20);
                temp = (dramsize - 1) & 0xFFFC0000;
                mbar_writeLong(MCFSIM_DMR0, temp | 1);
                __asm__("nop");
@@ -65,7 +65,7 @@ phys_size_t initdram(int board_type)
                __asm__("nop");
 
                /* Write to this block to initiate precharge */
-               *(u32 *) (CFG_SDRAM_BASE) = 0xa5a5a5a5;
+               *(u32 *) (CONFIG_SYS_SDRAM_BASE) = 0xa5a5a5a5;
                __asm__("nop");
 
                /* Set RE bit in DACR */
@@ -81,7 +81,7 @@ phys_size_t initdram(int board_type)
                               mbar_readLong(MCFSIM_DACR0) | 0x0040);
                __asm__("nop");
 
-               *(u32 *) (CFG_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
+               *(u32 *) (CONFIG_SYS_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
        }
 
        return dramsize;
@@ -104,7 +104,7 @@ int ide_preinit(void)
 
 void ide_set_reset(int idereset)
 {
-       volatile atac_t *ata = (atac_t *) CFG_ATA_BASE_ADDR;
+       volatile atac_t *ata = (atac_t *) CONFIG_SYS_ATA_BASE_ADDR;
        long period;
        /*  t1,  t2,  t3,  t4,  t5,  t6,  t9, tRD,  tA */
        int piotms[5][9] = { {70, 165, 60, 30, 50, 5, 20, 0, 35},       /* PIO 0 */
@@ -121,7 +121,7 @@ void ide_set_reset(int idereset)
                mbar2_writeLong(CIM_MISCCR, CIM_MISCCR_CPUEND);
 
 #define CALC_TIMING(t) (t + period - 1) / period
-               period = 1000000000 / (CFG_CLK / 2);    /* period in ns */
+               period = 1000000000 / (CONFIG_SYS_CLK / 2);     /* period in ns */
 
                /*ata->ton = CALC_TIMING (180); */
                ata->t1 = CALC_TIMING(piotms[2][0]);
index f3b1efdb28b4b6abe2989dd4a8d05144fd4f8e12..ae69f67b482f3be84e8e4ba277d6852ef249222b 100644 (file)
@@ -43,7 +43,7 @@ phys_size_t initdram(int board_type)
        if (!(mbar_readLong(MCFSIM_DCR) & 0x8000)) {
                u32 RC, dramsize;
 
-               RC = (CFG_CLK / 1000000) >> 1;
+               RC = (CONFIG_SYS_CLK / 1000000) >> 1;
                RC = (RC * 15) >> 4;
 
                /* Initialize DRAM Control Register: DCR */
@@ -54,7 +54,7 @@ phys_size_t initdram(int board_type)
                asm("nop");
 
                /* Initialize DMR0 */
-               dramsize = ((CFG_SDRAM_SIZE << 20) - 1) & 0xFFFC0000;
+               dramsize = ((CONFIG_SYS_SDRAM_SIZE << 20) - 1) & 0xFFFC0000;
                mbar_writeLong(MCFSIM_DMR0, dramsize | 1);
                asm("nop");
 
@@ -62,7 +62,7 @@ phys_size_t initdram(int board_type)
                asm("nop");
 
                /* Write to this block to initiate precharge */
-               *(u32 *) (CFG_SDRAM_BASE) = 0xa5a5a5a5;
+               *(u32 *) (CONFIG_SYS_SDRAM_BASE) = 0xa5a5a5a5;
                asm("nop");
 
                /* Set RE bit in DACR */
@@ -78,10 +78,10 @@ phys_size_t initdram(int board_type)
                               mbar_readLong(MCFSIM_DACR0) | 0x0040);
                asm("nop");
 
-               *(u32 *) (CFG_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
+               *(u32 *) (CONFIG_SYS_SDRAM_BASE + 0x800) = 0xa5a5a5a5;
        }
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 
 int testdram(void)
@@ -101,7 +101,7 @@ int ide_preinit(void)
 
 void ide_set_reset(int idereset)
 {
-       volatile atac_t *ata = (atac_t *) CFG_ATA_BASE_ADDR;
+       volatile atac_t *ata = (atac_t *) CONFIG_SYS_ATA_BASE_ADDR;
        long period;
        /*  t1,  t2,  t3,  t4,  t5,  t6,  t9, tRD,  tA */
        int piotms[5][9] = { {70, 165, 60, 30, 50, 5, 20, 0, 35},       /* PIO 0 */
@@ -118,7 +118,7 @@ void ide_set_reset(int idereset)
                mbar2_writeLong(CIM_MISCCR, CIM_MISCCR_CPUEND);
 
 #define CALC_TIMING(t) (t + period - 1) / period
-               period = 1000000000 / (CFG_CLK / 2);    /* period in ns */
+               period = 1000000000 / (CONFIG_SYS_CLK / 2);     /* period in ns */
 
                /*ata->ton = CALC_TIMING (180); */
                ata->t1 = CALC_TIMING(piotms[2][0]);
index e089d5f02f1ff7c473d90d884c4207ca99dbc49e..5505cc42c604a15a8f7baef7d8adc5793ea7e239 100644 (file)
@@ -66,7 +66,7 @@ phys_size_t initdram (int board_type) {
                 * PS: 32bit port size
                 */
                mbar_writeLong(MCF_SDRAMC_DACR0,
-                               MCF_SDRAMC_DACRn_BA(CFG_SDRAM_BASE>>18)
+                               MCF_SDRAMC_DACRn_BA(CONFIG_SYS_SDRAM_BASE>>18)
                                | MCF_SDRAMC_DACRn_CASL(1)
                                | MCF_SDRAMC_DACRn_CBM(3)
                                | MCF_SDRAMC_DACRn_PS(0));
@@ -85,7 +85,7 @@ phys_size_t initdram (int board_type) {
                        asm(" nop");
 
                /* Write to this block to initiate precharge */
-               *(u32 *)(CFG_SDRAM_BASE) = 0xa5a5a5a5;
+               *(u32 *)(CONFIG_SYS_SDRAM_BASE) = 0xa5a5a5a5;
 
                /* Set RE bit in DACR */
                mbar_writeLong(MCF_SDRAMC_DACR0, mbar_readLong(MCF_SDRAMC_DACR0)
@@ -108,10 +108,10 @@ phys_size_t initdram (int board_type) {
                 * Burst Type = Sequential
                 * Burst Length = 1
                 */
-               *(u32 *)(CFG_SDRAM_BASE + 0x400) = 0xa5a5a5a5;
+               *(u32 *)(CONFIG_SYS_SDRAM_BASE + 0x400) = 0xa5a5a5a5;
        }
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 };
 
 int testdram (void) {
index 78a7028bcfae36cff2240b198d0312d698e8d3d8..e79fa195842ce234fb129b1d1ce495a7f266a615 100644 (file)
@@ -38,14 +38,14 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
 {
        if (setclear) {
                /* Enable Ethernet pins */
-               mbar_writeByte(MCF_GPIO_PAR_FECI2C, CFG_FECI2C);
+               mbar_writeByte(MCF_GPIO_PAR_FECI2C, CONFIG_SYS_FECI2C);
        } else {
        }
 
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -131,9 +131,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -198,7 +198,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index ea0b1fd7e0942a126cae6585a208b10bbb32b82d..586a2cfc63267ed3e15ef5ff12b4ab439f2e1ed6 100644 (file)
 
 #include <common.h>
 
-#define PHYS_FLASH_1 CFG_FLASH_BASE
+#define PHYS_FLASH_1 CONFIG_SYS_FLASH_BASE
 #define FLASH_BANK_SIZE 0x200000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 void flash_print_info (flash_info_t * info)
 {
@@ -74,15 +74,15 @@ unsigned long flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                        (AMD_MANUFACT & FLASH_VENDMASK) |
                        (AMD_ID_PL160CB & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -113,8 +113,8 @@ unsigned long flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + 0x3ffff, &flash_info[0]);
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + 0x3ffff, &flash_info[0]);
 
        return size;
 }
@@ -128,8 +128,8 @@ unsigned long flash_init (void)
 #define CMD_PROGRAM            0x00A0
 #define CMD_UNLOCK_BYPASS      0x0020
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00000555<<1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x000002AA<<1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555<<1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA<<1)))
 
 #define BIT_ERASE_DONE         0x0080
 #define BIT_RDY_MASK           0x0080
@@ -211,7 +211,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                result = *addr;
 
                                /* check timeout */
-                               if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip1 = TMO;
                                        break;
@@ -299,7 +299,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer (0) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        chip1 = ERR | TMO;
                        break;
                }
index d17cb2ef98d8e3536af6bf946ce430b353448fd5..902ca3aac672fbf45cb21a31b168c9c7fb98a087 100644 (file)
@@ -40,7 +40,7 @@ phys_size_t initdram (int board_type) {
        /* Dummy write to start SDRAM */
        *((volatile unsigned long *)0) = 0;
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
        };
 
 int testdram (void) {
index b30ba803f9215c8b02e124edf0ab72b09e2a5ab0..161c694b82e46873a198c8a37821a27d3bf887be 100644 (file)
@@ -45,7 +45,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -131,9 +131,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -198,7 +198,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index be19e02751cb055ae7d6e780562cc0a684b772d1..35c9b2018c17b74336484434f56cb4ef63bf5024 100644 (file)
@@ -44,7 +44,7 @@ phys_size_t initdram(int board_type)
        gpio_reg->par_sdram = 0x3FF; /* Enable SDRAM */
 
        /* Set up chip select */
-       sdp->sdbar0 = CFG_SDRAM_BASE;
+       sdp->sdbar0 = CONFIG_SYS_SDRAM_BASE;
        sdp->sdbmr0 = MCF_SDRAMC_SDMRn_BAM_32M | MCF_SDRAMC_SDMRn_V;
 
        /* Set up timing */
@@ -58,34 +58,34 @@ phys_size_t initdram(int board_type)
        sdp->sdcr |= MCF_SDRAMC_SDCR_IPALL;
 
        /* Dummy write to start SDRAM */
-       *((volatile unsigned long *)CFG_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Send LEMR */
        sdp->sdmr = MCF_SDRAMC_SDMR_BNKAD_LEMR
                        | MCF_SDRAMC_SDMR_AD(0x0)
                        | MCF_SDRAMC_SDMR_CMD;
-       *((volatile unsigned long *)CFG_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Send LMR */
        sdp->sdmr = 0x058d0000;
-       *((volatile unsigned long *)CFG_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Stop sending commands */
        sdp->sdmr &= ~(MCF_SDRAMC_SDMR_CMD);
 
        /* Set precharge */
        sdp->sdcr |= MCF_SDRAMC_SDCR_IPALL;
-       *((volatile unsigned long *)CFG_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Stop manual precharge, send 2 IREF */
        sdp->sdcr &= ~(MCF_SDRAMC_SDCR_IPALL);
        sdp->sdcr |= MCF_SDRAMC_SDCR_IREF;
-       *((volatile unsigned long *)CFG_SDRAM_BASE) = 0xa5a59696;
-       *((volatile unsigned long *)CFG_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Write mode register, clear reset DLL */
        sdp->sdmr = 0x018d0000;
-       *((volatile unsigned long *)CFG_SDRAM_BASE) = 0xa5a59696;
+       *((volatile unsigned long *)CONFIG_SYS_SDRAM_BASE) = 0xa5a59696;
 
        /* Stop sending commands */
        sdp->sdmr &= ~(MCF_SDRAMC_SDMR_CMD);
@@ -100,7 +100,7 @@ phys_size_t initdram(int board_type)
                | MCF_SDRAMC_SDCR_RCNT((SDRAM_TREFI/(PERIOD*64)) - 1 + 1)
                | MCF_SDRAMC_SDCR_DQS_OE(0x3);
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 };
 
 int testdram(void)
index 6c7ace95666ac9b0ed02aadfb9dbddd94990cdf8..706d8d6b24e07240e8903ce7988f050a2dde5ea6 100644 (file)
@@ -41,7 +41,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
 
        if (setclear) {
                /* Enable Ethernet pins */
-               if (info->iobase == CFG_FEC0_IOBASE) {
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE) {
                        gpio->par_feci2c |= 0x0F00;
                        gpio->par_fec0hl |= 0xC0;
                } else {
@@ -49,7 +49,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
                        gpio->par_fec1hl |= 0xC0;
                }
        } else {
-               if (info->iobase == CFG_FEC0_IOBASE) {
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE) {
                        gpio->par_feci2c &= ~0x0F00;
                        gpio->par_fec0hl &= ~0xC0;
                } else {
@@ -61,7 +61,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -147,9 +147,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif /* CFG_DISCOVER_PHY || (CONFIG_COMMANDS & CONFIG_CMD_MII) */
+#endif /* CONFIG_SYS_DISCOVER_PHY || (CONFIG_COMMANDS & CONFIG_CMD_MII) */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -214,7 +214,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index 31d69231a88633abc9892a0f07bdfa1bbde529d9..b0c9fc83f2729f06b69b2b705221396a3a29104e 100644 (file)
@@ -36,7 +36,7 @@ phys_size_t initdram (int board_type)
 {
        u32 dramsize, i, dramclk;
 
-       dramsize = CFG_SDRAM_SIZE * 0x100000;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
                        break;
@@ -45,7 +45,7 @@ phys_size_t initdram (int board_type)
 
        if (!(MCFSDRAMC_DACR0 & MCFSDRAMC_DACR_RE))
        {
-               dramclk = gd->bus_clk / (CFG_HZ * CFG_HZ);
+               dramclk = gd->bus_clk / (CONFIG_SYS_HZ * CONFIG_SYS_HZ);
 
                /* Initialize DRAM Control Register: DCR */
                MCFSDRAMC_DCR = (0
@@ -55,7 +55,7 @@ phys_size_t initdram (int board_type)
 
                /* Initialize DACR0 */
                MCFSDRAMC_DACR0 = (0
-                       | MCFSDRAMC_DACR_BASE(CFG_SDRAM_BASE)
+                       | MCFSDRAMC_DACR_BASE(CONFIG_SYS_SDRAM_BASE)
                        | MCFSDRAMC_DACR_CASL(1)
                        | MCFSDRAMC_DACR_CBM(3)
                        | MCFSDRAMC_DACR_PS_32);
@@ -77,7 +77,7 @@ phys_size_t initdram (int board_type)
                }
 
                /* Write to this block to initiate precharge */
-               *(u32 *)(CFG_SDRAM_BASE) = 0xA5A59696;
+               *(u32 *)(CONFIG_SYS_SDRAM_BASE) = 0xA5A59696;
                asm("nop");
 
                /* Set RE (bit 15) in DACR */
@@ -94,7 +94,7 @@ phys_size_t initdram (int board_type)
                asm("nop");
 
                /* Write to the SDRAM Mode Register */
-               *(u32 *)(CFG_SDRAM_BASE + 0x400) = 0xA5A59696;
+               *(u32 *)(CONFIG_SYS_SDRAM_BASE + 0x400) = 0xA5A59696;
        }
        return dramsize;
 }
index 8ae2ec69ce39ee178446af2c3c6b0339cfc15a07..7f925142c90c447030f6fc560c69b6c04dc4127f 100644 (file)
@@ -38,15 +38,15 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
 {
        if (setclear) {
                MCFGPIO_PASPAR |= 0x0F00;
-               MCFGPIO_PEHLPAR = CFG_PEHLPAR;
+               MCFGPIO_PEHLPAR = CONFIG_SYS_PEHLPAR;
        } else {
                MCFGPIO_PASPAR &= 0xF0FF;
-               MCFGPIO_PEHLPAR &= ~CFG_PEHLPAR;
+               MCFGPIO_PEHLPAR &= ~CONFIG_SYS_PEHLPAR;
        }
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -132,9 +132,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -199,7 +199,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index f9fa9fb9cf2b2d6de83ab143ca7f764a1eb3446d..b4df22f1f23caef88bc404fcc855f9e1c8a5181e 100644 (file)
@@ -42,7 +42,7 @@ phys_size_t initdram(int board_type)
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       dramsize = CFG_SDRAM_SIZE * 0x100000;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -50,29 +50,29 @@ phys_size_t initdram(int board_type)
        }
        i--;
 
-       sdram->cs0 = (CFG_SDRAM_BASE | i);
-       sdram->cfg1 = CFG_SDRAM_CFG1;
-       sdram->cfg2 = CFG_SDRAM_CFG2;
+       sdram->cs0 = (CONFIG_SYS_SDRAM_BASE | i);
+       sdram->cfg1 = CONFIG_SYS_SDRAM_CFG1;
+       sdram->cfg2 = CONFIG_SYS_SDRAM_CFG2;
 
        /* Issue PALL */
-       sdram->ctrl = CFG_SDRAM_CTRL | 2;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Issue LEMR */
-       sdram->mode = CFG_SDRAM_EMOD;
-       sdram->mode = (CFG_SDRAM_MODE | 0x04000000);
+       sdram->mode = CONFIG_SYS_SDRAM_EMOD;
+       sdram->mode = (CONFIG_SYS_SDRAM_MODE | 0x04000000);
 
        udelay(500);
 
        /* Issue PALL */
-       sdram->ctrl = (CFG_SDRAM_CTRL | 2);
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL | 2);
 
        /* Perform two refresh cycles */
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
 
-       sdram->mode = CFG_SDRAM_MODE;
+       sdram->mode = CONFIG_SYS_SDRAM_MODE;
 
-       sdram->ctrl = (CFG_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
 
        udelay(100);
 
index 8f6abf3eebe37f5341314c5bb12bae238b75d6ba..c0f58179651286910a4cd801b225854be013ce78 100644 (file)
@@ -50,7 +50,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -134,9 +134,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -201,7 +201,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index f84912e37ece842fafb0f4e327262ee620a1c5f2..82492f69db0c29aac05bfd82866a3cf43247956b 100644 (file)
@@ -83,7 +83,7 @@ int board_nand_init(struct nand_chip *nand)
 {
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 
-       *((volatile u16 *)CFG_LATCH_ADDR) |= 0x0004;
+       *((volatile u16 *)CONFIG_SYS_LATCH_ADDR) |= 0x0004;
 
        /* set up pin configuration */
        gpio->par_timer &= ~GPIO_PAR_TIN3_TIN3;
index a269ee6d44cd8b8bf1fdfdd7e8d9d6cd42738bfb..376de4b9522f64f10138d1edcbddffbf42984a79 100644 (file)
@@ -42,7 +42,7 @@ phys_size_t initdram(int board_type)
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       dramsize = CFG_SDRAM_SIZE * 0x100000;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -50,29 +50,29 @@ phys_size_t initdram(int board_type)
        }
        i--;
 
-       sdram->cs0 = (CFG_SDRAM_BASE | i);
-       sdram->cfg1 = CFG_SDRAM_CFG1;
-       sdram->cfg2 = CFG_SDRAM_CFG2;
+       sdram->cs0 = (CONFIG_SYS_SDRAM_BASE | i);
+       sdram->cfg1 = CONFIG_SYS_SDRAM_CFG1;
+       sdram->cfg2 = CONFIG_SYS_SDRAM_CFG2;
 
        /* Issue PALL */
-       sdram->ctrl = CFG_SDRAM_CTRL | 2;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Issue LEMR */
-       sdram->mode = CFG_SDRAM_EMOD;
-       sdram->mode = (CFG_SDRAM_MODE | 0x04000000);
+       sdram->mode = CONFIG_SYS_SDRAM_EMOD;
+       sdram->mode = (CONFIG_SYS_SDRAM_MODE | 0x04000000);
 
        udelay(500);
 
        /* Issue PALL */
-       sdram->ctrl = (CFG_SDRAM_CTRL | 2);
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL | 2);
 
        /* Perform two refresh cycles */
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
 
-       sdram->mode = CFG_SDRAM_MODE;
+       sdram->mode = CONFIG_SYS_SDRAM_MODE;
 
-       sdram->ctrl = (CFG_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
 
        udelay(100);
 
index 8f6abf3eebe37f5341314c5bb12bae238b75d6ba..c0f58179651286910a4cd801b225854be013ce78 100644 (file)
@@ -50,7 +50,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -134,9 +134,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -201,7 +201,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index 404a9c386dffd6de9df9ab81adb0321c62fe7dbb..d01b819ec89e628b3663e28515dac6d278594bc7 100644 (file)
@@ -67,7 +67,7 @@ int board_nand_init(struct nand_chip *nand)
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
        volatile fbcs_t *fbcs = (fbcs_t *) MMAP_FBCS;
 
-       *((volatile u16 *)CFG_LATCH_ADDR) |= 0x0004;
+       *((volatile u16 *)CONFIG_SYS_LATCH_ADDR) |= 0x0004;
        fbcs->csmr2 &= ~FBCS_CSMR_WP;
 
        /* set up pin configuration */
index 768f40bb0aa83efe9ba1637738c51a0a57cbe95d..088c8c4d1ac9c9de5dd3dc6b9dfc21505c96cfa0 100644 (file)
@@ -49,16 +49,16 @@ phys_size_t initdram(int board_type)
         * Serial Boot: The dram is already initialized in start.S
         * only require to return DRAM size
         */
-       dramsize = CFG_SDRAM_SIZE * 0x100000;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
 #else
        volatile sdramc_t *sdram = (volatile sdramc_t *)(MMAP_SDRAM);
        volatile gpio_t *gpio = (volatile gpio_t *)(MMAP_GPIO);
        u32 i;
 
-       dramsize = CFG_SDRAM_SIZE * 0x100000;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
 
-       if ((sdram->sdcfg1 == CFG_SDRAM_CFG1) &&
-           (sdram->sdcfg2 == CFG_SDRAM_CFG2))
+       if ((sdram->sdcfg1 == CONFIG_SYS_SDRAM_CFG1) &&
+           (sdram->sdcfg2 == CONFIG_SYS_SDRAM_CFG2))
                return dramsize;
 
        for (i = 0x13; i < 0x20; i++) {
@@ -67,32 +67,32 @@ phys_size_t initdram(int board_type)
        }
        i--;
 
-       gpio->mscr_sdram = CFG_SDRAM_DRV_STRENGTH;
+       gpio->mscr_sdram = CONFIG_SYS_SDRAM_DRV_STRENGTH;
 
-       sdram->sdcs0 = (CFG_SDRAM_BASE | i);
+       sdram->sdcs0 = (CONFIG_SYS_SDRAM_BASE | i);
 
-       sdram->sdcfg1 = CFG_SDRAM_CFG1;
-       sdram->sdcfg2 = CFG_SDRAM_CFG2;
+       sdram->sdcfg1 = CONFIG_SYS_SDRAM_CFG1;
+       sdram->sdcfg2 = CONFIG_SYS_SDRAM_CFG2;
 
        udelay(200);
 
        /* Issue PALL */
-       sdram->sdcr = CFG_SDRAM_CTRL | 2;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 2;
        __asm__("nop");
 
        /* Perform two refresh cycles */
-       sdram->sdcr = CFG_SDRAM_CTRL | 4;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 4;
        __asm__("nop");
-       sdram->sdcr = CFG_SDRAM_CTRL | 4;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 4;
        __asm__("nop");
 
        /* Issue LEMR */
-       sdram->sdmr = CFG_SDRAM_MODE;
+       sdram->sdmr = CONFIG_SYS_SDRAM_MODE;
        __asm__("nop");
-       sdram->sdmr = CFG_SDRAM_EMOD;
+       sdram->sdmr = CONFIG_SYS_SDRAM_EMOD;
        __asm__("nop");
 
-       sdram->sdcr = (CFG_SDRAM_CTRL & ~0x80000000) | 0x10000000;
+       sdram->sdcr = (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000000;
 
        udelay(100);
 #endif
index 5a4330c74a69c112efbd6700dd3f2395509ba608..6e24736f181677bb9e54083ff8d13e20d50331f4 100644 (file)
@@ -43,7 +43,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
                gpio->par_feci2c |=
                    (GPIO_PAR_FECI2C_MDC0_MDC0 | GPIO_PAR_FECI2C_MDIO0_MDIO0);
 
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_fec |= GPIO_PAR_FEC_FEC0_RMII_GPIO;
                else
                        gpio->par_fec |= GPIO_PAR_FEC_FEC1_RMII_ATA;
@@ -51,7 +51,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
                gpio->par_feci2c &=
                    ~(GPIO_PAR_FECI2C_MDC0_MDC0 | GPIO_PAR_FECI2C_MDIO0_MDIO0);
 
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_fec &= GPIO_PAR_FEC_FEC0_MASK;
                else
                        gpio->par_fec &= GPIO_PAR_FEC_FEC1_MASK;
@@ -59,7 +59,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -135,9 +135,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || (CONFIG_MII) */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || (CONFIG_MII) */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -202,7 +202,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__ ((weak, alias("__mii_init")));
 
index 100682a261e0152c9cf1561b7a40dfade211219e..293b5b0e41d6cf14af64ec7c80e04f45fbd0b69d 100644 (file)
@@ -45,13 +45,13 @@ phys_size_t initdram(int board_type)
         * Serial Boot: The dram is already initialized in start.S
         * only require to return DRAM size
         */
-       dramsize = CFG_SDRAM_SIZE * 0x100000 >> 1;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000 >> 1;
 #else
        volatile sdramc_t *sdram = (volatile sdramc_t *)(MMAP_SDRAM);
        volatile gpio_t *gpio = (volatile gpio_t *)(MMAP_GPIO);
        u32 i;
 
-       dramsize = CFG_SDRAM_SIZE * 0x100000 >> 1;
+       dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000 >> 1;
 
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
@@ -59,33 +59,33 @@ phys_size_t initdram(int board_type)
        }
        i--;
 
-       gpio->mscr_sdram = CFG_SDRAM_DRV_STRENGTH;
+       gpio->mscr_sdram = CONFIG_SYS_SDRAM_DRV_STRENGTH;
 
-       sdram->sdcs0 = (CFG_SDRAM_BASE | i);
-       sdram->sdcs1 = (CFG_SDRAM_BASE1 | i);
+       sdram->sdcs0 = (CONFIG_SYS_SDRAM_BASE | i);
+       sdram->sdcs1 = (CONFIG_SYS_SDRAM_BASE1 | i);
 
-       sdram->sdcfg1 = CFG_SDRAM_CFG1;
-       sdram->sdcfg2 = CFG_SDRAM_CFG2;
+       sdram->sdcfg1 = CONFIG_SYS_SDRAM_CFG1;
+       sdram->sdcfg2 = CONFIG_SYS_SDRAM_CFG2;
 
        /* Issue PALL */
-       sdram->sdcr = CFG_SDRAM_CTRL | 2;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Issue LEMR */
-       sdram->sdmr = CFG_SDRAM_EMOD | 0x408;
-       sdram->sdmr = CFG_SDRAM_MODE | 0x300;
+       sdram->sdmr = CONFIG_SYS_SDRAM_EMOD | 0x408;
+       sdram->sdmr = CONFIG_SYS_SDRAM_MODE | 0x300;
 
        udelay(500);
 
        /* Issue PALL */
-       sdram->sdcr = CFG_SDRAM_CTRL | 2;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Perform two refresh cycles */
-       sdram->sdcr = CFG_SDRAM_CTRL | 4;
-       sdram->sdcr = CFG_SDRAM_CTRL | 4;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 4;
+       sdram->sdcr = CONFIG_SYS_SDRAM_CTRL | 4;
 
-       sdram->sdmr = CFG_SDRAM_MODE | 0x200;
+       sdram->sdmr = CONFIG_SYS_SDRAM_MODE | 0x200;
 
-       sdram->sdcr = (CFG_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
+       sdram->sdcr = (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000c00;
 
        udelay(100);
 #endif
@@ -175,11 +175,11 @@ void pci_init_board(void)
 #include <flash.h>
 ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
 {
-       int sect[] = CFG_ATMEL_SECT;
-       int sectsz[] = CFG_ATMEL_SECTSZ;
+       int sect[] = CONFIG_SYS_ATMEL_SECT;
+       int sectsz[] = CONFIG_SYS_ATMEL_SECTSZ;
        int i, j, k;
 
-       if (base != CFG_ATMEL_BASE)
+       if (base != CONFIG_SYS_ATMEL_BASE)
                return 0;
 
        info->flash_id          = 0x01000000;
@@ -205,9 +205,9 @@ ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
        info->name              = "CFI conformant";
 
        info->size              = 0;
-       info->sector_count      = CFG_ATMEL_TOTALSECT;
+       info->sector_count      = CONFIG_SYS_ATMEL_TOTALSECT;
        info->start[0] = base;
-       for (k = 0, i = 0; i < CFG_ATMEL_REGION; i++) {
+       for (k = 0, i = 0; i < CONFIG_SYS_ATMEL_REGION; i++) {
                info->size += sect[i] * sectsz[i];
 
                for (j = 0; j < sect[i]; j++, k++) {
@@ -218,4 +218,4 @@ ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
 
        return 1;
 }
-#endif                         /* CFG_FLASH_CFI */
+#endif                         /* CONFIG_SYS_FLASH_CFI */
index 0be5439ef9522299eca598bff6b0e396f73bdf30..c19519144ce946142383f3aef3f954b945875536 100644 (file)
@@ -43,7 +43,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
                gpio->par_feci2c |=
                    (GPIO_PAR_FECI2C_MDC0_MDC0 | GPIO_PAR_FECI2C_MDIO0_MDIO0);
 
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_fec |= GPIO_PAR_FEC_FEC0_RMII_GPIO;
                else
                        gpio->par_fec |= GPIO_PAR_FEC_FEC1_RMII_ATA;
@@ -51,7 +51,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
                gpio->par_feci2c &=
                    ~(GPIO_PAR_FECI2C_MDC0_MDC0 | GPIO_PAR_FECI2C_MDIO0_MDIO0);
 
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_fec &= GPIO_PAR_FEC_FEC0_MASK;
                else
                        gpio->par_fec &= GPIO_PAR_FEC_FEC1_MASK;
@@ -59,7 +59,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -152,9 +152,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || (CONFIG_MII) */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || (CONFIG_MII) */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -219,7 +219,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index 6d7d27090f1f950a33f13f6e21ee7b284b96f7bc..9f1ec3854c098f69f66c03133329f1dc4a3b26c0 100644 (file)
@@ -43,53 +43,53 @@ phys_size_t initdram(int board_type)
        volatile siu_t *siu = (siu_t *) (MMAP_SIU);
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
-#ifdef CFG_DRAMSZ1
+#ifdef CONFIG_SYS_DRAMSZ1
        u32 temp;
 #endif
 
-       siu->drv = CFG_SDRAM_DRVSTRENGTH;
+       siu->drv = CONFIG_SYS_SDRAM_DRVSTRENGTH;
 
-       dramsize = CFG_DRAMSZ * 0x100000;
+       dramsize = CONFIG_SYS_DRAMSZ * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
                        break;
        }
        i--;
-       siu->cs0cfg = (CFG_SDRAM_BASE | i);
+       siu->cs0cfg = (CONFIG_SYS_SDRAM_BASE | i);
 
-#ifdef CFG_DRAMSZ1
-       temp = CFG_DRAMSZ1 * 0x100000;
+#ifdef CONFIG_SYS_DRAMSZ1
+       temp = CONFIG_SYS_DRAMSZ1 * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (temp == (1 << i))
                        break;
        }
        i--;
        dramsize += temp;
-       siu->cs1cfg = ((CFG_SDRAM_BASE + temp) | i);
+       siu->cs1cfg = ((CONFIG_SYS_SDRAM_BASE + temp) | i);
 #endif
 
-       sdram->cfg1 = CFG_SDRAM_CFG1;
-       sdram->cfg2 = CFG_SDRAM_CFG2;
+       sdram->cfg1 = CONFIG_SYS_SDRAM_CFG1;
+       sdram->cfg2 = CONFIG_SYS_SDRAM_CFG2;
 
        /* Issue PALL */
-       sdram->ctrl = CFG_SDRAM_CTRL | 2;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Issue LEMR */
-       sdram->mode = CFG_SDRAM_EMOD;
-       sdram->mode = (CFG_SDRAM_MODE | 0x04000000);
+       sdram->mode = CONFIG_SYS_SDRAM_EMOD;
+       sdram->mode = (CONFIG_SYS_SDRAM_MODE | 0x04000000);
 
        udelay(500);
 
        /* Issue PALL */
-       sdram->ctrl = (CFG_SDRAM_CTRL | 2);
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL | 2);
 
        /* Perform two refresh cycles */
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
 
-       sdram->mode = CFG_SDRAM_MODE;
+       sdram->mode = CONFIG_SYS_SDRAM_MODE;
 
-       sdram->ctrl = (CFG_SDRAM_CTRL & ~0x80000000) | 0x10000F00;
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00;
 
        udelay(100);
 
index 5b2683b6c204f936f2e6f0b93655dd542b8587ed..4d11506d4ab66543d368184db236cf25d2d4ec06 100644 (file)
@@ -41,12 +41,12 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        struct fec_info_dma *info = (struct fec_info_dma *)dev->priv;
 
        if (setclear) {
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_feci2cirq |= 0xF000;
                else
                        gpio->par_feci2cirq |= 0x0FC0;
        } else {
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_feci2cirq &= 0x0FFF;
                else
                        gpio->par_feci2cirq &= 0xF03F;
@@ -54,7 +54,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -140,9 +140,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -217,7 +217,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__ ((weak, alias("__mii_init")));
 
index e6510c9559f9bd632b4a17937eb2b4a3963143c8..4a2a5c78fb7441da69254b9709015d7618842196 100644 (file)
@@ -44,49 +44,49 @@ phys_size_t initdram(int board_type)
        volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
        u32 dramsize, i;
 
-       siu->drv = CFG_SDRAM_DRVSTRENGTH;
+       siu->drv = CONFIG_SYS_SDRAM_DRVSTRENGTH;
 
-       dramsize = CFG_DRAMSZ * 0x100000;
+       dramsize = CONFIG_SYS_DRAMSZ * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (dramsize == (1 << i))
                        break;
        }
        i--;
-       siu->cs0cfg = (CFG_SDRAM_BASE | i);
+       siu->cs0cfg = (CONFIG_SYS_SDRAM_BASE | i);
 
-#ifdef CFG_DRAMSZ1
-       temp = CFG_DRAMSZ1 * 0x100000;
+#ifdef CONFIG_SYS_DRAMSZ1
+       temp = CONFIG_SYS_DRAMSZ1 * 0x100000;
        for (i = 0x13; i < 0x20; i++) {
                if (temp == (1 << i))
                        break;
        }
        i--;
        dramsize += temp;
-       siu->cs1cfg = ((CFG_SDRAM_BASE + temp) | i);
+       siu->cs1cfg = ((CONFIG_SYS_SDRAM_BASE + temp) | i);
 #endif
 
-       sdram->cfg1 = CFG_SDRAM_CFG1;
-       sdram->cfg2 = CFG_SDRAM_CFG2;
+       sdram->cfg1 = CONFIG_SYS_SDRAM_CFG1;
+       sdram->cfg2 = CONFIG_SYS_SDRAM_CFG2;
 
        /* Issue PALL */
-       sdram->ctrl = CFG_SDRAM_CTRL | 2;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 2;
 
        /* Issue LEMR */
-       sdram->mode = CFG_SDRAM_EMOD;
-       sdram->mode = (CFG_SDRAM_MODE | 0x04000000);
+       sdram->mode = CONFIG_SYS_SDRAM_EMOD;
+       sdram->mode = (CONFIG_SYS_SDRAM_MODE | 0x04000000);
 
        udelay(500);
 
        /* Issue PALL */
-       sdram->ctrl = (CFG_SDRAM_CTRL | 2);
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL | 2);
 
        /* Perform two refresh cycles */
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
-       sdram->ctrl = CFG_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
+       sdram->ctrl = CONFIG_SYS_SDRAM_CTRL | 4;
 
-       sdram->mode = CFG_SDRAM_MODE;
+       sdram->mode = CONFIG_SYS_SDRAM_MODE;
 
-       sdram->ctrl = (CFG_SDRAM_CTRL & ~0x80000000) | 0x10000F00;
+       sdram->ctrl = (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000F00;
 
        udelay(100);
 
index 5b2683b6c204f936f2e6f0b93655dd542b8587ed..4d11506d4ab66543d368184db236cf25d2d4ec06 100644 (file)
@@ -41,12 +41,12 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        struct fec_info_dma *info = (struct fec_info_dma *)dev->priv;
 
        if (setclear) {
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_feci2cirq |= 0xF000;
                else
                        gpio->par_feci2cirq |= 0x0FC0;
        } else {
-               if (info->iobase == CFG_FEC0_IOBASE)
+               if (info->iobase == CONFIG_SYS_FEC0_IOBASE)
                        gpio->par_feci2cirq &= 0x0FFF;
                else
                        gpio->par_feci2cirq &= 0xF03F;
@@ -54,7 +54,7 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -140,9 +140,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -217,7 +217,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__ ((weak, alias("__mii_init")));
 
index 521301fcecc31dc71cd3dc9a6b68501fc6281e05..b9495fd3449c5a059d0fa6e2d9ddef0989fe88d9 100644 (file)
@@ -123,7 +123,7 @@ board_asm_init:
 
 /* Initialize pointer to Tsi108 register space */
 
-       LOAD_PTR(r29,CFG_TSI108_CSR_RST_BASE)/* r29 - pointer to tsi108 CSR space */
+       LOAD_PTR(r29,CONFIG_SYS_TSI108_CSR_RST_BASE)/* r29 - pointer to tsi108 CSR space */
        ori r4,r29,TSI108_PB_REG_OFFSET
 
 /* Check Processor Version Number */
@@ -214,12 +214,12 @@ do_tsi108_init:
 
        ori r4,r29,TSI108_PB_REG_OFFSET
 
-#if (CFG_TSI108_CSR_BASE != CFG_TSI108_CSR_RST_BASE)
+#if (CONFIG_SYS_TSI108_CSR_BASE != CONFIG_SYS_TSI108_CSR_RST_BASE)
        /* Relocate (if required) Tsi108 registers. Set new value for
         * PB_REG_BAR:
         * Note we are in the 32-bit address mode.
         */
-       LOAD_U32(r5,(CFG_TSI108_CSR_BASE | 0x01)) /* PB_REG_BAR: BA + EN */
+       LOAD_U32(r5,(CONFIG_SYS_TSI108_CSR_BASE | 0x01)) /* PB_REG_BAR: BA + EN */
        stw     r5,PB_REG_BAR(r4)
        andis.  r29,r5,0xFFFF
        sync
index cfdbed539394875bfff82886a8cdb9ee85602a33..117b951c5dd3523bae744cb7841331b59f3dc207 100644 (file)
@@ -60,7 +60,7 @@ int checkboard (void)
 {
        int l_type = 0;
 
-       printf ("BOARD: %s\n", CFG_BOARD_NAME);
+       printf ("BOARD: %s\n", CONFIG_SYS_BOARD_NAME);
        return (l_type);
 }
 
index 9c40b72a18bfa207355258d38d33e2873710a676..74bb564ed9d1dc8f3770f7f689c438415187b2af 100644 (file)
@@ -88,7 +88,7 @@ PB2OCN_LUT_ENTRY pb2ocn_lut1[32] = {
        {0x00000000, 0x00000240}  /* PBA=0xFF00_0000 -> HLP : (Translation Enabled + Byte-Swap)*/
 };
 
-#ifdef CFG_CLK_SPREAD
+#ifdef CONFIG_SYS_CLK_SPREAD
 typedef struct {
        ulong ctrl0;
        ulong ctrl1;
@@ -111,7 +111,7 @@ static PLL_CTRL_SET pll0_config[8] = {
        {0x005c0044, 0x00000039},       /* 6: CG_PB_CLKO = 200 MHz */
        {0x004f0044, 0x0000003e}        /* 7: CG_PB_CLKO = 233 MHz */
 };
-#endif /* CFG_CLK_SPREAD */
+#endif /* CONFIG_SYS_CLK_SPREAD */
 
 /*
  * Prosessor Bus Clock (in MHz) defined by CG_PB_SELECT
@@ -129,7 +129,7 @@ unsigned long get_board_bus_clk (void)
        ulong i;
 
        /* Detect PB clock freq. */
-       i = in32(CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PWRUP_STATUS);
+       i = in32(CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PWRUP_STATUS);
        i = (i >> 16) & 0x07;   /* Get PB PLL multiplier */
 
        return pb_clk_sel[i] * 1000000;
@@ -146,7 +146,7 @@ int board_early_init_f (void)
        ulong i;
 
        gd->mem_clk = 0;
-       i = in32 (CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET +
+       i = in32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET +
                        CG_PWRUP_STATUS);
        i = (i >> 20) & 0x07;   /* Get GD PLL multiplier */
        switch (i) {
@@ -182,7 +182,7 @@ int board_early_init_r (void)
        volatile ulong *reg_ptr;
 
        reg_ptr =
-               (ulong *) (CFG_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + 0x900);
+               (ulong *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + 0x900);
 
        for (i = 0; i < 32; i++) {
                *reg_ptr++ = 0x00000201;        /* SWAP ENABLED */
@@ -194,7 +194,7 @@ int board_early_init_r (void)
 
        /* Setup PB_OCN_BAR2: size 256B + ENable @ 0x0_80000000 */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR2,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR2,
                0x80000001);
        __asm__ __volatile__ ("sync");
 
@@ -202,7 +202,7 @@ int board_early_init_r (void)
         * read from SDRAM)
         */
 
-       temp = in32(CFG_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR2);
+       temp = in32(CONFIG_SYS_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR2);
        __asm__ __volatile__ ("sync");
 
        /*
@@ -221,7 +221,7 @@ int board_early_init_r (void)
         * initialize pointer to LUT associated with PB_OCN_BAR1
         */
        reg_ptr =
-               (ulong *) (CFG_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + 0x800);
+               (ulong *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + 0x800);
 
        for (i = 0; i < 32; i++) {
                *reg_ptr++ = pb2ocn_lut1[i].lower;
@@ -232,73 +232,73 @@ int board_early_init_r (void)
 
        /* Base addresses for CS0, CS1, CS2, CS3 */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_ADDR,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_ADDR,
                0x00000000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_ADDR,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_ADDR,
                0x00100000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_ADDR,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_ADDR,
                0x00200000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_ADDR,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_ADDR,
                0x00300000);
        __asm__ __volatile__ ("sync");
 
        /* Masks for HLP banks */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_MASK,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_MASK,
                0xFFF00000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_MASK,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_MASK,
                0xFFF00000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_MASK,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_MASK,
                0xFFF00000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_MASK,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_MASK,
                0xFFF00000);
        __asm__ __volatile__ ("sync");
 
        /* Set CTRL0 values for banks */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_CTRL0,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_CTRL0,
                0x7FFC44C2);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_CTRL0,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_CTRL0,
                0x7FFC44C0);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_CTRL0,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_CTRL0,
                0x7FFC44C0);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_CTRL0,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_CTRL0,
                0x7FFC44C2);
        __asm__ __volatile__ ("sync");
 
        /* Set banks to latched mode, enabled, and other default settings */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_CTRL1,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B0_CTRL1,
                0x7C0F2000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_CTRL1,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B1_CTRL1,
                0x7C0F2000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_CTRL1,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B2_CTRL1,
                0x7C0F2000);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_CTRL1,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_HLP_REG_OFFSET + HLP_B3_CTRL1,
                0x7C0F2000);
        __asm__ __volatile__ ("sync");
 
@@ -306,7 +306,7 @@ int board_early_init_r (void)
         * Set new value for PB_OCN_BAR1: switch from BOOT to LUT mode.
         * value for PB_OCN_BAR1: (BA-0xE000_0000 + size 512MB + ENable)
         */
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR1,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR1,
                0xE0000011);
        __asm__ __volatile__ ("sync");
 
@@ -314,7 +314,7 @@ int board_early_init_r (void)
         * immediate read from SDRAM)
         */
 
-       temp = in32(CFG_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR1);
+       temp = in32(CONFIG_SYS_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_OCN_BAR1);
        __asm__ __volatile__ ("sync");
 
        /*
@@ -341,7 +341,7 @@ int board_early_init_r (void)
        temp = get_cpu_type ();
 
        if ((CPU_750FX == temp) || (CPU_750GX == temp))
-               out32 (CFG_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_MCMD,
+               out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PB_REG_OFFSET + PB_MCMD,
                        0x00009955);
 #endif /* DISABLE_PBM */
 
@@ -351,27 +351,27 @@ int board_early_init_r (void)
         */
 
        /* Map PCI/X Configuration Space (16MB @ 0x0_FE000000) */
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET +
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET +
                PCI_PFAB_BAR0_UPPER, 0);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_BAR0,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_BAR0,
                0xFB000001);
        __asm__ __volatile__ ("sync");
 
        /* Set Bus Number for the attached PCI/X bus (we will use 0 for NB) */
 
-       temp =  in32(CFG_TSI108_CSR_BASE +
+       temp =  in32(CONFIG_SYS_TSI108_CSR_BASE +
                TSI108_PCI_REG_OFFSET + PCI_PCIX_STAT);
 
        temp &= ~0xFF00;        /* Clear the BUS_NUM field */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PCIX_STAT,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PCIX_STAT,
                temp);
 
        /* Map PCI/X IO Space (64KB @ 0x0_FD000000) takes one 16MB LUT entry */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_IO_UPPER,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_IO_UPPER,
                0);
        __asm__ __volatile__ ("sync");
 
@@ -379,7 +379,7 @@ int board_early_init_r (void)
         * and maps it as a IO address.
         */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_IO,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_PFAB_IO,
                0x00000001);
        __asm__ __volatile__ ("sync");
 
@@ -405,7 +405,7 @@ int board_early_init_r (void)
         */
 
        reg_ptr =
-               (ulong *) (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + 0x500);
+               (ulong *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + 0x500);
 
 #ifdef DISABLE_PBM
 
@@ -442,7 +442,7 @@ int board_early_init_r (void)
        __asm__ __volatile__ ("eieio");
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_PAGE_SIZES,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_PAGE_SIZES,
                reg_val);
        __asm__ __volatile__ ("sync");
 
@@ -450,9 +450,9 @@ int board_early_init_r (void)
         * ( 0 is the best choice for easy mapping)
         */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR2,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR2,
                0x00000000);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR2_UPPER,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR2_UPPER,
                0x00000000);
        __asm__ __volatile__ ("sync");
 
@@ -470,7 +470,7 @@ int board_early_init_r (void)
         *  set pointer to LUT associated with PCI P2O_BAR3
         */
        reg_ptr =
-               (ulong *) (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + 0x600);
+               (ulong *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + 0x600);
 
        reg_val = 0x00000004;   /* Destination port = SDC */
 
@@ -490,19 +490,19 @@ int board_early_init_r (void)
        /* Configure PCI P2O_BAR3 (size = 512MB, Enabled) */
 
        reg_val =
-               in32(CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET +
+               in32(CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET +
                 PCI_P2O_PAGE_SIZES);
        reg_val &= ~0x00FF;
        reg_val |= 0x0071;
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_PAGE_SIZES,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_PAGE_SIZES,
                reg_val);
        __asm__ __volatile__ ("sync");
 
        /* Set 64-bit base PCI bus address for window (0x20000000) */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR3_UPPER,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR3_UPPER,
                0x00000000);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR3,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR3,
                0x20000000);
        __asm__ __volatile__ ("sync");
 
@@ -511,17 +511,17 @@ int board_early_init_r (void)
 #ifdef ENABLE_PCI_CSR_BAR
        /* open if required access to Tsi108 CSRs from the PCI/X bus */
        /* enable BAR0 on the PCI/X bus */
-       reg_val = in32(CFG_TSI108_CSR_BASE +
+       reg_val = in32(CONFIG_SYS_TSI108_CSR_BASE +
                TSI108_PCI_REG_OFFSET + PCI_MISC_CSR);
        reg_val |= 0x02;
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_MISC_CSR,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_MISC_CSR,
                reg_val);
        __asm__ __volatile__ ("sync");
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR0_UPPER,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR0_UPPER,
                0x00000000);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR0,
-               CFG_TSI108_CSR_BASE);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_P2O_BAR0,
+               CONFIG_SYS_TSI108_CSR_BASE);
        __asm__ __volatile__ ("sync");
 
 #endif
@@ -530,9 +530,9 @@ int board_early_init_r (void)
         * Finally enable PCI/X Bus Master and Memory Space access
         */
 
-       reg_val = in32(CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_CSR);
+       reg_val = in32(CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_CSR);
        reg_val |= 0x06;
-       out32 (CFG_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_CSR, reg_val);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_PCI_REG_OFFSET + PCI_CSR, reg_val);
        __asm__ __volatile__ ("sync");
 
 #endif /* CONFIG_PCI */
@@ -546,10 +546,10 @@ int board_early_init_r (void)
         * PB_INT[3] -> MCP (CPU1)
         * Set interrupt controller outputs as Level_Sensitive/Active_Low
         */
-       out32 (CFG_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(0), 0x02);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(1), 0x02);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(2), 0x02);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(3), 0x02);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(0), 0x02);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(1), 0x02);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(2), 0x02);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_MPIC_REG_OFFSET + MPIC_CSR(3), 0x02);
        __asm__ __volatile__ ("sync");
 
        /*
@@ -584,42 +584,42 @@ unsigned long get_l2cr (void)
 
 int misc_init_r (void)
 {
-#ifdef CFG_CLK_SPREAD  /* Initialize Spread-Spectrum Clock generation */
+#ifdef CONFIG_SYS_CLK_SPREAD   /* Initialize Spread-Spectrum Clock generation */
        ulong i;
 
        /* Ensure that Spread-Spectrum is disabled */
-       out32 (CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL0_CTRL0, 0);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL0, 0);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL0_CTRL0, 0);
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL0, 0);
 
        /* Initialize PLL1: CG_PCI_CLK , internal OCN_CLK
         * Uses pre-calculated value for Fout = 800 MHz, Fs = 30 kHz, D = 0.5%
         */
 
-       out32 (CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL0,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL0,
                0x002e0044);    /* D = 0.25% */
-       out32 (CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL1,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL1,
                0x00000039);    /* BWADJ */
 
        /* Initialize PLL0: CG_PB_CLKO  */
        /* Detect PB clock freq. */
-       i = in32(CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PWRUP_STATUS);
+       i = in32(CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PWRUP_STATUS);
        i = (i >> 16) & 0x07;   /* Get PB PLL multiplier */
 
-       out32 (CFG_TSI108_CSR_BASE +
+       out32 (CONFIG_SYS_TSI108_CSR_BASE +
                TSI108_CLK_REG_OFFSET + CG_PLL0_CTRL0, pll0_config[i].ctrl0);
-       out32 (CFG_TSI108_CSR_BASE +
+       out32 (CONFIG_SYS_TSI108_CSR_BASE +
                TSI108_CLK_REG_OFFSET + CG_PLL0_CTRL1, pll0_config[i].ctrl1);
 
        /* Wait and set SSEN for both PLL0 and 1 */
        udelay (1000);
-       out32 (CFG_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL0,
+       out32 (CONFIG_SYS_TSI108_CSR_BASE + TSI108_CLK_REG_OFFSET + CG_PLL1_CTRL0,
                0x802e0044);    /* D=0.25% */
-       out32 (CFG_TSI108_CSR_BASE +
+       out32 (CONFIG_SYS_TSI108_CSR_BASE +
                TSI108_CLK_REG_OFFSET + CG_PLL0_CTRL0,
                0x80000000 | pll0_config[i].ctrl0);
-#endif /* CFG_CLK_SPREAD */
+#endif /* CONFIG_SYS_CLK_SPREAD */
 
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        l2cache_enable ();
 #endif
        printf ("BUS:   %lu MHz\n", gd->bus_clk / 1000000);
index 7fcc874391048dcb3e0aeee9269d5896a01310d2..e03852f68cbfe23bc218fc9e8593cc3ea6e3d703 100644 (file)
@@ -52,7 +52,7 @@
 #define INTEL_FINISHED 0x80808080
 #define INTEL_OK       0x80808080
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * This board supports 32-bit wide flash SIMMs (4x8-bit configuration.)
@@ -66,8 +66,8 @@ unsigned long flash_init (void)
        ulong size = 0, sect_start, sect_size = 0, bank_size;
        ushort sect_count = 0;
        int i, j, nbanks;
-       vu_long *addr = (vu_long *)CFG_FLASH_BASE;
-       vu_long *bcsr = (vu_long *)CFG_BCSR;
+       vu_long *addr = (vu_long *)CONFIG_SYS_FLASH_BASE;
+       vu_long *bcsr = (vu_long *)CONFIG_SYS_BCSR;
 
        switch (bcsr[2] & 0xF) {
        case 0:
@@ -80,11 +80,11 @@ unsigned long flash_init (void)
                nbanks = 1;
                break;
        default:                /* Unsupported configurations */
-               nbanks = CFG_MAX_FLASH_BANKS;
+               nbanks = CONFIG_SYS_MAX_FLASH_BANKS;
        }
 
-       if (nbanks > CFG_MAX_FLASH_BANKS)
-               nbanks = CFG_MAX_FLASH_BANKS;
+       if (nbanks > CONFIG_SYS_MAX_FLASH_BANKS)
+               nbanks = CONFIG_SYS_MAX_FLASH_BANKS;
 
        for (i = 0; i < nbanks; i++) {
                *addr = INTEL_READID;   /* Read Intelligent Identifier */
@@ -98,9 +98,9 @@ unsigned long flash_init (void)
                                break;
                        default:
                                flash_info[i].flash_id = FLASH_UNKNOWN;
-                               sect_count = CFG_MAX_FLASH_SECT;
+                               sect_count = CONFIG_SYS_MAX_FLASH_SECT;
                                sect_size =
-                                  CFG_FLASH_SIZE / CFG_MAX_FLASH_BANKS / CFG_MAX_FLASH_SECT;
+                                  CONFIG_SYS_FLASH_SIZE / CONFIG_SYS_MAX_FLASH_BANKS / CONFIG_SYS_MAX_FLASH_SECT;
                        }
                }
                else
@@ -127,10 +127,10 @@ unsigned long flash_init (void)
        }
 
        if (size == 0) {        /* Unknown flash, fill with hard-coded values */
-               sect_start = CFG_FLASH_BASE;
-               for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+               sect_start = CONFIG_SYS_FLASH_BASE;
+               for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                        flash_info[i].flash_id = FLASH_UNKNOWN;
-                       flash_info[i].size = CFG_FLASH_SIZE / CFG_MAX_FLASH_BANKS;
+                       flash_info[i].size = CONFIG_SYS_FLASH_SIZE / CONFIG_SYS_MAX_FLASH_BANKS;
                        flash_info[i].sector_count = sect_count;
                        for (j = 0; j < sect_count; j++) {
                                flash_info[i].start[j]   = sect_start;
@@ -138,20 +138,20 @@ unsigned long flash_init (void)
                                sect_start += sect_size;
                        }
                }
-               size = CFG_FLASH_SIZE;
+               size = CONFIG_SYS_FLASH_SIZE;
        }
        else
-               for (i = nbanks; i < CFG_MAX_FLASH_BANKS; i++) {
+               for (i = nbanks; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                        flash_info[i].flash_id = FLASH_UNKNOWN;
                        flash_info[i].size = 0;
                        flash_info[i].sector_count = 0;
                }
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -274,7 +274,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                                enable_interrupts();
 
                        while ((*addr & INTEL_FINISHED) != INTEL_FINISHED) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = INTEL_RESET;    /* reset bank */
                                        return 1;
@@ -338,7 +338,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*addr & INTEL_FINISHED) != INTEL_FINISHED) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        printf("Write timed out\n");
                        rc = 1;
                        break;
@@ -454,7 +454,7 @@ int flash_real_protect(flash_info_t *info, long sector, int prot)
 
        start = get_timer(0);
        while ((*addr & INTEL_FINISHED) != INTEL_FINISHED) {
-               if (get_timer(start) > CFG_FLASH_UNLOCK_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                        printf("Flash lock bit operation timed out\n");
                        rc = 1;
                        break;
@@ -480,7 +480,7 @@ int flash_real_protect(flash_info_t *info, long sector, int prot)
                                addr = (vu_long *)(info->start[i]);
                                *addr = INTEL_LOCKBIT;  /* Sector lock bit */
                                *addr = INTEL_PROTECT;  /* set */
-                               udelay(CFG_FLASH_LOCK_TOUT * 1000);
+                               udelay(CONFIG_SYS_FLASH_LOCK_TOUT * 1000);
                        }
 
        if (flag)
index 8ab7d356c4f54e34e0d31c3f40f3536df593fd40..49a88bbdd14b72a1ab0417368186bb2840b67051 100644 (file)
  * according to the five values podr/pdir/ppar/psor/pdat for that entry
  */
 
-#define CFG_FCC1 (CONFIG_ETHER_INDEX == 1)
-#define CFG_FCC2 (CONFIG_ETHER_INDEX == 2)
-#define CFG_FCC3 (CONFIG_ETHER_INDEX == 3)
+#define CONFIG_SYS_FCC1 (CONFIG_ETHER_INDEX == 1)
+#define CONFIG_SYS_FCC2 (CONFIG_ETHER_INDEX == 2)
+#define CONFIG_SYS_FCC3 (CONFIG_ETHER_INDEX == 3)
 
 const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port A configuration */
     {  /*            conf      ppar psor pdir podr pdat */
-       /* PA31 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL   */
-       /* PA30 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS   */
-       /* PA29 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER */
-       /* PA28 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN */
-       /* PA27 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV */
-       /* PA26 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER */
+       /* PA31 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL   */
+       /* PA30 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS   */
+       /* PA29 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER */
+       /* PA28 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN */
+       /* PA27 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV */
+       /* PA26 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER */
        /* PA25 */ { 0,          0,   0,   0,   0,   0 }, /* PA25 */
        /* PA24 */ { 0,          0,   0,   0,   0,   0 }, /* PA24 */
        /* PA23 */ { 0,          0,   0,   0,   0,   0 }, /* PA23 */
        /* PA22 */ { 0,          0,   0,   0,   0,   0 }, /* PA22 */
-       /* PA21 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
-       /* PA20 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
-       /* PA19 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
-       /* PA18 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
-       /* PA17 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
-       /* PA16 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
-       /* PA15 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
-       /* PA14 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
+       /* PA21 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
+       /* PA20 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
+       /* PA19 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
+       /* PA18 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
+       /* PA17 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
+       /* PA16 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
+       /* PA15 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
+       /* PA14 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
        /* PA13 */ { 0,          0,   0,   0,   0,   0 }, /* PA13 */
        /* PA12 */ { 0,          0,   0,   0,   0,   0 }, /* PA12 */
        /* PA11 */ { 0,          0,   0,   0,   0,   0 }, /* PA11 */
@@ -102,34 +102,34 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port B configuration */
     {   /*           conf      ppar psor pdir podr pdat */
-       /* PB31 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER */
-       /* PB30 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV */
-       /* PB29 */ { CFG_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN */
-       /* PB28 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER */
-       /* PB27 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL */
-       /* PB26 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS */
-       /* PB25 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
-       /* PB24 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
-       /* PB23 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
-       /* PB22 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
-       /* PB21 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
-       /* PB20 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
-       /* PB19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
-       /* PB18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
-       /* PB17 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RX_DIV */
-       /* PB16 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RX_ERR */
-       /* PB15 */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TX_ERR */
-       /* PB14 */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TX_EN */
-       /* PB13 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:COL */
-       /* PB12 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:CRS */
-       /* PB11 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
-       /* PB10 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
-       /* PB9  */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
-       /* PB8  */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
-       /* PB7  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
-       /* PB6  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
-       /* PB5  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
-       /* PB4  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
+       /* PB31 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER */
+       /* PB30 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV */
+       /* PB29 */ { CONFIG_SYS_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN */
+       /* PB28 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER */
+       /* PB27 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL */
+       /* PB26 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS */
+       /* PB25 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
+       /* PB24 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
+       /* PB23 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
+       /* PB22 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
+       /* PB21 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
+       /* PB20 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
+       /* PB19 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
+       /* PB18 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
+       /* PB17 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RX_DIV */
+       /* PB16 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RX_ERR */
+       /* PB15 */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TX_ERR */
+       /* PB14 */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TX_EN */
+       /* PB13 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:COL */
+       /* PB12 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:CRS */
+       /* PB11 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
+       /* PB10 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
+       /* PB9  */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
+       /* PB8  */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3:RXD */
+       /* PB7  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
+       /* PB6  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
+       /* PB5  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
+       /* PB4  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3:TXD */
        /* PB3  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
        /* PB2  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
        /* PB1  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
@@ -147,32 +147,32 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PC25 */ { 0,          0,   0,   0,   0,   0 }, /* PC25 */
        /* PC24 */ { 0,          0,   0,   0,   0,   0 }, /* PC24 */
        /* PC23 */ { 0,          0,   0,   0,   0,   0 }, /* PC23 */
-       /* PC22 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII Tx Clock (CLK10) */
-       /* PC21 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII Rx Clock (CLK11) */
+       /* PC22 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII Tx Clock (CLK10) */
+       /* PC21 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII Rx Clock (CLK11) */
        /* PC20 */ { 0,          0,   0,   0,   0,   0 }, /* PC20 */
-#if CONFIG_ADSTYPE == CFG_8272ADS
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
        /* PC19 */ { 1,          0,   0,   1,   0,   0 }, /* FETHMDC  */
        /* PC18 */ { 1,          0,   0,   0,   0,   0 }, /* FETHMDIO */
-       /* PC17 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Rx Clock (CLK15) */
-       /* PC16 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Tx Clock (CLK16) */
+       /* PC17 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Rx Clock (CLK15) */
+       /* PC16 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Tx Clock (CLK16) */
 #else
-       /* PC19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Rx Clock (CLK13) */
-       /* PC18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Tx Clock (CLK14) */
+       /* PC19 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Rx Clock (CLK13) */
+       /* PC18 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII Tx Clock (CLK14) */
        /* PC17 */ { 0,          0,   0,   0,   0,   0 }, /* PC17 */
        /* PC16 */ { 0,          0,   0,   0,   0,   0 }, /* PC16 */
-#endif /* CONFIG_ADSTYPE == CFG_8272ADS */
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
        /* PC15 */ { 0,          0,   0,   0,   0,   0 }, /* PC15 */
        /* PC14 */ { 0,          0,   0,   0,   0,   0 }, /* PC14 */
        /* PC13 */ { 0,          0,   0,   0,   0,   0 }, /* PC13 */
        /* PC12 */ { 0,          0,   0,   0,   0,   0 }, /* PC12 */
        /* PC11 */ { 0,          0,   0,   0,   0,   0 }, /* PC11 */
-#if CONFIG_ADSTYPE == CFG_8272ADS
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
        /* PC10 */ { 0,          0,   0,   0,   0,   0 }, /* PC10 */
        /* PC9  */ { 0,          0,   0,   0,   0,   0 }, /* PC9  */
 #else
        /* PC10 */ { 1,          0,   0,   1,   0,   0 }, /* FETHMDC  */
        /* PC9  */ { 1,          0,   0,   0,   0,   0 }, /* FETHMDIO */
-#endif /* CONFIG_ADSTYPE == CFG_8272ADS */
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
        /* PC8  */ { 0,          0,   0,   0,   0,   0 }, /* PC8 */
        /* PC7  */ { 0,          0,   0,   0,   0,   0 }, /* PC7 */
        /* PC6  */ { 0,          0,   0,   0,   0,   0 }, /* PC6 */
@@ -223,10 +223,10 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
 void reset_phy (void)
 {
-       vu_long *bcsr = (vu_long *)CFG_BCSR;
+       vu_long *bcsr = (vu_long *)CONFIG_SYS_BCSR;
 
        /* Reset the PHY */
-#if CFG_PHY_ADDR == 0
+#if CONFIG_SYS_PHY_ADDR == 0
        bcsr[1] &= ~(FETHIEN1 | FETH1_RST);
        udelay(2);
        bcsr[1] |=  FETH1_RST;
@@ -234,16 +234,16 @@ void reset_phy (void)
        bcsr[3] &= ~(FETHIEN2 | FETH2_RST);
        udelay(2);
        bcsr[3] |=  FETH2_RST;
-#endif /* CFG_PHY_ADDR == 0 */
+#endif /* CONFIG_SYS_PHY_ADDR == 0 */
        udelay(1000);
 #ifdef CONFIG_MII
-#if CONFIG_ADSTYPE >= CFG_PQ2FADS
+#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
        /*
         * Do not bypass Rx/Tx (de)scrambler (fix configuration error)
         * Enable autonegotiation.
         */
-       bb_miiphy_write(NULL, CFG_PHY_ADDR, 16, 0x610);
-       bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_BMCR,
+       bb_miiphy_write(NULL, CONFIG_SYS_PHY_ADDR, 16, 0x610);
+       bb_miiphy_write(NULL, CONFIG_SYS_PHY_ADDR, PHY_BMCR,
                        PHY_BMCR_AUTON | PHY_BMCR_RST_NEG);
 #else
        /*
@@ -254,14 +254,14 @@ void reset_phy (void)
         */
 
        /* Advertise all capabilities */
-       bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_ANAR, 0x01E1);
+       bb_miiphy_write(NULL, CONFIG_SYS_PHY_ADDR, PHY_ANAR, 0x01E1);
 
        /* Do not bypass Rx/Tx (de)scrambler */
-       bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_DCR,  0x0000);
+       bb_miiphy_write(NULL, CONFIG_SYS_PHY_ADDR, PHY_DCR,  0x0000);
 
-       bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_BMCR,
+       bb_miiphy_write(NULL, CONFIG_SYS_PHY_ADDR, PHY_BMCR,
                        PHY_BMCR_AUTON | PHY_BMCR_RST_NEG);
-#endif /* CONFIG_ADSTYPE == CFG_PQ2FADS */
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS */
 #endif /* CONFIG_MII */
 }
 
@@ -274,10 +274,10 @@ typedef struct pci_ic_s {
 
 int board_early_init_f (void)
 {
-       vu_long *bcsr = (vu_long *)CFG_BCSR;
+       vu_long *bcsr = (vu_long *)CONFIG_SYS_BCSR;
 
 #ifdef CONFIG_PCI
-       volatile pci_ic_t* pci_ic = (pci_ic_t *) CFG_PCI_INT;
+       volatile pci_ic_t* pci_ic = (pci_ic_t *) CONFIG_SYS_PCI_INT;
 
        /* mask alll the PCI interrupts */
        pci_ic->pci_int_mask |= 0xfff00000;
@@ -289,19 +289,19 @@ int board_early_init_f (void)
        bcsr[1] &= ~RS232EN_2;
 #endif
 
-#if CONFIG_ADSTYPE != CFG_8260ADS /* PCI mode can be selected */
-#if CONFIG_ADSTYPE == CFG_PQ2FADS
+#if CONFIG_ADSTYPE != CONFIG_SYS_8260ADS /* PCI mode can be selected */
+#if CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS
        if ((bcsr[3] & BCSR_PCI_MODE) == 0) /* PCI mode selected by JP9 */
-#endif /* CONFIG_ADSTYPE == CFG_PQ2FADS */
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS */
        {
-               volatile immap_t *immap = (immap_t *) CFG_IMMR;
+               volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
                immap->im_clkrst.car_sccr |= M826X_SCCR_PCI_MODE_EN;
                immap->im_siu_conf.sc_siumcr =
                        (immap->im_siu_conf.sc_siumcr & ~SIUMCR_LBPC11)
                        | SIUMCR_LBPC01;
        }
-#endif /* CONFIG_ADSTYPE != CFG_8260ADS */
+#endif /* CONFIG_ADSTYPE != CONFIG_SYS_8260ADS */
 
        return 0;
 }
@@ -310,16 +310,16 @@ int board_early_init_f (void)
 
 phys_size_t initdram (int board_type)
 {
-#if   CONFIG_ADSTYPE == CFG_PQ2FADS
+#if   CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS
        long int msize = 32;
-#elif CONFIG_ADSTYPE == CFG_8272ADS
+#elif CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
        long int msize = 64;
 #else
        long int msize = 16;
 #endif
 
-#ifndef CFG_RAMBOOT
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+#ifndef CONFIG_SYS_RAMBOOT
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        volatile uchar *ramaddr, c = 0xff;
        uint or;
@@ -332,33 +332,33 @@ phys_size_t initdram (int board_type)
        immap->im_siu_conf.sc_ppc_alrh = 0x01267893;
        immap->im_siu_conf.sc_tescr1   = 0x00004000;
 
-       memctl->memc_mptpr = CFG_MPTPR;
-#ifdef CFG_LSDRAM_BASE
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
+#ifdef CONFIG_SYS_LSDRAM_BASE
        /*
          Initialise local bus SDRAM only if the pins
          are configured as local bus pins and not as PCI.
          The configuration is determined by the HRCW.
        */
        if ((immap->im_siu_conf.sc_siumcr & SIUMCR_LBPC11) == SIUMCR_LBPC00) {
-               memctl->memc_lsrt  = CFG_LSRT;
-#if CONFIG_ADSTYPE == CFG_PQ2FADS /* CS3 */
+               memctl->memc_lsrt  = CONFIG_SYS_LSRT;
+#if CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS /* CS3 */
                memctl->memc_or3   = 0xFF803280;
-               memctl->memc_br3   = CFG_LSDRAM_BASE | 0x00001861;
+               memctl->memc_br3   = CONFIG_SYS_LSDRAM_BASE | 0x00001861;
 #else                            /* CS4 */
                memctl->memc_or4   = 0xFFC01480;
-               memctl->memc_br4   = CFG_LSDRAM_BASE | 0x00001861;
-#endif /* CONFIG_ADSTYPE == CFG_PQ2FADS */
-               memctl->memc_lsdmr = CFG_LSDMR | 0x28000000;
-               ramaddr = (uchar *) CFG_LSDRAM_BASE;
+               memctl->memc_br4   = CONFIG_SYS_LSDRAM_BASE | 0x00001861;
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS */
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x28000000;
+               ramaddr = (uchar *) CONFIG_SYS_LSDRAM_BASE;
                *ramaddr = c;
-               memctl->memc_lsdmr = CFG_LSDMR | 0x08000000;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x08000000;
                for (i = 0; i < 8; i++)
                        *ramaddr = c;
-               memctl->memc_lsdmr = CFG_LSDMR | 0x18000000;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x18000000;
                *ramaddr = c;
-               memctl->memc_lsdmr = CFG_LSDMR | 0x40000000;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x40000000;
        }
-#endif /* CFG_LSDRAM_BASE */
+#endif /* CONFIG_SYS_LSDRAM_BASE */
 
        /* Init 60x bus SDRAM */
 #ifdef CONFIG_SPD_EEPROM
@@ -498,14 +498,14 @@ phys_size_t initdram (int board_type)
 #endif /* SPD_DEBUG */
        }
 #else  /* !CONFIG_SPD_EEPROM */
-       or    = CFG_OR2;
-       psdmr = CFG_PSDMR;
-       psrt  = CFG_PSRT;
+       or    = CONFIG_SYS_OR2;
+       psdmr = CONFIG_SYS_PSDMR;
+       psrt  = CONFIG_SYS_PSRT;
 #endif /* CONFIG_SPD_EEPROM */
        memctl->memc_psrt = psrt;
        memctl->memc_or2 = or;
-       memctl->memc_br2 = CFG_SDRAM_BASE | 0x00000041;
-       ramaddr = (uchar *) CFG_SDRAM_BASE;
+       memctl->memc_br2 = CONFIG_SYS_SDRAM_BASE | 0x00000041;
+       ramaddr = (uchar *) CONFIG_SYS_SDRAM_BASE;
        memctl->memc_psdmr = psdmr | 0x28000000;        /* Precharge all banks */
        *ramaddr = c;
        memctl->memc_psdmr = psdmr | 0x08000000;        /* CBR refresh */
@@ -516,7 +516,7 @@ phys_size_t initdram (int board_type)
        *ramaddr = c;
        memctl->memc_psdmr = psdmr | 0x40000000;        /* Refresh enable */
        *ramaddr = c;
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /* return total 60x bus SDRAM size */
        return (msize * 1024 * 1024);
@@ -524,13 +524,13 @@ phys_size_t initdram (int board_type)
 
 int checkboard (void)
 {
-#if   CONFIG_ADSTYPE == CFG_8260ADS
+#if   CONFIG_ADSTYPE == CONFIG_SYS_8260ADS
        puts ("Board: Motorola MPC8260ADS\n");
-#elif CONFIG_ADSTYPE == CFG_8266ADS
+#elif CONFIG_ADSTYPE == CONFIG_SYS_8266ADS
        puts ("Board: Motorola MPC8266ADS\n");
-#elif CONFIG_ADSTYPE == CFG_PQ2FADS
+#elif CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS
        puts ("Board: Motorola PQ2FADS-ZU\n");
-#elif CONFIG_ADSTYPE == CFG_8272ADS
+#elif CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
        puts ("Board: Motorola MPC8272ADS\n");
 #else
        puts ("Board: unknown\n");
index b4cdcd9104497d2c92fe70c6645735f7f4e17c90..06dde36e61c59be0162d3a9618da8cb36d7e345c 100644 (file)
 #include <common.h>
 
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -56,7 +56,7 @@ static int clear_block_lock_bit(vu_long * addr);
 unsigned long flash_init (void)
 {
 #ifndef CONFIG_MPC8266ADS
-       volatile immap_t        *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t        *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t    *memctl = &immap->im_memctl;
        volatile ip860_bcsr_t   *bcsr   = (ip860_bcsr_t *)BCSR_BASE;
 #endif
@@ -71,7 +71,7 @@ unsigned long flash_init (void)
 #endif
 
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
                /* set the default sector offset */
@@ -88,20 +88,20 @@ unsigned long flash_init (void)
 
 #ifndef CONFIG_MPC8266ADS
        /* Remap FLASH according to real size */
-       memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-       memctl->memc_br1 = (CFG_FLASH_BASE & BR_BA_MSK) |
+       memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+       memctl->memc_br1 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) |
                                (memctl->memc_br1 & ~(BR_BA_MSK));
 #endif
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -336,7 +336,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                                        *addr = 0xFFFFFFFF;     /* reset bank */
                                        return 1;
                                }
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0xFFFFFFFF;     /* reset bank */
                                        return 1;
@@ -461,7 +461,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        start = get_timer (0);
        flag  = 0;
        while (((csr = *addr) & 0x80808080) != 0x80808080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        flag = 1;
                        break;
                }
@@ -499,7 +499,7 @@ static int clear_block_lock_bit(vu_long  * addr)
 
        start = get_timer (0);
        while(*addr != 0x80808080){
-               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout on clearing Block Lock Bit\n");
                        *addr = 0xFFFFFFFF;     /* reset bank */
                        return 1;
index 090a534134ae23e04b1bae655ab001e6f5a9a6b1..66acc41e97f1188512ff0beb94be73e2524b3e32 100644 (file)
@@ -224,7 +224,7 @@ typedef struct pci_ic_s {
 
 void reset_phy(void)
 {
-    volatile bcsr_t  *bcsr           = (bcsr_t *)CFG_BCSR;
+    volatile bcsr_t  *bcsr           = (bcsr_t *)CONFIG_SYS_BCSR;
 
     /* reset the FEC port */
     bcsr->bcsr1                    &= ~FETH_RST;
@@ -234,8 +234,8 @@ void reset_phy(void)
 
 int board_early_init_f (void)
 {
-    volatile bcsr_t  *bcsr         = (bcsr_t *)CFG_BCSR;
-    volatile pci_ic_t *pci_ic      = (pci_ic_t *) CFG_PCI_INT;
+    volatile bcsr_t  *bcsr         = (bcsr_t *)CONFIG_SYS_BCSR;
+    volatile pci_ic_t *pci_ic      = (pci_ic_t *) CONFIG_SYS_PCI_INT;
 
     bcsr->bcsr1                    = ~FETHIEN & ~RS232EN_1 & ~RS232EN_2;
 
@@ -254,17 +254,17 @@ int checkboard(void)
 phys_size_t initdram(int board_type)
 {
        /* Autoinit part stolen from board/sacsng/sacsng.c */
-    volatile immap_t *immap         = (immap_t *)CFG_IMMR;
+    volatile immap_t *immap         = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8260_t *memctl   = &immap->im_memctl;
     volatile uchar c = 0xff;
-    volatile uchar *ramaddr = (uchar *)(CFG_SDRAM_BASE + 0x8);
-    uint  psdmr = CFG_PSDMR;
+    volatile uchar *ramaddr = (uchar *)(CONFIG_SYS_SDRAM_BASE + 0x8);
+    uint  psdmr = CONFIG_SYS_PSDMR;
     int i;
 
     uint   psrt = 0x21;                                        /* for no SPD */
     uint   chipselects = 1;                            /* for no SPD */
-    uint   sdram_size = CFG_SDRAM_SIZE * 1024 * 1024;  /* for no SPD */
-    uint   or = CFG_OR2_PRELIM;                                /* for no SPD */
+    uint   sdram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;   /* for no SPD */
+    uint   or = CONFIG_SYS_OR2_PRELIM;                         /* for no SPD */
     uint   data_width;
     uint   rows;
     uint   banks;
@@ -286,7 +286,7 @@ phys_size_t initdram(int board_type)
     /*
      * Read the SDRAM SPD EEPROM via I2C.
      */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
     i2c_read(SDRAM_SPD_ADDR, 0, 1, &data, 1);
     spd_size = data;
@@ -506,13 +506,13 @@ phys_size_t initdram(int board_type)
      *  accessing the SDRAM with a single-byte transaction."
      *
      * The appropriate BRx/ORx registers have already been set when we
-     * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+     * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
      */
 
-    memctl->memc_mptpr = CFG_MPTPR;
+    memctl->memc_mptpr = CONFIG_SYS_MPTPR;
     memctl->memc_psrt  = psrt;
 
-    memctl->memc_br2 = CFG_BR2_PRELIM;
+    memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
     memctl->memc_or2 = or;
 
     memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
@@ -536,7 +536,7 @@ phys_size_t initdram(int board_type)
        {
        ramaddr += sdram_size;
 
-               memctl->memc_br3 = CFG_BR3_PRELIM + sdram_size;
+               memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM + sdram_size;
                memctl->memc_or3 = or;
 
                memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
index ebb703d3ec22818f30dab9e0f4c761e6749a3b29..9ffd4bff8729055eb36d29ba67fe2f8da05ae7ef 100644 (file)
@@ -36,8 +36,8 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_early_init_f(void)
 {
-#ifndef CFG_8313ERDB_BROKEN_PMC
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+#ifndef CONFIG_SYS_8313ERDB_BROKEN_PMC
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
 
        if (im->pmc.pmccr1 & PMCCR1_POWER_OFF)
                gd->flags |= GD_FLG_SILENT;
@@ -55,28 +55,28 @@ int checkboard(void)
 #ifndef CONFIG_NAND_SPL
 static struct pci_region pci_regions[] = {
        {
-               bus_start: CFG_PCI1_MEM_BASE,
-               phys_start: CFG_PCI1_MEM_PHYS,
-               size: CFG_PCI1_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI1_MEM_PHYS,
+               size: CONFIG_SYS_PCI1_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI1_MMIO_BASE,
-               phys_start: CFG_PCI1_MMIO_PHYS,
-               size: CFG_PCI1_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI1_MMIO_PHYS,
+               size: CONFIG_SYS_PCI1_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
        {
-               bus_start: CFG_PCI1_IO_BASE,
-               phys_start: CFG_PCI1_IO_PHYS,
-               size: CFG_PCI1_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_IO_BASE,
+               phys_start: CONFIG_SYS_PCI1_IO_PHYS,
+               size: CONFIG_SYS_PCI1_IO_SIZE,
                flags: PCI_REGION_IO
        }
 };
 
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
        struct pci_region *reg[] = { pci_regions };
@@ -88,14 +88,14 @@ void pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LBLAWAR_EN | LBLAWAR_512MB;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LBLAWAR_EN | LBLAWAR_1MB;
 
        warmboot = gd->bd->bi_bootflags & BOOTFLAG_WARM;
-#ifndef CFG_8313ERDB_BROKEN_PMC
+#ifndef CONFIG_SYS_8313ERDB_BROKEN_PMC
        warmboot |= immr->pmc.pmccr1 & PMCCR1_POWER_OFF;
 #endif
 
@@ -135,13 +135,13 @@ void ft_board_setup(void *blob, bd_t *bd)
 void board_init_f(ulong bootflag)
 {
        board_early_init_f();
-       NS16550_init((NS16550_t)(CFG_IMMR + 0x4500),
-                    CFG_NS16550_CLK / 16 / CONFIG_BAUDRATE);
+       NS16550_init((NS16550_t)(CONFIG_SYS_IMMR + 0x4500),
+                    CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
        puts("NAND boot... ");
        init_timebase();
        initdram(0);
-       relocate_code(CFG_NAND_U_BOOT_RELOC + 0x10000, (gd_t *)gd,
-                     CFG_NAND_U_BOOT_RELOC);
+       relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000, (gd_t *)gd,
+                     CONFIG_SYS_NAND_U_BOOT_RELOC);
 }
 
 void board_init_r(gd_t *gd, ulong dest_addr)
@@ -155,8 +155,8 @@ void putc(char c)
                return;
 
        if (c == '\n')
-               NS16550_putc((NS16550_t)(CFG_IMMR + 0x4500), '\r');
+               NS16550_putc((NS16550_t)(CONFIG_SYS_IMMR + 0x4500), '\r');
 
-       NS16550_putc((NS16550_t)(CFG_IMMR + 0x4500), c);
+       NS16550_putc((NS16550_t)(CONFIG_SYS_IMMR + 0x4500), c);
 }
 #endif
index 128cd40575d381cd5eb896a7cda8fb01c02571e4..99e8a43f5d3644355a1b931d00757a2d4bd45ee7 100644 (file)
@@ -35,7 +35,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifndef CFG_8313ERDB_BROKEN_PMC
+#ifndef CONFIG_SYS_8313ERDB_BROKEN_PMC
 static void resume_from_sleep(void)
 {
        u32 magic = *(u32 *)0;
@@ -58,15 +58,15 @@ static void resume_from_sleep(void)
  */
 static long fixed_sdram(void)
 {
-       u32 msize = CFG_DDR_SIZE * 1024 * 1024;
+       u32 msize = CONFIG_SYS_DDR_SIZE * 1024 * 1024;
 
-#ifndef CFG_RAMBOOT
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+#ifndef CONFIG_SYS_RAMBOOT
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        u32 msize_log2 = __ilog2(msize);
 
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LBLAWAR_EN | (msize_log2 - 1);
-       im->sysconf.ddrcdr = CFG_DDRCDR_VALUE;
+       im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE;
 
        /*
         * Erratum DDR3 requires a 50ms delay after clearing DDRCDR[DDR_cfg],
@@ -75,29 +75,29 @@ static long fixed_sdram(void)
        udelay(50000);
 
        im->ddr.csbnds[0].csbnds = (msize - 1) >> 24;
-       im->ddr.cs_config[0] = CFG_DDR_CONFIG;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CONFIG;
 
        /* Currently we use only one CS, so disable the other bank. */
        im->ddr.cs_config[1] = 0;
 
-       im->ddr.sdram_clk_cntl = CFG_DDR_CLK_CNTL;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
 
-#ifndef CFG_8313ERDB_BROKEN_PMC
+#ifndef CONFIG_SYS_8313ERDB_BROKEN_PMC
        if (im->pmc.pmccr1 & PMCCR1_POWER_OFF)
-               im->ddr.sdram_cfg = CFG_SDRAM_CFG | SDRAM_CFG_BI;
+               im->ddr.sdram_cfg = CONFIG_SYS_SDRAM_CFG | SDRAM_CFG_BI;
        else
 #endif
-               im->ddr.sdram_cfg = CFG_SDRAM_CFG;
+               im->ddr.sdram_cfg = CONFIG_SYS_SDRAM_CFG;
 
-       im->ddr.sdram_cfg2 = CFG_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE_2;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE_2;
 
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
        sync();
 
        /* enable DDR controller */
@@ -109,7 +109,7 @@ static long fixed_sdram(void)
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbc = &im->lbus;
        u32 msize;
 
@@ -120,11 +120,11 @@ phys_size_t initdram(int board_type)
        msize = fixed_sdram();
 
        /* Local Bus setup lbcr and mrtpr */
-       lbc->lbcr = CFG_LBC_LBCR;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        sync();
 
-#ifndef CFG_8313ERDB_BROKEN_PMC
+#ifndef CONFIG_SYS_8313ERDB_BROKEN_PMC
        if (im->pmc.pmccr1 & PMCCR1_POWER_OFF)
                resume_from_sleep();
 #endif
index 033021876941331b976a13cbdab78270f38e45a4..ea4b04fd3de73724d41c9a148c438d775cef1041 100644 (file)
@@ -35,7 +35,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_early_init_f(void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
 
        if (im->pmc.pmccr1 & PMCCR1_POWER_OFF)
                gd->flags |= GD_FLG_SILENT;
@@ -48,7 +48,7 @@ static u8 read_board_info(void)
        u8 val8;
        i2c_set_bus_num(0);
 
-       if (i2c_read(CFG_I2C_PCF8574A_ADDR, 0, 0, &val8, 1) == 0)
+       if (i2c_read(CONFIG_SYS_I2C_PCF8574A_ADDR, 0, 0, &val8, 1) == 0)
                return val8;
        else
                return 0;
@@ -76,28 +76,28 @@ int checkboard(void)
 
 static struct pci_region pci_regions[] = {
        {
-               bus_start: CFG_PCI_MEM_BASE,
-               phys_start: CFG_PCI_MEM_PHYS,
-               size: CFG_PCI_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI_MEM_PHYS,
+               size: CONFIG_SYS_PCI_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI_MMIO_BASE,
-               phys_start: CFG_PCI_MMIO_PHYS,
-               size: CFG_PCI_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI_MMIO_PHYS,
+               size: CONFIG_SYS_PCI_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
        {
-               bus_start: CFG_PCI_IO_BASE,
-               phys_start: CFG_PCI_IO_PHYS,
-               size: CFG_PCI_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI_IO_BASE,
+               phys_start: CONFIG_SYS_PCI_IO_PHYS,
+               size: CONFIG_SYS_PCI_IO_SIZE,
                flags: PCI_REGION_IO
        }
 };
 
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
        struct pci_region *reg[] = { pci_regions };
@@ -109,10 +109,10 @@ void pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LBLAWAR_EN | LBLAWAR_512MB;
 
-       pci_law[1].bar = CFG_PCI_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LBLAWAR_EN | LBLAWAR_1MB;
 
        warmboot = gd->bd->bi_bootflags & BOOTFLAG_WARM;
index 3714c2c2eff4095818ec99d86588e0a056a1208c..ead7b1e0de45f68fd4f2dabb9aeb95b13ca48b5a 100644 (file)
@@ -56,13 +56,13 @@ static void resume_from_sleep(void)
  */
 static long fixed_sdram(void)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
-       u32 msize = CFG_DDR_SIZE * 1024 * 1024;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
+       u32 msize = CONFIG_SYS_DDR_SIZE * 1024 * 1024;
        u32 msize_log2 = __ilog2(msize);
 
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE  & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE  & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LBLAWAR_EN | (msize_log2 - 1);
-       im->sysconf.ddrcdr = CFG_DDRCDR_VALUE;
+       im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE;
 
        /*
         * Erratum DDR3 requires a 50ms delay after clearing DDRCDR[DDR_cfg],
@@ -71,27 +71,27 @@ static long fixed_sdram(void)
        udelay(50000);
 
        im->ddr.csbnds[0].csbnds = (msize - 1) >> 24;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
 
        /* Currently we use only one CS, so disable the other bank. */
        im->ddr.cs_config[1] = 0;
 
-       im->ddr.sdram_clk_cntl = CFG_DDR_SDRAM_CLK_CNTL;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_SDRAM_CLK_CNTL;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
 
        if (im->pmc.pmccr1 & PMCCR1_POWER_OFF)
-               im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG | SDRAM_CFG_BI;
+               im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG | SDRAM_CFG_BI;
        else
-               im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
+               im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
 
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
 
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
        sync();
 
        /* enable DDR controller */
@@ -103,7 +103,7 @@ static long fixed_sdram(void)
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        u32 msize;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32)im)
index f5220abdb0b94af45809e371f7e6b110e78933ee..8680a19a6f5d10b3e74fe361613dadbcfd719a51 100644 (file)
@@ -75,14 +75,14 @@ int fixed_sdram(void);
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32) im)
                return -1;
 
        /* DDR SDRAM - Main SODIMM */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
 
        msize = fixed_sdram();
 
@@ -95,12 +95,12 @@ phys_size_t initdram(int board_type)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
        u32 ddr_size;
        u32 ddr_size_log2;
 
-       msize = CFG_DDR_SIZE;
+       msize = CONFIG_SYS_DDR_SIZE;
        for (ddr_size = msize << 20, ddr_size_log2 = 0;
             (ddr_size > 1); ddr_size = ddr_size >> 1, ddr_size_log2++) {
                if (ddr_size & 1) {
@@ -109,18 +109,18 @@ int fixed_sdram(void)
        }
        im->sysconf.ddrlaw[0].ar =
            LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE);
-       im->ddr.sdram_clk_cntl = CFG_DDR_CLK_CNTL;
-       im->ddr.csbnds[0].csbnds = CFG_DDR_CS0_BNDS;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL;
+       im->ddr.csbnds[0].csbnds = CONFIG_SYS_DDR_CS0_BNDS;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
        __asm__ __volatile__ ("sync");
        udelay(200);
 
@@ -137,28 +137,28 @@ int checkboard(void)
 
 static struct pci_region pci_regions[] = {
        {
-               bus_start: CFG_PCI1_MEM_BASE,
-               phys_start: CFG_PCI1_MEM_PHYS,
-               size: CFG_PCI1_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI1_MEM_PHYS,
+               size: CONFIG_SYS_PCI1_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI1_MMIO_BASE,
-               phys_start: CFG_PCI1_MMIO_PHYS,
-               size: CFG_PCI1_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI1_MMIO_PHYS,
+               size: CONFIG_SYS_PCI1_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
        {
-               bus_start: CFG_PCI1_IO_BASE,
-               phys_start: CFG_PCI1_IO_PHYS,
-               size: CFG_PCI1_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_IO_BASE,
+               phys_start: CONFIG_SYS_PCI1_IO_PHYS,
+               size: CONFIG_SYS_PCI1_IO_SIZE,
                flags: PCI_REGION_IO
        }
 };
 
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
        struct pci_region *reg[] = { pci_regions };
@@ -167,10 +167,10 @@ void pci_init_board(void)
        clk->occr |= 0xe0000000;
 
        /* Configure PCI Local Access Windows */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LBLAWAR_EN | LBLAWAR_512MB;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LBLAWAR_EN | LBLAWAR_1MB;
 
        mpc83xx_pci_init(1, reg, 0);
@@ -186,7 +186,7 @@ void ft_board_setup(void *blob, bd_t *bd)
 }
 #endif
 
-#if defined(CFG_I2C_MAC_OFFSET)
+#if defined(CONFIG_SYS_I2C_MAC_OFFSET)
 int mac_read_from_eeprom(void)
 {
        uchar buf[28];
@@ -196,9 +196,9 @@ int mac_read_from_eeprom(void)
        unsigned char enetvar[32];
 
        /* Read MAC addresses from EEPROM */
-       if (eeprom_read(CFG_I2C_EEPROM_ADDR, CFG_I2C_MAC_OFFSET, buf, 28)) {
+       if (eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, CONFIG_SYS_I2C_MAC_OFFSET, buf, 28)) {
                printf("\nEEPROM @ 0x%02x read FAILED!!!\n",
-                      CFG_I2C_EEPROM_ADDR);
+                      CONFIG_SYS_I2C_EEPROM_ADDR);
        } else {
                if (crc32(crc, buf, 24) == *(unsigned int *)&buf[24]) {
                        printf("Reading MAC from EEPROM\n");
index 4ad6e9d4545a0130ad1026604327fc8a7d940106..d4d4479312d6c5d50f10cf757042f4e4400bd6cf 100644 (file)
@@ -76,7 +76,7 @@ const qe_iop_conf_t qe_iop_conf_tab[] = {
 
 int board_early_init_f(void)
 {
-       volatile u8 *bcsr = (volatile u8 *)CFG_BCSR;
+       volatile u8 *bcsr = (volatile u8 *)CONFIG_SYS_BCSR;
 
        /* Enable flash write */
        bcsr[9] &= ~0x08;
@@ -96,14 +96,14 @@ int fixed_sdram(void);
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32) im)
                return -1;
 
        /* DDR SDRAM - Main SODIMM */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
 
        msize = fixed_sdram();
 
@@ -116,12 +116,12 @@ phys_size_t initdram(int board_type)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
        u32 ddr_size;
        u32 ddr_size_log2;
 
-       msize = CFG_DDR_SIZE;
+       msize = CONFIG_SYS_DDR_SIZE;
        for (ddr_size = msize << 20, ddr_size_log2 = 0;
             (ddr_size > 1); ddr_size = ddr_size >> 1, ddr_size_log2++) {
                if (ddr_size & 1) {
@@ -130,21 +130,21 @@ int fixed_sdram(void)
        }
        im->sysconf.ddrlaw[0].ar =
            LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE);
-#if (CFG_DDR_SIZE != 128)
+#if (CONFIG_SYS_DDR_SIZE != 128)
 #warning Currenly any ddr size other than 128 is not supported
 #endif
-       im->ddr.sdram_clk_cntl = CFG_DDR_CLK_CNTL;
-       im->ddr.csbnds[0].csbnds = CFG_DDR_CS0_BNDS;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL;
+       im->ddr.csbnds[0].csbnds = CONFIG_SYS_DDR_CS0_BNDS;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
        __asm__ __volatile__ ("sync");
        udelay(200);
 
index b0304229d2d81fe856bf8ca369b773bc552389db..2a48dd24ee55ebdcf00c48d4e7640d521f2b420d 100644 (file)
@@ -67,7 +67,7 @@ void pci_init_board(void)
        volatile pcictrl83xx_t *pci_ctrl;
        volatile pciconf83xx_t *pci_conf;
 
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        pci_law = immr->sysconf.pcilaw;
        pci_pot = immr->ios.pot;
        pci_ctrl = immr->pci_ctrl;
@@ -93,7 +93,7 @@ void pci_init_board(void)
        hose[0].first_busno = 0;
        hose[0].last_busno = 0xff;
        pci_setup_indirect(&hose[0],
-                          (CFG_IMMR + 0x8300), (CFG_IMMR + 0x8304));
+                          (CONFIG_SYS_IMMR + 0x8300), (CONFIG_SYS_IMMR + 0x8304));
        reg16 = 0xff;
 
        pci_hose_read_config_word(&hose[0], PCI_BDF(0, 0, 0),
@@ -134,7 +134,7 @@ void pci_init_board(void)
        u32 val32;
        u32 dev;
 
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        clk = (clk83xx_t *) & immr->clk;
        pci_law = immr->sysconf.pcilaw;
        pci_pot = immr->ios.pot;
@@ -161,10 +161,10 @@ void pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_512M;
 
-       pci_law[1].bar = CFG_PCI_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_1M;
 
        /*
@@ -172,26 +172,26 @@ void pci_init_board(void)
         */
 
        /* PCI mem space - prefetch */
-       pci_pot[0].potar = (CFG_PCI_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[0].pobar = (CFG_PCI_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[0].potar = (CONFIG_SYS_PCI_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[0].pobar = (CONFIG_SYS_PCI_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[0].pocmr =
            POCMR_EN | POCMR_SE | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /* PCI mmio - non-prefetch mem space */
-       pci_pot[1].potar = (CFG_PCI_MMIO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[1].pobar = (CFG_PCI_MMIO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[1].potar = (CONFIG_SYS_PCI_MMIO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[1].pobar = (CONFIG_SYS_PCI_MMIO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[1].pocmr = POCMR_EN | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /* PCI IO space */
-       pci_pot[2].potar = (CFG_PCI_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[2].pobar = (CFG_PCI_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[2].potar = (CONFIG_SYS_PCI_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[2].pobar = (CONFIG_SYS_PCI_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[2].pocmr = POCMR_EN | POCMR_IO | (POCMR_CM_1M & POCMR_CM_MASK);
 
        /*
         * Configure PCI Inbound Translation Windows
         */
-       pci_ctrl[0].pitar1 = (CFG_PCI_SLV_MEM_LOCAL >> 12) & PITAR_TA_MASK;
-       pci_ctrl[0].pibar1 = (CFG_PCI_SLV_MEM_BUS >> 12) & PIBAR_MASK;
+       pci_ctrl[0].pitar1 = (CONFIG_SYS_PCI_SLV_MEM_LOCAL >> 12) & PITAR_TA_MASK;
+       pci_ctrl[0].pibar1 = (CONFIG_SYS_PCI_SLV_MEM_BUS >> 12) & PIBAR_MASK;
        pci_ctrl[0].piebar1 = 0x0;
        pci_ctrl[0].piwar1 =
            PIWAR_EN | PIWAR_PF | PIWAR_RTT_SNOOP | PIWAR_WTT_SNOOP |
@@ -209,31 +209,31 @@ void pci_init_board(void)
 
        /* PCI memory prefetch space */
        pci_set_region(hose[0].regions + 0,
-                      CFG_PCI_MEM_BASE,
-                      CFG_PCI_MEM_PHYS,
-                      CFG_PCI_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
+                      CONFIG_SYS_PCI_MEM_BASE,
+                      CONFIG_SYS_PCI_MEM_PHYS,
+                      CONFIG_SYS_PCI_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
 
        /* PCI memory space */
        pci_set_region(hose[0].regions + 1,
-                      CFG_PCI_MMIO_BASE,
-                      CFG_PCI_MMIO_PHYS, CFG_PCI_MMIO_SIZE, PCI_REGION_MEM);
+                      CONFIG_SYS_PCI_MMIO_BASE,
+                      CONFIG_SYS_PCI_MMIO_PHYS, CONFIG_SYS_PCI_MMIO_SIZE, PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose[0].regions + 2,
-                      CFG_PCI_IO_BASE,
-                      CFG_PCI_IO_PHYS, CFG_PCI_IO_SIZE, PCI_REGION_IO);
+                      CONFIG_SYS_PCI_IO_BASE,
+                      CONFIG_SYS_PCI_IO_PHYS, CONFIG_SYS_PCI_IO_SIZE, PCI_REGION_IO);
 
        /* System memory space */
        pci_set_region(hose[0].regions + 3,
-                      CFG_PCI_SLV_MEM_LOCAL,
-                      CFG_PCI_SLV_MEM_BUS,
-                      CFG_PCI_SLV_MEM_SIZE,
+                      CONFIG_SYS_PCI_SLV_MEM_LOCAL,
+                      CONFIG_SYS_PCI_SLV_MEM_BUS,
+                      CONFIG_SYS_PCI_SLV_MEM_SIZE,
                       PCI_REGION_MEM | PCI_REGION_MEMORY);
 
        hose[0].region_count = 4;
 
        pci_setup_indirect(&hose[0],
-                          (CFG_IMMR + 0x8300), (CFG_IMMR + 0x8304));
+                          (CONFIG_SYS_IMMR + 0x8300), (CONFIG_SYS_IMMR + 0x8304));
 
        pci_register_hose(hose);
 
index ef947feda1dae63afb7a3a2845ff3d21c2ef275e..fa44360e1a663699d4a4c5a570c9744bee0dc357 100644 (file)
@@ -44,12 +44,12 @@ void ddr_enable_ecc(unsigned int dram_size);
 
 int board_early_init_f (void)
 {
-       volatile u8* bcsr = (volatile u8*)CFG_BCSR;
+       volatile u8* bcsr = (volatile u8*)CONFIG_SYS_BCSR;
 
        /* Enable flash write */
        bcsr[1] &= ~0x01;
 
-#ifdef CFG_USE_MPC834XSYS_USB_PHY
+#ifdef CONFIG_SYS_USE_MPC834XSYS_USB_PHY
        /* Use USB PHY on SYS board */
        bcsr[5] |= 0x02;
 #endif
@@ -61,14 +61,14 @@ int board_early_init_f (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32)im)
                return -1;
 
        /* DDR SDRAM - Main SODIMM */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
 #if defined(CONFIG_SPD_EEPROM)
        msize = spd_sdram();
 #else
@@ -96,12 +96,12 @@ phys_size_t initdram (int board_type)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;
        u32 ddr_size;
        u32 ddr_size_log2;
 
-       msize = CFG_DDR_SIZE;
+       msize = CONFIG_SYS_DDR_SIZE;
        for (ddr_size = msize << 20, ddr_size_log2 = 0;
             (ddr_size > 1);
             ddr_size = ddr_size>>1, ddr_size_log2++) {
@@ -109,36 +109,36 @@ int fixed_sdram(void)
                        return -1;
                }
        }
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE);
 
-#if (CFG_DDR_SIZE != 256)
+#if (CONFIG_SYS_DDR_SIZE != 256)
 #warning Currenly any ddr size other than 256 is not supported
 #endif
 #ifdef CONFIG_DDR_II
-       im->ddr.csbnds[2].csbnds = CFG_DDR_CS2_BNDS;
-       im->ddr.cs_config[2] = CFG_DDR_CS2_CONFIG;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
-       im->ddr.sdram_clk_cntl = CFG_DDR_CLK_CNTL;
+       im->ddr.csbnds[2].csbnds = CONFIG_SYS_DDR_CS2_BNDS;
+       im->ddr.cs_config[2] = CONFIG_SYS_DDR_CS2_CONFIG;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL;
 #else
        im->ddr.csbnds[2].csbnds = 0x0000000f;
-       im->ddr.cs_config[2] = CFG_DDR_CONFIG;
+       im->ddr.cs_config[2] = CONFIG_SYS_DDR_CONFIG;
 
        /* currently we use only one CS, so disable the other banks */
        im->ddr.cs_config[0] = 0;
        im->ddr.cs_config[1] = 0;
        im->ddr.cs_config[3] = 0;
 
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
 
        im->ddr.sdram_cfg =
                SDRAM_CFG_SREN
@@ -150,9 +150,9 @@ int fixed_sdram(void)
        /* for 32-bit mode burst length is 8 */
        im->ddr.sdram_cfg |= (SDRAM_CFG_32_BE | SDRAM_CFG_8_BE);
 #endif
-       im->ddr.sdram_mode = CFG_DDR_MODE;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
 
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
 #endif
        udelay(200);
 
@@ -160,7 +160,7 @@ int fixed_sdram(void)
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
        return msize;
 }
-#endif/*!CFG_SPD_EEPROM*/
+#endif/*!CONFIG_SYS_SPD_EEPROM*/
 
 
 int checkboard (void)
@@ -181,41 +181,41 @@ int checkboard (void)
 /*
  * if MPC8349EMDS is soldered with SDRAM
  */
-#if defined(CFG_BR2_PRELIM)  \
-       && defined(CFG_OR2_PRELIM) \
-       && defined(CFG_LBLAWBAR2_PRELIM) \
-       && defined(CFG_LBLAWAR2_PRELIM)
+#if defined(CONFIG_SYS_BR2_PRELIM)  \
+       && defined(CONFIG_SYS_OR2_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWBAR2_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWAR2_PRELIM)
 /*
  * Initialize SDRAM memory on the Local Bus.
  */
 
 void sdram_init(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbc= &immap->lbus;
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
 
        /*
         * Setup SDRAM Base and Option Registers, already done in cpu_init.c
         */
 
        /* setup mtrpt, lsrt and lbcr for LB bus */
-       lbc->lbcr = CFG_LBC_LBCR;
-       lbc->mrtpr = CFG_LBC_MRTPR;
-       lbc->lsrt = CFG_LBC_LSRT;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
        asm("sync");
 
        /*
         * Configure the SDRAM controller Machine Mode Register.
         */
-       lbc->lsdmr = CFG_LBC_LSDMR_5; /* 0x40636733; normal operation */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5; /* 0x40636733; normal operation */
 
-       lbc->lsdmr = CFG_LBC_LSDMR_1; /* 0x68636733; precharge all the banks */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1; /* 0x68636733; precharge all the banks */
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_2; /* 0x48636733; auto refresh */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2; /* 0x48636733; auto refresh */
        asm("sync");
        /*1 times*/
        *sdram_addr = 0xff;
@@ -243,12 +243,12 @@ void sdram_init(void)
        udelay(100);
 
        /* 0x58636733; mode register write operation */
-       lbc->lsdmr = CFG_LBC_LSDMR_4;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4;
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_5; /* 0x40636733; normal operation */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5; /* 0x40636733; normal operation */
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
@@ -273,14 +273,14 @@ int spi_cs_is_valid(unsigned int bus, unsigned int cs)
 
 void spi_cs_activate(struct spi_slave *slave)
 {
-       volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0];
+       volatile gpio83xx_t *iopd = &((immap_t *)CONFIG_SYS_IMMR)->gpio[0];
 
        iopd->dat &= ~SPI_CS_MASK;
 }
 
 void spi_cs_deactivate(struct spi_slave *slave)
 {
-       volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0];
+       volatile gpio83xx_t *iopd = &((immap_t *)CONFIG_SYS_IMMR)->gpio[0];
 
        iopd->dat |=  SPI_CS_MASK;
 }
index 9c19e303f9634d6955e457c006fafadf796a9361..ad7bf5d5085bf305a850a1e1b013db6aeeb765b1 100644 (file)
@@ -33,21 +33,21 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static struct pci_region pci1_regions[] = {
        {
-               bus_start: CFG_PCI1_MEM_BASE,
-               phys_start: CFG_PCI1_MEM_PHYS,
-               size: CFG_PCI1_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI1_MEM_PHYS,
+               size: CONFIG_SYS_PCI1_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI1_IO_BASE,
-               phys_start: CFG_PCI1_IO_PHYS,
-               size: CFG_PCI1_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_IO_BASE,
+               phys_start: CONFIG_SYS_PCI1_IO_PHYS,
+               size: CONFIG_SYS_PCI1_IO_SIZE,
                flags: PCI_REGION_IO
        },
        {
-               bus_start: CFG_PCI1_MMIO_BASE,
-               phys_start: CFG_PCI1_MMIO_PHYS,
-               size: CFG_PCI1_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI1_MMIO_PHYS,
+               size: CONFIG_SYS_PCI1_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
 };
@@ -55,21 +55,21 @@ static struct pci_region pci1_regions[] = {
 #ifdef CONFIG_MPC83XX_PCI2
 static struct pci_region pci2_regions[] = {
        {
-               bus_start: CFG_PCI2_MEM_BASE,
-               phys_start: CFG_PCI2_MEM_PHYS,
-               size: CFG_PCI2_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI2_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI2_MEM_PHYS,
+               size: CONFIG_SYS_PCI2_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI2_IO_BASE,
-               phys_start: CFG_PCI2_IO_PHYS,
-               size: CFG_PCI2_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI2_IO_BASE,
+               phys_start: CONFIG_SYS_PCI2_IO_PHYS,
+               size: CONFIG_SYS_PCI2_IO_SIZE,
                flags: PCI_REGION_IO
        },
        {
-               bus_start: CFG_PCI2_MMIO_BASE,
-               phys_start: CFG_PCI2_MMIO_PHYS,
-               size: CFG_PCI2_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI2_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI2_MMIO_PHYS,
+               size: CONFIG_SYS_PCI2_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
 };
@@ -135,7 +135,7 @@ void pib_init(void)
 
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
 #ifndef CONFIG_MPC83XX_PCI2
@@ -152,10 +152,10 @@ void pci_init_board(void)
        udelay(2000);
 
        /* Configure PCI Local Access Windows */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_1G;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_4M;
 
        udelay(2000);
@@ -170,7 +170,7 @@ void pci_init_board(void)
 #else
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
        volatile pcictrl83xx_t *pci_ctrl = &immr->pci_ctrl[0];
@@ -181,10 +181,10 @@ void pci_init_board(void)
        udelay(2000);
 
        /* Configure PCI Local Access Windows */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_1G;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_4M;
 
        udelay(2000);
index 0a20e2bba4019d215e7c92ebf34abe7b18ca5154..3169536d6310a893bcfbbbf04836c82a2edd5da7 100644 (file)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 ddr_size;           /* The size of RAM, in bytes */
        u32 ddr_size_log2 = 0;
 
-       for (ddr_size = CFG_DDR_SIZE * 0x100000; ddr_size > 1; ddr_size >>= 1) {
+       for (ddr_size = CONFIG_SYS_DDR_SIZE * 0x100000; ddr_size > 1; ddr_size >>= 1) {
                if (ddr_size & 1) {
                        return -1;
                }
@@ -55,11 +55,11 @@ int fixed_sdram(void)
 
        im->sysconf.ddrlaw[0].ar =
            LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE);
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
 
        /* Only one CS0 for DDR */
        im->ddr.csbnds[0].csbnds = 0x0000000f;
-       im->ddr.cs_config[0] = CFG_DDR_CONFIG;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CONFIG;
 
        debug("cs0_bnds = 0x%08x\n", im->ddr.csbnds[0].csbnds);
        debug("cs0_config = 0x%08x\n", im->ddr.cs_config[0]);
@@ -67,15 +67,15 @@ int fixed_sdram(void)
        debug("DDR:bar=0x%08x\n", im->sysconf.ddrlaw[0].bar);
        debug("DDR:ar=0x%08x\n", im->sysconf.ddrlaw[0].ar);
 
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;/* Was "2 << TIMING_CFG2_WR_DATA_DELAY_SHIFT" */
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;/* Was "2 << TIMING_CFG2_WR_DATA_DELAY_SHIFT" */
        im->ddr.sdram_cfg = SDRAM_CFG_SREN | SDRAM_CFG_SDRAM_TYPE_DDR1;
        im->ddr.sdram_mode =
            (0x0000 << SDRAM_MODE_ESD_SHIFT) | (0x0032 << SDRAM_MODE_SD_SHIFT);
        im->ddr.sdram_interval =
            (0x0410 << SDRAM_INTERVAL_REFINT_SHIFT) | (0x0100 <<
                                                       SDRAM_INTERVAL_BSTOPRE_SHIFT);
-       im->ddr.sdram_clk_cntl = CFG_DDR_SDRAM_CLK_CNTL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_SDRAM_CLK_CNTL;
 
        udelay(200);
 
@@ -87,7 +87,7 @@ int fixed_sdram(void)
        debug("DDR:sdram_interval=0x%08x\n", im->ddr.sdram_interval);
        debug("DDR:sdram_cfg=0x%08x\n", im->ddr.sdram_cfg);
 
-       return CFG_DDR_SIZE;
+       return CONFIG_SYS_DDR_SIZE;
 }
 #endif
 
@@ -130,7 +130,7 @@ volatile static struct pci_controller hose[] = {
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
 #ifdef CONFIG_DDR_ECC
        volatile ddr83xx_t *ddr = &im->ddr;
@@ -140,7 +140,7 @@ phys_size_t initdram(int board_type)
                return -1;
 
        /* DDR SDRAM - Main SODIMM */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
 #ifdef CONFIG_SPD_EEPROM
        msize = spd_sdram();
 #else
@@ -196,7 +196,7 @@ int misc_init_f(void)
           don't enable compact flash for U-Boot.
         */
 
-       vsc7385_cpuctrl = (volatile u32 *)(CFG_VSC7385_BASE + 0x1c0c0);
+       vsc7385_cpuctrl = (volatile u32 *)(CONFIG_SYS_VSC7385_BASE + 0x1c0c0);
        *vsc7385_cpuctrl |= 0x0c;
 #endif
 
@@ -220,11 +220,11 @@ int misc_init_f(void)
                0xfffffc00, 0xfffffc00, 0xfffffc00, 0xfffffc01,
                0xfffffc00, 0xfffffc00, 0xfffffc00, 0xfffffc01
        };
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbus = &immap->lbus;
 
-       lbus->bank[3].br = CFG_BR3_PRELIM;
-       lbus->bank[3].or = CFG_OR3_PRELIM;
+       lbus->bank[3].br = CONFIG_SYS_BR3_PRELIM;
+       lbus->bank[3].or = CONFIG_SYS_OR3_PRELIM;
 
        /* Program the MAMR. RFEN=0, OP=00, UWPL=1, AM=000, DS=01, G0CL=000,
           GPL4=0, RLF=0001, WLF=0001, TLF=0001, MAD=000000
@@ -265,26 +265,26 @@ int misc_init_r(void)
        unsigned int orig_bus = i2c_get_bus_num();
        u8 i2c_data;
 
-#ifdef CFG_I2C_RTC_ADDR
+#ifdef CONFIG_SYS_I2C_RTC_ADDR
        u8 ds1339_data[17];
 #endif
 
-#ifdef CFG_I2C_EEPROM_ADDR
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR
        static u8 eeprom_data[] =       /* HRCW data */
        {
                0xAA, 0x55, 0xAA,       /* Preamble */
                0x7C,                   /* ACS=0, BYTE_EN=1111, CONT=1 */
                0x02, 0x40,             /* RCWL ADDR=0x0_0900 */
-               (CFG_HRCW_LOW >> 24) & 0xFF,
-               (CFG_HRCW_LOW >> 16) & 0xFF,
-               (CFG_HRCW_LOW >> 8) & 0xFF,
-               CFG_HRCW_LOW & 0xFF,
+               (CONFIG_SYS_HRCW_LOW >> 24) & 0xFF,
+               (CONFIG_SYS_HRCW_LOW >> 16) & 0xFF,
+               (CONFIG_SYS_HRCW_LOW >> 8) & 0xFF,
+               CONFIG_SYS_HRCW_LOW & 0xFF,
                0x7C,                   /* ACS=0, BYTE_EN=1111, CONT=1 */
                0x02, 0x41,             /* RCWH ADDR=0x0_0904 */
-               (CFG_HRCW_HIGH >> 24) & 0xFF,
-               (CFG_HRCW_HIGH >> 16) & 0xFF,
-               (CFG_HRCW_HIGH >> 8) & 0xFF,
-               CFG_HRCW_HIGH & 0xFF
+               (CONFIG_SYS_HRCW_HIGH >> 24) & 0xFF,
+               (CONFIG_SYS_HRCW_HIGH >> 16) & 0xFF,
+               (CONFIG_SYS_HRCW_HIGH >> 8) & 0xFF,
+               CONFIG_SYS_HRCW_HIGH & 0xFF
        };
 
        u8 data[sizeof(eeprom_data)];
@@ -292,22 +292,22 @@ int misc_init_r(void)
 
        printf("Board revision: ");
        i2c_set_bus_num(1);
-       if (i2c_read(CFG_I2C_8574A_ADDR2, 0, 0, &i2c_data, sizeof(i2c_data)) == 0)
+       if (i2c_read(CONFIG_SYS_I2C_8574A_ADDR2, 0, 0, &i2c_data, sizeof(i2c_data)) == 0)
                printf("%u.%u (PCF8475A)\n", (i2c_data & 0x02) >> 1, i2c_data & 0x01);
-       else if (i2c_read(CFG_I2C_8574_ADDR2, 0, 0, &i2c_data, sizeof(i2c_data)) == 0)
+       else if (i2c_read(CONFIG_SYS_I2C_8574_ADDR2, 0, 0, &i2c_data, sizeof(i2c_data)) == 0)
                printf("%u.%u (PCF8475)\n",  (i2c_data & 0x02) >> 1, i2c_data & 0x01);
        else {
                printf("Unknown\n");
                rc = 1;
        }
 
-#ifdef CFG_I2C_EEPROM_ADDR
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR
        i2c_set_bus_num(0);
 
-       if (i2c_read(CFG_I2C_EEPROM_ADDR, 0, 2, data, sizeof(data)) == 0) {
+       if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, 2, data, sizeof(data)) == 0) {
                if (memcmp(data, eeprom_data, sizeof(data)) != 0) {
                        if (i2c_write
-                           (CFG_I2C_EEPROM_ADDR, 0, 2, eeprom_data,
+                           (CONFIG_SYS_I2C_EEPROM_ADDR, 0, 2, eeprom_data,
                             sizeof(eeprom_data)) != 0) {
                                puts("Failure writing the HRCW to EEPROM via I2C.\n");
                                rc = 1;
@@ -319,10 +319,10 @@ int misc_init_r(void)
        }
 #endif
 
-#ifdef CFG_I2C_RTC_ADDR
+#ifdef CONFIG_SYS_I2C_RTC_ADDR
        i2c_set_bus_num(1);
 
-       if (i2c_read(CFG_I2C_RTC_ADDR, 0, 1, ds1339_data, sizeof(ds1339_data))
+       if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, ds1339_data, sizeof(ds1339_data))
            == 0) {
 
                /* Work-around for MPC8349E-mITX bug #13601.
@@ -366,7 +366,7 @@ int misc_init_r(void)
                 */
 
                if (i2c_write
-                   (CFG_I2C_RTC_ADDR, 0, 1, ds1339_data,
+                   (CONFIG_SYS_I2C_RTC_ADDR, 0, 1, ds1339_data,
                     sizeof(ds1339_data))) {
                        puts("Failure writing to the RTC via I2C.\n");
                        rc = 1;
index d33edf367b37c1140ffaa774d23395e39af65ff4..fd2c172de4e46f297adc096a0b01f1291fd6da6c 100644 (file)
@@ -37,8 +37,8 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* System RAM mapped to PCI space */
-#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CONFIG_SYS_SDRAM_BASE
 
 #ifndef CONFIG_PCI_PNP
 static struct pci_config_table pci_mpc8349itx_config_table[] = {
@@ -92,7 +92,7 @@ void pci_init_board(void)
        u32 dev;
        struct pci_controller *hose;
 
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        clk = (clk83xx_t *) & immr->clk;
        pci_law = immr->sysconf.pcilaw;
        pci_pot = immr->ios.pot;
@@ -111,8 +111,8 @@ void pci_init_board(void)
 #ifdef CONFIG_HARD_I2C
        i2c_set_bus_num(1);
        /* Read the PCI_M66EN jumper setting */
-       if ((i2c_read(CFG_I2C_8574_ADDR2, 0, 0, &reg8, sizeof(reg8)) == 0) ||
-           (i2c_read(CFG_I2C_8574A_ADDR2, 0, 0, &reg8, sizeof(reg8)) == 0)) {
+       if ((i2c_read(CONFIG_SYS_I2C_8574_ADDR2, 0, 0, &reg8, sizeof(reg8)) == 0) ||
+           (i2c_read(CONFIG_SYS_I2C_8574A_ADDR2, 0, 0, &reg8, sizeof(reg8)) == 0)) {
                if (reg8 & I2C_8574_PCI66)
                        clk->occr = 0xff000000; /* 66 MHz PCI */
                else
@@ -150,10 +150,10 @@ void pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_1G;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_32M;
 
        /*
@@ -161,18 +161,18 @@ void pci_init_board(void)
         */
 
        /* PCI1 mem space - prefetch */
-       pci_pot[0].potar = (CFG_PCI1_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[0].pobar = (CFG_PCI1_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[0].potar = (CONFIG_SYS_PCI1_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[0].pobar = (CONFIG_SYS_PCI1_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[0].pocmr = POCMR_EN | POCMR_PREFETCH_EN | POCMR_CM_256M;
 
        /* PCI1 IO space */
-       pci_pot[1].potar = (CFG_PCI1_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[1].pobar = (CFG_PCI1_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[1].potar = (CONFIG_SYS_PCI1_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[1].pobar = (CONFIG_SYS_PCI1_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[1].pocmr = POCMR_EN | POCMR_IO | POCMR_CM_16M;
 
        /* PCI1 mmio - non-prefetch mem space */
-       pci_pot[2].potar = (CFG_PCI1_MMIO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[2].pobar = (CFG_PCI1_MMIO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[2].potar = (CONFIG_SYS_PCI1_MMIO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[2].pobar = (CONFIG_SYS_PCI1_MMIO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[2].pocmr = POCMR_EN | POCMR_CM_256M;
 
        /*
@@ -192,19 +192,19 @@ void pci_init_board(void)
 
        /* PCI memory prefetch space */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI1_MEM_BASE,
-                      CFG_PCI1_MEM_PHYS,
-                      CFG_PCI1_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
+                      CONFIG_SYS_PCI1_MEM_BASE,
+                      CONFIG_SYS_PCI1_MEM_PHYS,
+                      CONFIG_SYS_PCI1_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI1_MMIO_BASE,
-                      CFG_PCI1_MMIO_PHYS, CFG_PCI1_MMIO_SIZE, PCI_REGION_MEM);
+                      CONFIG_SYS_PCI1_MMIO_BASE,
+                      CONFIG_SYS_PCI1_MMIO_PHYS, CONFIG_SYS_PCI1_MMIO_SIZE, PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose->regions + 2,
-                      CFG_PCI1_IO_BASE,
-                      CFG_PCI1_IO_PHYS, CFG_PCI1_IO_SIZE, PCI_REGION_IO);
+                      CONFIG_SYS_PCI1_IO_BASE,
+                      CONFIG_SYS_PCI1_IO_PHYS, CONFIG_SYS_PCI1_IO_SIZE, PCI_REGION_IO);
 
        /* System memory space */
        pci_set_region(hose->regions + 3,
@@ -215,7 +215,7 @@ void pci_init_board(void)
        hose->region_count = 4;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR + 0x8300), (CFG_IMMR + 0x8304));
+                          (CONFIG_SYS_IMMR + 0x8300), (CONFIG_SYS_IMMR + 0x8304));
 
        pci_register_hose(hose);
 
@@ -251,18 +251,18 @@ void pci_init_board(void)
         */
 
        /* PCI2 mem space - prefetch */
-       pci_pot[3].potar = (CFG_PCI2_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[3].pobar = (CFG_PCI2_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[3].potar = (CONFIG_SYS_PCI2_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[3].pobar = (CONFIG_SYS_PCI2_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[3].pocmr = POCMR_EN | POCMR_PCI2 | POCMR_PREFETCH_EN | POCMR_CM_256M;
 
        /* PCI2 IO space */
-       pci_pot[4].potar = (CFG_PCI2_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[4].pobar = (CFG_PCI2_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[4].potar = (CONFIG_SYS_PCI2_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[4].pobar = (CONFIG_SYS_PCI2_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[4].pocmr = POCMR_EN | POCMR_PCI2 | POCMR_IO | POCMR_CM_16M;
 
        /* PCI2 mmio - non-prefetch mem space */
-       pci_pot[5].potar = (CFG_PCI2_MMIO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[5].pobar = (CFG_PCI2_MMIO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[5].potar = (CONFIG_SYS_PCI2_MMIO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[5].pobar = (CONFIG_SYS_PCI2_MMIO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[5].pocmr = POCMR_EN | POCMR_PCI2 | POCMR_CM_256M;
 
        /*
@@ -283,19 +283,19 @@ void pci_init_board(void)
 
        /* PCI memory prefetch space */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI2_MEM_BASE,
-                      CFG_PCI2_MEM_PHYS,
-                      CFG_PCI2_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
+                      CONFIG_SYS_PCI2_MEM_BASE,
+                      CONFIG_SYS_PCI2_MEM_PHYS,
+                      CONFIG_SYS_PCI2_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI2_MMIO_BASE,
-                      CFG_PCI2_MMIO_PHYS, CFG_PCI2_MMIO_SIZE, PCI_REGION_MEM);
+                      CONFIG_SYS_PCI2_MMIO_BASE,
+                      CONFIG_SYS_PCI2_MMIO_PHYS, CONFIG_SYS_PCI2_MMIO_SIZE, PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose->regions + 2,
-                      CFG_PCI2_IO_BASE,
-                      CFG_PCI2_IO_PHYS, CFG_PCI2_IO_SIZE, PCI_REGION_IO);
+                      CONFIG_SYS_PCI2_IO_BASE,
+                      CONFIG_SYS_PCI2_IO_PHYS, CONFIG_SYS_PCI2_IO_SIZE, PCI_REGION_IO);
 
        /* System memory space */
        pci_set_region(hose->regions + 3,
@@ -306,7 +306,7 @@ void pci_init_board(void)
        hose->region_count = 4;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR + 0x8380), (CFG_IMMR + 0x8384));
+                          (CONFIG_SYS_IMMR + 0x8380), (CONFIG_SYS_IMMR + 0x8384));
 
        pci_register_hose(hose);
 
index 5c3b5dbc934d0f98aa7e704dd99d03d7db92ecea..fc0a0e515eb3a111a7c9dd5f304a900e239701cc 100644 (file)
@@ -92,8 +92,8 @@ const qe_iop_conf_t qe_iop_conf_tab[] = {
 int board_early_init_f(void)
 {
 
-       u8 *bcsr = (u8 *)CFG_BCSR;
-       const immap_t *immr = (immap_t *)CFG_IMMR;
+       u8 *bcsr = (u8 *)CONFIG_SYS_BCSR;
+       const immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
        /* Enable flash write */
        bcsr[0xa] &= ~0x04;
@@ -124,14 +124,14 @@ void sdram_init(void);
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32) im)
                return -1;
 
        /* DDR SDRAM - Main SODIMM */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
 #if defined(CONFIG_SPD_EEPROM)
        msize = spd_sdram();
 #else
@@ -159,12 +159,12 @@ phys_size_t initdram(int board_type)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
        u32 ddr_size;
        u32 ddr_size_log2;
 
-       msize = CFG_DDR_SIZE;
+       msize = CONFIG_SYS_DDR_SIZE;
        for (ddr_size = msize << 20, ddr_size_log2 = 0;
             (ddr_size > 1); ddr_size = ddr_size >> 1, ddr_size_log2++) {
                if (ddr_size & 1) {
@@ -173,42 +173,42 @@ int fixed_sdram(void)
        }
        im->sysconf.ddrlaw[0].ar =
            LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE);
-#if (CFG_DDR_SIZE != 256)
+#if (CONFIG_SYS_DDR_SIZE != 256)
 #warning Currenly any ddr size other than 256 is not supported
 #endif
 #ifdef CONFIG_DDR_II
-       im->ddr.csbnds[0].csbnds = CFG_DDR_CS0_BNDS;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
-       im->ddr.sdram_clk_cntl = CFG_DDR_CLK_CNTL;
+       im->ddr.csbnds[0].csbnds = CONFIG_SYS_DDR_CS0_BNDS;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL;
 #else
        im->ddr.csbnds[0].csbnds = 0x00000007;
        im->ddr.csbnds[1].csbnds = 0x0008000f;
 
-       im->ddr.cs_config[0] = CFG_DDR_CONFIG;
-       im->ddr.cs_config[1] = CFG_DDR_CONFIG;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CONFIG;
+       im->ddr.cs_config[1] = CONFIG_SYS_DDR_CONFIG;
 
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.sdram_cfg = CFG_DDR_CONTROL;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_CONTROL;
 
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
 #endif
        udelay(200);
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
 
        return msize;
 }
-#endif                         /*!CFG_SPD_EEPROM */
+#endif                         /*!CONFIG_SYS_SPD_EEPROM */
 
 int checkboard(void)
 {
@@ -219,34 +219,34 @@ int checkboard(void)
 /*
  * if MPC8360EMDS is soldered with SDRAM
  */
-#if defined(CFG_BR2_PRELIM)  \
-       && defined(CFG_OR2_PRELIM) \
-       && defined(CFG_LBLAWBAR2_PRELIM) \
-       && defined(CFG_LBLAWAR2_PRELIM)
+#if defined(CONFIG_SYS_BR2_PRELIM)  \
+       && defined(CONFIG_SYS_OR2_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWBAR2_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWAR2_PRELIM)
 /*
  * Initialize SDRAM memory on the Local Bus.
  */
 
 void sdram_init(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbc = &immap->lbus;
-       uint *sdram_addr = (uint *) CFG_LBC_SDRAM_BASE;
+       uint *sdram_addr = (uint *) CONFIG_SYS_LBC_SDRAM_BASE;
 
        /*
         * Setup SDRAM Base and Option Registers, already done in cpu_init.c
         */
        /*setup mtrpt, lsrt and lbcr for LB bus */
-       lbc->lbcr = CFG_LBC_LBCR;
-       lbc->mrtpr = CFG_LBC_MRTPR;
-       lbc->lsrt = CFG_LBC_LSRT;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
        asm("sync");
 
        /*
         * Configure the SDRAM controller Machine Mode Register.
         */
-       lbc->lsdmr = CFG_LBC_LSDMR_5;   /* Normal Operation */
-       lbc->lsdmr = CFG_LBC_LSDMR_1;   /* Precharge All Banks */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5;    /* Normal Operation */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1;    /* Precharge All Banks */
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
@@ -254,7 +254,7 @@ void sdram_init(void)
        /*
         * We need do 8 times auto refresh operation.
         */
-       lbc->lsdmr = CFG_LBC_LSDMR_2;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2;
        asm("sync");
        *sdram_addr = 0xff;     /* 1 times */
        udelay(100);
@@ -274,13 +274,13 @@ void sdram_init(void)
        udelay(100);
 
        /* Mode register write operation */
-       lbc->lsdmr = CFG_LBC_LSDMR_4;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4;
        asm("sync");
        *(sdram_addr + 0xcc) = 0xff;
        udelay(100);
 
        /* Normal operation */
-       lbc->lsdmr = CFG_LBC_LSDMR_5 | 0x40000000;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5 | 0x40000000;
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
@@ -294,7 +294,7 @@ void sdram_init(void)
 #if defined(CONFIG_OF_BOARD_SETUP)
 void ft_board_setup(void *blob, bd_t *bd)
 {
-       const immap_t *immr = (immap_t *)CFG_IMMR;
+       const immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
        ft_cpu_setup(blob, bd);
 #ifdef CONFIG_PCI
index 4a0d460fadc29376129d41a5f0851050d7d13504..935aca26dbbb09bfac09c1c744c864c076d98995 100644 (file)
@@ -67,7 +67,7 @@ void pci_init_board(void)
        volatile pcictrl83xx_t *pci_ctrl;
        volatile pciconf83xx_t *pci_conf;
 
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        pci_law = immr->sysconf.pcilaw;
        pci_pot = immr->ios.pot;
        pci_ctrl = immr->pci_ctrl;
@@ -93,7 +93,7 @@ void pci_init_board(void)
        hose[0].first_busno = 0;
        hose[0].last_busno = 0xff;
        pci_setup_indirect(&hose[0],
-                          (CFG_IMMR + 0x8300), (CFG_IMMR + 0x8304));
+                          (CONFIG_SYS_IMMR + 0x8300), (CONFIG_SYS_IMMR + 0x8304));
        reg16 = 0xff;
 
        pci_hose_read_config_word(&hose[0], PCI_BDF(0, 0, 0),
@@ -134,7 +134,7 @@ void pci_init_board(void)
        u32 val32;
        u32 dev;
 
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        clk = (clk83xx_t *) & immr->clk;
        pci_law = immr->sysconf.pcilaw;
        pci_pot = immr->ios.pot;
@@ -161,10 +161,10 @@ void pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_512M;
 
-       pci_law[1].bar = CFG_PCI_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_1M;
 
        /*
@@ -172,26 +172,26 @@ void pci_init_board(void)
         */
 
        /* PCI mem space - prefetch */
-       pci_pot[0].potar = (CFG_PCI_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[0].pobar = (CFG_PCI_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[0].potar = (CONFIG_SYS_PCI_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[0].pobar = (CONFIG_SYS_PCI_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[0].pocmr =
            POCMR_EN | POCMR_SE | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /* PCI mmio - non-prefetch mem space */
-       pci_pot[1].potar = (CFG_PCI_MMIO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[1].pobar = (CFG_PCI_MMIO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[1].potar = (CONFIG_SYS_PCI_MMIO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[1].pobar = (CONFIG_SYS_PCI_MMIO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[1].pocmr = POCMR_EN | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /* PCI IO space */
-       pci_pot[2].potar = (CFG_PCI_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[2].pobar = (CFG_PCI_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[2].potar = (CONFIG_SYS_PCI_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[2].pobar = (CONFIG_SYS_PCI_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[2].pocmr = POCMR_EN | POCMR_IO | (POCMR_CM_1M & POCMR_CM_MASK);
 
        /*
         * Configure PCI Inbound Translation Windows
         */
-       pci_ctrl[0].pitar1 = (CFG_PCI_SLV_MEM_LOCAL >> 12) & PITAR_TA_MASK;
-       pci_ctrl[0].pibar1 = (CFG_PCI_SLV_MEM_BUS >> 12) & PIBAR_MASK;
+       pci_ctrl[0].pitar1 = (CONFIG_SYS_PCI_SLV_MEM_LOCAL >> 12) & PITAR_TA_MASK;
+       pci_ctrl[0].pibar1 = (CONFIG_SYS_PCI_SLV_MEM_BUS >> 12) & PIBAR_MASK;
        pci_ctrl[0].piebar1 = 0x0;
        pci_ctrl[0].piwar1 =
            PIWAR_EN | PIWAR_PF | PIWAR_RTT_SNOOP | PIWAR_WTT_SNOOP |
@@ -209,31 +209,31 @@ void pci_init_board(void)
 
        /* PCI memory prefetch space */
        pci_set_region(hose[0].regions + 0,
-                      CFG_PCI_MEM_BASE,
-                      CFG_PCI_MEM_PHYS,
-                      CFG_PCI_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
+                      CONFIG_SYS_PCI_MEM_BASE,
+                      CONFIG_SYS_PCI_MEM_PHYS,
+                      CONFIG_SYS_PCI_MEM_SIZE, PCI_REGION_MEM | PCI_REGION_PREFETCH);
 
        /* PCI memory space */
        pci_set_region(hose[0].regions + 1,
-                      CFG_PCI_MMIO_BASE,
-                      CFG_PCI_MMIO_PHYS, CFG_PCI_MMIO_SIZE, PCI_REGION_MEM);
+                      CONFIG_SYS_PCI_MMIO_BASE,
+                      CONFIG_SYS_PCI_MMIO_PHYS, CONFIG_SYS_PCI_MMIO_SIZE, PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose[0].regions + 2,
-                      CFG_PCI_IO_BASE,
-                      CFG_PCI_IO_PHYS, CFG_PCI_IO_SIZE, PCI_REGION_IO);
+                      CONFIG_SYS_PCI_IO_BASE,
+                      CONFIG_SYS_PCI_IO_PHYS, CONFIG_SYS_PCI_IO_SIZE, PCI_REGION_IO);
 
        /* System memory space */
        pci_set_region(hose[0].regions + 3,
-                      CFG_PCI_SLV_MEM_LOCAL,
-                      CFG_PCI_SLV_MEM_BUS,
-                      CFG_PCI_SLV_MEM_SIZE,
+                      CONFIG_SYS_PCI_SLV_MEM_LOCAL,
+                      CONFIG_SYS_PCI_SLV_MEM_BUS,
+                      CONFIG_SYS_PCI_SLV_MEM_SIZE,
                       PCI_REGION_MEM | PCI_REGION_MEMORY);
 
        hose[0].region_count = 4;
 
        pci_setup_indirect(&hose[0],
-                          (CFG_IMMR + 0x8300), (CFG_IMMR + 0x8304));
+                          (CONFIG_SYS_IMMR + 0x8300), (CONFIG_SYS_IMMR + 0x8304));
 
        pci_register_hose(hose);
 
index 61d70001473329d584f1f52f98f228137f45f356..af3b8ceae4e65b2bcc6a15e1e961d1b9d93837bb 100644 (file)
@@ -214,7 +214,7 @@ int board_early_init_f(void)
 
 int board_early_init_r(void)
 {
-       void *reg = (void *)(CFG_IMMR + 0x14a8);
+       void *reg = (void *)(CONFIG_SYS_IMMR + 0x14a8);
        u32 val;
 
        /*
@@ -233,12 +233,12 @@ int board_early_init_r(void)
 
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;
        u32 ddr_size;
        u32 ddr_size_log2;
 
-       msize = CFG_DDR_SIZE;
+       msize = CONFIG_SYS_DDR_SIZE;
        for (ddr_size = msize << 20, ddr_size_log2 = 0;
             (ddr_size > 1); ddr_size = ddr_size >> 1, ddr_size_log2++) {
                if (ddr_size & 1)
@@ -248,18 +248,18 @@ int fixed_sdram(void)
        im->sysconf.ddrlaw[0].ar =
            LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE);
 
-       im->ddr.csbnds[0].csbnds = CFG_DDR_CS0_BNDS;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
-       im->ddr.sdram_clk_cntl = CFG_DDR_CLK_CNTL;
+       im->ddr.csbnds[0].csbnds = CONFIG_SYS_DDR_CS0_BNDS;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL;
        udelay(200);
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
 
@@ -271,14 +271,14 @@ phys_size_t initdram(int board_type)
 #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRC)
        extern void ddr_enable_ecc(unsigned int dram_size);
 #endif
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32)im)
                return -1;
 
        /* DDR SDRAM - Main SODIMM */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
        msize = fixed_sdram();
 
 #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRC)
@@ -300,28 +300,28 @@ int checkboard(void)
 
 static struct pci_region pci_regions[] = {
        {
-               .bus_start = CFG_PCI1_MEM_BASE,
-               .phys_start = CFG_PCI1_MEM_PHYS,
-               .size = CFG_PCI1_MEM_SIZE,
+               .bus_start = CONFIG_SYS_PCI1_MEM_BASE,
+               .phys_start = CONFIG_SYS_PCI1_MEM_PHYS,
+               .size = CONFIG_SYS_PCI1_MEM_SIZE,
                .flags = PCI_REGION_MEM | PCI_REGION_PREFETCH,
        },
        {
-               .bus_start = CFG_PCI1_MMIO_BASE,
-               .phys_start = CFG_PCI1_MMIO_PHYS,
-               .size = CFG_PCI1_MMIO_SIZE,
+               .bus_start = CONFIG_SYS_PCI1_MMIO_BASE,
+               .phys_start = CONFIG_SYS_PCI1_MMIO_PHYS,
+               .size = CONFIG_SYS_PCI1_MMIO_SIZE,
                .flags = PCI_REGION_MEM,
        },
        {
-               .bus_start = CFG_PCI1_IO_BASE,
-               .phys_start = CFG_PCI1_IO_PHYS,
-               .size = CFG_PCI1_IO_SIZE,
+               .bus_start = CONFIG_SYS_PCI1_IO_BASE,
+               .phys_start = CONFIG_SYS_PCI1_IO_PHYS,
+               .size = CONFIG_SYS_PCI1_IO_SIZE,
                .flags = PCI_REGION_IO,
        },
 };
 
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
        struct pci_region *reg[] = { pci_regions, };
@@ -338,10 +338,10 @@ void pci_init_board(void)
        udelay(2000);
 
        /* Configure PCI Local Access Windows */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LBLAWAR_EN | LBLAWAR_512MB;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LBLAWAR_EN | LBLAWAR_1MB;
 
        mpc83xx_pci_init(1, reg, 0);
index 8b44a0f38c3c4b7d5eedb5406cfe7c016db4b0e1..8e22e138a630f7891895548e697130c98d6ff0ae 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/mtd/fsl_upm.h>
 #include <nand.h>
 
-static struct immap *im = (struct immap *)CFG_IMMR;
+static struct immap *im = (struct immap *)CONFIG_SYS_IMMR;
 
 static const u32 upm_array[] = {
        0x0ff03c30, 0x0ff03c30, 0x0ff03c34, 0x0ff33c30, /* Words  0 to  3 */
@@ -70,7 +70,7 @@ static int dev_ready(void)
 
 static struct fsl_upm_nand fun = {
        .upm = {
-               .io_addr = (void *)CFG_NAND_BASE,
+               .io_addr = (void *)CONFIG_SYS_NAND_BASE,
        },
        .width = 8,
        .upm_cmd_offset = 8,
index 8003ec1d973ebd3011f8134276c6892b3ccded2c..6c537e244453f4a805e3ac88f0a05cc741e4280f 100644 (file)
@@ -24,7 +24,7 @@
 
 int board_early_init_f(void)
 {
-       u8 *bcsr = (u8 *)CFG_BCSR;
+       u8 *bcsr = (u8 *)CONFIG_SYS_BCSR;
 
        /* Enable flash write */
        bcsr[0x9] &= ~0x04;
@@ -32,7 +32,7 @@ int board_early_init_f(void)
        bcsr[0xe] = 0xff;
 
 #ifdef CONFIG_FSL_SERDES
-       immap_t *immr = (immap_t *)CFG_IMMR;
+       immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        u32 spridr = in_be32(&immr->sysconf.spridr);
 
        /* we check only part num, and don't look for CPU revisions */
@@ -77,7 +77,7 @@ int fixed_sdram(void);
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32) im)
@@ -104,43 +104,43 @@ phys_size_t initdram(int board_type)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
-       u32 msize = CFG_DDR_SIZE * 1024 * 1024;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       u32 msize = CONFIG_SYS_DDR_SIZE * 1024 * 1024;
        u32 msize_log2 = __ilog2(msize);
 
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LBLAWAR_EN | (msize_log2 - 1);
 
-#if (CFG_DDR_SIZE != 512)
+#if (CONFIG_SYS_DDR_SIZE != 512)
 #warning Currenly any ddr size other than 512 is not supported
 #endif
-       im->sysconf.ddrcdr = CFG_DDRCDR_VALUE;
+       im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE;
        udelay(50000);
 
-       im->ddr.sdram_clk_cntl = CFG_DDR_SDRAM_CLK_CNTL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_SDRAM_CLK_CNTL;
        udelay(1000);
 
-       im->ddr.csbnds[0].csbnds = CFG_DDR_CS0_BNDS;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
+       im->ddr.csbnds[0].csbnds = CONFIG_SYS_DDR_CS0_BNDS;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
        udelay(1000);
 
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
        __asm__ __volatile__("sync");
        udelay(1000);
 
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
        udelay(2000);
-       return CFG_DDR_SIZE;
+       return CONFIG_SYS_DDR_SIZE;
 }
-#endif /*!CFG_SPD_EEPROM */
+#endif /*!CONFIG_SYS_SPD_EEPROM */
 
 int checkboard(void)
 {
index ab909790e5d48daab6863f8df0961918ed2d3825..24cc1301482c3967605b9e50a1ac8eb511a6ebe6 100644 (file)
 #if defined(CONFIG_PCI)
 static struct pci_region pci_regions[] = {
        {
-               bus_start: CFG_PCI_MEM_BASE,
-               phys_start: CFG_PCI_MEM_PHYS,
-               size: CFG_PCI_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI_MEM_PHYS,
+               size: CONFIG_SYS_PCI_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI_MMIO_BASE,
-               phys_start: CFG_PCI_MMIO_PHYS,
-               size: CFG_PCI_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI_MMIO_PHYS,
+               size: CONFIG_SYS_PCI_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
        {
-               bus_start: CFG_PCI_IO_BASE,
-               phys_start: CFG_PCI_IO_PHYS,
-               size: CFG_PCI_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI_IO_BASE,
+               phys_start: CONFIG_SYS_PCI_IO_PHYS,
+               size: CONFIG_SYS_PCI_IO_SIZE,
                flags: PCI_REGION_IO
        }
 };
 
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
        struct pci_region *reg[] = { pci_regions };
@@ -52,10 +52,10 @@ void pci_init_board(void)
        udelay(2000);
 
        /* Configure PCI Local Access Windows */
-       pci_law[0].bar = CFG_PCI_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LBLAWAR_EN | LBLAWAR_512MB;
 
-       pci_law[1].bar = CFG_PCI_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LBLAWAR_EN | LBLAWAR_1MB;
 
        udelay(2000);
index e547b51e3065edd14bbe456997e5ebe35f1d0560..18a21a197ea791c882231062104aa5ef677a1130 100644 (file)
 #include <spd_sdram.h>
 #include <vsc7385.h>
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int
 testdram(void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("Testing DRAM from 0x%08x to 0x%08x\n",
-              CFG_MEMTEST_START,
-              CFG_MEMTEST_END);
+              CONFIG_SYS_MEMTEST_START,
+              CONFIG_SYS_MEMTEST_END);
 
        printf("DRAM test phase 1:\n");
        for (p = pstart; p < pend; p++)
@@ -66,7 +66,7 @@ int fixed_sdram(void);
 
 phys_size_t initdram(int board_type)
 {
-       immap_t *im = (immap_t *) CFG_IMMR;
+       immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32) im)
@@ -92,40 +92,40 @@ phys_size_t initdram(int board_type)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       immap_t *im = (immap_t *) CFG_IMMR;
-       u32 msize = CFG_DDR_SIZE * 1024 * 1024;
+       immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
+       u32 msize = CONFIG_SYS_DDR_SIZE * 1024 * 1024;
        u32 msize_log2 = __ilog2(msize);
 
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LBLAWAR_EN | (msize_log2 - 1);
 
-       im->sysconf.ddrcdr = CFG_DDRCDR_VALUE;
+       im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE;
        udelay(50000);
 
-       im->ddr.sdram_clk_cntl = CFG_DDR_SDRAM_CLK_CNTL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_SDRAM_CLK_CNTL;
        udelay(1000);
 
-       im->ddr.csbnds[0].csbnds = CFG_DDR_CS0_BNDS;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
+       im->ddr.csbnds[0].csbnds = CONFIG_SYS_DDR_CS0_BNDS;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
        udelay(1000);
 
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_mode2 = CFG_DDR_MODE2;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_mode2 = CONFIG_SYS_DDR_MODE2;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
        sync();
        udelay(1000);
 
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
        udelay(2000);
-       return CFG_DDR_SIZE;
+       return CONFIG_SYS_DDR_SIZE;
 }
-#endif /*!CFG_SPD_EEPROM */
+#endif /*!CONFIG_SYS_SPD_EEPROM */
 
 int checkboard(void)
 {
@@ -136,7 +136,7 @@ int checkboard(void)
 int board_early_init_f(void)
 {
 #ifdef CONFIG_FSL_SERDES
-       immap_t *immr = (immap_t *)CFG_IMMR;
+       immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        u32 spridr = in_be32(&immr->sysconf.spridr);
 
        /* we check only part num, and don't look for CPU revisions */
index 26e732028ec55063bce562a9ea8ad6c3600baeeb..8bb31fc741fac275ab147c78fb1bd7eb524ca290 100644 (file)
 #if defined(CONFIG_PCI)
 static struct pci_region pci_regions[] = {
        {
-               bus_start: CFG_PCI_MEM_BASE,
-               phys_start: CFG_PCI_MEM_PHYS,
-               size: CFG_PCI_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI_MEM_PHYS,
+               size: CONFIG_SYS_PCI_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI_MMIO_BASE,
-               phys_start: CFG_PCI_MMIO_PHYS,
-               size: CFG_PCI_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI_MMIO_PHYS,
+               size: CONFIG_SYS_PCI_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
        {
-               bus_start: CFG_PCI_IO_BASE,
-               phys_start: CFG_PCI_IO_PHYS,
-               size: CFG_PCI_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI_IO_BASE,
+               phys_start: CONFIG_SYS_PCI_IO_PHYS,
+               size: CONFIG_SYS_PCI_IO_SIZE,
                flags: PCI_REGION_IO
        }
 };
 
 void pci_init_board(void)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile clk83xx_t *clk = (volatile clk83xx_t *)&immr->clk;
        volatile law83xx_t *pci_law = immr->sysconf.pcilaw;
        struct pci_region *reg[] = { pci_regions };
@@ -48,10 +48,10 @@ void pci_init_board(void)
        udelay(2000);
 
        /* Configure PCI Local Access Windows */
-       pci_law[0].bar = CFG_PCI_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LBLAWAR_EN | LBLAWAR_512MB;
 
-       pci_law[1].bar = CFG_PCI_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LBLAWAR_EN | LBLAWAR_1MB;
 
        mpc83xx_pci_init(1, reg, 0);
index cdf5215fc8f198717c435f4224d91bb0329de753..8013d416e6f09ecb7126616fde03174398886690 100644 (file)
 #include <asm/mmu.h>
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCIE1_MEM_PHYS, LAWAR_SIZE_128M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE2_MEM_PHYS, LAWAR_SIZE_128M, LAW_TRGT_IF_PCIE_2),
-       SET_LAW(CFG_PCIE2_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_2),
-       SET_LAW(CFG_PCIE3_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_3),
-       SET_LAW(CFG_PCIE3_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_3),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAWAR_SIZE_128M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE2_MEM_PHYS, LAWAR_SIZE_128M, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_PCIE2_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_PCIE3_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_3),
+       SET_LAW(CONFIG_SYS_PCIE3_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_3),
        SET_LAW(PIXIS_BASE, LAW_SIZE_4K, LAW_TRGT_IF_LBC),
 };
 
index 3066b24de7a3011eb4e56fa3c0ebdd52c54644dc..f634e17650ce20c1b243197bf3636aa16f821333 100644 (file)
@@ -86,34 +86,34 @@ initdram(int board_type)
 
 phys_size_t fixed_sdram (void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_ddr_t *ddr= &immap->im_ddr;
        uint d_init;
 
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
 
-       ddr->timing_cfg_3 = CFG_DDR_TIMING_3;
-       ddr->timing_cfg_0 = CFG_DDR_TIMING_0;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE_1;
-       ddr->sdram_mode_2 = CFG_DDR_MODE_2;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
-       ddr->sdram_data_init = CFG_DDR_DATA_INIT;
-       ddr->sdram_clk_cntl = CFG_DDR_CLK_CTRL;
-       ddr->sdram_cfg_2 = CFG_DDR_CONTROL2;
+       ddr->timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       ddr->timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE_1;
+       ddr->sdram_mode_2 = CONFIG_SYS_DDR_MODE_2;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       ddr->sdram_data_init = CONFIG_SYS_DDR_DATA_INIT;
+       ddr->sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CTRL;
+       ddr->sdram_cfg_2 = CONFIG_SYS_DDR_CONTROL2;
 
 #if defined (CONFIG_DDR_ECC)
-       ddr->err_int_en = CFG_DDR_ERR_INT_EN;
-       ddr->err_disable = CFG_DDR_ERR_DIS;
-       ddr->err_sbe = CFG_DDR_SBE;
+       ddr->err_int_en = CONFIG_SYS_DDR_ERR_INT_EN;
+       ddr->err_disable = CONFIG_SYS_DDR_ERR_DIS;
+       ddr->err_sbe = CONFIG_SYS_DDR_SBE;
 #endif
        asm("sync;isync");
 
        udelay(500);
 
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
 
 #if defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
        d_init = 1;
@@ -156,7 +156,7 @@ int first_free_busno=0;
 void
 pci_init_board(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint devdisr = gur->devdisr;
        uint sdrs2_io_sel =
                (gur->pordevsr & MPC85xx_PORDEVSR_SRDS2_IO_SEL) >> 27;
@@ -176,7 +176,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE3
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE3_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE3_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie3_hose;
        int pcie_ep = (host_agent == 1);
@@ -194,23 +194,23 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE3_MEM_BASE,
-                              CFG_PCIE3_MEM_PHYS,
-                              CFG_PCIE3_MEM_SIZE,
+                              CONFIG_SYS_PCIE3_MEM_BASE,
+                              CONFIG_SYS_PCIE3_MEM_PHYS,
+                              CONFIG_SYS_PCIE3_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE3_IO_BASE,
-                              CFG_PCIE3_IO_PHYS,
-                              CFG_PCIE3_IO_SIZE,
+                              CONFIG_SYS_PCIE3_IO_BASE,
+                              CONFIG_SYS_PCIE3_IO_PHYS,
+                              CONFIG_SYS_PCIE3_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
@@ -234,7 +234,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE1
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_ep = (host_agent == 5);
@@ -253,32 +253,32 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE1_MEM_BASE,
-                              CFG_PCIE1_MEM_PHYS,
-                              CFG_PCIE1_MEM_SIZE,
+                              CONFIG_SYS_PCIE1_MEM_BASE,
+                              CONFIG_SYS_PCIE1_MEM_PHYS,
+                              CONFIG_SYS_PCIE1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE1_IO_BASE,
-                              CFG_PCIE1_IO_PHYS,
-                              CFG_PCIE1_IO_SIZE,
+                              CONFIG_SYS_PCIE1_IO_BASE,
+                              CONFIG_SYS_PCIE1_IO_PHYS,
+                              CONFIG_SYS_PCIE1_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
-#ifdef CFG_PCIE1_MEM_BASE2
+#ifdef CONFIG_SYS_PCIE1_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCIE1_MEM_BASE2,
-                              CFG_PCIE1_MEM_PHYS2,
-                              CFG_PCIE1_MEM_SIZE2,
+                              CONFIG_SYS_PCIE1_MEM_BASE2,
+                              CONFIG_SYS_PCIE1_MEM_PHYS2,
+                              CONFIG_SYS_PCIE1_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -303,7 +303,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE2
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE2_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE2_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie2_hose;
        int pcie_ep = (host_agent == 3);
@@ -321,32 +321,32 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE2_MEM_BASE,
-                              CFG_PCIE2_MEM_PHYS,
-                              CFG_PCIE2_MEM_SIZE,
+                              CONFIG_SYS_PCIE2_MEM_BASE,
+                              CONFIG_SYS_PCIE2_MEM_PHYS,
+                              CONFIG_SYS_PCIE2_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE2_IO_BASE,
-                              CFG_PCIE2_IO_PHYS,
-                              CFG_PCIE2_IO_SIZE,
+                              CONFIG_SYS_PCIE2_IO_BASE,
+                              CONFIG_SYS_PCIE2_IO_PHYS,
+                              CONFIG_SYS_PCIE2_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
-#ifdef CFG_PCIE2_MEM_BASE2
+#ifdef CONFIG_SYS_PCIE2_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCIE2_MEM_BASE2,
-                              CFG_PCIE2_MEM_PHYS2,
-                              CFG_PCIE2_MEM_SIZE2,
+                              CONFIG_SYS_PCIE2_MEM_BASE2,
+                              CONFIG_SYS_PCIE2_MEM_PHYS2,
+                              CONFIG_SYS_PCIE2_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -370,7 +370,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCI1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
 
@@ -394,31 +394,31 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCI1_MEM_BASE,
-                              CFG_PCI1_MEM_PHYS,
-                              CFG_PCI1_MEM_SIZE,
+                              CONFIG_SYS_PCI1_MEM_BASE,
+                              CONFIG_SYS_PCI1_MEM_PHYS,
+                              CONFIG_SYS_PCI1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCI1_IO_BASE,
-                              CFG_PCI1_IO_PHYS,
-                              CFG_PCI1_IO_SIZE,
+                              CONFIG_SYS_PCI1_IO_BASE,
+                              CONFIG_SYS_PCI1_IO_PHYS,
+                              CONFIG_SYS_PCI1_IO_SIZE,
                               PCI_REGION_IO);
                hose->region_count = 3;
-#ifdef CFG_PCI1_MEM_BASE2
+#ifdef CONFIG_SYS_PCI1_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCI1_MEM_BASE2,
-                              CFG_PCI1_MEM_PHYS2,
-                              CFG_PCI1_MEM_SIZE2,
+                              CONFIG_SYS_PCI1_MEM_BASE2,
+                              CONFIG_SYS_PCI1_MEM_PHYS2,
+                              CONFIG_SYS_PCI1_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -442,7 +442,7 @@ pci_init_board(void)
 int board_early_init_r(void)
 {
        unsigned int i;
-       const unsigned int flashbase = CFG_FLASH_BASE;
+       const unsigned int flashbase = CONFIG_SYS_FLASH_BASE;
        const u8 flash_esel = 1;
 
        /*
@@ -610,7 +610,7 @@ get_board_ddr_clk(ulong dummy)
 
 int is_sata_supported(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint devdisr = gur->devdisr;
        uint sdrs2_io_sel =
                (gur->pordevsr & MPC85xx_PORDEVSR_SRDS2_IO_SEL) >> 27;
index 28a9fa87f30e4638cc9d551686e632f7edc9ba01..7ccc15023b3635e64a9482837682f0dde37049f1 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -47,23 +47,23 @@ struct fsl_e_tlb_entry tlb_table[] = {
 
        /* TLB 1 */
        /* *I*G* - CCSRBAR */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_1M, 1),
 
        /* W**G* - Flash/promjet, localbus */
        /* This will be changed to *I*G* after relocation to RAM. */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_W|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
        /* *I*G* - PCI */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_1G, 1),
 
        /* *I*G* - PCI I/O */
-       SET_TLB_ENTRY(1, CFG_PCI1_IO_PHYS, CFG_PCI1_IO_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_IO_PHYS, CONFIG_SYS_PCI1_IO_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256K, 1),
 };
index 3b8bd05ad122565198fbc1bb1c4bf26022ab81d3..7dd8f29588a9a11a26db70062a82917760378919 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
        /* This is not so much the SDRAM map as it is the whole localbus map. */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 005e4d97e9b34da18f0754af4fa297a6100e2d80..7dccd3735924e7b06c77a3dd635984b35ae2ec0c 100644 (file)
@@ -71,7 +71,7 @@ initdram(int board_type)
 
 #if defined(CONFIG_DDR_DLL)
        {
-           volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+           volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
            uint temp_ddrdll = 0;
 
            /*
@@ -116,8 +116,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -137,10 +137,10 @@ local_bus_init(void)
        lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
 
        if (lbc_hz < 66) {
-               lbc->lcrr = CFG_LBC_LCRR | 0x80000000;  /* DLL Bypass */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR | 0x80000000;   /* DLL Bypass */
 
        } else if (lbc_hz >= 133) {
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000); /* DLL Enabled */
 
        } else {
                /*
@@ -155,7 +155,7 @@ local_bus_init(void)
                        lbc->lcrr = 0x10000004;
                }
 
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000); /* DLL Enabled */
                udelay(200);
 
                /*
@@ -176,52 +176,52 @@ local_bus_init(void)
 void
 sdram_init(void)
 {
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
 
        puts("    SDRAM: ");
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers
         */
-       lbc->or2 = CFG_OR2_PRELIM;
-       lbc->br2 = CFG_BR2_PRELIM;
-       lbc->lbcr = CFG_LBC_LBCR;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM;
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
        asm("msync");
 
-       lbc->lsrt = CFG_LBC_LSRT;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("sync");
 
        /*
         * Configure the SDRAM controller.
         */
-       lbc->lsdmr = CFG_LBC_LSDMR_1;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_2;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_3;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_3;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_4;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_5;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -234,15 +234,15 @@ sdram_init(void)
  ************************************************************************/
 long int fixed_sdram (void)
 {
-  #ifndef CFG_RAMBOOT
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
-
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
+  #ifndef CONFIG_SYS_RAMBOOT
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
+
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
     #if defined (CONFIG_DDR_ECC)
        ddr->err_disable = 0x0000000D;
        ddr->err_sbe = 0x00ff0000;
@@ -251,14 +251,14 @@ long int fixed_sdram (void)
        udelay(500);
     #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
     #else
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
     #endif
        asm("sync; isync; msync");
        udelay(500);
   #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
index 4fe2862f7d56ab79c44f9c7614f305b4d90e54dc..2ec3ccce97d70a326bda44adb7d42fc26efb2867 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff000000   16M     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    Rapid IO MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xd0000000   256M    Rapid IO MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE + 0x10000000, CFG_RIO_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE + 0x10000000, CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -87,7 +87,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe000_0000  1M      CCSRBAR
         * 0xe200_0000  16M     PCI1 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -95,7 +95,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -103,7 +103,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 7:       16K     Non-cacheable, guarded
         * 0xf8000000   16K     BCSR registers
         */
-       SET_TLB_ENTRY(1, CFG_BCSR, CFG_BCSR,
+       SET_TLB_ENTRY(1, CONFIG_SYS_BCSR, CONFIG_SYS_BCSR,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 7, BOOKE_PAGESZ_16K, 1),
 
@@ -117,11 +117,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Likely it needs to be increased by two for these entries.
         */
 #error("Update the number of table entries in tlb1_entry")
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 8, BOOKE_PAGESZ_64M, 1),
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE + 0x4000000, CFG_DDR_SDRAM_BASE + 0x4000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 9, BOOKE_PAGESZ_64M, 1),
 #endif
index fbf2bdc07f7fa8e4a9e8fcb47b137d06abff19d3..8e3de22a4149e8c9a4c83ca38a27e924310b8033 100644 (file)
  */
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
        /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index de3a79151276aad456204ee28912b93f20a36b23..7c35c35fc755b206f918cae332c554c066830ba7 100644 (file)
@@ -200,7 +200,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
 int checkboard (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
        /* PCI slot in USER bits CSR[6:7] by convention. */
        uint pci_slot = get_pci_slot ();
@@ -258,7 +258,7 @@ initdram(int board_type)
                 *    Override DLL = 1, Course Adj = 1, Tap Select = 0
                 */
 
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
                gur->ddrdllcr = 0x81000000;
                asm("sync;isync;msync");
@@ -290,8 +290,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -337,56 +337,56 @@ local_bus_init(void)
 void
 sdram_init(void)
 {
-#if defined(CFG_OR2_PRELIM) && defined(CFG_BR2_PRELIM)
+#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
 
        uint idx;
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
        uint cpu_board_rev;
        uint lsdmr_common;
 
        puts("    SDRAM: ");
 
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers
         */
-       lbc->or2 = CFG_OR2_PRELIM;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM;
        asm("msync");
 
-       lbc->br2 = CFG_BR2_PRELIM;
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
        asm("msync");
 
-       lbc->lbcr = CFG_LBC_LBCR;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
        asm("msync");
 
 
-       lbc->lsrt = CFG_LBC_LSRT;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("msync");
 
        /*
         * Determine which address lines to use baed on CPU board rev.
         */
        cpu_board_rev = get_cpu_board_revision();
-       lsdmr_common = CFG_LBC_LSDMR_COMMON;
+       lsdmr_common = CONFIG_SYS_LBC_LSDMR_COMMON;
        if (cpu_board_rev == MPC85XX_CPU_BOARD_REV_1_0) {
-               lsdmr_common |= CFG_LBC_LSDMR_BSMA1617;
+               lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1617;
        } else if (cpu_board_rev == MPC85XX_CPU_BOARD_REV_1_1) {
-               lsdmr_common |= CFG_LBC_LSDMR_BSMA1516;
+               lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1516;
        } else {
                /*
                 * Assume something unable to identify itself is
                 * really old, and likely has lines 16/17 mapped.
                 */
-               lsdmr_common |= CFG_LBC_LSDMR_BSMA1617;
+               lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1617;
        }
 
        /*
         * Issue PRECHARGE ALL command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_PCHALL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_PCHALL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -396,7 +396,7 @@ sdram_init(void)
         * Issue 8 AUTO REFRESH commands.
         */
        for (idx = 0; idx < 8; idx++) {
-               lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_ARFRSH;
+               lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH;
                asm("sync;msync");
                *sdram_addr = 0xff;
                ppcDcbf((unsigned long) sdram_addr);
@@ -406,7 +406,7 @@ sdram_init(void)
        /*
         * Issue 8 MODE-set command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_MRW;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_MRW;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -415,7 +415,7 @@ sdram_init(void)
        /*
         * Issue NORMAL OP command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_NORMAL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_NORMAL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
index c5434a069f94952a6bd5aefd744e367a13299d9c..bf957c08cee8e7a9c4aa3ce3e481ef3b192ef0d8 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff000000   16M     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xa0000000   256M    PCI2 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS, CFG_PCI2_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS, CONFIG_SYS_PCI2_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xb0000000   256M    PCI2 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS + 0x10000000, CFG_PCI2_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -88,7 +88,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe200_0000  16M     PCI1 IO
         * 0xe300_0000  16M     PCI2 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -96,7 +96,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
index 54cf36bd45680e9b6981146941bad1a8e3769a2b..317ba2696fb231625d2665229c5cf46ee568cb99 100644 (file)
 #include <asm/mmu.h>
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_LBC_NONCACHE_BASE, LAWAR_SIZE_128M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCIE1_MEM_PHYS, LAWAR_SIZE_256M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE2_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_2),
-       SET_LAW(CFG_PCIE2_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_LBC_NONCACHE_BASE, LAWAR_SIZE_128M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAWAR_SIZE_256M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE2_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_PCIE2_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_2),
        /* contains both PCIE3 MEM & IO space */
-       SET_LAW(CFG_PCIE3_MEM_PHYS, LAW_SIZE_4M, LAW_TRGT_IF_PCIE_3),
+       SET_LAW(CONFIG_SYS_PCIE3_MEM_PHYS, LAW_SIZE_4M, LAW_TRGT_IF_PCIE_3),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index eaf6fa320052140c946c49d814642c60fd202b73..826180c2d41a41fd5ec0b530e584ef2eb3857ad1 100644 (file)
@@ -44,9 +44,9 @@ extern void ddr_enable_ecc(unsigned int dram_size);
 
 int checkboard (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
 
        if ((uint)&gur->porpllsr != 0xe00e0000) {
                printf("immap size error %lx\n",(ulong)&gur->porpllsr);
@@ -108,7 +108,7 @@ int first_free_busno=0;
 void
 pci_init_board(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint devdisr = gur->devdisr;
        uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
        uint host_agent = (gur->porbmsr & MPC85xx_PORBMSR_HA) >> 16;
@@ -125,7 +125,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE3
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE3_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE3_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie3_hose;
        int pcie_ep = (host_agent == 1);
@@ -143,32 +143,32 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE3_MEM_BASE,
-                              CFG_PCIE3_MEM_PHYS,
-                              CFG_PCIE3_MEM_SIZE,
+                              CONFIG_SYS_PCIE3_MEM_BASE,
+                              CONFIG_SYS_PCIE3_MEM_PHYS,
+                              CONFIG_SYS_PCIE3_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE3_IO_BASE,
-                              CFG_PCIE3_IO_PHYS,
-                              CFG_PCIE3_IO_SIZE,
+                              CONFIG_SYS_PCIE3_IO_BASE,
+                              CONFIG_SYS_PCIE3_IO_PHYS,
+                              CONFIG_SYS_PCIE3_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
-#ifdef CFG_PCIE3_MEM_BASE2
+#ifdef CONFIG_SYS_PCIE3_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCIE3_MEM_BASE2,
-                              CFG_PCIE3_MEM_PHYS2,
-                              CFG_PCIE3_MEM_SIZE2,
+                              CONFIG_SYS_PCIE3_MEM_BASE2,
+                              CONFIG_SYS_PCIE3_MEM_PHYS2,
+                              CONFIG_SYS_PCIE3_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -185,7 +185,7 @@ pci_init_board(void)
                 * Activate ULI1575 legacy chip by performing a fake
                 * memory access.  Needed to make ULI RTC work.
                 */
-               in_be32((u32 *)CFG_PCIE3_MEM_BASE);
+               in_be32((u32 *)CONFIG_SYS_PCIE3_MEM_BASE);
        } else {
                printf ("    PCIE3: disabled\n");
        }
@@ -197,7 +197,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE1
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_ep = (host_agent == 5);
@@ -215,32 +215,32 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE1_MEM_BASE,
-                              CFG_PCIE1_MEM_PHYS,
-                              CFG_PCIE1_MEM_SIZE,
+                              CONFIG_SYS_PCIE1_MEM_BASE,
+                              CONFIG_SYS_PCIE1_MEM_PHYS,
+                              CONFIG_SYS_PCIE1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE1_IO_BASE,
-                              CFG_PCIE1_IO_PHYS,
-                              CFG_PCIE1_IO_SIZE,
+                              CONFIG_SYS_PCIE1_IO_BASE,
+                              CONFIG_SYS_PCIE1_IO_PHYS,
+                              CONFIG_SYS_PCIE1_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
-#ifdef CFG_PCIE1_MEM_BASE2
+#ifdef CONFIG_SYS_PCIE1_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCIE1_MEM_BASE2,
-                              CFG_PCIE1_MEM_PHYS2,
-                              CFG_PCIE1_MEM_SIZE2,
+                              CONFIG_SYS_PCIE1_MEM_BASE2,
+                              CONFIG_SYS_PCIE1_MEM_PHYS2,
+                              CONFIG_SYS_PCIE1_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -265,7 +265,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE2
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE2_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE2_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie2_hose;
        int pcie_ep = (host_agent == 3);
@@ -283,32 +283,32 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE2_MEM_BASE,
-                              CFG_PCIE2_MEM_PHYS,
-                              CFG_PCIE2_MEM_SIZE,
+                              CONFIG_SYS_PCIE2_MEM_BASE,
+                              CONFIG_SYS_PCIE2_MEM_PHYS,
+                              CONFIG_SYS_PCIE2_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE2_IO_BASE,
-                              CFG_PCIE2_IO_PHYS,
-                              CFG_PCIE2_IO_SIZE,
+                              CONFIG_SYS_PCIE2_IO_BASE,
+                              CONFIG_SYS_PCIE2_IO_PHYS,
+                              CONFIG_SYS_PCIE2_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
-#ifdef CFG_PCIE2_MEM_BASE2
+#ifdef CONFIG_SYS_PCIE2_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCIE2_MEM_BASE2,
-                              CFG_PCIE2_MEM_PHYS2,
-                              CFG_PCIE2_MEM_SIZE2,
+                              CONFIG_SYS_PCIE2_MEM_BASE2,
+                              CONFIG_SYS_PCIE2_MEM_PHYS2,
+                              CONFIG_SYS_PCIE2_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -332,7 +332,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCI1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
 
@@ -356,31 +356,31 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCI1_MEM_BASE,
-                              CFG_PCI1_MEM_PHYS,
-                              CFG_PCI1_MEM_SIZE,
+                              CONFIG_SYS_PCI1_MEM_BASE,
+                              CONFIG_SYS_PCI1_MEM_PHYS,
+                              CONFIG_SYS_PCI1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCI1_IO_BASE,
-                              CFG_PCI1_IO_PHYS,
-                              CFG_PCI1_IO_SIZE,
+                              CONFIG_SYS_PCI1_IO_BASE,
+                              CONFIG_SYS_PCI1_IO_PHYS,
+                              CONFIG_SYS_PCI1_IO_SIZE,
                               PCI_REGION_IO);
                hose->region_count = 3;
-#ifdef CFG_PCIE3_MEM_BASE2
+#ifdef CONFIG_SYS_PCIE3_MEM_BASE2
                /* outbound memory */
                pci_set_region(hose->regions + 3,
-                              CFG_PCIE3_MEM_BASE2,
-                              CFG_PCIE3_MEM_PHYS2,
-                              CFG_PCIE3_MEM_SIZE2,
+                              CONFIG_SYS_PCIE3_MEM_BASE2,
+                              CONFIG_SYS_PCIE3_MEM_PHYS2,
+                              CONFIG_SYS_PCIE3_MEM_SIZE2,
                               PCI_REGION_MEM);
                hose->region_count++;
 #endif
@@ -470,7 +470,7 @@ int board_eth_init(bd_t *bis)
 {
 #ifdef CONFIG_TSEC_ENET
        struct tsec_info_struct tsec_info[2];
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
        int num = 0;
 
index 40e049951bcda641d526c8ed6d5ddc14490fed37..c7442b26ffca0e19e056c9d8666297837676f5e2 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
        /*
@@ -45,28 +45,28 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xfc000000   64M     Covers FLASH at 0xFE800000 and 0xFF800000
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_BOOT_BLOCK, CFG_BOOT_BLOCK,
+       SET_TLB_ENTRY(1, CONFIG_SYS_BOOT_BLOCK, CONFIG_SYS_BOOT_BLOCK,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_64M, 1),
        /*
         * TLB 1:       1G      Non-cacheable, guarded
         * 0x80000000   1G      PCIE  8,9,a,b
         */
-       SET_TLB_ENTRY(1, CFG_PCIE_PHYS, CFG_PCIE_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCIE_PHYS, CONFIG_SYS_PCIE_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_1G, 1),
 
        /*
         * TLB 2:       256M    Non-cacheable, guarded
         */
-       SET_TLB_ENTRY(1, CFG_PCI_PHYS, CFG_PCI_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI_PHYS, CONFIG_SYS_PCI_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
        /*
         * TLB 3:       256M    Non-cacheable, guarded
         */
-       SET_TLB_ENTRY(1, CFG_PCI_PHYS + 0x10000000, CFG_PCI_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI_PHYS + 0x10000000, CONFIG_SYS_PCI_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -75,7 +75,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe000_0000  1M      CCSRBAR
         * 0xe100_0000  255M    PCI IO range
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_64M, 1),
 
@@ -83,7 +83,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 5:       64M     Non-cacheable, guarded
         * 0xf8000000   64M     PIXIS 0xF8000000 - 0xFBFFFFFF
         */
-       SET_TLB_ENTRY(1, CFG_LBC_NONCACHE_BASE, CFG_LBC_NONCACHE_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_NONCACHE_BASE, CONFIG_SYS_LBC_NONCACHE_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 };
index 34b9d1c4dfcb1c90978172258ff147bb7a3a7ef8..98748aa478c8ce85507a142cecb313529f7b4b9b 100644 (file)
  */
 
 struct law_entry law_table[] = {
-#ifdef CFG_PCI1_MEM_PHYS
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
+#ifdef CONFIG_SYS_PCI1_MEM_PHYS
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
 #endif
-#ifdef CFG_PCI2_MEM_PHYS
-       SET_LAW(CFG_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
-       SET_LAW(CFG_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
+#ifdef CONFIG_SYS_PCI2_MEM_PHYS
+       SET_LAW(CONFIG_SYS_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
 #endif
-#ifdef CFG_PCIE1_MEM_PHYS
-       SET_LAW(CFG_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
+#ifdef CONFIG_SYS_PCIE1_MEM_PHYS
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
 #endif
        /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-#ifdef CFG_RIO_MEM_PHYS
-       SET_LAW(CFG_RIO_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+#ifdef CONFIG_SYS_RIO_MEM_PHYS
+       SET_LAW(CONFIG_SYS_RIO_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_RIO),
 #endif
 };
 
index 84d3850cc8408e3b430671032e9ab0df24439165..875628dc90585792c0ab1bbda2ed82db03d88475 100644 (file)
@@ -49,8 +49,8 @@ void sdram_init(void);
 
 int checkboard (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
 
        /* PCI slot in USER bits CSR[6:7] by convention. */
        uint pci_slot = get_pci_slot ();
@@ -106,7 +106,7 @@ initdram(int board_type)
                 *    Override DLL = 1, Course Adj = 1, Tap Select = 0
                 */
 
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
                gur->ddrdllcr = 0x81000000;
                asm("sync;isync;msync");
@@ -140,8 +140,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -174,46 +174,46 @@ local_bus_init(void)
 void
 sdram_init(void)
 {
-#if defined(CFG_OR2_PRELIM) && defined(CFG_BR2_PRELIM)
+#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
 
        uint idx;
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
        uint cpu_board_rev;
        uint lsdmr_common;
 
        puts("    SDRAM: ");
 
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers
         */
-       lbc->or2 = CFG_OR2_PRELIM;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM;
        asm("msync");
 
-       lbc->br2 = CFG_BR2_PRELIM;
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
        asm("msync");
 
-       lbc->lbcr = CFG_LBC_LBCR;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
        asm("msync");
 
 
-       lbc->lsrt = CFG_LBC_LSRT;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("msync");
 
        /*
         * MPC8548 uses "new" 15-16 style addressing.
         */
        cpu_board_rev = get_cpu_board_revision();
-       lsdmr_common = CFG_LBC_LSDMR_COMMON;
-       lsdmr_common |= CFG_LBC_LSDMR_BSMA1516;
+       lsdmr_common = CONFIG_SYS_LBC_LSDMR_COMMON;
+       lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1516;
 
        /*
         * Issue PRECHARGE ALL command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_PCHALL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_PCHALL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -223,7 +223,7 @@ sdram_init(void)
         * Issue 8 AUTO REFRESH commands.
         */
        for (idx = 0; idx < 8; idx++) {
-               lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_ARFRSH;
+               lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH;
                asm("sync;msync");
                *sdram_addr = 0xff;
                ppcDcbf((unsigned long) sdram_addr);
@@ -233,7 +233,7 @@ sdram_init(void)
        /*
         * Issue 8 MODE-set command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_MRW;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_MRW;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -242,7 +242,7 @@ sdram_init(void)
        /*
         * Issue NORMAL OP command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_NORMAL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_NORMAL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -290,14 +290,14 @@ int first_free_busno=0;
 void
 pci_init_board(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
        uint host_agent = (gur->porbmsr & MPC85xx_PORBMSR_HA) >> 16;
 
 
 #ifdef CONFIG_PCI1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
        struct pci_config_table *table;
@@ -323,24 +323,24 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCI1_MEM_BASE,
-                              CFG_PCI1_MEM_PHYS,
-                              CFG_PCI1_MEM_SIZE,
+                              CONFIG_SYS_PCI1_MEM_BASE,
+                              CONFIG_SYS_PCI1_MEM_PHYS,
+                              CONFIG_SYS_PCI1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCI1_IO_BASE,
-                              CFG_PCI1_IO_PHYS,
-                              CFG_PCI1_IO_SIZE,
+                              CONFIG_SYS_PCI1_IO_BASE,
+                              CONFIG_SYS_PCI1_IO_PHYS,
+                              CONFIG_SYS_PCI1_IO_SIZE,
                               PCI_REGION_IO);
                hose->region_count = 3;
 
@@ -392,7 +392,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_ep =  (host_agent == 0) || (host_agent == 2 ) || (host_agent == 3);
@@ -412,23 +412,23 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE1_MEM_BASE,
-                              CFG_PCIE1_MEM_PHYS,
-                              CFG_PCIE1_MEM_SIZE,
+                              CONFIG_SYS_PCIE1_MEM_BASE,
+                              CONFIG_SYS_PCIE1_MEM_PHYS,
+                              CONFIG_SYS_PCIE1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE1_IO_BASE,
-                              CFG_PCIE1_IO_PHYS,
-                              CFG_PCIE1_IO_SIZE,
+                              CONFIG_SYS_PCIE1_IO_BASE,
+                              CONFIG_SYS_PCIE1_IO_PHYS,
+                              CONFIG_SYS_PCIE1_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
index ab99af7e1c3114294f87eab2641dda0eadbf4afb..eab212a4c5c0ae2603a3f4925b8e354a56bd8f0d 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff000000   16M     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_BOOT_BLOCK, CFG_BOOT_BLOCK,
+       SET_TLB_ENTRY(1, CONFIG_SYS_BOOT_BLOCK, CONFIG_SYS_BOOT_BLOCK,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -54,22 +54,22 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       1G      Non-cacheable, guarded
         * 0x80000000   1G      PCI1/PCIE  8,9,a,b
         */
-       SET_TLB_ENTRY(1, CFG_PCI_PHYS, CFG_PCI_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI_PHYS, CONFIG_SYS_PCI_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_1G, 1),
 
-#ifdef CFG_RIO_MEM_PHYS
+#ifdef CONFIG_SYS_RIO_MEM_PHYS
        /*
         * TLB 2:       256M    Non-cacheable, guarded
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
        /*
         * TLB 3:       256M    Non-cacheable, guarded
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE + 0x10000000, CFG_RIO_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE + 0x10000000, CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 #endif
@@ -80,7 +80,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe210_0000  1M      PCI2 IO
         * 0xe300_0000  1M      PCIe IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -88,7 +88,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_CACHE_BASE, CFG_LBC_CACHE_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_CACHE_BASE, CONFIG_SYS_LBC_CACHE_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -96,7 +96,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 7:       64M     Non-cacheable, guarded
         * 0xf8000000   64M     CADMUS registers, relocated L2SRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_NONCACHE_BASE, CFG_LBC_NONCACHE_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_NONCACHE_BASE, CONFIG_SYS_LBC_NONCACHE_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 7, BOOKE_PAGESZ_64M, 1),
 };
index fbf2bdc07f7fa8e4a9e8fcb47b137d06abff19d3..8e3de22a4149e8c9a4c83ca38a27e924310b8033 100644 (file)
  */
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2),
        /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 826056a845e310c4e7a0e7d27811ff26714489f8..4cd25b671774d904774a34bf1468d949bb57afeb 100644 (file)
@@ -198,7 +198,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
 int checkboard (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
        /* PCI slot in USER bits CSR[6:7] by convention. */
        uint pci_slot = get_pci_slot ();
@@ -256,7 +256,7 @@ initdram(int board_type)
                 *    Override DLL = 1, Course Adj = 1, Tap Select = 0
                 */
 
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
                gur->ddrdllcr = 0x81000000;
                asm("sync;isync;msync");
@@ -290,8 +290,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -337,55 +337,55 @@ local_bus_init(void)
 void
 sdram_init(void)
 {
-#if defined(CFG_OR2_PRELIM) && defined(CFG_BR2_PRELIM)
+#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
 
        uint idx;
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
        uint cpu_board_rev;
        uint lsdmr_common;
 
        puts("    SDRAM: ");
 
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers
         */
-       lbc->or2 = CFG_OR2_PRELIM;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM;
        asm("msync");
 
-       lbc->br2 = CFG_BR2_PRELIM;
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
        asm("msync");
 
-       lbc->lbcr = CFG_LBC_LBCR;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
        asm("msync");
 
-       lbc->lsrt = CFG_LBC_LSRT;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("msync");
 
        /*
         * Determine which address lines to use baed on CPU board rev.
         */
        cpu_board_rev = get_cpu_board_revision();
-       lsdmr_common = CFG_LBC_LSDMR_COMMON;
+       lsdmr_common = CONFIG_SYS_LBC_LSDMR_COMMON;
        if (cpu_board_rev == MPC85XX_CPU_BOARD_REV_1_0) {
-               lsdmr_common |= CFG_LBC_LSDMR_BSMA1617;
+               lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1617;
        } else if (cpu_board_rev == MPC85XX_CPU_BOARD_REV_1_1) {
-               lsdmr_common |= CFG_LBC_LSDMR_BSMA1516;
+               lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1516;
        } else {
                /*
                 * Assume something unable to identify itself is
                 * really old, and likely has lines 16/17 mapped.
                 */
-               lsdmr_common |= CFG_LBC_LSDMR_BSMA1617;
+               lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1617;
        }
 
        /*
         * Issue PRECHARGE ALL command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_PCHALL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_PCHALL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -395,7 +395,7 @@ sdram_init(void)
         * Issue 8 AUTO REFRESH commands.
         */
        for (idx = 0; idx < 8; idx++) {
-               lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_ARFRSH;
+               lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH;
                asm("sync;msync");
                *sdram_addr = 0xff;
                ppcDcbf((unsigned long) sdram_addr);
@@ -405,7 +405,7 @@ sdram_init(void)
        /*
         * Issue 8 MODE-set command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_MRW;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_MRW;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -414,7 +414,7 @@ sdram_init(void)
        /*
         * Issue NORMAL OP command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_NORMAL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_NORMAL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
index c5434a069f94952a6bd5aefd744e367a13299d9c..bf957c08cee8e7a9c4aa3ce3e481ef3b192ef0d8 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff000000   16M     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xa0000000   256M    PCI2 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS, CFG_PCI2_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS, CONFIG_SYS_PCI2_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xb0000000   256M    PCI2 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS + 0x10000000, CFG_PCI2_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -88,7 +88,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe200_0000  16M     PCI1 IO
         * 0xe300_0000  16M     PCI2 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -96,7 +96,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
index 3b8bd05ad122565198fbc1bb1c4bf26022ab81d3..7dd8f29588a9a11a26db70062a82917760378919 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
        /* This is not so much the SDRAM map as it is the whole localbus map. */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 851fc5706a067e81c1386b39275267732de22c22..4fe1d85384c2ee77b10fdb60074fb8a0a14c39d4 100644 (file)
@@ -217,7 +217,7 @@ typedef struct bcsr_ {
 void reset_phy (void)
 {
 #if defined(CONFIG_ETHER_ON_FCC) /* avoid compile warnings for now */
-       volatile bcsr_t *bcsr = (bcsr_t *) CFG_BCSR;
+       volatile bcsr_t *bcsr = (bcsr_t *) CONFIG_SYS_BCSR;
 #endif
        /* reset Giga bit Ethernet port if needed here */
 
@@ -275,7 +275,7 @@ initdram(int board_type)
 
 #if defined(CONFIG_DDR_DLL)
        {
-           volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+           volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
            uint temp_ddrdll = 0;
 
            /*
@@ -320,8 +320,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -341,10 +341,10 @@ local_bus_init(void)
        lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
 
        if (lbc_hz < 66) {
-               lbc->lcrr = CFG_LBC_LCRR | 0x80000000;  /* DLL Bypass */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR | 0x80000000;   /* DLL Bypass */
 
        } else if (lbc_hz >= 133) {
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000); /* DLL Enabled */
 
        } else {
                /*
@@ -359,7 +359,7 @@ local_bus_init(void)
                        lbc->lcrr = 0x10000004;
                }
 
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000);/* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000);/* DLL Enabled */
                udelay(200);
 
                /*
@@ -380,52 +380,52 @@ local_bus_init(void)
 void
 sdram_init(void)
 {
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
 
        puts("    SDRAM: ");
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers
         */
-       lbc->or2 = CFG_OR2_PRELIM;
-       lbc->br2 = CFG_BR2_PRELIM;
-       lbc->lbcr = CFG_LBC_LBCR;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM;
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
        asm("msync");
 
-       lbc->lsrt = CFG_LBC_LSRT;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("sync");
 
        /*
         * Configure the SDRAM controller.
         */
-       lbc->lsdmr = CFG_LBC_LSDMR_1;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_2;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_3;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_3;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_4;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_5;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5;
        asm("sync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -438,15 +438,15 @@ sdram_init(void)
  ************************************************************************/
 long int fixed_sdram (void)
 {
-  #ifndef CFG_RAMBOOT
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
-
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
+  #ifndef CONFIG_SYS_RAMBOOT
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
+
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
     #if defined (CONFIG_DDR_ECC)
        ddr->err_disable = 0x0000000D;
        ddr->err_sbe = 0x00ff0000;
@@ -455,14 +455,14 @@ long int fixed_sdram (void)
        udelay(500);
     #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
     #else
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
     #endif
        asm("sync; isync; msync");
        udelay(500);
   #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
index 4fe2862f7d56ab79c44f9c7614f305b4d90e54dc..2ec3ccce97d70a326bda44adb7d42fc26efb2867 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff000000   16M     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    Rapid IO MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xd0000000   256M    Rapid IO MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE + 0x10000000, CFG_RIO_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE + 0x10000000, CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -87,7 +87,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe000_0000  1M      CCSRBAR
         * 0xe200_0000  16M     PCI1 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -95,7 +95,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -103,7 +103,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 7:       16K     Non-cacheable, guarded
         * 0xf8000000   16K     BCSR registers
         */
-       SET_TLB_ENTRY(1, CFG_BCSR, CFG_BCSR,
+       SET_TLB_ENTRY(1, CONFIG_SYS_BCSR, CONFIG_SYS_BCSR,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 7, BOOKE_PAGESZ_16K, 1),
 
@@ -117,11 +117,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Likely it needs to be increased by two for these entries.
         */
 #error("Update the number of table entries in tlb1_entry")
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 8, BOOKE_PAGESZ_64M, 1),
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE + 0x4000000, CFG_DDR_SDRAM_BASE + 0x4000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 9, BOOKE_PAGESZ_64M, 1),
 #endif
index 791a50fc9256991581479ba61cfc0e880b76677a..30676e1e1c143561b0a4e9878e6bcd6d1140d713 100644 (file)
@@ -27,9 +27,9 @@
 
 void enable_8568mds_duart()
 {
-       volatile uint* duart_mux        = (uint *)(CFG_CCSRBAR + 0xe0060);
-       volatile uint* devices          = (uint *)(CFG_CCSRBAR + 0xe0070);
-       volatile u8 *bcsr               = (u8 *)(CFG_BCSR);
+       volatile uint* duart_mux        = (uint *)(CONFIG_SYS_CCSRBAR + 0xe0060);
+       volatile uint* devices          = (uint *)(CONFIG_SYS_CCSRBAR + 0xe0070);
+       volatile u8 *bcsr               = (u8 *)(CONFIG_SYS_BCSR);
 
        *duart_mux = 0x80000000;        /* Set the mux to Duart on PMUXCR */
        *devices  = 0;                  /* Enable all peripheral devices */
@@ -38,21 +38,21 @@ void enable_8568mds_duart()
 
 void enable_8568mds_flash_write()
 {
-       volatile u8 *bcsr = (u8 *)(CFG_BCSR);
+       volatile u8 *bcsr = (u8 *)(CONFIG_SYS_BCSR);
 
        bcsr[9] |= 0x01;
 }
 
 void disable_8568mds_flash_write()
 {
-       volatile u8 *bcsr = (u8 *)(CFG_BCSR);
+       volatile u8 *bcsr = (u8 *)(CONFIG_SYS_BCSR);
 
        bcsr[9] &= ~(0x01);
 }
 
 void enable_8568mds_qe_mdio()
 {
-       u8 *bcsr = (u8 *)(CFG_BCSR);
+       u8 *bcsr = (u8 *)(CONFIG_SYS_BCSR);
 
        bcsr[7] |= 0x01;
 }
@@ -60,7 +60,7 @@ void enable_8568mds_qe_mdio()
 #if defined(CONFIG_UEC_ETH1) || defined(CONFIG_UEC_ETH2)
 void reset_8568mds_uccs(void)
 {
-       volatile u8 *bcsr = (u8 *)(CFG_BCSR);
+       volatile u8 *bcsr = (u8 *)(CONFIG_SYS_BCSR);
 
        /* Turn off UCC1 & UCC2 */
        out_8(&bcsr[8], in_8(&bcsr[8]) & ~BCSR_UCC1_GETH_EN);
index 3bc24c5c9b3b8393cf6292dcfd2dbbf68cea8204..da7b6dcb7225339cf2c70169233904d9fd7a6298 100644 (file)
  */
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_8M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCIE1_IO_PHYS, LAW_SIZE_8M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_SRIO_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_8M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_8M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_SRIO_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_RIO),
        /* LBC window - maps 256M.  That's SDRAM, BCSR, PIBs, and Flash */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index f9e35cc7e8a38edd7003a455ca63506fff8f62cd..eab1900e5c58858ee4c8b68d6da29c307b6ee245 100644 (file)
@@ -123,10 +123,10 @@ int board_early_init_f (void)
        enable_8568mds_qe_mdio();
 #endif
 
-#ifdef CFG_I2C2_OFFSET
+#ifdef CONFIG_SYS_I2C2_OFFSET
        /* Enable I2C2_SCL and I2C2_SDA */
        volatile struct par_io *port_c;
-       port_c = (struct par_io*)(CFG_IMMR + 0xe0140);
+       port_c = (struct par_io*)(CONFIG_SYS_IMMR + 0xe0140);
        port_c->cpdir2 |= 0x0f000000;
        port_c->cppar2 &= ~0x0f000000;
        port_c->cppar2 |= 0x0a000000;
@@ -158,7 +158,7 @@ initdram(int board_type)
                 *    Override DLL = 1, Course Adj = 1, Tap Select = 0
                 */
 
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
                gur->ddrdllcr = 0x81000000;
                asm("sync;isync;msync");
@@ -192,8 +192,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -223,44 +223,44 @@ local_bus_init(void)
 void
 sdram_init(void)
 {
-#if defined(CFG_OR2_PRELIM) && defined(CFG_BR2_PRELIM)
+#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
 
        uint idx;
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
        uint lsdmr_common;
 
        puts("    SDRAM: ");
 
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers
         */
-       lbc->or2 = CFG_OR2_PRELIM;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM;
        asm("msync");
 
-       lbc->br2 = CFG_BR2_PRELIM;
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
        asm("msync");
 
-       lbc->lbcr = CFG_LBC_LBCR;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
        asm("msync");
 
 
-       lbc->lsrt = CFG_LBC_LSRT;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("msync");
 
        /*
         * MPC8568 uses "new" 15-16 style addressing.
         */
-       lsdmr_common = CFG_LBC_LSDMR_COMMON;
-       lsdmr_common |= CFG_LBC_LSDMR_BSMA1516;
+       lsdmr_common = CONFIG_SYS_LBC_LSDMR_COMMON;
+       lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1516;
 
        /*
         * Issue PRECHARGE ALL command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_PCHALL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_PCHALL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -270,7 +270,7 @@ sdram_init(void)
         * Issue 8 AUTO REFRESH commands.
         */
        for (idx = 0; idx < 8; idx++) {
-               lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_ARFRSH;
+               lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH;
                asm("sync;msync");
                *sdram_addr = 0xff;
                ppcDcbf((unsigned long) sdram_addr);
@@ -280,7 +280,7 @@ sdram_init(void)
        /*
         * Issue 8 MODE-set command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_MRW;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_MRW;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -289,7 +289,7 @@ sdram_init(void)
        /*
         * Issue NORMAL OP command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_NORMAL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_NORMAL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -371,7 +371,7 @@ pib_init(void)
 void
 pci_init_board(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
        uint host_agent = (gur->porbmsr & MPC85xx_PORBMSR_HA) >> 16;
 
@@ -379,7 +379,7 @@ pci_init_board(void)
 {
        pib_init();
 
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
 
@@ -403,23 +403,23 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                               CFG_PCI_MEMORY_BUS,
-                               CFG_PCI_MEMORY_PHYS,
-                               CFG_PCI_MEMORY_SIZE,
+                               CONFIG_SYS_PCI_MEMORY_BUS,
+                               CONFIG_SYS_PCI_MEMORY_PHYS,
+                               CONFIG_SYS_PCI_MEMORY_SIZE,
                                PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                               CFG_PCI1_MEM_BASE,
-                               CFG_PCI1_MEM_PHYS,
-                               CFG_PCI1_MEM_SIZE,
+                               CONFIG_SYS_PCI1_MEM_BASE,
+                               CONFIG_SYS_PCI1_MEM_PHYS,
+                               CONFIG_SYS_PCI1_MEM_SIZE,
                                PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                               CFG_PCI1_IO_BASE,
-                               CFG_PCI1_IO_PHYS,
-                               CFG_PCI1_IO_SIZE,
+                               CONFIG_SYS_PCI1_IO_BASE,
+                               CONFIG_SYS_PCI1_IO_PHYS,
+                               CONFIG_SYS_PCI1_IO_SIZE,
                                PCI_REGION_IO);
 
                hose->region_count = 3;
@@ -440,7 +440,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_ep =  (host_agent == 0) || (host_agent == 2 ) || (host_agent == 3);
@@ -460,23 +460,23 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                               CFG_PCI_MEMORY_BUS,
-                               CFG_PCI_MEMORY_PHYS,
-                               CFG_PCI_MEMORY_SIZE,
+                               CONFIG_SYS_PCI_MEMORY_BUS,
+                               CONFIG_SYS_PCI_MEMORY_PHYS,
+                               CONFIG_SYS_PCI_MEMORY_SIZE,
                                PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                               CFG_PCIE1_MEM_BASE,
-                               CFG_PCIE1_MEM_PHYS,
-                               CFG_PCIE1_MEM_SIZE,
+                               CONFIG_SYS_PCIE1_MEM_BASE,
+                               CONFIG_SYS_PCIE1_MEM_PHYS,
+                               CONFIG_SYS_PCIE1_MEM_SIZE,
                                PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                               CFG_PCIE1_IO_BASE,
-                               CFG_PCIE1_IO_PHYS,
-                               CFG_PCIE1_IO_SIZE,
+                               CONFIG_SYS_PCIE1_IO_BASE,
+                               CONFIG_SYS_PCIE1_IO_PHYS,
+                               CONFIG_SYS_PCIE1_IO_SIZE,
                                PCI_REGION_IO);
 
                hose->region_count = 3;
index 75651765fcbeedc9a0f87b3d913470ff25879667..107755273ecf96343a852293bc53f6f52336474d 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -47,7 +47,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff000000   16M     FLASH (upper half)
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE + 0x1000000, CFG_FLASH_BASE + 0x1000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE + 0x1000000, CONFIG_SYS_FLASH_BASE + 0x1000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -55,7 +55,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLBe 1:      16M     Non-cacheable, guarded
         * 0xfe000000   16M     FLASH (lower half)
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_16M, 1),
 
@@ -64,7 +64,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0x80000000   512M    PCI1 MEM
         * 0xa0000000   512M    PCIe MEM
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_1G, 1),
 
@@ -74,7 +74,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe200_0000  8M      PCI1 IO
         * 0xe280_0000  8M      PCIe IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_64M, 1),
 
@@ -82,7 +82,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLBe 4:      64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 4, BOOKE_PAGESZ_64M, 1),
 
@@ -92,7 +92,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xf8008000   32K PIB (CS4)
         * 0xf8010000   32K PIB (CS5)
         */
-       SET_TLB_ENTRY(1, CFG_BCSR_BASE, CFG_BCSR_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_BCSR_BASE, CONFIG_SYS_BCSR_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_256K, 1),
 };
index d69b59345f0c153d918015d6e64530f57f23e9e1..9f119024687f90719717c4f6fb0c1696dcc3e3a1 100644 (file)
 #include <asm/mmu.h>
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCIE1_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE2_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_2),
-       SET_LAW(CFG_PCIE2_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_2),
-       SET_LAW(CFG_PCIE3_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_3),
-       SET_LAW(CFG_PCIE3_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_3),
+       SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE2_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_PCIE2_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_PCIE3_MEM_PHYS, LAWAR_SIZE_512M, LAW_TRGT_IF_PCIE_3),
+       SET_LAW(CONFIG_SYS_PCIE3_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_3),
        SET_LAW(PIXIS_BASE, LAW_SIZE_4K, LAW_TRGT_IF_LBC),
 };
 
index 70b548bc36f8c837a9837ec54473cfd2aa15fb18..b6eb28e9c8a62626fe3b20f5c0b0da028ae32bb2 100644 (file)
@@ -83,34 +83,34 @@ phys_size_t initdram(int board_type)
 
 phys_size_t fixed_sdram (void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_ddr_t *ddr= &immap->im_ddr;
        uint d_init;
 
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
 
-       ddr->timing_cfg_3 = CFG_DDR_TIMING_3;
-       ddr->timing_cfg_0 = CFG_DDR_TIMING_0;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE_1;
-       ddr->sdram_mode_2 = CFG_DDR_MODE_2;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
-       ddr->sdram_data_init = CFG_DDR_DATA_INIT;
-       ddr->sdram_clk_cntl = CFG_DDR_CLK_CTRL;
-       ddr->sdram_cfg_2 = CFG_DDR_CONTROL2;
+       ddr->timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       ddr->timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE_1;
+       ddr->sdram_mode_2 = CONFIG_SYS_DDR_MODE_2;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       ddr->sdram_data_init = CONFIG_SYS_DDR_DATA_INIT;
+       ddr->sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CTRL;
+       ddr->sdram_cfg_2 = CONFIG_SYS_DDR_CONTROL2;
 
 #if defined (CONFIG_DDR_ECC)
-       ddr->err_int_en = CFG_DDR_ERR_INT_EN;
-       ddr->err_disable = CFG_DDR_ERR_DIS;
-       ddr->err_sbe = CFG_DDR_SBE;
+       ddr->err_int_en = CONFIG_SYS_DDR_ERR_INT_EN;
+       ddr->err_disable = CONFIG_SYS_DDR_ERR_DIS;
+       ddr->err_sbe = CONFIG_SYS_DDR_SBE;
 #endif
        asm("sync;isync");
 
        udelay(500);
 
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
 
 #if defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
        d_init = 1;
@@ -148,7 +148,7 @@ int first_free_busno=0;
 #ifdef CONFIG_PCI
 void pci_init_board(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint devdisr = gur->devdisr;
        uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
        uint host_agent = (gur->porbmsr & MPC85xx_PORBMSR_HA) >> 16;
@@ -168,7 +168,7 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCIE3
        {
-               volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE3_ADDR;
+               volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE3_ADDR;
                extern void fsl_pci_init(struct pci_controller *hose);
                struct pci_controller *hose = &pcie3_hose;
                int pcie_ep = (host_agent == 0) || (host_agent == 3) ||
@@ -188,23 +188,23 @@ void pci_init_board(void)
 
                        /* inbound */
                        pci_set_region(hose->regions + 0,
-                                       CFG_PCI_MEMORY_BUS,
-                                       CFG_PCI_MEMORY_PHYS,
-                                       CFG_PCI_MEMORY_SIZE,
+                                       CONFIG_SYS_PCI_MEMORY_BUS,
+                                       CONFIG_SYS_PCI_MEMORY_PHYS,
+                                       CONFIG_SYS_PCI_MEMORY_SIZE,
                                        PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                        /* outbound memory */
                        pci_set_region(hose->regions + 1,
-                                       CFG_PCIE3_MEM_BASE,
-                                       CFG_PCIE3_MEM_PHYS,
-                                       CFG_PCIE3_MEM_SIZE,
+                                       CONFIG_SYS_PCIE3_MEM_BASE,
+                                       CONFIG_SYS_PCIE3_MEM_PHYS,
+                                       CONFIG_SYS_PCIE3_MEM_SIZE,
                                        PCI_REGION_MEM);
 
                        /* outbound io */
                        pci_set_region(hose->regions + 2,
-                                       CFG_PCIE3_IO_BASE,
-                                       CFG_PCIE3_IO_PHYS,
-                                       CFG_PCIE3_IO_SIZE,
+                                       CONFIG_SYS_PCIE3_IO_BASE,
+                                       CONFIG_SYS_PCIE3_IO_PHYS,
+                                       CONFIG_SYS_PCIE3_IO_SIZE,
                                        PCI_REGION_IO);
 
                        hose->region_count = 3;
@@ -225,7 +225,7 @@ void pci_init_board(void)
 
                        pci_hose_read_config_dword(hose, PCI_BDF(2, 0x1d, 0 ),
                                        PCI_BASE_ADDRESS_1, &temp32);
-                       if (temp32 >= CFG_PCIE3_MEM_PHYS) {
+                       if (temp32 >= CONFIG_SYS_PCIE3_MEM_PHYS) {
                                debug(" uli1572 read to %x\n", temp32);
                                in_be32((unsigned *)temp32);
                        }
@@ -240,7 +240,7 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCIE2
        {
-               volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE2_ADDR;
+               volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE2_ADDR;
                extern void fsl_pci_init(struct pci_controller *hose);
                struct pci_controller *hose = &pcie2_hose;
                int pcie_ep = (host_agent == 2) || (host_agent == 4) ||
@@ -259,23 +259,23 @@ void pci_init_board(void)
 
                        /* inbound */
                        pci_set_region(hose->regions + 0,
-                                       CFG_PCI_MEMORY_BUS,
-                                       CFG_PCI_MEMORY_PHYS,
-                                       CFG_PCI_MEMORY_SIZE,
+                                       CONFIG_SYS_PCI_MEMORY_BUS,
+                                       CONFIG_SYS_PCI_MEMORY_PHYS,
+                                       CONFIG_SYS_PCI_MEMORY_SIZE,
                                        PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                        /* outbound memory */
                        pci_set_region(hose->regions + 1,
-                                       CFG_PCIE2_MEM_BASE,
-                                       CFG_PCIE2_MEM_PHYS,
-                                       CFG_PCIE2_MEM_SIZE,
+                                       CONFIG_SYS_PCIE2_MEM_BASE,
+                                       CONFIG_SYS_PCIE2_MEM_PHYS,
+                                       CONFIG_SYS_PCIE2_MEM_SIZE,
                                        PCI_REGION_MEM);
 
                        /* outbound io */
                        pci_set_region(hose->regions + 2,
-                                       CFG_PCIE2_IO_BASE,
-                                       CFG_PCIE2_IO_PHYS,
-                                       CFG_PCIE2_IO_SIZE,
+                                       CONFIG_SYS_PCIE2_IO_BASE,
+                                       CONFIG_SYS_PCIE2_IO_PHYS,
+                                       CONFIG_SYS_PCIE2_IO_SIZE,
                                        PCI_REGION_IO);
 
                        hose->region_count = 3;
@@ -297,7 +297,7 @@ void pci_init_board(void)
 #endif
 #ifdef CONFIG_PCIE1
        {
-               volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+               volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
                extern void fsl_pci_init(struct pci_controller *hose);
                struct pci_controller *hose = &pcie1_hose;
                int pcie_ep = (host_agent == 1) || (host_agent == 4) ||
@@ -316,23 +316,23 @@ void pci_init_board(void)
 
                        /* inbound */
                        pci_set_region(hose->regions + 0,
-                                       CFG_PCI_MEMORY_BUS,
-                                       CFG_PCI_MEMORY_PHYS,
-                                       CFG_PCI_MEMORY_SIZE,
+                                       CONFIG_SYS_PCI_MEMORY_BUS,
+                                       CONFIG_SYS_PCI_MEMORY_PHYS,
+                                       CONFIG_SYS_PCI_MEMORY_SIZE,
                                        PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                        /* outbound memory */
                        pci_set_region(hose->regions + 1,
-                                       CFG_PCIE1_MEM_BASE,
-                                       CFG_PCIE1_MEM_PHYS,
-                                       CFG_PCIE1_MEM_SIZE,
+                                       CONFIG_SYS_PCIE1_MEM_BASE,
+                                       CONFIG_SYS_PCIE1_MEM_PHYS,
+                                       CONFIG_SYS_PCIE1_MEM_SIZE,
                                        PCI_REGION_MEM);
 
                        /* outbound io */
                        pci_set_region(hose->regions + 2,
-                                       CFG_PCIE1_IO_BASE,
-                                       CFG_PCIE1_IO_PHYS,
-                                       CFG_PCIE1_IO_SIZE,
+                                       CONFIG_SYS_PCIE1_IO_BASE,
+                                       CONFIG_SYS_PCIE1_IO_PHYS,
+                                       CONFIG_SYS_PCIE1_IO_SIZE,
                                        PCI_REGION_IO);
 
                        hose->region_count = 3;
@@ -360,7 +360,7 @@ void pci_init_board(void)
 int board_early_init_r(void)
 {
        unsigned int i;
-       const unsigned int flashbase = CFG_FLASH_BASE;
+       const unsigned int flashbase = CONFIG_SYS_FLASH_BASE;
        const u8 flash_esel = 2;
 
        /*
index 965356a8473578818bc5afec831edd23446ad4c7..46d9e4a767e481a77b57314729fbc6c35714f98e 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -52,32 +52,32 @@ struct fsl_e_tlb_entry tlb_table[] = {
                      0, 0, BOOKE_PAGESZ_4K, 1),
 
        /* *I*G* - CCSRBAR */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_1M, 1),
 
        /* W**G* - Flash/promjet, localbus */
        /* This will be changed to *I*G* after relocation to RAM. */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_W|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
        /* *I*G* - PCI */
-       SET_TLB_ENTRY(1, CFG_PCIE3_MEM_PHYS, CFG_PCIE3_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_PHYS, CONFIG_SYS_PCIE3_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_1G, 1),
 
        /* *I*G* - PCI */
-       SET_TLB_ENTRY(1, CFG_PCIE3_MEM_PHYS + 0x40000000, CFG_PCIE3_MEM_PHYS + 0x40000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_PHYS + 0x40000000, CONFIG_SYS_PCIE3_MEM_PHYS + 0x40000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
-       SET_TLB_ENTRY(1, CFG_PCIE3_MEM_PHYS + 0x50000000, CFG_PCIE3_MEM_PHYS + 0x50000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_MEM_PHYS + 0x50000000, CONFIG_SYS_PCIE3_MEM_PHYS + 0x50000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_256M, 1),
 
        /* *I*G* - PCI I/O */
-       SET_TLB_ENTRY(1, CFG_PCIE3_IO_PHYS, CFG_PCIE3_IO_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCIE3_IO_PHYS, CONFIG_SYS_PCIE3_IO_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 6, BOOKE_PAGESZ_256K, 1),
 };
index 91b922b86b1bd3bd92bca44c6a8cfa038e94b142..2aad28aee1f0ba97819940eb0180122fc5782206 100644 (file)
 
 struct law_entry law_table[] = {
 #if !defined(CONFIG_SPD_EEPROM)
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR_1),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR_1),
 #endif
-       SET_LAW(CFG_PCIE1_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE2_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE2_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_2),
        SET_LAW(PIXIS_BASE, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
-       SET_LAW(CFG_PCIE2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_2),
-       SET_LAW(CFG_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_1)
+       SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_2),
+       SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_1)
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 130f7aa8ceb3cdd04470cbf8d5317ade14a70804..5faeca110db18bc17bbadb38cf15c5af2bc18153 100644 (file)
@@ -48,7 +48,7 @@ void mpc8610hpcd_diu_init(void);
 /* called before any console output */
 int board_early_init_f(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
 
        gur->gpiocr |= 0x88aa5500; /* DIU16, IR1, UART0, UART2 */
@@ -98,7 +98,7 @@ int misc_init_r(void)
 
 int checkboard(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_local_mcm_t *mcm = &immap->im_local_mcm;
 
        printf ("Board: MPC8610HPCD, System ID: 0x%02x, "
@@ -129,7 +129,7 @@ initdram(int board_type)
        dram_size = fixed_sdram();
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
        puts(" DDR: ");
        return dram_size;
 #endif
@@ -153,8 +153,8 @@ initdram(int board_type)
 
 long int fixed_sdram(void)
 {
-#if !defined(CFG_RAMBOOT)
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+#if !defined(CONFIG_SYS_RAMBOOT)
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_ddr_t *ddr = &immap->im_ddr1;
        uint d_init;
 
@@ -201,7 +201,7 @@ long int fixed_sdram(void)
 
        return 512 * 1024 * 1024;
 #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 
 #endif
@@ -242,7 +242,7 @@ int first_free_busno = 0;
 
 void pci_init_board(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_CCSRBAR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
        uint devdisr = gur->devdisr;
        uint io_sel = (gur->pordevsr & MPC8610_PORDEVSR_IO_SEL)
@@ -255,7 +255,7 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCIE1
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_configured = (io_sel == 1) || (io_sel == 4);
@@ -271,23 +271,23 @@ void pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                        CFG_PCI_MEMORY_BUS,
-                        CFG_PCI_MEMORY_PHYS,
-                        CFG_PCI_MEMORY_SIZE,
+                        CONFIG_SYS_PCI_MEMORY_BUS,
+                        CONFIG_SYS_PCI_MEMORY_PHYS,
+                        CONFIG_SYS_PCI_MEMORY_SIZE,
                         PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                        CFG_PCIE1_MEM_BASE,
-                        CFG_PCIE1_MEM_PHYS,
-                        CFG_PCIE1_MEM_SIZE,
+                        CONFIG_SYS_PCIE1_MEM_BASE,
+                        CONFIG_SYS_PCIE1_MEM_PHYS,
+                        CONFIG_SYS_PCIE1_MEM_SIZE,
                         PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                        CFG_PCIE1_IO_BASE,
-                        CFG_PCIE1_IO_PHYS,
-                        CFG_PCIE1_IO_SIZE,
+                        CONFIG_SYS_PCIE1_IO_BASE,
+                        CONFIG_SYS_PCIE1_IO_PHYS,
+                        CONFIG_SYS_PCIE1_IO_SIZE,
                         PCI_REGION_IO);
 
                hose->region_count = 3;
@@ -312,7 +312,7 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCIE2
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE2_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE2_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie2_hose;
 
@@ -330,23 +330,23 @@ void pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                        CFG_PCI_MEMORY_BUS,
-                        CFG_PCI_MEMORY_PHYS,
-                        CFG_PCI_MEMORY_SIZE,
+                        CONFIG_SYS_PCI_MEMORY_BUS,
+                        CONFIG_SYS_PCI_MEMORY_PHYS,
+                        CONFIG_SYS_PCI_MEMORY_SIZE,
                         PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                        CFG_PCIE2_MEM_BASE,
-                        CFG_PCIE2_MEM_PHYS,
-                        CFG_PCIE2_MEM_SIZE,
+                        CONFIG_SYS_PCIE2_MEM_BASE,
+                        CONFIG_SYS_PCIE2_MEM_PHYS,
+                        CONFIG_SYS_PCIE2_MEM_SIZE,
                         PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                        CFG_PCIE2_IO_BASE,
-                        CFG_PCIE2_IO_PHYS,
-                        CFG_PCIE2_IO_SIZE,
+                        CONFIG_SYS_PCIE2_IO_BASE,
+                        CONFIG_SYS_PCIE2_IO_PHYS,
+                        CONFIG_SYS_PCIE2_IO_SIZE,
                         PCI_REGION_IO);
 
                hose->region_count = 3;
@@ -370,7 +370,7 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCI1
  {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
        int pci_agent = (host_agent >= 4) && (host_agent <= 6);
@@ -383,23 +383,23 @@ void pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                        CFG_PCI_MEMORY_BUS,
-                        CFG_PCI_MEMORY_PHYS,
-                        CFG_PCI_MEMORY_SIZE,
+                        CONFIG_SYS_PCI_MEMORY_BUS,
+                        CONFIG_SYS_PCI_MEMORY_PHYS,
+                        CONFIG_SYS_PCI_MEMORY_SIZE,
                         PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                        CFG_PCI1_MEM_BASE,
-                        CFG_PCI1_MEM_PHYS,
-                        CFG_PCI1_MEM_SIZE,
+                        CONFIG_SYS_PCI1_MEM_BASE,
+                        CONFIG_SYS_PCI1_MEM_PHYS,
+                        CONFIG_SYS_PCI1_MEM_SIZE,
                         PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                        CFG_PCI1_IO_BASE,
-                        CFG_PCI1_IO_PHYS,
-                        CFG_PCI1_IO_SIZE,
+                        CONFIG_SYS_PCI1_IO_BASE,
+                        CONFIG_SYS_PCI1_IO_PHYS,
+                        CONFIG_SYS_PCI1_IO_SIZE,
                         PCI_REGION_IO);
 
                hose->region_count = 3;
index 4db941ced00a12bf7d24b2eea7a2140ac7bcefa9..cd25d4aa867870313ac88b318e92b2da67da90ff 100644 (file)
@@ -43,7 +43,7 @@ static int xres, yres;
 
 void diu_set_pixel_clock(unsigned int pixclock)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
        volatile unsigned int *guts_clkdvdr = &gur->clkdvdr;
        unsigned long speed_ccb, temp, pixval;
@@ -137,7 +137,7 @@ int mpc8610diu_init_show_bmp(cmd_tbl_t *cmdtp,
 }
 
 U_BOOT_CMD(
-       diufb, CFG_MAXARGS, 1, mpc8610diu_init_show_bmp,
+       diufb, CONFIG_SYS_MAXARGS, 1, mpc8610diu_init_show_bmp,
        "diufb init | addr - Init or Display BMP file\n",
        "init\n    - initialize DIU\n"
        "addr\n    - display bmp at address 'addr'\n"
index 2d6c3c1759abe2afb1f6ef630786a805dee5275e..182b4c58498eec57b1e9ab5d115d58130a654c64 100644 (file)
 
 struct law_entry law_table[] = {
 #if !defined(CONFIG_SPD_EEPROM)
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_1),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_1),
 #endif
-       SET_LAW(CFG_PCI1_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI2_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI2_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
        SET_LAW(PIXIS_BASE, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI2_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_2),
-       SET_LAW((CFG_FLASH_BASE & 0xfe000000), LAW_SIZE_32M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_2),
+       SET_LAW((CONFIG_SYS_FLASH_BASE & 0xfe000000), LAW_SIZE_32M, LAW_TRGT_IF_LBC),
 #if !defined(CONFIG_SPD_EEPROM)
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_2),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_2),
 #endif
-       SET_LAW(CFG_RIO_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_RIO)
+       SET_LAW(CONFIG_SYS_RIO_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_RIO)
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 97f7f49e4955c03c437579a89390a6ffc6c8d180..fcaaacbee1ed9af0a43c00d241093399addadd71 100644 (file)
@@ -65,7 +65,7 @@ initdram(int board_type)
        dram_size = fixed_sdram();
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
        puts("    DDR: ");
        return dram_size;
 #endif
@@ -89,23 +89,23 @@ initdram(int board_type)
 long int
 fixed_sdram(void)
 {
-#if !defined(CFG_RAMBOOT)
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+#if !defined(CONFIG_SYS_RAMBOOT)
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ccsr_ddr_t *ddr = &immap->im_ddr1;
 
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_3 = CFG_DDR_TIMING_3;
-       ddr->timing_cfg_0 = CFG_DDR_TIMING_0;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode_1 = CFG_DDR_MODE_1;
-       ddr->sdram_mode_2 = CFG_DDR_MODE_2;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
-       ddr->sdram_data_init = CFG_DDR_DATA_INIT;
-       ddr->sdram_clk_cntl = CFG_DDR_CLK_CTRL;
-       ddr->sdram_ocd_cntl = CFG_DDR_OCD_CTRL;
-       ddr->sdram_ocd_status = CFG_DDR_OCD_STATUS;
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       ddr->timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode_1 = CONFIG_SYS_DDR_MODE_1;
+       ddr->sdram_mode_2 = CONFIG_SYS_DDR_MODE_2;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       ddr->sdram_data_init = CONFIG_SYS_DDR_DATA_INIT;
+       ddr->sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CTRL;
+       ddr->sdram_ocd_cntl = CONFIG_SYS_DDR_OCD_CTRL;
+       ddr->sdram_ocd_status = CONFIG_SYS_DDR_OCD_STATUS;
 
 #if defined (CONFIG_DDR_ECC)
        ddr->err_disable = 0x0000008D;
@@ -117,16 +117,16 @@ fixed_sdram(void)
 
 #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg_1 = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg_1 = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
 #else
-       ddr->sdram_cfg_1 = CFG_DDR_CONTROL;
-       ddr->sdram_cfg_2 = CFG_DDR_CONTROL2;
+       ddr->sdram_cfg_1 = CONFIG_SYS_DDR_CONTROL;
+       ddr->sdram_cfg_2 = CONFIG_SYS_DDR_CONTROL2;
 #endif
        asm("sync; isync");
 
        udelay(500);
 #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
@@ -164,7 +164,7 @@ int first_free_busno = 0;
 
 void pci_init_board(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_CCSRBAR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
        uint devdisr = gur->devdisr;
        uint io_sel = (gur->pordevsr & MPC8641_PORDEVSR_IO_SEL)
@@ -172,7 +172,7 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCI1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
 #ifdef DEBUG
@@ -194,23 +194,23 @@ void pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCI1_MEM_BASE,
-                              CFG_PCI1_MEM_PHYS,
-                              CFG_PCI1_MEM_SIZE,
+                              CONFIG_SYS_PCI1_MEM_BASE,
+                              CONFIG_SYS_PCI1_MEM_PHYS,
+                              CONFIG_SYS_PCI1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCI1_IO_BASE,
-                              CFG_PCI1_IO_PHYS,
-                              CFG_PCI1_IO_SIZE,
+                              CONFIG_SYS_PCI1_IO_BASE,
+                              CONFIG_SYS_PCI1_IO_PHYS,
+                              CONFIG_SYS_PCI1_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
@@ -228,8 +228,8 @@ void pci_init_board(void)
                 * Activate ULI1575 legacy chip by performing a fake
                 * memory access.  Needed to make ULI RTC work.
                 */
-               in_be32((unsigned *) ((char *)(CFG_PCI1_MEM_BASE
-                                      + CFG_PCI1_MEM_SIZE - 0x1000000)));
+               in_be32((unsigned *) ((char *)(CONFIG_SYS_PCI1_MEM_BASE
+                                      + CONFIG_SYS_PCI1_MEM_SIZE - 0x1000000)));
 
        } else {
                puts("PCI-EXPRESS 1: Disabled\n");
@@ -241,30 +241,30 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCI2
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI2_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI2_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci2_hose;
 
 
        /* inbound */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI_MEMORY_BUS,
-                      CFG_PCI_MEMORY_PHYS,
-                      CFG_PCI_MEMORY_SIZE,
+                      CONFIG_SYS_PCI_MEMORY_BUS,
+                      CONFIG_SYS_PCI_MEMORY_PHYS,
+                      CONFIG_SYS_PCI_MEMORY_SIZE,
                       PCI_REGION_MEM | PCI_REGION_MEMORY);
 
        /* outbound memory */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI2_MEM_BASE,
-                      CFG_PCI2_MEM_PHYS,
-                      CFG_PCI2_MEM_SIZE,
+                      CONFIG_SYS_PCI2_MEM_BASE,
+                      CONFIG_SYS_PCI2_MEM_PHYS,
+                      CONFIG_SYS_PCI2_MEM_SIZE,
                       PCI_REGION_MEM);
 
        /* outbound io */
        pci_set_region(hose->regions + 2,
-                      CFG_PCI2_IO_BASE,
-                      CFG_PCI2_IO_PHYS,
-                      CFG_PCI2_IO_SIZE,
+                      CONFIG_SYS_PCI2_IO_BASE,
+                      CONFIG_SYS_PCI2_IO_PHYS,
+                      CONFIG_SYS_PCI2_IO_SIZE,
                       PCI_REGION_IO);
 
        hose->region_count = 3;
index 0308611eb6bee383d3efebc5d0b1938ab73c2ee4..fd3b16ea50a6d7629f583d6ce6e1525ed28062d8 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <common.h>
 
-flash_info_t                           flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t                           flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #define FLASH_CMD_READ_ID              0x90
 #define FLASH_CMD_READ_STATUS          0x70
@@ -46,7 +46,7 @@ flash_info_t                          flash_info[CFG_MAX_FLASH_BANKS];
 
 #define FLASH_WRITE_BUFFER_SIZE                32
 
-#ifdef CFG_FLASH_16BIT
+#ifdef CONFIG_SYS_FLASH_16BIT
 #define FLASH_WORD_SIZE                        unsigned short
 #define FLASH_ID_MASK                  0xffff
 #define FLASH_CMD_ADDR_SHIFT           0
@@ -130,10 +130,10 @@ flash_init(void)
        unsigned long   size;
        int             i;
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
-       size = flash_get((volatile FLASH_WORD_SIZE *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get((volatile FLASH_WORD_SIZE *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH Size=0x%08lx\n", size);
                return (0);
@@ -145,10 +145,10 @@ flash_init(void)
                      flash_info[0].start[1] - 1,
                      &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_FLASH,
-                     CFG_MONITOR_FLASH+CFG_MONITOR_LEN-1,
+                     CONFIG_SYS_MONITOR_FLASH,
+                     CONFIG_SYS_MONITOR_FLASH+CONFIG_SYS_MONITOR_LEN-1,
                      &flash_info[0]);
 #endif
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -265,7 +265,7 @@ flash_erase(flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while (((status = *addr) & FLASH_STATUS_DONE) != FLASH_STATUS_DONE) {
-                       if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf("Flash erase timeout at address %lx\n", info->start[sect]);
                                *addr = FLASH_CMD_SUSPEND_ERASE;
                                *addr = FLASH_CMD_RESET;
@@ -307,7 +307,7 @@ write_buff2( volatile FLASH_WORD_SIZE *dst,
                        enable_interrupts();
                }
 
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (-1);
                }
        }
@@ -337,7 +337,7 @@ poll_status( volatile FLASH_WORD_SIZE *addr )
                                break;
                        }
                }
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = FLASH_CMD_RESET;
                        return (-1);
                }
@@ -367,7 +367,7 @@ write_buff(flash_info_t *info, uchar *src, ulong udst, ulong cnt)
        addr = (volatile FLASH_WORD_SIZE *)(info->start[0]);
        dst = (volatile FLASH_WORD_SIZE *) udst;
 
-#ifdef CFG_FLASH_16BIT
+#ifdef CONFIG_SYS_FLASH_16BIT
 #error NYI
 #else
        while (cnt > 0) {
@@ -435,7 +435,7 @@ flash_real_protect(flash_info_t *info, long sector, int prot)
        /* wait for error or finish */
        start = get_timer (0);
        while(!(addr[0] & FLASH_STATUS_DONE)){
-               if (get_timer(start) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Flash protect timeout at address %lx\n",  info->start[sector]);
                        addr[0] = FLASH_CMD_RESET;
                        return (1);
index 1c3f627a44f47a487ccb9fb045d95c8fd38c6586..8c4abdd370668dd9cb50fcc85e4b7032fbb58418 100644 (file)
@@ -189,7 +189,7 @@ void reset_phy (void)
        unsigned short val;
 #endif
 
-       iop = ioport_addr((immap_t *)CFG_IMMR, 0);
+       iop = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 0);
 
        /* Reset the PHY */
        iop->pdat &= 0xfff7ffff;        /* PA12 = |SWITCH_RESET */
@@ -198,12 +198,12 @@ void reset_phy (void)
        iop->pdat |= 0x00080000;
        for (i=0; i<100; i++) {
                udelay(20000);
-               if (bb_miiphy_read("FCC1 ETHERNET", CFG_PHY_ADDR,2,&val ) == 0) {
+               if (bb_miiphy_read("FCC1 ETHERNET", CONFIG_SYS_PHY_ADDR,2,&val ) == 0) {
                        break;
                }
        }
        /* initialize switch */
-       m88e6060_initialize( CFG_PHY_ADDR );
+       m88e6060_initialize( CONFIG_SYS_PHY_ADDR );
 #endif
 }
 
@@ -233,7 +233,7 @@ int board_early_init_f (void)
        volatile unsigned char *dummy;
        int i;
 
-       immap = (immap_t *) CFG_IMMR;
+       immap = (immap_t *) CONFIG_SYS_IMMR;
        memctl = &immap->im_memctl;
 
 #if 0
@@ -272,7 +272,7 @@ int misc_init_r (void)
        unsigned char c;
        int i;
 
-       immap = (immap_t *) CFG_IMMR;
+       immap = (immap_t *) CONFIG_SYS_IMMR;
        memctl = &immap->im_memctl;
 
 
@@ -289,7 +289,7 @@ int misc_init_r (void)
        memctl->memc_mamr = 0x00044440;
 #endif
        /* enable buffers (DSP, DPRAM) */
-       iop = ioport_addr((immap_t *)CFG_IMMR, 0);
+       iop = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 0);
        iop->pdat &= 0xfffbffff;        /* PA13 = |EN_M_BCTL1 */
 
        /* destroy DPRAM magic */
@@ -310,7 +310,7 @@ do_reset (void *cmdtp, int flag, int argc, char *argv[])
 {
        volatile ioport_t *iop;
 
-       iop = ioport_addr((immap_t *)CFG_IMMR, 2);
+       iop = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 2);
        iop->pdat |= 0x00002000;        /* PC18 = HW_RESET */
        return 1;
 }
@@ -320,16 +320,16 @@ do_reset (void *cmdtp, int flag, int argc, char *argv[])
 
 phys_size_t initdram (int board_type)
 {
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        volatile immap_t *immap;
        volatile memctl8260_t *memctl;
        volatile uchar *ramaddr;
        int i;
        uchar c;
 
-       immap = (immap_t *) CFG_IMMR;
+       immap = (immap_t *) CONFIG_SYS_IMMR;
        memctl = &immap->im_memctl;
-       ramaddr = (uchar *) CFG_SDRAM_BASE;
+       ramaddr = (uchar *) CONFIG_SYS_SDRAM_BASE;
        c = 0xff;
 
        immap->im_siu_conf.sc_ppc_acr  = 0x02;
@@ -338,30 +338,30 @@ phys_size_t initdram (int board_type)
        immap->im_siu_conf.sc_tescr1   = 0x00000000;
        immap->im_siu_conf.sc_tescr2   = 0x00000000;
 
-       memctl->memc_mptpr = CFG_MPTPR;
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_SDRAM_BASE | CFG_BR1_PRELIM;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_SDRAM_BASE | CONFIG_SYS_BR1_PRELIM;
 
        /* Precharge all banks */
-       memctl->memc_psdmr = CFG_PSDMR | 0x28000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x28000000;
        *ramaddr = c;
 
        /* CBR refresh */
-       memctl->memc_psdmr = CFG_PSDMR | 0x08000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x08000000;
        for (i = 0; i < 8; i++)
                *ramaddr = c;
 
        /* Mode Register write */
-       memctl->memc_psdmr = CFG_PSDMR | 0x18000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x18000000;
        *ramaddr = c;
 
        /* Refresh enable */
-       memctl->memc_psdmr = CFG_PSDMR | 0x40000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x40000000;
        *ramaddr = c;
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
-       return (CFG_SDRAM_SIZE);
+       return (CONFIG_SYS_SDRAM_SIZE);
 }
 
 int checkboard (void)
index 647f4b705b46f6d6797cc5778215a4cdd76f4b03..48fc643dce657c55691a4e2277363f1f0649e2bb 100644 (file)
@@ -33,7 +33,7 @@
 #define MEM_SDTR1_INIT_VAL      0x00854005
 #define SDRAM0_CFG_ENABLE       0x80000000
 
-#define CFG_SDRAM_SIZE          0x04000000      /* 64 MB */
+#define CONFIG_SYS_SDRAM_SIZE          0x04000000      /* 64 MB */
 
 int board_early_init_f (void)
 {
@@ -77,8 +77,8 @@ int misc_init_r (void)
        /*
         * Set NAND-FLASH GPIO signals to default
         */
-       out32(GPIO0_OR, in32(GPIO0_OR) & ~(CFG_NAND_CLE | CFG_NAND_ALE));
-       out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND_CE);
+       out32(GPIO0_OR, in32(GPIO0_OR) & ~(CONFIG_SYS_NAND_CLE | CONFIG_SYS_NAND_ALE));
+       out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND_CE);
 #endif
 
        return (0);
@@ -127,7 +127,7 @@ long int init_sdram_static_settings(void)
        udelay(500);
        mtsdram0( mem_mcopt1, MEM_MCOPT1_INIT_VAL|SDRAM0_CFG_ENABLE );
 
-       return (CFG_SDRAM_SIZE); /* CFG_SDRAM_SIZE is in G2000.h */
+       return (CONFIG_SYS_SDRAM_SIZE); /* CONFIG_SYS_SDRAM_SIZE is in G2000.h */
  }
 
 
@@ -151,11 +151,11 @@ phys_size_t initdram (int board_type)
 
 #if defined(CONFIG_CMD_NAND)
 #include <linux/mtd/nand_legacy.h>
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 
 void nand_init(void)
 {
-       nand_probe(CFG_NAND_BASE);
+       nand_probe(CONFIG_SYS_NAND_BASE);
        if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN) {
                print_size(nand_dev_desc[0].totlen, "\n");
        }
index 8446e02106b59baf7a885418441ae56d2b7773a4..effe65a36f86567b9cc0b3da2d7aba4d1a2f232b 100644 (file)
@@ -101,7 +101,7 @@ typedef union {
 
 #define NUM_ERASE_REGIONS 4
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -116,7 +116,7 @@ static int flash_detect_cfi(flash_info_t * info);
 static ulong flash_get_size (ulong base, int banknum);
 static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword);
 static int flash_full_status_check(flash_info_t * info, ulong sector, ulong tout, char * prompt);
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp, int len);
 #endif
 /*-----------------------------------------------------------------------
@@ -176,14 +176,14 @@ unsigned long flash_init (void)
         *
         */
 
-       address = CFG_FLASH_BASE;
+       address = CONFIG_SYS_FLASH_BASE;
        size = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                size += flash_info[i].size = flash_get_size(address, i);
-               address += CFG_FLASH_INCREMENT;
+               address += CONFIG_SYS_FLASH_INCREMENT;
                if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                        printf ("## Unknown FLASH on Bank %d - Size = 0x%08lx = %ld MB\n",i,
                                flash_info[0].size, flash_info[i].size<<20);
@@ -192,14 +192,14 @@ unsigned long flash_init (void)
 
 #if 0 /* test-only */
        /* Monitor protection ON by default */
-#if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
-       for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+CFG_MONITOR_LEN-1; i++)
+#if (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)
+       for(i=0; flash_info[0].start[i] < CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1; i++)
                (void)flash_real_protect(&flash_info[0], i, 1);
 #endif
 #else
        /* monitor protection ON by default */
        flash_protect (FLAG_PROTECT_SET,
-                      - CFG_MONITOR_LEN,
+                      - CONFIG_SYS_MONITOR_LEN,
                       - 1, &flash_info[1]);
 #endif
 
@@ -273,7 +273,7 @@ void flash_print_info  (flash_info_t *info)
 
        printf ("  Sector Start Addresses:");
        for (i=0; i<info->sector_count; ++i) {
-#ifdef CFG_FLASH_EMPTY_INFO
+#ifdef CONFIG_SYS_FLASH_EMPTY_INFO
                int k;
                int size;
                int erased;
@@ -353,7 +353,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                wp = cp;
        }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        while(cnt >= info->portwidth) {
                i = info->buffer_size > cnt? cnt: info->buffer_size;
                if((rc = flash_write_cfibuffer(info, wp, src,i)) != ERR_OK)
@@ -374,7 +374,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                wp += info->portwidth;
                cnt -= info->portwidth;
        }
-#endif /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
        if (cnt == 0) {
                return (0);
        }
@@ -716,7 +716,7 @@ static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword)
        return flash_full_status_check(info, 0, info->write_tout, "write");
 }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /* loop through the sectors from the highest address
  * when the passed address is greater or equal to the sector address
@@ -790,4 +790,4 @@ static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp, in
        flash_write_cmd(info, sector, 0, FLASH_CMD_CLEAR_STATUS);
        return retcode;
 }
-#endif /* CFG_USE_FLASH_BUFFER_WRITE */
+#endif /* CONFIG_SYS_USE_FLASH_BUFFER_WRITE */
index 3958670bb18e5725034d7f7076c1bbf78accaa60..a0876310cf5c40da3e8e01f2dc37ca5c947e05fa 100644 (file)
@@ -61,7 +61,7 @@ SECTIONS
 
                *(.start)
                cpu/leon3/start.o (.text)
-/* 8k is the same as the PROM offset from end of main memory, (CFG_PROM_SIZE) */
+/* 8k is the same as the PROM offset from end of main memory, (CONFIG_SYS_PROM_SIZE) */
                . = ALIGN(8192);
 /* PROM CODE, Will be relocated to the end of memory,
  * no global data accesses please.
index 100350d7a1bbd5735a8c5096d88ab35b9556c273..e461a36fa416eda9f0d515f84b7513c8181b524b 100644 (file)
@@ -61,7 +61,7 @@ SECTIONS
 
                *(.start)
                cpu/leon3/start.o (.text)
-/* 8k is the same as the PROM offset from end of main memory, (CFG_PROM_SIZE) */
+/* 8k is the same as the PROM offset from end of main memory, (CONFIG_SYS_PROM_SIZE) */
                . = ALIGN(8192);
 /* PROM CODE, Will be relocated to the end of memory,
  * no global data accesses please.
index 3848c684ab79422624e8557caca2879527832e1a..ddd27d455e14f1d35fa6b48006b4c9d658d621fb 100644 (file)
@@ -61,7 +61,7 @@ SECTIONS
 
                *(.start)
                cpu/leon3/start.o (.text)
-/* 8k is the same as the PROM offset from end of main memory, (CFG_PROM_SIZE) */
+/* 8k is the same as the PROM offset from end of main memory, (CONFIG_SYS_PROM_SIZE) */
                . = ALIGN(8192);
 /* PROM CODE, Will be relocated to the end of memory,
  * no global data accesses please.
index 1e8bb695767d21a816ab0b9101ddac52e721824e..a9cc7ca4b096db3c250beadf2a07921317edd383 100644 (file)
@@ -60,7 +60,7 @@ SECTIONS
 
                *(.start)
                cpu/leon3/start.o (.text)
-/* 8k is the same as the PROM offset from end of main memory, (CFG_PROM_SIZE) */
+/* 8k is the same as the PROM offset from end of main memory, (CONFIG_SYS_PROM_SIZE) */
                . = ALIGN(8192);
 /* PROM CODE, Will be relocated to the end of memory,
  * no global data accesses please.
index 2a22082a83e99838456ab1d0fc78fc3cd4ab5022..b3462d463e55a1077340ca4001254cc6c410c0bb 100644 (file)
@@ -60,7 +60,7 @@ SECTIONS
 
                *(.start)
                cpu/leon2/start.o (.text)
-/* 8k is the same as the PROM offset from end of main memory, (CFG_PROM_SIZE) */
+/* 8k is the same as the PROM offset from end of main memory, (CONFIG_SYS_PROM_SIZE) */
                . = ALIGN(8192);
 /* PROM CODE, Will be relocated to the end of memory,
  * no global data accesses please.
index 48f33b2b7a03a404d06e9a20f09bef844a9fd158..8511582baece976aa8bb1310285cd59a1499fe95 100644 (file)
@@ -29,7 +29,7 @@
 #include <common.h>
 #include <linux/byteorder/swab.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -67,7 +67,7 @@ flash_init(void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -83,8 +83,8 @@ flash_init(void)
        /* Protect monitor and environment sectors
         */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_FLASH_BASE,
-                     CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
+                     CONFIG_SYS_FLASH_BASE,
+                     CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
 
        flash_protect(FLAG_PROTECT_SET,
                      CONFIG_ENV_ADDR,
@@ -207,10 +207,10 @@ flash_get_size(FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf("** ERROR: sector count %d > max (%d) **\n",
-                      info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                      info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -282,7 +282,7 @@ flash_erase(flash_info_t * info, int s_first, int s_last)
                        while (((status =
                                 *addr) & (FPW) 0x00800080) !=
                               (FPW) 0x00800080) {
-                               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase         */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -418,7 +418,7 @@ write_data(flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked() > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked() > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index b4c2c89885ba39a13a5944ccee032562b8530fc5..b472b914ee0005bef8e51711a7c52b80ab759024 100644 (file)
@@ -43,7 +43,7 @@
  */
 void init_beeper (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        immap->im_cpmtimer.cpmt_tgcr &= ~TGCR_RST1 | TGCR_STP1;
        immap->im_cpmtimer.cpmt_tmr1 = ((33 << TMR_PS_SHIFT) & TMR_PS_MSK)
@@ -62,7 +62,7 @@ void set_beeper_frequency (uint frequency)
 {
 #define FREQ_LIMIT     2500
 
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /*
         * Compute timer ticks given desired frequency.  The timer is set up
@@ -79,7 +79,7 @@ void set_beeper_frequency (uint frequency)
  */
 void beeper_on (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        immap->im_cpmtimer.cpmt_tgcr &= ~TGCR_STP1;
 }
@@ -89,7 +89,7 @@ void beeper_on (void)
  */
 void beeper_off (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        immap->im_cpmtimer.cpmt_tgcr |= TGCR_STP1;
 }
@@ -104,7 +104,7 @@ void beeper_off (void)
  */
 void set_beeper_volume (int steps)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        int i;
 
        if (steps >= 0) {
index a46e7e60803759e678b39429c49afb6cda872ed0..827d9e0c6ea5c4671f75b46e8309a5bd673ffe87 100644 (file)
@@ -27,7 +27,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
  * Use buffered writes to flash by default - they are about 32x faster than
  * single byte writes.
  */
-#ifndef  CFG_GEN860T_FLASH_USE_WRITE_BUFFER
-#define CFG_GEN860T_FLASH_USE_WRITE_BUFFER
+#ifndef  CONFIG_SYS_GEN860T_FLASH_USE_WRITE_BUFFER
+#define CONFIG_SYS_GEN860T_FLASH_USE_WRITE_BUFFER
 #endif
 
 /*
  * Max time to wait (in mS) for flash device to allocate a write buffer.
  */
-#ifndef CFG_FLASH_ALLOC_BUFFER_TOUT
-#define CFG_FLASH_ALLOC_BUFFER_TOUT            100
+#ifndef CONFIG_SYS_FLASH_ALLOC_BUFFER_TOUT
+#define CONFIG_SYS_FLASH_ALLOC_BUFFER_TOUT             100
 #endif
 
 /*
@@ -94,7 +94,7 @@
 #endif
 /*---------------------------------------------------------------------*/
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -109,12 +109,12 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 unsigned long
 flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0;
        int i;
 
-       for (i= 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i= 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -139,7 +139,7 @@ flash_init (void)
         * Remap FLASH according to real size
         */
        memctl->memc_or0 |= (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 |= (CFG_FLASH_BASE & BR_BA_MSK);
+       memctl->memc_br0 |= (CONFIG_SYS_FLASH_BASE & BR_BA_MSK);
 
        PRINTF("## After remap:\n"
                   "  BR0: 0x%08x    OR0: 0x%08x\n", memctl->memc_br0, memctl->memc_or0);
@@ -147,17 +147,17 @@ flash_init (void)
        /*
         * Re-do sizing to get full correct info
         */
-       size_b0 = flash_get_size ((vu_char *)CFG_FLASH_BASE, &flash_info[0]);
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size ((vu_char *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
        flash_info[0].size = size_b0;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /*
         * Monitor protection is ON by default
         */
        flash_protect(FLAG_PROTECT_SET,
-                         CFG_MONITOR_BASE,
-                         CFG_MONITOR_BASE + monitor_flash_len - 1,
+                         CONFIG_SYS_MONITOR_BASE,
+                         CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                          &flash_info[0]);
 #endif
 
@@ -307,10 +307,10 @@ ulong flash_get_size (vu_char *addr, flash_info_t *info)
                        return (NO_FLASH);
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-                               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+                               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
        return (info->size);
 }
@@ -385,7 +385,7 @@ flash_erase(flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & SCS_SR7) != SCS_SR7) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = SCS_BLOCK_ERASE_SUSPEND_CMD;
                                        *addr = SCS_READ_CMD;
@@ -408,7 +408,7 @@ flash_erase(flash_info_t *info, int s_first, int s_last)
 }
 
 
-#ifdef CFG_GEN860T_FLASH_USE_WRITE_BUFFER
+#ifdef CONFIG_SYS_GEN860T_FLASH_USE_WRITE_BUFFER
 /*
  * Allocate a flash buffer, fill it with data and write it to the flash.
  * 0 - OK
@@ -451,10 +451,10 @@ write_flash_buffer8(flash_info_t *info_p, vu_char *src_p, vu_char *dest_p,
         */
        *block_addr_p = SCS_WRITE_BUF_CMD;
        while ((*block_addr_p & SCS_XSR7) != SCS_XSR7) {
-               if (get_timer(time) >  CFG_FLASH_ALLOC_BUFFER_TOUT) {
+               if (get_timer(time) >  CONFIG_SYS_FLASH_ALLOC_BUFFER_TOUT) {
                        PRINTF("%s:%d: Buffer allocation timeout @ 0x%p (waited %d mS)\n",
                                   __FUNCTION__, __LINE__, block_addr_p,
-                                  CFG_FLASH_ALLOC_BUFFER_TOUT);
+                                  CONFIG_SYS_FLASH_ALLOC_BUFFER_TOUT);
                        return 1;
                }
                *block_addr_p = SCS_WRITE_BUF_CMD;
@@ -478,9 +478,9 @@ write_flash_buffer8(flash_info_t *info_p, vu_char *src_p, vu_char *dest_p,
 #if 1
        time = get_timer(0);
        while ((*block_addr_p & SCS_SR7) != SCS_SR7) {
-               if (get_timer(time) >  CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(time) >  CONFIG_SYS_FLASH_WRITE_TOUT) {
                        PRINTF("%s:%d: Write timeout @ 0x%p (waited %d mS)\n",
-                                  __FUNCTION__, __LINE__, block_addr_p, CFG_FLASH_WRITE_TOUT);
+                                  __FUNCTION__, __LINE__, block_addr_p, CONFIG_SYS_FLASH_WRITE_TOUT);
                        return 1;
                }
        }
@@ -502,7 +502,7 @@ int
 write_buff(flash_info_t *info_p, uchar *src_p, ulong addr, ulong count)
 {
        int rc = 0;
-#ifdef CFG_GEN860T_FLASH_USE_WRITE_BUFFER
+#ifdef CONFIG_SYS_GEN860T_FLASH_USE_WRITE_BUFFER
 #define FLASH_WRITE_BUF_SIZE   0x00000020      /* 32 bytes */
        int i;
        uint bufs;
@@ -520,7 +520,7 @@ write_buff(flash_info_t *info_p, uchar *src_p, ulong addr, ulong count)
                return 4;
        }
 
-#ifdef CFG_GEN860T_FLASH_USE_WRITE_BUFFER
+#ifdef CONFIG_SYS_GEN860T_FLASH_USE_WRITE_BUFFER
        sp = src_p;
        dp = (uchar *)addr;
 
@@ -632,7 +632,7 @@ write_data8 (flash_info_t *info, ulong dest, uchar data)
        start = get_timer (0);
 
        while (((status = *addr) & SCS_SR7) != SCS_SR7) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = SCS_READ_CMD;
                        return (1);
                }
index 1e6bdf1ccf6a1c9d6c51d13dbfc2f3146bb9d155..29cad2ee81ffc8e6965cbbc20ef2982492a4149f 100644 (file)
@@ -161,7 +161,7 @@ int test_fpga_ibtr (void)
  */
 void fpga_reset (int assert)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        PRINTF ("%s:%d: RESET ", __FUNCTION__, __LINE__);
        if (assert) {
@@ -210,7 +210,7 @@ int gen860t_init_fpga (void)
  */
 int fpga_pgm_fn (int assert, int flush, int cookie)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        PRINTF ("%s:%d: FPGA PROGRAM ", __FUNCTION__, __LINE__);
 
@@ -233,7 +233,7 @@ int fpga_pgm_fn (int assert, int flush, int cookie)
  */
 int fpga_init_fn (int cookie)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        PRINTF ("%s:%d: INIT check... ", __FUNCTION__, __LINE__);
        if (immap->im_cpm.cp_pbdat & (0x80000000 >> FPGA_INIT_BIT_NUM)) {
@@ -251,7 +251,7 @@ int fpga_init_fn (int cookie)
  */
 int fpga_done_fn (int cookie)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        PRINTF ("%s:%d: DONE check... ", __FUNCTION__, __LINE__);
        if (immap->im_cpm.cp_pbdat & (0x80000000 >> FPGA_DONE_BIT_NUM)) {
index 5c497b62a3433a5fd96354e2afdd0fe42e9706ce..008f765af89aa89466aa10f6f52835c462587cf9 100644 (file)
@@ -160,7 +160,7 @@ int checkboard (void)
  */
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
 
        upmconfig (UPMA,
@@ -171,14 +171,14 @@ phys_size_t initdram (int board_type)
        /*
         * Setup MAMR register
         */
-       memctl->memc_mptpr = CFG_MPTPR_1BK_8K;
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_8K;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        /*
         * Map CS1* to SDRAM bank
         */
-       memctl->memc_or1 = CFG_OR1;
-       memctl->memc_br1 = CFG_BR1;
+       memctl->memc_or1 = CONFIG_SYS_OR1;
+       memctl->memc_br1 = CONFIG_SYS_BR1;
 
        /*
         * Perform SDRAM initialization sequence:
@@ -235,7 +235,7 @@ void doc_init (void)
  */
 int misc_init_r (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
 
        /*
index 7292c9c12f9bbce6cb2d06608089e6b149c2293f..5313ad8b0a2a8616a8e2dee4f64229562a080200 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -42,20 +42,20 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i)
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
            flash_info[i].flash_id = FLASH_UNKNOWN;
 
        /* Detect size */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* Setup offsets */
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* Monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -322,7 +322,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 
        while ((addr[0] & 0xFF) != 0xFF)
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -454,7 +454,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
            start = get_timer (0);
            while ((*cdest ^ *cdata) & 0x80)
            {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
            }
index fc2116967a47f63ea48f86c3173c4ae4f65d2455..0a015ea2ded28ee8b9c6ef06d8db655b9f43d33a 100644 (file)
@@ -29,7 +29,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-#define CFG_PA7                0x0100
+#define CONFIG_SYS_PA7         0x0100
 
 /* ------------------------------------------------------------------------- */
 
@@ -104,7 +104,7 @@ int checkboard (void)
 #if 0
 static void PrintState (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &im->im_memctl;
 
        printf ("\n0 - FLASH: B=%08x O=%08x", memctl->memc_br0,
@@ -120,18 +120,18 @@ static void PrintState (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &im->im_memctl;
        long int size_b0, size_b1, size8;
 
        /* Enable SDRAM */
 
        /* Configuring PA7 for general purpouse output pin */
-       im->im_ioport.iop_papar &= ~CFG_PA7;    /* 0 = general purpouse */
-       im->im_ioport.iop_padir |= CFG_PA7;     /* 1 = output */
+       im->im_ioport.iop_papar &= ~CONFIG_SYS_PA7;     /* 0 = general purpouse */
+       im->im_ioport.iop_padir |= CONFIG_SYS_PA7;      /* 1 = output */
 
        /* Enable SDRAM - PA7 = 1 */
-       im->im_ioport.iop_padat |= CFG_PA7;     /* value of PA7 */
+       im->im_ioport.iop_padat |= CONFIG_SYS_PA7;      /* value of PA7 */
 
        /*
         * Preliminary prescaler for refresh (depends on number of
@@ -139,9 +139,9 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
 
-       memctl->memc_mbmr = CFG_MBMR_8COL;
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL;
 
        upmconfig (UPMB, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
@@ -152,11 +152,11 @@ phys_size_t initdram (int board_type)
         * SDRAM size has been determined.
         */
 
-       memctl->memc_or1 = 0xF0000000 | CFG_OR_TIMING_SDRAM;
+       memctl->memc_or1 = 0xF0000000 | CONFIG_SYS_OR_TIMING_SDRAM;
        memctl->memc_br1 =
                ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V);
 
-       memctl->memc_or2 = 0xF0000000 | CFG_OR_TIMING_SDRAM;
+       memctl->memc_or2 = 0xF0000000 | CONFIG_SYS_OR_TIMING_SDRAM;
        memctl->memc_br2 =
                ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V);
 
@@ -168,14 +168,14 @@ phys_size_t initdram (int board_type)
        memctl->memc_mcr = 0x80804105;  /* SDRAM bank 1 */
 
        /* Execute refresh 8 times */
-       memctl->memc_mbmr = (CFG_MBMR_8COL & ~MBMR_TLFB_MSK) | MBMR_TLFB_8X;
+       memctl->memc_mbmr = (CONFIG_SYS_MBMR_8COL & ~MBMR_TLFB_MSK) | MBMR_TLFB_8X;
 
        memctl->memc_mcr = 0x80802130;  /* SDRAM bank 0 - execute twice */
 
        memctl->memc_mcr = 0x80804130;  /* SDRAM bank 1 - execute twice */
 
        /* Execute refresh 4 times */
-       memctl->memc_mbmr = CFG_MBMR_8COL;
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL;
 
        /*
         * Check Bank 0 Memory Size for re-configuration
@@ -187,7 +187,7 @@ phys_size_t initdram (int board_type)
        PrintState ();
 #endif
 /*    printf ("\nChecking bank1..."); */
-       size8 = dram_size (CFG_MBMR_8COL, (long *) SDRAM_BASE1_PRELIM,
+       size8 = dram_size (CONFIG_SYS_MBMR_8COL, (long *) SDRAM_BASE1_PRELIM,
                           SDRAM_MAX_SIZE);
 
        size_b0 = size8;
@@ -201,17 +201,17 @@ phys_size_t initdram (int board_type)
         * Final mapping: map bigger bank first
         */
 
-       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V;
+       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V;
 
        if (size_b1 > 0) {
                /*
                 * Position Bank 1 immediately above Bank 0
                 */
                memctl->memc_or2 =
-                       ((-size_b1) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+                       ((-size_b1) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                memctl->memc_br2 =
-                       ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V) +
+                       ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V) +
                        (size_b0 & BR_BA_MSK);
        } else {
                /*
@@ -221,14 +221,14 @@ phys_size_t initdram (int board_type)
                 */
                memctl->memc_br2 = 0;
                /* adjust refresh rate depending on SDRAM type, one bank */
-               memctl->memc_mptpr = CFG_MPTPR_1BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_4K;
        }
 
        /* If no memory detected, disable SDRAM */
        if ((size_b0 + size_b1) == 0) {
                printf ("disabling SDRAM!\n");
                /* Disable SDRAM - PA7 = 1 */
-               im->im_ioport.iop_padat &= ~CFG_PA7;    /* value of PA7 */
+               im->im_ioport.iop_padat &= ~CONFIG_SYS_PA7;     /* value of PA7 */
        }
 /*     else */
 /*    printf("done! (%08lx)\n", size_b0 + size_b1); */
@@ -269,8 +269,8 @@ static long int dram_size (long int mbmr_value, long int *base,
 
 #if defined(CONFIG_CMD_PCMCIA)
 
-#ifdef CFG_PCMCIA_MEM_ADDR
-volatile unsigned char *pcmcia_mem = (unsigned char *) CFG_PCMCIA_MEM_ADDR;
+#ifdef CONFIG_SYS_PCMCIA_MEM_ADDR
+volatile unsigned char *pcmcia_mem = (unsigned char *) CONFIG_SYS_PCMCIA_MEM_ADDR;
 #endif
 
 int pcmcia_init (void)
@@ -281,10 +281,10 @@ int pcmcia_init (void)
        /*
         ** Enable the PCMCIA for a Flash card.
         */
-       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CFG_IMMR)->im_pcmcia));
+       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_pcmcia));
 
 #if 0
-       pcmp->pcmc_pbr0 = CFG_PCMCIA_MEM_ADDR;
+       pcmp->pcmc_pbr0 = CONFIG_SYS_PCMCIA_MEM_ADDR;
        pcmp->pcmc_por0 = 0xc00ff05d;
 #endif
 
index 716c90ed6201806267076e65b2334509eceb50fd..2a33a0edd99aa1b17a806a9c6e395522ef424d4b 100644 (file)
@@ -152,7 +152,7 @@ read_byte(void){
   int i;
   int Value;
   u8 Result=0;
-#ifndef CFG_IMMR
+#ifndef CONFIG_SYS_IMMR
   u32 Flags;
 #endif
 
@@ -162,7 +162,7 @@ read_byte(void){
     /* Small delay between pulses */
     udelay(1);
 
-#ifndef CFG_IMMR
+#ifndef CONFIG_SYS_IMMR
     /* Disable irq */
     save_flags(Flags);
     cli();
@@ -182,7 +182,7 @@ read_byte(void){
     if(Value)
       Value=1;
 
-#ifndef CFG_IMMR
+#ifndef CONFIG_SYS_IMMR
     /* Enable irq */
     restore_flags(Flags);
 #endif
@@ -205,7 +205,7 @@ write_byte(u8 Byte){
      Write LSb first */
   int i;
   int Value;
-#ifndef CFG_IMMR
+#ifndef CONFIG_SYS_IMMR
   u32 Flags;
 #endif
 
@@ -216,7 +216,7 @@ write_byte(u8 Byte){
     udelay(1);
     Value = Byte&1;
 
-#ifndef CFG_IMMR
+#ifndef CONFIG_SYS_IMMR
     /* Disable irq */
     save_flags(Flags);
     cli();
@@ -237,7 +237,7 @@ write_byte(u8 Byte){
 
     WRITE_PORT(1);
 
-#ifndef CFG_IMMR
+#ifndef CONFIG_SYS_IMMR
     /* Enable irq */
     restore_flags(Flags);
 #endif
@@ -289,7 +289,7 @@ int ee_init_data(void){
   int i;
   u8 Tx[10];
   int tmp;
-  volatile immap_t *immap = (immap_t *)CFG_IMMR;
+  volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
 
   while(0){
     tmp = 1-tmp;
index 417c7b675c406ba87fd0aa00b7c9beac6df42042..3004b46610c73f7b289b20efe05f6f788c7a2c3a 100644 (file)
@@ -9,10 +9,10 @@
 
 #define E_DEBUG(fmt,args...) if( Debug ) printk(KERN_DEBUG"EE: " fmt, ##args)
 
-#define PORT_B_PAR ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbpar
-#define PORT_B_ODR ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbodr
-#define PORT_B_DIR ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdir
-#define PORT_B_DAT ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat
+#define PORT_B_PAR ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbpar
+#define PORT_B_ODR ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbodr
+#define PORT_B_DIR ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdir
+#define PORT_B_DAT ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat
 
 #define SET_PORT_B_INPUT(Mask)  PORT_B_DIR &= ~(Mask)
 #define SET_PORT_B_OUTPUT(Mask) PORT_B_DIR |= Mask
index 11e105e58eec440ecb281bdd5263fa0ee3d12350..169270be1a651cdff376a4d7af6362dc98a08fe6 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -44,7 +44,7 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
@@ -54,7 +54,7 @@ unsigned long flash_init (void)
        return(0x1fffff);
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i)
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
        {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
@@ -90,45 +90,45 @@ unsigned long flash_init (void)
          size_b1 = 0;
 
          /* Remap FLASH according to real size */
-         memctl->memc_or0 = CFG_OR0_PRELIM;
-         memctl->memc_br0 = CFG_BR0_PRELIM;
+         memctl->memc_or0 = CONFIG_SYS_OR0_PRELIM;
+         memctl->memc_br0 = CONFIG_SYS_BR0_PRELIM;
 
          /* Re-do sizing to get full correct info */
-         size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+         size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-         flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+         flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
          /* monitor protection ON by default */
          (void)flash_protect(FLAG_PROTECT_SET,
-                           CFG_MONITOR_BASE,
-                           CFG_MONITOR_BASE+monitor_flash_len-1,
+                           CONFIG_SYS_MONITOR_BASE,
+                           CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                            &flash_info[0]);
 #endif
 
        if (size_b1)
        {
-         /* memctl->memc_or1 = CFG_OR1_PRELIM;
-            memctl->memc_br1 = CFG_BR1_PRELIM; */
+         /* memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+            memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM; */
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                         &flash_info[1]);
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                (void)flash_protect(FLAG_PROTECT_SET,
-                                   CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE+monitor_flash_len-1,
+                                   CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                                    &flash_info[1]);
 #endif
        }
        else
        {
-/*         memctl->memc_or1 = CFG_OR1_PRELIM;
- FIXME     memctl->memc_br1 = CFG_BR1_PRELIM;  */
+/*         memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+ FIXME     memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;  */
 
                flash_info[1].flash_id = FLASH_UNKNOWN;
                flash_info[1].sector_count = -1;
@@ -501,7 +501,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        while ((addr[0] & 0xFFFFFFFF) != 0xFFFFFFFF)
 #endif
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -638,7 +638,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080))
 #endif
        {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 788a6a0948930a6e13ed9d26fa5275087f28c84d..4399db2d56f6dd6ac8ce6a4054b0b9b686302371 100644 (file)
@@ -38,7 +38,7 @@
 
 int checkboard (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        int Id = 0;
        int Rev = 0;
        u32 Pbdat;
@@ -162,7 +162,7 @@ const uint fpga_table[] = {
 
 int _initsdram (uint base, uint * noMbytes)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *mc = &immap->im_memctl;
        volatile u32 *memptr;
 
@@ -235,7 +235,7 @@ int _initsdram (uint base, uint * noMbytes)
 
 void _sdramdisable (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_br1 = 0x00000000;
@@ -345,7 +345,7 @@ do                              \
 static void write_bootdata (volatile u16 * addr, u8 System, u8 Count)
 {
        u16 data;
-       volatile u16 *flash = (u16 *) (CFG_FLASH_BASE);
+       volatile u16 *flash = (u16 *) (CONFIG_SYS_FLASH_BASE);
 
        if ((System != FAILSAFE_BOOT) & (System != SYSTEM_BOOT)) {
                printf ("Invalid system data %u, setting failsafe\n", System);
@@ -376,12 +376,12 @@ static void write_bootdata (volatile u16 * addr, u8 System, u8 Count)
 static void maybe_update_restart_reason (volatile u32 * addr32)
 {
        /* Update addr if sw wd restart */
-       volatile u16 *flash = (u16 *) (CFG_FLASH_BASE);
+       volatile u16 *flash = (u16 *) (CONFIG_SYS_FLASH_BASE);
        volatile u16 *addr_16 = (u16 *) addr32;
        u32 rsr;
 
        /* Dont reset register now */
-       rsr = ((volatile immap_t *) CFG_IMMR)->im_clkrst.car_rsr;
+       rsr = ((volatile immap_t *) CONFIG_SYS_IMMR)->im_clkrst.car_rsr;
 
        rsr >>= 24;
 
@@ -419,7 +419,7 @@ static void check_restart_reason (void)
        int i;
        volatile u32 *raddr;
 
-       raddr = (u32 *) (CFG_FLASH_BASE + POWER_OFFSET);
+       raddr = (u32 *) (CONFIG_SYS_FLASH_BASE + POWER_OFFSET);
 
        if (*raddr == 0xFFFFFFFF) {
                /* Nothing written */
@@ -456,7 +456,7 @@ static void check_boot_tries (void)
        u8 system;
        u8 count;
 
-       addr = (u16 *) (CFG_FLASH_BASE + BOOTDATA_OFFSET);
+       addr = (u16 *) (CONFIG_SYS_FLASH_BASE + BOOTDATA_OFFSET);
 
        if (*addr == 0xFFFF) {
                printf ("*** No bootdata exists. ***\n");
@@ -528,7 +528,7 @@ int misc_init_r (void)
        u8 Tx[5];
        int page;
        int read = 0;
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /* Kill fpga */
        immap->im_ioport.iop_papar &= ~(PA_FL_CONFIG | PA_FL_CE);
index cffcbde89a27119a78ea1599ae10b045bf24b1f0..a4db16d0cedc0e429d30984169c199f317ea8731 100644 (file)
@@ -31,10 +31,10 @@ int pcmcia_hardware_enable (int slot)
 
        debug ("hardware_enable: GTH Slot %c\n", 'A' + slot);
 
-       immap = (immap_t *) CFG_IMMR;
-       sysp = (sysconf8xx_t *) (&(((immap_t *) CFG_IMMR)->im_siu_conf));
-       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CFG_IMMR)->im_pcmcia));
-       cp = (cpm8xx_t *) (&(((immap_t *) CFG_IMMR)->im_cpm));
+       immap = (immap_t *) CONFIG_SYS_IMMR;
+       sysp = (sysconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_pcmcia));
+       cp = (cpm8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_cpm));
 
        /* clear interrupt state, and disable interrupts */
        pcmp->pcmc_pscr = PCMCIA_MASK (_slot_);
index f96edffa2d61b31fcec1ca688e2e622ec2164bed..1b3c43c4316fa276fe349987bda9d17ff840d198 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * flash_init()
index cea65c677f0d92d637bbf0f62a40f5ba2adb9ffd..59873d5ef6a80d7b0e108d20069bb729bd94726f 100644 (file)
@@ -154,19 +154,19 @@ int checkboard (void)
           We need to map it into a 32 bit addresses */
        write_one_tlb(20,                 /* index */
                      0x01ffe000,         /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_IO_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_IO_BASE, /* Hi */
                      0x3C000017,         /* Lo0 */
                      0x3C200017);        /* Lo1 */
 
        write_one_tlb(21,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_ATTR_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_ATTR_BASE, /* Hi */
                      0x3D000017,           /* Lo0 */
                      0x3D200017);          /* Lo1 */
 
        write_one_tlb(22,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_MEM_ADDR,  /* Hi */
+                     CONFIG_SYS_PCMCIA_MEM_ADDR,  /* Hi */
                      0x3E000017,           /* Lo0 */
                      0x3E200017);          /* Lo1 */
 
@@ -209,7 +209,7 @@ do                              \
 static void write_bootdata (volatile u16 * addr, u8 System, u8 Count)
 {
        u16 data;
-       volatile u16 *flash = (u16 *) (CFG_FLASH_BASE);
+       volatile u16 *flash = (u16 *) (CONFIG_SYS_FLASH_BASE);
 
        switch(System){
        case FAILSAFE_BOOT:
@@ -302,7 +302,7 @@ static void check_boot_tries (void)
        u8 system = FAILSAFE_BOOT;
        u8 count;
 
-       addr = (u16 *) (CFG_FLASH_BASE + BOOTDATA_OFFSET);
+       addr = (u16 *) (CONFIG_SYS_FLASH_BASE + BOOTDATA_OFFSET);
 
        if (*addr == 0xFFFF) {
                printf ("*** No bootdata exists. ***\n");
index 4c4f0ebd2dcf6165c95783d201106692e58c5b80..bc31c00531204a4807281b9b28aad53a8ff8ad5f 100644 (file)
@@ -6,7 +6,7 @@
 #include <asm/mipsregs.h>
 
 #define CP0_Config0            $16
-#define MEM_1MS                        ((CFG_MHZ) * 1000)
+#define MEM_1MS                        ((CONFIG_SYS_MHZ) * 1000)
 #define GPIO_RJ1LY     (1<<22)
 #define GPIO_CFRESET   (1<<10)
 
index 6cf311f2e0f66c024f517f3abe250d057b29f54c..6035f6976c759393236bb8cfd5d2f0b0611501ec 100644 (file)
@@ -54,7 +54,7 @@
 #include <common.h>
 #include <mpc8260.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static ulong flash_get_size (vu_long *addr, flash_info_t *info);
 static int write_word (flash_info_t *info, ulong dest, ulong data);
@@ -82,21 +82,21 @@ unsigned long flash_init (void)
     int i;
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
 
     /* for now, only support the 4 MB Flash SIMM */
-    size = flash_get_size((vu_long *)CFG_FLASH0_BASE, &flash_info[0]);
+    size = flash_get_size((vu_long *)CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
 
     /*
      * protect monitor and environment sectors
      */
 
-#if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_MONITOR_BASE,
-                 CFG_MONITOR_BASE+monitor_flash_len-1,
+                 CONFIG_SYS_MONITOR_BASE,
+                 CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                  &flash_info[0]);
 #endif
 
@@ -110,7 +110,7 @@ unsigned long flash_init (void)
                  &flash_info[0]);
 #endif
 
-    return (CFG_FLASH0_SIZE * 1024 * 1024);  /*size*/
+    return (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024);  /*size*/
 }
 
 /*********************************************************************/
@@ -357,7 +357,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
     last  = start;
     addr = (vu_long*)(info->start[l_sect]);
     while ((addr[0] & 0x80808080) != 0x80808080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -512,7 +512,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
     /* data polling for D7 */
     start = get_timer (0);
     while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            return (1);
        }
     }
index 42c9e0d1089c39dc166f7068041e0e38f88ef141..28f5ca99e87db3d847f404592d11621b090d651f 100644 (file)
@@ -226,7 +226,7 @@ int checkboard (void)
 }
 
 
-#if defined (CFG_DRAM_TEST)
+#if defined (CONFIG_SYS_DRAM_TEST)
 /*********************************************************************/
 /* NAME:  move64() -  moves a double word (64-bit)                  */
 /*                                                                  */
@@ -256,7 +256,7 @@ static void move64 (unsigned long long *src, unsigned long long *dest)
 }
 
 
-#if defined (CFG_DRAM_TEST_DATA)
+#if defined (CONFIG_SYS_DRAM_TEST_DATA)
 
 unsigned long long pattern[] = {
        0xaaaaaaaaaaaaaaaaULL,
@@ -319,7 +319,7 @@ unsigned long long pattern[] = {
 /*********************************************************************/
 int mem_test_data (void)
 {
-       unsigned long long *pmem = (unsigned long long *) CFG_SDRAM_BASE;
+       unsigned long long *pmem = (unsigned long long *) CONFIG_SYS_SDRAM_BASE;
        unsigned long long temp64 = 0;
        int num_patterns = sizeof (pattern) / sizeof (pattern[0]);
        int i;
@@ -346,9 +346,9 @@ int mem_test_data (void)
 
        return 0;
 }
-#endif /* CFG_DRAM_TEST_DATA */
+#endif /* CONFIG_SYS_DRAM_TEST_DATA */
 
-#if defined (CFG_DRAM_TEST_ADDRESS)
+#if defined (CONFIG_SYS_DRAM_TEST_ADDRESS)
 /*********************************************************************/
 /* NAME:  mem_test_address() - test address lines                   */
 /*                                                                  */
@@ -373,8 +373,8 @@ int mem_test_data (void)
 int mem_test_address (void)
 {
        volatile unsigned int *pmem =
-               (volatile unsigned int *) CFG_SDRAM_BASE;
-       const unsigned int size = (CFG_SDRAM_SIZE * 1024 * 1024) / 4;
+               (volatile unsigned int *) CONFIG_SYS_SDRAM_BASE;
+       const unsigned int size = (CONFIG_SYS_SDRAM_SIZE * 1024 * 1024) / 4;
        unsigned int i;
 
        /* write address to each location */
@@ -391,9 +391,9 @@ int mem_test_address (void)
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_ADDRESS */
+#endif /* CONFIG_SYS_DRAM_TEST_ADDRESS */
 
-#if defined (CFG_DRAM_TEST_WALK)
+#if defined (CONFIG_SYS_DRAM_TEST_WALK)
 /*********************************************************************/
 /* NAME:   mem_march() -  memory march                              */
 /*                                                                  */
@@ -451,7 +451,7 @@ int mem_march (volatile unsigned long long *base,
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_WALK */
+#endif /* CONFIG_SYS_DRAM_TEST_WALK */
 
 /*********************************************************************/
 /* NAME:   mem_test_walk() -  a simple walking ones test            */
@@ -483,8 +483,8 @@ int mem_test_walk (void)
 {
        unsigned long long mask;
        volatile unsigned long long *pmem =
-               (volatile unsigned long long *) CFG_SDRAM_BASE;
-       const unsigned long size = (CFG_SDRAM_SIZE * 1024 * 1024) / 8;
+               (volatile unsigned long long *) CONFIG_SYS_SDRAM_BASE;
+       const unsigned long size = (CONFIG_SYS_SDRAM_SIZE * 1024 * 1024) / 8;
 
        unsigned int i;
 
@@ -557,21 +557,21 @@ int testdram (void)
        if ((rundata == 1) || (runaddress == 1) || (runwalk == 1)) {
                printf ("Testing RAM ... ");
        }
-#ifdef CFG_DRAM_TEST_DATA
+#ifdef CONFIG_SYS_DRAM_TEST_DATA
        if (rundata == 1) {
                if (mem_test_data () == 1) {
                        return 1;
                }
        }
 #endif
-#ifdef CFG_DRAM_TEST_ADDRESS
+#ifdef CONFIG_SYS_DRAM_TEST_ADDRESS
        if (runaddress == 1) {
                if (mem_test_address () == 1) {
                        return 1;
                }
        }
 #endif
-#ifdef CFG_DRAM_TEST_WALK
+#ifdef CONFIG_SYS_DRAM_TEST_WALK
        if (runwalk == 1) {
                if (mem_test_walk () == 1) {
                        return 1;
@@ -584,7 +584,7 @@ int testdram (void)
        return 0;
 
 }
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 /*********************************************************************/
 /* NAME: initdram() -  initializes SDRAM controller                 */
@@ -593,11 +593,11 @@ int testdram (void)
 /*   Initializes the MPC8260's SDRAM controller.                    */
 /*                                                                  */
 /* INPUTS:                                                          */
-/*   CFG_IMMR      -  MPC8260 Internal memory map                   */
-/*   CFG_SDRAM_BASE -  Physical start address of SDRAM              */
-/*   CFG_PSDMR -       SDRAM mode register                          */
-/*   CFG_MPTPR -       Memory refresh timer prescaler register      */
-/*   CFG_SDRAM0_SIZE - SDRAM size                                   */
+/*   CONFIG_SYS_IMMR       -  MPC8260 Internal memory map                   */
+/*   CONFIG_SYS_SDRAM_BASE -  Physical start address of SDRAM               */
+/*   CONFIG_SYS_PSDMR -       SDRAM mode register                           */
+/*   CONFIG_SYS_MPTPR -       Memory refresh timer prescaler register       */
+/*   CONFIG_SYS_SDRAM0_SIZE - SDRAM size                                    */
 /*                                                                  */
 /* RETURNS:                                                         */
 /*   SDRAM size in bytes                                            */
@@ -608,10 +608,10 @@ int testdram (void)
 /*********************************************************************/
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
-       volatile uchar c = 0, *ramaddr = (uchar *) (CFG_SDRAM_BASE + 0x8);
-       ulong psdmr = CFG_PSDMR;
+       volatile uchar c = 0, *ramaddr = (uchar *) (CONFIG_SYS_SDRAM_BASE + 0x8);
+       ulong psdmr = CONFIG_SYS_PSDMR;
        int i;
 
        /*
@@ -631,11 +631,11 @@ phys_size_t initdram (int board_type)
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
        *ramaddr = c;
@@ -651,7 +651,7 @@ phys_size_t initdram (int board_type)
        *ramaddr = c;
 
        /* return total ram size */
-       return (CFG_SDRAM0_SIZE * 1024 * 1024);
+       return (CONFIG_SYS_SDRAM0_SIZE * 1024 * 1024);
 }
 
 /*********************************************************************/
index 799fe83f3e6c46139bbddf3cc1daae8c31ec327c..888231c5f84a1e196cf17c327ca04baf27fc541a 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,13 +38,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -58,20 +58,20 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) |
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) |
                                (memctl->memc_br0 & ~(BR_BA_MSK));
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -376,7 +376,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_char*)(info->start[l_sect]);
        while ((addr[0] & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -449,7 +449,7 @@ static int write_byte (flash_info_t *info, ulong dest, uchar data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_char *)dest) & 0x80) != (data & 0x80)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index f9b57204f0a5b4b748dcdf5d388fd50969bf575f..9a3e5f669092ffb19851ee6ad2d2d7464a7b4f90 100644 (file)
@@ -136,7 +136,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size, size8, size9;
 
@@ -153,8 +153,8 @@ phys_size_t initdram (int board_type)
        /*
         * Map controller banks 1 to the SDRAM banks at preliminary address
         */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
        /* HERMES-PRO boards have only one bank SDRAM */
 
@@ -179,7 +179,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, (long *) SDRAM_BASE_PRELIM,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, (long *) SDRAM_BASE_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        udelay (1000);
@@ -187,7 +187,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (long *) SDRAM_BASE_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *) SDRAM_BASE_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        if (size8 < size9) {            /* leave configuration at 9 columns */
@@ -195,7 +195,7 @@ phys_size_t initdram (int board_type)
 /*     debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                                        /* back to 8 columns            */
                size = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*     debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -203,7 +203,7 @@ phys_size_t initdram (int board_type)
        udelay (1000);
 
        memctl->memc_or1 = ((-size) & 0xFFFF0000) | SDRAM_TIMING;
-       memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        udelay (10000);
 
@@ -223,7 +223,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                                                   long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -264,7 +264,7 @@ static long int dram_size (long int mamr_value, long int *base,
 
 static ulong board_init (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        ulong reg, revision, speed = 100;
        int ethspeed;
        char *s;
@@ -403,7 +403,7 @@ static ulong board_init (void)
  */
 void hermes_start_lxt980 (int speed)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = (cpm8xx_t *) & (immr->im_cpm);
        volatile scc_t *sp = (scc_t *) & (cp->cp_scc[SCC_SM]);
        volatile cbd_t *bd;
@@ -595,7 +595,7 @@ static void send_smi_frame (volatile scc_t * sp, volatile cbd_t * bd,
 
 void show_boot_progress (int status)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        if (status < -32) status = -1;  /* let things compatible */
        status ^= 0x0F;
index 07dafb716f915b2fdb37401973f67223fb000004..531dcdf4ae22e5dd00c2c6f7718df775394927ea 100644 (file)
 
 #if defined(USE_DINK32)
   /* We are running from RAM, so do not clear the MCCR1_MEMGO bit! */
-  #define MCCR1VAL ((CFG_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CFG_ROMFAL << MCCR1_ROMFAL_SHIFT) | MCCR1_MEMGO)
+  #define MCCR1VAL ((CONFIG_SYS_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CONFIG_SYS_ROMFAL << MCCR1_ROMFAL_SHIFT) | MCCR1_MEMGO)
 #else
-  #define MCCR1VAL (CFG_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CFG_ROMFAL << MCCR1_ROMFAL_SHIFT)
+  #define MCCR1VAL (CONFIG_SYS_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CONFIG_SYS_ROMFAL << MCCR1_ROMFAL_SHIFT)
 #endif
 
        .text
 
        /* Values to program into memory controller registers */
 tbl:   .long   MCCR1, MCCR1VAL
-       .long   MCCR2, CFG_REFINT << MCCR2_REFINT_SHIFT
+       .long   MCCR2, CONFIG_SYS_REFINT << MCCR2_REFINT_SHIFT
        .long   MCCR3
-       .long   (((CFG_BSTOPRE & 0x000000f0) >> 4) << MCCR3_BSTOPRE2TO5_SHIFT) | \
-               (CFG_REFREC << MCCR3_REFREC_SHIFT) | \
-               (CFG_RDLAT  << MCCR3_RDLAT_SHIFT)
+       .long   (((CONFIG_SYS_BSTOPRE & 0x000000f0) >> 4) << MCCR3_BSTOPRE2TO5_SHIFT) | \
+               (CONFIG_SYS_REFREC << MCCR3_REFREC_SHIFT) | \
+               (CONFIG_SYS_RDLAT  << MCCR3_RDLAT_SHIFT)
        .long   MCCR4
-       .long   (CFG_PRETOACT << MCCR4_PRETOACT_SHIFT) | (CFG_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) | \
-               (CFG_REGISTERD_TYPE_BUFFER << 20) | \
-               (((CFG_BSTOPRE & 0x00000300) >> 8) << MCCR4_BSTOPRE0TO1_SHIFT ) | \
-               ((CFG_SDMODE_CAS_LAT << 4) | (CFG_SDMODE_WRAP << 3) | \
-               (CFG_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) | \
-               (CFG_ACTTORW << MCCR4_ACTTORW_SHIFT) | \
-               ((CFG_BSTOPRE & 0x0000000f) << MCCR4_BSTOPRE6TO9_SHIFT )
+       .long   (CONFIG_SYS_PRETOACT << MCCR4_PRETOACT_SHIFT) | (CONFIG_SYS_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) | \
+               (CONFIG_SYS_REGISTERD_TYPE_BUFFER << 20) | \
+               (((CONFIG_SYS_BSTOPRE & 0x00000300) >> 8) << MCCR4_BSTOPRE0TO1_SHIFT ) | \
+               ((CONFIG_SYS_SDMODE_CAS_LAT << 4) | (CONFIG_SYS_SDMODE_WRAP << 3) | \
+               (CONFIG_SYS_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) | \
+               (CONFIG_SYS_ACTTORW << MCCR4_ACTTORW_SHIFT) | \
+               ((CONFIG_SYS_BSTOPRE & 0x0000000f) << MCCR4_BSTOPRE6TO9_SHIFT )
        .long   MSAR1
-       .long   (((CFG_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMSAR1
-       .long   (((CFG_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MSAR2
-       .long   (((CFG_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMSAR2
-       .long   (((CFG_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MEAR1
-       .long   (((CFG_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMEAR1
-       .long   (((CFG_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MEAR2
-       .long   (((CFG_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMEAR2
-       .long   (((CFG_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   0
 
 
@@ -123,7 +123,7 @@ loop:       lwz     r1, 4(r5)
        /* set bank enable bits */
        lis     r0, MBER@h
        ori     r0, 0, MBER@l
-       li      r1, CFG_BANK_ENABLE
+       li      r1, CONFIG_SYS_BANK_ENABLE
        stwbrx  r0, 0, r3
        eieio
        stb     r1, 0(r4)
@@ -145,8 +145,8 @@ delay:      bdnz    delay
        eieio
 
        /* set up stack pointer */
-       lis     r1, CFG_INIT_SP_OFFSET@h
-       ori     r1, r1, CFG_INIT_SP_OFFSET@l
+       lis     r1, CONFIG_SYS_INIT_SP_OFFSET@h
+       ori     r1, r1, CONFIG_SYS_INIT_SP_OFFSET@l
 
        mtlr    r10
        blr
index 10293b4be90e25998f60e19fbe35e69444ea13fd..2ce1dc4fb5188c7d76fd3d7719024ca310b42254 100644 (file)
 #define ROM_CS0_START  0xFF800000
 #define ROM_CS1_START  0xFF000000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR  (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR  (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE  CONFIG_ENV_SECT_SIZE
@@ -120,10 +120,10 @@ unsigned long flash_init (void)
 {
        unsigned long i;
        unsigned char j;
-       static const ulong flash_banks[] = CFG_FLASH_BANKS;
+       static const ulong flash_banks[] = CONFIG_SYS_FLASH_BANKS;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                flash_info_t *const pflinfo = &flash_info[i];
 
                pflinfo->flash_id = FLASH_UNKNOWN;
@@ -135,10 +135,10 @@ unsigned long flash_init (void)
        {
                register unsigned char temp;
 
-               CONFIG_READ_BYTE (CFG_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR,
+               CONFIG_READ_BYTE (CONFIG_SYS_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR,
                                  temp);
                temp &= ~0x20;  /* clear BIOSWP bit */
-               CONFIG_WRITE_BYTE (CFG_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR,
+               CONFIG_WRITE_BYTE (CONFIG_SYS_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR,
                                   temp);
        }
 
@@ -205,10 +205,10 @@ unsigned long flash_init (void)
                }
                /* Protect monitor and environment sectors
                 */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                flash_protect (FLAG_PROTECT_SET,
-                              CFG_MONITOR_BASE,
-                              CFG_MONITOR_BASE + monitor_flash_len - 1,
+                              CONFIG_SYS_MONITOR_BASE,
+                              CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                               &flash_info[0]);
 #endif
 
@@ -426,7 +426,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                                       start[0]) << sh8b));
        while ((addr[0] & (FLASH_WORD_SIZE) 0x00800080) !=
               (FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -565,7 +565,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                start = get_timer (0);
                while ((dest2[i << sh8b] & (FLASH_WORD_SIZE) 0x00800080) !=
                       (data2[i] & (FLASH_WORD_SIZE) 0x00800080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index 2d7a7870e5296669cef6c0082cf3f5c87812623b..027aa457f5a0d9ede31de081965c34f235426b08 100644 (file)
@@ -52,7 +52,7 @@ phys_size_t initdram (int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
index 8cfd75bd832ac21e6084cd8eeb5d526c97d10d88..9cbed4b8c53e6bcd9c1ea3b4173b559df3fad46b 100644 (file)
@@ -33,7 +33,7 @@
 #include <asm/processor.h>
 #include <malloc.h>
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -76,14 +76,14 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *           use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *           use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *           is something else than 0x00000000.
  */
 
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
        uint svr, pvr;
 
@@ -105,9 +105,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -129,7 +129,7 @@ phys_size_t initdram (int board_type)
        }
 
        *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -147,7 +147,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /*
         * On MPC5200B we need to set the special configuration delay in the
@@ -193,8 +193,8 @@ struct kbd_data_t {
 
 struct kbd_data_t* get_keys (struct kbd_data_t *kbd_data)
 {
-       kbd_data->s1 = *((volatile uchar*)(CFG_STATUS1_BASE));
-       kbd_data->s2 = *((volatile uchar*)(CFG_STATUS2_BASE));
+       kbd_data->s1 = *((volatile uchar*)(CONFIG_SYS_STATUS1_BASE));
+       kbd_data->s2 = *((volatile uchar*)(CONFIG_SYS_STATUS2_BASE));
 
        return kbd_data;
 }
@@ -300,9 +300,9 @@ int board_early_init_r (void)
 {
        *(vu_long *)MPC5XXX_BOOTCS_CFG &= ~0x1; /* clear RO */
        *(vu_long *)MPC5XXX_BOOTCS_START =
-       *(vu_long *)MPC5XXX_CS0_START = START_REG(CFG_FLASH_BASE);
+       *(vu_long *)MPC5XXX_CS0_START = START_REG(CONFIG_SYS_FLASH_BASE);
        *(vu_long *)MPC5XXX_BOOTCS_STOP =
-       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CFG_FLASH_BASE, CFG_FLASH_SIZE);
+       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_SIZE);
        return 0;
 }
 #ifdef CONFIG_PCI
index 12f14020172f3b03c58654585c6388719656920c..1848bb3fcaa643340867f09e3416e13cbe11d458 100644 (file)
@@ -304,7 +304,7 @@ int
 do_eecl (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        uchar data[HYMOD_EEPROM_SIZE];
-       uint addr = CFG_I2C_EEPROM_ADDR;
+       uint addr = CONFIG_SYS_I2C_EEPROM_ADDR;
 
        switch (argc) {
 
index c9b9b181105b2ac49b210bbd792220e08281ce3d..4d48d7dbb083b3e73b29f3e6c141cdd2e5a6ea6d 100644 (file)
@@ -36,7 +36,7 @@ static char *def_bddb_cfgdir = "/hymod/bddb";
 static int
 hymod_eeprom_load (int which, hymod_eeprom_t *ep)
 {
-       unsigned dev_addr = CFG_I2C_EEPROM_ADDR | \
+       unsigned dev_addr = CONFIG_SYS_I2C_EEPROM_ADDR | \
                (which ? HYMOD_EEOFF_MEZZ : HYMOD_EEOFF_MAIN);
        unsigned offset = 0;
        uchar data[HYMOD_EEPROM_MAXLEN], *dp, *edp;
@@ -466,7 +466,7 @@ eerec_callback (uchar *name, uchar *val)
 static int
 hymod_eeprom_fetch(int which, char *filename, ulong addr)
 {
-       unsigned dev_addr = CFG_I2C_EEPROM_ADDR | \
+       unsigned dev_addr = CONFIG_SYS_I2C_EEPROM_ADDR | \
                (which ? HYMOD_EEOFF_MEZZ : HYMOD_EEOFF_MAIN);
        hymod_eehdr_t *hp = (hymod_eehdr_t *)&data[0];
        ulong crc;
@@ -635,7 +635,7 @@ int
 hymod_eeprom_read (int which, hymod_eeprom_t *ep)
 {
        char *label = which ? "mezzanine" : "main";
-       unsigned dev_addr = CFG_I2C_EEPROM_ADDR | \
+       unsigned dev_addr = CONFIG_SYS_I2C_EEPROM_ADDR | \
                (which ? HYMOD_EEOFF_MEZZ : HYMOD_EEOFF_MAIN);
        char filename[50], prompt[50], *dir;
        int serno, count = 0, rc;
@@ -682,7 +682,7 @@ hymod_eeprom_read (int which, hymod_eeprom_t *ep)
                printf ("*** fetching %s board EEPROM contents from server\n",
                        label);
 
-               rc = hymod_eeprom_fetch (which, filename, CFG_LOAD_ADDR);
+               rc = hymod_eeprom_fetch (which, filename, CONFIG_SYS_LOAD_ADDR);
 
                if (rc == 0) {
                        puts ("*** fetch failed - ignoring eeprom contents\n");
index 062553bfad087504856c92e86abaab6f33037a3c..c0e2cd5d6816d86ec01c9f0c5ec345a235e21291 100644 (file)
@@ -35,7 +35,7 @@ static int
 env_callback (uchar *name, uchar *value)
 {
        hymod_conf_t *cp = &gd->bd->bi_hymod_conf;
-       char ov[CFG_CBSIZE], nv[CFG_CBSIZE], *p, *q, *nn, c, *curver, *newver;
+       char ov[CONFIG_SYS_CBSIZE], nv[CONFIG_SYS_CBSIZE], *p, *q, *nn, c, *curver, *newver;
        int override = 1, append = 0, remove = 0, nnl, ovl, nvl;
 
        nn = (char *)name;
@@ -205,7 +205,7 @@ hymod_check_env (void)
        if ((path = getenv ("global_env_path")) == NULL || *path == '\0')
                path = def_global_env_path;
 
-       if (fetch_and_parse (path, CFG_LOAD_ADDR, env_callback) == 0) {
+       if (fetch_and_parse (path, CONFIG_SYS_LOAD_ADDR, env_callback) == 0) {
                puts ("*** Fetch of global environment failed!\n");
                return;
        }
index ad0a229d9f07d35fe71b2fa92a12eb3dfbd36446..e2cf38c8e0700c01ecf6ddb2510770c99c8ffeab 100644 (file)
@@ -27,7 +27,7 @@
 #include <mpc8260.h>
 #include <board/hymod/flash.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Protection Flags:
@@ -95,7 +95,7 @@ bank_probe (flash_info_t *fip, volatile bank_addr_t base)
                        (unsigned long)word, (unsigned long)base);
        }
 
-       if (fip->sector_count >= CFG_MAX_FLASH_SECT)
+       if (fip->sector_count >= CONFIG_SYS_MAX_FLASH_SECT)
                panic ("\ntoo many sectors (%d) in flash at address 0x%08lx",
                        fip->sector_count, (unsigned long)base);
 
@@ -198,7 +198,7 @@ bank_write_word (volatile bank_addr_t addr, bank_word_t value)
        /* data polling for D7 */
        start = get_timer (0);
        do {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        retval = 1;
                        goto done;
                }
@@ -228,30 +228,30 @@ flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       bank_probe (&flash_info[0], (bank_addr_t)CFG_FLASH_BASE);
+       bank_probe (&flash_info[0], (bank_addr_t)CONFIG_SYS_FLASH_BASE);
 
        /*
         * protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE == CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE == CONFIG_SYS_FLASH_BASE
        (void)flash_protect (FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
-#if defined(CFG_FLASH_ENV_ADDR)
+#if defined(CONFIG_SYS_FLASH_ENV_ADDR)
        (void)flash_protect (FLAG_PROTECT_SET,
-                     CFG_FLASH_ENV_ADDR,
-#if defined(CFG_FLASH_ENV_BUF)
-                     CFG_FLASH_ENV_ADDR + CFG_FLASH_ENV_BUF - 1,
+                     CONFIG_SYS_FLASH_ENV_ADDR,
+#if defined(CONFIG_SYS_FLASH_ENV_BUF)
+                     CONFIG_SYS_FLASH_ENV_ADDR + CONFIG_SYS_FLASH_ENV_BUF - 1,
 #else
-                     CFG_FLASH_ENV_ADDR + CFG_FLASH_ENV_SIZE - 1,
+                     CONFIG_SYS_FLASH_ENV_ADDR + CONFIG_SYS_FLASH_ENV_SIZE - 1,
 #endif
                      &flash_info[0]);
 #endif
@@ -368,7 +368,7 @@ flash_erase (flash_info_t *info, int s_first, int s_last)
                        do {
                                now = get_timer (start);
 
-                               if (now - estart > CFG_FLASH_ERASE_TOUT) {
+                               if (now - estart > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout (sect %d)\n", sect);
                                        haderr = 1;
                                        rcode = 1;
index 91aaab1b08d47361c2ae359ee0428a43647ef675..2af3049896ef0fa7e8281fa5a9c029a778fcb4e6 100644 (file)
@@ -255,7 +255,7 @@ uchar fs6377_regs[16] = {
 int
 board_postclk_init (void)
 {
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /*
         * Initialise the FS6377 clock chip
@@ -347,16 +347,16 @@ uint upmc_table[] = {
 int
 misc_init_f (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
        printf ("UPMs:  ");
 
        upmconfig (UPMB, upmb_table, sizeof upmb_table / sizeof upmb_table[0]);
-       memctl->memc_mbmr = CFG_MBMR;
+       memctl->memc_mbmr = CONFIG_SYS_MBMR;
 
        upmconfig (UPMC, upmc_table, sizeof upmc_table / sizeof upmc_table[0]);
-       memctl->memc_mcmr = CFG_MCMR;
+       memctl->memc_mcmr = CONFIG_SYS_MCMR;
 
        printf ("configured\n");
        return (0);
@@ -367,10 +367,10 @@ misc_init_f (void)
 phys_size_t
 initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
-       volatile uchar c = 0, *ramaddr = (uchar *) (CFG_SDRAM_BASE + 0x8);
-       ulong psdmr = CFG_PSDMR;
+       volatile uchar c = 0, *ramaddr = (uchar *) (CONFIG_SYS_SDRAM_BASE + 0x8);
+       ulong psdmr = CONFIG_SYS_PSDMR;
        int i;
 
        /*
@@ -390,11 +390,11 @@ initdram (int board_type)
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
        *ramaddr = c;
@@ -409,7 +409,7 @@ initdram (int board_type)
        memctl->memc_psdmr = psdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *ramaddr = c;
 
-       return (CFG_SDRAM_SIZE << 20);
+       return (CONFIG_SYS_SDRAM_SIZE << 20);
 }
 
 /* ------------------------------------------------------------------------- */
@@ -517,18 +517,18 @@ last_stage_init (void)
 #ifdef CONFIG_SHOW_ACTIVITY
 void board_show_activity (ulong timebase)
 {
-#ifdef CFG_HYMOD_DBLEDS
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+#ifdef CONFIG_SYS_HYMOD_DBLEDS
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile iop8260_t *iop = &immr->im_ioport;
        static int shift = 0;
 
-       if ((timestamp % CFG_HZ) == 0) {
+       if ((timestamp % CONFIG_SYS_HZ) == 0) {
                if (++shift > 3)
                        shift = 0;
                iop->iop_pdatd =
                                (iop->iop_pdatd & ~0x0f000000) | (1 << (24 + shift));
        }
-#endif /* CFG_HYMOD_DBLEDS */
+#endif /* CONFIG_SYS_HYMOD_DBLEDS */
 }
 
 void show_activity(int arg)
index 63aa13c4a977e2fa20952e07725fa8a9c0a6a6c7..998132d659491031e8a1442113d4fb0cf05080bd 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 
 /* imports from common/main.c */
-extern char console_buffer[CFG_CBSIZE];
+extern char console_buffer[CONFIG_SYS_CBSIZE];
 
 int
 hymod_get_serno (const char *prompt)
index 0aa78eb27f9baf063748643220dc86a20a55f788..7a433b3a338b4dff6e3fc69d3ec2a23a805eaeba 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 
 #ifndef CONFIG_FLASH_CFI_DRIVER
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /* NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it
  *        has nothing to do with the flash chip being 8-bit or 16-bit.
@@ -66,12 +66,12 @@ unsigned long flash_init (void)
        int i;
        extern void flash_preinit(void);
        extern void flash_afterinit(ulong);
-       ulong flashbase = CFG_FLASH_BASE;
+       ulong flashbase = CONFIG_SYS_FLASH_BASE;
 
        flash_preinit();
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                memset(&flash_info[i], 0, sizeof(flash_info_t));
 
                flash_info[i].size =
@@ -80,12 +80,12 @@ unsigned long flash_init (void)
                size += flash_info[i].size;
                flashbase += 0x800000;
        }
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
-                     flash_get_info(CFG_MONITOR_BASE));
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -122,14 +122,14 @@ static flash_info_t *flash_get_info(ulong base)
        int i;
        flash_info_t * info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->size &&
                        info->start[0] <= base && base <= info->start[0] + info->size - 1)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 
 /*-----------------------------------------------------------------------
@@ -360,7 +360,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while ((*addr & (FPW)0x00800080) != (FPW)0x00800080) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
 
                                if (intel) {
@@ -374,14 +374,14 @@ int       flash_erase (flash_info_t *info, int s_first, int s_last)
                        }
 
                        /* show that we're waiting */
-                       if ((get_timer(last)) > CFG_HZ) {/* every second */
+                       if ((get_timer(last)) > CONFIG_SYS_HZ) {/* every second */
                                putc ('.');
                                last = get_timer(0);
                        }
                }
 
                /* show that we're waiting */
-               if ((get_timer(last)) > CFG_HZ) {       /* every second */
+               if ((get_timer(last)) > CONFIG_SYS_HZ) {        /* every second */
                        putc ('.');
                        last = get_timer(0);
                }
@@ -482,7 +482,7 @@ static int write_word_amd (flash_info_t *info, FPWV *dest, FPW data)
 
        /* data polling for D7 */
        while (res == 0 && (*dest & (FPW)0x00800080) != (data & (FPW)0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW)0x00F000F0;        /* reset bank */
                        res = 1;
                }
index d84ab3adce53f9e7e4d5b323dee44561b01b9f95..75244610cff33b9fc3aca7f370c3f0ea51a7629c 100644 (file)
@@ -87,7 +87,7 @@ void lite5200b_wakeup(void)
 #define lite5200b_wakeup()
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -130,7 +130,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -141,7 +141,7 @@ phys_size_t initdram (int board_type)
        ulong dramsize2 = 0;
        uint svr, pvr;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -162,9 +162,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -190,10 +190,10 @@ phys_size_t initdram (int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start(0);
-       test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+               test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        }
        if (test1 > test2) {
                sdram_start(0);
@@ -215,7 +215,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -233,7 +233,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /*
         * On MPC5200B we need to set the special configuration delay in the
@@ -263,7 +263,7 @@ phys_size_t initdram (int board_type)
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup and enable SDRAM chip selects */
@@ -282,9 +282,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -295,12 +295,12 @@ phys_size_t initdram (int board_type)
        /* set SDRAM end address according to size */
        *(vu_long *)MPC5XXX_SDRAM_STOP = ((dramsize - 1) >> 15);
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* Retrieve amount of SDRAM available */
        dramsize = ((*(vu_long *)MPC5XXX_SDRAM_STOP + 1) << 15);
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize;
 }
@@ -340,9 +340,9 @@ void flash_afterinit(ulong size)
 {
        if (size == 0x800000) { /* adjust mapping */
                *(vu_long *)MPC5XXX_BOOTCS_START = *(vu_long *)MPC5XXX_CS0_START =
-                       START_REG(CFG_BOOTCS_START | size);
+                       START_REG(CONFIG_SYS_BOOTCS_START | size);
                *(vu_long *)MPC5XXX_BOOTCS_STOP = *(vu_long *)MPC5XXX_CS0_STOP =
-                       STOP_REG(CFG_BOOTCS_START | size, size);
+                       STOP_REG(CONFIG_SYS_BOOTCS_START | size, size);
        }
 }
 
index e6382f5fe92148367f34f3aceb2f42d2b60f80c2..2afeff4b517f22c0e96d0d53cc4615b1252b630e 100644 (file)
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -50,13 +50,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -92,19 +92,19 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -468,7 +468,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        while ((addr[0] & 0xFFFFFFFF) != 0xFFFFFFFF)
 #endif
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        puts ("Timeout\n");
                        return 1;
                }
@@ -606,7 +606,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080))
 #endif
        {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 18aa8bf6dd98930715c1e5050b0f76aa57ead809..b99d256c834ee3e84c0d20ca9f5c9b518287e285 100644 (file)
@@ -96,7 +96,7 @@ static long int dram_size (long int, long int *, long int);
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size8, size9;
        long int size_b0 = 0;
@@ -111,7 +111,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
@@ -120,10 +120,10 @@ phys_size_t initdram (int board_type)
         * preliminary address - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -143,7 +143,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, SDRAM_BASE1_PRELIM,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, SDRAM_BASE1_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        udelay (1000);
@@ -151,7 +151,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, SDRAM_BASE1_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, SDRAM_BASE1_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        if (size8 < size9) {            /* leave configuration at 9 columns */
@@ -159,7 +159,7 @@ phys_size_t initdram (int board_type)
 /*     debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                                        /* back to 8 columns            */
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*     debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -172,7 +172,7 @@ phys_size_t initdram (int board_type)
         */
        if ((size_b0 < 0x02000000)) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
@@ -180,12 +180,12 @@ phys_size_t initdram (int board_type)
         * Final mapping
         */
 
-       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        /* adjust refresh rate depending on SDRAM type, one bank */
        reg = memctl->memc_mptpr;
-       reg >>= 1;                                      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+       reg >>= 1;                                      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
        memctl->memc_mptpr = reg;
 
        udelay (10000);
@@ -206,7 +206,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                                                   long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index 20922d8a40cab52dd2a0233e2bfb3390e46f027b..a4c0b54bc175db755f3c442fd740c71f11b000f8 100644 (file)
@@ -22,8 +22,8 @@ static void cfg_port_B (void)
        volatile cpm8xx_t       *cp;
        uint reg;
 
-       immap = (immap_t *)CFG_IMMR;
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /*
        * Configure Port B for TPS2205 PC-Card Power-Interface Switch
@@ -58,10 +58,10 @@ int pcmcia_hardware_enable(int slot)
 
        udelay(10000);
 
-       immap = (immap_t *)CFG_IMMR;
-       sysp  = (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       sysp  = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /* Configure Port B for TPS2205 PC-Card Power-Interface Switch */
        cfg_port_B ();
@@ -165,9 +165,9 @@ int pcmcia_hardware_disable(int slot)
 
        debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
 
-       immap = (immap_t *)CFG_IMMR;
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
        /* Shut down */
        cp->cp_pbdat &= ~(TPS2205_SHDN);
@@ -198,9 +198,9 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
                        " Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
        'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
 
-       immap = (immap_t *)CFG_IMMR;
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        /*
        * Disable PCMCIA buffers (isolate the interface)
        * and assert RESET signal
index 33512b8946df35dd9d110c732f26947a5cfb1285..57c994863765b2d1fb63389bc58711204c80fe5c 100644 (file)
 
 #include <common.h>
 
-#define PHYS_FLASH_1 CFG_FLASH_BASE
+#define PHYS_FLASH_1 CONFIG_SYS_FLASH_BASE
 #define FLASH_BANK_SIZE 0x800000
 #define EN29LV640 0x227e227e
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 void flash_print_info (flash_info_t * info)
 {
@@ -75,15 +75,15 @@ unsigned long flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                        (AMD_MANUFACT & FLASH_VENDMASK) |
                        (EN29LV640 & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -96,8 +96,8 @@ unsigned long flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + 0x2ffff, &flash_info[0]);
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + 0x2ffff, &flash_info[0]);
 
        return size;
 }
@@ -111,8 +111,8 @@ unsigned long flash_init (void)
 #define CMD_PROGRAM            0x00A0
 #define CMD_UNLOCK_BYPASS      0x0020
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00000555<<1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x000002AA<<1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555<<1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA<<1)))
 
 #define BIT_ERASE_DONE         0x0080
 #define BIT_RDY_MASK           0x0080
@@ -191,7 +191,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                result = *addr;
 
                                /* check timeout */
-                               if (get_timer (0) > CFG_FLASH_ERASE_TOUT * CFG_HZ / 1000) {
+                               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT * CONFIG_SYS_HZ / 1000) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip1 = TMO;
                                        break;
@@ -280,7 +280,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer (0) > CFG_FLASH_ERASE_TOUT * CFG_HZ / 1000) {
+               if (get_timer (0) > CONFIG_SYS_FLASH_ERASE_TOUT * CONFIG_SYS_HZ / 1000) {
                        chip1 = ERR | TMO;
                        break;
                }
index 4f073fc319020df7cdee452f4c3f4e767c752af8..3771c191e10be2aa486736e2a0da77528af636bb 100644 (file)
@@ -35,7 +35,7 @@ phys_size_t initdram (int board_type) {
        /*
         * After reset, CS0 is configured to cover entire address space. We
         * need to configure it to its proper values, so that writes to
-        * CFG_SDRAM_BASE and vicinity during SDRAM controller setup below do
+        * CONFIG_SYS_SDRAM_BASE and vicinity during SDRAM controller setup below do
         * now fall under CS0 (see 16.3.1 of the MCF5271 Reference Manual).
         */
 
@@ -99,7 +99,7 @@ phys_size_t initdram (int board_type) {
         * PS: 16 bit
         */
        mbar_writeLong(MCF_SDRAMC_DACR0,
-                       MCF_SDRAMC_DACRn_BA(CFG_SDRAM_BASE>>18) |
+                       MCF_SDRAMC_DACRn_BA(CONFIG_SYS_SDRAM_BASE>>18) |
                        MCF_SDRAMC_DACRn_BA(0x00) |
                        MCF_SDRAMC_DACRn_CASL(0x03) |
                        MCF_SDRAMC_DACRn_CBM(0x03) |
@@ -117,7 +117,7 @@ phys_size_t initdram (int board_type) {
                        MCF_SDRAMC_DACRn_IP);
 
        /* Write to this block to initiate precharge */
-       *(volatile u16 *)(CFG_SDRAM_BASE) = 0xa5a5;
+       *(volatile u16 *)(CONFIG_SYS_SDRAM_BASE) = 0xa5a5;
 
        /*
         * Wait at least 20ns to allow banks to precharge (t_RP = 20ns). We
@@ -153,9 +153,9 @@ phys_size_t initdram (int board_type) {
         * Burst Type = Sequential
         * Burst Length = 1
         */
-       *(volatile u32 *)(CFG_SDRAM_BASE + 0x1800) = 0xa5a5a5a5;
+       *(volatile u32 *)(CONFIG_SYS_SDRAM_BASE + 0x1800) = 0xa5a5a5a5;
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 };
 
 
index 78a7028bcfae36cff2240b198d0312d698e8d3d8..e79fa195842ce234fb129b1d1ce495a7f266a615 100644 (file)
@@ -38,14 +38,14 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
 {
        if (setclear) {
                /* Enable Ethernet pins */
-               mbar_writeByte(MCF_GPIO_PAR_FECI2C, CFG_FECI2C);
+               mbar_writeByte(MCF_GPIO_PAR_FECI2C, CONFIG_SYS_FECI2C);
        } else {
        }
 
        return 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_CMD_MII)
 #include <miiphy.h>
 
 /* Make MII read/write commands for the FEC. */
@@ -131,9 +131,9 @@ uint mii_send(uint mii_cmd)
 
        return (mii_reply & 0xffff);    /* data read from phy */
 }
-#endif                         /* CFG_DISCOVER_PHY || CONFIG_CMD_MII */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY || CONFIG_CMD_MII */
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -198,7 +198,7 @@ int mii_discover_phy(struct eth_device *dev)
 
        return phyaddr;
 }
-#endif                         /* CFG_DISCOVER_PHY */
+#endif                         /* CONFIG_SYS_DISCOVER_PHY */
 
 void mii_init(void) __attribute__((weak,alias("__mii_init")));
 
index 136cdb8641c3b06c32bfc215186616b0396084c5..2a7f3dd122f7f315a5076565a725e9e73d50bff9 100644 (file)
@@ -25,7 +25,7 @@
 # IDS 8247 Board
 #
 
-# This should be equal to the CFG_FLASH_BASE define in config_IDS8247.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in config_IDS8247.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index 5800ce2f823225315a4423a6230c3567b1695047..5107553c97727a2ff0a6549e9cb018d68277eb80 100644 (file)
 
 #include <common.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -84,16 +84,16 @@ unsigned long flash_init (void)
 {
        unsigned long size_b0;
        int i;
-       volatile immap_t * immr = (immap_t *)CFG_IMMR;
+       volatile immap_t * immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immr->im_memctl;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here - FIXME XXX */
-       size_b0 = flash_get_size ((FPW *) CFG_FLASH0_BASE, &flash_info[0]);
+       size_b0 = flash_get_size ((FPW *) CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
@@ -105,11 +105,11 @@ unsigned long flash_init (void)
 
        flash_get_offsets (0xff800000, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        (void) flash_protect (FLAG_PROTECT_SET,
-                               CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE + monitor_flash_len - 1,
+                               CONFIG_SYS_MONITOR_BASE,
+                               CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                                &flash_info[0]);
 #endif
 
@@ -258,10 +258,10 @@ static ulong flash_get_size (FPWV * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -332,7 +332,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                           if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                           if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -472,7 +472,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
        start = get_timer (0);
 
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index 065014a11e42d78fde80ab5fa89fe669e1a76079..68b70703f07772b9454e3b499fac92601fdb05f7 100644 (file)
@@ -254,7 +254,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -265,7 +265,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -278,7 +278,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
        long psize, lsize;
@@ -286,15 +286,15 @@ phys_size_t initdram (int board_type)
        psize = 16 * 1024 * 1024;
        lsize = 0;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       psize = try_init (memctl, CFG_PSDMR, CFG_OR2,
-                                                 (uchar *) CFG_SDRAM_BASE);
-#endif /* CFG_RAMBOOT */
+       psize = try_init (memctl, CONFIG_SYS_PSDMR, CONFIG_SYS_OR2,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -315,8 +315,8 @@ nand_init (void)
 {
        ulong totlen = 0;
 
-       debug ("Probing at 0x%.8x\n", CFG_NAND0_BASE);
-       totlen += nand_probe (CFG_NAND0_BASE);
+       debug ("Probing at 0x%.8x\n", CONFIG_SYS_NAND0_BASE);
+       totlen += nand_probe (CONFIG_SYS_NAND0_BASE);
 
        printf ("%4lu MB\n", totlen >>20);
 }
index 1dea22b3805be0b37cf40242620e51c83918b9d6..d0c5880b33dff795b4f5879c434289046e2894b1 100644 (file)
@@ -28,7 +28,7 @@
 #define MAIN_SECT_SIZE  0x20000
 #define PARAM_SECT_SIZE 0x4000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 /*-----------------------------------------------------------------------
@@ -39,15 +39,15 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                        (INTEL_MANUFACT & FLASH_VENDMASK) |
                        (INTEL_ID_28F320B3T & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else if (i == 1)
@@ -69,8 +69,8 @@ ulong flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -175,7 +175,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                        while ((*addr & 0x00800080) != 0x00800080) {
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = 0x00B000B0;     /* suspend erase */
                                        *addr = 0x00FF00FF;     /* reset to read mode */
                                        rc = ERR_TIMOUT;
@@ -243,7 +243,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
 
        /* wait while polling the status register */
        while ((*addr & 0x00800080) != 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        rc = ERR_TIMOUT;
                        /* suspend program command */
                        *addr = 0x00B000B0;
index 74dd6fee6218d8ab6d7f92cedd1499a82a13316c..cc11e24fefe128c3913e1697cf0d1102aebc92ce 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <asm/inca-ip.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /* NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it
  *        has nothing to do with the flash chip being 8-bit or 16-bit.
@@ -73,7 +73,7 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                ulong flashbase = (i == 0) ? PHYS_FLASH_1 : PHYS_FLASH_2;
                ulong * buscon = (ulong *)
                        ((i == 0) ? INCA_IP_EBU_EBU_BUSCON0 : INCA_IP_EBU_EBU_BUSCON2);
@@ -96,12 +96,12 @@ unsigned long flash_init (void)
                size += flash_info[i].size;
        }
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
-                     flash_get_info(CFG_MONITOR_BASE));
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -173,13 +173,13 @@ static flash_info_t *flash_get_info(ulong base)
        int i;
        flash_info_t * info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->start[0] <= base && base < info->start[0] + info->size)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 
 /*-----------------------------------------------------------------------
@@ -484,7 +484,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while ((*addr & (FPW)0x00800080) != (FPW)0x00800080) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
 
                                if (intel) {
@@ -498,14 +498,14 @@ int       flash_erase (flash_info_t *info, int s_first, int s_last)
                        }
 
                        /* show that we're waiting */
-                       if ((get_timer(last)) > CFG_HZ) {/* every second */
+                       if ((get_timer(last)) > CONFIG_SYS_HZ) {/* every second */
                                putc ('.');
                                last = get_timer(0);
                        }
                }
 
                /* show that we're waiting */
-               if ((get_timer(last)) > CFG_HZ) {       /* every second */
+               if ((get_timer(last)) > CONFIG_SYS_HZ) {        /* every second */
                        putc ('.');
                        last = get_timer(0);
                }
@@ -609,7 +609,7 @@ static int write_word_amd (flash_info_t *info, FPWV *dest, FPW data)
 
     /* data polling for D7 */
     while (res == 0 && (*dest & (FPW)0x00800080) != (data & (FPW)0x00800080)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            *dest = (FPW)0x00F000F0;    /* reset bank */
            res = 1;
        }
@@ -655,7 +655,7 @@ static int write_word_intel (flash_info_t *info, FPWV *dest, FPW data)
     start = get_timer (0);
 
     while (res == 0 && (*dest & (FPW)0x00800080) != (FPW)0x00800080) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            *dest = (FPW)0x00B000B0;    /* Suspend program      */
            res = 1;
        }
index 6fe852cf9ed0fdefc57e98f7e2107bfc1fd2a3c5..3b30970b93984fbf2622aa592de918692da12b09 100644 (file)
@@ -40,16 +40,16 @@ static ulong max_sdram_size(void)
 {
        /* The only supported SDRAM data width is 16bit.
         */
-#define CFG_DW 2
+#define CONFIG_SYS_DW  2
 
        /* The only supported number of SDRAM banks is 4.
         */
-#define CFG_NB 4
+#define CONFIG_SYS_NB  4
 
        ulong cfgpb0 = *INCA_IP_SDRAM_MC_CFGPB0;
        int   cols   = cfgpb0 & 0xF;
        int   rows   = (cfgpb0 & 0xF0) >> 4;
-       ulong size   = (1 << (rows + cols)) * CFG_DW * CFG_NB;
+       ulong size   = (1 << (rows + cols)) * CONFIG_SYS_DW * CONFIG_SYS_NB;
 
        return size;
 }
@@ -75,7 +75,7 @@ phys_size_t initdram(int board_type)
                {
                        *INCA_IP_SDRAM_MC_CFGPB0 = (0x14 << 8) |
                                                   (rows << 4) | cols;
-                       size = get_ram_size((long *)CFG_SDRAM_BASE,
+                       size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
                                                             max_sdram_size());
 
                        if (size > max_size)
index a2e35ff0f641bc54896c63ebfd784c2e3c7f4751..507196bb2f8f0a965e6491cdeba8541d7e25889a 100644 (file)
@@ -45,7 +45,7 @@
 #error "INKA4x0 SDRAM: invalid chip type specified!"
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -88,14 +88,14 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *           use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *           use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *           is something else than 0x00000000.
  */
 
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        long test1, test2;
 
        /* setup SDRAM chip selects */
@@ -116,9 +116,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -140,7 +140,7 @@ phys_size_t initdram (int board_type)
        }
 
        *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -149,7 +149,7 @@ phys_size_t initdram (int board_type)
        } else {
                dramsize = 0;
        }
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize;
 }
@@ -179,7 +179,7 @@ int misc_init_f (void)
        i = getenv_r("brightness", tmp, sizeof(tmp));
        br = (i > 0)
                ? (int) simple_strtoul (tmp, NULL, 10)
-               : CFG_BRIGHTNESS;
+               : CONFIG_SYS_BRIGHTNESS;
        if (br > 255)
                br = 255;
 
index 7f17ba6c1220c20ffcff4debd16b21b1caf2675a..8c95341b644ad6da51e305051222fe683e6bf2ec 100644 (file)
@@ -72,7 +72,7 @@
 #define MAIN_SECT_SIZE  0x00020000     /* 128k per sector                  */
 #endif
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /**
  * flash_init: - initialize data structures for flash chips
@@ -85,14 +85,14 @@ ulong flash_init(void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
                flash_info[i].flash_id =
                        (INTEL_MANUFACT & FLASH_VENDMASK) |
                        (INTEL_ID_28F128J3 & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
 
                switch (i) {
                        case 0:
@@ -110,8 +110,8 @@ ulong flash_init(void)
 
        /* Protect u-boot sectors */
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + (256*1024) - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + (256*1024) - 1,
                        &flash_info[0]);
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -135,7 +135,7 @@ void flash_print_info  (flash_info_t *info)
 {
        int i, j;
 
-       for (j=0; j<CFG_MAX_FLASH_BANKS; j++) {
+       for (j=0; j<CONFIG_SYS_MAX_FLASH_BANKS; j++) {
 
                switch (info->flash_id & FLASH_VENDMASK) {
 
@@ -235,7 +235,7 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
 
                        while ((*addr & 0x0080) != 0x0080) {
                                PRINTK(".");
-                               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = 0x00B0; /* suspend erase*/
                                        *addr = 0x00FF; /* read mode    */
                                        rc = ERR_TIMOUT;
@@ -306,7 +306,7 @@ static int write_word (flash_info_t *info, ulong dest, ushort data)
 
        /* wait while polling the status register */
        while(((val = *addr) & 0x80) != 0x80) {
-               if (get_timer_masked() > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked() > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        rc = ERR_TIMOUT;
                        *addr = 0xB0; /* suspend program command */
                        goto outahere;
index 4c9f10ffbd65bbfb2cde18233b180d845093d749..9892430a1c769fbd57f29c4ec5fe91d996753770 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
    .macro CPWAIT reg
@@ -54,71 +54,71 @@ lowlevel_init:
        /* Set up GPIO pins first ----------------------------------------- */
 
        ldr             r0,     =GPSR0
-       ldr             r1,     =CFG_GPSR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR1
-       ldr             r1,     =CFG_GPSR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR2
-       ldr             r1,     =CFG_GPSR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR0
-       ldr             r1,     =CFG_GPCR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR1
-       ldr             r1,     =CFG_GPCR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR2
-       ldr             r1,     =CFG_GPCR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR0
-       ldr             r1,     =CFG_GPDR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR1
-       ldr             r1,     =CFG_GPDR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR2
-       ldr             r1,     =CFG_GPDR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_L
-       ldr             r1,     =CFG_GAFR0_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_U
-       ldr             r1,     =CFG_GAFR0_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_L
-       ldr             r1,     =CFG_GAFR1_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_U
-       ldr             r1,     =CFG_GAFR1_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_L
-       ldr             r1,     =CFG_GAFR2_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_U
-       ldr             r1,     =CFG_GAFR2_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_U_VAL
        str             r1,   [r0]
 
        ldr     r0,     =PSSR           /* enable GPIO pins */
-       ldr             r1,     =CFG_PSSR_VAL
+       ldr             r1,     =CONFIG_SYS_PSSR_VAL
        str             r1,   [r0]
 
 /*     ldr     r3,     =MSC1           /  low - bank 2 Lubbock Registers / SRAM */
-/*     ldr     r2,     =CFG_MSC1_VAL   /  high - bank 3 Ethernet Controller */
+/*     ldr     r2,     =CONFIG_SYS_MSC1_VAL    /  high - bank 3 Ethernet Controller */
 /*     str     r2,     [r3]            /  need to set MSC1 before trying to write to the HEX LEDs */
 /*     ldr     r2,     [r3]            /  need to read it back to make sure the value latches (see MSC section of manual) */
 /* */
@@ -168,17 +168,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]        /* read back to ensure      */
                                                /* that data latches        */
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
@@ -187,37 +187,37 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
        ldr     r2,     [r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
        ldr     r2,     [r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
        ldr     r2,     [r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
        ldr     r2,     [r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
        ldr     r2,     [r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
        ldr     r2,     [r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
        ldr     r2,     [r1, #MCIO1_OFFSET]
 
@@ -239,7 +239,7 @@ mem_init:
        /* Before accessing MDREFR we need a valid DRI field, so we set     */
        /* this to power on defaults + DRI field.                           */
 
-       ldr     r3,     =CFG_MDREFR_VAL
+       ldr     r3,     =CONFIG_SYS_MDREFR_VAL
        ldr     r2,     =0xFFF
        and     r3,     r3, r2
        ldr     r4,     =0x03ca4000
@@ -269,7 +269,7 @@ mem_init:
        /* Step 4a: assert MDREFR:K?RUN and configure                       */
        /*          MDREFR:K1DB2 and MDREFR:K2DB2 as desired.               */
 
-       ldr     r4,     =CFG_MDREFR_VAL
+       ldr     r4,     =CONFIG_SYS_MDREFR_VAL
        str     r4,     [r1, #MDREFR_OFFSET]    /* write back MDREFR        */
        ldr     r4,     [r1, #MDREFR_OFFSET]
 
@@ -292,7 +292,7 @@ mem_init:
        /* Step 4d: write MDCNFG with MDCNFG:DEx deasserted (set to 0), to  */
        /*          configure but not enable each SDRAM partition pair.     */
 
-       ldr     r4,     =CFG_MDCNFG_VAL
+       ldr     r4,     =CONFIG_SYS_MDCNFG_VAL
        bic     r4,     r4,     #(MDCNFG_DE0|MDCNFG_DE1)
 
        str     r4,     [r1, #MDCNFG_OFFSET]    /* write back MDCNFG        */
@@ -325,7 +325,7 @@ mem_init:
        /*          Jan 2003, Errata #116, page 30.                         */
 
 
-       ldr     r3,     =CFG_DRAM_BASE
+       ldr     r3,     =CONFIG_SYS_DRAM_BASE
        str     r2, [r3]
        str     r2, [r3]
        str     r2, [r3]
@@ -345,7 +345,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
 
index b120d63eb9f0068879b967cd85ea55e7f2dae372..0492be762011e8ddd38cf88bd7254ad94fcdf321 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/byteorder/swab.h>
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 256 KB sectors (x2) */
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #undef FLASH_PORT_WIDTH32
@@ -88,7 +88,7 @@ unsigned long flash_init (void)
 {
        int i;
        ulong size = 0;
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -104,8 +104,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
 
        return size;
 }
@@ -223,10 +223,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -318,7 +318,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                *addr) & (FPW) 0x00800080) !=
                                (FPW) 0x00800080) {
                                        if (get_timer_masked () >
-                                       CFG_FLASH_ERASE_TOUT) {
+                                       CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        /* suspend erase     */
                                        *addr = (FPW) 0x00B000B0;
@@ -454,7 +454,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index 687c486c821cdb103dfb727e38803bffa51b472a..ddacabb2eac8f5aff3439b83a9ebc55f9d53ae80 100644 (file)
@@ -519,7 +519,7 @@ extern void dram_query(void);
  * can be divided by 16 or 256
  * and is a 16-bit counter
  */
-/* U-Boot expects a 32 bit timer running at CFG_HZ*/
+/* U-Boot expects a 32 bit timer running at CONFIG_SYS_HZ*/
 static ulong timestamp;                /* U-Boot ticks since startup         */
 static ulong total_count = 0;  /* Total timer count                  */
 static ulong lastdec;          /* Timer reading at last call         */
@@ -527,12 +527,12 @@ static ulong div_clock     = 256; /* Divisor applied to the timer clock */
 static ulong div_timer  = 1;   /* Divisor to convert timer reading
                                 * change to U-Boot ticks
                                 */
-/* CFG_HZ = CFG_HZ_CLOCK/(div_clock * div_timer) */
+/* CONFIG_SYS_HZ = CONFIG_SYS_HZ_CLOCK/(div_clock * div_timer) */
 
 #define TIMER_LOAD_VAL 0x0000FFFFL
-#define READ_TIMER ((*(volatile ulong *)(CFG_TIMERBASE+4)) & 0x0000FFFFL)
+#define READ_TIMER ((*(volatile ulong *)(CONFIG_SYS_TIMERBASE+4)) & 0x0000FFFFL)
 
-/* all function return values in U-Boot ticks i.e. (1/CFG_HZ) sec
+/* all function return values in U-Boot ticks i.e. (1/CONFIG_SYS_HZ) sec
  *  - unless otherwise stated
  */
 
@@ -543,7 +543,7 @@ static ulong div_timer       = 1;   /* Divisor to convert timer reading
 int interrupt_init (void)
 {
        /* Load timer with initial value */
-       *(volatile ulong *)(CFG_TIMERBASE + 0) = TIMER_LOAD_VAL;
+       *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 0) = TIMER_LOAD_VAL;
        /* Set timer to be
         *      enabled           1
         *      free-running      0
@@ -551,12 +551,12 @@ int interrupt_init (void)
         *      divider 256      10
         *      XX               00
         */
-       *(volatile ulong *)(CFG_TIMERBASE + 8) = 0x00000088;
+       *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8) = 0x00000088;
        total_count = 0;
        /* init the timestamp and lastdec value */
        reset_timer_masked();
 
-       div_timer  = CFG_HZ_CLOCK / CFG_HZ;
+       div_timer  = CONFIG_SYS_HZ_CLOCK / CONFIG_SYS_HZ;
        div_timer /= div_clock;
 
        return (0);
@@ -588,7 +588,7 @@ void udelay (unsigned long usec)
        ulong tmo, tmp;
 
        /* Convert to U-Boot ticks */
-       tmo  = usec * CFG_HZ;
+       tmo  = usec * CONFIG_SYS_HZ;
        tmo /= (1000000L);
 
        tmp  = get_timer_masked();      /* get current timestamp */
@@ -647,7 +647,7 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk (void)
 {
-       return CFG_HZ_CLOCK/div_clock;
+       return CONFIG_SYS_HZ_CLOCK/div_clock;
 }
 
 int board_eth_init(bd_t *bis)
index 7effea6aacd93bc3d00339855a08fbe27f2846f4..5059daeec92a548b69095cceb9502808207ceff6 100644 (file)
@@ -37,7 +37,7 @@
 #define DEBUG
 
 #define PHYS_FLASH_SECT_SIZE   0x00040000      /* 256 KB sectors (x2) */
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -106,23 +106,23 @@ unsigned long flash_init (void)
        else
                nbanks = 1;
 
-       if (nbanks > CFG_MAX_FLASH_BANKS)
-               nbanks = CFG_MAX_FLASH_BANKS;
+       if (nbanks > CONFIG_SYS_MAX_FLASH_BANKS)
+               nbanks = CONFIG_SYS_MAX_FLASH_BANKS;
 
        /* Enable flash write */
        cpcr[1] |= 3;
 
        for (i = 0; i < nbanks; i++) {
-               flash_get_size ((FPW *)(CFG_FLASH_BASE + size), &flash_info[i]);
-               flash_get_offsets (CFG_FLASH_BASE + size, &flash_info[i]);
+               flash_get_size ((FPW *)(CONFIG_SYS_FLASH_BASE + size), &flash_info[i]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size, &flash_info[i]);
                size += flash_info[i].size;
        }
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -228,8 +228,8 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
        else
                nsects = 64;
 
-       if (nsects > CFG_MAX_FLASH_SECT)
-               nsects = CFG_MAX_FLASH_SECT;
+       if (nsects > CONFIG_SYS_MAX_FLASH_SECT)
+               nsects = CONFIG_SYS_MAX_FLASH_SECT;
 
        /* Write auto select command: read Manufacturer ID */
        addr[0x5555] = (FPW) 0x00AA00AA;
@@ -280,10 +280,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -308,7 +308,7 @@ void flash_unprotect_sectors (FPWV * addr)
 
        reset_timer_masked();
        while (((status = *addr) & (FPW)0x00800080) != 0x00800080) {
-               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout");
                        break;
                }
@@ -384,7 +384,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                enable_interrupts();
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = (FPW)0x00700070;
                                        status = *addr;
                                        if ((status & (FPW) 0x00400040) == (FPW) 0x00400040) {
@@ -538,7 +538,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
 #ifdef DEBUG
                        *addr = (FPW) 0x00700070;
                        status = *addr;
index 220513f32947bfb492c2e8274b35d6d33242a52c..72629ce2b3161c71da243bbbf9032126d2403f15 100644 (file)
@@ -143,7 +143,7 @@ extern void dram_query(void);
  * can be divided by 16 or 256
  * and can be set up as a 32-bit timer
  */
-/* U-Boot expects a 32 bit timer, running at CFG_HZ */
+/* U-Boot expects a 32 bit timer, running at CONFIG_SYS_HZ */
 /* Keep total timer count to avoid losing decrements < div_timer */
 static unsigned long long total_count = 0;
 static unsigned long long lastdec;      /* Timer reading at last call     */
@@ -151,13 +151,13 @@ static unsigned long long div_clock = 1; /* Divisor applied to timer clock */
 static unsigned long long div_timer = 1; /* Divisor to convert timer reading
                                          * change to U-Boot ticks
                                          */
-/* CFG_HZ = CFG_HZ_CLOCK/(div_clock * div_timer) */
+/* CONFIG_SYS_HZ = CONFIG_SYS_HZ_CLOCK/(div_clock * div_timer) */
 static ulong timestamp;                /* U-Boot ticks since startup         */
 
 #define TIMER_LOAD_VAL ((ulong)0xFFFFFFFF)
-#define READ_TIMER (*(volatile ulong *)(CFG_TIMERBASE+4))
+#define READ_TIMER (*(volatile ulong *)(CONFIG_SYS_TIMERBASE+4))
 
-/* all function return values in U-Boot ticks i.e. (1/CFG_HZ) sec
+/* all function return values in U-Boot ticks i.e. (1/CONFIG_SYS_HZ) sec
  *  - unless otherwise stated
  */
 
@@ -166,7 +166,7 @@ static ulong timestamp;             /* U-Boot ticks since startup         */
 int interrupt_init (void)
 {
        /* Load timer with initial value */
-       *(volatile ulong *)(CFG_TIMERBASE + 0) = TIMER_LOAD_VAL;
+       *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 0) = TIMER_LOAD_VAL;
        /* Set timer to be
         *      enabled           1
         *      periodic          1
@@ -176,12 +176,12 @@ int interrupt_init (void)
         *      32 bit            1
         *      wrapping          0
         */
-       *(volatile ulong *)(CFG_TIMERBASE + 8) = 0x000000C2;
+       *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8) = 0x000000C2;
        /* init the timestamp */
        total_count = 0ULL;
        reset_timer_masked();
 
-       div_timer  = (unsigned long long)(CFG_HZ_CLOCK / CFG_HZ);
+       div_timer  = (unsigned long long)(CONFIG_SYS_HZ_CLOCK / CONFIG_SYS_HZ);
        div_timer /= div_clock;
 
        return (0);
@@ -212,7 +212,7 @@ void udelay (unsigned long usec)
        ulong tmo, tmp;
 
        /* Convert to U-Boot ticks */
-       tmo  = usec * CFG_HZ;
+       tmo  = usec * CONFIG_SYS_HZ;
        tmo /= (1000000L);
 
        tmp  = get_timer_masked();      /* get current timestamp */
@@ -275,5 +275,5 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk (void)
 {
-       return (ulong)(((unsigned long long)CFG_HZ_CLOCK)/div_clock);
+       return (ulong)(((unsigned long long)CONFIG_SYS_HZ_CLOCK)/div_clock);
 }
index 10a96c58fda58913c127455eb5afa4d1553a8a17..6491af2fff82ebd4cf0b2f927eb6b70cf31ae4fc 100644 (file)
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -50,7 +50,7 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t        *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t        *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t    *memctl = &immap->im_memctl;
        volatile ip860_bcsr_t   *bcsr   = (ip860_bcsr_t *)BCSR_BASE;
        unsigned long size;
@@ -61,7 +61,7 @@ unsigned long flash_init (void)
         */
        bcsr->bd_ctrl |= BD_CTRL_FLWE;
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -75,22 +75,22 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-       memctl->memc_br1 = (CFG_FLASH_BASE & BR_BA_MSK) |
+       memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+       memctl->memc_br1 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) |
                                (memctl->memc_br1 & ~(BR_BA_MSK));
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -309,7 +309,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while ((*addr & 0x00800080) != 0x00800080) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0xFFFFFFFF;     /* reset bank */
                                        return 1;
@@ -434,7 +434,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        start = get_timer (0);
        flag  = 0;
        while (((csr = *addr) & 0x00800080) != 0x00800080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        flag = 1;
                        break;
                }
index 375cd4d2668b7235953ebf903704f3c6c0860225..e2a185146537ce54c5fb709f0635af5e3fe3bb94 100644 (file)
@@ -87,12 +87,12 @@ const uint sdram_table[] = {
 /* ------------------------------------------------------------------------- */
 int board_early_init_f(void)
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
 
 /* init BCSR chipselect line for ip860_get_clk_freq() and ip860_get_dram_size() */
-    memctl->memc_or4 = CFG_OR4;
-    memctl->memc_br4 = CFG_BR4;
+    memctl->memc_or4 = CONFIG_SYS_OR4;
+    memctl->memc_br4 = CONFIG_SYS_BR4;
 
     return 0;
 }
@@ -139,7 +139,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
        ulong refresh_val;
@@ -167,8 +167,8 @@ phys_size_t initdram (int board_type)
        /*
         * Map controller banks 2 to the SDRAM address
         */
-       memctl->memc_or2 = CFG_OR2;
-       memctl->memc_br2 = CFG_BR2;
+       memctl->memc_or2 = CONFIG_SYS_OR2;
+       memctl->memc_br2 = CONFIG_SYS_BR2;
 
        /* IP860 boards have only one bank SDRAM */
 
@@ -197,7 +197,7 @@ phys_size_t initdram (int board_type)
        udelay (1000);
 
        memctl->memc_or2 = ((-size) & 0xFFFF0000) | SDRAM_TIMING;
-       memctl->memc_br2 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_br2 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        udelay (10000);
 
@@ -205,34 +205,34 @@ phys_size_t initdram (int board_type)
         * Also, map other memory to correct position
         */
 
-#if (defined(CFG_OR1) && defined(CFG_BR1_PRELIM))
-       memctl->memc_or1 = CFG_OR1;
-       memctl->memc_br1 = CFG_BR1;
+#if (defined(CONFIG_SYS_OR1) && defined(CONFIG_SYS_BR1_PRELIM))
+       memctl->memc_or1 = CONFIG_SYS_OR1;
+       memctl->memc_br1 = CONFIG_SYS_BR1;
 #endif
 
-#if defined(CFG_OR3) && defined(CFG_BR3)
-       memctl->memc_or3 = CFG_OR3;
-       memctl->memc_br3 = CFG_BR3;
+#if defined(CONFIG_SYS_OR3) && defined(CONFIG_SYS_BR3)
+       memctl->memc_or3 = CONFIG_SYS_OR3;
+       memctl->memc_br3 = CONFIG_SYS_BR3;
 #endif
 
-#if defined(CFG_OR4) && defined(CFG_BR4)
-       memctl->memc_or4 = CFG_OR4;
-       memctl->memc_br4 = CFG_BR4;
+#if defined(CONFIG_SYS_OR4) && defined(CONFIG_SYS_BR4)
+       memctl->memc_or4 = CONFIG_SYS_OR4;
+       memctl->memc_br4 = CONFIG_SYS_BR4;
 #endif
 
-#if defined(CFG_OR5) && defined(CFG_BR5)
-       memctl->memc_or5 = CFG_OR5;
-       memctl->memc_br5 = CFG_BR5;
+#if defined(CONFIG_SYS_OR5) && defined(CONFIG_SYS_BR5)
+       memctl->memc_or5 = CONFIG_SYS_OR5;
+       memctl->memc_br5 = CONFIG_SYS_BR5;
 #endif
 
-#if defined(CFG_OR6) && defined(CFG_BR6)
-       memctl->memc_or6 = CFG_OR6;
-       memctl->memc_br6 = CFG_BR6;
+#if defined(CONFIG_SYS_OR6) && defined(CONFIG_SYS_BR6)
+       memctl->memc_or6 = CONFIG_SYS_OR6;
+       memctl->memc_br6 = CONFIG_SYS_BR6;
 #endif
 
-#if defined(CFG_OR7) && defined(CFG_BR7)
-       memctl->memc_or7 = CFG_OR7;
-       memctl->memc_br7 = CFG_BR7;
+#if defined(CONFIG_SYS_OR7) && defined(CONFIG_SYS_BR7)
+       memctl->memc_or7 = CONFIG_SYS_OR7;
+       memctl->memc_br7 = CONFIG_SYS_BR7;
 #endif
 
        return (size);
@@ -251,7 +251,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                                                   long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -263,7 +263,7 @@ static long int dram_size (long int mamr_value, long int *base,
 
 void reset_phy (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        ulong mask = PB_ENET_RESET | PB_ENET_JABD;
        ulong reg;
 
index 098dcc2a4dd04904b21e57413af1823be5e63f02..3dfee1fdeee7ca852b95e512ecb4f1a205e2f69d 100644 (file)
@@ -31,7 +31,7 @@
 #include <flash.h>
 #include <asm/io.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 extern int hwc_flash_size(void);
 static ulong flash_get_size (u32 addr, flash_info_t *info);
@@ -52,26 +52,26 @@ unsigned long flash_init (void)
        unsigned int bank = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = 0;
                flash_info[i].size = 0;
        }
 
        /* Initialise the BOOT Flash */
-       if (bank == CFG_MAX_FLASH_BANKS) {
+       if (bank == CONFIG_SYS_MAX_FLASH_BANKS) {
                puts ("Warning: not all Flashes are initialised !");
                return flash_size;
        }
 
-       bank_size = flash_get_size (CFG_FLASH_BASE, flash_info + bank);
+       bank_size = flash_get_size (CONFIG_SYS_FLASH_BASE, flash_info + bank);
        if (bank_size) {
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE && \
-    CFG_MONITOR_BASE < CFG_FLASH_BASE + CFG_MAX_FLASH_SIZE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE && \
+    CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MAX_FLASH_SIZE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE + monitor_flash_len - 1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                              flash_info + bank);
 #endif
 
@@ -85,8 +85,8 @@ unsigned long flash_init (void)
 
                /* HWC protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_FLASH_BASE,
-                             CFG_FLASH_BASE + 0x10000 - 1,
+                             CONFIG_SYS_FLASH_BASE,
+                             CONFIG_SYS_FLASH_BASE + 0x10000 - 1,
                              flash_info + bank);
 
                flash_size += bank_size;
@@ -144,10 +144,10 @@ static ulong flash_get_size (u32 addr, flash_info_t *info)
        case AMD_ID_LV033C:
                info->flash_id += FLASH_AM033C;
                info->size = hwc_flash_size();
-               if (info->size > CFG_MAX_FLASH_SIZE) {
+               if (info->size > CONFIG_SYS_MAX_FLASH_SIZE) {
                        printf("U-Boot supports only %d MB\n",
-                              CFG_MAX_FLASH_SIZE);
-                       info->size = CFG_MAX_FLASH_SIZE;
+                              CONFIG_SYS_MAX_FLASH_SIZE);
+                       info->size = CONFIG_SYS_MAX_FLASH_SIZE;
                }
                info->sector_count = info->size / 0x10000;
                break;                          /* => 4 MB              */
@@ -281,7 +281,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = info->start[l_sect];
        while ((in8(addr) & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -421,7 +421,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((in32(dest) & 0x80808080) != (data & 0x80808080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
                iobarrier_rw();
index e5d0254a12fe895f203eea799e32ac162781ac26..7fec2cc792029e4be8bf6da2c1b0a87392cdd2bd 100644 (file)
@@ -195,16 +195,16 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        volatile uchar *base;
        ulong maxsize;
        int i;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        immap->im_siu_conf.sc_ppc_acr = 0x00000026;
        immap->im_siu_conf.sc_ppc_alrh = 0x01276345;
        immap->im_siu_conf.sc_ppc_alrl = 0x89ABCDEF;
@@ -217,7 +217,7 @@ phys_size_t initdram (int board_type)
        /* Init Main SDRAM */
 #define OP_VALUE   0x404A241A
 #define OP_VALUE_M (OP_VALUE & 0x87FFFFFF);
-       base = (uchar *) CFG_SDRAM_BASE;
+       base = (uchar *) CONFIG_SYS_SDRAM_BASE;
        memctl->memc_psdmr = 0x28000000 | OP_VALUE_M;
        *base = 0xFF;
        memctl->memc_psdmr = 0x08000000 | OP_VALUE_M;
index 12fb91fb8ac07230bb29e4b6e1da9849a30dcd8a..9254e0a6481ed89e740fd3d16bdaa960e3073719 100644 (file)
  * according to the five values podr/pdir/ppar/psor/pdat for that entry
  */
 
-#define CFG_FCC1 (CONFIG_ETHER_INDEX == 1)
-#define CFG_FCC2 (CONFIG_ETHER_INDEX == 2)
-#define CFG_FCC3 (CONFIG_ETHER_INDEX == 3)
+#define CONFIG_SYS_FCC1 (CONFIG_ETHER_INDEX == 1)
+#define CONFIG_SYS_FCC2 (CONFIG_ETHER_INDEX == 2)
+#define CONFIG_SYS_FCC3 (CONFIG_ETHER_INDEX == 3)
 
 const iop_conf_t iop_conf_tab[4][32] = {
     /* Port A */
     {  /*            conf      ppar psor pdir podr pdat */
-       /* PA31 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL   */
-       /* PA30 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS   */
-       /* PA29 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER */
-       /* PA28 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN */
-       /* PA27 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV */
-       /* PA26 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER */
+       /* PA31 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL   */
+       /* PA30 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS   */
+       /* PA29 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER */
+       /* PA28 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN */
+       /* PA27 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV */
+       /* PA26 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER */
        /* PA25 */ { 0,          0,   0,   0,   0,   0 }, /* PA25 */
        /* PA24 */ { 0,          0,   0,   0,   0,   0 }, /* PA24 */
        /* PA23 */ { 0,          0,   0,   0,   0,   0 }, /* PA23 */
        /* PA22 */ { 0,          0,   0,   0,   0,   0 }, /* PA22 */
-       /* PA21 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
-       /* PA20 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
-       /* PA19 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
-       /* PA18 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
-       /* PA17 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
-       /* PA16 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
-       /* PA15 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
-       /* PA14 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
+       /* PA21 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
+       /* PA20 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
+       /* PA19 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
+       /* PA18 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
+       /* PA17 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
+       /* PA16 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
+       /* PA15 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
+       /* PA14 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
        /* PA13 */ { 0,          0,   0,   0,   0,   0 }, /* PA13 */
        /* PA12 */ { 0,          0,   0,   0,   0,   0 }, /* PA12 */
        /* PA11 */ { 0,          0,   0,   0,   0,   0 }, /* PA11 */
@@ -82,34 +82,34 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port B */
     {   /*           conf      ppar psor pdir podr pdat */
-       /* PB31 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
-       /* PB30 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
-       /* PB29 */ { CFG_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
-       /* PB28 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
-       /* PB27 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
-       /* PB26 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
-       /* PB25 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
-       /* PB24 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
-       /* PB23 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
-       /* PB22 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
-       /* PB21 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
-       /* PB20 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
-       /* PB19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
-       /* PB18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
-       /* PB17 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RX_DV  */
-       /* PB16 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RX_ER  */
-       /* PB15 */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TX_ER  */
-       /* PB14 */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TX_EN  */
-       /* PB13 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII COL    */
-       /* PB12 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII CRS    */
-       /* PB11 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[3] */
-       /* PB10 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[2] */
-       /* PB9  */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[1] */
-       /* PB8  */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[0] */
-       /* PB7  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[0] */
-       /* PB6  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[1] */
-       /* PB5  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[2] */
-       /* PB4  */ { CFG_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[3] */
+       /* PB31 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
+       /* PB30 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
+       /* PB29 */ { CONFIG_SYS_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
+       /* PB28 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
+       /* PB27 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
+       /* PB26 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
+       /* PB25 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
+       /* PB24 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
+       /* PB23 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
+       /* PB22 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
+       /* PB21 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
+       /* PB20 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
+       /* PB19 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
+       /* PB18 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
+       /* PB17 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RX_DV  */
+       /* PB16 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RX_ER  */
+       /* PB15 */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TX_ER  */
+       /* PB14 */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TX_EN  */
+       /* PB13 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII COL    */
+       /* PB12 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII CRS    */
+       /* PB11 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[3] */
+       /* PB10 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[2] */
+       /* PB9  */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[1] */
+       /* PB8  */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII RxD[0] */
+       /* PB7  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[0] */
+       /* PB6  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[1] */
+       /* PB5  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[2] */
+       /* PB4  */ { CONFIG_SYS_FCC3,   1,   0,   1,   0,   0 }, /* FCC3 MII TxD[3] */
        /* PB3  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
        /* PB2  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
        /* PB1  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
@@ -131,9 +131,9 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PC21 */ { 0,          0,   0,   0,   0,   0 }, /* PC21 */
        /* PC20 */ { 0,          0,   0,   0,   0,   0 }, /* PC20 */
        /* PC19 */ { 0,          0,   0,   0,   0,   0 }, /* PC19 */
-       /* PC18 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII Rx Clock (CLK14) */
+       /* PC18 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII Rx Clock (CLK14) */
        /* PC17 */ { 0,          0,   0,   0,   0,   0 }, /* PC17 */
-       /* PC16 */ { CFG_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII Tx Clock (CLK16) */
+       /* PC16 */ { CONFIG_SYS_FCC3,   1,   0,   0,   0,   0 }, /* FCC3 MII Tx Clock (CLK16) */
        /* PC15 */ { 0,          0,   0,   0,   0,   0 }, /* PC15 */
        /* PC14 */ { 0,          0,   0,   0,   0,   0 }, /* PC14 */
        /* PC13 */ { 0,          0,   0,   0,   0,   0 }, /* PC13 */
@@ -179,8 +179,8 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PD9  */ { 1,          1,   0,   1,   0,   0 }, /* SMC1 SMTXD */
        /* PD8  */ { 1,          1,   0,   0,   0,   0 }, /* SMC1 SMRXD */
        /* PD7  */ { 0,          0,   0,   0,   0,   0 }, /* PD7 */
-       /* PD6  */ { CFG_FCC3,   0,   0,   1,   0,   1 }, /* MII PHY Reset  */
-       /* PD5  */ { CFG_FCC3,   0,   0,   1,   0,   0 }, /* MII PHY Enable */
+       /* PD6  */ { CONFIG_SYS_FCC3,   0,   0,   1,   0,   1 }, /* MII PHY Reset  */
+       /* PD5  */ { CONFIG_SYS_FCC3,   0,   0,   1,   0,   0 }, /* MII PHY Enable */
        /* PD4  */ { 0,          0,   0,   0,   0,   0 }, /* PD4 */
        /* PD3  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
        /* PD2  */ { 0,          0,   0,   0,   0,   0 }, /* pin doesn't exist */
@@ -360,8 +360,8 @@ phys_size_t initdram (int board_type)
 {
        long maxsize = hwc_main_sdram_size();
 
-#if !defined(CFG_RAMBOOT) && !defined(CFG_USE_FIRMWARE)
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+#if !defined(CONFIG_SYS_RAMBOOT) && !defined(CONFIG_SYS_USE_FIRMWARE)
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        volatile uchar *base;
        int i;
@@ -375,37 +375,37 @@ phys_size_t initdram (int board_type)
        immap->im_siu_conf.sc_tescr1   = 0x00004000;
        immap->im_siu_conf.sc_ltescr1  = 0x00004000;
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /* Initialise 60x bus SDRAM */
-       base = (uchar *)(CFG_SDRAM_BASE | 0x110);
-       memctl->memc_psrt  = CFG_PSRT;
-       memctl->memc_or1   = CFG_60x_OR;
-       memctl->memc_br1   = CFG_SDRAM_BASE | CFG_60x_BR;
+       base = (uchar *)(CONFIG_SYS_SDRAM_BASE | 0x110);
+       memctl->memc_psrt  = CONFIG_SYS_PSRT;
+       memctl->memc_or1   = CONFIG_SYS_60x_OR;
+       memctl->memc_br1   = CONFIG_SYS_SDRAM_BASE | CONFIG_SYS_60x_BR;
 
-       memctl->memc_psdmr = CFG_PSDMR | 0x28000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x28000000;
        *base = 0xFF;
-       memctl->memc_psdmr = CFG_PSDMR | 0x08000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x08000000;
        for (i = 0; i < 8; i++)
                *base = 0xFF;
-       memctl->memc_psdmr = CFG_PSDMR | 0x18000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x18000000;
        *base = 0xFF;
-       memctl->memc_psdmr = CFG_PSDMR | 0x40000000;
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | 0x40000000;
 
        /* Initialise local bus SDRAM */
-       base = (uchar *)CFG_LSDRAM_BASE;
-       memctl->memc_lsrt  = CFG_LSRT;
-       memctl->memc_or2   = CFG_LOC_OR;
-       memctl->memc_br2   = CFG_LSDRAM_BASE | CFG_LOC_BR;
+       base = (uchar *)CONFIG_SYS_LSDRAM_BASE;
+       memctl->memc_lsrt  = CONFIG_SYS_LSRT;
+       memctl->memc_or2   = CONFIG_SYS_LOC_OR;
+       memctl->memc_br2   = CONFIG_SYS_LSDRAM_BASE | CONFIG_SYS_LOC_BR;
 
-       memctl->memc_lsdmr = CFG_LSDMR | 0x28000000;
+       memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x28000000;
        *base = 0xFF;
-       memctl->memc_lsdmr = CFG_LSDMR | 0x08000000;
+       memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x08000000;
        for (i = 0; i < 8; i++)
                *base = 0xFF;
-       memctl->memc_lsdmr = CFG_LSDMR | 0x18000000;
+       memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x18000000;
        *base = 0xFF;
-       memctl->memc_lsdmr = CFG_LSDMR | 0x40000000;
+       memctl->memc_lsdmr = CONFIG_SYS_LSDMR | 0x40000000;
 
        /* We must be able to test a location outsize the maximum legal size
         * to find out THAT we are outside; but this address still has to be
@@ -420,7 +420,7 @@ phys_size_t initdram (int board_type)
 
        if (maxsize != hwc_main_sdram_size())
                puts("Oops: memory test has not found all memory!\n");
-#endif /* !CFG_RAMBOOT && !CFG_USE_FIRMWARE */
+#endif /* !CONFIG_SYS_RAMBOOT && !CONFIG_SYS_USE_FIRMWARE */
 
        /* Return total RAM size (size of 60x SDRAM) */
        return maxsize;
index 29821ba1393eb76bff9ffc9c7e758fc62fb92cdd..cf309d77a9f27b6e9d3b787722dd399d4431ee85 100644 (file)
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -50,13 +50,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -72,22 +72,22 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | \
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | \
                                BR_MS_GPCM | BR_PS_16 | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size_b0;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -383,10 +383,10 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        saddr[0] = 0x00FF;              /* restore read mode */
@@ -454,7 +454,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & 0x0080) != 0x0080) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0x00FF; /* reset to read mode */
                                        return 1;
@@ -583,7 +583,7 @@ static int write_data (flash_info_t *info, ulong dest, ulong data)
        start = get_timer (0);
 
        while (((status = *addr) & 0x0080) != 0x0080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = 0x00FF; /* restore read mode */
                        return (1);
                }
index 4882f0450d7b7f5ec2fcd51cabfe705939e8ec49..9bec198c2e90f1eb8b815a5c873ae54b16b6c71a 100644 (file)
@@ -161,28 +161,28 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
        long int size_b0;
 
        /* enable SDRAM clock ("switch on" SDRAM) */
-       immr->im_cpm.cp_pbpar &= ~(CFG_PB_SDRAM_CLKE);  /* GPIO */
-       immr->im_cpm.cp_pbodr &= ~(CFG_PB_SDRAM_CLKE);  /* active output */
-       immr->im_cpm.cp_pbdir |= CFG_PB_SDRAM_CLKE;     /* output */
-       immr->im_cpm.cp_pbdat |= CFG_PB_SDRAM_CLKE;     /* assert SDRAM CLKE */
+       immr->im_cpm.cp_pbpar &= ~(CONFIG_SYS_PB_SDRAM_CLKE);   /* GPIO */
+       immr->im_cpm.cp_pbodr &= ~(CONFIG_SYS_PB_SDRAM_CLKE);   /* active output */
+       immr->im_cpm.cp_pbdir |= CONFIG_SYS_PB_SDRAM_CLKE;      /* output */
+       immr->im_cpm.cp_pbdat |= CONFIG_SYS_PB_SDRAM_CLKE;      /* assert SDRAM CLKE */
        udelay (1);
 
        /*
         * Map controller bank 1 for ELIC SACCO
         */
-       memctl->memc_or1 = CFG_OR1;
-       memctl->memc_br1 = CFG_BR1;
+       memctl->memc_or1 = CONFIG_SYS_OR1;
+       memctl->memc_br1 = CONFIG_SYS_BR1;
 
        /*
         * Map controller bank 2 for ELIC EPIC
         */
-       memctl->memc_or2 = CFG_OR2;
-       memctl->memc_br2 = CFG_BR2;
+       memctl->memc_or2 = CONFIG_SYS_OR2;
+       memctl->memc_br2 = CONFIG_SYS_BR2;
 
        /*
         * Configure UPMA for SHARC
@@ -194,15 +194,15 @@ phys_size_t initdram (int board_type)
        /*
         * Map controller bank 4 for HDLC Address space
         */
-       memctl->memc_or4 = CFG_OR4;
-       memctl->memc_br4 = CFG_BR4;
+       memctl->memc_or4 = CONFIG_SYS_OR4;
+       memctl->memc_br4 = CONFIG_SYS_BR4;
 #endif
 
        /*
         * Map controller bank 5 for SHARC
         */
-       memctl->memc_or5 = CFG_OR5;
-       memctl->memc_br5 = CFG_BR5;
+       memctl->memc_or5 = CONFIG_SYS_OR5;
+       memctl->memc_br5 = CONFIG_SYS_BR5;
 
        memctl->memc_mamr = 0x00001000;
 
@@ -212,17 +212,17 @@ phys_size_t initdram (int board_type)
        upmconfig (UPMB, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
 
-       memctl->memc_mptpr = CFG_MPTPR_1BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
-       memctl->memc_mbmr = CFG_MBMR_8COL;      /* refresh not enabled yet */
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL;       /* refresh not enabled yet */
 
        udelay (200);
        memctl->memc_mcr = 0x80806105;  /* precharge */
@@ -251,10 +251,10 @@ phys_size_t initdram (int board_type)
         * Check Bank 0 Memory Size for re-configuration
         */
        size_b0 =
-               dram_size (CFG_MBMR_8COL, (long *) SDRAM_BASE3_PRELIM,
+               dram_size (CONFIG_SYS_MBMR_8COL, (long *) SDRAM_BASE3_PRELIM,
                           SDRAM_MAX_SIZE);
 
-       memctl->memc_mbmr = CFG_MBMR_8COL | MBMR_PTBE;
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL | MBMR_PTBE;
 
        return (size_b0);
 }
@@ -272,7 +272,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
 
        memctl->memc_mbmr = mamr_value;
@@ -284,13 +284,13 @@ static long int dram_size (long int mamr_value, long int *base,
 
 void reset_phy (void)
 {
-       immap_t *immr = (immap_t *) CFG_IMMR;
+       immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /* De-assert Ethernet Powerdown */
-       immr->im_cpm.cp_pbpar &= ~(CFG_PB_ETH_POWERDOWN);       /* GPIO */
-       immr->im_cpm.cp_pbodr &= ~(CFG_PB_ETH_POWERDOWN);       /* active output */
-       immr->im_cpm.cp_pbdir |= CFG_PB_ETH_POWERDOWN;  /* output */
-       immr->im_cpm.cp_pbdat &= ~(CFG_PB_ETH_POWERDOWN);       /* Enable PHY power */
+       immr->im_cpm.cp_pbpar &= ~(CONFIG_SYS_PB_ETH_POWERDOWN);        /* GPIO */
+       immr->im_cpm.cp_pbodr &= ~(CONFIG_SYS_PB_ETH_POWERDOWN);        /* active output */
+       immr->im_cpm.cp_pbdir |= CONFIG_SYS_PB_ETH_POWERDOWN;   /* output */
+       immr->im_cpm.cp_pbdat &= ~(CONFIG_SYS_PB_ETH_POWERDOWN);        /* Enable PHY power */
        udelay (1000);
 
        /*
@@ -302,13 +302,13 @@ void reset_phy (void)
         * Note: The RESET pin is high active, but there is an
         *       inverter on the SPD823TS board...
         */
-       immr->im_ioport.iop_pcpar &= ~(CFG_PC_ETH_RESET);
-       immr->im_ioport.iop_pcdir |= CFG_PC_ETH_RESET;
+       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_ETH_RESET);
+       immr->im_ioport.iop_pcdir |= CONFIG_SYS_PC_ETH_RESET;
        /* assert RESET signal of PHY */
-       immr->im_ioport.iop_pcdat &= ~(CFG_PC_ETH_RESET);
+       immr->im_ioport.iop_pcdat &= ~(CONFIG_SYS_PC_ETH_RESET);
        udelay (10);
        /* de-assert RESET signal of PHY */
-       immr->im_ioport.iop_pcdat |= CFG_PC_ETH_RESET;
+       immr->im_ioport.iop_pcdat |= CONFIG_SYS_PC_ETH_RESET;
        udelay (10);
 }
 
@@ -332,21 +332,21 @@ void show_boot_progress (int status)
 
 void ide_set_reset (int on)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /*
         * Configure PC for IDE Reset Pin
         */
        if (on) {               /* assert RESET */
-               immr->im_ioport.iop_pcdat &= ~(CFG_PC_IDE_RESET);
+               immr->im_ioport.iop_pcdat &= ~(CONFIG_SYS_PC_IDE_RESET);
        } else {                /* release RESET */
-               immr->im_ioport.iop_pcdat |= CFG_PC_IDE_RESET;
+               immr->im_ioport.iop_pcdat |= CONFIG_SYS_PC_IDE_RESET;
        }
 
        /* program port pin as GPIO output */
-       immr->im_ioport.iop_pcpar &= ~(CFG_PC_IDE_RESET);
-       immr->im_ioport.iop_pcso &= ~(CFG_PC_IDE_RESET);
-       immr->im_ioport.iop_pcdir |= CFG_PC_IDE_RESET;
+       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_IDE_RESET);
+       immr->im_ioport.iop_pcso &= ~(CONFIG_SYS_PC_IDE_RESET);
+       immr->im_ioport.iop_pcdir |= CONFIG_SYS_PC_IDE_RESET;
 }
 
 /* ------------------------------------------------------------------------- */
index 0bae9e09ee8cb24ee89aa5d39f3dbf0525ba8882..f1d9190eac4e255772852bf29f9e639d1b155156 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 /* Board support for 1 or 2 flash devices */
 #undef FLASH_PORT_WIDTH32
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -81,8 +81,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + _bss_start - _armboot_start,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -198,10 +198,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -270,7 +270,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                 *addr) & (FPW) 0x00800080) !=
                               (FPW) 0x00800080) {
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase         */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -406,7 +406,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index b379c7535f09269a300c25665367c400a8eb290e..43ac8f6a42a6e9aa5e5ae6f9154d98887cb360b3 100644 (file)
@@ -54,25 +54,25 @@ int board_init (void)
        /*
         * Get realtek RTL8305 switch and SLIC out of reset
         */
-       GPIO_OUTPUT_SET(CFG_GPIO_SWITCH_RESET_N);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_SWITCH_RESET_N);
-       GPIO_OUTPUT_SET(CFG_GPIO_SLIC_RESET_N);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_SLIC_RESET_N);
+       GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_SWITCH_RESET_N);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_SWITCH_RESET_N);
+       GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_SLIC_RESET_N);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_SLIC_RESET_N);
 
        /*
         * Setup GPIO's for PCI INTA & INTB
         */
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_PCI_INTA_N);
-       GPIO_INT_ACT_LOW_SET(CFG_GPIO_PCI_INTA_N);
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_PCI_INTB_N);
-       GPIO_INT_ACT_LOW_SET(CFG_GPIO_PCI_INTB_N);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_PCI_INTA_N);
+       GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_PCI_INTA_N);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_PCI_INTB_N);
+       GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_PCI_INTB_N);
 
        /*
         * Setup GPIO's for 33MHz clock output
         */
        *IXP425_GPIO_GPCLKR = 0x01FF01FF;
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_PCI_CLK);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_EXTBUS_CLK);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_PCI_CLK);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_EXTBUS_CLK);
 #endif
 
        return 0;
index c462fe0315a3e96de64ee986460eea94406732de..92acdb10220958a470d5d249c474d96414b7f900 100644 (file)
 #include <ppc4xx.h>
 #include <asm/processor.h>
 
-#if CFG_MAX_FLASH_BANKS != 1
-#error "CFG_MAX_FLASH_BANKS must be 1"
+#if CONFIG_SYS_MAX_FLASH_BANKS != 1
+#error "CONFIG_SYS_MAX_FLASH_BANKS must be 1"
 #endif
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -281,7 +281,7 @@ int wait_for_DQ7 (flash_info_t * info, int sect)
        last = start;
        while ((addr[0] & (FLASH_WORD_SIZE) 0x00800080) !=
               (FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return -1;
                }
@@ -510,7 +510,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                while ((dest2[i] & (FLASH_WORD_SIZE) 0x00800080) !=
                       (data2[i] & (FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index 9290814685ceb39476d2d3db760ecd55cea2db95..6a6b9dd74b311439513ae19237bc5f791d5dcfc2 100644 (file)
@@ -67,7 +67,7 @@ int board_early_init_f (void)
 
        /* EBC0_B1CR: BAS=x, BS=0(1MB), BU=3(R/W), BW=0(8bits) */
        mtdcr (ebccfga, pb1cr);
-       mtdcr (ebccfgd, CFG_SYSTEMACE_BASE | 0x00018000);
+       mtdcr (ebccfgd, CONFIG_SYS_SYSTEMACE_BASE | 0x00018000);
 
        /* Enable the /PerWE output as /PerWE, instead of /PCIINT. */
        /* CPC0_CR1 |= PCIPW */
@@ -95,11 +95,11 @@ int checkboard (void)
 
        /* check that the SystemACE chip is alive. */
        printf ("ACE:   ");
-       vers = readw (CFG_SYSTEMACE_BASE + 0x16);
+       vers = readw (CONFIG_SYS_SYSTEMACE_BASE + 0x16);
        printf ("SystemACE %u.%u (build %u)",
                (vers >> 12) & 0x0f, (vers >> 8) & 0x0f, vers & 0xff);
 
-       status = readl (CFG_SYSTEMACE_BASE + 0x04);
+       status = readl (CONFIG_SYS_SYSTEMACE_BASE + 0x04);
 #ifdef DEBUG
        printf (" STATUS=0x%08x", status);
 #endif
@@ -110,23 +110,23 @@ int checkboard (void)
 
                if (status & 0x04) {
                        /* CONTROLREG = CFGPROG */
-                       writew (0x1000, CFG_SYSTEMACE_BASE + 0x18);
+                       writew (0x1000, CONFIG_SYS_SYSTEMACE_BASE + 0x18);
                        udelay (500);
                        /* CONTROLREG = CFGRESET */
-                       writew (0x0080, CFG_SYSTEMACE_BASE + 0x18);
+                       writew (0x0080, CONFIG_SYS_SYSTEMACE_BASE + 0x18);
                        udelay (500);
-                       writew (0x0000, CFG_SYSTEMACE_BASE + 0x18);
+                       writew (0x0000, CONFIG_SYS_SYSTEMACE_BASE + 0x18);
                        /* CONTROLREG = CFGSTART */
-                       writew (0x0020, CFG_SYSTEMACE_BASE + 0x18);
+                       writew (0x0020, CONFIG_SYS_SYSTEMACE_BASE + 0x18);
 
-                       status = readl (CFG_SYSTEMACE_BASE + 0x04);
+                       status = readl (CONFIG_SYS_SYSTEMACE_BASE + 0x04);
                }
        }
 
        /* Wait for the SystemACE to program its chain of devices. */
        while ((status & 0x84) == 0x00) {
                udelay (500);
-               status = readl (CFG_SYSTEMACE_BASE + 0x04);
+               status = readl (CONFIG_SYS_SYSTEMACE_BASE + 0x04);
        }
 
        if (status & 0x04)
index 8ba6c454fd3b681e76132ff5d3163619b81419ef..a1f526de6ff1c2113002850e257b905ef3434340 100644 (file)
@@ -151,7 +151,7 @@ int testdram (void)
        /* Start memory test. */
        printf ("test: %u MB - ", SDRAM_LEN / 1048576);
 
-       sdram = (unsigned long *) CFG_SDRAM_BASE;
+       sdram = (unsigned long *) CONFIG_SYS_SDRAM_BASE;
 
        printf ("write - ");
        for (idx = 2; idx < SDRAM_LEN / 4; idx += 2) {
index 7913c753765f609646ac5deaf6826434b9bb5488..6e752c6554a65ec8229f571c9ebc664a992595ca 100644 (file)
@@ -45,7 +45,7 @@
 #define SDRAM_CONFIG2  0x88b70004
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -88,7 +88,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -98,7 +98,7 @@ phys_size_t initdram (int board_type)
        ulong dramsize2 = 0;
        uint svr, pvr;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -119,9 +119,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -147,10 +147,10 @@ phys_size_t initdram (int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start(0);
-       test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+               test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        }
        if (test1 > test2) {
                sdram_start(0);
@@ -172,7 +172,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -190,7 +190,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /*
         * On MPC5200B we need to set the special configuration delay in the
@@ -244,9 +244,9 @@ void flash_afterinit(ulong size)
 {
        if (size == 0x1000000) { /* adjust mapping */
                *(vu_long *)MPC5XXX_BOOTCS_START = *(vu_long *)MPC5XXX_CS0_START =
-                       START_REG(CFG_BOOTCS_START | size);
+                       START_REG(CONFIG_SYS_BOOTCS_START | size);
                *(vu_long *)MPC5XXX_BOOTCS_STOP = *(vu_long *)MPC5XXX_CS0_STOP =
-                       STOP_REG(CFG_BOOTCS_START | size, size);
+                       STOP_REG(CONFIG_SYS_BOOTCS_START | size, size);
        }
 #if defined(CONFIG_MPC5200)
        *(vu_long *)MPC5XXX_ADDECR &= ~(1 << 25); /* disable CS_BOOT */
index 18982cde8952aec3ea9afbfb6711ace1a78586af..61276d22a286bd43b5718b944c4356cdb0241dcb 100644 (file)
@@ -196,9 +196,9 @@ static int ivm_check_crc (unsigned char *buf, int block)
        unsigned long   crc;
        unsigned long   crceeprom;
 
-       crc = ivm_calc_crc (buf, CFG_IVM_EEPROM_PAGE_LEN - 2);
-       crceeprom = (buf[CFG_IVM_EEPROM_PAGE_LEN - 1] + \
-                       buf[CFG_IVM_EEPROM_PAGE_LEN - 2] * 256);
+       crc = ivm_calc_crc (buf, CONFIG_SYS_IVM_EEPROM_PAGE_LEN - 2);
+       crceeprom = (buf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN - 1] + \
+                       buf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN - 2] * 256);
        if (crc != crceeprom) {
                printf ("Error CRC Block: %d EEprom: calculated: %lx EEprom: %lx\n",
                        block, crc, crceeprom);
@@ -209,7 +209,7 @@ static int ivm_check_crc (unsigned char *buf, int block)
 
 static int ivm_analyze_block2 (unsigned char *buf, int len)
 {
-       unsigned char   valbuf[CFG_IVM_EEPROM_PAGE_LEN];
+       unsigned char   valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN];
        unsigned long   count;
 
        /* IVM_MacAddress */
@@ -238,21 +238,21 @@ static int ivm_analyze_block2 (unsigned char *buf, int len)
 int ivm_analyze_eeprom (unsigned char *buf, int len)
 {
        unsigned short  val;
-       unsigned char   valbuf[CFG_IVM_EEPROM_PAGE_LEN];
+       unsigned char   valbuf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN];
        unsigned char   *tmp;
 
        if (ivm_check_crc (buf, 0) != 0)
                return -1;
 
-       ivm_get_value (buf, CFG_IVM_EEPROM_PAGE_LEN, "IVM_BoardId", 0, 1);
-       val = ivm_get_value (buf, CFG_IVM_EEPROM_PAGE_LEN, "IVM_HWKey", 6, 1);
+       ivm_get_value (buf, CONFIG_SYS_IVM_EEPROM_PAGE_LEN, "IVM_BoardId", 0, 1);
+       val = ivm_get_value (buf, CONFIG_SYS_IVM_EEPROM_PAGE_LEN, "IVM_HWKey", 6, 1);
        if (val != 0xffff) {
                sprintf ((char *)valbuf, "%x", ((val /100) % 10));
                ivm_set_value ("IVM_HWVariant", (char *)valbuf);
                sprintf ((char *)valbuf, "%x", (val % 100));
                ivm_set_value ("IVM_HWVersion", (char *)valbuf);
        }
-       ivm_get_value (buf, CFG_IVM_EEPROM_PAGE_LEN, "IVM_Functions", 12, 0);
+       ivm_get_value (buf, CONFIG_SYS_IVM_EEPROM_PAGE_LEN, "IVM_Functions", 12, 0);
 
        GET_STRING("IVM_Symbol", IVM_POS_SYMBOL_ONLY, 8)
        GET_STRING("IVM_DeviceName", IVM_POS_SHORT_TEXT, 64)
@@ -283,9 +283,9 @@ int ivm_analyze_eeprom (unsigned char *buf, int len)
        GET_STRING("IVM_CustomerID", IVM_POS_CUSTOMER_ID, 32)
        GET_STRING("IVM_CustomerProductID", IVM_POS_CUSTOMER_PROD_ID, 32)
 
-       if (ivm_check_crc (&buf[CFG_IVM_EEPROM_PAGE_LEN * 2], 2) != 0)
+       if (ivm_check_crc (&buf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN * 2], 2) != 0)
                return -2;
-       ivm_analyze_block2 (&buf[CFG_IVM_EEPROM_PAGE_LEN * 2], CFG_IVM_EEPROM_PAGE_LEN);
+       ivm_analyze_block2 (&buf[CONFIG_SYS_IVM_EEPROM_PAGE_LEN * 2], CONFIG_SYS_IVM_EEPROM_PAGE_LEN);
 
        return 0;
 }
@@ -293,13 +293,13 @@ int ivm_analyze_eeprom (unsigned char *buf, int len)
 int ivm_read_eeprom (void)
 {
        I2C_MUX_DEVICE *dev = NULL;
-       uchar i2c_buffer[CFG_IVM_EEPROM_MAX_LEN];
+       uchar i2c_buffer[CONFIG_SYS_IVM_EEPROM_MAX_LEN];
        uchar   *buf;
-       unsigned dev_addr = CFG_IVM_EEPROM_ADR;
+       unsigned dev_addr = CONFIG_SYS_IVM_EEPROM_ADR;
 
        /* First init the Bus, select the Bus */
-#if defined(CFG_I2C_IVM_BUS)
-       dev = i2c_mux_ident_muxstring ((uchar *)CFG_I2C_IVM_BUS);
+#if defined(CONFIG_SYS_I2C_IVM_BUS)
+       dev = i2c_mux_ident_muxstring ((uchar *)CONFIG_SYS_I2C_IVM_BUS);
 #else
        buf = (unsigned char *) getenv ("EEprom_ivm");
        if (buf != NULL)
@@ -315,24 +315,24 @@ int ivm_read_eeprom (void)
        if (buf != NULL)
                dev_addr = simple_strtoul ((char *)buf, NULL, 16);
 
-       if (eeprom_read (dev_addr, 0, i2c_buffer, CFG_IVM_EEPROM_MAX_LEN) != 0) {
+       if (eeprom_read (dev_addr, 0, i2c_buffer, CONFIG_SYS_IVM_EEPROM_MAX_LEN) != 0) {
                printf ("Error reading EEprom\n");
                return -2;
        }
 
-       return ivm_analyze_eeprom (i2c_buffer, CFG_IVM_EEPROM_MAX_LEN);
+       return ivm_analyze_eeprom (i2c_buffer, CONFIG_SYS_IVM_EEPROM_MAX_LEN);
 }
 
-#if defined(CFG_I2C_INIT_BOARD)
+#if defined(CONFIG_SYS_I2C_INIT_BOARD)
 #define DELAY_ABORT_SEQ                62
-#define DELAY_HALF_PERIOD      (500 / (CFG_I2C_SPEED / 1000))
+#define DELAY_HALF_PERIOD      (500 / (CONFIG_SYS_I2C_SPEED / 1000))
 
 #if defined(CONFIG_MGCOGE)
 #define SDA_MASK       0x00010000
 #define SCL_MASK       0x00020000
 static void set_pin (int state, unsigned long mask)
 {
-       volatile ioport_t *iop = ioport_addr ((immap_t *)CFG_IMMR, 3);
+       volatile ioport_t *iop = ioport_addr ((immap_t *)CONFIG_SYS_IMMR, 3);
 
        if (state)
                iop->pdat |= (mask);
@@ -344,7 +344,7 @@ static void set_pin (int state, unsigned long mask)
 
 static int get_pin (unsigned long mask)
 {
-       volatile ioport_t *iop = ioport_addr ((immap_t *)CFG_IMMR, 3);
+       volatile ioport_t *iop = ioport_addr ((immap_t *)CONFIG_SYS_IMMR, 3);
 
        iop->pdir &= ~(mask);
        return (0 != (iop->pdat & (mask)));
@@ -373,7 +373,7 @@ static int get_scl (void)
 #if defined(CONFIG_HARD_I2C)
 static void setports (int gpio)
 {
-       volatile ioport_t *iop = ioport_addr ((immap_t *)CFG_IMMR, 3);
+       volatile ioport_t *iop = ioport_addr ((immap_t *)CONFIG_SYS_IMMR, 3);
 
        if (gpio) {
                iop->ppar &= ~(SDA_MASK | SCL_MASK);
@@ -474,7 +474,7 @@ static int i2c_make_abort (void)
 void i2c_init_board(void)
 {
 #if defined(CONFIG_HARD_I2C)
-       volatile immap_t *immap = (immap_t *)CFG_IMMR ;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR ;
        volatile i2c8260_t *i2c = (i2c8260_t *)&immap->im_i2c;
 
        /* disable I2C controller first, otherwhise it thinks we want to    */
index 31703ab14f6c88740de3fb7fd4bbf246d48cc88e..7d4d9e666e12c2545320cb1a9aa914c0f8a0f0d0 100644 (file)
@@ -238,7 +238,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -249,7 +249,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -262,20 +262,20 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
        long psize;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       psize = try_init (memctl, CFG_PSDMR, CFG_OR1,
-                                                 (uchar *) CFG_SDRAM_BASE);
-#endif /* CFG_RAMBOOT */
+       psize = try_init (memctl, CONFIG_SYS_PSDMR, CONFIG_SYS_OR1,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -295,8 +295,8 @@ int checkboard(void)
 int board_early_init_r (void)
 {
        /* setup the UPIOx */
-       *(char *)(CFG_PIGGY_BASE + 0x02) = 0xc0;
-       *(char *)(CFG_PIGGY_BASE + 0x03) = 0x15;
+       *(char *)(CONFIG_SYS_PIGGY_BASE + 0x02) = 0xc0;
+       *(char *)(CONFIG_SYS_PIGGY_BASE + 0x03) = 0x15;
        return 0;
 }
 
@@ -332,12 +332,12 @@ void ft_blob_update (void *blob, bd_t *bd)
                        "err:%s\n", fdt_strerror (nodeoffset));
        }
        /* update Flash addr, size */
-       flash_data[2] = cpu_to_be32 (CFG_FLASH_BASE);
-       flash_data[3] = cpu_to_be32 (CFG_FLASH_SIZE);
+       flash_data[2] = cpu_to_be32 (CONFIG_SYS_FLASH_BASE);
+       flash_data[3] = cpu_to_be32 (CONFIG_SYS_FLASH_SIZE);
        flash_data[4] = cpu_to_be32 (1);
        flash_data[5] = cpu_to_be32 (0);
-       flash_data[6] = cpu_to_be32 (CFG_FLASH_BASE_1);
-       flash_data[7] = cpu_to_be32 (CFG_FLASH_SIZE_1);
+       flash_data[6] = cpu_to_be32 (CONFIG_SYS_FLASH_BASE_1);
+       flash_data[7] = cpu_to_be32 (CONFIG_SYS_FLASH_SIZE_1);
        nodeoffset = fdt_path_offset (blob, "/localbus");
        if (nodeoffset >= 0) {
                ret = fdt_setprop (blob, nodeoffset, "ranges", flash_data,
index ecc8d75cdc34ce315cecbdfe2c6ded6e79faa71c..912e1772012652190b28bc7bf99d84d004914881 100644 (file)
@@ -70,7 +70,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
 
@@ -83,7 +83,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /*
         * The following value is used as an address (i.e. opcode) for
@@ -98,17 +98,17 @@ phys_size_t initdram (int board_type)
         *       |  +----------- Operating Mode = Standard
         *       +-------------- Write Burst Mode = Programmed Burst Length
         */
-       memctl->memc_mar = CFG_MAR;
+       memctl->memc_mar = CONFIG_SYS_MAR;
 
        /*
         * Map controller banks 1 to the SDRAM banks 1 at
         * preliminary addresses - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mbmr = CFG_MBMR & (~(MBMR_PTBE));  /* no refresh yet */
+       memctl->memc_mbmr = CONFIG_SYS_MBMR & (~(MBMR_PTBE));   /* no refresh yet */
 
        udelay (200);
 
@@ -142,8 +142,8 @@ phys_size_t initdram (int board_type)
 int board_early_init_r(void)
 {
        /* setup the UPIOx */
-       *(char *)(CFG_PIGGY_BASE + 0x02) = 0xc0;
-       *(char *)(CFG_PIGGY_BASE + 0x03) = 0x35;
+       *(char *)(CONFIG_SYS_PIGGY_BASE + 0x02) = 0xc0;
+       *(char *)(CONFIG_SYS_PIGGY_BASE + 0x03) = 0x35;
        return 0;
 }
 
index fa8374f17f77c0e3f35ed95ee2863b4c34492f51..73180dbd80b0b806fe5863a5f83ce3430cae7d9a 100644 (file)
@@ -35,7 +35,7 @@ PLATFORM_CPPFLAGS += -fno-schedule-insns -fno-schedule-insns2
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8CFF0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8CFF0000
 endif
 
 ifeq ($(perm),1)
index bf8b2c808b69833edd887c693c49ae0f20328e3e..ea43a1f89865611c7dc2e53c702ec905cfddfec7 100644 (file)
@@ -50,27 +50,27 @@ tlbtab:
         * generated dynamically in the SPD DDR2 detection routine.
         */
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CFG_INIT_RAM_ADDR, SZ_64K, CFG_INIT_RAM_ADDR, 0,
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0,
                  AC_R|AC_W|AC_X|SA_G )
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry( CFG_PCI_MEMBASE + 0x00000000, SZ_256M,
-                 CFG_PCI_MEMBASE + 0x00000000, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x00000000, SZ_256M,
+                 CONFIG_SYS_PCI_MEMBASE + 0x00000000, 1, AC_R|AC_W|SA_G|SA_I )
 
-       tlbentry( CFG_PCI_MEMBASE + 0x10000000, SZ_256M,
-                 CFG_PCI_MEMBASE + 0x10000000, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x10000000, SZ_256M,
+                 CONFIG_SYS_PCI_MEMBASE + 0x10000000, 1, AC_R|AC_W|SA_G|SA_I )
 
-       tlbentry( CFG_PCI_MEMBASE + 0x20000000, SZ_256M,
-                 CFG_PCI_MEMBASE + 0x20000000, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x20000000, SZ_256M,
+                 CONFIG_SYS_PCI_MEMBASE + 0x20000000, 1, AC_R|AC_W|SA_G|SA_I )
 
-       tlbentry( CFG_PCI_MEMBASE + 0x30000000, SZ_256M,
-                 CFG_PCI_MEMBASE + 0x30000000, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE + 0x30000000, SZ_256M,
+                 CONFIG_SYS_PCI_MEMBASE + 0x30000000, 1, AC_R|AC_W|SA_G|SA_I )
 
        /* TLB-entry for EBC */
-       tlbentry( CFG_CPLD_BASE, SZ_1K, CFG_CPLD_BASE, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CPLD_BASE, SZ_1K, CONFIG_SYS_CPLD_BASE, 1, AC_R|AC_W|SA_G|SA_I )
 
        /* TLB-entry for Internal Registers & OCM */
        /* I wonder why this must be executable -- lrj@acm.org 2007-10-08 */
index 8787e231ec9a74a594e32a99124ecb4c01290c35..5ad75f74d2a3229deb5186429a23db7c046bbbd1 100644 (file)
@@ -38,7 +38,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 ulong flash_get_size(ulong base, int banknum);
 
@@ -46,11 +46,11 @@ ulong flash_get_size(ulong base, int banknum);
 void korat_buzzer(int const on)
 {
        if (on) {
-               out_8((u8 *) CFG_CPLD_BASE + 0x05,
-                     in_8((u8 *) CFG_CPLD_BASE + 0x05) | 0x80);
+               out_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x05,
+                     in_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x05) | 0x80);
        } else {
-               out_8((u8 *) CFG_CPLD_BASE + 0x05,
-                     in_8((u8 *) CFG_CPLD_BASE + 0x05) & ~0x80);
+               out_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x05,
+                     in_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x05) & ~0x80);
        }
 }
 #endif
@@ -66,16 +66,16 @@ int board_early_init_f(void)
 
        extern void korat_branch_absolute(uint32_t addr);
 
-       for (mscount = 0;  mscount < CFG_KORAT_MAN_RESET_MS; ++mscount) {
+       for (mscount = 0;  mscount < CONFIG_SYS_KORAT_MAN_RESET_MS; ++mscount) {
                udelay(1000);
-               if (gpio_read_in_bit(CFG_GPIO_RESET_PRESSED_)) {
+               if (gpio_read_in_bit(CONFIG_SYS_GPIO_RESET_PRESSED_)) {
                        /* This call does not return. */
                        korat_branch_absolute(
-                               CFG_FLASH1_TOP - 2 * CONFIG_ENV_SECT_SIZE - 4);
+                               CONFIG_SYS_FLASH1_TOP - 2 * CONFIG_ENV_SECT_SIZE - 4);
                }
        }
        korat_buzzer(1);
-       while (!gpio_read_in_bit(CFG_GPIO_RESET_PRESSED_))
+       while (!gpio_read_in_bit(CONFIG_SYS_GPIO_RESET_PRESSED_))
                udelay(1000);
 
        korat_buzzer(0);
@@ -115,33 +115,33 @@ int board_early_init_f(void)
         * Take sim card reader and CF controller out of reset.  Also enable PHY
         * auto-detect until board-specific PHY resets are available.
         */
-       out_8((u8 *) CFG_CPLD_BASE + 0x02, 0xC0);
+       out_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x02, 0xC0);
 
        /* Configure the two Ethernet PHYs.  For each PHY, configure for fiber
         * if the SFP module is present, and for copper if it is not present.
         */
        for (eth = 0; eth < 2; ++eth) {
-               if (gpio_read_in_bit(CFG_GPIO_SFP0_PRESENT_ + eth)) {
+               if (gpio_read_in_bit(CONFIG_SYS_GPIO_SFP0_PRESENT_ + eth)) {
                        /* SFP module not present: configure PHY for copper. */
                        /* Set PHY to autonegotate 10 MB, 100MB, or 1 GB */
-                       out_8((u8 *) CFG_CPLD_BASE + 0x03,
-                             in_8((u8 *) CFG_CPLD_BASE + 0x03) |
+                       out_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x03,
+                             in_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x03) |
                              0x06 << (4 * eth));
                } else {
                        /* SFP module present: configure PHY for fiber and
                           enable output */
-                       gpio_write_bit(CFG_GPIO_PHY0_FIBER_SEL + eth, 1);
-                       gpio_write_bit(CFG_GPIO_SFP0_TX_EN_ + eth, 0);
+                       gpio_write_bit(CONFIG_SYS_GPIO_PHY0_FIBER_SEL + eth, 1);
+                       gpio_write_bit(CONFIG_SYS_GPIO_SFP0_TX_EN_ + eth, 0);
                }
        }
        /* enable Ethernet: set GPIO45 and GPIO46 to 1 */
-       gpio_write_bit(CFG_GPIO_PHY0_EN, 1);
-       gpio_write_bit(CFG_GPIO_PHY1_EN, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY0_EN, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY1_EN, 1);
 
        /* Wait 1 ms, then enable Fiber signal detect to PHYs. */
        udelay(1000);
-       out_8((u8 *) CFG_CPLD_BASE + 0x03,
-             in_8((u8 *) CFG_CPLD_BASE + 0x03) | 0x88);
+       out_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x03,
+             in_8((u8 *) CONFIG_SYS_CPLD_BASE + 0x03) | 0x88);
 
        /* select Ethernet (and optionally IIC1) pins */
        mfsdr(SDR0_PFC1, sdr0_pfc1);
@@ -176,8 +176,8 @@ ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
        if (1 != banknum)
                return 0;
 
-       info->size              = CFG_FLASH0_SIZE;
-       info->sector_count      = CFG_FLASH0_SIZE / 0x20000;
+       info->size              = CONFIG_SYS_FLASH0_SIZE;
+       info->sector_count      = CONFIG_SYS_FLASH0_SIZE / 0x20000;
        info->flash_id          = 0x01000000;
        info->portwidth         = 2;
        info->chipwidth         = 2;
@@ -192,12 +192,12 @@ ulong board_flash_get_legacy (ulong base, int banknum, flash_info_t * info)
        info->manufacturer_id   = 1;
        info->device_id         = 0x007E;
 
-#if CFG_FLASH0_SIZE == 0x01000000
+#if CONFIG_SYS_FLASH0_SIZE == 0x01000000
        info->device_id2        = 0x2101;
-#elif CFG_FLASH0_SIZE == 0x04000000
+#elif CONFIG_SYS_FLASH0_SIZE == 0x04000000
        info->device_id2        = 0x2301;
 #else
-#error Unable to set device_id2 for current CFG_FLASH0_SIZE
+#error Unable to set device_id2 for current CONFIG_SYS_FLASH0_SIZE
 #endif
 
        info->ext_addr          = 0x0040;
@@ -349,13 +349,13 @@ int misc_init_r(void)
        unsigned long usb2d0cr = 0;
        unsigned long usb2phy0cr, usb2h0cr = 0;
        unsigned long sdr0_pfc1;
-       uint32_t const flash1_size = gd->bd->bi_flashsize - CFG_FLASH0_SIZE;
+       uint32_t const flash1_size = gd->bd->bi_flashsize - CONFIG_SYS_FLASH0_SIZE;
        char const *const act = getenv("usbact");
 
        /*
         * Re-do FLASH1 sizing and adjust flash start and offset.
         */
-       gd->bd->bi_flashstart = CFG_FLASH1_TOP - flash1_size;
+       gd->bd->bi_flashstart = CONFIG_SYS_FLASH1_TOP - flash1_size;
        gd->bd->bi_flashoffset = 0;
 
        mtdcr(ebccfga, pb1cr);
@@ -375,23 +375,23 @@ int misc_init_r(void)
         * environment
         */
        gd->bd->bi_flashoffset =
-               CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - CFG_FLASH1_ADDR;
+               CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - CONFIG_SYS_FLASH1_ADDR;
 
        mtdcr(ebccfga, pb1cr);
        pbcr = mfdcr(ebccfgd);
-       size_val = ffs(gd->bd->bi_flashsize - CFG_FLASH0_SIZE) - 21;
+       size_val = ffs(gd->bd->bi_flashsize - CONFIG_SYS_FLASH0_SIZE) - 21;
        pbcr = (pbcr & 0x0001ffff) | gd->bd->bi_flashstart | (size_val << 17);
        mtdcr(ebccfga, pb1cr);
        mtdcr(ebccfgd, pbcr);
 
        /* Monitor protection ON by default */
 #if defined(CONFIG_KORAT_PERMANENT)
-       (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                           CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+       (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                           CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                            flash_info + 1);
 #else
-       (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                           CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+       (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                           CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                            flash_info);
 #endif
        /* Env protection ON by default */
@@ -536,7 +536,7 @@ int misc_init_r(void)
 
        set_serial_number();
        set_mac_addresses();
-       gpio_write_bit(CFG_GPIO_ATMEGA_RESET_, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_ATMEGA_RESET_, 1);
 
        return 0;
 }
@@ -544,20 +544,20 @@ int misc_init_r(void)
 int checkboard(void)
 {
        char const *const s = getenv("serial#");
-       u8 const rev = in_8((u8 *) CFG_CPLD_BASE + 0);
+       u8 const rev = in_8((u8 *) CONFIG_SYS_CPLD_BASE + 0);
 
        printf("Board: Korat, Rev. %X", rev);
        if (s)
                printf(", serial# %s", s);
 
        printf(".\n       Ethernet PHY 0: ");
-       if (gpio_read_out_bit(CFG_GPIO_PHY0_FIBER_SEL))
+       if (gpio_read_out_bit(CONFIG_SYS_GPIO_PHY0_FIBER_SEL))
                printf("fiber");
        else
                printf("copper");
 
        printf(", PHY 1: ");
-       if (gpio_read_out_bit(CFG_GPIO_PHY1_FIBER_SEL))
+       if (gpio_read_out_bit(CONFIG_SYS_GPIO_PHY1_FIBER_SEL))
                printf("fiber");
        else
                printf("copper");
@@ -644,7 +644,7 @@ int pci_pre_init(struct pci_controller *hose)
  * inbound map (PIM). But the bootstrap config choices are limited and
  * may not be sufficient for a given board.
  */
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*
@@ -660,9 +660,9 @@ void pci_target_init(struct pci_controller *hose)
         */
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute */
                                                /* - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
        out32r(PCIX0_PMM0PCILA,
-              CFG_PCI_MEMBASE);                /* PMM0 PCI Low Address */
+              CONFIG_SYS_PCI_MEMBASE);         /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xE0000001);       /* 512M + No prefetching, */
                                                /* and enable region */
@@ -670,9 +670,9 @@ void pci_target_init(struct pci_controller *hose)
        out32r(PCIX0_PMM1MA, 0x00000000);       /* PMM0 Mask/Attribute */
                                                /* - disabled b4 setting */
        out32r(PCIX0_PMM1LA,
-              CFG_PCI_MEMBASE + 0x20000000);   /* PMM0 Local Address */
+              CONFIG_SYS_PCI_MEMBASE + 0x20000000);    /* PMM0 Local Address */
        out32r(PCIX0_PMM1PCILA,
-              CFG_PCI_MEMBASE + 0x20000000);   /* PMM0 PCI Low Address */
+              CONFIG_SYS_PCI_MEMBASE + 0x20000000);    /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM1MA, 0xE0000001);       /* 512M + No prefetching, */
                                                /* and enable region */
@@ -688,8 +688,8 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's subsystem id/vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
-       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_ID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_ID);
 
        /* Configure command register as bus master */
        pci_write_config_word(0, PCI_COMMAND, PCI_COMMAND_MASTER);
@@ -708,9 +708,9 @@ void pci_target_init(struct pci_controller *hose)
         */
        pci_write_config_dword(PCI_BDF(0x0, 0xC, 0x0), 0xE4, 0x00000020);
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -771,7 +771,7 @@ void ft_board_setup(void *blob, bd_t *bd)
        val[0] = 1;                             /* chip select number */
        val[1] = 0;                             /* always 0 */
        val[2] = gd->bd->bi_flashstart;
-       val[3] = gd->bd->bi_flashsize - CFG_FLASH0_SIZE;
+       val[3] = gd->bd->bi_flashsize - CONFIG_SYS_FLASH0_SIZE;
        rc = fdt_find_and_setprop(blob, "/plb/opb/ebc", "ranges",
                                  val, sizeof(val), 1);
        if (rc)
index b20fb1c0a282c5499f6a8d580991a6acb7a943f6..3cfec834e2dbcd31261163b96a69446f325a435d 100644 (file)
@@ -137,7 +137,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index 7688ce2c4162dd7b195d79e0b92d2f31d15b000c..134a9d591d14927514ea15c4062790c49e047cbc 100644 (file)
 #include <mpc8xx.h>
 
 #ifndef        CONFIG_ENV_ADDR
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #endif
 
 #define CONFIG_FLASH_16BIT
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -43,13 +43,13 @@ static int write_word (flash_info_t *info, ulong dest, ulong data);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -64,17 +64,17 @@ unsigned long flash_init (void)
 
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V | BR_PS_16;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V | BR_PS_16;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -325,7 +325,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 #else
                        while ((sect_addr[0] & 0x00800080) != 0x00800080) {
 #endif
-                               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        return 1;
                                }
@@ -467,7 +467,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_short *)dest) & 0x0080) != (high_data & 0x0080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
@@ -507,7 +507,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
 #endif
 
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index d018e3cc5d73935dc6195f7640566cee53519b2f..fec5407bc742bf3f8edb4d38730b8e82556026b1 100644 (file)
@@ -27,7 +27,7 @@
 
 int misc_init_f (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile sysconf8xx_t *siu = &immap->im_siu_conf;
 
        while (siu->sc_sipend & 0x20000000) {
@@ -47,7 +47,7 @@ int misc_init_f (void)
 #ifdef CONFIG_IDE_LED
 void ide_led (uchar led, uchar status)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /* We have one led for both pcmcia slots */
        if (status) {           /* led on */
@@ -60,7 +60,7 @@ void ide_led (uchar led, uchar status)
 
 void poweron_key (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        immap->im_ioport.iop_pcpar &= ~(PC_SWITCH1);
        immap->im_ioport.iop_pcdir &= ~(PC_SWITCH1);
index b7b74998578f3a992781e8c8be45f7f2ec39c917..741e9a5369c99d10761e7bf22a620c332bb69d6d 100644 (file)
@@ -33,8 +33,8 @@
  * The KUP Hardware Information Block is defined as
  * follows:
  * - located in first flash bank
- * - starts at offset CFG_HWINFO_OFFSET
- * - size CFG_HWINFO_SIZE
+ * - starts at offset CONFIG_SYS_HWINFO_OFFSET
+ * - size CONFIG_SYS_HWINFO_SIZE
  *
  * Internal structure:
  * - sequence of ASCII character lines
@@ -55,15 +55,15 @@ void load_sernum_ethaddr (void)
 {
        unsigned char *hwi;
        char *var;
-       unsigned char hwi_stack[CFG_HWINFO_SIZE];
+       unsigned char hwi_stack[CONFIG_SYS_HWINFO_SIZE];
        char *p;
 
-       hwi = (unsigned char *) (CFG_FLASH_BASE + CFG_HWINFO_OFFSET);
-       if (*((unsigned long *) hwi) != (unsigned long) CFG_HWINFO_MAGIC) {
+       hwi = (unsigned char *) (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_HWINFO_OFFSET);
+       if (*((unsigned long *) hwi) != (unsigned long) CONFIG_SYS_HWINFO_MAGIC) {
                printf ("HardwareInfo not found!\n");
                return;
        }
-       memcpy (hwi_stack, hwi, CFG_HWINFO_SIZE);
+       memcpy (hwi_stack, hwi, CONFIG_SYS_HWINFO_SIZE);
 
        /*
         ** ethaddr
@@ -72,7 +72,7 @@ void load_sernum_ethaddr (void)
        if (var) {
                var += sizeof (ETHADDR_TOKEN) - 1;
                p = strchr (var, '\r');
-               if ((unsigned char *)p < hwi + CFG_HWINFO_SIZE) {
+               if ((unsigned char *)p < hwi + CONFIG_SYS_HWINFO_SIZE) {
                        *p = '\0';
                        setenv ("ethaddr", var);
                        *p = '\r';
@@ -85,7 +85,7 @@ void load_sernum_ethaddr (void)
        if (var) {
                var += sizeof (LCD_TOKEN) - 1;
                p = strchr (var, '\r');
-               if ((unsigned char *)p < hwi + CFG_HWINFO_SIZE) {
+               if ((unsigned char *)p < hwi + CONFIG_SYS_HWINFO_SIZE) {
                        *p = '\0';
                        setenv ("lcd", var);
                        *p = '\r';
index 8f0cf17b987abe7db3178262ffcefa14648ec5a8..ce6b1861db6406ad0cb503fa7eb7d01eb9ed3af3 100644 (file)
@@ -30,10 +30,10 @@ int pcmcia_hardware_enable(int slot)
 
        udelay(10000);
 
-       immap = (immap_t *)CFG_IMMR;
-       sysp  = (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       sysp  = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /*
        * Configure SIUMCR to enable PCMCIA port B
@@ -125,9 +125,9 @@ int pcmcia_hardware_disable(int slot)
 
        debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /* remove all power */
        if (slot)
@@ -162,9 +162,9 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
        if (!slot) /* Slot A is not configurable */
                return 0;
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /*
        * Disable PCMCIA buffers (isolate the interface)
index 66d618072d69a9e170e46d4d9fa240390bef10cc..df3ffb4d71cec2e2b62f464c8cc1034c673e1369 100644 (file)
@@ -119,7 +119,7 @@ const uint sdram_table[] = {
 
 int checkboard (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        uchar *latch,rev,mod;
 
        /*
@@ -139,7 +139,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0 = 0;
        long int size_b1 = 0;
@@ -154,7 +154,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_mar = 0x00000088;
 
@@ -163,14 +163,14 @@ phys_size_t initdram (int board_type)
         * preliminary addresses - these have to be modified after the
         * SDRAM size has been determined.
         */
-/*     memctl->memc_or1 = CFG_OR1_PRELIM;      */
-/*     memctl->memc_br1 = CFG_BR1_PRELIM;      */
+/*     memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;       */
+/*     memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;       */
 
-/*     memctl->memc_or2 = CFG_OR2_PRELIM;      */
-/*     memctl->memc_br2 = CFG_BR2_PRELIM;      */
+/*     memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;       */
+/*     memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;       */
 
 
-       memctl->memc_mamr = CFG_MAMR & (~(MAMR_PTAE));  /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR & (~(MAMR_PTAE));   /* no refresh yet */
 
        udelay (200);
 
@@ -204,7 +204,7 @@ phys_size_t initdram (int board_type)
        size_b0 = 0x00800000;
        size_b1 = 0x00800000;
        size_b2 = 0x00800000;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
        udelay (1000);
        memctl->memc_or1 = 0xFF800A00;
        memctl->memc_br1 = 0x00000081;
@@ -216,7 +216,7 @@ phys_size_t initdram (int board_type)
        size_b0 = 0x01000000;
        size_b1 = 0x01000000;
        size_b2 = 0x01000000;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
        udelay (1000);
        memctl->memc_or1 = 0xFF000A00;
        memctl->memc_br1 = 0x00000081;
@@ -236,7 +236,7 @@ phys_size_t initdram (int board_type)
 int misc_init_r (void)
 {
 #ifdef CONFIG_STATUS_LED
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 #endif
 #ifdef CONFIG_KUP4K_LOGO
        bd_t *bd = gd->bd;
@@ -263,7 +263,7 @@ void lcd_logo (bd_t * bd)
        FB_INFO_S1D13xxx fb_info;
        S1D_INDEX s1dReg;
        S1D_VALUE s1dValue;
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl;
        ushort i;
        uchar *fb;
index f07ef187030db9086f55137158a521281d9468b1..c5b742dd7289438951efb8a5cd81e15f9328fe95 100644 (file)
@@ -114,7 +114,7 @@ const uint sdram_table[] = {
 
 int checkboard (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        volatile uchar *latch;
        uchar rev, mod;
@@ -136,7 +136,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0 = 0;
        long int size_b1 = 0;
@@ -151,7 +151,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_mar = 0x00000088;
 
@@ -160,13 +160,13 @@ phys_size_t initdram (int board_type)
         * preliminary addresses - these have to be modified after the
         * SDRAM size has been determined.
         */
-/*     memctl->memc_or1 = CFG_OR1_PRELIM;      */
-/*     memctl->memc_br1 = CFG_BR1_PRELIM;      */
+/*     memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;       */
+/*     memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;       */
 
-/*     memctl->memc_or2 = CFG_OR2_PRELIM;      */
-/*     memctl->memc_br2 = CFG_BR2_PRELIM;      */
+/*     memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;       */
+/*     memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;       */
 
-       memctl->memc_mamr = CFG_MAMR & (~(MAMR_PTAE));  /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR & (~(MAMR_PTAE));   /* no refresh yet */
 
        udelay (200);
 
@@ -207,7 +207,7 @@ phys_size_t initdram (int board_type)
        size_b1 = 0x00800000;
        size_b2 = 0x00800000;
        size_b3 = 0x00800000;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
        udelay (1000);
        memctl->memc_or1 = 0xFF800A00;
        memctl->memc_br1 = 0x00000081;
@@ -222,7 +222,7 @@ phys_size_t initdram (int board_type)
        size_b1 = 0x01000000;
        size_b2 = 0x01000000;
        size_b3 = 0x01000000;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
        udelay (1000);
        memctl->memc_or1 = 0xFF000A00;
        memctl->memc_br1 = 0x00000081;
@@ -251,7 +251,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        volatile long int *addr;
        ulong cnt, val;
@@ -294,7 +294,7 @@ static long int dram_size (long int mamr_value, long int *base,
 
 int misc_init_r (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #ifdef CONFIG_IDE_LED
        /* Configure PA8 as output port */
index e08da33b3599f51883ae6f576af1a34aa88319fd..97ed0542bf40d39ea1c3289ba3cde504c219474a 100644 (file)
@@ -31,7 +31,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -51,7 +51,7 @@
 #endif
 /*---------------------------------------------------------------------*/
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -65,13 +65,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -116,25 +116,25 @@ unsigned long flash_init (void)
                memctl->memc_br1, memctl->memc_or1);
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | \
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | \
                                BR_MS_GPCM | BR_PS_32 | BR_V;
 
        DEBUGF("## BR0: 0x%08x    OR0: 0x%08x\n",
                memctl->memc_br0, memctl->memc_or0);
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size_b0;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -147,26 +147,26 @@ unsigned long flash_init (void)
 #endif
 
        if (size_b1) {
-               memctl->memc_or5 = CFG_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
-               memctl->memc_br5 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_or5 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
+               memctl->memc_br5 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                    BR_MS_GPCM | BR_PS_32 | BR_V;
 
                DEBUGF("## BR5: 0x%08x    OR5: 0x%08x\n",
                        memctl->memc_br5, memctl->memc_or5);
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                          &flash_info[1]);
 
                flash_info[1].size = size_b1;
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
 
@@ -491,7 +491,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long*)(info->start[l_sect]);
        while ((addr[0] & 0x00800080) != 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -614,7 +614,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 46f4da9e66122cb7a0434dfd184c5967eea44cb4..6d3486c48a0a23380dacaa0637487c14579e8baa 100644 (file)
@@ -111,7 +111,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0;
        int i;
@@ -122,7 +122,7 @@ phys_size_t initdram (int board_type)
        upmconfig (UPMA, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
 
-       memctl->memc_mptpr = CFG_MPTPR_1BK_8K /* XXX CFG_MPTPR XXX */ ;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_8K /* XXX CONFIG_SYS_MPTPR XXX */ ;
 
        /* burst length=4, burst type=sequential, CAS latency=2 */
        memctl->memc_mar = 0x00000088;
@@ -130,11 +130,11 @@ phys_size_t initdram (int board_type)
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
        /* initialize memory address register */
-       memctl->memc_mamr = CFG_MAMR_8COL;      /* refresh not enabled yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;       /* refresh not enabled yet */
 
        /* mode initialization (offset 5) */
        udelay (200);           /* 0x80006105 */
@@ -170,17 +170,17 @@ phys_size_t initdram (int board_type)
        /*
         * Check Bank 0 Memory Size for re-configuration
         */
-       size_b0 = dram_size (CFG_MAMR_8COL,
+       size_b0 = dram_size (CONFIG_SYS_MAMR_8COL,
                             (long *) SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
 
-       memctl->memc_mamr = CFG_MAMR_8COL | MAMR_PTAE;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL | MAMR_PTAE;
 
        /*
         * Final mapping:
         */
 
-       memctl->memc_or3 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br3 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or3 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br3 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
        udelay (1000);
 
        return (size_b0);
@@ -199,7 +199,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index 4326d0738e5fee226e8bf480a86fdff1a9e121f4..29a331eff790cce3d8026719e571940792a302d2 100644 (file)
@@ -41,7 +41,7 @@ extern u32 data_to_flash(u32);
 #define PUZZLE_FROM_FLASH(x)   data_from_flash((x))
 #define PUZZLE_TO_FLASH(x)     data_to_flash((x))
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 #define CMD_READ_ARRAY         0x00FF00FF
@@ -74,15 +74,15 @@ ulong flash_init(void)
     int i, j;
     ulong size = 0;
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
     {
        ulong flashbase = 0;
        flash_info[i].flash_id =
          (INTEL_MANUFACT & FLASH_VENDMASK) |
          (INTEL_ID_28F160F3B & FLASH_TYPEMASK);
        flash_info[i].size = FLASH_BANK_SIZE;
-       flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-       memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+       flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+       memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
        if (i == 0)
          flashbase = PHYS_FLASH_1;
        else
@@ -104,8 +104,8 @@ ulong flash_init(void)
     /* Protect monitor and environment sectors
      */
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_FLASH_BASE,
-                 CFG_FLASH_BASE + monitor_flash_len - 1,
+                 CONFIG_SYS_FLASH_BASE,
+                 CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                  &flash_info[0]);
 
     flash_protect(FLAG_PROTECT_SET,
@@ -305,7 +305,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
            do
            {
                /* check timeout */
-               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT)
+               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT)
                {
                    *addr = PUZZLE_TO_FLASH(CMD_SUSPEND);
                    result = BIT_TIMEOUT;
@@ -383,7 +383,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
     do
     {
        /* check timeout */
-       if (get_timer_masked() > CFG_FLASH_ERASE_TOUT)
+       if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT)
        {
            *addr = PUZZLE_TO_FLASH(CMD_SUSPEND);
            result = BIT_TIMEOUT;
index a689c6330ffb853b819c107670b16f0e53a348b4..fda1b913eb6750213f7ce1b8d716eb4e8641f604 100644 (file)
@@ -79,8 +79,8 @@ static char envbuffer[16];
 
 void init_AVR_DUART (void)
 {
-       NS16550_t AVR_port = (NS16550_t) CFG_NS16550_COM2;
-       int clock_divisor = CFG_NS16550_CLK / 16 / 9600;
+       NS16550_t AVR_port = (NS16550_t) CONFIG_SYS_NS16550_COM2;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / 9600;
 
        /*
         * AVR port init sequence taken from
@@ -105,12 +105,12 @@ void init_AVR_DUART (void)
 
 static inline int avr_tstc(void)
 {
-       return (NS16550_tstc((NS16550_t)CFG_NS16550_COM2));
+       return (NS16550_tstc((NS16550_t)CONFIG_SYS_NS16550_COM2));
 }
 
 static inline char avr_getc(void)
 {
-       return (NS16550_getc((NS16550_t)CFG_NS16550_COM2));
+       return (NS16550_getc((NS16550_t)CONFIG_SYS_NS16550_COM2));
 }
 
 static int push_timeout(char button_code)
index 2e5b5c83acdce0c8a69c2f7976f64cfbbb0ca237..9fd56ae23459aa70a1cf3a6e48395b1ef1a45bfb 100644 (file)
@@ -21,7 +21,7 @@
 
 #define mdelay(n)      udelay((n)*1000)
 
-#define AVR_PORT CFG_NS16550_COM2
+#define AVR_PORT CONFIG_SYS_NS16550_COM2
 
 /* 2005.5.10 BUFFALO add */
 /*--------------------------------------------------------------*/
index 02086a0032537d3b6b4232a5f6df67fb81d326c0..2c89d62f61498323ad6f3e4af234ca28c00ae0bc 100644 (file)
@@ -37,7 +37,7 @@
 #define IT8212_PCI_IdeBusSkewCONTROL   0x4c
 #define IT8212_PCI_IdeDrivingCURRENT   0x42
 
-extern ulong ide_bus_offset[CFG_IDE_MAXBUS];
+extern ulong ide_bus_offset[CONFIG_SYS_IDE_MAXBUS];
 extern struct pci_controller hose;
 
 int ide_preinit (void)
@@ -47,7 +47,7 @@ int ide_preinit (void)
        int l;
 
        status = 1;
-       for (l = 0; l < CFG_IDE_MAXBUS; l++) {
+       for (l = 0; l < CONFIG_SYS_IDE_MAXBUS; l++) {
                ide_bus_offset[l] = -ATA_STATUS;
        }
        devbusfn = pci_find_device(PCI_VENDOR_ID_CMD, PCI_DEVICE_ID_SII_680, 0);
index afb96ae6ce6804c1c7cd887b2be853694790e3cb..c0d43eb332882857d7ce22b5a08f06358112ab8a 100644 (file)
@@ -53,7 +53,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       return (get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE));
+       return (get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE));
 }
 
 /*
index 4d9c118729812568858f44c57c625ee3f2115e73..593943ffda86dff47b7994bb9975789745aa7e70 100644 (file)
@@ -28,7 +28,7 @@
 #define FLASH_BANK_SIZE 0x1000000
 #define MAIN_SECT_SIZE  0x20000                /* 2x64k = 128k per sector */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips  */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips   */
 
 /* NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it
  *        has nothing to do with the flash chip being 8-bit or 16-bit.
@@ -59,7 +59,7 @@ static int write_word_intel(flash_info_t *info, FPWV *dest, FPW data);
 static int write_word_amd(flash_info_t *info, FPWV *dest, FPW data);
 #define write_word(in, de, da)   write_word_amd(in, de, da)
 static void flash_get_offsets(ulong base, flash_info_t *info);
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 static void flash_sync_real_protect(flash_info_t *info);
 #endif
 
@@ -73,15 +73,15 @@ ulong flash_init(void)
     int i, j;
     ulong size = 0;
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
     {
        ulong flashbase = 0;
        flash_info[i].flash_id =
          (FLASH_MAN_AMD & FLASH_VENDMASK) |
          (FLASH_AM640U & FLASH_TYPEMASK);
        flash_info[i].size = FLASH_BANK_SIZE;
-       flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-       memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+       flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+       memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
        switch (i)
        {
           case 0:
@@ -104,8 +104,8 @@ ulong flash_init(void)
     /* Protect monitor and environment sectors
      */
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_FLASH_BASE,
-                 CFG_FLASH_BASE + _bss_start - _armboot_start,
+                 CONFIG_SYS_FLASH_BASE,
+                 CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start,
                  &flash_info[0]);
 
     flash_protect(FLAG_PROTECT_SET,
@@ -373,7 +373,7 @@ ulong flash_get_size (FPWV *addr, flash_info_t *info)
        return (info->size);
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 
@@ -510,7 +510,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while ((*addr & (FPW)0x00800080) != (FPW)0x00800080) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
 
                                if (intel) {
@@ -703,7 +703,7 @@ static int write_word_amd (flash_info_t *info, FPWV *dest, FPW data)
 
     /* data polling for D7 */
     while (res == 0 && (*dest & (FPW)0x00800080) != (data & (FPW)0x00800080)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            *dest = (FPW)0x00F000F0;    /* reset bank */
            res = 1;
        }
@@ -749,7 +749,7 @@ static int write_word_intel (flash_info_t *info, FPWV *dest, FPW data)
     start = get_timer (0);
 
     while (res == 0 && (*dest & (FPW)0x00800080) != (FPW)0x00800080) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            *dest = (FPW)0x00B000B0;    /* Suspend program      */
            res = 1;
        }
@@ -764,7 +764,7 @@ static int write_word_intel (flash_info_t *info, FPWV *dest, FPW data)
     return (res);
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 int flash_real_protect (flash_info_t * info, long sector, int prot)
index 897787bcf7a106ef786d672d51fddd1b7cb82e91..c57210a95f38b00474d8aaa23914c3ffcd0788ab 100644 (file)
@@ -77,17 +77,17 @@ void logodl_set_led(int led, int state)
 
        case 0:
                if (state==1) {
-                       CFG_LED_A_CR = CFG_LED_A_BIT;
+                       CONFIG_SYS_LED_A_CR = CONFIG_SYS_LED_A_BIT;
                } else if (state==0) {
-                       CFG_LED_A_SR = CFG_LED_A_BIT;
+                       CONFIG_SYS_LED_A_SR = CONFIG_SYS_LED_A_BIT;
                }
                break;
 
        case 1:
                if (state==1) {
-                       CFG_LED_B_CR = CFG_LED_B_BIT;
+                       CONFIG_SYS_LED_B_CR = CONFIG_SYS_LED_B_BIT;
                } else if (state==0) {
-                       CFG_LED_B_SR = CFG_LED_B_BIT;
+                       CONFIG_SYS_LED_B_SR = CONFIG_SYS_LED_B_BIT;
                }
                break;
        }
index 4c9f10ffbd65bbfb2cde18233b180d845093d749..9892430a1c769fbd57f29c4ec5fe91d996753770 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
    .macro CPWAIT reg
@@ -54,71 +54,71 @@ lowlevel_init:
        /* Set up GPIO pins first ----------------------------------------- */
 
        ldr             r0,     =GPSR0
-       ldr             r1,     =CFG_GPSR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR1
-       ldr             r1,     =CFG_GPSR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR2
-       ldr             r1,     =CFG_GPSR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR0
-       ldr             r1,     =CFG_GPCR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR1
-       ldr             r1,     =CFG_GPCR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR2
-       ldr             r1,     =CFG_GPCR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR0
-       ldr             r1,     =CFG_GPDR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR1
-       ldr             r1,     =CFG_GPDR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR2
-       ldr             r1,     =CFG_GPDR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_L
-       ldr             r1,     =CFG_GAFR0_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_U
-       ldr             r1,     =CFG_GAFR0_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_L
-       ldr             r1,     =CFG_GAFR1_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_U
-       ldr             r1,     =CFG_GAFR1_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_L
-       ldr             r1,     =CFG_GAFR2_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_U
-       ldr             r1,     =CFG_GAFR2_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_U_VAL
        str             r1,   [r0]
 
        ldr     r0,     =PSSR           /* enable GPIO pins */
-       ldr             r1,     =CFG_PSSR_VAL
+       ldr             r1,     =CONFIG_SYS_PSSR_VAL
        str             r1,   [r0]
 
 /*     ldr     r3,     =MSC1           /  low - bank 2 Lubbock Registers / SRAM */
-/*     ldr     r2,     =CFG_MSC1_VAL   /  high - bank 3 Ethernet Controller */
+/*     ldr     r2,     =CONFIG_SYS_MSC1_VAL    /  high - bank 3 Ethernet Controller */
 /*     str     r2,     [r3]            /  need to set MSC1 before trying to write to the HEX LEDs */
 /*     ldr     r2,     [r3]            /  need to read it back to make sure the value latches (see MSC section of manual) */
 /* */
@@ -168,17 +168,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]        /* read back to ensure      */
                                                /* that data latches        */
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
@@ -187,37 +187,37 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
        ldr     r2,     [r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
        ldr     r2,     [r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
        ldr     r2,     [r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
        ldr     r2,     [r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
        ldr     r2,     [r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
        ldr     r2,     [r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
        ldr     r2,     [r1, #MCIO1_OFFSET]
 
@@ -239,7 +239,7 @@ mem_init:
        /* Before accessing MDREFR we need a valid DRI field, so we set     */
        /* this to power on defaults + DRI field.                           */
 
-       ldr     r3,     =CFG_MDREFR_VAL
+       ldr     r3,     =CONFIG_SYS_MDREFR_VAL
        ldr     r2,     =0xFFF
        and     r3,     r3, r2
        ldr     r4,     =0x03ca4000
@@ -269,7 +269,7 @@ mem_init:
        /* Step 4a: assert MDREFR:K?RUN and configure                       */
        /*          MDREFR:K1DB2 and MDREFR:K2DB2 as desired.               */
 
-       ldr     r4,     =CFG_MDREFR_VAL
+       ldr     r4,     =CONFIG_SYS_MDREFR_VAL
        str     r4,     [r1, #MDREFR_OFFSET]    /* write back MDREFR        */
        ldr     r4,     [r1, #MDREFR_OFFSET]
 
@@ -292,7 +292,7 @@ mem_init:
        /* Step 4d: write MDCNFG with MDCNFG:DEx deasserted (set to 0), to  */
        /*          configure but not enable each SDRAM partition pair.     */
 
-       ldr     r4,     =CFG_MDCNFG_VAL
+       ldr     r4,     =CONFIG_SYS_MDCNFG_VAL
        bic     r4,     r4,     #(MDCNFG_DE0|MDCNFG_DE1)
 
        str     r4,     [r1, #MDCNFG_OFFSET]    /* write back MDCNFG        */
@@ -325,7 +325,7 @@ mem_init:
        /*          Jan 2003, Errata #116, page 30.                         */
 
 
-       ldr     r3,     =CFG_DRAM_BASE
+       ldr     r3,     =CONFIG_SYS_DRAM_BASE
        str     r2, [r3]
        str     r2, [r3]
        str     r2, [r3]
@@ -345,7 +345,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
 
index 449a768271cd6359f2185ebdc35fc6d1c9032d8d..a7e175d8edbcf3502322cf178bbb6eb98860cc02 100644 (file)
@@ -28,7 +28,7 @@
 #define SST_ADDR2 ((volatile ushort*)(SST_BASEADDR + (0x2AAA << 1)))
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 extern int lpc2292_copy_buffer_to_flash(flash_info_t *, ulong);
 extern int lpc2292_flash_erase(flash_info_t *, int, int);
index ec438073b288c4f1e2dcf18643321d4d1c75f7c8..e3558d2173a2179a8701518a045f2fdc79713043 100644 (file)
@@ -33,7 +33,7 @@
 #define FLASH_BANK_SIZE 0x1000000      /* 16MB (2 x 8 MB) */
 #define MAIN_SECT_SIZE  0x40000                /* 256KB (2 x 128kB) */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 #define CMD_READ_ARRAY         0x00FF00FF
@@ -66,17 +66,17 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                        (INTEL_MANUFACT     & FLASH_VENDMASK) |
                        (INTEL_ID_28F640J3A & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
-                       flashbase = CFG_FLASH_BASE;
+                       flashbase = CONFIG_SYS_FLASH_BASE;
                else
                        panic ("configured too many flash banks!\n");
                for (j = 0; j < flash_info[i].sector_count; j++) {
@@ -92,8 +92,8 @@ ulong flash_init (void)
         * Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -297,7 +297,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        /* wait until flash is ready */
                        do {
                                /* check timeout */
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = CMD_STATUS_RESET;
                                        result = BIT_TIMEOUT;
                                        break;
@@ -392,7 +392,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
        /* wait until flash is ready */
        do {
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        *addr = CMD_SUSPEND;
                        result = BIT_TIMEOUT;
                        break;
index 3ff19bc5e5c88a98ccb86487b7db4c4058d67ed9..a4b201e011fa84bfe2362d7eafec0b381a7f0647 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -85,8 +85,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -203,10 +203,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;             /* restore read mode */
@@ -276,7 +276,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW) 0x00D000D0;       /* erase confirm */
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -410,7 +410,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index 2a9bcbf494a069d86725a0df81a4570f0c68d280..db6f69d36ea3e7dacb2df067dd1a1a181bd3d093 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
    .macro CPWAIT reg
@@ -51,67 +51,67 @@ lowlevel_init:
        /* Set up GPIO pins first ----------------------------------------- */
 
        ldr             r0,     =GPSR0
-       ldr             r1,     =CFG_GPSR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR1
-       ldr             r1,     =CFG_GPSR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR2
-       ldr             r1,     =CFG_GPSR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR0
-       ldr             r1,     =CFG_GPCR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR1
-       ldr             r1,     =CFG_GPCR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR2
-       ldr             r1,     =CFG_GPCR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR0
-       ldr             r1,     =CFG_GPDR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR1
-       ldr             r1,     =CFG_GPDR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR2
-       ldr             r1,     =CFG_GPDR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_L
-       ldr             r1,     =CFG_GAFR0_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_U
-       ldr             r1,     =CFG_GAFR0_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_L
-       ldr             r1,     =CFG_GAFR1_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_U
-       ldr             r1,     =CFG_GAFR1_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_L
-       ldr             r1,     =CFG_GAFR2_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_U
-       ldr             r1,     =CFG_GAFR2_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_U_VAL
        str             r1,   [r0]
 
        ldr     r0,     =PSSR           /* enable GPIO pins */
-       ldr             r1,     =CFG_PSSR_VAL
+       ldr             r1,     =CONFIG_SYS_PSSR_VAL
        str             r1,   [r0]
 
        /* ---------------------------------------------------------------- */
@@ -149,17 +149,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]        /* read back to ensure      */
                                                /* that data latches        */
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
@@ -168,37 +168,37 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
        ldr     r2,     [r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
        ldr     r2,     [r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
        ldr     r2,     [r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
        ldr     r2,     [r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
        ldr     r2,     [r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
        ldr     r2,     [r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
        ldr     r2,     [r1, #MCIO1_OFFSET]
 
@@ -214,7 +214,7 @@ mem_init:
        /* Before accessing MDREFR we need a valid DRI field, so we set     */
        /* this to power on defaults + DRI field.                           */
 
-       ldr     r3,     =CFG_MDREFR_VAL
+       ldr     r3,     =CONFIG_SYS_MDREFR_VAL
        ldr     r2,     =0xFFF
        and     r3,     r3,  r2
        ldr     r4,     =0x03ca4000
@@ -244,7 +244,7 @@ mem_init:
 
        /* set MDREFR according to user define with exception of a few bits */
 
-       ldr     r4,     =CFG_MDREFR_VAL
+       ldr     r4,     =CONFIG_SYS_MDREFR_VAL
        orr     r4,     r4,     #(MDREFR_SLFRSH)
        bic     r4,     r4,     #(MDREFR_E1PIN|MDREFR_E0PIN)
        str     r4,     [r1, #MDREFR_OFFSET]    /* write back MDREFR        */
@@ -259,7 +259,7 @@ mem_init:
 
        /* Step 4c: assert MDREFR:E1PIN and E0PIO as desired                */
 
-       ldr     r4,     =CFG_MDREFR_VAL
+       ldr     r4,     =CONFIG_SYS_MDREFR_VAL
        str     r4,     [r1, #MDREFR_OFFSET]    /* write back MDREFR        */
        ldr     r4,     [r1, #MDREFR_OFFSET]
 
@@ -267,7 +267,7 @@ mem_init:
        /* Step 4d: write MDCNFG with MDCNFG:DEx deasserted (set to 0), to  */
        /*          configure but not enable each SDRAM partition pair.     */
 
-       ldr     r4,     =CFG_MDCNFG_VAL
+       ldr     r4,     =CONFIG_SYS_MDCNFG_VAL
        bic     r4,     r4,     #(MDCNFG_DE0|MDCNFG_DE1)
 
        str     r4,     [r1, #MDCNFG_OFFSET]    /* write back MDCNFG        */
@@ -294,7 +294,7 @@ mem_init:
        /*          documented in SDRAM data sheets. The address(es) used   */
        /*          for this purpose must not be cacheable.                 */
 
-       ldr     r3,     =CFG_DRAM_BASE
+       ldr     r3,     =CONFIG_SYS_DRAM_BASE
        str     r2,     [r3]
        str     r2,     [r3]
        str     r2,     [r3]
@@ -314,7 +314,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
 
index 8d98545a531ccfe08a256e27076e0e4b10abc5da..f71cc242f7ba8fa0c81fbc33c7652f70567b5959 100644 (file)
@@ -28,7 +28,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
 
 /*---------------------------------------------------------------------*/
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
  */
 static ulong flash_get_size (vu_long *addr, flash_info_t *info);
 static int write_data (flash_info_t *info, ulong dest, ulong data);
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 static int write_data_buf (flash_info_t * info, ulong dest, uchar * cp, int len);
 #endif
 static void flash_get_offsets (ulong base, flash_info_t *info);
@@ -57,13 +57,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -108,25 +108,25 @@ unsigned long flash_init (void)
                memctl->memc_br1, memctl->memc_or1);
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = (-size_b0 & 0xFFFF8000) | CFG_OR_TIMING_FLASH |
+       memctl->memc_or0 = (-size_b0 & 0xFFFF8000) | CONFIG_SYS_OR_TIMING_FLASH |
                                OR_CSNT_SAM | OR_ACS_DIV1;
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_PS_32 | BR_V;
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_PS_32 | BR_V;
 
        debug ("## BR0: 0x%08x    OR0: 0x%08x\n",
                memctl->memc_br0, memctl->memc_or0);
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size_b0;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -139,27 +139,27 @@ unsigned long flash_init (void)
 #endif
 
        if (size_b1) {
-               memctl->memc_or1 = (-size_b1 & 0xFFFF8000) | CFG_OR_TIMING_FLASH |
+               memctl->memc_or1 = (-size_b1 & 0xFFFF8000) | CONFIG_SYS_OR_TIMING_FLASH |
                                        OR_CSNT_SAM | OR_ACS_DIV1;
-               memctl->memc_br1 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_br1 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                        BR_PS_32 | BR_V;
 
                debug ("## BR1: 0x%08x    OR1: 0x%08x\n",
                        memctl->memc_br1, memctl->memc_or1);
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                          &flash_info[1]);
 
                flash_info[1].size = size_b1;
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
 
@@ -342,10 +342,10 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = 0x00FF00FF;           /* restore read mode */
@@ -409,7 +409,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
                        /* This takes awfully long - up to 50 ms and more */
                        while (((status = *addr) & 0x00800080) != 0x00800080) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0x00FF00FF; /* reset to read mode */
                                        return 1;
@@ -435,7 +435,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & 0x00800080) != 0x00800080) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0x00B000B0; /* suspend erase      */
                                        *addr = 0x00FF00FF; /* reset to read mode */
@@ -504,10 +504,10 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
        /*
         * handle FLASH_WIDTH aligned part
         */
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        while(cnt >= FLASH_WIDTH) {
-               i = CFG_FLASH_BUFFER_SIZE > cnt ?
-                   (cnt & ~(FLASH_WIDTH - 1)) : CFG_FLASH_BUFFER_SIZE;
+               i = CONFIG_SYS_FLASH_BUFFER_SIZE > cnt ?
+                   (cnt & ~(FLASH_WIDTH - 1)) : CONFIG_SYS_FLASH_BUFFER_SIZE;
                if((rc = write_data_buf(info, wp, src,i)) != 0)
                        return rc;
                wp += i;
@@ -526,7 +526,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                wp  += FLASH_WIDTH;
                cnt -= FLASH_WIDTH;
        }
-#endif /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
 
        if (cnt == 0) {
                return (0);
@@ -594,7 +594,7 @@ static int write_data (flash_info_t *info, ulong dest, ulong data)
        if (flag)
                enable_interrupts();
 
-       if (flash_status_check(addr, CFG_FLASH_WRITE_TOUT, "write") != 0) {
+       if (flash_status_check(addr, CONFIG_SYS_FLASH_WRITE_TOUT, "write") != 0) {
                return (1);
        }
 
@@ -603,7 +603,7 @@ static int write_data (flash_info_t *info, ulong dest, ulong data)
        return (0);
 }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 /*-----------------------------------------------------------------------
  * Write a buffer to Flash, returns:
  * 0 - OK
@@ -627,7 +627,7 @@ static int write_data_buf(flash_info_t * info, ulong dest, uchar * cp, int len)
        *addr = 0x00500050;             /* clear status */
        *addr = 0x00e800e8;             /* write buffer */
 
-       if((retcode = flash_status_check(addr, CFG_FLASH_BUFFER_WRITE_TOUT,
+       if((retcode = flash_status_check(addr, CONFIG_SYS_FLASH_BUFFER_WRITE_TOUT,
                                         "write to buffer")) == 0) {
                cnt = len / FLASH_WIDTH;
                *addr = (cnt-1) | ((cnt-1) << 16);
@@ -635,14 +635,14 @@ static int write_data_buf(flash_info_t * info, ulong dest, uchar * cp, int len)
                        *dst++ = *src++;
                }
                *addr = 0x00d000d0;             /* write buffer confirm */
-               retcode = flash_status_check(addr, CFG_FLASH_BUFFER_WRITE_TOUT,
+               retcode = flash_status_check(addr, CONFIG_SYS_FLASH_BUFFER_WRITE_TOUT,
                                                 "buffer write");
        }
        *addr = 0x00FF00FF;     /* restore read mode */
        *addr = 0x00500050;     /* clear status */
        return retcode;
 }
-#endif /* CFG_USE_FLASH_BUFFER_WRITE */
+#endif /* CONFIG_SYS_USE_FLASH_BUFFER_WRITE */
 
 /*-----------------------------------------------------------------------
  */
index 4a2d8e4a4fd9dec55b99e37b6963170562e508f5..aadd2540e84b186c563201f4fc4d16a0a1de7901 100644 (file)
@@ -66,7 +66,7 @@ extern void disable_putc(void);
  */
 const uint sdram_table[] =
 {
-#if defined(CFG_MEMORY_75) || defined(CFG_MEMORY_8E)
+#if defined(CONFIG_SYS_MEMORY_75) || defined(CONFIG_SYS_MEMORY_8E)
        /*
         * Single Read. (Offset 0 in UPM RAM)
         */
@@ -114,7 +114,7 @@ const uint sdram_table[] =
        0x7FFFFC07, /* last */
                    0xFFFFFCFF, 0xFFFFFCFF, 0xFFFFFCFF,
 #endif
-#ifdef CFG_MEMORY_7E
+#ifdef CONFIG_SYS_MEMORY_7E
        /*
         * Single Read. (Offset 0 in UPM RAM)
         */
@@ -211,7 +211,7 @@ V* Verification: dzu@denx.de
  ***********************************************************************/
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
        long int size_b0;
        long int size8, size9;
@@ -222,19 +222,19 @@ phys_size_t initdram (int board_type)
         */
        upmconfig (UPMA, (uint *)sdram_table, sizeof(sdram_table)/sizeof(uint));
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /* burst length=4, burst type=sequential, CAS latency=2 */
-       memctl->memc_mar = CFG_MAR;
+       memctl->memc_mar = CONFIG_SYS_MAR;
 
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
        /* initialize memory address register */
-       memctl->memc_mamr = CFG_MAMR_8COL;      /* refresh not enabled yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;       /* refresh not enabled yet */
 
        /* mode initialization (offset 5) */
        udelay (200);                           /* 0x80006105 */
@@ -268,22 +268,22 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, (long *)SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, (long *)SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
 
        udelay (1000);
 
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (long *)SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *)SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
 
        if (size8 < size9) {            /* leave configuration at 9 columns */
                size_b0 = size9;
-               memctl->memc_mamr = CFG_MAMR_9COL | MAMR_PTAE;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_9COL | MAMR_PTAE;
                udelay (500);
        } else {                        /* back to 8 columns            */
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL | MAMR_PTAE;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL | MAMR_PTAE;
                udelay (500);
        }
 
@@ -293,7 +293,7 @@ phys_size_t initdram (int board_type)
 
        memctl->memc_or3 = ((-size_b0) & 0xFFFF0000) |
                        OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING;
-       memctl->memc_br3 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_br3 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
        udelay (1000);
 
        return (size_b0);
@@ -327,7 +327,7 @@ V* Verification: dzu@denx.de
  ***********************************************************************/
 static long int dram_size (long int mamr_value, long int *base, long int maxsize)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -359,7 +359,7 @@ V* Verification: dzu@denx.de
  ***********************************************************************/
 int board_early_init_f (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /* Disable Ethernet TENA on Port B
         * Necessary because of pull up in COM3 port.
@@ -437,7 +437,7 @@ void reset_phy (void)
 
 /* maximum number of "magic" key codes that can be assigned */
 
-static uchar kbd_addr = CFG_I2C_KEYBD_ADDR;
+static uchar kbd_addr = CONFIG_SYS_I2C_KEYBD_ADDR;
 
 static uchar *key_match (uchar *);
 
@@ -481,7 +481,7 @@ static void kbd_init (void)
        uchar val, errcd;
        int i;
 
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        gd->kbd_status = 0;
 
@@ -862,7 +862,7 @@ int do_kbd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        int i;
 
 #if 0 /* Done in kbd_init */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 #endif
 
        /* Read keys */
@@ -887,7 +887,7 @@ U_BOOT_CMD(
 );
 
 /* Read and set LSB switch */
-#define CFG_PC_TXD1_ENA                0x0008          /* PC.12 */
+#define CONFIG_SYS_PC_TXD1_ENA         0x0008          /* PC.12 */
 
 /***********************************************************************
 F* Function:     int do_lsb (cmd_tbl_t *cmdtp, int flag,
@@ -920,7 +920,7 @@ V* Verification: dzu@denx.de
 int do_lsb (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        uchar val;
-       immap_t *immr = (immap_t *) CFG_IMMR;
+       immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        switch (argc) {
        case 1:                                 /* lsb - print setting */
@@ -932,14 +932,14 @@ int do_lsb (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
                if (strcmp (argv[1], "on") == 0) {
                        val |= 0x20;
-                       immr->im_ioport.iop_pcpar &= ~(CFG_PC_TXD1_ENA);
-                       immr->im_ioport.iop_pcdat |= CFG_PC_TXD1_ENA;
-                       immr->im_ioport.iop_pcdir |= CFG_PC_TXD1_ENA;
+                       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_TXD1_ENA);
+                       immr->im_ioport.iop_pcdat |= CONFIG_SYS_PC_TXD1_ENA;
+                       immr->im_ioport.iop_pcdir |= CONFIG_SYS_PC_TXD1_ENA;
                } else if (strcmp (argv[1], "off") == 0) {
                        val &= ~0x20;
-                       immr->im_ioport.iop_pcpar &= ~(CFG_PC_TXD1_ENA);
-                       immr->im_ioport.iop_pcdat &= ~(CFG_PC_TXD1_ENA);
-                       immr->im_ioport.iop_pcdir |= CFG_PC_TXD1_ENA;
+                       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_TXD1_ENA);
+                       immr->im_ioport.iop_pcdat &= ~(CONFIG_SYS_PC_TXD1_ENA);
+                       immr->im_ioport.iop_pcdir |= CONFIG_SYS_PC_TXD1_ENA;
                } else {
                        break;
                }
@@ -980,7 +980,7 @@ V* Verification: dzu@denx.de
  ***********************************************************************/
 uchar pic_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_PICIO_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_PICIO_ADDR, reg));
 }
 
 /***********************************************************************
@@ -1001,7 +1001,7 @@ V* Verification: dzu@denx.de
  ***********************************************************************/
 void pic_write (uchar reg, uchar val)
 {
-       i2c_reg_write (CFG_I2C_PICIO_ADDR, reg, val);
+       i2c_reg_write (CONFIG_SYS_I2C_PICIO_ADDR, reg, val);
 }
 
 /*---------------------- Board Control Functions ----------------------*/
@@ -1022,7 +1022,7 @@ V* Verification: dzu@denx.de
 void board_poweroff (void)
 {
     /* Turn battery off */
-    ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat &= ~(1 << (31 - 13));
+    ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat &= ~(1 << (31 - 13));
 
     while (1);
 }
index 8825bd9714e5e0dada07310f44eb037d1c9f760e..ad2e60d590fe72b3657028e726f3678d7ced5806 100644 (file)
@@ -51,10 +51,10 @@ int pcmcia_hardware_enable(int slot)
 #endif
        udelay(10000);
 
-       immap = (immap_t *)CFG_IMMR;
-       sysp  = (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       sysp  = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /*
         * Configure SIUMCR to enable PCMCIA port B
@@ -108,8 +108,8 @@ int pcmcia_hardware_enable(int slot)
 
        /*  switch VCC on */
        val |= MAX1604_OP_SUS | MAX1604_VCCBON;
-       i2c_init  (CFG_I2C_SPEED, CFG_I2C_SLAVE);
-       i2c_write (CFG_I2C_POWER_A_ADDR, 0, 0, &val, 1);
+       i2c_init  (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+       i2c_write (CONFIG_SYS_I2C_POWER_A_ADDR, 0, 0, &val, 1);
 
        udelay(500000);
 
@@ -137,13 +137,13 @@ int pcmcia_hardware_disable(int slot)
 
        debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
        /* remove all power, put output in high impedance state */
        val  = MAX1604_VCCBHIZ | MAX1604_VPPBHIZ;
-       i2c_init  (CFG_I2C_SPEED, CFG_I2C_SLAVE);
-       i2c_write (CFG_I2C_POWER_A_ADDR, 0, 0, &val, 1);
+       i2c_init  (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+       i2c_write (CONFIG_SYS_I2C_POWER_A_ADDR, 0, 0, &val, 1);
 
        /* Configure PCMCIA General Control Register */
        debug ("Disable PCMCIA buffers and assert RESET\n");
@@ -181,8 +181,8 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
                " Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
                'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        /*
         * Disable PCMCIA buffers (isolate the interface)
         * and assert RESET signal
@@ -199,8 +199,8 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
         */
        debug ("PCMCIA power OFF\n");
        val  = MAX1604_VCCBHIZ | MAX1604_VPPBHIZ;
-       i2c_init  (CFG_I2C_SPEED, CFG_I2C_SLAVE);
-       i2c_write (CFG_I2C_POWER_A_ADDR, 0, 0, &val, 1);
+       i2c_init  (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+       i2c_write (CONFIG_SYS_I2C_POWER_A_ADDR, 0, 0, &val, 1);
 
        val = 0;
        switch(vcc) {
@@ -216,7 +216,7 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
                pcmp->pcmc_pipr,
                (pcmp->pcmc_pipr & 0x00008000) ? "only 5 V" : "can do 3.3V");
 
-       i2c_write (CFG_I2C_POWER_A_ADDR, 0, 0, &val, 1);
+       i2c_write (CONFIG_SYS_I2C_POWER_A_ADDR, 0, 0, &val, 1);
        if (val) {
                debug ("PCMCIA powered at %sV\n",
                        (val & MAX1604_VCC_35) ? "3.3" : "5.0");
index bf2b8798c1c7bbbaeec56670b8a1fe0d4c8b7c8e..3c6d041720eba417ebe6f38db0eb3c53b314abc8 100644 (file)
@@ -35,5 +35,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 5aade72b52f302bab4415b8615f11d97207912fa..718cec6af56772c1c11d72668f715fa2ee969d77 100644 (file)
@@ -47,7 +47,7 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry(CFG_BOOT_BASE_ADDR, SZ_256M, CFG_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 1, AC_R|AC_W|AC_X|SA_G)
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -55,28 +55,28 @@ tlbtab:
         * routine.
         */
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry(CFG_INIT_RAM_ADDR, SZ_4K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry(CONFIG_SYS_INIT_RAM_ADDR, SZ_4K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G)
 #endif
 
        /* TLB-entry for PCI Memory */
-       tlbentry(CFG_PCI_MEMBASE, SZ_256M, CFG_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry(CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry(CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1, AC_R|AC_W|SA_G|SA_I)
 
        /* TLB-entry for the FPGA Chip select 2 */
-       tlbentry(CFG_FPGA_BASE_0, SZ_1M, CFG_FPGA_BASE_0, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_FPGA_BASE_0, SZ_1M, CONFIG_SYS_FPGA_BASE_0, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
 
        /* TLB-entry for the FPGA Chip select 3 */
-       tlbentry(CFG_FPGA_BASE_1, SZ_1M, CFG_FPGA_BASE_1, 1,AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_FPGA_BASE_1, SZ_1M, CONFIG_SYS_FPGA_BASE_1, 1,AC_R|AC_W|AC_X|SA_I|SA_G)
 
        /* TLB-entry for the LIME Controller */
-       tlbentry(CFG_LIME_BASE_0, SZ_16M, CFG_LIME_BASE_0, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
-       tlbentry(CFG_LIME_BASE_1, SZ_16M, CFG_LIME_BASE_1, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
-       tlbentry(CFG_LIME_BASE_2, SZ_16M, CFG_LIME_BASE_2, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
-       tlbentry(CFG_LIME_BASE_3, SZ_16M, CFG_LIME_BASE_3, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_0, SZ_16M, CONFIG_SYS_LIME_BASE_0, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_1, SZ_16M, CONFIG_SYS_LIME_BASE_1, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_2, SZ_16M, CONFIG_SYS_LIME_BASE_2, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
+       tlbentry(CONFIG_SYS_LIME_BASE_3, SZ_16M, CONFIG_SYS_LIME_BASE_3, 1, AC_R|AC_W|AC_X|SA_I|SA_G)
 
        /* TLB-entry for Internal Registers & OCM */
        tlbentry(0xe0000000, SZ_16M, 0xe0000000, 0,  AC_R|AC_W|AC_X|SA_I)
index 1e5349a6eccb8aaa3f69e50fe3d5ac9fe21bc339..0a8787a91ced22d03b01c916d47974a0390206af 100644 (file)
@@ -74,7 +74,7 @@ static int compare_magic (uchar *kbd_data, uchar *str);
 
 /* maximum number of "magic" key codes that can be assigned */
 
-static uchar kbd_addr = CFG_I2C_KEYBD_ADDR;
+static uchar kbd_addr = CONFIG_SYS_I2C_KEYBD_ADDR;
 
 static uchar *key_match (uchar *);
 
@@ -106,7 +106,7 @@ static void kbd_init (void)
        uchar val, errcd;
        int i;
 
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        gd->kbd_status = 0;
 
@@ -412,7 +412,7 @@ int do_kbd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        int i;
 
 #if 0 /* Done in kbd_init */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 #endif
 
        /* Read keys */
index 8975bfd3d28af679b1e5d5af3a80a78fc9c63759..aa62f37900a8ab73c22714fdbebd6728041e7b7a 100644 (file)
@@ -27,7 +27,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips   */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 ulong flash_get_size(ulong base, int banknum);
 int misc_init_r_kbd(void);
@@ -94,24 +94,24 @@ int board_early_init_f(void)
        reg = 0;
        mtsdr(sdr_pci0, 0x00000000 | reg);
 
-       gpio_write_bit(CFG_GPIO_FLASH_WP, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_FLASH_WP, 1);
 
-#if CONFIG_POST & CFG_POST_BSPEC1
-       gpio_write_bit(CFG_GPIO_HIGHSIDE, 1);
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC1
+       gpio_write_bit(CONFIG_SYS_GPIO_HIGHSIDE, 1);
 
        reg = 0; /* reuse as counter */
-       out_be32((void *)CFG_DSPIC_TEST_ADDR,
-               in_be32((void *)CFG_DSPIC_TEST_ADDR)
-                       & ~CFG_DSPIC_TEST_MASK);
-       while (!gpio_read_in_bit(CFG_GPIO_DSPIC_READY) && reg++ < 1000) {
+       out_be32((void *)CONFIG_SYS_DSPIC_TEST_ADDR,
+               in_be32((void *)CONFIG_SYS_DSPIC_TEST_ADDR)
+                       & ~CONFIG_SYS_DSPIC_TEST_MASK);
+       while (!gpio_read_in_bit(CONFIG_SYS_GPIO_DSPIC_READY) && reg++ < 1000) {
                udelay(1000);
        }
-       gpio_write_bit(CFG_GPIO_HIGHSIDE, 0);
-       if (gpio_read_in_bit(CFG_GPIO_DSPIC_READY)) {
+       gpio_write_bit(CONFIG_SYS_GPIO_HIGHSIDE, 0);
+       if (gpio_read_in_bit(CONFIG_SYS_GPIO_DSPIC_READY)) {
                /* set "boot error" flag */
-               out_be32((void *)CFG_DSPIC_TEST_ADDR,
-                       in_be32((void *)CFG_DSPIC_TEST_ADDR) |
-                       CFG_DSPIC_TEST_MASK);
+               out_be32((void *)CONFIG_SYS_DSPIC_TEST_ADDR,
+                       in_be32((void *)CONFIG_SYS_DSPIC_TEST_ADDR) |
+                       CONFIG_SYS_DSPIC_TEST_MASK);
        }
 #endif
 
@@ -123,14 +123,14 @@ int board_early_init_f(void)
         * MDIO address. A 2nd reset at this time will make sure, that the
         * correct address is latched.
         */
-       gpio_write_bit(CFG_GPIO_PHY0_RST, 1);
-       gpio_write_bit(CFG_GPIO_PHY1_RST, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY0_RST, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY1_RST, 1);
        udelay(1000);
-       gpio_write_bit(CFG_GPIO_PHY0_RST, 0);
-       gpio_write_bit(CFG_GPIO_PHY1_RST, 0);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY0_RST, 0);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY1_RST, 0);
        udelay(1000);
-       gpio_write_bit(CFG_GPIO_PHY0_RST, 1);
-       gpio_write_bit(CFG_GPIO_PHY1_RST, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY0_RST, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_PHY1_RST, 1);
 
        return 0;
 }
@@ -194,7 +194,7 @@ int misc_init_r(void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[1]);
 
@@ -338,7 +338,7 @@ int pci_pre_init(struct pci_controller *hose)
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -352,14 +352,14 @@ void pci_target_init(struct pci_controller *hose)
          | Make this region non-prefetchable.
          +--------------------------------------------------------------------------*/
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE);       /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE);        /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
        out32r(PCIX0_PMM1MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM1LA, CFG_PCI_MEMBASE2); /* PMM0 Local Address */
-       out32r(PCIX0_PMM1PCILA, CFG_PCI_MEMBASE2);      /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM1LA, CONFIG_SYS_PCI_MEMBASE2); /* PMM0 Local Address */
+       out32r(PCIX0_PMM1PCILA, CONFIG_SYS_PCI_MEMBASE2);       /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM1MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
@@ -374,8 +374,8 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's subsystem id/vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
-       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_ID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_ID);
 
        /* Configure command register as bus master */
        pci_write_config_word(0, PCI_COMMAND, PCI_COMMAND_MASTER);
@@ -389,13 +389,13 @@ void pci_target_init(struct pci_controller *hose)
        pci_write_config_dword(0, PCI_BRDGOPT2, 0x00000101);
 
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  pci_master_init
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -410,7 +410,7 @@ void pci_master_init(struct pci_controller *hose)
                              temp_short | PCI_COMMAND_MASTER |
                              PCI_COMMAND_MEMORY);
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 /*************************************************************************
  *  is_pci_host
@@ -460,8 +460,8 @@ void hw_watchdog_reset(void)
        /*
         * Toggle watchdog output
         */
-       val = gpio_read_out_bit(CFG_GPIO_WATCHDOG) == 0 ? 1 : 0;
-       gpio_write_bit(CFG_GPIO_WATCHDOG, val);
+       val = gpio_read_out_bit(CONFIG_SYS_GPIO_WATCHDOG) == 0 ? 1 : 0;
+       gpio_write_bit(CONFIG_SYS_GPIO_WATCHDOG, val);
 }
 
 int do_eeprom_wp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
@@ -472,9 +472,9 @@ int do_eeprom_wp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
        if ((strcmp(argv[1], "on") == 0)) {
-               gpio_write_bit(CFG_GPIO_EEPROM_EXT_WP, 1);
+               gpio_write_bit(CONFIG_SYS_GPIO_EEPROM_EXT_WP, 1);
        } else if ((strcmp(argv[1], "off") == 0)) {
-               gpio_write_bit(CFG_GPIO_EEPROM_EXT_WP, 0);
+               gpio_write_bit(CONFIG_SYS_GPIO_EEPROM_EXT_WP, 0);
        } else {
                printf("Usage:\n%s\n", cmdtp->usage);
                return 1;
@@ -528,23 +528,23 @@ unsigned int board_video_init (void)
        /*
         * Reset Lime controller
         */
-       gpio_write_bit(CFG_GPIO_LIME_S, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_LIME_S, 1);
        udelay(500);
-       gpio_write_bit(CFG_GPIO_LIME_RST, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_LIME_RST, 1);
 
        /* Lime memory clock adjusted to 100MHz */
-       out_be32((void *)CFG_LIME_SDRAM_CLOCK, CFG_LIME_CLOCK_100MHZ);
+       out_be32((void *)CONFIG_SYS_LIME_SDRAM_CLOCK, CONFIG_SYS_LIME_CLOCK_100MHZ);
        /* Wait untill time expired. Because of requirements in lime manual */
        udelay(300);
        /* Write lime controller memory parameters */
-       out_be32((void *)CFG_LIME_MMR, CFG_LIME_MMR_VALUE);
+       out_be32((void *)CONFIG_SYS_LIME_MMR, CONFIG_SYS_LIME_MMR_VALUE);
 
        mb862xx.winSizeX = 640;
        mb862xx.winSizeY = 480;
        mb862xx.gdfBytesPP = 2;
        mb862xx.gdfIndex = GDF_15BIT_555RGB;
 
-       return CFG_LIME_BASE_0;
+       return CONFIG_SYS_LIME_BASE_0;
 }
 
 #define DEFAULT_BRIGHTNESS 0x64
@@ -553,12 +553,12 @@ static void board_backlight_brightness(int brightness)
 {
        if (brightness > 0) {
                /* pwm duty, lamp on */
-               out_be32((void *)(CFG_FPGA_BASE_0 + 0x00000024), brightness);
-               out_be32((void *)(CFG_FPGA_BASE_0 + 0x00000020), 0x701);
+               out_be32((void *)(CONFIG_SYS_FPGA_BASE_0 + 0x00000024), brightness);
+               out_be32((void *)(CONFIG_SYS_FPGA_BASE_0 + 0x00000020), 0x701);
        } else {
                /* lamp off */
-               out_be32((void *)(CFG_FPGA_BASE_0 + 0x00000024), 0x00);
-               out_be32((void *)(CFG_FPGA_BASE_0 + 0x00000020), 0x00);
+               out_be32((void *)(CONFIG_SYS_FPGA_BASE_0 + 0x00000024), 0x00);
+               out_be32((void *)(CONFIG_SYS_FPGA_BASE_0 + 0x00000020), 0x00);
        }
 }
 
@@ -595,5 +595,5 @@ void video_get_info_str (int line_number, char *info)
 
 void board_reset(void)
 {
-       gpio_write_bit(CFG_GPIO_BOARD_RESET, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_BOARD_RESET, 1);
 }
index 189e824073dc6b679820275f8406ca1ff99fced6..72968d78035240961f36eee324d79f64407adf96 100644 (file)
  * memory.
  *
  * If at some time this restriction doesn't apply anymore, just define
- * CFG_ENABLE_SDRAM_CACHE in the board config file and this code should setup
+ * CONFIG_SYS_ENABLE_SDRAM_CACHE in the board config file and this code should setup
  * everything correctly.
  */
-#ifdef CFG_ENABLE_SDRAM_CACHE
+#ifdef CONFIG_SYS_ENABLE_SDRAM_CACHE
 #define MY_TLB_WORD2_I_ENABLE  0                       /* enable caching on SDRAM */
 #else
 #define MY_TLB_WORD2_I_ENABLE  TLB_WORD2_I_ENABLE      /* disable caching on SDRAM */
@@ -116,7 +116,7 @@ static void program_ecc(u32 start_address,
         * Because of 440EPx errata CHIP 11, we don't touch the last 256
         * bytes of SDRAM.
         */
-       bytes_remaining = num_bytes - CFG_MEM_TOP_HIDE;
+       bytes_remaining = num_bytes - CONFIG_SYS_MEM_TOP_HIDE;
 
        /*
         * We have to write the ECC bytes by zeroing and flushing in smaller
@@ -252,29 +252,29 @@ phys_size_t initdram (int board_type)
        /* -----------------------------------------------------------+
         * Perform data eye search if requested.
         * ----------------------------------------------------------*/
-       program_tlb(0, CFG_SDRAM_BASE, CFG_MBYTES_SDRAM << 20,
+       program_tlb(0, CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MBYTES_SDRAM << 20,
                    TLB_WORD2_I_ENABLE);
        denali_core_search_data_eye();
-       remove_tlb(CFG_SDRAM_BASE, CFG_MBYTES_SDRAM << 20);
+       remove_tlb(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MBYTES_SDRAM << 20);
 #endif
 
        /*
         * Program tlb entries for this size (dynamic)
         */
-       program_tlb(0, CFG_SDRAM_BASE, CFG_MBYTES_SDRAM << 20,
+       program_tlb(0, CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MBYTES_SDRAM << 20,
                    MY_TLB_WORD2_I_ENABLE);
 
        /*
         * Setup 2nd TLB with same physical address but different virtual address
         * with cache enabled. This is done for fast ECC generation.
         */
-       program_tlb(0, CFG_DDR_CACHED_ADDR, CFG_MBYTES_SDRAM << 20, 0);
+       program_tlb(0, CONFIG_SYS_DDR_CACHED_ADDR, CONFIG_SYS_MBYTES_SDRAM << 20, 0);
 
 #ifdef CONFIG_DDR_ECC
        /*
         * If ECC is enabled, initialize the parity bits.
         */
-       program_ecc(CFG_DDR_CACHED_ADDR, CFG_MBYTES_SDRAM << 20, 0);
+       program_ecc(CONFIG_SYS_DDR_CACHED_ADDR, CONFIG_SYS_MBYTES_SDRAM << 20, 0);
 #endif
 
        /*
@@ -284,5 +284,5 @@ phys_size_t initdram (int board_type)
         */
        set_mcsr(get_mcsr());
 
-       return (CFG_MBYTES_SDRAM << 20);
+       return (CONFIG_SYS_MBYTES_SDRAM << 20);
 }
index b20fb1c0a282c5499f6a8d580991a6acb7a943f6..3cfec834e2dbcd31261163b96a69446f325a435d 100644 (file)
@@ -137,7 +137,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFF8000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index d86392f93917d8727073fa9a2471cc2cd51138e8..d1a46f348bf1f5eac10ab0381959bce33436cb4f 100644 (file)
 
 #include <common.h>
 #include <i2c.h>
-#ifdef CFG_EEPROM_AT24C16
+#ifdef CONFIG_SYS_EEPROM_AT24C16
 #undef DEBUG
 
 void eeprom_init(void)
 {
 #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C)
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 #endif
 }
 
@@ -53,10 +53,10 @@ int eeprom_read(unsigned dev_addr, unsigned offset, uchar *buffer,
 }
 
 /*
- * for CFG_I2C_EEPROM_ADDR_LEN == 2 (16-bit EEPROM address) offset is
+ * for CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 2 (16-bit EEPROM address) offset is
  *   0x000nxxxx for EEPROM address selectors at n, offset xxxx in EEPROM.
  *
- * for CFG_I2C_EEPROM_ADDR_LEN == 1 (8-bit EEPROM page address) offset is
+ * for CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 (8-bit EEPROM page address) offset is
  *   0x00000nxx for EEPROM address selectors and page number at n.
  */
 int eeprom_write(unsigned dev_addr, unsigned offset, uchar *buffer,
@@ -76,8 +76,8 @@ int eeprom_write(unsigned dev_addr, unsigned offset, uchar *buffer,
                }
        }
 
-#if defined(CFG_EEPROM_PAGE_WRITE_DELAY_MS)
-       udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+#if defined(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS)
+       udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 #endif
 
        return 0;
@@ -89,11 +89,11 @@ int eeprom_probe(unsigned dev_addr, unsigned offset)
        unsigned char chip;
 
        /* Probe the chip address */
-#if CFG_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
+#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
        chip = offset >> 8; /* block number */
 #else
        chip = offset >> 16; /* block number */
-#endif /* CFG_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
+#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
 
        chip |= dev_addr; /* insert device address */
        return (i2c_probe(chip));
index c88c4a60430443555e52aa40eeffb8db7a60adb2..a30034231bac1f82477bb0e9812b78e98eefd179 100644 (file)
@@ -85,9 +85,9 @@ phys_addr_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -193,13 +193,13 @@ void flash_preinit(void)
 
 void flash_afterinit(ulong size)
 {
-       out_be32((u32*)MPC5XXX_BOOTCS_START, START_REG(CFG_BOOTCS_START |
+       out_be32((u32*)MPC5XXX_BOOTCS_START, START_REG(CONFIG_SYS_BOOTCS_START |
                size));
-       out_be32((u32*)MPC5XXX_CS0_START, START_REG(CFG_BOOTCS_START |
+       out_be32((u32*)MPC5XXX_CS0_START, START_REG(CONFIG_SYS_BOOTCS_START |
                size));
-       out_be32((u32*)MPC5XXX_BOOTCS_STOP, STOP_REG(CFG_BOOTCS_START | size,
+       out_be32((u32*)MPC5XXX_BOOTCS_STOP, STOP_REG(CONFIG_SYS_BOOTCS_START | size,
                size));
-       out_be32((u32*)MPC5XXX_CS0_STOP, STOP_REG(CFG_BOOTCS_START | size,
+       out_be32((u32*)MPC5XXX_CS0_STOP, STOP_REG(CONFIG_SYS_BOOTCS_START | size,
                size));
 }
 
index a60af019a7287cfff93baad7cf18fbd606274eb8..7527d161ad1d838322ad02ece2617a2375040249 100644 (file)
@@ -79,7 +79,7 @@ int fpga_null_fn(int cookie)
 
 int fpga_config_fn(int assert, int flush, int cookie)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile gpio83xx_t *gpio = (volatile gpio83xx_t *)&im->gpio[0];
        u32 dvo = gpio->dat;
 
@@ -97,7 +97,7 @@ int fpga_config_fn(int assert, int flush, int cookie)
 
 int fpga_done_fn(int cookie)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile gpio83xx_t *gpio = (volatile gpio83xx_t *)&im->gpio[0];
        int result = 0;
 
@@ -114,7 +114,7 @@ int fpga_done_fn(int cookie)
 
 int fpga_status_fn(int cookie)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile gpio83xx_t *gpio = (volatile gpio83xx_t *)&im->gpio[0];
        int result = 0;
 
@@ -130,7 +130,7 @@ int fpga_status_fn(int cookie)
 
 int fpga_clk_fn(int assert_clk, int flush, int cookie)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile gpio83xx_t *gpio = (volatile gpio83xx_t *)&im->gpio[0];
        u32 dvo = gpio->dat;
 
@@ -148,7 +148,7 @@ int fpga_clk_fn(int assert_clk, int flush, int cookie)
 
 static inline int _write_fpga(u8 val, int dump)
 {
-       volatile immap_t *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile gpio83xx_t *gpio = (volatile gpio83xx_t *)&im->gpio[0];
        int i;
        u32 dvo = gpio->dat;
index 3dcff676f2587faedf3bc2404bde376da0c543f7..6984af9847995316b7e873eb48ee64f591171a71 100644 (file)
 
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;
        u32 ddr_size;
        u32 ddr_size_log2;
 
-       msize = CFG_DDR_SIZE;
+       msize = CONFIG_SYS_DDR_SIZE;
        for (ddr_size = msize << 20, ddr_size_log2 = 0;
             (ddr_size > 1);
             ddr_size = ddr_size >> 1, ddr_size_log2++) {
                if (ddr_size & 1)
                        return -1;
        }
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LAWAR_EN | ((ddr_size_log2 - 1) &
                LAWAR_SIZE);
 
-       im->ddr.csbnds[0].csbnds = CFG_DDR_CS0_BNDS;
-       im->ddr.cs_config[0] = CFG_DDR_CS0_CONFIG;
-       im->ddr.timing_cfg_0 = CFG_DDR_TIMING_0;
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
-       im->ddr.timing_cfg_3 = CFG_DDR_TIMING_3;
-       im->ddr.sdram_cfg = CFG_DDR_SDRAM_CFG;
-       im->ddr.sdram_cfg2 = CFG_DDR_SDRAM_CFG2;
-       im->ddr.sdram_mode = CFG_DDR_MODE;
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
-       im->ddr.sdram_clk_cntl = CFG_DDR_CLK_CNTL;
+       im->ddr.csbnds[0].csbnds = CONFIG_SYS_DDR_CS0_BNDS;
+       im->ddr.cs_config[0] = CONFIG_SYS_DDR_CS0_CONFIG;
+       im->ddr.timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       im->ddr.timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       im->ddr.sdram_cfg = CONFIG_SYS_DDR_SDRAM_CFG;
+       im->ddr.sdram_cfg2 = CONFIG_SYS_DDR_SDRAM_CFG2;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       im->ddr.sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CNTL;
 
        udelay(300);
 
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
 
-       return CFG_DDR_SIZE;
+       return CONFIG_SYS_DDR_SIZE;
 }
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32) im)
                return -1;
 
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
        msize = fixed_sdram();
 
        /* return total bus RAM size(bytes) */
@@ -132,14 +132,14 @@ int spi_cs_is_valid(unsigned int bus, unsigned int cs)
 
 void spi_cs_activate(struct spi_slave *slave)
 {
-       volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0];
+       volatile gpio83xx_t *iopd = &((immap_t *)CONFIG_SYS_IMMR)->gpio[0];
 
        iopd->dat &= ~MVBLM7_MMC_CS;
 }
 
 void spi_cs_deactivate(struct spi_slave *slave)
 {
-       volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0];
+       volatile gpio83xx_t *iopd = &((immap_t *)CONFIG_SYS_IMMR)->gpio[0];
 
        iopd->dat |= ~MVBLM7_MMC_CS;
 }
index ef34a6b453e292a99a6ca4d3332a99985fba2b6d..9f31719ae9e8c5b54b92db7aefca5ed8998e6671 100644 (file)
@@ -52,21 +52,21 @@ int mvblm7_load_fpga(void)
 
 static struct pci_region pci_regions[] = {
        {
-               bus_start: CFG_PCI1_MEM_BASE,
-               phys_start: CFG_PCI1_MEM_PHYS,
-               size: CFG_PCI1_MEM_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MEM_BASE,
+               phys_start: CONFIG_SYS_PCI1_MEM_PHYS,
+               size: CONFIG_SYS_PCI1_MEM_SIZE,
                flags: PCI_REGION_MEM | PCI_REGION_PREFETCH
        },
        {
-               bus_start: CFG_PCI1_MMIO_BASE,
-               phys_start: CFG_PCI1_MMIO_PHYS,
-               size: CFG_PCI1_MMIO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_MMIO_BASE,
+               phys_start: CONFIG_SYS_PCI1_MMIO_PHYS,
+               size: CONFIG_SYS_PCI1_MMIO_SIZE,
                flags: PCI_REGION_MEM
        },
        {
-               bus_start: CFG_PCI1_IO_BASE,
-               phys_start: CFG_PCI1_IO_PHYS,
-               size: CFG_PCI1_IO_SIZE,
+               bus_start: CONFIG_SYS_PCI1_IO_BASE,
+               phys_start: CONFIG_SYS_PCI1_IO_PHYS,
+               size: CONFIG_SYS_PCI1_IO_SIZE,
                flags: PCI_REGION_IO
        }
 };
@@ -85,7 +85,7 @@ void pci_init_board(void)
        struct pci_region *reg[] = { pci_regions };
 
        load_fpga = 1;
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        clk = (clk83xx_t *) &immr->clk;
        pci_ctrl = immr->pci_ctrl;
        pci_law = immr->sysconf.pcilaw;
@@ -121,10 +121,10 @@ void pci_init_board(void)
        for (i = 0; i < 1000; ++i)
                udelay(1000);
 
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LBLAWAR_EN | LBLAWAR_1GB;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LBLAWAR_EN | LBLAWAR_1MB;
 
        warmboot = gd->bd->bi_bootflags & BOOTFLAG_WARM;
index 832e9241f798d5af5d48a968ce81e7c685c1f8a6..d1a58b60c20a1009d5c84df3d3f13dfd42390080 100644 (file)
@@ -54,7 +54,7 @@
 #define SR2_RDY         0x02    /* Flash programming status bit             */
 #define SR2_FT          0x01    /* Reserved for Factory test purposes       */
 
-#define MBX_CSR1 (*((uchar *)CFG_CSR_BASE))
-#define MBX_CSR2 (*((uchar *)CFG_CSR_BASE + 1))
+#define MBX_CSR1 (*((uchar *)CONFIG_SYS_CSR_BASE))
+#define MBX_CSR2 (*((uchar *)CONFIG_SYS_CSR_BASE + 1))
 
 #endif /* __csr_h */
index a491f7bf0b7d2bd9af7fd98447a9b950e4187e8b..2ec420d511de8a1418d067517abdcf0aea98bac0 100644 (file)
@@ -32,7 +32,7 @@
 #include <mpc8xx.h>
 #include "vpd.h"
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -51,13 +51,13 @@ unsigned long flash_init (void)
     ulong addr;
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
 
     totsize = 0;
     addr = 0xfc000000;
-    for(i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+    for(i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
        size = flash_get_size((vu_long *)addr, &flash_info[i]);
        if (flash_info[i].flash_id == FLASH_UNKNOWN)
          break;
@@ -66,7 +66,7 @@ unsigned long flash_init (void)
     }
 
     addr = 0xfe000000;
-    for(i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+    for(i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
 
        size = flash_get_size((vu_long *)addr, &flash_info[i]);
        if (flash_info[i].flash_id == FLASH_UNKNOWN)
@@ -75,11 +75,11 @@ unsigned long flash_init (void)
        addr += size;
     }
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
     /* monitor protection ON by default */
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_MONITOR_BASE,
-                 CFG_MONITOR_BASE+monitor_flash_len-1,
+                 CONFIG_SYS_MONITOR_BASE,
+                 CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                  &flash_info[0]);
 #endif
 
@@ -274,7 +274,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
     last  = start;
     addr = (vu_long*)(info->start[l_sect]);
     while ((addr[0] & 0x80808080) != 0x80808080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -397,7 +397,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
     /* data polling for D7 */
     start = get_timer (0);
     while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            return (1);
        }
     }
index 414d87919333ee574cdd0b6799c31cf2141c3fef..af4f57df65096f61ee2a1123cb5f0dc3eedc712d 100644 (file)
@@ -121,7 +121,7 @@ static unsigned int board_get_cpufreq(void);
 
 void mbx_init (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
        ulong speed, refclock, plprcr, sccr;
        ulong br0_32 = memctl->memc_br0 & 0x400;
@@ -147,21 +147,21 @@ void mbx_init (void)
        immr->im_clkrstk.cark_sccrk = KAPWR_KEY;
        sccr = immr->im_clkrst.car_sccr;
        sccr &= SCCR_MASK;
-       sccr |= CFG_SCCR;
+       sccr |= CONFIG_SYS_SCCR;
        immr->im_clkrst.car_sccr = sccr;
 
        speed = board_get_cpufreq ();
        refclock = get_reffreq ();
 
-#if ((CFG_PLPRCR & PLPRCR_MF_MSK) != 0)
-       plprcr = CFG_PLPRCR;
+#if ((CONFIG_SYS_PLPRCR & PLPRCR_MF_MSK) != 0)
+       plprcr = CONFIG_SYS_PLPRCR;
 #else
        plprcr = immr->im_clkrst.car_plprcr;
        plprcr &= PLPRCR_MF_MSK;        /* isolate MF field */
-       plprcr |= CFG_PLPRCR;           /* reset control bits   */
+       plprcr |= CONFIG_SYS_PLPRCR;            /* reset control bits   */
 #endif
 
-#ifdef CFG_USE_OSCCLK                  /* See doc/README.MBX ! */
+#ifdef CONFIG_SYS_USE_OSCCLK                   /* See doc/README.MBX ! */
        plprcr |= ((speed + refclock / 2) / refclock - 1) << 20;
 #endif
 
@@ -181,24 +181,24 @@ void mbx_init (void)
        case 40:
                memctl->memc_br0 = 0xFE000000 | br0_32 | 1;
                memctl->memc_or0 = 0xFF800930;
-               memctl->memc_or4 = CFG_NVRAM_OR | 0x920;
-               memctl->memc_br4 = CFG_NVRAM_BASE | 0x401;
+               memctl->memc_or4 = CONFIG_SYS_NVRAM_OR | 0x920;
+               memctl->memc_br4 = CONFIG_SYS_NVRAM_BASE | 0x401;
                break;
        case 50:
                memctl->memc_br0 = 0xFE000000 | br0_32 | 1;
                memctl->memc_or0 = 0xFF800940;
-               memctl->memc_or4 = CFG_NVRAM_OR | 0x930;
-               memctl->memc_br4 = CFG_NVRAM_BASE | 0x401;
+               memctl->memc_or4 = CONFIG_SYS_NVRAM_OR | 0x930;
+               memctl->memc_br4 = CONFIG_SYS_NVRAM_BASE | 0x401;
                break;
        default:
                hang ();
                break;
        }
 #ifdef CONFIG_USE_PCI
-       memctl->memc_or5 = CFG_PCIMEM_OR;
-       memctl->memc_br5 = CFG_PCIMEM_BASE | 0x001;
-       memctl->memc_or6 = CFG_PCIBRIDGE_OR;
-       memctl->memc_br6 = CFG_PCIBRIDGE_BASE | 0x001;
+       memctl->memc_or5 = CONFIG_SYS_PCIMEM_OR;
+       memctl->memc_br5 = CONFIG_SYS_PCIMEM_BASE | 0x001;
+       memctl->memc_or6 = CONFIG_SYS_PCIBRIDGE_OR;
+       memctl->memc_br6 = CONFIG_SYS_PCIBRIDGE_BASE | 0x001;
 #endif
        /*
         * FIXME: I do not understand why I have to call this to
@@ -306,7 +306,7 @@ static ulong get_ramsize (dimm_t * dimm)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long ram_sz = 0;
        unsigned long dimm_sz = 0;
@@ -354,24 +354,24 @@ phys_size_t initdram (int board_type)
                dimm_bank = dimm_sz / 2;
                if (!dimm_sz) {
                        memctl->memc_or1 = ~(ram_sz - 1) | 0x400;
-                       memctl->memc_br1 = CFG_SDRAM_BASE | 0x81;
+                       memctl->memc_br1 = CONFIG_SYS_SDRAM_BASE | 0x81;
                        memctl->memc_br2 = 0;
                        memctl->memc_br3 = 0;
                } else if (ram_sz > dimm_bank) {
                        memctl->memc_or1 = ~(ram_sz - 1) | 0x400;
-                       memctl->memc_br1 = CFG_SDRAM_BASE | 0x81;
+                       memctl->memc_br1 = CONFIG_SYS_SDRAM_BASE | 0x81;
                        memctl->memc_or2 = ~(dimm_bank - 1) | 0x400;
-                       memctl->memc_br2 = (CFG_SDRAM_BASE + ram_sz) | 0x81;
+                       memctl->memc_br2 = (CONFIG_SYS_SDRAM_BASE + ram_sz) | 0x81;
                        memctl->memc_or3 = ~(dimm_bank - 1) | 0x400;
-                       memctl->memc_br3 = (CFG_SDRAM_BASE + ram_sz + dimm_bank) \
+                       memctl->memc_br3 = (CONFIG_SYS_SDRAM_BASE + ram_sz + dimm_bank) \
                                                                     | 0x81;
                } else {
                        memctl->memc_or2 = ~(dimm_bank - 1) | 0x400;
-                       memctl->memc_br2 = CFG_SDRAM_BASE | 0x81;
+                       memctl->memc_br2 = CONFIG_SYS_SDRAM_BASE | 0x81;
                        memctl->memc_or3 = ~(dimm_bank - 1) | 0x400;
-                       memctl->memc_br3 = (CFG_SDRAM_BASE + dimm_bank) | 0x81;
+                       memctl->memc_br3 = (CONFIG_SYS_SDRAM_BASE + dimm_bank) | 0x81;
                        memctl->memc_or1 = ~(ram_sz - 1) | 0x400;
-                       memctl->memc_br1 = (CFG_SDRAM_BASE + dimm_sz) | 0x81;
+                       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE + dimm_sz) | 0x81;
                }
        }
 
index a02c84845dfb64789ad9e44eecff68b781953e10..69368d87501614798dde2e4b46127f6420c40cb4 100644 (file)
@@ -88,10 +88,10 @@ int pcmcia_hardware_enable (int slot)
 
        udelay (10000);
 
-       immap = (immap_t *) CFG_IMMR;
-       sysp = (sysconf8xx_t *) (&(((immap_t *) CFG_IMMR)->im_siu_conf));
-       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CFG_IMMR)->im_pcmcia));
-       cp = (cpm8xx_t *) (&(((immap_t *) CFG_IMMR)->im_cpm));
+       immap = (immap_t *) CONFIG_SYS_IMMR;
+       sysp = (sysconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp = (pcmconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_pcmcia));
+       cp = (cpm8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_cpm));
 
        /* clear interrupt state, and disable interrupts */
        pcmp->pcmc_pscr = PCMCIA_MASK (_slot_);
index 6f883520cde13bba9f3eaddb445c7769614eec5f..3bc251d12d7325b797aef04287793465c99437c3 100644 (file)
@@ -47,7 +47,7 @@
 #define IIC_BD_FREE    (BD_IIC_START + 3*sizeof(cbd_t))
 
 /* FIXME -- replace 0x2000 with offsetof */
-#define VPD_P ((vpd_t *)(CFG_IMMR + 0x2000 + CFG_DPRAMVPD))
+#define VPD_P ((vpd_t *)(CONFIG_SYS_IMMR + 0x2000 + CONFIG_SYS_DPRAMVPD))
 
 /* transmit/receive buffers */
 #define IIC_RX_LENGTH 128
@@ -69,7 +69,7 @@ vpd_packet_t * vpd_find_packet(u_char ident)
 
 void vpd_init(void)
 {
-    volatile immap_t  *im = (immap_t *)CFG_IMMR;
+    volatile immap_t  *im = (immap_t *)CONFIG_SYS_IMMR;
     volatile cpm8xx_t *cp = &(im->im_cpm);
     volatile i2c8xx_t *i2c = (i2c8xx_t *)&(im->im_i2c);
     volatile iic_t *iip;
@@ -120,7 +120,7 @@ void vpd_init(void)
  */
 int vpd_read(uint iic_device, uchar *buf, int count, int offset)
 {
-    volatile immap_t  *im = (immap_t *)CFG_IMMR;
+    volatile immap_t  *im = (immap_t *)CONFIG_SYS_IMMR;
     volatile cpm8xx_t *cp = &(im->im_cpm);
     volatile i2c8xx_t *i2c = (i2c8xx_t *)&(im->im_i2c);
     volatile iic_t *iip;
index 2ed66ddb4197cbcdc4adf61d9346351962cb7eac..49213d0b388f87f07d38c28d2cf61ae6ed525c20 100644 (file)
@@ -25,7 +25,7 @@
 #include <usb.h>
 #include <part.h>
 
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #include <hush.h>
 #endif
 
@@ -40,8 +40,8 @@
 #error "must define CONFIG_USB_STORAGE"
 #endif
 
-#ifndef CFG_HUSH_PARSER
-#error "must define CFG_HUSH_PARSER"
+#ifndef CONFIG_SYS_HUSH_PARSER
+#error "must define CONFIG_SYS_HUSH_PARSER"
 #endif
 
 #if !defined(CONFIG_CMD_FAT)
index 65b818471a817bdb6e7358383ee0dec3e97da5ee..14cf08da3f7abc53b776ccb99d73446b6b48534d 100644 (file)
@@ -47,7 +47,7 @@ extern flash_info_t flash_info[];     /* FLASH chips info */
 extern int do_auto_update(void);
 ulong flash_get_size (ulong base, int banknum);
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -92,7 +92,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *           use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *           use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *           is something else than 0x00000000.
  */
 
@@ -101,7 +101,7 @@ phys_size_t initdram (int board_type)
        ulong dramsize = 0;
        ulong dramsize2 = 0;
        uint svr, pvr;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -122,9 +122,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -150,10 +150,10 @@ phys_size_t initdram (int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start(0);
-       test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+               test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        }
        if (test1 > test2) {
                sdram_start(0);
@@ -175,7 +175,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -193,7 +193,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /*
         * On MPC5200B we need to set the special configuration delay in the
@@ -237,7 +237,7 @@ int misc_init_r (void)
        /*
         * Check if boot FLASH isn't max size
         */
-       if (gd->bd->bi_flashsize < (0 - CFG_FLASH_BASE)) {
+       if (gd->bd->bi_flashsize < (0 - CONFIG_SYS_FLASH_BASE)) {
                /* adjust mapping */
                *(vu_long *)MPC5XXX_BOOTCS_START = *(vu_long *)MPC5XXX_CS0_START =
                        START_REG(gd->bd->bi_flashstart);
@@ -247,31 +247,31 @@ int misc_init_r (void)
                /*
                 * Re-check to get correct base address
                 */
-               flash_get_size(gd->bd->bi_flashstart, CFG_MAX_FLASH_BANKS - 1);
+               flash_get_size(gd->bd->bi_flashstart, CONFIG_SYS_MAX_FLASH_BANKS - 1);
 
                /*
                 * Re-do flash protection upon new addresses
                 */
                flash_protect (FLAG_PROTECT_CLEAR,
                               gd->bd->bi_flashstart, 0xffffffff,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Monitor protection ON by default */
                flash_protect (FLAG_PROTECT_SET,
-                              CFG_MONITOR_BASE, CFG_MONITOR_BASE + monitor_flash_len - 1,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Environment protection ON by default */
                flash_protect (FLAG_PROTECT_SET,
                               CONFIG_ENV_ADDR,
                               CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Redundant environment protection ON by default */
                flash_protect (FLAG_PROTECT_SET,
                               CONFIG_ENV_ADDR_REDUND,
                               CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SIZE_REDUND - 1,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
        }
 
        if (gd->bd->bi_flashsize > (32 << 20)) {
@@ -325,6 +325,6 @@ void ide_set_reset (int idereset)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-       doc_probe (CFG_DOC_BASE);
+       doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
index ad0f0752bbfb8e54c999526fde29724f22e18d4f..c125d418d3b493b735125ca2a049c35b61484c7b 100644 (file)
@@ -22,7 +22,7 @@
 
 #define FLASH_BANK_SIZE (64*1024*1024)
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #define SECT_SIZE              (512*1024)
 
@@ -61,16 +61,16 @@ ulong flash_init(void) {
        int i, j;
        ulong size = 0;
 
-       for(i=0;i<CFG_MAX_FLASH_BANKS;i++) {
+       for(i=0;i<CONFIG_SYS_MAX_FLASH_BANKS;i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id = (INTEL_MANUFACT & FLASH_VENDMASK) |
                                                                 (INTEL_ID_28F128J3A & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i==0)
-                       flashbase = CFG_FLASH_BASE;
+                       flashbase = CONFIG_SYS_FLASH_BASE;
                else
                        panic("configured too many flash banks!\n");
                for (j = 0; j < flash_info[i].sector_count; j++)
index c18815bf88a38bbbe5e95334ed0921afced90e35..d9113ab9381a9a3cf282884a436af9d5255bfdfe 100644 (file)
 #include <command.h>
 #include <configs/ML2.h>
 
-#if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2)
+#if (defined CONFIG_SYS_INIT_CHAN1) || (defined CONFIG_SYS_INIT_CHAN2)
 #include <ns16550.h>
 #endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if (defined CFG_INIT_CHAN1) || (defined CFG_INIT_CHAN2)
-const NS16550_t COM_PORTS[] = { (NS16550_t) CFG_NS16550_COM1,
-       (NS16550_t) CFG_NS16550_COM2
+#if (defined CONFIG_SYS_INIT_CHAN1) || (defined CONFIG_SYS_INIT_CHAN2)
+const NS16550_t COM_PORTS[] = { (NS16550_t) CONFIG_SYS_NS16550_COM1,
+       (NS16550_t) CONFIG_SYS_NS16550_COM2
 };
 #endif
 
 int serial_init (void)
 {
-       int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate;
 
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        (void) NS16550_init (COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        (void) NS16550_init (COM_PORTS[1], clock_divisor);
 #endif
        return 0;
@@ -54,29 +54,29 @@ int serial_init (void)
 void serial_putc (const char c)
 {
        if (c == '\n')
-               NS16550_putc (COM_PORTS[CFG_DUART_CHAN], '\r');
+               NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], '\r');
 
-       NS16550_putc (COM_PORTS[CFG_DUART_CHAN], c);
+       NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], c);
 }
 
 int serial_getc (void)
 {
-       return NS16550_getc (COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_getc (COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 int serial_tstc (void)
 {
-       return NS16550_tstc (COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_tstc (COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 void serial_setbrg (void)
 {
-       int clock_divisor = CFG_NS16550_CLK / 16 / gd->baudrate;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / gd->baudrate;
 
-#ifdef CFG_INIT_CHAN1
+#ifdef CONFIG_SYS_INIT_CHAN1
        NS16550_reinit (COM_PORTS[0], clock_divisor);
 #endif
-#ifdef CFG_INIT_CHAN2
+#ifdef CONFIG_SYS_INIT_CHAN2
        NS16550_reinit (COM_PORTS[1], clock_divisor);
 #endif
 }
index fb12e03b6e14e0f98a8700fd1666270f2e9d2dc0..4c3114328abc696ea8b33384302cbffb019b815c 100644 (file)
@@ -76,7 +76,7 @@
 #define AVAIL_SIZE             (DEVICE_SIZE*MAX_FLASH_DEVICES - RESERVED_CELLS*CELL_SIZE)
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 static __u16 toggling_bits;
 
 
@@ -120,8 +120,8 @@ ulong flash_get_size (ulong baseaddr, flash_info_t * info)
        case AMD_ID_LV160B:
                info->flash_id +=
                        (FLASH_AM160LV | FLASH_AM160B) & FLASH_TYPEMASK;
-               info->sector_count = CFG_MAX_FLASH_SECT;
-               info->size = CFG_FLASH_SIZE;
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               info->size = CONFIG_SYS_FLASH_SIZE;
                /* 1*16K Boot Block
                   2*8K Parameter Block
                   1*32K Small Main Block */
@@ -130,7 +130,7 @@ ulong flash_get_size (ulong baseaddr, flash_info_t * info)
                info->start[2] = baseaddr + 0x6000;
                info->start[3] = baseaddr + 0x8000;
                for (i = 1; i < info->sector_count; i++)
-                       info->start[3 + i] = baseaddr + i * CFG_MAIN_SECT_SIZE;
+                       info->start[3 + i] = baseaddr + i * CONFIG_SYS_MAIN_SECT_SIZE;
                break;
        default:
                info->flash_id = FLASH_UNKNOWN;
@@ -160,12 +160,12 @@ ulong flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here (only one bank) */
-       size = flash_get_size (CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size == 0) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
@@ -176,8 +176,8 @@ ulong flash_init (void)
         * protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -345,7 +345,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                        /* arm simple, non interrupt dependent timer */
                                        reset_timer_masked ();
                                        while (flash_check_erase_amd (info->start[sect])) {
-                                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                                        printf ("timeout!\n");
                                                        /* OOPS: reach timeout,
                                                         * try to reset chip
@@ -449,7 +449,7 @@ static int write_word (flash_info_t * info, ulong dest, ushort data)
        reset_timer_masked ();
 
        while (flash_check_write_amd (dest)) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        printf ("timeout! @ %08lX\n", dest);
                        /* OOPS: reach timeout,
                         *       try to reset chip */
index 3b340622266f5f2df8caf57e1cc2fdf69b114292..842bce6f3e4c023535e4c43735a0e1887843e2e3 100644 (file)
@@ -96,7 +96,7 @@ void reset_phy(void)
        return;
 }
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 /*
  * Helper function to initialize SDRAM controller.
  */
@@ -126,7 +126,7 @@ static void sdram_start(int hi_addr)
        /* normal operation */
        *(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | hi_addr_bit;
 }
-#endif /* !CFG_RAMBOOT */
+#endif /* !CONFIG_SYS_RAMBOOT */
 
 
 /*
@@ -135,7 +135,7 @@ static void sdram_start(int hi_addr)
 phys_size_t initdram(int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* According to AN3221 (MPC5200B SDRAM Initialization and
@@ -153,9 +153,9 @@ phys_size_t initdram(int board_type)
        *(vu_long *)MPC5XXX_SDRAM_CONFIG2 = SDRAM_CONFIG2;
 
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -178,14 +178,14 @@ phys_size_t initdram(int board_type)
        /* let SDRAM CS1 start right after CS0 and disable it */
        *(vu_long *) MPC5XXX_SDRAM_CS1CFG = dramsize;
 
-#else /* !CFG_RAMBOOT */
+#else /* !CONFIG_SYS_RAMBOOT */
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
        if (dramsize >= 0x13)
                dramsize = (1 << (dramsize - 0x13)) << 20;
        else
                dramsize = 0;
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /* return total ram size */
        return dramsize;
index 2c32b8ffaa823cc43515d34d129f17bf0620ee39..d729f33f9359942636e6008b1b7e9fa6bb15df7c 100644 (file)
@@ -50,7 +50,7 @@ int flashLibInited = 0;
 #define PRIVATE
 #endif
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #define SLEEP_DELAY    166
 #define FLASH_SECTOR_SIZE   (64*1024)
index 7b61266483de0a446ea1438fac75227608b9ecf7..6a12b576e0a14364d6f4865adc44ebc12a61ab93 100644 (file)
@@ -58,7 +58,7 @@ int checkflash (void)
 
 phys_size_t initdram (int board_type)
 {
-       return CFG_RAM_SIZE;
+       return CONFIG_SYS_RAM_SIZE;
 }
 
 
index 5468314eb726b60f8874547725fc3b039b5dbfa7..10a0062a8dc199793e8edc58a0c364fbd7c6fed6 100644 (file)
 #define PROMISE_MBAR5  (PROMISE_MBAR0 + 0x5000)
 
 /* ATA/66 Controller offsets */
-#define CFG_ATA_BASE_ADDR     PROMISE_MBAR0
-#define CFG_IDE_MAXBUS        2 /* ide0/ide1 */
-#define CFG_IDE_MAXDEVICE      2 /* 2 drives per controller */
-#define CFG_ATA_IDE0_OFFSET    0
-#define CFG_ATA_IDE1_OFFSET    0x3000
+#define CONFIG_SYS_ATA_BASE_ADDR     PROMISE_MBAR0
+#define CONFIG_SYS_IDE_MAXBUS         2 /* ide0/ide1 */
+#define CONFIG_SYS_IDE_MAXDEVICE      2 /* 2 drives per controller */
+#define CONFIG_SYS_ATA_IDE0_OFFSET    0
+#define CONFIG_SYS_ATA_IDE1_OFFSET    0x3000
 /*
  * Definitions for accessing IDE controller registers
  */
-#define CFG_ATA_DATA_OFFSET    0
-#define CFG_ATA_REG_OFFSET     0
-#define CFG_ATA_ALT_OFFSET    (0x1000)
+#define CONFIG_SYS_ATA_DATA_OFFSET    0
+#define CONFIG_SYS_ATA_REG_OFFSET     0
+#define CONFIG_SYS_ATA_ALT_OFFSET    (0x1000)
 
 /*
  * The constants ROM_TEXT_ADRS, ROM_SIZE, RAM_HIGH_ADRS, and RAM_LOW_ADRS
index 527e74ef13cef97d5a2bf14cea76d09992624399..21a8ef9e54e6b87b2139804e388220f29f715c1c 100644 (file)
 #include <common.h>
 #include <linux/byteorder/swab.h>
 
-#define CFG_MAX_FLASH_BANKS    1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
 #define PHYS_FLASH_SECT_SIZE   0x00020000 /* 128 KB sectors (x1) */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 #define FLASH_PORT_WIDTH       ushort
 #define FLASH_PORT_WIDTHV      vu_short
@@ -77,7 +77,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -93,8 +93,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -220,10 +220,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) INTEL_RESET;            /* restore read mode */
@@ -303,7 +303,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW) INTEL_CONFIRM;    /* erase confirm */
 
                        while (((status = *addr) & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) INTEL_SUSPEND;    /* suspend erase     */
                                        *addr = (FPW) INTEL_RESET;      /* reset to read mode */
@@ -449,7 +449,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) INTEL_RESET;      /* restore read mode */
                        return (1);
                }
@@ -500,7 +500,7 @@ int flash_real_protect(flash_info_t *info, long sector, int prot)
        reset_timer_masked ();
 
        while ((*addr & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-               if (get_timer_masked () > CFG_FLASH_UNLOCK_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                        printf("Flash lock bit operation timed out\n");
                        rc = 1;
                        break;
@@ -532,7 +532,7 @@ int flash_real_protect(flash_info_t *info, long sector, int prot)
                                *addr = (FPW) INTEL_PROTECT;    /* set */
                                while ((*addr & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED)
                                {
-                                       if (get_timer_masked () > CFG_FLASH_UNLOCK_TOUT)
+                                       if (get_timer_masked () > CONFIG_SYS_FLASH_UNLOCK_TOUT)
                                        {
                                                printf("Flash lock bit operation timed out\n");
                                                rc = 1;
index 98fd168859d3480744ebb1edd4a50b781adf14d5..9df5bd9a4c0cde564c995c3ea4fdf8ae871beff4 100644 (file)
 
 #include <common.h>
 
-#if !defined(CFG_NO_FLASH)
+#if !defined(CONFIG_SYS_NO_FLASH)
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -74,7 +74,7 @@ unsigned long flash_init (void)
        /* Init: enable write,
         * or we cannot even write flash commands
         */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
                /* set the default sector offset */
@@ -82,7 +82,7 @@ unsigned long flash_init (void)
 
        /* Static FLASH Bank configuration here - FIXME XXX */
 
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
@@ -90,16 +90,16 @@ unsigned long flash_init (void)
        }
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size;
 
 #if !defined(CONFIG_RAM_AS_FLASH)
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -177,8 +177,8 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
        udelay(20);
        asm("sync");
 
-#ifndef CFG_FLASH_CFI
-       printf("Not define CFG_FLASH_CFI\n");
+#ifndef CONFIG_SYS_FLASH_CFI
+       printf("Not define CONFIG_SYS_FLASH_CFI\n");
        return (0);
 #else
        value = addr[0];
@@ -237,7 +237,7 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
                        break;
        }
 #endif
-#endif         /*#ifdef CFG_FLASH_CFI*/
+#endif         /*#ifdef CONFIG_SYS_FLASH_CFI*/
 
        if (big_endian==0) value = (addr[0] & 0xFF000000) >>8;
        else value = (addr[0] & 0x00FF0000);
@@ -453,7 +453,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                                                        asm("sync");
                                                        return 1;
                                                }
-                                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                                        printf ("Timeout\n");
                                                        *addr16 = 0xFFFF;       /* reset bank */
                                                        asm("sync");
@@ -505,7 +505,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                                                        asm("sync");
                                                        return 1;
                                                }
-                                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                                        printf ("Timeout\n");
                                                        *addr = 0xFFFFFFFF;     /* reset bank */
                                                        asm("sync");
@@ -693,7 +693,7 @@ static int write_block(flash_info_t *info, uchar * src, ulong dest, ulong cnt)
                /* data polling for D7 */
                flag  = 0;
                while (((csr = *addr) & ready) != ready) {
-                       if ((now=get_timer(start)) > CFG_FLASH_WRITE_TOUT) {
+                       if ((now=get_timer(start)) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                flag = 1;
                                break;
                        }
@@ -751,7 +751,7 @@ static int write_short (flash_info_t *info, ulong dest, ushort data)
                /* data polling for D7 */
                flag  = 0;
                while (((csr = *addr) & ready) != ready) {
-                       if ((now=get_timer(start)) > CFG_FLASH_WRITE_TOUT) {
+                       if ((now=get_timer(start)) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                flag = 1;
                                break;
                        }
@@ -815,7 +815,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                start = get_timer (0);
                flag  = 0;
                while (((csr = *addr) & ready) != ready) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                flag = 1;
                                break;
                        }
@@ -881,7 +881,7 @@ static int clear_block_lock_bit(flash_info_t * info, vu_long  * addr)
        *addr = 0x70707070;     /* read status */
        start = get_timer (0);
        while((*addr & ready) != ready){
-               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout on clearing Block Lock Bit\n");
                        *addr = 0xFFFFFFFF;     /* reset bank */
                        asm("sync");
@@ -891,4 +891,4 @@ static int clear_block_lock_bit(flash_info_t * info, vu_long  * addr)
        return 0;
 }
 
-#endif /* !CFG_NO_FLASH */
+#endif /* !CONFIG_SYS_NO_FLASH */
index cfcd73e9e142cb3987eeef671b2f737d759244c3..9926d25ef1e42329f196d2b67f3f2c87a89f739e 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI),
 #ifndef CONFIG_RAM_AS_FLASH
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_LBC),
 #endif
 };
 
index 028a70fad84fd96fdd8cdbb6b3bec488012dc73a..9b564b8924745a5b9fcba79449d1d36e66e4c967 100644 (file)
@@ -36,7 +36,7 @@ long int fixed_sdram (void);
 int board_pre_init (void)
 {
 #if defined(CONFIG_PCI)
-       volatile ccsr_pcix_t *pci = (void *)(CFG_MPC85xx_PCIX_ADDR);
+       volatile ccsr_pcix_t *pci = (void *)(CONFIG_SYS_MPC85xx_PCIX_ADDR);
 
        pci->peer &= 0xffffffdf; /* disable master abort */
 #endif
@@ -53,10 +53,10 @@ int checkboard (void)
        printf ("\tCPU: %lu MHz\n", sysinfo.freqProcessor / 1000000);
        printf ("\tCCB: %lu MHz\n", sysinfo.freqSystemBus / 1000000);
        printf ("\tDDR: %lu MHz\n", sysinfo.freqSystemBus / 2000000);
-       if((CFG_LBC_LCRR & 0x0f) == 2 || (CFG_LBC_LCRR & 0x0f) == 4 \
-               || (CFG_LBC_LCRR & 0x0f) == 8) {
+       if((CONFIG_SYS_LBC_LCRR & 0x0f) == 2 || (CONFIG_SYS_LBC_LCRR & 0x0f) == 4 \
+               || (CONFIG_SYS_LBC_LCRR & 0x0f) == 8) {
                printf ("\tLBC: %lu MHz\n",
-                       sysinfo.freqSystemBus / 1000000/(CFG_LBC_LCRR & 0x0f));
+                       sysinfo.freqSystemBus / 1000000/(CONFIG_SYS_LBC_LCRR & 0x0f));
        } else {
                printf("\tLBC: unknown\n");
        }
@@ -69,12 +69,12 @@ phys_size_t initdram (int board_type)
        long dram_size = 0;
 
 #if !defined(CONFIG_RAM_AS_FLASH)
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
        sys_info_t sysinfo;
        uint temp_lbcdll = 0;
 #endif
 #if !defined(CONFIG_RAM_AS_FLASH) || defined(CONFIG_DDR_DLL)
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 #endif
 
 #if defined(CONFIG_DDR_DLL)
@@ -94,42 +94,42 @@ phys_size_t initdram (int board_type)
        dram_size = fixed_sdram ();
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
        return dram_size;
 #endif
 
 #if !defined(CONFIG_RAM_AS_FLASH) /* LocalBus is not emulating flash */
        get_sys_info(&sysinfo);
        /* if localbus freq is less than 66Mhz,we use bypass mode,otherwise use DLL */
-       if(sysinfo.freqSystemBus/(CFG_LBC_LCRR & 0x0f) < 66000000) {
-               lbc->lcrr = (CFG_LBC_LCRR & 0x0fffffff)| 0x80000000;
+       if(sysinfo.freqSystemBus/(CONFIG_SYS_LBC_LCRR & 0x0f) < 66000000) {
+               lbc->lcrr = (CONFIG_SYS_LBC_LCRR & 0x0fffffff)| 0x80000000;
        } else {
-               lbc->lcrr = CFG_LBC_LCRR & 0x7fffffff;
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & 0x7fffffff;
                udelay(200);
                temp_lbcdll = gur->lbcdllcr;
                gur->lbcdllcr = ((temp_lbcdll & 0xff) << 16 ) | 0x80000000;
                asm("sync;isync;msync");
        }
-       lbc->or2 = CFG_OR2_PRELIM; /* 64MB SDRAM */
-       lbc->br2 = CFG_BR2_PRELIM;
-       lbc->lbcr = CFG_LBC_LBCR;
-       lbc->lsdmr = CFG_LBC_LSDMR_1;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM; /* 64MB SDRAM */
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1;
        asm("sync");
        * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_2;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2;
        asm("sync");
        * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_3;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_3;
        asm("sync");
        * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_4;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4;
        asm("sync");
        * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_5;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5;
        asm("sync");
-       lbc->lsrt = CFG_LBC_LSRT;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
        asm("sync");
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("sync");
 #endif
 
@@ -139,7 +139,7 @@ phys_size_t initdram (int board_type)
                 * enable errors */
                uint *p = 0;
                uint i = 0;
-               volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
+               volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
                dma_init();
                for (*p = 0; p < (uint *)(8 * 1024); p++) {
                        if (((unsigned int)p & 0x1f) == 0) { dcbz(p); }
@@ -181,11 +181,11 @@ phys_size_t initdram (int board_type)
        return dram_size;
 }
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("SDRAM test phase 1:\n");
@@ -221,15 +221,15 @@ int testdram (void)
  ************************************************************************/
 long int fixed_sdram (void)
 {
-#ifndef CFG_RAMBOOT
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
+#ifndef CONFIG_SYS_RAMBOOT
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
 
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
 #if defined (CONFIG_DDR_ECC)
        ddr->err_disable = 0x0000000D;
        ddr->err_sbe = 0x00ff0000;
@@ -238,14 +238,14 @@ long int fixed_sdram (void)
        udelay(500);
 #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
 #else
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
 #endif
        asm("sync; isync; msync");
        udelay(500);
 #endif
-       return (CFG_SDRAM_SIZE * 1024 * 1024);
+       return (CONFIG_SYS_SDRAM_SIZE * 1024 * 1024);
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
index 1003bf61341bd142a0c54d31cbecb337c9812613..06092f89bab96c096a4e11e2bef731d0d8349a59 100644 (file)
 #include <asm/mmu.h>
 
 struct fsl_e_tlb_entry tlb_table[] = {
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_1M, 1),
 
-  #if defined(CFG_FLASH_PORT_WIDTH_16)
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+  #if defined(CONFIG_SYS_FLASH_PORT_WIDTH_16)
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_4M, 1),
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE + 0x400000, CFG_FLASH_BASE + 0x400000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE + 0x400000, CONFIG_SYS_FLASH_BASE + 0x400000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_4M, 1),
   #else
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_16M, 1),
   #endif
 
   #if !defined(CONFIG_SPD_EEPROM)
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 4, BOOKE_PAGESZ_64M, 1),
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE + 0x4000000, CFG_DDR_SDRAM_BASE + 0x4000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 5, BOOKE_PAGESZ_64M, 1),
   #endif
 
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
   #if defined(CONFIG_RAM_AS_FLASH)
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
   #else
@@ -62,15 +62,15 @@ struct fsl_e_tlb_entry tlb_table[] = {
   #endif
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
-       SET_TLB_ENTRY(1, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(1, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 7, BOOKE_PAGESZ_16K, 1),
 
-       SET_TLB_ENTRY(1, CFG_PCI_MEM_PHYS, CFG_PCI_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI_MEM_PHYS, CONFIG_SYS_PCI_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 8, BOOKE_PAGESZ_256M, 1),
 
-       SET_TLB_ENTRY(1, CFG_BCSR, CFG_BCSR,
+       SET_TLB_ENTRY(1, CONFIG_SYS_BCSR, CONFIG_SYS_BCSR,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 9, BOOKE_PAGESZ_16K, 1),
 };
index 8454420f10551ac8e08d589dbadd0a0a26592561..8990fc60580b1dcb9437aa13a7ff53863dbadd54 100644 (file)
@@ -53,7 +53,7 @@ extern int gunzip(void *, int, uchar *, unsigned long *);
 extern int mem_test(ulong start, ulong ramsize, int quiet);
 
 #define I2C_BACKUP_ADDR 0x7C00         /* 0x200 bytes for backup */
-#define IMAGE_SIZE CFG_MONITOR_LEN     /* ugly, but it works for now */
+#define IMAGE_SIZE CONFIG_SYS_MONITOR_LEN      /* ugly, but it works for now */
 
 extern flash_info_t flash_info[];      /* info for FLASH chips */
 
@@ -270,7 +270,7 @@ mpl_prg_image(uchar *ld_addr)
 #if !defined(CONFIG_PATI)
 void get_backup_values(backup_t *buf)
 {
-       i2c_read(CFG_DEF_EEPROM_ADDR, I2C_BACKUP_ADDR,2,(void *)buf,sizeof(backup_t));
+       i2c_read(CONFIG_SYS_DEF_EEPROM_ADDR, I2C_BACKUP_ADDR,2,(void *)buf,sizeof(backup_t));
 }
 
 void set_backup_values(int overwrite)
@@ -298,7 +298,7 @@ void set_backup_values(int overwrite)
                return;
        }
        back.eth_addr[20]=0;
-       i2c_write(CFG_DEF_EEPROM_ADDR, I2C_BACKUP_ADDR,2,(void *)&back,sizeof(backup_t));
+       i2c_write(CONFIG_SYS_DEF_EEPROM_ADDR, I2C_BACKUP_ADDR,2,(void *)&back,sizeof(backup_t));
 }
 
 void clear_env_values(void)
@@ -308,8 +308,8 @@ void clear_env_values(void)
 
        memset(&back,0xff,sizeof(backup_t));
        memset(env_crc,0x00,4);
-       i2c_write(CFG_DEF_EEPROM_ADDR,I2C_BACKUP_ADDR,2,(void *)&back,sizeof(backup_t));
-       i2c_write(CFG_DEF_EEPROM_ADDR,CONFIG_ENV_OFFSET,2,(void *)env_crc,4);
+       i2c_write(CONFIG_SYS_DEF_EEPROM_ADDR,I2C_BACKUP_ADDR,2,(void *)&back,sizeof(backup_t));
+       i2c_write(CONFIG_SYS_DEF_EEPROM_ADDR,CONFIG_ENV_OFFSET,2,(void *)env_crc,4);
 }
 
 /*
@@ -322,7 +322,7 @@ int check_env_old_size(ulong oldsize)
        uchar buf[64];
 
        /* read old CRC */
-       eeprom_read (CFG_DEF_EEPROM_ADDR,
+       eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR,
                     CONFIG_ENV_OFFSET,
                     (uchar *)&crc, sizeof(ulong));
 
@@ -333,7 +333,7 @@ int check_env_old_size(ulong oldsize)
        while (len > 0) {
                int n = (len > sizeof(buf)) ? sizeof(buf) : len;
 
-               eeprom_read (CFG_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, buf, n);
+               eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, buf, n);
                new = crc32 (new, buf, n);
                len -= n;
                off += n;
@@ -362,7 +362,7 @@ void copy_old_env(ulong size)
        len=size;
        off = sizeof(long);
        while (len > off) {
-               eeprom_read (CFG_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, &c, 1);
+               eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, &c, 1);
                if(c != '=') {
                        *name++=c;
                        off++;
@@ -371,7 +371,7 @@ void copy_old_env(ulong size)
                        *name++='\0';
                        off++;
                        do {
-                               eeprom_read (CFG_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, &c, 1);
+                               eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, &c, 1);
                                *value++=c;
                                off++;
                                if(c == '\0')
@@ -485,7 +485,7 @@ int do_mplcommon(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        }
                        else {
                                local_args[1] = NULL;
-                               ld_addr=CFG_LOAD_ADDR;
+                               ld_addr=CONFIG_SYS_LOAD_ADDR;
                                result=do_fdcboot(cmdtp, 0, 1, local_args);
                        }
                        result=mpl_prg_image((uchar *)ld_addr);
@@ -519,14 +519,14 @@ int do_mplcommon(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        result = (int)simple_strtol(argv[2], NULL, 16);
            }
            src=(unsigned long)&result;
-           src-=CFG_MEMTEST_START;
+           src-=CONFIG_SYS_MEMTEST_START;
            src-=(100*1024); /* - 100k */
            src&=0xfff00000;
            size=0;
            do {
                size++;
                        printf("\n\nPass %ld\n",size);
-                       mem_test(CFG_MEMTEST_START,src,1);
+                       mem_test(CONFIG_SYS_MEMTEST_START,src,1);
                        if(ctrlc())
                                break;
                        if(result>0)
index b2d4f6f5e5f734f5f8e4102be4b7131708c5b47a..302d7a3d50ce4e9f666b8c475190b8c00887caa0 100644 (file)
@@ -52,7 +52,7 @@
 #include <mpc5xx.h>
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 /*-----------------------------------------------------------------------
  * Functions
  */
@@ -89,7 +89,7 @@ void unlock_intel_sectors(flash_info_t *info,ulong addr,ulong cnt);
  * The board_init_r will fill in wrong values in the board init structure,
  * but this will be fixed in the misc_init_r routine:
  * bd->bi_flashstart=0-flash_info[0].size
- * bd->bi_flashsize=flash_info[0].size-CFG_MONITOR_LEN
+ * bd->bi_flashsize=flash_info[0].size-CONFIG_SYS_MONITOR_LEN
  * bd->bi_flashoffset=0
  *
  */
@@ -174,13 +174,13 @@ unsigned long flash_init (void)
                        "MPS" : "Flash");
 #endif /* #if !defined(CONFIG_PATI) */
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here - FIXME XXX */
 
-       size_b0 = flash_get_size((vu_long *)CFG_MONITOR_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_MONITOR_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
@@ -188,10 +188,10 @@ unsigned long flash_init (void)
        }
        /* protect the bootloader */
        /* Monitor protection ON by default */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE+monitor_flash_len-1,
+                       CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                        &flash_info[0]);
 #endif
 #if !defined(CONFIG_PATI)
@@ -555,7 +555,7 @@ int wait_for_DQ7(flash_info_t *info, int sect)
        start = get_timer (0);
        last  = start;
        while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return ERR_TIMOUT;
                }
@@ -576,7 +576,7 @@ int intel_wait_for_DQ7(flash_info_t *info, int sect)
        start = get_timer (0);
        last  = start;
        while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return ERR_TIMOUT;
                }
@@ -848,7 +848,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                        udelay(10);
                        while ((dest2[i] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080)
                        {
-                               if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+                               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                        return (1);
                        }
                        dest2[i] = (FLASH_WORD_SIZE)0x00FF00FF; /* return to read mode */
@@ -869,7 +869,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                        start = get_timer (0);
                        while ((dest2[i] & (FLASH_WORD_SIZE)0x00800080) !=
                                (data2[i] & (FLASH_WORD_SIZE)0x00800080)) {
-                               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                        return (1);
                                }
                        }
index 51b2773c71a9ed19c76c3cc88cee384a134995e7..91829d44f3c61f14f6e9eb1f40c7c1829380172a 100644 (file)
@@ -113,9 +113,9 @@ const SIO_LOGDEV_TABLE sio_keyboard[] = {
 ********************************************************************************/
 unsigned char open_cfg_super_IO(int address)
 {
-       out8(CFG_ISA_IO_BASE_ADDRESS | address,0x55); /* open config */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address,0x20); /* set address to DEV ID */
-       if(in8(CFG_ISA_IO_BASE_ADDRESS | address | 0x1)==0x40) /* ok Device ID is correct */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,0x55); /* open config */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,0x20); /* set address to DEV ID */
+       if(in8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address | 0x1)==0x40) /* ok Device ID is correct */
                return TRUE;
        else
                return FALSE;
@@ -123,26 +123,26 @@ unsigned char open_cfg_super_IO(int address)
 
 void close_cfg_super_IO(int address)
 {
-       out8(CFG_ISA_IO_BASE_ADDRESS | address,0xAA); /* close config */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,0xAA); /* close config */
 }
 
 
 unsigned char read_cfg_super_IO(int address, unsigned char function, unsigned char regaddr)
 {
        /* assuming config reg is open */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address,0x7); /* points to the function reg */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address | 1,function); /* set the function no */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address,regaddr); /* sets the address in the function */
-       return in8(CFG_ISA_IO_BASE_ADDRESS | address | 1);
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,0x7); /* points to the function reg */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address | 1,function); /* set the function no */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,regaddr); /* sets the address in the function */
+       return in8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address | 1);
 }
 
 void write_cfg_super_IO(int address, unsigned char function, unsigned char regaddr, unsigned char data)
 {
        /* assuming config reg is open */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address,0x7); /* points to the function reg */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address | 1,function); /* set the function no */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address,regaddr); /* sets the address in the function */
-       out8(CFG_ISA_IO_BASE_ADDRESS | address | 1,data); /* writes the data */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,0x7); /* points to the function reg */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address | 1,function); /* set the function no */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address,regaddr); /* sets the address in the function */
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS | address | 1,data); /* writes the data */
 }
 
 void isa_write_table(SIO_LOGDEV_TABLE *ldt,unsigned char ldev)
@@ -208,12 +208,12 @@ static unsigned int cached_irq_mask = 0xfff9;
 
 #define cached_imr1    (unsigned char)cached_irq_mask
 #define cached_imr2    (unsigned char)(cached_irq_mask>>8)
-#define IMR_1          CFG_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT1_OCW1
-#define IMR_2          CFG_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT2_OCW1
-#define ICW1_1 CFG_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT1_ICW1
-#define ICW1_2 CFG_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT2_ICW1
-#define ICW2_1 CFG_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT1_ICW2
-#define ICW2_2 CFG_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT2_ICW2
+#define IMR_1          CONFIG_SYS_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT1_OCW1
+#define IMR_2          CONFIG_SYS_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT2_OCW1
+#define ICW1_1 CONFIG_SYS_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT1_ICW1
+#define ICW1_2 CONFIG_SYS_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT2_ICW1
+#define ICW2_1 CONFIG_SYS_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT1_ICW2
+#define ICW2_2 CONFIG_SYS_ISA_IO_BASE_ADDRESS + PIIX4_ISA_INT2_ICW2
 #define ICW3_1 ICW2_1
 #define ICW3_2 ICW2_2
 #define ICW4_1 ICW2_1
index b20b9532b11b5db62b402303866fa2a31a8dbedd..a457635d4de010e4fad90cabe10acfd90f19b381 100644 (file)
@@ -203,7 +203,7 @@ int isa_kbd_init(void)
        }
 }
 
-#ifdef CFG_CONSOLE_OVERWRITE_ROUTINE
+#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
 extern int overwrite_console (void);
 #else
 int overwrite_console (void)
@@ -452,22 +452,22 @@ unsigned char handle_kbd_event(void)
  */
 unsigned char kbd_read_status(void)
 {
-       return(in8(CFG_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT));
+       return(in8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT));
 }
 
 unsigned char kbd_read_input(void)
 {
-       return(in8(CFG_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT));
+       return(in8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT));
 }
 
 void kbd_write_command(unsigned char cmd)
 {
-       out8(CFG_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT,cmd);
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_COMMAND_PORT,cmd);
 }
 
 void kbd_write_output(unsigned char data)
 {
-       out8(CFG_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT, data);
+       out8(CONFIG_SYS_ISA_IO_BASE_ADDRESS + KDB_DATA_PORT, data);
 }
 
 int kbd_read_data(void)
index 666b999e372e9934cd3d03f10f1739ce98b0f06f..ad304426ebe519ffecddd0ce1e623df435c5b556 100644 (file)
@@ -621,7 +621,7 @@ int usb_lowlevel_init(void)
        pci_read_config_dword(busdevfunc,PCI_BASE_ADDRESS_4,&usb_base_addr);
        USB_UHCI_PRINTF("IO Base Address = 0x%lx\n",usb_base_addr);
        usb_base_addr&=0xFFFFFFF0;
-       usb_base_addr+=CFG_ISA_IO_BASE_ADDRESS;
+       usb_base_addr+=CONFIG_SYS_ISA_IO_BASE_ADDRESS;
        rh.devnum = 0;
        usb_init_skel();
        reset_hc();
index cf0afd1addf28d0b9ddaef97d97481b42941a0e8..5eb90e5903aeeddaafc4246e672405b240b1ec41 100644 (file)
@@ -250,7 +250,7 @@ int init_sdram (void)
        unsigned char   bc;
        unsigned long   sdram_tim, sdram_bank;
 
-       /*i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);*/
+       /*i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);*/
        (void) get_clocks ();
        gd->baudrate = 9600;
        serial_init ();
@@ -320,7 +320,7 @@ int init_sdram (void)
        serial_puts ("\n");
 #endif
        i = 0;
-       baseaddr = CFG_SDRAM_BASE;
+       baseaddr = CONFIG_SYS_SDRAM_BASE;
        while (sdram_table[i].sz != 0xff) {
                if (sdram_table[i].boardtype == bc)
                        break;
@@ -679,7 +679,7 @@ int misc_init_r (void)
 {
        /* adjust flash start and size as well as the offset */
        gd->bd->bi_flashstart=0-flash_info[0].size;
-       gd->bd->bi_flashsize=flash_info[0].size-CFG_MONITOR_LEN;
+       gd->bd->bi_flashsize=flash_info[0].size-CONFIG_SYS_MONITOR_LEN;
        gd->bd->bi_flashoffset=0;
 
        /* check, if RTC is running */
index 91683a38d175ea09f364317c22994233e155ba79..9d9531b54f3a1cb12769a78a50d59ecef48fee85 100644 (file)
@@ -37,7 +37,7 @@ extern void user_led0(int led_on);
 extern void user_led1(int led_on);
 
 /* ------------------------------------------------------------------------- */
-#if defined(CFG_PCI_CON_DEVICE)
+#if defined(CONFIG_SYS_PCI_CON_DEVICE)
 extern void pci_con_disc(void);
 extern void pci_con_connect(void);
 #endif
@@ -378,7 +378,7 @@ int do_pati(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        user_led1(led_on);
                return 0;
        }
-#if defined(CFG_PCI_CON_DEVICE)
+#if defined(CONFIG_SYS_PCI_CON_DEVICE)
        if (strcmp(argv[1], "con") == 0) {
                pci_con_connect();
                return 0;
index 0883c429faa27d297b9f772e6466ca4cf45e4ffb..85c5af956d3b59a0cd87a7ea2714e9412d0c2b25 100644 (file)
@@ -224,7 +224,7 @@ phys_size_t initdram(int board_type)
        /* rest standard operation programmed write burst length */
        /* we have a x32 bit bus to the SDRAM, so shift the addr with 2 */
        lmr<<=2;
-       in32(CFG_SDRAM_BASE + lmr);
+       in32(CONFIG_SYS_SDRAM_BASE + lmr);
        /* ok, we're done, return SDRAM size */
        return ((0x400000 << sdram_table[i].sz));               /* log2 value of 4MByte  */
 }
@@ -287,7 +287,7 @@ void show_pld_regs(void)
  ****************************************************************/
  void init_ios(void)
  {
-       volatile immap_t * immr = (immap_t *) CFG_IMMR;
+       volatile immap_t * immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile sysconf5xx_t *sysconf = &immr->im_siu_conf;
        unsigned long reg;
        reg=sysconf->sc_sgpiocr; /* Data direction register */
@@ -304,7 +304,7 @@ void show_pld_regs(void)
 
 void user_led0(int led_on)
 {
-       volatile immap_t * immr = (immap_t *) CFG_IMMR;
+       volatile immap_t * immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile sysconf5xx_t *sysconf = &immr->im_siu_conf;
        unsigned long reg;
        reg=sysconf->sc_sgpiodt2; /* Data register */
@@ -317,7 +317,7 @@ void user_led0(int led_on)
 
 void user_led1(int led_on)
 {
-       volatile immap_t * immr = (immap_t *) CFG_IMMR;
+       volatile immap_t * immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile sysconf5xx_t *sysconf = &immr->im_siu_conf;
        unsigned long reg;
        reg=sysconf->sc_sgpiodt2; /* Data register */
@@ -370,7 +370,7 @@ int checkboard (void)
 }
 
 
-#ifdef CFG_PCI_CON_DEVICE
+#ifdef CONFIG_SYS_PCI_CON_DEVICE
 /************************************************************************
  * PCI Communication
  *
@@ -610,9 +610,9 @@ void pci_con_disc(void)
        irq_free_handler(0x02);
        pci_con_connect();
 }
-#endif /* #ifdef CFG_PCI_CON_DEVICE */
+#endif /* #ifdef CONFIG_SYS_PCI_CON_DEVICE */
 
 /*
  * Absolute environment address for linker file.
  */
-GEN_ABS(env_start, CONFIG_ENV_OFFSET + CFG_FLASH_BASE);
+GEN_ABS(env_start, CONFIG_ENV_OFFSET + CONFIG_SYS_FLASH_BASE);
index 6cba892e78d990f9213f6f7f223fa529d901109b..3be010470904ea14a6d7c10992969025f5646352 100644 (file)
@@ -208,7 +208,7 @@ int board_early_init_f (void)
 #endif
 
        /* Read Serial Presence Detect Information */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        dataout[0] = 0;
        for (i = 0; i < 128; i++)
                datain[i] = 127;
@@ -386,7 +386,7 @@ int board_early_init_f (void)
        /* write SDRAM timing register */
        mtdcr (memcfga, mem_sdtr1);
        mtdcr (memcfgd, tmp);
-       baseaddr = CFG_SDRAM_BASE;
+       baseaddr = CONFIG_SYS_SDRAM_BASE;
        bank_size = (((unsigned long) density) << 22) / 2;
        /* insert AM value */
        tmp = ((unsigned long) t->mode - 1) << 13;
@@ -663,7 +663,7 @@ int misc_init_r (void)
 {
        /* adjust flash start and size as well as the offset */
        gd->bd->bi_flashstart=0-flash_info[0].size;
-       gd->bd->bi_flashsize=flash_info[0].size-CFG_MONITOR_LEN;
+       gd->bd->bi_flashsize=flash_info[0].size-CONFIG_SYS_MONITOR_LEN;
        gd->bd->bi_flashoffset=0;
 
        /* if PIP405 has booted from PCI, reset CCR0[24] as described in errata PCI_18 */
index 5815786ebf74c97c6569143448c26be9f1a9bd54..704ab2c71dbb363112640fbeae1234e03666f8c4 100644 (file)
@@ -35,7 +35,7 @@ void user_led0(unsigned char on);
 void user_led1(unsigned char on);
 
 
-#define PLD_BASE_ADDRESS               CFG_ISA_IO_BASE_ADDRESS + 0x800
+#define PLD_BASE_ADDRESS               CONFIG_SYS_ISA_IO_BASE_ADDRESS + 0x800
 #define PLD_PART_REG                   PLD_BASE_ADDRESS + 0
 #define PLD_VERS_REG                   PLD_BASE_ADDRESS + 1
 #define PLD_BOARD_CFG_REG              PLD_BASE_ADDRESS + 2
index 3895263fbe150baeaa5a740a421473661a2d0d33..7abf9cfba01fd58603f97fa0023d28bfcd3a3e1c 100644 (file)
@@ -30,7 +30,7 @@ ulong myflush (void);
 #define FLASH_BANK_SIZE        PHYS_FLASH_SIZE
 #define MAIN_SECT_SIZE  0x10000        /* 64 KB */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 #define CMD_READ_ARRAY         0x000000F0
@@ -41,8 +41,8 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 #define CMD_PROGRAM            0x000000A0
 #define CMD_UNLOCK_BYPASS      0x00000020
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00000555 << 1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x000002AA << 1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555 << 1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA << 1)))
 
 #define BIT_ERASE_DONE         0x00000080
 #define BIT_RDY_MASK           0x00000080
@@ -61,7 +61,7 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
@@ -75,8 +75,8 @@ ulong flash_init (void)
 #error "Unknown flash configured"
 #endif
                        flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -111,8 +111,8 @@ ulong flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -236,7 +236,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                                /* check timeout */
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip = TMO;
                                        break;
@@ -331,7 +331,7 @@ static int write_hword (flash_info_t * info, ulong dest, ushort data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        chip = ERR | TMO;
                        break;
                }
index 98557b400bb23e582cbb2c9c52ff0f49c3e3ffdd..0ec0c198b9ddc3635166009235dec4b6ada8c988 100644 (file)
@@ -154,8 +154,8 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("SDRAM: %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("SDRAM: %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
index af62cdfd282851fb93c509aca3ae7b35131f5c31..f83c1208a7257c80f06984a81ac0a78a79dcc93f 100644 (file)
@@ -47,9 +47,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index cf02242299fbf227955acb2df764873a810c57a1..32234d3e080c2403dfa4d9698888be00ad6adcd8 100644 (file)
@@ -47,9 +47,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index d2d824c5a7dc4530a2310a52cdef7c01eb819171..02ff0a3df5411e7ad83a5a201c9802a8839c5c83 100644 (file)
@@ -39,9 +39,9 @@ int dram_init (void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index 157c72d1546359e4a3e57524cf59924efddbaaa3..6b1e59f97f7212968ea81348fd59b1664acc66c8 100644 (file)
@@ -232,7 +232,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -243,7 +243,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -256,30 +256,30 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        long psize;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        long sizelittle, sizebig;
 #endif
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       sizelittle = try_init (memctl, CFG_PSDMR_LITTLE, CFG_OR1_LITTLE,
-                                                 (uchar *) CFG_SDRAM_BASE);
-       sizebig = try_init (memctl, CFG_PSDMR_BIG, CFG_OR1_BIG,
-                                                 (uchar *) CFG_SDRAM_BASE);
+       sizelittle = try_init (memctl, CONFIG_SYS_PSDMR_LITTLE, CONFIG_SYS_OR1_LITTLE,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
+       sizebig = try_init (memctl, CONFIG_SYS_PSDMR_BIG, CONFIG_SYS_OR1_BIG,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
        if (sizelittle < sizebig) {
                psize = sizebig;
        } else {
-               psize = try_init (memctl, CFG_PSDMR_LITTLE, CFG_OR1_LITTLE,
-                                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_LITTLE, CONFIG_SYS_OR1_LITTLE,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
        }
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -329,8 +329,8 @@ void ft_blob_update (void *blob, bd_t *bd)
                        "err:%s\n", fdt_strerror(nodeoffset));
        }
        /* update Flash addr, size */
-       flash_data[2] = cpu_to_be32 (CFG_FLASH_BASE);
-       flash_data[3] = cpu_to_be32 (CFG_FLASH_SIZE);
+       flash_data[2] = cpu_to_be32 (CONFIG_SYS_FLASH_BASE);
+       flash_data[3] = cpu_to_be32 (CONFIG_SYS_FLASH_SIZE);
        nodeoffset = fdt_path_offset (blob, "/localbus");
        if (nodeoffset >= 0) {
                ret = fdt_setprop (blob, nodeoffset, "ranges", flash_data,
index 74417c44f9e5c02bd5daef0e94ca1a2898f7dacc..7181bd8a423d95677a308b89139b2e3616fcac64 100644 (file)
@@ -37,7 +37,7 @@
 #include <asm/processor.h>
 #include <asm/io.h>
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -86,7 +86,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *           use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *           use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *           is something else than 0x00000000.
  */
 
@@ -96,7 +96,7 @@ phys_size_t initdram (int board_type)
        ulong dramsize2 = 0;
        uint svr, pvr;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -117,9 +117,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start (0);
-       test1 = get_ram_size ((long *)CFG_SDRAM_BASE, 0x20000000);
+       test1 = get_ram_size ((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        sdram_start(1);
-       test2 = get_ram_size ((long *)CFG_SDRAM_BASE, 0x20000000);
+       test2 = get_ram_size ((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        if (test1 > test2) {
                sdram_start (0);
                dramsize = test1;
@@ -146,10 +146,10 @@ phys_size_t initdram (int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start (0);
-       test2 = test1 = get_ram_size ((long *)(CFG_SDRAM_BASE + dramsize), 0x20000000);
+       test2 = test1 = get_ram_size ((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x20000000);
        if (!dramsize) {
                sdram_start (1);
-               test2 = get_ram_size ((long *)(CFG_SDRAM_BASE + dramsize), 0x20000000);
+               test2 = get_ram_size ((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x20000000);
        }
        if (test1 > test2) {
                sdram_start (0);
@@ -171,7 +171,7 @@ phys_size_t initdram (int board_type)
                out_be32 ((unsigned __iomem *)MPC5XXX_SDRAM_CS1CFG, dramsize); /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = in_be32 ((unsigned __iomem *)MPC5XXX_SDRAM_CS0CFG) & 0xFF;
@@ -189,7 +189,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
         /*
         * On MPC5200B we need to set the special configuration delay in the
@@ -239,8 +239,8 @@ struct kbd_data_t {
 
 struct kbd_data_t* get_keys (struct kbd_data_t *kbd_data)
 {
-       kbd_data->s1 = in_8 ((volatile uchar*)CFG_STATUS1_BASE);
-       kbd_data->s2 = in_8 ((volatile uchar*)CFG_STATUS2_BASE);
+       kbd_data->s1 = in_8 ((volatile uchar*)CONFIG_SYS_STATUS1_BASE);
+       kbd_data->s2 = in_8 ((volatile uchar*)CONFIG_SYS_STATUS2_BASE);
 
        return kbd_data;
 }
@@ -339,14 +339,14 @@ int misc_init_r (void)
        free (str);
 #endif /* CONFIG_PREBOOT */
 
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x38), ' ');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x39), ' ');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3A), ' ');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3B), ' ');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3C), ' ');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3D), ' ');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3E), ' ');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3F), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x38), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x39), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3A), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3B), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3C), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3D), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3E), ' ');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3F), ' ');
 
        return 0;
 }
@@ -354,25 +354,25 @@ int misc_init_r (void)
 int board_early_init_r (void)
 {
        out_be32 ((unsigned __iomem *)MPC5XXX_BOOTCS_CFG, in_be32 ((unsigned __iomem *)MPC5XXX_BOOTCS_CFG) & ~0x1);
-       out_be32 ((unsigned __iomem *)MPC5XXX_BOOTCS_START, START_REG(CFG_FLASH_BASE));
-       out_be32 ((unsigned __iomem *)MPC5XXX_CS0_START, START_REG(CFG_FLASH_BASE));
+       out_be32 ((unsigned __iomem *)MPC5XXX_BOOTCS_START, START_REG(CONFIG_SYS_FLASH_BASE));
+       out_be32 ((unsigned __iomem *)MPC5XXX_CS0_START, START_REG(CONFIG_SYS_FLASH_BASE));
        out_be32 ((unsigned __iomem *)MPC5XXX_BOOTCS_STOP,
-               STOP_REG(CFG_FLASH_BASE, CFG_FLASH_SIZE));
+               STOP_REG(CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_SIZE));
        out_be32 ((unsigned __iomem *)MPC5XXX_CS0_STOP,
-               STOP_REG(CFG_FLASH_BASE, CFG_FLASH_SIZE));
+               STOP_REG(CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_SIZE));
        return 0;
 }
 
 int last_stage_init (void)
 {
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x38), 'M');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x39), 'U');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3A), 'C');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3B), '.');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3C), 'M');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3D), 'C');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3E), '5');
-       out_8 ((volatile uchar *)(CFG_DISPLAY_BASE + 0x3F), '2');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x38), 'M');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x39), 'U');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3A), 'C');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3B), '.');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3C), 'M');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3D), 'C');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3E), '5');
+       out_8 ((volatile uchar *)(CONFIG_SYS_DISPLAY_BASE + 0x3F), '2');
 
        return 0;
 }
index 162f89c50045c6e3a99f8247591bfd1620d262f4..c1207f19606af4d538c9aec4272170a85118462d 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "mt48lc16m16a2-75.h"
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -70,7 +70,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -78,7 +78,7 @@ phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -99,9 +99,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = (ulong )get_ram_size((long *)CFG_SDRAM_BASE, 0x10000000);
+       test1 = (ulong )get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x10000000);
        sdram_start(1);
-       test2 = (ulong )get_ram_size((long *)CFG_SDRAM_BASE, 0x10000000);
+       test2 = (ulong )get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x10000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -121,7 +121,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -139,7 +139,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize + dramsize2;
 }
index 46035d77ccb5d5924f364324cc11999f963b87d8..40965be45d89e26c7cfd99b06868c6c7e9a72e5c 100644 (file)
@@ -26,7 +26,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -46,7 +46,7 @@
 #endif
 /*---------------------------------------------------------------------*/
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -118,15 +118,15 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here - FIXME XXX */
 
-       DEBUGF("\n## Get flash bank 1 size @ 0x%08x\n",CFG_FLASH_BASE0_PRELIM);
+       DEBUGF("\n## Get flash bank 1 size @ 0x%08x\n",CONFIG_SYS_FLASH_BASE0_PRELIM);
 
-       size_b0 = flash_get_size((vu_char *)CFG_FLASH_BASE0_PRELIM, &flash_info[0]);
+       size_b0 = flash_get_size((vu_char *)CONFIG_SYS_FLASH_BASE0_PRELIM, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0: "
@@ -135,21 +135,21 @@ unsigned long flash_init (void)
                        size_b0, size_b0<<20);
        }
 
-       DEBUGF("## Get flash bank 2 size @ 0x%08x\n",CFG_FLASH_BASE1_PRELIM);
-       size_b1 = flash_get_size((vu_char *)CFG_FLASH_BASE1_PRELIM, &flash_info[1]);
+       DEBUGF("## Get flash bank 2 size @ 0x%08x\n",CONFIG_SYS_FLASH_BASE1_PRELIM);
+       size_b1 = flash_get_size((vu_char *)CONFIG_SYS_FLASH_BASE1_PRELIM, &flash_info[1]);
 
        DEBUGF("## Prelim. Flash bank sizes: %08lx + 0x%08lx\n",size_b0,size_b1);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size_b0;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-       DEBUGF("protect monitor %x @ %x\n", CFG_MONITOR_BASE, monitor_flash_len);
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+       DEBUGF("protect monitor %x @ %x\n", CONFIG_SYS_MONITOR_BASE, monitor_flash_len);
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -164,13 +164,13 @@ unsigned long flash_init (void)
 
        if (size_b1) {
                flash_info[1].size = size_b1;
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
 
@@ -343,10 +343,10 @@ static ulong flash_get_size (vu_char *addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = BS(0xFF);             /* restore read mode */
@@ -414,7 +414,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = BS(*addr)) & BYTEME(0x00800080)) != BYTEME(0x00800080)) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = BS(0xB0); /* suspend erase        */
                                        *addr = BS(0xFF); /* reset to read mode */
@@ -497,7 +497,7 @@ static int write_data (flash_info_t *info, uchar *dest, uchar data)
        start = get_timer (0);
 
        while (((status = BS(*addr)) & BYTEME(0x00800080)) != BYTEME(0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = BS(0xFF);       /* restore read mode */
                        return 1;
                }
index 6f9eeb22f896b3ffc01c986ce0b7d9a89d2736eb..30b95ce1dbcadb9c1bb2b62ef979343beaad5919 100644 (file)
@@ -53,7 +53,7 @@ phys_size_t initdram (int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
index 0c0738cf27dc5472126a4f6ae22fcc8fce42798f..2d6acf5a7d396b3c950bc66eaf93568f44b5a860 100644 (file)
@@ -31,7 +31,7 @@
        #define mvdebug(p)
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #define FLASH_BUS_WIDTH                8
 
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
        unsigned long size_b0;
        int i;
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -416,7 +416,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        addr = (FDT *)(info->start[l_sect]);
 
        while ((addr[0] & ERASE_CONFIRM_DATA) != ERASE_CONFIRM_DATA) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -554,7 +554,7 @@ static int write_char (flash_info_t *info, ulong dest, uchar data)
        start = get_timer (0);
        addr = (vu_char *)dest;
        while (( (*addr) & WRITE_CONFIRM_DATA) != (data & WRITE_CONFIRM_DATA)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        printf(" *** ERROR: Flash write timeout !");
                        return (1);
                }
index 056fee78484c68fc482dbda7d723c3192cfdaa4a..69abb06251e4e4e6cb64a8f47ee3043c15b0a410 100644 (file)
@@ -38,8 +38,8 @@ u32 get_BoardType ()
 
 void init_2nd_DUART (void)
 {
-       NS16550_t console = (NS16550_t) CFG_NS16550_COM2;
-       int clock_divisor = CFG_NS16550_CLK / 16 / CONFIG_BAUDRATE;
+       NS16550_t console = (NS16550_t) CONFIG_SYS_NS16550_COM2;
+       int clock_divisor = CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE;
 
        *(u8 *) (0xfc004511) = 0x1;
        NS16550_init (console, clock_divisor);
@@ -84,7 +84,7 @@ phys_size_t initdram (int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
@@ -147,12 +147,12 @@ void pci_mvblue_clear_base (struct pci_controller *hose, pci_dev_t dev)
 void duart_setup (u32 base, u16 divisor)
 {
        printf ("duart setup ...");
-       out_8 ((u8 *) (CFG_ISA_IO + base + 3), 0x80);
-       out_8 ((u8 *) (CFG_ISA_IO + base + 0), divisor & 0xff);
-       out_8 ((u8 *) (CFG_ISA_IO + base + 1), divisor >> 8);
-       out_8 ((u8 *) (CFG_ISA_IO + base + 3), 0x03);
-       out_8 ((u8 *) (CFG_ISA_IO + base + 4), 0x03);
-       out_8 ((u8 *) (CFG_ISA_IO + base + 2), 0x07);
+       out_8 ((u8 *) (CONFIG_SYS_ISA_IO + base + 3), 0x80);
+       out_8 ((u8 *) (CONFIG_SYS_ISA_IO + base + 0), divisor & 0xff);
+       out_8 ((u8 *) (CONFIG_SYS_ISA_IO + base + 1), divisor >> 8);
+       out_8 ((u8 *) (CONFIG_SYS_ISA_IO + base + 3), 0x03);
+       out_8 ((u8 *) (CONFIG_SYS_ISA_IO + base + 4), 0x03);
+       out_8 ((u8 *) (CONFIG_SYS_ISA_IO + base + 2), 0x07);
        printf ("done\n");
 }
 
index 0ffc3783bf65f744bd5eb4a980f87da0b2dedf12..47f613c7fe4d294679310846d74af365997f3a23 100644 (file)
@@ -31,7 +31,7 @@ typedef unsigned long * p_u32;
 
 /* 4Mx16x2 IAM=0 CSD1 */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /*  Following Setting is for CSD1      */
 #define SFCTL                  0x00221004
@@ -46,7 +46,7 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 #define CMD_LCR                        (CMD_NORMAL + 0x60000000)       /* LCR Command                  */
 #define CMD_PROGRAM            (CMD_NORMAL + 0x70000000)
 
-#define MODE_REG_VAL           (CFG_FLASH_BASE+0x0008CC00)     /* Cas Latency 3                */
+#define MODE_REG_VAL           (CONFIG_SYS_FLASH_BASE+0x0008CC00)      /* Cas Latency 3                */
 
 /* LCR Command */
 #define LCR_READSTATUS         (0x0001C000)                    /* 0x70                         */
@@ -60,12 +60,12 @@ u32 SF_SR(void) {
        u32 tmp,tmp1;
 
        reg_SFCTL       = CMD_PROGRAM;
-       tmp             = __REG(CFG_FLASH_BASE);
+       tmp             = __REG(CONFIG_SYS_FLASH_BASE);
 
        reg_SFCTL       = CMD_NORMAL;
 
        reg_SFCTL       = CMD_LCR;                      /* Activate LCR Mode            */
-       tmp1            = __REG(CFG_FLASH_BASE + LCR_SR_CLEAR);
+       tmp1            = __REG(CONFIG_SYS_FLASH_BASE + LCR_SR_CLEAR);
 
        return tmp;
 }
@@ -96,7 +96,7 @@ void SF_PrechargeAll(void) {
        u32 tmp;
 
        reg_SFCTL       = CMD_PREC;                     /* Set Precharge Command        */
-       tmp             = __REG(CFG_FLASH_BASE + SYNCFLASH_A10); /* Issue Precharge All Command */
+       tmp             = __REG(CONFIG_SYS_FLASH_BASE + SYNCFLASH_A10); /* Issue Precharge All Command */
 }
 
 /* set SyncFlash to normal mode                        */
@@ -130,10 +130,10 @@ void SF_NvmodeErase(void) {
        SF_PrechargeAll();
 
        reg_SFCTL       = CMD_LCR;                      /* Set to LCR mode              */
-       __REG(CFG_FLASH_BASE + LCR_ERASE_NVMODE)  = 0;  /* Issue Erase Nvmode Reg Command */
+       __REG(CONFIG_SYS_FLASH_BASE + LCR_ERASE_NVMODE)  = 0;   /* Issue Erase Nvmode Reg Command */
 
        reg_SFCTL       = CMD_NORMAL;                   /* Return to Normal mode        */
-       __REG(CFG_FLASH_BASE + LCR_ERASE_NVMODE) = 0xC0C0C0C0;  /* Confirm              */
+       __REG(CONFIG_SYS_FLASH_BASE + LCR_ERASE_NVMODE) = 0xC0C0C0C0;   /* Confirm              */
 
        while(!SF_Ready());
 }
@@ -142,10 +142,10 @@ void SF_NvmodeWrite(void) {
        SF_PrechargeAll();
 
        reg_SFCTL       = CMD_LCR;                      /* Set to LCR mode              */
-       __REG(CFG_FLASH_BASE+LCR_PROG_NVMODE) = 0;      /* Issue Program Nvmode reg command */
+       __REG(CONFIG_SYS_FLASH_BASE+LCR_PROG_NVMODE) = 0;       /* Issue Program Nvmode reg command */
 
        reg_SFCTL       = CMD_NORMAL;                   /* Return to Normal mode        */
-       __REG(CFG_FLASH_BASE+LCR_PROG_NVMODE) = 0xC0C0C0C0;     /* Confirm not needed   */
+       __REG(CONFIG_SYS_FLASH_BASE+LCR_PROG_NVMODE) = 0xC0C0C0C0;      /* Confirm not needed   */
 }
 
 /****************************************************************************************/
@@ -169,17 +169,17 @@ ulong flash_init(void) {
        flash_info[i].flash_id  =  FLASH_MAN_MT | FLASH_MT28S4M16LC;
 
        flash_info[i].size      = FLASH_BANK_SIZE;
-       flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
+       flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
 
-       memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+       memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
 
        for (j = 0; j < flash_info[i].sector_count; j++) {
-               flash_info[i].start[j] = CFG_FLASH_BASE + j * 0x00100000;
+               flash_info[i].start[j] = CONFIG_SYS_FLASH_BASE + j * 0x00100000;
        }
 
        flash_protect(FLAG_PROTECT_SET,
-               CFG_FLASH_BASE,
-               CFG_FLASH_BASE + monitor_flash_len - 1,
+               CONFIG_SYS_FLASH_BASE,
+               CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                &flash_info[0]);
 
        flash_protect(FLAG_PROTECT_SET,
@@ -281,7 +281,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last) {
                SF_NvmodeErase();
                SF_NvmodeWrite();
 
-               SF_Erase(CFG_FLASH_BASE + (0x0100000 * sect));
+               SF_Erase(CONFIG_SYS_FLASH_BASE + (0x0100000 * sect));
                SF_Normal();
 
                printf("ok.\n");
index 8be0f49116da47b837a57d208d3c15a854afa4f2..da4ebe6e751a96f5133a54b81d2754dd4fffd2bb 100644 (file)
@@ -28,7 +28,7 @@
 #define FLASH_BANK_SIZE MX1FS2_FLASH_BANK_SIZE
 #define MAIN_SECT_SIZE  MX1FS2_FLASH_SECT_SIZE
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips   */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips   */
 
 /*
  * NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it
@@ -62,7 +62,7 @@ static void flash_reset(flash_info_t * info);
 static int write_word_intel(flash_info_t * info, FPWV * dest, FPW data);
 static int write_word_amd(flash_info_t * info, FPWV * dest, FPW data);
 #define write_word(in, de, da)   write_word_amd(in, de, da)
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 static void flash_sync_real_protect(flash_info_t * info);
 #endif
 
@@ -77,14 +77,14 @@ flash_init(void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
                flash_info[i].flash_id =
                    (FLASH_MAN_AMD & FLASH_VENDMASK) |
                    (FLASH_AM640U & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                switch (i) {
                case 0:
                        flashbase = MX1FS2_FLASH_BASE;
@@ -101,8 +101,8 @@ flash_init(void)
 
        /* Protect monitor and environment sectors */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_FLASH_BASE,
-                     CFG_FLASH_BASE + _bss_start - _armboot_start,
+                     CONFIG_SYS_FLASH_BASE,
+                     CONFIG_SYS_FLASH_BASE + _bss_start - _armboot_start,
                      &flash_info[0]);
 
        flash_protect(FLAG_PROTECT_SET,
@@ -389,7 +389,7 @@ flash_get_size(FPWV * addr, flash_info_t * info)
 }
 #endif /* 0 */
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 
@@ -528,7 +528,7 @@ flash_erase(flash_info_t * info, int s_first, int s_last)
                udelay(1000);
 
                while ((*addr & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                       if ((now = get_timer(0)) - start > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(0)) - start > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf("Timeout\n");
 
                                if (intel) {
@@ -720,7 +720,7 @@ write_word_amd(flash_info_t * info, FPWV * dest, FPW data)
        /* data polling for D7 */
        while (res == 0
               && (*dest & (FPW) 0x00800080) != (data & (FPW) 0x00800080)) {
-               if (get_timer(0) - start > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(0) - start > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW) 0x00F000F0;       /* reset bank */
                        printf("SHA timeout\n");
                        res = 1;
@@ -768,7 +768,7 @@ write_word_intel(flash_info_t * info, FPWV * dest, FPW data)
        start = get_timer(0);
 
        while (res == 0 && (*dest & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW) 0x00B000B0;       /* Suspend program      */
                        res = 1;
                }
@@ -783,7 +783,7 @@ write_word_intel(flash_info_t * info, FPWV * dest, FPW data)
        return (res);
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 int
index 4b2cb487aadb0ead6ec196e76b444f2eb9528581..56a4819b0891478e0699dd32df04dd69c0fd63e7 100644 (file)
@@ -29,19 +29,19 @@ lowlevel_init:
 
 /* Change PERCLK1DIV to 14 ie 14+1 */
        ldr             r0,     =PCDR
-       ldr             r1,     =CFG_PCDR_VAL
+       ldr             r1,     =CONFIG_SYS_PCDR_VAL
        str             r1,   [r0]
 
 /* set MCU PLL Control Register 0 */
 
        ldr             r0,     =MPCTL0
-       ldr             r1,     =CFG_MPCTL0_VAL
+       ldr             r1,     =CONFIG_SYS_MPCTL0_VAL
        str             r1,   [r0]
 
 /* set MCU PLL Control Register 1 */
 
        ldr             r0,     =MPCTL1
-       ldr             r1,     =CFG_MPCTL1_VAL
+       ldr             r1,     =CONFIG_SYS_MPCTL1_VAL
        str             r1,   [r0]
 
 /* set mpll restart bit */
@@ -63,13 +63,13 @@ lowlevel_init:
 /* set System PLL Control Register 0 */
 
        ldr             r0,     =SPCTL0
-       ldr             r1,     =CFG_SPCTL0_VAL
+       ldr             r1,     =CONFIG_SYS_SPCTL0_VAL
        str             r1,   [r0]
 
 /* set System PLL Control Register 1 */
 
        ldr             r0,     =SPCTL1
-       ldr             r1,     =CFG_SPCTL1_VAL
+       ldr             r1,     =CONFIG_SYS_SPCTL1_VAL
        str             r1,   [r0]
 
 /* set spll restart bit */
@@ -89,11 +89,11 @@ lowlevel_init:
        bne             1b
 
        ldr             r0,   =CSCR
-       ldr             r1,   =CFG_CSCR_VAL
+       ldr             r1,   =CONFIG_SYS_CSCR_VAL
        str             r1,   [r0]
 
        ldr             r0,   =GPCR
-       ldr             r1,   =CFG_GPCR_VAL
+       ldr             r1,   =CONFIG_SYS_GPCR_VAL
        str             r1,   [r0]
 
 /*
@@ -122,43 +122,43 @@ lowlevel_init:
        MCR p15,0,r0,c1,c0,0
 
        ldr             r0,     =GIUS(0)
-       ldr             r1,     =CFG_GIUS_A_VAL
+       ldr             r1,     =CONFIG_SYS_GIUS_A_VAL
        str             r1,   [r0]
 
        ldr             r0,     =FMCR
-       ldr             r1,     =CFG_FMCR_VAL
+       ldr             r1,     =CONFIG_SYS_FMCR_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS0U
-       ldr             r1,     =CFG_CS0U_VAL
+       ldr             r1,     =CONFIG_SYS_CS0U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS0L
-       ldr             r1,     =CFG_CS0L_VAL
+       ldr             r1,     =CONFIG_SYS_CS0L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS1U
-       ldr             r1,     =CFG_CS1U_VAL
+       ldr             r1,     =CONFIG_SYS_CS1U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS1L
-       ldr             r1,     =CFG_CS1L_VAL
+       ldr             r1,     =CONFIG_SYS_CS1L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS4U
-       ldr             r1,     =CFG_CS4U_VAL
+       ldr             r1,     =CONFIG_SYS_CS4U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS4L
-       ldr             r1,     =CFG_CS4L_VAL
+       ldr             r1,     =CONFIG_SYS_CS4L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS5U
-       ldr             r1,     =CFG_CS5U_VAL
+       ldr             r1,     =CONFIG_SYS_CS5U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS5L
-       ldr             r1,     =CFG_CS5L_VAL
+       ldr             r1,     =CONFIG_SYS_CS5L_VAL
        str             r1,   [r0]
 
 /* SDRAM Setup */
index d23e97625a828c4b698da7408e90270d8b353ca7..8a0eab55fbb8656a9a7c3deab6b251edab543440 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifndef CFG_OR_TIMING_FLASH_AT_50MHZ
-#define CFG_OR_TIMING_FLASH_AT_50MHZ (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#ifndef CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ
+#define CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                      OR_SCY_2_CLK | OR_EHTR | OR_BI)
 #endif
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -90,15 +90,15 @@ static void flash_get_offsets (ulong base, flash_info_t * info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0;
        int i;
-#ifdef CFG_OR_TIMING_FLASH_AT_50MHZ
+#ifdef CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ
        int scy, trlx, flash_or_timing, clk_diff;
 
-       scy = (CFG_OR_TIMING_FLASH_AT_50MHZ & OR_SCY_MSK) >> 4;
-       if (CFG_OR_TIMING_FLASH_AT_50MHZ & OR_TRLX) {
+       scy = (CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ & OR_SCY_MSK) >> 4;
+       if (CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ & OR_TRLX) {
                trlx = OR_TRLX;
                scy *= 2;
        } else
@@ -134,11 +134,11 @@ unsigned long flash_init (void)
                scy = 1;
 
        flash_or_timing = (scy << 4) | trlx |
-                         (CFG_OR_TIMING_FLASH_AT_50MHZ & ~(OR_TRLX | OR_SCY_MSK));
+                         (CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ & ~(OR_TRLX | OR_SCY_MSK));
 #endif
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -151,23 +151,23 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-#ifndef CFG_OR_TIMING_FLASH_AT_50MHZ
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
+#ifndef CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
 #else
        memctl->memc_or0 = flash_or_timing | (-size_b0 & OR_AM_MSK);
 #endif
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_PS_8 | BR_MS_GPCM | BR_V;
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_PS_8 | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size ((FPW *) CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size ((FPW *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        (void) flash_protect (FLAG_PROTECT_SET,
-                               CFG_MONITOR_BASE,
-                               CFG_MONITOR_BASE + monitor_flash_len - 1,
+                               CONFIG_SYS_MONITOR_BASE,
+                               CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                                &flash_info[0]);
 #endif
 
@@ -316,10 +316,10 @@ static ulong flash_get_size (FPWV * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -390,7 +390,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                           if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                           if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -530,7 +530,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
        start = get_timer (0);
 
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index 657abc46d8617efe3fae67e271a76dcc95116b2f..056230da61cc360e24f7dc5c75e0b6f461081618 100644 (file)
@@ -130,7 +130,7 @@ static long int dram_size (long int, long int *, long int);
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size8, size9;
        long int size_b0 = 0;
@@ -145,7 +145,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
@@ -154,10 +154,10 @@ phys_size_t initdram (int board_type)
         * preliminary address - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -177,14 +177,14 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
 
        udelay (1000);
 
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, SDRAM_BASE3_PRELIM, SDRAM_MAX_SIZE);
 
        udelay (1000);
 
@@ -192,7 +192,7 @@ phys_size_t initdram (int board_type)
                size_b0 = size9;
        } else {
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
        }
 
@@ -202,7 +202,7 @@ phys_size_t initdram (int board_type)
         */
        if ((size_b0 < 0x02000000)) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
@@ -210,12 +210,12 @@ phys_size_t initdram (int board_type)
         * Final mapping
         */
 
-       memctl->memc_or3 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br3 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or3 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br3 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        /* adjust refresh rate depending on SDRAM type, one bank */
        reg = memctl->memc_mptpr;
-       reg >>= 1;                                      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+       reg >>= 1;                                      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
        memctl->memc_mptpr = reg;
 
        udelay (10000);
@@ -224,7 +224,7 @@ phys_size_t initdram (int board_type)
        upmconfig (UPMB, (uint *) nand_flash_table,
                           sizeof (nand_flash_table) / sizeof (uint));
 
-       memctl->memc_mbmr = CFG_MBMR_NAND;
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_NAND;
 
        return (size_b0);
 }
@@ -241,7 +241,7 @@ phys_size_t initdram (int board_type)
 
 static long int dram_size (long int mamr_value, long int *base, long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -269,7 +269,7 @@ int misc_init_r(void)
           0 - cp850
           1 - kp852
        */
-       pParam = (char*)(CFG_CPLD_BASE);
+       pParam = (char*)(CONFIG_SYS_CPLD_BASE);
        if( *pParam != 0)
                iCompatMode = 1;
 
index cf0bc095b11f2520d1cc1e366a3941d2295f852e..8852127e61e38b350ce2a1e18d000e4fe1be2055 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,7 +38,7 @@ static void flash_get_offsets(ulong base, flash_info_t * info);
 
 unsigned long flash_init(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size;
 #if CONFIG_NETPHONE_VERSION == 2
@@ -47,7 +47,7 @@ unsigned long flash_init(void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i)
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
        size = flash_get_size((vu_long *) FLASH_BASE0_PRELIM, &flash_info[0]);
@@ -58,17 +58,17 @@ unsigned long flash_init(void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *) CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets(CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets(CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE, CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -92,13 +92,13 @@ unsigned long flash_init(void)
                        printf("## Unknown FLASH on Bank 1 - Size = 0x%08lx = %ld MB\n", size1, size1 << 20);
 
                /* Remap FLASH according to real size */
-               memctl->memc_or4 = CFG_OR_TIMING_FLASH | (-size1 & 0xFFFF8000);
-               memctl->memc_br4 = (CFG_FLASH_BASE4 & BR_BA_MSK) | (memctl->memc_br4 & ~(BR_BA_MSK));
+               memctl->memc_or4 = CONFIG_SYS_OR_TIMING_FLASH | (-size1 & 0xFFFF8000);
+               memctl->memc_br4 = (CONFIG_SYS_FLASH_BASE4 & BR_BA_MSK) | (memctl->memc_br4 & ~(BR_BA_MSK));
 
                /* Re-do sizing to get full correct info */
-               size1 = flash_get_size((vu_long *) CFG_FLASH_BASE4, &flash_info[1]);
+               size1 = flash_get_size((vu_long *) CONFIG_SYS_FLASH_BASE4, &flash_info[1]);
 
-               flash_get_offsets(CFG_FLASH_BASE4, &flash_info[1]);
+               flash_get_offsets(CONFIG_SYS_FLASH_BASE4, &flash_info[1]);
 
                size += size1;
        } else
@@ -448,7 +448,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        last = start;
        addr = (vu_char *) (info->start[l_sect]);
        while ((addr[0] & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return 1;
                }
@@ -521,7 +521,7 @@ static int write_byte(flash_info_t * info, ulong dest, uchar data)
        /* data polling for D7 */
        start = get_timer(0);
        while ((*((vu_char *) dest) & 0x80) != (data & 0x80)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 38eb7c81181b6f68e2f2b6623a4aaa85fd2403ae..53d3172068d8dccb739374b1b56316bf2f8d253f 100644 (file)
@@ -356,7 +356,7 @@ static const uint nandcs_table[0x40] = {
 #define MAR_SDRAM_INIT         ((CAS_LATENCY << 6) | 0x00000008LU)
 
 /* 8 */
-#define CFG_MAMR       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR        ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
@@ -406,7 +406,7 @@ void check_ram(unsigned int addr, unsigned int size)
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
 
@@ -422,10 +422,10 @@ phys_size_t initdram(int board_type)
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
-       memctl->memc_mbmr = CFG_MAMR & ~MAMR_PTAE;      /* no refresh yet */
+       memctl->memc_mbmr = CONFIG_SYS_MAMR & ~MAMR_PTAE;       /* no refresh yet */
 
        udelay(200);
 
@@ -546,7 +546,7 @@ void reset_phys(void)
 
 int board_early_init_f(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile iop8xx_t *ioport = &immap->im_ioport;
        volatile cpm8xx_t *cpm = &immap->im_cpm;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -602,13 +602,13 @@ int board_early_init_f(void)
 #include <linux/mtd/nand_legacy.h>
 
 extern ulong nand_probe(ulong physadr);
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 
 void nand_init(void)
 {
        unsigned long totlen;
 
-       totlen = nand_probe(CFG_NAND_BASE);
+       totlen = nand_probe(CONFIG_SYS_NAND_BASE);
        printf ("%4lu MB\n", totlen >> 20);
 }
 #endif
@@ -626,7 +626,7 @@ void hw_watchdog_reset(void)
 
 static volatile int left_to_poll = PHONE_CONSOLE_POLL_HZ;      /* poll */
 
-/* called from timer interrupt every 1/CFG_HZ sec */
+/* called from timer interrupt every 1/CONFIG_SYS_HZ sec */
 void board_show_activity(ulong timestamp)
 {
        if (left_to_poll > -PHONE_CONSOLE_POLL_HZ)
@@ -656,7 +656,7 @@ void show_activity(int arg)
 
 #endif
 
-#if defined(CFG_CONSOLE_IS_IN_ENV) && defined(CFG_CONSOLE_OVERWRITE_ROUTINE)
+#if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
 int overwrite_console(void)
 {
        /* printf("overwrite_console called\n"); */
@@ -679,16 +679,16 @@ int last_stage_init(void)
 
 #if CONFIG_NETPHONE_VERSION == 2
        /* assert peripheral reset */
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat &= ~_BW(12);
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat &= ~_BW(12);
        for (i = 0; i < 10; i++)
                udelay(1000);
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat |=  _BW(12);
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat |=  _BW(12);
 #endif
        reset_phys();
 
        /* check in order to enable the local console */
        left_to_poll = PHONE_CONSOLE_POLL_HZ;
-       i = CFG_HZ * 2;
+       i = CONFIG_SYS_HZ * 2;
        while (i > 0) {
 
                if (tstc()) {
@@ -702,7 +702,7 @@ int last_stage_init(void)
                        status_led_set(0, STATUS_LED_ON);
                        while (!drv_phone_is_idle()) {
                                do_poll();
-                               udelay(1000000 / CFG_HZ);
+                               udelay(1000000 / CONFIG_SYS_HZ);
                        }
 
                        console_assign(stdin, "phone");
@@ -712,7 +712,7 @@ int last_stage_init(void)
                        break;
                }
 
-               udelay(1000000 / CFG_HZ);
+               udelay(1000000 / CONFIG_SYS_HZ);
                i--;
                left_to_poll--;
        }
index 408ada01692282f9c711ce43d640f0b6fa9f037b..d9b0ad3768ddfcd5563d32c34c957f8eeae6f4cd 100644 (file)
 #define ROWS   24
 #define COLS   80
 
-#define REFRESH_HZ             (CFG_HZ/50)     /* refresh every 20ms */
-#define BLINK_HZ               (CFG_HZ/2)      /* cursor blink every 500ms */
+#define REFRESH_HZ             (CONFIG_SYS_HZ/50)      /* refresh every 20ms */
+#define BLINK_HZ               (CONFIG_SYS_HZ/2)       /* cursor blink every 500ms */
 
 /*************************************************************************************************/
 
-#define DISPLAY_BACKLIT_PORT   ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat
+#define DISPLAY_BACKLIT_PORT   ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat
 #define DISPLAY_BACKLIT_MASK   0x0010
 
 /*************************************************************************************************/
 
-#define KP_STABLE_HZ           (CFG_HZ/100)    /* stable for 10ms */
-#define KP_REPEAT_DELAY_HZ     (CFG_HZ/4)      /* delay before repeat 250ms */
-#define KP_REPEAT_HZ           (CFG_HZ/20)     /* repeat every 50ms */
-#define KP_FORCE_DELAY_HZ      (CFG_HZ/2)      /* key was force pressed */
-#define KP_IDLE_DELAY_HZ       (CFG_HZ/2)      /* key was released and idle */
+#define KP_STABLE_HZ           (CONFIG_SYS_HZ/100)     /* stable for 10ms */
+#define KP_REPEAT_DELAY_HZ     (CONFIG_SYS_HZ/4)       /* delay before repeat 250ms */
+#define KP_REPEAT_HZ           (CONFIG_SYS_HZ/20)      /* repeat every 50ms */
+#define KP_FORCE_DELAY_HZ      (CONFIG_SYS_HZ/2)       /* key was force pressed */
+#define KP_IDLE_DELAY_HZ       (CONFIG_SYS_HZ/2)       /* key was released and idle */
 
 #if CONFIG_NETPHONE_VERSION == 1
-#define KP_SPI_RXD_PORT (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat)
+#define KP_SPI_RXD_PORT (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat)
 #define KP_SPI_RXD_MASK 0x0008
 
-#define KP_SPI_TXD_PORT (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat)
+#define KP_SPI_TXD_PORT (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat)
 #define KP_SPI_TXD_MASK 0x0004
 
-#define KP_SPI_CLK_PORT (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat)
+#define KP_SPI_CLK_PORT (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat)
 #define KP_SPI_CLK_MASK 0x0001
 #elif CONFIG_NETPHONE_VERSION == 2
-#define KP_SPI_RXD_PORT (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define KP_SPI_RXD_PORT (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define KP_SPI_RXD_MASK 0x00000008
 
-#define KP_SPI_TXD_PORT (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define KP_SPI_TXD_PORT (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define KP_SPI_TXD_MASK 0x00000004
 
-#define KP_SPI_CLK_PORT (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define KP_SPI_CLK_PORT (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define KP_SPI_CLK_MASK 0x00000002
 #endif
 
-#define KP_CS_PORT     (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat)
+#define KP_CS_PORT     (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat)
 #define KP_CS_MASK     0x00000010
 
 #define KP_SPI_RXD() (KP_SPI_RXD_PORT & KP_SPI_RXD_MASK)
@@ -983,7 +983,7 @@ unsigned int kp_get_col_mask(unsigned int row_mask)
 #if CONFIG_NETPHONE_VERSION == 1
        col_mask = kp_data_transfer(val) & 0x0F;
 #elif CONFIG_NETPHONE_VERSION == 2
-       col_mask = ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat & 0x0f;
+       col_mask = ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat & 0x0f;
        /* XXX FUCK FUCK FUCK FUCK FUCK!!!! */
        col_mask = ((col_mask & 0x08) >> 3) |   /* BKBR1 */
                   ((col_mask & 0x04) << 1) |   /* BKBR2 */
index c144741822b41fdc90d1af7cb41d2307bbebc992..aa8a0975cf0c4d7107100302dae84eea54211a03 100644 (file)
@@ -134,7 +134,7 @@ u32 hcu_get_slot(void)
  */
 u32 get_serial_number(void)
 {
-       u32 serial = in_be32((u32 *)CFG_FLASH_BASE);
+       u32 serial = in_be32((u32 *)CONFIG_SYS_FLASH_BASE);
 
        if (serial == 0xffffffff)
                return 0;
index 75c0dd7cd3e9974c0c75e0fbe20207123f065d4f..f64987637a883c1c1e2d4ccfb2a7bf6dbe7c4232 100644 (file)
@@ -33,7 +33,7 @@ vector and start running.
 On-Chip Memory
 --------------
 
-0xe0010000- 0xe0013fff   CFG_OCM_BASE
+0xe0010000- 0xe0013fff   CONFIG_SYS_OCM_BASE
 The 440EPx includes a 16K on-chip memory that can be placed however
 software chooses.
 
@@ -149,7 +149,7 @@ From now on our copy is in RAM and we will run from there,
        setup bd flash info
        cpu_init_r: (cpu/ppc4xx/cpu_init.c)
            peripheral chip select in using defines like
-           CFG_EBC_PB0A, CFG_EBC_PB0C from hcu5.h
+           CONFIG_SYS_EBC_PB0A, CONFIG_SYS_EBC_PB0C from hcu5.h
        mem_malloc_init
        malloc_bin_reloc
        spi_init (r or f)??? (CONFIG_ENV_IS_IN_EEPROM)
@@ -168,4 +168,4 @@ include/ppc440.h
 Drivers for serial etc are found under drivers/
 
 Don't ask question if you did not look at the README !!
-Most CFG_* and CONFIG_* switches are mentioned/explained there.
+Most CONFIG_SYS_* and CONFIG_* switches are mentioned/explained there.
index f3428c2ad882f64833761fcedf4aec7afddd578d..6f4ec296cb2572070decfdfef8e907707cb59946 100644 (file)
@@ -26,7 +26,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #undef BOOTSTRAP_OPTION_A_ACTIVE
 
@@ -40,9 +40,9 @@ extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 #define SDR0_ECID2             0x0082
 #define SDR0_ECID3             0x0083
 
-#define SYS_IO_ADDRESS                 (CFG_CS_2 + 0x00e00000)
-#define SYS_SLOT_ADDRESS               (CFG_CPLD + 0x00400000)
-#define HCU_DIGITAL_IO_REGISTER        (CFG_CPLD + 0x0500000)
+#define SYS_IO_ADDRESS                 (CONFIG_SYS_CS_2 + 0x00e00000)
+#define SYS_SLOT_ADDRESS               (CONFIG_SYS_CPLD + 0x00400000)
+#define HCU_DIGITAL_IO_REGISTER        (CONFIG_SYS_CPLD + 0x0500000)
 #define HCU_SW_INSTALL_REQUESTED       0x10
 
 /*
@@ -212,7 +212,7 @@ void hcu_led_set(u32 value)
  */
 u32 get_serial_number(void)
 {
-       u32 *serial = (u32 *)CFG_FLASH_BASE;
+       u32 *serial = (u32 *)CONFIG_SYS_FLASH_BASE;
 
        if (in_be32(serial) == 0xffffffff)
                return 0;
@@ -243,7 +243,7 @@ int misc_init_r(void)
 #ifdef CONFIG_ENV_IS_IN_FLASH
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
@@ -399,18 +399,18 @@ void pci_target_init(struct pci_controller *hose)
         */
        /* PMM0 Mask/Attribute - disabled b4 setting */
        out32r(PCIX0_PMM0MA, 0x00000000);
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
        /* PMM0 PCI Low Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE);
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE);
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        /* 512M + No prefetching, and enable region */
        out32r(PCIX0_PMM0MA, 0xE0000001);
 
        /* PMM0 Mask/Attribute - disabled b4 setting */
        out32r(PCIX0_PMM1MA, 0x00000000);
-       out32r(PCIX0_PMM1LA, CFG_PCI_MEMBASE2); /* PMM0 Local Address */
+       out32r(PCIX0_PMM1LA, CONFIG_SYS_PCI_MEMBASE2);  /* PMM0 Local Address */
        /* PMM0 PCI Low Address */
-       out32r(PCIX0_PMM1PCILA, CFG_PCI_MEMBASE2);
+       out32r(PCIX0_PMM1PCILA, CONFIG_SYS_PCI_MEMBASE2);
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        /* 512M + No prefetching, and enable region */
        out32r(PCIX0_PMM1MA, 0xE0000001);
@@ -426,8 +426,8 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's subsystem id/vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
-       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_ID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_ID);
 
        /* Configure command register as bus master */
        pci_write_config_word(0, PCI_COMMAND, PCI_COMMAND_MASTER);
index d73c861e66880165a343333021b18042834da1a9..05b5e389c20e661f831d8eb3c275ee41d2b12196 100644 (file)
@@ -42,7 +42,7 @@ tlbtab:
        /* TLB#0: vxWorks needs this entry for the Machine Check interrupt, */
        tlbentry( 0x40000000, SZ_256M, 0, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
        /* TLB#1: TLB-entry for DDR SDRAM (Up to 2GB) */
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, CFG_SDRAM_BASE, 0,
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, CONFIG_SYS_SDRAM_BASE, 0,
                AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB#2: TLB-entry for EBC */
@@ -53,7 +53,7 @@ tlbtab:
         * off to use the speed up boot process. It is patched after relocation
         * to enable SA_I
         */
-       tlbentry( CFG_BOOT_BASE_ADDR, SZ_1M, CFG_BOOT_BASE_ADDR, 1,
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_1M, CONFIG_SYS_BOOT_BASE_ADDR, 1,
                AC_R|AC_W|AC_X|SA_G)
 
        /*
@@ -63,13 +63,13 @@ tlbtab:
         */
 
        /* TLB#4: */
-       tlbentry( CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 1,
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 1,
                AC_R|AC_W|SA_G|SA_I )
        /* TLB#5: */
-       tlbentry( CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 1,
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 1,
                AC_R|AC_W|SA_G|SA_I )
        /* TLB#6: */
-       tlbentry( CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 1,
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 1,
                AC_R|AC_W|SA_G|SA_I )
 
        /* TLB-entry for Internal Registers & OCM */
@@ -87,20 +87,20 @@ tlbtab:
 
        /*              CAN */
        /* TLB#10: */
-       tlbentry( CFG_CS_1, SZ_1K, CFG_CS_1, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CS_1, SZ_1K, CONFIG_SYS_CS_1, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB#11:  CPLD and IMC-Standard 32 MB */
-       tlbentry( CFG_CS_2, SZ_16M, CFG_CS_2, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CS_2, SZ_16M, CONFIG_SYS_CS_2, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
 
        /* TLB#12: */
-       tlbentry( CFG_CS_2 + 0x1000000, SZ_16M, CFG_CS_2 + 0x1000000, 1,
+       tlbentry( CONFIG_SYS_CS_2 + 0x1000000, SZ_16M, CONFIG_SYS_CS_2 + 0x1000000, 1,
                AC_R|AC_W|AC_X|SA_G|SA_I )
 
         /*             IMC-Fast 32 MB */
        /* TLB#13: */
-       tlbentry( CFG_CS_3, SZ_16M, CFG_CS_3, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_CS_3, SZ_16M, CONFIG_SYS_CS_3, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
        /* TLB#14: */
-       tlbentry( CFG_CS_3 + 0x1000000, SZ_16M, CFG_CS_3, 1,
+       tlbentry( CONFIG_SYS_CS_3 + 0x1000000, SZ_16M, CONFIG_SYS_CS_3, 1,
                AC_R|AC_W|AC_X|SA_G|SA_I )
 
        tlbtab_end
index e5df62ef7adb2993293e262249ed8371858883c1..f59bd7d1895fa6a2f07d4267cdfa14c31e02500b 100644 (file)
@@ -263,20 +263,20 @@ phys_size_t initdram (int board_type)
        /*
         * Program tlb entries for this size (dynamic)
         */
-       remove_tlb(CFG_SDRAM_BASE, 256 << 20);
+       remove_tlb(CONFIG_SYS_SDRAM_BASE, 256 << 20);
        program_tlb(0, 0, dram_size, TLB_WORD2_W_ENABLE | TLB_WORD2_I_ENABLE);
 
        /*
         * Setup 2nd TLB with same physical address but different virtual
         * address with cache enabled. This is done for fast ECC generation.
         */
-       program_tlb(0, CFG_DDR_CACHED_ADDR, dram_size, 0);
+       program_tlb(0, CONFIG_SYS_DDR_CACHED_ADDR, dram_size, 0);
 
 #ifdef CONFIG_DDR_ECC
        /*
         * If ECC is enabled, initialize the parity bits.
         */
-       program_ecc(CFG_DDR_CACHED_ADDR, dram_size);
+       program_ecc(CONFIG_SYS_DDR_CACHED_ADDR, dram_size);
 #endif
 
        return (dram_size);
index c72e5ba69975696252243fdf8f8788e1c769bf92..f857ef3c0f33c3c747b0812b54084a1b6d583e69 100644 (file)
@@ -136,7 +136,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFFB000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFFB000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index ed171bfeb072a841c9dd66b341353130fcd3088b..66ed95fb9dd993faeecd1e87c529109dd3a3d2af 100644 (file)
@@ -74,9 +74,9 @@ int board_early_init_f (void)
        mtdcr(cntrl1, CPC0_CR1_VALUE);
        mtdcr(ecr, 0x60606000);
        mtdcr(CPC0_EIRR, 0x7C000000);
-       out32(GPIO0_OR,         CFG_GPIO0_OR );
-       out32(GPIO0_TCR,        CFG_GPIO0_TCR);
-       out32(GPIO0_ODR,        CFG_GPIO0_ODR);
+       out32(GPIO0_OR,         CONFIG_SYS_GPIO0_OR );
+       out32(GPIO0_TCR,        CONFIG_SYS_GPIO0_TCR);
+       out32(GPIO0_ODR,        CONFIG_SYS_GPIO0_ODR);
        mtspr(ccr0,      0x00700000);
 
        return 0;
@@ -141,7 +141,7 @@ u32 hcu_get_slot(void)
  */
 u32 get_serial_number(void)
 {
-       u32 serial = in_be32((u32 *)CFG_FLASH_BASE);
+       u32 serial = in_be32((u32 *)CONFIG_SYS_FLASH_BASE);
 
        if (serial == 0xffffffff)
                return 0;
index 692c4167807c61f71a3d7846c1257105dcff09ed..e9eca35e0f7146ee82f21a06787087bfe72b1a90 100644 (file)
 
 #include "crcek.h"
 
-#if (CFG_MAX_FLASH_BANKS > 1)
+#if (CONFIG_SYS_MAX_FLASH_BANKS > 1)
 #error There is always only _one_ flash chip
 #endif
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #define CMD_READ_ARRAY         0x000000f0
 #define CMD_UNLOCK1            0x000000aa
@@ -47,8 +47,8 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 #define CMD_PROGRAM            0x000000a0
 #define CMD_UNLOCK_BYPASS      0x00000020
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00000555 << 1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x000002aa << 1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555 << 1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002aa << 1)))
 
 #define BIT_ERASE_DONE         0x00000080
 #define BIT_RDY_MASK           0x00000080
@@ -65,27 +65,27 @@ ulong flash_init(void)
        flash_info[0].flash_id = (AMD_MANUFACT & FLASH_VENDMASK) |
                                 (AMD_ID_LV800B & FLASH_TYPEMASK);
        flash_info[0].size = PHYS_FLASH_1_SIZE;
-       flash_info[0].sector_count = CFG_MAX_FLASH_SECT;
-       memset(flash_info[0].protect, 0, CFG_MAX_FLASH_SECT);
+       flash_info[0].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+       memset(flash_info[0].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
 
        for (i = 0; i < flash_info[0].sector_count; i++) {
                switch (i) {
                case 0: /* 16kB */
-                       flash_info[0].start[0] = CFG_FLASH_BASE;
+                       flash_info[0].start[0] = CONFIG_SYS_FLASH_BASE;
                        break;
                case 1: /* 8kB */
-                       flash_info[0].start[1] = CFG_FLASH_BASE + 0x4000;
+                       flash_info[0].start[1] = CONFIG_SYS_FLASH_BASE + 0x4000;
                        break;
                case 2: /* 8kB */
-                       flash_info[0].start[2] = CFG_FLASH_BASE + 0x4000 +
+                       flash_info[0].start[2] = CONFIG_SYS_FLASH_BASE + 0x4000 +
                                                 0x2000;
                        break;
                case 3: /* 32 KB */
-                       flash_info[0].start[3] = CFG_FLASH_BASE + 0x4000 +
+                       flash_info[0].start[3] = CONFIG_SYS_FLASH_BASE + 0x4000 +
                                                 2 * 0x2000;
                        break;
                case 4:
-                       flash_info[0].start[4] = CFG_FLASH_BASE + 0x4000 +
+                       flash_info[0].start[4] = CONFIG_SYS_FLASH_BASE + 0x4000 +
                                                 2 * 0x2000 + 0x8000;
                        break;
                default: /* 64kB */
@@ -196,7 +196,7 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
                                result = *addr;
 
                                /* check timeout */
-                               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        rc = ERR_TIMOUT;
                                        break;
@@ -254,7 +254,7 @@ static int write_hword(flash_info_t *info, ulong dest, ushort data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        rc = ERR_TIMOUT;
                        break;
                }
index 01ab14bc5209700678b4e5f6c500a640b1ab919c..844aa184aa3c8be6b9b00c6c2955491ef4bbdb21 100644 (file)
 
 /************************************************/
 
-#define PORTB          (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
-#define PORTC          (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat)
-#define PORTD          (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat)
+#define PORTB          (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
+#define PORTC          (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat)
+#define PORTD          (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat)
 
 #define _PORTD_SET(mask, state) \
        do { \
index 3739e16d6f8eb41bd5c995f7707c995f6f75fcdf..cd576476ec8dce4aaaf2dc16ecd2a6ecef57e2ac 100644 (file)
@@ -95,7 +95,7 @@ static volatile u32 *ti6711_delay = &dummy_delay;
 
 static inline void dsp_go_slow(void)
 {
-       volatile memctl8xx_t *memctl = &((immap_t *)CFG_IMMR)->im_memctl;
+       volatile memctl8xx_t *memctl = &((immap_t *)CONFIG_SYS_IMMR)->im_memctl;
 #if defined(CONFIG_NETTA_6412)
        memctl->memc_or6 |= OR_SCY_15_CLK | OR_TRLX;
 #else
@@ -108,7 +108,7 @@ static inline void dsp_go_slow(void)
 
 static inline void dsp_go_fast(void)
 {
-       volatile memctl8xx_t *memctl = &((immap_t *)CFG_IMMR)->im_memctl;
+       volatile memctl8xx_t *memctl = &((immap_t *)CONFIG_SYS_IMMR)->im_memctl;
 #if defined(CONFIG_NETTA_6412)
        memctl->memc_or6 = (memctl->memc_or6 & ~(OR_SCY_15_CLK | OR_TRLX)) | OR_SCY_0_CLK;
 #else
@@ -148,14 +148,14 @@ static inline void dsp_write_hpic(u16 val)
 static inline void dsp_reset(void)
 {
 #if defined(CONFIG_NETTA_6412)
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat &= ~(1 << (15 - 15));
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat &= ~(1 << (15 - 15));
        udelay(500);
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat |=  (1 << (15 - 15));
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat |=  (1 << (15 - 15));
        udelay(500);
 #else
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat &= ~(1 << (15 - 7));
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat &= ~(1 << (15 - 7));
        udelay(250);
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat |=  (1 << (15 - 7));
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat |=  (1 << (15 - 7));
        udelay(250);
 #endif
 }
index 531204c7657fd30199794918f68006a420f95e0f..45e6b30102d43a89c2c2bb8705b39b6cf9cdaaec 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,13 +38,13 @@ static void flash_get_offsets(ulong base, flash_info_t * info);
 
 unsigned long flash_init(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size;
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i)
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
        size = flash_get_size((vu_long *) FLASH_BASE0_PRELIM, &flash_info[0]);
@@ -54,17 +54,17 @@ unsigned long flash_init(void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *) CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets(CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets(CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE, CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -427,7 +427,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        last = start;
        addr = (vu_char *) (info->start[l_sect]);
        while ((addr[0] & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return 1;
                }
@@ -500,7 +500,7 @@ static int write_byte(flash_info_t * info, ulong dest, uchar data)
        /* data polling for D7 */
        start = get_timer(0);
        while ((*((vu_char *) dest) & 0x80) != (data & 0x80)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index bc31386ec7e6874806d7bd645197b5ced6cf35c1..02fd94cc2c08babd8901a6936128f982060fe93b 100644 (file)
@@ -289,7 +289,7 @@ const uint sdram_table[0x40] = {
 #define MAR_SDRAM_INIT         ((CAS_LATENCY << 6) | 0x00000008LU)
 
 /* 8 */
-#define CFG_MAMR       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR        ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
@@ -339,7 +339,7 @@ void check_ram(unsigned int addr, unsigned int size)
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
 
@@ -355,10 +355,10 @@ phys_size_t initdram(int board_type)
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
-       memctl->memc_mbmr = CFG_MAMR & ~MAMR_PTAE;      /* no refresh yet */
+       memctl->memc_mbmr = CONFIG_SYS_MAMR & ~MAMR_PTAE;       /* no refresh yet */
 
        udelay(200);
 
@@ -505,7 +505,7 @@ int last_stage_init(void)
 
 int board_early_init_f(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile iop8xx_t *ioport = &immap->im_ioport;
        volatile cpm8xx_t *cpm = &immap->im_cpm;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -560,11 +560,11 @@ int board_early_init_f(void)
 #include <linux/mtd/nand_legacy.h>
 
 extern ulong nand_probe(ulong physadr);
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 
 void nand_init(void)
 {
-       unsigned long totlen = nand_probe(CFG_NAND_BASE);
+       unsigned long totlen = nand_probe(CONFIG_SYS_NAND_BASE);
 
        printf ("%4lu MB\n", totlen >> 20);
 }
index 66e6e511e256a8ba703ed3126e5b457b3038e802..ed58f2c85e35ab1e2614093ea7bde042cb04757b 100644 (file)
@@ -33,7 +33,7 @@ static const unsigned short vppd_masks[2] = { _BW(14), _BW(15) };
 
 static void cfg_vppd(int no)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask;
 
        if ((unsigned int)no >= sizeof(vppd_masks)/sizeof(vppd_masks[0]))
@@ -48,7 +48,7 @@ static void cfg_vppd(int no)
 
 static void set_vppd(int no, int what)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask;
 
        if ((unsigned int)no >= sizeof(vppd_masks)/sizeof(vppd_masks[0]))
@@ -66,7 +66,7 @@ static const unsigned short vccd_masks[2] = { _BW(10), _BW(6) };
 
 static void cfg_vccd(int no)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask;
 
        if ((unsigned int)no >= sizeof(vccd_masks)/sizeof(vccd_masks[0]))
@@ -81,7 +81,7 @@ static void cfg_vccd(int no)
 
 static void set_vccd(int no, int what)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask;
 
        if ((unsigned int)no >= sizeof(vccd_masks)/sizeof(vccd_masks[0]))
@@ -99,7 +99,7 @@ static const unsigned short oc_mask = _BW(8);
 
 static void cfg_oc(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask = oc_mask;
 
        immap->im_ioport.iop_pcdir &= ~mask;
@@ -110,7 +110,7 @@ static void cfg_oc(void)
 
 static int get_oc(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask = oc_mask;
        int what;
 
@@ -122,7 +122,7 @@ static const unsigned short shdn_mask = _BW(12);
 
 static void cfg_shdn(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask;
 
        mask = shdn_mask;
@@ -134,7 +134,7 @@ static void cfg_shdn(void)
 
 static void set_shdn(int what)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        unsigned short mask;
 
        mask = shdn_mask;
@@ -150,8 +150,8 @@ static void cfg_ports (void)
        volatile immap_t        *immap;
        volatile cpm8xx_t       *cp;
 
-       immap = (immap_t *)CFG_IMMR;
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
 
        cfg_vppd(0); cfg_vppd(1);       /* VPPD0,VPPD1 VAVPP => Hi-Z */
@@ -184,10 +184,10 @@ int pcmcia_hardware_enable(int slot)
 
        udelay(10000);
 
-       immap = (immap_t *)CFG_IMMR;
-       sysp  = (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       sysp  = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /* Configure Ports for TPS2211A PC-Card Power-Interface Switch */
        cfg_ports ();
@@ -273,8 +273,8 @@ int pcmcia_hardware_disable(int slot)
 
        debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
        /* Configure PCMCIA General Control Register */
        debug ("Disable PCMCIA buffers and assert RESET\n");
@@ -307,9 +307,9 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
                        " Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
        'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
 
-       immap = (immap_t *)CFG_IMMR;
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        /*
        * Disable PCMCIA buffers (isolate the interface)
        * and assert RESET signal
index cefff71332cf3565624ab8f441c4c41f704b34f2..b63f459519049a76f19209e4277bb1ad1af1cea1 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,13 +38,13 @@ static void flash_get_offsets(ulong base, flash_info_t * info);
 
 unsigned long flash_init(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size;
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i)
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
        size = flash_get_size((vu_long *) FLASH_BASE0_PRELIM, &flash_info[0]);
@@ -55,17 +55,17 @@ unsigned long flash_init(void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *) CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets(CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets(CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE, CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -425,7 +425,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        last = start;
        addr = (vu_char *) (info->start[l_sect]);
        while ((addr[0] & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return 1;
                }
@@ -498,7 +498,7 @@ static int write_byte(flash_info_t * info, ulong dest, uchar data)
        /* data polling for D7 */
        start = get_timer(0);
        while ((*((vu_char *) dest) & 0x80) != (data & 0x80)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 1dbdde1156d883988c0b2e74e729114ea9cf42d2..2ce33cfddf94ae72fc4215570f1855758ebd2b95 100644 (file)
@@ -354,7 +354,7 @@ static const uint nandcs_table[0x40] = {
 #define MAR_SDRAM_INIT         ((CAS_LATENCY << 6) | 0x00000008LU)
 
 /* 8 */
-#define CFG_MAMR       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR        ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
@@ -404,7 +404,7 @@ void check_ram(unsigned int addr, unsigned int size)
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
 
@@ -420,10 +420,10 @@ phys_size_t initdram(int board_type)
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
-       memctl->memc_mbmr = CFG_MAMR & ~MAMR_PTAE;      /* no refresh yet */
+       memctl->memc_mbmr = CONFIG_SYS_MAMR & ~MAMR_PTAE;       /* no refresh yet */
 
        udelay(200);
 
@@ -544,7 +544,7 @@ void reset_phys(void)
 
 int board_early_init_f(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile iop8xx_t *ioport = &immap->im_ioport;
        volatile cpm8xx_t *cpm = &immap->im_cpm;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -600,13 +600,13 @@ int board_early_init_f(void)
 #include <linux/mtd/nand_legacy.h>
 
 extern ulong nand_probe(ulong physadr);
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 
 void nand_init(void)
 {
        unsigned long totlen;
 
-       totlen = nand_probe(CFG_NAND_BASE);
+       totlen = nand_probe(CONFIG_SYS_NAND_BASE);
        printf ("%4lu MB\n", totlen >> 20);
 }
 #endif
@@ -620,7 +620,7 @@ void hw_watchdog_reset(void)
 
 #endif
 
-#if defined(CFG_CONSOLE_IS_IN_ENV) && defined(CFG_CONSOLE_OVERWRITE_ROUTINE)
+#if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
 int overwrite_console(void)
 {
        /* printf("overwrite_console called\n"); */
@@ -645,10 +645,10 @@ int last_stage_init(void)
 
 #if CONFIG_NETTA2_VERSION == 2
        /* assert peripheral reset */
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat &= ~_BW(12);
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat &= ~_BW(12);
        for (i = 0; i < 10; i++)
                udelay(1000);
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat |=  _BW(12);
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat |=  _BW(12);
 #endif
        reset_phys();
 
index 647f5944b573bb457302a3035482d7a461a7a42b..98479a50b8f87d20ffc77f4568620d615b216298 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,13 +38,13 @@ static void flash_get_offsets(ulong base, flash_info_t * info);
 
 unsigned long flash_init(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size;
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i)
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
        size = flash_get_size((vu_long *) FLASH_BASE0_PRELIM, &flash_info[0]);
@@ -54,17 +54,17 @@ unsigned long flash_init(void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | (memctl->memc_br0 & ~(BR_BA_MSK));
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *) CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets(CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets(CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE, CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -427,7 +427,7 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        last = start;
        addr = (vu_char *) (info->start[l_sect]);
        while ((addr[0] & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return 1;
                }
@@ -500,7 +500,7 @@ static int write_byte(flash_info_t * info, ulong dest, uchar data)
        /* data polling for D7 */
        start = get_timer(0);
        while ((*((vu_char *) dest) & 0x80) != (data & 0x80)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 4140bac861193a071db7d497b177a4ba80636048..0b032c4a740e2b5fec3e4a6a069a1d5d7ad06a2f 100644 (file)
@@ -247,7 +247,7 @@ int checkboard(void)
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
 
@@ -256,17 +256,17 @@ phys_size_t initdram(int board_type)
        /*
         * Preliminary prescaler for refresh
         */
-       memctl->memc_mptpr = CFG_MPTPR_1BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_8K;
 
        memctl->memc_mar = MAR_SDRAM_INIT;      /* 32-bit address to be output on the address bus if AMX = 0b11 */
 
     /*
      * Map controller bank 3 to the SDRAM bank at preliminary address.
      */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_9COL & ~MAMR_PTAE; /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_9COL & ~MAMR_PTAE;  /* no refresh yet */
 
        udelay(200);
 
@@ -282,7 +282,7 @@ phys_size_t initdram(int board_type)
 
        udelay(1000);
 
-       memctl->memc_mamr = CFG_MAMR_9COL;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_9COL;
 
        size = SDRAM_MAX_SIZE;
 
@@ -358,7 +358,7 @@ int misc_init_r(void)
 
 int board_early_init_f(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile iop8xx_t *ioport = &immap->im_ioport;
        volatile cpm8xx_t *cpm = &immap->im_cpm;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -421,11 +421,11 @@ int board_early_init_f(void)
 #include <linux/mtd/nand_legacy.h>
 
 extern ulong nand_probe(ulong physadr);
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 
 void nand_init(void)
 {
-       unsigned long totlen = nand_probe(CFG_NAND_BASE);
+       unsigned long totlen = nand_probe(CONFIG_SYS_NAND_BASE);
 
        printf ("%4lu MB\n", totlen >> 20);
 }
index 2b62bef4d9749c954cf9d4be294adecfe160a709..5b56b983934f0c29b456e995d69e5645b67eb6dd 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/byteorder/swab.h>
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 256 KB sectors (x2) */
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #undef FLASH_PORT_WIDTH32
@@ -88,7 +88,7 @@ unsigned long flash_init (void)
 {
        int i;
        ulong size = 0;
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -104,8 +104,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
                        CONFIG_ENV_ADDR,
@@ -227,10 +227,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -322,7 +322,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                *addr) & (FPW) 0x00800080) !=
                                (FPW) 0x00800080) {
                                        if (get_timer_masked () >
-                                       CFG_FLASH_ERASE_TOUT) {
+                                       CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        /* suspend erase     */
                                        *addr = (FPW) 0x00B000B0;
@@ -458,7 +458,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index 581925e48b865afd01c5ea99bdbb129db5e32844..194d841e4ea85fa819468e7db65707b1009e7278 100644 (file)
@@ -27,7 +27,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 extern u_long  *my_sernum;             /* from nx823.c */
 
 /*-----------------------------------------------------------------------
@@ -63,13 +63,13 @@ static void  flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -82,18 +82,18 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((FPW *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((FPW *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           CFG_FLASH_BASE,
-                           CFG_FLASH_BASE+monitor_flash_len-1,
+                           CONFIG_SYS_FLASH_BASE,
+                           CONFIG_SYS_FLASH_BASE+monitor_flash_len-1,
                            &flash_info[0]);
 
        flash_info[0].size = size_b0;
@@ -220,10 +220,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW)0x00FF00FF;      /* restore read mode */
@@ -294,7 +294,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & (FPW)0x00800080) != (FPW)0x00800080) {
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW)0x00B000B0; /* suspend erase         */
                                        *addr = (FPW)0x00FF00FF; /* reset to read mode */
@@ -343,9 +343,9 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
 #endif
 
        /* save sernum if needed */
-       if (addr >= CFG_FLASH_SN_SECTOR && addr < CFG_FLASH_SN_BASE)
+       if (addr >= CONFIG_SYS_FLASH_SN_SECTOR && addr < CONFIG_SYS_FLASH_SN_BASE)
        {
-               u_long dest = CFG_FLASH_SN_BASE;
+               u_long dest = CONFIG_SYS_FLASH_SN_BASE;
                u_short *sn = (u_short *)my_sernum;
 
                printf("(saving sernum)");
@@ -452,7 +452,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
        start = get_timer (0);
 
        while (((status = *addr) & (FPW)0x00800080) != (FPW)0x00800080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW)0x00FF00FF;        /* restore read mode */
                        return (1);
                }
index 18840ff48f212a34edf7125b80574cb8c43ff718..df9aaab7a7a702d61eed85705b4fae324eb583e0 100644 (file)
@@ -159,7 +159,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0, size_b1, size8, size9;
 
@@ -170,22 +170,22 @@ phys_size_t initdram (int board_type)
         * Up to 2 Banks of 64Mbit x 2 devices
         * Initial builds only have 1
         */
-       memctl->memc_mptpr = CFG_MPTPR_1BK_4K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_4K;
        memctl->memc_mar = 0x00000088;
 
        /*
         * Map controller SDRAM bank 0
         */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
        udelay (200);
 
        /*
         * Map controller SDRAM bank 1
         */
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
        /*
         * Perform SDRAM initializsation sequence
@@ -209,7 +209,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
@@ -219,7 +219,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, (long *) SDRAM_BASE1_PRELIM,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, (long *) SDRAM_BASE1_PRELIM,
                           SDRAM_MAX_SIZE);
 
        udelay (1000);
@@ -227,7 +227,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (long *) SDRAM_BASE1_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *) SDRAM_BASE1_PRELIM,
                           SDRAM_MAX_SIZE);
 
        if (size8 < size9) {    /* leave configuration at 9 columns     */
@@ -235,7 +235,7 @@ phys_size_t initdram (int board_type)
 /*     debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                /* back to 8 columns                    */
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*     debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -258,7 +258,7 @@ phys_size_t initdram (int board_type)
         */
        if ((size_b0 < 0x02000000) && (size_b1 < 0x02000000)) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
@@ -268,9 +268,9 @@ phys_size_t initdram (int board_type)
        if (size_b1 > size_b0) {        /* SDRAM Bank 1 is bigger - map first   */
 
                memctl->memc_or2 =
-                       ((-size_b1) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+                       ((-size_b1) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                memctl->memc_br2 =
-                       (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+                       (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
                if (size_b0 > 0) {
                        /*
@@ -278,9 +278,9 @@ phys_size_t initdram (int board_type)
                         */
                        memctl->memc_or1 =
                                ((-size_b0) & 0xFFFF0000) |
-                               CFG_OR_TIMING_SDRAM;
+                               CONFIG_SYS_OR_TIMING_SDRAM;
                        memctl->memc_br1 =
-                               ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA |
+                               ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA |
                                 BR_V)
                                + size_b1;
                } else {
@@ -295,16 +295,16 @@ phys_size_t initdram (int board_type)
 
                        /* adjust refresh rate depending on SDRAM type, one bank */
                        reg = memctl->memc_mptpr;
-                       reg >>= 1;      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+                       reg >>= 1;      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
                        memctl->memc_mptpr = reg;
                }
 
        } else {                /* SDRAM Bank 0 is bigger - map first   */
 
                memctl->memc_or1 =
-                       ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+                       ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                memctl->memc_br1 =
-                       (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+                       (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
                if (size_b1 > 0) {
                        /*
@@ -312,9 +312,9 @@ phys_size_t initdram (int board_type)
                         */
                        memctl->memc_or2 =
                                ((-size_b1) & 0xFFFF0000) |
-                               CFG_OR_TIMING_SDRAM;
+                               CONFIG_SYS_OR_TIMING_SDRAM;
                        memctl->memc_br2 =
-                               ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA |
+                               ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA |
                                 BR_V)
                                + size_b0;
                } else {
@@ -329,7 +329,7 @@ phys_size_t initdram (int board_type)
 
                        /* adjust refresh rate depending on SDRAM type, one bank */
                        reg = memctl->memc_mptpr;
-                       reg >>= 1;      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+                       reg >>= 1;      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
                        memctl->memc_mptpr = reg;
                }
        }
@@ -352,7 +352,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -387,7 +387,7 @@ void load_sernum_ethaddr (void)
        bd_t *bd = gd->bd;
 
        for (i = 0; i < 8; i++) {
-               bd->bi_sernum[i] = *(u_char *) (CFG_FLASH_SN_BASE + i);
+               bd->bi_sernum[i] = *(u_char *) (CONFIG_SYS_FLASH_SN_BASE + i);
        }
        bd->bi_enetaddr[0] = 0x10;
        bd->bi_enetaddr[1] = 0x20;
index 1cf78c7b82b17b3d4def3c755b6f9c6da7d56e3c..9f3088004a968e8d142ad9e51d42e698974bb772 100644 (file)
@@ -55,7 +55,7 @@ typedef volatile unsigned char FLASH_PORT_WIDTHV;
 #define FLASH_CYCLE1   0x0555
 #define FLASH_CYCLE2   0x02aa
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -82,25 +82,25 @@ unsigned long flash_init (void)
        flash_preinit();
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                memset(&flash_info[i], 0, sizeof(flash_info_t));
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Query flash chip */
        flash_info[0].size =
-               flash_get_size((FPW *)CFG_FLASH_BASE, &flash_info[0]);
+               flash_get_size((FPW *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
        size += flash_info[0].size;
 
        /* get the h/w and s/w protection status in sync */
        flash_sync_real_protect(&flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                       CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE+monitor_flash_len-1,
-                       flash_get_info(CFG_MONITOR_BASE));
+                       CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
+                       flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -135,7 +135,7 @@ static flash_info_t *flash_get_info(ulong base)
        int i;
        flash_info_t * info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->size &&
                                info->start[0] <= base &&
@@ -143,7 +143,7 @@ static flash_info_t *flash_get_info(ulong base)
                        break;
        }
 
-       return (i == CFG_MAX_FLASH_BANKS ? 0 : info);
+       return (i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info);
 }
 
 /*-----------------------------------------------------------------------
@@ -328,7 +328,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while ((*addr & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                *addr = (FPW) INTEL_SUSPEND;/* suspend erase */
                                flash_reset(info);      /* reset to read mode */
@@ -337,7 +337,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        }
 
                        /* show that we're waiting */
-                       if ((get_timer(last)) > CFG_HZ) { /* every second */
+                       if ((get_timer(last)) > CONFIG_SYS_HZ) { /* every second */
                                putc ('.');
                                last = get_timer(0);
                        }
@@ -425,7 +425,7 @@ static int write_data (flash_info_t *info, FPWV *dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) INTEL_RESET;      /* restore read mode */
                        return (1);
                }
@@ -464,7 +464,7 @@ int flash_real_protect (flash_info_t * info, long sector, int prot)
        start = get_timer (0);
 
        while ((*addr & INTEL_FINISHED) != INTEL_FINISHED) {
-               if (get_timer (start) > CFG_FLASH_UNLOCK_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                        printf ("Flash lock bit operation timed out\n");
                        rc = 1;
                        break;
@@ -494,7 +494,7 @@ int flash_real_protect (flash_info_t * info, long sector, int prot)
                                while ((*addr & INTEL_FINISHED) !=
                                       INTEL_FINISHED) {
                                        if (get_timer (start) >
-                                           CFG_FLASH_UNLOCK_TOUT) {
+                                           CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                                                printf ("Flash lock bit operation timed out\n");
                                                rc = 1;
                                                break;
@@ -550,7 +550,7 @@ static unsigned char intel_sector_protected (flash_info_t *info, ushort sector)
        /*
         * first, wait for the WSM to be finished. The rationale for
         * waiting for the WSM to become idle for at most
-        * CFG_FLASH_ERASE_TOUT is as follows. The WSM can be busy
+        * CONFIG_SYS_FLASH_ERASE_TOUT is as follows. The WSM can be busy
         * because of: (1) erase, (2) program or (3) lock bit
         * configuration. So we just wait for the longest timeout of
         * the (1)-(3), i.e. the erase timeout.
@@ -563,7 +563,7 @@ static unsigned char intel_sector_protected (flash_info_t *info, ushort sector)
 
        start = get_timer (0);
        while ((*addr & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        *addr = (FPW) INTEL_RESET; /* restore read mode */
                        printf("WSM busy too long, can't get prot status\n");
                        return 1;
index 19faf52aff1966c1f2a13e905de4368531f05839..c72a7414e4fb3227b0bb6925e1c78d3cd6776788 100644 (file)
@@ -65,7 +65,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 phys_size_t initdram (int board_type)
@@ -86,9 +86,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -114,11 +114,11 @@ phys_size_t initdram (int board_type)
        if (!dramsize)
                sdram_start(0);
 
-       test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
 
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+               test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        }
 
        if (test1 > test2) {
@@ -164,10 +164,10 @@ void flash_afterinit(ulong size)
 {
        if (size == 0x800000) { /* adjust mapping */
                *(vu_long *)MPC5XXX_BOOTCS_START = *(vu_long *)MPC5XXX_CS0_START =
-                       START_REG(CFG_BOOTCS_START | size);
+                       START_REG(CONFIG_SYS_BOOTCS_START | size);
 
                *(vu_long *)MPC5XXX_BOOTCS_STOP = *(vu_long *)MPC5XXX_CS0_STOP =
-                       STOP_REG(CFG_BOOTCS_START | size, size);
+                       STOP_REG(CONFIG_SYS_BOOTCS_START | size, size);
        }
 }
 
index d88a981d539e4b347c525f33c3f143cfc8e2da38..36200ad854d231ebf367f7f3fb2f9218ab7a8d02 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/byteorder/swab.h>
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 256 KB sectors (x2) */
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #undef FLASH_PORT_WIDTH32
@@ -90,11 +90,11 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
-                       flash_get_size ((FPW *) CFG_FLASH_BASE, &flash_info[i]);
-                       flash_get_offsets (CFG_FLASH_BASE, &flash_info[i]);
+                       flash_get_size ((FPW *) CONFIG_SYS_FLASH_BASE, &flash_info[i]);
+                       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[i]);
                        /* to reset the lock bit */
                        flash_unlock(&flash_info[i]);
                        break;
@@ -108,8 +108,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
                        CONFIG_ENV_ADDR,
@@ -123,7 +123,7 @@ unsigned long flash_init (void)
 void flash_unlock(flash_info_t * info)
 {
        int j;
-       for (j=2;j<CFG_MAX_FLASH_SECT;j++){
+       for (j=2;j<CONFIG_SYS_MAX_FLASH_SECT;j++){
        FPWV *addr = (FPWV *) (info->start[j]);
        flash_unprotect_sectors (addr);
        *addr = (FPW) 0x00500050;/* clear status register */
@@ -244,10 +244,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -339,7 +339,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                *addr) & (FPW) 0x00800080) !=
                                (FPW) 0x00800080) {
                                        if (get_timer_masked () >
-                                       CFG_FLASH_ERASE_TOUT) {
+                                       CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        /* suspend erase     */
                                        *addr = (FPW) 0x00B000B0;
@@ -474,7 +474,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index a3295fd4e0d11e43aaf089f9bd3fa6c2ef03e5da..c8b4186dc828893f497fc52bdf1958f5aa0e7fc5 100644 (file)
@@ -327,7 +327,7 @@ void gpmc_init(void)
        __raw_writel(0x10, GPMC_SYSCONFIG);     /* smart idle */
        __raw_writel(0x0, GPMC_IRQENABLE);      /* isr's sources masked */
        __raw_writel(tval, GPMC_TIMEOUT_CONTROL);/* timeout disable */
-#ifdef CFG_NAND_BOOT
+#ifdef CONFIG_SYS_NAND_BOOT
        __raw_writel(0x001, GPMC_CONFIG);       /* set nWP, disable limited addr */
 #else
        __raw_writel(0x111, GPMC_CONFIG);       /* set nWP, disable limited addr */
@@ -343,7 +343,7 @@ void gpmc_init(void)
        __raw_writel(0x0, GPMC_CONFIG7_0);      /* disable current map */
        sdelay(1000);
 
-#ifdef CFG_NAND_BOOT
+#ifdef CONFIG_SYS_NAND_BOOT
        __raw_writel(H4_24XX_GPMC_CONFIG1_0|mtype|mwidth, GPMC_CONFIG1_0);
 #else
        __raw_writel(H4_24XX_GPMC_CONFIG1_0|mux|mtype|mwidth, GPMC_CONFIG1_0);
index 09b070dc1a9b91f6a0815ed6e34cdd9cd9d2b615..0fe9380cc9ed9dc03963d7142deae3ae098e8b03 100644 (file)
@@ -33,7 +33,7 @@
 #include <asm/mach-types.h>
 #if defined(CONFIG_CMD_NAND)
 #include <linux/mtd/nand_legacy.h>
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 #endif
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -201,7 +201,7 @@ int dram_init (void)
        u8 vmode_on = 0x8C;
        #define NOT_EARLY 0
 
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE); /* need this a bit early */
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); /* need this a bit early */
 
        btype = get_board_type();
        mtype = get_mem_type();
@@ -267,7 +267,7 @@ void peripheral_enable(void)
        __raw_writel(v, CM_CLKSEL2_CORE);
        __raw_writel(0x1, CM_CLKSEL_WKUP);
 
-#ifdef CFG_NS16550
+#ifdef CONFIG_SYS_NS16550
        /* Enable UART1 clock */
        func_clks |= BIT21;
        if_clks |= BIT21;
@@ -852,16 +852,16 @@ void nand_init(void)
 {
     extern flash_info_t flash_info[];
 
-    nand_probe(CFG_NAND_ADDR);
+    nand_probe(CONFIG_SYS_NAND_ADDR);
     if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN) {
                print_size(nand_dev_desc[0].totlen, "\n");
     }
 
-#ifdef CFG_JFFS2_MEM_NAND
-    flash_info[CFG_JFFS2_FIRST_BANK].flash_id = nand_dev_desc[0].id;
-    flash_info[CFG_JFFS2_FIRST_BANK].size = 1024*1024*2;      /* only read kernel single meg partition */
-       flash_info[CFG_JFFS2_FIRST_BANK].sector_count = 1024;   /* 1024 blocks in 16meg chip (use less for raw/copied partition) */
-    flash_info[CFG_JFFS2_FIRST_BANK].start[0] = 0x80200000; /* ?, ram for now, open question, copy to RAM or adapt for NAND */
+#ifdef CONFIG_SYS_JFFS2_MEM_NAND
+    flash_info[CONFIG_SYS_JFFS2_FIRST_BANK].flash_id = nand_dev_desc[0].id;
+    flash_info[CONFIG_SYS_JFFS2_FIRST_BANK].size = 1024*1024*2;      /* only read kernel single meg partition */
+       flash_info[CONFIG_SYS_JFFS2_FIRST_BANK].sector_count = 1024;   /* 1024 blocks in 16meg chip (use less for raw/copied partition) */
+    flash_info[CONFIG_SYS_JFFS2_FIRST_BANK].start[0] = 0x80200000; /* ?, ram for now, open question, copy to RAM or adapt for NAND */
 #endif
 }
 #endif
index 2b62bef4d9749c954cf9d4be294adecfe160a709..5b56b983934f0c29b456e995d69e5645b67eb6dd 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/byteorder/swab.h>
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 256 KB sectors (x2) */
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #undef FLASH_PORT_WIDTH32
@@ -88,7 +88,7 @@ unsigned long flash_init (void)
 {
        int i;
        ulong size = 0;
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -104,8 +104,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
                        CONFIG_ENV_ADDR,
@@ -227,10 +227,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -322,7 +322,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                *addr) & (FPW) 0x00800080) !=
                                (FPW) 0x00800080) {
                                        if (get_timer_masked () >
-                                       CFG_FLASH_ERASE_TOUT) {
+                                       CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        /* suspend erase     */
                                        *addr = (FPW) 0x00B000B0;
@@ -458,7 +458,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index 94d2660e1d756241a4ecc9fbebb0126e24a364ea..36e0fcac790dca5ff7f55049d92e849f46e9a138 100644 (file)
@@ -31,7 +31,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -49,7 +49,7 @@ unsigned long flash_init (void)
     int i;
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
 
@@ -59,17 +59,17 @@ unsigned long flash_init (void)
      * and the size of flash using 0xFF800000 as the base address,
      * and then call flash_get_size() again to fill flash_info.
      */
-    size = flash_get_size((vu_char *)CFG_FLASH_PRELIMBASE, &flash_info[0]);
+    size = flash_get_size((vu_char *)CONFIG_SYS_FLASH_PRELIMBASE, &flash_info[0]);
     if (size)
     {
        flash_get_size((vu_char *)(-size), &flash_info[0]);
     }
 
-#if (CFG_MONITOR_BASE >= CFG_FLASH_PRELIMBASE)
+#if (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_PRELIMBASE)
     /* monitor protection ON by default */
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_MONITOR_BASE,
-                 CFG_MONITOR_BASE+monitor_flash_len-1,
+                 CONFIG_SYS_MONITOR_BASE,
+                 CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                  &flash_info[0]);
 #endif
 
@@ -286,7 +286,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
     last  = start;
     addr = (vu_char *)(info->start[l_sect]);
     while ((addr[0] & 0x80) != 0x80) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -361,7 +361,7 @@ static int write_byte (flash_info_t *info, ulong dest, uchar data)
     /* data polling for D7 */
     start = get_timer (0);
     while ((*((vu_char *)dest) & 0x80) != (data & 0x80)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            return (1);
        }
     }
index eb7eeb8c28f9c82859f08b2c3f21c465a23685b0..1a2bdf430dcae95d3651cdc1a6a3638931c2932f 100644 (file)
@@ -37,13 +37,13 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        long size;
        long new_bank0_end;
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
@@ -92,14 +92,14 @@ void pci_init_board (void)
 
 int board_early_init_f (void)
 {
-       *(volatile unsigned char *)(CFG_CPLD_RESET) = 0x89;
+       *(volatile unsigned char *)(CONFIG_SYS_CPLD_RESET) = 0x89;
        return 0;
 }
 
 #ifdef CONFIG_WATCHDOG
 void oxc_wdt_reset(void)
 {
-       *(volatile unsigned char *)(CFG_CPLD_WATCHDOG) = 0xff;
+       *(volatile unsigned char *)(CONFIG_SYS_CPLD_WATCHDOG) = 0xff;
 }
 
 void watchdog_reset(void)
@@ -135,7 +135,7 @@ void oxc_toggle_activeled(void)
 
 void board_show_activity (ulong timestamp)
 {
-       if ((timestamp % (CFG_HZ / 10)) == 0)
+       if ((timestamp % (CONFIG_SYS_HZ / 10)) == 0)
                oxc_toggle_activeled ();
 }
 
@@ -148,9 +148,9 @@ void show_activity(int arg)
 
        if ((ledtoggle > (2 * arg)) && ledstatus) {
                led ^= 0x80;
-               oxc_get_expander(CFG_I2C_EXPANDER0_ADDR, &val);
+               oxc_get_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, &val);
                udelay(200);
-               oxc_set_expander(CFG_I2C_EXPANDER0_ADDR, (val & 0x7F) | led);
+               oxc_set_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, (val & 0x7F) | led);
                ledtoggle = 0;
        }
 }
@@ -165,13 +165,13 @@ void show_boot_progress(int arg)
 
        if (arg > 0 && ledstatus) {
                ledstatus = 0;
-               oxc_get_expander(CFG_I2C_EXPANDER0_ADDR, &val);
+               oxc_get_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, &val);
                udelay(200);
-               oxc_set_expander(CFG_I2C_EXPANDER0_ADDR, val | 0x80);
+               oxc_set_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, val | 0x80);
        } else if (arg < 0) {
-               oxc_get_expander(CFG_I2C_EXPANDER0_ADDR, &val);
+               oxc_get_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, &val);
                udelay(200);
-               oxc_set_expander(CFG_I2C_EXPANDER0_ADDR, val & 0x7F);
+               oxc_set_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, val & 0x7F);
                ledstatus = 1;
        }
 }
@@ -180,21 +180,21 @@ void show_boot_progress(int arg)
 int misc_init_r (void)
 {
        /* check whether the i2c expander #0 is accessible */
-       if (!oxc_set_expander(CFG_I2C_EXPANDER0_ADDR, 0x7F)) {
+       if (!oxc_set_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, 0x7F)) {
                udelay(200);
                expander0alive = 1;
        }
 
-#ifdef CFG_OXC_GENERATE_IP
+#ifdef CONFIG_SYS_OXC_GENERATE_IP
        {
                char str[32];
-               unsigned long ip = CFG_OXC_IPMASK;
+               unsigned long ip = CONFIG_SYS_OXC_IPMASK;
                bd_t *bd = gd->bd;
 
                if (expander0alive) {
                        unsigned char val;
 
-                       if (!oxc_get_expander(CFG_I2C_EXPANDER0_ADDR, &val)) {
+                       if (!oxc_get_expander(CONFIG_SYS_I2C_EXPANDER0_ADDR, &val)) {
                                ip = (ip & 0xffffff00) | ((val & 0x7c) >> 2);
                        }
                }
index 3cf29e844bc61a8193fd0732f6ced274a23d5fe8..a2fed1d713e7cb08713f056168b700538b4c102c 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * flash_init()
index 82e2613e2db4fd6f2b2b8bfb0f9162729213586f..773e446c0c72e494536e16b9f2e45898a07df2fb 100644 (file)
@@ -100,19 +100,19 @@ int checkboard (void)
        /* We dont need theese unless we run whole pcmcia package */
        write_one_tlb(20,                 /* index */
                      0x01ffe000,         /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_IO_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_IO_BASE, /* Hi */
                      0x3C000017,         /* Lo0 */
                      0x3C200017);        /* Lo1 */
 
        write_one_tlb(21,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_ATTR_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_ATTR_BASE, /* Hi */
                      0x3D000017,           /* Lo0 */
                      0x3D200017);          /* Lo1 */
 #endif /* 0 */
        write_one_tlb(22,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_MEM_ADDR,  /* Hi */
+                     CONFIG_SYS_PCMCIA_MEM_ADDR,  /* Hi */
                      0x3E000017,           /* Lo0 */
                      0x3E200017);          /* Lo1 */
 #endif /* CONFIG_IDE_PCMCIA */
index 171f06c58f7893e4c1e364be0d50ff83c20bcd28..8945351a4df0bf3a2fde2cf385462468d19b72d3 100644 (file)
@@ -81,7 +81,7 @@ unsigned long cpc710_ram_init (void)
        unsigned long bank_size;
        u32 mcer;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* Clear memory banks
         */
        out32 (REG (SDRAM0, MCER0), 0);
@@ -107,14 +107,14 @@ unsigned long cpc710_ram_init (void)
                hang ();
        }
        memsize += bank_size;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* Enable bank, zero start
         */
        out32 (REG (SDRAM0, MCER0), mcer | 0x80000000);
        iobarrier_rw ();
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* Enable memory
         */
        out32 (REG (SDRAM0, MCCR), in32 (REG (SDRAM0, MCCR)) | 0x80000000);
index a915fbe63f8a7c9bf5f1b65bda7e4fa8388ee7f1..ec604e0d60ed258a7b0fa2e8bde6de3a4c3a2bc2 100644 (file)
@@ -39,7 +39,7 @@
 #endif
 /*---------------------------------------------------------------------*/
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static ulong flash_get_size (ulong addr, flash_info_t *info);
 static int flash_get_offsets (ulong base, flash_info_t *info);
@@ -52,25 +52,25 @@ unsigned long flash_init (void)
        unsigned long flash_size = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = 0;
                flash_info[i].size = 0;
        }
 
-       DEBUGF("\n## Get flash size @ 0x%08x\n", CFG_FLASH_BASE);
+       DEBUGF("\n## Get flash size @ 0x%08x\n", CONFIG_SYS_FLASH_BASE);
 
-       flash_size = flash_get_size (CFG_FLASH_BASE, flash_info);
+       flash_size = flash_get_size (CONFIG_SYS_FLASH_BASE, flash_info);
 
        DEBUGF("## Flash bank size: %08lx\n", flash_size);
 
        if (flash_size) {
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE && \
-    CFG_MONITOR_BASE < CFG_FLASH_BASE + CFG_FLASH_MAX_SIZE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE && \
+    CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_MAX_SIZE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE + monitor_flash_len - 1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                              &flash_info[0]);
 #endif
 
@@ -231,10 +231,10 @@ static ulong flash_get_size (ulong addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        if (! flash_get_offsets (addr, info)) {
@@ -356,10 +356,10 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = info->start[l_sect];
 
-       DEBUGF ("Start erase timeout: %d\n", CFG_FLASH_ERASE_TOUT);
+       DEBUGF ("Start erase timeout: %d\n", CONFIG_SYS_FLASH_ERASE_TOUT);
 
        while ((in8(addr) & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        flash_reset (info->start[0]);
                        return 1;
@@ -488,7 +488,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                /* data polling for D7 */
                start = get_timer (0);
                while ((in8(dest+i) & 0x80) != (data_ch[i] & 0x80)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                flash_reset (addr);
                                return (1);
                        }
index 36b1d0f44d8ceba85d4f5afb0fab01c8404291cb..ab52562e6a20dc13d8b4fa90cb2087f5124dd28d 100644 (file)
@@ -85,7 +85,7 @@ static inline void i2c_udelay (
 {
   int                  v;
 
-  asm volatile("mtdec %0" : : "r" (time * ((CFG_BUS_CLK / 4) / 1000000)));
+  asm volatile("mtdec %0" : : "r" (time * ((CONFIG_SYS_BUS_CLK / 4) / 1000000)));
 
   do
   {
index 3b190699f08557a9f79c40a658fb7969ec1b7a92..6ef38f437bfaecf9b5b40ec1a4fe7abf08967664 100644 (file)
@@ -41,7 +41,7 @@ int serial_init (void)
        sb->pos  = 0;
        sb->size = 0;
        sb->baud = gd->baudrate;
-       sb->max_size = CFG_SCONSOLE_SIZE - sizeof (sconsole_buffer_t);
+       sb->max_size = CONFIG_SYS_SCONSOLE_SIZE - sizeof (sconsole_buffer_t);
 
        return (0);
 }
index 5d850a589d019e541c8644815fa4b78571b2dd8b..ff0ccabcdbd4aab11e58ef1093389844e5142424 100644 (file)
@@ -34,7 +34,7 @@ typedef struct sconsole_buffer_s {
        char data[1];
 } sconsole_buffer_t;
 
-#define SCONSOLE_BUFFER                ((sconsole_buffer_t *) CFG_SCONSOLE_ADDR)
+#define SCONSOLE_BUFFER                ((sconsole_buffer_t *) CONFIG_SYS_SCONSOLE_ADDR)
 
 extern void    (* sconsole_putc)       (char);
 extern void    (* sconsole_puts)       (const char *);
index 4d942ebc71b850fef89dfc1228a44f45f1c1e2a7..0844e98e855cce39850a7d7ec7b694d3ae23a88e 100644 (file)
@@ -43,5 +43,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index c5a62e25436cf165c19182ac1ae2ccfa7066847f..f90a22112b9deb1e30afe465b7d69f17b65791fa 100644 (file)
 #include <common.h>
 #include <asm/processor.h>
 
-#ifndef CFG_FLASH_READ0
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#ifndef CONFIG_SYS_FLASH_READ0
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*
  * Functions
@@ -45,7 +45,7 @@ unsigned long flash_init(void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -130,7 +130,7 @@ void flash_print_info(flash_info_t *info)
 
        printf ("  Sector Start Addresses:");
        for (i=0; i<info->sector_count; ++i) {
-#ifdef CFG_FLASH_EMPTY_INFO
+#ifdef CONFIG_SYS_FLASH_EMPTY_INFO
                /*
                 * Check if whole sector is erased
                 */
@@ -175,34 +175,34 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
 {
        short i;
        short n;
-       volatile CFG_FLASH_WORD_SIZE value;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong)addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (volatile CFG_FLASH_WORD_SIZE *)addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)addr;
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00900090;
 
-       value = addr2[CFG_FLASH_READ0];
+       value = addr2[CONFIG_SYS_FLASH_READ0];
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_WORD_SIZE)FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_WORD_SIZE)SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_WORD_SIZE)STM_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)STM_MANUFACT:
                info->flash_id = FLASH_MAN_STM;
                break;
-       case (CFG_FLASH_WORD_SIZE)EXCEL_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)EXCEL_MANUFACT:
                info->flash_id = FLASH_MAN_EXCEL;
                break;
-       case (CFG_FLASH_WORD_SIZE)MX_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)MX_MANUFACT:
                info->flash_id = FLASH_MAN_MX;
                break;
        default:
@@ -212,99 +212,99 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
                return (0);                     /* no or unknown flash  */
        }
 
-       value = addr2[CFG_FLASH_READ1];         /* device ID    */
+       value = addr2[CONFIG_SYS_FLASH_READ1];          /* device ID    */
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400T:
                info->flash_id += FLASH_AM400T;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB    */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400B:
                info->flash_id += FLASH_AM400B;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB    */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000;         /* => 0.5 MB    */
                break;
-       case (CFG_FLASH_WORD_SIZE)STM_ID_M29W040B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)STM_ID_M29W040B:
                info->flash_id += FLASH_AM040;
                info->sector_count = 8;
                info->size = 0x0080000; /* => 0,5 MB */
                break;
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800T:
                info->flash_id += FLASH_AM800T;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800B:
                info->flash_id += FLASH_AM800B;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160T:
                info->flash_id += FLASH_AM160T;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160B:
                info->flash_id += FLASH_AM160B;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320T:
                info->flash_id += FLASH_AM320T;
                info->sector_count = 71;
                info->size = 0x00400000;
                break;                          /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320B:
                info->flash_id += FLASH_AM320B;
                info->sector_count = 71;
                info->size = 0x00400000;
                break;                          /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322T:
                info->flash_id += FLASH_AMDL322T;
                info->sector_count = 71;
                info->size = 0x00400000;
                break;                          /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322B:
                info->flash_id += FLASH_AMDL322B;
                info->sector_count = 71;
                info->size = 0x00400000;
                break;                          /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323T:
                info->flash_id += FLASH_AMDL323T;
                info->sector_count = 71;
                info->size = 0x00400000;
                break;                          /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323B:
                info->flash_id += FLASH_AMDL323B;
                info->sector_count = 71;
                info->size = 0x00400000;
                break;                          /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF020:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF020:
                info->flash_id += FLASH_SST020;
                info->sector_count = 64;
                info->size = 0x00040000;
                break;                          /* => 256 kB    */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF040:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF040:
                info->flash_id += FLASH_SST040;
                info->sector_count = 128;
                info->size = 0x00080000;
@@ -381,19 +381,19 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
                if ((info->flash_id & FLASH_VENDMASK) != FLASH_MAN_AMD)
                        info->protect[i] = 0;
                else
-                       info->protect[i] = addr2[CFG_FLASH_READ2] & 1;
+                       info->protect[i] = addr2[CONFIG_SYS_FLASH_READ2] & 1;
        }
 
        /*
         * Prevent writes to uninitialized FLASH.
         */
        if (info->flash_id != FLASH_UNKNOWN) {
-               addr2 = (CFG_FLASH_WORD_SIZE *)info->start[0];
-               *addr2 = (CFG_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
+               addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+               *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;        /* reset bank */
        }
 
        return (info->size);
@@ -402,8 +402,8 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
 
 int flash_erase(flash_info_t *info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        ulong start, now, last;
 
@@ -438,14 +438,14 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect<=s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[sect]);
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
 
                                /* re-enable interrupts if necessary */
                                if (flag) {
@@ -455,20 +455,20 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
 
                                /* data polling for D7 */
                                start = get_timer (0);
-                               while ((addr2[0] & (CFG_FLASH_WORD_SIZE)0x00800080) !=
-                                      (CFG_FLASH_WORD_SIZE)0x00800080) {
-                                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+                               while ((addr2[0] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) !=
+                                      (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) {
+                                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                                return (1);
                                }
                        } else {
                                if (sect == s_first) {
-                                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
+                                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
                                }
-                               addr2[0] = (CFG_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
                        }
                        l_sect = sect;
                }
@@ -489,9 +489,9 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
 
        start = get_timer (0);
        last  = start;
-       addr = (CFG_FLASH_WORD_SIZE *)(info->start[l_sect]);
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE)0x00800080) != (CFG_FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[l_sect]);
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) != (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -504,8 +504,8 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
 
 DONE:
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *)info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE)0x00F000F0;      /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
 
        printf (" done\n");
        return 0;
@@ -585,9 +585,9 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
  */
 static int write_word(flash_info_t *info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *)dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *)&data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *)dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *)&data;
        ulong start;
        int flag;
        int i;
@@ -599,10 +599,10 @@ static int write_word(flash_info_t *info, ulong dest, ulong data)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts();
 
-       for (i=0; i<4/sizeof(CFG_FLASH_WORD_SIZE); i++) {
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00A000A0;
+       for (i=0; i<4/sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -612,9 +612,9 @@ static int write_word(flash_info_t *info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer (0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE)0x00800080) !=
-                      (data2[i] & (CFG_FLASH_WORD_SIZE)0x00800080)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) !=
+                      (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080)) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
        }
index 36a40c97a3d4346125e8bac433beb67ac8af380a..25e7f4f70fc0006d9ee4fbc1e42af0b9b8c4f0bd 100644 (file)
@@ -93,10 +93,10 @@ tlbtab:
         * BOOT_CS (FLASH) must be first. Before relocation SA_I can be off to use the
         * speed up boot process. It is patched after relocation to enable SA_I
         */
-       tlbentry( CFG_BOOT_BASE_ADDR, SZ_256M, CFG_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
+       tlbentry( CONFIG_SYS_BOOT_BASE_ADDR, SZ_256M, CONFIG_SYS_BOOT_BASE_ADDR, 0, AC_R|AC_W|AC_X|SA_G/*|SA_I*/)
 
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CFG_INIT_RAM_ADDR, SZ_64K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
 
        /*
         * TLB entries for SDRAM are not needed on this platform.
@@ -104,15 +104,15 @@ tlbtab:
         * routine.
         */
 
-       tlbentry( CFG_PCI_BASE, SZ_256M, CFG_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, CONFIG_SYS_PCI_BASE, 0, AC_R|AC_W|SA_G|SA_I )
 
        /* PCI */
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, CFG_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE3, SZ_256M, CFG_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE3, SZ_256M, CONFIG_SYS_PCI_MEMBASE3, 0, AC_R|AC_W|SA_G|SA_I )
 
        /* USB 2.0 Device */
-       tlbentry( CFG_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_USB_DEVICE, SZ_1K, 0x50000000, 0, AC_R|AC_W|SA_G|SA_I )
 
        tlbtab_end
index 21405829d081c1232581e3e072c6a9c3041e7084..271005f0f8fcb70ac6ef2443610c2589a80d825b 100644 (file)
@@ -34,7 +34,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips   */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 unsigned char  sha1_checksum[SHA1_SUM_LEN];
 
@@ -193,7 +193,7 @@ void load_sernum_ethaddr (void)
        /* read the MACs from EEprom */
        status_led_set (0, STATUS_LED_ON);
        status_led_set (1, STATUS_LED_ON);
-       ret = eeprom_read (CFG_I2C_EEPROM_ADDR, 0, (uchar *)buf, EEPROM_LEN);
+       ret = eeprom_read (CONFIG_SYS_I2C_EEPROM_ADDR, 0, (uchar *)buf, EEPROM_LEN);
        if (ret == 0) {
                checksumcrc16 = cyg_crc16 ((uchar *)buf, EEPROM_LEN - 2);
                /* check, if the EEprom is programmed:
@@ -379,8 +379,8 @@ static int pcs440ep_sha1 (int docheck)
        unsigned char org[20];
        int     i, len = CONFIG_SHA1_LEN;
 
-       memcpy ((char *)CFG_LOAD_ADDR, (char *)CONFIG_SHA1_START, len);
-       data = (unsigned char *)CFG_LOAD_ADDR;
+       memcpy ((char *)CONFIG_SYS_LOAD_ADDR, (char *)CONFIG_SHA1_START, len);
+       data = (unsigned char *)CONFIG_SYS_LOAD_ADDR;
        ptroff = &data[len + SHA1_SUM_POS];
 
        for (i = 0; i < SHA1_SUM_LEN; i++) {
@@ -485,7 +485,7 @@ int misc_init_r (void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[1]);
 
@@ -616,7 +616,7 @@ int pci_pre_init(struct pci_controller *hose)
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -630,14 +630,14 @@ void pci_target_init(struct pci_controller *hose)
          | Make this region non-prefetchable.
          +--------------------------------------------------------------------------*/
        out32r(PCIX0_PMM0MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM0LA, CFG_PCI_MEMBASE);  /* PMM0 Local Address */
-       out32r(PCIX0_PMM0PCILA, CFG_PCI_MEMBASE);       /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM0LA, CONFIG_SYS_PCI_MEMBASE);   /* PMM0 Local Address */
+       out32r(PCIX0_PMM0PCILA, CONFIG_SYS_PCI_MEMBASE);        /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM0PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM0MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
        out32r(PCIX0_PMM1MA, 0x00000000);       /* PMM0 Mask/Attribute - disabled b4 setting */
-       out32r(PCIX0_PMM1LA, CFG_PCI_MEMBASE2); /* PMM0 Local Address */
-       out32r(PCIX0_PMM1PCILA, CFG_PCI_MEMBASE2);      /* PMM0 PCI Low Address */
+       out32r(PCIX0_PMM1LA, CONFIG_SYS_PCI_MEMBASE2);  /* PMM0 Local Address */
+       out32r(PCIX0_PMM1PCILA, CONFIG_SYS_PCI_MEMBASE2);       /* PMM0 PCI Low Address */
        out32r(PCIX0_PMM1PCIHA, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_PMM1MA, 0xE0000001);       /* 512M + No prefetching, and enable region */
 
@@ -652,8 +652,8 @@ void pci_target_init(struct pci_controller *hose)
 
        /* Program the board's subsystem id/vendor id */
        pci_write_config_word(0, PCI_SUBSYSTEM_VENDOR_ID,
-                             CFG_PCI_SUBSYS_VENDORID);
-       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_ID);
+                             CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(0, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_ID);
 
        /* Configure command register as bus master */
        pci_write_config_word(0, PCI_COMMAND, PCI_COMMAND_MASTER);
@@ -667,13 +667,13 @@ void pci_target_init(struct pci_controller *hose)
        pci_write_config_dword(0, PCI_BRDGOPT2, 0x00000101);
 
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  pci_master_init
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        unsigned short temp_short;
@@ -688,7 +688,7 @@ void pci_master_init(struct pci_controller *hose)
                              temp_short | PCI_COMMAND_MASTER |
                              PCI_COMMAND_MEMORY);
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 /*************************************************************************
  *  is_pci_host
index 3f01921bd4e1bbc3f1bb7b88f32508ce027f6d70..abaf0b4d24af018ca4b3f36a43e5f71b4819c91e 100644 (file)
@@ -28,7 +28,7 @@
  */
 #include <environment.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 /* NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it
  *        has nothing to do with the flash chip being 8-bit or 16-bit.
@@ -59,7 +59,7 @@ static int write_word_intel (flash_info_t * info, FPWV * dest, FPW data);
 static int write_word_amd (flash_info_t * info, FPWV * dest, FPW data);
 static void flash_get_offsets (ulong base, flash_info_t * info);
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 static void flash_sync_real_protect (flash_info_t * info);
 #endif
 
@@ -74,11 +74,11 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       size_b = flash_get_size ((FPW *) CFG_FLASH_BASE, &flash_info[0]);
+       size_b = flash_get_size ((FPW *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size_b;
 
@@ -90,20 +90,20 @@ unsigned long flash_init (void)
        /* Do this again (was done already in flast_get_size), just
         * in case we move it when remap the FLASH.
         */
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
        /* read the hardware protection status (if any) into the
         * protection array in flash_info.
         */
        flash_sync_real_protect (&flash_info[0]);
 #endif
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 #endif
 
@@ -418,7 +418,7 @@ ulong flash_get_size (FPWV * addr, flash_info_t * info)
        return (info->size);
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 
@@ -559,7 +559,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                while ((*addr & (FPW) 0x00800080) != (FPW) 0x00800080) {
                        if ((now =
-                            get_timer_masked ()) > CFG_FLASH_ERASE_TOUT) {
+                            get_timer_masked ()) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
 
                                if (intel) {
@@ -573,7 +573,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        }
 
                        /* show that we're waiting */
-                       if ((now - last) > 1 * CFG_HZ) {        /* every second */
+                       if ((now - last) > 1 * CONFIG_SYS_HZ) { /* every second */
                                putc ('.');
                                last = now;
                        }
@@ -609,7 +609,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                /* combine source and destination data so can program
                 * an entire word of 16 or 32 bits
                 */
-#ifdef CFG_LITTLE_ENDIAN
+#ifdef CONFIG_SYS_LITTLE_ENDIAN
                for (i = 0; i < sizeof (data); i++) {
                        data >>= 8;
                        if (i < bytes || i - bytes >= left)
@@ -688,7 +688,7 @@ static int write_word_amd (flash_info_t * info, FPWV * dest, FPW data)
        /* data polling for D7 */
        while (res == 0
               && (*dest & (FPW) 0x00800080) != (data & (FPW) 0x00800080)) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW) 0x00F000F0;       /* reset bank */
                        res = 1;
                }
@@ -733,7 +733,7 @@ static int write_word_intel (flash_info_t * info, FPWV * dest, FPW data)
        reset_timer_masked ();
 
        while (res == 0 && (*dest & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *dest = (FPW) 0x00B000B0;       /* Suspend program      */
                        res = 1;
                }
@@ -748,7 +748,7 @@ static int write_word_intel (flash_info_t * info, FPWV * dest, FPW data)
        return (res);
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 int flash_real_protect (flash_info_t * info, long sector, int prot)
index add2c531ab2174140f6eccc0a1c12e5d774bf1d4..b95ff9cf2faf534533639d9c66fa385de7c27c99 100644 (file)
@@ -24,7 +24,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
        .macro CPWAIT reg
@@ -41,92 +41,92 @@ lowlevel_init:
        /* Set up GPIO pins first */
 
        ldr     r0,   =GPSR0
-       ldr     r1,   =CFG_GPSR0_VAL
+       ldr     r1,   =CONFIG_SYS_GPSR0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPSR1
-       ldr     r1,   =CFG_GPSR1_VAL
+       ldr     r1,   =CONFIG_SYS_GPSR1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPSR2
-       ldr     r1,   =CFG_GPSR2_VAL
+       ldr     r1,   =CONFIG_SYS_GPSR2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPCR0
-       ldr     r1,   =CFG_GPCR0_VAL
+       ldr     r1,   =CONFIG_SYS_GPCR0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPCR1
-       ldr     r1,   =CFG_GPCR1_VAL
+       ldr     r1,   =CONFIG_SYS_GPCR1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPCR2
-       ldr     r1,   =CFG_GPCR2_VAL
+       ldr     r1,   =CONFIG_SYS_GPCR2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GRER0
-       ldr     r1,   =CFG_GRER0_VAL
+       ldr     r1,   =CONFIG_SYS_GRER0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GRER1
-       ldr     r1,   =CFG_GRER1_VAL
+       ldr     r1,   =CONFIG_SYS_GRER1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GRER2
-       ldr     r1,   =CFG_GRER2_VAL
+       ldr     r1,   =CONFIG_SYS_GRER2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GFER0
-       ldr     r1,   =CFG_GFER0_VAL
+       ldr     r1,   =CONFIG_SYS_GFER0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GFER1
-       ldr     r1,   =CFG_GFER1_VAL
+       ldr     r1,   =CONFIG_SYS_GFER1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GFER2
-       ldr     r1,   =CFG_GFER2_VAL
+       ldr     r1,   =CONFIG_SYS_GFER2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPDR0
-       ldr     r1,   =CFG_GPDR0_VAL
+       ldr     r1,   =CONFIG_SYS_GPDR0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPDR1
-       ldr     r1,   =CFG_GPDR1_VAL
+       ldr     r1,   =CONFIG_SYS_GPDR1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPDR2
-       ldr     r1,   =CFG_GPDR2_VAL
+       ldr     r1,   =CONFIG_SYS_GPDR2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR0_L
-       ldr     r1,   =CFG_GAFR0_L_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR0_L_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR0_U
-       ldr     r1,   =CFG_GAFR0_U_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR0_U_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR1_L
-       ldr     r1,   =CFG_GAFR1_L_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR1_L_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR1_U
-       ldr     r1,   =CFG_GAFR1_U_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR1_U_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR2_L
-       ldr     r1,   =CFG_GAFR2_L_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR2_L_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR2_U
-       ldr     r1,   =CFG_GAFR2_U_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR2_U_VAL
        str     r1,   [r0]
 
        /* enable GPIO pins */
        ldr     r0,   =PSSR
-       ldr     r1,   =CFG_PSSR_VAL
+       ldr     r1,   =CONFIG_SYS_PSSR_VAL
        str     r1,   [r0]
 
 
@@ -161,61 +161,61 @@ mem_init:
        @ Step 2a
        @ write msc0, read back to ensure data latches
        @
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]
 
        @ write msc1
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        @ write msc2
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
 
 @ Step 2b
        @ write mecr
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
 
        @ write mcmem0
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
 
        @ write mcmem1
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
 
        @ write mcatt0
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
 
        @ write mcatt1
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
 
        @ write mcio0
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
 
        @ write mcio1
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
 
 @ Step 2c
        @ fly-by-dma is defeatured on this part
        @ write flycnfg
-       @ldr    r2,  =CFG_FLYCNFG_VAL
+       @ldr    r2,  =CONFIG_SYS_FLYCNFG_VAL
        @str    r2,  [r1, #FLYCNFG_OFFSET]
 
 /* FIXME Does this sequence really make sense */
 #ifdef REDBOOT_WAY
        @ Step 2d
        @ get the mdrefr settings
-       ldr     r3,  =CFG_MDREFR_VAL
+       ldr     r3,  =CONFIG_SYS_MDREFR_VAL
 
        @ extract DRI field (we need a valid DRI field)
        @
@@ -296,7 +296,7 @@ mem_init:
 #else
        @ Step 2d
        @ get the mdrefr settings
-       ldr     r3,  =CFG_MDREFR_VAL
+       ldr     r3,  =CONFIG_SYS_MDREFR_VAL
 
        @ write back mdrefr
        @
@@ -340,7 +340,7 @@ mem_init:
        @ Step 4d
        @ fetch platform value of mdcnfg
        @
-       ldr     r2,  =CFG_MDCNFG_VAL
+       ldr     r2,  =CONFIG_SYS_MDCNFG_VAL
 
        @ disable all sdram banks
        @
@@ -375,7 +375,7 @@ mem_init:
        @ Access memory *not yet enabled* for CBR refresh cycles (8)
        @ - CBR is generated for all banks
 
-       ldr     r2, =CFG_DRAM_BASE
+       ldr     r2, =CONFIG_SYS_DRAM_BASE
        str     r2, [r2]
        str     r2, [r2]
        str     r2, [r2]
@@ -405,7 +405,7 @@ mem_init:
        @ Step 4h
        @ write mdmrs
        @
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
        @ Done Memory Init
@@ -424,7 +424,7 @@ mem_init:
 
        @ Set interrupt mask register
        @
-       ldr     r1,  =CFG_ICMR_VAL
+       ldr     r1,  =CONFIG_SYS_ICMR_VAL
        ldr     r2,  =ICMR
        str     r1,  [r2]
 
@@ -440,7 +440,7 @@ mem_init:
 
        @ set core clocks
        @
-       ldr     r2,  =CFG_CCCR_VAL
+       ldr     r2,  =CONFIG_SYS_CCCR_VAL
        ldr     r1,  =CCCR
        str     r2,  [r1]
 
@@ -463,7 +463,7 @@ mem_init:
        @ Turn on needed clocks
        @
        ldr     r1,  =CKEN
-       ldr     r2,  =CFG_CKEN_VAL
+       ldr     r2,  =CONFIG_SYS_CKEN_VAL
        str     r2,  [r1]
 
        /*SET_LED 7 */
index 9ec843e11e43eebe7e1c59b8b56f95b9cae56e44..64c86241579570c91114c29bdde455f368ae2a59 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -87,11 +87,11 @@ unsigned long flash_init (void)
        ulong size = 0;
        extern void flash_preinit(void);
        extern void flash_afterinit(ulong, ulong);
-       ulong flashbase = CFG_FLASH_BASE;
+       ulong flashbase = CONFIG_SYS_FLASH_BASE;
 
        flash_preinit();
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        memset(&flash_info[i], 0, sizeof(flash_info_t));
@@ -110,11 +110,11 @@ unsigned long flash_init (void)
 
        /* Protect monitor and environment sectors
         */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
 #ifndef CONFIG_BOOT_ROM
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 #endif
 #endif
@@ -245,28 +245,28 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                /* In U-Boot we support only 32 MB (no bank-switching) */
                info->sector_count = 256 / 2;
                info->size =  0x04000000 / 2;
-               info->start[0] = CFG_FLASH_BASE + 0x02000000;
+               info->start[0] = CONFIG_SYS_FLASH_BASE + 0x02000000;
                break;                          /* => 32 MB     */
 
        case (FPW) INTEL_ID_28F128J3A:
                info->flash_id += FLASH_28F128J3A;
                info->sector_count = 128;
                info->size = 0x02000000;
-               info->start[0] = CFG_FLASH_BASE + 0x02000000;
+               info->start[0] = CONFIG_SYS_FLASH_BASE + 0x02000000;
                break;                          /* => 32 MB     */
 
        case (FPW) INTEL_ID_28F640J3A:
                info->flash_id += FLASH_28F640J3A;
                info->sector_count = 64;
                info->size = 0x01000000;
-               info->start[0] = CFG_FLASH_BASE + 0x03000000;
+               info->start[0] = CONFIG_SYS_FLASH_BASE + 0x03000000;
                break;                          /* => 16 MB     */
 
        case (FPW) INTEL_ID_28F320J3A:
                info->flash_id += FLASH_28F320J3A;
                info->sector_count = 32;
                info->size = 0x800000;
-               info->start[0] = CFG_FLASH_BASE + 0x03800000;
+               info->start[0] = CONFIG_SYS_FLASH_BASE + 0x03800000;
                break;                          /* => 8 MB     */
 
        default:
@@ -274,10 +274,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;             /* restore read mode */
@@ -328,7 +328,7 @@ static unsigned char intel_sector_protected (flash_info_t *info, ushort sector)
        /*
         * first, wait for the WSM to be finished. The rationale for
         * waiting for the WSM to become idle for at most
-        * CFG_FLASH_ERASE_TOUT is as follows. The WSM can be busy
+        * CONFIG_SYS_FLASH_ERASE_TOUT is as follows. The WSM can be busy
         * because of: (1) erase, (2) program or (3) lock bit
         * configuration. So we just wait for the longest timeout of
         * the (1)-(3), i.e. the erase timeout.
@@ -341,7 +341,7 @@ static unsigned char intel_sector_protected (flash_info_t *info, ushort sector)
 
        start = get_timer (0);
        while ((*addr & (FPW) INTEL_FINISHED) != (FPW) INTEL_FINISHED) {
-               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        *addr = (FPW) INTEL_RESET; /* restore read mode */
                        printf("WSM busy too long, can't get prot status\n");
                        return 1;
@@ -425,7 +425,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW) 0x00D000D0;       /* erase confirm */
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                               if (get_timer(start) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -560,7 +560,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
@@ -606,7 +606,7 @@ int flash_real_protect (flash_info_t *info, long sector, int prot)
        start = get_timer(0);
 
        while ((*addr & INTEL_FINISHED) != INTEL_FINISHED) {
-               if (get_timer(start) > CFG_FLASH_UNLOCK_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                        printf("Flash lock bit operation timed out\n");
                        rc = 1;
                        break;
@@ -643,7 +643,7 @@ int flash_real_protect (flash_info_t *info, long sector, int prot)
                                *addr = INTEL_PROTECT;  /* set */
                                while ((*addr & INTEL_FINISHED) != INTEL_FINISHED)
                                {
-                                       if (get_timer(start) > CFG_FLASH_UNLOCK_TOUT)
+                                       if (get_timer(start) > CONFIG_SYS_FLASH_UNLOCK_TOUT)
                                        {
                                                printf("Flash lock bit operation timed out\n");
                                                rc = 1;
index 6db93fbb4f3afe6f2205364ff5e769dcced6efee..9da1041733f07cbfed9f1c126b4be39c5dc601dd 100644 (file)
@@ -37,7 +37,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -80,7 +80,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -89,7 +89,7 @@ phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -110,9 +110,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -138,10 +138,10 @@ phys_size_t initdram (int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start(0);
-       test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+               test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        }
        if (test1 > test2) {
                sdram_start(0);
@@ -163,7 +163,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -181,7 +181,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize + dramsize2;
 }
@@ -191,7 +191,7 @@ phys_size_t initdram (int board_type)
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup and enable SDRAM chip selects */
@@ -210,9 +210,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size */
        sdram_start(0);
-       test1 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((ulong *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((ulong *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -223,12 +223,12 @@ phys_size_t initdram (int board_type)
        /* set SDRAM end address according to size */
        *(vu_long *)MPC5XXX_SDRAM_STOP = ((dramsize - 1) >> 15);
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* Retrieve amount of SDRAM available */
        dramsize = ((*(vu_long *)MPC5XXX_SDRAM_STOP + 1) << 15);
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize;
 }
@@ -318,7 +318,7 @@ void ide_set_reset (int idereset)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-       doc_probe (CFG_DOC_BASE);
+       doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
 
index bd6d7d988bbbad0e0856544c9ed68634f95908e7..010f59a6bb60e83f18193e516f812b3556808b63 100644 (file)
@@ -28,7 +28,7 @@
 #include <mpc8xx.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  */
@@ -116,13 +116,13 @@ unsigned long flash_init (void)
 
        /* Init: no FLASHes known
         */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here (only one bank) */
 
-       size_b0 = flash_get_size ((ulong *) CFG_FLASH0_BASE, &flash_info[0]);
+       size_b0 = flash_get_size ((ulong *) CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size_b0 == 0) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                                size_b0, size_b0 >> 20);
@@ -132,14 +132,14 @@ unsigned long flash_init (void)
         */
 
 #ifndef CONFIG_BOOT_ROM
-       /* If U-Boot is  booted from ROM the CFG_MONITOR_BASE > CFG_FLASH0_BASE
+       /* If U-Boot is  booted from ROM the CONFIG_SYS_MONITOR_BASE > CONFIG_SYS_FLASH0_BASE
         * but we shouldn't protect it.
         */
 
-# if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+# if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
        );
 # endif
 #endif /* CONFIG_BOOT_ROM */
@@ -267,7 +267,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        last = start;
                        while ((addr[0] & 0x00800080) != 0x00800080 ||
                                   (addr[1] & 0x00800080) != 0x00800080) {
-                               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout (erase suspended!)\n");
                                        /* Suspend erase
                                         */
@@ -362,7 +362,7 @@ static int write_word (flash_info_t * info, volatile unsigned long *addr,
 
        start = get_timer (0);
        while ((*addr & 0x00800080) != 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        /* Suspend program
                         */
                        *addr = 0x00B000B0;
index 2304420a886910acf34662ee9d97bc1de8bbacf1..19e7a000283ea716f2420b54c85cf66876792aa6 100644 (file)
@@ -256,7 +256,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -267,7 +267,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -282,29 +282,29 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong size8, size9;
 #endif
        ulong psize = 32 * 1024 * 1024;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                                         (uchar *) CFG_SDRAM_BASE);
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR2_9COL,
-                                         (uchar *) CFG_SDRAM_BASE);
+#ifndef CONFIG_SYS_RAMBOOT
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR2_9COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
        if (size8 < size9) {
                psize = size9;
                printf ("(60x:9COL) ");
        } else {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:8COL) ");
        }
 #endif
@@ -314,7 +314,7 @@ phys_size_t initdram (int board_type)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-       doc_probe (CFG_DOC_BASE);
+       doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
 
index 2e92c11f1ef212675053a5d6b8accc8fc6bff155..4958a95ff32cf7ffe897aa77ee40ed3597ac3e3b 100644 (file)
@@ -28,7 +28,7 @@
 #include <mpc8xx.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  */
@@ -116,13 +116,13 @@ unsigned long flash_init (void)
 
        /* Init: no FLASHes known
         */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here (only one bank) */
 
-       size_b0 = flash_get_size ((ulong *) CFG_FLASH0_BASE, &flash_info[0]);
+       size_b0 = flash_get_size ((ulong *) CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size_b0 == 0) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                                size_b0, size_b0 >> 20);
@@ -132,14 +132,14 @@ unsigned long flash_init (void)
         */
 
 #ifndef CONFIG_BOOT_ROM
-       /* If U-Boot is  booted from ROM the CFG_MONITOR_BASE > CFG_FLASH0_BASE
+       /* If U-Boot is  booted from ROM the CONFIG_SYS_MONITOR_BASE > CONFIG_SYS_FLASH0_BASE
         * but we shouldn't protect it.
         */
 
-# if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+# if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]
        );
 # endif
 #endif /* CONFIG_BOOT_ROM */
@@ -267,7 +267,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        last = start;
                        while ((addr[0] & 0x00800080) != 0x00800080 ||
                                   (addr[1] & 0x00800080) != 0x00800080) {
-                               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout (erase suspended!)\n");
                                        /* Suspend erase
                                         */
@@ -362,7 +362,7 @@ static int write_word (flash_info_t * info, volatile unsigned long *addr,
 
        start = get_timer (0);
        while ((*addr & 0x00800080) != 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        /* Suspend program
                         */
                        *addr = 0x00B000B0;
index 296a199336dc0d1abee42f20023b9aa11410794e..4a3b2fd89b3b2bacee4994a4210280eb5ddbdae0 100644 (file)
@@ -259,7 +259,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -270,7 +270,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -315,29 +315,29 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong size8, size9;
 #endif
        ulong psize = 32 * 1024 * 1024;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                                         (uchar *) CFG_SDRAM_BASE);
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR2_9COL,
-                                         (uchar *) CFG_SDRAM_BASE);
+#ifndef CONFIG_SYS_RAMBOOT
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR2_9COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
        if (size8 < size9) {
                psize = size9;
                printf ("(60x:9COL) ");
        } else {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR2_8COL,
-                                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR2_8COL,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:8COL) ");
        }
 #endif
@@ -347,7 +347,7 @@ phys_size_t initdram (int board_type)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-       doc_probe (CFG_DOC_BASE);
+       doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
 
index d74d17abdf763bf5ac07c8d8dfe1e6d8611e5427..39e8dbbd532544b03edeb772864615384ed7539d 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
        /* This is not so much the SDRAM map as it is the whole localbus map. */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 90523bda531d3cb7b5c53336f7f586d5f3c2805f..db855df6fb7974d16f3e11d58c84993149a5e29e 100644 (file)
@@ -46,7 +46,7 @@ long int fixed_sdram(void);
 int board_early_init_f (void)
 {
 #if defined(CONFIG_PCI)
-    volatile ccsr_pcix_t *pci = (void *)(CFG_MPC85xx_PCIX_ADDR);
+    volatile ccsr_pcix_t *pci = (void *)(CONFIG_SYS_MPC85xx_PCIX_ADDR);
 
     pci->peer &= 0xffffffdf; /* disable master abort */
 #endif
@@ -83,7 +83,7 @@ initdram(int board_type)
 
 #if defined(CONFIG_DDR_DLL)
        {
-           volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+           volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
            int i,x;
 
            x = 10;
@@ -133,8 +133,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -154,10 +154,10 @@ local_bus_init(void)
        lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
 
        if (lbc_hz < 66) {
-               lbc->lcrr = CFG_LBC_LCRR | 0x80000000;  /* DLL Bypass */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR | 0x80000000;   /* DLL Bypass */
 
        } else if (lbc_hz >= 133) {
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000); /* DLL Enabled */
 
        } else {
                /*
@@ -172,7 +172,7 @@ local_bus_init(void)
                        lbc->lcrr = 0x10000004;
                }
 
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000); /* DLL Enabled */
                udelay(200);
 
                /*
@@ -186,11 +186,11 @@ local_bus_init(void)
 }
 
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("SDRAM test phase 1:\n");
@@ -227,15 +227,15 @@ int testdram (void)
  ************************************************************************/
 long int fixed_sdram (void)
 {
-  #ifndef CFG_RAMBOOT
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
-
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
+  #ifndef CONFIG_SYS_RAMBOOT
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
+
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
     #if defined (CONFIG_DDR_ECC)
        ddr->err_disable = 0x0000000D;
        ddr->err_sbe = 0x00ff0000;
@@ -244,14 +244,14 @@ long int fixed_sdram (void)
        udelay(500);
     #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
     #else
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
     #endif
        asm("sync; isync; msync");
        udelay(500);
   #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
index a7f3813501a7d1ae8e8fc716036507ed5b382bf6..5e74e2ded13ed5b56ec9463b18b4bc3ff2e7528f 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    Rapid IO MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xd0000000   256M    Rapid IO MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE + 0x10000000, CFG_RIO_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE + 0x10000000, CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -87,7 +87,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe000_0000  1M      CCSRBAR
         * 0xe200_0000  16M     PCI1 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -95,7 +95,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -108,7 +108,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Likely it needs to be increased by two for these entries.
         */
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 7, BOOKE_PAGESZ_256M, 1),
 #endif
index d74d17abdf763bf5ac07c8d8dfe1e6d8611e5427..39e8dbbd532544b03edeb772864615384ed7539d 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
        /* This is not so much the SDRAM map as it is the whole localbus map. */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index ee33286aca4f9a966eca71d0778ce0679cd43972..50c42810be442037bb869fce54af5a0f5114199d 100644 (file)
@@ -238,7 +238,7 @@ initdram(int board_type)
 
 #if defined(CONFIG_DDR_DLL)
        {
-           volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+           volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
            int i,x;
 
            x = 10;
@@ -289,8 +289,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -310,10 +310,10 @@ local_bus_init(void)
        lbc_hz = sysinfo.freqSystemBus / 1000000 / clkdiv;
 
        if (lbc_hz < 66) {
-               lbc->lcrr = CFG_LBC_LCRR | 0x80000000;  /* DLL Bypass */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR | 0x80000000;   /* DLL Bypass */
 
        } else if (lbc_hz >= 133) {
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000); /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000); /* DLL Enabled */
 
        } else {
                /*
@@ -328,7 +328,7 @@ local_bus_init(void)
                        lbc->lcrr = 0x10000004;
                }
 
-               lbc->lcrr = CFG_LBC_LCRR & (~0x80000000);/* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~0x80000000);/* DLL Enabled */
                udelay(200);
 
                /*
@@ -341,11 +341,11 @@ local_bus_init(void)
        }
 }
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("SDRAM test phase 1:\n");
@@ -382,15 +382,15 @@ int testdram (void)
  ************************************************************************/
 long int fixed_sdram (void)
 {
-  #ifndef CFG_RAMBOOT
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
-
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
+  #ifndef CONFIG_SYS_RAMBOOT
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
+
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
     #if defined (CONFIG_DDR_ECC)
        ddr->err_disable = 0x0000000D;
        ddr->err_sbe = 0x00ff0000;
@@ -399,14 +399,14 @@ long int fixed_sdram (void)
        udelay(500);
     #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
     #else
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
     #endif
        asm("sync; isync; msync");
        udelay(500);
   #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
index a7f3813501a7d1ae8e8fc716036507ed5b382bf6..5e74e2ded13ed5b56ec9463b18b4bc3ff2e7528f 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    Rapid IO MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xd0000000   256M    Rapid IO MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE + 0x10000000, CFG_RIO_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE + 0x10000000, CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -87,7 +87,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe000_0000  1M      CCSRBAR
         * 0xe200_0000  16M     PCI1 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -95,7 +95,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -108,7 +108,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Likely it needs to be increased by two for these entries.
         */
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 7, BOOKE_PAGESZ_256M, 1),
 #endif
index 60fc431db5f2a41ea4efac8ef59894af08b91662..1b545bfa9d5e9aed0730cf37c2006545df4fc855 100644 (file)
@@ -85,7 +85,7 @@ phys_size_t initdram (int board_type)
 
        show_startup_phase (2);
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg (MEAR1);
index 1722a35c95cba29ca9a2bfcb9dc2941a39e523f0..e7242271dd29617b23eca9a9979113b5b3dda206 100644 (file)
@@ -19,7 +19,7 @@
 static int     write_dword (flash_info_t* info, ulong dest, unsigned char *pdata);
 static void    write_via_fpu (volatile DWORD* addr, DWORD* data);
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  */
@@ -177,12 +177,12 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here (only one bank) */
-       size_b0 = flash_get_size (CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size_b0 == 0) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                                size_b0, size_b0 >> 20);
@@ -191,10 +191,10 @@ unsigned long flash_init (void)
        /*
         * protect monitor and environment sectors
         */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
@@ -359,7 +359,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        while ((*(volatile DWORD*)info->start[l_sect] & 0x0080008000800080LL )
                                != 0x0080008000800080LL )
        {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -477,7 +477,7 @@ static int write_dword (flash_info_t * info, ulong dest, unsigned char *pdata)
        /* data polling for D7 */
        start = get_timer (0);
        while (*(volatile DWORD*)dest != data ) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 5b115ea617bf584188b426c559658a9d185d25d6..bf133b77de95d3b8afbf4fac8cf0dec52e0be639 100644 (file)
@@ -42,37 +42,37 @@ void pci_init_board(void)
     hose->last_busno = 0xff;
 
     pci_set_region(hose->regions + 0,
-       CFG_PCI_MEMORY_BUS,
-       CFG_PCI_MEMORY_PHYS,
-       CFG_PCI_MEMORY_SIZE,
+       CONFIG_SYS_PCI_MEMORY_BUS,
+       CONFIG_SYS_PCI_MEMORY_PHYS,
+       CONFIG_SYS_PCI_MEMORY_SIZE,
        PCI_REGION_MEM | PCI_REGION_MEMORY);
 
     /* PCI memory space */
     pci_set_region(hose->regions + 1,
-       CFG_PCI_MEM_BUS,
-       CFG_PCI_MEM_PHYS,
-       CFG_PCI_MEM_SIZE,
+       CONFIG_SYS_PCI_MEM_BUS,
+       CONFIG_SYS_PCI_MEM_PHYS,
+       CONFIG_SYS_PCI_MEM_SIZE,
        PCI_REGION_MEM);
 
     /* ISA/PCI memory space */
     pci_set_region(hose->regions + 2,
-       CFG_ISA_MEM_BUS,
-       CFG_ISA_MEM_PHYS,
-       CFG_ISA_MEM_SIZE,
+       CONFIG_SYS_ISA_MEM_BUS,
+       CONFIG_SYS_ISA_MEM_PHYS,
+       CONFIG_SYS_ISA_MEM_SIZE,
        PCI_REGION_MEM);
 
     /* PCI I/O space */
     pci_set_region(hose->regions + 3,
-       CFG_PCI_IO_BUS,
-       CFG_PCI_IO_PHYS,
-       CFG_PCI_IO_SIZE,
+       CONFIG_SYS_PCI_IO_BUS,
+       CONFIG_SYS_PCI_IO_PHYS,
+       CONFIG_SYS_PCI_IO_SIZE,
        PCI_REGION_IO);
 
     /* ISA/PCI I/O space */
     pci_set_region(hose->regions + 4,
-       CFG_ISA_IO_BUS,
-       CFG_ISA_IO_PHYS,
-       CFG_ISA_IO_SIZE,
+       CONFIG_SYS_ISA_IO_BUS,
+       CONFIG_SYS_ISA_IO_PHYS,
+       CONFIG_SYS_ISA_IO_SIZE,
        PCI_REGION_IO);
 
     hose->region_count = 5;
index 9c87c1078c56a44232ecd183c8cabb5848be6d5e..944cd4ddc6c89fa929f8d35bd247f60fa43f5771 100644 (file)
@@ -32,7 +32,7 @@ extern void _start_warm(void);
  */
 phys_size_t initdram( int board_type )
 {
-    return CFG_SDRAM_SIZE;
+    return CONFIG_SYS_SDRAM_SIZE;
 }
 
 
index f3c85096b3fa4005da5f2dfe3739e45d6d3abb06..1808abdcb067c1da133318a6f395f4bc1b4fa2d6 100644 (file)
@@ -201,14 +201,14 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        volatile uchar c = 0xff;
-       volatile uchar *ramaddr0 = (uchar *) (CFG_SDRAM0_BASE);
-       volatile uchar *ramaddr1 = (uchar *) (CFG_SDRAM1_BASE);
-       ulong psdmr = CFG_PSDMR;
-       volatile uchar *ramaddr2 = (uchar *) (CFG_SDRAM2_BASE);
-       ulong lsdmr = CFG_LSDMR;
+       volatile uchar *ramaddr0 = (uchar *) (CONFIG_SYS_SDRAM0_BASE);
+       volatile uchar *ramaddr1 = (uchar *) (CONFIG_SYS_SDRAM1_BASE);
+       ulong psdmr = CONFIG_SYS_PSDMR;
+       volatile uchar *ramaddr2 = (uchar *) (CONFIG_SYS_SDRAM2_BASE);
+       ulong lsdmr = CONFIG_SYS_LSDMR;
        int i;
 
        /*
@@ -228,13 +228,13 @@ phys_size_t initdram (int board_type)
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
        *ramaddr0++ = c;
        *ramaddr1++ = c;
@@ -246,8 +246,8 @@ phys_size_t initdram (int board_type)
        }
 
        memctl->memc_psdmr = psdmr | PSDMR_OP_MRW;
-       ramaddr0 = (uchar *) (CFG_SDRAM0_BASE + 0x110);
-       ramaddr1 = (uchar *) (CFG_SDRAM1_BASE + 0x110);
+       ramaddr0 = (uchar *) (CONFIG_SYS_SDRAM0_BASE + 0x110);
+       ramaddr1 = (uchar *) (CONFIG_SYS_SDRAM1_BASE + 0x110);
        *ramaddr0 = c;
        *ramaddr1 = c;
 
@@ -271,15 +271,15 @@ phys_size_t initdram (int board_type)
 #endif
 
        /* return total ram size */
-       return ((CFG_SDRAM0_SIZE + CFG_SDRAM1_SIZE) * 1024 * 1024);
+       return ((CONFIG_SYS_SDRAM0_SIZE + CONFIG_SYS_SDRAM1_SIZE) * 1024 * 1024);
 }
 
 #ifdef CONFIG_MISC_INIT_R
 /* ------------------------------------------------------------------------- */
 int misc_init_r (void)
 {
-#ifdef CFG_LED_BASE
-       uchar ds = *(unsigned char *) (CFG_LED_BASE + 1);
+#ifdef CONFIG_SYS_LED_BASE
+       uchar ds = *(unsigned char *) (CONFIG_SYS_LED_BASE + 1);
        uchar ss;
        uchar tmp[64];
        int res;
@@ -298,10 +298,10 @@ int misc_init_r (void)
                        tmp[17] = '\0';
                        setenv ("ethaddr", (char *)tmp);
                        /* set the led to show the address */
-                       *((unsigned char *) (CFG_LED_BASE + 1)) = ds;
+                       *((unsigned char *) (CONFIG_SYS_LED_BASE + 1)) = ds;
                }
        }
-#endif /* CFG_LED_BASE */
+#endif /* CONFIG_SYS_LED_BASE */
        return (0);
 }
 #endif /* CONFIG_MISC_INIT_R */
index f9abfac73f9009ea2cdd2a36f6e3239d04145e39..cc91627f01bbe448edc51ee3a34db9fe33d47b08 100644 (file)
@@ -104,7 +104,7 @@ typedef union {
 
 #define NUM_ERASE_REGIONS 4
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 
 /*-----------------------------------------------------------------------
@@ -121,7 +121,7 @@ static int flash_detect_cfi(flash_info_t * info);
 static ulong flash_get_size (ulong base, int banknum);
 static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword);
 static int flash_full_status_check(flash_info_t * info, ulong sector, ulong tout, char * prompt);
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp, int len);
 #endif
 /*-----------------------------------------------------------------------
@@ -181,15 +181,15 @@ unsigned long flash_init (void)
         *
         */
 
-       address = CFG_FLASH_BASE;
+       address = CONFIG_SYS_FLASH_BASE;
        size = 0;
 
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                size += flash_info[i].size = flash_get_size(address, i);
-               address += CFG_FLASH_INCREMENT;
+               address += CONFIG_SYS_FLASH_INCREMENT;
                if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                        printf ("## Unknown FLASH on Bank %d - Size = 0x%08lx = %ld MB\n",i,
                                flash_info[0].size, flash_info[i].size<<20);
@@ -197,8 +197,8 @@ unsigned long flash_init (void)
        }
 
        /* Monitor protection ON by default */
-#if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
-       for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+monitor_flash_len-1; i++)
+#if (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)
+       for(i=0; flash_info[0].start[i] < CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1; i++)
                (void)flash_real_protect(&flash_info[0], i, 1);
 #endif
 
@@ -319,7 +319,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                wp = cp;
        }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        while(cnt >= info->portwidth) {
                i = info->buffer_size > cnt? cnt: info->buffer_size;
                if((rc = flash_write_cfibuffer(info, wp, src,i)) != ERR_OK)
@@ -340,7 +340,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                wp += info->portwidth;
                cnt -= info->portwidth;
        }
-#endif /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
        if (cnt == 0) {
                return (0);
        }
@@ -679,7 +679,7 @@ static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword)
        return flash_full_status_check(info, 0, info->write_tout, "write");
 }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /* loop through the sectors from the highest address
  * when the passed address is greater or equal to the sector address
@@ -749,4 +749,4 @@ static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp, in
        flash_write_cmd(info, sector, 0, FLASH_CMD_CLEAR_STATUS);
        return retcode;
 }
-#endif /* CFG_USE_FLASH_BUFFER_WRITE */
+#endif /* CONFIG_SYS_USE_FLASH_BUFFER_WRITE */
index cc491d05b14bc18278f158d9bce27c291ff046fb..dc3431961f40c4c0b32c2e9b3cc3b321760bf466 100644 (file)
@@ -92,8 +92,8 @@ int board_early_init_f (void)
        mtdcr (uic0vr, 0x00000001); /* */
 
        /* Setup shutdown/SSD empty interrupt as inputs */
-       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~(CFG_GPIO_SHUTDOWN | CFG_GPIO_SSD_EMPTY));
-       out32(GPIO0_ODR, in32(GPIO0_ODR) & ~(CFG_GPIO_SHUTDOWN | CFG_GPIO_SSD_EMPTY));
+       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~(CONFIG_SYS_GPIO_SHUTDOWN | CONFIG_SYS_GPIO_SSD_EMPTY));
+       out32(GPIO0_ODR, in32(GPIO0_ODR) & ~(CONFIG_SYS_GPIO_SHUTDOWN | CONFIG_SYS_GPIO_SSD_EMPTY));
 
        /* Setup GPIO/IRQ multiplexing */
        mtsdr(sdr_pfc0, 0x01a33e00);
@@ -124,8 +124,8 @@ int last_stage_init(void)
 static int board_rev(void)
 {
        /* Setup as input */
-       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~(CFG_GPIO_REV0 | CFG_GPIO_REV1));
-       out32(GPIO0_ODR, in32(GPIO0_ODR) & ~(CFG_GPIO_REV0 | CFG_GPIO_REV1));
+       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~(CONFIG_SYS_GPIO_REV0 | CONFIG_SYS_GPIO_REV1));
+       out32(GPIO0_ODR, in32(GPIO0_ODR) & ~(CONFIG_SYS_GPIO_REV0 | CONFIG_SYS_GPIO_REV1));
 
        return (in32(GPIO0_IR) >> 16) & 0x3;
 }
@@ -186,7 +186,7 @@ int pci_pre_init(struct pci_controller * hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*--------------------------------------------------------------------------+
@@ -201,7 +201,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
         * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
 
@@ -210,12 +210,12 @@ void pci_target_init(struct pci_controller * hose )
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  is_pci_host
@@ -239,11 +239,11 @@ static void wait_for_pci_ready(void)
        /*
         * Configure EREADY as input
         */
-       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~CFG_GPIO_EREADY);
+       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~CONFIG_SYS_GPIO_EREADY);
        udelay(1000);
 
        for (;;) {
-               if (in32(GPIO0_IR) & CFG_GPIO_EREADY)
+               if (in32(GPIO0_IR) & CONFIG_SYS_GPIO_EREADY)
                        return;
        }
 
@@ -260,7 +260,7 @@ int is_pci_host(struct pci_controller *hose)
  *  pci_master_init
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT)
 void pci_master_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -274,19 +274,19 @@ void pci_master_init(struct pci_controller *hose)
        out32r( PCIX0_POM1SA, 0 ); /* disable */
        out32r( PCIX0_POM2SA, 0 ); /* disable */
 
-       out32r(PCIX0_POM0LAL, CFG_PCI_MEMBASE); /* PMM0 Local Address */
+       out32r(PCIX0_POM0LAL, CONFIG_SYS_PCI_MEMBASE);  /* PMM0 Local Address */
        out32r(PCIX0_POM0LAH, 0x00000003);      /* PMM0 Local Address */
-       out32r(PCIX0_POM0PCIAL, CFG_PCI_MEMBASE);       /* PMM0 PCI Low Address */
+       out32r(PCIX0_POM0PCIAL, CONFIG_SYS_PCI_MEMBASE);        /* PMM0 PCI Low Address */
        out32r(PCIX0_POM0PCIAH, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_POM0SA, ~(0x10000000 - 1) | 1);    /* 256MB + enable region */
 
-       out32r(PCIX0_POM1LAL, CFG_PCI_MEMBASE2);        /* PMM0 Local Address */
+       out32r(PCIX0_POM1LAL, CONFIG_SYS_PCI_MEMBASE2); /* PMM0 Local Address */
        out32r(PCIX0_POM1LAH, 0x00000003);      /* PMM0 Local Address */
-       out32r(PCIX0_POM1PCIAL, CFG_PCI_MEMBASE2);      /* PMM0 PCI Low Address */
+       out32r(PCIX0_POM1PCIAL, CONFIG_SYS_PCI_MEMBASE2);       /* PMM0 PCI Low Address */
        out32r(PCIX0_POM1PCIAH, 0x00000000);    /* PMM0 PCI High Address */
        out32r(PCIX0_POM1SA, ~(0x10000000 - 1) | 1);    /* 256MB + enable region */
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_MASTER_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_MASTER_INIT) */
 
 #ifdef CONFIG_POST
 /*
index 9e1833591a2337129b5a90001069f1377677ab57..b62e776d30edb7b1345ca52c0f953b8125ee0c92 100644 (file)
@@ -40,5 +40,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index e94360f814d54424d2f78506314b693161ec8938..0ecebc943a7be7ff10a5ba1c0298ed4cdd1fbc8b 100644 (file)
@@ -61,10 +61,10 @@ static unsigned long regval;
 #define        SET_GPIO_0(bit)         SET_GPIO_REG_0(GPIO0_OR, bit)
 #define        SET_GPIO_1(bit)         SET_GPIO_REG_1(GPIO0_OR, bit)
 
-#define FPGA_PRG               (0x80000000 >> CFG_GPIO_PROG_EN)
-#define FPGA_CONFIG            (0x80000000 >> CFG_GPIO_CONFIG)
-#define FPGA_DATA              (0x80000000 >> CFG_GPIO_DATA)
-#define FPGA_CLK               (0x80000000 >> CFG_GPIO_CLK)
+#define FPGA_PRG               (0x80000000 >> CONFIG_SYS_GPIO_PROG_EN)
+#define FPGA_CONFIG            (0x80000000 >> CONFIG_SYS_GPIO_CONFIG)
+#define FPGA_DATA              (0x80000000 >> CONFIG_SYS_GPIO_DATA)
+#define FPGA_CLK               (0x80000000 >> CONFIG_SYS_GPIO_CLK)
 #define OLD_VAL                        (FPGA_PRG | FPGA_CONFIG)
 
 #define SET_FPGA(data)         out32(GPIO0_OR, data)
@@ -87,43 +87,43 @@ int fpga_pre_fn (int cookie)
 
        reg = in32(GPIO0_IR);
        /* Enable the FPGA Chain */
-       SET_GPIO_REG_1(GPIO0_TCR, CFG_GPIO_PROG_EN);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_PROG_EN);
-       SET_GPIO_1(CFG_GPIO_PROG_EN);
-       SET_GPIO_REG_1(GPIO0_TCR, CFG_GPIO_SEL_DPR);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_SEL_DPR);
-       SET_GPIO_0((CFG_GPIO_SEL_DPR));
+       SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_PROG_EN);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_PROG_EN);
+       SET_GPIO_1(CONFIG_SYS_GPIO_PROG_EN);
+       SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_SEL_DPR);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_SEL_DPR);
+       SET_GPIO_0((CONFIG_SYS_GPIO_SEL_DPR));
 
        /* initialize the GPIO Pins */
        /* output */
-       SET_GPIO_0(CFG_GPIO_CLK);
-       SET_GPIO_REG_1(GPIO0_TCR, CFG_GPIO_CLK);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_CLK);
+       SET_GPIO_0(CONFIG_SYS_GPIO_CLK);
+       SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_CLK);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_CLK);
 
        /* output */
-       SET_GPIO_0(CFG_GPIO_DATA);
-       SET_GPIO_REG_1(GPIO0_TCR, CFG_GPIO_DATA);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_DATA);
+       SET_GPIO_0(CONFIG_SYS_GPIO_DATA);
+       SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_DATA);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_DATA);
 
        /* First we set STATUS to 0 then as an input */
-       SET_GPIO_REG_1(GPIO0_TCR, CFG_GPIO_STATUS);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_STATUS);
-       SET_GPIO_0(CFG_GPIO_STATUS);
-       SET_GPIO_REG_0(GPIO0_TCR, CFG_GPIO_STATUS);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_STATUS);
+       SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_STATUS);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_STATUS);
+       SET_GPIO_0(CONFIG_SYS_GPIO_STATUS);
+       SET_GPIO_REG_0(GPIO0_TCR, CONFIG_SYS_GPIO_STATUS);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_STATUS);
 
        /* output */
-       SET_GPIO_REG_1(GPIO0_TCR, CFG_GPIO_CONFIG);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_CONFIG);
-       SET_GPIO_0(CFG_GPIO_CONFIG);
+       SET_GPIO_REG_1(GPIO0_TCR, CONFIG_SYS_GPIO_CONFIG);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_CONFIG);
+       SET_GPIO_0(CONFIG_SYS_GPIO_CONFIG);
 
        /* input */
-       SET_GPIO_0(CFG_GPIO_CON_DON);
-       SET_GPIO_REG_0(GPIO0_TCR, CFG_GPIO_CON_DON);
-       SET_GPIO_REG_0(GPIO0_ODR, CFG_GPIO_CON_DON);
+       SET_GPIO_0(CONFIG_SYS_GPIO_CON_DON);
+       SET_GPIO_REG_0(GPIO0_TCR, CONFIG_SYS_GPIO_CON_DON);
+       SET_GPIO_REG_0(GPIO0_ODR, CONFIG_SYS_GPIO_CON_DON);
 
        /* CONFIG = 0 STATUS = 0 -> FPGA in reset state */
-       SET_GPIO_0(CFG_GPIO_CONFIG);
+       SET_GPIO_0(CONFIG_SYS_GPIO_CONFIG);
        return FPGA_SUCCESS;
 }
 
@@ -131,9 +131,9 @@ int fpga_pre_fn (int cookie)
 int fpga_config_fn (int assert_config, int flush, int cookie)
 {
        if (assert_config) {
-               SET_GPIO_1(CFG_GPIO_CONFIG);
+               SET_GPIO_1(CONFIG_SYS_GPIO_CONFIG);
        } else {
-               SET_GPIO_0(CFG_GPIO_CONFIG);
+               SET_GPIO_0(CONFIG_SYS_GPIO_CONFIG);
        }
        return FPGA_SUCCESS;
 }
@@ -144,7 +144,7 @@ int fpga_status_fn (int cookie)
        unsigned long   reg;
 
        reg = in32(GPIO0_IR);
-       if (reg &= (0x80000000 >> CFG_GPIO_STATUS)) {
+       if (reg &= (0x80000000 >> CONFIG_SYS_GPIO_STATUS)) {
                PRINTF("STATUS = HIGH\n");
                return FPGA_FAIL;
        }
@@ -157,7 +157,7 @@ int fpga_done_fn (int cookie)
 {
        unsigned long   reg;
        reg = in32(GPIO0_IR);
-       if (reg &= (0x80000000 >> CFG_GPIO_CON_DON)) {
+       if (reg &= (0x80000000 >> CONFIG_SYS_GPIO_CON_DON)) {
                PRINTF("CONF_DON = HIGH\n");
                return FPGA_FAIL;
        }
@@ -189,10 +189,10 @@ int fpga_write_fn (void *buf, size_t len, int flush, int cookie)
                        i --;
                } while (i > 0);
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                if (bytecount % len_40 == 0) {
                        putc ('.');             /* let them know we are alive */
-#ifdef CFG_FPGA_CHECK_CTRLC
+#ifdef CONFIG_SYS_FPGA_CHECK_CTRLC
                        if (ctrlc ())
                                return FPGA_FAIL;
 #endif
@@ -205,7 +205,7 @@ int fpga_write_fn (void *buf, size_t len, int flush, int cookie)
 /* called, when programming is aborted */
 int fpga_abort_fn (int cookie)
 {
-       SET_GPIO_1((CFG_GPIO_SEL_DPR));
+       SET_GPIO_1((CONFIG_SYS_GPIO_SEL_DPR));
        return FPGA_SUCCESS;
 }
 
index 76164ce1db8a349eab2709a4353955b43f5480bc..4af7d13bf3034e1f6669e17bca86936f4aa54064 100644 (file)
 tlbtab:
        tlbtab_start
        tlbentry( 0xff000000, SZ_16M, 0xff000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X )
-       tlbentry( CFG_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X )
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X )
+       tlbentry( CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X )
 #ifdef CONFIG_4xx_DCACHE
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G)
 #else
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
 #endif
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* TLB-entry for init-ram in dcache (SA_I must be turned off!) */
-       tlbentry( CFG_INIT_RAM_ADDR, SZ_64K, CFG_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
+       tlbentry( CONFIG_SYS_INIT_RAM_ADDR, SZ_64K, CONFIG_SYS_INIT_RAM_ADDR, 0, AC_R|AC_W|AC_X|SA_G )
 #endif
-       tlbentry( CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
 
        /* PCI */
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, CFG_PCI_MEMBASE, 3, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE1, SZ_256M, CFG_PCI_MEMBASE1, 3, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE2, SZ_256M, CFG_PCI_MEMBASE2, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, CONFIG_SYS_PCI_MEMBASE, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE1, SZ_256M, CONFIG_SYS_PCI_MEMBASE1, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE2, SZ_256M, CONFIG_SYS_PCI_MEMBASE2, 3, AC_R|AC_W|SA_G|SA_I )
 
        /* NAND */
-       tlbentry( CFG_NAND_BASE, SZ_4K, CFG_NAND_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_NAND_BASE, SZ_4K, CONFIG_SYS_NAND_BASE, 1, AC_R|AC_W|AC_X|SA_G|SA_I )
        tlbtab_end
index 99f5737b85ada9bb393e27d8b51a5e090510c6da..b18c96b297746fc0d053861b09bbe20fef1c8dad 100644 (file)
@@ -137,7 +137,7 @@ static int alpr_nand_dev_ready(struct mtd_info *mtd)
 
 int board_nand_init(struct nand_chip *nand)
 {
-       alpr_ndfc = (struct alpr_ndfc_regs *)CFG_NAND_BASE;
+       alpr_ndfc = (struct alpr_ndfc_regs *)CONFIG_SYS_NAND_BASE;
 
        nand->ecc.mode = NAND_ECC_SOFT;
 
index 363631fd84f7a4571a3f927c6f8f5c74aedf019c..c42fa837fe229239dd9c88071edbbeb4d86c00e1 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <asm/processor.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*
  * Functions
@@ -91,7 +91,7 @@ void flash_print_info(flash_info_t *info)
 
        printf ("  Sector Start Addresses:");
        for (i=0; i<info->sector_count; ++i) {
-#ifdef CFG_FLASH_EMPTY_INFO
+#ifdef CONFIG_SYS_FLASH_EMPTY_INFO
                /*
                 * Check if whole sector is erased
                 */
@@ -136,31 +136,31 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
 {
        short i;
        short n;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong)addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *)addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)addr;
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00900090;
 
-       value = addr2[CFG_FLASH_READ0];
+       value = addr2[CONFIG_SYS_FLASH_READ0];
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_MANUFACT:
                info->flash_id = FLASH_MAN_AMD;
                break;
-       case (CFG_FLASH_WORD_SIZE)FUJ_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)FUJ_MANUFACT:
                info->flash_id = FLASH_MAN_FUJ;
                break;
-       case (CFG_FLASH_WORD_SIZE)SST_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_MANUFACT:
                info->flash_id = FLASH_MAN_SST;
                break;
-       case (CFG_FLASH_WORD_SIZE)STM_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)STM_MANUFACT:
                info->flash_id = FLASH_MAN_STM;
                break;
-       case (CFG_FLASH_WORD_SIZE)EXCEL_MANUFACT:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)EXCEL_MANUFACT:
                info->flash_id = FLASH_MAN_EXCEL;
                break;
        default:
@@ -170,82 +170,82 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
                return (0);                     /* no or unknown flash  */
        }
 
-       value = addr2[CFG_FLASH_READ1];         /* device ID            */
+       value = addr2[CONFIG_SYS_FLASH_READ1];          /* device ID            */
 
        switch (value) {
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400T:
                info->flash_id += FLASH_AM400T;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV400B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV400B:
                info->flash_id += FLASH_AM400B;
                info->sector_count = 11;
                info->size = 0x00080000;
                break;                          /* => 0.5 MB            */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800T:
                info->flash_id += FLASH_AM800T;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV800B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV800B:
                info->flash_id += FLASH_AM800B;
                info->sector_count = 19;
                info->size = 0x00100000;
                break;                          /* => 1 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160T:
                info->flash_id += FLASH_AM160T;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV160B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV160B:
                info->flash_id += FLASH_AM160B;
                info->sector_count = 35;
                info->size = 0x00200000;
                break;                          /* => 2 MB              */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320T:
                info->flash_id += FLASH_AM320T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320B:
                info->flash_id += FLASH_AM320B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322T:
                info->flash_id += FLASH_AMDL322T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL322B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL322B:
                info->flash_id += FLASH_AMDL322B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323T:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323T:
                info->flash_id += FLASH_AMDL323T;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)AMD_ID_DL323B:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_DL323B:
                info->flash_id += FLASH_AMDL323B;
                info->sector_count = 71;
                info->size = 0x00400000;  break;        /* => 4 MB      */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF020:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF020:
                info->flash_id += FLASH_SST020;
                info->sector_count = 64;
                info->size = 0x00040000;
                break;                          /* => 256 kB            */
 
-       case (CFG_FLASH_WORD_SIZE)SST_ID_xF040:
+       case (CONFIG_SYS_FLASH_WORD_SIZE)SST_ID_xF040:
                info->flash_id += FLASH_SST040;
                info->sector_count = 128;
                info->size = 0x00080000;
@@ -318,19 +318,19 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
                if ((info->flash_id & FLASH_VENDMASK) != FLASH_MAN_AMD)
                        info->protect[i] = 0;
                else
-                       info->protect[i] = addr2[CFG_FLASH_READ2] & 1;
+                       info->protect[i] = addr2[CONFIG_SYS_FLASH_READ2] & 1;
        }
 
        /*
         * Prevent writes to uninitialized FLASH.
         */
        if (info->flash_id != FLASH_UNKNOWN) {
-               addr2 = (CFG_FLASH_WORD_SIZE *)info->start[0];
-               *addr2 = (CFG_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
+               addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+               *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;        /* reset bank */
        }
 
        return (info->size);
@@ -339,8 +339,8 @@ static ulong flash_get_size(vu_long *addr, flash_info_t *info)
 
 int flash_erase(flash_info_t *info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
        ulong start, now, last;
 
@@ -375,14 +375,14 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect<=s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[sect]);
                        if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_SST) {
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                               addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                               addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                               addr2[0] = (CFG_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                               addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                               addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
 
                                /* re-enable interrupts if necessary */
                                if (flag) {
@@ -392,20 +392,20 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
 
                                /* data polling for D7 */
                                start = get_timer (0);
-                               while ((addr2[0] & (CFG_FLASH_WORD_SIZE)0x00800080) !=
-                                      (CFG_FLASH_WORD_SIZE)0x00800080) {
-                                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+                               while ((addr2[0] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) !=
+                                      (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) {
+                                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                                return (1);
                                }
                        } else {
                                if (sect == s_first) {
-                                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-                                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00800080;
-                                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-                                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
+                                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+                                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080;
+                                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+                                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
                                }
-                               addr2[0] = (CFG_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
+                               addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00300030;  /* sector erase */
                        }
                        l_sect = sect;
                }
@@ -426,9 +426,9 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
 
        start = get_timer (0);
        last  = start;
-       addr = (CFG_FLASH_WORD_SIZE *)(info->start[l_sect]);
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE)0x00800080) != (CFG_FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[l_sect]);
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) != (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -441,8 +441,8 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
 
 DONE:
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *)info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE)0x00F000F0;      /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *)info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00F000F0;       /* reset bank */
 
        printf (" done\n");
        return 0;
@@ -522,9 +522,9 @@ int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
  */
 static int write_word(flash_info_t *info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *)(info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *)dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *)&data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *)dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *)&data;
        ulong start;
        int flag;
        int i;
@@ -536,10 +536,10 @@ static int write_word(flash_info_t *info, ulong dest, ulong data)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts();
 
-       for (i=0; i<4/sizeof(CFG_FLASH_WORD_SIZE); i++) {
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE)0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE)0x00A000A0;
+       for (i=0; i<4/sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE)0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -549,9 +549,9 @@ static int write_word(flash_info_t *info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer (0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE)0x00800080) !=
-                      (data2[i] & (CFG_FLASH_WORD_SIZE)0x00800080)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080) !=
+                      (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE)0x00800080)) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
        }
index f9412a21ebd5ac541d57a0bff76e5429a4bc74c7..14bff07bf906087fa9678ee770efd218d3837d82 100644 (file)
 #define DBG(x...)
 #endif /* DEBUG */
 
-#define FPGA_PRG               CFG_FPGA_PRG /* FPGA program pin (cpu output)*/
-#define FPGA_CLK               CFG_FPGA_CLK /* FPGA clk pin (cpu output)    */
-#define FPGA_DATA              CFG_FPGA_DATA /* FPGA data pin (cpu output)  */
-#define FPGA_DONE              CFG_FPGA_DONE /* FPGA done pin (cpu input)   */
-#define FPGA_INIT              CFG_FPGA_INIT /* FPGA init pin (cpu input)   */
+#define FPGA_PRG               CONFIG_SYS_FPGA_PRG /* FPGA program pin (cpu output)*/
+#define FPGA_CLK               CONFIG_SYS_FPGA_CLK /* FPGA clk pin (cpu output)    */
+#define FPGA_DATA              CONFIG_SYS_FPGA_DATA /* FPGA data pin (cpu output)  */
+#define FPGA_DONE              CONFIG_SYS_FPGA_DONE /* FPGA done pin (cpu input)   */
+#define FPGA_INIT              CONFIG_SYS_FPGA_INIT /* FPGA init pin (cpu input)   */
 
 #define ERROR_FPGA_PRG_INIT_LOW  -1        /* Timeout after PRG* asserted   */
 #define ERROR_FPGA_PRG_INIT_HIGH -2        /* Timeout after PRG* deasserted */
index 160b1d31f7640b89706f715ac51807ff08834407..233fd83bcca10e68e02115ad2373573764540b65 100644 (file)
@@ -16,7 +16,7 @@
 board_relocate_rom:
        mflr    r7
        /* update the location of the GT registers */
-       lis     r11, CFG_GT_REGS@h
+       lis     r11, CONFIG_SYS_GT_REGS@h
        /* if we're using ECC, we must use the DMA engine to copy ourselves */
        bl      start_idma_transfer_0
        bl      wait_for_idma_0
@@ -29,12 +29,12 @@ board_relocate_rom:
 board_init_ecc:
        mflr    r7
        /* NOTE: r10 still contains the location we've been relocated to
-        * which happens to be TOP_OF_RAM - CFG_MONITOR_LEN */
+        * which happens to be TOP_OF_RAM - CONFIG_SYS_MONITOR_LEN */
 
        /* now that we're running from ram, init the rest of main memory
         * for ECC use */
-       lis     r8, CFG_MONITOR_LEN@h
-       ori     r8, r8, CFG_MONITOR_LEN@l
+       lis     r8, CONFIG_SYS_MONITOR_LEN@h
+       ori     r8, r8, CONFIG_SYS_MONITOR_LEN@l
 
        divw    r3, r10, r8
 
@@ -120,15 +120,15 @@ stop_idma_engine_0:
        blr
 #endif
 
-#ifdef CFG_BOARD_ASM_INIT
+#ifdef CONFIG_SYS_BOARD_ASM_INIT
        /* NOTE: trashes r3-r7 */
        .globl board_asm_init
 board_asm_init:
        /* just move the GT registers to where they belong */
-       lis     r3, CFG_DFL_GT_REGS@h
-       ori     r3, r3, CFG_DFL_GT_REGS@l
-       lis     r4, CFG_GT_REGS@h
-       ori     r4, r4, CFG_GT_REGS@l
+       lis     r3, CONFIG_SYS_DFL_GT_REGS@h
+       ori     r3, r3, CONFIG_SYS_DFL_GT_REGS@l
+       lis     r4, CONFIG_SYS_GT_REGS@h
+       ori     r4, r4, CONFIG_SYS_GT_REGS@l
        li      r5, INTERNAL_SPACE_DECODE
 
        /* test to see if we've already moved */
@@ -153,11 +153,11 @@ board_asm_init:
        cmp     cr0, r7, r6
        bne     1b
 
-       lis     r3, CFG_INT_SRAM_BASE@h
-       ori     r3, r3, CFG_INT_SRAM_BASE@l
+       lis     r3, CONFIG_SYS_INT_SRAM_BASE@h
+       ori     r3, r3, CONFIG_SYS_INT_SRAM_BASE@l
        rlwinm  r3, r3, 16, 16, 31
-       lis     r4, CFG_GT_REGS@h
-       ori     r4, r4, CFG_GT_REGS@l
+       lis     r4, CONFIG_SYS_GT_REGS@h
+       ori     r4, r4, CONFIG_SYS_GT_REGS@l
        li      r5, INTEGRATED_SRAM_BASE_ADDR
        stwbrx  r3, r5, r4
 
index 2494ec6dfe50a85695e0a212fb62dcfc98bf9ffe..cc05b45038db7b194fe6a5e3790ec87554df7da2 100644 (file)
@@ -422,7 +422,7 @@ void mpsc_sdma_init (void)
                          (MV64460_CUNIT_BASE_ADDR_WIN_0_BIT * 2)));
 
        /* Setup MPSC internal address space base address       */
-       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CFG_GT_REGS);
+       GT_REG_WRITE (CUNIT_INTERNAL_SPACE_BASE_ADDR_REG, CONFIG_SYS_GT_REGS);
 
        /* no high address remap*/
        GT_REG_WRITE (CUNIT_HIGH_ADDR_REMAP_REG0, 0x00);
@@ -512,9 +512,9 @@ int galbrg_set_baudrate (int channel, int rate)
 
 #ifdef ZUMA_NTL
        /* from tclk */
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #else
-       clock = (CFG_TCLK / (16 * rate)) - 1;
+       clock = (CONFIG_SYS_TCLK / (16 * rate)) - 1;
 #endif
 
        galbrg_set_CDV (channel, clock);        /* set timer Reg. for BRG */
index 69d7c9b28e6cc5e5fc70f9b1ff8241f018942d0a..0247bb80a40347b9e3c1f5281c1cd4ffbe6166de 100644 (file)
@@ -67,7 +67,7 @@ extern flash_info_t flash_info[];
 /* ------------------------------------------------------------------------- */
 
 /* this is the current GT register space location */
-/* it starts at CFG_DFL_GT_REGS but moves later to CFG_GT_REGS */
+/* it starts at CONFIG_SYS_DFL_GT_REGS but moves later to CONFIG_SYS_GT_REGS */
 
 /* Unfortunately, we cant change it while we are in flash, so we initialize it
  * to the "final" value. This means that any debug_led calls before
@@ -76,7 +76,7 @@ extern flash_info_t flash_info[];
  */
 
 void board_prebootm_init (void);
-unsigned int INTERNAL_REG_BASE_ADDR = CFG_GT_REGS;
+unsigned int INTERNAL_REG_BASE_ADDR = CONFIG_SYS_GT_REGS;
 int display_mem_map (void);
 void set_led(int);
 
@@ -129,7 +129,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_0_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_0_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
 
        }
        if ((GTREGREAD (PCI_1_MODE) & (BIT4 | BIT5)) != 0) {    /* if  PCI-X */
@@ -138,7 +138,7 @@ static void gt_pci_config (void)
 
                GT_REG_WRITE (PCI_1_CONFIG_ADDR, BIT31 | val);
                GT_REG_WRITE (PCI_1_CONFIG_DATA_VIRTUAL_REG,
-                             (stat & 0xffff0000) | CFG_PCI_IDSEL);
+                             (stat & 0xffff0000) | CONFIG_SYS_PCI_IDSEL);
        }
 
        /* Enable master */
@@ -157,21 +157,21 @@ static void gt_pci_config (void)
         * in 64360 when writing to pci base go and overide remap automaticaly,
         * in 64460 it doesn't
         */
-       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CFG_PCI0_IO_SPACE >> 16);
-       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CFG_PCI0_IO_SPACE_PCI >> 16);
-       GT_REG_WRITE (PCI_0_IO_SIZE, (CFG_PCI0_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_IO_BASE_ADDR, CONFIG_SYS_PCI0_IO_SPACE >> 16);
+       GT_REG_WRITE (PCI_0I_O_ADDRESS_REMAP, CONFIG_SYS_PCI0_IO_SPACE_PCI >> 16);
+       GT_REG_WRITE (PCI_0_IO_SIZE, (CONFIG_SYS_PCI0_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CFG_PCI0_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CFG_PCI0_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI0_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_0_MEMORY0_SIZE, (CONFIG_SYS_PCI0_MEM_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CFG_PCI1_IO_SPACE >> 16);
-       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CFG_PCI1_IO_SPACE_PCI >> 16);
-       GT_REG_WRITE (PCI_1_IO_SIZE, (CFG_PCI1_IO_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_IO_BASE_ADDR, CONFIG_SYS_PCI1_IO_SPACE >> 16);
+       GT_REG_WRITE (PCI_1I_O_ADDRESS_REMAP, CONFIG_SYS_PCI1_IO_SPACE_PCI >> 16);
+       GT_REG_WRITE (PCI_1_IO_SIZE, (CONFIG_SYS_PCI1_IO_SIZE - 1) >> 16);
 
-       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CFG_PCI1_MEM_BASE >> 16);
-       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CFG_PCI1_MEM_SIZE - 1) >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_BASE_ADDR, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1MEMORY0_ADDRESS_REMAP, CONFIG_SYS_PCI1_MEM_BASE >> 16);
+       GT_REG_WRITE (PCI_1_MEMORY0_SIZE, (CONFIG_SYS_PCI1_MEM_SIZE - 1) >> 16);
 
        /* PCI interface settings */
        /* Timeout set to retry forever */
@@ -189,7 +189,7 @@ static void gt_pci_config (void)
        for (stat = 0; stat <= PCI_HOST1; stat++)
                pciWriteConfigReg (stat,
                                   PCI_INTERNAL_REGISTERS_MEMORY_MAPPED_BASE_ADDRESS,
-                                  SELF, CFG_GT_REGS);
+                                  SELF, CONFIG_SYS_GT_REGS);
 #endif
 
 }
@@ -204,7 +204,7 @@ static void gt_cpu_config (void)
        /* cpu configuration register */
        tmp = GTREGREAD (CPU_CONFIGURATION);
        /* set the SINGLE_CPU bit  see MV64460 */
-#ifndef CFG_GT_DUAL_CPU                /* SINGLE_CPU seems to cause JTAG problems */
+#ifndef CONFIG_SYS_GT_DUAL_CPU         /* SINGLE_CPU seems to cause JTAG problems */
        tmp |= CPU_CONF_SINGLE_CPU;
 #endif
        tmp &= ~CPU_CONF_AACK_DELAY_2;
@@ -246,7 +246,7 @@ int board_early_init_f (void)
         * that if it's not at the power-on location, it's where we put
         * it last time. (huber)
         */
-       my_remap_gt_regs (CFG_DFL_GT_REGS, CFG_GT_REGS);
+       my_remap_gt_regs (CONFIG_SYS_DFL_GT_REGS, CONFIG_SYS_GT_REGS);
 
 #ifdef CONFIG_PCI
        gt_pci_config ();
@@ -274,17 +274,17 @@ int board_early_init_f (void)
        memoryMapDeviceSpace(DEVICE3, 0, 0);
        GT_REG_WRITE(DEVICE_BANK3PARAMETERS, 0);
 
-       GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CFG_BOOT_PAR);
+       GT_REG_WRITE(DEVICE_BOOT_BANK_PARAMETERS, CONFIG_SYS_BOOT_PAR);
 
        gt_cpu_config();
 
        /* MPP setup */
-       GT_REG_WRITE (MPP_CONTROL0, CFG_MPP_CONTROL_0);
-       GT_REG_WRITE (MPP_CONTROL1, CFG_MPP_CONTROL_1);
-       GT_REG_WRITE (MPP_CONTROL2, CFG_MPP_CONTROL_2);
-       GT_REG_WRITE (MPP_CONTROL3, CFG_MPP_CONTROL_3);
+       GT_REG_WRITE (MPP_CONTROL0, CONFIG_SYS_MPP_CONTROL_0);
+       GT_REG_WRITE (MPP_CONTROL1, CONFIG_SYS_MPP_CONTROL_1);
+       GT_REG_WRITE (MPP_CONTROL2, CONFIG_SYS_MPP_CONTROL_2);
+       GT_REG_WRITE (MPP_CONTROL3, CONFIG_SYS_MPP_CONTROL_3);
 
-       GT_REG_WRITE (GPP_LEVEL_CONTROL, CFG_GPP_LEVEL_CONTROL);
+       GT_REG_WRITE (GPP_LEVEL_CONTROL, CONFIG_SYS_GPP_LEVEL_CONTROL);
 
        set_led(LED_RED);
 
@@ -298,7 +298,7 @@ int misc_init_r ()
        u8 val;
 
        icache_enable ();
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        l2cache_enable ();
 #endif
 #ifdef CONFIG_MPSC
@@ -311,7 +311,7 @@ int misc_init_r ()
         * No diode, 250 ohm series resistor
         */
        val = 0xa5;
-       i2c_write(CFG_I2C_RTC_ADDR, 8, 1, &val, 1);
+       i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 8, 1, &val, 1);
 
        return 0;
 }
@@ -328,7 +328,7 @@ int board_early_init_r(void)
 
 void after_reloc (ulong dest_addr, gd_t * gd)
 {
-       memoryMapDeviceSpace (BOOT_DEVICE, CFG_BOOT_SPACE, CFG_BOOT_SIZE);
+       memoryMapDeviceSpace (BOOT_DEVICE, CONFIG_SYS_BOOT_SPACE, CONFIG_SYS_BOOT_SIZE);
 
 /*     display_mem_map(); */
 
@@ -347,7 +347,7 @@ int checkboard (void)
 {
        char *s = getenv("serial#");
 
-       printf("Board: %s", CFG_BOARD_NAME);
+       printf("Board: %s", CONFIG_SYS_BOARD_NAME);
 
        if (s != NULL) {
                puts(", serial# ");
@@ -458,7 +458,7 @@ int display_mem_map (void)
 
 /* DRAM check routines copied from gw8260 */
 
-#if defined (CFG_DRAM_TEST)
+#if defined (CONFIG_SYS_DRAM_TEST)
 
 /*********************************************************************/
 /* NAME:  move64() -  moves a double word (64-bit)                  */
@@ -489,7 +489,7 @@ static void move64 (unsigned long long *src, unsigned long long *dest)
 }
 
 
-#if defined (CFG_DRAM_TEST_DATA)
+#if defined (CONFIG_SYS_DRAM_TEST_DATA)
 
 unsigned long long pattern[] = {
        0xaaaaaaaaaaaaaaaaULL,
@@ -552,7 +552,7 @@ unsigned long long pattern[] = {
 /*********************************************************************/
 int mem_test_data (void)
 {
-       unsigned long long *pmem = (unsigned long long *) CFG_MEMTEST_START;
+       unsigned long long *pmem = (unsigned long long *) CONFIG_SYS_MEMTEST_START;
        unsigned long long temp64 = 0;
        int num_patterns = sizeof (pattern) / sizeof (pattern[0]);
        int i;
@@ -579,9 +579,9 @@ int mem_test_data (void)
 
        return 0;
 }
-#endif /* CFG_DRAM_TEST_DATA */
+#endif /* CONFIG_SYS_DRAM_TEST_DATA */
 
-#if defined (CFG_DRAM_TEST_ADDRESS)
+#if defined (CONFIG_SYS_DRAM_TEST_ADDRESS)
 /*********************************************************************/
 /* NAME:  mem_test_address() - test address lines                   */
 /*                                                                  */
@@ -606,8 +606,8 @@ int mem_test_data (void)
 int mem_test_address (void)
 {
        volatile unsigned int *pmem =
-               (volatile unsigned int *) CFG_MEMTEST_START;
-       const unsigned int size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 4;
+               (volatile unsigned int *) CONFIG_SYS_MEMTEST_START;
+       const unsigned int size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 4;
        unsigned int i;
 
        /* write address to each location */
@@ -623,9 +623,9 @@ int mem_test_address (void)
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_ADDRESS */
+#endif /* CONFIG_SYS_DRAM_TEST_ADDRESS */
 
-#if defined (CFG_DRAM_TEST_WALK)
+#if defined (CONFIG_SYS_DRAM_TEST_WALK)
 /*********************************************************************/
 /* NAME:   mem_march() -  memory march                              */
 /*                                                                  */
@@ -683,7 +683,7 @@ int mem_march (volatile unsigned long long *base,
        }
        return 0;
 }
-#endif /* CFG_DRAM_TEST_WALK */
+#endif /* CONFIG_SYS_DRAM_TEST_WALK */
 
 /*********************************************************************/
 /* NAME:   mem_test_walk() -  a simple walking ones test            */
@@ -715,8 +715,8 @@ int mem_test_walk (void)
 {
        unsigned long long mask;
        volatile unsigned long long *pmem =
-               (volatile unsigned long long *) CFG_MEMTEST_START;
-       const unsigned long size = (CFG_MEMTEST_END - CFG_MEMTEST_START) / 8;
+               (volatile unsigned long long *) CONFIG_SYS_MEMTEST_START;
+       const unsigned long size = (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START) / 8;
 
        unsigned int i;
 
@@ -782,15 +782,15 @@ int testdram (void)
        int runaddress = 0;
        int runwalk    = 0;
 
-#ifdef CFG_DRAM_TEST_DATA
+#ifdef CONFIG_SYS_DRAM_TEST_DATA
        s = getenv ("testdramdata");
        rundata = (s && (*s == 'y')) ? 1 : 0;
 #endif
-#ifdef CFG_DRAM_TEST_ADDRESS
+#ifdef CONFIG_SYS_DRAM_TEST_ADDRESS
        s = getenv ("testdramaddress");
        runaddress = (s && (*s == 'y')) ? 1 : 0;
 #endif
-#ifdef CFG_DRAM_TEST_WALK
+#ifdef CONFIG_SYS_DRAM_TEST_WALK
        s = getenv ("testdramwalk");
        runwalk = (s && (*s == 'y')) ? 1 : 0;
 #endif
@@ -798,8 +798,8 @@ int testdram (void)
        if ((rundata == 1) || (runaddress == 1) || (runwalk == 1))
                printf ("Testing RAM from 0x%08x to 0x%08x ...  "
                        "(don't panic... that will take a moment !!!!)\n",
-                       CFG_MEMTEST_START, CFG_MEMTEST_END);
-#ifdef CFG_DRAM_TEST_DATA
+                       CONFIG_SYS_MEMTEST_START, CONFIG_SYS_MEMTEST_END);
+#ifdef CONFIG_SYS_DRAM_TEST_DATA
        if (rundata == 1) {
                printf ("Test DATA ...  ");
                if (mem_test_data () == 1) {
@@ -809,7 +809,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_ADDRESS
+#ifdef CONFIG_SYS_DRAM_TEST_ADDRESS
        if (runaddress == 1) {
                printf ("Test ADDRESS ...  ");
                if (mem_test_address () == 1) {
@@ -819,7 +819,7 @@ int testdram (void)
                        printf ("ok \n");
        }
 #endif
-#ifdef CFG_DRAM_TEST_WALK
+#ifdef CONFIG_SYS_DRAM_TEST_WALK
        if (runwalk == 1) {
                printf ("Test WALKING ONEs ...  ");
                if (mem_test_walk () == 1) {
@@ -834,7 +834,7 @@ int testdram (void)
        return 0;
 
 }
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 /* ronen - the below functions are used by the bootm function           */
 /*  - we map the base register to fbe00000 (same mapping as in the LSP) */
index 137739bede68439e5be9f186299f3881b17c002c..85f7caab0a785f21d8c66efa60ff363d56d4a3b7 100644 (file)
@@ -932,14 +932,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci0_hose.regions + 0,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_0_MEM_SPACE,
-                       CFG_PCI0_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_0_MEM_SPACE,
+                       CONFIG_SYS_PCI0_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci0_hose.regions + 1,
-                       CFG_PCI0_IO_SPACE_PCI,
-                       CFG_PCI0_IO_SPACE, CFG_PCI0_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI0_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI0_IO_SPACE, CONFIG_SYS_PCI0_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci0_hose,
                     pci_hose_read_config_byte_via_dword,
@@ -981,14 +981,14 @@ void pci_init_board (void)
 
        /* PCI memory space */
        pci_set_region (pci1_hose.regions + 0,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_0_MEM_SPACE,
-                       CFG_PCI1_MEM_SIZE, PCI_REGION_MEM);
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_0_MEM_SPACE,
+                       CONFIG_SYS_PCI1_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (pci1_hose.regions + 1,
-                       CFG_PCI1_IO_SPACE_PCI,
-                       CFG_PCI1_IO_SPACE, CFG_PCI1_IO_SIZE, PCI_REGION_IO);
+                       CONFIG_SYS_PCI1_IO_SPACE_PCI,
+                       CONFIG_SYS_PCI1_IO_SPACE, CONFIG_SYS_PCI1_IO_SIZE, PCI_REGION_IO);
 
        pci_set_ops (&pci1_hose,
                     pci_hose_read_config_byte_via_dword,
index d881d38079edbb7a0b6978add8e27d0c25750841..bac6c12b98c38c03a30520f8975cf9da782a8e44 100644 (file)
@@ -243,9 +243,9 @@ phys_size_t initdram (int board_type)
        udelay(2);  /* FIXME  make this dynamic for the system clock */
 
        /* SDRAM init done */
-       memory_map_bank(0, CFG_SDRAM_BASE,  (256 << 20));
-#ifdef CFG_SDRAM1_BASE
-       memory_map_bank(1, CFG_SDRAM1_BASE, (256 << 20));
+       memory_map_bank(0, CONFIG_SYS_SDRAM_BASE,  (256 << 20));
+#ifdef CONFIG_SYS_SDRAM1_BASE
+       memory_map_bank(1, CONFIG_SYS_SDRAM1_BASE, (256 << 20));
 #endif
 
        /* DUNIT_MMASK: enable SnoopHitEn bit to avoid errata CPU-#4
index e5722dd36a76e47ed9c2f94f878e03ff05c48993..60d3bf4d27ce4b76aff3d278126c84ef2456a967 100644 (file)
@@ -40,5 +40,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index ee6b7066e9f3766bafabce23f3a98596d6ab3340..8c1a79c4b79ddfad00afda26215942b0dad6f75a 100644 (file)
 tlbtab:
     tlbtab_start
     tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-    tlbentry( CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-    tlbentry( CFG_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X )
-    tlbentry( CFG_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X )
-    tlbentry( CFG_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-    tlbentry( CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-    tlbentry( CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
+    tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_4K, 0x80000000, 0, AC_R|AC_W|AC_X )
+    tlbentry( CONFIG_SYS_ISRAM_BASE + 0x1000, SZ_4K, 0x80001000, 0, AC_R|AC_W|AC_X )
+    tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
+    tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
     tlbtab_end
index 1a8aacbdf12dbddf1cdf772c49b5c9c21ef24c0d..1a0486f5c0ca80f62e679acd74efaf53d29bac9e 100644 (file)
@@ -35,29 +35,29 @@ void set_led(int color)
 {
        switch (color) {
        case LED_OFF:
-               out32(GPIO0_OR,  in32(GPIO0_OR) & ~CFG_LED_GREEN & ~CFG_LED_RED);
+               out32(GPIO0_OR,  in32(GPIO0_OR) & ~CONFIG_SYS_LED_GREEN & ~CONFIG_SYS_LED_RED);
                break;
 
        case LED_GREEN:
-               out32(GPIO0_OR,  (in32(GPIO0_OR) | CFG_LED_GREEN) & ~CFG_LED_RED);
+               out32(GPIO0_OR,  (in32(GPIO0_OR) | CONFIG_SYS_LED_GREEN) & ~CONFIG_SYS_LED_RED);
                break;
 
        case LED_RED:
-               out32(GPIO0_OR,  (in32(GPIO0_OR) | CFG_LED_RED) & ~CFG_LED_GREEN);
+               out32(GPIO0_OR,  (in32(GPIO0_OR) | CONFIG_SYS_LED_RED) & ~CONFIG_SYS_LED_GREEN);
                break;
 
        case LED_ORANGE:
-               out32(GPIO0_OR,  in32(GPIO0_OR) | CFG_LED_GREEN | CFG_LED_RED);
+               out32(GPIO0_OR,  in32(GPIO0_OR) | CONFIG_SYS_LED_GREEN | CONFIG_SYS_LED_RED);
                break;
        }
 }
 
 static int is_monarch(void)
 {
-       out32(GPIO0_OR,  in32(GPIO0_OR) & ~CFG_GPIO_RDY);
+       out32(GPIO0_OR,  in32(GPIO0_OR) & ~CONFIG_SYS_GPIO_RDY);
        udelay(1000);
 
-       if (in32(GPIO0_IR) & CFG_MONARCH_IO)
+       if (in32(GPIO0_IR) & CONFIG_SYS_MONARCH_IO)
                return 0;
        else
                return 1;
@@ -68,11 +68,11 @@ static void wait_for_pci_ready(void)
        /*
         * Configure EREADY_IO as input
         */
-       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~CFG_EREADY_IO);
+       out32(GPIO0_TCR, in32(GPIO0_TCR) & ~CONFIG_SYS_EREADY_IO);
        udelay(1000);
 
        for (;;) {
-               if (in32(GPIO0_IR) & CFG_EREADY_IO)
+               if (in32(GPIO0_IR) & CONFIG_SYS_EREADY_IO)
                        return;
        }
 
@@ -95,8 +95,8 @@ int board_early_init_f(void)
        mtdcr(cpc0_gpio, 0x03F01F80);
 
        out32(GPIO0_ODR, 0x00000000);   /* no open drain pins      */
-       out32(GPIO0_TCR, CFG_GPIO_RDY | CFG_EREADY_IO | CFG_LED_RED | CFG_LED_GREEN);
-       out32(GPIO0_OR,  CFG_GPIO_RDY);
+       out32(GPIO0_TCR, CONFIG_SYS_GPIO_RDY | CONFIG_SYS_EREADY_IO | CONFIG_SYS_LED_RED | CONFIG_SYS_LED_GREEN);
+       out32(GPIO0_OR,  CONFIG_SYS_GPIO_RDY);
 
        /*--------------------------------------------------------------------
         * Setup the interrupt controller polarities, triggers, etc.
@@ -152,7 +152,7 @@ int misc_init_r (void)
        /*
         * Check if only one FLASH bank is available
         */
-       if (gd->bd->bi_flashsize != CFG_MAX_FLASH_BANKS * (0 - CFG_FLASH0)) {
+       if (gd->bd->bi_flashsize != CONFIG_SYS_MAX_FLASH_BANKS * (0 - CONFIG_SYS_FLASH0)) {
                mtebc(pb1cr, 0);                        /* disable cs */
                mtebc(pb1ap, 0);
                mtebc(pb2cr, 0);                        /* disable cs */
@@ -203,7 +203,7 @@ int pci_pre_init(struct pci_controller *hose)
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller *hose)
 {
        /*--------------------------------------------------------------------------+
@@ -218,7 +218,7 @@ void pci_target_init(struct pci_controller *hose)
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
         * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r(PCIX0_PIM0LAL, CFG_SDRAM_BASE);
+       out32r(PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE);
        out32r(PCIX0_PIM0LAH, 0);
        out32r(PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1);
 
@@ -227,12 +227,12 @@ void pci_target_init(struct pci_controller *hose)
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r(PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID);
-       out16r(PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID);
+       out16r(PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID);
+       out16r(PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID);
 
        out16r(PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY);
 }
-#endif                         /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif                         /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 /*************************************************************************
  *  is_pci_host
index e4e87d1f59d187312b9cd4e76787a12ca9626cbd..47e9018948d5bc79a5780ba6e37f4b6df501bc15 100644 (file)
 #ifndef __P3P440_H__
 #define __P3P440_H__
 
-#define CFG_GPIO_RDY   (0x80000000 >> 11)
-#define CFG_MONARCH_IO (0x80000000 >> 18)
-#define CFG_EREADY_IO  (0x80000000 >> 20)
-#define CFG_LED_GREEN  (0x80000000 >> 21)
-#define CFG_LED_RED    (0x80000000 >> 22)
+#define CONFIG_SYS_GPIO_RDY    (0x80000000 >> 11)
+#define CONFIG_SYS_MONARCH_IO  (0x80000000 >> 18)
+#define CONFIG_SYS_EREADY_IO   (0x80000000 >> 20)
+#define CONFIG_SYS_LED_GREEN   (0x80000000 >> 21)
+#define CONFIG_SYS_LED_RED     (0x80000000 >> 22)
 
 #define LED_OFF                1
 #define LED_GREEN      2
index 5738c5bd04cf3e7235d726ddb32735e04c6f1a37..351aed1e113a4b05924d24250feeed6715766169 100644 (file)
@@ -52,7 +52,7 @@ unsigned long flash_init(void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; i++)
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; i++)
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
        size = flash_get_size((vu_long *)FLASH_BASE0_PRELIM, &flash_info[0]);
@@ -66,20 +66,20 @@ unsigned long flash_init(void)
 
        /* Monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE, CFG_MONITOR_BASE + monitor_flash_len - 1,
-                     &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                     CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
+                     &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
        /* Environment protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
                      CONFIG_ENV_ADDR,
                      CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1,
-                     &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                     &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
        /* Redundant environment protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
                      CONFIG_ENV_ADDR_REDUND,
                      CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SIZE_REDUND - 1,
-                     &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                     &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
        flash_info[0].size = size;
 
index 1ce3c8c618f817461fb9e3cc8344d8cd9c51df5f..2efe027ec1f822ea4a52a7d43a39b86f66415711 100644 (file)
@@ -136,7 +136,7 @@ static int pdnb3_nand_dev_ready(struct mtd_info *mtd)
 
 int board_nand_init(struct nand_chip *nand)
 {
-       pdnb3_ndfc = (struct pdnb3_ndfc_regs *)CFG_NAND_BASE;
+       pdnb3_ndfc = (struct pdnb3_ndfc_regs *)CONFIG_SYS_NAND_BASE;
 
        nand->ecc.mode = NAND_ECC_SOFT;
 
index 3445a3abf2f231b3a973f2c47cf228565459a19a..3773ba181848e214040f60d61d2ec875f6869a93 100644 (file)
@@ -34,8 +34,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
 
 /* predefine these here for FPGA programming (before including fpga.c) */
 #define SET_FPGA(data) *IXP425_GPIO_GPOUTR = (data)
-#define FPGA_DONE_STATE (*IXP425_GPIO_GPINR & CFG_FPGA_DONE)
-#define FPGA_INIT_STATE (*IXP425_GPIO_GPINR & CFG_FPGA_INIT)
+#define FPGA_DONE_STATE (*IXP425_GPIO_GPINR & CONFIG_SYS_FPGA_DONE)
+#define FPGA_INIT_STATE (*IXP425_GPIO_GPINR & CONFIG_SYS_FPGA_INIT)
 #define OLD_VAL                old_val
 
 static unsigned long old_val = 0;
@@ -56,46 +56,46 @@ int board_init(void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x00000100;
 
-       GPIO_OUTPUT_SET(CFG_GPIO_FPGA_RESET);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_FPGA_RESET);
+       GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_FPGA_RESET);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_FPGA_RESET);
 
-       GPIO_OUTPUT_SET(CFG_GPIO_SYS_RUNNING);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_SYS_RUNNING);
+       GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_SYS_RUNNING);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_SYS_RUNNING);
 
        /*
         * Setup GPIO's for FPGA programming
         */
-       GPIO_OUTPUT_CLEAR(CFG_GPIO_PRG);
-       GPIO_OUTPUT_CLEAR(CFG_GPIO_CLK);
-       GPIO_OUTPUT_CLEAR(CFG_GPIO_DATA);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_PRG);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_CLK);
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_DATA);
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_INIT);
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_DONE);
+       GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_PRG);
+       GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_CLK);
+       GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_DATA);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_PRG);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_CLK);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_DATA);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_INIT);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_DONE);
 
        /*
         * Setup GPIO's for interrupts
         */
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_PCI_INTA);
-       GPIO_INT_ACT_LOW_SET(CFG_GPIO_PCI_INTA);
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_PCI_INTB);
-       GPIO_INT_ACT_LOW_SET(CFG_GPIO_PCI_INTB);
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_RESTORE_INT);
-       GPIO_INT_ACT_LOW_SET(CFG_GPIO_RESTORE_INT);
-       GPIO_OUTPUT_DISABLE(CFG_GPIO_RESTART_INT);
-       GPIO_INT_ACT_LOW_SET(CFG_GPIO_RESTART_INT);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_PCI_INTA);
+       GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_PCI_INTA);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_PCI_INTB);
+       GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_PCI_INTB);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_RESTORE_INT);
+       GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_RESTORE_INT);
+       GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_RESTART_INT);
+       GPIO_INT_ACT_LOW_SET(CONFIG_SYS_GPIO_RESTART_INT);
 
        /*
         * Setup GPIO's for 33MHz clock output
         */
        *IXP425_GPIO_GPCLKR = 0x01FF0000;
-       GPIO_OUTPUT_ENABLE(CFG_GPIO_CLK_33M);
+       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_CLK_33M);
 
        /*
         * Setup other chip select's
         */
-       *IXP425_EXP_CS1 = CFG_EXP_CS1;
+       *IXP425_EXP_CS1 = CONFIG_SYS_EXP_CS1;
 
        return 0;
 }
@@ -132,14 +132,14 @@ int do_fpga_boot(unsigned char *fpgadata)
        int status;
        int index;
        int i;
-       ulong len = CFG_MALLOC_LEN;
+       ulong len = CONFIG_SYS_MALLOC_LEN;
 
        /*
         * Setup GPIO's for FPGA programming
         */
-       GPIO_OUTPUT_CLEAR(CFG_GPIO_PRG);
-       GPIO_OUTPUT_CLEAR(CFG_GPIO_CLK);
-       GPIO_OUTPUT_CLEAR(CFG_GPIO_DATA);
+       GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_PRG);
+       GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_CLK);
+       GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_DATA);
 
        /*
         * Save value so no readback is required upon programming
@@ -149,8 +149,8 @@ int do_fpga_boot(unsigned char *fpgadata)
        /*
         * First try to decompress fpga image (gzip compressed?)
         */
-       dst = malloc(CFG_FPGA_MAX_SIZE);
-       if (gunzip(dst, CFG_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
+       dst = malloc(CONFIG_SYS_FPGA_MAX_SIZE);
+       if (gunzip(dst, CONFIG_SYS_FPGA_MAX_SIZE, (uchar *)fpgadata, &len) != 0) {
                printf("Error: Image has to be gzipp'ed!\n");
                return -1;
        }
@@ -204,9 +204,9 @@ int do_fpga_boot(unsigned char *fpgadata)
        /*
         * Reset FPGA
         */
-       GPIO_OUTPUT_CLEAR(CFG_GPIO_FPGA_RESET);
+       GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_FPGA_RESET);
        udelay(10);
-       GPIO_OUTPUT_SET(CFG_GPIO_FPGA_RESET);
+       GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_FPGA_RESET);
 
        return (0);
 }
index 8a7b14ee2f5fa47df09e66a69953248a0cd05bae..0fcf354cdc4289cab4a7f1515066937416c9a226 100644 (file)
@@ -30,7 +30,7 @@
 #endif
 
 #define SECTSZ         (64 * 1024)
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*----------------------------------------------------------------------*/
 unsigned long flash_init (void)
@@ -39,18 +39,18 @@ unsigned long flash_init (void)
        unsigned long addr;
        flash_info_t *fli = &flash_info[0];
 
-       fli->size = CFG_FLASH_SIZE;
-       fli->sector_count = CFG_MAX_FLASH_SECT;
+       fli->size = CONFIG_SYS_FLASH_SIZE;
+       fli->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        fli->flash_id = FLASH_MAN_AMD + FLASH_AMDLV065D;
 
-       addr = CFG_FLASH_BASE;
+       addr = CONFIG_SYS_FLASH_BASE;
        for (i = 0; i < fli->sector_count; ++i) {
                fli->start[i] = addr;
                addr += SECTSZ;
                fli->protect[i] = 1;
        }
 
-       return (CFG_FLASH_SIZE);
+       return (CONFIG_SYS_FLASH_SIZE);
 }
 /*--------------------------------------------------------------------*/
 void flash_print_info (flash_info_t * info)
@@ -135,7 +135,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        while ( readb (addr2) != 0xff) {
                                udelay (1000 * 1000);
                                putc ('.');
-                               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("timeout\n");
                                        return 1;
                                }
@@ -177,7 +177,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                /* Verify write */
                start = get_timer (0);
                while (readb (dst) != b) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return 1;
                        }
                }
index c75fe8c573dba99021627e310b0c9bc253d82c7e..e5e770576129a49e9165f2d0b659ed9fa7d8d207 100644 (file)
@@ -33,7 +33,7 @@ static led_id_t val = 0;
 
 void __led_init (led_id_t mask, int state)
 {
-       nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR;
+       nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR;
 
        if (state == STATUS_LED_ON)
                val &= ~mask;
@@ -44,7 +44,7 @@ void __led_init (led_id_t mask, int state)
 
 void __led_set (led_id_t mask, int state)
 {
-       nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR;
+       nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR;
 
        if (state == STATUS_LED_ON)
                val &= ~mask;
@@ -55,7 +55,7 @@ void __led_set (led_id_t mask, int state)
 
 void __led_toggle (led_id_t mask)
 {
-       nios_pio_t *pio = (nios_pio_t *)CFG_LEDPIO_ADDR;
+       nios_pio_t *pio = (nios_pio_t *)CONFIG_SYS_LEDPIO_ADDR;
 
        val ^= mask;
        writel (&pio->data, val);
index 640bc293e769f6713c1e9c1071051c9670fd30b2..37c7becbaa2a8807d6827358358277118126831e 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <asm/inca-ip.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 typedef unsigned long FLASH_PORT_WIDTH;
 typedef volatile unsigned long FLASH_PORT_WIDTHV;
@@ -207,7 +207,7 @@ unsigned long flash_init (void)
        load_cmd(IN_RAM_CMD_READ);
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                ulong flashbase = PHYS_FLASH_1;
                ulong * buscon = (ulong *) INCA_IP_EBU_EBU_BUSCON0;
 
@@ -229,12 +229,12 @@ unsigned long flash_init (void)
                size += flash_info[i].size;
        }
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
-                     flash_get_info(CFG_MONITOR_BASE));
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
+                     flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -282,13 +282,13 @@ static flash_info_t *flash_get_info(ulong base)
        int i;
        flash_info_t * info;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i ++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i ++) {
                info = & flash_info[i];
                if (info->start[0] <= base && base < info->start[0] + info->size)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 
 /*-----------------------------------------------------------------------
@@ -507,10 +507,10 @@ int       flash_erase (flash_info_t *info, int s_first, int s_last)
 
                start = get_timer(0);
 
-               while ((now = get_timer(start)) <= CFG_FLASH_ERASE_TOUT) {
+               while ((now = get_timer(start)) <= CONFIG_SYS_FLASH_ERASE_TOUT) {
 
                        /* show that we're waiting */
-                       if ((get_timer(last)) > CFG_HZ) {/* every second */
+                       if ((get_timer(last)) > CONFIG_SYS_HZ) {/* every second */
                                putc ('.');
                                last = get_timer(0);
                        }
index 900e66f72f8a2ee70526ef0b14160812d47fd1b4..54bef651ced1c34ff9375d2f8813fb0494474f8d 100644 (file)
@@ -129,14 +129,14 @@ phys_size_t initdram(int board_type)
 {
        /* The only supported number of SDRAM banks is 4.
         */
-#define CFG_NB 4
+#define CONFIG_SYS_NB  4
 
        ulong   cfgpb0  = *INCA_IP_SDRAM_MC_CFGPB0;
        ulong   cfgdw   = *INCA_IP_SDRAM_MC_CFGDW;
        int     cols    = cfgpb0 & 0xF;
        int     rows    = (cfgpb0 & 0xF0) >> 4;
        int     dw      = cfgdw & 0xF;
-       ulong   size    = (1 << (rows + cols)) * (1 << (dw - 1)) * CFG_NB;
+       ulong   size    = (1 << (rows + cols)) * (1 << (dw - 1)) * CONFIG_SYS_NB;
        void (*  sdram_init) (ulong);
 
        sdram_init = (void (*)(ulong)) CKSEG0ADDR(&sdram_timing_init);
@@ -253,26 +253,26 @@ void copy_code (ulong dest_addr)
 
        /* copy u-boot code
         */
-       copyLongs((ulong *)CFG_MONITOR_BASE,
+       copyLongs((ulong *)CONFIG_SYS_MONITOR_BASE,
                  (ulong *)dest_addr,
-                 ((ulong)&uboot_end_data - CFG_MONITOR_BASE + 3) / 4);
+                 ((ulong)&uboot_end_data - CONFIG_SYS_MONITOR_BASE + 3) / 4);
 
 
        /* flush caches
         */
 
        start = CKSEG0;
-       end = start + CFG_DCACHE_SIZE;
+       end = start + CONFIG_SYS_DCACHE_SIZE;
        while(start < end) {
                cache_unroll(start,Index_Writeback_Inv_D);
-               start += CFG_CACHELINE_SIZE;
+               start += CONFIG_SYS_CACHELINE_SIZE;
        }
 
        start = CKSEG0;
-       end = start + CFG_ICACHE_SIZE;
+       end = start + CONFIG_SYS_ICACHE_SIZE;
        while(start < end) {
                cache_unroll(start,Index_Invalidate_I);
-               start += CFG_CACHELINE_SIZE;
+               start += CONFIG_SYS_CACHELINE_SIZE;
        }
 }
 
index f52d50d0a558d911b37cc922549b3443e474ac32..cd9d871b5aabf3a4b9d0d505321b5f9cfdd0344a 100644 (file)
@@ -38,7 +38,7 @@ int serial_init (void)
 
        sb->pos  = 0;
        sb->size = 0;
-       sb->max_size = CFG_SCONSOLE_SIZE - sizeof (sconsole_buffer_t);
+       sb->max_size = CONFIG_SYS_SCONSOLE_SIZE - sizeof (sconsole_buffer_t);
 
        return (0);
 }
index e130ad4c1c4b87b97fc8f2cf311f8f85977f6f5c..baed5fbb87c01d30df7a3e85583a221edcd30921 100644 (file)
@@ -33,7 +33,7 @@ typedef struct sconsole_buffer_s {
        char data[1];
 } sconsole_buffer_t;
 
-#define SCONSOLE_BUFFER                ((sconsole_buffer_t *) CFG_SCONSOLE_ADDR)
+#define SCONSOLE_BUFFER                ((sconsole_buffer_t *) CONFIG_SYS_SCONSOLE_ADDR)
 
 extern void    (* sconsole_putc)       (char);
 extern void    (* sconsole_puts)       (const char *);
index 80b5182cf9611f3eb8677a751ae0284fe2b743ce..a50760fea4016ab8f8b3911712bf452cbbe1e725 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
        .macro CPWAIT reg
@@ -53,67 +53,67 @@ lowlevel_init:
 
        /* Set up GPIO pins first ----------------------------------------- */
        ldr             r0,     =GPSR0
-       ldr             r1,     =CFG_GPSR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR1
-       ldr             r1,     =CFG_GPSR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR2
-       ldr             r1,     =CFG_GPSR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR0
-       ldr             r1,     =CFG_GPCR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR1
-       ldr             r1,     =CFG_GPCR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR2
-       ldr             r1,     =CFG_GPCR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR0
-       ldr             r1,     =CFG_GPDR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR1
-       ldr             r1,     =CFG_GPDR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR2
-       ldr             r1,     =CFG_GPDR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_L
-       ldr             r1,     =CFG_GAFR0_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_U
-       ldr             r1,     =CFG_GAFR0_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_L
-       ldr             r1,     =CFG_GAFR1_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_U
-       ldr             r1,     =CFG_GAFR1_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_L
-       ldr             r1,     =CFG_GAFR2_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_U
-       ldr             r1,     =CFG_GAFR2_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_U_VAL
        str             r1,   [r0]
 
        ldr     r0,     =PSSR           /* enable GPIO pins */
-       ldr             r1,     =CFG_PSSR_VAL
+       ldr             r1,     =CONFIG_SYS_PSSR_VAL
        str             r1,   [r0]
 
 #ifdef DEBUG_BLINK_ENABLE
@@ -156,17 +156,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]        /* read back to ensure      */
                                                /* that data latches        */
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
@@ -175,37 +175,37 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
        ldr     r2,     [r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
        ldr     r2,     [r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
        ldr     r2,     [r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
        ldr     r2,     [r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
        ldr     r2,     [r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
        ldr     r2,     [r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
        ldr     r2,     [r1, #MCIO1_OFFSET]
 
@@ -225,7 +225,7 @@ mem_init:
        /* Before accessing MDREFR we need a valid DRI field, so we set     */
        /* this to power on defaults + DRI field.                           */
 
-       ldr     r3,     =CFG_MDREFR_VAL
+       ldr     r3,     =CONFIG_SYS_MDREFR_VAL
        ldr     r2,     =0xFFF
        and     r3,     r3,  r2
        ldr     r4,     =0x03ca4000
@@ -253,7 +253,7 @@ mem_init:
 
        /* set MDREFR according to user define with exception of a few bits */
 
-       ldr     r4,     =CFG_MDREFR_VAL
+       ldr     r4,     =CONFIG_SYS_MDREFR_VAL
        orr     r4,     r4,     #(MDREFR_SLFRSH)
        bic     r4,     r4,     #(MDREFR_E1PIN|MDREFR_E0PIN)
        str     r4,     [r1, #MDREFR_OFFSET]    /* write back MDREFR        */
@@ -267,7 +267,7 @@ mem_init:
 
        /* Step 4c: assert MDREFR:E1PIN and E0PIO as desired                */
 
-       ldr     r4,     =CFG_MDREFR_VAL
+       ldr     r4,     =CONFIG_SYS_MDREFR_VAL
        str     r4,     [r1, #MDREFR_OFFSET]    /* write back MDREFR        */
        ldr     r4,     [r1, #MDREFR_OFFSET]
 
@@ -275,7 +275,7 @@ mem_init:
        /* Step 4d: write MDCNFG with MDCNFG:DEx deasserted (set to 0), to  */
        /*          configure but not enable each SDRAM partition pair.     */
 
-       ldr     r4,     =CFG_MDCNFG_VAL
+       ldr     r4,     =CONFIG_SYS_MDCNFG_VAL
        bic     r4,     r4,     #(MDCNFG_DE0|MDCNFG_DE1)
 
        str     r4,     [r1, #MDCNFG_OFFSET]    /* write back MDCNFG        */
@@ -300,7 +300,7 @@ mem_init:
        /*          documented in SDRAM data sheets. The address(es) used   */
        /*          for this purpose must not be cacheable.                 */
 
-       ldr     r3,     =CFG_DRAM_BASE
+       ldr     r3,     =CONFIG_SYS_DRAM_BASE
        str     r2,     [r3]
        str     r2,     [r3]
        str     r2,     [r3]
@@ -319,7 +319,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
        /* We are finished with Intel's memory controller initialisation    */
index 5765c5532a4d59cb2958bce95ecc888efdae3b0a..b0aa8dda8895335c0c783b8587b6b4876716f6d5 100644 (file)
@@ -127,7 +127,7 @@ int do_idpcmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return 0;
 }
 
-U_BOOT_CMD(idpcmd, CFG_MAXARGS, 0, do_idpcmd,
+U_BOOT_CMD(idpcmd, CONFIG_SYS_MAXARGS, 0, do_idpcmd,
           "idpcmd    - custom IDP command\n",
           "no args at this time\n"
 );
index bda9946c1c76872503905f27deb77a990bd946a1..39295fb67961aab3371f8e7f91884dfc887e6c35 100644 (file)
@@ -15,21 +15,21 @@ gpsr1: 0x3f0002
 gpsr2: 0x1c000
 
 
-#define CFG_GAFR0_L_VAL        0x80001005
-#define CFG_GAFR0_U_VAL        0xa5128012
-#define CFG_GAFR1_L_VAL        0x699a9558
-#define CFG_GAFR1_U_VAL        0xaaa5aa6a
-#define CFG_GAFR2_L_VAL        0xaaaaaaaa
-#define CFG_GAFR2_U_VAL        0x2
-#define CFG_GPCR0_VAL  0x1800400
-#define CFG_GPCR1_VAL  0x0
-#define CFG_GPCR2_VAL  0x0
-#define CFG_GPDR0_VAL  0xc1818440
-#define CFG_GPDR1_VAL  0xfcffab82
-#define CFG_GPDR2_VAL  0x1ffff
-#define CFG_GPSR0_VAL  0x8000
-#define CFG_GPSR1_VAL  0x3f0002
-#define CFG_GPSR2_VAL  0x1c000
+#define CONFIG_SYS_GAFR0_L_VAL 0x80001005
+#define CONFIG_SYS_GAFR0_U_VAL 0xa5128012
+#define CONFIG_SYS_GAFR1_L_VAL 0x699a9558
+#define CONFIG_SYS_GAFR1_U_VAL 0xaaa5aa6a
+#define CONFIG_SYS_GAFR2_L_VAL 0xaaaaaaaa
+#define CONFIG_SYS_GAFR2_U_VAL 0x2
+#define CONFIG_SYS_GPCR0_VAL   0x1800400
+#define CONFIG_SYS_GPCR1_VAL   0x0
+#define CONFIG_SYS_GPCR2_VAL   0x0
+#define CONFIG_SYS_GPDR0_VAL   0xc1818440
+#define CONFIG_SYS_GPDR1_VAL   0xfcffab82
+#define CONFIG_SYS_GPDR2_VAL   0x1ffff
+#define CONFIG_SYS_GPSR0_VAL   0x8000
+#define CONFIG_SYS_GPSR1_VAL   0x3f0002
+#define CONFIG_SYS_GPSR2_VAL   0x1c000
 
 
 GPIO: 0, dir=0, set=0, clr=0, alt=none, desc=USER_RESET#
index c4bcb4b0add8c1c6bbfe58565c2722e8c6bba594..2f89e3162e12c338272f3588c7e17e901fdbfa55 100644 (file)
@@ -246,12 +246,12 @@ pxa_regs = {
 
 # U-boot define names
 uboot_reg_names = {
-       'gpdr0':'CFG_GPDR0_VAL', 'gpdr1':'CFG_GPDR1_VAL', 'gpdr2':'CFG_GPDR2_VAL',
-       'gpsr0':'CFG_GPSR0_VAL', 'gpsr1':'CFG_GPSR1_VAL', 'gpsr2':'CFG_GPSR2_VAL',
-       'gpcr0':'CFG_GPCR0_VAL', 'gpcr1':'CFG_GPCR1_VAL', 'gpcr2':'CFG_GPCR2_VAL',
-       'gafr0_l':'CFG_GAFR0_L_VAL', 'gafr0_u':'CFG_GAFR0_U_VAL',
-       'gafr1_l':'CFG_GAFR1_L_VAL', 'gafr1_u':'CFG_GAFR1_U_VAL',
-       'gafr2_l':'CFG_GAFR2_L_VAL', 'gafr2_u':'CFG_GAFR2_U_VAL',
+       'gpdr0':'CONFIG_SYS_GPDR0_VAL', 'gpdr1':'CONFIG_SYS_GPDR1_VAL', 'gpdr2':'CONFIG_SYS_GPDR2_VAL',
+       'gpsr0':'CONFIG_SYS_GPSR0_VAL', 'gpsr1':'CONFIG_SYS_GPSR1_VAL', 'gpsr2':'CONFIG_SYS_GPSR2_VAL',
+       'gpcr0':'CONFIG_SYS_GPCR0_VAL', 'gpcr1':'CONFIG_SYS_GPCR1_VAL', 'gpcr2':'CONFIG_SYS_GPCR2_VAL',
+       'gafr0_l':'CONFIG_SYS_GAFR0_L_VAL', 'gafr0_u':'CONFIG_SYS_GAFR0_U_VAL',
+       'gafr1_l':'CONFIG_SYS_GAFR1_L_VAL', 'gafr1_u':'CONFIG_SYS_GAFR1_U_VAL',
+       'gafr2_l':'CONFIG_SYS_GAFR2_L_VAL', 'gafr2_u':'CONFIG_SYS_GAFR2_U_VAL',
 }
 
 # bit mappings
index 766ee95bb3034e134587ce62947055dc469baa5f..35525bc3bf5e7e07df95eb7f1f4c6c0df2da6f18 100644 (file)
@@ -37,9 +37,9 @@ static void quad100hd_hwcontrol(struct mtd_info *mtd,
        struct nand_chip *this = mtd->priv;
 
        if (ctrl & NAND_CTRL_CHANGE) {
-               gpio_write_bit(CFG_NAND_CLE, !!(ctrl & NAND_CLE));
-               gpio_write_bit(CFG_NAND_ALE, !!(ctrl & NAND_ALE));
-               gpio_write_bit(CFG_NAND_CE, !(ctrl & NAND_NCE));
+               gpio_write_bit(CONFIG_SYS_NAND_CLE, !!(ctrl & NAND_CLE));
+               gpio_write_bit(CONFIG_SYS_NAND_ALE, !!(ctrl & NAND_ALE));
+               gpio_write_bit(CONFIG_SYS_NAND_CE, !(ctrl & NAND_NCE));
        }
 
        if (cmd != NAND_CMD_NONE)
@@ -48,7 +48,7 @@ static void quad100hd_hwcontrol(struct mtd_info *mtd,
 
 static int quad100hd_nand_ready(struct mtd_info *mtd)
 {
-       return gpio_read_in_bit(CFG_NAND_RDY);
+       return gpio_read_in_bit(CONFIG_SYS_NAND_RDY);
 }
 
 /*
index 75c2658e8a6e6b103563c23e704ea12e1b423501..092aaab6be98e518e96420b93e568d592a10fca3 100644 (file)
 
 int fpga_boot (unsigned char *fpgadata, int size)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int i, index, len;
        int count;
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        int j;
        unsigned char data;
 #else
@@ -89,7 +89,7 @@ int fpga_boot (unsigned char *fpgadata, int size)
 
        index = 0;
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        /* search for preamble 0xFFFFFFFF */
        while (1) {
                if ((fpgadata[index] == 0xff) && (fpgadata[index + 1] == 0xff)
@@ -159,12 +159,12 @@ int fpga_boot (unsigned char *fpgadata, int size)
        debug ("write configuration data into fpga\n");
        /* write configuration-data into fpga... */
 
-#ifdef CFG_FPGA_SPARTAN2
+#ifdef CONFIG_SYS_FPGA_SPARTAN2
        /*
         * Load uncompressed image into fpga
         */
        for (i = index; i < size; i++) {
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                if ((i % 1024) == 0)
                        printf ("%6d out of %6d\r", i, size);   /* let them know we are alive */
 #endif
index 345f127b63a5c262741a8dcfa42f863bd5d4554f..d94b5d72a47cfca6a9ee77061abc1e28c7be6b0e 100644 (file)
@@ -104,7 +104,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size9;
 
@@ -112,15 +112,15 @@ phys_size_t initdram (int board_type)
                   sizeof (sdram_table) / sizeof (uint));
 
        /* Refresh clock prescalar */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_mar = 0x00000088;
 
        /* Map controller banks 1 to the SDRAM bank */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_9COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_9COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -136,12 +136,12 @@ phys_size_t initdram (int board_type)
        /* Check Bank 0 Memory Size,
         * 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (long *) SDRAM_BASE_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *) SDRAM_BASE_PRELIM,
                           SDRAM_MAX_SIZE);
        /*
         * Final mapping:
         */
-       memctl->memc_or1 = ((-size9) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+       memctl->memc_or1 = ((-size9) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
        udelay (1000);
 
        return (size9);
@@ -160,7 +160,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        volatile ulong *addr;
        ulong cnt, val, size;
@@ -224,14 +224,14 @@ int misc_init_r (void)
        void *fpga_data;
        int fpga_size;
        int status;
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        int flash_size;
 
        /* Remap FLASH according to real size */
        flash_size = flash_init ();
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-flash_size & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-flash_size & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        if (fpga_data_str && fpga_size_str) {
                fpga_data = (void *) simple_strtoul (fpga_data_str, NULL, 16);
index 4e0c66a6a2bf08b403b585ceb6d41add5f8fa1c8..0c08d685949b18f4df218d602c99c59ef6986cb5 100644 (file)
@@ -43,9 +43,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index 8145437b1a07518ce960aa846863b76d2cced982..45cccf712b1c699e47b78686b0f4b2347d4d61da 100644 (file)
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -76,13 +76,13 @@ static void flash_get_offsets (ulong base, flash_info_t * info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0;
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -95,19 +95,19 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size ((FPW *) CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size ((FPW *) CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        (void) flash_protect (FLAG_PROTECT_SET,
-                               CFG_FLASH_BASE,
-                               CFG_FLASH_BASE + monitor_flash_len - 1,
+                               CONFIG_SYS_FLASH_BASE,
+                               CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                                &flash_info[0]);
 #endif
 
@@ -261,10 +261,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -335,7 +335,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        udelay (1000);
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                           if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                           if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -472,7 +472,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
        start = get_timer (0);
 
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index 4fd9d1298b2fee4ed3c927e6ea905b08992205bf..85da41bd22d6f5a4dd3728b115607db95bea7968 100644 (file)
@@ -28,10 +28,10 @@ int pcmcia_hardware_enable(int slot)
 
        udelay(10000);
 
-       immap = (immap_t *)CFG_IMMR;
-       sysp  = (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       sysp  = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /*
        * Configure SIUMCR to enable PCMCIA port B
@@ -132,8 +132,8 @@ int pcmcia_hardware_disable(int slot)
 
        debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
        /* remove all power */
        immap->im_ioport.iop_pcdat |= 0x0400;
@@ -164,8 +164,8 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
                        " Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
        'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        /*
        * Disable PCMCIA buffers (isolate the interface)
        * and assert RESET signal
index c51e412f46d64c24f80da41fcb297ea19fad2c8f..b502e4d78c4e747ecc7bed6e5fb2c40abf0b4029 100644 (file)
@@ -105,7 +105,7 @@ static long int dram_size (long int, long int *, long int);
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size8, size9;
        long int size_b0 = 0;
@@ -120,7 +120,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
@@ -129,10 +129,10 @@ phys_size_t initdram (int board_type)
         * preliminary address - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -152,7 +152,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, (long *) SDRAM_BASE2_PRELIM,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, (long *) SDRAM_BASE2_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        udelay (1000);
@@ -160,7 +160,7 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (long *) SDRAM_BASE2_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *) SDRAM_BASE2_PRELIM,
                                           SDRAM_MAX_SIZE);
 
        if (size8 < size9) {            /* leave configuration at 9 columns */
@@ -168,7 +168,7 @@ phys_size_t initdram (int board_type)
 /*     debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                        /* back to 8 columns            */
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*     debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -181,7 +181,7 @@ phys_size_t initdram (int board_type)
         */
        if ((size_b0 < 0x02000000)) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
@@ -189,20 +189,20 @@ phys_size_t initdram (int board_type)
         * Final mapping
         */
 
-       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        /* adjust refresh rate depending on SDRAM type, one bank */
        reg = memctl->memc_mptpr;
-       reg >>= 1;              /* reduce to CFG_MPTPR_1BK_8K / _4K */
+       reg >>= 1;              /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
        memctl->memc_mptpr = reg;
 
        udelay (10000);
 
 #ifdef CONFIG_CAN_DRIVER
        /* Initialize OR3 / BR3 */
-       memctl->memc_or3 = CFG_OR3_CAN;         /* switch GPLB_5 to GPLA_5 */
-       memctl->memc_br3 = CFG_BR3_CAN;
+       memctl->memc_or3 = CONFIG_SYS_OR3_CAN;          /* switch GPLB_5 to GPLA_5 */
+       memctl->memc_br3 = CONFIG_SYS_BR3_CAN;
 
        /* Initialize MBMR */
        memctl->memc_mbmr = MBMR_GPL_B4DIS;     /* GPL_B4 works as UPWAITB */
@@ -256,7 +256,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value,
                           long int *base, long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -268,7 +268,7 @@ static long int dram_size (long int mamr_value,
 
 void r360_i2c_lcd_write (uchar data0, uchar data1)
 {
-       if (i2c_write (CFG_I2C_LCD_ADDR, data0, 1, &data1, 1)) {
+       if (i2c_write (CONFIG_SYS_I2C_LCD_ADDR, data0, 1, &data1, 1)) {
                printf("Can't write lcd data 0x%02X 0x%02X.\n", data0, data1);
        }
 }
@@ -292,9 +292,9 @@ int misc_init_r (void)
        char *str;
        int i;
 
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
-       i2c_read (CFG_I2C_KEY_ADDR, 0, 0, (uchar *)kbd_data, KEYBD_DATALEN);
+       i2c_read (CONFIG_SYS_I2C_KEY_ADDR, 0, 0, (uchar *)kbd_data, KEYBD_DATALEN);
 
        for (i = 0; i < KEYBD_DATALEN; ++i) {
                sprintf (keybd_env + i + i, "%02X", kbd_data[i]);
@@ -397,10 +397,10 @@ int do_kbd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        uchar keybd_env[2 * KEYBD_DATALEN + 1];
        int i;
 
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /* Read keys */
-       i2c_read (CFG_I2C_KEY_ADDR, 0, 0, kbd_data, KEYBD_DATALEN);
+       i2c_read (CONFIG_SYS_I2C_KEY_ADDR, 0, 0, kbd_data, KEYBD_DATALEN);
 
        puts ("Keys:");
        for (i = 0; i < KEYBD_DATALEN; ++i) {
index efbeec97ca67ed18000abd2863a72aad99461e85..396e4b6db3584b9037c7e428dbbe5cfedc015991 100644 (file)
@@ -48,9 +48,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index ad75c215612e57332ad0e63615d67b7121741e3d..80f57dc42a1a143713d6c75f49c252ff887d544f 100644 (file)
  * according to the five values podr/pdir/ppar/psor/pdat for that entry
  */
 
-#define CFG_FCC1 (CONFIG_ETHER_INDEX == 1)
-#define CFG_FCC2 (CONFIG_ETHER_INDEX == 2)
+#define CONFIG_SYS_FCC1 (CONFIG_ETHER_INDEX == 1)
+#define CONFIG_SYS_FCC2 (CONFIG_ETHER_INDEX == 2)
 
 const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port A */
     {  /*            conf      ppar psor pdir podr pdat */
-       /* PA31 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL    */
-       /* PA30 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS    */
-       /* PA29 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER  */
-       /* PA28 */ { CFG_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN  */
-       /* PA27 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV  */
-       /* PA26 */ { CFG_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER  */
+       /* PA31 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII COL    */
+       /* PA30 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII CRS    */
+       /* PA29 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_ER  */
+       /* PA28 */ { CONFIG_SYS_FCC1,   1,   1,   1,   0,   0 }, /* FCC1 MII TX_EN  */
+       /* PA27 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_DV  */
+       /* PA26 */ { CONFIG_SYS_FCC1,   1,   1,   0,   0,   0 }, /* FCC1 MII RX_ER  */
        /* PA25 */ { 0,          0,   0,   0,   0,   0 }, /* PA25            */
        /* PA24 */ { 0,          0,   0,   0,   0,   0 }, /* PA24            */
        /* PA23 */ { 0,          0,   0,   0,   0,   0 }, /* PA23            */
        /* PA22 */ { 1,          0,   0,   1,   0,   1 }, /* Eth PHYs reset  */
-       /* PA21 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
-       /* PA20 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
-       /* PA19 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
-       /* PA18 */ { CFG_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
-       /* PA17 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
-       /* PA16 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
-       /* PA15 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
-       /* PA14 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
+       /* PA21 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[3] */
+       /* PA20 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[2] */
+       /* PA19 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[1] */
+       /* PA18 */ { CONFIG_SYS_FCC1,   1,   0,   1,   0,   0 }, /* FCC1 MII TxD[0] */
+       /* PA17 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[0] */
+       /* PA16 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[1] */
+       /* PA15 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[2] */
+       /* PA14 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 MII RxD[3] */
        /* PA13 */ { 0,          0,   0,   0,   0,   0 }, /* PA13            */
        /* PA12 */ { 0,          0,   0,   0,   0,   0 }, /* PA12            */
        /* PA11 */ { 0,          0,   0,   0,   0,   0 }, /* PA11            */
@@ -78,20 +78,20 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
     /* Port B */
     {   /*           conf      ppar psor pdir podr pdat */
-       /* PB31 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
-       /* PB30 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
-       /* PB29 */ { CFG_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
-       /* PB28 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
-       /* PB27 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
-       /* PB26 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
-       /* PB25 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
-       /* PB24 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
-       /* PB23 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
-       /* PB22 */ { CFG_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
-       /* PB21 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
-       /* PB20 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
-       /* PB19 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
-       /* PB18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
+       /* PB31 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TX_ER  */
+       /* PB30 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_DV  */
+       /* PB29 */ { CONFIG_SYS_FCC2,   1,   1,   1,   0,   0 }, /* FCC2 MII TX_EN  */
+       /* PB28 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RX_ER  */
+       /* PB27 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII COL    */
+       /* PB26 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII CRS    */
+       /* PB25 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[3] */
+       /* PB24 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[2] */
+       /* PB23 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[1] */
+       /* PB22 */ { CONFIG_SYS_FCC2,   1,   0,   1,   0,   0 }, /* FCC2 MII TxD[0] */
+       /* PB21 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[0] */
+       /* PB20 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[1] */
+       /* PB19 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[2] */
+       /* PB18 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 MII RxD[3] */
        /* PB17 */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
        /* PB16 */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
        /* PB15 */ { 0,          0,   0,   0,   0,   0 }, /* non-existent    */
@@ -123,12 +123,12 @@ const iop_conf_t iop_conf_tab[4][32] = {
        /* PC25 */ { 0,          0,   0,   0,   0,   0 }, /* PC25            */
        /* PC24 */ { 0,          0,   0,   0,   0,   0 }, /* PC24            */
        /* PC23 */ { 0,          0,   0,   0,   0,   0 }, /* PC23            */
-       /* PC22 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 TxClk (CLK10) */
-       /* PC21 */ { CFG_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 RxClk (CLK11) */
+       /* PC22 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 TxClk (CLK10) */
+       /* PC21 */ { CONFIG_SYS_FCC1,   1,   0,   0,   0,   0 }, /* FCC1 RxClk (CLK11) */
        /* PC20 */ { 0,          0,   0,   0,   0,   0 }, /* PC20            */
        /* PC19 */ { 0,          0,   0,   0,   0,   0 }, /* PC19            */
-       /* PC18 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 TxClk (CLK14) */
-       /* PC17 */ { CFG_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 RxClk (CLK15) */
+       /* PC18 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 TxClk (CLK14) */
+       /* PC17 */ { CONFIG_SYS_FCC2,   1,   0,   0,   0,   0 }, /* FCC2 RxClk (CLK15) */
        /* PC16 */ { 0,          0,   0,   0,   0,   0 }, /* PC16            */
        /* PC15 */ { 0,          0,   0,   0,   0,   0 }, /* PC15            */
        /* PC14 */ { 0,          0,   0,   0,   0,   0 }, /* PC14            */
@@ -187,26 +187,26 @@ const iop_conf_t iop_conf_tab[4][32] = {
 
 phys_size_t initdram(int board_type)
 {
-       long int msize = CFG_SDRAM_SIZE;
+       long int msize = CONFIG_SYS_SDRAM_SIZE;
 
-#ifndef CFG_RAMBOOT
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+#ifndef CONFIG_SYS_RAMBOOT
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
-       vu_char *ramaddr = (vu_char *)CFG_SDRAM_BASE;
+       vu_char *ramaddr = (vu_char *)CONFIG_SYS_SDRAM_BASE;
        uchar c = 0xFF;
-       uint psdmr = CFG_PSDMR;
+       uint psdmr = CONFIG_SYS_PSDMR;
        int i;
 
        immap->im_siu_conf.sc_ppc_acr  = 0x02;
        immap->im_siu_conf.sc_ppc_alrh = 0x30126745;
        immap->im_siu_conf.sc_tescr1   = 0x00004000;
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /* Initialise 60x bus SDRAM */
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_or1  = CFG_SDRAM_OR;
-       memctl->memc_br1  = CFG_SDRAM_BR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_or1  = CONFIG_SYS_SDRAM_OR;
+       memctl->memc_br1  = CONFIG_SYS_SDRAM_BR;
        memctl->memc_psdmr = psdmr | PSDMR_OP_PREA; /* Precharge all banks */
        *ramaddr = c;
        memctl->memc_psdmr = psdmr | PSDMR_OP_CBRR; /* CBR refresh */
@@ -216,7 +216,7 @@ phys_size_t initdram(int board_type)
        *ramaddr = c;
        memctl->memc_psdmr = psdmr | PSDMR_RFEN;    /* Refresh enable */
        *ramaddr = c;
-#endif /* !CFG_RAMBOOT */
+#endif /* !CONFIG_SYS_RAMBOOT */
 
        /* Return total 60x bus SDRAM size */
        return msize * 1024 * 1024;
@@ -224,7 +224,7 @@ phys_size_t initdram(int board_type)
 
 int checkboard(void)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        printf("Board: Rattler Rev. %c\n", bcsr[0x20] + 0x40);
        return 0;
index 26ebcae8608c050475609446093eacd6cadc40bc..cb1e089f38e133a090bb2840605b6b06a594f8a8 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -42,20 +42,20 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i)
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
            flash_info[i].flash_id = FLASH_UNKNOWN;
 
        /* Detect size */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* Setup offsets */
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* Monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -322,7 +322,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 
        while ((addr[0] & 0xFF) != 0xFF)
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -454,7 +454,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
            start = get_timer (0);
            while ((*cdest ^ *cdata) & 0x80)
            {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
            }
index 6d530f6b431cf9d16fc023e2365ba23a74244e06..1d48f6d0bc42b8c0eeaa655705e93437855e45cc 100644 (file)
@@ -48,7 +48,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void smc1_setbrg (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(im->im_cpm);
 
        /* Set up the baud rate generator.
@@ -65,7 +65,7 @@ void smc1_setbrg (void)
 
 int smc1_init (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile smc_t *sp;
        volatile smc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -86,15 +86,15 @@ int smc1_init (void)
        im->im_siu_conf.sc_sdcr = 1;
 
        /* clear error conditions */
-#ifdef CFG_SDSR
-       im->im_sdma.sdma_sdsr = CFG_SDSR;
+#ifdef CONFIG_SYS_SDSR
+       im->im_sdma.sdma_sdsr = CONFIG_SYS_SDSR;
 #else
        im->im_sdma.sdma_sdsr = 0x83;
 #endif
 
        /* clear SDMA interrupt mask */
-#ifdef CFG_SDMR
-       im->im_sdma.sdma_sdmr = CFG_SDMR;
+#ifdef CONFIG_SYS_SDMR
+       im->im_sdma.sdma_sdmr = CONFIG_SYS_SDMR;
 #else
        im->im_sdma.sdma_sdmr = 0x00;
 #endif
@@ -109,7 +109,7 @@ int smc1_init (void)
         * the buffer descriptors.
         */
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = dpram_alloc_align (sizeof(cbd_t)*2 + 2, 8) ;
 #else
        dpaddr = CPM_KEYBOARD_BASE ;
@@ -182,7 +182,7 @@ void smc1_putc(const char c)
        volatile cbd_t          *tbdf;
        volatile char           *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
 
        up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
@@ -210,7 +210,7 @@ int smc1_getc(void)
        volatile cbd_t          *rbdf;
        volatile unsigned char  *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
        unsigned char           c;
 
@@ -235,7 +235,7 @@ int smc1_tstc(void)
 {
        volatile cbd_t          *rbdf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
 
        up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
index 5b62af61467648867de300fcd92ace28f9f00409..b2949060c029448fc2ef9427ec541a6b3aa7ac53 100644 (file)
@@ -144,7 +144,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0, size8, size9;
 
@@ -154,15 +154,15 @@ phys_size_t initdram (int board_type)
        /*
         * 1 Bank of 64Mbit x 2 devices
         */
-       memctl->memc_mptpr = CFG_MPTPR_1BK_4K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_4K;
        memctl->memc_mar = 0x00000088;
 
        /*
         * Map controller SDRAM bank 0
         */
-       memctl->memc_or4 = CFG_OR4_PRELIM;
-       memctl->memc_br4 = CFG_BR4_PRELIM;
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_or4 = CONFIG_SYS_OR4_PRELIM;
+       memctl->memc_br4 = CONFIG_SYS_BR4_PRELIM;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
        udelay (200);
 
        /*
@@ -170,11 +170,11 @@ phys_size_t initdram (int board_type)
         */
        memctl->memc_mcr = 0x80008105;  /* SDRAM bank 0 */
        udelay (1);
-       memctl->memc_mamr = (CFG_MAMR_8COL & ~(MAMR_TLFA_MSK)) | MAMR_TLFA_8X;
+       memctl->memc_mamr = (CONFIG_SYS_MAMR_8COL & ~(MAMR_TLFA_MSK)) | MAMR_TLFA_8X;
        udelay (200);
        memctl->memc_mcr = 0x80008130;  /* SDRAM bank 0 - execute twice */
        udelay (1);
-       memctl->memc_mamr = (CFG_MAMR_8COL & ~(MAMR_TLFA_MSK)) | MAMR_TLFA_4X;
+       memctl->memc_mamr = (CONFIG_SYS_MAMR_8COL & ~(MAMR_TLFA_MSK)) | MAMR_TLFA_4X;
        udelay (200);
 
        memctl->memc_mamr |= MAMR_PTAE; /* enable refresh */
@@ -186,21 +186,21 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_4K;  /* 16: but should be: CFG_MPTPR_1BK_4K */
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;   /* 16: but should be: CONFIG_SYS_MPTPR_1BK_4K */
 
        /*
         * Check Bank 0 Memory Size for re-configuration
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, (long *) SDRAM_BASE4_PRELIM,
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, (long *) SDRAM_BASE4_PRELIM,
                           SDRAM_MAX_SIZE);
        udelay (1000);
 
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, (long *) SDRAM_BASE4_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *) SDRAM_BASE4_PRELIM,
                           SDRAM_MAX_SIZE);
 
        if (size8 < size9) {    /* leave configuration at 9 columns     */
@@ -208,7 +208,7 @@ phys_size_t initdram (int board_type)
 /*     debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size >> 20);  */
        } else {                /* back to 8 columns                    */
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
 /*     debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size >> 20);  */
        }
@@ -221,14 +221,14 @@ phys_size_t initdram (int board_type)
         */
        if ((size_b0 < 0x02000000)) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
        /* SDRAM Bank 0 is bigger - map first       */
 
-       memctl->memc_or4 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-       memctl->memc_br4 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_or4 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+       memctl->memc_br4 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
        udelay (10000);
 
@@ -248,7 +248,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -258,7 +258,7 @@ static long int dram_size (long int mamr_value, long int *base,
 
 void doc_init (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        upmconfig (UPMB, (uint *) static_table,
index 7c248a7ba270a59e772896e89f3ab1068efb1d56..a3ab851d2c79bdd27130ced3f37c5a50590711b8 100644 (file)
@@ -26,7 +26,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -40,13 +40,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0 ;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -64,21 +64,21 @@ unsigned long flash_init (void)
                memctl->memc_br0, memctl->memc_or0);
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        debug ("## BR0: 0x%08x    OR0: 0x%08x\n",
                memctl->memc_br0, memctl->memc_or0);
 
        /* Re-do sizing to get full correct info */
 
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -406,7 +406,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long *)(info->start[l_sect]);
        while ((addr[0] & 0x80808080) != 0x80808080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -529,7 +529,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index e22dc5258738a28905d0ba56ed995c8529ce3c16..cd02b9c6e0f8568e0ca9af192cb6a46befc8aa37 100644 (file)
@@ -94,7 +94,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size9;
 
@@ -102,15 +102,15 @@ phys_size_t initdram (int board_type)
                   sizeof (sdram_table) / sizeof (uint));
 
        /* Refresh clock prescalar */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_mar = 0x00000088;
 
        /* Map controller banks 1 to the SDRAM bank */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR_9COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_9COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -127,14 +127,14 @@ phys_size_t initdram (int board_type)
         * 9 column mode
         */
 
-       size9 = dram_size (CFG_MAMR_9COL, (long *) SDRAM_BASE_PRELIM,
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, (long *) SDRAM_BASE_PRELIM,
                           SDRAM_MAX_SIZE);
 
        /*
         * Final mapping:
         */
 
-       memctl->memc_or1 = ((-size9) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+       memctl->memc_or1 = ((-size9) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
        udelay (1000);
 
        return (size9);
@@ -153,7 +153,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index 5f444bf993ff2fd8bcba03b2cc848ceaa874a8a3..be29b65cf44753f915a8779b71f95f1189230130 100644 (file)
@@ -33,7 +33,7 @@
 #include <mpc8xx.h>
 #include <asm/io.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #define RD_SWP32(x) in_le32((volatile u32*)x)
 
@@ -53,21 +53,21 @@ unsigned long flash_init (void)
     int i;
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
 
     /* for now, only support the 4 MB Flash SIMM */
-    size = flash_get_size((vu_long *)CFG_FLASH0_BASE, &flash_info[0]);
+    size = flash_get_size((vu_long *)CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
 
     /*
      * protect monitor and environment sectors
      */
 
-#if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_MONITOR_BASE,
-                 CFG_MONITOR_BASE+monitor_flash_len-1,
+                 CONFIG_SYS_MONITOR_BASE,
+                 CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                  &flash_info[0]);
 #endif
 
@@ -81,7 +81,7 @@ unsigned long flash_init (void)
                  &flash_info[0]);
 #endif
 
-    return /*size*/ (CFG_FLASH0_SIZE * 1024 * 1024);
+    return /*size*/ (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024);
 }
 
 /*-----------------------------------------------------------------------
@@ -292,7 +292,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
     addr = (vu_long*)(info->start[l_sect]);
     while (    (addr[0] & 0x80808080) != 0x80808080 ||
                (addr[1] & 0x80808080) != 0x80808080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -423,7 +423,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
     /* data polling for D7 */
     start = get_timer (0);
     while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            return (1);
        }
     }
index ef99affff987462b56cbf5057d5cab1224f2e767..12e23f487f49448b650bd09eaa0bb7feb2fc4309 100644 (file)
@@ -54,7 +54,7 @@ mii_phy_read(unsigned short reg)
 {
     int i;
     unsigned short tmp, val = 0, adr = 0;
-    t_rpx_regs *regs = (t_rpx_regs*)CFG_REGS_BASE;
+    t_rpx_regs *regs = (t_rpx_regs*)CONFIG_SYS_REGS_BASE;
 
     tmp = 0x6002 | (adr << 7) | (reg << 2);
     regs->bcsr4 = 0xC3;
@@ -83,7 +83,7 @@ mii_phy_write(unsigned short reg, unsigned short val)
 {
     int i;
     unsigned short tmp, adr = 0;
-    t_rpx_regs *regs = (t_rpx_regs*)CFG_REGS_BASE;
+    t_rpx_regs *regs = (t_rpx_regs*)CONFIG_SYS_REGS_BASE;
 
     tmp = 0x5002 | (adr << 7) | (reg << 2);
     regs->bcsr4 = 0xC3;
index f633c5c476bf5ead2a4b47c455ac465a2cd03c24..aa59803de72b7df8ff36a577db8222d5c25f2a2e 100644 (file)
@@ -193,11 +193,11 @@ const iop_conf_t iop_conf_tab[4][32] = {
 */
 int board_early_init_f (void)
 {
-    volatile t_rpx_regs *regs = (t_rpx_regs*)CFG_REGS_BASE;
-    volatile immap_t *immap  = (immap_t *)CFG_IMMR;
+    volatile t_rpx_regs *regs = (t_rpx_regs*)CONFIG_SYS_REGS_BASE;
+    volatile immap_t *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8260_t *memctl = &immap->im_memctl;
-    memctl->memc_br4 = CFG_BR4_PRELIM;
-    memctl->memc_or4 = CFG_OR4_PRELIM;
+    memctl->memc_br4 = CONFIG_SYS_BR4_PRELIM;
+    memctl->memc_or4 = CONFIG_SYS_OR4_PRELIM;
     regs->bcsr1 = 0x70; /* to enable terminal no SMC1 */
     regs->bcsr2 = 0x20;        /* mut be written to enable writing FLASH */
     return 0;
@@ -206,7 +206,7 @@ int board_early_init_f (void)
 void
 reset_phy(void)
 {
-    volatile t_rpx_regs *regs = (t_rpx_regs*)CFG_REGS_BASE;
+    volatile t_rpx_regs *regs = (t_rpx_regs*)CONFIG_SYS_REGS_BASE;
     regs->bcsr4 = 0xC3;
 }
 
@@ -216,7 +216,7 @@ reset_phy(void)
 
 int checkboard(void)
 {
-    volatile t_rpx_regs *regs = (t_rpx_regs*)CFG_REGS_BASE;
+    volatile t_rpx_regs *regs = (t_rpx_regs*)CONFIG_SYS_REGS_BASE;
     printf ("Board: Embedded Planet RPX Super, Revision %d\n",
        regs->bcsr0 >> 4);
 
@@ -227,15 +227,15 @@ int checkboard(void)
 
 phys_size_t initdram(int board_type)
 {
-    volatile immap_t *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8260_t *memctl = &immap->im_memctl;
     volatile uchar c = 0, *ramaddr;
     ulong psdmr, lsdmr, bcr;
     long size = 0;
     int i;
 
-    psdmr = CFG_PSDMR;
-    lsdmr = CFG_LSDMR;
+    psdmr = CONFIG_SYS_PSDMR;
+    lsdmr = CONFIG_SYS_LSDMR;
 
     /*
      * Quote from 8260 UM (10.4.2 SDRAM Power-On Initialization, 10-35):
@@ -254,17 +254,17 @@ phys_size_t initdram(int board_type)
      *  accessing the SDRAM with a single-byte transaction."
      *
      * The appropriate BRx/ORx registers have already been set when we
-     * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+     * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
      */
 
-    size = CFG_SDRAM0_SIZE;
+    size = CONFIG_SYS_SDRAM0_SIZE;
     bcr = immap->im_siu_conf.sc_bcr;
     immap->im_siu_conf.sc_bcr = (bcr & ~BCR_EBM);
 
-    memctl->memc_mptpr = CFG_MPTPR;
+    memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-    ramaddr = (uchar *)(CFG_SDRAM0_BASE);
-    memctl->memc_psrt = CFG_PSRT;
+    ramaddr = (uchar *)(CONFIG_SYS_SDRAM0_BASE);
+    memctl->memc_psrt = CONFIG_SYS_PSRT;
 
     memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
     *ramaddr = c;
@@ -281,10 +281,10 @@ phys_size_t initdram(int board_type)
 
     immap->im_siu_conf.sc_bcr = bcr;
 
-#ifndef CFG_RAMBOOT
-/*    size += CFG_SDRAM1_SIZE; */
-    ramaddr = (uchar *)(CFG_SDRAM1_BASE);
-    memctl->memc_lsrt = CFG_LSRT;
+#ifndef CONFIG_SYS_RAMBOOT
+/*    size += CONFIG_SYS_SDRAM1_SIZE; */
+    ramaddr = (uchar *)(CONFIG_SYS_SDRAM1_BASE);
+    memctl->memc_lsrt = CONFIG_SYS_LSRT;
 
     memctl->memc_lsdmr = lsdmr | PSDMR_OP_PREA;
     *ramaddr = c;
index 312b4001d054eb1a809aa3cb7716622d37c71618..e99c2a6f664fead205dc8b8aaf72a53bf04112b7 100644 (file)
@@ -41,7 +41,7 @@
  */
 #undef WITH_AUTOSELECT
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if 1
 #define D(x)
@@ -94,7 +94,7 @@ unsigned long flash_init (void)
 #endif
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
     }
 
@@ -120,14 +120,14 @@ unsigned long flash_init (void)
         * protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE >= PHYS_FLASH
+#if CONFIG_SYS_MONITOR_BASE >= PHYS_FLASH
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[1]);
 #endif
 
@@ -259,7 +259,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        start = get_timer (0);
        do
        {
-               if (get_timer(start) > CFG_FLASH_ERASE_TOUT)
+               if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT)
                {       /* write reset command, command address is unimportant */
                        /* this command turns the flash back to read mode     */
                        f_addr =
@@ -387,7 +387,7 @@ static unsigned char write_ull(flash_info_t *info,
        start = get_timer (0);
        do
        {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                {
                        /* write reset command, command address is unimportant */
                        /* this command turns the flash back to read mode     */
index eeec3b4dcd419cca328da3dc42b8e957d72fd755..26edb2e4f8cfbf3696058f01365748f735bffc9c 100644 (file)
@@ -253,7 +253,7 @@ int checkboard (void)
        puts ("Board: Rohde & Schwarz 8260 Protocol Board\n");
 
        /* initialise i2c */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        read_RS5C372_time (&timedate);
        printf ("  Time:  %02d:%02d:%02d\n",
@@ -284,7 +284,7 @@ int misc_init_f (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
 #ifdef INIT_LOCAL_BUS_SDRAM
@@ -317,7 +317,7 @@ phys_size_t initdram (int board_type)
                 *
                 * The appropriate BRx/ORx registers have already
                 * been set when we get here (see cpu_init_f). The
-                * SDRAM can be accessed at the address CFG_SDRAM_BASE.
+                * SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
                 */
                memctl->memc_mptpr = 0x2000;
                memctl->memc_mar = 0x0200;
@@ -330,7 +330,7 @@ phys_size_t initdram (int board_type)
                memctl->memc_lsrt = 0x0b;
                memctl->memc_lurt = 0x00;
                ramaddr = (uchar *) PHYS_SDRAM_LOCAL;
-               sdmr = CFG_LSDMR & ~(PSDMR_OP_MSK | PSDMR_RFEN | PSDMR_PBI);
+               sdmr = CONFIG_SYS_LSDMR & ~(PSDMR_OP_MSK | PSDMR_RFEN | PSDMR_PBI);
                memctl->memc_lsdmr = sdmr | PSDMR_OP_PREA;
                *ramaddr = 0xff;
                for (i = 0; i < 8; i++) {
@@ -339,13 +339,13 @@ phys_size_t initdram (int board_type)
                }
                memctl->memc_lsdmr = sdmr | PSDMR_OP_MRW;
                *ramaddr = 0xff;
-               memctl->memc_lsdmr = CFG_LSDMR | PSDMR_OP_NORM;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | PSDMR_OP_NORM;
 #endif
                /* initialise 60x bus ram */
                memctl->memc_psrt = 0x0b;
                memctl->memc_purt = 0x08;
                ramaddr32 = (ulong *) PHYS_SDRAM_60X;
-               sdmr = CFG_PSDMR & ~(PSDMR_OP_MSK | PSDMR_RFEN | PSDMR_PBI);
+               sdmr = CONFIG_SYS_PSDMR & ~(PSDMR_OP_MSK | PSDMR_RFEN | PSDMR_PBI);
                memctl->memc_psdmr = sdmr | PSDMR_OP_PREA;
                ramaddr32[0] = 0x00ff00ff;
                ramaddr32[1] = 0x00ff00ff;
index 2d743594372428453cd8df78981362e7e152b241..2cbd45e043fb9ce81fd137ecd9d2843d0180a589 100644 (file)
@@ -39,9 +39,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index edb775df2ea057ea30a4726bfd396b66d80ea778..4a7f362c5e3ab316b4a5352b28c9df33cec49a5a 100644 (file)
@@ -37,7 +37,7 @@ int Daq64xSampling = 0;
 
 void Daq_BRG_Reset(uint brg)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      volatile uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -53,7 +53,7 @@ void Daq_BRG_Reset(uint brg)
 
 void Daq_BRG_Disable(uint brg)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      volatile uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -68,7 +68,7 @@ void Daq_BRG_Disable(uint brg)
 
 void Daq_BRG_Enable(uint brg)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      volatile uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -82,7 +82,7 @@ void Daq_BRG_Enable(uint brg)
 
 uint Daq_BRG_Get_Div16(uint brg)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -104,7 +104,7 @@ uint Daq_BRG_Get_Div16(uint brg)
 
 void Daq_BRG_Set_Div16(uint brg, uint div16)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -126,7 +126,7 @@ void Daq_BRG_Set_Div16(uint brg, uint div16)
 
 uint Daq_BRG_Get_Count(uint brg)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      uint *brg_ptr;
      uint brg_cnt;
 
@@ -153,7 +153,7 @@ uint Daq_BRG_Get_Count(uint brg)
 
 void Daq_BRG_Set_Count(uint brg, uint brg_cnt)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -183,7 +183,7 @@ void Daq_BRG_Set_Count(uint brg, uint brg_cnt)
 
 uint Daq_BRG_Get_ExtClk(uint brg)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -243,7 +243,7 @@ char* Daq_BRG_Get_ExtClk_Description(uint brg)
 
 void Daq_BRG_Set_ExtClk(uint brg, uint extc)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      uint *brg_ptr;
 
      brg_ptr = (uint *)&immr->im_brgc1;
@@ -259,7 +259,7 @@ void Daq_BRG_Set_ExtClk(uint brg, uint extc)
 
 uint Daq_BRG_Rate(uint brg)
 {
-     volatile immap_t *immr = (immap_t *)CFG_IMMR;
+     volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
      uint *brg_ptr;
      uint brg_cnt;
      uint brg_freq = 0;
@@ -296,7 +296,7 @@ uint Daq_Get_SampleRate(void)
 
 void Daq_Init_Clocks(int sample_rate, int sample_64x)
 {
-    volatile ioport_t *iopa = ioport_addr((immap_t *)CFG_IMMR, 0 /* port A */);
+    volatile ioport_t *iopa = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 0 /* port A */);
     uint mclk_divisor; /* MCLK divisor */
     int  flag;         /* Interrupt state */
 
@@ -378,7 +378,7 @@ void Daq_Stop_Clocks(void)
 
 {
 #ifdef TIGHTEN_UP_BRG_TIMING
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
     register uint mclk_brg;       /* MCLK  BRG value */
     register uint sclk_brg;       /* SCLK  BRG value */
     register uint lrclk_brg;      /* LRCLK BRG value */
@@ -663,7 +663,7 @@ void Daq_Start_Clocks(int sample_rate)
 
 {
 #ifdef TIGHTEN_UP_BRG_TIMING
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
     register uint mclk_brg;       /* MCLK  BRG value */
     register uint sclk_brg;       /* SCLK  BRG value */
@@ -914,7 +914,7 @@ void Daq_Start_Clocks(int sample_rate)
 void Daq_Display_Clocks(void)
 
 {
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
     uint mclk_divisor; /* Detected MCLK divisor */
     uint sclk_divisor; /* Detected SCLK divisor */
 
index 8fecf95900af1252cd80f841911d5bbc11c1ae78..8b30f50ccdca8844a56854267853edefff88fd0b 100644 (file)
 #undef  DEBUG
 
 #ifndef        CONFIG_ENV_ADDR
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #endif
 #ifndef CONFIG_ENV_SIZE
 #define CONFIG_ENV_SIZE        CONFIG_ENV_SECT_SIZE
 #endif
 
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -52,24 +52,24 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       size_b0 = flash_get_size((vu_short *)CFG_FLASH0_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_short *)CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                        size_b0, size_b0<<20);
        }
 
-       size_b1 = flash_get_size((vu_short *)CFG_FLASH1_BASE, &flash_info[1]);
+       size_b1 = flash_get_size((vu_short *)CONFIG_SYS_FLASH1_BASE, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -82,11 +82,11 @@ unsigned long flash_init (void)
 #endif
 
        if (size_b1) {
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
 
@@ -247,7 +247,7 @@ static ulong flash_get_size (vu_short *addr, flash_info_t *info)
        } else {
 #ifdef DEBUG
                printf("Unknown flash type 0x%04X\n", value);
-               info->size = CFG_FLASH_SIZE;
+               info->size = CONFIG_SYS_FLASH_SIZE;
 #else
                info->flash_id = FLASH_UNKNOWN;
                return (0);                     /* => no or unknown flash */
@@ -374,7 +374,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_short*)(info->start[l_sect]);
        while ((addr[0] & 0x0080) != 0x0080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        addr[0] = 0xF0F0;       /* reset bank */
                        __asm__ __volatile__(" sync\n ");
@@ -509,7 +509,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                /* data polling for D7 */
                start = get_timer (0);
                while (*(vu_short *)dest != (ushort)data) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index c00f14ee604a4b318b3df09a111743d82f1c61c3..2513937ed126ee83ab590dce5a4df73372781f62 100644 (file)
@@ -161,16 +161,16 @@ int checkboard(void)
 
 phys_size_t initdram(int board_type)
 {
-    volatile immap_t *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8260_t *memctl = &immap->im_memctl;
     volatile uchar c = 0;
-    volatile uchar *ramaddr = (uchar *)(CFG_SDRAM_BASE + 0x8);
-    uint  psdmr = CFG_PSDMR;
+    volatile uchar *ramaddr = (uchar *)(CONFIG_SYS_SDRAM_BASE + 0x8);
+    uint  psdmr = CONFIG_SYS_PSDMR;
     int   i;
     uint   psrt = 14;                                  /* for no SPD */
     uint   chipselects = 1;                            /* for no SPD */
-    uint   sdram_size = CFG_SDRAM0_SIZE * 1024 * 1024; /* for no SPD */
-    uint   or = CFG_OR2_PRELIM;                                /* for no SPD */
+    uint   sdram_size = CONFIG_SYS_SDRAM0_SIZE * 1024 * 1024;  /* for no SPD */
+    uint   or = CONFIG_SYS_OR2_PRELIM;                         /* for no SPD */
 #ifdef SDRAM_SPD_ADDR
     uint   data_width;
     uint   rows;
@@ -383,10 +383,10 @@ phys_size_t initdram(int board_type)
      *  accessing the SDRAM with a single-byte transaction."
      *
      * The appropriate BRx/ORx registers have already been set when we
-     * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+     * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
      */
 
-    memctl->memc_mptpr = CFG_MPTPR;
+    memctl->memc_mptpr = CONFIG_SYS_MPTPR;
     memctl->memc_psrt  = psrt;
 
     memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
@@ -409,7 +409,7 @@ phys_size_t initdram(int board_type)
     if(chipselects > 1) {
        ramaddr += sdram_size;
 
-       memctl->memc_br3 = CFG_BR3_PRELIM + sdram_size;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM + sdram_size;
        memctl->memc_or3 = or;
 
        memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
@@ -446,8 +446,8 @@ int misc_init_r(void)
     /*
      * Note: iop is used by the I2C macros, and iopa by the ADC/DAC initialization.
      */
-    volatile ioport_t *iopa = ioport_addr((immap_t *)CFG_IMMR, 0 /* port A */);
-    volatile ioport_t *iop  = ioport_addr((immap_t *)CFG_IMMR, I2C_PORT);
+    volatile ioport_t *iopa = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 0 /* port A */);
+    volatile ioport_t *iop  = ioport_addr((immap_t *)CONFIG_SYS_IMMR, I2C_PORT);
 
     int  reg;          /* I2C register value */
     char *ep;          /* Environment pointer */
@@ -854,14 +854,14 @@ int spi_cs_is_valid(unsigned int bus, unsigned int cs)
 
 void spi_cs_activate(struct spi_slave *slave)
 {
-    volatile ioport_t *iopd = ioport_addr((immap_t *)CFG_IMMR, 3 /* port D */);
+    volatile ioport_t *iopd = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 3 /* port D */);
 
     iopd->pdat &= ~cs_mask[slave->cs];
 }
 
 void spi_cs_deactivate(struct spi_slave *slave)
 {
-    volatile ioport_t *iopd = ioport_addr((immap_t *)CFG_IMMR, 3 /* port D */);
+    volatile ioport_t *iopd = ioport_addr((immap_t *)CONFIG_SYS_IMMR, 3 /* port D */);
 
     iopd->pdat |= cs_mask[slave->cs];
 }
index 77fd2c8a219dcc91736fa29fe67dd6f221b529c4..bd2e45ac200a135e3e0f91a92cd037b053f777b7 100644 (file)
@@ -107,12 +107,12 @@ ulong virt_to_phy_smdk6400(ulong addr)
 }
 #endif
 
-#if defined(CONFIG_CMD_NAND) && defined(CFG_NAND_LEGACY)
+#if defined(CONFIG_CMD_NAND) && defined(CONFIG_SYS_NAND_LEGACY)
 #include <linux/mtd/nand.h>
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 void nand_init(void)
 {
-       nand_probe(CFG_NAND_BASE);
+       nand_probe(CONFIG_SYS_NAND_BASE);
        if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN)
                print_size(nand_dev_desc[0].totlen, "\n");
 }
index 762fb738fd3a194cd0bf10d43282172aa197fa05..dd712e3a3a6931eec1b0bab262052bd361b88c11 100644 (file)
@@ -41,9 +41,9 @@
 #endif /* DEBUG */
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips  */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips   */
 
-static unsigned long flash_addr_table[8][CFG_MAX_FLASH_BANKS] = {
+static unsigned long flash_addr_table[8][CONFIG_SYS_MAX_FLASH_BANKS] = {
        {0xfff80000}    /* Boot Flash */
 };
 
@@ -65,7 +65,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data);
 unsigned long flash_init (void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
        unsigned short index = 0;
        int i;
 
@@ -74,7 +74,7 @@ unsigned long flash_init (void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -284,7 +284,7 @@ int wait_for_DQ7(flash_info_t *info, int sect)
        start = get_timer (0);
        last  = start;
        while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return -1;
                }
@@ -502,7 +502,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                while ((dest2[i] & (FLASH_WORD_SIZE) 0x00800080) !=
                       (data2[i] & (FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index 1e3dffb1ee11038f211379f8a6a4a235899af619..9af6b8d881575081a930b763c1014285e0b1067d 100644 (file)
@@ -43,8 +43,8 @@
 #define IIC_NOK_TOUT   6               /* Transfer timeout */
 
 #define IIC_TIMEOUT 1                  /* 1 second */
-#if defined(CFG_I2C_NOPROBES)
-static uchar i2c_no_probes[] = CFG_I2C_NOPROBES;
+#if defined(CONFIG_SYS_I2C_NOPROBES)
+static uchar i2c_no_probes[] = CONFIG_SYS_I2C_NOPROBES;
 #endif
 
 static void _i2c_bus1_reset (void)
@@ -105,7 +105,7 @@ void i2c1_init (int speed, int slaveadd)
        unsigned long freqOPB;
        int val, divisor;
 
-#ifdef CFG_I2C_INIT_BOARD
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
        /* call board specific i2c bus reset routine before accessing the   */
        /* environment, which might be in a chip on that bus. For details   */
        /* about this problem see doc/I2C_Edge_Conditions.                  */
@@ -384,7 +384,7 @@ int i2c_read1 (uchar chip, uint addr, int alen, uchar * buffer, int len)
        }
 
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones
         * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
@@ -397,7 +397,7 @@ int i2c_read1 (uchar chip, uint addr, int alen, uchar * buffer, int len)
         * hidden in the chip address.
         */
        if( alen > 0 )
-               chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+               chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
        if( (ret = i2c_transfer1( 1, chip<<1, &xaddr[4-alen], alen, buffer, len )) != 0) {
                printf( "I2c read: failed %d\n", ret);
@@ -422,7 +422,7 @@ int i2c_write1 (uchar chip, uint addr, int alen, uchar * buffer, int len)
                xaddr[3] = addr & 0xFF;
        }
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones
         * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
@@ -435,7 +435,7 @@ int i2c_write1 (uchar chip, uint addr, int alen, uchar * buffer, int len)
         * hidden in the chip address.
         */
        if( alen > 0 )
-               chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+               chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
 
        return (i2c_transfer1( 0, chip<<1, &xaddr[4-alen], alen, buffer, len ) != 0);
@@ -465,13 +465,13 @@ void i2c_reg_write1(uchar i2c_addr, uchar reg, uchar val)
 int do_i2c1_probe(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        int j;
-#if defined(CFG_I2C_NOPROBES)
+#if defined(CONFIG_SYS_I2C_NOPROBES)
        int k, skip;
 #endif
 
        puts ("Valid chip addresses:");
        for(j = 0; j < 128; j++) {
-#if defined(CFG_I2C_NOPROBES)
+#if defined(CONFIG_SYS_I2C_NOPROBES)
                skip = 0;
                for (k = 0; k < sizeof(i2c_no_probes); k++){
                        if (j == i2c_no_probes[k]){
@@ -488,7 +488,7 @@ int do_i2c1_probe(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
        putc ('\n');
 
-#if defined(CFG_I2C_NOPROBES)
+#if defined(CONFIG_SYS_I2C_NOPROBES)
        puts ("Excluded chip addresses:");
        for( k = 0; k < sizeof(i2c_no_probes); k++ )
                printf(" %02X", i2c_no_probes[k] );
index 10000f5ba9b0bf55058cc249f7198213bec2817d..328abd64b8975a8b42653ea94f75e5b97b2f9628 100644 (file)
@@ -32,7 +32,7 @@
 
 #ifdef CONFIG_HARD_I2C
 
-#define I2C_BUS1_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x00000500)
+#define I2C_BUS1_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x00000500)
 #define           I2C_REGISTERS_BUS1_BASE_ADDRESS I2C_BUS1_BASE_ADDR
 #define    IIC_MDBUF1  (I2C_REGISTERS_BUS1_BASE_ADDRESS+IICMDBUF)
 #define    IIC_SDBUF1  (I2C_REGISTERS_BUS1_BASE_ADDRESS+IICSDBUF)
index 51b1c751408d2fb1e27696f0c765fc1d3ef222d3..f6ea16f0a56ba0b711294a142ec5cf690dd2c1c8 100644 (file)
@@ -43,7 +43,7 @@ int sbcommon_get_master(void)
 {
        ppc440_gpio_regs_t *gpio_regs;
 
-       gpio_regs = (ppc440_gpio_regs_t *)CFG_GPIO_BASE;
+       gpio_regs = (ppc440_gpio_regs_t *)CONFIG_SYS_GPIO_BASE;
 
        if (gpio_regs->in & SBCOMMON_GPIO_PRI_N) {
                return 0;
@@ -63,7 +63,7 @@ int sbcommon_secondary_present(void)
 {
        ppc440_gpio_regs_t *gpio_regs;
 
-       gpio_regs = (ppc440_gpio_regs_t *)CFG_GPIO_BASE;
+       gpio_regs = (ppc440_gpio_regs_t *)CONFIG_SYS_GPIO_BASE;
 
        if (gpio_regs->in & SBCOMMON_GPIO_SEC_PRES)
                return 0;
@@ -84,7 +84,7 @@ unsigned short sbcommon_get_serial_number(void)
 
        /* Get the board serial number from eeprom */
        /* Initialize I2C */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /* Read 256 bytes in EEPROM */
        i2c_read (0x50, 0, 1, buff, 0x100);
@@ -218,11 +218,11 @@ phys_size_t initdram (int board_type)
  *
  *
  ************************************************************************/
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("Testing SDRAM: ");
@@ -340,7 +340,7 @@ int pci_pre_init(struct pci_controller * hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*--------------------------------------------------------------------------+
@@ -355,7 +355,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
         * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
 
@@ -364,12 +364,12 @@ void pci_target_init(struct pci_controller * hose )
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY );
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 
 /*************************************************************************
@@ -405,7 +405,7 @@ void board_get_enetaddr (uchar * enet)
        if (0 == macaddr_idx) {
 
                /* Initialize I2C */
-               i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+               i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
                /* Read 256 bytes in EEPROM */
                i2c_read (0x50, 0, 1, buff, 0x100);
index 65c1e48658bf654fb00223387d2ecd35646b364f..f2f94c5f6c101ebd6dc0899dede34f209973fd06 100644 (file)
@@ -39,5 +39,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index b1d47a4c75a665e55a81a4e496e6408e58f64f2f..3198dfdfa148acd4fec24ae50ba7e19e2c74dad8 100644 (file)
 tlbtab:
        tlbtab_start
        tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CFG_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
        tlbtab_end
index 72ce976350e47b23e8fe0b2b9f236a762a608e53..7909d34058cecb61aae14d930b84fb0739a64704 100644 (file)
@@ -65,7 +65,7 @@ int board_early_init_f (void)
        mtsdr(sdr_pfc0, 0x00103E00);
 
        /* Setup access for LEDs, and system topology info */
-       gpio_regs = (ppc440_gpio_regs_t *)CFG_GPIO_BASE;
+       gpio_regs = (ppc440_gpio_regs_t *)CONFIG_SYS_GPIO_BASE;
        gpio_regs->open_drain = SBCOMMON_GPIO_SYS_LEDS;
        gpio_regs->tri_state  = SBCOMMON_GPIO_DBGLEDS;
 
@@ -93,7 +93,7 @@ int board_early_init_f (void)
              EBC_BXAP_RE_DISABLED  | EBC_BXAP_BEM_WRITEONLY |
              EBC_BXAP_PEN_DISABLED);
 
-       mtebc(pb0cr, EBC_BXCR_BAS_ENCODE(CFG_FLASH_BASE) |
+       mtebc(pb0cr, EBC_BXCR_BAS_ENCODE(CONFIG_SYS_FLASH_BASE) |
              EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_8BIT);
        /*--------------------------------------------------------------------+
          | 8KB NVRAM/RTC. Initialize bank 1 with default values.
@@ -259,8 +259,8 @@ int checkboard (void)
        KAREF_FPGA_REGS_ST *karef_ps;
        OFEM_FPGA_REGS_ST *ofem_ps;
 
-       karef_ps = (KAREF_FPGA_REGS_ST *)CFG_KAREF_FPGA_BASE;
-       ofem_ps = (OFEM_FPGA_REGS_ST *)CFG_OFEM_FPGA_BASE;
+       karef_ps = (KAREF_FPGA_REGS_ST *)CONFIG_SYS_KAREF_FPGA_BASE;
+       ofem_ps = (OFEM_FPGA_REGS_ST *)CONFIG_SYS_OFEM_FPGA_BASE;
 
        scan_id = (unsigned char)((karef_ps->revision_ul &
                                   SAND_HAL_KA_SC_SCAN_REVISION_IDENTIFICATION_MASK)
@@ -319,7 +319,7 @@ int checkboard (void)
 
        /* Fix the ack in the bme 32 */
        udelay(5000);
-       out32(CFG_BME32_BASE + 0x0000000C, 0x00000001);
+       out32(CONFIG_SYS_BME32_BASE + 0x0000000C, 0x00000001);
        asm("eieio");
 
 
@@ -335,7 +335,7 @@ int misc_init_f (void)
 {
        /* Turn on i2c bus 1 */
        puts ("I2C1:  ");
-       i2c1_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c1_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        puts ("ready\n");
 
        /* Turn on fans 3 & 4 */
@@ -397,8 +397,8 @@ int misc_init_r (void)
        }
 
        if( getenv("fakeled")) {
-               karef_ps = (KAREF_FPGA_REGS_ST *)CFG_KAREF_FPGA_BASE;
-               ofem_ps = (OFEM_FPGA_REGS_ST *)CFG_OFEM_FPGA_BASE;
+               karef_ps = (KAREF_FPGA_REGS_ST *)CONFIG_SYS_KAREF_FPGA_BASE;
+               ofem_ps = (OFEM_FPGA_REGS_ST *)CONFIG_SYS_OFEM_FPGA_BASE;
                ofem_ps->control_ul &= ~SAND_HAL_KA_SC_SCAN_CNTL_FAULT_LED_MASK;
                karef_ps->control_ul &= ~SAND_HAL_KA_OF_OFEM_CNTL_FAULT_LED_MASK;
                setenv("bootdelay", "-1");
@@ -417,7 +417,7 @@ void ide_set_reset(int on)
 {
        KAREF_FPGA_REGS_ST *karef_ps;
        /* TODO: ide reset */
-       karef_ps = (KAREF_FPGA_REGS_ST *)CFG_KAREF_FPGA_BASE;
+       karef_ps = (KAREF_FPGA_REGS_ST *)CONFIG_SYS_KAREF_FPGA_BASE;
 
        if (on) {
                karef_ps->reset_ul &= ~SAND_HAL_KA_SC_SCAN_RESET_CF_RESET_N_MASK;
@@ -440,7 +440,7 @@ void fpga_init(void)
        /* Ensure we have power all around */
        udelay(500);
 
-       karef_ps = (KAREF_FPGA_REGS_ST *)CFG_KAREF_FPGA_BASE;
+       karef_ps = (KAREF_FPGA_REGS_ST *)CONFIG_SYS_KAREF_FPGA_BASE;
        tmp =
                SAND_HAL_KA_SC_SCAN_RESET_CF_RESET_N_MASK |
                SAND_HAL_KA_SC_SCAN_RESET_BME_RESET_N_MASK |
@@ -470,7 +470,7 @@ void fpga_init(void)
                        SAND_HAL_KA_OF_OFEM_RESET_LOCH0_RESET_N_MASK |
                        SAND_HAL_KA_OF_OFEM_RESET_MAC0_RESET_N_MASK;
 
-               ofem_ps = (OFEM_FPGA_REGS_ST *)CFG_OFEM_FPGA_BASE;
+               ofem_ps = (OFEM_FPGA_REGS_ST *)CONFIG_SYS_OFEM_FPGA_BASE;
                ofem_ps->reset_ul = tmp;
 
                ofem_ps->control_ul |= 1 < SAND_HAL_KA_OF_OFEM_CNTL_FAULT_LED_SHIFT;
index 91aee2fc7de9b17ade717d6f534597b53020a690..565e826b80c671334d7d6afeb53eb34e26e28f9c 100644 (file)
@@ -34,5 +34,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index e398f0008d70497ae81385e52926e92e8765600e..ccdec46ee54f85bd1aa7d7f3b5d8b42bb59cf0f9 100644 (file)
 tlbtab:
        tlbtab_start
        tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CFG_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x20000000, SZ_256M, 0x20000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x30000000, SZ_256M, 0x30000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
        tlbtab_end
index c38850d6c740078a9ed37a8ab0712573bc2e9af6..c3c44593a80c2f39b2075666313b923fdbce2093 100644 (file)
@@ -55,7 +55,7 @@ int board_early_init_f (void)
        mtsdr(sdr_pfc0, 0x00103E00);
 
        /* Setup access for LEDs, and system topology info */
-       gpio_regs = (ppc440_gpio_regs_t *)CFG_GPIO_BASE;
+       gpio_regs = (ppc440_gpio_regs_t *)CONFIG_SYS_GPIO_BASE;
        gpio_regs->open_drain = SBCOMMON_GPIO_SYS_LEDS;
        gpio_regs->tri_state  = SBCOMMON_GPIO_DBGLEDS;
 
@@ -83,7 +83,7 @@ int board_early_init_f (void)
              EBC_BXAP_RE_DISABLED  | EBC_BXAP_BEM_WRITEONLY |
              EBC_BXAP_PEN_DISABLED);
 
-       mtebc(pb0cr, EBC_BXCR_BAS_ENCODE(CFG_FLASH_BASE) |
+       mtebc(pb0cr, EBC_BXCR_BAS_ENCODE(CONFIG_SYS_FLASH_BASE) |
              EBC_BXCR_BS_1MB | EBC_BXCR_BU_RW | EBC_BXCR_BW_8BIT);
        /*--------------------------------------------------------------------+
          | 8KB NVRAM/RTC. Initialize bank 1 with default values.
@@ -246,7 +246,7 @@ int checkboard (void)
        unsigned char opto_rev, opto_id;
        OPTO_FPGA_REGS_ST *opto_ps;
 
-       opto_ps = (OPTO_FPGA_REGS_ST *)CFG_FPGA_BASE;
+       opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
 
        opto_rev = (unsigned char)((opto_ps->revision_ul &
                                    SAND_HAL_XC_XCVR_CNTL_REVISION_REVISION_MASK)
@@ -286,7 +286,7 @@ int checkboard (void)
 
        /* Fix the ack in the bme 32 */
        udelay(5000);
-       out32(CFG_BME32_BASE + 0x0000000C, 0x00000001);
+       out32(CONFIG_SYS_BME32_BASE + 0x0000000C, 0x00000001);
        asm("eieio");
 
 
@@ -302,7 +302,7 @@ int misc_init_f (void)
 {
        /* Turn on i2c bus 1 */
        puts ("I2C1:  ");
-       i2c1_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c1_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        puts ("ready\n");
 
        /* Turn on fans */
@@ -323,7 +323,7 @@ int misc_init_r (void)
        unsigned char opto_rev;
        OPTO_FPGA_REGS_ST *opto_ps;
 
-       opto_ps = (OPTO_FPGA_REGS_ST *)CFG_FPGA_BASE;
+       opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
 
        if(NULL != getenv("secondserial")) {
            puts("secondserial is set, switching to second serial port\n");
@@ -387,7 +387,7 @@ int misc_init_r (void)
 void ide_set_reset(int on)
 {
        OPTO_FPGA_REGS_ST *opto_ps;
-       opto_ps = (OPTO_FPGA_REGS_ST *)CFG_FPGA_BASE;
+       opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
 
        if (on) {               /* assert RESET */
            opto_ps->reset_ul &= ~SAND_HAL_XC_XCVR_CNTL_RESET_CF_RESET_N_MASK;
@@ -412,7 +412,7 @@ void fpga_init(void)
        /*
         * Take appropriate hw bits out of reset
         */
-       opto_ps = (OPTO_FPGA_REGS_ST *)CFG_FPGA_BASE;
+       opto_ps = (OPTO_FPGA_REGS_ST *)CONFIG_SYS_FPGA_BASE;
 
        tmp =
            SAND_HAL_XC_XCVR_CNTL_RESET_MAC1_RESET_N_MASK |
index 07dafb716f915b2fdb37401973f67223fb000004..531dcdf4ae22e5dd00c2c6f7718df775394927ea 100644 (file)
 
 #if defined(USE_DINK32)
   /* We are running from RAM, so do not clear the MCCR1_MEMGO bit! */
-  #define MCCR1VAL ((CFG_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CFG_ROMFAL << MCCR1_ROMFAL_SHIFT) | MCCR1_MEMGO)
+  #define MCCR1VAL ((CONFIG_SYS_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CONFIG_SYS_ROMFAL << MCCR1_ROMFAL_SHIFT) | MCCR1_MEMGO)
 #else
-  #define MCCR1VAL (CFG_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CFG_ROMFAL << MCCR1_ROMFAL_SHIFT)
+  #define MCCR1VAL (CONFIG_SYS_ROMNAL << MCCR1_ROMNAL_SHIFT) | (CONFIG_SYS_ROMFAL << MCCR1_ROMFAL_SHIFT)
 #endif
 
        .text
 
        /* Values to program into memory controller registers */
 tbl:   .long   MCCR1, MCCR1VAL
-       .long   MCCR2, CFG_REFINT << MCCR2_REFINT_SHIFT
+       .long   MCCR2, CONFIG_SYS_REFINT << MCCR2_REFINT_SHIFT
        .long   MCCR3
-       .long   (((CFG_BSTOPRE & 0x000000f0) >> 4) << MCCR3_BSTOPRE2TO5_SHIFT) | \
-               (CFG_REFREC << MCCR3_REFREC_SHIFT) | \
-               (CFG_RDLAT  << MCCR3_RDLAT_SHIFT)
+       .long   (((CONFIG_SYS_BSTOPRE & 0x000000f0) >> 4) << MCCR3_BSTOPRE2TO5_SHIFT) | \
+               (CONFIG_SYS_REFREC << MCCR3_REFREC_SHIFT) | \
+               (CONFIG_SYS_RDLAT  << MCCR3_RDLAT_SHIFT)
        .long   MCCR4
-       .long   (CFG_PRETOACT << MCCR4_PRETOACT_SHIFT) | (CFG_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) | \
-               (CFG_REGISTERD_TYPE_BUFFER << 20) | \
-               (((CFG_BSTOPRE & 0x00000300) >> 8) << MCCR4_BSTOPRE0TO1_SHIFT ) | \
-               ((CFG_SDMODE_CAS_LAT << 4) | (CFG_SDMODE_WRAP << 3) | \
-               (CFG_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) | \
-               (CFG_ACTTORW << MCCR4_ACTTORW_SHIFT) | \
-               ((CFG_BSTOPRE & 0x0000000f) << MCCR4_BSTOPRE6TO9_SHIFT )
+       .long   (CONFIG_SYS_PRETOACT << MCCR4_PRETOACT_SHIFT) | (CONFIG_SYS_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) | \
+               (CONFIG_SYS_REGISTERD_TYPE_BUFFER << 20) | \
+               (((CONFIG_SYS_BSTOPRE & 0x00000300) >> 8) << MCCR4_BSTOPRE0TO1_SHIFT ) | \
+               ((CONFIG_SYS_SDMODE_CAS_LAT << 4) | (CONFIG_SYS_SDMODE_WRAP << 3) | \
+               (CONFIG_SYS_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) | \
+               (CONFIG_SYS_ACTTORW << MCCR4_ACTTORW_SHIFT) | \
+               ((CONFIG_SYS_BSTOPRE & 0x0000000f) << MCCR4_BSTOPRE6TO9_SHIFT )
        .long   MSAR1
-       .long   (((CFG_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMSAR1
-       .long   (((CFG_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MSAR2
-       .long   (((CFG_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMSAR2
-       .long   (((CFG_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MEAR1
-       .long   (((CFG_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMEAR1
-       .long   (((CFG_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   MEAR2
-       .long   (((CFG_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24)
        .long   EMEAR2
-       .long   (((CFG_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
-               (((CFG_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
-               (((CFG_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
-               (((CFG_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
+       .long   (((CONFIG_SYS_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  0) | \
+               (((CONFIG_SYS_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) <<  8) | \
+               (((CONFIG_SYS_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) | \
+               (((CONFIG_SYS_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24)
        .long   0
 
 
@@ -123,7 +123,7 @@ loop:       lwz     r1, 4(r5)
        /* set bank enable bits */
        lis     r0, MBER@h
        ori     r0, 0, MBER@l
-       li      r1, CFG_BANK_ENABLE
+       li      r1, CONFIG_SYS_BANK_ENABLE
        stwbrx  r0, 0, r3
        eieio
        stb     r1, 0(r4)
@@ -145,8 +145,8 @@ delay:      bdnz    delay
        eieio
 
        /* set up stack pointer */
-       lis     r1, CFG_INIT_SP_OFFSET@h
-       ori     r1, r1, CFG_INIT_SP_OFFSET@l
+       lis     r1, CONFIG_SYS_INIT_SP_OFFSET@h
+       ori     r1, r1, CONFIG_SYS_INIT_SP_OFFSET@l
 
        mtlr    r10
        blr
index 0f3eca2cde0678a1c084b0803edfa7cc58fa6a7a..e366cc699293fc5848fecd81f0cf1ea89cf57e8c 100644 (file)
 #define ROM_CS0_START  0xFF800000
 #define ROM_CS1_START  0xFF000000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR  (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR  (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE  CONFIG_ENV_SECT_SIZE
@@ -140,10 +140,10 @@ flash_init(void)
 {
   unsigned long i;
   unsigned char j;
-  static const ulong flash_banks[] = CFG_FLASH_BANKS;
+  static const ulong flash_banks[] = CONFIG_SYS_FLASH_BANKS;
 
   /* Init: no FLASHes known */
-  for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+  for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
   {
     flash_info_t * const pflinfo = &flash_info[i];
     pflinfo->flash_id = FLASH_UNKNOWN;
@@ -154,9 +154,9 @@ flash_init(void)
   /* Enable writes to Sandpoint flash */
   {
     register unsigned char temp;
-    CONFIG_READ_BYTE(CFG_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR, temp);
+    CONFIG_READ_BYTE(CONFIG_SYS_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR, temp);
     temp &= ~0x20; /* clear BIOSWP bit */
-    CONFIG_WRITE_BYTE(CFG_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR, temp);
+    CONFIG_WRITE_BYTE(CONFIG_SYS_WINBOND_ISA_CFG_ADDR + WINBOND_CSCR, temp);
   }
 
   for(i = 0; i < sizeof flash_banks / sizeof flash_banks[0]; i++)
@@ -223,10 +223,10 @@ flash_init(void)
     }
     /* Protect monitor and environment sectors
      */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
     flash_protect(FLAG_PROTECT_SET,
-               CFG_MONITOR_BASE,
-               CFG_MONITOR_BASE + monitor_flash_len - 1,
+               CONFIG_SYS_MONITOR_BASE,
+               CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                &flash_info[0]);
 #endif
 
@@ -612,7 +612,7 @@ flash_erase(flash_info_t *info, int s_first, int s_last)
     addr = (FLASH_WORD_SIZE *)(info->start[0] + (
                        (info->start[l_sect] - info->start[0]) << sh8b));
     while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -751,7 +751,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
            start = get_timer (0);
            while ((dest2[i << sh8b] & (FLASH_WORD_SIZE)0x00800080) !=
                   (data2[i] & (FLASH_WORD_SIZE)0x00800080)) {
-             if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+             if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                return (1);
              }
            }
index 832baa263b6ed5df0d45af1a3c0860598691ca91..bb01d73bdecb4161ec312b6679aff6f87da97b2f 100644 (file)
@@ -58,7 +58,7 @@ phys_size_t initdram (int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
index fa3996ddcf55bbd7a40d1e75626829f8b2c042d4..abb09355878617a5e542c75745390e11da3da188 100644 (file)
@@ -29,7 +29,7 @@ ulong myflush (void);
 #define FLASH_BANK_SIZE        PHYS_FLASH_SIZE
 #define MAIN_SECT_SIZE  0x10000        /* 64 KB */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 #define CMD_READ_ARRAY         0x000000F0
 #define CMD_UNLOCK1            0x000000AA
@@ -39,8 +39,8 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 #define CMD_PROGRAM            0x000000A0
 #define CMD_UNLOCK_BYPASS      0x00000020
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00000555 << 1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x000002AA << 1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555 << 1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA << 1)))
 
 #define BIT_ERASE_DONE         0x00000080
 #define BIT_RDY_MASK           0x00000080
@@ -59,7 +59,7 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
@@ -73,8 +73,8 @@ ulong flash_init (void)
 #error "Unknown flash configured"
 #endif
                        flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -109,8 +109,8 @@ ulong flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -234,7 +234,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                                /* check timeout */
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip = TMO;
                                        break;
@@ -330,7 +330,7 @@ static int write_hword (flash_info_t * info, ulong dest, ushort data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        chip = ERR | TMO;
                        break;
                }
index d21d885faef9339c7598e109a748394ce499b170..e5863d6cedf1f94531c81279da21c16a78f3e235 100644 (file)
@@ -103,7 +103,7 @@ typedef union {
 
 #define NUM_ERASE_REGIONS 4
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 
 /*-----------------------------------------------------------------------
@@ -120,7 +120,7 @@ static int flash_detect_cfi(flash_info_t * info);
 static ulong flash_get_size (ulong base, int banknum);
 static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword);
 static int flash_full_status_check(flash_info_t * info, ulong sector, ulong tout, char * prompt);
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp, int len);
 #endif
 /*-----------------------------------------------------------------------
@@ -180,14 +180,14 @@ unsigned long flash_init (void)
         *
         */
 
-       address = CFG_FLASH_BASE;
+       address = CONFIG_SYS_FLASH_BASE;
        size = 0;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                size += flash_info[i].size = flash_get_size(address, i);
-               address += CFG_FLASH_INCREMENT;
+               address += CONFIG_SYS_FLASH_INCREMENT;
                if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                        printf ("## Unknown FLASH on Bank %d - Size = 0x%08lx = %ld MB\n",i,
                                flash_info[0].size, flash_info[i].size<<20);
@@ -196,14 +196,14 @@ unsigned long flash_init (void)
 
 #if 0 /* test-only */
        /* Monitor protection ON by default */
-#if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
-       for(i=0; flash_info[0].start[i] < CFG_MONITOR_BASE+CFG_MONITOR_LEN-1; i++)
+#if (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)
+       for(i=0; flash_info[0].start[i] < CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1; i++)
                (void)flash_real_protect(&flash_info[0], i, 1);
 #endif
 #else
        /* monitor protection ON by default */
        flash_protect (FLAG_PROTECT_SET,
-                      - CFG_MONITOR_LEN,
+                      - CONFIG_SYS_MONITOR_LEN,
                       - 1, &flash_info[1]);
 #endif
 
@@ -277,7 +277,7 @@ void flash_print_info  (flash_info_t *info)
 
        printf ("  Sector Start Addresses:");
        for (i=0; i<info->sector_count; ++i) {
-#ifdef CFG_FLASH_EMPTY_INFO
+#ifdef CONFIG_SYS_FLASH_EMPTY_INFO
                int k;
                int size;
                int erased;
@@ -357,7 +357,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                wp = cp;
        }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        while(cnt >= info->portwidth) {
                i = info->buffer_size > cnt? cnt: info->buffer_size;
                if((rc = flash_write_cfibuffer(info, wp, src,i)) != ERR_OK)
@@ -378,7 +378,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
                wp += info->portwidth;
                cnt -= info->portwidth;
        }
-#endif /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
        if (cnt == 0) {
                return (0);
        }
@@ -720,7 +720,7 @@ static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t cword)
        return flash_full_status_check(info, 0, info->write_tout, "write");
 }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /* loop through the sectors from the highest address
  * when the passed address is greater or equal to the sector address
@@ -790,4 +790,4 @@ static int flash_write_cfibuffer(flash_info_t * info, ulong dest, uchar * cp, in
        flash_write_cmd(info, sector, 0, FLASH_CMD_CLEAR_STATUS);
        return retcode;
 }
-#endif /* CFG_USE_FLASH_BUFFER_WRITE */
+#endif /* CONFIG_SYS_USE_FLASH_BUFFER_WRITE */
index dec615683e5c9eb99ea284956f264570d07fdb39..a095753a41f6bc7a847d530c76af58783c435801 100644 (file)
 #include <mpc824x.h>
 #include <asm/processor.h>
 
-#if CFG_MAX_FLASH_BANKS != 1
-#error "CFG_MAX_FLASH_BANKS must be 1"
+#if CONFIG_SYS_MAX_FLASH_BANKS != 1
+#error "CONFIG_SYS_MAX_FLASH_BANKS must be 1"
 #endif
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -399,7 +399,7 @@ int wait_for_DQ7 (flash_info_t * info, int sect)
        last = start;
        while ((addr[0] & (FLASH_WORD_SIZE) 0x00800080) !=
               (FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return -1;
                }
@@ -628,7 +628,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                while ((dest2[i] & (FLASH_WORD_SIZE) 0x00800080) !=
                       (data2[i] & (FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index 075e3777ff438364d70cf027fa7500ac0ccc8bb0..01abe26a42147f48ac1bcf84f704866cef3247c8 100644 (file)
@@ -53,7 +53,7 @@ phys_size_t initdram(int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
@@ -97,9 +97,9 @@ void pci_init_board(void)
 /* ------------------------------------------------------------------------- */
 int misc_init_r (void)
 {
-#ifdef CFG_LED_BASE
-       *((unsigned char *) (CFG_LED_BASE)) = 0xFF;
-#endif /* CFG_LED_BASE */
+#ifdef CONFIG_SYS_LED_BASE
+       *((unsigned char *) (CONFIG_SYS_LED_BASE)) = 0xFF;
+#endif /* CONFIG_SYS_LED_BASE */
 
        return (0);
 }
index d3b1f310d7b7944ff63e536ba01e1990d3877bfb..645c67f43094187a9b9398c02c202e3c37d3950b 100644 (file)
@@ -31,7 +31,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -49,21 +49,21 @@ unsigned long flash_init (void)
     int i;
 
     /* Init: no FLASHes known */
-    for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+    for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
 
     /* for now, only support the 4 MB Flash SIMM */
-    size = flash_get_size((vu_long *)CFG_FLASH0_BASE, &flash_info[0]);
+    size = flash_get_size((vu_long *)CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
 
     /*
      * protect monitor and environment sectors
      */
 
-#if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_MONITOR_BASE,
-                 CFG_MONITOR_BASE+monitor_flash_len-1,
+                 CONFIG_SYS_MONITOR_BASE,
+                 CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                  &flash_info[0]);
 #endif
 
@@ -77,7 +77,7 @@ unsigned long flash_init (void)
                  &flash_info[0]);
 #endif
 
-    return /*size*/ (CFG_FLASH0_SIZE * 1024 * 1024);
+    return /*size*/ (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024);
 }
 
 /*-----------------------------------------------------------------------
@@ -258,7 +258,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
     last  = start;
     addr = (vu_long*)(info->start[l_sect]);
     while ((addr[0] & 0x80808080) != 0x80808080) {
-       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
            printf ("Timeout\n");
            return 1;
        }
@@ -381,7 +381,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
     /* data polling for D7 */
     start = get_timer (0);
     while ((*((vu_long *)dest) & 0x80808080) != (data & 0x80808080)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            return (1);
        }
     }
index 5781f6281b78dfbe1e7454247b3291ad3cdb2c3d..f5f23be2799d0d8e20b376be48b0310ae4048bb0 100644 (file)
@@ -210,10 +210,10 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
-       volatile uchar c = 0, *ramaddr = (uchar *) (CFG_SDRAM_BASE + 0x8);
-       ulong psdmr = CFG_PSDMR;
+       volatile uchar c = 0, *ramaddr = (uchar *) (CONFIG_SYS_SDRAM_BASE + 0x8);
+       ulong psdmr = CONFIG_SYS_PSDMR;
        int i;
 
        /*
@@ -233,11 +233,11 @@ phys_size_t initdram (int board_type)
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_psdmr = psdmr | PSDMR_OP_PREA;
        *ramaddr = c;
@@ -253,15 +253,15 @@ phys_size_t initdram (int board_type)
        *ramaddr = c;
 
        /* return total ram size */
-       return (CFG_SDRAM0_SIZE * 1024 * 1024);
+       return (CONFIG_SYS_SDRAM0_SIZE * 1024 * 1024);
 }
 
 #ifdef CONFIG_MISC_INIT_R
 /* ------------------------------------------------------------------------- */
 int misc_init_r (void)
 {
-#ifdef CFG_LED_BASE
-       uchar ds = *(unsigned char *) (CFG_LED_BASE + 1);
+#ifdef CONFIG_SYS_LED_BASE
+       uchar ds = *(unsigned char *) (CONFIG_SYS_LED_BASE + 1);
        uchar ss;
        uchar tmp[64];
        int res;
@@ -280,10 +280,10 @@ int misc_init_r (void)
                        tmp[17] = '\0';
                        setenv ("ethaddr", tmp);
                        /* set the led to show the address */
-                       *((unsigned char *) (CFG_LED_BASE + 1)) = ds;
+                       *((unsigned char *) (CONFIG_SYS_LED_BASE + 1)) = ds;
                }
        }
-#endif /* CFG_LED_BASE */
+#endif /* CONFIG_SYS_LED_BASE */
        return (0);
 }
 #endif /* CONFIG_MISC_INIT_R */
index 527f7e4341269396e0546aee9dbc550ecbbf2c6f..9022c55d576a73c259d8d2d1366f19c288b4a0e3 100644 (file)
@@ -40,8 +40,8 @@ DECLARE_GLOBAL_DATA_PTR;
 #ifdef CONFIG_PCI
 
 /* System RAM mapped to PCI space */
-#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CONFIG_SYS_SDRAM_BASE
 
 #ifndef CONFIG_PCI_PNP
 static struct pci_config_table pci_mpc8349emds_config_table[] = {
@@ -90,7 +90,7 @@ pci_init_board(void)
        u32 dev;
        struct  pci_controller * hose;
 
-       immr = (immap_t *)CFG_IMMR;
+       immr = (immap_t *)CONFIG_SYS_IMMR;
        clk = (clk83xx_t *)&immr->clk;
        pci_law = immr->sysconf.pcilaw;
        pci_pot = immr->ios.pot;
@@ -132,10 +132,10 @@ pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_1G;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_4M;
 
        /*
@@ -143,18 +143,18 @@ pci_init_board(void)
         */
 
        /* PCI1 mem space - prefetch */
-       pci_pot[0].potar = (CFG_PCI1_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[0].pobar = (CFG_PCI1_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[0].potar = (CONFIG_SYS_PCI1_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[0].pobar = (CONFIG_SYS_PCI1_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[0].pocmr = POCMR_EN | POCMR_PREFETCH_EN | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /* PCI1 IO space */
-       pci_pot[1].potar = (CFG_PCI1_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[1].pobar = (CFG_PCI1_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[1].potar = (CONFIG_SYS_PCI1_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[1].pobar = (CONFIG_SYS_PCI1_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[1].pocmr = POCMR_EN | POCMR_IO | (POCMR_CM_1M & POCMR_CM_MASK);
 
        /* PCI1 mmio - non-prefetch mem space */
-       pci_pot[2].potar = (CFG_PCI1_MMIO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[2].pobar = (CFG_PCI1_MMIO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[2].potar = (CONFIG_SYS_PCI1_MMIO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[2].pobar = (CONFIG_SYS_PCI1_MMIO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[2].pocmr = POCMR_EN | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /*
@@ -173,23 +173,23 @@ pci_init_board(void)
 
        /* PCI memory prefetch space */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI1_MEM_BASE,
-                      CFG_PCI1_MEM_PHYS,
-                      CFG_PCI1_MEM_SIZE,
+                      CONFIG_SYS_PCI1_MEM_BASE,
+                      CONFIG_SYS_PCI1_MEM_PHYS,
+                      CONFIG_SYS_PCI1_MEM_SIZE,
                       PCI_REGION_MEM|PCI_REGION_PREFETCH);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI1_MMIO_BASE,
-                      CFG_PCI1_MMIO_PHYS,
-                      CFG_PCI1_MMIO_SIZE,
+                      CONFIG_SYS_PCI1_MMIO_BASE,
+                      CONFIG_SYS_PCI1_MMIO_PHYS,
+                      CONFIG_SYS_PCI1_MMIO_SIZE,
                       PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose->regions + 2,
-                      CFG_PCI1_IO_BASE,
-                      CFG_PCI1_IO_PHYS,
-                      CFG_PCI1_IO_SIZE,
+                      CONFIG_SYS_PCI1_IO_BASE,
+                      CONFIG_SYS_PCI1_IO_PHYS,
+                      CONFIG_SYS_PCI1_IO_SIZE,
                       PCI_REGION_IO);
 
        /* System memory space */
@@ -202,8 +202,8 @@ pci_init_board(void)
        hose->region_count = 4;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR+0x8300),
-                          (CFG_IMMR+0x8304));
+                          (CONFIG_SYS_IMMR+0x8300),
+                          (CONFIG_SYS_IMMR+0x8304));
 
        pci_register_hose(hose);
 
@@ -239,18 +239,18 @@ pci_init_board(void)
         */
 
        /* PCI2 mem space - prefetch */
-       pci_pot[3].potar = (CFG_PCI2_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[3].pobar = (CFG_PCI2_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[3].potar = (CONFIG_SYS_PCI2_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[3].pobar = (CONFIG_SYS_PCI2_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[3].pocmr = POCMR_EN | POCMR_PCI2 | POCMR_PREFETCH_EN | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /* PCI2 IO space */
-       pci_pot[4].potar = (CFG_PCI2_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[4].pobar = (CFG_PCI2_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[4].potar = (CONFIG_SYS_PCI2_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[4].pobar = (CONFIG_SYS_PCI2_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[4].pocmr = POCMR_EN | POCMR_PCI2 | POCMR_IO | (POCMR_CM_1M & POCMR_CM_MASK);
 
        /* PCI2 mmio - non-prefetch mem space */
-       pci_pot[5].potar = (CFG_PCI2_MMIO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[5].pobar = (CFG_PCI2_MMIO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[5].potar = (CONFIG_SYS_PCI2_MMIO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[5].pobar = (CONFIG_SYS_PCI2_MMIO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[5].pocmr = POCMR_EN | POCMR_PCI2 | (POCMR_CM_256M & POCMR_CM_MASK);
 
        /*
@@ -269,23 +269,23 @@ pci_init_board(void)
 
        /* PCI memory prefetch space */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI2_MEM_BASE,
-                      CFG_PCI2_MEM_PHYS,
-                      CFG_PCI2_MEM_SIZE,
+                      CONFIG_SYS_PCI2_MEM_BASE,
+                      CONFIG_SYS_PCI2_MEM_PHYS,
+                      CONFIG_SYS_PCI2_MEM_SIZE,
                       PCI_REGION_MEM|PCI_REGION_PREFETCH);
 
        /* PCI memory space */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI2_MMIO_BASE,
-                      CFG_PCI2_MMIO_PHYS,
-                      CFG_PCI2_MMIO_SIZE,
+                      CONFIG_SYS_PCI2_MMIO_BASE,
+                      CONFIG_SYS_PCI2_MMIO_PHYS,
+                      CONFIG_SYS_PCI2_MMIO_SIZE,
                       PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose->regions + 2,
-                      CFG_PCI2_IO_BASE,
-                      CFG_PCI2_IO_PHYS,
-                      CFG_PCI2_IO_SIZE,
+                      CONFIG_SYS_PCI2_IO_BASE,
+                      CONFIG_SYS_PCI2_IO_PHYS,
+                      CONFIG_SYS_PCI2_IO_SIZE,
                       PCI_REGION_IO);
 
        /* System memory space */
@@ -298,8 +298,8 @@ pci_init_board(void)
        hose->region_count = 4;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR+0x8380),
-                          (CFG_IMMR+0x8384));
+                          (CONFIG_SYS_IMMR+0x8380),
+                          (CONFIG_SYS_IMMR+0x8384));
 
        pci_register_hose(hose);
 
index 93ada0b5b47d5273361fc7ccc2505594b40bea8b..4154f29d8cd948ad38f53aa2c5f45035c51603ae 100644 (file)
@@ -54,14 +54,14 @@ int board_early_init_f (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;
 
        if ((im->sysconf.immrbar & IMMRBAR_BASE_ADDR) != (u32)im)
                return -1;
 
        /* DDR SDRAM - Main SODIMM */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE & LAWBAR_BAR;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE & LAWBAR_BAR;
 #if defined(CONFIG_SPD_EEPROM)
        msize = spd_sdram();
 #else
@@ -88,12 +88,12 @@ phys_size_t initdram (int board_type)
  ************************************************************************/
 int fixed_sdram(void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        u32 msize = 0;
        u32 ddr_size;
        u32 ddr_size_log2;
 
-       msize = CFG_DDR_SIZE;
+       msize = CONFIG_SYS_DDR_SIZE;
        for (ddr_size = msize << 20, ddr_size_log2 = 0;
             (ddr_size > 1);
             ddr_size = ddr_size>>1, ddr_size_log2++) {
@@ -101,22 +101,22 @@ int fixed_sdram(void)
                        return -1;
                }
        }
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
        im->sysconf.ddrlaw[0].ar = LAWAR_EN | ((ddr_size_log2 - 1) & LAWAR_SIZE);
 
-#if (CFG_DDR_SIZE != 256)
+#if (CONFIG_SYS_DDR_SIZE != 256)
 #warning Currently any ddr size other than 256 is not supported
 #endif
        im->ddr.csbnds[2].csbnds = 0x0000000f;
-       im->ddr.cs_config[2] = CFG_DDR_CONFIG;
+       im->ddr.cs_config[2] = CONFIG_SYS_DDR_CONFIG;
 
        /* currently we use only one CS, so disable the other banks */
        im->ddr.cs_config[0] = 0;
        im->ddr.cs_config[1] = 0;
        im->ddr.cs_config[3] = 0;
 
-       im->ddr.timing_cfg_1 = CFG_DDR_TIMING_1;
-       im->ddr.timing_cfg_2 = CFG_DDR_TIMING_2;
+       im->ddr.timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       im->ddr.timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
 
        im->ddr.sdram_cfg =
                SDRAM_CFG_SREN
@@ -128,16 +128,16 @@ int fixed_sdram(void)
        /* for 32-bit mode burst length is 8 */
        im->ddr.sdram_cfg |= (SDRAM_CFG_32_BE | SDRAM_CFG_8_BE);
 #endif
-       im->ddr.sdram_mode = CFG_DDR_MODE;
+       im->ddr.sdram_mode = CONFIG_SYS_DDR_MODE;
 
-       im->ddr.sdram_interval = CFG_DDR_INTERVAL;
+       im->ddr.sdram_interval = CONFIG_SYS_DDR_INTERVAL;
        udelay(200);
 
        /* enable DDR controller */
        im->ddr.sdram_cfg |= SDRAM_CFG_MEM_EN;
        return msize;
 }
-#endif/*!CFG_SPD_EEPROM*/
+#endif/*!CONFIG_SYS_SPD_EEPROM*/
 
 
 int checkboard (void)
@@ -149,44 +149,44 @@ int checkboard (void)
 /*
  * if board is fitted with SDRAM
  */
-#if defined(CFG_BR2_PRELIM)  \
-       && defined(CFG_OR2_PRELIM) \
-       && defined(CFG_LBLAWBAR2_PRELIM) \
-       && defined(CFG_LBLAWAR2_PRELIM)
+#if defined(CONFIG_SYS_BR2_PRELIM)  \
+       && defined(CONFIG_SYS_OR2_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWBAR2_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWAR2_PRELIM)
 /*
  * Initialize SDRAM memory on the Local Bus.
  */
 
 void sdram_init(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbc= &immap->lbus;
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
 
        puts("\n   SDRAM on Local Bus: ");
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers, already done in cpu_init.c
         */
 
        /* setup mtrpt, lsrt and lbcr for LB bus */
-       lbc->lbcr = CFG_LBC_LBCR;
-       lbc->mrtpr = CFG_LBC_MRTPR;
-       lbc->lsrt = CFG_LBC_LSRT;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
        asm("sync");
 
        /*
         * Configure the SDRAM controller Machine Mode Register.
         */
-       lbc->lsdmr = CFG_LBC_LSDMR_5; /* 0x40636733; normal operation */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5; /* 0x40636733; normal operation */
 
-       lbc->lsdmr = CFG_LBC_LSDMR_1; /* 0x68636733; precharge all the banks */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1; /* 0x68636733; precharge all the banks */
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_2; /* 0x48636733; auto refresh */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2; /* 0x48636733; auto refresh */
        asm("sync");
        /*1 times*/
        *sdram_addr = 0xff;
@@ -214,12 +214,12 @@ void sdram_init(void)
        udelay(100);
 
        /* 0x58636733; mode register write operation */
-       lbc->lsdmr = CFG_LBC_LSDMR_4;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4;
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
 
-       lbc->lsdmr = CFG_LBC_LSDMR_5; /* 0x40636733; normal operation */
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5; /* 0x40636733; normal operation */
        asm("sync");
        *sdram_addr = 0xff;
        udelay(100);
index ab54260b0631109dc572113a9ef9772791d1006e..e8c7ae2a2eeddcd49b8ba712569322b40d85c90e 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
        /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index f31d7d647729aa0f145bae0dd7706274eb5074a2..21f82f2837a8b273aa887de6bbd6459578bbafdb 100644 (file)
@@ -53,9 +53,9 @@ int board_early_init_f (void)
 
 int checkboard (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
-       volatile u_char *rev= (void *)CFG_BD_REV;
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
+       volatile u_char *rev= (void *)CONFIG_SYS_BD_REV;
 
        printf ("Board: Wind River SBC8548 Rev. 0x%01x\n",
                        (*rev) >> 4);
@@ -98,7 +98,7 @@ initdram(int board_type)
                 *    Override DLL = 1, Course Adj = 1, Tap Select = 0
                 */
 
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
                gur->ddrdllcr = 0x81000000;
                asm("sync;isync;msync");
@@ -135,8 +135,8 @@ initdram(int board_type)
 void
 local_bus_init(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        uint clkdiv;
        uint lbc_hz;
@@ -169,44 +169,44 @@ local_bus_init(void)
 void
 sdram_init(void)
 {
-#if defined(CFG_OR3_PRELIM) && defined(CFG_BR3_PRELIM)
+#if defined(CONFIG_SYS_OR3_PRELIM) && defined(CONFIG_SYS_BR3_PRELIM)
 
        uint idx;
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       uint *sdram_addr = (uint *)CFG_LBC_SDRAM_BASE;
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       uint *sdram_addr = (uint *)CONFIG_SYS_LBC_SDRAM_BASE;
        uint lsdmr_common;
 
        puts("    SDRAM: ");
 
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, "\n");
 
        /*
         * Setup SDRAM Base and Option Registers
         */
-       lbc->or3 = CFG_OR3_PRELIM;
+       lbc->or3 = CONFIG_SYS_OR3_PRELIM;
        asm("msync");
 
-       lbc->br3 = CFG_BR3_PRELIM;
+       lbc->br3 = CONFIG_SYS_BR3_PRELIM;
        asm("msync");
 
-       lbc->lbcr = CFG_LBC_LBCR;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
        asm("msync");
 
 
-       lbc->lsrt = CFG_LBC_LSRT;
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("msync");
 
        /*
         * MPC8548 uses "new" 15-16 style addressing.
         */
-       lsdmr_common = CFG_LBC_LSDMR_COMMON;
-       lsdmr_common |= CFG_LBC_LSDMR_BSMA1516;
+       lsdmr_common = CONFIG_SYS_LBC_LSDMR_COMMON;
+       lsdmr_common |= CONFIG_SYS_LBC_LSDMR_BSMA1516;
 
        /*
         * Issue PRECHARGE ALL command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_PCHALL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_PCHALL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -216,7 +216,7 @@ sdram_init(void)
         * Issue 8 AUTO REFRESH commands.
         */
        for (idx = 0; idx < 8; idx++) {
-               lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_ARFRSH;
+               lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH;
                asm("sync;msync");
                *sdram_addr = 0xff;
                ppcDcbf((unsigned long) sdram_addr);
@@ -226,7 +226,7 @@ sdram_init(void)
        /*
         * Issue 8 MODE-set command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_MRW;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_MRW;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -235,7 +235,7 @@ sdram_init(void)
        /*
         * Issue NORMAL OP command.
         */
-       lbc->lsdmr = lsdmr_common | CFG_LBC_LSDMR_OP_NORMAL;
+       lbc->lsdmr = lsdmr_common | CONFIG_SYS_LBC_LSDMR_OP_NORMAL;
        asm("sync;msync");
        *sdram_addr = 0xff;
        ppcDcbf((unsigned long) sdram_addr);
@@ -244,17 +244,17 @@ sdram_init(void)
 #endif /* enable SDRAM init */
 }
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int
 testdram(void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("Testing DRAM from 0x%08x to 0x%08x\n",
-              CFG_MEMTEST_START,
-              CFG_MEMTEST_END);
+              CONFIG_SYS_MEMTEST_START,
+              CONFIG_SYS_MEMTEST_END);
 
        printf("DRAM test phase 1:\n");
        for (p = pstart; p < pend; p++)
@@ -290,9 +290,9 @@ testdram(void)
  ************************************************************************/
 long int fixed_sdram (void)
 {
-    #define CFG_DDR_CONTROL 0xc300c000
+    #define CONFIG_SYS_DDR_CONTROL 0xc300c000
 
-       volatile ccsr_ddr_t *ddr = (void *)(CFG_MPC85xx_DDR_ADDR);
+       volatile ccsr_ddr_t *ddr = (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
 
        ddr->cs0_bnds           = 0x0000007f;
        ddr->cs1_bnds           = 0x008000ff;
@@ -319,12 +319,12 @@ long int fixed_sdram (void)
 
        #if defined (CONFIG_DDR_ECC)
          /* Enable ECC checking */
-         ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+         ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
        #else
-         ddr->sdram_cfg = CFG_DDR_CONTROL;
+         ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
        #endif
 
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif
 
@@ -367,11 +367,11 @@ int first_free_busno=0;
 void
 pci_init_board(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
 #ifdef CONFIG_PCI1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
        struct pci_config_table *table;
@@ -397,24 +397,24 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCI1_MEM_BASE,
-                              CFG_PCI1_MEM_PHYS,
-                              CFG_PCI1_MEM_SIZE,
+                              CONFIG_SYS_PCI1_MEM_BASE,
+                              CONFIG_SYS_PCI1_MEM_PHYS,
+                              CONFIG_SYS_PCI1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCI1_IO_BASE,
-                              CFG_PCI1_IO_PHYS,
-                              CFG_PCI1_IO_SIZE,
+                              CONFIG_SYS_PCI1_IO_BASE,
+                              CONFIG_SYS_PCI1_IO_PHYS,
+                              CONFIG_SYS_PCI1_IO_SIZE,
                               PCI_REGION_IO);
                hose->region_count = 3;
 
@@ -466,7 +466,7 @@ pci_init_board(void)
 
 #ifdef CONFIG_PCIE1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_ep =  (host_agent == 0) || (host_agent == 2 ) || (host_agent == 3);
@@ -486,23 +486,23 @@ pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCIE1_MEM_BASE,
-                              CFG_PCIE1_MEM_PHYS,
-                              CFG_PCIE1_MEM_SIZE,
+                              CONFIG_SYS_PCIE1_MEM_BASE,
+                              CONFIG_SYS_PCIE1_MEM_PHYS,
+                              CONFIG_SYS_PCIE1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCIE1_IO_BASE,
-                              CFG_PCIE1_IO_PHYS,
-                              CFG_PCIE1_IO_SIZE,
+                              CONFIG_SYS_PCIE1_IO_BASE,
+                              CONFIG_SYS_PCIE1_IO_PHYS,
+                              CONFIG_SYS_PCIE1_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
index 6314005ca86789ee345917b789b4e7708fb536d3..18d11f6dc762398d3353cf9903bafaaa17c5a2b5 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff800000   16M     TLB for 8MB FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -71,7 +71,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0x0          256M DDR SDRAM
         */
        #if !defined(CONFIG_SPD_EEPROM)
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 3, BOOKE_PAGESZ_256M, 1),
        #endif
@@ -81,7 +81,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe0000000   1M      CCSRBAR
         * 0xe2000000   16M     PCI1 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_64M, 1),
 
@@ -89,7 +89,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 5:       64M     Cacheable, non-guarded
         * 0xf0000000   64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -100,7 +100,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xf8300000   1M      Board revision
         * 0xf8b00000   1M      EEPROM
         */
-       SET_TLB_ENTRY(1, CFG_EPLD_BASE, CFG_EPLD_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_EPLD_BASE, CONFIG_SYS_EPLD_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 6, BOOKE_PAGESZ_16M, 1),
 };
index 10dedb481c2c7a1a8b6fc2fb13a40c751e391803..4e6baed2f4dc8a4c20553fafcf6dd0f5f8ae1a85 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index dc661702ce5c04ed7933c08e322e4c7dd5b660cd..413926d1f53e0f8cbdcf7242a2e5dbd39c1580d4 100644 (file)
@@ -197,7 +197,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
 int board_early_init_f (void)
 {
 #if defined(CONFIG_PCI)
-    volatile ccsr_pcix_t *pci = (void *)(CFG_MPC85xx_PCIX_ADDR);
+    volatile ccsr_pcix_t *pci = (void *)(CONFIG_SYS_MPC85xx_PCIX_ADDR);
 
     pci->peer &= 0xfffffffdf; /* disable master abort */
 #endif
@@ -207,7 +207,7 @@ int board_early_init_f (void)
 void reset_phy (void)
 {
 #if defined(CONFIG_ETHER_ON_FCC) /* avoid compile warnings for now */
-       volatile unsigned char *bcsr = (unsigned char *) CFG_BCSR;
+       volatile unsigned char *bcsr = (unsigned char *) CONFIG_SYS_BCSR;
 #endif
        /* reset Giga bit Ethernet port if needed here */
 
@@ -249,9 +249,9 @@ int checkboard (void)
        printf ("\tCPU: %lu MHz\n", sysinfo.freqProcessor / 1000000);
        printf ("\tCCB: %lu MHz\n", sysinfo.freqSystemBus / 1000000);
        printf ("\tDDR: %lu MHz\n", sysinfo.freqSystemBus / 2000000);
-       if((CFG_LBC_LCRR & 0x0f) == 2 || (CFG_LBC_LCRR & 0x0f) == 4 \
-               || (CFG_LBC_LCRR & 0x0f) == 8) {
-               printf ("\tLBC: %lu MHz\n", sysinfo.freqSystemBus / 1000000 /(CFG_LBC_LCRR & 0x0f));
+       if((CONFIG_SYS_LBC_LCRR & 0x0f) == 2 || (CONFIG_SYS_LBC_LCRR & 0x0f) == 4 \
+               || (CONFIG_SYS_LBC_LCRR & 0x0f) == 8) {
+               printf ("\tLBC: %lu MHz\n", sysinfo.freqSystemBus / 1000000 /(CONFIG_SYS_LBC_LCRR & 0x0f));
        } else {
                printf("\tLBC: unknown\n");
        }
@@ -267,13 +267,13 @@ phys_size_t initdram (int board_type)
 
 #if 0
 #if !defined(CONFIG_RAM_AS_FLASH)
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
        sys_info_t sysinfo;
        uint temp_lbcdll = 0;
 #endif
 #endif /* 0 */
 #if !defined(CONFIG_RAM_AS_FLASH) || defined(CONFIG_DDR_DLL)
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 #endif
 #if defined(CONFIG_DDR_DLL)
        uint temp_ddrdll = 0;
@@ -296,38 +296,38 @@ phys_size_t initdram (int board_type)
 #if !defined(CONFIG_RAM_AS_FLASH) /* LocalBus SDRAM is not emulating flash */
        get_sys_info(&sysinfo);
        /* if localbus freq is less than 66Mhz,we use bypass mode,otherwise use DLL */
-       if(sysinfo.freqSystemBus/(CFG_LBC_LCRR & 0x0f) < 66000000) {
-               lbc->lcrr = (CFG_LBC_LCRR & 0x0fffffff)| 0x80000000;
+       if(sysinfo.freqSystemBus/(CONFIG_SYS_LBC_LCRR & 0x0f) < 66000000) {
+               lbc->lcrr = (CONFIG_SYS_LBC_LCRR & 0x0fffffff)| 0x80000000;
        } else {
 #if defined(CONFIG_MPC85xx_REV1) /* need change CLKDIV before enable DLL */
                lbc->lcrr = 0x10000004; /* default CLKDIV is 8, change it to 4 temporarily */
 #endif
-               lbc->lcrr = CFG_LBC_LCRR & 0x7fffffff;
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & 0x7fffffff;
                udelay(200);
                temp_lbcdll = gur->lbcdllcr;
                gur->lbcdllcr = ((temp_lbcdll & 0xff) << 16 ) | 0x80000000;
                asm("sync;isync;msync");
        }
-       lbc->or2 = CFG_OR2_PRELIM; /* 64MB SDRAM */
-       lbc->br2 = CFG_BR2_PRELIM;
-       lbc->lbcr = CFG_LBC_LBCR;
-       lbc->lsdmr = CFG_LBC_LSDMR_1;
+       lbc->or2 = CONFIG_SYS_OR2_PRELIM; /* 64MB SDRAM */
+       lbc->br2 = CONFIG_SYS_BR2_PRELIM;
+       lbc->lbcr = CONFIG_SYS_LBC_LBCR;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_1;
        asm("sync");
        (unsigned int) * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_2;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_2;
        asm("sync");
        (unsigned int) * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_3;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_3;
        asm("sync");
        (unsigned int) * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_4;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_4;
        asm("sync");
        (unsigned int) * (ulong *)0 = 0x000000ff;
-       lbc->lsdmr = CFG_LBC_LSDMR_5;
+       lbc->lsdmr = CONFIG_SYS_LBC_LSDMR_5;
        asm("sync");
-       lbc->lsrt = CFG_LBC_LSRT;
+       lbc->lsrt = CONFIG_SYS_LBC_LSRT;
        asm("sync");
-       lbc->mrtpr = CFG_LBC_MRTPR;
+       lbc->mrtpr = CONFIG_SYS_LBC_MRTPR;
        asm("sync");
 #endif
 #endif
@@ -338,7 +338,7 @@ phys_size_t initdram (int board_type)
                 * enable errors */
                uint *p = 0;
                uint i = 0;
-               volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
+               volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
                dma_init();
                for (*p = 0; p < (uint *)(8 * 1024); p++) {
                        if (((unsigned int)p & 0x1f) == 0) { dcbz(p); }
@@ -381,11 +381,11 @@ phys_size_t initdram (int board_type)
 }
 
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("SDRAM test phase 1:\n");
@@ -422,12 +422,12 @@ int testdram (void)
 long int fixed_sdram (void)
 {
 
-#define CFG_DDR_CONTROL 0xc2000000
+#define CONFIG_SYS_DDR_CONTROL 0xc2000000
 
-  #ifndef CFG_RAMBOOT
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
+  #ifndef CONFIG_SYS_RAMBOOT
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
 
-#if (CFG_SDRAM_SIZE == 512)
+#if (CONFIG_SYS_SDRAM_SIZE == 512)
        ddr->cs0_bnds           = 0x0000000f;
 #else
        ddr->cs0_bnds           = 0x00000007;
@@ -452,14 +452,14 @@ long int fixed_sdram (void)
        udelay(500);
     #if defined (CONFIG_DDR_ECC)
        /* Enable ECC checking */
-       ddr->sdram_cfg = (CFG_DDR_CONTROL | 0x20000000);
+       ddr->sdram_cfg = (CONFIG_SYS_DDR_CONTROL | 0x20000000);
     #else
-       ddr->sdram_cfg = CFG_DDR_CONTROL;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONTROL;
     #endif
        asm("sync; isync; msync");
        udelay(500);
   #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif /* !defined(CONFIG_SPD_EEPROM) */
 
index d073399606caf8616ac9b4f91059e12bebe8008b..fe0ac763af21d19131617f260f12026fa786e750 100644 (file)
@@ -28,7 +28,7 @@
 
 struct fsl_e_tlb_entry tlb_table[] = {
 /* TLB for CCSRBAR (IMMR) */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_1M, 1),
 
@@ -44,20 +44,20 @@ struct fsl_e_tlb_entry tlb_table[] = {
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
 #if !defined(CONFIG_SPD_EEPROM)
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE + 0x10000000, CFG_DDR_SDRAM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000, CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 5, BOOKE_PAGESZ_256M, 1),
 #endif
 
-       SET_TLB_ENTRY(1, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(1, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_16K, 1),
 
-       SET_TLB_ENTRY(1, CFG_PCI_MEM_PHYS, CFG_PCI_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI_MEM_PHYS, CONFIG_SYS_PCI_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 7, BOOKE_PAGESZ_256M, 1),
 };
index 801c5b75f74a1698a73eef5b651f50c5fc549718..de47fcd634ffd4e73840a315916b4f0f5c0b38be 100644 (file)
 
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_1),
-       SET_LAW(CFG_PCI1_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI2_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_1),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI2_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
        SET_LAW(0xf8000000, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_BASE, LAW_SIZE_16M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI2_IO_BASE, LAW_SIZE_16M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_IO_BASE, LAW_SIZE_16M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI2_IO_BASE, LAW_SIZE_16M, LAW_TRGT_IF_PCI_2),
        SET_LAW(0xfe000000, LAW_SIZE_32M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_2),
-       SET_LAW(CFG_RIO_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_RIO)
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_2),
+       SET_LAW(CONFIG_SYS_RIO_MEM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_RIO)
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 62b48c8363d40fb5bef7146c7fda448b7caf1f96..06d1d2a4091cd117842a00b0dc1720fdad32209a 100644 (file)
@@ -66,7 +66,7 @@ phys_size_t initdram (int board_type)
        dram_size = fixed_sdram ();
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
        puts ("    DDR: ");
        return dram_size;
 #endif
@@ -82,11 +82,11 @@ phys_size_t initdram (int board_type)
        return dram_size;
 }
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        puts ("SDRAM test phase 1:\n");
@@ -122,72 +122,72 @@ int testdram (void)
  */
 long int fixed_sdram (void)
 {
-#if !defined(CFG_RAMBOOT)
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+#if !defined(CONFIG_SYS_RAMBOOT)
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ccsr_ddr_t *ddr = &immap->im_ddr1;
 
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs1_bnds = CFG_DDR_CS1_BNDS;
-       ddr->cs2_bnds = CFG_DDR_CS2_BNDS;
-       ddr->cs3_bnds = CFG_DDR_CS3_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->cs1_config = CFG_DDR_CS1_CONFIG;
-       ddr->cs2_config = CFG_DDR_CS2_CONFIG;
-       ddr->cs3_config = CFG_DDR_CS3_CONFIG;
-       ddr->timing_cfg_3 = CFG_DDR_TIMING_3;
-       ddr->timing_cfg_0 = CFG_DDR_TIMING_0;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_cfg_1 = CFG_DDR_CFG_1A;
-       ddr->sdram_cfg_2 = CFG_DDR_CFG_2;
-       ddr->sdram_mode_1 = CFG_DDR_MODE_1;
-       ddr->sdram_mode_2 = CFG_DDR_MODE_2;
-       ddr->sdram_mode_cntl = CFG_DDR_MODE_CTL;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
-       ddr->sdram_data_init = CFG_DDR_DATA_INIT;
-       ddr->sdram_clk_cntl = CFG_DDR_CLK_CTRL;
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs1_bnds = CONFIG_SYS_DDR_CS1_BNDS;
+       ddr->cs2_bnds = CONFIG_SYS_DDR_CS2_BNDS;
+       ddr->cs3_bnds = CONFIG_SYS_DDR_CS3_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->cs1_config = CONFIG_SYS_DDR_CS1_CONFIG;
+       ddr->cs2_config = CONFIG_SYS_DDR_CS2_CONFIG;
+       ddr->cs3_config = CONFIG_SYS_DDR_CS3_CONFIG;
+       ddr->timing_cfg_3 = CONFIG_SYS_DDR_TIMING_3;
+       ddr->timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_cfg_1 = CONFIG_SYS_DDR_CFG_1A;
+       ddr->sdram_cfg_2 = CONFIG_SYS_DDR_CFG_2;
+       ddr->sdram_mode_1 = CONFIG_SYS_DDR_MODE_1;
+       ddr->sdram_mode_2 = CONFIG_SYS_DDR_MODE_2;
+       ddr->sdram_mode_cntl = CONFIG_SYS_DDR_MODE_CTL;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       ddr->sdram_data_init = CONFIG_SYS_DDR_DATA_INIT;
+       ddr->sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CTRL;
 
        asm ("sync;isync");
 
        udelay (500);
 
-       ddr->sdram_cfg_1 = CFG_DDR_CFG_1B;
+       ddr->sdram_cfg_1 = CONFIG_SYS_DDR_CFG_1B;
        asm ("sync; isync");
 
        udelay (500);
        ddr = &immap->im_ddr2;
 
-       ddr->cs0_bnds = CFG_DDR2_CS0_BNDS;
-       ddr->cs1_bnds = CFG_DDR2_CS1_BNDS;
-       ddr->cs2_bnds = CFG_DDR2_CS2_BNDS;
-       ddr->cs3_bnds = CFG_DDR2_CS3_BNDS;
-       ddr->cs0_config = CFG_DDR2_CS0_CONFIG;
-       ddr->cs1_config = CFG_DDR2_CS1_CONFIG;
-       ddr->cs2_config = CFG_DDR2_CS2_CONFIG;
-       ddr->cs3_config = CFG_DDR2_CS3_CONFIG;
-       ddr->timing_cfg_3 = CFG_DDR2_EXT_REFRESH;
-       ddr->timing_cfg_0 = CFG_DDR2_TIMING_0;
-       ddr->timing_cfg_1 = CFG_DDR2_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR2_TIMING_2;
-       ddr->sdram_cfg_1 = CFG_DDR2_CFG_1A;
-       ddr->sdram_cfg_2 = CFG_DDR2_CFG_2;
-       ddr->sdram_mode_1 = CFG_DDR2_MODE_1;
-       ddr->sdram_mode_2 = CFG_DDR2_MODE_2;
-       ddr->sdram_mode_cntl = CFG_DDR2_MODE_CTL;
-       ddr->sdram_interval = CFG_DDR2_INTERVAL;
-       ddr->sdram_data_init = CFG_DDR2_DATA_INIT;
-       ddr->sdram_clk_cntl = CFG_DDR2_CLK_CTRL;
+       ddr->cs0_bnds = CONFIG_SYS_DDR2_CS0_BNDS;
+       ddr->cs1_bnds = CONFIG_SYS_DDR2_CS1_BNDS;
+       ddr->cs2_bnds = CONFIG_SYS_DDR2_CS2_BNDS;
+       ddr->cs3_bnds = CONFIG_SYS_DDR2_CS3_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR2_CS0_CONFIG;
+       ddr->cs1_config = CONFIG_SYS_DDR2_CS1_CONFIG;
+       ddr->cs2_config = CONFIG_SYS_DDR2_CS2_CONFIG;
+       ddr->cs3_config = CONFIG_SYS_DDR2_CS3_CONFIG;
+       ddr->timing_cfg_3 = CONFIG_SYS_DDR2_EXT_REFRESH;
+       ddr->timing_cfg_0 = CONFIG_SYS_DDR2_TIMING_0;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR2_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR2_TIMING_2;
+       ddr->sdram_cfg_1 = CONFIG_SYS_DDR2_CFG_1A;
+       ddr->sdram_cfg_2 = CONFIG_SYS_DDR2_CFG_2;
+       ddr->sdram_mode_1 = CONFIG_SYS_DDR2_MODE_1;
+       ddr->sdram_mode_2 = CONFIG_SYS_DDR2_MODE_2;
+       ddr->sdram_mode_cntl = CONFIG_SYS_DDR2_MODE_CTL;
+       ddr->sdram_interval = CONFIG_SYS_DDR2_INTERVAL;
+       ddr->sdram_data_init = CONFIG_SYS_DDR2_DATA_INIT;
+       ddr->sdram_clk_cntl = CONFIG_SYS_DDR2_CLK_CTRL;
 
        asm ("sync;isync");
 
        udelay (500);
 
-       ddr->sdram_cfg_1 = CFG_DDR2_CFG_1B;
+       ddr->sdram_cfg_1 = CONFIG_SYS_DDR2_CFG_1B;
        asm ("sync; isync");
 
        udelay (500);
 #endif
-       return CFG_SDRAM_SIZE * 1024 * 1024;
+       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
 }
 #endif                         /* !defined(CONFIG_SPD_EEPROM) */
 
@@ -222,7 +222,7 @@ int first_free_busno = 0;
 
 void pci_init_board(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_CCSRBAR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_CCSRBAR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
        uint devdisr = gur->devdisr;
        uint io_sel = (gur->pordevsr & MPC8641_PORDEVSR_IO_SEL)
@@ -230,7 +230,7 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCI1
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
 #ifdef DEBUG
@@ -252,23 +252,23 @@ void pci_init_board(void)
 
                /* inbound */
                pci_set_region(hose->regions + 0,
-                              CFG_PCI_MEMORY_BUS,
-                              CFG_PCI_MEMORY_PHYS,
-                              CFG_PCI_MEMORY_SIZE,
+                              CONFIG_SYS_PCI_MEMORY_BUS,
+                              CONFIG_SYS_PCI_MEMORY_PHYS,
+                              CONFIG_SYS_PCI_MEMORY_SIZE,
                               PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region(hose->regions + 1,
-                              CFG_PCI1_MEM_BASE,
-                              CFG_PCI1_MEM_PHYS,
-                              CFG_PCI1_MEM_SIZE,
+                              CONFIG_SYS_PCI1_MEM_BASE,
+                              CONFIG_SYS_PCI1_MEM_PHYS,
+                              CONFIG_SYS_PCI1_MEM_SIZE,
                               PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region(hose->regions + 2,
-                              CFG_PCI1_IO_BASE,
-                              CFG_PCI1_IO_PHYS,
-                              CFG_PCI1_IO_SIZE,
+                              CONFIG_SYS_PCI1_IO_BASE,
+                              CONFIG_SYS_PCI1_IO_PHYS,
+                              CONFIG_SYS_PCI1_IO_SIZE,
                               PCI_REGION_IO);
 
                hose->region_count = 3;
@@ -292,30 +292,30 @@ void pci_init_board(void)
 
 #ifdef CONFIG_PCI2
 {
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CFG_PCI2_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *) CONFIG_SYS_PCI2_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci2_hose;
 
 
        /* inbound */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI_MEMORY_BUS,
-                      CFG_PCI_MEMORY_PHYS,
-                      CFG_PCI_MEMORY_SIZE,
+                      CONFIG_SYS_PCI_MEMORY_BUS,
+                      CONFIG_SYS_PCI_MEMORY_PHYS,
+                      CONFIG_SYS_PCI_MEMORY_SIZE,
                       PCI_REGION_MEM | PCI_REGION_MEMORY);
 
        /* outbound memory */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI2_MEM_BASE,
-                      CFG_PCI2_MEM_PHYS,
-                      CFG_PCI2_MEM_SIZE,
+                      CONFIG_SYS_PCI2_MEM_BASE,
+                      CONFIG_SYS_PCI2_MEM_PHYS,
+                      CONFIG_SYS_PCI2_MEM_SIZE,
                       PCI_REGION_MEM);
 
        /* outbound io */
        pci_set_region(hose->regions + 2,
-                      CFG_PCI2_IO_BASE,
-                      CFG_PCI2_IO_PHYS,
-                      CFG_PCI2_IO_SIZE,
+                      CONFIG_SYS_PCI2_IO_BASE,
+                      CONFIG_SYS_PCI2_IO_PHYS,
+                      CONFIG_SYS_PCI2_IO_SIZE,
                       PCI_REGION_IO);
 
        hose->region_count = 3;
index 45eff28c0ae83aa55bb62737dd3210e68b209104..62b40f167506ac8f243d6696806ade6c9046dea3 100644 (file)
@@ -77,7 +77,7 @@ int board_nand_init(struct nand_chip *nand)
 {
        nand->ecc.mode = NAND_ECC_SOFT;
 
-       sc3_io_base = (void *) CFG_NAND_BASE;
+       sc3_io_base = (void *) CONFIG_SYS_NAND_BASE;
        /* Set address of NAND IO lines (Using Linear Data Access Region) */
        nand->IO_ADDR_R = (void __iomem *) sc3_io_base;
        nand->IO_ADDR_W = (void __iomem *) sc3_io_base;
index 493d51aca23117a92a15636240acda8daf710a38..dcb8c57e8172dd1cc49f86127381290a9bfbe9e0 100644 (file)
@@ -222,7 +222,7 @@ ulong flash_init(void)
                ulong flashbase = 0;
                int sectsize = 0;
 
-               memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                switch (i) {
                case 0:
                        flashbase = SC520_FLASH_BANK0_BASE;
@@ -370,7 +370,7 @@ static u32 _amd_erase_flash(u32 addr, u32 sector)
        while (((*(volatile u32*)(addr + sector)) & 0x80808080) != 0x80808080) {
 
                elapsed += *(volatile u16*)(0xfffef000+SC520_SWTMRMILLI);
-               if (elapsed > ((CFG_FLASH_ERASE_TOUT/CFG_HZ) * 1000)) {
+               if (elapsed > ((CONFIG_SYS_FLASH_ERASE_TOUT/CONFIG_SYS_HZ) * 1000)) {
                        *(volatile u32*)(addr) = 0xf0f0f0f0;
                        return 1;
                }
@@ -493,7 +493,7 @@ static int _amd_write_word(unsigned start, unsigned dest, unsigned data)
        /* data polling for D7 */
        while ((dest2[0] & 0x80808080) != (data2[0] & 0x80808080)) {
                elapsed += *(volatile u16*)(0xfffef000+SC520_SWTMRMILLI);
-               if (elapsed > ((CFG_FLASH_WRITE_TOUT/CFG_HZ) * 1000)) {
+               if (elapsed > ((CONFIG_SYS_FLASH_WRITE_TOUT/CONFIG_SYS_HZ) * 1000)) {
                        addr2[0] = 0xf0f0f0f0;
                        return 1;
                }
index b68626e1549e60d54b793c19c58d209e9fdcdb1c..9491ca296fc4aa52593858cd3a7f3bf768f0d8e1 100644 (file)
@@ -89,7 +89,7 @@ ulong flash_init(void)
                        flash_info[i].sector_count = 0;
                        sectsize=0;
                }
-               memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                switch (i) {
                case 0:
                        flashbase = SC520_FLASH_BANK0_BASE;
@@ -240,7 +240,7 @@ int flash_erase(flash_info_t *info, int s_first, int s_last)
                                result = readl(addr);
 
                                /* check timeout */
-                               if (get_timer(0) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer(0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        writel(CMD_READ_ARRAY, addr + 1);
                                        chip1 = TMO;
                                        break;
@@ -342,7 +342,7 @@ volatile static int write_word(flash_info_t *info, ulong dest, ulong data)
                result = readl(addr);
 
                /* check timeout */
-               if (get_timer(0) > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer(0) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        chip1 = ERR | TMO;
                        break;
                }
index 99debde50ee6c27a972b45ca50e30a7fb6923a24..779f957d6841fed5731aad47b926717689cbff07 100644 (file)
@@ -87,7 +87,7 @@ static void irq_init(void)
        write_mmcr_byte(SC520_ICEMAP, SC520_IRQ1);              /* Set ICE Debug Serielport INT to IRQ1 */
        write_mmcr_byte(SC520_FERRMAP,SC520_IRQ13);             /* Set FP error INT to IRQ13 */
 
-       if (CFG_USE_SIO_UART) {
+       if (CONFIG_SYS_USE_SIO_UART) {
                write_mmcr_byte(SC520_UART1MAP, SC520_IRQ_DISABLED); /* disable internal UART1 INT */
                write_mmcr_byte(SC520_UART2MAP, SC520_IRQ_DISABLED); /* disable internal UART2 INT */
                write_mmcr_byte(SC520_GP3IMAP, SC520_IRQ3);          /* Set GPIRQ3 (ISA IRQ3) to IRQ3 */
@@ -122,10 +122,10 @@ static void pci_sc520_cdp_fixup_irq(struct pci_controller *hose, pci_dev_t dev)
         * when we need one (a board with more pci interrupt pins
         * would use a larger table */
        static int irq_list[] = {
-               CFG_FIRST_PCI_IRQ,
-               CFG_SECOND_PCI_IRQ,
-               CFG_THIRD_PCI_IRQ,
-               CFG_FORTH_PCI_IRQ
+               CONFIG_SYS_FIRST_PCI_IRQ,
+               CONFIG_SYS_SECOND_PCI_IRQ,
+               CONFIG_SYS_THIRD_PCI_IRQ,
+               CONFIG_SYS_FORTH_PCI_IRQ
        };
        static int next_irq_index=0;
 
@@ -279,7 +279,7 @@ static void bus_init(void)
 
        asm ("wbinvd\n"); /* Flush cache, req. after setting the unchached attribute ona PAR */
 
-       if (CFG_USE_SIO_UART) {
+       if (CONFIG_SYS_USE_SIO_UART) {
                write_mmcr_byte(SC520_ADDDECCTL, read_mmcr_byte(SC520_ADDDECCTL) | UART2_DIS|UART1_DIS);
                setup_ali_sio(1);
        } else {
index 609cc42d6bb1411465226a48fbeb0e51fbc24367..d702046f914944133cf0a4bfe37094749ba645c8 100644 (file)
@@ -228,7 +228,7 @@ ulong flash_init(void)
                ulong flashbase = 0;
                int sectsize = 0;
 
-               memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                switch (i) {
                case 0:
                        flashbase = SC520_FLASH_BANK0_BASE;
@@ -419,7 +419,7 @@ static u32 _amd_erase_flash(u32 addr, u32 sector)
        while (((*(volatile u16*)(addr + sector)) & 0x0080) != 0x0080) {
 
                elapsed += *(volatile u16*)(0xfffef000+SC520_SWTMRMILLI);
-               if (elapsed > ((CFG_FLASH_ERASE_TOUT/CFG_HZ) * 1000)) {
+               if (elapsed > ((CONFIG_SYS_FLASH_ERASE_TOUT/CONFIG_SYS_HZ) * 1000)) {
                        *(volatile u16*)(addr) = 0x00f0;
                        return 1;
                }
@@ -467,7 +467,7 @@ static u32 _intel_erase_flash(u32 addr, u32 sector)
        elapsed = 0;
        while (((*(volatile u16*)(addr + sector)) & 0x0080) != 0x0080) {
                elapsed += *(volatile u16*)(0xfffef000+SC520_SWTMRMILLI);
-               if (elapsed > ((CFG_FLASH_ERASE_TOUT/CFG_HZ) * 1000)) {
+               if (elapsed > ((CONFIG_SYS_FLASH_ERASE_TOUT/CONFIG_SYS_HZ) * 1000)) {
                        *(volatile u16*)(addr + sector) = 0x00B0;  /* suspend erase      */
                        *(volatile u16*)(addr + sector) = 0x00FF;  /* reset to read mode */
                        return 1;
@@ -602,7 +602,7 @@ static int _amd_write_word(unsigned start, unsigned dest, u16 data)
                /* data polling for D7 */
                while ((dest2[i] & 0x0080) != (data2[i] & 0x0080)) {
                        elapsed += *(volatile u16*)(0xfffef000+SC520_SWTMRMILLI);
-                       if (elapsed > ((CFG_FLASH_WRITE_TOUT/CFG_HZ) * 1000)) {
+                       if (elapsed > ((CONFIG_SYS_FLASH_WRITE_TOUT/CONFIG_SYS_HZ) * 1000)) {
                                addr2[i] = 0x00f0;
                                return 1;
                        }
@@ -639,7 +639,7 @@ static int _intel_write_word(unsigned start, unsigned dest, unsigned data)
                /* data polling for D7 */
                while ((*(volatile u16*)dest & 0x0080) != 0x0080) {
                        elapsed += *(volatile u16*)(0xfffef000+SC520_SWTMRMILLI);
-                       if (elapsed > ((CFG_FLASH_WRITE_TOUT/CFG_HZ) * 1000)) {
+                       if (elapsed > ((CONFIG_SYS_FLASH_WRITE_TOUT/CONFIG_SYS_HZ) * 1000)) {
                                *(volatile u16*)dest = 0x00ff;
                                return 1;
                        }
index 0b11caaae2dbe01ce41adbf1aadff70f73eeb23b..d3bd869306575450de6f3f6e0762ff7aa87a8fac 100644 (file)
@@ -105,10 +105,10 @@ static void pci_sc520_spunk_fixup_irq(struct pci_controller *hose, pci_dev_t dev
         * when we need one (a board with more pci interrupt pins
         * would use a larger table */
        static int irq_list[] = {
-               CFG_FIRST_PCI_IRQ,
-               CFG_SECOND_PCI_IRQ,
-               CFG_THIRD_PCI_IRQ,
-               CFG_FORTH_PCI_IRQ
+               CONFIG_SYS_FIRST_PCI_IRQ,
+               CONFIG_SYS_SECOND_PCI_IRQ,
+               CONFIG_SYS_THIRD_PCI_IRQ,
+               CONFIG_SYS_FORTH_PCI_IRQ
        };
        static int next_irq_index=0;
 
index 536725af203c295a6c1a79a262bcc321ea99489b..c6f94aebba76dfa7376023020a50c100e4f32d8c 100644 (file)
@@ -82,7 +82,7 @@
 #endif
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static FLASH_BUS_RET flash_status_reg (void)
 {
@@ -109,7 +109,7 @@ static int flash_ready (ulong timeout)
        return ok;
 }
 
-#if ( CFG_MAX_FLASH_BANKS != 1 )
+#if ( CONFIG_SYS_MAX_FLASH_BANKS != 1 )
 #  error "SCB9328 platform has only one flash bank!"
 #endif
 
@@ -120,11 +120,11 @@ ulong flash_init (void)
        unsigned long address = SCB9328_FLASH_BASE;
 
        flash_info[0].size = SCB9328_FLASH_BANK_SIZE;
-       flash_info[0].sector_count = CFG_MAX_FLASH_SECT;
+       flash_info[0].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        flash_info[0].flash_id = INTEL_MANUFACT;
-       memset (flash_info[0].protect, 0, CFG_MAX_FLASH_SECT);
+       memset (flash_info[0].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
 
-       for (i = 0; i < CFG_MAX_FLASH_SECT; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_SECT; i++) {
                flash_info[0].start[i] = address;
 #ifdef SCB9328_FLASH_UNLOCK
                /* Some devices are hw locked after start. */
@@ -137,8 +137,8 @@ ulong flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                                  CFG_FLASH_BASE,
-                                  CFG_FLASH_BASE + monitor_flash_len - 1,
+                                  CONFIG_SYS_FLASH_BASE,
+                                  CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                                   &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -209,7 +209,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                *address = FLASH_CMD (CFI_INTEL_CMD_BLOCK_ERASE);
                *address = FLASH_CMD (CFI_INTEL_CMD_CONFIRM);
-               if (flash_ready (CFG_FLASH_ERASE_TOUT)) {
+               if (flash_ready (CONFIG_SYS_FLASH_ERASE_TOUT)) {
                        *address = FLASH_CMD (CFI_INTEL_CMD_CLEAR_STATUS_REGISTER);
                        printf ("ok.\n");
                } else {
@@ -257,7 +257,7 @@ static int write_data (flash_info_t * info, ulong dest, FLASH_BUS data)
        *address = FLASH_CMD (CFI_INTEL_CMD_PROGRAM1);
        *address = data;
 
-       if (!flash_ready (CFG_FLASH_WRITE_TOUT)) {
+       if (!flash_ready (CONFIG_SYS_FLASH_WRITE_TOUT)) {
                *address = FLASH_CMD (CFI_INTEL_CMD_SUSPEND);
                rc = ERR_TIMOUT;
                printf ("timeout! Aborting...\n");
index ba3b6d241834f12c64e9cb2c5605c3477c01c7bb..8e6a49e328024a3d80e2d5c293dc95833d29bf81 100644 (file)
@@ -29,13 +29,13 @@ lowlevel_init:
 
 /* Change PERCLK1DIV to 14 ie 14+1 */
        ldr             r0,     =PCDR
-       ldr             r1,     =CFG_PCDR_VAL
+       ldr             r1,     =CONFIG_SYS_PCDR_VAL
        str             r1,   [r0]
 
 /* set MCU PLL Control Register 0 */
 
        ldr             r0,     =MPCTL0
-       ldr             r1,     =CFG_MPCTL0_VAL
+       ldr             r1,     =CONFIG_SYS_MPCTL0_VAL
        str             r1,   [r0]
 
 /* set mpll restart bit */
@@ -57,7 +57,7 @@ lowlevel_init:
 /* set System PLL Control Register 0 */
 
        ldr             r0,     =SPCTL0
-       ldr             r1,     =CFG_SPCTL0_VAL
+       ldr             r1,     =CONFIG_SYS_SPCTL0_VAL
        str             r1,   [r0]
 
 /* set spll restart bit */
@@ -77,7 +77,7 @@ lowlevel_init:
        bne             1b
 
        ldr             r0,   =CSCR
-       ldr             r1,   =CFG_CSCR_VAL
+       ldr             r1,   =CONFIG_SYS_CSCR_VAL
        str             r1,   [r0]
 
 /* I have now read the ARM920 DataSheet back-to-Back, and have stumbled upon
@@ -102,65 +102,65 @@ lowlevel_init:
        MCR p15,0,r0,c1,c0,0
 
        ldr             r0,     =GPR(0)
-       ldr             r1,     =CFG_GPR_A_VAL
+       ldr             r1,     =CONFIG_SYS_GPR_A_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GIUS(0)
-       ldr             r1,     =CFG_GIUS_A_VAL
+       ldr             r1,     =CONFIG_SYS_GIUS_A_VAL
        str             r1,   [r0]
 
 /* CS3 becomes CS3 by clearing reset default bit 1 in FMCR */
 
        ldr             r0,     =FMCR
-       ldr             r1,     =CFG_FMCR_VAL
+       ldr             r1,     =CONFIG_SYS_FMCR_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS0U
-       ldr             r1,     =CFG_CS0U_VAL
+       ldr             r1,     =CONFIG_SYS_CS0U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS0L
-       ldr             r1,     =CFG_CS0L_VAL
+       ldr             r1,     =CONFIG_SYS_CS0L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS1U
-       ldr             r1,     =CFG_CS1U_VAL
+       ldr             r1,     =CONFIG_SYS_CS1U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS1L
-       ldr             r1,     =CFG_CS1L_VAL
+       ldr             r1,     =CONFIG_SYS_CS1L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS2U
-       ldr             r1,     =CFG_CS2U_VAL
+       ldr             r1,     =CONFIG_SYS_CS2U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS2L
-       ldr             r1,     =CFG_CS2L_VAL
+       ldr             r1,     =CONFIG_SYS_CS2L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS3U
-       ldr             r1,     =CFG_CS3U_VAL
+       ldr             r1,     =CONFIG_SYS_CS3U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS3L
-       ldr             r1,     =CFG_CS3L_VAL
+       ldr             r1,     =CONFIG_SYS_CS3L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS4U
-       ldr             r1,     =CFG_CS4U_VAL
+       ldr             r1,     =CONFIG_SYS_CS4U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS4L
-       ldr             r1,     =CFG_CS4L_VAL
+       ldr             r1,     =CONFIG_SYS_CS4L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS5U
-       ldr             r1,     =CFG_CS5U_VAL
+       ldr             r1,     =CONFIG_SYS_CS5U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =CS5L
-       ldr             r1,     =CFG_CS5L_VAL
+       ldr             r1,     =CONFIG_SYS_CS5L_VAL
        str             r1,   [r0]
 
 /* SDRAM Setup */
index 92ac7b7a96b8b7d2e1901ebea225b5b200f5d0ae..88bab70e35649ff6ead2c8fbee2d276cbc26f710 100644 (file)
@@ -66,9 +66,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index 66b21f8496caf388d6907ab38e06aeda052a0570..786c758a92c2efd1bead82ff3ca790237a28a975 100644 (file)
@@ -38,9 +38,9 @@ int dram_init(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bd->bi_memstart = CFG_SDRAM_BASE;
-       gd->bd->bi_memsize = CFG_SDRAM_SIZE;
-       printf("DRAM:  %dMB\n", CFG_SDRAM_SIZE / (1024 * 1024));
+       gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
        return 0;
 }
 
index 7d6eca8bba5c12d2f80abbf06e2dd2357baf7e79..0455afa93e2c5e87b12d1646a5efb8f303156d58 100644 (file)
@@ -30,7 +30,7 @@ ulong myflush(void);
 #define FLASH_BANK_SIZE 0x400000       /* 4 MB */
 #define MAIN_SECT_SIZE  0x20000                /* 128 KB */
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 #define CMD_READ_ARRAY         0x00F000F0
@@ -41,8 +41,8 @@ flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
 #define CMD_PROGRAM            0x00A000A0
 #define CMD_UNLOCK_BYPASS      0x00200020
 
-#define MEM_FLASH_ADDR1                (*(volatile u32 *)(CFG_FLASH_BASE + (0x00000555 << 2)))
-#define MEM_FLASH_ADDR2                (*(volatile u32 *)(CFG_FLASH_BASE + (0x000002AA << 2)))
+#define MEM_FLASH_ADDR1                (*(volatile u32 *)(CONFIG_SYS_FLASH_BASE + (0x00000555 << 2)))
+#define MEM_FLASH_ADDR2                (*(volatile u32 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA << 2)))
 
 #define BIT_ERASE_DONE         0x00800080
 #define BIT_RDY_MASK           0x00800080
@@ -61,15 +61,15 @@ ulong flash_init(void)
     int i, j;
     ulong size = 0;
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
     {
        ulong flashbase = 0;
        flash_info[i].flash_id =
          (AMD_MANUFACT & FLASH_VENDMASK) |
          (AMD_ID_LV160B & FLASH_TYPEMASK);
        flash_info[i].size = FLASH_BANK_SIZE;
-       flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-       memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+       flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+       memset(flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
        if (i == 0)
          flashbase = PHYS_FLASH_1;
        else
@@ -112,19 +112,19 @@ ulong flash_init(void)
 #ifdef CONFIG_INFERNO
     /* first one, 0x00000 to 0x07fff */
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_FLASH_BASE + 0x00000,
-                 CFG_FLASH_BASE + 0x08000 - 1,
+                 CONFIG_SYS_FLASH_BASE + 0x00000,
+                 CONFIG_SYS_FLASH_BASE + 0x08000 - 1,
                  &flash_info[0]);
 
     /* third to 10th, 0x0c000 - 0xdffff */
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_FLASH_BASE + 0x0c000,
-                 CFG_FLASH_BASE + 0xe0000 - 1,
+                 CONFIG_SYS_FLASH_BASE + 0x0c000,
+                 CONFIG_SYS_FLASH_BASE + 0xe0000 - 1,
                  &flash_info[0]);
 #else
     flash_protect(FLAG_PROTECT_SET,
-                 CFG_FLASH_BASE,
-                 CFG_FLASH_BASE + monitor_flash_len - 1,
+                 CONFIG_SYS_FLASH_BASE,
+                 CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                  &flash_info[0]);
 
     flash_protect(FLAG_PROTECT_SET,
@@ -253,7 +253,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                result = *addr;
 
                /* check timeout */
-               if (get_timer_masked() > CFG_FLASH_ERASE_TOUT)
+               if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT)
                {
                    MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                    chip1 = TMO;
@@ -358,7 +358,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        result = *addr;
 
        /* check timeout */
-       if (get_timer_masked() > CFG_FLASH_ERASE_TOUT)
+       if (get_timer_masked() > CONFIG_SYS_FLASH_ERASE_TOUT)
        {
            chip1 = ERR | TMO;
            break;
index d653763285ed58baec88f7b8747f4d845af32305..8053da481acaf236633f2815f020c65981328880 100644 (file)
@@ -133,7 +133,7 @@ int checkboard (void)
 int power_on_reset(void)
 {
     /* Test Reset Status Register */
-    return ((volatile immap_t *)CFG_IMMR)->im_clkrst.car_rsr & RSR_CSRS ? 0:1;
+    return ((volatile immap_t *)CONFIG_SYS_IMMR)->im_clkrst.car_rsr & RSR_CSRS ? 0:1;
 }
 
 #define PB_LED_GREEN   0x10000         /* red LED is on PB.15 */
@@ -142,7 +142,7 @@ int power_on_reset(void)
 
 static void init_leds (void)
 {
-    volatile immap_t *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t *immap  = (immap_t *)CONFIG_SYS_IMMR;
 
     immap->im_cpm.cp_pbpar &= ~PB_LEDS;
     immap->im_cpm.cp_pbodr &= ~PB_LEDS;
@@ -157,7 +157,7 @@ static void init_leds (void)
 
 phys_size_t initdram (int board_type)
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
     long int size8, size9;
     long int size = 0;
@@ -171,7 +171,7 @@ phys_size_t initdram (int board_type)
      * with two SDRAM banks or four cycles every 31.2 us with one
      * bank. It will be adjusted after memory sizing.
      */
-    memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+    memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
     memctl->memc_mar  = 0x00000088;
 
@@ -180,10 +180,10 @@ phys_size_t initdram (int board_type)
      * preliminary addresses - these have to be modified after the
      * SDRAM size has been determined.
      */
-    memctl->memc_or2 = CFG_OR2_PRELIM;
-    memctl->memc_br2 = CFG_BR2_PRELIM;
+    memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+    memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
-    memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE)); /* no refresh yet */
+    memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE)); /* no refresh yet */
 
     udelay(200);
 
@@ -203,21 +203,21 @@ phys_size_t initdram (int board_type)
      *
      * try 8 column mode
      */
-    size8 = dram_size (CFG_MAMR_8COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
+    size8 = dram_size (CONFIG_SYS_MAMR_8COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
 
     udelay (1000);
 
     /*
      * try 9 column mode
      */
-    size9 = dram_size (CFG_MAMR_9COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
+    size9 = dram_size (CONFIG_SYS_MAMR_9COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
 
     if (size8 < size9) {               /* leave configuration at 9 columns     */
        size = size9;
 /*     debug ("SDRAM in 9 column mode: %ld MB\n", size >> 20); */
     } else {                           /* back to 8 columns                    */
        size = size8;
-       memctl->memc_mamr = CFG_MAMR_8COL;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
        udelay(500);
 /*     debug ("SDRAM in 8 column mode: %ld MB\n", size >> 20); */
     }
@@ -230,7 +230,7 @@ phys_size_t initdram (int board_type)
      */
     if (size < 0x02000000) {
        /* reduce to 15.6 us (62.4 us / quad) */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
        udelay(1000);
     }
 
@@ -238,13 +238,13 @@ phys_size_t initdram (int board_type)
      * Final mapping
      */
 
-    memctl->memc_or2 = ((-size) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-    memctl->memc_br2 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+    memctl->memc_or2 = ((-size) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+    memctl->memc_br2 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
 
     /* adjust refresh rate depending on SDRAM type, one bank */
     reg = memctl->memc_mptpr;
-    reg >>= 1; /* reduce to CFG_MPTPR_1BK_8K / _4K */
+    reg >>= 1; /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
     memctl->memc_mptpr = reg;
 
     can_driver_enable ();
@@ -263,7 +263,7 @@ phys_size_t initdram (int board_type)
  */
 void can_driver_enable (void)
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
 
     /* Initialize MBMR */
@@ -302,13 +302,13 @@ void can_driver_enable (void)
     memctl->memc_mcr = 0x011C | UPMB;
 
     /* Initialize OR3 / BR3 for CAN Bus Controller */
-    memctl->memc_or3 = CFG_OR3_CAN;
-    memctl->memc_br3 = CFG_BR3_CAN;
+    memctl->memc_or3 = CONFIG_SYS_OR3_CAN;
+    memctl->memc_br3 = CONFIG_SYS_BR3_CAN;
 }
 
 void can_driver_disable (void)
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
 
     /* Reset OR3 / BR3 to disable  CAN Bus Controller */
@@ -331,7 +331,7 @@ void can_driver_disable (void)
 
 static long int dram_size (long int mamr_value, long int *base, long int maxsize)
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
 
     memctl->memc_mamr = mamr_value;
@@ -341,24 +341,24 @@ static long int dram_size (long int mamr_value, long int *base, long int maxsize
 
 /* ------------------------------------------------------------------------- */
 
-#define        ETH_CFG_BITS    (CFG_PB_ETH_CFG1 | CFG_PB_ETH_CFG2  | CFG_PB_ETH_CFG3 )
+#define        ETH_CFG_BITS    (CONFIG_SYS_PB_ETH_CFG1 | CONFIG_SYS_PB_ETH_CFG2  | CONFIG_SYS_PB_ETH_CFG3 )
 
-#define ETH_ALL_BITS   (ETH_CFG_BITS | CFG_PB_ETH_POWERDOWN)
+#define ETH_ALL_BITS   (ETH_CFG_BITS | CONFIG_SYS_PB_ETH_POWERDOWN)
 
 void   reset_phy(void)
 {
-       immap_t *immr = (immap_t *)CFG_IMMR;
+       immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        ulong value;
 
        /* Configure all needed port pins for GPIO */
-#ifdef CFG_ETH_MDDIS_VALUE
-       immr->im_ioport.iop_padat |=   CFG_PA_ETH_MDDIS;
+#ifdef CONFIG_SYS_ETH_MDDIS_VALUE
+       immr->im_ioport.iop_padat |=   CONFIG_SYS_PA_ETH_MDDIS;
 #else
-       immr->im_ioport.iop_padat &= ~(CFG_PA_ETH_MDDIS | CFG_PA_ETH_RESET);    /* Set low */
+       immr->im_ioport.iop_padat &= ~(CONFIG_SYS_PA_ETH_MDDIS | CONFIG_SYS_PA_ETH_RESET);      /* Set low */
 #endif
-       immr->im_ioport.iop_papar &= ~(CFG_PA_ETH_MDDIS | CFG_PA_ETH_RESET);    /* GPIO */
-       immr->im_ioport.iop_paodr &= ~(CFG_PA_ETH_MDDIS | CFG_PA_ETH_RESET);    /* active output */
-       immr->im_ioport.iop_padir |=   CFG_PA_ETH_MDDIS | CFG_PA_ETH_RESET;     /* output */
+       immr->im_ioport.iop_papar &= ~(CONFIG_SYS_PA_ETH_MDDIS | CONFIG_SYS_PA_ETH_RESET);      /* GPIO */
+       immr->im_ioport.iop_paodr &= ~(CONFIG_SYS_PA_ETH_MDDIS | CONFIG_SYS_PA_ETH_RESET);      /* active output */
+       immr->im_ioport.iop_padir |=   CONFIG_SYS_PA_ETH_MDDIS | CONFIG_SYS_PA_ETH_RESET;       /* output */
 
        immr->im_cpm.cp_pbpar &= ~(ETH_ALL_BITS);       /* GPIO */
        immr->im_cpm.cp_pbodr &= ~(ETH_ALL_BITS);       /* active output */
@@ -366,23 +366,23 @@ void      reset_phy(void)
        value  = immr->im_cpm.cp_pbdat;
 
        /* Assert Powerdown and Reset signals */
-       value |=  CFG_PB_ETH_POWERDOWN;
+       value |=  CONFIG_SYS_PB_ETH_POWERDOWN;
 
        /* PHY configuration includes MDDIS and CFG1 ... CFG3 */
-#ifdef CFG_ETH_CFG1_VALUE
-       value |=   CFG_PB_ETH_CFG1;
+#ifdef CONFIG_SYS_ETH_CFG1_VALUE
+       value |=   CONFIG_SYS_PB_ETH_CFG1;
 #else
-       value &= ~(CFG_PB_ETH_CFG1);
+       value &= ~(CONFIG_SYS_PB_ETH_CFG1);
 #endif
-#ifdef CFG_ETH_CFG2_VALUE
-       value |=   CFG_PB_ETH_CFG2;
+#ifdef CONFIG_SYS_ETH_CFG2_VALUE
+       value |=   CONFIG_SYS_PB_ETH_CFG2;
 #else
-       value &= ~(CFG_PB_ETH_CFG2);
+       value &= ~(CONFIG_SYS_PB_ETH_CFG2);
 #endif
-#ifdef CFG_ETH_CFG3_VALUE
-       value |=   CFG_PB_ETH_CFG3;
+#ifdef CONFIG_SYS_ETH_CFG3_VALUE
+       value |=   CONFIG_SYS_PB_ETH_CFG3;
 #else
-       value &= ~(CFG_PB_ETH_CFG3);
+       value &= ~(CONFIG_SYS_PB_ETH_CFG3);
 #endif
 
        /* Drive output signals to initial state */
@@ -391,11 +391,11 @@ void      reset_phy(void)
        udelay (10000);
 
        /* De-assert Ethernet Powerdown */
-       immr->im_cpm.cp_pbdat &= ~(CFG_PB_ETH_POWERDOWN); /* Enable PHY power */
+       immr->im_cpm.cp_pbdat &= ~(CONFIG_SYS_PB_ETH_POWERDOWN); /* Enable PHY power */
        udelay (10000);
 
        /* de-assert RESET signal of PHY */
-       immr->im_ioport.iop_padat |= CFG_PA_ETH_RESET;
+       immr->im_ioport.iop_padat |= CONFIG_SYS_PA_ETH_RESET;
        udelay (1000);
 }
 
index 9c32785b482640bb93cf5bdc146985b34a4ccbd8..ad1ed793dee6f17c53b57a2ff37773a643c12d81 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,13 +38,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -75,38 +75,38 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
        if (size_b1) {
-               memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
-               memctl->memc_br1 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
+               memctl->memc_br1 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                    BR_MS_GPCM | BR_V;
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                          &flash_info[1]);
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
        } else {
@@ -419,7 +419,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long*)(info->start[l_sect]);
        while ((addr[0] & 0x00800080) != 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -542,7 +542,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 11b97bcaa396546b9eafd93cbb801cbcb2571fd4..50b08abce7dece1e243481f2e556d33d51062f0e 100644 (file)
@@ -31,7 +31,7 @@
 
 fpga_t fpga_list[] = {
     { "PUMA" , PUMA_CONF_BASE ,
-      CFG_PC_PUMA_INIT , CFG_PC_PUMA_PROG , CFG_PC_PUMA_DONE  }
+      CONFIG_SYS_PC_PUMA_INIT , CONFIG_SYS_PC_PUMA_PROG , CONFIG_SYS_PC_PUMA_DONE  }
 };
 int fpga_count = sizeof(fpga_list) / sizeof(fpga_t);
 
@@ -90,7 +90,7 @@ const uint puma_table[] =
 
 ulong fpga_control (fpga_t* fpga, int cmd)
 {
-    volatile immap_t     *immr  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immr  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immr->im_memctl;
 
     switch (cmd) {
index 9c0ff02783405e44b2c1104939f5ba680f30409b..e9e7f8472aa90774684a23cb0121eac9288a9901 100644 (file)
@@ -102,7 +102,7 @@ const uint sdram_table[] = {
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        volatile iop8xx_t *iop = &immap->im_ioport;
        volatile fec_t *fecp = &immap->im_cpm.cp_fec;
@@ -117,7 +117,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        memctl->memc_mar = 0x00000088;
 
@@ -126,10 +126,10 @@ phys_size_t initdram (int board_type)
         * preliminary addresses - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR & (~(MAMR_PTAE));  /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR & (~(MAMR_PTAE));   /* no refresh yet */
 
        udelay (200);
 
@@ -155,20 +155,20 @@ phys_size_t initdram (int board_type)
         * Check Bank 0 Memory Size for re-configuration
         *
         */
-       size = dram_size (CFG_MAMR, (long *) SDRAM_BASE_PRELIM,
+       size = dram_size (CONFIG_SYS_MAMR, (long *) SDRAM_BASE_PRELIM,
                          SDRAM_MAX_SIZE);
 
        udelay (1000);
 
 
-       memctl->memc_mamr = CFG_MAMR;
+       memctl->memc_mamr = CONFIG_SYS_MAMR;
        udelay (1000);
 
        /*
         * Final mapping
         */
-       memctl->memc_or2 = ((-size) & 0xFFFF0000) | CFG_OR2_PRELIM;
-       memctl->memc_br2 = ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V);
+       memctl->memc_or2 = ((-size) & 0xFFFF0000) | CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V);
 
        udelay (10000);
 
@@ -195,7 +195,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -219,7 +219,7 @@ void board_serial_init (void)
 
 void board_ether_init (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile iop8xx_t *iop = &immap->im_ioport;
        volatile fec_t *fecp = &immap->im_cpm.cp_fec;
 
@@ -230,7 +230,7 @@ void board_ether_init (void)
 
 int board_early_init_f (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpmtimer8xx_t *timers = &immap->im_cpmtimer;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        volatile iop8xx_t *iop = &immap->im_ioport;
@@ -261,7 +261,7 @@ int board_early_init_f (void)
 void board_get_enetaddr (uchar * addr)
 {
        int i;
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cpm = &immap->im_cpm;
        unsigned int rccrtmp;
 
index 1b27f336b2bde4b217ce8f139601227c960ee40e..d1b75bca3e7d01d6e180da1b1653af0b282978d5 100644 (file)
@@ -57,7 +57,7 @@ void   atmUtpInit(void);
  ****************************************************************************/
 int atmLoad()
 {
-  volatile immap_t       *immap  = (immap_t *)CFG_IMMR;
+  volatile immap_t       *immap  = (immap_t *)CONFIG_SYS_IMMR;
   volatile cpmtimer8xx_t *timers = &immap->im_cpmtimer;
   volatile iop8xx_t      *iop    = &immap->im_ioport;
 
@@ -91,7 +91,7 @@ int atmLoad()
  ****************************************************************************/
 void atmUnload()
 {
-  volatile immap_t       *immap  = (immap_t *)CFG_IMMR;
+  volatile immap_t       *immap  = (immap_t *)CONFIG_SYS_IMMR;
   volatile cpmtimer8xx_t *timers = &immap->im_cpmtimer;
   volatile iop8xx_t      *iop    = &immap->im_ioport;
 
@@ -141,11 +141,11 @@ void atmUnload()
 int atmMemInit()
 {
   int i;
-  unsigned immr = CFG_IMMR;
+  unsigned immr = CONFIG_SYS_IMMR;
   int total_num_rbd = 0;
   int total_num_tbd = 0;
 
-  memset((char *)CFG_IMMR + 0x2000 + ATM_DPRAM_BEGIN, 0x00, ATM_DPRAM_SIZE);
+  memset((char *)CONFIG_SYS_IMMR + 0x2000 + ATM_DPRAM_BEGIN, 0x00, ATM_DPRAM_SIZE);
 
   g_atm.csram_size = NUM_INT_ENTRIES * SIZE_OF_INT_ENTRY;
 
@@ -226,11 +226,11 @@ void atmIntInit()
 void atmApcInit()
 {
   int i;
-  /* unsigned immr = CFG_IMMR; */
-  uint16 * mphypt_ptr = MPHYPT_PTR(CFG_IMMR);
-  struct apc_params_t * apcp_ptr = APCP_PTR(CFG_IMMR);
-  uint16 * apct_prio1_ptr = APCT1_PTR(CFG_IMMR);
-  uint16 * tq_ptr = TQ_PTR(CFG_IMMR);
+  /* unsigned immr = CONFIG_SYS_IMMR; */
+  uint16 * mphypt_ptr = MPHYPT_PTR(CONFIG_SYS_IMMR);
+  struct apc_params_t * apcp_ptr = APCP_PTR(CONFIG_SYS_IMMR);
+  uint16 * apct_prio1_ptr = APCT1_PTR(CONFIG_SYS_IMMR);
+  uint16 * tq_ptr = TQ_PTR(CONFIG_SYS_IMMR);
   /***************************************************/
   /* Initialize MPHY Pointing Table (only one entry) */
   /***************************************************/
@@ -290,7 +290,7 @@ void atmApcInit()
  ****************************************************************************/
 void atmAmtInit()
 {
-  unsigned immr = CFG_IMMR;
+  unsigned immr = CONFIG_SYS_IMMR;
 
   g_atm.am_top = AM_PTR(immr);
   g_atm.ap_top = AP_PTR(immr);
@@ -315,7 +315,7 @@ void atmAmtInit()
  ****************************************************************************/
 void atmCpmInit()
 {
-  unsigned immr = CFG_IMMR;
+  unsigned immr = CONFIG_SYS_IMMR;
 
   memset((char *)immr + 0x3F00, 0x00, 0xC0);
 
@@ -551,7 +551,7 @@ void atmCpmInit()
  ****************************************************************************/
 void atmUtpInit()
 {
-  volatile immap_t       *immap  = (immap_t *)CFG_IMMR;
+  volatile immap_t       *immap  = (immap_t *)CONFIG_SYS_IMMR;
   volatile iop8xx_t      *iop    = &immap->im_ioport;
   volatile car8xx_t     *car    = &immap->im_clkrst;
   volatile cpm8xx_t     *cpm    = &immap->im_cpm;
index 71b049725d3e2740fe1aaa3db43e7227fb55b1af..cd5b45e869b2b5864b62ae36a0b8c5ef2db34b6e 100644 (file)
@@ -6,9 +6,9 @@ typedef volatile unsigned short vuint16;
 typedef volatile unsigned int vuint32;
 
 
-#define DPRAM_ATM CFG_IMMR + 0x3000
+#define DPRAM_ATM CONFIG_SYS_IMMR + 0x3000
 
-#define ATM_DPRAM_BEGIN  (DPRAM_ATM - CFG_IMMR - 0x2000)
+#define ATM_DPRAM_BEGIN  (DPRAM_ATM - CONFIG_SYS_IMMR - 0x2000)
 #define NUM_CONNECTIONS  1
 #define SAR_RXB_SIZE     1584
 #define AM_HMASK         0x0FFFFFF0
index 110858d3c3df7571dd3f9a7de612e7d9f397139d..c262e0f836244d126e959679f825cc27ba4bf910 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -38,13 +38,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-  volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+  volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
   volatile memctl8xx_t *memctl = &immap->im_memctl;
   unsigned long size;
   int i;
 
   /* Init: no FLASHes known */
-  for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+  for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
     flash_info[i].flash_id = FLASH_UNKNOWN;
   }
 
@@ -59,13 +59,13 @@ unsigned long flash_init (void)
 
 
   /* Remap FLASH according to real size */
-  memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size & 0xFFFF8000);
-  memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+  memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size & 0xFFFF8000);
+  memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
   /* Re-do sizing to get full correct info */
-  size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+  size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-  flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+  flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
   flash_info[0].size = size;
 
@@ -368,7 +368,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
   last  = start;
   addr = (vu_long*)(info->start[l_sect]);
   while ((addr[0] & 0x00800080) != 0x00800080) {
-    if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+    if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
       printf ("Timeout\n");
       return 1;
     }
@@ -491,7 +491,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
   /* data polling for D7 */
   start = get_timer (0);
   while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-    if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+    if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
       return (1);
     }
   }
index 855ae38f817879730283e975a33476a083ca7255..5d0898be6df4ff5bfcfd1563e5510180c19c2a70 100644 (file)
@@ -25,7 +25,7 @@
 # Siemens SCM boards
 #
 
-# This should be equal to the CFG_FLASH_BASE define in config_SCM.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in config_SCM.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index 500af923ac3218dce326388163c13632ad1d9698..4a6d5382bed73c236fa19fe8f9b65c1855e8e5a6 100644 (file)
@@ -31,7 +31,7 @@
 #define V_BYTE(a)      (*(volatile unsigned char *)( a ))
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 /*-----------------------------------------------------------------------
@@ -185,13 +185,13 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here (only one bank) */
 
-       size_b0 = flash_get_size (CFG_FLASH0_BASE, &flash_info[0]);
+       size_b0 = flash_get_size (CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size_b0 == 0) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                                size_b0, size_b0 >> 20);
@@ -201,10 +201,10 @@ unsigned long flash_init (void)
         * protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
@@ -364,7 +364,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        while ((V_ULONG (info->start[l_sect]) & 0x00800080) != 0x00800080 ||
               (V_ULONG (info->start[l_sect] + 4) & 0x00800080) != 0x00800080)
        {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -480,7 +480,7 @@ static int write_dword (flash_info_t * info, ulong dest, unsigned char *pdata)
        start = get_timer (0);
        while (((V_ULONG (dest) & 0x00800080) != (ch & 0x00800080)) ||
                   ((V_ULONG (dest + 4) & 0x00800080) != (cl & 0x00800080))) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 661bf66c66c76e5da45519f371ad49240ab3b46a..acd9c1570fc1c4d087899d066232544cec673a77 100644 (file)
 #include "../common/fpga.h"
 
 fpga_t fpga_list[] = {
-       {"FIOX", CFG_FIOX_BASE,
-        CFG_PD_FIOX_INIT, CFG_PD_FIOX_PROG, CFG_PD_FIOX_DONE}
+       {"FIOX", CONFIG_SYS_FIOX_BASE,
+        CONFIG_SYS_PD_FIOX_INIT, CONFIG_SYS_PD_FIOX_PROG, CONFIG_SYS_PD_FIOX_DONE}
        ,
-       {"FDOHM", CFG_FDOHM_BASE,
-        CFG_PD_FDOHM_INIT, CFG_PD_FDOHM_PROG, CFG_PD_FDOHM_DONE}
+       {"FDOHM", CONFIG_SYS_FDOHM_BASE,
+        CONFIG_SYS_PD_FDOHM_INIT, CONFIG_SYS_PD_FDOHM_PROG, CONFIG_SYS_PD_FDOHM_DONE}
 };
 int fpga_count = sizeof (fpga_list) / sizeof (fpga_t);
 
 
 ulong fpga_control (fpga_t * fpga, int cmd)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        switch (cmd) {
        case FPGA_INIT_IS_HIGH:
@@ -74,11 +74,11 @@ ulong fpga_control (fpga_t * fpga, int cmd)
                break;
 
        case FPGA_GET_ID:
-               if (fpga->conf_base == CFG_FIOX_BASE) {
+               if (fpga->conf_base == CONFIG_SYS_FIOX_BASE) {
                        ulong ver =
                                *(volatile ulong *) (fpga->conf_base + 0x10);
                        return ((ver >> 10) & 0xf) + ((ver >> 2) & 0xf0);
-               } else if (fpga->conf_base == CFG_FDOHM_BASE) {
+               } else if (fpga->conf_base == CONFIG_SYS_FDOHM_BASE) {
                        return (*(volatile ushort *) fpga->conf_base) & 0xff;
                } else {
                        return *(volatile ulong *) fpga->conf_base;
index 6a9dd25835a913cc865164756442a53ec724024a..e0611fe370d5817148d422be84b171a8ff35e5e1 100644 (file)
@@ -249,7 +249,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         */
        maxsize = (1 + (~orx | 0x7fff)) / 2;
 
-       /* Since CFG_SDRAM_BASE is always 0 (??), we assume that
+       /* Since CONFIG_SYS_SDRAM_BASE is always 0 (??), we assume that
         * we are configuring CS1 if base != 0
         */
        sdmr_ptr = base ? &memctl->memc_lsdmr : &memctl->memc_psdmr;
@@ -274,7 +274,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -285,7 +285,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -308,10 +308,10 @@ int power_on_reset (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        long size8, size9;
 #endif
        long psize, lsize;
@@ -319,8 +319,8 @@ phys_size_t initdram (int board_type)
        psize = 16 * 1024 * 1024;
        lsize = 0;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
 #if 0                                                  /* Just for debugging */
 #define        prt_br_or(brX,orX) do {                         \
@@ -338,37 +338,37 @@ phys_size_t initdram (int board_type)
        prt_br_or (br3, or3);
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR1_8COL,
-                                         (uchar *) CFG_SDRAM_BASE);
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR1_9COL,
-                                         (uchar *) CFG_SDRAM_BASE);
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR1_8COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR1_9COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
        if (size8 < size9) {
                psize = size9;
                printf ("(60x:9COL - %ld MB, ", psize >> 20);
        } else {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR1_8COL,
-                                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR1_8COL,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:8COL - %ld MB, ", psize >> 20);
        }
 
        /* Local SDRAM setup:
         */
-#ifdef CFG_INIT_LOCAL_SDRAM
-       memctl->memc_lsrt = CFG_LSRT;
-       size8 = try_init (memctl, CFG_LSDMR_8COL, CFG_OR2_8COL,
+#ifdef CONFIG_SYS_INIT_LOCAL_SDRAM
+       memctl->memc_lsrt = CONFIG_SYS_LSRT;
+       size8 = try_init (memctl, CONFIG_SYS_LSDMR_8COL, CONFIG_SYS_OR2_8COL,
                                          (uchar *) SDRAM_BASE2_PRELIM);
-       size9 = try_init (memctl, CFG_LSDMR_9COL, CFG_OR2_9COL,
+       size9 = try_init (memctl, CONFIG_SYS_LSDMR_9COL, CONFIG_SYS_OR2_9COL,
                                          (uchar *) SDRAM_BASE2_PRELIM);
 
        if (size8 < size9) {
                lsize = size9;
                printf ("Local:9COL - %ld MB) using ", lsize >> 20);
        } else {
-               lsize = try_init (memctl, CFG_LSDMR_8COL, CFG_OR2_8COL,
+               lsize = try_init (memctl, CONFIG_SYS_LSDMR_8COL, CONFIG_SYS_OR2_8COL,
                                                  (uchar *) SDRAM_BASE2_PRELIM);
                printf ("Local:8COL - %ld MB) using ", lsize >> 20);
        }
@@ -377,11 +377,11 @@ phys_size_t initdram (int board_type)
        /* Set up BR2 so that the local SDRAM goes
         * right after the 60x SDRAM
         */
-       memctl->memc_br2 = (CFG_BR2_PRELIM & ~BRx_BA_MSK) |
-                       (CFG_SDRAM_BASE + psize);
+       memctl->memc_br2 = (CONFIG_SYS_BR2_PRELIM & ~BRx_BA_MSK) |
+                       (CONFIG_SYS_SDRAM_BASE + psize);
 #endif
-#endif /* CFG_INIT_LOCAL_SDRAM */
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_INIT_LOCAL_SDRAM */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -394,17 +394,17 @@ phys_size_t initdram (int board_type)
 
 static void config_scoh_cs (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immr->im_memctl;
-       volatile can_reg_t *can = (volatile can_reg_t *) CFG_CAN0_BASE;
+       volatile can_reg_t *can = (volatile can_reg_t *) CONFIG_SYS_CAN0_BASE;
        volatile uint tmp, i;
 
        /* Initialize OR3 / BR3 for CAN Bus Controller 0 */
-       memctl->memc_or3 = CFG_CAN0_OR3;
-       memctl->memc_br3 = CFG_CAN0_BR3;
+       memctl->memc_or3 = CONFIG_SYS_CAN0_OR3;
+       memctl->memc_br3 = CONFIG_SYS_CAN0_BR3;
        /* Initialize OR4 / BR4 for CAN Bus Controller 1 */
-       memctl->memc_or4 = CFG_CAN1_OR4;
-       memctl->memc_br4 = CFG_CAN1_BR4;
+       memctl->memc_or4 = CONFIG_SYS_CAN1_OR4;
+       memctl->memc_br4 = CONFIG_SYS_CAN1_BR4;
 
        /* Initialize MAMR to write in the array at address 0x0 */
        memctl->memc_mamr = 0x00 | MxMR_OP_WARR | MxMR_GPL_x4DIS;
@@ -487,19 +487,19 @@ static void config_scoh_cs (void)
 
 
        /* Initialize OR5 / BR5 for the extended EEPROM Bank0 */
-       memctl->memc_or5 = CFG_EXTPROM_OR5;
-       memctl->memc_br5 = CFG_EXTPROM_BR5;
+       memctl->memc_or5 = CONFIG_SYS_EXTPROM_OR5;
+       memctl->memc_br5 = CONFIG_SYS_EXTPROM_BR5;
        /* Initialize OR6 / BR6 for the extended EEPROM Bank1 */
-       memctl->memc_or6 = CFG_EXTPROM_OR6;
-       memctl->memc_br6 = CFG_EXTPROM_BR6;
+       memctl->memc_or6 = CONFIG_SYS_EXTPROM_OR6;
+       memctl->memc_br6 = CONFIG_SYS_EXTPROM_BR6;
 
        /* Initialize OR7 / BR7 for the Glue Logic */
-       memctl->memc_or7 = CFG_FIOX_OR7;
-       memctl->memc_br7 = CFG_FIOX_BR7;
+       memctl->memc_or7 = CONFIG_SYS_FIOX_OR7;
+       memctl->memc_br7 = CONFIG_SYS_FIOX_BR7;
 
        /* Initialize OR8 / BR8 for the DOH Logic */
-       memctl->memc_or8 = CFG_FDOHM_OR8;
-       memctl->memc_br8 = CFG_FDOHM_BR8;
+       memctl->memc_or8 = CONFIG_SYS_FDOHM_OR8;
+       memctl->memc_br8 = CONFIG_SYS_FDOHM_BR8;
 
        DEBUGF ("OR0 %08x   BR0 %08x\n", memctl->memc_or0, memctl->memc_br0);
        DEBUGF ("OR1 %08x   BR1 %08x\n", memctl->memc_or1, memctl->memc_br1);
index ae64096f81147a9cd215fbbb9c74daa9916c9c2a..8cf17b8576c9bf5f91a1f7194cfcebf7da56c6bf 100644 (file)
@@ -25,8 +25,8 @@
 #include <asm/byteorder.h>
 #include <asm/arch/hardware.h>
 
-static unsigned long flash_addr_table[CFG_MAX_FLASH_BANKS] = CFG_FLASH_BANKS_LIST;
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+static unsigned long flash_addr_table[CONFIG_SYS_MAX_FLASH_BANKS] = CONFIG_SYS_FLASH_BANKS_LIST;
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 extern int lpc2292_copy_buffer_to_flash(flash_info_t *, ulong);
 extern int lpc2292_flash_erase(flash_info_t *, int, int);
@@ -172,19 +172,19 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
  * From here on is code for the external S29GL128N taken from cam5200_flash.c
  */
 
-#define CFG_FLASH_WORD_SIZE unsigned short
+#define CONFIG_SYS_FLASH_WORD_SIZE unsigned short
 
 static int wait_for_DQ7_32(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-               (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+               (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                       (CFG_FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                       (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -199,8 +199,8 @@ static int wait_for_DQ7_32(flash_info_t * info, int sect)
 
 int ext_flash_erase(flash_info_t * info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect, ret;
 
        ret = 0;
@@ -236,14 +236,14 @@ int ext_flash_erase(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00300030;    /* sector erase */
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00300030;     /* sector erase */
 
                        l_sect = sect;
                        /*
@@ -269,8 +269,8 @@ int ext_flash_erase(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;      /* reset bank */
 
        if (ret)
                printf(" error\n");
@@ -282,20 +282,20 @@ int ext_flash_erase(flash_info_t * info, int s_first, int s_last)
 static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 {
        short i;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00900090;
        udelay(1000);
 
        value = addr2[0];
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                        info->flash_id = FLASH_MAN_AMD;
                        break;
                default:
@@ -308,12 +308,12 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        value = addr2[1];       /* device ID            */
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE)AMD_ID_MIRROR:
+               case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_MIRROR:
                        value = addr2[14];
                        switch(value) {
-                               case (CFG_FLASH_WORD_SIZE)AMD_ID_GL128N_2:
+                               case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_GL128N_2:
                                        value = addr2[15];
-                                       if (value != (CFG_FLASH_WORD_SIZE)AMD_ID_GL128N_3) {
+                                       if (value != (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_GL128N_3) {
                                                info->flash_id = FLASH_UNKNOWN;
                                        } else {
                                                info->flash_id += FLASH_S29GL128N;
@@ -340,13 +340,13 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                info->protect[i] = addr2[2] & 1;
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
 
        return (info->size);
 }
@@ -354,11 +354,11 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 static unsigned long ext_flash_init(void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 1; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 1; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -384,9 +384,9 @@ static unsigned long ext_flash_init(void)
 
 static int write_word(flash_info_t * info, ulong dest, ushort data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) &data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) &data;
        ulong start;
        int flag;
 
@@ -398,9 +398,9 @@ static int write_word(flash_info_t * info, ulong dest, ushort data)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts();
 
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00A000A0;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00A000A0;
        *dest2 = *data2;
 
        /* re-enable interrupts if necessary */
@@ -409,10 +409,10 @@ static int write_word(flash_info_t * info, ulong dest, ushort data)
 
        /* data polling for D7 */
        start = get_timer(0);
-       while ((*dest2 & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                       (*data2 & (CFG_FLASH_WORD_SIZE) 0x00800080)) {
+       while ((*dest2 & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                       (*data2 & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080)) {
 
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        printf("WRITE_TOUT\n");
                        return (1);
                }
index 97b511e4d8a4c1a701399106f85e1793c9864b9e..3ce7bb329a62ab3d4bad741b80e21f2e266b18c3 100644 (file)
@@ -26,7 +26,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -47,7 +47,7 @@
 /*---------------------------------------------------------------------*/
 
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -68,20 +68,20 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
  */
 
 #define PCU_MONITOR_BASE   ( (flash_info[0].start[0] + flash_info[0].size - 1) \
-                          - (0xFFFFFFFF - CFG_MONITOR_BASE) )
+                          - (0xFFFFFFFF - CONFIG_SYS_MONITOR_BASE) )
 
 /*-----------------------------------------------------------------------
  */
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long base, size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -131,7 +131,7 @@ unsigned long flash_init (void)
 
        /* Remap FLASH according to real size */
        base = 0 - size_b0;
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & 0xFFFF8000);
        memctl->memc_br0 = (base & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V;
 
        DEBUGF("## BR0: 0x%08x    OR0: 0x%08x\n",
@@ -162,7 +162,7 @@ unsigned long flash_init (void)
        if (size_b1) {
                flash_info_t tmp_info;
 
-               memctl->memc_or6 = CFG_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
+               memctl->memc_or6 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
                memctl->memc_br6 = ((base - size_b1) & BR_BA_MSK) |
                                    BR_PS_16 | BR_MS_GPCM | BR_V;
 
@@ -437,10 +437,10 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 #endif
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        saddr = (vu_short *)info->start[0];
@@ -526,7 +526,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_short*)(info->start[l_sect]);
        while ((addr[0] & 0x0080) != 0x0080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -660,7 +660,7 @@ static int write_data (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
 
-       for (passed=0; passed < CFG_FLASH_WRITE_TOUT; passed=get_timer(start)) {
+       for (passed=0; passed < CONFIG_SYS_FLASH_WRITE_TOUT; passed=get_timer(start)) {
 
                sval = *sdest;
 
@@ -683,7 +683,7 @@ static int write_data (flash_info_t *info, ulong dest, ulong data)
                 dest, sval, sdata);
        }
 
-       if (passed >= CFG_FLASH_WRITE_TOUT) {
+       if (passed >= CONFIG_SYS_FLASH_WRITE_TOUT) {
                DEBUGF ("Timeout @ addr 0x%08lX: val %04X data %04X\n",
                        dest, sval, sdata);
                rc = 1;
index 5647f7af04f799e605d381621a2723366c17eaa0..a60c825b2b5fb693a197016eb4a9d24a4b8e4cc2 100644 (file)
@@ -158,7 +158,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
        long int size_b0, reg;
        int i;
@@ -169,7 +169,7 @@ phys_size_t initdram (int board_type)
        upmconfig (UPMA, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /* burst length=4, burst type=sequential, CAS latency=2 */
        memctl->memc_mar = 0x00000088;
@@ -178,15 +178,15 @@ phys_size_t initdram (int board_type)
         * Map controller bank 2 to the SDRAM bank at preliminary address.
         */
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
-       memctl->memc_or5 = CFG_OR5_PRELIM;
-       memctl->memc_br5 = CFG_BR5_PRELIM;
+       memctl->memc_or5 = CONFIG_SYS_OR5_PRELIM;
+       memctl->memc_br5 = CONFIG_SYS_BR5_PRELIM;
 #else  /* XXX */
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 #endif /* XXX */
 
        /* initialize memory address register */
-       memctl->memc_mamr = CFG_MAMR;   /* refresh not enabled yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR;    /* refresh not enabled yet */
 
        /* mode initialization (offset 5) */
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
@@ -241,12 +241,12 @@ phys_size_t initdram (int board_type)
         * Check Bank 0 Memory Size for re-configuration
         */
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
-       size_b0 = dram_size (CFG_MAMR, (long *) SDRAM_BASE5_PRELIM, SDRAM_MAX_SIZE);
+       size_b0 = dram_size (CONFIG_SYS_MAMR, (long *) SDRAM_BASE5_PRELIM, SDRAM_MAX_SIZE);
 #else  /* XXX */
-       size_b0 = dram_size (CFG_MAMR, (long *) SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
+       size_b0 = dram_size (CONFIG_SYS_MAMR, (long *) SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
 #endif /* XXX */
 
-       memctl->memc_mamr = CFG_MAMR | MAMR_PTAE;
+       memctl->memc_mamr = CONFIG_SYS_MAMR | MAMR_PTAE;
 
        /*
         * Final mapping:
@@ -254,10 +254,10 @@ phys_size_t initdram (int board_type)
 
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
        memctl->memc_or5 = ((-size_b0) & 0xFFFF0000) | SDRAM_TIMING;
-       memctl->memc_br5 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_br5 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 #else  /* XXX */
        memctl->memc_or2 = ((-size_b0) & 0xFFFF0000) | SDRAM_TIMING;
-       memctl->memc_br2 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+       memctl->memc_br2 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 #endif /* XXX */
        udelay (1000);
 
@@ -283,7 +283,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -294,29 +294,29 @@ static long int dram_size (long int mamr_value, long int *base,
 /* ------------------------------------------------------------------------- */
 
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
-#define        ETH_CFG_BITS    (CFG_PB_ETH_CFG1 | CFG_PB_ETH_CFG2  | CFG_PB_ETH_CFG3 )
+#define        ETH_CFG_BITS    (CONFIG_SYS_PB_ETH_CFG1 | CONFIG_SYS_PB_ETH_CFG2  | CONFIG_SYS_PB_ETH_CFG3 )
 #else  /* XXX */
-#define        ETH_CFG_BITS    (CFG_PB_ETH_MDDIS | CFG_PB_ETH_CFG1 | \
-                        CFG_PB_ETH_CFG2  | CFG_PB_ETH_CFG3 )
+#define        ETH_CFG_BITS    (CONFIG_SYS_PB_ETH_MDDIS | CONFIG_SYS_PB_ETH_CFG1 | \
+                        CONFIG_SYS_PB_ETH_CFG2  | CONFIG_SYS_PB_ETH_CFG3 )
 #endif /* XXX */
 
-#define ETH_ALL_BITS   (ETH_CFG_BITS | CFG_PB_ETH_POWERDOWN | CFG_PB_ETH_RESET)
+#define ETH_ALL_BITS   (ETH_CFG_BITS | CONFIG_SYS_PB_ETH_POWERDOWN | CONFIG_SYS_PB_ETH_RESET)
 
 void reset_phy (void)
 {
-       immap_t *immr = (immap_t *) CFG_IMMR;
+       immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        ulong value;
 
        /* Configure all needed port pins for GPIO */
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
-# ifdef CFG_ETH_MDDIS_VALUE
-       immr->im_ioport.iop_padat |= CFG_PA_ETH_MDDIS;
+# ifdef CONFIG_SYS_ETH_MDDIS_VALUE
+       immr->im_ioport.iop_padat |= CONFIG_SYS_PA_ETH_MDDIS;
 # else
-       immr->im_ioport.iop_padat &= ~(CFG_PA_ETH_MDDIS);       /* Set low */
+       immr->im_ioport.iop_padat &= ~(CONFIG_SYS_PA_ETH_MDDIS);        /* Set low */
 # endif
-       immr->im_ioport.iop_papar &= ~(CFG_PA_ETH_MDDIS);       /* GPIO */
-       immr->im_ioport.iop_paodr &= ~(CFG_PA_ETH_MDDIS);       /* active output */
-       immr->im_ioport.iop_padir |= CFG_PA_ETH_MDDIS;  /* output */
+       immr->im_ioport.iop_papar &= ~(CONFIG_SYS_PA_ETH_MDDIS);        /* GPIO */
+       immr->im_ioport.iop_paodr &= ~(CONFIG_SYS_PA_ETH_MDDIS);        /* active output */
+       immr->im_ioport.iop_padir |= CONFIG_SYS_PA_ETH_MDDIS;   /* output */
 #endif /* XXX */
        immr->im_cpm.cp_pbpar &= ~(ETH_ALL_BITS);       /* GPIO */
        immr->im_cpm.cp_pbodr &= ~(ETH_ALL_BITS);       /* active output */
@@ -324,31 +324,31 @@ void reset_phy (void)
        value = immr->im_cpm.cp_pbdat;
 
        /* Assert Powerdown and Reset signals */
-       value |= CFG_PB_ETH_POWERDOWN;
-       value &= ~(CFG_PB_ETH_RESET);
+       value |= CONFIG_SYS_PB_ETH_POWERDOWN;
+       value &= ~(CONFIG_SYS_PB_ETH_RESET);
 
        /* PHY configuration includes MDDIS and CFG1 ... CFG3 */
 #if !PCU_E_WITH_SWAPPED_CS
-# ifdef CFG_ETH_MDDIS_VALUE
-       value |= CFG_PB_ETH_MDDIS;
+# ifdef CONFIG_SYS_ETH_MDDIS_VALUE
+       value |= CONFIG_SYS_PB_ETH_MDDIS;
 # else
-       value &= ~(CFG_PB_ETH_MDDIS);
+       value &= ~(CONFIG_SYS_PB_ETH_MDDIS);
 # endif
 #endif
-#ifdef CFG_ETH_CFG1_VALUE
-       value |= CFG_PB_ETH_CFG1;
+#ifdef CONFIG_SYS_ETH_CFG1_VALUE
+       value |= CONFIG_SYS_PB_ETH_CFG1;
 #else
-       value &= ~(CFG_PB_ETH_CFG1);
+       value &= ~(CONFIG_SYS_PB_ETH_CFG1);
 #endif
-#ifdef CFG_ETH_CFG2_VALUE
-       value |= CFG_PB_ETH_CFG2;
+#ifdef CONFIG_SYS_ETH_CFG2_VALUE
+       value |= CONFIG_SYS_PB_ETH_CFG2;
 #else
-       value &= ~(CFG_PB_ETH_CFG2);
+       value &= ~(CONFIG_SYS_PB_ETH_CFG2);
 #endif
-#ifdef CFG_ETH_CFG3_VALUE
-       value |= CFG_PB_ETH_CFG3;
+#ifdef CONFIG_SYS_ETH_CFG3_VALUE
+       value |= CONFIG_SYS_PB_ETH_CFG3;
 #else
-       value &= ~(CFG_PB_ETH_CFG3);
+       value &= ~(CONFIG_SYS_PB_ETH_CFG3);
 #endif
 
        /* Drive output signals to initial state */
@@ -357,11 +357,11 @@ void reset_phy (void)
        udelay (10000);
 
        /* De-assert Ethernet Powerdown */
-       immr->im_cpm.cp_pbdat &= ~(CFG_PB_ETH_POWERDOWN);       /* Enable PHY power */
+       immr->im_cpm.cp_pbdat &= ~(CONFIG_SYS_PB_ETH_POWERDOWN);        /* Enable PHY power */
        udelay (10000);
 
        /* de-assert RESET signal of PHY */
-       immr->im_cpm.cp_pbdat |= CFG_PB_ETH_RESET;
+       immr->im_cpm.cp_pbdat |= CONFIG_SYS_PB_ETH_RESET;
        udelay (1000);
 }
 
@@ -414,7 +414,7 @@ U_BOOT_CMD (puma, 4, 1, do_puma,
 
 static void puma_set_mode (int mode)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
 
        /* disable PUMA in memory controller */
@@ -452,7 +452,7 @@ static void puma_set_mode (int mode)
 
 static void puma_load (ulong addr, ulong len)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile uchar *fpga_addr = (volatile uchar *) PUMA_CONF_BASE;  /* XXX ??? */
        uchar *data = (uchar *) addr;
        int i;
@@ -462,33 +462,33 @@ static void puma_load (ulong addr, ulong len)
                ++len;
 
        /* Reset FPGA */
-       immr->im_ioport.iop_pcpar &= ~(CFG_PC_PUMA_INIT);       /* make input */
-       immr->im_ioport.iop_pcso  &= ~(CFG_PC_PUMA_INIT);
-       immr->im_ioport.iop_pcdir &= ~(CFG_PC_PUMA_INIT);
+       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_PUMA_INIT);        /* make input */
+       immr->im_ioport.iop_pcso  &= ~(CONFIG_SYS_PC_PUMA_INIT);
+       immr->im_ioport.iop_pcdir &= ~(CONFIG_SYS_PC_PUMA_INIT);
 
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
-       immr->im_cpm.cp_pbpar &= ~(CFG_PB_PUMA_PROG);           /* GPIO */
-       immr->im_cpm.cp_pbodr &= ~(CFG_PB_PUMA_PROG);           /* active output */
-       immr->im_cpm.cp_pbdat &= ~(CFG_PB_PUMA_PROG);           /* Set low */
-       immr->im_cpm.cp_pbdir |=   CFG_PB_PUMA_PROG;            /* output */
+       immr->im_cpm.cp_pbpar &= ~(CONFIG_SYS_PB_PUMA_PROG);            /* GPIO */
+       immr->im_cpm.cp_pbodr &= ~(CONFIG_SYS_PB_PUMA_PROG);            /* active output */
+       immr->im_cpm.cp_pbdat &= ~(CONFIG_SYS_PB_PUMA_PROG);            /* Set low */
+       immr->im_cpm.cp_pbdir |=   CONFIG_SYS_PB_PUMA_PROG;             /* output */
 #else
-       immr->im_ioport.iop_papar &= ~(CFG_PA_PUMA_PROG);       /* GPIO */
-       immr->im_ioport.iop_padat &= ~(CFG_PA_PUMA_PROG);       /* Set low */
-       immr->im_ioport.iop_paodr &= ~(CFG_PA_PUMA_PROG);       /* active output */
-       immr->im_ioport.iop_padir |=   CFG_PA_PUMA_PROG;        /* output */
+       immr->im_ioport.iop_papar &= ~(CONFIG_SYS_PA_PUMA_PROG);        /* GPIO */
+       immr->im_ioport.iop_padat &= ~(CONFIG_SYS_PA_PUMA_PROG);        /* Set low */
+       immr->im_ioport.iop_paodr &= ~(CONFIG_SYS_PA_PUMA_PROG);        /* active output */
+       immr->im_ioport.iop_padir |=   CONFIG_SYS_PA_PUMA_PROG; /* output */
 #endif /* XXX */
        udelay (100);
 
 #if PCU_E_WITH_SWAPPED_CS      /* XXX */
-       immr->im_cpm.cp_pbdat |= CFG_PB_PUMA_PROG;      /* release reset */
+       immr->im_cpm.cp_pbdat |= CONFIG_SYS_PB_PUMA_PROG;       /* release reset */
 #else
-       immr->im_ioport.iop_padat |= CFG_PA_PUMA_PROG;  /* release reset */
+       immr->im_ioport.iop_padat |= CONFIG_SYS_PA_PUMA_PROG;   /* release reset */
 #endif /* XXX */
 
        /* wait until INIT indicates completion of reset */
        for (i = 0; i < PUMA_INIT_TIMEOUT; ++i) {
                udelay (1000);
-               if (immr->im_ioport.iop_pcdat & CFG_PC_PUMA_INIT)
+               if (immr->im_ioport.iop_pcdat & CONFIG_SYS_PC_PUMA_INIT)
                        break;
        }
        if (i == PUMA_INIT_TIMEOUT) {
@@ -519,14 +519,14 @@ static void puma_status (void)
 
 static int puma_init_done (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /* make sure pin is GPIO input */
-       immr->im_ioport.iop_pcpar &= ~(CFG_PC_PUMA_DONE);
-       immr->im_ioport.iop_pcso &= ~(CFG_PC_PUMA_DONE);
-       immr->im_ioport.iop_pcdir &= ~(CFG_PC_PUMA_DONE);
+       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_PUMA_DONE);
+       immr->im_ioport.iop_pcso &= ~(CONFIG_SYS_PC_PUMA_DONE);
+       immr->im_ioport.iop_pcdir &= ~(CONFIG_SYS_PC_PUMA_DONE);
 
-       return (immr->im_ioport.iop_pcdat & CFG_PC_PUMA_DONE) ? 1 : 0;
+       return (immr->im_ioport.iop_pcdat & CONFIG_SYS_PC_PUMA_DONE) ? 1 : 0;
 }
 
 /* ------------------------------------------------------------------------- */
index 3f2329966ab6ea2caaaabc64c1d8fa2c3b118037..a8dfca82461752e0f0adb61f1b2cb6f81ba50f3b 100644 (file)
@@ -28,7 +28,7 @@
  */
 #include <environment.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /* NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it
  *        has nothing to do with the flash chip being 8-bit or 16-bit.
@@ -56,7 +56,7 @@ static void flash_reset(flash_info_t *info);
 static int write_word_intel(flash_info_t *info, FPWV *dest, FPW data);
 static int write_word_amd(flash_info_t *info, FPWV *dest, FPW data);
 static void flash_get_offsets(ulong base, flash_info_t *info);
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 static void flash_sync_real_protect(flash_info_t *info);
 #endif
 
@@ -67,17 +67,17 @@ static void flash_sync_real_protect(flash_info_t *info);
  */
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
-       size_b = flash_get_size((FPW *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b = flash_get_size((FPW *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size_b;
 
@@ -91,20 +91,20 @@ unsigned long flash_init (void)
        /* Do this again (was done already in flast_get_size), just
         * in case we move it when remap the FLASH.
         */
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
        /* read the hardware protection status (if any) into the
         * protection array in flash_info.
         */
        flash_sync_real_protect(&flash_info[0]);
 #endif
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -405,7 +405,7 @@ ulong flash_get_size (FPWV *addr, flash_info_t *info)
        return (info->size);
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 
@@ -544,7 +544,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                udelay (1000);
 
                while ((*addr & (FPW)0x00800080) != (FPW)0x00800080) {
-                       if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
 
                                if (intel) {
@@ -663,7 +663,7 @@ static int write_word_amd (flash_info_t *info, FPWV *dest, FPW data)
 
     /* data polling for D7 */
     while (res == 0 && (*dest & (FPW)0x00800080) != (data & (FPW)0x00800080)) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            *dest = (FPW)0x00F000F0;    /* reset bank */
            res = 1;
        }
@@ -709,7 +709,7 @@ static int write_word_intel (flash_info_t *info, FPWV *dest, FPW data)
     start = get_timer (0);
 
     while (res == 0 && (*dest & (FPW)0x00800080) != (FPW)0x00800080) {
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            *dest = (FPW)0x00B000B0;    /* Suspend program      */
            res = 1;
        }
@@ -724,7 +724,7 @@ static int write_word_intel (flash_info_t *info, FPWV *dest, FPW data)
     return (res);
 }
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 /*-----------------------------------------------------------------------
  */
 int flash_real_protect (flash_info_t * info, long sector, int prot)
index dcd34726b00ad8a4c01b2cb6aeacc95d57174390..3ed581ec09ea8a207b5cd2cbf8d7a4bd49e736a7 100644 (file)
@@ -35,7 +35,7 @@
 
 #if defined(CONFIG_CMD_NAND)
 #include <linux/mtd/nand_legacy.h>
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 #endif
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -133,7 +133,7 @@ const uint duart_table[] =
 #define FPGA_DONE      0x0080  /* PA8, input, high when FPGA load complete */
 #define FPGA_PROGRAM_L 0x0040  /* PA9, output, low to reset, high to start */
 #define FPGA_INIT_L    0x0020  /* PA10, input, low indicates not ready */
-#define fpga (*(volatile unsigned char *)(CFG_FPGA_PROG))      /* FPGA port */
+#define fpga (*(volatile unsigned char *)(CONFIG_SYS_FPGA_PROG))       /* FPGA port */
 
 int board_postclk_init (void)
 {
@@ -143,7 +143,7 @@ int board_postclk_init (void)
 # include "fpgadata.c"
        };
 
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 #define porta (immap->im_ioport.iop_padat)
        const unsigned char* pdata;
@@ -247,10 +247,10 @@ int board_postclk_init (void)
 /* ------------------------------------------------------------------------- */
 
 /* base address for SRAM, assume 32-bit port,  valid */
-#define NVRAM_BR_VALUE   (CFG_SRAM_BASE | BR_PS_32 | BR_V)
+#define NVRAM_BR_VALUE   (CONFIG_SYS_SRAM_BASE | BR_PS_32 | BR_V)
 
 /*  up to 64MB - will be adjusted for actual size */
-#define NVRAM_OR_PRELIM  (ORMASK(CFG_SRAM_SIZE) \
+#define NVRAM_OR_PRELIM  (ORMASK(CONFIG_SYS_SRAM_SIZE) \
        | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_5_CLK | OR_EHTR)
 /*
  * Miscellaneous platform dependent initializations after running in RAM.
@@ -258,7 +258,7 @@ int board_postclk_init (void)
 
 int misc_init_r (void)
 {
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        char* s;
        char* e;
@@ -271,7 +271,7 @@ int misc_init_r (void)
        /* Is there any SRAM? Is it 16 or 32 bits wide? */
 
        /* First look for 32-bit SRAM */
-       bd->bi_sramsize = ram_size((ulong*)CFG_SRAM_BASE, CFG_SRAM_SIZE);
+       bd->bi_sramsize = ram_size((ulong*)CONFIG_SYS_SRAM_BASE, CONFIG_SYS_SRAM_SIZE);
 
        if (bd->bi_sramsize == 0) {
            /* no 32-bit SRAM, but there could be 16-bit SRAM since
@@ -279,7 +279,7 @@ int misc_init_r (void)
             * Try again with a 16-bit bus.
             */
            memctl->memc_br2 |= BR_PS_16;
-           bd->bi_sramsize = ram_size((ulong*)CFG_SRAM_BASE, CFG_SRAM_SIZE);
+           bd->bi_sramsize = ram_size((ulong*)CONFIG_SYS_SRAM_BASE, CONFIG_SYS_SRAM_SIZE);
        }
 
        if (bd->bi_sramsize == 0) {
@@ -288,7 +288,7 @@ int misc_init_r (void)
        else {
            /* adjust or2 for actual size of SRAM */
            memctl->memc_or2 |= ORMASK(bd->bi_sramsize);
-           bd->bi_sramstart = CFG_SRAM_BASE;
+           bd->bi_sramstart = CONFIG_SYS_SRAM_BASE;
            printf("SRAM:  %lu KB\n", bd->bi_sramsize >> 10);
        }
 
@@ -330,7 +330,7 @@ int misc_init_r (void)
 #if defined(CONFIG_CMD_NAND)
 void nand_init(void)
 {
-       unsigned long totlen = nand_probe(CFG_DFLASH_BASE);
+       unsigned long totlen = nand_probe(CONFIG_SYS_DFLASH_BASE);
 
        printf ("%4lu MB\n", totlen >> 20);
 }
@@ -498,7 +498,7 @@ const uint sdram_table[] =
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        uint size_sdram = 0;
        uint size_sdram9 = 0;
index c787bfb94f10d8699e86d73fff60e37ac7063498..4455b6387d37686914c833a17b9492a7d682d0e1 100644 (file)
@@ -27,7 +27,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -43,7 +43,7 @@
 #define PARAM_SECT23_SIZE 0x8000
 #define PARAM_SECT4_SIZE 0x10000
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static int write_data (flash_info_t *info, ulong dest, ulong *data);
 static void write_via_fpu(vu_long *addr, ulong *data);
@@ -79,8 +79,8 @@ unsigned long flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
-               vu_long *addr = (vu_long *) (CFG_FLASH_BASE + i * FLASH_BANK_SIZE);
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
+               vu_long *addr = (vu_long *) (CONFIG_SYS_FLASH_BASE + i * FLASH_BANK_SIZE);
 
                write_via_fpu (&addr[0xaaa], precmd0);
                write_via_fpu (&addr[0x554], precmd1);
@@ -108,10 +108,10 @@ unsigned long flash_init (void)
                write_via_fpu (addr, cmdres);
 
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                for (j = 0; j < 32; j++) {
-                       flash_info[i].start[j] = CFG_FLASH_BASE +
+                       flash_info[i].start[j] = CONFIG_SYS_FLASH_BASE +
                                        i * FLASH_BANK_SIZE + j * MAIN_SECT_SIZE;
                }
                flash_info[i].start[32] =
@@ -125,22 +125,22 @@ unsigned long flash_init (void)
 
        /* Protect monitor and environment sectors
         */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE + FLASH_BANK_SIZE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE + FLASH_BANK_SIZE
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                        &flash_info[1]);
 #else
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 #endif
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
-#if CONFIG_ENV_ADDR >= CFG_FLASH_BASE + FLASH_BANK_SIZE
+#if CONFIG_ENV_ADDR >= CONFIG_SYS_FLASH_BASE + FLASH_BANK_SIZE
        flash_protect ( FLAG_PROTECT_SET,
                        CONFIG_ENV_ADDR,
                        CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[1]);
@@ -267,7 +267,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                        while (((addr[0] & 0x00800080) != 0x00800080) ||
                                   ((addr[1] & 0x00800080) != 0x00800080)) {
-                               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        write_via_fpu (addr, cmdersusp);
                                        write_via_fpu (addr, cmdres);
@@ -452,7 +452,7 @@ static int write_data (flash_info_t * info, ulong dest, ulong * data)
 
        while (((addr[0] & 0x00800080) != (data[0] & 0x00800080)) ||
               ((addr[1] & 0x00800080) != (data[1] & 0x00800080))) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        write_via_fpu (chip, cmdres);
                        return (1);
                }
index 25adc2832db1ee355697d92f8529aef80624a1d6..e849e013d3faaf18cd17727f28c9c531d60b89b9 100644 (file)
@@ -37,13 +37,13 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        long size;
        long new_bank0_end;
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size - 1;
        mear1 = mpc824x_mpc107_getreg(MEAR1);
@@ -57,7 +57,7 @@ phys_size_t initdram (int board_type)
 
        return (size);
 #else
-       return CFG_MAX_RAM_SIZE;
+       return CONFIG_SYS_MAX_RAM_SIZE;
 #endif
 }
 
index af46bf6780b1a20cb6f92205ef212df8cc3b1ff8..9eee60d0d13c35ebf62328d5496e529d37535aa4 100644 (file)
@@ -33,7 +33,7 @@
 #define FLASH_BANK_SIZE 0x1000000      /* 2 x   8 MB */
 #define MAIN_SECT_SIZE  0x40000                /* 2 x 128 kB */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 #define CMD_READ_ARRAY         0x00FF00FF
@@ -66,17 +66,17 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
                        (INTEL_MANUFACT     & FLASH_VENDMASK) |
                        (INTEL_ID_28F640J3A & FLASH_TYPEMASK);
                flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
-                       flashbase = CFG_FLASH_BASE;
+                       flashbase = CONFIG_SYS_FLASH_BASE;
                else
                        panic ("configured too many flash banks!\n");
                for (j = 0; j < flash_info[i].sector_count; j++) {
@@ -92,8 +92,8 @@ ulong flash_init (void)
         * Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -299,7 +299,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                        /* wait until flash is ready */
                        do {
                                /* check timeout */
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        *addr = CMD_STATUS_RESET;
                                        result = BIT_TIMEOUT;
                                        break;
@@ -394,7 +394,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
        /* wait until flash is ready */
        do {
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        *addr = CMD_SUSPEND;
                        result = BIT_TIMEOUT;
                        break;
index 32ae80d8aa0be22aa94e1d0d621b8bdad275971a..132d752e85453977c9713c5e4b48b5f83a5fe96c 100644 (file)
@@ -30,7 +30,7 @@ ulong myflush (void);
 #define FLASH_BANK_SIZE        PHYS_FLASH_SIZE
 #define MAIN_SECT_SIZE  0x10000        /* 64 KB */
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 #define CMD_READ_ARRAY         0x000000F0
@@ -41,8 +41,8 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 #define CMD_PROGRAM            0x000000A0
 #define CMD_UNLOCK_BYPASS      0x00000020
 
-#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CFG_FLASH_BASE + (0x00000555 << 1)))
-#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CFG_FLASH_BASE + (0x000002AA << 1)))
+#define MEM_FLASH_ADDR1                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555 << 1)))
+#define MEM_FLASH_ADDR2                (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA << 1)))
 
 #define BIT_ERASE_DONE         0x00000080
 #define BIT_RDY_MASK           0x00000080
@@ -61,7 +61,7 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                ulong flashbase = 0;
 
                flash_info[i].flash_id =
@@ -75,8 +75,8 @@ ulong flash_init (void)
 #error "Unknown flash configured"
 #endif
                        flash_info[i].size = FLASH_BANK_SIZE;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
                if (i == 0)
                        flashbase = PHYS_FLASH_1;
                else
@@ -111,8 +111,8 @@ ulong flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_FLASH_BASE,
-                      CFG_FLASH_BASE + monitor_flash_len - 1,
+                      CONFIG_SYS_FLASH_BASE,
+                      CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                       &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -236,7 +236,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                                /* check timeout */
                                if (get_timer_masked () >
-                                   CFG_FLASH_ERASE_TOUT) {
+                                   CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip = TMO;
                                        break;
@@ -332,7 +332,7 @@ static int write_hword (flash_info_t * info, ulong dest, ushort data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        chip = ERR | TMO;
                        break;
                }
index d2f169b88efcacd89f19dca290b43a3c0f1f5b6b..9e276a104a35ae59b3294f3778dbc694dc4bdaf1 100644 (file)
@@ -29,7 +29,7 @@
 #include <asm/u-boot.h>
 #include <asm/processor.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 
 #define FLASH_WORD_SIZE unsigned long
@@ -57,7 +57,7 @@ unsigned long flash_init (void)
        volatile FLASH_WORD_SIZE* flash_base;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -87,13 +87,13 @@ unsigned long flash_init (void)
        }
 
        /* Only one bank */
-       if (CFG_MAX_FLASH_BANKS == 1) {
+       if (CONFIG_SYS_MAX_FLASH_BANKS == 1) {
                /* Setup offsets */
                flash_get_offsets ((ulong)flash_base, &flash_info[0]);
 
                /* Monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE+CFG_MONITOR_LEN-1, &flash_info[0]);
+               (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1, &flash_info[0]);
                size_b1 = 0 ;
                flash_info[0].size = size_b0;
                return(size_b0);
@@ -125,8 +125,8 @@ unsigned long flash_init (void)
        flash_get_offsets (base_b0, &flash_info[0]);
 
        /* monitor protection ON by default */
-       (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-               CFG_MONITOR_BASE+CFG_MONITOR_LEN-1, &flash_info[0]);
+       (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+               CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1, &flash_info[0]);
 
        if (size_b1) {
                /* Re-do sizing to get full correct info */
@@ -134,11 +134,11 @@ unsigned long flash_init (void)
                flash_get_offsets (base_b1, &flash_info[1]);
 
                /* monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, base_b1+size_b1-CFG_MONITOR_LEN,
+               (void)flash_protect(FLAG_PROTECT_SET, base_b1+size_b1-CONFIG_SYS_MONITOR_LEN,
                        base_b1+size_b1-1, &flash_info[1]);
 
                /* monitor protection OFF by default (one is enough) */
-               (void)flash_protect(FLAG_PROTECT_CLEAR, base_b0+size_b0-CFG_MONITOR_LEN,
+               (void)flash_protect(FLAG_PROTECT_CLEAR, base_b0+size_b0-CONFIG_SYS_MONITOR_LEN,
                        base_b0+size_b0-1, &flash_info[0]);
        } else {
                flash_info[1].flash_id = FLASH_UNKNOWN;
@@ -480,7 +480,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        while ((addr[0] & (0x00800080&FLASH_ID_MASK)) !=
                        (0x00800080&FLASH_ID_MASK)  )
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -607,7 +607,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        start = get_timer(0);
 
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 2fbe8aeb51d64e8457f59579e399a051e15bfb6d..cc8eaad88c414cf3db7d075660d9fb543eff9b92 100644 (file)
@@ -146,7 +146,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
 
@@ -155,17 +155,17 @@ phys_size_t initdram (int board_type)
        /*
        * Prescaler for refresh
        */
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /*
        * Map controller bank 1 to the SDRAM address
        */
-       memctl->memc_or1 = CFG_OR1;
-       memctl->memc_br1 = CFG_BR1;
+       memctl->memc_or1 = CONFIG_SYS_OR1;
+       memctl->memc_br1 = CONFIG_SYS_BR1;
        udelay(1000);
 
        /* perform SDRAM initialization sequence */
-       memctl->memc_mamr = CFG_16M_MAMR;
+       memctl->memc_mamr = CONFIG_SYS_16M_MAMR;
        udelay(100);
 
        /* Program the SDRAM's Mode Register */
@@ -192,7 +192,7 @@ phys_size_t initdram (int board_type)
        /*
        * Check for 32M SDRAM Memory Size
        */
-       size = dram_size(CFG_32M_MAMR|MAMR_PTAE,
+       size = dram_size(CONFIG_SYS_32M_MAMR|MAMR_PTAE,
        (long *)SDRAM_BASE, SDRAM_32M_MAX_SIZE);
        udelay (1000);
 
@@ -200,7 +200,7 @@ phys_size_t initdram (int board_type)
        * Check for 16M SDRAM Memory Size
        */
        if (size != SDRAM_32M_MAX_SIZE) {
-       size = dram_size(CFG_16M_MAMR|MAMR_PTAE,
+       size = dram_size(CONFIG_SYS_16M_MAMR|MAMR_PTAE,
        (long *)SDRAM_BASE, SDRAM_16M_MAX_SIZE);
        udelay (1000);
        }
@@ -221,7 +221,7 @@ phys_size_t initdram (int board_type)
 
 static long int dram_size (long int mamr_value, long int *base, long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
index aa2e85605a093221cd60c768fd847679f29e32d2..2cb8dcb9d803ddad27b15549ac05957f18e883a5 100644 (file)
 #include <asm/u-boot.h>
 #include <asm/processor.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 
-#ifdef CFG_FLASH_16BIT
+#ifdef CONFIG_SYS_FLASH_16BIT
 #define FLASH_WORD_SIZE        unsigned short
 #define FLASH_ID_MASK  0xFFFF
 #else
@@ -46,7 +46,7 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
 /* stolen from esteem192e/flash.c */
 ulong flash_get_size (volatile FLASH_WORD_SIZE *addr, flash_info_t *info);
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 static int write_word (flash_info_t *info, ulong dest, ulong data);
 #else
 static int write_short (flash_info_t *info, ulong dest, ushort data);
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -79,20 +79,20 @@ unsigned long flash_init (void)
        }
 
        /* Only one bank */
-       if (CFG_MAX_FLASH_BANKS == 1) {
+       if (CONFIG_SYS_MAX_FLASH_BANKS == 1) {
                /* Setup offsets */
                flash_get_offsets (FLASH_BASE1_PRELIM, &flash_info[0]);
 
                /* Monitor protection ON by default */
 #if 0  /* sand: */
                (void)flash_protect(FLAG_PROTECT_SET,
-                       FLASH_BASE1_PRELIM-CFG_MONITOR_LEN+size_b0,
+                       FLASH_BASE1_PRELIM-CONFIG_SYS_MONITOR_LEN+size_b0,
                        FLASH_BASE1_PRELIM-1+size_b0,
                        &flash_info[0]);
 #else
                (void)flash_protect(FLAG_PROTECT_SET,
-                       CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE+CFG_MONITOR_LEN-1,
+                       CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1,
                        &flash_info[0]);
 #endif
                size_b1 = 0 ;
@@ -126,13 +126,13 @@ unsigned long flash_init (void)
                /* monitor protection ON by default */
 #if 0  /* sand: */
                (void)flash_protect(FLAG_PROTECT_SET,
-                       FLASH_BASE1_PRELIM-CFG_MONITOR_LEN+size_b0,
+                       FLASH_BASE1_PRELIM-CONFIG_SYS_MONITOR_LEN+size_b0,
                        FLASH_BASE1_PRELIM-1+size_b0,
                        &flash_info[0]);
 #else
                (void)flash_protect(FLAG_PROTECT_SET,
-                       CFG_MONITOR_BASE,
-                       CFG_MONITOR_BASE+CFG_MONITOR_LEN-1,
+                       CONFIG_SYS_MONITOR_BASE,
+                       CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN-1,
                        &flash_info[0]);
 #endif
 
@@ -144,12 +144,12 @@ unsigned long flash_init (void)
 
                        /* monitor protection ON by default */
                        (void)flash_protect(FLAG_PROTECT_SET,
-                               base_b1+size_b1-CFG_MONITOR_LEN,
+                               base_b1+size_b1-CONFIG_SYS_MONITOR_LEN,
                                base_b1+size_b1-1,
                                &flash_info[1]);
                        /* monitor protection OFF by default (one is enough) */
                        (void)flash_protect(FLAG_PROTECT_CLEAR,
-                               base_b0+size_b0-CFG_MONITOR_LEN,
+                               base_b0+size_b0-CONFIG_SYS_MONITOR_LEN,
                                base_b0+size_b0-1,
                                &flash_info[0]);
                } else {
@@ -182,7 +182,7 @@ static void flash_get_offsets (ulong base, flash_info_t *info)
        else if (info->flash_id & FLASH_BTYPE) {
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL) {
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                        /* set sector offsets for bottom boot block type */
                        info->start[0] = base + 0x00000000;
                        info->start[1] = base + 0x00004000;
@@ -234,7 +234,7 @@ static void flash_get_offsets (ulong base, flash_info_t *info)
                i = info->sector_count - 1;
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL) {
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                        info->start[i--] = base + info->size - 0x00004000;
                        info->start[i--] = base + info->size - 0x00008000;
                        info->start[i--] = base + info->size - 0x0000C000;
@@ -393,7 +393,7 @@ ulong flash_get_size (volatile FLASH_WORD_SIZE *addr, flash_info_t *info)
        /* Write auto select command: read Manufacturer ID */
 
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 
        /*
         * Note: if it is an AMD flash and the word at addr[0000]
@@ -650,7 +650,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts ();
        if (info->flash_id < FLASH_AMD_COMP) {
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                addr[0x0555] = 0x00AA00AA;
                addr[0x02AA] = 0x00550055;
                addr[0x0555] = 0x00800080;
@@ -690,7 +690,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                addr = (volatile FLASH_WORD_SIZE *) (info->start[l_sect]);
                while ((addr[0] & (0x00800080 & FLASH_ID_MASK)) !=
                       (0x00800080 & FLASH_ID_MASK)) {
-                       if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                return 1;
                        }
@@ -711,7 +711,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                for (sect = s_first; sect <= s_last; sect++) {
                        if (info->protect[sect] == 0) { /* not protected */
                                barf = 0;
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                                addr = (vu_long *) (info->start[sect]);
                                addr[0] = 0x00200020;
                                addr[0] = 0x00D000D0;
@@ -766,7 +766,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        flash_info_t *info;
        int i;
 
-       for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
+       for (i=0, info=&flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
                if ((addr >= info->start[0]) &&
                    (addr < (info->start[0] + info->size)) ) {
                        return (info);
@@ -843,7 +843,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
 int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
 {
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
        ulong cp, wp, data;
        int l;
 #else
@@ -852,7 +852,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
 #endif
        int i, rc;
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 
 
        wp = (addr & ~3);       /* get lower word aligned address */
@@ -979,7 +979,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
  * 1 - write timeout
  * 2 - Flash not erased
  */
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 static int write_word (flash_info_t *info, ulong dest, ulong data)
 {
        vu_long *addr = (vu_long*)(info->start[0]);
@@ -1015,13 +1015,13 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
 
        if(info->flash_id > FLASH_AMD_COMP) {
                while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
        } else {
                while(!(addr[0] & 0x00800080)) {        /* wait for error or finish */
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
 
@@ -1081,7 +1081,7 @@ static int write_short (flash_info_t *info, ulong dest, ushort data)
        if(info->flash_id < FLASH_AMD_COMP) {
                /* AMD stuff */
                while ((*((vu_short *)dest) & 0x0080) != (data & 0x0080)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -1089,7 +1089,7 @@ static int write_short (flash_info_t *info, ulong dest, ushort data)
        } else {
                /* intel stuff */
                while(!(addr[0] & 0x0080)){     /* wait for error or finish */
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) return (1);
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) return (1);
                }
 
                if( addr[0] & 0x003A) { /* check for error */
@@ -1103,7 +1103,7 @@ static int write_short (flash_info_t *info, ulong dest, ushort data)
                *addr = 0x00B0;
                *addr = 0x0070;
                while(!(addr[0] & 0x0080)){     /* wait for error or finish */
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) return (1);
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) return (1);
                }
                *addr = 0x00FF;
        }
index 17c93562173246bb550afdcaf46a5ee5d28dcee8..b272d80d9ca44ad5cba509d9b67db39176343127 100644 (file)
@@ -117,7 +117,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
 
@@ -131,12 +131,12 @@ phys_size_t initdram (int board_type)
        /*
        * Map controller bank 2 to the SDRAM address
        */
-       memctl->memc_or2 = CFG_OR2;
-       memctl->memc_br2 = CFG_BR2;
+       memctl->memc_or2 = CONFIG_SYS_OR2;
+       memctl->memc_br2 = CONFIG_SYS_BR2;
        udelay(200);
 
        /* perform SDRAM initialization sequence */
-       memctl->memc_mbmr = CFG_16M_MBMR;
+       memctl->memc_mbmr = CONFIG_SYS_16M_MBMR;
        udelay(100);
 
        memctl->memc_mar  = 0x00000088;
@@ -155,7 +155,7 @@ phys_size_t initdram (int board_type)
        /*
        * Check for 64M SDRAM Memory Size
        */
-       size = dram_size (CFG_64M_MBMR, (ulong *)SDRAM_BASE, SDRAM_64M_MAX_SIZE);
+       size = dram_size (CONFIG_SYS_64M_MBMR, (ulong *)SDRAM_BASE, SDRAM_64M_MAX_SIZE);
        udelay (1000);
 
        /*
@@ -163,7 +163,7 @@ phys_size_t initdram (int board_type)
        */
        if (size != SDRAM_64M_MAX_SIZE) {
 #endif
-       size = dram_size (CFG_16M_MBMR, (long *)SDRAM_BASE, SDRAM_16M_MAX_SIZE);
+       size = dram_size (CONFIG_SYS_16M_MBMR, (long *)SDRAM_BASE, SDRAM_16M_MAX_SIZE);
        udelay (1000);
 #if 0
        }
@@ -184,31 +184,31 @@ phys_size_t initdram (int board_type)
        /*
        * Map the 8M Intel Flash device to chip select 1
        */
-       memctl->memc_or1 = CFG_OR1;
-       memctl->memc_br1 = CFG_BR1;
+       memctl->memc_or1 = CONFIG_SYS_OR1;
+       memctl->memc_br1 = CONFIG_SYS_BR1;
 
 
        /*
        * Map 64K NVRAM, Sipex Device, NAND Ctl Reg, and LED Ctl Reg
        * to chip select 3
        */
-       memctl->memc_or3 = CFG_OR3;
-       memctl->memc_br3 = CFG_BR3;
+       memctl->memc_or3 = CONFIG_SYS_OR3;
+       memctl->memc_br3 = CONFIG_SYS_BR3;
 
        /*
        * Map chip selects 4, 5, 6, & 7 for external expansion connector
        */
-       memctl->memc_or4 = CFG_OR4;
-       memctl->memc_br4 = CFG_BR4;
+       memctl->memc_or4 = CONFIG_SYS_OR4;
+       memctl->memc_br4 = CONFIG_SYS_BR4;
 
-       memctl->memc_or5 = CFG_OR5;
-       memctl->memc_br5 = CFG_BR5;
+       memctl->memc_or5 = CONFIG_SYS_OR5;
+       memctl->memc_br5 = CONFIG_SYS_BR5;
 
-       memctl->memc_or6 = CFG_OR6;
-       memctl->memc_br6 = CFG_BR6;
+       memctl->memc_or6 = CONFIG_SYS_OR6;
+       memctl->memc_br6 = CONFIG_SYS_BR6;
 
-       memctl->memc_or7 = CFG_OR7;
-       memctl->memc_br7 = CFG_BR7;
+       memctl->memc_or7 = CONFIG_SYS_OR7;
+       memctl->memc_br7 = CONFIG_SYS_BR7;
 
 #endif
 
@@ -227,7 +227,7 @@ phys_size_t initdram (int board_type)
 
 static long int dram_size (long int mbmr_value, long int *base, long int maxsize)
 {
-       volatile immap_t *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mbmr = mbmr_value;
index 89b446f6a1aacfd9fcf920beda0b6596767d2fc7..71cff8cf0b99c1f1a7d9bf49e97a0bc377eb359e 100644 (file)
  */
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR),
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_LBC_FLASH_BASE, LAW_SIZE_64M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
-#if defined(CFG_FPGA_BASE)
-       SET_LAW(CFG_FPGA_BASE, LAWAR_SIZE_1M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_LBC_FLASH_BASE, LAW_SIZE_64M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
+#if defined(CONFIG_SYS_FPGA_BASE)
+       SET_LAW(CONFIG_SYS_FPGA_BASE, LAWAR_SIZE_1M, LAW_TRGT_IF_LBC),
 #endif
-       SET_LAW(CFG_LIME_BASE, LAWAR_SIZE_64M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LIME_BASE, LAWAR_SIZE_64M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 6ec53f872dc773b9f8616ce76fcbe3dcbbaeb69f..7d76f422224b227fe7a484bc313a98b394d405ac 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CFG_NAND_BASE)
+#if defined(CONFIG_SYS_NAND_BASE)
 #include <nand.h>
 #include <asm/errno.h>
 #include <asm/io.h>
index 12d1b8a738a23d3ee7fc4c1d82d63c632d88f12f..029ba029810943504b780c66c6a653d502ef997b 100644 (file)
@@ -41,7 +41,7 @@
  */
 long int sdram_setup(int casl)
 {
-       volatile ccsr_ddr_t *ddr = (void *)(CFG_MPC85xx_DDR_ADDR);
+       volatile ccsr_ddr_t *ddr = (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
 
        /*
         * Disable memory controller.
@@ -49,28 +49,28 @@ long int sdram_setup(int casl)
        ddr->cs0_config = 0;
        ddr->sdram_cfg = 0;
 
-       ddr->cs0_bnds = CFG_DDR_CS0_BNDS;
-       ddr->cs0_config = CFG_DDR_CS0_CONFIG;
-       ddr->timing_cfg_0 = CFG_DDR_TIMING_0;
-       ddr->timing_cfg_1 = CFG_DDR_TIMING_1;
-       ddr->timing_cfg_2 = CFG_DDR_TIMING_2;
-       ddr->sdram_mode = CFG_DDR_MODE;
-       ddr->sdram_interval = CFG_DDR_INTERVAL;
-       ddr->sdram_cfg_2 = CFG_DDR_CONFIG_2;
-       ddr->sdram_clk_cntl = CFG_DDR_CLK_CONTROL;
+       ddr->cs0_bnds = CONFIG_SYS_DDR_CS0_BNDS;
+       ddr->cs0_config = CONFIG_SYS_DDR_CS0_CONFIG;
+       ddr->timing_cfg_0 = CONFIG_SYS_DDR_TIMING_0;
+       ddr->timing_cfg_1 = CONFIG_SYS_DDR_TIMING_1;
+       ddr->timing_cfg_2 = CONFIG_SYS_DDR_TIMING_2;
+       ddr->sdram_mode = CONFIG_SYS_DDR_MODE;
+       ddr->sdram_interval = CONFIG_SYS_DDR_INTERVAL;
+       ddr->sdram_cfg_2 = CONFIG_SYS_DDR_CONFIG_2;
+       ddr->sdram_clk_cntl = CONFIG_SYS_DDR_CLK_CONTROL;
 
        asm ("sync;isync;msync");
        udelay(1000);
 
-       ddr->sdram_cfg = CFG_DDR_CONFIG;
+       ddr->sdram_cfg = CONFIG_SYS_DDR_CONFIG;
        asm ("sync; isync; msync");
        udelay(1000);
 
-       if (get_ram_size(0, CFG_SDRAM_SIZE<<20) == CFG_SDRAM_SIZE<<20) {
+       if (get_ram_size(0, CONFIG_SYS_SDRAM_SIZE<<20) == CONFIG_SYS_SDRAM_SIZE<<20) {
                /*
                 * OK, size detected -> all done
                 */
-               return CFG_SDRAM_SIZE<<20;
+               return CONFIG_SYS_SDRAM_SIZE<<20;
        }
 
        return 0;                               /* nothing found !              */
@@ -90,11 +90,11 @@ phys_size_t initdram (int board_type)
        return dram_size;
 }
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf ("SDRAM test phase 1:\n");
index 099117772648f8ac5c526b287f2823df404a7528..d83dc7d6a3fcd1d309c9f7cfdafe0ea952b959fa 100644 (file)
@@ -51,7 +51,7 @@ ulong flash_get_size (ulong base, int banknum);
 
 int checkboard (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
        char *src;
        int f;
@@ -87,7 +87,7 @@ int checkboard (void)
 
 int misc_init_r (void)
 {
-       volatile ccsr_lbc_t *memctl = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *memctl = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        /*
         * Adjust flash start and offset to detected values
@@ -98,20 +98,20 @@ int misc_init_r (void)
        /*
         * Check if boot FLASH isn't max size
         */
-       if (gd->bd->bi_flashsize < (0 - CFG_FLASH0)) {
-               memctl->or0 = gd->bd->bi_flashstart | (CFG_OR0_PRELIM & 0x00007fff);
-               memctl->br0 = gd->bd->bi_flashstart | (CFG_BR0_PRELIM & 0x00007fff);
+       if (gd->bd->bi_flashsize < (0 - CONFIG_SYS_FLASH0)) {
+               memctl->or0 = gd->bd->bi_flashstart | (CONFIG_SYS_OR0_PRELIM & 0x00007fff);
+               memctl->br0 = gd->bd->bi_flashstart | (CONFIG_SYS_BR0_PRELIM & 0x00007fff);
 
                /*
                 * Re-check to get correct base address
                 */
-               flash_get_size(gd->bd->bi_flashstart, CFG_MAX_FLASH_BANKS - 1);
+               flash_get_size(gd->bd->bi_flashstart, CONFIG_SYS_MAX_FLASH_BANKS - 1);
        }
 
        /*
         * Check if only one FLASH bank is available
         */
-       if (gd->bd->bi_flashsize != CFG_MAX_FLASH_BANKS * (0 - CFG_FLASH0)) {
+       if (gd->bd->bi_flashsize != CONFIG_SYS_MAX_FLASH_BANKS * (0 - CONFIG_SYS_FLASH0)) {
                memctl->or1 = 0;
                memctl->br1 = 0;
 
@@ -120,24 +120,24 @@ int misc_init_r (void)
                 */
                flash_protect (FLAG_PROTECT_CLEAR,
                               gd->bd->bi_flashstart, 0xffffffff,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Monitor protection ON by default */
                flash_protect (FLAG_PROTECT_SET,
-                              CFG_MONITOR_BASE, CFG_MONITOR_BASE + monitor_flash_len - 1,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Environment protection ON by default */
                flash_protect (FLAG_PROTECT_SET,
                               CONFIG_ENV_ADDR,
                               CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
                /* Redundant environment protection ON by default */
                flash_protect (FLAG_PROTECT_SET,
                               CONFIG_ENV_ADDR_REDUND,
                               CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SIZE_REDUND - 1,
-                              &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                              &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
        }
 
        return 0;
@@ -148,12 +148,12 @@ int misc_init_r (void)
  */
 void local_bus_init (void)
 {
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
-       volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
+       volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
        sys_info_t sysinfo;
        uint clkdiv;
        uint lbc_mhz;
-       uint lcrr = CFG_LBC_LCRR;
+       uint lcrr = CONFIG_SYS_LBC_LCRR;
 
        get_sys_info (&sysinfo);
        clkdiv = lbc->lcrr & 0x0f;
@@ -219,7 +219,7 @@ void pci_init_board (void)
 #ifdef CONFIG_BOARD_EARLY_INIT_R
 int board_early_init_r (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 
        /* set and reset the GPIO pin 2 which will reset the W83782G chip */
        out_8((unsigned char*)&gur->gpoutdr, 0x3F );
@@ -246,19 +246,19 @@ ft_board_setup(void *blob, bd_t *bd)
        val[i++] = gd->bd->bi_flashstart;
        val[i++] = gd->bd->bi_flashsize;
 
-       if (mb862xx.frameAdrs == CFG_LIME_BASE) {
+       if (mb862xx.frameAdrs == CONFIG_SYS_LIME_BASE) {
                /* Fixup LIME mapping */
                val[i++] = 2;                   /* chip select number */
                val[i++] = 0;                   /* always 0 */
-               val[i++] = CFG_LIME_BASE;
-               val[i++] = CFG_LIME_SIZE;
+               val[i++] = CONFIG_SYS_LIME_BASE;
+               val[i++] = CONFIG_SYS_LIME_SIZE;
        }
 
        /* Fixup FPGA mapping */
        val[i++] = 3;                           /* chip select number */
        val[i++] = 0;                           /* always 0 */
-       val[i++] = CFG_FPGA_BASE;
-       val[i++] = CFG_FPGA_SIZE;
+       val[i++] = CONFIG_SYS_FPGA_BASE;
+       val[i++] = CONFIG_SYS_FPGA_SIZE;
 
        rc = fdt_find_and_setprop(blob, "/localbus", "ranges",
                                  val, i * sizeof(u32), 1);
@@ -268,14 +268,14 @@ ft_board_setup(void *blob, bd_t *bd)
 }
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
 
-#define CFG_LIME_SRST          ((CFG_LIME_BASE) + 0x01FC002C)
-#define CFG_LIME_CCF           ((CFG_LIME_BASE) + 0x01FC0038)
-#define CFG_LIME_MMR           ((CFG_LIME_BASE) + 0x01FCFFFC)
+#define CONFIG_SYS_LIME_SRST           ((CONFIG_SYS_LIME_BASE) + 0x01FC002C)
+#define CONFIG_SYS_LIME_CCF            ((CONFIG_SYS_LIME_BASE) + 0x01FC0038)
+#define CONFIG_SYS_LIME_MMR            ((CONFIG_SYS_LIME_BASE) + 0x01FCFFFC)
 /* Lime clock frequency */
-#define CFG_LIME_CLK_100MHZ    0x00000
-#define CFG_LIME_CLK_133MHZ    0x10000
+#define CONFIG_SYS_LIME_CLK_100MHZ     0x00000
+#define CONFIG_SYS_LIME_CLK_133MHZ     0x10000
 /* SDRAM parameter */
-#define CFG_LIME_MMR_VALUE     0x4157BA63
+#define CONFIG_SYS_LIME_MMR_VALUE      0x4157BA63
 
 #define DISPLAY_WIDTH          800
 #define DISPLAY_HEIGHT         480
@@ -308,11 +308,11 @@ const gdc_regs *board_get_regs (void)
        return init_regs;
 }
 
-#define CFG_LIME_CID           ((CFG_LIME_BASE) + 0x01FC00F0)
-#define CFG_LIME_REV           ((CFG_LIME_BASE) + 0x01FF8084)
+#define CONFIG_SYS_LIME_CID            ((CONFIG_SYS_LIME_BASE) + 0x01FC00F0)
+#define CONFIG_SYS_LIME_REV            ((CONFIG_SYS_LIME_BASE) + 0x01FF8084)
 int lime_probe(void)
 {
-       volatile ccsr_lbc_t *memctl = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *memctl = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
        uint cfg_br2;
        uint cfg_or2;
        uint reg;
@@ -323,14 +323,14 @@ int lime_probe(void)
        /* Configure GPCM for CS2 */
        memctl->br2 = 0;
        memctl->or2 = 0xfc000410;
-       memctl->br2 = (CFG_LIME_BASE) | 0x00001901;
+       memctl->br2 = (CONFIG_SYS_LIME_BASE) | 0x00001901;
 
        /* Try to access GDC ID/Revision registers */
-       reg = in_be32((void *)CFG_LIME_CID);
-       reg = in_be32((void *)CFG_LIME_CID);
+       reg = in_be32((void *)CONFIG_SYS_LIME_CID);
+       reg = in_be32((void *)CONFIG_SYS_LIME_CID);
        if (reg == 0x303) {
-               reg = in_be32((void *)CFG_LIME_REV);
-               reg = in_be32((void *)CFG_LIME_REV);
+               reg = in_be32((void *)CONFIG_SYS_LIME_REV);
+               reg = in_be32((void *)CONFIG_SYS_LIME_REV);
                reg = ((reg & ~0xff) == 0x20050100) ? 1 : 0;
        } else
                reg = 0;
@@ -351,22 +351,22 @@ unsigned int board_video_init (void)
        /*
         * Reset Lime controller
         */
-       out_be32((void *)CFG_LIME_SRST, 0x1);
+       out_be32((void *)CONFIG_SYS_LIME_SRST, 0x1);
        udelay(200);
 
        /* Set Lime clock to 133MHz */
-       out_be32((void *)CFG_LIME_CCF, CFG_LIME_CLK_133MHZ);
+       out_be32((void *)CONFIG_SYS_LIME_CCF, CONFIG_SYS_LIME_CLK_133MHZ);
        /* Delay required */
        udelay(300);
        /* Set memory parameters */
-       out_be32((void *)CFG_LIME_MMR, CFG_LIME_MMR_VALUE);
+       out_be32((void *)CONFIG_SYS_LIME_MMR, CONFIG_SYS_LIME_MMR_VALUE);
 
        mb862xx.winSizeX = DISPLAY_WIDTH;
        mb862xx.winSizeY = DISPLAY_HEIGHT;
        mb862xx.gdfIndex = GDF_15BIT_555RGB;
        mb862xx.gdfBytesPP = 2;
 
-       return CFG_LIME_BASE;
+       return CONFIG_SYS_LIME_BASE;
 }
 
 #define W83782D_REG_CFG                0x40
@@ -381,22 +381,22 @@ static int w83782d_hwmon_init(void)
 {
        u8 buf;
 
-       if (i2c_read(CFG_I2C_W83782G_ADDR, W83782D_REG_CFG, 1, &buf, 1))
+       if (i2c_read(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_CFG, 1, &buf, 1))
                return -1;
 
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_CFG, 0x80);
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_BANK_SEL, 0);
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_ADCCLK, 0x40);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_CFG, 0x80);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_BANK_SEL, 0);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_ADCCLK, 0x40);
 
-       buf = i2c_reg_read(CFG_I2C_W83782G_ADDR, W83782D_REG_BEEP_CTRL);
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_BEEP_CTRL,
+       buf = i2c_reg_read(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_BEEP_CTRL);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_BEEP_CTRL,
                      buf | 0x80);
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_BEEP_CTRL2, 0);
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_PWMOUT1, 0x47);
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_VBAT, 0x01);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_BEEP_CTRL2, 0);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_PWMOUT1, 0x47);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_VBAT, 0x01);
 
-       buf = i2c_reg_read(CFG_I2C_W83782G_ADDR, W83782D_REG_CFG);
-       i2c_reg_write(CFG_I2C_W83782G_ADDR, W83782D_REG_CFG,
+       buf = i2c_reg_read(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_CFG);
+       i2c_reg_write(CONFIG_SYS_I2C_W83782G_ADDR, W83782D_REG_CFG,
                      (buf & 0xf4) | 0x01);
        return 0;
 }
@@ -408,37 +408,37 @@ static void board_backlight_brightness(int br)
        u8 old_buf;
 
        /* Select bank 0 */
-       if (i2c_read(CFG_I2C_W83782G_ADDR, 0x4e, 1, &old_buf, 1))
+       if (i2c_read(CONFIG_SYS_I2C_W83782G_ADDR, 0x4e, 1, &old_buf, 1))
                goto err;
        else
                buf = old_buf & 0xf8;
 
-       if (i2c_write(CFG_I2C_W83782G_ADDR, 0x4e, 1, &buf, 1))
+       if (i2c_write(CONFIG_SYS_I2C_W83782G_ADDR, 0x4e, 1, &buf, 1))
                goto err;
 
        if (br > 0) {
                /* PWMOUT1 duty cycle ctrl */
                buf = 255 / (100 / br);
-               if (i2c_write(CFG_I2C_W83782G_ADDR, 0x5b, 1, &buf, 1))
+               if (i2c_write(CONFIG_SYS_I2C_W83782G_ADDR, 0x5b, 1, &buf, 1))
                        goto err;
 
                /* LEDs on */
-               reg = in_be32((void *)(CFG_FPGA_BASE + 0x0c));
+               reg = in_be32((void *)(CONFIG_SYS_FPGA_BASE + 0x0c));
                if (!(reg & BACKLIGHT_ENABLE));
-                       out_be32((void *)(CFG_FPGA_BASE + 0x0c),
+                       out_be32((void *)(CONFIG_SYS_FPGA_BASE + 0x0c),
                                 reg | BACKLIGHT_ENABLE);
        } else {
                buf = 0;
-               if (i2c_write(CFG_I2C_W83782G_ADDR, 0x5b, 1, &buf, 1))
+               if (i2c_write(CONFIG_SYS_I2C_W83782G_ADDR, 0x5b, 1, &buf, 1))
                        goto err;
 
                /* LEDs off */
-               reg = in_be32((void *)(CFG_FPGA_BASE + 0x0c));
+               reg = in_be32((void *)(CONFIG_SYS_FPGA_BASE + 0x0c));
                reg &= ~BACKLIGHT_ENABLE;
-               out_be32((void *)(CFG_FPGA_BASE + 0x0c), reg);
+               out_be32((void *)(CONFIG_SYS_FPGA_BASE + 0x0c), reg);
        }
        /* Restore previous bank setting */
-       if (i2c_write(CFG_I2C_W83782G_ADDR, 0x4e, 1, &old_buf, 1))
+       if (i2c_write(CONFIG_SYS_I2C_W83782G_ADDR, 0x4e, 1, &old_buf, 1))
                goto err;
 
        return;
index d255cea15e5cf173eccb47f576b3718f8dbcedb7..b91b1eab6ec6d5670047e449f65dc265b8f52140 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -50,7 +50,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xfc000000   64M     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_64M, 1),
 
@@ -58,7 +58,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -66,16 +66,16 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
-#if defined(CFG_FPGA_BASE)
+#if defined(CONFIG_SYS_FPGA_BASE)
        /*
         * TLB 4:       1M      Non-cacheable, guarded
         * 0xc0000000   1M      FPGA and NAND
         */
-       SET_TLB_ENTRY(1, CFG_FPGA_BASE, CFG_FPGA_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FPGA_BASE, CONFIG_SYS_FPGA_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_1M, 1),
 #endif
@@ -87,7 +87,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * (0xcbfc0000  256K    LIME GDC MMIO)
         * MMIO is relocatable and could be at 0xcbfc0000
         */
-       SET_TLB_ENTRY(1, CFG_LIME_BASE, CFG_LIME_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LIME_BASE, CONFIG_SYS_LIME_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -96,7 +96,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe000_0000  1M      CCSRBAR
         * 0xe200_0000  16M     PCI1 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -107,11 +107,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Make sure the TLB count at the top of this table is correct.
         * Likely it needs to be increased by two for these entries.
         */
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 7, BOOKE_PAGESZ_256M, 1),
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE + 0x10000000, CFG_DDR_SDRAM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000, CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 8, BOOKE_PAGESZ_256M, 1),
 };
index e4fb1465fac95fc0bec7700f8d9e8f925411cab4..3e1bd6f0cf3b76c8e9f542813cc3b09f99afad46 100644 (file)
@@ -34,7 +34,7 @@ phys_size_t initdram (int board_type)
 
        size = dramSetup ();
 
-       return get_ram_size(CFG_SDRAM_BASE, size);
+       return get_ram_size(CONFIG_SYS_SDRAM_BASE, size);
 }
 
 int checkboard (void)
index cf21b215b71131a14dffa3f63dd16c687241de9a..26d0f9c33dce65dd05dc994d21609753cba1410a 100644 (file)
@@ -144,16 +144,16 @@ static int hpi_tiny_autoinc_test(void);
 /* init the host port interface on UPMA */
 int hpi_init(void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
-       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CFG_SPC1920_PLD_BASE;
+       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CONFIG_SYS_SPC1920_PLD_BASE;
 
        upmconfig(UPMA, (uint *)dsp_table_slow, sizeof(dsp_table_slow)/sizeof(uint));
        udelay(100);
 
-       memctl->memc_mamr = CFG_MAMR;
-       memctl->memc_or3 = CFG_OR3;
-       memctl->memc_br3 = CFG_BR3;
+       memctl->memc_mamr = CONFIG_SYS_MAMR;
+       memctl->memc_or3 = CONFIG_SYS_OR3;
+       memctl->memc_br3 = CONFIG_SYS_BR3;
 
        /* reset dsp */
        dsp_reset();
@@ -170,7 +170,7 @@ int hpi_init(void)
 /* activate the Host Port interface */
 static int hpi_activate(void)
 {
-       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CFG_SPC1920_PLD_BASE;
+       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CONFIG_SYS_SPC1920_PLD_BASE;
 
        /* turn on hpi */
        pld->dsp_hpi_on = 0x1;
@@ -193,7 +193,7 @@ static int hpi_activate(void)
 /* turn off the host port interface */
 static void hpi_inactivate(void)
 {
-       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CFG_SPC1920_PLD_BASE;
+       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CONFIG_SYS_SPC1920_PLD_BASE;
 
        /* deactivate hpi */
        pld->dsp_hpi_on = 0x0;
@@ -210,7 +210,7 @@ static void hpi_inactivate(void)
 /* reset the DSP */
 static void dsp_reset(void)
 {
-       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CFG_SPC1920_PLD_BASE;
+       volatile spc1920_pld_t *pld = (spc1920_pld_t *) CONFIG_SYS_SPC1920_PLD_BASE;
        pld->dsp_reset = 0x1;
        pld->dsp_hpi_on = 0x0;
 
index a32aad0ee43ce0a746075c4e03d59edbc7c4b417..ee939bf2414e925a0a277e6fb61e90b550829b96 100644 (file)
@@ -84,9 +84,9 @@ const uint sdram_table[] = {
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immr->im_memctl;
-       /* volatile spc1920_pld_t *pld = (spc1920_pld_t *) CFG_SPC1920_PLD_BASE; */
+       /* volatile spc1920_pld_t *pld = (spc1920_pld_t *) CONFIG_SYS_SPC1920_PLD_BASE; */
 
        long int size_b0;
        long int size8, size9;
@@ -99,19 +99,19 @@ phys_size_t initdram (int board_type)
 
        udelay(100);
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
        /* burst length=4, burst type=sequential, CAS latency=2 */
-       memctl->memc_mar = CFG_MAR;
+       memctl->memc_mar = CONFIG_SYS_MAR;
 
        /*
         * Map controller bank 1 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
        /* initialize memory address register */
-       memctl->memc_mbmr = CFG_MBMR_8COL; /* refresh not enabled yet */
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL; /* refresh not enabled yet */
 
        /* mode initialization (offset 5) */
        udelay (200);                           /* 0x80006105 */
@@ -132,7 +132,7 @@ phys_size_t initdram (int board_type)
        /* Need at least 10 DRAM accesses to stabilize */
        for (i = 0; i < 10; ++i) {
                volatile unsigned long *addr =
-                       (volatile unsigned long *) CFG_SDRAM_BASE;
+                       (volatile unsigned long *) CONFIG_SYS_SDRAM_BASE;
                unsigned long val;
 
                val = *(addr + i);
@@ -144,22 +144,22 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MBMR_8COL, (long *)CFG_SDRAM_BASE, SDRAM_MAX_SIZE);
+       size8 = dram_size (CONFIG_SYS_MBMR_8COL, (long *)CONFIG_SYS_SDRAM_BASE, SDRAM_MAX_SIZE);
 
        udelay (1000);
 
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MBMR_9COL, (long *)CFG_SDRAM_BASE, SDRAM_MAX_SIZE);
+       size9 = dram_size (CONFIG_SYS_MBMR_9COL, (long *)CONFIG_SYS_SDRAM_BASE, SDRAM_MAX_SIZE);
 
        if (size8 < size9) {            /* leave configuration at 9 columns */
                size_b0 = size9;
-               memctl->memc_mbmr = CFG_MBMR_9COL | MBMR_PTBE;
+               memctl->memc_mbmr = CONFIG_SYS_MBMR_9COL | MBMR_PTBE;
                udelay (500);
        } else {                        /* back to 8 columns            */
                size_b0 = size8;
-               memctl->memc_mbmr = CFG_MBMR_8COL | MBMR_PTBE;
+               memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL | MBMR_PTBE;
                udelay (500);
        }
 
@@ -169,15 +169,15 @@ phys_size_t initdram (int board_type)
 
        memctl->memc_or1 = ((-size_b0) & 0xFFFF0000) |
                        OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING;
-       memctl->memc_br1 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V;
+       memctl->memc_br1 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V;
        udelay (1000);
 
        /* initalize the DSP Host Port Interface */
        hpi_init();
 
        /* FRAM Setup */
-       memctl->memc_or4 = CFG_OR4;
-       memctl->memc_br4 = CFG_BR4;
+       memctl->memc_or4 = CONFIG_SYS_OR4;
+       memctl->memc_br4 = CONFIG_SYS_BR4;
        udelay(1000);
 
        return (size_b0);
@@ -193,7 +193,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mbmr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mbmr = mbmr_value;
@@ -207,7 +207,7 @@ static long int dram_size (long int mbmr_value, long int *base,
 
 int board_early_init_f(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /* Set Go/NoGo led (PA15) to color red */
        immap->im_ioport.iop_papar &= ~0x1;
@@ -240,7 +240,7 @@ int board_early_init_f(void)
        immap->im_ioport.iop_pddat |= 0x0020;
 
 
-#ifdef CFG_SMC1_PLD_CLK4 /* SMC1 uses CLK4 from PLD */
+#ifdef CONFIG_SYS_SMC1_PLD_CLK4 /* SMC1 uses CLK4 from PLD */
        immap->im_cpm.cp_simode |= 0x7000;
        immap->im_cpm.cp_simode &= ~(0x8000);
 #endif
index 8c0bb4f5679aee938fc5c43da9a58cffb92e9da6..fb2fb6a7db4d6f76f4ed6ab6f8de5c070550c843 100644 (file)
@@ -24,7 +24,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*-----------------------------------------------------------------------
  */
index 6387f8a65c50aa98dee5bfbe398cef2e7c8654af..9e9678d62fcd4cfde5d093e569f24c2ce2775a05 100644 (file)
@@ -145,7 +145,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0;
 
@@ -153,23 +153,23 @@ phys_size_t initdram (int board_type)
        /*
         * Map controller bank 2 to the SRAM bank at preliminary address.
         */
-       memctl->memc_or2 = CFG_OR2;
-       memctl->memc_br2 = CFG_BR2;
+       memctl->memc_or2 = CONFIG_SYS_OR2;
+       memctl->memc_br2 = CONFIG_SYS_BR2;
 #endif
 
        /*
         * Map controller bank 4 to the PER8 bank.
         */
-       memctl->memc_or4 = CFG_OR4;
-       memctl->memc_br4 = CFG_BR4;
+       memctl->memc_or4 = CONFIG_SYS_OR4;
+       memctl->memc_br4 = CONFIG_SYS_BR4;
 
 #if 0
        /* Configure SHARC at UMA */
        upmconfig (UPMA, (uint *) sharc_table,
                   sizeof (sharc_table) / sizeof (uint));
        /* Map controller bank 5 to the SHARC */
-       memctl->memc_or5 = CFG_OR5;
-       memctl->memc_br5 = CFG_BR5;
+       memctl->memc_or5 = CONFIG_SYS_OR5;
+       memctl->memc_br5 = CONFIG_SYS_BR5;
 #endif
 
        memctl->memc_mamr = 0x00001000;
@@ -178,17 +178,17 @@ phys_size_t initdram (int board_type)
        upmconfig (UPMB, (uint *) sdram_table,
                   sizeof (sdram_table) / sizeof (uint));
 
-       memctl->memc_mptpr = CFG_MPTPR_1BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_1BK_8K;
 
        memctl->memc_mar = 0x00000088;
 
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 
-       memctl->memc_mbmr = CFG_MBMR_8COL;      /* refresh not enabled yet */
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL;       /* refresh not enabled yet */
 
        udelay (200);
        memctl->memc_mcr = 0x80806105;
@@ -205,10 +205,10 @@ phys_size_t initdram (int board_type)
         * Check Bank 0 Memory Size for re-configuration
         */
        size_b0 =
-               dram_size (CFG_MBMR_8COL, SDRAM_BASE3_PRELIM,
+               dram_size (CONFIG_SYS_MBMR_8COL, SDRAM_BASE3_PRELIM,
                           SDRAM_MAX_SIZE);
 
-       memctl->memc_mbmr = CFG_MBMR_8COL | MBMR_PTBE;
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_8COL | MBMR_PTBE;
 
        return (size_b0);
 }
@@ -226,7 +226,7 @@ phys_size_t initdram (int board_type)
 static long int dram_size (long int mamr_value, long int *base,
                           long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mbmr = mamr_value;
@@ -238,7 +238,7 @@ static long int dram_size (long int mamr_value, long int *base,
 
 void reset_phy (void)
 {
-       immap_t *immr = (immap_t *) CFG_IMMR;
+       immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        ushort sreg;
 
        /* Configure extra port pins for NS DP83843 PHY */
@@ -274,21 +274,21 @@ void reset_phy (void)
 
 void ide_set_reset (int on)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /*
         * Configure PC for IDE Reset Pin
         */
        if (on) {               /* assert RESET */
-               immr->im_ioport.iop_pcdat &= ~(CFG_PC_IDE_RESET);
+               immr->im_ioport.iop_pcdat &= ~(CONFIG_SYS_PC_IDE_RESET);
        } else {                /* release RESET */
-               immr->im_ioport.iop_pcdat |= CFG_PC_IDE_RESET;
+               immr->im_ioport.iop_pcdat |= CONFIG_SYS_PC_IDE_RESET;
        }
 
        /* program port pin as GPIO output */
-       immr->im_ioport.iop_pcpar &= ~(CFG_PC_IDE_RESET);
-       immr->im_ioport.iop_pcso &= ~(CFG_PC_IDE_RESET);
-       immr->im_ioport.iop_pcdir |= CFG_PC_IDE_RESET;
+       immr->im_ioport.iop_pcpar &= ~(CONFIG_SYS_PC_IDE_RESET);
+       immr->im_ioport.iop_pcso &= ~(CONFIG_SYS_PC_IDE_RESET);
+       immr->im_ioport.iop_pcdir |= CONFIG_SYS_PC_IDE_RESET;
 }
 
 /* ------------------------------------------------------------------------- */
index 71de20899ef787bc9681a6849d0a3633e591a729..9d32741499ee7bf5997caa1a5cbb2a1acfa1d187 100644 (file)
@@ -76,14 +76,14 @@ int spi_cs_is_valid(unsigned int bus, unsigned int cs)
 
 void spi_cs_activate(struct spi_slave *slave)
 {
-       nios_spi_t *spi = (nios_spi_t *)CFG_NIOS_SPIBASE;
+       nios_spi_t *spi = (nios_spi_t *)CONFIG_SYS_NIOS_SPIBASE;
 
        spi->slaveselect = SPI_RTC_CS_MASK;     /* activate (1) */
 }
 
 void spi_cs_deactivate(struct spi_slave *slave)
 {
-       nios_spi_t *spi = (nios_spi_t *)CFG_NIOS_SPIBASE;
+       nios_spi_t *spi = (nios_spi_t *)CONFIG_SYS_NIOS_SPIBASE;
 
        spi->slaveselect = 0;                   /* deactivate (0) */
 }
index 7d8eb03d82e6e9cce09ca76a3fa454a0bde64d40..cf05445722b3698e2930488e94a982e0a7346f01 100644 (file)
@@ -22,7 +22,7 @@
 # MA 02111-1307 USA
 #
 
-TEXT_BASE = 0x02fc0000 # ATTENTION: notice your CFG_MONITOR_LEN setting
+TEXT_BASE = 0x02fc0000 # ATTENTION: notice your CONFIG_SYS_MONITOR_LEN setting
 
 ifeq ($(debug),1)
 PLATFORM_CPPFLAGS += -DDEBUG
index 261406885e3cee951f70657cbf67bcb25dbc609c..882630c582cb87ea3a9dc9f2aaeeab74008d7457 100644 (file)
@@ -36,7 +36,7 @@
 /*---------------------------------------------------------------------*/
 #define        BANKSZ  (8 * 1024 * 1024)
 #define        SECTSZ  (64 * 1024)
-#define        UBOOTSECS ((CFG_MONITOR_LEN + CONFIG_ENV_SIZE) / SECTSZ)
+#define        UBOOTSECS ((CONFIG_SYS_MONITOR_LEN + CONFIG_ENV_SIZE) / SECTSZ)
 #define        UBOOTAREA (UBOOTSECS * 64 * 1024)       /* monitor / env area */
 
 /*---------------------------------------------------------------------*/
@@ -47,16 +47,16 @@ unsigned long flash_init (void)
        flash_info_t *fli = &flash_info[0];
 
        fli->size = BANKSZ;
-       fli->sector_count = CFG_MAX_FLASH_SECT;
+       fli->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        fli->flash_id = FLASH_MAN_AMD + FLASH_AMLV640U;
 
-       addr = CFG_FLASH_BASE;
+       addr = CONFIG_SYS_FLASH_BASE;
        for (i = 0; i < fli->sector_count; ++i) {
                fli->start[i] = addr;
                addr += SECTSZ;
 
                /* Protect monitor / environment area */
-               if (addr <= (CFG_FLASH_BASE + UBOOTAREA))
+               if (addr <= (CONFIG_SYS_FLASH_BASE + UBOOTAREA))
                        fli->protect[i] = 1;
                else
                        fli->protect[i] = 0;
index fb7e17e43e753a83bcb12be237177b8bd72a4d26..8b2da2fed3424ad6772860cde710397864dc0f7f 100644 (file)
        .align  4
 _vectors:
 
-#if    defined(CFG_NIOS_CPU_OCI_BASE)
+#if    defined(CONFIG_SYS_NIOS_CPU_OCI_BASE)
        /* OCI does the reset job */
        .long   _def_xhandler@h         /* Vector 0  - NMI / Reset */
 #else
        /* there is no OCI, so we have to do a direct reset jump here */
-       .long   CFG_NIOS_CPU_RST_VECT   /* Vector 0  - Reset to GERMS */
+       .long   CONFIG_SYS_NIOS_CPU_RST_VECT    /* Vector 0  - Reset to GERMS */
 #endif
        .long   _cwp_lolimit@h          /* Vector 1  - underflow */
        .long   _cwp_hilimit@h          /* Vector 2  - overflow */
@@ -80,7 +80,7 @@ _vectors:
        .long   _def_xhandler@h         /* Vector 13 - future reserved */
        .long   _def_xhandler@h         /* Vector 14 - future reserved */
        .long   _def_xhandler@h         /* Vector 15 - future reserved */
-#if    (CFG_NIOS_TMRIRQ == 16)
+#if    (CONFIG_SYS_NIOS_TMRIRQ == 16)
        .long   _timebase_int@h         /* Vector 16 - lopri timer*/
 #else
        .long   _def_xhandler@h         /* Vector 16 */
@@ -118,7 +118,7 @@ _vectors:
        .long   _def_xhandler@h         /* Vector 47 */
        .long   _def_xhandler@h         /* Vector 48 */
        .long   _def_xhandler@h         /* Vector 49 */
-#if    (CFG_NIOS_TMRIRQ == 50)
+#if    (CONFIG_SYS_NIOS_TMRIRQ == 50)
        .long   _timebase_int@h         /* Vector 50 - lopri timer*/
 #else
        .long   _def_xhandler@h         /* Vector 50 */
index 70cab7fa20fa1d51b0f4702ead190a44f960b81c..70bf9d678ad07468c761956079945cbed7d80c8e 100644 (file)
@@ -29,7 +29,7 @@
 #include <watchdog.h>
 #include <nios.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 /*--------------------------------------------------------------------*/
 void flash_print_info (flash_info_t * info)
@@ -72,8 +72,8 @@ void flash_print_info (flash_info_t * info)
 
 int flash_erase (flash_info_t * info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int prot, sect, wait;
        unsigned oldpri;
        ulong start;
@@ -116,7 +116,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
         */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
                        *addr = 0xf0;
                        *(addr+0xAAA/2) = 0xaa;
                        *(addr+0x554/2) = 0x55;
@@ -135,7 +135,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                        udelay (125 * 1000);
                                }
                                putc ('.');
-                               if (get_timer (start) > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer (start) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("timeout\n");
                                        return 1;
                                }
@@ -163,14 +163,14 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 int write_buff (flash_info_t * info, uchar * srcbuffer, ulong addr, ulong cnt)
 {
 
-       volatile CFG_FLASH_WORD_SIZE *cmd = (vu_short *) info->start[0];
-       volatile CFG_FLASH_WORD_SIZE *dst = (vu_short *) addr;
-       CFG_FLASH_WORD_SIZE *src = (void *) srcbuffer;
-       CFG_FLASH_WORD_SIZE b;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *cmd = (vu_short *) info->start[0];
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dst = (vu_short *) addr;
+       CONFIG_SYS_FLASH_WORD_SIZE *src = (void *) srcbuffer;
+       CONFIG_SYS_FLASH_WORD_SIZE b;
        unsigned oldpri;
        ulong start;
 
-       cnt /= sizeof(CFG_FLASH_WORD_SIZE);
+       cnt /= sizeof(CONFIG_SYS_FLASH_WORD_SIZE);
        while (cnt) {
                /* Check for sufficient erase */
                b = *src;
@@ -192,7 +192,7 @@ int write_buff (flash_info_t * info, uchar * srcbuffer, ulong addr, ulong cnt)
                /* Verify write */
                start = get_timer (0);
                while (*dst != b) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                *cmd = 0xf0;
                                return 1;
                        }
index a5f29c1a30f3db18a24726bf3797516d4b114ed4..c7a9ccc89ee40b8dd3ed26ea732729206f81c572 100644 (file)
 
 #if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
 
-#if !defined(CFG_NIOS_POST_WORD_ADDR)
-#error "*** CFG_NIOS_POST_WORD_ADDR not defined ***"
+#if !defined(CONFIG_SYS_NIOS_POST_WORD_ADDR)
+#error "*** CONFIG_SYS_NIOS_POST_WORD_ADDR not defined ***"
 #endif
 
 void post_word_store (ulong a)
 {
-       volatile void *save_addr = (void *)(CFG_NIOS_POST_WORD_ADDR);
+       volatile void *save_addr = (void *)(CONFIG_SYS_NIOS_POST_WORD_ADDR);
        *(volatile ulong *) save_addr = a;
 }
 
 ulong post_word_load (void)
 {
-       volatile void *save_addr = (void *)(CFG_NIOS_POST_WORD_ADDR);
+       volatile void *save_addr = (void *)(CONFIG_SYS_NIOS_POST_WORD_ADDR);
        return *(volatile ulong *) save_addr;
 }
 
index 1433491dc471bbb3b465bfec46b23893ea404abe..61c960247afbaddd338cfdb4f295218906928d02 100644 (file)
 
 #include <common.h>
 
-#if !defined(CFG_NO_FLASH)
+#if !defined(CONFIG_SYS_NO_FLASH)
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -72,7 +72,7 @@ unsigned long flash_init (void)
        /* Init: enable write,
         * or we cannot even write flash commands
         */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
                /* set the default sector offset */
@@ -80,7 +80,7 @@ unsigned long flash_init (void)
 
        /* Static FLASH Bank configuration here - FIXME XXX */
 
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
@@ -88,15 +88,15 @@ unsigned long flash_init (void)
        }
 
        /* Re-do sizing to get full correct info */
-       size = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -329,7 +329,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                                        asm("sync");
                                        return 1;
                                }
-                               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+                               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = 0xFFFFFFFF;     /* reset bank */
                                        asm("sync");
@@ -458,7 +458,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        flag  = 0;
 
        while (((csr = *addr) & 0x00800080) != 0x00800080) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        flag = 1;
                        break;
                }
@@ -502,7 +502,7 @@ static int clear_block_lock_bit(vu_long  * addr)
 
        start = get_timer (0);
        while((*addr & 0x00800080) != 0x00800080){
-               if ((now=get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now=get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout on clearing Block Lock Bit\n");
                        *addr = 0xFFFFFFFF;     /* reset bank */
                        asm("sync");
@@ -512,4 +512,4 @@ static int clear_block_lock_bit(vu_long  * addr)
        return 0;
 }
 
-#endif /* !CFG_NO_FLASH */
+#endif /* !CONFIG_SYS_NO_FLASH */
index a7e9ceb033cf69d84522069ddf2828318487a6cc..ba89f0edc0f53d72e9dc1851076d616d008f6e24 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
        /* This is not so much the SDRAM map as it is the whole localbus map. */
-       SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_RIO_MEM_BASE, LAWAR_SIZE_512M, LAW_TRGT_IF_RIO),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index c80f1b3810bba15afbf575c9dbc6ead57666296f..3804fe080044919fbd3c676a14e2eeddfccbacba 100644 (file)
@@ -203,7 +203,7 @@ int
 board_early_init_f(void)
 {
 #if defined(CONFIG_PCI)
-    volatile ccsr_pcix_t *pci = (void *)(CFG_MPC85xx_PCIX_ADDR);
+    volatile ccsr_pcix_t *pci = (void *)(CONFIG_SYS_MPC85xx_PCIX_ADDR);
 
     pci->peer &= 0xfffffffdf; /* disable master abort */
 #endif
@@ -215,7 +215,7 @@ reset_phy(void)
 {
        volatile uint *blatch;
 
-       blatch = (volatile uint *)CFG_LBC_LCLDEVS_BASE;
+       blatch = (volatile uint *)CONFIG_SYS_LBC_LCLDEVS_BASE;
 
        /* reset Giga bit Ethernet port if needed here */
 
@@ -267,7 +267,7 @@ show_activity(int flag)
        if (next_led_update > get_ticks())
                return;
 
-       blatch = (volatile uint *)CFG_LBC_LCLDEVS_BASE;
+       blatch = (volatile uint *)CONFIG_SYS_LBC_LCLDEVS_BASE;
 
        led_bit >>= 1;
        if (led_bit == 0)
@@ -284,7 +284,7 @@ initdram (int board_type)
 
 #if defined(CONFIG_DDR_DLL)
        {
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
                uint temp_ddrdll = 0;
 
                /* Work around to stabilize DDR DLL */
@@ -308,11 +308,11 @@ initdram (int board_type)
 }
 
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("SDRAM test phase 1:\n");
index d4104166a0459000ebe42393134938a4f1a36bbb..aa11a5d397e68f5c444234d505aaf56427a863c8 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xff000000   16M     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_16M, 1),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    Rapid IO MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xd0000000   256M    Rapid IO MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_RIO_MEM_BASE + 0x10000000, CFG_RIO_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_RIO_MEM_BASE + 0x10000000, CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -87,7 +87,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe000_0000  1M      CCSRBAR
         * 0xe200_0000  16M     PCI1 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -95,7 +95,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       64M     Cacheable, non-guarded
         * 0xf000_0000  64M     LBC SDRAM
         */
-       SET_TLB_ENTRY(1, CFG_LBC_SDRAM_BASE, CFG_LBC_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_SDRAM_BASE, CONFIG_SYS_LBC_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -103,7 +103,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 7:       16K     Non-cacheable, guarded
         * 0xfc000000   16K     Configuration Latch register
         */
-       SET_TLB_ENTRY(1, CFG_LBC_LCLDEVS_BASE, CFG_LBC_LCLDEVS_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_LCLDEVS_BASE, CONFIG_SYS_LBC_LCLDEVS_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 7, BOOKE_PAGESZ_16K, 1),
 
@@ -117,11 +117,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Likely it needs to be increased by two for these entries.
         */
 #error("Update the number of table entries in tlb1_entry")
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 8, BOOKE_PAGESZ_64M, 1),
 
-       SET_TLB_ENTRY(1, CFG_DDR_SDRAM_BASE + 0x4000000, CFG_DDR_SDRAM_BASE + 0x4000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000, CONFIG_SYS_DDR_SDRAM_BASE + 0x4000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 9, BOOKE_PAGESZ_64M, 1),
 #endif
index 8730cdfc4e669e1a3d2a6e93fe488f9bc58d192e..55dde667563bba50ee22911eca58a0e86a8bc2c3 100644 (file)
 
 struct law_entry law_table[] = {
 #ifndef CONFIG_SPD_EEPROM
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_128M, LAW_TRGT_IF_DDR),
 #endif
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_1),
-       SET_LAW(CFG_PCI2_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_1),
+       SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_2),
        /* Map the whole localbus, including flash and reset latch. */
-       SET_LAW(CFG_LBC_OPTION_BASE, LAWAR_SIZE_256M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_LBC_OPTION_BASE, LAWAR_SIZE_256M, LAW_TRGT_IF_LBC),
 };
 
 int num_law_entries = ARRAY_SIZE(law_table);
index 4d4dc06e34a79da9bd884709980b77b6cf5368ca..73dddf3e0c94822da588e6d0832fa9d0904089e9 100644 (file)
@@ -207,7 +207,7 @@ reset_phy(void)
 #if 0
        int     i;
 #endif
-       blatch = (volatile uint *)CFG_LBC_CFGLATCH_BASE;
+       blatch = (volatile uint *)CONFIG_SYS_LBC_CFGLATCH_BASE;
 
        /* reset Giga bit Ethernet port if needed here */
 
@@ -253,7 +253,7 @@ int
 board_early_init_f(void)
 {
 #if defined(CONFIG_PCI)
-       volatile ccsr_pcix_t *pci = (void *)(CFG_MPC85xx_PCIX_ADDR);
+       volatile ccsr_pcix_t *pci = (void *)(CONFIG_SYS_MPC85xx_PCIX_ADDR);
 
        pci->peer &= 0xffffffdf; /* disable master abort */
 #endif
@@ -284,7 +284,7 @@ show_activity(int flag)
        if (next_led_update > get_ticks())
                return;
 
-       blatch = (volatile uint *)CFG_LBC_CFGLATCH_BASE;
+       blatch = (volatile uint *)CONFIG_SYS_LBC_CFGLATCH_BASE;
 
        led_bit >>= 1;
        if (led_bit == 0)
@@ -301,7 +301,7 @@ initdram (int board_type)
 
 #if defined(CONFIG_DDR_DLL)
        {
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
                uint temp_ddrdll = 0;
 
                /* Work around to stabilize DDR DLL */
@@ -325,11 +325,11 @@ initdram (int board_type)
 }
 
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf("SDRAM test phase 1:\n");
index 86cbd112791a2ea8ec502bf1fdc79180f7de7fb6..0386432b67de12cb904c6afbb0182578b30eab2f 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 4 * 1024 , CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 8 * 1024 , CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY(0, CFG_INIT_RAM_ADDR + 12 * 1024 , CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY(0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024 , CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                      MAS3_SX|MAS3_SW|MAS3_SR, 0,
                      0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -46,7 +46,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xfc000000   6M4     FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY(1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 0, BOOKE_PAGESZ_64M, 1),
 
@@ -54,7 +54,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 1:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 1, BOOKE_PAGESZ_256M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI1_MEM_PHYS + 0x10000000, CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,7 +70,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0xa0000000   256M    PCI2 MEM First half
         */
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS, CFG_PCI2_MEM_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS, CONFIG_SYS_PCI2_MEM_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -78,7 +78,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xb0000000   256M    PCI2 MEM Second half
         */
-       SET_TLB_ENTRY(1, CFG_PCI2_MEM_PHYS + 0x10000000, CFG_PCI2_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY(1, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000, CONFIG_SYS_PCI2_MEM_PHYS + 0x10000000,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -88,7 +88,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe200_0000  16M     PCI1 IO
         * 0xe300_0000  16M     PCI2 IO
         */
-       SET_TLB_ENTRY(1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY(1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 5, BOOKE_PAGESZ_64M, 1),
 
@@ -98,7 +98,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xfb000000           Configuration Latch register (one word)
         * 0xfc000000           Up to 64M flash
         */
-       SET_TLB_ENTRY(1, CFG_LBC_OPTION_BASE, CFG_LBC_OPTION_BASE,
+       SET_TLB_ENTRY(1, CONFIG_SYS_LBC_OPTION_BASE, CONFIG_SYS_LBC_OPTION_BASE,
                      MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                      0, 7, BOOKE_PAGESZ_256M, 1),
 };
index 4bb2d6873f16d5871a2482ba4abae47d09871ca9..a1a36c493a18b2ab19e953f82dd4ccb11d5616ba 100644 (file)
@@ -349,7 +349,7 @@ static const uint nandcs_table[0x40] = {
 #define MAR_SDRAM_INIT         ((CAS_LATENCY << 6) | 0x00000008LU)
 
 /* 9 */
-#define CFG_MAMR       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR        ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
@@ -401,7 +401,7 @@ void check_ram(unsigned int addr, unsigned int size)
 
 phys_size_t initdram(int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size;
        u32 d1, d2;
@@ -418,10 +418,10 @@ phys_size_t initdram(int board_type)
        /*
         * Map controller bank 3 to the SDRAM bank at preliminary address.
         */
-       memctl->memc_or4 = CFG_OR4_PRELIM;
-       memctl->memc_br4 = CFG_BR4_PRELIM;
+       memctl->memc_or4 = CONFIG_SYS_OR4_PRELIM;
+       memctl->memc_br4 = CONFIG_SYS_BR4_PRELIM;
 
-       memctl->memc_mamr = CFG_MAMR & ~MAMR_PTAE;      /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR & ~MAMR_PTAE;       /* no refresh yet */
 
        udelay(200);
 
@@ -529,7 +529,7 @@ void reset_phys(void)
 
 int board_early_init_f(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile iop8xx_t *ioport = &immap->im_ioport;
        volatile cpm8xx_t *cpm = &immap->im_cpm;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -579,13 +579,13 @@ int board_early_init_f(void)
 #include <linux/mtd/nand_legacy.h>
 
 extern ulong nand_probe(ulong physadr);
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 
 void nand_init(void)
 {
        unsigned long totlen;
 
-       totlen = nand_probe(CFG_NAND_BASE);
+       totlen = nand_probe(CONFIG_SYS_NAND_BASE);
        printf ("%4lu MB\n", totlen >> 20);
 }
 #endif
@@ -599,7 +599,7 @@ void hw_watchdog_reset(void)
 
 #endif
 
-#if defined(CFG_CONSOLE_IS_IN_ENV) && defined(CFG_CONSOLE_OVERWRITE_ROUTINE)
+#if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
 int overwrite_console(void)
 {
        /* printf("overwrite_console called\n"); */
index 00fed59f25e6e4d4eed4e094e38fe43cebb0e335..db1f21a581dce6c65b9a2059043beeaabab87d3b 100644 (file)
 #include <mpc8xx.h>
 
 #ifndef        CONFIG_ENV_ADDR
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #endif
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -54,7 +54,7 @@ static  void my_out_be32( unsigned *addr, int val);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
@@ -62,16 +62,16 @@ unsigned long flash_init (void)
        size_b0=0;
        size_b1=0;
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
-#ifdef CFG_DOC_BASE
+#ifdef CONFIG_SYS_DOC_BASE
 #ifndef CONFIG_FEL8xx_AT
-       memctl->memc_or5 = (0xffff8000 | CFG_OR_TIMING_DOC ); /* 32k bytes */
-       memctl->memc_br5 = CFG_DOC_BASE | 0x401;
+       memctl->memc_or5 = (0xffff8000 | CONFIG_SYS_OR_TIMING_DOC ); /* 32k bytes */
+       memctl->memc_br5 = CONFIG_SYS_DOC_BASE | 0x401;
 #else
-       memctl->memc_or3 = (0xffff8000 | CFG_OR_TIMING_DOC ); /* 32k bytes */
-       memctl->memc_br3 = CFG_DOC_BASE | 0x401;
+       memctl->memc_or3 = (0xffff8000 | CONFIG_SYS_OR_TIMING_DOC ); /* 32k bytes */
+       memctl->memc_br3 = CONFIG_SYS_DOC_BASE | 0x401;
 #endif
 #endif
 #if defined( CONFIG_BOOT_8B)
@@ -136,19 +136,19 @@ unsigned long flash_init (void)
        }
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -161,21 +161,21 @@ unsigned long flash_init (void)
 #endif
 
        if (size_b1) {
-               memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
-               memctl->memc_br1 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & 0xFFFF8000);
+               memctl->memc_br1 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                    BR_MS_GPCM | BR_V;
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                          &flash_info[1]);
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 #endif
 
@@ -561,7 +561,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
 # error CONFIG_BOOT_(size)B missing.
 #endif
        {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -710,7 +710,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
          start = get_timer (0);
        last  = start;
          while(  ( my_in_8((unsigned char *) (dest+i)) ) != ( data_ch[i]  ) ) {
-                 if (get_timer(start) > CFG_FLASH_WRITE_TOUT ) {
+                 if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT ) {
                          return 1;
                  }
          }
@@ -730,7 +730,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
          start = get_timer (0);
        last  = start;
          while(  ( my_in_be16((unsigned short *) (dest+(i*2))) ) != ( data_short[i]  ) ) {
-                 if (get_timer(start) > CFG_FLASH_WRITE_TOUT ) {
+                 if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT ) {
                          return 1;
                  }
          }
@@ -749,7 +749,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 48e05b83f760ef37738722f4ee5322d68aef325c..4390e49dd1c38b5c828d78c360deac8e4c5e7124 100644 (file)
@@ -102,15 +102,15 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size_b0 = 0;
 
        upmconfig(UPMA, (uint *)sdram_table, sizeof(sdram_table)/sizeof(uint));
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 #if defined (CONFIG_SDRAM_16M)
-       memctl->memc_mamr = 0x00802114 | CFG_MxMR_PTx;
+       memctl->memc_mamr = 0x00802114 | CONFIG_SYS_MxMR_PTx;
        memctl->memc_mcr  = 0x80002105;     /* SDRAM bank 0 */
        udelay(1);
        memctl->memc_mcr  = 0x80002830;
@@ -122,7 +122,7 @@ phys_size_t initdram (int board_type)
        memctl->memc_or1 =  0xff000a00;
        size_b0 = 0x01000000;
 #elif defined (CONFIG_SDRAM_32M)
-       memctl->memc_mamr = 0x00904114 | CFG_MxMR_PTx;
+       memctl->memc_mamr = 0x00904114 | CONFIG_SYS_MxMR_PTx;
        memctl->memc_mcr  = 0x80002105;     /* SDRAM bank 0 */
        udelay(1);
        memctl->memc_mcr  = 0x80002830;
@@ -134,7 +134,7 @@ phys_size_t initdram (int board_type)
        memctl->memc_or1 =  0xfe000a00;
        size_b0 = 0x02000000;
 #elif defined (CONFIG_SDRAM_64M)
-       memctl->memc_mamr = 0x00a04114 | CFG_MxMR_PTx;
+       memctl->memc_mamr = 0x00a04114 | CONFIG_SYS_MxMR_PTx;
        memctl->memc_mcr  = 0x80002105;     /* SDRAM bank 0 */
        udelay(1);
        memctl->memc_mcr  = 0x80002830;
@@ -156,6 +156,6 @@ phys_size_t initdram (int board_type)
 #if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
-               doc_probe (CFG_DOC_BASE);
+               doc_probe (CONFIG_SYS_DOC_BASE);
 }
 #endif
index e9f6418c4ec58b2fc2868a3a76770ceab36fd242..933d5ecc87e51db16e44e75a5ae9157415651e8d 100644 (file)
 #include <ppc4xx.h>
 #include <asm/processor.h>
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips        */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips        */
 
 
-#ifdef CFG_FLASH_16BIT
+#ifdef CONFIG_SYS_FLASH_16BIT
 #define FLASH_WORD_SIZE        unsigned short
 #define        FLASH_ID_MASK   0xFFFF
 #else
@@ -44,7 +44,7 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
 /* stolen from esteem192e/flash.c */
 ulong flash_get_size (volatile FLASH_WORD_SIZE * addr, flash_info_t * info);
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 static int write_word (flash_info_t * info, ulong dest, ulong data);
 #else
 static int write_short (flash_info_t * info, ulong dest, ushort data);
@@ -63,14 +63,14 @@ unsigned long flash_init (void)
        unsigned long base_b0, base_b1;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here - FIXME XXX */
 
        size_b0 =
-               flash_get_size ((volatile FLASH_WORD_SIZE *) CFG_FLASH_BASE,
+               flash_get_size ((volatile FLASH_WORD_SIZE *) CONFIG_SYS_FLASH_BASE,
                                &flash_info[0]);
 
        if (flash_info[0].flash_id == FLASH_UNKNOWN) {
@@ -78,9 +78,9 @@ unsigned long flash_init (void)
        }
 
        /* Only one bank */
-       if (CFG_MAX_FLASH_BANKS == 1) {
+       if (CONFIG_SYS_MAX_FLASH_BANKS == 1) {
                /* Setup offsets */
-               flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
                /* Monitor protection ON by default */
 #if 0                          /* sand: */
@@ -91,19 +91,19 @@ unsigned long flash_init (void)
                                      &flash_info[0]);
 #else
                (void) flash_protect (FLAG_PROTECT_SET,
-                                     CFG_MONITOR_BASE,
-                                     CFG_MONITOR_BASE + monitor_flash_len -
+                                     CONFIG_SYS_MONITOR_BASE,
+                                     CONFIG_SYS_MONITOR_BASE + monitor_flash_len -
                                      1, &flash_info[0]);
 #endif
                size_b1 = 0;
                flash_info[0].size = size_b0;
        }
-#ifdef CFG_FLASH_BASE_2
+#ifdef CONFIG_SYS_FLASH_BASE_2
        /* 2 banks */
        else {
                size_b1 =
                        flash_get_size ((volatile FLASH_WORD_SIZE *)
-                                       CFG_FLASH_BASE_2, &flash_info[1]);
+                                       CONFIG_SYS_FLASH_BASE_2, &flash_info[1]);
 
                /* Re-do sizing to get full correct info */
 
@@ -144,8 +144,8 @@ unsigned long flash_init (void)
                                      &flash_info[0]);
 #else
                (void) flash_protect (FLAG_PROTECT_SET,
-                                     CFG_MONITOR_BASE,
-                                     CFG_MONITOR_BASE + monitor_flash_len -
+                                     CONFIG_SYS_MONITOR_BASE,
+                                     CONFIG_SYS_MONITOR_BASE + monitor_flash_len -
                                      1, &flash_info[0]);
 #endif
 
@@ -200,7 +200,7 @@ static void flash_get_offsets (ulong base, flash_info_t * info)
        } else if (info->flash_id & FLASH_BTYPE) {
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL) {
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                        /* set sector offsets for bottom boot block type        */
                        info->start[0] = base + 0x00000000;
                        info->start[1] = base + 0x00004000;
@@ -256,7 +256,7 @@ static void flash_get_offsets (ulong base, flash_info_t * info)
                i = info->sector_count - 1;
                if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL) {
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                        info->start[i--] = base + info->size - 0x00004000;
                        info->start[i--] = base + info->size - 0x00008000;
                        info->start[i--] = base + info->size - 0x0000C000;
@@ -448,7 +448,7 @@ ulong flash_get_size (volatile FLASH_WORD_SIZE * addr, flash_info_t * info)
        /* Write auto select command: read Manufacturer ID */
 
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 
        /*
         * Note: if it is an AMD flash and the word at addr[0000]
@@ -699,7 +699,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        /* Disable interrupts which might cause a timeout here */
        flag = disable_interrupts ();
        if (info->flash_id < FLASH_AMD_COMP) {
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                addr[0x0555] = 0x00AA00AA;
                addr[0x02AA] = 0x00550055;
                addr[0x0555] = 0x00800080;
@@ -741,7 +741,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                addr = (volatile FLASH_WORD_SIZE *) (info->start[l_sect]);
                while ((addr[0] & (0x00800080 & FLASH_ID_MASK)) !=
                       (0x00800080 & FLASH_ID_MASK)) {
-                       if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+                       if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                printf ("Timeout\n");
                                return 1;
                        }
@@ -762,7 +762,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                for (sect = s_first; sect <= s_last; sect++) {
                        if (info->protect[sect] == 0) { /* not protected */
                                barf = 0;
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                                addr = (vu_long *) (info->start[sect]);
                                addr[0] = 0x00500050;
                                addr[0] = 0x00200020;
@@ -801,7 +801,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                l_sect = sect;
                        }
                        addr = (volatile FLASH_WORD_SIZE *) info->start[0];
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
                        addr[0] = (0x00FF00FF & FLASH_ID_MASK); /* reset bank */
 #else
                        addr[0] = (0x00FF & FLASH_ID_MASK);     /* reset bank */
@@ -821,7 +821,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        flash_info_t *info;
        int i;
 
-       for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
+       for (i=0, info=&flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
                if ((addr >= info->start[0]) &&
                    (addr < (info->start[0] + info->size)) ) {
                        return (info);
@@ -898,7 +898,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
 int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
 {
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
        ulong cp, wp, data;
        int l;
 #else
@@ -907,7 +907,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
 #endif
        int i, rc;
 
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 
 
        wp = (addr & ~3);       /* get lower word aligned address */
@@ -1034,7 +1034,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
  * 1 - write timeout
  * 2 - Flash not erased
  */
-#ifndef CFG_FLASH_16BIT
+#ifndef CONFIG_SYS_FLASH_16BIT
 static int write_word (flash_info_t * info, ulong dest, ulong data)
 {
        vu_long *addr = (vu_long *) (info->start[0]);
@@ -1076,7 +1076,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
 
                while ((*((vu_long *) dest) & 0x00800080) !=
                       (data & 0x00800080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                printf ("timeout\n");
                                return (1);
                        }
@@ -1085,7 +1085,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
        } else {
 
                while (!(addr[0] & 0x00800080)) {       /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                printf ("timeout\n");
                                return (1);
                        }
@@ -1157,7 +1157,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
        if (info->flash_id < FLASH_AMD_COMP) {
                /* AMD stuff */
                while ((*((vu_short *) dest) & 0x0080) != (data & 0x0080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -1165,7 +1165,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
        } else {
                /* intel stuff */
                while (!(addr[0] & 0x0080)) {   /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
 
@@ -1184,7 +1184,7 @@ static int write_short (flash_info_t * info, ulong dest, ushort data)
                *addr = 0x00B0;
                *addr = 0x0070;
                while (!(addr[0] & 0x0080)) {   /* wait for error or finish */
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
 
index 2abb4a7e2dc6373e9b1b4955b930e432f0d42acd..d3f05b2738b06a422e8bc3499515273ccd47e129 100644 (file)
@@ -34,7 +34,7 @@ void pci_init_board (void)
 
 phys_size_t initdram(int board_type)
 {
-       return get_ram_size (CFG_SDRAM_BASE, 0x8000000);
+       return get_ram_size (CONFIG_SYS_SDRAM_BASE, 0x8000000);
 }
 
 int checkboard (void)
index a1601f274d25e5e3c13c99a9ccd0f626749989f7..dc4c6f18c2d8c40e0e14d0650f4826cb6b7c76a0 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "sdram.h"
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void mpc5xxx_sdram_start (sdram_conf_t *sdram_conf, int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -72,7 +72,7 @@ static void mpc5xxx_sdram_start (sdram_conf_t *sdram_conf, int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *            use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *            use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *            is something else than 0x00000000.
  */
 
@@ -81,7 +81,7 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
 {
        ulong dramsize = 0;
        ulong dramsize2 = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -102,9 +102,9 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
 
        /* find RAM size using SDRAM CS0 only */
        mpc5xxx_sdram_start(sdram_conf, 0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        mpc5xxx_sdram_start(sdram_conf, 1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                mpc5xxx_sdram_start(sdram_conf, 0);
                dramsize = test1;
@@ -129,9 +129,9 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
 
        /* find RAM size using SDRAM CS1 only */
        mpc5xxx_sdram_start(sdram_conf, 0);
-       test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        mpc5xxx_sdram_start(sdram_conf, 1);
-       test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        if (test1 > test2) {
                mpc5xxx_sdram_start(sdram_conf, 0);
                dramsize2 = test1;
@@ -152,7 +152,7 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -170,7 +170,7 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize + dramsize2;
 }
@@ -180,7 +180,7 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
 long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup and enable SDRAM chip selects */
@@ -199,9 +199,9 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
 
        /* find RAM size */
        mpc5xxx_sdram_start(sdram_conf, 0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        mpc5xxx_sdram_start(sdram_conf, 1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                mpc5xxx_sdram_start(sdram_conf, 0);
                dramsize = test1;
@@ -212,12 +212,12 @@ long int mpc5xxx_sdram_init (sdram_conf_t *sdram_conf)
        /* set SDRAM end address according to size */
        *(vu_long *)MPC5XXX_SDRAM_STOP = ((dramsize - 1) >> 15);
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* Retrieve amount of SDRAM available */
        dramsize = ((*(vu_long *)MPC5XXX_SDRAM_STOP + 1) << 15);
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        return dramsize;
 }
index ec00a67df16f5f77c41ac7c6cf71fb5a15e1b06b..c524d63f93ca18b9e5a1cb11cf8b6097eb968357 100644 (file)
@@ -71,15 +71,15 @@ int checkboard (void)
        /*
         * Retrieve FPGA Revision.
         */
-       printf ("(FPGA %08lX)\n", *(vu_long *) (CFG_FPGA_BASE + 0x400));
+       printf ("(FPGA %08lX)\n", *(vu_long *) (CONFIG_SYS_FPGA_BASE + 0x400));
 
        /*
         * Take all peripherals in power-up mode.
         */
 #if CONFIG_TOTAL5200_REV==2
-       *(vu_char *) (CFG_CPLD_BASE + 0x46) = 0x70;
+       *(vu_char *) (CONFIG_SYS_CPLD_BASE + 0x46) = 0x70;
 #else
-       *(vu_long *) (CFG_CPLD_BASE + 0x400) = 0x70;
+       *(vu_long *) (CONFIG_SYS_CPLD_BASE + 0x400) = 0x70;
 #endif
 
        return 0;
@@ -284,7 +284,7 @@ void video_get_info_str (int line_number, char *info)
 /* Returns  SED13806 base address. First thing called in the driver. */
 unsigned int board_video_init (void)
 {
-       return CFG_LCD_BASE;
+       return CONFIG_SYS_LCD_BASE;
 }
 
 /* Called after initializing the SED13806 and before clearing the screen. */
index 4fc4dc6c4e9811e51ffdb42b37b95fc513623cc9..124b47d22848d9c2b08b133a85c8d77b39831147 100644 (file)
@@ -35,7 +35,7 @@
 
 #define swap16(x) __swab16(x)
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips */
 
 /*
  * CAM5200 is a TQM5200B based board. Additionally it also features
@@ -51,15 +51,15 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS];       /* info for FLASH chips */
  * 16 bit flash bank and two sets of routines *_32 and *_16 to handle
  * specifics of both flashes.
  */
-static unsigned long flash_addr_table[][CFG_MAX_FLASH_BANKS] = {
-       {CFG_BOOTCS_START, CFG_CS5_START | 1}
+static unsigned long flash_addr_table[][CONFIG_SYS_MAX_FLASH_BANKS] = {
+       {CONFIG_SYS_BOOTCS_START, CONFIG_SYS_CS5_START | 1}
 };
 
 /*-----------------------------------------------------------------------
  * Functions
  */
 static int write_word(flash_info_t * info, ulong dest, ulong data);
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static int write_word_32(flash_info_t * info, ulong dest, ulong data);
 static int write_word_16(flash_info_t * info, ulong dest, ulong data);
 static int flash_erase_32(flash_info_t * info, int s_first, int s_last);
@@ -145,7 +145,7 @@ void flash_print_info(flash_info_t * info)
 /*
  * The following code cannot be run from FLASH!
  */
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 {
 
@@ -164,23 +164,23 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 #endif
 {
        short i;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("get_size32: FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00900090;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00900090;
        udelay(1000);
 
        value = addr2[0];
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                        info->flash_id = FLASH_MAN_AMD;
                        break;
                default:
@@ -228,13 +228,13 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                info->protect[i] = addr2[2] & 1;
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;
 
        return (info->size);
 }
@@ -242,14 +242,14 @@ static ulong flash_get_size(vu_long * addr, flash_info_t * info)
 static int wait_for_DQ7_32(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-               (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+               (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                       (CFG_FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                       (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -262,7 +262,7 @@ static int wait_for_DQ7_32(flash_info_t * info, int sect)
        return 0;
 }
 
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 int flash_erase(flash_info_t * info, int s_first, int s_last)
 {
        if ((info->flash_id & FLASH_TYPEMASK) == FLASH_AM320B) {
@@ -277,8 +277,8 @@ static int flash_erase_32(flash_info_t * info, int s_first, int s_last)
 int flash_erase(flash_info_t * info, int s_first, int s_last)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
 
        if ((s_first < 0) || (s_first > s_last)) {
@@ -313,14 +313,14 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00800080;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-                       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x00300030;    /* sector erase */
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+                       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00300030;     /* sector erase */
 
                        l_sect = sect;
                        /*
@@ -342,8 +342,8 @@ int flash_erase(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0x00F000F0;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00F000F0;      /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -423,7 +423,7 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)
  * 1 - write timeout
  * 2 - Flash not erased
  */
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 static int write_word(flash_info_t * info, ulong dest, ulong data)
 {
        if ((info->flash_id & FLASH_TYPEMASK) == FLASH_AM320B) {
@@ -438,9 +438,9 @@ static int write_word_32(flash_info_t * info, ulong dest, ulong data)
 static int write_word(flash_info_t * info, ulong dest, ulong data)
 #endif
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i, flag;
 
@@ -448,13 +448,13 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
        if ((*((vu_long *)dest) & data) != data)
                return (2);
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00AA00AA;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x00550055;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x00A000A0;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00AA00AA;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00550055;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x00A000A0;
 
                dest2[i] = data2[i];
 
@@ -464,10 +464,10 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080) !=
-                               (data2[i] & (CFG_FLASH_WORD_SIZE) 0x00800080)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080) !=
+                               (data2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT)
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT)
                                return (1);
                }
        }
@@ -475,10 +475,10 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
        return (0);
 }
 
-#ifdef CFG_FLASH_2ND_16BIT_DEV
+#ifdef CONFIG_SYS_FLASH_2ND_16BIT_DEV
 
-#undef  CFG_FLASH_WORD_SIZE
-#define CFG_FLASH_WORD_SIZE unsigned short
+#undef  CONFIG_SYS_FLASH_WORD_SIZE
+#define CONFIG_SYS_FLASH_WORD_SIZE unsigned short
 
 /*
  * The following code cannot be run from FLASH!
@@ -486,29 +486,29 @@ static int write_word(flash_info_t * info, ulong dest, ulong data)
 static ulong flash_get_size_16(vu_long * addr, flash_info_t * info)
 {
        short i;
-       CFG_FLASH_WORD_SIZE value;
+       CONFIG_SYS_FLASH_WORD_SIZE value;
        ulong base = (ulong) addr;
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) addr;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) addr;
 
        DEBUGF("get_size16: FLASH ADDR: %08x\n", (unsigned)addr);
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0xF000F000;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xF000F000;
 
        /* Write auto select command: read Manufacturer ID */
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAA00AA00;
-       addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55005500;
-       addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x90009000;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAA00AA00;
+       addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55005500;
+       addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x90009000;
        udelay(1000);
 
        value = swap16(addr2[0]);
        DEBUGF("FLASH MANUFACT: %x\n", value);
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE) AMD_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) AMD_MANUFACT:
                        info->flash_id = FLASH_MAN_AMD;
                        break;
-               case (CFG_FLASH_WORD_SIZE) FUJ_MANUFACT:
+               case (CONFIG_SYS_FLASH_WORD_SIZE) FUJ_MANUFACT:
                        info->flash_id = FLASH_MAN_FUJ;
                        break;
                default:
@@ -522,12 +522,12 @@ static ulong flash_get_size_16(vu_long * addr, flash_info_t * info)
        DEBUGF("\nFLASH DEVICEID: %x\n", value);
 
        switch (value) {
-               case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320B:
+               case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320B:
                        info->flash_id += FLASH_AM320B;
                        info->sector_count = 71;
                        info->size = 0x00400000;
                        break;  /* => 4 MB      */
-               case (CFG_FLASH_WORD_SIZE)AMD_ID_LV320T:
+               case (CONFIG_SYS_FLASH_WORD_SIZE)AMD_ID_LV320T:
                        info->flash_id += FLASH_AM320T;
                        info->sector_count = 71;
                        info->size = 0x00400000;
@@ -569,13 +569,13 @@ static ulong flash_get_size_16(vu_long * addr, flash_info_t * info)
        for (i = 0; i < info->sector_count; i++) {
                /* read sector protection at sector address, (A7 .. A0) = 0x02 */
                /* D0 = 1 if protected */
-               addr2 = (volatile CFG_FLASH_WORD_SIZE *)(info->start[i]);
+               addr2 = (volatile CONFIG_SYS_FLASH_WORD_SIZE *)(info->start[i]);
 
                info->protect[i] = addr2[2] & 1;
        }
 
        /* issue bank reset to return to read mode */
-       addr2[0] = (CFG_FLASH_WORD_SIZE) 0xF000F000;
+       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xF000F000;
 
        return (info->size);
 }
@@ -583,14 +583,14 @@ static ulong flash_get_size_16(vu_long * addr, flash_info_t * info)
 static int wait_for_DQ7_16(flash_info_t * info, int sect)
 {
        ulong start, now, last;
-       volatile CFG_FLASH_WORD_SIZE *addr =
-               (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr =
+               (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
        start = get_timer(0);
        last = start;
-       while ((addr[0] & (CFG_FLASH_WORD_SIZE) 0x80008000) !=
-                       (CFG_FLASH_WORD_SIZE) 0x80008000) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+       while ((addr[0] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x80008000) !=
+                       (CONFIG_SYS_FLASH_WORD_SIZE) 0x80008000) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf("Timeout\n");
                        return -1;
                }
@@ -605,8 +605,8 @@ static int wait_for_DQ7_16(flash_info_t * info, int sect)
 
 static int flash_erase_16(flash_info_t * info, int s_first, int s_last)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *addr2;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2;
        int flag, prot, sect, l_sect;
 
        if ((s_first < 0) || (s_first > s_last)) {
@@ -641,14 +641,14 @@ static int flash_erase_16(flash_info_t * info, int s_first, int s_last)
        /* Start erase on unprotected sectors */
        for (sect = s_first; sect <= s_last; sect++) {
                if (info->protect[sect] == 0) { /* not protected */
-                       addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[sect]);
+                       addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[sect]);
 
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAA00AA00;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55005500;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0x80008000;
-                       addr[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAA00AA00;
-                       addr[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55005500;
-                       addr2[0] = (CFG_FLASH_WORD_SIZE) 0x30003000;    /* sector erase */
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAA00AA00;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55005500;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x80008000;
+                       addr[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAA00AA00;
+                       addr[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55005500;
+                       addr2[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x30003000;     /* sector erase */
 
                        l_sect = sect;
                        /*
@@ -670,8 +670,8 @@ static int flash_erase_16(flash_info_t * info, int s_first, int s_last)
        udelay(1000);
 
        /* reset to read mode */
-       addr = (CFG_FLASH_WORD_SIZE *) info->start[0];
-       addr[0] = (CFG_FLASH_WORD_SIZE) 0xF000F000;     /* reset bank */
+       addr = (CONFIG_SYS_FLASH_WORD_SIZE *) info->start[0];
+       addr[0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xF000F000;      /* reset bank */
 
        printf(" done\n");
        return 0;
@@ -679,27 +679,27 @@ static int flash_erase_16(flash_info_t * info, int s_first, int s_last)
 
 static int write_word_16(flash_info_t * info, ulong dest, ulong data)
 {
-       volatile CFG_FLASH_WORD_SIZE *addr2 = (CFG_FLASH_WORD_SIZE *) (info->start[0]);
-       volatile CFG_FLASH_WORD_SIZE *dest2 = (CFG_FLASH_WORD_SIZE *) dest;
-       volatile CFG_FLASH_WORD_SIZE *data2 = (CFG_FLASH_WORD_SIZE *) & data;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *addr2 = (CONFIG_SYS_FLASH_WORD_SIZE *) (info->start[0]);
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *dest2 = (CONFIG_SYS_FLASH_WORD_SIZE *) dest;
+       volatile CONFIG_SYS_FLASH_WORD_SIZE *data2 = (CONFIG_SYS_FLASH_WORD_SIZE *) & data;
        ulong start;
        int i;
 
        /* Check if Flash is (sufficiently) erased */
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                if ((dest2[i] & swap16(data2[i])) != swap16(data2[i]))
                        return (2);
        }
 
-       for (i = 0; i < 4 / sizeof(CFG_FLASH_WORD_SIZE); i++) {
+       for (i = 0; i < 4 / sizeof(CONFIG_SYS_FLASH_WORD_SIZE); i++) {
                int flag;
 
                /* Disable interrupts which might cause a timeout here */
                flag = disable_interrupts();
 
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xAA00AA00;
-               addr2[CFG_FLASH_ADDR1] = (CFG_FLASH_WORD_SIZE) 0x55005500;
-               addr2[CFG_FLASH_ADDR0] = (CFG_FLASH_WORD_SIZE) 0xA000A000;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xAA00AA00;
+               addr2[CONFIG_SYS_FLASH_ADDR1] = (CONFIG_SYS_FLASH_WORD_SIZE) 0x55005500;
+               addr2[CONFIG_SYS_FLASH_ADDR0] = (CONFIG_SYS_FLASH_WORD_SIZE) 0xA000A000;
 
                dest2[i] = swap16(data2[i]);
 
@@ -709,10 +709,10 @@ static int write_word_16(flash_info_t * info, ulong dest, ulong data)
 
                /* data polling for D7 */
                start = get_timer(0);
-               while ((dest2[i] & (CFG_FLASH_WORD_SIZE) 0x80008000) !=
-                               (swap16(data2[i]) & (CFG_FLASH_WORD_SIZE) 0x80008000)) {
+               while ((dest2[i] & (CONFIG_SYS_FLASH_WORD_SIZE) 0x80008000) !=
+                               (swap16(data2[i]) & (CONFIG_SYS_FLASH_WORD_SIZE) 0x80008000)) {
 
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
@@ -720,7 +720,7 @@ static int write_word_16(flash_info_t * info, ulong dest, ulong data)
 
        return (0);
 }
-#endif /* CFG_FLASH_2ND_16BIT_DEV */
+#endif /* CONFIG_SYS_FLASH_2ND_16BIT_DEV */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -734,7 +734,7 @@ static int write_word(flash_info_t * info, ulong dest, ulong data);
 unsigned long flash_init(void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
        unsigned short index = 0;
        int i;
 
@@ -742,7 +742,7 @@ unsigned long flash_init(void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -765,8 +765,8 @@ unsigned long flash_init(void)
                }
 
                /* Monitor protection ON by default */
-               (void)flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                                   CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+               (void)flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                                   CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                                    &flash_info[i]);
 #if defined(CONFIG_ENV_IS_IN_FLASH)
                (void)flash_protect(FLAG_PROTECT_SET, CONFIG_ENV_ADDR,
index fd1e68bbb5a4523f984f203868e18e73ef1197c4..5483fcaf7a3886cb6c2659558492249445cae739 100644 (file)
@@ -165,9 +165,9 @@ static void i2s_init(void)
        psc->command = (PSC_RX_DISABLE | PSC_TX_DISABLE);
        psc->sicr = 0x22E00000;         /* 16 bit data; I2S */
 
-       *(vu_long *)(CFG_MBAR + 0x22C) = 0x805d; /* PSC2 CDM MCLK config; MCLK
+       *(vu_long *)(CONFIG_SYS_MBAR + 0x22C) = 0x805d; /* PSC2 CDM MCLK config; MCLK
                                                  * 5.617 MHz */
-       *(vu_long *)(CFG_MBAR + 0x214) |= 0x00000040; /* CDM clock enable
+       *(vu_long *)(CONFIG_SYS_MBAR + 0x214) |= 0x00000040; /* CDM clock enable
                                                       * register */
        psc->ccr = 0x1F03;      /* 16 bit data width; 5.617MHz MCLK */
        psc->ctur = 0x0F;       /* 16 bit frame width */
@@ -751,9 +751,9 @@ int can_init(void)
        static int init_done = 0;
        int i;
        struct mpc5xxx_mscan *can1 =
-               (struct mpc5xxx_mscan *)(CFG_MBAR + 0x0900);
+               (struct mpc5xxx_mscan *)(CONFIG_SYS_MBAR + 0x0900);
        struct mpc5xxx_mscan *can2 =
-               (struct mpc5xxx_mscan *)(CFG_MBAR + 0x0980);
+               (struct mpc5xxx_mscan *)(CONFIG_SYS_MBAR + 0x0980);
 
        /* GPIO configuration of the CAN pins is done in TQM5200.h */
 
@@ -896,9 +896,9 @@ int do_can(char *argv[])
 {
        int i;
        struct mpc5xxx_mscan *can1 =
-               (struct mpc5xxx_mscan *)(CFG_MBAR + 0x0900);
+               (struct mpc5xxx_mscan *)(CONFIG_SYS_MBAR + 0x0900);
        struct mpc5xxx_mscan *can2 =
-               (struct mpc5xxx_mscan *)(CFG_MBAR + 0x0980);
+               (struct mpc5xxx_mscan *)(CONFIG_SYS_MBAR + 0x0980);
 
        /* send a message on CAN1 */
        can1->cantbsel = 0x01;
index 5152331abdbadaf20d9f87ca774a12941b452903..faa2e02191ea4f567b077ee8ce46250ed999e424 100644 (file)
@@ -54,7 +54,7 @@ DECLARE_GLOBAL_DATA_PTR;
 void ps2mult_early_init(void);
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -101,7 +101,7 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *           use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *           use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *           is something else than 0x00000000.
  */
 
@@ -111,7 +111,7 @@ phys_size_t initdram (int board_type)
        ulong dramsize2 = 0;
        uint svr, pvr;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -132,9 +132,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -161,10 +161,10 @@ phys_size_t initdram (int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start(0);
-       test2 = test1 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x20000000);
+       test2 = test1 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x20000000);
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((long *)(CFG_SDRAM_BASE + dramsize), 0x20000000);
+               test2 = get_ram_size((long *)(CONFIG_SYS_SDRAM_BASE + dramsize), 0x20000000);
        }
        if (test1 > test2) {
                sdram_start(0);
@@ -186,7 +186,7 @@ phys_size_t initdram (int board_type)
                *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
        }
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -203,7 +203,7 @@ phys_size_t initdram (int board_type)
        } else {
                dramsize2 = 0;
        }
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /*
         * On MPC5200B we need to set the special configuration delay in the
@@ -406,7 +406,7 @@ int board_early_init_r (void)
        ps2mult_early_init();
 #endif /* CONFIG_PS2MULT */
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
        /* Low level USB init, required for proper kernel operation */
        usb_cpu_init();
 #endif
@@ -464,34 +464,34 @@ int last_stage_init (void)
         */
 
        /* save original SRAM content  */
-       save = *(volatile u16 *)CFG_CS2_START;
+       save = *(volatile u16 *)CONFIG_SYS_CS2_START;
        restore = 1;
 
        /* write test pattern to SRAM */
-       *(volatile u16 *)CFG_CS2_START = 0xA5A5;
+       *(volatile u16 *)CONFIG_SYS_CS2_START = 0xA5A5;
        __asm__ volatile ("sync");
        /*
         * Put a different pattern on the data lines: otherwise they may float
         * long enough to read back what we wrote.
         */
-       tmp = *(volatile u16 *)CFG_FLASH_BASE;
+       tmp = *(volatile u16 *)CONFIG_SYS_FLASH_BASE;
        if (tmp == 0xA5A5)
                puts ("!! possible error in SRAM detection\n");
 
-       if (*(volatile u16 *)CFG_CS2_START != 0xA5A5) {
+       if (*(volatile u16 *)CONFIG_SYS_CS2_START != 0xA5A5) {
                /* no SRAM at all, disable cs */
                *(vu_long *)MPC5XXX_ADDECR &= ~(1 << 18);
                *(vu_long *)MPC5XXX_CS2_START = 0x0000FFFF;
                *(vu_long *)MPC5XXX_CS2_STOP = 0x0000FFFF;
                restore = 0;
                __asm__ volatile ("sync");
-       } else if (*(volatile u16 *)(CFG_CS2_START + (1<<19)) == 0xA5A5) {
+       } else if (*(volatile u16 *)(CONFIG_SYS_CS2_START + (1<<19)) == 0xA5A5) {
                /* make sure that we access a mirrored address */
-               *(volatile u16 *)CFG_CS2_START = 0x1111;
+               *(volatile u16 *)CONFIG_SYS_CS2_START = 0x1111;
                __asm__ volatile ("sync");
-               if (*(volatile u16 *)(CFG_CS2_START + (1<<19)) == 0x1111) {
+               if (*(volatile u16 *)(CONFIG_SYS_CS2_START + (1<<19)) == 0x1111) {
                        /* SRAM size = 512 kByte */
-                       *(vu_long *)MPC5XXX_CS2_STOP = STOP_REG(CFG_CS2_START,
+                       *(vu_long *)MPC5XXX_CS2_STOP = STOP_REG(CONFIG_SYS_CS2_START,
                                                                0x80000);
                        __asm__ volatile ("sync");
                        puts ("SRAM:  512 kB\n");
@@ -503,7 +503,7 @@ int last_stage_init (void)
        }
        /* restore origianl SRAM content  */
        if (restore) {
-               *(volatile u16 *)CFG_CS2_START = save;
+               *(volatile u16 *)CONFIG_SYS_CS2_START = save;
                __asm__ volatile ("sync");
        }
 
@@ -513,21 +513,21 @@ int last_stage_init (void)
         */
 
        /* save origianl FB content  */
-       save = *(volatile u16 *)CFG_CS1_START;
+       save = *(volatile u16 *)CONFIG_SYS_CS1_START;
        restore = 1;
 
        /* write test pattern to FB memory */
-       *(volatile u16 *)CFG_CS1_START = 0xA5A5;
+       *(volatile u16 *)CONFIG_SYS_CS1_START = 0xA5A5;
        __asm__ volatile ("sync");
        /*
         * Put a different pattern on the data lines: otherwise they may float
         * long enough to read back what we wrote.
         */
-       tmp = *(volatile u16 *)CFG_FLASH_BASE;
+       tmp = *(volatile u16 *)CONFIG_SYS_FLASH_BASE;
        if (tmp == 0xA5A5)
                puts ("!! possible error in grafic controller detection\n");
 
-       if (*(volatile u16 *)CFG_CS1_START != 0xA5A5) {
+       if (*(volatile u16 *)CONFIG_SYS_CS1_START != 0xA5A5) {
                /* no grafic controller at all, disable cs */
                *(vu_long *)MPC5XXX_ADDECR &= ~(1 << 17);
                *(vu_long *)MPC5XXX_CS1_START = 0x0000FFFF;
@@ -539,7 +539,7 @@ int last_stage_init (void)
        }
        /* restore origianl FB content  */
        if (restore) {
-               *(volatile u16 *)CFG_CS1_START = save;
+               *(volatile u16 *)CONFIG_SYS_CS1_START = save;
                __asm__ volatile ("sync");
        }
 
@@ -679,21 +679,21 @@ unsigned int board_video_init (void)
         */
 
        /* save origianl FB content  */
-       save = *(volatile u16 *)CFG_CS1_START;
+       save = *(volatile u16 *)CONFIG_SYS_CS1_START;
        restore = 1;
 
        /* write test pattern to FB memory */
-       *(volatile u16 *)CFG_CS1_START = 0xA5A5;
+       *(volatile u16 *)CONFIG_SYS_CS1_START = 0xA5A5;
        __asm__ volatile ("sync");
        /*
         * Put a different pattern on the data lines: otherwise they may float
         * long enough to read back what we wrote.
         */
-       tmp = *(volatile u16 *)CFG_FLASH_BASE;
+       tmp = *(volatile u16 *)CONFIG_SYS_FLASH_BASE;
        if (tmp == 0xA5A5)
                puts ("!! possible error in grafic controller detection\n");
 
-       if (*(volatile u16 *)CFG_CS1_START != 0xA5A5) {
+       if (*(volatile u16 *)CONFIG_SYS_CS1_START != 0xA5A5) {
                /* no grafic controller found */
                restore = 0;
                ret = 0;
@@ -702,7 +702,7 @@ unsigned int board_video_init (void)
        }
 
        if (restore) {
-               *(volatile u16 *)CFG_CS1_START = save;
+               *(volatile u16 *)CONFIG_SYS_CS1_START = save;
                __asm__ volatile ("sync");
        }
        return ret;
index 1fe99524c6697ad8d1d63952e1d41a0edb74ed35..3ecfc4876268a582fa7b79503650d48b68a8e13d 100644 (file)
@@ -25,7 +25,7 @@
 # TQM8260 boards
 #
 
-# This should be equal to the CFG_FLASH_BASE define in config_TQM8260.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in config_TQM8260.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index 500af923ac3218dce326388163c13632ad1d9698..4a6d5382bed73c236fa19fe8f9b65c1855e8e5a6 100644 (file)
@@ -31,7 +31,7 @@
 #define V_BYTE(a)      (*(volatile unsigned char *)( a ))
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 /*-----------------------------------------------------------------------
@@ -185,13 +185,13 @@ unsigned long flash_init (void)
        int i;
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Static FLASH Bank configuration here (only one bank) */
 
-       size_b0 = flash_get_size (CFG_FLASH0_BASE, &flash_info[0]);
+       size_b0 = flash_get_size (CONFIG_SYS_FLASH0_BASE, &flash_info[0]);
        if (flash_info[0].flash_id == FLASH_UNKNOWN || size_b0 == 0) {
                printf ("## Unknown FLASH on Bank 0 - Size = 0x%08lx = %ld MB\n",
                                size_b0, size_b0 >> 20);
@@ -201,10 +201,10 @@ unsigned long flash_init (void)
         * protect monitor and environment sectors
         */
 
-#if CFG_MONITOR_BASE >= CFG_FLASH0_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH0_BASE
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]);
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH) && defined(CONFIG_ENV_ADDR)
@@ -364,7 +364,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
        while ((V_ULONG (info->start[l_sect]) & 0x00800080) != 0x00800080 ||
               (V_ULONG (info->start[l_sect] + 4) & 0x00800080) != 0x00800080)
        {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -480,7 +480,7 @@ static int write_dword (flash_info_t * info, ulong dest, unsigned char *pdata)
        start = get_timer (0);
        while (((V_ULONG (dest) & 0x00800080) != (ch & 0x00800080)) ||
                   ((V_ULONG (dest + 4) & 0x00800080) != (cl & 0x00800080))) {
-               if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index f201045d9558e45686a18e3790eb692e65c55d08..3039999f3ba89a4b98764c777c85c5b53e729aea 100644 (file)
@@ -236,7 +236,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         */
        maxsize = (1 + (~orx | 0x7fff)) / 2;
 
-       /* Since CFG_SDRAM_BASE is always 0 (??), we assume that
+       /* Since CONFIG_SYS_SDRAM_BASE is always 0 (??), we assume that
         * we are configuring CS1 if base != 0
         */
        sdmr_ptr = base ? &memctl->memc_lsdmr : &memctl->memc_psdmr;
@@ -261,7 +261,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -272,7 +272,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -285,10 +285,10 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        long size8, size9;
 #endif
        long psize, lsize;
@@ -296,8 +296,8 @@ phys_size_t initdram (int board_type)
        psize = 16 * 1024 * 1024;
        lsize = 0;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
 #if 0                                                  /* Just for debugging */
 #define        prt_br_or(brX,orX) do {                         \
@@ -315,37 +315,37 @@ phys_size_t initdram (int board_type)
        prt_br_or (br3, or3);
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR1_8COL,
-                                         (uchar *) CFG_SDRAM_BASE);
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR1_9COL,
-                                         (uchar *) CFG_SDRAM_BASE);
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR1_8COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR1_9COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE);
 
        if (size8 < size9) {
                psize = size9;
                printf ("(60x:9COL - %ld MB, ", psize >> 20);
        } else {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR1_8COL,
-                                                 (uchar *) CFG_SDRAM_BASE);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR1_8COL,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE);
                printf ("(60x:8COL - %ld MB, ", psize >> 20);
        }
 
        /* Local SDRAM setup:
         */
-#ifdef CFG_INIT_LOCAL_SDRAM
-       memctl->memc_lsrt = CFG_LSRT;
-       size8 = try_init (memctl, CFG_LSDMR_8COL, CFG_OR2_8COL,
+#ifdef CONFIG_SYS_INIT_LOCAL_SDRAM
+       memctl->memc_lsrt = CONFIG_SYS_LSRT;
+       size8 = try_init (memctl, CONFIG_SYS_LSDMR_8COL, CONFIG_SYS_OR2_8COL,
                                          (uchar *) SDRAM_BASE2_PRELIM);
-       size9 = try_init (memctl, CFG_LSDMR_9COL, CFG_OR2_9COL,
+       size9 = try_init (memctl, CONFIG_SYS_LSDMR_9COL, CONFIG_SYS_OR2_9COL,
                                          (uchar *) SDRAM_BASE2_PRELIM);
 
        if (size8 < size9) {
                lsize = size9;
                printf ("Local:9COL - %ld MB) using ", lsize >> 20);
        } else {
-               lsize = try_init (memctl, CFG_LSDMR_8COL, CFG_OR2_8COL,
+               lsize = try_init (memctl, CONFIG_SYS_LSDMR_8COL, CONFIG_SYS_OR2_8COL,
                                                  (uchar *) SDRAM_BASE2_PRELIM);
                printf ("Local:8COL - %ld MB) using ", lsize >> 20);
        }
@@ -354,11 +354,11 @@ phys_size_t initdram (int board_type)
        /* Set up BR2 so that the local SDRAM goes
         * right after the 60x SDRAM
         */
-       memctl->memc_br2 = (CFG_BR2_PRELIM & ~BRx_BA_MSK) |
-                       (CFG_SDRAM_BASE + psize);
+       memctl->memc_br2 = (CONFIG_SYS_BR2_PRELIM & ~BRx_BA_MSK) |
+                       (CONFIG_SYS_SDRAM_BASE + psize);
 #endif
-#endif /* CFG_INIT_LOCAL_SDRAM */
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_INIT_LOCAL_SDRAM */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
index af7a81e33589db0ec678028cd7032e273ca15781..05c5f0cb89ab1db424fc8b03c052878702e7d1f6 100644 (file)
@@ -25,7 +25,7 @@
 # TQM8272 boards
 #
 
-# This should be equal to the CFG_FLASH_BASE define in config_TQM8260.h
+# This should be equal to the CONFIG_SYS_FLASH_BASE define in config_TQM8260.h
 # for the "final" configuration, with U-Boot in flash, or the address
 # in RAM where U-Boot is loaded at for debugging.
 #
index b988ffa0ed98b48074697e48cd0448c3ea31790f..8c8341b5ac54bfc1a1cb43a5ec623aa52ff3d993 100644 (file)
@@ -141,12 +141,12 @@ static u8 hwctl = 0;
 static void upmnand_write_byte(struct mtd_info *mtdinfo, u_char byte)
 {
        struct nand_chip *this = mtdinfo->priv;
-       ulong base = (ulong) (this->IO_ADDR_W + chipsel * CFG_NAND_CS_DIST);
+       ulong base = (ulong) (this->IO_ADDR_W + chipsel * CONFIG_SYS_NAND_CS_DIST);
 
        if (hwctl & 0x1) {
-               WRITE_NAND_UPM(byte, base, CFG_NAND_UPM_WRITE_CMD_OFS);
+               WRITE_NAND_UPM(byte, base, CONFIG_SYS_NAND_UPM_WRITE_CMD_OFS);
        } else if (hwctl & 0x2) {
-               WRITE_NAND_UPM(byte, base, CFG_NAND_UPM_WRITE_ADDR_OFS);
+               WRITE_NAND_UPM(byte, base, CONFIG_SYS_NAND_UPM_WRITE_ADDR_OFS);
        } else {
                WRITE_NAND(byte, base);
        }
@@ -171,7 +171,7 @@ static void upmnand_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
 static u_char upmnand_read_byte(struct mtd_info *mtdinfo)
 {
        struct nand_chip *this = mtdinfo->priv;
-       ulong base = (ulong) (this->IO_ADDR_W + chipsel * CFG_NAND_CS_DIST);
+       ulong base = (ulong) (this->IO_ADDR_W + chipsel * CONFIG_SYS_NAND_CS_DIST);
 
        return READ_NAND(base);
 }
@@ -187,7 +187,7 @@ static int tqm8272_dev_ready(struct mtd_info *mtdinfo)
 static void tqm8272_read_buf(struct mtd_info *mtdinfo, uint8_t *buf, int len)
 {
        struct nand_chip *this = mtdinfo->priv;
-       unsigned char *base = (unsigned char *) (this->IO_ADDR_W + chipsel * CFG_NAND_CS_DIST);
+       unsigned char *base = (unsigned char *) (this->IO_ADDR_W + chipsel * CONFIG_SYS_NAND_CS_DIST);
        int     i;
 
        for (i = 0; i< len; i++)
@@ -197,7 +197,7 @@ static void tqm8272_read_buf(struct mtd_info *mtdinfo, uint8_t *buf, int len)
 static void tqm8272_write_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int len)
 {
        struct nand_chip *this = mtdinfo->priv;
-       unsigned char *base = (unsigned char *) (this->IO_ADDR_W + chipsel * CFG_NAND_CS_DIST);
+       unsigned char *base = (unsigned char *) (this->IO_ADDR_W + chipsel * CONFIG_SYS_NAND_CS_DIST);
        int     i;
 
        for (i = 0; i< len; i++)
@@ -207,7 +207,7 @@ static void tqm8272_write_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int
 static int tqm8272_verify_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int len)
 {
        struct nand_chip *this = mtdinfo->priv;
-       unsigned char *base = (unsigned char *) (this->IO_ADDR_W + chipsel * CFG_NAND_CS_DIST);
+       unsigned char *base = (unsigned char *) (this->IO_ADDR_W + chipsel * CONFIG_SYS_NAND_CS_DIST);
        int     i;
 
        for (i = 0; i < len; i++)
@@ -225,7 +225,7 @@ void board_nand_select_device(struct nand_chip *nand, int chip)
 int board_nand_init(struct nand_chip *nand)
 {
        static  int     UpmInit = 0;
-       volatile immap_t * immr = (immap_t *)CFG_IMMR;
+       volatile immap_t * immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immr->im_memctl;
 
        if (hwinf.nand == 0) return -1;
@@ -250,8 +250,8 @@ int board_nand_init(struct nand_chip *nand)
        }
 
        /* Setup the memctrl */
-       memctl->memc_or3 = CFG_NAND_OR;
-       memctl->memc_br3 = CFG_NAND_BR;
+       memctl->memc_or3 = CONFIG_SYS_NAND_OR;
+       memctl->memc_br3 = CONFIG_SYS_NAND_BR;
        memctl->memc_mbmr = (MxMR_OP_NORM);
 
        nand->ecc.mode = NAND_ECC_SOFT;
index fc0a29c101f25e092c2baaa2250ef57152c36cc0..5d0741d8096ad27b80c215d140e14bfedb3faaad 100644 (file)
@@ -287,7 +287,7 @@ int checkboard (void)
        char *p = (char *) HWIB_INFO_START_ADDR;
 
        puts ("Board: ");
-       if (*((unsigned long *)p) == (unsigned long)CFG_HWINFO_MAGIC) {
+       if (*((unsigned long *)p) == (unsigned long)CONFIG_SYS_HWINFO_MAGIC) {
                puts (p);
        } else {
                puts ("No HWIB assuming TQM8272");
@@ -327,7 +327,7 @@ static ulong set_sdram_timing (volatile uint *sdmr_ptr, ulong sdmr, int col)
 {
 #if defined(CONFIG_BOARD_GET_CPU_CLK_F)
        int     clk = board_get_cpu_clk_f ();
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        int     busmode = (immr->im_siu_conf.sc_bcr & BCR_EBM ? 1 : 0);
        int     cas;
 
@@ -404,7 +404,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         */
        maxsize = (1 + (~orx | 0x7fff)) / 2;
 
-       /* Since CFG_SDRAM_BASE is always 0 (??), we assume that
+       /* Since CONFIG_SYS_SDRAM_BASE is always 0 (??), we assume that
         * we are configuring CS1 if base != 0
         */
        sdmr_ptr = base ? &memctl->memc_lsdmr : &memctl->memc_psdmr;
@@ -429,7 +429,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
         *  accessing the SDRAM with a single-byte transaction."
         *
         * The appropriate BRx/ORx registers have already been set when we
-        * get here. The SDRAM can be accessed at the address CFG_SDRAM_BASE.
+        * get here. The SDRAM can be accessed at the address CONFIG_SYS_SDRAM_BASE.
         */
 
        *sdmr_ptr = sdmr | PSDMR_OP_PREA;
@@ -440,7 +440,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
                *base = c;
 
        *sdmr_ptr = sdmr | PSDMR_OP_MRW;
-       *(base + CFG_MRS_OFFS) = c;     /* setting MR on address lines */
+       *(base + CONFIG_SYS_MRS_OFFS) = c;      /* setting MR on address lines */
 
        *sdmr_ptr = sdmr | PSDMR_OP_NORM | PSDMR_RFEN;
        *base = c;
@@ -453,10 +453,10 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        long size8, size9;
 #endif
        long psize, lsize;
@@ -464,27 +464,27 @@ phys_size_t initdram (int board_type)
        psize = 16 * 1024 * 1024;
        lsize = 0;
 
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* 60x SDRAM setup:
         */
-       size8 = try_init (memctl, CFG_PSDMR_8COL, CFG_OR1_8COL,
-                                         (uchar *) CFG_SDRAM_BASE, 8);
-       size9 = try_init (memctl, CFG_PSDMR_9COL, CFG_OR1_9COL,
-                                         (uchar *) CFG_SDRAM_BASE, 9);
+       size8 = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR1_8COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE, 8);
+       size9 = try_init (memctl, CONFIG_SYS_PSDMR_9COL, CONFIG_SYS_OR1_9COL,
+                                         (uchar *) CONFIG_SYS_SDRAM_BASE, 9);
 
        if (size8 < size9) {
                psize = size9;
                printf ("(60x:9COL - %ld MB, ", psize >> 20);
        } else {
-               psize = try_init (memctl, CFG_PSDMR_8COL, CFG_OR1_8COL,
-                                                 (uchar *) CFG_SDRAM_BASE, 8);
+               psize = try_init (memctl, CONFIG_SYS_PSDMR_8COL, CONFIG_SYS_OR1_8COL,
+                                                 (uchar *) CONFIG_SYS_SDRAM_BASE, 8);
                printf ("(60x:8COL - %ld MB, ", psize >> 20);
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        icache_enable ();
 
@@ -514,7 +514,7 @@ static inline int scanChar (char *p, int len, unsigned long *number)
 static int dump_hwib(void)
 {
        HWIB_INFO       *hw = &hwinf;
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        char *s = getenv("serial#");
 
        if (hw->OK) {
@@ -607,7 +607,7 @@ int analyse_hwib (void)
 
        deb_printf(" %s pointer: %p\n", __FUNCTION__, p);
        /* Head = TQM */
-       if (*((unsigned long *)p) != (unsigned long)CFG_HWINFO_MAGIC) {
+       if (*((unsigned long *)p) != (unsigned long)CONFIG_SYS_HWINFO_MAGIC) {
                deb_printf("No HWIB\n");
                return -1;
        }
@@ -704,7 +704,7 @@ int analyse_hwib (void)
 
        hw->OK = 1;
        /* search MAC Address */
-       while ((*p != '\0') && (pos < CFG_HWINFO_SIZE)) {
+       while ((*p != '\0') && (pos < CONFIG_SYS_HWINFO_SIZE)) {
                if (*p < ' ' || *p > '~') { /* ASCII strings! */
                        return 0;
                }
@@ -744,7 +744,7 @@ char get_cpu_str_f (char *buf)
        buf[i++] = 'M';
        buf[i++] = 'P';
        buf[i++] = 'C';
-       if (*((unsigned long *)p) == (unsigned long)CFG_HWINFO_MAGIC) {
+       if (*((unsigned long *)p) == (unsigned long)CONFIG_SYS_HWINFO_MAGIC) {
                buf[i++] = *&p[3];
                buf[i++] = *&p[4];
                buf[i++] = *&p[5];
@@ -767,7 +767,7 @@ unsigned long board_get_cpu_clk_f (void)
        char *p = (char *) HWIB_INFO_START_ADDR;
        int i = 0;
 
-       if (*((unsigned long *)p) == (unsigned long)CFG_HWINFO_MAGIC) {
+       if (*((unsigned long *)p) == (unsigned long)CONFIG_SYS_HWINFO_MAGIC) {
                if (search_real_busclk (&i))
                        return i;
        }
@@ -779,7 +779,7 @@ unsigned long board_get_cpu_clk_f (void)
 
 static int can_test (unsigned long off)
 {
-       volatile unsigned char  *base   = (unsigned char *) (CFG_CAN_BASE + off);
+       volatile unsigned char  *base   = (unsigned char *) (CONFIG_SYS_CAN_BASE + off);
 
        *(base + 0x17) = 'T';
        *(base + 0x18) = 'Q';
@@ -794,9 +794,9 @@ static int can_test (unsigned long off)
 
 static int can_config_one (unsigned long off)
 {
-       volatile unsigned char  *ctrl   = (unsigned char *) (CFG_CAN_BASE + off);
-       volatile unsigned char  *cpu_if = (unsigned char *) (CFG_CAN_BASE + off + 0x02);
-       volatile unsigned char  *clkout = (unsigned char *) (CFG_CAN_BASE + off + 0x1f);
+       volatile unsigned char  *ctrl   = (unsigned char *) (CONFIG_SYS_CAN_BASE + off);
+       volatile unsigned char  *cpu_if = (unsigned char *) (CONFIG_SYS_CAN_BASE + off + 0x02);
+       volatile unsigned char  *clkout = (unsigned char *) (CONFIG_SYS_CAN_BASE + off + 0x1f);
        unsigned char temp;
 
        *cpu_if = 0x45;
@@ -825,13 +825,13 @@ static int can_config (void)
 
 static int init_can (void)
 {
-       volatile immap_t * immr = (immap_t *)CFG_IMMR;
+       volatile immap_t * immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immr->im_memctl;
        int     count = 0;
 
        if ((hwinf.OK) && (hwinf.can)) {
-               memctl->memc_or4 = CFG_CAN_OR;
-               memctl->memc_br4 = CFG_CAN_BR;
+               memctl->memc_or4 = CONFIG_SYS_CAN_OR;
+               memctl->memc_br4 = CONFIG_SYS_CAN_BR;
                /* upm Init */
                upmconfig (UPMC, (uint *) upmTableFast,
                           sizeof (upmTableFast) / sizeof (uint));
@@ -842,7 +842,7 @@ static int init_can (void)
                                        MxMR_OP_NORM);
                /* can configure */
                count = can_config ();
-               printf ("CAN:   %d @ %x\n", count, CFG_CAN_BASE);
+               printf ("CAN:   %d @ %x\n", count, CONFIG_SYS_CAN_BASE);
                if (hwinf.can != count) printf("!!! difference to HWIB\n");
        } else {
                printf ("CAN:   No\n");
@@ -870,7 +870,7 @@ U_BOOT_CMD(
          "\n"
 );
 
-#ifdef CFG_UPDATE_FLASH_SIZE
+#ifdef CONFIG_SYS_UPDATE_FLASH_SIZE
 static int get_flash_timing (void)
 {
        /* get it from the option -tf in CIB */
@@ -915,7 +915,7 @@ static int get_flash_timing (void)
 /* Update the Flash_Size and the Flash Timing */
 int update_flash_size (int flash_size)
 {
-       volatile immap_t * immr = (immap_t *)CFG_IMMR;
+       volatile immap_t * immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immr->im_memctl;
        unsigned long reg;
        unsigned long tim;
@@ -937,7 +937,7 @@ struct pci_controller hose;
 
 int board_early_init_f (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        immap->im_clkrst.car_sccr |= M826X_SCCR_PCI_MODE_EN;
        return 0;
index e3d0309d90ecb403106618ff7bef4c77c87aecfd..0eedf4ae4681e59343c54a0ef8082b0cc41eef23 100644 (file)
@@ -29,8 +29,8 @@
 #ifdef CONFIG_PCI
 
 /* System RAM mapped to PCI space */
-#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CONFIG_SYS_SDRAM_BASE
 #define CONFIG_PCI_SYS_MEM_SIZE        (1024 * 1024 * 1024)
 
 #ifndef CONFIG_PCI_PNP
@@ -78,7 +78,7 @@ pci_init_board(void)
        u32 reg32;
        struct  pci_controller * hose;
 
-       immr = (immap_t *)CFG_IMMR;
+       immr = (immap_t *)CONFIG_SYS_IMMR;
        clk = (clk83xx_t *)&immr->clk;
        pci_law = immr->sysconf.pcilaw;
        pci_pot = immr->ios.pot;
@@ -128,10 +128,10 @@ pci_init_board(void)
        /*
         * Configure PCI Local Access Windows
         */
-       pci_law[0].bar = CFG_PCI1_MEM_PHYS & LAWBAR_BAR;
+       pci_law[0].bar = CONFIG_SYS_PCI1_MEM_PHYS & LAWBAR_BAR;
        pci_law[0].ar = LAWAR_EN | LAWAR_SIZE_512M;
 
-       pci_law[1].bar = CFG_PCI1_IO_PHYS & LAWBAR_BAR;
+       pci_law[1].bar = CONFIG_SYS_PCI1_IO_PHYS & LAWBAR_BAR;
        pci_law[1].ar = LAWAR_EN | LAWAR_SIZE_16M;
 
        /*
@@ -139,13 +139,13 @@ pci_init_board(void)
         */
 
        /* PCI1 mem space */
-       pci_pot[0].potar = (CFG_PCI1_MEM_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[0].pobar = (CFG_PCI1_MEM_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[0].potar = (CONFIG_SYS_PCI1_MEM_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[0].pobar = (CONFIG_SYS_PCI1_MEM_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[0].pocmr = POCMR_EN | (POCMR_CM_512M & POCMR_CM_MASK);
 
        /* PCI1 IO space */
-       pci_pot[1].potar = (CFG_PCI1_IO_BASE >> 12) & POTAR_TA_MASK;
-       pci_pot[1].pobar = (CFG_PCI1_IO_PHYS >> 12) & POBAR_BA_MASK;
+       pci_pot[1].potar = (CONFIG_SYS_PCI1_IO_BASE >> 12) & POTAR_TA_MASK;
+       pci_pot[1].pobar = (CONFIG_SYS_PCI1_IO_PHYS >> 12) & POBAR_BA_MASK;
        pci_pot[1].pocmr = POCMR_EN | POCMR_IO | (POCMR_CM_16M & POCMR_CM_MASK);
 
        /*
@@ -164,16 +164,16 @@ pci_init_board(void)
 
        /* PCI memory space */
        pci_set_region(hose->regions + 0,
-                      CFG_PCI1_MEM_BASE,
-                      CFG_PCI1_MEM_PHYS,
-                      CFG_PCI1_MEM_SIZE,
+                      CONFIG_SYS_PCI1_MEM_BASE,
+                      CONFIG_SYS_PCI1_MEM_PHYS,
+                      CONFIG_SYS_PCI1_MEM_SIZE,
                       PCI_REGION_MEM);
 
        /* PCI IO space */
        pci_set_region(hose->regions + 1,
-                      CFG_PCI1_IO_BASE,
-                      CFG_PCI1_IO_PHYS,
-                      CFG_PCI1_IO_SIZE,
+                      CONFIG_SYS_PCI1_IO_BASE,
+                      CONFIG_SYS_PCI1_IO_PHYS,
+                      CONFIG_SYS_PCI1_IO_SIZE,
                       PCI_REGION_IO);
 
        /* System memory space */
@@ -186,8 +186,8 @@ pci_init_board(void)
        hose->region_count = 3;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR+0x8300),
-                          (CFG_IMMR+0x8304));
+                          (CONFIG_SYS_IMMR+0x8300),
+                          (CONFIG_SYS_IMMR+0x8304));
 
        pci_register_hose(hose);
 
index 278780dde5b469309512e836c5472be86f812341..106cac2448e8ff99e8da3f538d432c035961e139 100644 (file)
@@ -67,7 +67,7 @@ static void set_cs_config(short cs, long config);
 static void set_ddr_config(void);
 
 /* Local variable */
-static volatile immap_t *im = (immap_t *)CFG_IMMR;
+static volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
 
 /**************************************************************************
  * Board initialzation after relocation to RAM. Used to detect the number
@@ -92,13 +92,13 @@ phys_size_t initdram (int board_type)
        int cs;
 
        /* during size detection, set up the max DDRLAW size */
-       im->sysconf.ddrlaw[0].bar = CFG_DDR_BASE;
+       im->sysconf.ddrlaw[0].bar = CONFIG_SYS_DDR_BASE;
        im->sysconf.ddrlaw[0].ar = (LAWAR_EN | LAWAR_SIZE_2G);
 
        /* set CS bounds to maximum size */
        for(cs = 0; cs < 4; ++cs) {
                set_cs_bounds(cs,
-                       CFG_DDR_BASE + (cs * DDR_MAX_SIZE_PER_CS),
+                       CONFIG_SYS_DDR_BASE + (cs * DDR_MAX_SIZE_PER_CS),
                        DDR_MAX_SIZE_PER_CS);
 
                set_cs_config(cs, INITIAL_CS_CONFIG);
@@ -122,7 +122,7 @@ phys_size_t initdram (int board_type)
                debug("\nDetecting Bank%d\n", cs);
 
                bank_size = get_ddr_bank_size(cs,
-                       (volatile long*)(CFG_DDR_BASE + size));
+                       (volatile long*)(CONFIG_SYS_DDR_BASE + size));
                size += bank_size;
 
                debug("DDR Bank%d size: %d MiB\n\n", cs, bank_size >> 20);
@@ -145,7 +145,7 @@ int checkboard (void)
        volatile immap_t * immr;
        u32 w, f;
 
-       immr = (immap_t *)CFG_IMMR;
+       immr = (immap_t *)CONFIG_SYS_IMMR;
        if (!(immr->reset.rcwh & HRCWH_PCI_HOST)) {
                printf("PCI:   NOT in host mode..?!\n");
                return 0;
@@ -193,9 +193,9 @@ static int detect_num_flash_banks(void)
        tqm834x_num_flash_banks = 2;    /* assume two banks */
 
        /* Get bank 1 and 2 information */
-       bank1_size = flash_get_size(CFG_FLASH_BASE, 0);
+       bank1_size = flash_get_size(CONFIG_SYS_FLASH_BASE, 0);
        debug("Bank1 size: %lu\n", bank1_size);
-       bank2_size = flash_get_size(CFG_FLASH_BASE + bank1_size, 1);
+       bank2_size = flash_get_size(CONFIG_SYS_FLASH_BASE + bank1_size, 1);
        debug("Bank2 size: %lu\n", bank2_size);
        total_size = bank1_size + bank2_size;
 
@@ -203,8 +203,8 @@ static int detect_num_flash_banks(void)
                /* Seems like we've got bank 2, but maybe it's mirrored 1 */
 
                /* Set the base addresses */
-               bank1_base = (FPWV *) (CFG_FLASH_BASE);
-               bank2_base = (FPWV *) (CFG_FLASH_BASE + bank1_size);
+               bank1_base = (FPWV *) (CONFIG_SYS_FLASH_BASE);
+               bank2_base = (FPWV *) (CONFIG_SYS_FLASH_BASE + bank1_size);
 
                /* Put bank 2 into CFI command mode and read */
                bank2_base[0x55] = 0x00980098;
@@ -253,9 +253,9 @@ static int detect_num_flash_banks(void)
        debug("Number of flash banks detected: %d\n", tqm834x_num_flash_banks);
 
        /* set OR0 and BR0 */
-       im->lbus.bank[0].or = CFG_OR_TIMING_FLASH |
+       im->lbus.bank[0].or = CONFIG_SYS_OR_TIMING_FLASH |
                (-(total_size) & OR_GPCM_AM);
-       im->lbus.bank[0].br = (CFG_FLASH_BASE & BR_BA) |
+       im->lbus.bank[0].br = (CONFIG_SYS_FLASH_BASE & BR_BA) |
                (BR_MS_GPCM | BR_PS_32 | BR_V);
 
        return (0);
index de3ea00e38d0b0e3ee470dca7572ec731d30de71..fc92cd8b38e5d72d396d504e994ea538ac588479 100644 (file)
 #endif
 
 struct law_entry law_table[] = {
-       SET_LAW(CFG_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR),
-       SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
-       SET_LAW(CFG_LBC_FLASH_BASE, LAW_3_SIZE, LAW_TRGT_IF_LBC),
-       SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR),
+       SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI),
+       SET_LAW(CONFIG_SYS_LBC_FLASH_BASE, LAW_3_SIZE, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI),
 #ifdef CONFIG_PCIE1
-       SET_LAW(CFG_PCIE1_MEM_BASE, LAW_5_SIZE, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE1_MEM_BASE, LAW_5_SIZE, LAW_TRGT_IF_PCIE_1),
 #else /* !CONFIG_PCIE1 */
-       SET_LAW(CFG_RIO_MEM_BASE, LAW_5_SIZE, LAW_TRGT_IF_RIO),
+       SET_LAW(CONFIG_SYS_RIO_MEM_BASE, LAW_5_SIZE, LAW_TRGT_IF_RIO),
 #endif /* CONFIG_PCIE1 */
 #if defined(CONFIG_CAN_DRIVER) || defined(CONFIG_NAND)
-       SET_LAW(CFG_CAN_BASE, LAW_SIZE_16M, LAW_TRGT_IF_LBC),
+       SET_LAW(CONFIG_SYS_CAN_BASE, LAW_SIZE_16M, LAW_TRGT_IF_LBC),
 #endif /* CONFIG_CAN_DRIVER || CONFIG_NAND */
 #ifdef CONFIG_PCIE1
-       SET_LAW(CFG_PCIE1_IO_BASE, LAW_SIZE_16M, LAW_TRGT_IF_PCIE_1),
+       SET_LAW(CONFIG_SYS_PCIE1_IO_BASE, LAW_SIZE_16M, LAW_TRGT_IF_PCIE_1),
 #endif /* CONFIG_PCIE */
 };
 
index 9c5c12c844ea8f8334ae578f2d4eb65d483a45e5..dea652dfd9fab0d4acff5661720b61d9fc182cb1 100644 (file)
@@ -41,10 +41,10 @@ DECLARE_GLOBAL_DATA_PTR;
 extern uint get_lbc_clock (void);
 
 /* index of UPM RAM array run pattern for NAND command cycle */
-#define        CFG_NAN_UPM_WRITE_CMD_OFS       0x08
+#define        CONFIG_SYS_NAN_UPM_WRITE_CMD_OFS        0x08
 
 /* index of UPM RAM array run pattern for NAND address cycle */
-#define        CFG_NAND_UPM_WRITE_ADDR_OFS     0x10
+#define        CONFIG_SYS_NAND_UPM_WRITE_ADDR_OFS      0x10
 
 /* Structure for table with supported UPM timings */
 struct upm_freq {
@@ -377,7 +377,7 @@ volatile const u32 *nand_upm_patt;
  */
 static void upmb_write (u_char addr, ulong val)
 {
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        out_be32 (&lbc->mdr, val);
 
@@ -385,7 +385,7 @@ static void upmb_write (u_char addr, ulong val)
                        MxMR_OP_WARR | (addr & MxMR_MAD_MSK));
 
        /* dummy access to perform write */
-       out_8 ((void __iomem *)CFG_NAND0_BASE, 0);
+       out_8 ((void __iomem *)CONFIG_SYS_NAND0_BASE, 0);
 
        clrbits_be32(&lbc->mbmr, MxMR_OP_WARR);
 }
@@ -396,11 +396,11 @@ static void upmb_write (u_char addr, ulong val)
 static void nand_upm_setup (volatile ccsr_lbc_t *lbc)
 {
        uint i;
-       uint or3 = CFG_OR3_PRELIM;
+       uint or3 = CONFIG_SYS_OR3_PRELIM;
        uint clock = get_lbc_clock ();
 
        out_be32 (&lbc->br3, 0);        /* disable bank and reset all bits */
-       out_be32 (&lbc->br3, CFG_BR3_PRELIM);
+       out_be32 (&lbc->br3, CONFIG_SYS_BR3_PRELIM);
 
        /*
         * Search appropriate UPM table for bus clock.
@@ -455,7 +455,7 @@ void board_nand_select_device (struct nand_chip *nand, int chip)
 
 int board_nand_init (struct nand_chip *nand)
 {
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        if (!nand_upm_patt)
                nand_upm_setup (lbc);
index 33bc4077e547e50fe4201c74b7a9807f30d762b9..783b2809e7786c6a04e8911f82c5414bbe47bf81 100644 (file)
@@ -66,9 +66,9 @@ int cas_latency (void);
 long int sdram_setup (int casl)
 {
        int i;
-       volatile ccsr_ddr_t *ddr = (void *)(CFG_MPC85xx_DDR_ADDR);
+       volatile ccsr_ddr_t *ddr = (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
 #ifdef CONFIG_TQM8548
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 #else /* !CONFIG_TQM8548 */
        unsigned long cfg_ddr_timing1;
        unsigned long cfg_ddr_mode;
@@ -296,7 +296,7 @@ phys_size_t initdram (int board_type)
         * This DLL-Override only used on TQM8540 and TQM8560
         */
        {
-               volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+               volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
                int i, x;
 
                x = 10;
@@ -336,11 +336,11 @@ phys_size_t initdram (int board_type)
        return dram_size;
 }
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
-       uint *pstart = (uint *) CFG_MEMTEST_START;
-       uint *pend = (uint *) CFG_MEMTEST_END;
+       uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
+       uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;
        uint *p;
 
        printf ("SDRAM test phase 1:\n");
index 380448a4f55510c1373823232619214780f02bf3..16b102d1e5e2f954ff51a2082a27d75e559289d5 100644 (file)
 
 struct fsl_e_tlb_entry tlb_table[] = {
        /* TLB 0 - for temp stack in cache */
-       SET_TLB_ENTRY (0, CFG_INIT_RAM_ADDR, CFG_INIT_RAM_ADDR,
+       SET_TLB_ENTRY (0, CONFIG_SYS_INIT_RAM_ADDR, CONFIG_SYS_INIT_RAM_ADDR,
                       MAS3_SX | MAS3_SW | MAS3_SR, 0,
                       0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY (0, CFG_INIT_RAM_ADDR + 4 * 1024,
-                      CFG_INIT_RAM_ADDR + 4 * 1024,
+       SET_TLB_ENTRY (0, CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
+                      CONFIG_SYS_INIT_RAM_ADDR + 4 * 1024,
                       MAS3_SX | MAS3_SW | MAS3_SR, 0,
                       0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY (0, CFG_INIT_RAM_ADDR + 8 * 1024,
-                      CFG_INIT_RAM_ADDR + 8 * 1024,
+       SET_TLB_ENTRY (0, CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
+                      CONFIG_SYS_INIT_RAM_ADDR + 8 * 1024,
                       MAS3_SX | MAS3_SW | MAS3_SR, 0,
                       0, 0, BOOKE_PAGESZ_4K, 0),
-       SET_TLB_ENTRY (0, CFG_INIT_RAM_ADDR + 12 * 1024,
-                      CFG_INIT_RAM_ADDR + 12 * 1024,
+       SET_TLB_ENTRY (0, CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
+                      CONFIG_SYS_INIT_RAM_ADDR + 12 * 1024,
                       MAS3_SX | MAS3_SW | MAS3_SR, 0,
                       0, 0, BOOKE_PAGESZ_4K, 0),
 
@@ -50,11 +50,11 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xf8000000   128M    FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY (1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 1, BOOKE_PAGESZ_64M, 1),
-       SET_TLB_ENTRY (1, CFG_FLASH_BASE + 0x4000000,
-                      CFG_FLASH_BASE + 0x4000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_FLASH_BASE + 0x4000000,
+                      CONFIG_SYS_FLASH_BASE + 0x4000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 0, BOOKE_PAGESZ_64M, 1),
 
@@ -62,7 +62,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 2:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY (1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 2, BOOKE_PAGESZ_256M, 1),
 
@@ -70,8 +70,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 3:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY (1, CFG_PCI1_MEM_PHYS + 0x10000000,
-                      CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
+                      CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 3, BOOKE_PAGESZ_256M, 1),
 
@@ -80,7 +80,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    PCI express MEM First half
         */
-       SET_TLB_ENTRY (1, CFG_PCIE1_MEM_BASE, CFG_PCIE1_MEM_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCIE1_MEM_BASE, CONFIG_SYS_PCIE1_MEM_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -88,8 +88,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 5:       256M    Non-cacheable, guarded
         * 0xd0000000   256M    PCI express MEM Second half
         */
-       SET_TLB_ENTRY (1, CFG_PCIE1_MEM_BASE + 0x10000000,
-                      CFG_PCIE1_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCIE1_MEM_BASE + 0x10000000,
+                      CONFIG_SYS_PCIE1_MEM_BASE + 0x10000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 5, BOOKE_PAGESZ_256M, 1),
 #else /* !CONFIG_PCIE */
@@ -97,7 +97,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    Rapid IO MEM First half
         */
-       SET_TLB_ENTRY (1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -105,8 +105,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 5:       256M    Non-cacheable, guarded
         * 0xd0000000   256M    Rapid IO MEM Second half
         */
-       SET_TLB_ENTRY (1, CFG_RIO_MEM_BASE + 0x10000000,
-                      CFG_RIO_MEM_BASE + 0x10000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
+                      CONFIG_SYS_RIO_MEM_BASE + 0x10000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 5, BOOKE_PAGESZ_256M, 1),
 #endif /* CONFIG_PCIE */
@@ -117,7 +117,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xe2000000    16M    PCI1 IO
         * 0xe3000000    16M    CAN and NAND Flash
         */
-       SET_TLB_ENTRY (1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY (1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 6, BOOKE_PAGESZ_64M, 1),
 
@@ -128,12 +128,12 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Make sure the TLB count at the top of this table is correct.
         * Likely it needs to be increased by two for these entries.
         */
-       SET_TLB_ENTRY (1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 7, BOOKE_PAGESZ_256M, 1),
 
-       SET_TLB_ENTRY (1, CFG_DDR_SDRAM_BASE + 0x10000000,
-                      CFG_DDR_SDRAM_BASE + 0x10000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000,
+                      CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 8, BOOKE_PAGESZ_256M, 1),
 
@@ -142,7 +142,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 9:        16M    Non-cacheable, guarded
         * 0xef000000    16M    PCI express IO
         */
-       SET_TLB_ENTRY (1, CFG_PCIE1_IO_BASE, CFG_PCIE1_IO_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCIE1_IO_BASE, CONFIG_SYS_PCIE1_IO_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 9, BOOKE_PAGESZ_16M, 1),
 #endif /* CONFIG_PCIE */
@@ -154,19 +154,19 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xc0000000     1G    FLASH
         * Out of reset this entry is only 4K.
         */
-       SET_TLB_ENTRY (1, CFG_FLASH_BASE, CFG_FLASH_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 3, BOOKE_PAGESZ_256M, 1),
-       SET_TLB_ENTRY (1, CFG_FLASH_BASE + 0x10000000,
-                      CFG_FLASH_BASE + 0x10000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_FLASH_BASE + 0x10000000,
+                      CONFIG_SYS_FLASH_BASE + 0x10000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 2, BOOKE_PAGESZ_256M, 1),
-       SET_TLB_ENTRY (1, CFG_FLASH_BASE + 0x20000000,
-                      CFG_FLASH_BASE + 0x20000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_FLASH_BASE + 0x20000000,
+                      CONFIG_SYS_FLASH_BASE + 0x20000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 1, BOOKE_PAGESZ_256M, 1),
-       SET_TLB_ENTRY (1, CFG_FLASH_BASE + 0x30000000,
-                      CFG_FLASH_BASE + 0x30000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_FLASH_BASE + 0x30000000,
+                      CONFIG_SYS_FLASH_BASE + 0x30000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 0, BOOKE_PAGESZ_256M, 1),
 
@@ -174,7 +174,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 4:       256M    Non-cacheable, guarded
         * 0x80000000   256M    PCI1 MEM First half
         */
-       SET_TLB_ENTRY (1, CFG_PCI1_MEM_PHYS, CFG_PCI1_MEM_PHYS,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCI1_MEM_PHYS, CONFIG_SYS_PCI1_MEM_PHYS,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 4, BOOKE_PAGESZ_256M, 1),
 
@@ -182,8 +182,8 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 5:       256M    Non-cacheable, guarded
         * 0x90000000   256M    PCI1 MEM Second half
         */
-       SET_TLB_ENTRY (1, CFG_PCI1_MEM_PHYS + 0x10000000,
-                      CFG_PCI1_MEM_PHYS + 0x10000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
+                      CONFIG_SYS_PCI1_MEM_PHYS + 0x10000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 5, BOOKE_PAGESZ_256M, 1),
 
@@ -192,7 +192,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       256M    Non-cacheable, guarded
         * 0xc0000000   256M    PCI express MEM First half
         */
-       SET_TLB_ENTRY (1, CFG_PCIE1_MEM_BASE, CFG_PCIE1_MEM_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCIE1_MEM_BASE, CONFIG_SYS_PCIE1_MEM_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 6, BOOKE_PAGESZ_256M, 1),
 #else /* !CONFIG_PCIE */
@@ -200,7 +200,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 6:       256M    Non-cacheable, guarded
         * 0xb0000000   256M    Rapid IO MEM First half
         */
-       SET_TLB_ENTRY (1, CFG_RIO_MEM_BASE, CFG_RIO_MEM_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_RIO_MEM_BASE, CONFIG_SYS_RIO_MEM_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 6, BOOKE_PAGESZ_256M, 1),
 
@@ -212,7 +212,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * 0xa2000000    16M    PCI1 IO
         * 0xa3000000    16M    CAN and NAND Flash
         */
-       SET_TLB_ENTRY (1, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       SET_TLB_ENTRY (1, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 7, BOOKE_PAGESZ_64M, 1),
 
@@ -223,12 +223,12 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * Make sure the TLB count at the top of this table is correct.
         * Likely it needs to be increased by two for these entries.
         */
-       SET_TLB_ENTRY (1, CFG_DDR_SDRAM_BASE, CFG_DDR_SDRAM_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_DDR_SDRAM_BASE, CONFIG_SYS_DDR_SDRAM_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 8, BOOKE_PAGESZ_256M, 1),
 
-       SET_TLB_ENTRY (1, CFG_DDR_SDRAM_BASE + 0x10000000,
-                      CFG_DDR_SDRAM_BASE + 0x10000000,
+       SET_TLB_ENTRY (1, CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000,
+                      CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 9, BOOKE_PAGESZ_256M, 1),
 
@@ -237,7 +237,7 @@ struct fsl_e_tlb_entry tlb_table[] = {
         * TLB 10:       16M    Non-cacheable, guarded
         * 0xaf000000    16M    PCI express IO
         */
-       SET_TLB_ENTRY (1, CFG_PCIE1_IO_BASE, CFG_PCIE1_IO_BASE,
+       SET_TLB_ENTRY (1, CONFIG_SYS_PCIE1_IO_BASE, CONFIG_SYS_PCIE1_IO_BASE,
                       MAS3_SX | MAS3_SW | MAS3_SR, MAS2_I | MAS2_G,
                       0, 10, BOOKE_PAGESZ_16M, 1),
 #endif /* CONFIG_PCIE */
index 5314d3399c538912813820790d5862bb36af2203..f69de9575c2b66095417426f26565bf88a28f5dd 100644 (file)
@@ -269,7 +269,7 @@ int checkboard (void)
 
 int misc_init_r (void)
 {
-       volatile ccsr_lbc_t *memctl = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *memctl = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        /*
         * Adjust flash start and offset to detected values
@@ -282,9 +282,9 @@ int misc_init_r (void)
         */
        if (flash_info[0].size > 0) {
                memctl->or1 = ((-flash_info[0].size) & 0xffff8000) |
-                       (CFG_OR1_PRELIM & 0x00007fff);
+                       (CONFIG_SYS_OR1_PRELIM & 0x00007fff);
                memctl->br1 = gd->bd->bi_flashstart |
-                       (CFG_BR1_PRELIM & 0x00007fff);
+                       (CONFIG_SYS_BR1_PRELIM & 0x00007fff);
                /*
                 * Re-check to get correct base address for bank 1
                 */
@@ -298,9 +298,9 @@ int misc_init_r (void)
         *  If bank 1 is equipped, bank 0 is mapped after bank 1
         */
        memctl->or0 = ((-flash_info[1].size) & 0xffff8000) |
-               (CFG_OR0_PRELIM & 0x00007fff);
+               (CONFIG_SYS_OR0_PRELIM & 0x00007fff);
        memctl->br0 = (gd->bd->bi_flashstart + flash_info[0].size) |
-               (CFG_BR0_PRELIM & 0x00007fff);
+               (CONFIG_SYS_BR0_PRELIM & 0x00007fff);
        /*
         * Re-check to get correct base address for bank 0
         */
@@ -311,26 +311,26 @@ int misc_init_r (void)
         */
        flash_protect (FLAG_PROTECT_CLEAR,
                       gd->bd->bi_flashstart, 0xffffffff,
-                      &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                      &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
        /* Monitor protection ON by default */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len - 1,
-                      &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
+                      &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
        /* Environment protection ON by default */
        flash_protect (FLAG_PROTECT_SET,
                       CONFIG_ENV_ADDR,
                       CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE - 1,
-                      &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                      &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 
 #ifdef CONFIG_ENV_ADDR_REDUND
        /* Redundant environment protection ON by default */
        flash_protect (FLAG_PROTECT_SET,
                       CONFIG_ENV_ADDR_REDUND,
                       CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SIZE_REDUND - 1,
-                      &flash_info[CFG_MAX_FLASH_BANKS - 1]);
+                      &flash_info[CONFIG_SYS_MAX_FLASH_BANKS - 1]);
 #endif
 
        return 0;
@@ -342,7 +342,7 @@ int misc_init_r (void)
  */
 static void upmc_write (u_char addr, uint val)
 {
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
        out_be32 (&lbc->mdr, val);
 
@@ -350,7 +350,7 @@ static void upmc_write (u_char addr, uint val)
                        MxMR_OP_WARR | (addr & MxMR_MAD_MSK));
 
        /* dummy access to perform write */
-       out_8 ((void __iomem *)CFG_CAN_BASE, 0);
+       out_8 ((void __iomem *)CONFIG_SYS_CAN_BASE, 0);
 
        /* normal operation */
        clrbits_be32(&lbc->mcmr, MxMR_OP_WARR);
@@ -359,7 +359,7 @@ static void upmc_write (u_char addr, uint val)
 
 uint get_lbc_clock (void)
 {
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
        sys_info_t sys_info;
        ulong clkdiv = lbc->lcrr & 0x0f;
 
@@ -376,7 +376,7 @@ uint get_lbc_clock (void)
                return sys_info.freqSystemBus / clkdiv;
        }
 
-       puts("Invalid clock divider value in CFG_LBC_LCRR\n");
+       puts("Invalid clock divider value in CONFIG_SYS_LBC_LCRR\n");
 
        return 0;
 }
@@ -386,8 +386,8 @@ uint get_lbc_clock (void)
  */
 void local_bus_init (void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
        uint lbc_mhz = get_lbc_clock ()  / 1000000;
 
 #ifdef CONFIG_MPC8548
@@ -418,7 +418,7 @@ void local_bus_init (void)
                gur->lbiuiplldcr1 = dummy;
        }
 
-       lcrr = CFG_LBC_LCRR;
+       lcrr = CONFIG_SYS_LBC_LCRR;
 
        /*
         * Local Bus Clock > 83.3 MHz. According to timing
@@ -464,12 +464,12 @@ void local_bus_init (void)
         */
 
        if (lbc_mhz < 66) {
-               lbc->lcrr = CFG_LBC_LCRR | LCRR_DBYP;   /* DLL Bypass */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR | LCRR_DBYP;    /* DLL Bypass */
                lbc->ltedr = LTEDR_BMD | LTEDR_PARD | LTEDR_WPD | LTEDR_WARA |
                             LTEDR_RAWA | LTEDR_CSD;    /* Disable all error checking */
 
        } else if (lbc_mhz >= 133) {
-               lbc->lcrr = CFG_LBC_LCRR & (~LCRR_DBYP);        /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~LCRR_DBYP); /* DLL Enabled */
 
        } else {
                /*
@@ -484,7 +484,7 @@ void local_bus_init (void)
                        lbc->lcrr = 0x10000004;
                }
 
-               lbc->lcrr = CFG_LBC_LCRR & (~LCRR_DBYP);        /* DLL Enabled */
+               lbc->lcrr = CONFIG_SYS_LBC_LCRR & (~LCRR_DBYP); /* DLL Enabled */
                udelay (200);
 
                /*
@@ -503,10 +503,10 @@ void local_bus_init (void)
         * set if Local Bus Clock is > 83 MHz.
         */
        if (lbc_mhz > 83)
-               out_be32 (&lbc->or2, CFG_OR2_CAN | OR_UPM_EAD);
+               out_be32 (&lbc->or2, CONFIG_SYS_OR2_CAN | OR_UPM_EAD);
        else
-               out_be32 (&lbc->or2, CFG_OR2_CAN);
-       out_be32 (&lbc->br2, CFG_BR2_CAN);
+               out_be32 (&lbc->or2, CONFIG_SYS_OR2_CAN);
+       out_be32 (&lbc->br2, CONFIG_SYS_BR2_CAN);
 
        /* LGPL4 is UPWAIT */
        out_be32(&lbc->mcmr, MxMR_DSx_3_CYCL | MxMR_GPL_x4DIS | MxMR_WLFx_3X);
@@ -548,10 +548,10 @@ static struct pci_controller pcie1_hose;
 
 static inline void init_pci1(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 #if defined(CONFIG_PCI) || defined(CONFIG_PCI1)
        uint host_agent = (gur->porbmsr & MPC85xx_PORBMSR_HA) >> 16;
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *)CFG_PCI1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *)CONFIG_SYS_PCI1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pci1_hose;
 
@@ -579,24 +579,24 @@ static inline void init_pci1(void)
 
                /* inbound */
                pci_set_region (hose->regions + 0,
-                               CFG_PCI_MEMORY_BUS,
-                               CFG_PCI_MEMORY_PHYS,
-                               CFG_PCI_MEMORY_SIZE,
+                               CONFIG_SYS_PCI_MEMORY_BUS,
+                               CONFIG_SYS_PCI_MEMORY_PHYS,
+                               CONFIG_SYS_PCI_MEMORY_SIZE,
                                PCI_REGION_MEM | PCI_REGION_MEMORY);
 
 
                /* outbound memory */
                pci_set_region (hose->regions + 1,
-                               CFG_PCI1_MEM_BASE,
-                               CFG_PCI1_MEM_PHYS,
-                               CFG_PCI1_MEM_SIZE,
+                               CONFIG_SYS_PCI1_MEM_BASE,
+                               CONFIG_SYS_PCI1_MEM_PHYS,
+                               CONFIG_SYS_PCI1_MEM_SIZE,
                                PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region (hose->regions + 2,
-                               CFG_PCI1_IO_BASE,
-                               CFG_PCI1_IO_PHYS,
-                               CFG_PCI1_IO_SIZE,
+                               CONFIG_SYS_PCI1_IO_BASE,
+                               CONFIG_SYS_PCI1_IO_PHYS,
+                               CONFIG_SYS_PCI1_IO_SIZE,
                                PCI_REGION_IO);
 
                hose->region_count = 3;
@@ -636,11 +636,11 @@ static inline void init_pci1(void)
 
 static inline void init_pcie1(void)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
 #ifdef CONFIG_PCIE1
        uint io_sel = (gur->pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
        uint host_agent = (gur->porbmsr & MPC85xx_PORBMSR_HA) >> 16;
-       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *)CFG_PCIE1_ADDR;
+       volatile ccsr_fsl_pci_t *pci = (ccsr_fsl_pci_t *)CONFIG_SYS_PCIE1_ADDR;
        extern void fsl_pci_init(struct pci_controller *hose);
        struct pci_controller *hose = &pcie1_hose;
        int pcie_ep =  (host_agent == 0) || (host_agent == 2 ) ||
@@ -661,23 +661,23 @@ static inline void init_pcie1(void)
 
                /* inbound */
                pci_set_region (hose->regions + 0,
-                               CFG_PCI_MEMORY_BUS,
-                               CFG_PCI_MEMORY_PHYS,
-                               CFG_PCI_MEMORY_SIZE,
+                               CONFIG_SYS_PCI_MEMORY_BUS,
+                               CONFIG_SYS_PCI_MEMORY_PHYS,
+                               CONFIG_SYS_PCI_MEMORY_SIZE,
                                PCI_REGION_MEM | PCI_REGION_MEMORY);
 
                /* outbound memory */
                pci_set_region (hose->regions + 1,
-                               CFG_PCIE1_MEM_BASE,
-                               CFG_PCIE1_MEM_PHYS,
-                               CFG_PCIE1_MEM_SIZE,
+                               CONFIG_SYS_PCIE1_MEM_BASE,
+                               CONFIG_SYS_PCIE1_MEM_PHYS,
+                               CONFIG_SYS_PCIE1_MEM_SIZE,
                                PCI_REGION_MEM);
 
                /* outbound io */
                pci_set_region (hose->regions + 2,
-                               CFG_PCIE1_IO_BASE,
-                               CFG_PCIE1_IO_PHYS,
-                               CFG_PCIE1_IO_SIZE,
+                               CONFIG_SYS_PCIE1_IO_BASE,
+                               CONFIG_SYS_PCIE1_IO_PHYS,
+                               CONFIG_SYS_PCIE1_IO_SIZE,
                                PCI_REGION_IO);
 
                hose->region_count = 3;
index 143f36801d2c4ad71ff1266113f34b9333ddd0db..d2699020d6141c3766334caf7b184b535760f0f3 100644 (file)
 void load_sernum_ethaddr (void)
 {
        unsigned char *hwi;
-       unsigned char  serial [CFG_HWINFO_SIZE];
-       unsigned char  ethaddr[CFG_HWINFO_SIZE];
+       unsigned char  serial [CONFIG_SYS_HWINFO_SIZE];
+       unsigned char  ethaddr[CONFIG_SYS_HWINFO_SIZE];
        unsigned short ih, is, ie, part;
 
-       hwi = (unsigned char *)(CFG_FLASH_BASE + CFG_HWINFO_OFFSET);
+       hwi = (unsigned char *)(CONFIG_SYS_FLASH_BASE + CONFIG_SYS_HWINFO_OFFSET);
        ih = is = ie = 0;
 
-       if (*((unsigned long *)hwi) != (unsigned long)CFG_HWINFO_MAGIC) {
+       if (*((unsigned long *)hwi) != (unsigned long)CONFIG_SYS_HWINFO_MAGIC) {
                return;
        }
 
        part = 1;
 
        /* copy serial # / MAC address */
-       while ((hwi[ih] != '\0') && (ih < CFG_HWINFO_SIZE)) {
+       while ((hwi[ih] != '\0') && (ih < CONFIG_SYS_HWINFO_SIZE)) {
                if (hwi[ih] < ' ' || hwi[ih] > '~') { /* ASCII strings! */
                        return;
                }
index 5537d044a57c9e8b185b0de581d54106b783888c..9a0f3a0ff26bc2dc4aab267afb61396a0497c0af 100644 (file)
@@ -139,7 +139,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        long int size8, size9, size10;
        long int size_b0 = 0;
@@ -154,7 +154,7 @@ phys_size_t initdram (int board_type)
         * with two SDRAM banks or four cycles every 31.2 us with one
         * bank. It will be adjusted after memory sizing.
         */
-       memctl->memc_mptpr = CFG_MPTPR_2BK_8K;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_8K;
 
        /*
         * The following value is used as an address (i.e. opcode) for
@@ -176,19 +176,19 @@ phys_size_t initdram (int board_type)
         * preliminary addresses - these have to be modified after the
         * SDRAM size has been determined.
         */
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 
 #ifndef        CONFIG_CAN_DRIVER
        if ((board_type != 'L') &&
            (board_type != 'M') &&
            (board_type != 'D') ) {     /* only one SDRAM bank on L, M and D modules */
-               memctl->memc_or3 = CFG_OR3_PRELIM;
-               memctl->memc_br3 = CFG_BR3_PRELIM;
+               memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+               memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
        }
 #endif                                                 /* CONFIG_CAN_DRIVER */
 
-       memctl->memc_mamr = CFG_MAMR_8COL & (~(MAMR_PTAE));     /* no refresh yet */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_8COL & (~(MAMR_PTAE));      /* no refresh yet */
 
        udelay (200);
 
@@ -219,7 +219,7 @@ phys_size_t initdram (int board_type)
         *
         * try 8 column mode
         */
-       size8 = dram_size (CFG_MAMR_8COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
+       size8 = dram_size (CONFIG_SYS_MAMR_8COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
        debug ("SDRAM Bank 0 in 8 column mode: %ld MB\n", size8 >> 20);
 
        udelay (1000);
@@ -227,30 +227,30 @@ phys_size_t initdram (int board_type)
        /*
         * try 9 column mode
         */
-       size9 = dram_size (CFG_MAMR_9COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
+       size9 = dram_size (CONFIG_SYS_MAMR_9COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
        debug ("SDRAM Bank 0 in 9 column mode: %ld MB\n", size9 >> 20);
 
        udelay(1000);
 
-#if defined(CFG_MAMR_10COL)
+#if defined(CONFIG_SYS_MAMR_10COL)
        /*
         * try 10 column mode
         */
-       size10 = dram_size (CFG_MAMR_10COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
+       size10 = dram_size (CONFIG_SYS_MAMR_10COL, SDRAM_BASE2_PRELIM, SDRAM_MAX_SIZE);
        debug ("SDRAM Bank 0 in 10 column mode: %ld MB\n", size10 >> 20);
 #else
        size10 = 0;
-#endif /* CFG_MAMR_10COL */
+#endif /* CONFIG_SYS_MAMR_10COL */
 
        if ((size8 < size10) && (size9 < size10)) {
                size_b0 = size10;
        } else if ((size8 < size9) && (size10 < size9)) {
                size_b0 = size9;
-               memctl->memc_mamr = CFG_MAMR_9COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_9COL;
                udelay (500);
        } else {
                size_b0 = size8;
-               memctl->memc_mamr = CFG_MAMR_8COL;
+               memctl->memc_mamr = CONFIG_SYS_MAMR_8COL;
                udelay (500);
        }
        debug ("SDRAM Bank 0: %ld MB\n", size_b0 >> 20);
@@ -281,7 +281,7 @@ phys_size_t initdram (int board_type)
         */
        if ((size_b0 < 0x02000000) && (size_b1 < 0x02000000)) {
                /* reduce to 15.6 us (62.4 us / quad) */
-               memctl->memc_mptpr = CFG_MPTPR_2BK_4K;
+               memctl->memc_mptpr = CONFIG_SYS_MPTPR_2BK_4K;
                udelay (1000);
        }
 
@@ -290,15 +290,15 @@ phys_size_t initdram (int board_type)
         */
        if (size_b1 > size_b0) {        /* SDRAM Bank 1 is bigger - map first   */
 
-               memctl->memc_or3 = ((-size_b1) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-               memctl->memc_br3 = (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+               memctl->memc_or3 = ((-size_b1) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+               memctl->memc_br3 = (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
                if (size_b0 > 0) {
                        /*
                         * Position Bank 0 immediately above Bank 1
                         */
-                       memctl->memc_or2 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
-                       memctl->memc_br2 = ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
+                       memctl->memc_or2 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
+                       memctl->memc_br2 = ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
                                           + size_b1;
                } else {
                        unsigned long reg;
@@ -312,24 +312,24 @@ phys_size_t initdram (int board_type)
 
                        /* adjust refresh rate depending on SDRAM type, one bank */
                        reg = memctl->memc_mptpr;
-                       reg >>= 1;                      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+                       reg >>= 1;                      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
                        memctl->memc_mptpr = reg;
                }
 
        } else {                                        /* SDRAM Bank 0 is bigger - map first   */
 
-               memctl->memc_or2 = ((-size_b0) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+               memctl->memc_or2 = ((-size_b0) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                memctl->memc_br2 =
-                               (CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
+                               (CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V;
 
                if (size_b1 > 0) {
                        /*
                         * Position Bank 1 immediately above Bank 0
                         */
                        memctl->memc_or3 =
-                                       ((-size_b1) & 0xFFFF0000) | CFG_OR_TIMING_SDRAM;
+                                       ((-size_b1) & 0xFFFF0000) | CONFIG_SYS_OR_TIMING_SDRAM;
                        memctl->memc_br3 =
-                                       ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
+                                       ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V)
                                        + size_b0;
                } else {
                        unsigned long reg;
@@ -345,7 +345,7 @@ phys_size_t initdram (int board_type)
 
                        /* adjust refresh rate depending on SDRAM type, one bank */
                        reg = memctl->memc_mptpr;
-                       reg >>= 1;                      /* reduce to CFG_MPTPR_1BK_8K / _4K */
+                       reg >>= 1;                      /* reduce to CONFIG_SYS_MPTPR_1BK_8K / _4K */
                        memctl->memc_mptpr = reg;
                }
        }
@@ -356,8 +356,8 @@ phys_size_t initdram (int board_type)
        /* UPM initialization for CAN @ CLKOUT <= 66 MHz */
 
        /* Initialize OR3 / BR3 */
-       memctl->memc_or3 = CFG_OR3_CAN;
-       memctl->memc_br3 = CFG_BR3_CAN;
+       memctl->memc_or3 = CONFIG_SYS_OR3_CAN;
+       memctl->memc_br3 = CONFIG_SYS_BR3_CAN;
 
        /* Initialize MBMR */
        memctl->memc_mbmr = MBMR_GPL_B4DIS;     /* GPL_B4 ouput line Disable */
@@ -397,8 +397,8 @@ phys_size_t initdram (int board_type)
 
 #ifdef CONFIG_ISP1362_USB
        /* Initialize OR5 / BR5 */
-       memctl->memc_or5 = CFG_OR5_ISP1362;
-       memctl->memc_br5 = CFG_BR5_ISP1362;
+       memctl->memc_or5 = CONFIG_SYS_OR5_ISP1362;
+       memctl->memc_br5 = CONFIG_SYS_BR5_ISP1362;
 #endif                                                 /* CONFIG_ISP1362_USB */
        return (size_b0 + size_b1);
 }
@@ -415,7 +415,7 @@ phys_size_t initdram (int board_type)
 
 static long int dram_size (long int mamr_value, long int *base, long int maxsize)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        memctl->memc_mamr = mamr_value;
@@ -451,14 +451,14 @@ int board_early_init_r (void)
 #ifdef CONFIG_MISC_INIT_R
 int misc_init_r (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
-#ifdef CFG_OR_TIMING_FLASH_AT_50MHZ
+#ifdef CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ
        int scy, trlx, flash_or_timing, clk_diff;
 
-       scy = (CFG_OR_TIMING_FLASH_AT_50MHZ & OR_SCY_MSK) >> 4;
-       if (CFG_OR_TIMING_FLASH_AT_50MHZ & OR_TRLX) {
+       scy = (CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ & OR_SCY_MSK) >> 4;
+       if (CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ & OR_TRLX) {
                trlx = OR_TRLX;
                scy *= 2;
        } else {
@@ -498,29 +498,29 @@ int misc_init_r (void)
                scy = 1;
 
        flash_or_timing = (scy << 4) | trlx |
-               (CFG_OR_TIMING_FLASH_AT_50MHZ & ~(OR_TRLX | OR_SCY_MSK));
+               (CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ & ~(OR_TRLX | OR_SCY_MSK));
 
        memctl->memc_or0 =
                flash_or_timing | (-flash_info[0].size & OR_AM_MSK);
 #else
        memctl->memc_or0 =
-               CFG_OR_TIMING_FLASH | (-flash_info[0].size & OR_AM_MSK);
+               CONFIG_SYS_OR_TIMING_FLASH | (-flash_info[0].size & OR_AM_MSK);
 #endif
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        debug ("## BR0: 0x%08x    OR0: 0x%08x\n",
               memctl->memc_br0, memctl->memc_or0);
 
        if (flash_info[1].size) {
-#ifdef CFG_OR_TIMING_FLASH_AT_50MHZ
+#ifdef CONFIG_SYS_OR_TIMING_FLASH_AT_50MHZ
                memctl->memc_or1 = flash_or_timing |
                        (-flash_info[1].size & 0xFFFF8000);
 #else
-               memctl->memc_or1 = CFG_OR_TIMING_FLASH |
+               memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH |
                        (-flash_info[1].size & 0xFFFF8000);
 #endif
                memctl->memc_br1 =
-                       ((CFG_FLASH_BASE +
+                       ((CONFIG_SYS_FLASH_BASE +
                          flash_info[0].
                          size) & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
@@ -557,7 +557,7 @@ int misc_init_r (void)
 # ifdef CONFIG_IDE_LED
 void ide_led (uchar led, uchar status)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /* We have one led for both pcmcia slots */
        if (status) {                           /* led on */
index 46110cc7637c68624298fad1b7acb6e8dd7fc22c..99327906b8339ef1fa032f8bc6ff6759377fa09f 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/byteorder.h>
 #include <usb.h>
 
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #include <hush.h>
 #endif
 
@@ -42,8 +42,8 @@
 #error "must define CONFIG_USB_STORAGE"
 #endif
 
-#ifndef CFG_HUSH_PARSER
-#error "must define CFG_HUSH_PARSER"
+#ifndef CONFIG_SYS_HUSH_PARSER
+#error "must define CONFIG_SYS_HUSH_PARSER"
 #endif
 
 #if !defined(CONFIG_CMD_FAT)
index 08723bd2995877dda588bf095ade0f8914a67385..317b61d87e4cffe005c6eb589ab12965aead3ba5 100644 (file)
@@ -28,7 +28,7 @@
 
 static ulong flash_get_size (vu_long *addr, flash_info_t *info);
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 
 #define CMD_READ_ARRAY         0x00F000F0
@@ -42,9 +42,9 @@ flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
 #define CMD_UNLOCK_BYPASS_RES1 0x00900090
 #define CMD_UNLOCK_BYPASS_RES2 0x00000000
 
-#define MEM_FLASH_ADDR         (*(volatile u32 *)CFG_FLASH_BASE)
-#define MEM_FLASH_ADDR1                (*(volatile u32 *)(CFG_FLASH_BASE + (0x00000555 << 2)))
-#define MEM_FLASH_ADDR2                (*(volatile u32 *)(CFG_FLASH_BASE + (0x000002AA << 2)))
+#define MEM_FLASH_ADDR         (*(volatile u32 *)CONFIG_SYS_FLASH_BASE)
+#define MEM_FLASH_ADDR1                (*(volatile u32 *)(CONFIG_SYS_FLASH_BASE + (0x00000555 << 2)))
+#define MEM_FLASH_ADDR2                (*(volatile u32 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA << 2)))
 
 #define BIT_ERASE_DONE         0x00800080
 #define BIT_RDY_MASK           0x00800080
@@ -63,17 +63,17 @@ ulong flash_init (void)
        int i, j;
        ulong size = 0;
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                ulong flashbase = 0;
                flash_info_t *info = &flash_info[i];
 
                /* Init: no FLASHes known */
                info->flash_id = FLASH_UNKNOWN;
 
-               size += flash_get_size (CFG_FLASH_BASE, info);
+               size += flash_get_size (CONFIG_SYS_FLASH_BASE, info);
 
                if (i == 0)
-                       flashbase = CFG_FLASH_BASE;
+                       flashbase = CONFIG_SYS_FLASH_BASE;
                else
                        panic ("configured too many flash banks!\n");
                for (j = 0; j < info->sector_count; j++) {
@@ -102,8 +102,8 @@ ulong flash_init (void)
         * Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0]);
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -257,7 +257,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                result = *addr;
 
                                /* check timeout */
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        MEM_FLASH_ADDR1 = CMD_READ_ARRAY;
                                        chip1 = TMO;
                                        break;
@@ -356,7 +356,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                result = *addr;
 
                /* check timeout */
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        chip1 = ERR | TMO;
                        break;
                }
@@ -559,10 +559,10 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        return (info->size);
index 052432e9d90bba03c874f4cafa6a3a18f2256c48..8fb3d2c127eb9eb078230dbb696fbda7799a7efd 100644 (file)
 #include <post.h>
 #include <watchdog.h>
 
-/* #if CONFIG_POST & CFG_POST_MEMORY */
+/* #if CONFIG_POST & CONFIG_SYS_POST_MEMORY */
 
 /*
  * Define INJECT_*_ERRORS for testing error detection in the presence of
@@ -465,7 +465,7 @@ int memory_post_test (int flags)
 
 
        if (flags & POST_SLOWTEST) {
-               ret = memory_post_tests (CFG_SDRAM_BASE, memsize);
+               ret = memory_post_tests (CONFIG_SYS_SDRAM_BASE, memsize);
        } else {                        /* POST_NORMAL */
 
                unsigned long i;
@@ -482,5 +482,5 @@ int memory_post_test (int flags)
 }
 #endif /* 0 */
 
-/* #endif */ /* CONFIG_POST & CFG_POST_MEMORY */
+/* #endif */ /* CONFIG_POST & CONFIG_SYS_POST_MEMORY */
 /* #endif */ /* CONFIG_POST */
index b869023ea7fecb7989153a0438fccd1d9ace5a8e..57ff718782f7e8012ce1ad9f973bc3af974b03f5 100644 (file)
@@ -30,7 +30,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CFG_BRIGHTNESS
+#ifdef CONFIG_SYS_BRIGHTNESS
 static void spi_init(void);
 static void wait_transmit_done(void);
 static void tsc2000_write(unsigned int page, unsigned int reg,
@@ -199,7 +199,7 @@ int misc_init_r (void)
                free (str);
        }
 
-#ifdef CFG_BRIGHTNESS
+#ifdef CONFIG_SYS_BRIGHTNESS
        tsc2000_set_brightness();
 #endif
        return (0);
@@ -333,7 +333,7 @@ static int key_pressed(void)
 }
 #endif /* CONFIG_MODEM_SUPPORT */
 
-#ifdef CFG_BRIGHTNESS
+#ifdef CONFIG_SYS_BRIGHTNESS
 
 static inline void SET_CS_TOUCH(void)
 {
@@ -415,7 +415,7 @@ static void tsc2000_set_brightness(void)
        i = getenv_r("brightness", tmp, sizeof(tmp));
        br = (i > 0)
                ? (int) simple_strtoul (tmp, NULL, 10)
-               : CFG_BRIGHTNESS;
+               : CONFIG_SYS_BRIGHTNESS;
 
        tsc2000_write(0, 0xb, br & 0xff);
 }
index d8869381accd1d9deff7763cedcac7e2f0925da2..128d55407610c178cf22f4b161885e471d1472ae 100644 (file)
@@ -49,119 +49,119 @@ lowlevel_init:
        /* Set up GPIO pins first ----------------------------------------- */
 
        ldr             r0,     =GPSR0
-       ldr             r1,     =CFG_GPSR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR1
-       ldr             r1,     =CFG_GPSR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR2
-       ldr             r1,     =CFG_GPSR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPSR3
-       ldr             r1,     =CFG_GPSR3_VAL
+       ldr             r1,     =CONFIG_SYS_GPSR3_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR0
-       ldr             r1,     =CFG_GPCR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR1
-       ldr             r1,     =CFG_GPCR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR2
-       ldr             r1,     =CFG_GPCR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPCR3
-       ldr             r1,     =CFG_GPCR3_VAL
+       ldr             r1,     =CONFIG_SYS_GPCR3_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GRER0
-       ldr             r1,     =CFG_GRER0_VAL
+       ldr             r1,     =CONFIG_SYS_GRER0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GRER1
-       ldr             r1,     =CFG_GRER1_VAL
+       ldr             r1,     =CONFIG_SYS_GRER1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GRER2
-       ldr             r1,     =CFG_GRER2_VAL
+       ldr             r1,     =CONFIG_SYS_GRER2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GRER3
-       ldr             r1,     =CFG_GRER3_VAL
+       ldr             r1,     =CONFIG_SYS_GRER3_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GFER0
-       ldr             r1,     =CFG_GFER0_VAL
+       ldr             r1,     =CONFIG_SYS_GFER0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GFER1
-       ldr             r1,     =CFG_GFER1_VAL
+       ldr             r1,     =CONFIG_SYS_GFER1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GFER2
-       ldr             r1,     =CFG_GFER2_VAL
+       ldr             r1,     =CONFIG_SYS_GFER2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GFER3
-       ldr             r1,     =CFG_GFER3_VAL
+       ldr             r1,     =CONFIG_SYS_GFER3_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR0
-       ldr             r1,     =CFG_GPDR0_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR0_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR1
-       ldr             r1,     =CFG_GPDR1_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR1_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR2
-       ldr             r1,     =CFG_GPDR2_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR2_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GPDR3
-       ldr             r1,     =CFG_GPDR3_VAL
+       ldr             r1,     =CONFIG_SYS_GPDR3_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_L
-       ldr             r1,     =CFG_GAFR0_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR0_U
-       ldr             r1,     =CFG_GAFR0_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR0_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_L
-       ldr             r1,     =CFG_GAFR1_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR1_U
-       ldr             r1,     =CFG_GAFR1_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR1_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_L
-       ldr             r1,     =CFG_GAFR2_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR2_U
-       ldr             r1,     =CFG_GAFR2_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR2_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR3_L
-       ldr             r1,     =CFG_GAFR3_L_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR3_L_VAL
        str             r1,   [r0]
 
        ldr             r0,     =GAFR3_U
-       ldr             r1,     =CFG_GAFR3_U_VAL
+       ldr             r1,     =CONFIG_SYS_GAFR3_U_VAL
        str             r1,   [r0]
 
        ldr             r0,     =PSSR           /* enable GPIO pins */
-       ldr             r1,     =CFG_PSSR_VAL
+       ldr             r1,     =CONFIG_SYS_PSSR_VAL
        str             r1,   [r0]
 
        /* ---------------------------------------------------------------- */
@@ -199,17 +199,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]        /* read back to ensure      */
                                                /* that data latches        */
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
@@ -218,44 +218,44 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
        ldr     r2,     [r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
        ldr     r2,     [r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
        ldr     r2,     [r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
        ldr     r2,     [r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
        ldr     r2,     [r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
        ldr     r2,     [r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
        ldr     r2,     [r1, #MCIO1_OFFSET]
 
        /* ---------------------------------------------------------------- */
        /* Step 2c: Write FLYCNFG  FIXME: what's that???                    */
        /* ---------------------------------------------------------------- */
-       ldr     r2,  =CFG_FLYCNFG_VAL
+       ldr     r2,  =CONFIG_SYS_FLYCNFG_VAL
        str     r2,  [r1, #FLYCNFG_OFFSET]
        str     r2,     [r1, #FLYCNFG_OFFSET]
 
@@ -270,7 +270,7 @@ mem_init:
        ldr     r2,     =0xFFF
        bic     r4,     r4, r2
 
-       ldr     r3,     =CFG_MDREFR_VAL
+       ldr     r3,     =CONFIG_SYS_MDREFR_VAL
        and     r3,     r3,  r2
 
        orr     r4,     r4, r3
@@ -300,7 +300,7 @@ mem_init:
        /* synchronous static memory. Note that SXLCR need not be written   */
        /* at this time.                                                    */
 
-       ldr     r2,  =CFG_SXCNFG_VAL
+       ldr     r2,  =CONFIG_SYS_SXCNFG_VAL
        str     r2,  [r1, #SXCNFG_OFFSET]
 
        /* ---------------------------------------------------------------- */
@@ -329,7 +329,7 @@ mem_init:
        /* Step 4d: write MDCNFG with MDCNFG:DEx deasserted (set to 0), to  */
        /*          configure but not enable each SDRAM partition pair.     */
 
-       ldr     r4,     =CFG_MDCNFG_VAL
+       ldr     r4,     =CONFIG_SYS_MDCNFG_VAL
        bic     r4,     r4,     #(MDCNFG_DE0|MDCNFG_DE1)
        bic     r4,     r4,     #(MDCNFG_DE2|MDCNFG_DE3)
 
@@ -357,7 +357,7 @@ mem_init:
        /*          documented in SDRAM data sheets. The address(es) used   */
        /*          for this purpose must not be cacheable.                 */
 
-       ldr     r3,     =CFG_DRAM_BASE
+       ldr     r3,     =CONFIG_SYS_DRAM_BASE
        str     r2,     [r3]
        str     r2,     [r3]
        str     r2,     [r3]
@@ -379,7 +379,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
        /* enable APD */
@@ -443,11 +443,11 @@ initclks:
        /* Turn Off on-chip peripheral clocks (except for memory)           */
        /* for re-configuration.                                            */
        ldr     r1,  =CKEN
-       ldr     r2,  =CFG_CKEN
+       ldr     r2,  =CONFIG_SYS_CKEN
        str     r2,  [r1]
 
        /* ... and write the core clock config register                     */
-       ldr     r2,  =CFG_CCCR
+       ldr     r2,  =CONFIG_SYS_CCCR
        ldr     r1,  =CCCR
        str     r2,  [r1]
 
index 407bdb73c6fa5bab26d7ee489eaecfee82fa31f9..ad256783ce6a56299859036906d58fa342256204 100644 (file)
@@ -24,7 +24,7 @@ static void cfg_ports (void)
 {
        volatile immap_t        *immap;
 
-       immap = (immap_t *)CFG_IMMR;
+       immap = (immap_t *)CONFIG_SYS_IMMR;
 
        /*
        * Configure Port A for MAX1602 PC-Card Power-Interface Switch
@@ -49,10 +49,10 @@ int pcmcia_hardware_enable(int slot)
 
        udelay(10000);
 
-       immap = (immap_t *)CFG_IMMR;
-       sysp  = (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
-       cp    = (cpm8xx_t *)(&(((immap_t *)CFG_IMMR)->im_cpm));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       sysp  = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
+       cp    = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
 
        /* Configure Ports for TPS2211A PC-Card Power-Interface Switch */
        cfg_ports ();
@@ -133,8 +133,8 @@ int pcmcia_hardware_disable(int slot)
 
        debug ("hardware_disable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
        /* switch VCC off */
        immap->im_ioport.iop_padat &= ~0x8000; /* power disable 3.3V */
@@ -163,8 +163,8 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
                        " Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
        'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
 
-       immap = (immap_t *)CFG_IMMR;
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       immap = (immap_t *)CONFIG_SYS_IMMR;
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        /*
        * Disable PCMCIA buffers (isolate the interface)
        * and assert RESET signal
index 896f9693e3ddf31e987c687455a860f4291fe25f..38c7be6bad6d1b56a605c22ef50c1057531ea296 100644 (file)
@@ -138,7 +138,7 @@ int board_switch(void)
 {
        volatile pcmconf8xx_t   *pcmp;
 
-       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+       pcmp  = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 
        return ((pcmp->pcmc_pipr >> 24) & 0xf);
 }
@@ -171,7 +171,7 @@ int checkboard (void)
  */
 phys_size_t initdram (int board_type)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        /*---------------------------------------------------------------------*/
@@ -187,8 +187,8 @@ phys_size_t initdram (int board_type)
        /*---------------------------------------------------------------------*/
        memctl->memc_mptpr = 0x0200; /* Divide by 32 WV */
 
-       memctl->memc_mamr = CFG_MAMR_VAL & 0xFF7FFFFF; /* Bit 8 := "0" Kein Refresh WV */
-       memctl->memc_mbmr = CFG_MBMR_VAL;
+       memctl->memc_mamr = CONFIG_SYS_MAMR_VAL & 0xFF7FFFFF; /* Bit 8 := "0" Kein Refresh WV */
+       memctl->memc_mbmr = CONFIG_SYS_MBMR_VAL;
 
        /*---------------------------------------------------------------------*/
        /* Initialize the Memory Controller registers, MPTPR, Chip Select 1    */
@@ -198,8 +198,8 @@ phys_size_t initdram (int board_type)
        /*       clock rate (16.67MHz) to allow proper operation for all ADS   */
        /*       clock frequencies.                                            */
        /*---------------------------------------------------------------------*/
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 
        /*-------------------------------------------------------------------*/
        /* Wait at least 200 usec for DRAM to stabilize, this magic number   */
@@ -209,8 +209,8 @@ phys_size_t initdram (int board_type)
 
        memctl->memc_mamr = (memctl->memc_mamr | 0x04) & ~0x08;
 
-       memctl->memc_br1 = CFG_BR1_PRELIM;
-       memctl->memc_or1 = CFG_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
 
        /*---------------------------------------------------------------------*/
        /* run MRS command in location 5-8 of UPMB.                            */
@@ -236,7 +236,7 @@ phys_size_t initdram (int board_type)
        /*---------------------------------------------------------------------*/
        /* rerstore MBMR value (4-beat refresh burst.)                         */
        /*---------------------------------------------------------------------*/
-       memctl->memc_mamr = CFG_MAMR_VAL | 0x00800000; /* Bit 8 := "1" Refresh Enable WV */
+       memctl->memc_mamr = CONFIG_SYS_MAMR_VAL | 0x00800000; /* Bit 8 := "1" Refresh Enable WV */
 
        udelay(200);
 
@@ -251,9 +251,9 @@ int misc_init_r (void)
        /*
         * Make sure that RTC has clock output enabled (triggers watchdog!)
         */
-       val = i2c_reg_read (CFG_I2C_RTC_ADDR, 0x0D);
+       val = i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, 0x0D);
        val |= 0x80;
-       i2c_reg_write (CFG_I2C_RTC_ADDR, 0x0D, val);
+       i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, 0x0D, val);
 
        /*
         * Configure PHY to setup LED's correctly and use 100MBit, FD
index 69ba5078d4e78a651f7839d56da045e7a56a59b8..7df349f3e54681cbb14c96aa65728a07c4b565b3 100644 (file)
@@ -99,7 +99,7 @@
 #define GP_TIMER_GET_I(n, v) ( \
        (((volatile struct mpc5xxx_gpt *)(MPC5XXX_GPT + n))->sr & 0x100) >> 8)
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start (int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -142,14 +142,14 @@ static void sdram_start (int hi_addr)
 
 /*
  * ATTENTION: Although partially referenced initdram does NOT make real use
- *           use of CFG_SDRAM_BASE. The code does not work if CFG_SDRAM_BASE
+ *           use of CONFIG_SYS_SDRAM_BASE. The code does not work if CONFIG_SYS_SDRAM_BASE
  *           is something else than 0x00000000.
  */
 
 phys_size_t initdram (int board_type)
 {
        ulong dramsize = 0;
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -170,9 +170,9 @@ phys_size_t initdram (int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x20000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x20000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -194,7 +194,7 @@ phys_size_t initdram (int board_type)
        }
 
        *(vu_long *)MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *)MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -212,7 +212,7 @@ phys_size_t initdram (int board_type)
                dramsize2 = 0;
        }
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /*     return dramsize + dramsize2; */
        return dramsize;
@@ -222,7 +222,7 @@ int checkboard (void)
 {
        puts ("Board: MAN UC101\n");
        /* clear the Display */
-       *(char *)(CFG_DISP_CWORD) = 0x80;
+       *(char *)(CONFIG_SYS_DISP_CWORD) = 0x80;
        return 0;
 }
 
@@ -345,9 +345,9 @@ int board_early_init_r (void)
 {
        *(vu_long *)MPC5XXX_BOOTCS_CFG &= ~0x1; /* clear RO */
        *(vu_long *)MPC5XXX_BOOTCS_START =
-       *(vu_long *)MPC5XXX_CS0_START = START_REG(CFG_FLASH_BASE);
+       *(vu_long *)MPC5XXX_CS0_START = START_REG(CONFIG_SYS_FLASH_BASE);
        *(vu_long *)MPC5XXX_BOOTCS_STOP =
-       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CFG_FLASH_BASE, CFG_FLASH_SIZE);
+       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_SIZE);
        /* Interbus enable it here ?? */
        *(vu_long *)MPC5XXX_GPT6_ENABLE = GPT_OUT_1;
        return 0;
index 5aab8862ca0a4baa0b6ef45d1097e43c4308c614..aac81167d088fc0424d15451287ed8a814fc9559 100644 (file)
@@ -35,7 +35,7 @@
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -50,7 +50,7 @@
 #define        SECT_SIZE_32KB  0x8000
 #define        SECT_SIZE_8KB   0x2000
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static int write_word (flash_info_t * info, ulong dest, ulong data);
 #if 0
@@ -80,8 +80,8 @@ unsigned long flash_init (void)
        ulong total_size = 0, device_size = 1;
        unsigned char manuf_id, device_id;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
-               vu_char *addr = (vu_char *) (CFG_FLASH_BASE + i * FLASH_BANK_SIZE);
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
+               vu_char *addr = (vu_char *) (CONFIG_SYS_FLASH_BASE + i * FLASH_BANK_SIZE);
 
                addr[0x555] = 0xAA;             /* get manuf/device info command */
                addr[0x2AA] = 0x55;             /* 3-cycle command */
@@ -97,7 +97,7 @@ unsigned long flash_init (void)
                        device_size *= 2;
 
                flash_info[i].size = device_size;
-               flash_info[i].sector_count = CFG_MAX_FLASH_SECT;
+               flash_info[i].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
 
 #if defined DEBUG_FLASH
                printf ("manuf_id = %x, device_id = %x\n", manuf_id, device_id);
@@ -112,7 +112,7 @@ unsigned long flash_init (void)
                        /* set individual sector start addresses */
                        for (j = 0; j < flash_info[i].sector_count; j++) {
                                flash_info[i].start[j] =
-                                               (CFG_FLASH_BASE + i * FLASH_BANK_SIZE +
+                                               (CONFIG_SYS_FLASH_BASE + i * FLASH_BANK_SIZE +
                                                 j * MAIN_SECT_SIZE);
                        }
                }
@@ -126,14 +126,14 @@ unsigned long flash_init (void)
                        /* set individual sector start addresses */
                        for (j = 0; j < flash_info[i].sector_count; j++) {
                                flash_info[i].start[j] =
-                                               (CFG_FLASH_BASE + i * FLASH_BANK_SIZE +
+                                               (CONFIG_SYS_FLASH_BASE + i * FLASH_BANK_SIZE +
                                                 j * MAIN_SECT_SIZE);
 
-                               if (j < (CFG_MAX_FLASH_SECT - 3)) {
+                               if (j < (CONFIG_SYS_MAX_FLASH_SECT - 3)) {
                                        flash_info[i].start[j] =
-                                                       (CFG_FLASH_BASE + i * FLASH_BANK_SIZE +
+                                                       (CONFIG_SYS_FLASH_BASE + i * FLASH_BANK_SIZE +
                                                         j * MAIN_SECT_SIZE);
-                               } else if (j == (CFG_MAX_FLASH_SECT - 3)) {
+                               } else if (j == (CONFIG_SYS_MAX_FLASH_SECT - 3)) {
                                        flash_info[i].start[j] =
                                                        (flash_info[i].start[j - 1] + SECT_SIZE_32KB);
 
@@ -156,16 +156,16 @@ unsigned long flash_init (void)
 
                addr[0] = 0xFF;
 
-               memset (flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);
+               memset (flash_info[i].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
 
                total_size += flash_info[i].size;
        }
 
        /* Protect monitor and environment sectors
         */
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-       flash_protect (FLAG_PROTECT_SET, CFG_MONITOR_BASE,
-                                  CFG_MONITOR_BASE + monitor_flash_len - 1,
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+       flash_protect (FLAG_PROTECT_SET, CONFIG_SYS_MONITOR_BASE,
+                                  CONFIG_SYS_MONITOR_BASE + monitor_flash_len - 1,
                                   &flash_info[0]);
 #endif
 
@@ -383,7 +383,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                                                                                   start[0]) << sh8b));
        while ((addr[0] & (FLASH_WORD_SIZE) 0x00800080) !=
                   (FLASH_WORD_SIZE) 0x00800080) {
-               if ((now = get_timer (start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer (start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -524,7 +524,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                start = get_timer (0);
                while ((dest2[i << sh8b] & (FLASH_WORD_SIZE) 0x00800080) !=
                           (data2[i] & (FLASH_WORD_SIZE) 0x00800080)) {
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index e7ca669c14f3e18bcd07723611b57c6694caece6..840268915a14059fecaea2991d6d7030dd1312a1 100644 (file)
@@ -55,7 +55,7 @@ phys_size_t initdram(int board_type)
        long mear1;
        long emear1;
 
-       size = get_ram_size(CFG_SDRAM_BASE, CFG_MAX_RAM_SIZE);
+       size = get_ram_size(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MAX_RAM_SIZE);
 
        new_bank0_end = size/2 - 1;
        new_bank1_end = size - 1;
index d845f652f3c8261d827236de460e703e4fcb9fea..9b817ec1480e2c1162da951b6f2380f3c507e985 100644 (file)
@@ -38,7 +38,7 @@
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -54,42 +54,42 @@ static void flash_get_id_long( void *ptr,  short *ptr_manuf, short *ptr_dev_id);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        short manu, dev_id;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
        /* Do sizing to get full correct info */
 
-       flash_get_id_word((void*)CFG_FLASH_BASE0,&manu,&dev_id);
+       flash_get_id_word((void*)CONFIG_SYS_FLASH_BASE0,&manu,&dev_id);
 
        size_b0 = flash_get_size(manu, dev_id, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE0, &flash_info[0],0);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE0, &flash_info[0],0);
 
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (0 - size_b0);
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (0 - size_b0);
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE0
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE0
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
-       flash_get_id_long((void*)CFG_FLASH_BASE1,&manu,&dev_id);
+       flash_get_id_long((void*)CONFIG_SYS_FLASH_BASE1,&manu,&dev_id);
 
        size_b1 = 2 * flash_get_size(manu, dev_id, &flash_info[1]);
 
-       flash_get_offsets(CFG_FLASH_BASE1, &flash_info[1],1);
+       flash_get_offsets(CONFIG_SYS_FLASH_BASE1, &flash_info[1],1);
 
-       memctl->memc_or1 = CFG_OR_TIMING_FLASH | (0 - size_b1);
+       memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (0 - size_b1);
 
        flash_info[0].size = size_b0;
        flash_info[1].size = size_b1;
@@ -395,7 +395,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_short *)(info->start[l_sect]);
        while ((addr[0] & 0x8080) != 0x8080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -524,7 +524,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_short *)dest) & 0x8080) != (sdata & 0x8080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
@@ -548,7 +548,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_short *)dest + 1) & 0x8080) != (sdata & 0x8080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index 2067fedfcaea172ece4ff136f229a491e787a917..9c7bad52f3dd5d07d8346f313868a22d5fbfdaa6 100644 (file)
@@ -92,7 +92,7 @@ int checkboard (void)
 
 phys_size_t initdram (int board_type)
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile memctl8xx_t *memctl = &immap->im_memctl;
     unsigned long temp;
     volatile int delay_cnt;
@@ -136,8 +136,8 @@ phys_size_t initdram (int board_type)
 
 #ifdef CONFIG_CAN_DRIVER
     /* Initialize OR3 / BR3 */
-    memctl->memc_or3 = CFG_OR3_CAN;
-    memctl->memc_br3 = CFG_BR3_CAN;
+    memctl->memc_or3 = CONFIG_SYS_OR3_CAN;
+    memctl->memc_br3 = CONFIG_SYS_BR3_CAN;
 
     /* Initialize MBMR */
     memctl->memc_mamr = MAMR_GPL_A4DIS;        /* GPL_A4 ouput line Disable */
@@ -191,7 +191,7 @@ phys_size_t initdram (int board_type)
 
 static long int dram_size ()
 {
-    volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+    volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
     volatile sysconf8xx_t *siu = &immap->im_siu_conf;
     volatile pcmconf8xx_t *pcm = &immap->im_pcmcia;
     long int             i, memory=1;
index 8815a0cb4afd0ab300e85fc17a9bab2f9305fdf7..d77429549700d95b18df2488d9a8ecbbaff2404e 100644 (file)
@@ -29,7 +29,7 @@
 #include <asm/processor.h>
 
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 static void sdram_start(int hi_addr)
 {
        long hi_addr_bit = hi_addr ? 0x01000000 : 0;
@@ -68,7 +68,7 @@ static void sdram_start(int hi_addr)
        *(vu_long *) MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | hi_addr_bit;
        __asm__ volatile ("sync");
 }
-#endif /* !CFG_RAMBOOT */
+#endif /* !CONFIG_SYS_RAMBOOT */
 
 
 phys_size_t initdram(int board_type)
@@ -77,7 +77,7 @@ phys_size_t initdram(int board_type)
        ulong dramsize2 = 0;
        uint svr, pvr;
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        ulong test1, test2;
 
        /* setup SDRAM chip selects */
@@ -98,9 +98,9 @@ phys_size_t initdram(int board_type)
 
        /* find RAM size using SDRAM CS0 only */
        sdram_start(0);
-       test1 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test1 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        sdram_start(1);
-       test2 = get_ram_size((long *)CFG_SDRAM_BASE, 0x80000000);
+       test2 = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (test1 > test2) {
                sdram_start(0);
                dramsize = test1;
@@ -123,10 +123,10 @@ phys_size_t initdram(int board_type)
        /* find RAM size using SDRAM CS1 only */
        if (!dramsize)
                sdram_start(0);
-       test2 = test1 = get_ram_size((long *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+       test2 = test1 = get_ram_size((long *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        if (!dramsize) {
                sdram_start(1);
-               test2 = get_ram_size((long *) (CFG_SDRAM_BASE + dramsize), 0x80000000);
+               test2 = get_ram_size((long *) (CONFIG_SYS_SDRAM_BASE + dramsize), 0x80000000);
        }
        if (test1 > test2) {
                sdram_start(0);
@@ -145,7 +145,7 @@ phys_size_t initdram(int board_type)
        else
                *(vu_long *) MPC5XXX_SDRAM_CS1CFG = dramsize; /* disabled */
 
-#else /* CFG_RAMBOOT */
+#else /* CONFIG_SYS_RAMBOOT */
 
        /* retrieve size of memory connected to SDRAM CS0 */
        dramsize = *(vu_long *) MPC5XXX_SDRAM_CS0CFG & 0xFF;
@@ -161,7 +161,7 @@ phys_size_t initdram(int board_type)
        else
                dramsize2 = 0;
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /*
         * On MPC5200B we need to set the special configuration delay in the
index bbe5df724d870e54325c5d84eb6eda41ec13a045..3bdc895ecea38355261e5d11ec0b3904f2f864cd 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/byteorder/swab.h>
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 256 KB sectors (x2) */
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -101,7 +101,7 @@ unsigned long flash_init (void)
 {
        int i;
        ulong size = 0;
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_vpp(1);
@@ -119,8 +119,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect (FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1, &flash_info[0]);
 
        return size;
 }
@@ -246,10 +246,10 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                               info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */
@@ -342,7 +342,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
                                *addr) & (FPW) 0x00800080) !=
                                (FPW) 0x00800080) {
                                        if (get_timer_masked () >
-                                       CFG_FLASH_ERASE_TOUT) {
+                                       CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        /* suspend erase     */
                                        *addr = (FPW) 0x00B000B0;
@@ -493,7 +493,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        flash_vpp(0);
                        return (1);
index fdd6ceb8b521b0111aec93fcc8ccd8b3242bad84..310fde052f9c204bfc0583be67d0e977f0b48841 100644 (file)
@@ -35,7 +35,7 @@
 int do_vpd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        VPD vpd;                        /* Board specific data struct */
-       uchar dev_addr = CFG_DEF_EEPROM_ADDR;
+       uchar dev_addr = CONFIG_SYS_DEF_EEPROM_ADDR;
 
        /* Validate usage */
        if (argc > 2) {
index 32815fb63e0833e88bdf865189604ae03299ae82..677494977831e2e98943d09e951e3835e30154b9 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <watchdog.h>
 
-flash_info_t    flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips    */
+flash_info_t    flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 
 /*-----------------------------------------------------------------------
  * Functions
@@ -49,7 +49,7 @@ unsigned long flash_init (void)
     unsigned long size_b1, base_b1;
 
     /* Init: no FLASHes known */
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
        flash_info[i].flash_id = FLASH_UNKNOWN;
     }
 
@@ -90,13 +90,13 @@ unsigned long flash_init (void)
     /* Protect the FPGA image */
     (void)flash_protect(FLAG_PROTECT_SET,
                        FLASH_BASE1_PRELIM,
-                       FLASH_BASE1_PRELIM + CFG_FPGA_IMAGE_LEN - 1,
+                       FLASH_BASE1_PRELIM + CONFIG_SYS_FPGA_IMAGE_LEN - 1,
                        &flash_info[1]);
 
     /* Protect the default boot image */
     (void)flash_protect(FLAG_PROTECT_SET,
-                       FLASH_BASE1_PRELIM + CFG_FPGA_IMAGE_LEN,
-                       FLASH_BASE1_PRELIM + CFG_FPGA_IMAGE_LEN + 0x600000 - 1,
+                       FLASH_BASE1_PRELIM + CONFIG_SYS_FPGA_IMAGE_LEN,
+                       FLASH_BASE1_PRELIM + CONFIG_SYS_FPGA_IMAGE_LEN + 0x600000 - 1,
                        &flash_info[1]);
 
     /* Setup offsets for Main Flash */
@@ -294,11 +294,11 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info)
        }
     }
 
-    /* Make sure we don't exceed CFG_MAX_FLASH_SECT */
-    if (info->sector_count > CFG_MAX_FLASH_SECT) {
+    /* Make sure we don't exceed CONFIG_SYS_MAX_FLASH_SECT */
+    if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
        printf ("** ERROR: sector count %d > max (%d) **\n",
-               info->sector_count, CFG_MAX_FLASH_SECT);
-       info->sector_count = CFG_MAX_FLASH_SECT;
+               info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+       info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
     }
 
     /* set up sector start address table */
@@ -520,7 +520,7 @@ static int flash_erase32(flash_info_t *info, int s_first, int s_last)
            udelay (1000);
 
            while (((status = *addr) & 0x00800080) != 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                    printf ("Timeout\n");
                    *addr = 0x00B000B0;      /* suspend erase      */
                    *addr = 0x00FF00FF;      /* reset to read mode */
@@ -787,7 +787,7 @@ static int write_word32(flash_info_t *info, ulong dest, ulong data)
 
     while (((status = *addr) & 0x00800080) != 0x00800080) {
        WATCHDOG_RESET();
-       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
            *addr = 0x00FF00FF;              /* restore read mode */
            return (1);
        }
index 35d7dbceb4bb969fa890183885eb9b6a28208f4d..2fd84ba0000029ed1ab9ba231ec24a333aaa4edb 100644 (file)
@@ -64,11 +64,11 @@ ext_bus_cntlr_init:
        mflr    r3                      /* get address of ..getAddr */
 
        /* Calculate number of cache lines for this function */
-       addi    r4, 0, (((.Lfe0 - ..getAddr) / CFG_CACHELINE_SIZE) + 2)
+       addi    r4, 0, (((.Lfe0 - ..getAddr) / CONFIG_SYS_CACHELINE_SIZE) + 2)
        mtctr   r4
 ..ebcloop:
        icbt    r0, r3                  /* prefetch cache line for addr in r3*/
-       addi    r3, r3, CFG_CACHELINE_SIZE /* move to next cache line */
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE /* move to next cache line */
        bdnz    ..ebcloop               /* continue for $CTR cache lines */
 
        /********************************************************************
@@ -103,14 +103,14 @@ ext_bus_cntlr_init:
         *******************************************************************/
        addi    r3, 0, pb0ap
        mtdcr   ebccfga, r3
-       addis   r4, 0, CFG_W7O_EBC_PB0AP@h
-       ori     r4, r4, CFG_W7O_EBC_PB0AP@l
+       addis   r4, 0, CONFIG_SYS_W7O_EBC_PB0AP@h
+       ori     r4, r4, CONFIG_SYS_W7O_EBC_PB0AP@l
        mtdcr   ebccfgd, r4
 
        addi    r3, 0, pb0cr
        mtdcr   ebccfga, r3
-       addis   r4, 0, CFG_W7O_EBC_PB0CR@h
-       ori     r4, r4, CFG_W7O_EBC_PB0CR@l
+       addis   r4, 0, CONFIG_SYS_W7O_EBC_PB0CR@h
+       ori     r4, r4, CONFIG_SYS_W7O_EBC_PB0CR@l
        mtdcr   ebccfgd, r4
 
        /********************************************************************
@@ -118,14 +118,14 @@ ext_bus_cntlr_init:
         *******************************************************************/
        addi    r3, 0, pb7ap
        mtdcr   ebccfga, r3
-       addis   r4, 0, CFG_W7O_EBC_PB7AP@h
-       ori     r4, r4, CFG_W7O_EBC_PB7AP@l
+       addis   r4, 0, CONFIG_SYS_W7O_EBC_PB7AP@h
+       ori     r4, r4, CONFIG_SYS_W7O_EBC_PB7AP@l
        mtdcr   ebccfgd, r4
 
        addi    r3, 0, pb7cr
        mtdcr   ebccfga, r3
-       addis   r4, 0, CFG_W7O_EBC_PB7CR@h
-       ori     r4, r4, CFG_W7O_EBC_PB7CR@l
+       addis   r4, 0, CONFIG_SYS_W7O_EBC_PB7CR@h
+       ori     r4, r4, CONFIG_SYS_W7O_EBC_PB7CR@l
        mtdcr   ebccfgd, r4
 
        /* We are all done */
index 6ee33eba36e68de65175b82acf91b6d1400bfbc6..1dfaa2f977a6bec84f9534693e57e02afb3f8a93 100644 (file)
@@ -38,7 +38,7 @@
 #if defined(CONFIG_RTC_M48T35A)
 void rtctest(void)
 {
-    volatile uchar *tchar = (uchar*)(CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE - 9);
+    volatile uchar *tchar = (uchar*)(CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE - 9);
     struct rtc_time tmp;
 
     /* set up led code for RTC tests */
@@ -89,9 +89,9 @@ int dtt_test(int sensor)
     hyst = dtt_read(sensor, DTT_TEMP_HYST) / 256;
 
     /* check values */
-    if ((hyst != (CFG_DTT_MAX_TEMP - CFG_DTT_HYSTERESIS)) ||
-       (trip != CFG_DTT_MAX_TEMP) ||
-       (temp < CFG_DTT_LOW_TEMP) || (temp > CFG_DTT_MAX_TEMP))
+    if ((hyst != (CONFIG_SYS_DTT_MAX_TEMP - CONFIG_SYS_DTT_HYSTERESIS)) ||
+       (trip != CONFIG_SYS_DTT_MAX_TEMP) ||
+       (temp < CONFIG_SYS_DTT_LOW_TEMP) || (temp > CONFIG_SYS_DTT_MAX_TEMP))
        return 1;
 
     return 0;
index 2ce15680e1535f6a6907980770402754ee2fda5c..57558e88fa53666a1cc9b0a50767867045365696 100644 (file)
@@ -24,7 +24,7 @@
 #if defined(VXWORKS)
 # include <stdio.h>
 # include <string.h>
-# define CFG_DEF_EEPROM_ADDR 0xa0
+# define CONFIG_SYS_DEF_EEPROM_ADDR 0xa0
 extern char iicReadByte( char, char );
 extern ulong_t crc32( unsigned char *, unsigned long );
 #else
@@ -47,7 +47,7 @@ vpd_reader(unsigned char *buf, unsigned dev_addr, unsigned off, unsigned count)
      * SDRAM SPD in the first 128 bytes,
      * so skew the offset.
      */
-    if (dev_addr == CFG_DEF_EEPROM_ADDR)
+    if (dev_addr == CONFIG_SYS_DEF_EEPROM_ADDR)
        offset += SDRAM_SPD_DATA_SIZE;
 
     /* Try to read the I2C EEPROM */
@@ -127,7 +127,7 @@ static int vpd_is_valid(unsigned dev_addr, unsigned char *buf)
     /* Check Eyecatcher */
     if (strncmp((char *)(vpd->header.eyecatcher), VPD_EYECATCHER, VPD_EYE_SIZE) != 0) {
        unsigned offset = 0;
-       if (dev_addr == CFG_DEF_EEPROM_ADDR)
+       if (dev_addr == CONFIG_SYS_DEF_EEPROM_ADDR)
            offset += SDRAM_SPD_DATA_SIZE;
        printf("Error: VPD EEPROM 0x%x corrupt @ 0x%x\n", dev_addr, offset);
 
index 0e3b84c61348f047882d7b6971dc8129696c868e..22cdfcd7d756b5c553fa158c23430a5ec0c4eac7 100644 (file)
@@ -132,7 +132,7 @@ int checkboard (void)
        puts ("Board: ");
 
        /* VPD data present in I2C EEPROM */
-       if (vpd_get_data (CFG_DEF_EEPROM_ADDR, &vpd) == 0) {
+       if (vpd_get_data (CONFIG_SYS_DEF_EEPROM_ADDR, &vpd) == 0) {
                /*
                 * Known board type.
                 */
@@ -204,7 +204,7 @@ static void w7o_env_init (VPD * vpd)
        /*
         * Read VPD
         */
-       if (vpd_get_data (CFG_DEF_EEPROM_ADDR, vpd) != 0)
+       if (vpd_get_data (CONFIG_SYS_DEF_EEPROM_ADDR, vpd) != 0)
                return;
 
        /*
index 4bbd94f6084cf9646b711978b56642fdff139368..131399c9e26fcb2a187ce01a85d2ae412126f319 100644 (file)
@@ -32,7 +32,7 @@
 
 void hw_watchdog_reset(void)
 {
-    volatile ushort *hwd = (ushort *)(CFG_W7O_EBC_PB7CR & 0xfff00000);
+    volatile ushort *hwd = (ushort *)(CONFIG_SYS_W7O_EBC_PB7CR & 0xfff00000);
 
     /*
      * Read the LMG's hwd register and toggle the
index 6223ec19c160848454afaceb5eded165b4a9cd5b..c6e917167cb7251354be97dd2133d82bb5ae2d3f 100644 (file)
@@ -82,7 +82,7 @@
 #endif
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
 
 static FLASH_BUS_RET flash_status_reg (void)
 {
@@ -109,7 +109,7 @@ static int flash_ready (ulong timeout)
        return ok;
 }
 
-#if ( CFG_MAX_FLASH_BANKS != 1 )
+#if ( CONFIG_SYS_MAX_FLASH_BANKS != 1 )
 #  error "WEP platform has only one flash bank!"
 #endif
 
@@ -120,11 +120,11 @@ ulong flash_init (void)
        FLASH_BUS address = WEP_FLASH_BASE;
 
        flash_info[0].size = WEP_FLASH_BANK_SIZE;
-       flash_info[0].sector_count = CFG_MAX_FLASH_SECT;
+       flash_info[0].sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        flash_info[0].flash_id = INTEL_MANUFACT;
-       memset (flash_info[0].protect, 0, CFG_MAX_FLASH_SECT);
+       memset (flash_info[0].protect, 0, CONFIG_SYS_MAX_FLASH_SECT);
 
-       for (i = 0; i < CFG_MAX_FLASH_SECT; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_SECT; i++) {
                flash_info[0].start[i] = address;
 #ifdef WEP_FLASH_UNLOCK
                /* Some devices are hw locked after start. */
@@ -137,8 +137,8 @@ ulong flash_init (void)
        }
 
        flash_protect (FLAG_PROTECT_SET,
-                                  CFG_FLASH_BASE,
-                                  CFG_FLASH_BASE + monitor_flash_len - 1,
+                                  CONFIG_SYS_FLASH_BASE,
+                                  CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                                   &flash_info[0]);
 
        flash_protect (FLAG_PROTECT_SET,
@@ -209,7 +209,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
 
                *address = FLASH_CMD (CFI_INTEL_CMD_BLOCK_ERASE);
                *address = FLASH_CMD (CFI_INTEL_CMD_CONFIRM);
-               if (flash_ready (CFG_FLASH_ERASE_TOUT)) {
+               if (flash_ready (CONFIG_SYS_FLASH_ERASE_TOUT)) {
                        *address = FLASH_CMD (CFI_INTEL_CMD_CLEAR_STATUS_REGISTER);
                        printf ("ok.\n");
                } else {
@@ -257,7 +257,7 @@ static int write_data (flash_info_t * info, ulong dest, FLASH_BUS data)
        *address = FLASH_CMD (CFI_INTEL_CMD_PROGRAM1);
        *address = data;
 
-       if (!flash_ready (CFG_FLASH_WRITE_TOUT)) {
+       if (!flash_ready (CONFIG_SYS_FLASH_WRITE_TOUT)) {
                *address = FLASH_CMD (CFI_INTEL_CMD_SUSPEND);
                rc = ERR_TIMOUT;
                printf ("timeout! Aborting...\n");
index 4742aafc5e30c0e8ff7347d5ea68d24ff1b73457..91dcc0dcb301e729f25ca71aa7d0b353826ad947 100644 (file)
@@ -64,7 +64,7 @@ int checkboard (void)
 phys_size_t initdram (int board_type)
 {
 
-       volatile immap_t     *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        /* AMX860: has 4 Mb of 60ns EDO DRAM, so start DRAM at 0 */
index 7768e2d85a86270bdb5d3a82e014588d192950c4..fe8bce412b6aa138b089466458ce49663e68f8cf 100644 (file)
 #include <common.h>
 #include <mpc8xx.h>
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips        */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
@@ -60,13 +60,13 @@ static void flash_get_offsets (ulong base, flash_info_t *info);
 
 unsigned long flash_init (void)
 {
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        unsigned long size_b0, size_b1;
        int i;
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
        }
 
@@ -113,24 +113,24 @@ unsigned long flash_init (void)
                memctl->memc_br1, memctl->memc_or1);
 
        /* Remap FLASH according to real size */
-       memctl->memc_or0 = CFG_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
-       memctl->memc_br0 = (CFG_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
+       memctl->memc_or0 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b0 & OR_AM_MSK);
+       memctl->memc_br0 = (CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_MS_GPCM | BR_V;
 
        DEBUGF("## BR0: 0x%08x    OR0: 0x%08x\n",
                memctl->memc_br0, memctl->memc_or0);
 
        /* Re-do sizing to get full correct info */
-       size_b0 = flash_get_size((vu_long *)CFG_FLASH_BASE, &flash_info[0]);
+       size_b0 = flash_get_size((vu_long *)CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
-       flash_get_offsets (CFG_FLASH_BASE, &flash_info[0]);
+       flash_get_offsets (CONFIG_SYS_FLASH_BASE, &flash_info[0]);
 
        flash_info[0].size = size_b0;
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
        /* monitor protection ON by default */
        flash_protect(FLAG_PROTECT_SET,
-                     CFG_MONITOR_BASE,
-                     CFG_MONITOR_BASE+monitor_flash_len-1,
+                     CONFIG_SYS_MONITOR_BASE,
+                     CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                      &flash_info[0]);
 #endif
 
@@ -143,26 +143,26 @@ unsigned long flash_init (void)
 #endif
 
        if (size_b1) {
-               memctl->memc_or1 = CFG_OR_TIMING_FLASH | (-size_b1 & OR_AM_MSK);
-               memctl->memc_br1 = ((CFG_FLASH_BASE + size_b0) & BR_BA_MSK) |
+               memctl->memc_or1 = CONFIG_SYS_OR_TIMING_FLASH | (-size_b1 & OR_AM_MSK);
+               memctl->memc_br1 = ((CONFIG_SYS_FLASH_BASE + size_b0) & BR_BA_MSK) |
                                   BR_MS_GPCM | BR_V;
 
                DEBUGF("## BR1: 0x%08x    OR1: 0x%08x\n",
                        memctl->memc_br1, memctl->memc_or1);
 
                /* Re-do sizing to get full correct info */
-               size_b1 = flash_get_size((vu_long *)(CFG_FLASH_BASE + size_b0),
+               size_b1 = flash_get_size((vu_long *)(CONFIG_SYS_FLASH_BASE + size_b0),
                                          &flash_info[1]);
 
                flash_info[1].size = size_b1;
 
-               flash_get_offsets (CFG_FLASH_BASE + size_b0, &flash_info[1]);
+               flash_get_offsets (CONFIG_SYS_FLASH_BASE + size_b0, &flash_info[1]);
 
-# if CFG_MONITOR_BASE >= CFG_FLASH_BASE
+# if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE+monitor_flash_len-1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE+monitor_flash_len-1,
                              &flash_info[1]);
 # endif
 
@@ -503,7 +503,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long*)(info->start[l_sect]);
        while ((addr[0] & 0x00800080) != 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -626,7 +626,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index cd257df5ba568b318697543a8c0a7c521d1918a9..b051c898434316224deca33f4823266431f98b1b 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -65,7 +65,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -85,8 +85,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -203,10 +203,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;             /* restore read mode */
@@ -276,7 +276,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW) 0x00D000D0;       /* erase confirm */
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -410,7 +410,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index fe3e7128a4bfd7b41faa80124445bcd909c00619..57e16200501a6ec2a55bf77d32ff98d1a3932d6c 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
        .macro CPWAIT reg
@@ -47,67 +47,67 @@ lowlevel_init:
        /* Set up GPIO pins first ----------------------------------------- */
 
        ldr     r0,=GPSR0
-       ldr     r1,=CFG_GPSR0_VAL
+       ldr     r1,=CONFIG_SYS_GPSR0_VAL
        str     r1,[r0]
 
        ldr     r0,=GPSR1
-       ldr     r1,=CFG_GPSR1_VAL
+       ldr     r1,=CONFIG_SYS_GPSR1_VAL
        str     r1,[r0]
 
        ldr     r0,=GPSR2
-       ldr     r1,=CFG_GPSR2_VAL
+       ldr     r1,=CONFIG_SYS_GPSR2_VAL
        str     r1,[r0]
 
        ldr     r0,=GPCR0
-       ldr     r1,=CFG_GPCR0_VAL
+       ldr     r1,=CONFIG_SYS_GPCR0_VAL
        str     r1,[r0]
 
        ldr     r0,=GPCR1
-       ldr     r1,=CFG_GPCR1_VAL
+       ldr     r1,=CONFIG_SYS_GPCR1_VAL
        str     r1,[r0]
 
        ldr     r0,=GPCR2
-       ldr     r1,=CFG_GPCR2_VAL
+       ldr     r1,=CONFIG_SYS_GPCR2_VAL
        str     r1,[r0]
 
        ldr     r0,=GPDR0
-       ldr     r1,=CFG_GPDR0_VAL
+       ldr     r1,=CONFIG_SYS_GPDR0_VAL
        str     r1,[r0]
 
        ldr     r0,=GPDR1
-       ldr     r1,=CFG_GPDR1_VAL
+       ldr     r1,=CONFIG_SYS_GPDR1_VAL
        str     r1,[r0]
 
        ldr     r0,=GPDR2
-       ldr     r1,=CFG_GPDR2_VAL
+       ldr     r1,=CONFIG_SYS_GPDR2_VAL
        str     r1,[r0]
 
        ldr     r0,=GAFR0_L
-       ldr     r1,=CFG_GAFR0_L_VAL
+       ldr     r1,=CONFIG_SYS_GAFR0_L_VAL
        str     r1,[r0]
 
        ldr     r0,=GAFR0_U
-       ldr     r1,=CFG_GAFR0_U_VAL
+       ldr     r1,=CONFIG_SYS_GAFR0_U_VAL
        str     r1,[r0]
 
        ldr     r0,=GAFR1_L
-       ldr     r1,=CFG_GAFR1_L_VAL
+       ldr     r1,=CONFIG_SYS_GAFR1_L_VAL
        str     r1,[r0]
 
        ldr     r0,=GAFR1_U
-       ldr     r1,=CFG_GAFR1_U_VAL
+       ldr     r1,=CONFIG_SYS_GAFR1_U_VAL
        str     r1,[r0]
 
        ldr     r0,=GAFR2_L
-       ldr     r1,=CFG_GAFR2_L_VAL
+       ldr     r1,=CONFIG_SYS_GAFR2_L_VAL
        str     r1,[r0]
 
        ldr     r0,=GAFR2_U
-       ldr     r1,=CFG_GAFR2_U_VAL
+       ldr     r1,=CONFIG_SYS_GAFR2_U_VAL
        str     r1,[r0]
 
        ldr     r0,=PSSR                /* enable GPIO pins */
-       ldr     r1,=CFG_PSSR_VAL
+       ldr     r1,=CONFIG_SYS_PSSR_VAL
        str     r1,[r0]
 
        /* ---------------------------------------------------------------- */
@@ -145,17 +145,17 @@ mem_init:
        /* MSC registers: timing, bus width, mem type                       */
 
        /* MSC0: nCS(0,1)                                                   */
-       ldr     r2,=CFG_MSC0_VAL
+       ldr     r2,=CONFIG_SYS_MSC0_VAL
        str     r2,[r1, #MSC0_OFFSET]
        ldr     r2,[r1, #MSC0_OFFSET]   /* read back to ensure data latches */
 
        /* MSC1: nCS(2,3)                                                   */
-       ldr     r2,=CFG_MSC1_VAL
+       ldr     r2,=CONFIG_SYS_MSC1_VAL
        str     r2,[r1, #MSC1_OFFSET]
        ldr     r2,[r1, #MSC1_OFFSET]
 
        /* MSC2: nCS(4,5)                                                   */
-       ldr     r2,=CFG_MSC2_VAL
+       ldr     r2,=CONFIG_SYS_MSC2_VAL
        str     r2,[r1, #MSC2_OFFSET]
        ldr     r2,[r1, #MSC2_OFFSET]
 
@@ -164,37 +164,37 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        /* MECR: Memory Expansion Card Register                             */
-       ldr     r2,=CFG_MECR_VAL
+       ldr     r2,=CONFIG_SYS_MECR_VAL
        str     r2,[r1, #MECR_OFFSET]
        ldr     r2,[r1, #MECR_OFFSET]
 
        /* MCMEM0: Card Interface slot 0 timing                             */
-       ldr     r2,=CFG_MCMEM0_VAL
+       ldr     r2,=CONFIG_SYS_MCMEM0_VAL
        str     r2,[r1, #MCMEM0_OFFSET]
        ldr     r2,[r1, #MCMEM0_OFFSET]
 
        /* MCMEM1: Card Interface slot 1 timing                             */
-       ldr     r2,=CFG_MCMEM1_VAL
+       ldr     r2,=CONFIG_SYS_MCMEM1_VAL
        str     r2,[r1, #MCMEM1_OFFSET]
        ldr     r2,[r1, #MCMEM1_OFFSET]
 
        /* MCATT0: Card Interface Attribute Space Timing, slot 0            */
-       ldr     r2,=CFG_MCATT0_VAL
+       ldr     r2,=CONFIG_SYS_MCATT0_VAL
        str     r2,[r1, #MCATT0_OFFSET]
        ldr     r2,[r1, #MCATT0_OFFSET]
 
        /* MCATT1: Card Interface Attribute Space Timing, slot 1            */
-       ldr     r2,=CFG_MCATT1_VAL
+       ldr     r2,=CONFIG_SYS_MCATT1_VAL
        str     r2,[r1, #MCATT1_OFFSET]
        ldr     r2,[r1, #MCATT1_OFFSET]
 
        /* MCIO0: Card Interface I/O Space Timing, slot 0                   */
-       ldr     r2,=CFG_MCIO0_VAL
+       ldr     r2,=CONFIG_SYS_MCIO0_VAL
        str     r2,[r1, #MCIO0_OFFSET]
        ldr     r2,[r1, #MCIO0_OFFSET]
 
        /* MCIO1: Card Interface I/O Space Timing, slot 1                   */
-       ldr     r2,=CFG_MCIO1_VAL
+       ldr     r2,=CONFIG_SYS_MCIO1_VAL
        str     r2,[r1, #MCIO1_OFFSET]
        ldr     r2,[r1, #MCIO1_OFFSET]
 
@@ -207,7 +207,7 @@ mem_init:
        /* ---------------------------------------------------------------- */
 
        @ get the mdrefr settings
-       ldr     r4,=CFG_MDREFR_VAL
+       ldr     r4,=CONFIG_SYS_MDREFR_VAL
 
        @ write back mdrefr
        str     r4,[r1, #MDREFR_OFFSET]
@@ -261,7 +261,7 @@ mem_init:
        /* Step 4d:                                                     */
        /* fetch platform value of mdcnfg                               */
        @
-       ldr     r2,  =CFG_MDCNFG_VAL
+       ldr     r2,  =CONFIG_SYS_MDCNFG_VAL
 
        @ disable all sdram banks
        @
@@ -296,7 +296,7 @@ mem_init:
        /*          documented in SDRAM data sheets. The address(es) used   */
        /*          for this purpose must not be cacheable.                 */
 
-       ldr     r3,     =CFG_DRAM_BASE
+       ldr     r3,     =CONFIG_SYS_DRAM_BASE
        str     r2,     [r3]
        str     r2,     [r3]
        str     r2,     [r3]
@@ -326,7 +326,7 @@ mem_init:
 
        /* Step 4h: Write MDMRS.                                            */
 
-       ldr     r2,     =CFG_MDMRS_VAL
+       ldr     r2,     =CONFIG_SYS_MDMRS_VAL
        str     r2,     [r1, #MDMRS_OFFSET]
 
 
@@ -342,7 +342,7 @@ initirqs:
        ldr     r2,  =ICLR
        str     r1,  [r2]
 
-       ldr     r1,  =CFG_ICMR_VAL /* mask all interrupts at the controller */
+       ldr     r1,  =CONFIG_SYS_ICMR_VAL /* mask all interrupts at the controller */
        ldr     r2,  =ICMR
        str     r1,  [r2]
 
@@ -388,7 +388,7 @@ initclks:
        @
 test:
        ldr     r1,  =CKEN
-       ldr     r2,  =CFG_CKEN_VAL
+       ldr     r2,  =CONFIG_SYS_CKEN_VAL
        str     r2,  [r1]
 
        /* ---------------------------------------------------------------- */
index 993dfa30f6e6516a1dedcbed37844658db7a5c60..4215513375b2c25525fe4462af87fa69f8ae5eef 100644 (file)
@@ -45,9 +45,9 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 #define USE_CHAN1 \
-       ((defined XPAR_UARTNS550_0_BASEADDR) && (defined CFG_INIT_CHAN1))
+       ((defined XPAR_UARTNS550_0_BASEADDR) && (defined CONFIG_SYS_INIT_CHAN1))
 #define USE_CHAN2 \
-       ((defined XPAR_UARTNS550_1_BASEADDR) && (defined CFG_INIT_CHAN2))
+       ((defined XPAR_UARTNS550_1_BASEADDR) && (defined CONFIG_SYS_INIT_CHAN2))
 
 #if USE_CHAN1
 #include <ns16550.h>
@@ -82,21 +82,21 @@ void
 serial_putc(const char c)
 {
        if (c == '\n')
-               NS16550_putc(COM_PORTS[CFG_DUART_CHAN], '\r');
+               NS16550_putc(COM_PORTS[CONFIG_SYS_DUART_CHAN], '\r');
 
-       NS16550_putc(COM_PORTS[CFG_DUART_CHAN], c);
+       NS16550_putc(COM_PORTS[CONFIG_SYS_DUART_CHAN], c);
 }
 
 int
 serial_getc(void)
 {
-       return NS16550_getc(COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_getc(COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 int
 serial_tstc(void)
 {
-       return NS16550_tstc(COM_PORTS[CFG_DUART_CHAN]);
+       return NS16550_tstc(COM_PORTS[CONFIG_SYS_DUART_CHAN]);
 }
 
 void
index 955936d907e507a900c14277d7a88f3199f0d705..f388b775c2e2d85dd85df4068e67f2709367eed8 100644 (file)
 
 void do_reset (void)
 {
-#ifdef CFG_GPIO_0
-       *((unsigned long *)(CFG_GPIO_0_ADDR)) =
-           ++(*((unsigned long *)(CFG_GPIO_0_ADDR)));
+#ifdef CONFIG_SYS_GPIO_0
+       *((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)) =
+           ++(*((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)));
 #endif
-#ifdef CFG_RESET_ADDRESS
+#ifdef CONFIG_SYS_RESET_ADDRESS
        puts ("Reseting board\n");
        asm ("bra r0");
 #endif
@@ -44,17 +44,17 @@ void do_reset (void)
 
 int gpio_init (void)
 {
-#ifdef CFG_GPIO_0
-       *((unsigned long *)(CFG_GPIO_0_ADDR)) = 0xFFFFFFFF;
+#ifdef CONFIG_SYS_GPIO_0
+       *((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)) = 0xFFFFFFFF;
 #endif
        return 0;
 }
 
-#ifdef CFG_FSL_2
+#ifdef CONFIG_SYS_FSL_2
 void fsl_isr2 (void *arg) {
        volatile int num;
-       *((unsigned int *)(CFG_GPIO_0_ADDR + 0x4)) =
-           ++(*((unsigned int *)(CFG_GPIO_0_ADDR + 0x4)));
+       *((unsigned int *)(CONFIG_SYS_GPIO_0_ADDR + 0x4)) =
+           ++(*((unsigned int *)(CONFIG_SYS_GPIO_0_ADDR + 0x4)));
        GET (num, 2);
        NGET (num, 2);
        puts("*");
index 2c98d2785030c8b159e16e82aae514d51810c4c1..5886556f7cc543367136fc13af63345512948d54 100644 (file)
@@ -127,7 +127,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFFB000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFFB000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index d5da018ba5459e5f63e52a0004e343d1e0aeba06..debc916eb9c9e158e6b62605d6a95b985136cb89 100644 (file)
@@ -137,7 +137,7 @@ SECTIONS
    *(COMMON)
   }
 
-  ppcenv_assert = ASSERT(. < 0xFFFFB000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CFG_MONITOR_BASE, CFG_MONITOR_LEN and TEXT_BASE may need to be modified.");
+  ppcenv_assert = ASSERT(. < 0xFFFFB000, ".bss section too big, overlaps .ppcenv section. Please update your confguration: CONFIG_SYS_MONITOR_BASE, CONFIG_SYS_MONITOR_LEN and TEXT_BASE may need to be modified.");
 
   _end = . ;
   PROVIDE (end = .);
index 0867226fff0b33ce9a9ad910965b7ccf112c070f..0c3d667c5c78c4e93a8526954b253499542ef288 100644 (file)
@@ -37,7 +37,7 @@ int checkboard(void) __attribute__((weak, alias("__checkboard")));
 phys_size_t __initdram(int board_type)
 {
        return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
-                           CFG_SDRAM_SIZE_MB * 1024 * 1024);
+                           CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
 }
 phys_size_t initdram(int) __attribute__((weak, alias("__initdram")));
 
index ad19ade06c2e5d0dee9e7906cf715760bc2eac8a..58aaeb76956e0930e29ec49a714109cd0d31e65a 100644 (file)
@@ -72,7 +72,7 @@ send(u32 adr, u8 * data, u32 len)
                memcpy(&sendBuf[2], &data[pos], wlen);
 
                /* Send to EEPROM through iic bus */
-               ret = XIic_Send(XPAR_IIC_0_BASEADDR, CFG_I2C_EEPROM_ADDR >> 1,
+               ret = XIic_Send(XPAR_IIC_0_BASEADDR, CONFIG_SYS_I2C_EEPROM_ADDR >> 1,
                                sendBuf, wlen + 2);
 
                udelay(IIC_DELAY);
@@ -93,11 +93,11 @@ receive(u32 adr, u8 * data, u32 len)
 
        /* Provide EEPROM address */
        ret =
-           XIic_Send(XPAR_IIC_0_BASEADDR, CFG_I2C_EEPROM_ADDR >> 1, address,
+           XIic_Send(XPAR_IIC_0_BASEADDR, CONFIG_SYS_I2C_EEPROM_ADDR >> 1, address,
                      2);
        /* Receive data from EEPROM */
        ret =
-           XIic_Recv(XPAR_IIC_0_BASEADDR, CFG_I2C_EEPROM_ADDR >> 1, data, len);
+           XIic_Recv(XPAR_IIC_0_BASEADDR, CONFIG_SYS_I2C_EEPROM_ADDR >> 1, data, len);
 }
 
 /************************************************************************
index b48103fdc028e522eba9f742b3026da2398e0e40..b1a76c0c514f122e90c7b148ada114e905ec8f6c 100644 (file)
 
 void do_reset (void)
 {
-#ifdef CFG_GPIO_0
-       *((unsigned long *)(CFG_GPIO_0_ADDR)) =
-           ++(*((unsigned long *)(CFG_GPIO_0_ADDR)));
+#ifdef CONFIG_SYS_GPIO_0
+       *((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)) =
+           ++(*((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)));
 #endif
-#ifdef CFG_RESET_ADDRESS
+#ifdef CONFIG_SYS_RESET_ADDRESS
        puts ("Reseting board\n");
        asm ("bra r0");
 #endif
@@ -42,8 +42,8 @@ void do_reset (void)
 
 int gpio_init (void)
 {
-#ifdef CFG_GPIO_0
-       *((unsigned long *)(CFG_GPIO_0_ADDR)) = 0x0;
+#ifdef CONFIG_SYS_GPIO_0
+       *((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)) = 0x0;
 #endif
        return 0;
 }
index 893351eea3863413ffe47c9bbf3e0cac311a940b..b02149cd641bbfb56c239390bffd5fb847976650 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -84,7 +84,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -104,8 +104,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -232,10 +232,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;             /* restore read mode */
@@ -305,7 +305,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW) 0x00D000D0;       /* erase confirm */
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -439,7 +439,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
@@ -484,7 +484,7 @@ int flash_real_protect(flash_info_t *info, long sector, int prot)
        reset_timer_masked ();
 
        while ((*addr & INTEL_FINISHED) != INTEL_FINISHED) {
-               if (get_timer_masked () > CFG_FLASH_UNLOCK_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_UNLOCK_TOUT) {
                        printf("Flash lock bit operation timed out\n");
                        rc = 1;
                        break;
@@ -516,7 +516,7 @@ int flash_real_protect(flash_info_t *info, long sector, int prot)
                                *addr = INTEL_PROTECT;  /* set */
                                while ((*addr & INTEL_FINISHED) != INTEL_FINISHED)
                                {
-                                       if (get_timer_masked () > CFG_FLASH_UNLOCK_TOUT)
+                                       if (get_timer_masked () > CONFIG_SYS_FLASH_UNLOCK_TOUT)
                                        {
                                                printf("Flash lock bit operation timed out\n");
                                                rc = 1;
index 2ebd39554a16011b5233aec79ce3de9e1176c27d..8230550c688b95df45aaac6c3ead29a178d671df 100644 (file)
@@ -24,7 +24,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
        .macro CPWAIT reg
@@ -51,98 +51,98 @@ lowlevel_init:
        /* Set up GPIO pins first */
 
        ldr     r0,   =GPSR0
-       ldr     r1,   =CFG_GPSR0_VAL
+       ldr     r1,   =CONFIG_SYS_GPSR0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPSR1
-       ldr     r1,   =CFG_GPSR1_VAL
+       ldr     r1,   =CONFIG_SYS_GPSR1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPSR2
-       ldr     r1,   =CFG_GPSR2_VAL
+       ldr     r1,   =CONFIG_SYS_GPSR2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPCR0
-       ldr     r1,   =CFG_GPCR0_VAL
+       ldr     r1,   =CONFIG_SYS_GPCR0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPCR1
-       ldr     r1,   =CFG_GPCR1_VAL
+       ldr     r1,   =CONFIG_SYS_GPCR1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPCR2
-       ldr     r1,   =CFG_GPCR2_VAL
+       ldr     r1,   =CONFIG_SYS_GPCR2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GRER0
-       ldr     r1,   =CFG_GRER0_VAL
+       ldr     r1,   =CONFIG_SYS_GRER0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GRER1
-       ldr     r1,   =CFG_GRER1_VAL
+       ldr     r1,   =CONFIG_SYS_GRER1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GRER2
-       ldr     r1,   =CFG_GRER2_VAL
+       ldr     r1,   =CONFIG_SYS_GRER2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GFER0
-       ldr     r1,   =CFG_GFER0_VAL
+       ldr     r1,   =CONFIG_SYS_GFER0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GFER1
-       ldr     r1,   =CFG_GFER1_VAL
+       ldr     r1,   =CONFIG_SYS_GFER1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GFER2
-       ldr     r1,   =CFG_GFER2_VAL
+       ldr     r1,   =CONFIG_SYS_GFER2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPDR0
-       ldr     r1,   =CFG_GPDR0_VAL
+       ldr     r1,   =CONFIG_SYS_GPDR0_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPDR1
-       ldr     r1,   =CFG_GPDR1_VAL
+       ldr     r1,   =CONFIG_SYS_GPDR1_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GPDR2
-       ldr     r1,   =CFG_GPDR2_VAL
+       ldr     r1,   =CONFIG_SYS_GPDR2_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR0_L
-       ldr     r1,   =CFG_GAFR0_L_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR0_L_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR0_U
-       ldr     r1,   =CFG_GAFR0_U_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR0_U_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR1_L
-       ldr     r1,   =CFG_GAFR1_L_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR1_L_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR1_U
-       ldr     r1,   =CFG_GAFR1_U_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR1_U_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR2_L
-       ldr     r1,   =CFG_GAFR2_L_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR2_L_VAL
        str     r1,   [r0]
 
        ldr     r0,   =GAFR2_U
-       ldr     r1,   =CFG_GAFR2_U_VAL
+       ldr     r1,   =CONFIG_SYS_GAFR2_U_VAL
        str     r1,   [r0]
 
        /* enable GPIO pins */
        ldr     r0,   =PSSR
-       ldr     r1,   =CFG_PSSR_VAL
+       ldr     r1,   =CONFIG_SYS_PSSR_VAL
        str     r1,   [r0]
 
        /* SET_LED 1 */
 
        ldr     r3, =MSC1               /* low - bank 2 Lubbock Registers / SRAM */
-       ldr     r2, =CFG_MSC1_VAL       /* high - bank 3 Ethernet Controller */
+       ldr     r2, =CONFIG_SYS_MSC1_VAL        /* high - bank 3 Ethernet Controller */
        str     r2, [r3]                /* need to set MSC1 before trying to write to the HEX LEDs */
        ldr     r2, [r3]                /* need to read it back to make sure the value latches (see MSC section of manual) */
 
@@ -181,47 +181,47 @@ mem_init:
        @ Step 2a
        @ write msc0, read back to ensure data latches
        @
-       ldr     r2,   =CFG_MSC0_VAL
+       ldr     r2,   =CONFIG_SYS_MSC0_VAL
        str     r2,   [r1, #MSC0_OFFSET]
        ldr     r2,   [r1, #MSC0_OFFSET]
 
        @ write msc1
-       ldr     r2,  =CFG_MSC1_VAL
+       ldr     r2,  =CONFIG_SYS_MSC1_VAL
        str     r2,  [r1, #MSC1_OFFSET]
        ldr     r2,  [r1, #MSC1_OFFSET]
 
        @ write msc2
-       ldr     r2,  =CFG_MSC2_VAL
+       ldr     r2,  =CONFIG_SYS_MSC2_VAL
        str     r2,  [r1, #MSC2_OFFSET]
        ldr     r2,  [r1, #MSC2_OFFSET]
 
        @ Step 2b
        @ write mecr
-       ldr     r2,  =CFG_MECR_VAL
+       ldr     r2,  =CONFIG_SYS_MECR_VAL
        str     r2,  [r1, #MECR_OFFSET]
 
        @ write mcmem0
-       ldr     r2,  =CFG_MCMEM0_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM0_VAL
        str     r2,  [r1, #MCMEM0_OFFSET]
 
        @ write mcmem1
-       ldr     r2,  =CFG_MCMEM1_VAL
+       ldr     r2,  =CONFIG_SYS_MCMEM1_VAL
        str     r2,  [r1, #MCMEM1_OFFSET]
 
        @ write mcatt0
-       ldr     r2,  =CFG_MCATT0_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT0_VAL
        str     r2,  [r1, #MCATT0_OFFSET]
 
        @ write mcatt1
-       ldr     r2,  =CFG_MCATT1_VAL
+       ldr     r2,  =CONFIG_SYS_MCATT1_VAL
        str     r2,  [r1, #MCATT1_OFFSET]
 
        @ write mcio0
-       ldr     r2,  =CFG_MCIO0_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO0_VAL
        str     r2,  [r1, #MCIO0_OFFSET]
 
        @ write mcio1
-       ldr     r2,  =CFG_MCIO1_VAL
+       ldr     r2,  =CONFIG_SYS_MCIO1_VAL
        str     r2,  [r1, #MCIO1_OFFSET]
 
        /*SET_LED 3 */
@@ -229,14 +229,14 @@ mem_init:
        @ Step 2c
        @ fly-by-dma is defeatured on this part
        @ write flycnfg
-       @ldr    r2,  =CFG_FLYCNFG_VAL
+       @ldr    r2,  =CONFIG_SYS_FLYCNFG_VAL
        @str    r2,  [r1, #FLYCNFG_OFFSET]
 
 /* FIXME Does this sequence really make sense */
 #ifdef REDBOOT_WAY
        @ Step 2d
        @ get the mdrefr settings
-       ldr     r3,  =CFG_MDREFR_VAL
+       ldr     r3,  =CONFIG_SYS_MDREFR_VAL
 
        @ extract DRI field (we need a valid DRI field)
        @
@@ -319,7 +319,7 @@ mem_init:
 #else
        @ Step 2d
        @ get the mdrefr settings
-       ldr     r4,  =CFG_MDREFR_VAL
+       ldr     r4,  =CONFIG_SYS_MDREFR_VAL
 
        @ write back mdrefr
        @
@@ -367,7 +367,7 @@ mem_init:
        @ Step 4d
        @ fetch platform value of mdcnfg
        @
-       ldr     r2,  =CFG_MDCNFG_VAL
+       ldr     r2,  =CONFIG_SYS_MDCNFG_VAL
 
        @ disable all sdram banks
        @
@@ -404,7 +404,7 @@ mem_init:
        @ Access memory *not yet enabled* for CBR refresh cycles (8)
        @ - CBR is generated for all banks
 
-       ldr     r2, =CFG_DRAM_BASE
+       ldr     r2, =CONFIG_SYS_DRAM_BASE
        str     r2, [r2]
        str     r2, [r2]
        str     r2, [r2]
@@ -434,7 +434,7 @@ mem_init:
        @ Step 4h
        @ write mdmrs
        @
-       ldr     r2,  =CFG_MDMRS_VAL
+       ldr     r2,  =CONFIG_SYS_MDMRS_VAL
        str     r2,  [r1, #MDMRS_OFFSET]
 
        @ Done Memory Init
@@ -453,7 +453,7 @@ mem_init:
 
        @ Set interrupt mask register
        @
-       ldr     r1,  =CFG_ICMR_VAL
+       ldr     r1,  =CONFIG_SYS_ICMR_VAL
        ldr     r2,  =ICMR
        str     r1,  [r2]
 
@@ -469,7 +469,7 @@ mem_init:
 
        @ set core clocks
        @
-       ldr     r2,  =CFG_CCCR_VAL
+       ldr     r2,  =CONFIG_SYS_CCCR_VAL
        ldr     r1,  =CCCR
        str     r2,  [r1]
 
@@ -492,7 +492,7 @@ mem_init:
        @ Turn on needed clocks
        @
        ldr     r1,  =CKEN
-       ldr     r2,  =CFG_CKEN_VAL
+       ldr     r2,  =CONFIG_SYS_CKEN_VAL
        str     r2,  [r1]
 
        /*SET_LED 7 */
index e42b273a41b592b88984d4b6d7af4dee279c3201..33dfbf1c0d2915c44694f0d92cd5a3198e1a2fec 100644 (file)
@@ -38,5 +38,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index ce5d4e180ab5c772b97726423586399f661ee028..0711931e65b60b41d0502a642c31c737d31e00a6 100644 (file)
@@ -57,9 +57,9 @@
 #define FLASH_SRAM_SEL_VAL     1
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips  */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips   */
 
-static unsigned long flash_addr_table[8][CFG_MAX_FLASH_BANKS] = {
+static unsigned long flash_addr_table[8][CONFIG_SYS_MAX_FLASH_BANKS] = {
        {0xfff80000},   /* 0:000: configuraton 3 */
        {0xfff90000},   /* 1:001: configuraton 4 */
        {0xfffa0000},   /* 2:010: configuraton 7 */
@@ -89,7 +89,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data);
 unsigned long flash_init (void)
 {
        unsigned long total_b = 0;
-       unsigned long size_b[CFG_MAX_FLASH_BANKS];
+       unsigned long size_b[CONFIG_SYS_MAX_FLASH_BANKS];
        unsigned short index = 0;
        int i;
 
@@ -98,7 +98,7 @@ unsigned long flash_init (void)
        DEBUGF("FLASH: Index: %d\n", index);
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = -1;
                flash_info[i].size = 0;
@@ -366,7 +366,7 @@ int wait_for_DQ7(flash_info_t *info, int sect)
        start = get_timer (0);
        last  = start;
        while ((addr[0] & (FLASH_WORD_SIZE)0x00800080) != (FLASH_WORD_SIZE)0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return -1;
                }
@@ -594,7 +594,7 @@ static int write_word (flash_info_t * info, ulong dest, ulong data)
                while ((dest2[i] & (FLASH_WORD_SIZE) 0x00800080) !=
                       (data2[i] & (FLASH_WORD_SIZE) 0x00800080)) {
 
-                       if (get_timer (start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer (start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                return (1);
                        }
                }
index 6cb20e40fc4e5975d645520e01c20eedda253d39..8a04f4f06c2a643e4a123cc7732b81d34f7d0f8e 100644 (file)
 tlbtab:
        tlbtab_start
        tlbentry( 0xf0000000, SZ_256M, 0xf0000000, 1, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CFG_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
-       tlbentry( CFG_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
-       tlbentry( CFG_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
-       tlbentry( CFG_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
-       tlbentry( CFG_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PERIPHERAL_BASE, SZ_256M, 0x40000000, 1, AC_R|AC_W|SA_G|SA_I)
+       tlbentry( CONFIG_SYS_ISRAM_BASE, SZ_256K, 0x80000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I)
+       tlbentry( CONFIG_SYS_SDRAM_BASE, SZ_256M, 0x00000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_SDRAM_BASE+0x10000000, SZ_256M, 0x10000000, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_BASE, SZ_256M, 0x00000000, 2, AC_R|AC_W|SA_G|SA_I )
+       tlbentry( CONFIG_SYS_PCI_MEMBASE, SZ_256M, 0x00000000, 3, AC_R|AC_W|SA_G|SA_I )
        tlbtab_end
index c94a345d90d7e4333c860d31d88e9c4a670d60fc..58bcfaf7bad490f9f6d90d95e9f1968be0983e8c 100644 (file)
@@ -40,7 +40,7 @@ int board_early_init_f(void)
        /* TBS:  Setup the GPIO access for the user LEDs */
        mfsdr(sdr_pfc0, sdrreg);
        mtsdr(sdr_pfc0, (sdrreg & ~0x00000100) | 0x00000E00);
-       out32(CFG_GPIO_BASE + 0x018, (USR_LED0 | USR_LED1 | USR_LED2 | USR_LED3));
+       out32(CONFIG_SYS_GPIO_BASE + 0x018, (USR_LED0 | USR_LED1 | USR_LED2 | USR_LED3));
        LED0_OFF();
        LED1_OFF();
        LED2_OFF();
@@ -129,7 +129,7 @@ phys_size_t initdram (int board_type)
 }
 
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram (void)
 {
        uint *pstart = (uint *) 0x00000000;
@@ -231,7 +231,7 @@ int pci_pre_init(struct pci_controller * hose )
                return (0);
        }
 
-#if defined(CFG_PCI_FORCE_PCI_CONV)
+#if defined(CONFIG_SYS_PCI_FORCE_PCI_CONV)
        /* Setup System Device Register PCIX0_XCR */
        mfsdr(sdr_xcr, strap);
        strap &= 0x0f000000;
@@ -249,7 +249,7 @@ int pci_pre_init(struct pci_controller * hose )
  *     may not be sufficient for a given board.
  *
  ************************************************************************/
-#if defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT)
 void pci_target_init(struct pci_controller * hose )
 {
        /*--------------------------------------------------------------------------+
@@ -264,7 +264,7 @@ void pci_target_init(struct pci_controller * hose )
         * Map all of SDRAM to PCI address 0x0000_0000. Note that the 440 strapping
         * options to not support sizes such as 128/256 MB.
         *--------------------------------------------------------------------------*/
-       out32r( PCIX0_PIM0LAL, CFG_SDRAM_BASE );
+       out32r( PCIX0_PIM0LAL, CONFIG_SYS_SDRAM_BASE );
        out32r( PCIX0_PIM0LAH, 0 );
        out32r( PCIX0_PIM0SA, ~(gd->ram_size - 1) | 1 );
 
@@ -273,12 +273,12 @@ void pci_target_init(struct pci_controller * hose )
        /*--------------------------------------------------------------------------+
         * Program the board's subsystem id/vendor id
         *--------------------------------------------------------------------------*/
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_DEVICEID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_DEVICEID );
 
        out16r( PCIX0_CMD, in16r(PCIX0_CMD) | PCI_COMMAND_MEMORY );
 }
-#endif /* defined(CONFIG_PCI) && defined(CFG_PCI_TARGET_INIT) */
+#endif /* defined(CONFIG_PCI) && defined(CONFIG_SYS_PCI_TARGET_INIT) */
 
 
 /*************************************************************************
@@ -299,7 +299,7 @@ void pci_target_init(struct pci_controller * hose )
 #if defined(CONFIG_PCI)
 int is_pci_host(struct pci_controller *hose)
 {
-       return ((in32(CFG_GPIO_BASE + 0x1C) & 0x00000800) == 0);
+       return ((in32(CONFIG_SYS_GPIO_BASE + 0x1C) & 0x00000800) == 0);
 }
 #endif /* defined(CONFIG_PCI) */
 
@@ -317,7 +317,7 @@ int post_hotkeys_pressed(void)
 void post_word_store (ulong a)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_POST_WORD_ADDR);
+               (volatile ulong *)(CONFIG_SYS_POST_WORD_ADDR);
 
        *save_addr = a;
 }
@@ -325,7 +325,7 @@ void post_word_store (ulong a)
 ulong post_word_load (void)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_POST_WORD_ADDR);
+               (volatile ulong *)(CONFIG_SYS_POST_WORD_ADDR);
 
        return *save_addr;
 }
@@ -342,7 +342,7 @@ void board_get_enetaddr (uchar * enet)
        unsigned char buff[0x100], *cp;
 
        /* Initialize I2C                                       */
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /* Read 256 bytes in EEPROM                             */
        i2c_read (0x50, 0, 1, buff, 0x100);
index f29def268d10d0dd791ecfc77526ff2715b4a573..736905ad7178ff0c3d85e6185ab4c92beae07d84 100644 (file)
@@ -29,7 +29,7 @@
 
 #define SWAP(x)               __swab32(x)
 
-flash_info_t   flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
+flash_info_t   flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */
 
 /* Functions */
 static ulong flash_get_size (vu_long *addr, flash_info_t *info);
@@ -43,7 +43,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((vu_long *) PHYS_FLASH_1, &flash_info[i]);
@@ -61,7 +61,7 @@ unsigned long flash_init (void)
        }
 
        /* Protect monitor and environment sectors */
-       flash_protect ( FLAG_PROTECT_SET,CFG_FLASH_BASE,CFG_FLASH_BASE + monitor_flash_len - 1,&flash_info[0] );
+       flash_protect ( FLAG_PROTECT_SET,CONFIG_SYS_FLASH_BASE,CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,&flash_info[0] );
        flash_protect ( FLAG_PROTECT_SET,CONFIG_ENV_ADDR,CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0] );
 
        return size;
@@ -338,7 +338,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = (vu_long*)(info->start[l_sect]);
        while ((addr[0] & 0x00800080) != 0x00800080) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        return 1;
                }
@@ -462,7 +462,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
        /* data polling for D7 */
        start = get_timer (0);
        while ((*((vu_long *)dest) & 0x00800080) != (data & 0x00800080)) {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        return (1);
                }
        }
index b0b156124cead3f91b39848c46ce2b67df37b458..0d94ab60a66569326a9256880d6c595885c0ae73 100644 (file)
@@ -2,7 +2,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 .globl lowlevel_init
 lowlevel_init:
@@ -14,93 +14,93 @@ lowlevel_init:
 
    /* General purpose set registers */
    ldr      r0,   =GPSR0
-   ldr      r1,   =CFG_GPSR0_VAL
+   ldr      r1,   =CONFIG_SYS_GPSR0_VAL
    str      r1,   [r0]
    ldr      r0,   =GPSR1
-   ldr      r1,   =CFG_GPSR1_VAL
+   ldr      r1,   =CONFIG_SYS_GPSR1_VAL
    str      r1,   [r0]
    ldr      r0,   =GPSR2
-   ldr      r1,   =CFG_GPSR2_VAL
+   ldr      r1,   =CONFIG_SYS_GPSR2_VAL
    str      r1,   [r0]
 
    /* General purpose clear registers */
    ldr      r0,   =GPCR0
-   ldr      r1,   =CFG_GPCR0_VAL
+   ldr      r1,   =CONFIG_SYS_GPCR0_VAL
    str      r1,   [r0]
    ldr      r0,   =GPCR1
-   ldr      r1,   =CFG_GPCR1_VAL
+   ldr      r1,   =CONFIG_SYS_GPCR1_VAL
    str      r1,   [r0]
    ldr      r0,   =GPCR2
-   ldr      r1,   =CFG_GPCR2_VAL
+   ldr      r1,   =CONFIG_SYS_GPCR2_VAL
    str      r1,   [r0]
 
    /* General rising edge registers */
    ldr      r0,   =GRER0
-   ldr      r1,   =CFG_GRER0_VAL
+   ldr      r1,   =CONFIG_SYS_GRER0_VAL
    str      r1,   [r0]
    ldr      r0,   =GRER1
-   ldr      r1,   =CFG_GRER1_VAL
+   ldr      r1,   =CONFIG_SYS_GRER1_VAL
    str      r1,   [r0]
    ldr      r0,   =GRER2
-   ldr      r1,   =CFG_GRER2_VAL
+   ldr      r1,   =CONFIG_SYS_GRER2_VAL
    str      r1,   [r0]
 
    /* General falling edge registers */
    ldr      r0,   =GFER0
-   ldr      r1,   =CFG_GFER0_VAL
+   ldr      r1,   =CONFIG_SYS_GFER0_VAL
    str      r1,   [r0]
    ldr      r0,   =GFER1
-   ldr      r1,   =CFG_GFER1_VAL
+   ldr      r1,   =CONFIG_SYS_GFER1_VAL
    str      r1,   [r0]
    ldr      r0,   =GFER2
-   ldr      r1,   =CFG_GFER2_VAL
+   ldr      r1,   =CONFIG_SYS_GFER2_VAL
    str      r1,   [r0]
 
    /* General edge detect registers */
    ldr      r0,   =GPDR0
-   ldr      r1,   =CFG_GPDR0_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR0_VAL
    str      r1,   [r0]
    ldr      r0,   =GPDR1
-   ldr      r1,   =CFG_GPDR1_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR1_VAL
    str      r1,   [r0]
    ldr      r0,   =GPDR2
-   ldr      r1,   =CFG_GPDR2_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR2_VAL
    str      r1,   [r0]
 
    /* General alternate function registers */
    ldr      r0,   =GAFR0_L             /* [0:15] */
-   ldr      r1,   =CFG_GAFR0_L_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR0_L_VAL
    str      r1,   [r0]
    ldr      r0,   =GAFR0_U             /* [31:16] */
-   ldr      r1,   =CFG_GAFR0_U_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR0_U_VAL
    str      r1,   [r0]
    ldr      r0,   =GAFR1_L             /* [47:32] */
-   ldr      r1,   =CFG_GAFR1_L_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR1_L_VAL
    str      r1,   [r0]
    ldr      r0,   =GAFR1_U             /* [63:48] */
-   ldr      r1,   =CFG_GAFR1_U_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR1_U_VAL
    str      r1,   [r0]
    ldr      r0,   =GAFR2_L             /* [79:64] */
-   ldr      r1,   =CFG_GAFR2_L_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR2_L_VAL
    str      r1,   [r0]
    ldr      r0,   =GAFR2_U             /* [80] */
-   ldr      r1,   =CFG_GAFR2_U_VAL
+   ldr      r1,   =CONFIG_SYS_GAFR2_U_VAL
    str      r1,   [r0]
 
    /* General purpose direction registers */
    ldr      r0,   =GPDR0
-   ldr      r1,   =CFG_GPDR0_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR0_VAL
    str      r1,   [r0]
    ldr      r0,   =GPDR1
-   ldr      r1,   =CFG_GPDR1_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR1_VAL
    str      r1,   [r0]
    ldr      r0,   =GPDR2
-   ldr      r1,   =CFG_GPDR2_VAL
+   ldr      r1,   =CONFIG_SYS_GPDR2_VAL
    str      r1,   [r0]
 
    /* Power manager sleep status */
    ldr      r0,   =PSSR
-   ldr      r1,   =CFG_PSSR_VAL
+   ldr      r1,   =CONFIG_SYS_PSSR_VAL
    str      r1,   [r0]
 
 /* ---- MEMORY INITIALISATION ---- */
@@ -121,17 +121,17 @@ mem_init:
 
 /* ---- FLASH INITIALISATION ---- */
 /* Write MSC0 and read back to ensure data change is accepted by cpu */
-   ldr     r2,   =CFG_MSC0_VAL
+   ldr     r2,   =CONFIG_SYS_MSC0_VAL
    str     r2,   [r1, #MSC0_OFFSET]
    ldr     r2,   [r1, #MSC0_OFFSET]
 
 /* ---- SDRAM INITIALISATION ---- */
 /* get the MDREFR settings */
-   ldr     r2,  =CFG_MDREFR_VAL
+   ldr     r2,  =CONFIG_SYS_MDREFR_VAL
    str     r2,  [r1, #MDREFR_OFFSET]
 
 /* fetch platform value of MDCNFG */
-   ldr     r2,  =CFG_MDCNFG_VAL
+   ldr     r2,  =CONFIG_SYS_MDCNFG_VAL
 
 /* disable all sdram banks */
    bic     r2,  r2,  #(MDCNFG_DE0 | MDCNFG_DE1)
@@ -153,7 +153,7 @@ mem_init:
 /* Access memory *not yet enabled* for CBR refresh cycles (8) */
 /* CBR is generated for all banks */
 
-   ldr     r2, =CFG_DRAM_BASE
+   ldr     r2, =CONFIG_SYS_DRAM_BASE
    str     r2, [r2]
    str     r2, [r2]
    str     r2, [r2]
@@ -172,7 +172,7 @@ mem_init:
    str     r2,  [r1, #MDCNFG_OFFSET]
 
 /* write MDMRS to trigger an MSR command to all enabled SDRAM banks */
-   ldr     r2,  =CFG_MDMRS_VAL
+   ldr     r2,  =CONFIG_SYS_MDMRS_VAL
    str     r2,  [r1, #MDMRS_OFFSET]
 
 /* ---- INTERRUPT INITIALISATION ---- */
@@ -183,7 +183,7 @@ mem_init:
    str     r1,  [r2]
 
 /* Set interrupt mask register */
-   ldr     r1,  =CFG_ICMR_VAL
+   ldr     r1,  =CONFIG_SYS_ICMR_VAL
    ldr     r2,  =ICMR
    str     r1,  [r2]
 
@@ -196,7 +196,7 @@ mem_init:
    str     r2,  [r1]
 
 /* set core clocks */
-   ldr     r2,  =CFG_CCCR_VAL
+   ldr     r2,  =CONFIG_SYS_CCCR_VAL
    ldr     r1,  =CCCR
    str     r2,  [r1]
 
@@ -215,7 +215,7 @@ mem_init:
 
 /* Turn on needed clocks */
    ldr     r1,  =CKEN
-   ldr     r2,  =CFG_CKEN_VAL
+   ldr     r2,  =CONFIG_SYS_CKEN_VAL
    str     r2,  [r1]
 
    mov   pc, r10
index c76519f094fb28724fb056c7fc464e44cd469dc5..2f2a127f734d944a1e9fedfd7533c76f3bfe51c2 100644 (file)
@@ -67,12 +67,12 @@ u8 buf_zeus_pe[] = {
 static int update_boot_eeprom(void)
 {
        u32 len = 0x20;
-       u8 chip = CFG_I2C_EEPROM_ADDR;
+       u8 chip = CONFIG_SYS_I2C_EEPROM_ADDR;
        u8 *pbuf;
        u8 base;
        int i;
 
-       if (in_be32((void *)GPIO0_IR) & GPIO_VAL(CFG_GPIO_ZEUS_PE)) {
+       if (in_be32((void *)GPIO0_IR) & GPIO_VAL(CONFIG_SYS_GPIO_ZEUS_PE)) {
                pbuf = buf_zeus_pe;
                base = 0x40;
        } else {
index 6fa4eef8b3c1d3fa79cc064851e84204a9d6e5ce..974bdf29c15a067af255db1299d5ac4e4983701a 100644 (file)
@@ -38,7 +38,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define REBOOT_NOP     0x00000000
 #define REBOOT_DO_POST 0x00000001
 
-extern flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips   */
+extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips    */
 extern env_t *env_ptr;
 extern uchar default_environment[];
 
@@ -73,8 +73,8 @@ int misc_init_r(void)
        u32 post_magic;
        u32 post_val;
 
-       post_magic = in_be32((void *)CFG_POST_MAGIC);
-       post_val = in_be32((void *)CFG_POST_VAL);
+       post_magic = in_be32((void *)CONFIG_SYS_POST_MAGIC);
+       post_val = in_be32((void *)CONFIG_SYS_POST_VAL);
        if ((post_magic == REBOOT_MAGIC) && (post_val == REBOOT_DO_POST)) {
                /*
                 * Set special bootline bootparameter to pass this POST boot
@@ -87,7 +87,7 @@ int misc_init_r(void)
                 * via the sw-reset button. So disable further tests
                 * upon next bootup here.
                 */
-               out_be32((void *)CFG_POST_VAL, REBOOT_NOP);
+               out_be32((void *)CONFIG_SYS_POST_VAL, REBOOT_NOP);
        } else {
                /*
                 * Only run POST when initiated via the sw-reset button mechanism
@@ -144,7 +144,7 @@ int misc_init_r(void)
 
        /* Monitor protection ON by default */
        (void)flash_protect(FLAG_PROTECT_SET,
-                           -CFG_MONITOR_LEN,
+                           -CONFIG_SYS_MONITOR_LEN,
                            0xffffffff,
                            &flash_info[0]);
 
@@ -166,7 +166,7 @@ int checkboard(void)
 
        puts("Board: Zeus-");
 
-       if (in_be32((void *)GPIO0_IR) & GPIO_VAL(CFG_GPIO_ZEUS_PE))
+       if (in_be32((void *)GPIO0_IR) & GPIO_VAL(CONFIG_SYS_GPIO_ZEUS_PE))
                puts("PE");
        else
                puts("CE");
@@ -180,12 +180,12 @@ int checkboard(void)
        putc('\n');
 
        /* both LED's off */
-       gpio_write_bit(CFG_GPIO_LED_RED, 0);
-       gpio_write_bit(CFG_GPIO_LED_GREEN, 0);
+       gpio_write_bit(CONFIG_SYS_GPIO_LED_RED, 0);
+       gpio_write_bit(CONFIG_SYS_GPIO_LED_GREEN, 0);
        udelay(10000);
        /* and on again */
-       gpio_write_bit(CFG_GPIO_LED_RED, 1);
-       gpio_write_bit(CFG_GPIO_LED_GREEN, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_LED_RED, 1);
+       gpio_write_bit(CONFIG_SYS_GPIO_LED_GREEN, 1);
 
        return (0);
 }
@@ -239,7 +239,7 @@ static int restore_default(void)
         */
        memset(env_ptr, 0, sizeof(env_t));
        memcpy(env_ptr->data, default_environment, ENV_SIZE);
-#ifdef CFG_REDUNDAND_ENVIRONMENT
+#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
        env_ptr->flags = 0xFF;
 #endif
        env_crc_update();
@@ -333,7 +333,7 @@ U_BOOT_CMD(
 
 static inline int sw_reset_pressed(void)
 {
-       return !(in_be32((void *)GPIO0_IR) & GPIO_VAL(CFG_GPIO_SW_RESET));
+       return !(in_be32((void *)GPIO0_IR) & GPIO_VAL(CONFIG_SYS_GPIO_SW_RESET));
 }
 
 int do_chkreset(cmd_tbl_t* cmdtp, int flag, int argc, char* argv[])
@@ -356,16 +356,16 @@ int do_chkreset(cmd_tbl_t* cmdtp, int flag, int argc, char* argv[])
                if (!sw_reset_pressed())
                        break;
 
-               if ((delta > CFG_TIME_POST) && !post) {
+               if ((delta > CONFIG_SYS_TIME_POST) && !post) {
                        printf("\nWhen released now, POST tests will be started.");
-                       gpio_write_bit(CFG_GPIO_LED_GREEN, 0);
+                       gpio_write_bit(CONFIG_SYS_GPIO_LED_GREEN, 0);
                        post = 1;
                }
 
-               if ((delta > CFG_TIME_FACTORY_RESET) && !factory_reset) {
+               if ((delta > CONFIG_SYS_TIME_FACTORY_RESET) && !factory_reset) {
                        printf("\nWhen released now, factory default values"
                               " will be restored.");
-                       gpio_write_bit(CFG_GPIO_LED_RED, 0);
+                       gpio_write_bit(CONFIG_SYS_GPIO_LED_RED, 0);
                        factory_reset = 1;
                }
 
@@ -377,7 +377,7 @@ int do_chkreset(cmd_tbl_t* cmdtp, int flag, int argc, char* argv[])
 
        printf("\nSW-Reset Button released after %d milli-seconds!\n", delta);
 
-       if (delta > CFG_TIME_FACTORY_RESET) {
+       if (delta > CONFIG_SYS_TIME_FACTORY_RESET) {
                printf("Starting factory reset value restoration...\n");
 
                /*
@@ -393,14 +393,14 @@ int do_chkreset(cmd_tbl_t* cmdtp, int flag, int argc, char* argv[])
                return 0;
        }
 
-       if (delta > CFG_TIME_POST) {
+       if (delta > CONFIG_SYS_TIME_POST) {
                printf("Starting POST configuration...\n");
 
                /*
                 * Enable POST upon next bootup
                 */
-               out_be32((void *)CFG_POST_MAGIC, REBOOT_MAGIC);
-               out_be32((void *)CFG_POST_VAL, REBOOT_DO_POST);
+               out_be32((void *)CONFIG_SYS_POST_MAGIC, REBOOT_MAGIC);
+               out_be32((void *)CONFIG_SYS_POST_VAL, REBOOT_DO_POST);
                post_bootmode_init();
 
                /*
@@ -432,8 +432,8 @@ int post_hotkeys_pressed(void)
        u32 post_magic;
        u32 post_val;
 
-       post_magic = in_be32((void *)CFG_POST_MAGIC);
-       post_val = in_be32((void *)CFG_POST_VAL);
+       post_magic = in_be32((void *)CONFIG_SYS_POST_MAGIC);
+       post_val = in_be32((void *)CONFIG_SYS_POST_VAL);
 
        if ((post_magic == REBOOT_MAGIC) && (post_val == REBOOT_DO_POST))
                return 1;
index 103ef714fd19ba105ed77a303bdccd02c1dec80b..027d56662dd3701c215e0922b0281ae43696431b 100644 (file)
@@ -183,7 +183,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
     }
 };
 
-#ifdef CFG_NVRAM_ACCESS_ROUTINE
+#ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE
 void *nvram_read(void *dest, long src, size_t count)
 {
        return memcpy(dest, (const void *)src, count);
@@ -191,8 +191,8 @@ void *nvram_read(void *dest, long src, size_t count)
 
 void nvram_write(long dest, const void *src, size_t count)
 {
-       vu_char     *p1 = (vu_char *)(CFG_EEPROM + 0x1555);
-       vu_char     *p2 = (vu_char *)(CFG_EEPROM + 0x0AAA);
+       vu_char     *p1 = (vu_char *)(CONFIG_SYS_EEPROM + 0x1555);
+       vu_char     *p2 = (vu_char *)(CONFIG_SYS_EEPROM + 0x0AAA);
        vu_char     *d = (vu_char *)dest;
        const uchar *s = (const uchar *)src;
 
@@ -218,16 +218,16 @@ void nvram_write(long dest, const void *src, size_t count)
        *p1 = 0xA0;
        udelay(10000);
 }
-#endif /* CFG_NVRAM_ACCESS_ROUTINE */
+#endif /* CONFIG_SYS_NVRAM_ACCESS_ROUTINE */
 
 phys_size_t initdram(int board_type)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        vu_char *ramaddr;
        uchar c = 0xFF;
-       long int msize = CFG_SDRAM_SIZE;
+       long int msize = CONFIG_SYS_SDRAM_SIZE;
        int i;
 
        if (bcsr[4] & BCSR_PCI_MODE) { /* PCI mode selected by JP9 */
@@ -237,38 +237,38 @@ phys_size_t initdram(int board_type)
                        | SIUMCR_LBPC01;
        }
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        immap->im_siu_conf.sc_ppc_acr  = 0x03;
        immap->im_siu_conf.sc_ppc_alrh = 0x30126745;
        immap->im_siu_conf.sc_tescr1   = 0x00004000;
 
-       memctl->memc_mptpr = CFG_MPTPR;
+       memctl->memc_mptpr = CONFIG_SYS_MPTPR;
 
-#ifdef CFG_LSDRAM_BASE
+#ifdef CONFIG_SYS_LSDRAM_BASE
        /*
          Initialise local bus SDRAM only if the pins
          are configured as local bus pins and not as PCI.
        */
        if ((immap->im_siu_conf.sc_siumcr & SIUMCR_LBPC11) == SIUMCR_LBPC00) {
-               memctl->memc_lsrt  = CFG_LSRT;
-               memctl->memc_or4   = CFG_LSDRAM_OR;
-               memctl->memc_br4   = CFG_LSDRAM_BR;
-               ramaddr = (vu_char *)CFG_LSDRAM_BASE;
-               memctl->memc_lsdmr = CFG_LSDMR | PSDMR_OP_PREA;
+               memctl->memc_lsrt  = CONFIG_SYS_LSRT;
+               memctl->memc_or4   = CONFIG_SYS_LSDRAM_OR;
+               memctl->memc_br4   = CONFIG_SYS_LSDRAM_BR;
+               ramaddr = (vu_char *)CONFIG_SYS_LSDRAM_BASE;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | PSDMR_OP_PREA;
                *ramaddr = c;
-               memctl->memc_lsdmr = CFG_LSDMR | PSDMR_OP_CBRR;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | PSDMR_OP_CBRR;
                for (i = 0; i < 8; i++)
                        *ramaddr = c;
-               memctl->memc_lsdmr = CFG_LSDMR | PSDMR_OP_MRW;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | PSDMR_OP_MRW;
                *ramaddr = c;
-               memctl->memc_lsdmr = CFG_LSDMR | PSDMR_RFEN;
+               memctl->memc_lsdmr = CONFIG_SYS_LSDMR | PSDMR_RFEN;
        }
-#endif /* CFG_LSDRAM_BASE */
+#endif /* CONFIG_SYS_LSDRAM_BASE */
 
        /* Initialise 60x bus SDRAM */
-       memctl->memc_psrt = CFG_PSRT;
-       memctl->memc_or2  = CFG_PSDRAM_OR;
-       memctl->memc_br2  = CFG_PSDRAM_BR;
+       memctl->memc_psrt = CONFIG_SYS_PSRT;
+       memctl->memc_or2  = CONFIG_SYS_PSDRAM_OR;
+       memctl->memc_br2  = CONFIG_SYS_PSDRAM_BR;
        /*
         * The mode data for Mode Register Write command must appear on
         * the address lines during a mode-set cycle. It is driven by
@@ -278,18 +278,18 @@ phys_size_t initdram(int board_type)
         * the address lines. BL=0 because for 64-bit port size burst
         * length must be 4.
         */
-       ramaddr = (vu_char *)(CFG_SDRAM_BASE |
-                             ((CFG_PSDMR & PSDMR_CL_MSK) << 7) | 0x10);
-       memctl->memc_psdmr = CFG_PSDMR | PSDMR_OP_PREA; /* Precharge all banks */
+       ramaddr = (vu_char *)(CONFIG_SYS_SDRAM_BASE |
+                             ((CONFIG_SYS_PSDMR & PSDMR_CL_MSK) << 7) | 0x10);
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | PSDMR_OP_PREA; /* Precharge all banks */
        *ramaddr = c;
-       memctl->memc_psdmr = CFG_PSDMR | PSDMR_OP_CBRR; /* CBR refresh */
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | PSDMR_OP_CBRR; /* CBR refresh */
        for (i = 0; i < 8; i++)
                *ramaddr = c;
-       memctl->memc_psdmr = CFG_PSDMR | PSDMR_OP_MRW;  /* Mode Register write */
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | PSDMR_OP_MRW;  /* Mode Register write */
        *ramaddr = c;
-       memctl->memc_psdmr = CFG_PSDMR | PSDMR_RFEN;    /* Refresh enable */
+       memctl->memc_psdmr = CONFIG_SYS_PSDMR | PSDMR_RFEN;    /* Refresh enable */
        *ramaddr = c;
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /* Return total 60x bus SDRAM size */
        return msize * 1024 * 1024;
@@ -297,7 +297,7 @@ phys_size_t initdram(int board_type)
 
 int checkboard(void)
 {
-       vu_char *bcsr = (vu_char *)CFG_BCSR;
+       vu_char *bcsr = (vu_char *)CONFIG_SYS_BCSR;
 
        printf("Board: Zephyr ZPC.1900 Rev. %c\n", bcsr[2] + 0x40);
        return 0;
index 80b520b97629717dc5324f1f212a6b20720cb4a6..5ba84c68ece9abf19b10d8ee79f1a258d899c817 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/byteorder/swab.h>
 
 
-flash_info_t flash_info[CFG_MAX_FLASH_BANKS];  /* info for FLASH chips    */
+flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];   /* info for FLASH chips    */
 
 /* Board support for 1 or 2 flash devices */
 #define FLASH_PORT_WIDTH32
@@ -66,7 +66,7 @@ unsigned long flash_init (void)
        int i;
        ulong size = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                switch (i) {
                case 0:
                        flash_get_size ((FPW *) PHYS_FLASH_1, &flash_info[i]);
@@ -86,8 +86,8 @@ unsigned long flash_init (void)
        /* Protect monitor and environment sectors
         */
        flash_protect ( FLAG_PROTECT_SET,
-                       CFG_FLASH_BASE,
-                       CFG_FLASH_BASE + monitor_flash_len - 1,
+                       CONFIG_SYS_FLASH_BASE,
+                       CONFIG_SYS_FLASH_BASE + monitor_flash_len - 1,
                        &flash_info[0] );
 
        flash_protect ( FLAG_PROTECT_SET,
@@ -206,10 +206,10 @@ static ulong flash_get_size (FPW *addr, flash_info_t *info)
                break;
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        addr[0] = (FPW) 0x00FF00FF;             /* restore read mode */
@@ -279,7 +279,7 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
                        *addr = (FPW) 0x00D000D0;       /* erase confirm */
 
                        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-                               if (get_timer_masked () > CFG_FLASH_ERASE_TOUT) {
+                               if (get_timer_masked () > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout\n");
                                        *addr = (FPW) 0x00B000B0;       /* suspend erase     */
                                        *addr = (FPW) 0x00FF00FF;       /* reset to read mode */
@@ -413,7 +413,7 @@ static int write_data (flash_info_t *info, ulong dest, FPW data)
 
        /* wait while polling the status register */
        while (((status = *addr) & (FPW) 0x00800080) != (FPW) 0x00800080) {
-               if (get_timer_masked () > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer_masked () > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        *addr = (FPW) 0x00FF00FF;       /* restore read mode */
                        return (1);
                }
index da0176564e33c0c73f2a566ace6b31ac215402d0..ff17c7e7b3ae11f549873bf55ae9394fab84e588 100644 (file)
@@ -29,7 +29,7 @@
 #include <version.h>
 #include <asm/arch/pxa-regs.h>
 
-DRAM_SIZE:  .long   CFG_DRAM_SIZE
+DRAM_SIZE:  .long   CONFIG_SYS_DRAM_SIZE
 
 /* wait for coprocessor write complete */
 .macro CPWAIT reg
@@ -235,13 +235,13 @@ mem_init:
        orr             r1, r1, #0x40000000     @ enable SDRAM for Normal Access
        str             r1, [r0]
 
-#ifndef CFG_SKIP_DRAM_SCRUB
+#ifndef CONFIG_SYS_SKIP_DRAM_SCRUB
        /* scrub/init SDRAM if enabled/present */
-/*     ldr     r11, =0xa0000000 /\* base address of SDRAM (CFG_DRAM_BASE) *\/ */
-/*     ldr     r12, =0x04000000 /\* size of memory to scrub (CFG_DRAM_SIZE) *\/ */
+/*     ldr     r11, =0xa0000000 /\* base address of SDRAM (CONFIG_SYS_DRAM_BASE) *\/ */
+/*     ldr     r12, =0x04000000 /\* size of memory to scrub (CONFIG_SYS_DRAM_SIZE) *\/ */
 /*     mov     r8,r12           /\* save DRAM size (mk: why???) *\/ */
-       ldr     r8, =0xa0000000  /* base address of SDRAM (CFG_DRAM_BASE) */
-       ldr     r9, =0x04000000  /* size of memory to scrub (CFG_DRAM_SIZE) */
+       ldr     r8, =0xa0000000  /* base address of SDRAM (CONFIG_SYS_DRAM_BASE) */
+       ldr     r9, =0x04000000  /* size of memory to scrub (CONFIG_SYS_DRAM_SIZE) */
        mov     r0, #0           /* scrub with 0x0000:0000 */
        mov     r1, #0
        mov     r2, #0
@@ -255,7 +255,7 @@ mem_init:
        stmia   r8!, {r0-r7}
        beq     15f
        b       10b
-#endif /* CFG_SKIP_DRAM_SCRUB */
+#endif /* CONFIG_SYS_SKIP_DRAM_SCRUB */
 
 15:
        /* Mask all interrupts */
index 7f2293523029f508099b78f3850dcaff5cc83873..895fb2bacdf8e5e20d8ca4712d54c08f5b5181a9 100644 (file)
 #include <nand.h>
 #include <asm/arch/pxa-regs.h>
 
-#ifdef CFG_DFC_DEBUG1
+#ifdef CONFIG_SYS_DFC_DEBUG1
 # define DFC_DEBUG1(fmt, args...) printf(fmt, ##args)
 #else
 # define DFC_DEBUG1(fmt, args...)
 #endif
 
-#ifdef CFG_DFC_DEBUG2
+#ifdef CONFIG_SYS_DFC_DEBUG2
 # define DFC_DEBUG2(fmt, args...) printf(fmt, ##args)
 #else
 # define DFC_DEBUG2(fmt, args...)
 #endif
 
-#ifdef CFG_DFC_DEBUG3
+#ifdef CONFIG_SYS_DFC_DEBUG3
 # define DFC_DEBUG3(fmt, args...) printf(fmt, ##args)
 #else
 # define DFC_DEBUG3(fmt, args...)
@@ -211,7 +211,7 @@ static void wait_us(unsigned long us)
 static void dfc_clear_nddb(void)
 {
        NDCR &= ~NDCR_ND_RUN;
-       wait_us(CFG_NAND_OTHER_TO);
+       wait_us(CONFIG_SYS_NAND_OTHER_TO);
 }
 
 /* wait_event with timeout */
@@ -222,9 +222,9 @@ static unsigned long dfc_wait_event(unsigned long event)
        if(!event)
                return 0xff000000;
        else if(event & (NDSR_CS0_CMDD | NDSR_CS0_BBD))
-               timeout = CFG_NAND_PROG_ERASE_TO * OSCR_CLK_FREQ;
+               timeout = CONFIG_SYS_NAND_PROG_ERASE_TO * OSCR_CLK_FREQ;
        else
-               timeout = CFG_NAND_OTHER_TO * OSCR_CLK_FREQ;
+               timeout = CONFIG_SYS_NAND_OTHER_TO * OSCR_CLK_FREQ;
 
        while(1) {
                ndsr = NDSR;
@@ -247,7 +247,7 @@ static void dfc_new_cmd(void)
        int retry = 0;
        unsigned long status;
 
-       while(retry++ <= CFG_NAND_SENDCMD_RETRY) {
+       while(retry++ <= CONFIG_SYS_NAND_SENDCMD_RETRY) {
                /* Clear NDSR */
                NDSR = 0xFFF;
 
@@ -438,8 +438,8 @@ int board_nand_init(struct nand_chip *nand)
        /* turn on the NAND Controller Clock (104 MHz @ D0) */
        CKENA |= (CKENA_4_NAND | CKENA_9_SMC);
 
-#undef CFG_TIMING_TIGHT
-#ifndef CFG_TIMING_TIGHT
+#undef CONFIG_SYS_TIMING_TIGHT
+#ifndef CONFIG_SYS_TIMING_TIGHT
        tCH = MIN(((unsigned long) (NAND_TIMING_tCH * DFC_CLK_PER_US) + 1),
                  DFC_MAX_tCH);
        tCS = MIN(((unsigned long) (NAND_TIMING_tCS * DFC_CLK_PER_US) + 1),
@@ -478,7 +478,7 @@ int board_nand_init(struct nand_chip *nand)
                   DFC_MAX_tWHR);
        tAR = MIN(((unsigned long) (NAND_TIMING_tAR * DFC_CLK_PER_US) - 2),
                  DFC_MAX_tAR);
-#endif /* CFG_TIMING_TIGHT */
+#endif /* CONFIG_SYS_TIMING_TIGHT */
 
 
        DFC_DEBUG2("tCH=%u, tCS=%u, tWH=%u, tWP=%u, tRH=%u, tRP=%u, tR=%u, tWHR=%u, tAR=%u.\n", tCH, tCS, tWH, tWP, tRH, tRP, tR, tWHR, tAR);
index 53677b861a8d762a114ffbbde3c7be49e823467a..3f7967782bb3ff0b5e7fac59d40793b2d68d4cfe 100644 (file)
@@ -44,8 +44,8 @@
 #define CONFIG_FPGA_DELAY()
 #endif
 
-#ifndef CFG_FPGA_WAIT
-#define CFG_FPGA_WAIT CFG_HZ/10                /* 100 ms */
+#ifndef CONFIG_SYS_FPGA_WAIT
+#define CONFIG_SYS_FPGA_WAIT CONFIG_SYS_HZ/10          /* 100 ms */
 #endif
 
 static int ACEX1K_ps_load( Altera_desc *desc, void *buf, size_t bsize );
@@ -154,7 +154,7 @@ static int ACEX1K_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                                "done:\t0x%p\n\n",
                                __FUNCTION__, &fn, fn, fn->config, fn->status,
                                fn->clk, fn->data, fn->done);
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                printf ("Loading FPGA Device %d...", cookie);
 #endif
 
@@ -185,7 +185,7 @@ static int ACEX1K_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                ts = get_timer (0);             /* get current time */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for STATUS to go high.\n");
                                (*fn->abort) (cookie);
                                return FPGA_FAIL;
@@ -199,7 +199,7 @@ static int ACEX1K_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                /* Load the data */
                while (bytecount < bsize) {
                        unsigned char val=0;
-#ifdef CFG_FPGA_CHECK_CTRLC
+#ifdef CONFIG_SYS_FPGA_CHECK_CTRLC
                        if (ctrlc ()) {
                                (*fn->abort) (cookie);
                                return FPGA_FAIL;
@@ -230,7 +230,7 @@ static int ACEX1K_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                                i --;
                        } while (i > 0);
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');             /* let them know we are alive */
 #endif
@@ -238,7 +238,7 @@ static int ACEX1K_ps_load (Altera_desc * desc, void *buf, size_t bsize)
 
                CONFIG_FPGA_DELAY ();
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc (' ');                     /* terminate the dotted line */
 #endif
 
@@ -265,7 +265,7 @@ static int ACEX1K_ps_load (Altera_desc * desc, void *buf, size_t bsize)
 
        ret_val = FPGA_SUCCESS;
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                if (ret_val == FPGA_SUCCESS) {
                        puts ("Done.\n");
                }
index 0439da2cd3befd4481cbfcf5001243335f74bf3e..4517ac83c76980bbb380bd8bd02de19d941e43f0 100644 (file)
@@ -43,7 +43,7 @@
 #if defined(CONFIG_8xx)
 #include <mpc8xx.h>
 #endif
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #include <hush.h>
 #endif
 
@@ -164,7 +164,7 @@ autoscript (ulong addr, const char *fit_uname)
        memmove (cmd, (char *)data, len);
        *(cmd + len) = 0;
 
-#ifdef CFG_HUSH_PARSER /*?? */
+#ifdef CONFIG_SYS_HUSH_PARSER /*?? */
        rcode = parse_string_outer (cmd, FLAG_PARSE_SEMICOLON);
 #else
        {
@@ -211,7 +211,7 @@ do_autoscript (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        /* Find script image */
        if (argc < 2) {
-               addr = CFG_LOAD_ADDR;
+               addr = CONFIG_SYS_LOAD_ADDR;
                debug ("*  autoscr: default load address = 0x%08lx\n", addr);
 #if defined(CONFIG_FIT)
        } else if (fit_parse_subimage (argv[1], load_addr, &addr, &fit_uname)) {
index 5018930107ed2d0f51fe346bd5259aa806f7f171..667524188ccd5e564139861f11783194078f459a 100644 (file)
@@ -178,7 +178,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        print_num ("flash size",        (ulong)bd->bi_flashsize);
        print_num ("flash offset",      (ulong)bd->bi_flashoffset);
 
-#if defined(CFG_SRAM_BASE)
+#if defined(CONFIG_SYS_SRAM_BASE)
        print_num ("sram start",        (ulong)bd->bi_sramstart);
        print_num ("sram size",         (ulong)bd->bi_sramsize);
 #endif
@@ -207,7 +207,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        print_num ("flash start    ",   (ulong)bd->bi_flashstart);
        print_num ("flash size     ",   (ulong)bd->bi_flashsize);
        print_num ("flash offset   ",   (ulong)bd->bi_flashoffset);
-#if defined(CFG_SRAM_BASE)
+#if defined(CONFIG_SYS_SRAM_BASE)
        print_num ("sram start     ",   (ulong)bd->bi_sramstart);
        print_num ("sram size      ",   (ulong)bd->bi_sramsize);
 #endif
@@ -237,18 +237,18 @@ int do_bdinfo(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        print_num("memstart               ", bd->bi_memstart);
        print_lnum("memsize                ", bd->bi_memsize);
        print_num("flashstart             ", bd->bi_flashstart);
-       print_num("CFG_MONITOR_BASE       ", CFG_MONITOR_BASE);
+       print_num("CONFIG_SYS_MONITOR_BASE       ", CONFIG_SYS_MONITOR_BASE);
        print_num("CONFIG_ENV_ADDR           ", CONFIG_ENV_ADDR);
-       printf("CFG_RELOC_MONITOR_BASE = 0x%lx (%d)\n", CFG_RELOC_MONITOR_BASE,
-              CFG_MONITOR_LEN);
-       printf("CFG_MALLOC_BASE        = 0x%lx (%d)\n", CFG_MALLOC_BASE,
-              CFG_MALLOC_LEN);
-       printf("CFG_INIT_SP_OFFSET     = 0x%lx (%d)\n", CFG_INIT_SP_OFFSET,
-              CFG_STACK_SIZE);
-       printf("CFG_PROM_OFFSET        = 0x%lx (%d)\n", CFG_PROM_OFFSET,
-              CFG_PROM_SIZE);
-       printf("CFG_GBL_DATA_OFFSET    = 0x%lx (%d)\n", CFG_GBL_DATA_OFFSET,
-              CFG_GBL_DATA_SIZE);
+       printf("CONFIG_SYS_RELOC_MONITOR_BASE = 0x%lx (%d)\n", CONFIG_SYS_RELOC_MONITOR_BASE,
+              CONFIG_SYS_MONITOR_LEN);
+       printf("CONFIG_SYS_MALLOC_BASE        = 0x%lx (%d)\n", CONFIG_SYS_MALLOC_BASE,
+              CONFIG_SYS_MALLOC_LEN);
+       printf("CONFIG_SYS_INIT_SP_OFFSET     = 0x%lx (%d)\n", CONFIG_SYS_INIT_SP_OFFSET,
+              CONFIG_SYS_STACK_SIZE);
+       printf("CONFIG_SYS_PROM_OFFSET        = 0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET,
+              CONFIG_SYS_PROM_SIZE);
+       printf("CONFIG_SYS_GBL_DATA_OFFSET    = 0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET,
+              CONFIG_SYS_GBL_DATA_SIZE);
 
 #if defined(CONFIG_CMD_NET)
        puts("ethaddr                =");
@@ -276,11 +276,11 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        print_num ("flashstart",        (ulong)bd->bi_flashstart);
        print_num ("flashsize",         (ulong)bd->bi_flashsize);
        print_num ("flashoffset",       (ulong)bd->bi_flashoffset);
-#if defined(CFG_INIT_RAM_ADDR)
+#if defined(CONFIG_SYS_INIT_RAM_ADDR)
        print_num ("sramstart",         (ulong)bd->bi_sramstart);
        print_num ("sramsize",          (ulong)bd->bi_sramsize);
 #endif
-#if defined(CFG_MBAR)
+#if defined(CONFIG_SYS_MBAR)
        print_num ("mbar",              bd->bi_mbar_base);
 #endif
        print_str ("busfreq",           strmhz(buf, bd->bi_busfreq));
index 94f7e0847b4b63b07bc5b224d2355dd3d228bee3..3e597f98207757d5d81424cd5e1b16511c53654b 100644 (file)
@@ -218,7 +218,7 @@ void bedbug_main_loop (unsigned long addr, struct pt_regs *regs)
        int flag;               /* Command flags          */
        int rc = 0;             /* Result from run_command */
        char prompt_str[20];    /* Prompt string          */
-       static char lastcommand[CFG_CBSIZE] = { 0 };    /* previous command */
+       static char lastcommand[CONFIG_SYS_CBSIZE] = { 0 };     /* previous command */
        /* -------------------------------------------------- */
 
        if (bug_ctx.clear)
index 197e5e871d2621a070575c3932aa3a88632c86fb..bc08b2655a9a4b725740c335a1b8377c91f29216 100644 (file)
@@ -55,19 +55,19 @@ static bmp_image_t *gunzip_bmp(unsigned long addr, unsigned long *lenp)
        /*
         * Decompress bmp image
         */
-       len = CFG_VIDEO_LOGO_MAX_SIZE;
-       dst = malloc(CFG_VIDEO_LOGO_MAX_SIZE);
+       len = CONFIG_SYS_VIDEO_LOGO_MAX_SIZE;
+       dst = malloc(CONFIG_SYS_VIDEO_LOGO_MAX_SIZE);
        if (dst == NULL) {
                puts("Error: malloc in gunzip failed!\n");
                return NULL;
        }
-       if (gunzip(dst, CFG_VIDEO_LOGO_MAX_SIZE, (uchar *)addr, &len) != 0) {
+       if (gunzip(dst, CONFIG_SYS_VIDEO_LOGO_MAX_SIZE, (uchar *)addr, &len) != 0) {
                free(dst);
                return NULL;
        }
-       if (len == CFG_VIDEO_LOGO_MAX_SIZE)
+       if (len == CONFIG_SYS_VIDEO_LOGO_MAX_SIZE)
                puts("Image could be truncated"
-                               " (increase CFG_VIDEO_LOGO_MAX_SIZE)!\n");
+                               " (increase CONFIG_SYS_VIDEO_LOGO_MAX_SIZE)!\n");
 
        bmp = dst;
 
index d83f5af534f3e91ca9932ea063bce7cc047fbf33..6024ffeb42be1fa933ea1eb2a3be1fa775f02dcc 100644 (file)
@@ -63,7 +63,7 @@ int do_go (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 /* -------------------------------------------------------------------- */
 
 U_BOOT_CMD(
-       go, CFG_MAXARGS, 1,     do_go,
+       go, CONFIG_SYS_MAXARGS, 1,      do_go,
        "go      - start application at address 'addr'\n",
        "addr [arg ...]\n    - start application at address 'addr'\n"
        "      passing 'arg' as arguments\n"
index 897e9f6f4040e509233a0cc6dacc2f9c038b031c..2a9c59f2a266c6281c88081d23db4cc62a75c703 100644 (file)
@@ -40,7 +40,7 @@
 #include <usb.h>
 #endif
 
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #include <hush.h>
 #endif
 
@@ -60,8 +60,8 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 extern int gunzip (void *dst, int dstlen, unsigned char *src, unsigned long *lenp);
-#ifndef CFG_BOOTM_LEN
-#define CFG_BOOTM_LEN  0x800000        /* use 8MByte as default max gunzip size */
+#ifndef CONFIG_SYS_BOOTM_LEN
+#define CONFIG_SYS_BOOTM_LEN   0x800000        /* use 8MByte as default max gunzip size */
 #endif
 
 #ifdef CONFIG_BZIP2
@@ -119,7 +119,7 @@ int do_bootelf (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
 static boot_os_fn do_bootm_integrity;
 #endif
 
-ulong load_addr = CFG_LOAD_ADDR;       /* Default Load Address */
+ulong load_addr = CONFIG_SYS_LOAD_ADDR;        /* Default Load Address */
 static bootm_headers_t images;         /* pointers to os/initrd/fdt images */
 
 void __board_lmb_reserve(struct lmb *lmb)
@@ -289,7 +289,7 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
        ulong blob_end = os.end;
        ulong image_start = os.image_start;
        ulong image_len = os.image_len;
-       uint unc_len = CFG_BOOTM_LEN;
+       uint unc_len = CONFIG_SYS_BOOTM_LEN;
 
        const char *type_name = genimg_get_type_name (os.type);
 
@@ -329,7 +329,7 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
                 */
                int i = BZ2_bzBuffToBuffDecompress ((char*)load,
                                        &unc_len, (char *)image_start, image_len,
-                                       CFG_MALLOC_LEN < (4096 * 1024), 0);
+                                       CONFIG_SYS_MALLOC_LEN < (4096 * 1024), 0);
                if (i != BZ_OK) {
                        printf ("BUNZIP2: uncompress or overwrite error %d "
                                "- must RESET board to recover\n", i);
@@ -762,7 +762,7 @@ static void *boot_get_kernel (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]
 }
 
 U_BOOT_CMD(
-       bootm,  CFG_MAXARGS,    1,      do_bootm,
+       bootm,  CONFIG_SYS_MAXARGS,     1,      do_bootm,
        "bootm   - boot application image from memory\n",
        "[addr [arg ...]]\n    - boot application image stored in memory\n"
        "\tpassing arguments 'arg ...'; when booting a Linux kernel,\n"
@@ -792,7 +792,7 @@ int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        int rcode = 0;
 
-#ifndef CFG_HUSH_PARSER
+#ifndef CONFIG_SYS_HUSH_PARSER
        if (run_command (getenv ("bootcmd"), flag) < 0)
                rcode = 1;
 #else
@@ -896,7 +896,7 @@ static int image_info (ulong addr)
 }
 
 U_BOOT_CMD(
-       iminfo, CFG_MAXARGS,    1,      do_iminfo,
+       iminfo, CONFIG_SYS_MAXARGS,     1,      do_iminfo,
        "iminfo  - print header information for application image\n",
        "addr [addr ...]\n"
        "    - print header information for application image starting at\n"
@@ -917,7 +917,7 @@ int do_imls (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        void *hdr;
 
        for (i = 0, info = &flash_info[0];
-               i < CFG_MAX_FLASH_BANKS; ++i, ++info) {
+               i < CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
 
                if (info->flash_id == FLASH_UNKNOWN)
                        goto next_bank;
index d6cd565adf2cf52f9e9019b38b8957c72202c5f6..b4d9649bddea8de360049da09672badc282a4633 100644 (file)
@@ -47,7 +47,7 @@ int do_date (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        /* switch to correct I2C bus */
        old_bus = I2C_GET_BUS();
-       I2C_SET_BUS(CFG_RTC_BUS_NUM);
+       I2C_SET_BUS(CONFIG_SYS_RTC_BUS_NUM);
 
        switch (argc) {
        case 2:                 /* set date & time */
index 82d5ad313478f5b1985ec143d484553b74a35386..13d4225fb85de204a8f23da283e8b69b353be5fa 100644 (file)
@@ -65,7 +65,7 @@ int do_diag (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 /***************************************************/
 
 U_BOOT_CMD(
-       diag,   CFG_MAXARGS,    0,      do_diag,
+       diag,   CONFIG_SYS_MAXARGS,     0,      do_diag,
        "diag    - perform board diagnostics\n",
             "    - print list of available tests\n"
        "diag [test1 [test2]]\n"
index a29345c6ba11c7d3527b4e2c42747b420e081d4d..982e09dab62362dd3d5809e00410052ef780a983 100644 (file)
@@ -36,7 +36,7 @@ int do_display (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        int pos;
 
        /* Clear display */
-       *((volatile char*)(CFG_DISP_CWORD)) = CWORD_CLEAR;
+       *((volatile char*)(CONFIG_SYS_DISP_CWORD)) = CWORD_CLEAR;
        udelay(1000 * CLEAR_DELAY);
 
        if (argc < 2)
@@ -46,14 +46,14 @@ int do_display (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                char *p = argv[i], c;
 
                if (i > 1) {
-                       *((volatile uchar *) (CFG_DISP_CHR_RAM + pos++)) = ' ';
+                       *((volatile uchar *) (CONFIG_SYS_DISP_CHR_RAM + pos++)) = ' ';
 #ifdef DEBUG_DISP
                        putc(' ');
 #endif
                }
 
                while ((c = *p++) != '\0' && pos < DISP_SIZE) {
-                       *((volatile uchar *) (CFG_DISP_CHR_RAM + pos++)) = c;
+                       *((volatile uchar *) (CONFIG_SYS_DISP_CHR_RAM + pos++)) = c;
 #ifdef DEBUG_DISP
                        putc(c);
 #endif
@@ -70,7 +70,7 @@ int do_display (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 /***************************************************/
 
 U_BOOT_CMD(
-       display,        CFG_MAXARGS,    1,      do_display,
+       display,        CONFIG_SYS_MAXARGS,     1,      do_display,
        "display- display string on dot matrix display\n",
        "[<string>]\n"
        "    - with <string> argument: display <string> on dot matrix display\n"
index a55ca41d9026f8d4fbf1f7f79a68b43b0971378c..02502cc810cf438606c0103d89a584771da543a6 100644 (file)
  * TODO: must be implemented and tested by someone with HW
  */
 #if 0
-#ifdef CFG_DOC_SUPPORT_2000
+#ifdef CONFIG_SYS_DOC_SUPPORT_2000
 #define DoC_is_2000(doc) (doc->ChipID == DOC_ChipID_Doc2k)
 #else
 #define DoC_is_2000(doc) (0)
 #endif
 
-#ifdef CFG_DOC_SUPPORT_MILLENNIUM
+#ifdef CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 #define DoC_is_Millennium(doc) (doc->ChipID == DOC_ChipID_DocMil)
 #else
 #define DoC_is_Millennium(doc) (0)
 #endif
 
-/* CFG_DOC_PASSIVE_PROBE:
+/* CONFIG_SYS_DOC_PASSIVE_PROBE:
    In order to ensure that the BIOS checksum is correct at boot time, and
    hence that the onboard BIOS extension gets executed, the DiskOnChip
    goes into reset mode when it is read sequentially: all registers
@@ -48,7 +48,7 @@
    the machine.
 
    If you have this problem, uncomment the following line:
-#define CFG_DOC_PASSIVE_PROBE
+#define CONFIG_SYS_DOC_PASSIVE_PROBE
 */
 
 #undef DOC_DEBUG
@@ -56,7 +56,7 @@
 #undef PSYCHO_DEBUG
 #undef NFTL_DEBUG
 
-static struct DiskOnChip doc_dev_desc[CFG_MAX_DOC_DEVICE];
+static struct DiskOnChip doc_dev_desc[CONFIG_SYS_MAX_DOC_DEVICE];
 
 /* Current DOC Device  */
 static int curr_device = -1;
@@ -104,7 +104,7 @@ int do_doc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
                putc ('\n');
 
-               for (i=0; i<CFG_MAX_DOC_DEVICE; ++i) {
+               for (i=0; i<CONFIG_SYS_MAX_DOC_DEVICE; ++i) {
                        if(doc_dev_desc[i].ChipID == DOC_ChipID_UNKNOWN)
                                continue; /* list only known devices */
                        printf ("Device %d: ", i);
@@ -113,7 +113,7 @@ int do_doc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                return 0;
 
        } else if (strcmp(argv[1],"device") == 0) {
-               if ((curr_device < 0) || (curr_device >= CFG_MAX_DOC_DEVICE)) {
+               if ((curr_device < 0) || (curr_device >= CONFIG_SYS_MAX_DOC_DEVICE)) {
                        puts ("\nno devices available\n");
                        return 1;
                }
@@ -128,7 +128,7 @@ int do_doc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                int dev = (int)simple_strtoul(argv[2], NULL, 10);
 
                printf ("\nDevice %d: ", dev);
-               if (dev >= CFG_MAX_DOC_DEVICE) {
+               if (dev >= CONFIG_SYS_MAX_DOC_DEVICE) {
                        puts ("unknown device\n");
                        return 1;
                }
@@ -218,7 +218,7 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        show_boot_progress (34);
        switch (argc) {
        case 1:
-               addr = CFG_LOAD_ADDR;
+               addr = CONFIG_SYS_LOAD_ADDR;
                boot_device = getenv ("bootdevice");
                break;
        case 2:
@@ -250,7 +250,7 @@ int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        dev = simple_strtoul(boot_device, &ep, 16);
 
-       if ((dev >= CFG_MAX_DOC_DEVICE) ||
+       if ((dev >= CONFIG_SYS_MAX_DOC_DEVICE) ||
            (doc_dev_desc[dev].ChipID == DOC_ChipID_UNKNOWN)) {
                printf ("\n** Device %d not available\n", dev);
                show_boot_progress (-37);
@@ -439,7 +439,7 @@ static int _DoC_WaitReady(struct DiskOnChip *doc)
 
        /* Out-of-line routine to wait for chip response */
        while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) {
-#ifdef CFG_DOC_SHORT_TIMEOUT
+#ifdef CONFIG_SYS_DOC_SHORT_TIMEOUT
                /* it seems that after a certain time the DoC deasserts
                 * the CDSN_CTRL_FR_B although it is not ready...
                 * using a short timout solve this (timer increments every ms) */
@@ -1525,12 +1525,12 @@ static inline int doccheck(unsigned long potential, unsigned long physadr)
 
        /* Routine copied from the Linux DOC driver */
 
-#ifdef CFG_DOCPROBE_55AA
+#ifdef CONFIG_SYS_DOCPROBE_55AA
        /* Check for 0x55 0xAA signature at beginning of window,
           this is no longer true once we remove the IPL (for Millennium */
        if (ReadDOC(window, Sig1) != 0x55 || ReadDOC(window, Sig2) != 0xaa)
                return 0;
-#endif /* CFG_DOCPROBE_55AA */
+#endif /* CONFIG_SYS_DOCPROBE_55AA */
 
 #ifndef DOC_PASSIVE_PROBE
        /* It's not possible to cleanly detect the DiskOnChip - the
@@ -1574,7 +1574,7 @@ static inline int doccheck(unsigned long potential, unsigned long physadr)
                break;
 
        default:
-#ifndef CFG_DOCPROBE_55AA
+#ifndef CONFIG_SYS_DOCPROBE_55AA
 /*
  * if the ID isn't the DoC2000 or DoCMillenium ID, so we can assume
  * the DOC is missing
@@ -1609,7 +1609,7 @@ void doc_probe(unsigned long physadr)
 
        if ((ChipID = doccheck(physadr, physadr))) {
 
-               for (i=0; i<CFG_MAX_DOC_DEVICE; i++) {
+               for (i=0; i<CONFIG_SYS_MAX_DOC_DEVICE; i++) {
                        if (doc_dev_desc[i].ChipID == DOC_ChipID_UNKNOWN) {
                                this = doc_dev_desc + i;
                                break;
index 956dc69daecbd3736f86b94096c41669c06fd4ed..c5b1d4d8fd297f70a9942e5a37432524d288cc8f 100644 (file)
@@ -36,7 +36,7 @@ int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
        /* switch to correct I2C bus */
        old_bus = I2C_GET_BUS();
-       I2C_SET_BUS(CFG_DTT_BUS_NUM);
+       I2C_SET_BUS(CONFIG_SYS_DTT_BUS_NUM);
 
        /*
         * Loop through sensors, read
index 44d44fe4d09b9c8c2dbe2a47298c1d7129aaf68d..2451bef74f4056c020bee4e03832a79d8c204e8f 100644 (file)
@@ -32,8 +32,8 @@
  * Use the following configuration options to ensure no unneeded performance
  * degradation (typical for EEPROM) is incured for FRAM memory:
  *
- * #define CFG_I2C_FRAM
- * #undef CFG_EEPROM_PAGE_WRITE_DELAY_MS
+ * #define CONFIG_SYS_I2C_FRAM
+ * #undef CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS
  *
  */
 
@@ -47,12 +47,12 @@ extern int  eeprom_read  (unsigned dev_addr, unsigned offset,
                          uchar *buffer, unsigned cnt);
 extern int  eeprom_write (unsigned dev_addr, unsigned offset,
                          uchar *buffer, unsigned cnt);
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
 extern int eeprom_write_enable (unsigned dev_addr, int state);
 #endif
 
 
-#if defined(CFG_EEPROM_X40430)
+#if defined(CONFIG_SYS_EEPROM_X40430)
        /* Maximum number of times to poll for acknowledge after write */
 #define MAX_ACKNOWLEDGE_POLLS  10
 #endif
@@ -65,7 +65,7 @@ int do_eeprom ( cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        const char *const fmt =
                "\nEEPROM @0x%lX %s: addr %08lx  off %04lx  count %ld ... ";
 
-#if defined(CFG_I2C_MULTI_EEPROMS)
+#if defined(CONFIG_SYS_I2C_MULTI_EEPROMS)
        if (argc == 6) {
                ulong dev_addr = simple_strtoul (argv[2], NULL, 16);
                ulong addr = simple_strtoul (argv[3], NULL, 16);
@@ -73,11 +73,11 @@ int do_eeprom ( cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                ulong cnt  = simple_strtoul (argv[5], NULL, 16);
 #else
        if (argc == 5) {
-               ulong dev_addr = CFG_DEF_EEPROM_ADDR;
+               ulong dev_addr = CONFIG_SYS_DEF_EEPROM_ADDR;
                ulong addr = simple_strtoul (argv[2], NULL, 16);
                ulong off  = simple_strtoul (argv[3], NULL, 16);
                ulong cnt  = simple_strtoul (argv[4], NULL, 16);
-#endif /* CFG_I2C_MULTI_EEPROMS */
+#endif /* CONFIG_SYS_I2C_MULTI_EEPROMS */
 
 # ifndef CONFIG_SPI
                eeprom_init ();
@@ -111,16 +111,16 @@ int do_eeprom ( cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
 /*-----------------------------------------------------------------------
  *
- * for CFG_I2C_EEPROM_ADDR_LEN == 2 (16-bit EEPROM address) offset is
+ * for CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 2 (16-bit EEPROM address) offset is
  *   0x000nxxxx for EEPROM address selectors at n, offset xxxx in EEPROM.
  *
- * for CFG_I2C_EEPROM_ADDR_LEN == 1 (8-bit EEPROM page address) offset is
+ * for CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 (8-bit EEPROM page address) offset is
  *   0x00000nxx for EEPROM address selectors and page number at n.
  */
 
 #ifndef CONFIG_SPI
-#if !defined(CFG_I2C_EEPROM_ADDR_LEN) || CFG_I2C_EEPROM_ADDR_LEN < 1 || CFG_I2C_EEPROM_ADDR_LEN > 2
-#error CFG_I2C_EEPROM_ADDR_LEN must be 1 or 2
+#if !defined(CONFIG_SYS_I2C_EEPROM_ADDR_LEN) || CONFIG_SYS_I2C_EEPROM_ADDR_LEN < 1 || CONFIG_SYS_I2C_EEPROM_ADDR_LEN > 2
+#error CONFIG_SYS_I2C_EEPROM_ADDR_LEN must be 1 or 2
 #endif
 #endif
 
@@ -136,11 +136,11 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt
         */
        while (offset < end) {
                unsigned alen, len;
-#if !defined(CFG_I2C_FRAM)
+#if !defined(CONFIG_SYS_I2C_FRAM)
                unsigned maxlen;
 #endif
 
-#if CFG_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
+#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
                uchar addr[2];
 
                blk_off = offset & 0xFF;        /* block offset */
@@ -157,7 +157,7 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt
                addr[1] = offset >>  8;         /* upper address octet */
                addr[2] = blk_off;              /* lower address octet */
                alen    = 3;
-#endif /* CFG_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
+#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
 
                addr[0] |= dev_addr;            /* insert device address */
 
@@ -168,7 +168,7 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt
                 * bytes that can be ccessed with the single read or write
                 * operation.
                 */
-#if !defined(CFG_I2C_FRAM)
+#if !defined(CONFIG_SYS_I2C_FRAM)
                maxlen = 0x100 - blk_off;
                if (maxlen > I2C_RXTX_LEN)
                        maxlen = I2C_RXTX_LEN;
@@ -191,10 +191,10 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt
 
 /*-----------------------------------------------------------------------
  *
- * for CFG_I2C_EEPROM_ADDR_LEN == 2 (16-bit EEPROM address) offset is
+ * for CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 2 (16-bit EEPROM address) offset is
  *   0x000nxxxx for EEPROM address selectors at n, offset xxxx in EEPROM.
  *
- * for CFG_I2C_EEPROM_ADDR_LEN == 1 (8-bit EEPROM page address) offset is
+ * for CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 (8-bit EEPROM page address) offset is
  *   0x00000nxx for EEPROM address selectors and page number at n.
  */
 
@@ -204,7 +204,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
        unsigned blk_off;
        int rcode = 0;
 
-#if defined(CFG_EEPROM_X40430)
+#if defined(CONFIG_SYS_EEPROM_X40430)
        uchar   contr_r_addr[2];
        uchar   addr_void[2];
        uchar   contr_reg[2];
@@ -212,7 +212,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
        int     i;
 #endif
 
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
        eeprom_write_enable (dev_addr,1);
 #endif
        /* Write data until done or would cross a write page boundary.
@@ -222,11 +222,11 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
 
        while (offset < end) {
                unsigned alen, len;
-#if !defined(CFG_I2C_FRAM)
+#if !defined(CONFIG_SYS_I2C_FRAM)
                unsigned maxlen;
 #endif
 
-#if CFG_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
+#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
                uchar addr[2];
 
                blk_off = offset & 0xFF;        /* block offset */
@@ -243,7 +243,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
                addr[1] = offset >>  8;         /* upper address octet */
                addr[2] = blk_off;              /* lower address octet */
                alen    = 3;
-#endif /* CFG_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
+#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
 
                addr[0] |= dev_addr;            /* insert device address */
 
@@ -254,11 +254,11 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
                 * bytes that can be ccessed with the single read or write
                 * operation.
                 */
-#if !defined(CFG_I2C_FRAM)
+#if !defined(CONFIG_SYS_I2C_FRAM)
 
-#if defined(CFG_EEPROM_PAGE_WRITE_BITS)
+#if defined(CONFIG_SYS_EEPROM_PAGE_WRITE_BITS)
 
-#define        EEPROM_PAGE_SIZE        (1 << CFG_EEPROM_PAGE_WRITE_BITS)
+#define        EEPROM_PAGE_SIZE        (1 << CONFIG_SYS_EEPROM_PAGE_WRITE_BITS)
 #define        EEPROM_PAGE_OFFSET(x)   ((x) & (EEPROM_PAGE_SIZE - 1))
 
                maxlen = EEPROM_PAGE_SIZE - EEPROM_PAGE_OFFSET(blk_off);
@@ -275,7 +275,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
 #ifdef CONFIG_SPI
                spi_write (addr, alen, buffer, len);
 #else
-#if defined(CFG_EEPROM_X40430)
+#if defined(CONFIG_SYS_EEPROM_X40430)
                /* Get the value of the control register.
                 * Set current address (internal pointer in the x40430)
                 * to 0x1ff.
@@ -284,9 +284,9 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
                contr_r_addr[1] = 0xff;
                addr_void[0]    = 0;
                addr_void[1]    = addr[1];
-#ifdef CFG_I2C_EEPROM_ADDR
-               contr_r_addr[0] |= CFG_I2C_EEPROM_ADDR;
-               addr_void[0]    |= CFG_I2C_EEPROM_ADDR;
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR
+               contr_r_addr[0] |= CONFIG_SYS_I2C_EEPROM_ADDR;
+               addr_void[0]    |= CONFIG_SYS_I2C_EEPROM_ADDR;
 #endif
                contr_reg[0] = 0xff;
                if (i2c_read (contr_r_addr[0], contr_r_addr[1], 1, contr_reg, 1) != 0) {
@@ -334,8 +334,8 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
                        for (i = 0; i < MAX_ACKNOWLEDGE_POLLS; i++) {
                                if (i2c_read (addr_void[0], addr_void[1], 1, contr_reg, 1) == 0)
                                        break;  /* got ack */
-#if defined(CFG_EEPROM_PAGE_WRITE_DELAY_MS)
-                               udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+#if defined(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS)
+                               udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 #endif
                        }
                        if (i == MAX_ACKNOWLEDGE_POLLS) {
@@ -364,11 +364,11 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
                buffer += len;
                offset += len;
 
-#if defined(CFG_EEPROM_PAGE_WRITE_DELAY_MS)
-               udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+#if defined(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS)
+               udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 #endif
        }
-#if defined(CFG_EEPROM_WREN)
+#if defined(CONFIG_SYS_EEPROM_WREN)
        eeprom_write_enable (dev_addr,0);
 #endif
        return rcode;
@@ -382,11 +382,11 @@ eeprom_probe (unsigned dev_addr, unsigned offset)
 
        /* Probe the chip address
         */
-#if CFG_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
+#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X)
        chip = offset >> 8;             /* block number */
 #else
        chip = offset >> 16;            /* block number */
-#endif /* CFG_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
+#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */
 
        chip |= dev_addr;               /* insert device address */
 
@@ -397,12 +397,12 @@ eeprom_probe (unsigned dev_addr, unsigned offset)
 /*-----------------------------------------------------------------------
  * Set default values
  */
-#ifndef        CFG_I2C_SPEED
-#define        CFG_I2C_SPEED   50000
+#ifndef        CONFIG_SYS_I2C_SPEED
+#define        CONFIG_SYS_I2C_SPEED    50000
 #endif
 
-#ifndef        CFG_I2C_SLAVE
-#define        CFG_I2C_SLAVE   0xFE
+#ifndef        CONFIG_SYS_I2C_SLAVE
+#define        CONFIG_SYS_I2C_SLAVE    0xFE
 #endif
 
 void eeprom_init  (void)
@@ -412,7 +412,7 @@ void eeprom_init  (void)
 #endif
 #if defined(CONFIG_HARD_I2C) || \
     defined(CONFIG_SOFT_I2C)
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 #endif
 }
 /*-----------------------------------------------------------------------
@@ -422,7 +422,7 @@ void eeprom_init  (void)
 
 #if defined(CONFIG_CMD_EEPROM)
 
-#ifdef CFG_I2C_MULTI_EEPROMS
+#ifdef CONFIG_SYS_I2C_MULTI_EEPROMS
 U_BOOT_CMD(
        eeprom, 6,      1,      do_eeprom,
        "eeprom  - EEPROM sub-system\n",
@@ -438,6 +438,6 @@ U_BOOT_CMD(
        "eeprom write addr off cnt\n"
        "       - read/write `cnt' bytes at EEPROM offset `off'\n"
 );
-#endif /* CFG_I2C_MULTI_EEPROMS */
+#endif /* CONFIG_SYS_I2C_MULTI_EEPROMS */
 
 #endif
index 62e5e76ac826ceecfd990c065771cd173529cebf..3ebb6d9354436c88a1e6f008198b69dd4efc6074 100644 (file)
@@ -19,7 +19,7 @@
 #include <net.h>
 #include <elf.h>
 
-#if defined(CONFIG_WALNUT) || defined(CFG_VXWORKS_MAC_PTR)
+#if defined(CONFIG_WALNUT) || defined(CONFIG_SYS_VXWORKS_MAC_PTR)
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
@@ -135,10 +135,10 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
         */
 
 #if defined(CONFIG_WALNUT)
-       tmp = (char *) CFG_NVRAM_BASE_ADDR + 0x500;
+       tmp = (char *) CONFIG_SYS_NVRAM_BASE_ADDR + 0x500;
        memcpy ((char *) tmp, (char *) &gd->bd->bi_enetaddr[3], 3);
-#elif defined(CFG_VXWORKS_MAC_PTR)
-       tmp = (char *) CFG_VXWORKS_MAC_PTR;
+#elif defined(CONFIG_SYS_VXWORKS_MAC_PTR)
+       tmp = (char *) CONFIG_SYS_VXWORKS_MAC_PTR;
        memcpy ((char *) tmp, (char *) &gd->bd->bi_enetaddr[0], 6);
 #else
        puts ("## Ethernet MAC address not copied to NV RAM\n");
index cfd4f645eca64612b9ab2462758e6ebde6ba4e44..9c43792f328ec23530b3d86a726b9f34375cda5e 100644 (file)
@@ -142,7 +142,7 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                if (addr_str != NULL) {
                        addr = simple_strtoul (addr_str, NULL, 16);
                } else {
-                       addr = CFG_LOAD_ADDR;
+                       addr = CONFIG_SYS_LOAD_ADDR;
                }
                filename = getenv ("bootfile");
                count = 0;
index 9576cdf389df838323d32d3c005cc0fdb0d96e3f..ebe9e090ccf8f03d692a926a40769293a7e48fcc 100644 (file)
@@ -188,7 +188,7 @@ int find_fat_partition (void)
        unsigned char *part_table;
        unsigned char buffer[ATA_BLOCKSIZE];
 
-       for (i = 0; i < CFG_IDE_MAXDEVICE; i++) {
+       for (i = 0; i < CONFIG_SYS_IDE_MAXDEVICE; i++) {
                dev_desc = ide_get_dev (i);
                if (!dev_desc) {
                        debug ("couldn't get ide device!\n");
index b663d60a507a463ae6a366d4a22f671e971961ae..d995ff21ef9f91edca56d2de688b96c1614b672e 100644 (file)
@@ -170,17 +170,17 @@ const static FD_GEO_STRUCT floppy_type[2] = {
 static FDC_COMMAND_STRUCT cmd; /* global command struct */
 
 /* If the boot drive number is undefined, we assume it's drive 0             */
-#ifndef CFG_FDC_DRIVE_NUMBER
-#define CFG_FDC_DRIVE_NUMBER 0
+#ifndef CONFIG_SYS_FDC_DRIVE_NUMBER
+#define CONFIG_SYS_FDC_DRIVE_NUMBER 0
 #endif
 
 /* Hardware access */
-#ifndef CFG_ISA_IO_STRIDE
-#define CFG_ISA_IO_STRIDE 1
+#ifndef CONFIG_SYS_ISA_IO_STRIDE
+#define CONFIG_SYS_ISA_IO_STRIDE 1
 #endif
 
-#ifndef CFG_ISA_IO_OFFSET
-#define CFG_ISA_IO_OFFSET 0
+#ifndef CONFIG_SYS_ISA_IO_OFFSET
+#define CONFIG_SYS_ISA_IO_OFFSET 0
 #endif
 
 
@@ -213,9 +213,9 @@ int wait_for_fdc_int(void)
 unsigned char read_fdc_reg(unsigned int addr)
 {
        volatile unsigned char *val =
-               (volatile unsigned char *)(CFG_ISA_IO_BASE_ADDRESS +
-                                          (addr * CFG_ISA_IO_STRIDE) +
-                                          CFG_ISA_IO_OFFSET);
+               (volatile unsigned char *)(CONFIG_SYS_ISA_IO_BASE_ADDRESS +
+                                          (addr * CONFIG_SYS_ISA_IO_STRIDE) +
+                                          CONFIG_SYS_ISA_IO_OFFSET);
 
        return val [0];
 }
@@ -224,9 +224,9 @@ unsigned char read_fdc_reg(unsigned int addr)
 void write_fdc_reg(unsigned int addr, unsigned char val)
 {
        volatile unsigned char *tmp =
-               (volatile unsigned char *)(CFG_ISA_IO_BASE_ADDRESS +
-                                          (addr * CFG_ISA_IO_STRIDE) +
-                                          CFG_ISA_IO_OFFSET);
+               (volatile unsigned char *)(CONFIG_SYS_ISA_IO_BASE_ADDRESS +
+                                          (addr * CONFIG_SYS_ISA_IO_STRIDE) +
+                                          CONFIG_SYS_ISA_IO_OFFSET);
        tmp[0]=val;
 }
 
@@ -652,7 +652,7 @@ int fdc_setup(int drive, FDC_COMMAND_STRUCT *pCMD, FD_GEO_STRUCT *pFG)
        i8259_unmask_irq(6);
 #endif
 
-#ifdef CFG_FDC_HW_INIT
+#ifdef CONFIG_SYS_FDC_HW_INIT
        fdc_hw_init ();
 #endif
        /* first, we reset the FDC via the DOR */
@@ -789,12 +789,12 @@ int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        switch (argc) {
        case 1:
-               addr = CFG_LOAD_ADDR;
-               boot_drive=CFG_FDC_DRIVE_NUMBER;
+               addr = CONFIG_SYS_LOAD_ADDR;
+               boot_drive=CONFIG_SYS_FDC_DRIVE_NUMBER;
                break;
        case 2:
                addr = simple_strtoul(argv[1], NULL, 16);
-               boot_drive=CFG_FDC_DRIVE_NUMBER;
+               boot_drive=CONFIG_SYS_FDC_DRIVE_NUMBER;
                break;
        case 3:
                addr = simple_strtoul(argv[1], NULL, 16);
index b3dbd19faea952f448f8c03e1f56f39e7bf96997..aa13b526165226e20051be39f6a44da143efed07 100644 (file)
@@ -42,7 +42,7 @@ int do_fdosboot(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
     int size;
     int rcode = 0;
     char buf [12];
-    int drive = CFG_FDC_DRIVE_NUMBER;
+    int drive = CONFIG_SYS_FDC_DRIVE_NUMBER;
 
     /* pre-set load_addr */
     if ((ep = getenv("loadaddr")) != NULL) {
@@ -118,7 +118,7 @@ int do_fdosboot(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 int do_fdosls(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
     char *path = "";
-    int drive = CFG_FDC_DRIVE_NUMBER;
+    int drive = CONFIG_SYS_FDC_DRIVE_NUMBER;
 
     switch (argc) {
     case 1:
index 288a5c4382729a7c4a9ed65bc5290a0dc2402d45..4274a773a7a7b5b8bb80eaf99a769e2e929f6375 100644 (file)
@@ -364,7 +364,7 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        } else if (strncmp(argv[1], "me", 2) == 0) {
                uint64_t addr, size;
                int err;
-#ifdef CFG_64BIT_STRTOUL
+#ifdef CONFIG_SYS_64BIT_STRTOUL
                        addr = simple_strtoull(argv[2], NULL, 16);
                        size = simple_strtoull(argv[3], NULL, 16);
 #else
@@ -402,7 +402,7 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                } else if (argv[2][0] == 'a') {
                        uint64_t addr, size;
                        int err;
-#ifdef CFG_64BIT_STRTOUL
+#ifdef CONFIG_SYS_64BIT_STRTOUL
                        addr = simple_strtoull(argv[3], NULL, 16);
                        size = simple_strtoull(argv[4], NULL, 16);
 #else
index 29e5b6d9aa6ea52cf05b4afb4b5d4d7f6fbe95d0..93eefa96432998d894ed5b439fc844c51c5680fe 100644 (file)
@@ -41,7 +41,7 @@ int find_dev_and_part(const char *id, struct mtd_device **dev,
                u8 *part_num, struct part_info **part);
 #endif
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
 extern flash_info_t flash_info[];      /* info for FLASH chips */
 
 /*
@@ -76,7 +76,7 @@ abbrev_spec (char *str, flash_info_t ** pinfo, int *psf, int *psl)
 
        bank = simple_strtoul (str, &ep, 10);
        if (ep == str || *ep != '\0' ||
-               bank < 1 || bank > CFG_MAX_FLASH_BANKS ||
+               bank < 1 || bank > CONFIG_SYS_MAX_FLASH_BANKS ||
                (fp = &flash_info[bank - 1])->flash_id == FLASH_UNKNOWN)
                return -1;
 
@@ -116,7 +116,7 @@ int flash_sect_roundb (ulong *addr)
 
        /* find the end addr of the sector where the *addr is */
        found = 0;
-       for (bank = 0; bank < CFG_MAX_FLASH_BANKS && !found; ++bank) {
+       for (bank = 0; bank < CONFIG_SYS_MAX_FLASH_BANKS && !found; ++bank) {
                info = &flash_info[bank];
                for (i = 0; i < info->sector_count && !found; ++i) {
                        /* get the end address of the sector */
@@ -214,13 +214,13 @@ flash_fill_sect_ranges (ulong addr_first, ulong addr_last,
 
        *s_count = 0;
 
-       for (bank=0; bank < CFG_MAX_FLASH_BANKS; ++bank) {
+       for (bank=0; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                s_first[bank] = -1;     /* first sector to erase        */
                s_last [bank] = -1;     /* last  sector to erase        */
        }
 
        for (bank=0,info = &flash_info[0];
-            (bank < CFG_MAX_FLASH_BANKS) && (addr_first <= addr_last);
+            (bank < CONFIG_SYS_MAX_FLASH_BANKS) && (addr_first <= addr_last);
             ++bank, ++info) {
                ulong b_end;
                int sect;
@@ -285,11 +285,11 @@ flash_fill_sect_ranges (ulong addr_first, ulong addr_last,
 
        return rcode;
 }
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
 
 int do_flinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        ulong bank;
 #endif
 
@@ -297,9 +297,9 @@ int do_flinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        dataflash_print_info();
 #endif
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        if (argc == 1) {        /* print info for all FLASH banks */
-               for (bank=0; bank <CFG_MAX_FLASH_BANKS; ++bank) {
+               for (bank=0; bank <CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        printf ("\nBank # %ld: ", bank+1);
 
                        flash_print_info (&flash_info[bank]);
@@ -308,20 +308,20 @@ int do_flinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
        bank = simple_strtoul(argv[1], NULL, 16);
-       if ((bank < 1) || (bank > CFG_MAX_FLASH_BANKS)) {
+       if ((bank < 1) || (bank > CONFIG_SYS_MAX_FLASH_BANKS)) {
                printf ("Only FLASH Banks # 1 ... # %d supported\n",
-                       CFG_MAX_FLASH_BANKS);
+                       CONFIG_SYS_MAX_FLASH_BANKS);
                return 1;
        }
        printf ("\nBank # %ld: ", bank);
        flash_print_info (&flash_info[bank-1]);
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
        return 0;
 }
 
 int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        flash_info_t *info;
        ulong bank, addr_first, addr_last;
        int n, sect_first, sect_last;
@@ -338,7 +338,7 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
        if (strcmp(argv[1], "all") == 0) {
-               for (bank=1; bank<=CFG_MAX_FLASH_BANKS; ++bank) {
+               for (bank=1; bank<=CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        printf ("Erase Flash Bank # %ld ", bank);
                        info = &flash_info[bank-1];
                        rcode = flash_erase (info, 0, info->sector_count-1);
@@ -390,9 +390,9 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (strcmp(argv[1], "bank") == 0) {
                bank = simple_strtoul(argv[2], NULL, 16);
-               if ((bank < 1) || (bank > CFG_MAX_FLASH_BANKS)) {
+               if ((bank < 1) || (bank > CONFIG_SYS_MAX_FLASH_BANKS)) {
                        printf ("Only FLASH Banks # 1 ... # %d supported\n",
-                               CFG_MAX_FLASH_BANKS);
+                               CONFIG_SYS_MAX_FLASH_BANKS);
                        return 1;
                }
                printf ("Erase Flash Bank # %ld ", bank);
@@ -415,18 +415,18 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        return rcode;
 #else
        return 0;
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
 }
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
 int flash_sect_erase (ulong addr_first, ulong addr_last)
 {
        flash_info_t *info;
        ulong bank;
-#ifdef CFG_MAX_FLASH_BANKS_DETECT
-       int s_first[CFG_MAX_FLASH_BANKS_DETECT], s_last[CFG_MAX_FLASH_BANKS_DETECT];
+#ifdef CONFIG_SYS_MAX_FLASH_BANKS_DETECT
+       int s_first[CONFIG_SYS_MAX_FLASH_BANKS_DETECT], s_last[CONFIG_SYS_MAX_FLASH_BANKS_DETECT];
 #else
-       int s_first[CFG_MAX_FLASH_BANKS], s_last[CFG_MAX_FLASH_BANKS];
+       int s_first[CONFIG_SYS_MAX_FLASH_BANKS], s_last[CONFIG_SYS_MAX_FLASH_BANKS];
 #endif
        int erased = 0;
        int planned;
@@ -437,7 +437,7 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
 
        if (planned && (rcode == 0)) {
                for (bank=0,info = &flash_info[0];
-                    (bank < CFG_MAX_FLASH_BANKS) && (rcode == 0);
+                    (bank < CONFIG_SYS_MAX_FLASH_BANKS) && (rcode == 0);
                     ++bank, ++info) {
                        if (s_first[bank]>=0) {
                                erased += s_last[bank] - s_first[bank] + 1;
@@ -459,15 +459,15 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
        }
        return rcode;
 }
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
 
 int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        flash_info_t *info;
        ulong bank;
        int i, n, sect_first, sect_last;
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
        ulong addr_first, addr_last;
        int p;
 #if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
@@ -512,9 +512,9 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 #endif
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        if (strcmp(argv[2], "all") == 0) {
-               for (bank=1; bank<=CFG_MAX_FLASH_BANKS; ++bank) {
+               for (bank=1; bank<=CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        info = &flash_info[bank-1];
                        if (info->flash_id == FLASH_UNKNOWN) {
                                continue;
@@ -523,17 +523,17 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                                p ? "" : "Un-", bank);
 
                        for (i=0; i<info->sector_count; ++i) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                if (flash_real_protect(info, i, p))
                                        rcode = 1;
                                putc ('.');
 #else
                                info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                        }
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                        if (!rcode) puts (" done\n");
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                }
                return rcode;
        }
@@ -547,18 +547,18 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        p ? "" : "Un-", sect_first, sect_last,
                        (info-flash_info)+1);
                for (i = sect_first; i <= sect_last; i++) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                        if (flash_real_protect(info, i, p))
                                rcode =  1;
                        putc ('.');
 #else
                        info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                }
 
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                if (!rcode) puts (" done\n");
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
                return rcode;
        }
@@ -597,9 +597,9 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        if (strcmp(argv[2], "bank") == 0) {
                bank = simple_strtoul(argv[3], NULL, 16);
-               if ((bank < 1) || (bank > CFG_MAX_FLASH_BANKS)) {
+               if ((bank < 1) || (bank > CONFIG_SYS_MAX_FLASH_BANKS)) {
                        printf ("Only FLASH Banks # 1 ... # %d supported\n",
-                               CFG_MAX_FLASH_BANKS);
+                               CONFIG_SYS_MAX_FLASH_BANKS);
                        return 1;
                }
                printf ("%sProtect Flash Bank # %ld\n",
@@ -611,18 +611,18 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        return 1;
                }
                for (i=0; i<info->sector_count; ++i) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                        if (flash_real_protect(info, i, p))
                                rcode =  1;
                        putc ('.');
 #else
                        info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                }
 
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                if (!rcode) puts (" done\n");
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
                return rcode;
        }
@@ -637,19 +637,19 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                return 1;
        }
        rcode = flash_sect_protect (p, addr_first, addr_last);
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
        return rcode;
 }
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
 int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
 {
        flash_info_t *info;
        ulong bank;
-#ifdef CFG_MAX_FLASH_BANKS_DETECT
-       int s_first[CFG_MAX_FLASH_BANKS_DETECT], s_last[CFG_MAX_FLASH_BANKS_DETECT];
+#ifdef CONFIG_SYS_MAX_FLASH_BANKS_DETECT
+       int s_first[CONFIG_SYS_MAX_FLASH_BANKS_DETECT], s_last[CONFIG_SYS_MAX_FLASH_BANKS_DETECT];
 #else
-       int s_first[CFG_MAX_FLASH_BANKS], s_last[CFG_MAX_FLASH_BANKS];
+       int s_first[CONFIG_SYS_MAX_FLASH_BANKS], s_last[CONFIG_SYS_MAX_FLASH_BANKS];
 #endif
        int protected, i;
        int planned;
@@ -660,7 +660,7 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
        protected = 0;
 
        if (planned && (rcode == 0)) {
-               for (bank=0,info = &flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
+               for (bank=0,info = &flash_info[0]; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank, ++info) {
                        if (info->flash_id == FLASH_UNKNOWN) {
                                continue;
                        }
@@ -671,19 +671,19 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
                                        s_first[bank], s_last[bank], bank+1);
                                protected += s_last[bank] - s_first[bank] + 1;
                                for (i=s_first[bank]; i<=s_last[bank]; ++i) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                        if (flash_real_protect(info, i, p))
                                                rcode = 1;
                                        putc ('.');
 #else
                                        info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                                }
                        }
                }
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                puts (" done\n");
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
                printf ("%sProtected %d sectors\n",
                        p ? "" : "Un-", protected);
@@ -694,7 +694,7 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
        }
        return rcode;
 }
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
 
 
 /**************************************************/
index 8d287fe5fae4288147bbfb8a0b75703e07164c49..84ecf497262b98a39824e026797530d7cefce231 100644 (file)
@@ -65,7 +65,7 @@
  *   significant 1, 2, or 3 bits of address into the chip address byte.
  *   This effectively makes one chip (logically) look like 2, 4, or
  *   8 chips.  This is handled (awkwardly) by #defining
- *   CFG_I2C_EEPROM_ADDR_OVERFLOW and using the .1 modifier on the
+ *   CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW and using the .1 modifier on the
  *   {addr} field (since .1 is the default, it doesn't actually have to
  *   be specified).  Examples: given a memory chip at I2C chip address
  *   0x50, the following would happen...
@@ -105,19 +105,19 @@ static uint       i2c_mm_last_alen;
  * When multiple buses are present, the list is an array of bus-address
  * pairs.  The following macros take care of this */
 
-#if defined(CFG_I2C_NOPROBES)
+#if defined(CONFIG_SYS_I2C_NOPROBES)
 #if defined(CONFIG_I2C_MULTI_BUS)
 static struct
 {
        uchar   bus;
        uchar   addr;
-} i2c_no_probes[] = CFG_I2C_NOPROBES;
+} i2c_no_probes[] = CONFIG_SYS_I2C_NOPROBES;
 #define GET_BUS_NUM    i2c_get_bus_num()
 #define COMPARE_BUS(b,i)       (i2c_no_probes[(i)].bus == (b))
 #define COMPARE_ADDR(a,i)      (i2c_no_probes[(i)].addr == (a))
 #define NO_PROBE_ADDR(i)       i2c_no_probes[(i)].addr
 #else          /* single bus */
-static uchar i2c_no_probes[] = CFG_I2C_NOPROBES;
+static uchar i2c_no_probes[] = CONFIG_SYS_I2C_NOPROBES;
 #define GET_BUS_NUM    0
 #define COMPARE_BUS(b,i)       ((b) == 0)      /* Make compiler happy */
 #define COMPARE_ADDR(a,i)      (i2c_no_probes[(i)] == (a))
@@ -129,7 +129,7 @@ static uchar i2c_no_probes[] = CFG_I2C_NOPROBES;
 
 #if defined(CONFIG_I2C_MUX)
 static I2C_MUX_DEVICE  *i2c_mux_devices = NULL;
-static int     i2c_mux_busid = CFG_MAX_I2C_BUS;
+static int     i2c_mux_busid = CONFIG_SYS_MAX_I2C_BUS;
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -323,7 +323,7 @@ int do_i2c_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 /*
  * No write delay with FRAM devices.
  */
-#if !defined(CFG_I2C_FRAM)
+#if !defined(CONFIG_SYS_I2C_FRAM)
                udelay(11000);
 #endif
 
@@ -529,8 +529,8 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char *argv[])
 #endif
                                if (i2c_write(chip, addr, alen, (uchar *)&data, size) != 0)
                                        puts ("Error writing the chip.\n");
-#ifdef CFG_EEPROM_PAGE_WRITE_DELAY_MS
-                               udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+#ifdef CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS
+                               udelay(CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
 #endif
                                if (incrflag)
                                        addr += size;
@@ -552,14 +552,14 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char *argv[])
 int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        int j;
-#if defined(CFG_I2C_NOPROBES)
+#if defined(CONFIG_SYS_I2C_NOPROBES)
        int k, skip;
        uchar bus = GET_BUS_NUM;
 #endif /* NOPROBES */
 
        puts ("Valid chip addresses:");
        for (j = 0; j < 128; j++) {
-#if defined(CFG_I2C_NOPROBES)
+#if defined(CONFIG_SYS_I2C_NOPROBES)
                skip = 0;
                for (k=0; k < NUM_ELEMENTS_NOPROBE; k++) {
                        if (COMPARE_BUS(bus, k) && COMPARE_ADDR(j, k)) {
@@ -575,7 +575,7 @@ int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
        putc ('\n');
 
-#if defined(CFG_I2C_NOPROBES)
+#if defined(CONFIG_SYS_I2C_NOPROBES)
        puts ("Excluded chip addresses:");
        for (k=0; k < NUM_ELEMENTS_NOPROBE; k++) {
                if (COMPARE_BUS(bus,k))
@@ -1194,7 +1194,7 @@ int do_sdram (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 #if defined(CONFIG_I2C_CMD_TREE)
 int do_i2c_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        return 0;
 }
 
@@ -1573,8 +1573,8 @@ int i2x_mux_select_mux(int bus)
 
        if ((gd->flags & GD_FLG_RELOC) != GD_FLG_RELOC) {
                /* select Default Mux Bus */
-#if defined(CFG_I2C_IVM_BUS)
-               i2c_mux_ident_muxstring_f ((uchar *)CFG_I2C_IVM_BUS);
+#if defined(CONFIG_SYS_I2C_IVM_BUS)
+               i2c_mux_ident_muxstring_f ((uchar *)CONFIG_SYS_I2C_IVM_BUS);
 #else
                {
                unsigned char *buf;
index 2fcaff8c5a1413acc8302c4cb1ab95d77c54ed39..2564c2b75775d4416016e63100c3c6eb8b626d56 100644 (file)
@@ -92,10 +92,10 @@ const static pio_config_t pio_config_ns [IDE_MAX_PIO_MODE+1] =
 
 static pio_config_t pio_config_clk [IDE_MAX_PIO_MODE+1];
 
-#ifndef        CFG_PIO_MODE
-#define        CFG_PIO_MODE    0               /* use a relaxed default */
+#ifndef        CONFIG_SYS_PIO_MODE
+#define        CONFIG_SYS_PIO_MODE     0               /* use a relaxed default */
 #endif
-static int pio_mode = CFG_PIO_MODE;
+static int pio_mode = CONFIG_SYS_PIO_MODE;
 
 /* Make clock cycles and always round up */
 
@@ -109,23 +109,23 @@ static int pio_mode = CFG_PIO_MODE;
 static int curr_device = -1;
 
 /* Current offset for IDE0 / IDE1 bus access   */
-ulong ide_bus_offset[CFG_IDE_MAXBUS] = {
-#if defined(CFG_ATA_IDE0_OFFSET)
-       CFG_ATA_IDE0_OFFSET,
+ulong ide_bus_offset[CONFIG_SYS_IDE_MAXBUS] = {
+#if defined(CONFIG_SYS_ATA_IDE0_OFFSET)
+       CONFIG_SYS_ATA_IDE0_OFFSET,
 #endif
-#if defined(CFG_ATA_IDE1_OFFSET) && (CFG_IDE_MAXBUS > 1)
-       CFG_ATA_IDE1_OFFSET,
+#if defined(CONFIG_SYS_ATA_IDE1_OFFSET) && (CONFIG_SYS_IDE_MAXBUS > 1)
+       CONFIG_SYS_ATA_IDE1_OFFSET,
 #endif
 };
 
 
 #ifndef CONFIG_AMIGAONEG3SE
-static int ide_bus_ok[CFG_IDE_MAXBUS];
+static int ide_bus_ok[CONFIG_SYS_IDE_MAXBUS];
 #else
-static int ide_bus_ok[CFG_IDE_MAXBUS] = {0,};
+static int ide_bus_ok[CONFIG_SYS_IDE_MAXBUS] = {0,};
 #endif
 
-block_dev_desc_t ide_dev_desc[CFG_IDE_MAXDEVICE];
+block_dev_desc_t ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE];
 /* ------------------------------------------------------------------------- */
 
 #ifdef CONFIG_IDE_LED
@@ -165,8 +165,8 @@ static void input_data(int dev, ulong *sect_buf, int words);
 static void output_data(int dev, ulong *sect_buf, int words);
 static void ident_cpy (unsigned char *dest, unsigned char *src, unsigned int len);
 
-#ifndef CFG_ATA_PORT_ADDR
-#define CFG_ATA_PORT_ADDR(port) (port)
+#ifndef CONFIG_SYS_ATA_PORT_ADDR
+#define CONFIG_SYS_ATA_PORT_ADDR(port) (port)
 #endif
 
 #ifdef CONFIG_ATAPI
@@ -205,7 +205,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
                putc ('\n');
 
-               for (i=0; i<CFG_IDE_MAXDEVICE; ++i) {
+               for (i=0; i<CONFIG_SYS_IDE_MAXDEVICE; ++i) {
                        if (ide_dev_desc[i].type==DEV_TYPE_UNKNOWN)
                                continue; /* list only known devices */
                        printf ("IDE device %d: ", i);
@@ -214,7 +214,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                return 0;
 
        } else if (strncmp(argv[1],"dev",3) == 0) {
-               if ((curr_device < 0) || (curr_device >= CFG_IDE_MAXDEVICE)) {
+               if ((curr_device < 0) || (curr_device >= CONFIG_SYS_IDE_MAXDEVICE)) {
                        puts ("\nno IDE devices available\n");
                        return 1;
                }
@@ -224,7 +224,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        } else if (strncmp(argv[1],"part",4) == 0) {
                int dev, ok;
 
-               for (ok=0, dev=0; dev<CFG_IDE_MAXDEVICE; ++dev) {
+               for (ok=0, dev=0; dev<CONFIG_SYS_IDE_MAXDEVICE; ++dev) {
                        if (ide_dev_desc[dev].part_type!=PART_TYPE_UNKNOWN) {
                                ++ok;
                                if (dev)
@@ -245,7 +245,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                int dev = (int)simple_strtoul(argv[2], NULL, 10);
 
                printf ("\nIDE device %d: ", dev);
-               if (dev >= CFG_IDE_MAXDEVICE) {
+               if (dev >= CONFIG_SYS_IDE_MAXDEVICE) {
                        puts ("unknown device\n");
                        return 1;
                }
@@ -296,7 +296,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                ulong addr = simple_strtoul(argv[2], NULL, 16);
                ulong cnt  = simple_strtoul(argv[4], NULL, 16);
                ulong n;
-#ifdef CFG_64BIT_LBA
+#ifdef CONFIG_SYS_64BIT_LBA
                lbaint_t blk  = simple_strtoull(argv[3], NULL, 16);
 
                printf ("\nIDE read: device %d block # %qd, count %ld ... ",
@@ -325,7 +325,7 @@ int do_ide (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                ulong addr = simple_strtoul(argv[2], NULL, 16);
                ulong cnt  = simple_strtoul(argv[4], NULL, 16);
                ulong n;
-#ifdef CFG_64BIT_LBA
+#ifdef CONFIG_SYS_64BIT_LBA
                lbaint_t blk  = simple_strtoull(argv[3], NULL, 16);
 
                printf ("\nIDE write: device %d block # %qd, count %ld ... ",
@@ -371,7 +371,7 @@ int do_diskboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        show_boot_progress (41);
        switch (argc) {
        case 1:
-               addr = CFG_LOAD_ADDR;
+               addr = CONFIG_SYS_LOAD_ADDR;
                boot_device = getenv ("bootdevice");
                break;
        case 2:
@@ -525,8 +525,8 @@ void inline
 __ide_outb(int dev, int port, unsigned char val)
 {
        debug ("ide_outb (dev= %d, port= 0x%x, val= 0x%02x) : @ 0x%08lx\n",
-               dev, port, val, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
-       outb(val, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
+               dev, port, val, (ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)));
+       outb(val, (ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)));
 }
 void inline ide_outb (int dev, int port, unsigned char val)
                __attribute__((weak, alias("__ide_outb")));
@@ -535,9 +535,9 @@ unsigned char inline
 __ide_inb(int dev, int port)
 {
        uchar val;
-       val = inb((ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)));
+       val = inb((ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)));
        debug ("ide_inb (dev= %d, port= 0x%x) : @ 0x%08lx -> 0x%02x\n",
-               dev, port, (ATA_CURR_BASE(dev)+CFG_ATA_PORT_ADDR(port)), val);
+               dev, port, (ATA_CURR_BASE(dev)+CONFIG_SYS_ATA_PORT_ADDR(port)), val);
        return val;
 }
 unsigned char inline ide_inb(int dev, int port)
@@ -557,7 +557,7 @@ void ide_init (void)
 {
 
 #ifdef CONFIG_IDE_8xx_DIRECT
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile pcmconf8xx_t *pcmp = &(immr->im_pcmcia);
 #endif
        unsigned char c;
@@ -639,17 +639,17 @@ void ide_init (void)
         * According to spec, this can take up to 31 seconds!
         */
 #ifndef CONFIG_AMIGAONEG3SE
-       for (bus=0; bus<CFG_IDE_MAXBUS; ++bus) {
-               int dev = bus * (CFG_IDE_MAXDEVICE / CFG_IDE_MAXBUS);
+       for (bus=0; bus<CONFIG_SYS_IDE_MAXBUS; ++bus) {
+               int dev = bus * (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS);
 #else
        s = getenv("ide_maxbus");
        if (s)
                max_bus_scan = simple_strtol(s, NULL, 10);
        else
-               max_bus_scan = CFG_IDE_MAXBUS;
+               max_bus_scan = CONFIG_SYS_IDE_MAXBUS;
 
        for (bus=0; bus<max_bus_scan; ++bus) {
-               int dev = bus * (CFG_IDE_MAXDEVICE / max_bus_scan);
+               int dev = bus * (CONFIG_SYS_IDE_MAXDEVICE / max_bus_scan);
 #endif
 
 #ifdef CONFIG_IDE_8xx_PCCARD
@@ -722,7 +722,7 @@ void ide_init (void)
        ide_led ((LED_IDE1 | LED_IDE2), 0);     /* LED's off    */
 
        curr_device = -1;
-       for (i=0; i<CFG_IDE_MAXDEVICE; ++i) {
+       for (i=0; i<CONFIG_SYS_IDE_MAXDEVICE; ++i) {
 #ifdef CONFIG_IDE_LED
                int led = (IDE_BUS(i) == 0) ? LED_IDE1 : LED_IDE2;
 #endif
@@ -753,7 +753,7 @@ void ide_init (void)
 
 block_dev_desc_t * ide_get_dev(int dev)
 {
-       return (dev < CFG_IDE_MAXDEVICE) ? &ide_dev_desc[dev] : NULL;
+       return (dev < CONFIG_SYS_IDE_MAXDEVICE) ? &ide_dev_desc[dev] : NULL;
 }
 
 
@@ -762,7 +762,7 @@ block_dev_desc_t * ide_get_dev(int dev)
 static void
 set_pcmcia_timing (int pmode)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile pcmconf8xx_t *pcmp = &(immr->im_pcmcia);
        ulong timings;
 
@@ -775,33 +775,33 @@ set_pcmcia_timing (int pmode)
 
        /* IDE 0
         */
-       pcmp->pcmc_pbr0 = CFG_PCMCIA_PBR0;
-       pcmp->pcmc_por0 = CFG_PCMCIA_POR0
-#if (CFG_PCMCIA_POR0 != 0)
+       pcmp->pcmc_pbr0 = CONFIG_SYS_PCMCIA_PBR0;
+       pcmp->pcmc_por0 = CONFIG_SYS_PCMCIA_POR0
+#if (CONFIG_SYS_PCMCIA_POR0 != 0)
                        | timings
 #endif
                        ;
        debug ("PBR0: %08x  POR0: %08x\n", pcmp->pcmc_pbr0, pcmp->pcmc_por0);
 
-       pcmp->pcmc_pbr1 = CFG_PCMCIA_PBR1;
-       pcmp->pcmc_por1 = CFG_PCMCIA_POR1
-#if (CFG_PCMCIA_POR1 != 0)
+       pcmp->pcmc_pbr1 = CONFIG_SYS_PCMCIA_PBR1;
+       pcmp->pcmc_por1 = CONFIG_SYS_PCMCIA_POR1
+#if (CONFIG_SYS_PCMCIA_POR1 != 0)
                        | timings
 #endif
                        ;
        debug ("PBR1: %08x  POR1: %08x\n", pcmp->pcmc_pbr1, pcmp->pcmc_por1);
 
-       pcmp->pcmc_pbr2 = CFG_PCMCIA_PBR2;
-       pcmp->pcmc_por2 = CFG_PCMCIA_POR2
-#if (CFG_PCMCIA_POR2 != 0)
+       pcmp->pcmc_pbr2 = CONFIG_SYS_PCMCIA_PBR2;
+       pcmp->pcmc_por2 = CONFIG_SYS_PCMCIA_POR2
+#if (CONFIG_SYS_PCMCIA_POR2 != 0)
                        | timings
 #endif
                        ;
        debug ("PBR2: %08x  POR2: %08x\n", pcmp->pcmc_pbr2, pcmp->pcmc_por2);
 
-       pcmp->pcmc_pbr3 = CFG_PCMCIA_PBR3;
-       pcmp->pcmc_por3 = CFG_PCMCIA_POR3
-#if (CFG_PCMCIA_POR3 != 0)
+       pcmp->pcmc_pbr3 = CONFIG_SYS_PCMCIA_PBR3;
+       pcmp->pcmc_por3 = CONFIG_SYS_PCMCIA_POR3
+#if (CONFIG_SYS_PCMCIA_POR3 != 0)
                        | timings
 #endif
                        ;
@@ -809,33 +809,33 @@ set_pcmcia_timing (int pmode)
 
        /* IDE 1
         */
-       pcmp->pcmc_pbr4 = CFG_PCMCIA_PBR4;
-       pcmp->pcmc_por4 = CFG_PCMCIA_POR4
-#if (CFG_PCMCIA_POR4 != 0)
+       pcmp->pcmc_pbr4 = CONFIG_SYS_PCMCIA_PBR4;
+       pcmp->pcmc_por4 = CONFIG_SYS_PCMCIA_POR4
+#if (CONFIG_SYS_PCMCIA_POR4 != 0)
                        | timings
 #endif
                        ;
        debug ("PBR4: %08x  POR4: %08x\n", pcmp->pcmc_pbr4, pcmp->pcmc_por4);
 
-       pcmp->pcmc_pbr5 = CFG_PCMCIA_PBR5;
-       pcmp->pcmc_por5 = CFG_PCMCIA_POR5
-#if (CFG_PCMCIA_POR5 != 0)
+       pcmp->pcmc_pbr5 = CONFIG_SYS_PCMCIA_PBR5;
+       pcmp->pcmc_por5 = CONFIG_SYS_PCMCIA_POR5
+#if (CONFIG_SYS_PCMCIA_POR5 != 0)
                        | timings
 #endif
                        ;
        debug ("PBR5: %08x  POR5: %08x\n", pcmp->pcmc_pbr5, pcmp->pcmc_por5);
 
-       pcmp->pcmc_pbr6 = CFG_PCMCIA_PBR6;
-       pcmp->pcmc_por6 = CFG_PCMCIA_POR6
-#if (CFG_PCMCIA_POR6 != 0)
+       pcmp->pcmc_pbr6 = CONFIG_SYS_PCMCIA_PBR6;
+       pcmp->pcmc_por6 = CONFIG_SYS_PCMCIA_POR6
+#if (CONFIG_SYS_PCMCIA_POR6 != 0)
                        | timings
 #endif
                        ;
        debug ("PBR6: %08x  POR6: %08x\n", pcmp->pcmc_pbr6, pcmp->pcmc_por6);
 
-       pcmp->pcmc_pbr7 = CFG_PCMCIA_PBR7;
-       pcmp->pcmc_por7 = CFG_PCMCIA_POR7
-#if (CFG_PCMCIA_POR7 != 0)
+       pcmp->pcmc_pbr7 = CONFIG_SYS_PCMCIA_PBR7;
+       pcmp->pcmc_por7 = CONFIG_SYS_PCMCIA_POR7
+#if (CONFIG_SYS_PCMCIA_POR7 != 0)
                        | timings
 #endif
                        ;
@@ -1079,7 +1079,7 @@ static void ide_ident (block_dev_desc_t *dev_desc)
        if (s) {
                max_bus_scan = simple_strtol(s, NULL, 10);
        } else {
-               max_bus_scan = CFG_IDE_MAXBUS;
+               max_bus_scan = CONFIG_SYS_IDE_MAXBUS;
        }
        if (device >= max_bus_scan*2) {
                dev_desc->type=DEV_TYPE_UNKNOWN;
@@ -1359,7 +1359,7 @@ ulong ide_read (int device, lbaint_t blknr, ulong blkcnt, void *buffer)
                        /* write high bits */
                        ide_outb (device, ATA_SECT_CNT, 0);
                        ide_outb (device, ATA_LBA_LOW,  (blknr >> 24) & 0xFF);
-#ifdef CFG_64BIT_LBA
+#ifdef CONFIG_SYS_64BIT_LBA
                        ide_outb (device, ATA_LBA_MID,  (blknr >> 32) & 0xFF);
                        ide_outb (device, ATA_LBA_HIGH, (blknr >> 40) & 0xFF);
 #else
@@ -1397,7 +1397,7 @@ ulong ide_read (int device, lbaint_t blknr, ulong blkcnt, void *buffer)
                }
 
                if ((c&(ATA_STAT_DRQ|ATA_STAT_BUSY|ATA_STAT_ERR)) != ATA_STAT_DRQ) {
-#if defined(CFG_64BIT_LBA) && defined(CFG_64BIT_VSPRINTF)
+#if defined(CONFIG_SYS_64BIT_LBA) && defined(CONFIG_SYS_64BIT_VSPRINTF)
                        printf ("Error (no IRQ) dev %d blk %qd: status 0x%02x\n",
                                device, blknr, c);
 #else
@@ -1454,7 +1454,7 @@ ulong ide_write (int device, lbaint_t blknr, ulong blkcnt, void *buffer)
                        /* write high bits */
                        ide_outb (device, ATA_SECT_CNT, 0);
                        ide_outb (device, ATA_LBA_LOW,  (blknr >> 24) & 0xFF);
-#ifdef CFG_64BIT_LBA
+#ifdef CONFIG_SYS_64BIT_LBA
                        ide_outb (device, ATA_LBA_MID,  (blknr >> 32) & 0xFF);
                        ide_outb (device, ATA_LBA_HIGH, (blknr >> 40) & 0xFF);
 #else
@@ -1487,7 +1487,7 @@ ulong ide_write (int device, lbaint_t blknr, ulong blkcnt, void *buffer)
                c = ide_wait (device, IDE_TIME_OUT);    /* can't take over 500 ms */
 
                if ((c&(ATA_STAT_DRQ|ATA_STAT_BUSY|ATA_STAT_ERR)) != ATA_STAT_DRQ) {
-#if defined(CFG_64BIT_LBA) && defined(CFG_64BIT_VSPRINTF)
+#if defined(CONFIG_SYS_64BIT_LBA) && defined(CONFIG_SYS_64BIT_VSPRINTF)
                        printf ("Error (no IRQ) dev %d blk %qd: status 0x%02x\n",
                                device, blknr, c);
 #else
@@ -1567,15 +1567,15 @@ extern void ide_set_reset(int idereset);
 
 static void ide_reset (void)
 {
-#if defined(CFG_PB_12V_ENABLE) || defined(CFG_PB_IDE_MOTOR)
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+#if defined(CONFIG_SYS_PB_12V_ENABLE) || defined(CONFIG_SYS_PB_IDE_MOTOR)
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 #endif
        int i;
 
        curr_device = -1;
-       for (i=0; i<CFG_IDE_MAXBUS; ++i)
+       for (i=0; i<CONFIG_SYS_IDE_MAXBUS; ++i)
                ide_bus_ok[i] = 0;
-       for (i=0; i<CFG_IDE_MAXDEVICE; ++i)
+       for (i=0; i<CONFIG_SYS_IDE_MAXDEVICE; ++i)
                ide_dev_desc[i].type = DEV_TYPE_UNKNOWN;
 
        ide_set_reset (1); /* assert reset */
@@ -1585,11 +1585,11 @@ static void ide_reset (void)
 
        WATCHDOG_RESET();
 
-#ifdef CFG_PB_12V_ENABLE
-       immr->im_cpm.cp_pbdat &= ~(CFG_PB_12V_ENABLE);  /* 12V Enable output OFF */
-       immr->im_cpm.cp_pbpar &= ~(CFG_PB_12V_ENABLE);
-       immr->im_cpm.cp_pbodr &= ~(CFG_PB_12V_ENABLE);
-       immr->im_cpm.cp_pbdir |=   CFG_PB_12V_ENABLE;
+#ifdef CONFIG_SYS_PB_12V_ENABLE
+       immr->im_cpm.cp_pbdat &= ~(CONFIG_SYS_PB_12V_ENABLE);   /* 12V Enable output OFF */
+       immr->im_cpm.cp_pbpar &= ~(CONFIG_SYS_PB_12V_ENABLE);
+       immr->im_cpm.cp_pbodr &= ~(CONFIG_SYS_PB_12V_ENABLE);
+       immr->im_cpm.cp_pbdir |=   CONFIG_SYS_PB_12V_ENABLE;
 
        /* wait 500 ms for the voltage to stabilize
         */
@@ -1597,19 +1597,19 @@ static void ide_reset (void)
                udelay (1000);
        }
 
-       immr->im_cpm.cp_pbdat |=   CFG_PB_12V_ENABLE;   /* 12V Enable output ON */
-#endif /* CFG_PB_12V_ENABLE */
+       immr->im_cpm.cp_pbdat |=   CONFIG_SYS_PB_12V_ENABLE;    /* 12V Enable output ON */
+#endif /* CONFIG_SYS_PB_12V_ENABLE */
 
-#ifdef CFG_PB_IDE_MOTOR
+#ifdef CONFIG_SYS_PB_IDE_MOTOR
        /* configure IDE Motor voltage monitor pin as input */
-       immr->im_cpm.cp_pbpar &= ~(CFG_PB_IDE_MOTOR);
-       immr->im_cpm.cp_pbodr &= ~(CFG_PB_IDE_MOTOR);
-       immr->im_cpm.cp_pbdir &= ~(CFG_PB_IDE_MOTOR);
+       immr->im_cpm.cp_pbpar &= ~(CONFIG_SYS_PB_IDE_MOTOR);
+       immr->im_cpm.cp_pbodr &= ~(CONFIG_SYS_PB_IDE_MOTOR);
+       immr->im_cpm.cp_pbdir &= ~(CONFIG_SYS_PB_IDE_MOTOR);
 
        /* wait up to 1 s for the motor voltage to stabilize
         */
        for (i=0; i<1000; ++i) {
-               if ((immr->im_cpm.cp_pbdat & CFG_PB_IDE_MOTOR) != 0) {
+               if ((immr->im_cpm.cp_pbdat & CONFIG_SYS_PB_IDE_MOTOR) != 0) {
                        break;
                }
                udelay (1000);
@@ -1626,7 +1626,7 @@ static void ide_reset (void)
 #  endif
 # endif        /* CONFIG_STATUS_LED */
        }
-#endif /* CFG_PB_IDE_MOTOR */
+#endif /* CONFIG_SYS_PB_IDE_MOTOR */
 
        WATCHDOG_RESET();
 
index d758269777324da5bceb0da1d54bd751898beb17..13ad94e20aafa94d5c54e0dc7436e2cad033ff15 100644 (file)
@@ -52,7 +52,7 @@ unimplemented ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 int
 do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #if defined(CONFIG_8xx)
        volatile sysconf8xx_t *sc = &immap->im_siu_conf;
@@ -83,7 +83,7 @@ do_siuinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 int
 do_memcinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #if defined(CONFIG_8xx)
        volatile memctl8xx_t *memctl = &immap->im_memctl;
@@ -151,7 +151,7 @@ do_icinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 int
 do_carinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #if defined(CONFIG_8xx)
        volatile car8xx_t *car = &immap->im_clkrst;
@@ -235,7 +235,7 @@ static void binary (char *label, uint value, int nbits)
 int
 do_iopinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #if defined(CONFIG_8xx)
        volatile iop8xx_t *iop = &immap->im_ioport;
@@ -500,7 +500,7 @@ static void prbrg (int n, uint val)
 int
 do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #if defined(CONFIG_8xx)
        volatile cpm8xx_t *cp = &immap->im_cpm;
@@ -524,7 +524,7 @@ do_brginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 int
 do_i2cinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #if defined(CONFIG_8xx)
        volatile i2c8xx_t *i2c = &immap->im_i2c;
index c6920c9a6b8f7dd04733f9c4efaa46ace1121d6e..791a572cc51a60986cdc21681dea5924b3fb0e3b 100644 (file)
@@ -772,7 +772,7 @@ static int device_validate(u8 type, u8 num, u32 *size)
 {
        if (type == MTD_DEV_TYPE_NOR) {
 #if defined(CONFIG_CMD_FLASH)
-               if (num < CFG_MAX_FLASH_BANKS) {
+               if (num < CONFIG_SYS_MAX_FLASH_BANKS) {
                        extern flash_info_t flash_info[];
                        *size = flash_info[num].size;
 
@@ -780,24 +780,24 @@ static int device_validate(u8 type, u8 num, u32 *size)
                }
 
                printf("no such FLASH device: %s%d (valid range 0 ... %d\n",
-                               MTD_DEV_TYPE(type), num, CFG_MAX_FLASH_BANKS - 1);
+                               MTD_DEV_TYPE(type), num, CONFIG_SYS_MAX_FLASH_BANKS - 1);
 #else
                printf("support for FLASH devices not present\n");
 #endif
        } else if (type == MTD_DEV_TYPE_NAND) {
 #if defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND)
-               if (num < CFG_MAX_NAND_DEVICE) {
+               if (num < CONFIG_SYS_MAX_NAND_DEVICE) {
 #ifndef CONFIG_NAND_LEGACY
                        *size = nand_info[num].size;
 #else
-                       extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+                       extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
                        *size = nand_dev_desc[num].totlen;
 #endif
                        return 0;
                }
 
                printf("no such NAND device: %s%d (valid range 0 ... %d)\n",
-                               MTD_DEV_TYPE(type), num, CFG_MAX_NAND_DEVICE - 1);
+                               MTD_DEV_TYPE(type), num, CONFIG_SYS_MAX_NAND_DEVICE - 1);
 #else
                printf("support for NAND devices not present\n");
 #endif
index 1351fe22cac02d47d330cba238b90dbd4a482645..65a4d692a9fa6dc1a07ac4194cd78bd0c46e9481 100644 (file)
@@ -58,7 +58,7 @@ int do_load_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        int i;
        char *env_echo;
        int rcode = 0;
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
        int load_baudrate, current_baudrate;
 
        load_baudrate = current_baudrate = gd->baudrate;
@@ -70,7 +70,7 @@ int do_load_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                do_echo = 0;
        }
 
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
        if (argc >= 2) {
                offset = simple_strtol(argv[1], NULL, 16);
        }
@@ -93,11 +93,11 @@ int do_load_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                                break;
                }
        }
-#else  /* ! CFG_LOADS_BAUD_CHANGE */
+#else  /* ! CONFIG_SYS_LOADS_BAUD_CHANGE */
        if (argc == 2) {
                offset = simple_strtol(argv[1], NULL, 16);
        }
-#endif /* CFG_LOADS_BAUD_CHANGE */
+#endif /* CONFIG_SYS_LOADS_BAUD_CHANGE */
 
        printf ("## Ready for S-Record download ...\n");
 
@@ -123,7 +123,7 @@ int do_load_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                load_addr = addr;
        }
 
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
        if (load_baudrate != current_baudrate) {
                printf ("## Switch baudrate to %d bps and press ESC ...\n",
                        current_baudrate);
@@ -167,7 +167,7 @@ load_serial (long offset)
                case SREC_DATA3:
                case SREC_DATA4:
                    store_addr = addr + offset;
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
                    if (addr2info(store_addr)) {
                        int rc;
 
@@ -259,7 +259,7 @@ int do_save_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        ulong offset = 0;
        ulong size   = 0;
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
        int save_baudrate, current_baudrate;
 
        save_baudrate = current_baudrate = gd->baudrate;
@@ -268,7 +268,7 @@ int do_save_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        if (argc >= 2) {
                offset = simple_strtoul(argv[1], NULL, 16);
        }
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
        if (argc >= 3) {
                size = simple_strtoul(argv[2], NULL, 16);
        }
@@ -291,11 +291,11 @@ int do_save_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                                break;
                }
        }
-#else  /* ! CFG_LOADS_BAUD_CHANGE */
+#else  /* ! CONFIG_SYS_LOADS_BAUD_CHANGE */
        if (argc == 3) {
                size = simple_strtoul(argv[2], NULL, 16);
        }
-#endif /* CFG_LOADS_BAUD_CHANGE */
+#endif /* CONFIG_SYS_LOADS_BAUD_CHANGE */
 
        printf ("## Ready for S-Record upload, press ENTER to proceed ...\n");
        for (;;) {
@@ -307,7 +307,7 @@ int do_save_serial (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        } else {
                printf ("## S-Record upload complete\n");
        }
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
        if (save_baudrate != current_baudrate) {
                printf ("## Switch baudrate to %d bps and press ESC ...\n",
                        (int)current_baudrate);
@@ -441,8 +441,8 @@ int do_load_serial_bin (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        int rcode = 0;
        char *s;
 
-       /* pre-set offset from CFG_LOAD_ADDR */
-       offset = CFG_LOAD_ADDR;
+       /* pre-set offset from CONFIG_SYS_LOAD_ADDR */
+       offset = CONFIG_SYS_LOAD_ADDR;
 
        /* pre-set offset from $loadaddr */
        if ((s = getenv("loadaddr")) != NULL) {
@@ -1001,7 +1001,7 @@ static ulong load_serial_ymodem (ulong offset)
                        store_addr = addr + offset;
                        size += res;
                        addr += res;
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
                        if (addr2info (store_addr)) {
                                int rc;
 
@@ -1042,7 +1042,7 @@ static ulong load_serial_ymodem (ulong offset)
 
 #if defined(CONFIG_CMD_LOADS)
 
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
 U_BOOT_CMD(
        loads, 3, 0,    do_load_serial,
        "loads   - load S-Record file over serial line\n",
@@ -1051,14 +1051,14 @@ U_BOOT_CMD(
        " with offset 'off' and baudrate 'baud'\n"
 );
 
-#else  /* ! CFG_LOADS_BAUD_CHANGE */
+#else  /* ! CONFIG_SYS_LOADS_BAUD_CHANGE */
 U_BOOT_CMD(
        loads, 2, 0,    do_load_serial,
        "loads   - load S-Record file over serial line\n",
        "[ off ]\n"
        "    - load S-Record file over serial line with offset 'off'\n"
 );
-#endif /* CFG_LOADS_BAUD_CHANGE */
+#endif /* CONFIG_SYS_LOADS_BAUD_CHANGE */
 
 /*
  * SAVES always requires LOADS support, but not vice versa
@@ -1066,7 +1066,7 @@ U_BOOT_CMD(
 
 
 #if defined(CONFIG_CMD_SAVES)
-#ifdef CFG_LOADS_BAUD_CHANGE
+#ifdef CONFIG_SYS_LOADS_BAUD_CHANGE
 U_BOOT_CMD(
        saves, 4, 0,    do_save_serial,
        "saves   - save S-Record file over serial line\n",
@@ -1074,14 +1074,14 @@ U_BOOT_CMD(
        "    - save S-Record file over serial line"
        " with offset 'off', size 'size' and baudrate 'baud'\n"
 );
-#else  /* ! CFG_LOADS_BAUD_CHANGE */
+#else  /* ! CONFIG_SYS_LOADS_BAUD_CHANGE */
 U_BOOT_CMD(
        saves, 3, 0,    do_save_serial,
        "saves   - save S-Record file over serial line\n",
        "[ off ] [size]\n"
        "    - save S-Record file over serial line with offset 'off' and size 'size'\n"
 );
-#endif /* CFG_LOADS_BAUD_CHANGE */
+#endif /* CONFIG_SYS_LOADS_BAUD_CHANGE */
 #endif
 #endif
 
index fdcc57571aa9d43a3a0ce849aa03ae453bf09c56..febdb90cfcb243530d2d47d727b78558c03b833a 100644 (file)
@@ -68,7 +68,7 @@ static char *lbuf;
 
 unsigned long __logbuffer_base(void)
 {
-       return CFG_SDRAM_BASE + gd->bd->bi_memsize - LOGBUFF_LEN;
+       return CONFIG_SYS_SDRAM_BASE + gd->bd->bi_memsize - LOGBUFF_LEN;
 }
 unsigned long logbuffer_base (void) __attribute__((weak, alias("__logbuffer_base")));
 
index 07b08fb055155d7efae191f8bf441fa1765bc343..d7666c2f302591b5c8461f9514c66c32606fa93c 100644 (file)
@@ -383,7 +383,7 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                return 1;
        }
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        /* check if we are copying to Flash */
        if ( (addr2info(dest) != NULL)
 #ifdef CONFIG_HAS_DATAFLASH
@@ -463,7 +463,7 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        /* Check if we are copying from DataFlash to RAM */
        if (addr_dataflash(addr) && !addr_dataflash(dest)
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
                                 && (addr2info(dest) == NULL)
 #endif
           ){
@@ -663,7 +663,7 @@ int do_mem_loopw (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 /*
  * Perform a memory test. A more complete alternative test can be
- * configured using CFG_ALT_MEMTEST. The complete test loops until
+ * configured using CONFIG_SYS_ALT_MEMTEST. The complete test loops until
  * interrupted by ctrl-c or by a failure of one of the sub-tests.
  */
 int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
@@ -673,7 +673,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        ulong   readback;
        int     rcode = 0;
 
-#if defined(CFG_ALT_MEMTEST)
+#if defined(CONFIG_SYS_ALT_MEMTEST)
        vu_long len;
        vu_long offset;
        vu_long test_offset;
@@ -681,8 +681,8 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        vu_long temp;
        vu_long anti_pattern;
        vu_long num_words;
-#if defined(CFG_MEMTEST_SCRATCH)
-       vu_long *dummy = (vu_long*)CFG_MEMTEST_SCRATCH;
+#if defined(CONFIG_SYS_MEMTEST_SCRATCH)
+       vu_long *dummy = (vu_long*)CONFIG_SYS_MEMTEST_SCRATCH;
 #else
        vu_long *dummy = 0;     /* yes, this is address 0x0, not NULL */
 #endif
@@ -707,13 +707,13 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        if (argc > 1) {
                start = (ulong *)simple_strtoul(argv[1], NULL, 16);
        } else {
-               start = (ulong *)CFG_MEMTEST_START;
+               start = (ulong *)CONFIG_SYS_MEMTEST_START;
        }
 
        if (argc > 2) {
                end = (ulong *)simple_strtoul(argv[2], NULL, 16);
        } else {
-               end = (ulong *)(CFG_MEMTEST_END);
+               end = (ulong *)(CONFIG_SYS_MEMTEST_END);
        }
 
        if (argc > 3) {
@@ -722,7 +722,7 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                pattern = 0;
        }
 
-#if defined(CFG_ALT_MEMTEST)
+#if defined(CONFIG_SYS_ALT_MEMTEST)
        printf ("Testing %08x ... %08x:\n", (uint)start, (uint)end);
        PRINTF("%s:%d: start 0x%p end 0x%p\n",
                __FUNCTION__, __LINE__, start, end);
index 126b538ce8d551ecf5e0e1df85e9d0e5924bc932..3ea8ee07f760e01a2c622bff5b6c8d79a0ab4bf1 100644 (file)
@@ -37,7 +37,7 @@ int do_sleep (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                return 1;
        }
 
-       delay = simple_strtoul(argv[1], NULL, 10) * CFG_HZ;
+       delay = simple_strtoul(argv[1], NULL, 10) * CONFIG_SYS_HZ;
 
        while (get_timer(start) < delay) {
                if (ctrlc ()) {
index c8444fb841c5623a069928dbd0d8a18dc8e1b208..f3a7f49e10f84634a61d94bb7e02118f14e7104c 100644 (file)
@@ -82,7 +82,7 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 #endif
 
 U_BOOT_CMD(
-       cpu, CFG_MAXARGS, 1, cpu_cmd,
+       cpu, CONFIG_SYS_MAXARGS, 1, cpu_cmd,
        "cpu     - Multiprocessor CPU boot manipulation and release\n",
            "<num> reset                 - Reset cpu <num>\n"
        "cpu <num> status                - Status of cpu <num>\n"
index b94a2bf1d7ed1295a4b1e348c72c7db1283055e0..ea43f4f86e09b8040fdfd7d711b12784e326d354 100644 (file)
@@ -171,8 +171,8 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        size_t size;
        char *cmd, *s;
        nand_info_t *nand;
-#ifdef CFG_NAND_QUIET
-       int quiet = CFG_NAND_QUIET;
+#ifdef CONFIG_SYS_NAND_QUIET
+       int quiet = CONFIG_SYS_NAND_QUIET;
 #else
        int quiet = 0;
 #endif
@@ -190,7 +190,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        if (strcmp(cmd, "info") == 0) {
 
                putc('\n');
-               for (i = 0; i < CFG_MAX_NAND_DEVICE; i++) {
+               for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++) {
                        if (nand_info[i].name)
                                printf("Device %d: %s, sector size %u KiB\n",
                                       i, nand_info[i].name,
@@ -203,7 +203,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
                if (argc < 3) {
                        if ((nand_curr_device < 0) ||
-                           (nand_curr_device >= CFG_MAX_NAND_DEVICE))
+                           (nand_curr_device >= CONFIG_SYS_MAX_NAND_DEVICE))
                                puts("\nno devices available\n");
                        else
                                printf("\nDevice %d: %s\n", nand_curr_device,
@@ -211,7 +211,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        return 0;
                }
                dev = (int)simple_strtoul(argv[2], NULL, 10);
-               if (dev < 0 || dev >= CFG_MAX_NAND_DEVICE || !nand_info[dev].name) {
+               if (dev < 0 || dev >= CONFIG_SYS_MAX_NAND_DEVICE || !nand_info[dev].name) {
                        puts("No such device\n");
                        return 1;
                }
@@ -219,7 +219,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                puts("... is now current device\n");
                nand_curr_device = dev;
 
-#ifdef CFG_NAND_SELECT_DEVICE
+#ifdef CONFIG_SYS_NAND_SELECT_DEVICE
                /*
                 * Select the chip in the board/cpu specific driver
                 */
@@ -238,7 +238,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                goto usage;
 
        /* the following commands operate on the current device */
-       if (nand_curr_device < 0 || nand_curr_device >= CFG_MAX_NAND_DEVICE ||
+       if (nand_curr_device < 0 || nand_curr_device >= CONFIG_SYS_MAX_NAND_DEVICE ||
            !nand_info[nand_curr_device].name) {
                puts("\nno devices available\n");
                return 1;
@@ -606,7 +606,7 @@ int do_nandboot(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        if (argc == 3)
                                addr = simple_strtoul(argv[1], NULL, 16);
                        else
-                               addr = CFG_LOAD_ADDR;
+                               addr = CONFIG_SYS_LOAD_ADDR;
                        return nand_load_image(cmdtp, &nand_info[dev->id->num],
                                               part->offset, addr, argv[0]);
                }
@@ -616,7 +616,7 @@ int do_nandboot(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        show_boot_progress(52);
        switch (argc) {
        case 1:
-               addr = CFG_LOAD_ADDR;
+               addr = CONFIG_SYS_LOAD_ADDR;
                boot_device = getenv("bootdevice");
                break;
        case 2:
@@ -651,7 +651,7 @@ usage:
 
        idx = simple_strtoul(boot_device, NULL, 16);
 
-       if (idx < 0 || idx >= CFG_MAX_NAND_DEVICE || !nand_info[idx].name) {
+       if (idx < 0 || idx >= CONFIG_SYS_MAX_NAND_DEVICE || !nand_info[idx].name) {
                printf("\n** Device %d not available\n", idx);
                show_boot_progress(-55);
                return 1;
@@ -728,7 +728,7 @@ void archflashwp(void *archdata, int wp);
 /*
  * Imports from nand_legacy.c
  */
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 extern int curr_device;
 extern int nand_legacy_erase(struct nand_chip *nand, size_t ofs,
                            size_t len, int clean);
@@ -757,7 +757,7 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
                        putc ('\n');
 
-                       for (i = 0; i < CFG_MAX_NAND_DEVICE; ++i) {
+                       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; ++i) {
                                if (nand_dev_desc[i].ChipID ==
                                    NAND_ChipID_UNKNOWN)
                                        continue;       /* list only known devices */
@@ -768,7 +768,7 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
                } else if (strcmp (argv[1], "device") == 0) {
                        if ((curr_device < 0)
-                           || (curr_device >= CFG_MAX_NAND_DEVICE)) {
+                           || (curr_device >= CONFIG_SYS_MAX_NAND_DEVICE)) {
                                puts ("\nno devices available\n");
                                return 1;
                        }
@@ -778,7 +778,7 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
                } else if (strcmp (argv[1], "bad") == 0) {
                        if ((curr_device < 0)
-                           || (curr_device >= CFG_MAX_NAND_DEVICE)) {
+                           || (curr_device >= CONFIG_SYS_MAX_NAND_DEVICE)) {
                                puts ("\nno devices available\n");
                                return 1;
                        }
@@ -794,7 +794,7 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        int dev = (int) simple_strtoul (argv[2], NULL, 10);
 
                        printf ("\nDevice %d: ", dev);
-                       if (dev >= CFG_MAX_NAND_DEVICE) {
+                       if (dev >= CONFIG_SYS_MAX_NAND_DEVICE) {
                                puts ("unknown device\n");
                                return 1;
                        }
@@ -866,7 +866,7 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        else if (cmdtail && !strcmp (cmdtail, ".e"))
                                cmd |= NANDRW_JFFS2;    /* skip bad blocks */
 #endif
-#ifdef CFG_NAND_SKIP_BAD_DOT_I
+#ifdef CONFIG_SYS_NAND_SKIP_BAD_DOT_I
                        /* need ".i" same as ".jffs2s" for compatibility with older units (esd) */
                        /* ".i" for image -> read skips bad block (no 0xff) */
                        else if (cmdtail && !strcmp (cmdtail, ".i")) {
@@ -874,7 +874,7 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                                if (cmd & NANDRW_READ)
                                        cmd |= NANDRW_JFFS2_SKIP;       /* skip bad blocks (on read too) */
                        }
-#endif /* CFG_NAND_SKIP_BAD_DOT_I */
+#endif /* CONFIG_SYS_NAND_SKIP_BAD_DOT_I */
                        else if (cmdtail) {
                                printf ("Usage:\n%s\n", cmdtp->usage);
                                return 1;
@@ -952,7 +952,7 @@ int do_nandboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        show_boot_progress (52);
        switch (argc) {
        case 1:
-               addr = CFG_LOAD_ADDR;
+               addr = CONFIG_SYS_LOAD_ADDR;
                boot_device = getenv ("bootdevice");
                break;
        case 2:
@@ -984,7 +984,7 @@ int do_nandboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        dev = simple_strtoul(boot_device, &ep, 16);
 
-       if ((dev >= CFG_MAX_NAND_DEVICE) ||
+       if ((dev >= CONFIG_SYS_MAX_NAND_DEVICE) ||
            (nand_dev_desc[dev].ChipID == NAND_ChipID_UNKNOWN)) {
                printf ("\n** Device %d not available\n", dev);
                show_boot_progress (-55);
index 637d6c948d5f26bde36e00010a62b8014c3ee1fd..d280cb02c47af9c84217e4badfaea7ba787e02a2 100644 (file)
@@ -72,7 +72,7 @@ DECLARE_GLOBAL_DATA_PTR;
 /*
  * Table with supported baudrates (defined in config_xyz.h)
  */
-static const unsigned long baudrate_table[] = CFG_BAUDRATE_TABLE;
+static const unsigned long baudrate_table[] = CONFIG_SYS_BAUDRATE_TABLE;
 #define        N_BAUDRATES (sizeof(baudrate_table) / sizeof(baudrate_table[0]))
 
 
@@ -416,9 +416,9 @@ int do_setenv (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 #if defined(CONFIG_CMD_ASKENV)
 int do_askenv ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-       extern char console_buffer[CFG_CBSIZE];
-       char message[CFG_CBSIZE];
-       int size = CFG_CBSIZE - 1;
+       extern char console_buffer[CONFIG_SYS_CBSIZE];
+       char message[CONFIG_SYS_CBSIZE];
+       int size = CONFIG_SYS_CBSIZE - 1;
        int len;
        char *local_args[4];
 
@@ -464,8 +464,8 @@ int do_askenv ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                break;
        }
 
-       if (size >= CFG_CBSIZE)
-               size = CFG_CBSIZE - 1;
+       if (size >= CONFIG_SYS_CBSIZE)
+               size = CONFIG_SYS_CBSIZE - 1;
 
        if (size <= 0)
                return 1;
@@ -580,7 +580,7 @@ int envmatch (uchar *s1, int i2)
 /**************************************************/
 
 U_BOOT_CMD(
-       printenv, CFG_MAXARGS, 1,       do_printenv,
+       printenv, CONFIG_SYS_MAXARGS, 1,        do_printenv,
        "printenv- print environment variables\n",
        "\n    - print values of all environment variables\n"
        "printenv name ...\n"
@@ -588,7 +588,7 @@ U_BOOT_CMD(
 );
 
 U_BOOT_CMD(
-       setenv, CFG_MAXARGS, 0, do_setenv,
+       setenv, CONFIG_SYS_MAXARGS, 0,  do_setenv,
        "setenv  - set environment variables\n",
        "name value ...\n"
        "    - set environment variable 'name' to 'value ...'\n"
@@ -612,7 +612,7 @@ U_BOOT_CMD(
 #if defined(CONFIG_CMD_ASKENV)
 
 U_BOOT_CMD(
-       askenv, CFG_MAXARGS,    1,      do_askenv,
+       askenv, CONFIG_SYS_MAXARGS,     1,      do_askenv,
        "askenv  - get environment variables from stdin\n",
        "name [message] [size]\n"
        "    - get environment variable 'name' from stdin (max 'size' chars)\n"
@@ -629,7 +629,7 @@ U_BOOT_CMD(
 #if defined(CONFIG_CMD_RUN)
 int do_run (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
 U_BOOT_CMD(
-       run,    CFG_MAXARGS,    1,      do_run,
+       run,    CONFIG_SYS_MAXARGS,     1,      do_run,
        "run     - run commands in an environment variable\n",
        "var [...]\n"
        "    - run the commands in the environment variable(s) 'var'\n"
index b2aa833abfbcf0b370bdb6c067b6d4018f9f1bc4..67ff2fbc3b45181a6069941596a8707bc52ae289 100644 (file)
@@ -48,7 +48,7 @@ void pci_header_show_brief(pci_dev_t dev);
  * Subroutine:  pciinfo
  *
  * Description: Show information about devices on PCI bus.
- *                             Depending on the define CFG_SHORT_PCI_LISTING
+ *                             Depending on the define CONFIG_SYS_SHORT_PCI_LISTING
  *                             the output will be more or less exhaustive.
  *
  * Inputs:     bus_no          the number of the bus to be scanned.
index dcd07c05e57ffbaf9a2f44b5dd2fd99e212a58c2..23fad3bcb13f052e7f948c3be75ce19dccffb733 100644 (file)
@@ -278,8 +278,8 @@ int check_ide_device (int slot)
        int found = 0;
        int i;
 
-       addr = (volatile uchar *)(CFG_PCMCIA_MEM_ADDR +
-                                 CFG_PCMCIA_MEM_SIZE * (slot * 4));
+       addr = (volatile uchar *)(CONFIG_SYS_PCMCIA_MEM_ADDR +
+                                 CONFIG_SYS_PCMCIA_MEM_SIZE * (slot * 4));
        debug ("PCMCIA MEM: %08lX\n", (ulong)addr);
 
        start = p = (volatile uchar *) addr;
index c0a145991d1c90f384f2b9cabab8960e0ce84e08..4c8e61ab2103954c2bc941c00c6c402be552379d 100644 (file)
@@ -38,7 +38,7 @@ extern void mpc86xx_reginfo(void);
 int do_reginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
 #if defined(CONFIG_8xx)
-       volatile immap_t     *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t     *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        volatile sysconf8xx_t *sysconf = &immap->im_siu_conf;
        volatile sit8xx_t *timers = &immap->im_sit;
@@ -244,7 +244,7 @@ int do_reginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        puts ("\n\n");
 #elif defined(CONFIG_5xx)
 
-       volatile immap_t        *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t        *immap  = (immap_t *)CONFIG_SYS_IMMR;
        volatile memctl5xx_t    *memctl = &immap->im_memctl;
        volatile sysconf5xx_t   *sysconf = &immap->im_siu_conf;
        volatile sit5xx_t       *timers = &immap->im_sit;
@@ -279,7 +279,7 @@ int do_reginfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 #elif defined(CONFIG_MPC5200)
        puts ("\nMPC5200 registers\n");
-       printf ("MBAR=%08x\n", CFG_MBAR);
+       printf ("MBAR=%08x\n", CONFIG_SYS_MBAR);
        puts ("Memory map registers\n");
        printf ("\tCS0: start %08lX\tstop %08lX\tconfig %08lX\ten %d\n",
                *(volatile ulong*)MPC5XXX_CS0_START,
index b7395d7959f366ac9d756b815e48e216abf40b0d..4f4117ec7095e0d26f435e7ca463befb68631255 100644 (file)
@@ -128,7 +128,7 @@ int do_reiserload (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                if (addr_str != NULL) {
                        addr = simple_strtoul (addr_str, NULL, 16);
                } else {
-                       addr = CFG_LOAD_ADDR;
+                       addr = CONFIG_SYS_LOAD_ADDR;
                }
                filename = getenv ("bootfile");
                count = 0;
index 79c2495d664eff4b0bfbbb3407aa65fff44b4fa7..dd6f1d9a5bf4cfd7cf4d8e41e81d916f0c0e1d96 100644 (file)
 #include <sata.h>
 
 int curr_device = -1;
-block_dev_desc_t sata_dev_desc[CFG_SATA_MAX_DEVICE];
+block_dev_desc_t sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE];
 
 int sata_initialize(void)
 {
        int rc;
        int i;
 
-       for (i = 0; i < CFG_SATA_MAX_DEVICE; i++) {
+       for (i = 0; i < CONFIG_SYS_SATA_MAX_DEVICE; i++) {
                memset(&sata_dev_desc[i], 0, sizeof(struct block_dev_desc));
                sata_dev_desc[i].if_type = IF_TYPE_SATA;
                sata_dev_desc[i].dev = i;
@@ -58,7 +58,7 @@ int sata_initialize(void)
 
 block_dev_desc_t *sata_get_dev(int dev)
 {
-       return (dev < CFG_SATA_MAX_DEVICE) ? &sata_dev_desc[dev] : NULL;
+       return (dev < CONFIG_SYS_SATA_MAX_DEVICE) ? &sata_dev_desc[dev] : NULL;
 }
 
 int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
@@ -74,7 +74,7 @@ int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                if (strncmp(argv[1],"inf", 3) == 0) {
                        int i;
                        putc('\n');
-                       for (i = 0; i < CFG_SATA_MAX_DEVICE; ++i) {
+                       for (i = 0; i < CONFIG_SYS_SATA_MAX_DEVICE; ++i) {
                                if (sata_dev_desc[i].type == DEV_TYPE_UNKNOWN)
                                        continue;
                                printf ("SATA device %d: ", i);
@@ -82,7 +82,7 @@ int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        }
                        return 0;
                } else if (strncmp(argv[1],"dev", 3) == 0) {
-                       if ((curr_device < 0) || (curr_device >= CFG_SATA_MAX_DEVICE)) {
+                       if ((curr_device < 0) || (curr_device >= CONFIG_SYS_SATA_MAX_DEVICE)) {
                                puts("\nno SATA devices available\n");
                                return 1;
                        }
@@ -92,7 +92,7 @@ int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                } else if (strncmp(argv[1],"part",4) == 0) {
                        int dev, ok;
 
-                       for (ok = 0, dev = 0; dev < CFG_SATA_MAX_DEVICE; ++dev) {
+                       for (ok = 0, dev = 0; dev < CONFIG_SYS_SATA_MAX_DEVICE; ++dev) {
                                if (sata_dev_desc[dev].part_type != PART_TYPE_UNKNOWN) {
                                        ++ok;
                                        if (dev)
@@ -113,7 +113,7 @@ int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        int dev = (int)simple_strtoul(argv[2], NULL, 10);
 
                        printf("\nSATA device %d: ", dev);
-                       if (dev >= CFG_SATA_MAX_DEVICE) {
+                       if (dev >= CONFIG_SYS_SATA_MAX_DEVICE) {
                                puts ("unknown device\n");
                                return 1;
                        }
index f3574650ce831ad0d90f1288058b30db8a7f19ec..066fd804a84e00c4b8bac42d8fe366221a2dbbbc 100644 (file)
@@ -59,7 +59,7 @@ static int scsi_max_devs; /* number of highest available scsi device */
 
 static int scsi_curr_dev; /* current device */
 
-static block_dev_desc_t scsi_dev_desc[CFG_SCSI_MAX_DEVICE];
+static block_dev_desc_t scsi_dev_desc[CONFIG_SYS_SCSI_MAX_DEVICE];
 
 /********************************************************************************
  *  forward declerations of some Setup Routines
@@ -88,7 +88,7 @@ void scsi_scan(int mode)
        if(mode==1) {
                printf("scanning bus for devices...\n");
        }
-       for(i=0;i<CFG_SCSI_MAX_DEVICE;i++) {
+       for(i=0;i<CONFIG_SYS_SCSI_MAX_DEVICE;i++) {
                scsi_dev_desc[i].target=0xff;
                scsi_dev_desc[i].lun=0xff;
                scsi_dev_desc[i].lba=0;
@@ -104,9 +104,9 @@ void scsi_scan(int mode)
                scsi_dev_desc[i].block_read=scsi_read;
        }
        scsi_max_devs=0;
-       for(i=0;i<CFG_SCSI_MAX_SCSI_ID;i++) {
+       for(i=0;i<CONFIG_SYS_SCSI_MAX_SCSI_ID;i++) {
                pccb->target=i;
-               for(lun=0;lun<CFG_SCSI_MAX_LUN;lun++) {
+               for(lun=0;lun<CONFIG_SYS_SCSI_MAX_LUN;lun++) {
                        pccb->lun=lun;
                        pccb->pdata=(unsigned char *)&tempbuff;
                        pccb->datalen=512;
@@ -195,7 +195,7 @@ void scsi_init(void)
 
 block_dev_desc_t * scsi_get_dev(int dev)
 {
-       return (dev < CFG_SCSI_MAX_DEVICE) ? &scsi_dev_desc[dev] : NULL;
+       return (dev < CONFIG_SYS_SCSI_MAX_DEVICE) ? &scsi_dev_desc[dev] : NULL;
 }
 
 
@@ -217,7 +217,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        switch (argc) {
        case 1:
-               addr = CFG_LOAD_ADDR;
+               addr = CONFIG_SYS_LOAD_ADDR;
                boot_device = getenv ("bootdevice");
                break;
        case 2:
@@ -356,7 +356,7 @@ int do_scsi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        }
                        if (strncmp(argv[1],"inf",3) == 0) {
                                int i;
-                               for (i=0; i<CFG_SCSI_MAX_DEVICE; ++i) {
+                               for (i=0; i<CONFIG_SYS_SCSI_MAX_DEVICE; ++i) {
                                        if(scsi_dev_desc[i].type==DEV_TYPE_UNKNOWN)
                                                continue; /* list only known devices */
                                        printf ("SCSI dev. %d:  ", i);
@@ -365,7 +365,7 @@ int do_scsi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                                return 0;
                        }
                        if (strncmp(argv[1],"dev",3) == 0) {
-                               if ((scsi_curr_dev < 0) || (scsi_curr_dev >= CFG_SCSI_MAX_DEVICE)) {
+                               if ((scsi_curr_dev < 0) || (scsi_curr_dev >= CONFIG_SYS_SCSI_MAX_DEVICE)) {
                                        printf("\nno SCSI devices available\n");
                                        return 1;
                                }
@@ -379,7 +379,7 @@ int do_scsi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        }
                        if (strncmp(argv[1],"part",4) == 0) {
                                int dev, ok;
-                               for (ok=0, dev=0; dev<CFG_SCSI_MAX_DEVICE; ++dev) {
+                               for (ok=0, dev=0; dev<CONFIG_SYS_SCSI_MAX_DEVICE; ++dev) {
                                        if (scsi_dev_desc[dev].type!=DEV_TYPE_UNKNOWN) {
                                                ok++;
                                                if (dev)
@@ -398,7 +398,7 @@ int do_scsi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        if (strncmp(argv[1],"dev",3) == 0) {
                                int dev = (int)simple_strtoul(argv[2], NULL, 10);
                                printf ("\nSCSI device %d: ", dev);
-                               if (dev >= CFG_SCSI_MAX_DEVICE) {
+                               if (dev >= CONFIG_SYS_SCSI_MAX_DEVICE) {
                                        printf("unknown device\n");
                                        return 1;
                                }
index c62ca9769cbb5db421d9df33e83c1f23351a47d2..99e551f9772cd1d506e8940f2a2a26d61d113ace 100644 (file)
@@ -321,7 +321,7 @@ int do_usbboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
        switch (argc) {
        case 1:
-               addr = CFG_LOAD_ADDR;
+               addr = CONFIG_SYS_LOAD_ADDR;
                boot_device = getenv ("bootdevice");
                break;
        case 2:
index fc9d79c7d15d6c14c12657d021e9d0ca6c2f3f17..a4a978c5fdc676249bc6f73c7e639acfc1b9dc72 100644 (file)
@@ -70,7 +70,7 @@ do_echo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(
-       echo,   CFG_MAXARGS,    1,      do_echo,
+       echo,   CONFIG_SYS_MAXARGS,     1,      do_echo,
        "echo    - echo args to console\n",
        "[args..]\n"
        "    - echo args to console; \\c suppresses newline\n"
@@ -78,7 +78,7 @@ U_BOOT_CMD(
 
 #endif
 
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 
 int
 do_test (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
@@ -202,7 +202,7 @@ do_test (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(
-       test,   CFG_MAXARGS,    1,      do_test,
+       test,   CONFIG_SYS_MAXARGS,     1,      do_test,
        "test    - minimal test like /bin/sh\n",
        "[args..]\n"
        "    - test functionality\n"
@@ -286,7 +286,7 @@ int do_help (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
         */
        for (i = 1; i < argc; ++i) {
                if ((cmdtp = find_cmd (argv[i])) != NULL) {
-#ifdef CFG_LONGHELP
+#ifdef CONFIG_SYS_LONGHELP
                        /* found - print (long) help info */
                        puts (cmdtp->name);
                        putc (' ');
@@ -300,7 +300,7 @@ int do_help (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 #else  /* no long help available */
                        if (cmdtp->usage)
                                puts (cmdtp->usage);
-#endif /* CFG_LONGHELP */
+#endif /* CONFIG_SYS_LONGHELP */
                } else {
                        printf ("Unknown command '%s' - try 'help'"
                                " without arguments for list of all"
@@ -314,7 +314,7 @@ int do_help (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
 
 U_BOOT_CMD(
-       help,   CFG_MAXARGS,    1,      do_help,
+       help,   CONFIG_SYS_MAXARGS,     1,      do_help,
        "help    - print online help\n",
        "[command ...]\n"
        "    - show help information (for 'command')\n"
@@ -325,18 +325,18 @@ U_BOOT_CMD(
 );
 
 /* This do not ust the U_BOOT_CMD macro as ? can't be used in symbol names */
-#ifdef  CFG_LONGHELP
+#ifdef  CONFIG_SYS_LONGHELP
 cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = {
-       "?",    CFG_MAXARGS,    1,      do_help,
+       "?",    CONFIG_SYS_MAXARGS,     1,      do_help,
        "?       - alias for 'help'\n",
        NULL
 };
 #else
 cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = {
-       "?",    CFG_MAXARGS,    1,      do_help,
+       "?",    CONFIG_SYS_MAXARGS,     1,      do_help,
        "?       - alias for 'help'\n"
 };
-#endif /* CFG_LONGHELP */
+#endif /* CONFIG_SYS_LONGHELP */
 
 /***************************************************************************
  * find command table entry for a command
@@ -570,12 +570,12 @@ static int find_common_prefix(char *argv[])
        return len;
 }
 
-static char tmp_buf[CFG_CBSIZE];       /* copy of console I/O buffer   */
+static char tmp_buf[CONFIG_SYS_CBSIZE];        /* copy of console I/O buffer   */
 
 int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
 {
        int n = *np, col = *colp;
-       char *argv[CFG_MAXARGS + 1];            /* NULL terminated      */
+       char *argv[CONFIG_SYS_MAXARGS + 1];             /* NULL terminated      */
        char *cmdv[20];
        char *s, *t;
        const char *sep;
@@ -583,7 +583,7 @@ int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
        int cnt;
        char last_char;
 
-       if (strcmp(prompt, CFG_PROMPT) != 0)
+       if (strcmp(prompt, CONFIG_SYS_PROMPT) != 0)
                return 0;       /* not in normal console */
 
        cnt = strlen(buf);
@@ -631,7 +631,7 @@ int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
        if (s != NULL) {
                k = len + seplen;
                /* make sure it fits */
-               if (n + k >= CFG_CBSIZE - 2) {
+               if (n + k >= CONFIG_SYS_CBSIZE - 2) {
                        putc('\a');
                        return 1;
                }
index 56d9118cb2d847c32c08f076a182cf2e6f89d789..6f0846f5ee5db302b7cd486caaea9528cf0cc57d 100644 (file)
@@ -33,20 +33,20 @@ DECLARE_GLOBAL_DATA_PTR;
 int console_changed = 0;
 #endif
 
-#ifdef CFG_CONSOLE_IS_IN_ENV
+#ifdef CONFIG_SYS_CONSOLE_IS_IN_ENV
 /*
  * if overwrite_console returns 1, the stdin, stderr and stdout
  * are switched to the serial port, else the settings in the
  * environment are used
  */
-#ifdef CFG_CONSOLE_OVERWRITE_ROUTINE
+#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
 extern int overwrite_console (void);
 #define OVERWRITE_CONSOLE overwrite_console ()
 #else
 #define OVERWRITE_CONSOLE 0
-#endif /* CFG_CONSOLE_OVERWRITE_ROUTINE */
+#endif /* CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE */
 
-#endif /* CFG_CONSOLE_IS_IN_ENV */
+#endif /* CONFIG_SYS_CONSOLE_IS_IN_ENV */
 
 static int console_setfile (int file, device_t * dev)
 {
@@ -99,7 +99,7 @@ void serial_printf (const char *fmt, ...)
 {
        va_list args;
        uint i;
-       char printbuffer[CFG_PBSIZE];
+       char printbuffer[CONFIG_SYS_PBSIZE];
 
        va_start (args, fmt);
 
@@ -144,7 +144,7 @@ void fprintf (int file, const char *fmt, ...)
 {
        va_list args;
        uint i;
-       char printbuffer[CFG_PBSIZE];
+       char printbuffer[CONFIG_SYS_PBSIZE];
 
        va_start (args, fmt);
 
@@ -238,7 +238,7 @@ void printf (const char *fmt, ...)
 {
        va_list args;
        uint i;
-       char printbuffer[CFG_PBSIZE];
+       char printbuffer[CONFIG_SYS_PBSIZE];
 
        va_start (args, fmt);
 
@@ -255,7 +255,7 @@ void printf (const char *fmt, ...)
 void vprintf (const char *fmt, va_list args)
 {
        uint i;
-       char printbuffer[CFG_PBSIZE];
+       char printbuffer[CONFIG_SYS_PBSIZE];
 
        /* For this to work, printbuffer must be larger than
         * anything we ever want to print.
@@ -314,7 +314,7 @@ inline void dbg(const char *fmt, ...)
 {
        va_list args;
        uint    i;
-       char    printbuffer[CFG_PBSIZE];
+       char    printbuffer[CONFIG_SYS_PBSIZE];
 
        if (!once) {
                memset(screen, 0, sizeof(screen));
@@ -398,15 +398,15 @@ int console_init_f (void)
        return (0);
 }
 
-#ifdef CFG_CONSOLE_IS_IN_ENV
+#ifdef CONFIG_SYS_CONSOLE_IS_IN_ENV
 /* Called after the relocation - use desired console functions */
 int console_init_r (void)
 {
        char *stdinname, *stdoutname, *stderrname;
        device_t *inputdev = NULL, *outputdev = NULL, *errdev = NULL;
-#ifdef CFG_CONSOLE_ENV_OVERWRITE
+#ifdef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
        int i;
-#endif /* CFG_CONSOLE_ENV_OVERWRITE */
+#endif /* CONFIG_SYS_CONSOLE_ENV_OVERWRITE */
 
        /* set default handlers at first */
        gd->jt[XF_getc] = serial_getc;
@@ -449,7 +449,7 @@ int console_init_r (void)
 
        gd->flags |= GD_FLG_DEVINIT;    /* device initialization completed */
 
-#ifndef CFG_CONSOLE_INFO_QUIET
+#ifndef CONFIG_SYS_CONSOLE_INFO_QUIET
        /* Print information */
        puts ("In:    ");
        if (stdio_devices[stdin] == NULL) {
@@ -471,14 +471,14 @@ int console_init_r (void)
        } else {
                printf ("%s\n", stdio_devices[stderr]->name);
        }
-#endif /* CFG_CONSOLE_INFO_QUIET */
+#endif /* CONFIG_SYS_CONSOLE_INFO_QUIET */
 
-#ifdef CFG_CONSOLE_ENV_OVERWRITE
+#ifdef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
        /* set the environment variables (will overwrite previous env settings) */
        for (i = 0; i < 3; i++) {
                setenv (stdio_names[i], stdio_devices[i]->name);
        }
-#endif /* CFG_CONSOLE_ENV_OVERWRITE */
+#endif /* CONFIG_SYS_CONSOLE_ENV_OVERWRITE */
 
 #if 0
        /* If nothing usable installed, use only the initial console */
@@ -488,7 +488,7 @@ int console_init_r (void)
        return (0);
 }
 
-#else /* CFG_CONSOLE_IS_IN_ENV */
+#else /* CONFIG_SYS_CONSOLE_IS_IN_ENV */
 
 /* Called after the relocation - use desired console functions */
 int console_init_r (void)
@@ -533,7 +533,7 @@ int console_init_r (void)
 
        gd->flags |= GD_FLG_DEVINIT;    /* device initialization completed */
 
-#ifndef CFG_CONSOLE_INFO_QUIET
+#ifndef CONFIG_SYS_CONSOLE_INFO_QUIET
        /* Print information */
        puts ("In:    ");
        if (stdio_devices[stdin] == NULL) {
@@ -555,7 +555,7 @@ int console_init_r (void)
        } else {
                printf ("%s\n", stdio_devices[stderr]->name);
        }
-#endif /* CFG_CONSOLE_INFO_QUIET */
+#endif /* CONFIG_SYS_CONSOLE_INFO_QUIET */
 
        /* Setting environment variables */
        for (i = 0; i < 3; i++) {
@@ -571,4 +571,4 @@ int console_init_r (void)
        return (0);
 }
 
-#endif /* CFG_CONSOLE_IS_IN_ENV */
+#endif /* CONFIG_SYS_CONSOLE_IS_IN_ENV */
index 479bebbe427dca063195ad007eb8b54f4ec907df..3ed64b27938fa506458a67c6d223fdbd8faa6ae7 100644 (file)
@@ -43,8 +43,8 @@
 #define CONFIG_FPGA_DELAY()
 #endif
 
-#ifndef CFG_FPGA_WAIT
-#define CFG_FPGA_WAIT CFG_HZ/10                /* 100 ms */
+#ifndef CONFIG_SYS_FPGA_WAIT
+#define CONFIG_SYS_FPGA_WAIT CONFIG_SYS_HZ/10          /* 100 ms */
 #endif
 
 static int CYC2_ps_load( Altera_desc *desc, void *buf, size_t bsize );
@@ -147,7 +147,7 @@ static int CYC2_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                                "done:\t0x%p\n\n",
                                __FUNCTION__, &fn, fn, fn->config, fn->status,
                                fn->write, fn->done);
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                printf ("Loading FPGA Device %d...", cookie);
 #endif
 
@@ -167,7 +167,7 @@ static int CYC2_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                ts = get_timer (0);             /* get current time */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for STATUS to go high.\n");
                                (*fn->abort) (cookie);
                                return FPGA_FAIL;
@@ -183,13 +183,13 @@ static int CYC2_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                        (*fn->abort) (cookie);
                        return FPGA_FAIL;
                }
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                puts(" OK? ...");
 #endif
 
                CONFIG_FPGA_DELAY ();
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc (' ');                     /* terminate the dotted line */
 #endif
 
@@ -202,13 +202,13 @@ static int CYC2_ps_load (Altera_desc * desc, void *buf, size_t bsize)
                (*fn->abort) (cookie);
                return (FPGA_FAIL);
        }
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
        puts(" OK\n");
 #endif
 
        ret_val = FPGA_SUCCESS;
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
        if (ret_val == FPGA_SUCCESS) {
                puts ("Done.\n");
        }
index 7d0ac2e9248af2f060c540bcb4bfc01fcb2d3678..ce3b7a00f904b0e394a2fe6388c21bfd779dd064 100644 (file)
@@ -40,12 +40,12 @@ static device_t devs;
 device_t *stdio_devices[] = { NULL, NULL, NULL };
 char *stdio_names[MAX_FILES] = { "stdin", "stdout", "stderr" };
 
-#if defined(CONFIG_SPLASH_SCREEN) && !defined(CFG_DEVICE_NULLDEV)
-#define        CFG_DEVICE_NULLDEV      1
+#if defined(CONFIG_SPLASH_SCREEN) && !defined(CONFIG_SYS_DEVICE_NULLDEV)
+#define        CONFIG_SYS_DEVICE_NULLDEV       1
 #endif
 
 
-#ifdef CFG_DEVICE_NULLDEV
+#ifdef CONFIG_SYS_DEVICE_NULLDEV
 void nulldev_putc(const char c)
 {
        /* nulldev is empty! */
@@ -90,7 +90,7 @@ static void drv_system_init (void)
 
        device_register (&dev);
 
-#ifdef CFG_DEVICE_NULLDEV
+#ifdef CONFIG_SYS_DEVICE_NULLDEV
        memset (&dev, 0, sizeof (dev));
 
        strcpy (dev.name, "nulldev");
@@ -162,7 +162,7 @@ int device_register (device_t * dev)
 /* deregister the device "devname".
  * returns 0 if success, -1 if device is assigned and 1 if devname not found
  */
-#ifdef CFG_DEVICE_DEREGISTER
+#ifdef CONFIG_SYS_DEVICE_DEREGISTER
 int device_deregister(char *devname)
 {
        int l;
@@ -197,7 +197,7 @@ int device_deregister(char *devname)
        }
        return 0;
 }
-#endif /* CFG_DEVICE_DEREGISTER */
+#endif /* CONFIG_SYS_DEVICE_DEREGISTER */
 
 int devices_init (void)
 {
@@ -216,7 +216,7 @@ int devices_init (void)
        INIT_LIST_HEAD(&(devs.list));
 
 #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C)
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 #endif
 #ifdef CONFIG_LCD
        drv_lcd_init ();
index 0fee3affb7fe5cf0bc50df09d7cbe113c28d6968..6be3bb04ac37665d01eb3213015e29a1ea4f4a90 100644 (file)
@@ -103,8 +103,8 @@ uchar default_environment[] = {
 #ifdef CONFIG_SERVERIP
        "serverip="     MK_STR(CONFIG_SERVERIP)         "\0"
 #endif
-#ifdef CFG_AUTOLOAD
-       "autoload="     CFG_AUTOLOAD                    "\0"
+#ifdef CONFIG_SYS_AUTOLOAD
+       "autoload="     CONFIG_SYS_AUTOLOAD                     "\0"
 #endif
 #ifdef CONFIG_PREBOOT
        "preboot="      CONFIG_PREBOOT                  "\0"
@@ -220,7 +220,7 @@ void set_default_env(void)
        memset(env_ptr, 0, sizeof(env_t));
        memcpy(env_ptr->data, default_environment,
               sizeof(default_environment));
-#ifdef CFG_REDUNDAND_ENVIRONMENT
+#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
        env_ptr->flags = 0xFF;
 #endif
        env_crc_update ();
index 1f0f413cf877404319b87a478fb6aa8fe5f9c011..1578d61e6bce019ebba9a45918ee28abfbde5033 100644 (file)
@@ -39,7 +39,7 @@ uchar env_get_char_spec (int index)
 {
        uchar c;
 
-       eeprom_read (CFG_DEF_EEPROM_ADDR,
+       eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR,
                     CONFIG_ENV_OFFSET+index+offsetof(env_t,data),
                     &c, 1);
 
@@ -48,7 +48,7 @@ uchar env_get_char_spec (int index)
 
 void env_relocate_spec (void)
 {
-       eeprom_read (CFG_DEF_EEPROM_ADDR,
+       eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR,
                     CONFIG_ENV_OFFSET,
                     (uchar*)env_ptr,
                     CONFIG_ENV_SIZE);
@@ -56,7 +56,7 @@ void env_relocate_spec (void)
 
 int saveenv(void)
 {
-       return eeprom_write (CFG_DEF_EEPROM_ADDR,
+       return eeprom_write (CONFIG_SYS_DEF_EEPROM_ADDR,
                             CONFIG_ENV_OFFSET,
                             (uchar *)env_ptr,
                             CONFIG_ENV_SIZE);
@@ -77,7 +77,7 @@ int env_init(void)
        eeprom_init (); /* prepare for EEPROM read/write */
 
        /* read old CRC */
-       eeprom_read (CFG_DEF_EEPROM_ADDR,
+       eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR,
                     CONFIG_ENV_OFFSET+offsetof(env_t,crc),
                     (uchar *)&crc, sizeof(ulong));
 
@@ -87,7 +87,7 @@ int env_init(void)
        while (len > 0) {
                int n = (len > sizeof(buf)) ? sizeof(buf) : len;
 
-               eeprom_read (CFG_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, buf, n);
+               eeprom_read (CONFIG_SYS_DEF_EEPROM_ADDR, CONFIG_ENV_OFFSET+off, buf, n);
                new = crc32 (new, buf, n);
                len -= n;
                off += n;
index e79f843fb1cae434f9c332452f251eb76fb5f796..ae6cac4390d8ad60f3551b0a5173d67fce14c5e4 100644 (file)
@@ -51,7 +51,7 @@
  * a seperate section.  Note that ENV_CRC is only defined when building
  * U-Boot itself.
  */
-#if (defined(CFG_USE_PPCENV) || defined(CONFIG_NAND_U_BOOT)) && \
+#if (defined(CONFIG_SYS_USE_PPCENV) || defined(CONFIG_NAND_U_BOOT)) && \
      defined(ENV_CRC) /* Environment embedded in U-Boot .ppcenv section */
 /* XXX - This only works with GNU C */
 #  define __PPCENV__ __attribute__ ((section(".ppcenv")))
@@ -98,7 +98,7 @@
 
 env_t environment __PPCENV__ = {
        ENV_CRC,        /* CRC Sum */
-#ifdef CFG_REDUNDAND_ENVIRONMENT
+#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
        1,              /* Flags: valid */
 #endif
        {
@@ -150,8 +150,8 @@ env_t environment __PPCENV__ = {
 #ifdef CONFIG_SERVERIP
        "serverip="     MK_STR(CONFIG_SERVERIP)         "\0"
 #endif
-#ifdef CFG_AUTOLOAD
-       "autoload="     CFG_AUTOLOAD                    "\0"
+#ifdef CONFIG_SYS_AUTOLOAD
+       "autoload="     CONFIG_SYS_AUTOLOAD                     "\0"
 #endif
 #ifdef CONFIG_ROOTPATH
        "rootpath="     MK_STR(CONFIG_ROOTPATH)         "\0"
index a8b79591dcdc6e385ed6346eadee2a3bb6011ae1..562edd0499c01db799c9851b59d355af7910aa37 100644 (file)
@@ -35,7 +35,7 @@
  * space using its address and data registers. To enable usage of
  * NVRAM in those cases I invented the functions 'nvram_read()' and
  * 'nvram_write()', which will be activated upon the configuration
- * #define CFG_NVRAM_ACCESS_ROUTINE. Note, that those functions are
+ * #define CONFIG_SYS_NVRAM_ACCESS_ROUTINE. Note, that those functions are
  * strongly dependent on the used HW, and must be redefined for each
  * board that wants to use them.
  */
@@ -47,7 +47,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CFG_NVRAM_ACCESS_ROUTINE
+#ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE
 extern void *nvram_read(void *dest, const long src, size_t count);
 extern void nvram_write(long dest, const void *src, size_t count);
 env_t *env_ptr = NULL;
@@ -63,7 +63,7 @@ extern int default_environment_size;
 #ifdef CONFIG_AMIGAONEG3SE
 uchar env_get_char_spec (int index)
 {
-#ifdef CFG_NVRAM_ACCESS_ROUTINE
+#ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE
        uchar c;
 
        nvram_read(&c, CONFIG_ENV_ADDR+index, 1);
@@ -80,7 +80,7 @@ uchar env_get_char_spec (int index)
 #else
 uchar env_get_char_spec (int index)
 {
-#ifdef CFG_NVRAM_ACCESS_ROUTINE
+#ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE
        uchar c;
 
        nvram_read(&c, CONFIG_ENV_ADDR+index, 1);
@@ -94,7 +94,7 @@ uchar env_get_char_spec (int index)
 
 void env_relocate_spec (void)
 {
-#if defined(CFG_NVRAM_ACCESS_ROUTINE)
+#if defined(CONFIG_SYS_NVRAM_ACCESS_ROUTINE)
        nvram_read(env_ptr, CONFIG_ENV_ADDR, CONFIG_ENV_SIZE);
 #else
        memcpy (env_ptr, (void*)CONFIG_ENV_ADDR, CONFIG_ENV_SIZE);
@@ -107,7 +107,7 @@ int saveenv (void)
 #ifdef CONFIG_AMIGAONEG3SE
        enable_nvram();
 #endif
-#ifdef CFG_NVRAM_ACCESS_ROUTINE
+#ifdef CONFIG_SYS_NVRAM_ACCESS_ROUTINE
        nvram_write(CONFIG_ENV_ADDR, env_ptr, CONFIG_ENV_SIZE);
 #else
        if (memcpy ((char *)CONFIG_ENV_ADDR, env_ptr, CONFIG_ENV_SIZE) == NULL)
@@ -131,7 +131,7 @@ int env_init (void)
 #ifdef CONFIG_AMIGAONEG3SE
        enable_nvram();
 #endif
-#if defined(CFG_NVRAM_ACCESS_ROUTINE)
+#if defined(CONFIG_SYS_NVRAM_ACCESS_ROUTINE)
        ulong crc;
        uchar data[ENV_SIZE];
        nvram_read (&crc, CONFIG_ENV_ADDR, sizeof(ulong));
index fe39d55ef67386c7b3bbc0b3ac8bcfef7a19ea77..eb4b2f5ff1cb8a7a841c9758d078dd8810847207 100644 (file)
@@ -26,7 +26,7 @@
 #include <common.h>
 #include <flash.h>
 
-#if !defined(CFG_NO_FLASH)
+#if !defined(CONFIG_SYS_NO_FLASH)
 
 extern flash_info_t  flash_info[]; /* info for FLASH chips */
 
@@ -75,19 +75,19 @@ flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
                 */
                if (from <= end && to >= info->start[i]) {
                        if (flag & FLAG_PROTECT_CLEAR) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                flash_real_protect(info, i, 0);
 #else
                                info->protect[i] = 0;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                                debug ("protect off %d\n", i);
                        }
                        else if (flag & FLAG_PROTECT_SET) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                flash_real_protect(info, i, 1);
 #else
                                info->protect[i] = 1;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                                debug ("protect on %d\n", i);
                        }
                }
@@ -104,7 +104,7 @@ addr2info (ulong addr)
        flash_info_t *info;
        int i;
 
-       for (i=0, info = &flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
+       for (i=0, info = &flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
                if (info->flash_id != FLASH_UNKNOWN &&
                    addr >= info->start[0] &&
                    /* WARNING - The '- 1' is needed if the flash
@@ -225,4 +225,4 @@ void flash_perror (int err)
 
 /*-----------------------------------------------------------------------
  */
-#endif /* !CFG_NO_FLASH */
+#endif /* !CONFIG_SYS_NO_FLASH */
index 67bed39aafa1f2a1bb3d847681aecd5cd81a2fce..9aef6e41dbfdbec4a6b3be491db09cd3744c6068 100644 (file)
@@ -96,7 +96,7 @@
 /*cmd_boot.c*/
 extern int do_bootd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);      /* do_bootd */
 #endif
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #ifndef __U_BOOT__
 #include <ctype.h>     /* isalpha, isdigit */
 #include <unistd.h>    /* getpid */
@@ -1019,9 +1019,9 @@ static void get_user_input(struct in_str *i)
        fflush(stdout);
        i->p = the_command;
 #else
-       extern char console_buffer[CFG_CBSIZE];
+       extern char console_buffer[CONFIG_SYS_CBSIZE];
        int n;
-       static char the_command[CFG_CBSIZE];
+       static char the_command[CONFIG_SYS_CBSIZE];
 
 #ifdef CONFIG_BOOT_RETRY_TIME
 #  ifdef CONFIG_RESET_TO_RETRY
@@ -1033,9 +1033,9 @@ static void get_user_input(struct in_str *i)
 #endif
        i->__promptme = 1;
        if (i->promptmode == 1) {
-               n = readline(CFG_PROMPT);
+               n = readline(CONFIG_SYS_PROMPT);
        } else {
-               n = readline(CFG_PROMPT_HUSH_PS2);
+               n = readline(CONFIG_SYS_PROMPT_HUSH_PS2);
        }
 #ifdef CONFIG_BOOT_RETRY_TIME
        if (n == -2) {
@@ -1075,7 +1075,7 @@ static void get_user_input(struct in_str *i)
        else {
                if (console_buffer[0] != '\n') {
                        if (strlen(the_command) + strlen(console_buffer)
-                           < CFG_CBSIZE) {
+                           < CONFIG_SYS_CBSIZE) {
                                n = strlen(the_command);
                                the_command[n-1] = ' ';
                                strcpy(&the_command[n],console_buffer);
@@ -3624,7 +3624,7 @@ int do_showvar (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(
-       showvar, CFG_MAXARGS, 1,        do_showvar,
+       showvar, CONFIG_SYS_MAXARGS, 1, do_showvar,
        "showvar- print local hushshell variables\n",
        "\n    - print values of all hushshell variables\n"
        "showvar name ...\n"
@@ -3632,5 +3632,5 @@ U_BOOT_CMD(
 );
 
 #endif
-#endif /* CFG_HUSH_PARSER */
+#endif /* CONFIG_SYS_HUSH_PARSER */
 /****************************************************************************/
index 0b7bd8d06d52eb82f464145c7806c90df923b44e..866edf619df4a0ada25c4d623aad5ef5c30a4d99 100644 (file)
@@ -426,8 +426,8 @@ ulong getenv_bootm_low(void)
                return tmp;
        }
 
-#if defined(CFG_SDRAM_BASE)
-       return CFG_SDRAM_BASE;
+#if defined(CONFIG_SYS_SDRAM_BASE)
+       return CONFIG_SYS_SDRAM_BASE;
 #elif defined(CONFIG_ARM)
        return gd->bd->bi_dram[0].start;
 #else
@@ -440,7 +440,7 @@ phys_size_t getenv_bootm_size(void)
        char *s = getenv ("bootm_size");
        if (s) {
                phys_size_t tmp;
-#ifdef CFG_64BIT_STRTOUL
+#ifdef CONFIG_SYS_64BIT_STRTOUL
                tmp = (phys_size_t)simple_strtoull (s, NULL, 16);
 #else
                tmp = (phys_size_t)simple_strtoul (s, NULL, 16);
@@ -663,7 +663,7 @@ ulong genimg_get_image (ulong img_addr)
 
        if (addr_dataflash (img_addr)){
                /* ger RAM address */
-               ram_addr = CFG_LOAD_ADDR;
+               ram_addr = CONFIG_SYS_LOAD_ADDR;
 
                /* get header size */
                h_size = image_get_header_size ();
@@ -1154,8 +1154,8 @@ static int fit_check_fdt (const void *fit, int fdt_noffset, int verify)
 }
 #endif /* CONFIG_FIT */
 
-#ifndef CFG_FDT_PAD
-#define CFG_FDT_PAD 0x3000
+#ifndef CONFIG_SYS_FDT_PAD
+#define CONFIG_SYS_FDT_PAD 0x3000
 #endif
 
 /**
@@ -1190,7 +1190,7 @@ int boot_relocate_fdt (struct lmb *lmb, ulong bootmap_base,
                goto error;
        }
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        /* move the blob if it is in flash (set relocate) */
        if (addr2info ((ulong)fdt_blob) != NULL)
                relocate = 1;
@@ -1202,8 +1202,8 @@ int boot_relocate_fdt (struct lmb *lmb, ulong bootmap_base,
        if (fdt_blob < (char *)bootmap_base)
                relocate = 1;
 
-       if ((fdt_blob + *of_size + CFG_FDT_PAD) >=
-                       ((char *)CFG_BOOTMAPSZ + bootmap_base))
+       if ((fdt_blob + *of_size + CONFIG_SYS_FDT_PAD) >=
+                       ((char *)CONFIG_SYS_BOOTMAPSZ + bootmap_base))
                relocate = 1;
 
        /* move flattend device tree if needed */
@@ -1213,9 +1213,9 @@ int boot_relocate_fdt (struct lmb *lmb, ulong bootmap_base,
 
                /* position on a 4K boundary before the alloc_current */
                /* Pad the FDT by a specified amount */
-               of_len = *of_size + CFG_FDT_PAD;
+               of_len = *of_size + CONFIG_SYS_FDT_PAD;
                of_start = (unsigned long)lmb_alloc_base(lmb, of_len, 0x1000,
-                               (CFG_BOOTMAPSZ + bootmap_base));
+                               (CONFIG_SYS_BOOTMAPSZ + bootmap_base));
 
                if (of_start == 0) {
                        puts("device tree - allocation error\n");
@@ -1240,7 +1240,7 @@ int boot_relocate_fdt (struct lmb *lmb, ulong bootmap_base,
                *of_size = of_len;
        } else {
                *of_flat_tree = fdt_blob;
-               of_len = (CFG_BOOTMAPSZ + bootmap_base) - (ulong)fdt_blob;
+               of_len = (CONFIG_SYS_BOOTMAPSZ + bootmap_base) - (ulong)fdt_blob;
                lmb_reserve(lmb, (ulong)fdt_blob, of_len);
                fdt_set_totalsize(*of_flat_tree, of_len);
 
@@ -1598,8 +1598,8 @@ int boot_get_cmdline (struct lmb *lmb, ulong *cmd_start, ulong *cmd_end,
        char *cmdline;
        char *s;
 
-       cmdline = (char *)(ulong)lmb_alloc_base(lmb, CFG_BARGSIZE, 0xf,
-                                        CFG_BOOTMAPSZ + bootmap_base);
+       cmdline = (char *)(ulong)lmb_alloc_base(lmb, CONFIG_SYS_BARGSIZE, 0xf,
+                                        CONFIG_SYS_BOOTMAPSZ + bootmap_base);
 
        if (cmdline == NULL)
                return -1;
@@ -1635,7 +1635,7 @@ int boot_get_cmdline (struct lmb *lmb, ulong *cmd_start, ulong *cmd_end,
 int boot_get_kbd (struct lmb *lmb, bd_t **kbd, ulong bootmap_base)
 {
        *kbd = (bd_t *)(ulong)lmb_alloc_base(lmb, sizeof(bd_t), 0xf,
-                                     CFG_BOOTMAPSZ + bootmap_base);
+                                     CONFIG_SYS_BOOTMAPSZ + bootmap_base);
        if (*kbd == NULL)
                return -1;
 
index b14898be9214929dbe44b3bb7e100e4f98564f34..adc15dd79eb7311ca2c34dd48be9d38df85c88dc 100644 (file)
@@ -574,7 +574,7 @@ do_kgdb(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(
-       kgdb, CFG_MAXARGS, 1,   do_kgdb,
+       kgdb, CONFIG_SYS_MAXARGS, 1,    do_kgdb,
        "kgdb    - enter gdb remote debug mode\n",
        "[arg0 arg1 .. argN]\n"
        "    - executes a breakpoint so that kgdb mode is\n"
index 25f8664343d02642721b0b0a5b19214db430ccad..d104b2604943df7251b3bbdab7e50e78d79f9eda 100644 (file)
@@ -386,13 +386,13 @@ static int lcd_clear (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        lcd_setcolreg  (CONSOLE_COLOR_WHITE,    0xFF, 0xFF, 0xFF);
 #endif
 
-#ifndef CFG_WHITE_ON_BLACK
+#ifndef CONFIG_SYS_WHITE_ON_BLACK
        lcd_setfgcolor (CONSOLE_COLOR_BLACK);
        lcd_setbgcolor (CONSOLE_COLOR_WHITE);
 #else
        lcd_setfgcolor (CONSOLE_COLOR_WHITE);
        lcd_setbgcolor (CONSOLE_COLOR_BLACK);
-#endif /* CFG_WHITE_ON_BLACK */
+#endif /* CONFIG_SYS_WHITE_ON_BLACK */
 
 #ifdef LCD_TEST_PATTERN
        test_pattern();
@@ -531,7 +531,7 @@ void bitmap_plot (int x, int y)
 #if defined(CONFIG_PXA250)
        struct pxafb_info *fbi = &panel_info.pxa;
 #elif defined(CONFIG_MPC823)
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(immr->im_cpm);
 #endif
 
@@ -571,7 +571,7 @@ void bitmap_plot (int x, int y)
                        *(cmap + BMP_LOGO_OFFSET) = lut_entry;
                        cmap++;
 #else /* !CONFIG_ATMEL_LCD */
-#ifdef  CFG_INVERT_COLORS
+#ifdef  CONFIG_SYS_INVERT_COLORS
                        *cmap++ = 0xffff - colreg;
 #else
                        *cmap++ = colreg;
@@ -627,7 +627,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
 #if defined(CONFIG_PXA250)
        struct pxafb_info *fbi = &panel_info.pxa;
 #elif defined(CONFIG_MPC823)
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(immr->im_cpm);
 #endif
 
@@ -681,7 +681,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
                                ( ((cte.red)   << 8) & 0xf800) |
                                ( ((cte.green) << 3) & 0x07e0) |
                                ( ((cte.blue)  >> 3) & 0x001f) ;
-#ifdef CFG_INVERT_COLORS
+#ifdef CONFIG_SYS_INVERT_COLORS
                        *cmap = 0xffff - colreg;
 #else
                        *cmap = colreg;
@@ -845,7 +845,7 @@ static void *lcd_logo (void)
        for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
                dram_size += gd->bd->bi_dram[i].size;
        nand_size = 0;
-       for (i = 0; i < CFG_MAX_NAND_DEVICE; i++)
+       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
                nand_size += nand_info[i].size;
        sprintf (info, "  %ld MB SDRAM, %ld MB NAND",
                dram_size >> 20,
index 9a9fc9d00b9496bd2e45a7117558f4a65bb2bfd6..a999a5d64d61ed4c4b1491b41b0deb36cb5e5750 100644 (file)
@@ -34,7 +34,7 @@
 #include <malloc.h>            /* for free() prototype */
 #endif
 
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #include <hush.h>
 #endif
 
@@ -68,7 +68,7 @@ static int abortboot(int);
 
 #undef DEBUG_PARSER
 
-char        console_buffer[CFG_CBSIZE];                /* console I/O buffer   */
+char        console_buffer[CONFIG_SYS_CBSIZE];         /* console I/O buffer   */
 
 static char * delete_char (char *buffer, char *p, int *colp, int *np, int plen);
 static char erase_seq[] = "\b \b";             /* erase sequence       */
@@ -272,8 +272,8 @@ static __inline__ int abortboot(int bootdelay)
 
 void main_loop (void)
 {
-#ifndef CFG_HUSH_PARSER
-       static char lastcommand[CFG_CBSIZE] = { 0, };
+#ifndef CONFIG_SYS_HUSH_PARSER
+       static char lastcommand[CONFIG_SYS_CBSIZE] = { 0, };
        int len;
        int rc = 1;
        int flag;
@@ -337,7 +337,7 @@ void main_loop (void)
        }
 #endif /* CONFIG_VERSION_VARIABLE */
 
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
        u_boot_hush_start ();
 #endif
 
@@ -355,7 +355,7 @@ void main_loop (void)
                int prev = disable_ctrlc(1);    /* disable Control C checking */
 # endif
 
-# ifndef CFG_HUSH_PARSER
+# ifndef CONFIG_SYS_HUSH_PARSER
                run_command (p, 0);
 # else
                parse_string_outer(p, FLAG_PARSE_SEMICOLON |
@@ -401,7 +401,7 @@ void main_loop (void)
                int prev = disable_ctrlc(1);    /* disable Control C checking */
 # endif
 
-# ifndef CFG_HUSH_PARSER
+# ifndef CONFIG_SYS_HUSH_PARSER
                run_command (s, 0);
 # else
                parse_string_outer(s, FLAG_PARSE_SEMICOLON |
@@ -417,7 +417,7 @@ void main_loop (void)
        if (menukey == CONFIG_MENUKEY) {
            s = getenv("menucmd");
            if (s) {
-# ifndef CFG_HUSH_PARSER
+# ifndef CONFIG_SYS_HUSH_PARSER
                run_command (s, 0);
 # else
                parse_string_outer(s, FLAG_PARSE_SEMICOLON |
@@ -438,7 +438,7 @@ void main_loop (void)
        /*
         * Main Loop for Monitor Command Processing
         */
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
        parse_file_outer();
        /* This point is never reached */
        for (;;);
@@ -452,7 +452,7 @@ void main_loop (void)
                        reset_cmd_timeout();
                }
 #endif
-               len = readline (CFG_PROMPT);
+               len = readline (CONFIG_SYS_PROMPT);
 
                flag = 0;       /* assume no special flags for now */
                if (len > 0)
@@ -483,7 +483,7 @@ void main_loop (void)
                        lastcommand[0] = 0;
                }
        }
-#endif /*CFG_HUSH_PARSER*/
+#endif /*CONFIG_SYS_HUSH_PARSER*/
 }
 
 #ifdef CONFIG_BOOT_RETRY_TIME
@@ -1042,7 +1042,7 @@ int readline_into_buffer (const char *const prompt, char * buffer)
                        /*
                         * Must be a normal character then
                         */
-                       if (n < CFG_CBSIZE-2) {
+                       if (n < CONFIG_SYS_CBSIZE-2) {
                                if (c == '\t') {        /* expand TABs          */
 #ifdef CONFIG_AUTO_COMPLETE
                                        /* if auto completion triggered just continue */
@@ -1111,7 +1111,7 @@ int parse_line (char *line, char *argv[])
 #ifdef DEBUG_PARSER
        printf ("parse_line: \"%s\"\n", line);
 #endif
-       while (nargs < CFG_MAXARGS) {
+       while (nargs < CONFIG_SYS_MAXARGS) {
 
                /* skip any white space */
                while ((*line == ' ') || (*line == '\t')) {
@@ -1144,7 +1144,7 @@ int parse_line (char *line, char *argv[])
                *line++ = '\0';         /* terminate current arg         */
        }
 
-       printf ("** Too many args (max. %d) **\n", CFG_MAXARGS);
+       printf ("** Too many args (max. %d) **\n", CONFIG_SYS_MAXARGS);
 
 #ifdef DEBUG_PARSER
        printf ("parse_line: nargs=%d\n", nargs);
@@ -1159,7 +1159,7 @@ static void process_macros (const char *input, char *output)
        char c, prev;
        const char *varname_start = NULL;
        int inputcnt = strlen (input);
-       int outputcnt = CFG_CBSIZE;
+       int outputcnt = CONFIG_SYS_CBSIZE;
        int state = 0;          /* 0 = waiting for '$'  */
 
        /* 1 = waiting for '(' or '{' */
@@ -1219,7 +1219,7 @@ static void process_macros (const char *input, char *output)
                case 2: /* Waiting for )        */
                        if (c == ')' || c == '}') {
                                int i;
-                               char envname[CFG_CBSIZE], *envval;
+                               char envname[CONFIG_SYS_CBSIZE], *envval;
                                int envcnt = input - varname_start - 1; /* Varname # of chars */
 
                                /* Get the varname */
@@ -1270,7 +1270,7 @@ static void process_macros (const char *input, char *output)
  *     0  - command executed but not repeatable, interrupted commands are
  *          always considered not repeatable
  *     -1 - not executed (unrecognized, bootd recursion or too many args)
- *           (If cmd is NULL or "" or longer than CFG_CBSIZE-1 it is
+ *           (If cmd is NULL or "" or longer than CONFIG_SYS_CBSIZE-1 it is
  *           considered unrecognized)
  *
  * WARNING:
@@ -1284,12 +1284,12 @@ static void process_macros (const char *input, char *output)
 int run_command (const char *cmd, int flag)
 {
        cmd_tbl_t *cmdtp;
-       char cmdbuf[CFG_CBSIZE];        /* working copy of cmd          */
+       char cmdbuf[CONFIG_SYS_CBSIZE]; /* working copy of cmd          */
        char *token;                    /* start of token in cmdbuf     */
        char *sep;                      /* end of token (separator) in cmdbuf */
-       char finaltoken[CFG_CBSIZE];
+       char finaltoken[CONFIG_SYS_CBSIZE];
        char *str = cmdbuf;
-       char *argv[CFG_MAXARGS + 1];    /* NULL terminated      */
+       char *argv[CONFIG_SYS_MAXARGS + 1];     /* NULL terminated      */
        int argc, inquotes;
        int repeatable = 1;
        int rc = 0;
@@ -1306,7 +1306,7 @@ int run_command (const char *cmd, int flag)
                return -1;      /* empty command */
        }
 
-       if (strlen(cmd) >= CFG_CBSIZE) {
+       if (strlen(cmd) >= CONFIG_SYS_CBSIZE) {
                puts ("## Command too long!\n");
                return -1;
        }
@@ -1425,7 +1425,7 @@ int do_run (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                        printf ("## Error: \"%s\" not defined\n", argv[i]);
                        return 1;
                }
-#ifndef CFG_HUSH_PARSER
+#ifndef CONFIG_SYS_HUSH_PARSER
                if (run_command (arg, flag) == -1)
                        return 1;
 #else
index 5ef4a33ce774a8a3dd73db6e0f842fe4c304317a..66fd9cad8725b067ce9427500020232c2e72813f 100644 (file)
@@ -462,7 +462,7 @@ int miiphy_is_1000base_x (char *devname, unsigned char addr)
 #endif
 }
 
-#ifdef CFG_FAULT_ECHO_LINK_DOWN
+#ifdef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 /*****************************************************************************
  *
  * Determine link status
index bfda7ca55135c96e01bcd8bf7ded3af5a846c5e5..b38d1e762886ef1433bb9984efa0472c80855056 100644 (file)
@@ -43,7 +43,7 @@ struct serial_device *__default_serial_console (void)
 #elif defined(CONFIG_405GP) || defined(CONFIG_405CR) || defined(CONFIG_440) \
    || defined(CONFIG_405EP) || defined(CONFIG_405EZ) || defined(CONFIG_405EX) \
    || defined(CONFIG_MPC5xxx)
-#if defined(CONFIG_CONS_INDEX) && defined(CFG_NS16550_SERIAL)
+#if defined(CONFIG_CONS_INDEX) && defined(CONFIG_SYS_NS16550_SERIAL)
 #if (CONFIG_CONS_INDEX==1)
        return &eserial1_device;
 #elif (CONFIG_CONS_INDEX==2)
@@ -110,20 +110,20 @@ void serial_initialize (void)
        serial_register(&serial1_device);
 #endif
 
-#if defined(CFG_NS16550_SERIAL)
-#if defined(CFG_NS16550_COM1)
+#if defined(CONFIG_SYS_NS16550_SERIAL)
+#if defined(CONFIG_SYS_NS16550_COM1)
        serial_register(&eserial1_device);
 #endif
-#if defined(CFG_NS16550_COM2)
+#if defined(CONFIG_SYS_NS16550_COM2)
        serial_register(&eserial2_device);
 #endif
-#if defined(CFG_NS16550_COM3)
+#if defined(CONFIG_SYS_NS16550_COM3)
        serial_register(&eserial3_device);
 #endif
-#if defined(CFG_NS16550_COM4)
+#if defined(CONFIG_SYS_NS16550_COM4)
        serial_register(&eserial4_device);
 #endif
-#endif /* CFG_NS16550_SERIAL */
+#endif /* CONFIG_SYS_NS16550_SERIAL */
 #if defined (CONFIG_FFUART)
        serial_register(&serial_ffuart_device);
 #endif
index ebac388b18ed1e77f8d6112a1ed6c1f9e2150085..f5ba7fc041e61684bb7d7784d4f206f37b6ac91c 100644 (file)
@@ -32,8 +32,8 @@
 #define PRINTF(fmt,args...)
 #endif
 
-#undef CFG_FPGA_CHECK_BUSY
-#undef CFG_FPGA_PROG_FEEDBACK
+#undef CONFIG_SYS_FPGA_CHECK_BUSY
+#undef CONFIG_SYS_FPGA_PROG_FEEDBACK
 
 /* Note: The assumption is that we cannot possibly run fast enough to
  * overrun the device (the Slave Parallel mode can free run at 50MHz).
@@ -44,8 +44,8 @@
 #define CONFIG_FPGA_DELAY()
 #endif
 
-#ifndef CFG_FPGA_WAIT
-#define CFG_FPGA_WAIT CFG_HZ/100       /* 10 ms */
+#ifndef CONFIG_SYS_FPGA_WAIT
+#define CONFIG_SYS_FPGA_WAIT CONFIG_SYS_HZ/100 /* 10 ms */
 #endif
 
 static int Spartan2_sp_load( Xilinx_desc *desc, void *buf, size_t bsize );
@@ -180,7 +180,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                 * Continuous Data Loading in Slave Parallel Mode for
                 * the Spartan-II Family.
                 */
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                printf ("Loading FPGA Device %d...\n", cookie);
 #endif
                /*
@@ -201,7 +201,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                /* Now wait for INIT and BUSY to go high */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for INIT to clear.\n");
                                (*fn->abort) (cookie);  /* abort the burn */
                                return FPGA_FAIL;
@@ -223,7 +223,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        CONFIG_FPGA_DELAY ();
                        (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-#ifdef CFG_FPGA_CHECK_BUSY
+#ifdef CONFIG_SYS_FPGA_CHECK_BUSY
                        ts = get_timer (0);     /* get current time */
                        while ((*fn->busy) (cookie)) {
                                /* XXX - we should have a check in here somewhere to
@@ -234,7 +234,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                CONFIG_FPGA_DELAY ();
                                (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-                               if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                               if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                        puts ("** Timeout waiting for BUSY to clear.\n");
                                        (*fn->abort) (cookie);  /* abort the burn */
                                        return FPGA_FAIL;
@@ -242,7 +242,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        }
 #endif
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');             /* let them know we are alive */
 #endif
@@ -252,7 +252,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                (*fn->cs) (FALSE, TRUE, cookie);        /* Deassert the chip select */
                (*fn->wr) (FALSE, TRUE, cookie);        /* Deassert the write pin */
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');                    /* terminate the dotted line */
 #endif
 
@@ -268,7 +268,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        CONFIG_FPGA_DELAY ();
                        (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for DONE to clear.\n");
                                (*fn->abort) (cookie);  /* abort the burn */
                                ret_val = FPGA_FAIL;
@@ -277,7 +277,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                }
 
                if (ret_val == FPGA_SUCCESS) {
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        puts ("Done.\n");
 #endif
                }
@@ -289,7 +289,7 @@ static int Spartan2_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                }
 
                else {
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        puts ("Fail.\n");
 #endif
                }
@@ -323,7 +323,7 @@ static int Spartan2_sp_dump (Xilinx_desc * desc, void *buf, size_t bsize)
                        (*fn->clk) (FALSE, TRUE, cookie);       /* Deassert the clock pin */
                        (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
                        (*fn->rdata) (&(data[bytecount++]), cookie);    /* read the data */
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');             /* let them know we are alive */
 #endif
@@ -333,7 +333,7 @@ static int Spartan2_sp_dump (Xilinx_desc * desc, void *buf, size_t bsize)
                (*fn->clk) (FALSE, TRUE, cookie);       /* Deassert the clock pin */
                (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');                    /* terminate the dotted line */
 #endif
                puts ("Done.\n");
@@ -460,7 +460,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                "done:\t0x%p\n\n",
                                __FUNCTION__, &fn, fn, fn->pgm, fn->init,
                                fn->clk, fn->wr, fn->done);
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                printf ("Loading FPGA Device %d...\n", cookie);
 #endif
 
@@ -478,7 +478,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                ts = get_timer (0);             /* get current time */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for INIT to start.\n");
                                return FPGA_FAIL;
                        }
@@ -492,7 +492,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                /* Now wait for INIT to go high */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for INIT to clear.\n");
                                return FPGA_FAIL;
                        }
@@ -523,7 +523,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                i --;
                        } while (i > 0);
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');             /* let them know we are alive */
 #endif
@@ -531,7 +531,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
 
                CONFIG_FPGA_DELAY ();
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');                    /* terminate the dotted line */
 #endif
 
@@ -551,7 +551,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
 
                        putc ('*');
 
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for DONE to clear.\n");
                                ret_val = FPGA_FAIL;
                                break;
@@ -566,7 +566,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        (*fn->post) (cookie);
                }
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                if (ret_val == FPGA_SUCCESS) {
                        puts ("Done.\n");
                }
index 8f1ab80b74b17633bcbcb1861920bdf5e2517cf9..9ce41f1d2766daed1da0701802bd07ea1c454d7a 100644 (file)
@@ -37,8 +37,8 @@
 #define PRINTF(fmt,args...)
 #endif
 
-#undef CFG_FPGA_CHECK_BUSY
-#undef CFG_FPGA_PROG_FEEDBACK
+#undef CONFIG_SYS_FPGA_CHECK_BUSY
+#undef CONFIG_SYS_FPGA_PROG_FEEDBACK
 
 /* Note: The assumption is that we cannot possibly run fast enough to
  * overrun the device (the Slave Parallel mode can free run at 50MHz).
@@ -49,8 +49,8 @@
 #define CONFIG_FPGA_DELAY()
 #endif
 
-#ifndef CFG_FPGA_WAIT
-#define CFG_FPGA_WAIT CFG_HZ/100       /* 10 ms */
+#ifndef CONFIG_SYS_FPGA_WAIT
+#define CONFIG_SYS_FPGA_WAIT CONFIG_SYS_HZ/100 /* 10 ms */
 #endif
 
 static int Spartan3_sp_load( Xilinx_desc *desc, void *buf, size_t bsize );
@@ -185,7 +185,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                 * Continuous Data Loading in Slave Parallel Mode for
                 * the Spartan-II Family.
                 */
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                printf ("Loading FPGA Device %d...\n", cookie);
 #endif
                /*
@@ -206,7 +206,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                /* Now wait for INIT and BUSY to go high */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for INIT to clear.\n");
                                (*fn->abort) (cookie);  /* abort the burn */
                                return FPGA_FAIL;
@@ -228,7 +228,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        CONFIG_FPGA_DELAY ();
                        (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-#ifdef CFG_FPGA_CHECK_BUSY
+#ifdef CONFIG_SYS_FPGA_CHECK_BUSY
                        ts = get_timer (0);     /* get current time */
                        while ((*fn->busy) (cookie)) {
                                /* XXX - we should have a check in here somewhere to
@@ -239,7 +239,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                CONFIG_FPGA_DELAY ();
                                (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-                               if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                               if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                        puts ("** Timeout waiting for BUSY to clear.\n");
                                        (*fn->abort) (cookie);  /* abort the burn */
                                        return FPGA_FAIL;
@@ -247,7 +247,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        }
 #endif
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');             /* let them know we are alive */
 #endif
@@ -257,7 +257,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                (*fn->cs) (FALSE, TRUE, cookie);        /* Deassert the chip select */
                (*fn->wr) (FALSE, TRUE, cookie);        /* Deassert the write pin */
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');                    /* terminate the dotted line */
 #endif
 
@@ -273,7 +273,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        CONFIG_FPGA_DELAY ();
                        (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for DONE to clear.\n");
                                (*fn->abort) (cookie);  /* abort the burn */
                                ret_val = FPGA_FAIL;
@@ -282,7 +282,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                }
 
                if (ret_val == FPGA_SUCCESS) {
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        puts ("Done.\n");
 #endif
                }
@@ -294,7 +294,7 @@ static int Spartan3_sp_load (Xilinx_desc * desc, void *buf, size_t bsize)
                }
 
                else {
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        puts ("Fail.\n");
 #endif
                }
@@ -328,7 +328,7 @@ static int Spartan3_sp_dump (Xilinx_desc * desc, void *buf, size_t bsize)
                        (*fn->clk) (FALSE, TRUE, cookie);       /* Deassert the clock pin */
                        (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
                        (*fn->rdata) (&(data[bytecount++]), cookie);    /* read the data */
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');             /* let them know we are alive */
 #endif
@@ -338,7 +338,7 @@ static int Spartan3_sp_dump (Xilinx_desc * desc, void *buf, size_t bsize)
                (*fn->clk) (FALSE, TRUE, cookie);       /* Deassert the clock pin */
                (*fn->clk) (TRUE, TRUE, cookie);        /* Assert the clock pin */
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');                    /* terminate the dotted line */
 #endif
                puts ("Done.\n");
@@ -465,7 +465,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                "done:\t0x%p\n\n",
                                __FUNCTION__, &fn, fn, fn->pgm, fn->init,
                                fn->clk, fn->wr, fn->done);
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                printf ("Loading FPGA Device %d...\n", cookie);
 #endif
 
@@ -483,7 +483,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                ts = get_timer (0);             /* get current time */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for INIT to start.\n");
                                return FPGA_FAIL;
                        }
@@ -497,7 +497,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                /* Now wait for INIT to go high */
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for INIT to clear.\n");
                                return FPGA_FAIL;
                        }
@@ -528,7 +528,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                i --;
                        } while (i > 0);
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');             /* let them know we are alive */
 #endif
@@ -536,7 +536,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
 
                CONFIG_FPGA_DELAY ();
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');                    /* terminate the dotted line */
 #endif
 
@@ -556,7 +556,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
 
                        putc ('*');
 
-                       if (get_timer (ts) > CFG_FPGA_WAIT) {   /* check the time */
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) {    /* check the time */
                                puts ("** Timeout waiting for DONE to clear.\n");
                                ret_val = FPGA_FAIL;
                                break;
@@ -571,7 +571,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        (*fn->post) (cookie);
                }
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                if (ret_val == FPGA_SUCCESS) {
                        puts ("Done.\n");
                }
index 938cc068166c41e1a28fcf4bbe83302c2918d2cd..75284748734e11961cea3fb6258d4149e389112d 100644 (file)
@@ -30,8 +30,8 @@
 #error "CONFIG_FIT and CONFIG_OF_LIBFDT are required for auto-update feature"
 #endif
 
-#if defined(CFG_NO_FLASH)
-#error "CFG_NO_FLASH defined, but FLASH is required for auto-update feature"
+#if defined(CONFIG_SYS_NO_FLASH)
+#error "CONFIG_SYS_NO_FLASH defined, but FLASH is required for auto-update feature"
 #endif
 
 #include <command.h>
@@ -120,12 +120,12 @@ static int update_flash_protect(int prot, ulong addr_first, ulong addr_last)
 
        if (prot == 0) {
                saved_prot_info =
-                       calloc(CFG_MAX_FLASH_BANKS * CFG_MAX_FLASH_SECT, 1);
+                       calloc(CONFIG_SYS_MAX_FLASH_BANKS * CONFIG_SYS_MAX_FLASH_SECT, 1);
                if (!saved_prot_info)
                        return 1;
        }
 
-       for (bank = 0; bank < CFG_MAX_FLASH_BANKS; ++bank) {
+       for (bank = 0; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                cnt = 0;
                info = &flash_info[bank];
 
@@ -134,7 +134,7 @@ static int update_flash_protect(int prot, ulong addr_first, ulong addr_last)
                        return 0;
 
                /* Point to current bank protection information */
-               sp_info_ptr = saved_prot_info + (bank * CFG_MAX_FLASH_SECT);
+               sp_info_ptr = saved_prot_info + (bank * CONFIG_SYS_MAX_FLASH_SECT);
 
                /*
                 * Adjust addr_first or addr_last if we are on bank boundary.
@@ -159,7 +159,7 @@ static int update_flash_protect(int prot, ulong addr_first, ulong addr_last)
 
                        /* Protect/unprotect sectors */
                        if (sp_info_ptr[i] == 1) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                if (flash_real_protect(info, i, prot))
                                        return 1;
 #else
index 920bb0ffbe51cbe0e0f74698a74da9e343173c01..cf14560955765c6f65701ec68c42d5954a2ac0d9 100644 (file)
@@ -36,7 +36,7 @@
  * are switched to the serial port, else the settings in the
  * environment are used
  */
-#ifdef CFG_CONSOLE_OVERWRITE_ROUTINE
+#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
 extern int overwrite_console (void);
 #else
 int overwrite_console (void)
@@ -120,7 +120,7 @@ static void usb_kbd_put_queue(char data)
 /* test if a character is in the queue */
 static int usb_kbd_testc(void)
 {
-#ifdef CFG_USB_EVENT_POLL
+#ifdef CONFIG_SYS_USB_EVENT_POLL
        usb_event_poll();
 #endif
        if(usb_in_pointer==usb_out_pointer)
@@ -133,7 +133,7 @@ static int usb_kbd_getc(void)
 {
        char c;
        while(usb_in_pointer==usb_out_pointer) {
-#ifdef CFG_USB_EVENT_POLL
+#ifdef CONFIG_SYS_USB_EVENT_POLL
                usb_event_poll();
 #endif
        }
index 52da1b2ca33f95404fbd5b23f6ad5ebf764ff244..50d0921844fa84019f9a4a072b6f9513691698a7 100644 (file)
 
 /*
  * If the SelectMap interface can be overrun by the processor, define
- * CFG_FPGA_CHECK_BUSY and/or CONFIG_FPGA_DELAY in the board configuration
+ * CONFIG_SYS_FPGA_CHECK_BUSY and/or CONFIG_FPGA_DELAY in the board configuration
  * file and add board-specific support for checking BUSY status. By default,
  * assume that the SelectMap interface cannot be overrun.
  */
-#ifndef CFG_FPGA_CHECK_BUSY
-#undef CFG_FPGA_CHECK_BUSY
+#ifndef CONFIG_SYS_FPGA_CHECK_BUSY
+#undef CONFIG_SYS_FPGA_CHECK_BUSY
 #endif
 
 #ifndef CONFIG_FPGA_DELAY
 #define CONFIG_FPGA_DELAY()
 #endif
 
-#ifndef CFG_FPGA_PROG_FEEDBACK
-#define CFG_FPGA_PROG_FEEDBACK
+#ifndef CONFIG_SYS_FPGA_PROG_FEEDBACK
+#define CONFIG_SYS_FPGA_PROG_FEEDBACK
 #endif
 
 /*
  * Don't allow config cycle to be interrupted
  */
-#ifndef CFG_FPGA_CHECK_CTRLC
-#undef CFG_FPGA_CHECK_CTRLC
+#ifndef CONFIG_SYS_FPGA_CHECK_CTRLC
+#undef CONFIG_SYS_FPGA_CHECK_CTRLC
 #endif
 
 /*
  * Check for errors during configuration by default
  */
-#ifndef CFG_FPGA_CHECK_ERROR
-#define CFG_FPGA_CHECK_ERROR
+#ifndef CONFIG_SYS_FPGA_CHECK_ERROR
+#define CONFIG_SYS_FPGA_CHECK_ERROR
 #endif
 
 /*
@@ -81,8 +81,8 @@
  * which yields 11.44 mS.  So let's make it bigger in order to handle
  * an XC2V1000, if anyone can ever get ahold of one.
  */
-#ifndef CFG_FPGA_WAIT_INIT
-#define CFG_FPGA_WAIT_INIT     CFG_HZ/2        /* 500 ms */
+#ifndef CONFIG_SYS_FPGA_WAIT_INIT
+#define CONFIG_SYS_FPGA_WAIT_INIT      CONFIG_SYS_HZ/2 /* 500 ms */
 #endif
 
 /*
  * This is normally not necessary since for most reasonable configuration
  * clock frequencies (i.e. 66 MHz or less), BUSY monitoring is unnecessary.
  */
-#ifndef CFG_FPGA_WAIT_BUSY
-#define CFG_FPGA_WAIT_BUSY     CFG_HZ/200      /* 5 ms*/
+#ifndef CONFIG_SYS_FPGA_WAIT_BUSY
+#define CONFIG_SYS_FPGA_WAIT_BUSY      CONFIG_SYS_HZ/200       /* 5 ms*/
 #endif
 
 /* Default timeout for waiting for FPGA to enter operational mode after
  * configuration data has been written.
  */
-#ifndef        CFG_FPGA_WAIT_CONFIG
-#define CFG_FPGA_WAIT_CONFIG   CFG_HZ/5        /* 200 ms */
+#ifndef        CONFIG_SYS_FPGA_WAIT_CONFIG
+#define CONFIG_SYS_FPGA_WAIT_CONFIG    CONFIG_SYS_HZ/5 /* 200 ms */
 #endif
 
 static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize);
@@ -232,7 +232,7 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                fn->clk, fn->cs, fn->wr, fn->rdata, fn->wdata,
                                fn->busy, fn->abort, fn->post);
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                printf ("Initializing FPGA Device %d...\n", cookie);
 #endif
                /*
@@ -252,10 +252,10 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                udelay (10);
                ts = get_timer (0);
                do {
-                       if (get_timer (ts) > CFG_FPGA_WAIT_INIT) {
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_INIT) {
                                printf ("%s:%d: ** Timeout after %d ticks waiting for INIT"
                                                " to assert.\n", __FUNCTION__, __LINE__,
-                                               CFG_FPGA_WAIT_INIT);
+                                               CONFIG_SYS_FPGA_WAIT_INIT);
                                (*fn->abort) (cookie);
                                return FPGA_FAIL;
                        }
@@ -271,10 +271,10 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                ts = get_timer (0);
                do {
                        CONFIG_FPGA_DELAY ();
-                       if (get_timer (ts) > CFG_FPGA_WAIT_INIT) {
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_INIT) {
                                printf ("%s:%d: ** Timeout after %d ticks waiting for INIT"
                                                " to deassert.\n", __FUNCTION__, __LINE__,
-                                               CFG_FPGA_WAIT_INIT);
+                                               CONFIG_SYS_FPGA_WAIT_INIT);
                                (*fn->abort) (cookie);
                                return FPGA_FAIL;
                        }
@@ -289,7 +289,7 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                 * Load the data byte by byte
                 */
                while (bytecount < bsize) {
-#ifdef CFG_FPGA_CHECK_CTRLC
+#ifdef CONFIG_SYS_FPGA_CHECK_CTRLC
                        if (ctrlc ()) {
                                (*fn->abort) (cookie);
                                return FPGA_FAIL;
@@ -302,7 +302,7 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                            break;
                        }
 
-#ifdef CFG_FPGA_CHECK_ERROR
+#ifdef CONFIG_SYS_FPGA_CHECK_ERROR
                        if ((*fn->init) (cookie)) {
                                printf ("\n%s:%d:  ** Error: INIT asserted during"
                                                " configuration\n", __FUNCTION__, __LINE__);
@@ -323,20 +323,20 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                        CONFIG_FPGA_DELAY ();
                        (*fn->clk) (TRUE, TRUE, cookie);
 
-#ifdef CFG_FPGA_CHECK_BUSY
+#ifdef CONFIG_SYS_FPGA_CHECK_BUSY
                        ts = get_timer (0);
                        while ((*fn->busy) (cookie)) {
-                               if (get_timer (ts) > CFG_FPGA_WAIT_BUSY) {
+                               if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_BUSY) {
                                        printf ("%s:%d: ** Timeout after %d ticks waiting for"
                                                        " BUSY to deassert\n",
-                                                       __FUNCTION__, __LINE__, CFG_FPGA_WAIT_BUSY);
+                                                       __FUNCTION__, __LINE__, CONFIG_SYS_FPGA_WAIT_BUSY);
                                        (*fn->abort) (cookie);
                                        return FPGA_FAIL;
                                }
                        }
 #endif
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');
 #endif
@@ -349,7 +349,7 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                (*fn->cs) (FALSE, TRUE, cookie);
                (*fn->wr) (FALSE, TRUE, cookie);
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');
 #endif
 
@@ -360,10 +360,10 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                ts = get_timer (0);
                ret_val = FPGA_SUCCESS;
                while (((*fn->done) (cookie) == FPGA_FAIL) || (*fn->init) (cookie)) {
-                       if (get_timer (ts) > CFG_FPGA_WAIT_CONFIG) {
+                       if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_CONFIG) {
                                printf ("%s:%d: ** Timeout after %d ticks waiting for DONE to"
                                                "assert and INIT to deassert\n",
-                                               __FUNCTION__, __LINE__, CFG_FPGA_WAIT_CONFIG);
+                                               __FUNCTION__, __LINE__, CONFIG_SYS_FPGA_WAIT_CONFIG);
                                (*fn->abort) (cookie);
                                ret_val = FPGA_FAIL;
                                break;
@@ -371,7 +371,7 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                }
 
                if (ret_val == FPGA_SUCCESS) {
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        printf ("Initialization of FPGA device %d complete\n", cookie);
 #endif
                        /*
@@ -381,7 +381,7 @@ static int Virtex2_ssm_load (Xilinx_desc * desc, void *buf, size_t bsize)
                                (*fn->post) (cookie);
                        }
                } else {
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        printf ("** Initialization of FPGA device %d FAILED\n",
                                        cookie);
 #endif
@@ -412,7 +412,7 @@ static int Virtex2_ssm_dump (Xilinx_desc * desc, void *buf, size_t bsize)
                (*fn->clk) (TRUE, TRUE, cookie);
 
                while (bytecount < bsize) {
-#ifdef CFG_FPGA_CHECK_CTRLC
+#ifdef CONFIG_SYS_FPGA_CHECK_CTRLC
                        if (ctrlc ()) {
                                (*fn->abort) (cookie);
                                return FPGA_FAIL;
@@ -424,7 +424,7 @@ static int Virtex2_ssm_dump (Xilinx_desc * desc, void *buf, size_t bsize)
                        (*fn->clk) (FALSE, TRUE, cookie);
                        (*fn->clk) (TRUE, TRUE, cookie);
                        (*fn->rdata) (&(data[bytecount++]), cookie);
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                        if (bytecount % (bsize / 40) == 0)
                                putc ('.');
 #endif
@@ -437,7 +437,7 @@ static int Virtex2_ssm_dump (Xilinx_desc * desc, void *buf, size_t bsize)
                (*fn->clk) (FALSE, TRUE, cookie);
                (*fn->clk) (TRUE, TRUE, cookie);
 
-#ifdef CFG_FPGA_PROG_FEEDBACK
+#ifdef CONFIG_SYS_FPGA_PROG_FEEDBACK
                putc ('\n');
 #endif
                puts ("Done.\n");
index 62a668306cb986cab6c764f0bb0b8fa7a4612100..66c72983d42f9cd641db7aee61caa17bc372f7bc 100644 (file)
@@ -292,7 +292,7 @@ _GLOBAL(dcache_enable)
        mtspr   HID0, r5                /* enable + invalidate */
        mtspr   HID0, r3                /* enable */
        sync
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        mflr    r5
        bl      l2cache_enable          /* uses r3 and r4 */
        sync
@@ -318,7 +318,7 @@ _GLOBAL(dcache_disable)
        andc    r3, r3, r5              /* no enable, no invalidate */
        mtspr   HID0, r3
        sync
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        bl      l2cache_disable_no_flush /* uses r3 */
 #endif
        mtlr    r4                      /* restore link register */
index c007abc98655e66d758abb7fc13b9633d3e77378..3c172779b199e3237dd92ca5378f4c8901f27192 100644 (file)
@@ -256,16 +256,16 @@ do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        __asm__ __volatile__ ("isync");
        __asm__ __volatile__ ("sync");
 
-#ifdef CFG_RESET_ADDRESS
-       addr = CFG_RESET_ADDRESS;
+#ifdef CONFIG_SYS_RESET_ADDRESS
+       addr = CONFIG_SYS_RESET_ADDRESS;
 #else
        /*
-        * note: when CFG_MONITOR_BASE points to a RAM address,
-        * CFG_MONITOR_BASE - sizeof (ulong) is usually a valid
+        * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address,
+        * CONFIG_SYS_MONITOR_BASE - sizeof (ulong) is usually a valid
         * address. Better pick an address known to be invalid on your
-        * system and assign it to CFG_RESET_ADDRESS.
+        * system and assign it to CONFIG_SYS_RESET_ADDRESS.
         */
-       addr = CFG_MONITOR_BASE - sizeof (ulong);
+       addr = CONFIG_SYS_MONITOR_BASE - sizeof (ulong);
 #endif
        soft_restart(addr);
        while(1);       /* not reached */
@@ -277,18 +277,18 @@ do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 /*
  * For the 7400 the TB clock runs at 1/4 the cpu bus speed.
  */
-#if defined(CONFIG_AMIGAONEG3SE) || defined(CFG_CONFIG_BUS_CLK)
+#if defined(CONFIG_AMIGAONEG3SE) || defined(CONFIG_SYS_CONFIG_BUS_CLK)
 unsigned long get_tbclk(void)
 {
        return (gd->bus_clk / 4);
 }
-#else  /* ! CONFIG_AMIGAONEG3SE and !CFG_CONFIG_BUS_CLK*/
+#else  /* ! CONFIG_AMIGAONEG3SE and !CONFIG_SYS_CONFIG_BUS_CLK*/
 
 unsigned long get_tbclk (void)
 {
-       return CFG_BUS_HZ / 4;
+       return CONFIG_SYS_BUS_HZ / 4;
 }
-#endif /* CONFIG_AMIGAONEG3SE or CFG_CONFIG_BUS_CLK*/
+#endif /* CONFIG_AMIGAONEG3SE or CONFIG_SYS_CONFIG_BUS_CLK*/
 /* ------------------------------------------------------------------------- */
 #if defined(CONFIG_WATCHDOG)
 #if !defined(CONFIG_PCIPPC2) && !defined(CONFIG_BAB7xx)
index f0ea4852654fb28c3ebce314e707cc331423d4d6..0ea1aec7a601d6d67c0e57c6671d3128fa223a91 100644 (file)
@@ -48,7 +48,7 @@ int interrupt_init_cpu (unsigned *decrementer_count)
               GTREGREAD(ETHERNET2_INTERRUPT_MASK_REGISTER));
        puts("interrupt_init: setting decrementer_count\n");
 #endif
-       *decrementer_count = get_tbclk() / CFG_HZ;
+       *decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
 
        return (0);
 }
index 4f231228c2285950ed4f2df46f99ec01111bcc7f..ad487cdaf45007b03944d2136774a70b989ab03d 100644 (file)
@@ -43,7 +43,7 @@ kgdb_flush_cache_all:
        addis   r4,r0,0x0040
 kgdb_flush_loop:
        lwz     r5,0(r3)
-       addi    r3,r3,CFG_CACHELINE_SIZE
+       addi    r3,r3,CONFIG_SYS_CACHELINE_SIZE
        cmp     0,0,r3,r4
        bne     kgdb_flush_loop
        SYNC
@@ -55,21 +55,21 @@ kgdb_flush_loop:
 
        .globl  kgdb_flush_cache_range
 kgdb_flush_cache_range:
-       li      r5,CFG_CACHELINE_SIZE-1
+       li      r5,CONFIG_SYS_CACHELINE_SIZE-1
        andc    r3,r3,r5
        subf    r4,r3,r4
        add     r4,r4,r5
-       srwi.   r4,r4,CFG_CACHELINE_SHIFT
+       srwi.   r4,r4,CONFIG_SYS_CACHELINE_SHIFT
        beqlr
        mtctr   r4
        mr      r6,r3
 1:     dcbst   0,r3
-       addi    r3,r3,CFG_CACHELINE_SIZE
+       addi    r3,r3,CONFIG_SYS_CACHELINE_SIZE
        bdnz    1b
        sync                            /* wait for dcbst's to get to ram */
        mtctr   r4
 2:     icbi    0,r6
-       addi    r6,r6,CFG_CACHELINE_SIZE
+       addi    r6,r6,CONFIG_SYS_CACHELINE_SIZE
        bdnz    2b
        SYNC
        blr
index d8c40cea01ccb7f4675570515492dcd0574d85c2..bc33a67be6edd1ce6f0ee6e5668920644b18b45b 100644 (file)
@@ -127,8 +127,8 @@ int get_clocks (void)
 {
        ulong clock = 0;
 
-#ifdef CFG_BUS_CLK
-       gd->bus_clk = CFG_BUS_CLK;      /* bus clock is a fixed frequency */
+#ifdef CONFIG_SYS_BUS_CLK
+       gd->bus_clk = CONFIG_SYS_BUS_CLK;       /* bus clock is a fixed frequency */
 #else
        gd->bus_clk = get_board_bus_clk ();     /* bus clock is configurable */
 #endif
index 42b0f72ac048db8fae7e3824d975d32faa23d52e..07bbe01de958dc8297ad7ad2a11127be38976b88 100644 (file)
@@ -209,7 +209,7 @@ boot_warm:
        bl      invalidate_bats
        sync
 
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        /* init the L2 cache */
        addis   r3, r0, L2_INIT@h
        ori     r3, r3, L2_INIT@l
@@ -225,12 +225,12 @@ boot_warm:
                 */
 #endif
 
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        /* invalidate the L2 cache */
        bl      l2cache_invalidate
        sync
 #endif
-#ifdef CFG_BOARD_ASM_INIT
+#ifdef CONFIG_SYS_BOARD_ASM_INIT
        /* do early init */
        bl      board_asm_init
 #endif
@@ -238,8 +238,8 @@ boot_warm:
        /*
         * Calculate absolute address in FLASH and jump there
         *------------------------------------------------------*/
-       lis     r3, CFG_MONITOR_BASE@h
-       ori     r3, r3, CFG_MONITOR_BASE@l
+       lis     r3, CONFIG_SYS_MONITOR_BASE@h
+       ori     r3, r3, CONFIG_SYS_MONITOR_BASE@l
        addi    r3, r3, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr    r3
        blr
@@ -280,15 +280,15 @@ in_flash:
        bl      l1dcache_enable
        sync
 #endif
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
        bl      lock_ram_in_cache
        sync
 #endif
 
        /* set up the stack pointer in our newly created
         * cache-ram (r1) */
-       lis     r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@h
-       ori     r1, r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@l
+       lis     r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@h
+       ori     r1, r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@l
 
        li      r0, 0           /* Make room for stack frame header and */
        stwu    r0, -4(r1)      /* clear final stack frame so that      */
@@ -343,146 +343,146 @@ setup_bats:
        addis   r0, r0, 0x0000
 
        /* IBAT 0 */
-       addis   r4, r0, CFG_IBAT0L@h
-       ori     r4, r4, CFG_IBAT0L@l
-       addis   r3, r0, CFG_IBAT0U@h
-       ori     r3, r3, CFG_IBAT0U@l
+       addis   r4, r0, CONFIG_SYS_IBAT0L@h
+       ori     r4, r4, CONFIG_SYS_IBAT0L@l
+       addis   r3, r0, CONFIG_SYS_IBAT0U@h
+       ori     r3, r3, CONFIG_SYS_IBAT0U@l
        mtspr   IBAT0L, r4
        mtspr   IBAT0U, r3
        isync
 
        /* DBAT 0 */
-       addis   r4, r0, CFG_DBAT0L@h
-       ori     r4, r4, CFG_DBAT0L@l
-       addis   r3, r0, CFG_DBAT0U@h
-       ori     r3, r3, CFG_DBAT0U@l
+       addis   r4, r0, CONFIG_SYS_DBAT0L@h
+       ori     r4, r4, CONFIG_SYS_DBAT0L@l
+       addis   r3, r0, CONFIG_SYS_DBAT0U@h
+       ori     r3, r3, CONFIG_SYS_DBAT0U@l
        mtspr   DBAT0L, r4
        mtspr   DBAT0U, r3
        isync
 
        /* IBAT 1 */
-       addis   r4, r0, CFG_IBAT1L@h
-       ori     r4, r4, CFG_IBAT1L@l
-       addis   r3, r0, CFG_IBAT1U@h
-       ori     r3, r3, CFG_IBAT1U@l
+       addis   r4, r0, CONFIG_SYS_IBAT1L@h
+       ori     r4, r4, CONFIG_SYS_IBAT1L@l
+       addis   r3, r0, CONFIG_SYS_IBAT1U@h
+       ori     r3, r3, CONFIG_SYS_IBAT1U@l
        mtspr   IBAT1L, r4
        mtspr   IBAT1U, r3
        isync
 
        /* DBAT 1 */
-       addis   r4, r0, CFG_DBAT1L@h
-       ori     r4, r4, CFG_DBAT1L@l
-       addis   r3, r0, CFG_DBAT1U@h
-       ori     r3, r3, CFG_DBAT1U@l
+       addis   r4, r0, CONFIG_SYS_DBAT1L@h
+       ori     r4, r4, CONFIG_SYS_DBAT1L@l
+       addis   r3, r0, CONFIG_SYS_DBAT1U@h
+       ori     r3, r3, CONFIG_SYS_DBAT1U@l
        mtspr   DBAT1L, r4
        mtspr   DBAT1U, r3
        isync
 
        /* IBAT 2 */
-       addis   r4, r0, CFG_IBAT2L@h
-       ori     r4, r4, CFG_IBAT2L@l
-       addis   r3, r0, CFG_IBAT2U@h
-       ori     r3, r3, CFG_IBAT2U@l
+       addis   r4, r0, CONFIG_SYS_IBAT2L@h
+       ori     r4, r4, CONFIG_SYS_IBAT2L@l
+       addis   r3, r0, CONFIG_SYS_IBAT2U@h
+       ori     r3, r3, CONFIG_SYS_IBAT2U@l
        mtspr   IBAT2L, r4
        mtspr   IBAT2U, r3
        isync
 
        /* DBAT 2 */
-       addis   r4, r0, CFG_DBAT2L@h
-       ori     r4, r4, CFG_DBAT2L@l
-       addis   r3, r0, CFG_DBAT2U@h
-       ori     r3, r3, CFG_DBAT2U@l
+       addis   r4, r0, CONFIG_SYS_DBAT2L@h
+       ori     r4, r4, CONFIG_SYS_DBAT2L@l
+       addis   r3, r0, CONFIG_SYS_DBAT2U@h
+       ori     r3, r3, CONFIG_SYS_DBAT2U@l
        mtspr   DBAT2L, r4
        mtspr   DBAT2U, r3
        isync
 
        /* IBAT 3 */
-       addis   r4, r0, CFG_IBAT3L@h
-       ori     r4, r4, CFG_IBAT3L@l
-       addis   r3, r0, CFG_IBAT3U@h
-       ori     r3, r3, CFG_IBAT3U@l
+       addis   r4, r0, CONFIG_SYS_IBAT3L@h
+       ori     r4, r4, CONFIG_SYS_IBAT3L@l
+       addis   r3, r0, CONFIG_SYS_IBAT3U@h
+       ori     r3, r3, CONFIG_SYS_IBAT3U@l
        mtspr   IBAT3L, r4
        mtspr   IBAT3U, r3
        isync
 
        /* DBAT 3 */
-       addis   r4, r0, CFG_DBAT3L@h
-       ori     r4, r4, CFG_DBAT3L@l
-       addis   r3, r0, CFG_DBAT3U@h
-       ori     r3, r3, CFG_DBAT3U@l
+       addis   r4, r0, CONFIG_SYS_DBAT3L@h
+       ori     r4, r4, CONFIG_SYS_DBAT3L@l
+       addis   r3, r0, CONFIG_SYS_DBAT3U@h
+       ori     r3, r3, CONFIG_SYS_DBAT3U@l
        mtspr   DBAT3L, r4
        mtspr   DBAT3U, r3
        isync
 
 #ifdef CONFIG_HIGH_BATS
        /* IBAT 4 */
-       addis   r4, r0, CFG_IBAT4L@h
-       ori     r4, r4, CFG_IBAT4L@l
-       addis   r3, r0, CFG_IBAT4U@h
-       ori     r3, r3, CFG_IBAT4U@l
+       addis   r4, r0, CONFIG_SYS_IBAT4L@h
+       ori     r4, r4, CONFIG_SYS_IBAT4L@l
+       addis   r3, r0, CONFIG_SYS_IBAT4U@h
+       ori     r3, r3, CONFIG_SYS_IBAT4U@l
        mtspr   IBAT4L, r4
        mtspr   IBAT4U, r3
        isync
 
        /* DBAT 4 */
-       addis   r4, r0, CFG_DBAT4L@h
-       ori     r4, r4, CFG_DBAT4L@l
-       addis   r3, r0, CFG_DBAT4U@h
-       ori     r3, r3, CFG_DBAT4U@l
+       addis   r4, r0, CONFIG_SYS_DBAT4L@h
+       ori     r4, r4, CONFIG_SYS_DBAT4L@l
+       addis   r3, r0, CONFIG_SYS_DBAT4U@h
+       ori     r3, r3, CONFIG_SYS_DBAT4U@l
        mtspr   DBAT4L, r4
        mtspr   DBAT4U, r3
        isync
 
        /* IBAT 5 */
-       addis   r4, r0, CFG_IBAT5L@h
-       ori     r4, r4, CFG_IBAT5L@l
-       addis   r3, r0, CFG_IBAT5U@h
-       ori     r3, r3, CFG_IBAT5U@l
+       addis   r4, r0, CONFIG_SYS_IBAT5L@h
+       ori     r4, r4, CONFIG_SYS_IBAT5L@l
+       addis   r3, r0, CONFIG_SYS_IBAT5U@h
+       ori     r3, r3, CONFIG_SYS_IBAT5U@l
        mtspr   IBAT5L, r4
        mtspr   IBAT5U, r3
        isync
 
        /* DBAT 5 */
-       addis   r4, r0, CFG_DBAT5L@h
-       ori     r4, r4, CFG_DBAT5L@l
-       addis   r3, r0, CFG_DBAT5U@h
-       ori     r3, r3, CFG_DBAT5U@l
+       addis   r4, r0, CONFIG_SYS_DBAT5L@h
+       ori     r4, r4, CONFIG_SYS_DBAT5L@l
+       addis   r3, r0, CONFIG_SYS_DBAT5U@h
+       ori     r3, r3, CONFIG_SYS_DBAT5U@l
        mtspr   DBAT5L, r4
        mtspr   DBAT5U, r3
        isync
 
        /* IBAT 6 */
-       addis   r4, r0, CFG_IBAT6L@h
-       ori     r4, r4, CFG_IBAT6L@l
-       addis   r3, r0, CFG_IBAT6U@h
-       ori     r3, r3, CFG_IBAT6U@l
+       addis   r4, r0, CONFIG_SYS_IBAT6L@h
+       ori     r4, r4, CONFIG_SYS_IBAT6L@l
+       addis   r3, r0, CONFIG_SYS_IBAT6U@h
+       ori     r3, r3, CONFIG_SYS_IBAT6U@l
        mtspr   IBAT6L, r4
        mtspr   IBAT6U, r3
        isync
 
        /* DBAT 6 */
-       addis   r4, r0, CFG_DBAT6L@h
-       ori     r4, r4, CFG_DBAT6L@l
-       addis   r3, r0, CFG_DBAT6U@h
-       ori     r3, r3, CFG_DBAT6U@l
+       addis   r4, r0, CONFIG_SYS_DBAT6L@h
+       ori     r4, r4, CONFIG_SYS_DBAT6L@l
+       addis   r3, r0, CONFIG_SYS_DBAT6U@h
+       ori     r3, r3, CONFIG_SYS_DBAT6U@l
        mtspr   DBAT6L, r4
        mtspr   DBAT6U, r3
        isync
 
        /* IBAT 7 */
-       addis   r4, r0, CFG_IBAT7L@h
-       ori     r4, r4, CFG_IBAT7L@l
-       addis   r3, r0, CFG_IBAT7U@h
-       ori     r3, r3, CFG_IBAT7U@l
+       addis   r4, r0, CONFIG_SYS_IBAT7L@h
+       ori     r4, r4, CONFIG_SYS_IBAT7L@l
+       addis   r3, r0, CONFIG_SYS_IBAT7U@h
+       ori     r3, r3, CONFIG_SYS_IBAT7U@l
        mtspr   IBAT7L, r4
        mtspr   IBAT7U, r3
        isync
 
        /* DBAT 7 */
-       addis   r4, r0, CFG_DBAT7L@h
-       ori     r4, r4, CFG_DBAT7L@l
-       addis   r3, r0, CFG_DBAT7U@h
-       ori     r3, r3, CFG_DBAT7U@l
+       addis   r4, r0, CONFIG_SYS_DBAT7L@h
+       ori     r4, r4, CONFIG_SYS_DBAT7L@l
+       addis   r3, r0, CONFIG_SYS_DBAT7U@h
+       ori     r3, r3, CONFIG_SYS_DBAT7U@l
        mtspr   DBAT7L, r4
        mtspr   DBAT7U, r3
        isync
@@ -612,16 +612,16 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address     */
 
        mr      r3,  r5                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
@@ -639,11 +639,11 @@ relocate_code:
        bl      board_relocate_rom
        sync
        mr      r3, r10                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 #else
        cmplw   cr1,r3,r4
        addi    r0,r5,3
@@ -851,14 +851,14 @@ trap_reloc:
 
        blr
 
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
 lock_ram_in_cache:
        /* Allocate Initial RAM in data cache.
         */
-       lis     r3, (CFG_INIT_RAM_ADDR & ~31)@h
-       ori     r3, r3, (CFG_INIT_RAM_ADDR & ~31)@l
-       li      r2, ((CFG_INIT_RAM_END & ~31) + \
-                    (CFG_INIT_RAM_ADDR & 31) + 31) / 32
+       lis     r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@h
+       ori     r3, r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@l
+       li      r2, ((CONFIG_SYS_INIT_RAM_END & ~31) + \
+                    (CONFIG_SYS_INIT_RAM_ADDR & 31) + 31) / 32
        mtctr   r2
 1:
        dcbz    r0, r3
@@ -876,10 +876,10 @@ lock_ram_in_cache:
 .globl unlock_ram_in_cache
 unlock_ram_in_cache:
        /* invalidate the INIT_RAM section */
-       lis     r3, (CFG_INIT_RAM_ADDR & ~31)@h
-       ori     r3, r3, (CFG_INIT_RAM_ADDR & ~31)@l
-       li      r2, ((CFG_INIT_RAM_END & ~31) + \
-                    (CFG_INIT_RAM_ADDR & 31) + 31) / 32
+       lis     r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@h
+       ori     r3, r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@l
+       li      r2, ((CONFIG_SYS_INIT_RAM_END & ~31) + \
+                    (CONFIG_SYS_INIT_RAM_ADDR & 31) + 31) / 32
        mtctr   r2
 1:     icbi    r0, r3
        addi    r3, r3, 32
index c27f8cd58c0cdad3e9900f4a751fe37b47082873..04861632e1b3fa679ff3530b33b5ee553a490c7d 100644 (file)
@@ -89,7 +89,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index cd57071ec6bb9ea152e52143f5dfb691ce584bbc..b36c58c6ac59ba771bf01fb713ec53541834a1b7 100644 (file)
 #define GPTCR_CLKSOURCE_32     (4 << 6)        /* Clock source         */
 #define GPTCR_TEN              1               /* Timer enable         */
 
-/* "time" is measured in 1 / CFG_HZ seconds, "tick" is internal timer period */
+/* "time" is measured in 1 / CONFIG_SYS_HZ seconds, "tick" is internal timer period */
 #ifdef CONFIG_MX31_TIMER_HIGH_PRECISION
 /* ~0.4% error - measured with stop-watch on 100s boot-delay */
-#define TICK_TO_TIME(t)        ((t) * CFG_HZ / CONFIG_MX31_CLK32)
-#define TIME_TO_TICK(t)        ((unsigned long long)(t) * CONFIG_MX31_CLK32 / CFG_HZ)
+#define TICK_TO_TIME(t)        ((t) * CONFIG_SYS_HZ / CONFIG_MX31_CLK32)
+#define TIME_TO_TICK(t)        ((unsigned long long)(t) * CONFIG_MX31_CLK32 / CONFIG_SYS_HZ)
 #define US_TO_TICK(t)  (((unsigned long long)(t) * CONFIG_MX31_CLK32 + \
                        999999) / 1000000)
 #else
 /* ~2% error */
-#define TICK_PER_TIME  ((CONFIG_MX31_CLK32 + CFG_HZ / 2) / CFG_HZ)
+#define TICK_PER_TIME  ((CONFIG_MX31_CLK32 + CONFIG_SYS_HZ / 2) / CONFIG_SYS_HZ)
 #define US_PER_TICK    (1000000 / CONFIG_MX31_CLK32)
 #define TICK_TO_TIME(t)        ((t) / TICK_PER_TIME)
 #define TIME_TO_TICK(t)        ((unsigned long long)(t) * TICK_PER_TIME)
@@ -104,7 +104,7 @@ ulong get_timer_masked (void)
        /*
         * get_ticks() returns a long long (64 bit), it wraps in
         * 2^64 / CONFIG_MX31_CLK32 = 2^64 / 2^15 = 2^49 ~ 5 * 10^14 (s) ~
-        * 5 * 10^9 days... and get_ticks() * CFG_HZ wraps in
+        * 5 * 10^9 days... and get_ticks() * CONFIG_SYS_HZ wraps in
         * 5 * 10^6 days - long enough.
         */
        return TICK_TO_TIME(get_ticks());
index f498599419d8e5743d0cac394736e8121dd68b38..e025e941d912709d5ad2a7c073aaf1005e6c06b3 100644 (file)
 
 #define __REG(x)     (*((volatile u32 *)(x)))
 
-#ifdef CFG_MX31_UART1
+#ifdef CONFIG_SYS_MX31_UART1
 #define UART_PHYS 0x43f90000
-#elif defined(CFG_MX31_UART2)
+#elif defined(CONFIG_SYS_MX31_UART2)
 #define UART_PHYS 0x43f94000
-#elif defined(CFG_MX31_UART3)
+#elif defined(CONFIG_SYS_MX31_UART3)
 #define UART_PHYS 0x5000c000
-#elif defined(CFG_MX31_UART4)
+#elif defined(CONFIG_SYS_MX31_UART4)
 #define UART_PHYS 0x43fb0000
-#elif defined(CFG_MX31_UART5)
+#elif defined(CONFIG_SYS_MX31_UART5)
 #define UART_PHYS 0x43fb4000
 #else
-#error "define CFG_MX31_UARTx to use the mx31 UART driver"
+#error "define CONFIG_SYS_MX31_UARTx to use the mx31 UART driver"
 #endif
 
 /* Register definitions */
index b9a8b93521b8ba62b87ea809bf11df9c70e1c5cb..fb02a49be7aab968861f03c0a8d6f66c18799433 100644 (file)
@@ -37,7 +37,7 @@
 #define TIMER_LOAD_VAL 0
 
 /* macro to read the 32 bit timer */
-#define READ_TIMER (*((volatile ulong *)(CFG_TIMERBASE+TCRR)))
+#define READ_TIMER (*((volatile ulong *)(CONFIG_SYS_TIMERBASE+TCRR)))
 
 static ulong timestamp;
 static ulong lastinc;
@@ -48,9 +48,9 @@ int interrupt_init (void)
        int32_t val;
 
        /* Start the counter ticking up */
-       *((int32_t *) (CFG_TIMERBASE + TLDR)) = TIMER_LOAD_VAL; /* reload value on overflow*/
-       val = (CFG_PVT << 2) | BIT5 | BIT1 | BIT0;              /* mask to enable timer*/
-       *((int32_t *) (CFG_TIMERBASE + TCLR)) = val;    /* start timer */
+       *((int32_t *) (CONFIG_SYS_TIMERBASE + TLDR)) = TIMER_LOAD_VAL;  /* reload value on overflow*/
+       val = (CONFIG_SYS_PVT << 2) | BIT5 | BIT1 | BIT0;               /* mask to enable timer*/
+       *((int32_t *) (CONFIG_SYS_TIMERBASE + TCLR)) = val;     /* start timer */
 
        reset_timer_masked(); /* init the timestamp and lastinc value */
 
@@ -81,10 +81,10 @@ void udelay (unsigned long usec)
 
        if (usec >= 1000) {                     /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;              /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;                  /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;                   /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;                    /* finish normalize. */
        } else {                                        /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -125,10 +125,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {                     /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;              /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;                  /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;                   /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;                    /* finish normalize. */
        } else {                                        /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
        endtime = get_timer_masked () + tmo;
@@ -154,6 +154,6 @@ unsigned long long get_ticks(void)
 ulong get_tbclk (void)
 {
        ulong tbclk;
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
index 51b664d9355e0803c9518d9b5a6656e28878d603..e6223388d93d43d68945b1360bffda2da7ee0a96 100644 (file)
@@ -178,8 +178,8 @@ stack_setup:
 #ifdef CONFIG_ONENAND_IPL
        sub     sp, r0, #128            /* leave 32 words for abort-stack   */
 #else
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area                       */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                         */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -290,8 +290,8 @@ cpu_init_crit:
        stmia   sp, {r0 - r12}                  @ Save user registers (now in svc mode) r0-r12
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)   @ set base 2 words into abort stack
        ldmia   r2, {r2 - r3}                   @ get values for "aborted" pc and cpsr (into parm regs)
        add     r0, sp, #S_FRAME_SIZE           @ grab pointer to old stack
 
@@ -323,8 +323,8 @@ cpu_init_crit:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack (enter in banked mode)
-       sub     r13, r13, #(CFG_MALLOC_LEN)     @ move past malloc pool
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ move to reserved a couple spots for abort stack
+       sub     r13, r13, #(CONFIG_SYS_MALLOC_LEN)      @ move past malloc pool
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ move to reserved a couple spots for abort stack
 
        str     lr, [r13]                       @ save caller lr in position 0 of saved stack
        mrs     lr, spsr                        @ get the spsr
@@ -341,8 +341,8 @@ cpu_init_crit:
        sub     r13, r13, #4                    @ space on current stack for scratch reg.
        str     r0, [r13]                       @ save R0's value.
        ldr     r0, _armboot_start              @ get data regions start
-       sub     r0, r0, #(CFG_MALLOC_LEN)       @ move past malloc pool
-       sub     r0, r0, #(CFG_GBL_DATA_SIZE+8)  @ move past gbl and a couple spots for abort stack
+       sub     r0, r0, #(CONFIG_SYS_MALLOC_LEN)        @ move past malloc pool
+       sub     r0, r0, #(CONFIG_SYS_GBL_DATA_SIZE+8)   @ move past gbl and a couple spots for abort stack
        str     lr, [r0]                        @ save caller lr in position 0 of saved stack
        mrs     r0, spsr                        @ get the spsr
        str     lr, [r0, #4]                    @ save spsr in position 1 of saved stack
index e34369f890929f364c73908fe8952ad295a11350..83f3806ac6b3b48b31f927f40e0b0dd8d5714e8d 100644 (file)
@@ -150,7 +150,7 @@ void reset_timer(void)
 ulong get_timer_masked(void)
 {
        unsigned long long res = get_ticks();
-       do_div (res, (timer_load_val / (100 * CFG_HZ)));
+       do_div (res, (timer_load_val / (100 * CONFIG_SYS_HZ)));
        return res;
 }
 
@@ -161,7 +161,7 @@ ulong get_timer(ulong base)
 
 void set_timer(ulong t)
 {
-       timestamp = t * (timer_load_val / (100 * CFG_HZ));
+       timestamp = t * (timer_load_val / (100 * CONFIG_SYS_HZ));
 }
 
 void udelay(unsigned long usec)
index 991277f1c7eec90b28030943a0a08f1593df1f32..cb891df1790fc0fc54f494cc7f76b4533e7d0f65 100644 (file)
@@ -37,8 +37,8 @@
 #endif
 #include <s3c6400.h>
 
-#if !defined(CONFIG_ENABLE_MMU) && !defined(CFG_PHY_UBOOT_BASE)
-#define CFG_PHY_UBOOT_BASE     CFG_UBOOT_BASE
+#if !defined(CONFIG_ENABLE_MMU) && !defined(CONFIG_SYS_PHY_UBOOT_BASE)
+#define CONFIG_SYS_PHY_UBOOT_BASE      CONFIG_SYS_UBOOT_BASE
 #endif
 
 /*
@@ -105,7 +105,7 @@ _TEXT_BASE:
  * by scsuh.
  */
 _TEXT_PHY_BASE:
-       .word   CFG_PHY_UBOOT_BASE
+       .word   CONFIG_SYS_PHY_UBOOT_BASE
 
 .globl _armboot_start
 _armboot_start:
@@ -209,7 +209,7 @@ enable_mmu:
 
        /* Set the TTB register */
        ldr     r0, _mmu_table_base
-       ldr     r1, =CFG_PHY_UBOOT_BASE
+       ldr     r1, =CONFIG_SYS_PHY_UBOOT_BASE
        ldr     r2, =0xfff00000
        bic     r0, r0, r2
        orr     r1, r0, r1
@@ -242,11 +242,11 @@ skip_hw_init:
        /* Set up the stack                                                 */
 stack_setup:
 #ifdef CONFIG_MEMORY_UPPER_CODE
-       ldr     sp, =(CFG_UBOOT_BASE + CFG_UBOOT_SIZE - 0xc)
+       ldr     sp, =(CONFIG_SYS_UBOOT_BASE + CONFIG_SYS_UBOOT_SIZE - 0xc)
 #else
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
        sub     sp, r0, #12             /* leave 3 words for abort-stack    */
 
 #endif
@@ -357,9 +357,9 @@ phy_last_jump:
        stmia   sp, {r0 - r12}
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CFG_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_MALLOC_LEN)
        /* set base 2 words into abort stack */
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)
        /* get values for "aborted" pc and cpsr (into parm regs) */
        ldmia   r2, {r2 - r3}
        /* grab pointer to old stack */
@@ -377,9 +377,9 @@ phy_last_jump:
        /* setup our mode stack (enter in banked mode) */
        ldr     r13, _armboot_start
        /* move past malloc pool */
-       sub     r13, r13, #(CFG_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_MALLOC_LEN)
        /* move to reserved a couple spots for abort stack */
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE + 8)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE + 8)
 
        /* save caller lr in position 0 of saved stack */
        str     lr, [r13]
@@ -407,9 +407,9 @@ phy_last_jump:
        /* get data regions start */
        ldr     r0, _armboot_start
        /* move past malloc pool */
-       sub     r0, r0, #(CFG_MALLOC_LEN)
+       sub     r0, r0, #(CONFIG_SYS_MALLOC_LEN)
        /* move past gbl and a couple spots for abort stack */
-       sub     r0, r0, #(CFG_GBL_DATA_SIZE + 8)
+       sub     r0, r0, #(CONFIG_SYS_GBL_DATA_SIZE + 8)
        /* save caller lr in position 0 of saved stack */
        str     lr, [r0]
        /* get the spsr */
index 60c1aa90b6b97d6f133b62a3e7820df47ff8af03..5ac8f59ab3caf2f1b551fc919b0ff64d3e814d52 100644 (file)
@@ -41,7 +41,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index 9854016d43ef900d1c85945ad63337312f86dd5e..39ed345bb76b23e8824212e09962741b928b0794 100644 (file)
@@ -95,7 +95,7 @@ static void timer_isr( void *data) {
        unsigned int *pTime = (unsigned int *)data;
 
        (*pTime)++;
-       if ( !(*pTime % (CFG_HZ/4))) {
+       if ( !(*pTime % (CONFIG_SYS_HZ/4))) {
                /* toggle LED 0 */
                PUT_REG( REG_IOPDATA, GET_REG(REG_IOPDATA) ^ 0x1);
        }
@@ -118,7 +118,7 @@ int interrupt_init (void)
        IRQEN = 0;
 
        /* operate timer 2 in non-prescale mode */
-       TM2CTRL = ( NETARM_GEN_TIMER_SET_HZ(CFG_HZ) |
+       TM2CTRL = ( NETARM_GEN_TIMER_SET_HZ(CONFIG_SYS_HZ) |
                    NETARM_GEN_TCTL_ENABLE |
                    NETARM_GEN_TCTL_INIT_COUNT(TIMER_LOAD_VAL));
 
@@ -166,9 +166,9 @@ int interrupt_init (void)
 
        /*
         * Load Timer data register with count down value.
-        * count_down_val = CFG_SYS_CLK_FREQ/CFG_HZ
+        * count_down_val = CONFIG_SYS_SYS_CLK_FREQ/CONFIG_SYS_HZ
         */
-       PUT_REG( REG_TDATA0, (CFG_SYS_CLK_FREQ / CFG_HZ));
+       PUT_REG( REG_TDATA0, (CONFIG_SYS_SYS_CLK_FREQ / CONFIG_SYS_HZ));
 
        /*
         * Enable global interrupt
@@ -181,7 +181,7 @@ int interrupt_init (void)
 #elif defined(CONFIG_LPC2292)
        PUT32(T0IR, 0);         /* disable all timer0 interrupts */
        PUT32(T0TCR, 0);        /* disable timer0 */
-       PUT32(T0PR, CFG_SYS_CLK_FREQ / CFG_HZ);
+       PUT32(T0PR, CONFIG_SYS_SYS_CLK_FREQ / CONFIG_SYS_HZ);
        PUT32(T0MCR, 0);
        PUT32(T0TC, 0);
        PUT32(T0TCR, 1);        /* enable timer0 */
@@ -223,7 +223,7 @@ void udelay (unsigned long usec)
        ulong tmo;
 
        tmo = usec / 1000;
-       tmo *= CFG_HZ;
+       tmo *= CONFIG_SYS_HZ;
        tmo /= 1000;
 
        tmo += get_timer (0);
@@ -268,10 +268,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {
                tmo = usec / 1000;
-               tmo *= CFG_HZ;
+               tmo *= CONFIG_SYS_HZ;
                tmo /= 1000;
        } else {
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -294,7 +294,7 @@ void udelay (unsigned long usec)
 {
        u32 ticks;
 
-       ticks = (usec * CFG_HZ) / 1000000;
+       ticks = (usec * CONFIG_SYS_HZ) / 1000000;
 
        ticks += get_timer (0);
 
index e5c869722dcc46b770e7f69a2c16c3860c22bcd8..3d2dc32231e5f14badc75ccf073d6b3e7e221995 100644 (file)
@@ -85,7 +85,7 @@ int lpc2292_copy_buffer_to_flash(flash_info_t * info, ulong flash_addr)
        command[1] = flash_addr;
        command[2] = COPY_BUFFER_LOCATION;
        command[3] = 512;
-       command[4] = CFG_SYS_CLK_FREQ >> 10;
+       command[4] = CONFIG_SYS_SYS_CLK_FREQ >> 10;
        iap_entry(command, result);
        if (result[0] != IAP_RET_CMD_SUCCESS) {
                printf("IAP copy failed\n");
@@ -132,7 +132,7 @@ int lpc2292_flash_erase (flash_info_t * info, int s_first, int s_last)
        command[0] = IAP_CMD_ERASE;
        command[1] = s_first;
        command[2] = s_last;
-       command[3] = CFG_SYS_CLK_FREQ >> 10;
+       command[3] = CONFIG_SYS_SYS_CLK_FREQ >> 10;
        iap_entry(command, result);
        if (result[0] != IAP_RET_CMD_SUCCESS) {
                printf("IAP erase failed\n");
index 1b0e147e1691f79e6b13d62a80fe2083bac27b70..54a9b3137bd2c8ef2160e7fb1d479966116970bc 100644 (file)
@@ -85,7 +85,7 @@ void serial_putc (const char c)
        if (c == '\n')
                serial_putc ('\r');
 
-       tmo = get_timer (0) + 1 * CFG_HZ;
+       tmo = get_timer (0) + 1 * CONFIG_SYS_HZ;
        while (IO_SYSFLG1 & SYSFLG1_UTXFF)
                if (get_timer (0) > tmo)
                        break;
index a593cbc32f0db872c7590085e99753c555e206c9..1a1b2dbd4f736c611e30df05e2743db0a95f23f1 100644 (file)
@@ -46,7 +46,7 @@ DECLARE_GLOBAL_DATA_PTR;
 /* wait until transmitter is ready for another character */
 #define TXWAITRDY(registers)                                                   \
 {                                                                              \
-       ulong tmo = get_timer(0) + 1 * CFG_HZ;                                  \
+       ulong tmo = get_timer(0) + 1 * CONFIG_SYS_HZ;                                   \
        while (((registers)->status_a & NETARM_SER_STATA_TX_RDY) == 0 ) {       \
                if (get_timer(0) > tmo)                                         \
                        break;                                                  \
index 8423e4f68d2689167f3f6f17d30c378d17e34959..022b873e35c4e8a45e8a2e5048b5c95234f5f89c 100644 (file)
@@ -166,8 +166,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area                       */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                         */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -444,8 +444,8 @@ lock_loop:
        add     r8, sp, #S_PC
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)   @ set base 2 words into abort stack
        ldmia   r2, {r2 - r4}                   @ get pc, cpsr, old_r0
        add     r0, sp, #S_FRAME_SIZE           @ restore sp_SVC
 
@@ -477,8 +477,8 @@ lock_loop:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]                       @ save caller lr / spsr
        mrs     lr, spsr
index 90f95df18a07feb75dc054e63efce80c7945ba80..b68c5dd8263d77fb018b41e19bd10477c100bea5 100644 (file)
@@ -120,7 +120,7 @@ int
 i2c_read (unsigned char chip, unsigned int addr, int alen,
          unsigned char *buffer, int len)
 {
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /* we only allow one address byte */
        if (alen > 1)
                return 1;
@@ -139,7 +139,7 @@ int
 i2c_write(unsigned char chip, unsigned int addr, int alen,
          unsigned char *buffer, int len)
 {
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        int i;
        unsigned char *buf;
 
@@ -210,7 +210,7 @@ int i2c_set_bus_speed(unsigned int speed)
 
 unsigned int i2c_get_bus_speed(void)
 {
-       return CFG_I2C_SPEED;
+       return CONFIG_SYS_I2C_SPEED;
 }
 
 #endif /* CONFIG_HARD_I2C */
index 10546027f8daa75c2e41558c5d866d58962ed6ae..5f0703c2de28676d9fe67b6dacb220ed45506d65 100644 (file)
@@ -35,8 +35,8 @@
 #include <asm/arch/hardware.h>
 /*#include <asm/proc/ptrace.h>*/
 
-/* the number of clocks per CFG_HZ */
-#define TIMER_LOAD_VAL (CFG_HZ_CLOCK/CFG_HZ)
+/* the number of clocks per CONFIG_SYS_HZ */
+#define TIMER_LOAD_VAL (CONFIG_SYS_HZ_CLOCK/CONFIG_SYS_HZ)
 
 /* macro to read the 16 bit timer */
 #define READ_TIMER (tmr->TC_CV & 0x0000ffff)
@@ -126,7 +126,7 @@ void udelay_masked (unsigned long usec)
        ulong endtime;
        signed long diff;
 
-       tmo = CFG_HZ_CLOCK / 1000;
+       tmo = CONFIG_SYS_HZ_CLOCK / 1000;
        tmo *= usec;
        tmo /= 1000;
 
@@ -155,7 +155,7 @@ ulong get_tbclk (void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
 
index 98363eb40059db0cc34fa6eed7e8ec309086b810..66b07da08b668f4ba33e05f49dc3d02013b9efb6 100644 (file)
@@ -79,7 +79,7 @@ lowlevel_init:
        /* Get the CKGR Base Address */
        ldr     r1, =AT91C_BASE_CKGR
        /* Main oscillator Enable register */
-#ifdef CFG_USE_MAIN_OSCILLATOR
+#ifdef CONFIG_SYS_USE_MAIN_OSCILLATOR
        ldr     r0, =0x0000FF01         /* Enable main oscillator,  OSCOUNT = 0xFF */
 #else
        ldr     r0, =0x0000FF00         /* Disable main oscillator, OSCOUNT = 0xFF */
index 265d18525f000b2c9681b733e1021286ffd7c6d2..f3cb5d8c2c674fd784e375bc7dd7e9b962cec0e7 100644 (file)
@@ -137,11 +137,11 @@ unsigned int AT91F_SpiWrite ( AT91PS_DataflashDesc pDesc )
 
        AT91C_BASE_SPI->SPI_PTCR = AT91C_PDC_TXTEN + AT91C_PDC_RXTEN;
        while(!(AT91C_BASE_SPI->SPI_SR & AT91C_SPI_RXBUFF) &&
-               ((timeout = get_timer_masked() ) < CFG_SPI_WRITE_TOUT));
+               ((timeout = get_timer_masked() ) < CONFIG_SYS_SPI_WRITE_TOUT));
        AT91C_BASE_SPI->SPI_PTCR = AT91C_PDC_TXTDIS + AT91C_PDC_RXTDIS;
        pDesc->state = IDLE;
 
-       if (timeout >= CFG_SPI_WRITE_TOUT){
+       if (timeout >= CONFIG_SYS_SPI_WRITE_TOUT){
                printf("Error Timeout\n\r");
                return DATAFLASH_ERROR;
        }
index c121de6328ed8cac480ce097b395092bbae4bb9d..72355dcf9aa15bc01ba6e61905ded7cdd10736bf 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 # ifdef CONFIG_AT91RM9200
 
 #include <asm/arch/hardware.h>
@@ -50,4 +50,4 @@ int usb_cpu_init_fail(void)
 }
 
 # endif /* CONFIG_AT91RM9200 */
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */
index f93bf57e2b47fe6a79be27372e039d726e0ed5ef..1b9cde62faeeb9b82545a7174ab4087aa3aee3db 100644 (file)
@@ -95,7 +95,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index c61d3bc29cebc8e8a75701173b9ffd80b285978f..ddcfb3462103398184fc970438a8d89e176cc09e 100644 (file)
@@ -112,7 +112,7 @@ ulong get_tbclk (void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
 
        return tbclk;
 }
index c9cd066c9003dc7113f59f40721983a5926bcfd0..09c54dbde137ddc19bca9e0cc822cfb8b8154225 100644 (file)
@@ -42,7 +42,7 @@ void do_irq (struct pt_regs *pt_regs)
        /* ASSUMED to be a timer interrupt  */
        /* Just clear it - count handled in */
        /* integratorap.c                   */
-       *(volatile ulong *)(CFG_TIMERBASE + 0x0C) = 0;
+       *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 0x0C) = 0;
 #else
 #error do_irq() not defined for this cpu type
 #endif
index 374b68313711bca01ea9848306ecd87f84828e0a..fba5cd1b5fbeb5be6cc19306bb4ced764a450e36 100644 (file)
@@ -384,7 +384,7 @@ int i2c_read (uchar chip, uint addr, int alen, uchar * buffer, int len)
                xaddr[3] = addr & 0xFF;
        }
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones
         * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
@@ -397,7 +397,7 @@ int i2c_read (uchar chip, uint addr, int alen, uchar * buffer, int len)
         * hidden in the chip address.
         */
        if (alen > 0)
-               chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+               chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
        if ((ret =
             i2c_transfer (I2C_READ, chip << 1, &xaddr[4 - alen], alen,
@@ -423,7 +423,7 @@ int i2c_write (uchar chip, uint addr, int alen, uchar * buffer, int len)
                xaddr[2] = (addr >> 8) & 0xFF;
                xaddr[3] = addr & 0xFF;
        }
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones
         * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
@@ -436,7 +436,7 @@ int i2c_write (uchar chip, uint addr, int alen, uchar * buffer, int len)
         * hidden in the chip address.
         */
        if (alen > 0)
-               chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+               chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
        return (i2c_transfer
                (I2C_WRITE, chip << 1, &xaddr[4 - alen], alen, buffer,
index 7ad9fcbd5bad0a9096a0ead97a11bfb05ea1e4b1..11e68042848a170b4426a6e9b93c70e23a3cdc90 100644 (file)
@@ -179,7 +179,7 @@ ulong get_tbclk (void)
 #elif defined(CONFIG_SBC2410X) || \
       defined(CONFIG_SMDK2410) || \
       defined(CONFIG_VCMA9)
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
 #else
 #      error "tbclk not configured"
 #endif
index 421ebb4373f615d5f28920739569eb408874e454..9ccf5759642df2632fa495ac70556094d357dabc 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 # if defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410)
 
 #if defined(CONFIG_S3C2400)
@@ -69,4 +69,4 @@ int usb_cpu_init_fail (void)
 }
 
 # endif /* defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410) */
-#endif /* defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */
index 5d0fec681a073588dc3793b3d99d7ec647f93abe..17977c26b1ef3011c41bf45607cd7774d71bafe5 100644 (file)
@@ -202,8 +202,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -316,8 +316,8 @@ cpu_init_crit:
        stmia   sp, {r0 - r12}                  @ Calling r0-r12
        ldr     r2, _armboot_start
        sub     r2, r2, #(CONFIG_STACKSIZE)
-       sub     r2, r2, #(CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        ldmia   r2, {r2 - r3}                   @ get pc, cpsr
        add     r0, sp, #S_FRAME_SIZE           @ restore sp_SVC
 
@@ -350,8 +350,8 @@ cpu_init_crit:
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
        sub     r13, r13, #(CONFIG_STACKSIZE)
-       sub     r13, r13, #(CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]                       @ save caller lr / spsr
        mrs     lr, spsr
index d85b7fad39ed378cb73fc71edfe90d7eab282af6..b9f09318ad52cb2189b46db763a527052bef0f73 100644 (file)
@@ -95,7 +95,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index 208a25bd96429aef20622da4accffb02d1a27e38..3ef455447cf81138cc772f3f6e0ad0fb47fd8bd5 100644 (file)
@@ -39,7 +39,7 @@
 #define TIMER_LOAD_VAL 0xffffffff
 
 /* macro to read the 32 bit timer */
-#define READ_TIMER (*(volatile ulong *)(CFG_TIMERBASE+8))
+#define READ_TIMER (*(volatile ulong *)(CONFIG_SYS_TIMERBASE+8))
 
 static ulong timestamp;
 static ulong lastdec;
@@ -50,9 +50,9 @@ int interrupt_init (void)
        int32_t val;
 
        /* Start the decrementer ticking down from 0xffffffff */
-       *((int32_t *) (CFG_TIMERBASE + LOAD_TIM)) = TIMER_LOAD_VAL;
-       val = MPUTIM_ST | MPUTIM_AR | MPUTIM_CLOCK_ENABLE | (CFG_PVT << MPUTIM_PTV_BIT);
-       *((int32_t *) (CFG_TIMERBASE + CNTL_TIMER)) = val;
+       *((int32_t *) (CONFIG_SYS_TIMERBASE + LOAD_TIM)) = TIMER_LOAD_VAL;
+       val = MPUTIM_ST | MPUTIM_AR | MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PVT << MPUTIM_PTV_BIT);
+       *((int32_t *) (CONFIG_SYS_TIMERBASE + CNTL_TIMER)) = val;
 
        /* init the timestamp and lastdec value */
        reset_timer_masked();
@@ -86,10 +86,10 @@ void udelay (unsigned long usec)
 
        if(usec >= 1000){               /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;      /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;          /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;           /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;            /* finish normalize. */
        }else{                          /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -145,10 +145,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {             /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;      /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;          /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;           /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;            /* finish normalize. */
        } else {                        /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -178,6 +178,6 @@ ulong get_tbclk (void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
index 5ddda54bddeef0669de1e75428d8573364b5c3ec..c48014d14be80820e6f54aa21418d016c1a64bdb 100644 (file)
@@ -190,8 +190,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -295,8 +295,8 @@ cpu_init_crit:
        stmia   sp, {r0 - r12}                  @ Save user registers (now in svc mode) r0-r12
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        ldmia   r2, {r2 - r3}                   @ get values for "aborted" pc and cpsr (into parm regs)
        add     r0, sp, #S_FRAME_SIZE           @ grab pointer to old stack
 
@@ -328,8 +328,8 @@ cpu_init_crit:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]                       @ save caller lr in position 0 of saved stack
        mrs     lr, spsr                        @ get the spsr
index c9fe6d8a3fc9fca37db09ea7a4dd458e2bd847ad..3eb252c5b5d1d5314c023117c66b115a4bf95b4a 100644 (file)
@@ -48,7 +48,7 @@ void AT91F_SpiInit(void)
               ((AT91_MASTER_CLOCK / AT91_SPI_CLK) << 8),
               AT91_BASE_SPI + AT91_SPI_CSR(0));
 
-#ifdef CFG_DATAFLASH_LOGIC_ADDR_CS1
+#ifdef CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1
        /* Configure CS1 */
        writel(AT91_SPI_NCPHA |
               (AT91_SPI_DLYBS & DATAFLASH_TCSS) |
@@ -57,7 +57,7 @@ void AT91F_SpiInit(void)
               AT91_BASE_SPI + AT91_SPI_CSR(1));
 #endif
 
-#ifdef CFG_DATAFLASH_LOGIC_ADDR_CS3
+#ifdef CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3
        /* Configure CS3 */
        writel(AT91_SPI_NCPHA |
               (AT91_SPI_DLYBS & DATAFLASH_TCSS) |
@@ -144,11 +144,11 @@ unsigned int AT91F_SpiWrite(AT91PS_DataflashDesc pDesc)
 
        writel(AT91_SPI_TXTEN + AT91_SPI_RXTEN, AT91_BASE_SPI + AT91_SPI_PTCR);
        while (!(readl(AT91_BASE_SPI + AT91_SPI_SR) & AT91_SPI_RXBUFF) &&
-               ((timeout = get_timer_masked()) < CFG_SPI_WRITE_TOUT));
+               ((timeout = get_timer_masked()) < CONFIG_SYS_SPI_WRITE_TOUT));
        writel(AT91_SPI_TXTDIS + AT91_SPI_RXTDIS, AT91_BASE_SPI + AT91_SPI_PTCR);
        pDesc->state = IDLE;
 
-       if (timeout >= CFG_SPI_WRITE_TOUT) {
+       if (timeout >= CONFIG_SYS_SPI_WRITE_TOUT) {
                printf("Error Timeout\n\r");
                return DATAFLASH_ERROR;
        }
index c79ec7e7ae145ab794a17e5dc330541879732679..fec545b6652737a88d89cc96b81fe24989982ef6 100644 (file)
@@ -130,7 +130,7 @@ ulong get_tbclk(void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
 
index 2a92f734ddc7579463c687d3adaf4eb5f0d7f762..7cb082db1be4dfe8a52f010d870aa50b1e2ba929 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 
 #include <asm/arch/hardware.h>
 #include <asm/arch/io.h>
@@ -59,4 +59,4 @@ int usb_cpu_init_fail(void)
        return usb_cpu_stop();
 }
 
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */
index 56c6289da6685dd3c174bcda9c97e09cbe3dc16e..48a2c0bf213d9bb33d73438a85e7f1bd7faa3d40 100644 (file)
@@ -95,7 +95,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index af9dc034c2ab1597aa0f6f26067ac150178551b6..d220a4c728eb48fc83ba64d84505a9e0f1e55286 100644 (file)
@@ -104,7 +104,7 @@ void i2c_init(int speed, int slaveadd)
        }
 
        psc = 2;
-       div = (CFG_HZ_CLOCK / ((psc + 1) * speed)) - 10;        /* SCLL + SCLH */
+       div = (CONFIG_SYS_HZ_CLOCK / ((psc + 1) * speed)) - 10; /* SCLL + SCLH */
        REG(I2C_PSC) = psc;                     /* 27MHz / (2 + 1) = 9MHz */
        REG(I2C_SCLL) = (div * 50) / 100;       /* 50% Duty */
        REG(I2C_SCLH) = div - REG(I2C_SCLL);
index f7cf0c9ec262b26764fdd9bb5ee3559b527b74c4..014e2b0c1135ca41089e4b338ad75bbf4ae13b5e 100644 (file)
 #include <common.h>
 #include <asm/io.h>
 
-#ifdef CFG_USE_NAND
+#ifdef CONFIG_SYS_USE_NAND
 #if !defined(CONFIG_NAND_LEGACY)
 
 #include <nand.h>
 #include <asm/arch/nand_defs.h>
 #include <asm/arch/emif_defs.h>
 
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+extern struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE];
 
 static void nand_davinci_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
 {
@@ -87,11 +87,11 @@ static void nand_davinci_select_chip(struct mtd_info *mtd, int chip)
 #endif
 }
 
-#ifdef CFG_NAND_HW_ECC
-#ifdef CFG_DAVINCI_BROKEN_ECC
+#ifdef CONFIG_SYS_NAND_HW_ECC
+#ifdef CONFIG_SYS_DAVINCI_BROKEN_ECC
 /* Linux-compatible ECC uses MTD defaults. */
 /* These layouts are not compatible with Linux or RBL/UBL. */
-#ifdef CFG_NAND_LARGEPAGE
+#ifdef CONFIG_SYS_NAND_LARGEPAGE
 static struct nand_ecclayout davinci_nand_ecclayout = {
        .eccbytes = 12,
        .eccpos = {8, 9, 10, 24, 25, 26, 40, 41, 42, 56, 57, 58},
@@ -103,7 +103,7 @@ static struct nand_ecclayout davinci_nand_ecclayout = {
                {.offset = 60, .length = 4}
        }
 };
-#elif defined(CFG_NAND_SMALLPAGE)
+#elif defined(CONFIG_SYS_NAND_SMALLPAGE)
 static struct nand_ecclayout davinci_nand_ecclayout = {
        .eccbytes = 3,
        .eccpos = {0, 1, 2},
@@ -113,9 +113,9 @@ static struct nand_ecclayout davinci_nand_ecclayout = {
        }
 };
 #else
-#error "Either CFG_NAND_LARGEPAGE or CFG_NAND_SMALLPAGE must be defined!"
+#error "Either CONFIG_SYS_NAND_LARGEPAGE or CONFIG_SYS_NAND_SMALLPAGE must be defined!"
 #endif
-#endif /* CFG_DAVINCI_BROKEN_ECC */
+#endif /* CONFIG_SYS_DAVINCI_BROKEN_ECC */
 
 static void nand_davinci_enable_hwecc(struct mtd_info *mtd, int mode)
 {
@@ -154,7 +154,7 @@ static u_int32_t nand_davinci_readecc(struct mtd_info *mtd, u_int32_t region)
 static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code)
 {
        u_int32_t               tmp;
-#ifdef CFG_DAVINCI_BROKEN_ECC
+#ifdef CONFIG_SYS_DAVINCI_BROKEN_ECC
        /*
         * This is not how you should read ECCs on large page Davinci devices.
         * The region parameter gets you ECCs for flash chips on different chip
@@ -191,11 +191,11 @@ static int nand_davinci_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u
        *ecc_code++ = tmp;
        *ecc_code++ = tmp >>  8;
        *ecc_code++ = tmp >> 16;
-#endif /* CFG_DAVINCI_BROKEN_ECC */
+#endif /* CONFIG_SYS_DAVINCI_BROKEN_ECC */
        return(0);
 }
 
-#ifdef CFG_DAVINCI_BROKEN_ECC
+#ifdef CONFIG_SYS_DAVINCI_BROKEN_ECC
 static void nand_davinci_gen_true_ecc(u_int8_t *ecc_buf)
 {
        u_int32_t       tmp = ecc_buf[0] | (ecc_buf[1] << 16) | ((ecc_buf[2] & 0xf0) << 20) | ((ecc_buf[2] & 0x0f) << 8);
@@ -312,12 +312,12 @@ static int nand_davinci_compare_ecc(u_int8_t *ecc_nand, u_int8_t *ecc_calc, u_in
                        return(-1);
        }
 }
-#endif /* CFG_DAVINCI_BROKEN_ECC */
+#endif /* CONFIG_SYS_DAVINCI_BROKEN_ECC */
 
 static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc)
 {
        struct nand_chip *this = mtd->priv;
-#ifdef CFG_DAVINCI_BROKEN_ECC
+#ifdef CONFIG_SYS_DAVINCI_BROKEN_ECC
        int                     block_count = 0, i, rc;
 
        block_count = (this->ecc.size/512);
@@ -366,10 +366,10 @@ static int nand_davinci_correct_data(struct mtd_info *mtd, u_char *dat, u_char *
                        return -1;
                }
        }
-#endif /* CFG_DAVINCI_BROKEN_ECC */
+#endif /* CONFIG_SYS_DAVINCI_BROKEN_ECC */
        return(0);
 }
-#endif /* CFG_NAND_HW_ECC */
+#endif /* CONFIG_SYS_NAND_HW_ECC */
 
 static int nand_davinci_dev_ready(struct mtd_info *mtd)
 {
@@ -431,32 +431,32 @@ int board_nand_init(struct nand_chip *nand)
        nand->IO_ADDR_W   = (void  __iomem *)NAND_CE0DATA;
        nand->chip_delay  = 0;
        nand->select_chip = nand_davinci_select_chip;
-#ifdef CFG_NAND_USE_FLASH_BBT
+#ifdef CONFIG_SYS_NAND_USE_FLASH_BBT
        nand->options     = NAND_USE_FLASH_BBT;
 #endif
-#ifdef CFG_NAND_HW_ECC
+#ifdef CONFIG_SYS_NAND_HW_ECC
        nand->ecc.mode = NAND_ECC_HW;
-#ifdef CFG_DAVINCI_BROKEN_ECC
+#ifdef CONFIG_SYS_DAVINCI_BROKEN_ECC
        nand->ecc.layout  = &davinci_nand_ecclayout;
-#ifdef CFG_NAND_LARGEPAGE
+#ifdef CONFIG_SYS_NAND_LARGEPAGE
        nand->ecc.size = 2048;
        nand->ecc.bytes = 12;
-#elif defined(CFG_NAND_SMALLPAGE)
+#elif defined(CONFIG_SYS_NAND_SMALLPAGE)
        nand->ecc.size = 512;
        nand->ecc.bytes = 3;
 #else
-#error "Either CFG_NAND_LARGEPAGE or CFG_NAND_SMALLPAGE must be defined!"
+#error "Either CONFIG_SYS_NAND_LARGEPAGE or CONFIG_SYS_NAND_SMALLPAGE must be defined!"
 #endif
 #else
        nand->ecc.size = 512;
        nand->ecc.bytes = 3;
-#endif /* CFG_DAVINCI_BROKEN_ECC */
+#endif /* CONFIG_SYS_DAVINCI_BROKEN_ECC */
        nand->ecc.calculate = nand_davinci_calculate_ecc;
        nand->ecc.correct  = nand_davinci_correct_data;
        nand->ecc.hwctl  = nand_davinci_enable_hwecc;
 #else
        nand->ecc.mode = NAND_ECC_SOFT;
-#endif /* CFG_NAND_HW_ECC */
+#endif /* CONFIG_SYS_NAND_HW_ECC */
 
        /* Set address of hardware control function */
        nand->cmd_ctrl = nand_davinci_hwcontrol;
@@ -472,4 +472,4 @@ int board_nand_init(struct nand_chip *nand)
 #else
 #error "U-Boot legacy NAND support not available for DaVinci chips"
 #endif
-#endif /* CFG_USE_NAND */
+#endif /* CONFIG_SYS_USE_NAND */
index 6c670f0b7565a2407c3c1bbb0a979105ad25ea39..773735a1c897d0f24fef7ffc0f452abdabcaa36e 100644 (file)
@@ -54,9 +54,9 @@ typedef volatile struct {
        u_int32_t       wdtcr;
 } davinci_timer;
 
-davinci_timer          *timer = (davinci_timer *)CFG_TIMERBASE;
+davinci_timer          *timer = (davinci_timer *)CONFIG_SYS_TIMERBASE;
 
-#define TIMER_LOAD_VAL (CFG_HZ_CLOCK / CFG_HZ)
+#define TIMER_LOAD_VAL (CONFIG_SYS_HZ_CLOCK / CONFIG_SYS_HZ)
 #define TIM_CLK_DIV    16
 
 static ulong timestamp;
@@ -117,7 +117,7 @@ void udelay(unsigned long usec)
        ulong endtime;
        signed long diff;
 
-       tmo = CFG_HZ_CLOCK / 1000;
+       tmo = CONFIG_SYS_HZ_CLOCK / 1000;
        tmo *= usec;
        tmo /= (1000 * TIM_CLK_DIV);
 
@@ -144,5 +144,5 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk(void)
 {
-       return CFG_HZ;
+       return CONFIG_SYS_HZ;
 }
index a2a9133ee0533b55b522e655c7dc26dbaf660eed..49e74abb3b3bd4bb3e81d867cc55bdb1d2576eac 100644 (file)
@@ -41,7 +41,7 @@
 #define TIMER_LOAD_VAL 0xffffffff
 
 /* macro to read the 32 bit timer */
-#define READ_TIMER (*(volatile ulong *)(CFG_TIMERBASE+8))
+#define READ_TIMER (*(volatile ulong *)(CONFIG_SYS_TIMERBASE+8))
 
 static ulong timestamp;
 static ulong lastdec;
@@ -51,9 +51,9 @@ int timer_init (void)
        int32_t val;
 
        /* Start the decrementer ticking down from 0xffffffff */
-       *((int32_t *) (CFG_TIMERBASE + LOAD_TIM)) = TIMER_LOAD_VAL;
-       val = MPUTIM_ST | MPUTIM_AR | MPUTIM_CLOCK_ENABLE | (CFG_PVT << MPUTIM_PTV_BIT);
-       *((int32_t *) (CFG_TIMERBASE + CNTL_TIMER)) = val;
+       *((int32_t *) (CONFIG_SYS_TIMERBASE + LOAD_TIM)) = TIMER_LOAD_VAL;
+       val = MPUTIM_ST | MPUTIM_AR | MPUTIM_CLOCK_ENABLE | (CONFIG_SYS_PVT << MPUTIM_PTV_BIT);
+       *((int32_t *) (CONFIG_SYS_TIMERBASE + CNTL_TIMER)) = val;
 
        /* init the timestamp and lastdec value */
        reset_timer_masked();
@@ -87,10 +87,10 @@ void udelay (unsigned long usec)
 
        if(usec >= 1000){               /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;      /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;          /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;           /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;            /* finish normalize. */
        }else{                          /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -140,10 +140,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {             /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;      /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;          /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;           /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;            /* finish normalize. */
        } else {                        /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -172,6 +172,6 @@ ulong get_tbclk (void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
index a61fa1847ded92ffeb3101c2a736091f2e4065c4..ed4932a13680f26fdf0605aec8f94d63d6624575 100644 (file)
@@ -165,8 +165,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -276,8 +276,8 @@ cpu_init_crit:
        stmia   sp, {r0 - r12}  @ Save user registers (now in svc mode) r0-r12
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        @ get values for "aborted" pc and cpsr (into parm regs)
        ldmia   r2, {r2 - r3}
        add     r0, sp, #S_FRAME_SIZE           @ grab pointer to old stack
@@ -310,8 +310,8 @@ cpu_init_crit:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]       @ save caller lr in position 0 of saved stack
        mrs     lr, spsr        @ get the spsr
index f01f318509a040fc292cff8a980973b37d69ae86..9ac867ed03e3d5e733c3dde313848d89b3e813f5 100755 (executable)
@@ -41,7 +41,7 @@
 #define TIMER_LOAD_VAL 0xffffffff
 
 /* macro to read the 32 bit timer */
-#define READ_TIMER (*(volatile ulong *)(CFG_TIMERBASE+4))
+#define READ_TIMER (*(volatile ulong *)(CONFIG_SYS_TIMERBASE+4))
 
 static ulong timestamp;
 static ulong lastdec;
@@ -62,9 +62,9 @@ int timer_init (void)
        ulong   tmr_ctrl_val;
 
        /* 1st disable the Timer */
-       tmr_ctrl_val = *(volatile ulong *)(CFG_TIMERBASE + 8);
+       tmr_ctrl_val = *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8);
        tmr_ctrl_val &= ~TIMER_ENABLE;
-       *(volatile ulong *)(CFG_TIMERBASE + 8) = tmr_ctrl_val;
+       *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8) = tmr_ctrl_val;
 
        /*
         * The Timer Control Register has one Undefined/Shouldn't Use Bit
@@ -78,11 +78,11 @@ int timer_init (void)
         * Tmr Siz : 16 Bit Counter
         * Tmr in Wrapping Mode
         */
-       tmr_ctrl_val = *(volatile ulong *)(CFG_TIMERBASE + 8);
+       tmr_ctrl_val = *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8);
        tmr_ctrl_val &= ~(TIMER_MODE_MSK | TIMER_INT_EN | TIMER_PRS_MSK | TIMER_SIZE_MSK | TIMER_ONE_SHT );
        tmr_ctrl_val |= (TIMER_ENABLE | TIMER_PRS_8S);
 
-       *(volatile ulong *)(CFG_TIMERBASE + 8) = tmr_ctrl_val;
+       *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8) = tmr_ctrl_val;
 
        /* init the timestamp and lastdec value */
        reset_timer_masked();
@@ -116,10 +116,10 @@ void udelay (unsigned long usec)
 
        if(usec >= 1000){               /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;      /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;          /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;           /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;            /* finish normalize. */
        }else{                          /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -169,10 +169,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {             /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;      /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ;          /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ;           /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;            /* finish normalize. */
        } else {                        /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -201,6 +201,6 @@ ulong get_tbclk (void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
index 4c63a8dd87fefd0d77edc50f460a550d43bc0d0f..44c589aef94da48fbd60283706122532d424c541 100644 (file)
@@ -95,7 +95,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index a2c3646f19f6ea9efba6bc2de1ba95b5d9a802fb..c13d3099f155da6b5f2ab97f602007cd996781ba 100644 (file)
@@ -121,10 +121,10 @@ void udelay_masked (unsigned long usec)
 
        if(usec >= 1000){               /* if "big" number, spread normalization to seconds */
                tmo = usec / 1000;      /* start to normalize for usec to ticks per sec */
-               tmo *= CFG_HZ_CLOCK;    /* find number of "ticks" to wait to achieve target */
+               tmo *= CONFIG_SYS_HZ_CLOCK;    /* find number of "ticks" to wait to achieve target */
                tmo /= 1000;            /* finish normalize. */
        }else{                          /* else small number, don't kill it prior to HZ multiply */
-               tmo = usec * CFG_HZ_CLOCK;
+               tmo = usec * CONFIG_SYS_HZ_CLOCK;
                tmo /= (1000*1000);
        }
 
@@ -151,7 +151,7 @@ ulong get_tbclk (void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
 
index 9e97f530f8aa6d7ef2fb457ee9171126e3f70438..7972b00765c3e6d31d4582a089ddaf0aee0fe019 100644 (file)
@@ -157,8 +157,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -264,8 +264,8 @@ cpu_init_crit:
        stmia   sp, {r0 - r12}  @ Save user registers (now in svc mode) r0-r12
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        @ get values for "aborted" pc and cpsr (into parm regs)
        ldmia   r2, {r2 - r3}
        add     r0, sp, #S_FRAME_SIZE           @ grab pointer to old stack
@@ -298,8 +298,8 @@ cpu_init_crit:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]       @ save caller lr in position 0 of saved stack
        mrs     lr, spsr        @ get the spsr
index e2309f8898babbf28d874e0acf4f0ff65f8bd0af..ccf7fd5b6432c4bc955d0a1b43ab7d205c97c94e 100644 (file)
@@ -43,7 +43,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index d5778a046c602719422af35b27446894275e7326..ee0804ae188efdc48ffdfb800f0ddeb4a42e2219 100644 (file)
@@ -155,8 +155,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -240,8 +240,8 @@ cpu_init_crit:
        stmia   sp, {r0 - r12}  @ Save user registers (now in svc mode) r0-r12
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        @ get values for "aborted" pc and cpsr (into parm regs)
        ldmia   r2, {r2 - r3}
        add     r0, sp, #S_FRAME_SIZE           @ grab pointer to old stack
@@ -274,8 +274,8 @@ cpu_init_crit:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]       @ save caller lr in position 0 of saved stack
        mrs     lr, spsr        @ get the spsr
index b3aa03495f5d04f949ff4e33a13298e19afd73bd..2b1cd36bfbb101bff82a8edd5c0f27140039a6c2 100644 (file)
@@ -38,10 +38,10 @@ void clk_init(void)
 
 #ifdef CONFIG_PLL
        /* Initialize the PLL */
-       sm_writel(PM_PLL0, (SM_BF(PLLCOUNT, CFG_PLL0_SUPPRESS_CYCLES)
-                           | SM_BF(PLLMUL, CFG_PLL0_MUL - 1)
-                           | SM_BF(PLLDIV, CFG_PLL0_DIV - 1)
-                           | SM_BF(PLLOPT, CFG_PLL0_OPT)
+       sm_writel(PM_PLL0, (SM_BF(PLLCOUNT, CONFIG_SYS_PLL0_SUPPRESS_CYCLES)
+                           | SM_BF(PLLMUL, CONFIG_SYS_PLL0_MUL - 1)
+                           | SM_BF(PLLDIV, CONFIG_SYS_PLL0_DIV - 1)
+                           | SM_BF(PLLOPT, CONFIG_SYS_PLL0_OPT)
                            | SM_BF(PLLOSC, 0)
                            | SM_BIT(PLLEN)));
 
@@ -51,14 +51,14 @@ void clk_init(void)
 
        /* Set up clocks for the CPU and all peripheral buses */
        cksel = 0;
-       if (CFG_CLKDIV_CPU)
-               cksel |= SM_BIT(CPUDIV) | SM_BF(CPUSEL, CFG_CLKDIV_CPU - 1);
-       if (CFG_CLKDIV_HSB)
-               cksel |= SM_BIT(HSBDIV) | SM_BF(HSBSEL, CFG_CLKDIV_HSB - 1);
-       if (CFG_CLKDIV_PBA)
-               cksel |= SM_BIT(PBADIV) | SM_BF(PBASEL, CFG_CLKDIV_PBA - 1);
-       if (CFG_CLKDIV_PBB)
-               cksel |= SM_BIT(PBBDIV) | SM_BF(PBBSEL, CFG_CLKDIV_PBB - 1);
+       if (CONFIG_SYS_CLKDIV_CPU)
+               cksel |= SM_BIT(CPUDIV) | SM_BF(CPUSEL, CONFIG_SYS_CLKDIV_CPU - 1);
+       if (CONFIG_SYS_CLKDIV_HSB)
+               cksel |= SM_BIT(HSBDIV) | SM_BF(HSBSEL, CONFIG_SYS_CLKDIV_HSB - 1);
+       if (CONFIG_SYS_CLKDIV_PBA)
+               cksel |= SM_BIT(PBADIV) | SM_BF(PBASEL, CONFIG_SYS_CLKDIV_PBA - 1);
+       if (CONFIG_SYS_CLKDIV_PBB)
+               cksel |= SM_BIT(PBBDIV) | SM_BF(PBBSEL, CONFIG_SYS_CLKDIV_PBB - 1);
        sm_writel(PM_CKSEL, cksel);
 
 #ifdef CONFIG_PLL
index 56ba2f90c69a5c9ede9fc0c013f144ad0e6a3cee..91bb6365925bace840e8b3b28b4b963b1fbbc918 100644 (file)
@@ -33,8 +33,8 @@
  */
 void gpio_enable_ebi(void)
 {
-#ifdef CFG_HSDRAMC
-#ifndef CFG_SDRAM_16BIT
+#ifdef CONFIG_SYS_HSDRAMC
+#ifndef CONFIG_SYS_SDRAM_16BIT
        gpio_select_periph_A(GPIO_PIN_PE0, 0);
        gpio_select_periph_A(GPIO_PIN_PE1, 0);
        gpio_select_periph_A(GPIO_PIN_PE2, 0);
index 41fb5aa0473d15454925463ea38599877a1325b0..16a0565df2d977bb31f957ede83fdeed2f88b342 100644 (file)
@@ -28,7 +28,7 @@ void dcache_clean_range(volatile void *start, size_t size)
 {
        unsigned long v, begin, end, linesz;
 
-       linesz = CFG_DCACHE_LINESZ;
+       linesz = CONFIG_SYS_DCACHE_LINESZ;
 
        /* You asked for it, you got it */
        begin = (unsigned long)start & ~(linesz - 1);
@@ -44,7 +44,7 @@ void dcache_invalidate_range(volatile void *start, size_t size)
 {
        unsigned long v, begin, end, linesz;
 
-       linesz = CFG_DCACHE_LINESZ;
+       linesz = CONFIG_SYS_DCACHE_LINESZ;
 
        /* You asked for it, you got it */
        begin = (unsigned long)start & ~(linesz - 1);
@@ -58,7 +58,7 @@ void dcache_flush_range(volatile void *start, size_t size)
 {
        unsigned long v, begin, end, linesz;
 
-       linesz = CFG_DCACHE_LINESZ;
+       linesz = CONFIG_SYS_DCACHE_LINESZ;
 
        /* You asked for it, you got it */
        begin = (unsigned long)start & ~(linesz - 1);
@@ -74,7 +74,7 @@ void icache_invalidate_range(volatile void *start, size_t size)
 {
        unsigned long v, begin, end, linesz;
 
-       linesz = CFG_ICACHE_LINESZ;
+       linesz = CONFIG_SYS_ICACHE_LINESZ;
 
        /* You asked for it, you got it */
        begin = (unsigned long)start & ~(linesz - 1);
index 1a1370289d585d5f6a0dda663cd8b60a260f16ed..f92d3e2171a3a0cb60640ac3f2b2254ffe33c0ce 100644 (file)
 #include "hsmc3.h"
 
 /* Sanity checks */
-#if (CFG_CLKDIV_CPU > CFG_CLKDIV_HSB)          \
-       || (CFG_CLKDIV_HSB > CFG_CLKDIV_PBA)    \
-       || (CFG_CLKDIV_HSB > CFG_CLKDIV_PBB)
+#if (CONFIG_SYS_CLKDIV_CPU > CONFIG_SYS_CLKDIV_HSB)            \
+       || (CONFIG_SYS_CLKDIV_HSB > CONFIG_SYS_CLKDIV_PBA)      \
+       || (CONFIG_SYS_CLKDIV_HSB > CONFIG_SYS_CLKDIV_PBB)
 # error Constraint fCPU >= fHSB >= fPB{A,B} violated
 #endif
-#if defined(CONFIG_PLL) && ((CFG_PLL0_MUL < 1) || (CFG_PLL0_DIV < 1))
+#if defined(CONFIG_PLL) && ((CONFIG_SYS_PLL0_MUL < 1) || (CONFIG_SYS_PLL0_DIV < 1))
 # error Invalid PLL multiplier and/or divider
 #endif
 
@@ -47,7 +47,7 @@ int cpu_init(void)
 {
        extern void _evba(void);
 
-       gd->cpu_hz = CFG_OSC0_HZ;
+       gd->cpu_hz = CONFIG_SYS_OSC0_HZ;
 
        /* TODO: Move somewhere else, but needs to be run before we
         * increase the clock frequency. */
index 992612b46275bca1bce2e59676db739f1544bd4a..f74121cd46239aa3d9335a481b72a1e0b72254cd 100644 (file)
@@ -21,7 +21,7 @@
  */
 #include <common.h>
 
-#ifdef CFG_HSDRAMC
+#ifdef CONFIG_SYS_HSDRAMC
 #include <asm/io.h>
 #include <asm/sdram.h>
 
@@ -117,4 +117,4 @@ unsigned long sdram_init(void *sdram_base, const struct sdram_config *config)
        return sdram_size;
 }
 
-#endif /* CFG_HSDRAMC */
+#endif /* CONFIG_SYS_HSDRAMC */
index 160838eeeb3b1d3d12e36fb67f911b3ae1b95547..75cc39e94c33eb02684efd845500df0458d98c0e 100644 (file)
@@ -82,7 +82,7 @@ void set_timer(unsigned long t)
        unsigned long long ticks = t;
        unsigned long lo, hi, hi_new;
 
-       ticks = (ticks * get_tbclk()) / CFG_HZ;
+       ticks = (ticks * get_tbclk()) / CONFIG_SYS_HZ;
        hi = ticks >> 32;
        lo = ticks & 0xffffffffUL;
 
@@ -137,7 +137,7 @@ void timer_init(void)
 
        sysreg_write(COUNT, 0);
 
-       tmp = (u64)CFG_HZ << 32;
+       tmp = (u64)CONFIG_SYS_HZ << 32;
        tmp += gd->cpu_hz / 2;
        do_div(tmp, gd->cpu_hz);
        tb_factor = (u32)tmp;
index 907e9b1534decb37bde51a695c5e0c436e8ee588..d37a46eb18b654d4d986e8c1d246d5a1145507e3 100644 (file)
@@ -188,7 +188,7 @@ at32ap_low_level_init:
        .align  2
        .type   sp_init,@object
 sp_init:
-       .long   CFG_INIT_SP_ADDR
+       .long   CONFIG_SYS_INIT_SP_ADDR
 got_init:
        .long   3b - _GLOBAL_OFFSET_TABLE_
 
index 80c550545462ebe56a4d6ad2d2ab0a57335e916d..d4dd63610106012bf5a6b307f200a9b98dd2af5d 100644 (file)
@@ -48,7 +48,7 @@ ulong get_tbclk(void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
 
index 30212e92818794e3b125d7b3cba2cdaa7fd7f8ec..8303292a50e37722746cade610882379e9d31bdd 100644 (file)
@@ -145,12 +145,12 @@ ENTRY(_start)
        r6 = 0 (x);
        p1 = r0;
 
-       p2.l = LO(CFG_MONITOR_BASE);
-       p2.h = HI(CFG_MONITOR_BASE);
+       p2.l = LO(CONFIG_SYS_MONITOR_BASE);
+       p2.h = HI(CONFIG_SYS_MONITOR_BASE);
 
        p3 = 0x04;
-       p4.l = LO(CFG_MONITOR_BASE + CFG_MONITOR_LEN);
-       p4.h = HI(CFG_MONITOR_BASE + CFG_MONITOR_LEN);
+       p4.l = LO(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN);
+       p4.h = HI(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN);
 .Lloop1:
        r1 = [p1 ++ p3];
        [p2 ++ p3] = r1;
index 4474fe51d59fbcfa3f8b4e4857ef498557646eda..2eb45b59cd3f6411f93468a003c5ea94ace74032 100644 (file)
@@ -229,8 +229,8 @@ static void decode_address(char *buf, unsigned long address)
 
        if (!address)
                sprintf(buf, "<0x%p> /* Maybe null pointer? */", address);
-       else if (address >= CFG_MONITOR_BASE &&
-                address < CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       else if (address >= CONFIG_SYS_MONITOR_BASE &&
+                address < CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
                sprintf(buf, "<0x%p> /* somewhere in u-boot */", address);
        else
                sprintf(buf, "<0x%p> /* unknown address */", address);
index f340119900689bbc4d915cc1fe46208c6673a4fd..f6dbccac5707d80087aa542780a51a3ea5cfca79 100644 (file)
@@ -509,7 +509,7 @@ int disable_interrupts(void)
 }
 
 
-#ifdef CFG_RESET_GENERIC
+#ifdef CONFIG_SYS_RESET_GENERIC
 
 void __attribute__ ((regparm(0))) generate_gpf(void);
 asm(".globl generate_gpf\n"
index 640b25584a5658f30c2b5460b50e46a8b1903518..8bcb979c15050f8385a437a91361f406dcf29be9 100644 (file)
@@ -113,7 +113,7 @@ void init_sc520(void)
        write_mmcr_word(SC520_HBCTL,0x04);      /* enable posted-writes */
 
 
-       if (CFG_SC520_HIGH_SPEED) {
+       if (CONFIG_SYS_SC520_HIGH_SPEED) {
                write_mmcr_byte(SC520_CPUCTL, 0x2);     /* set it to 133 MHz and write back */
                gd->cpu_clk = 133000000;
                printf("## CPU Speed set to 133MHz\n");
@@ -145,7 +145,7 @@ unsigned long init_sc520_dram(void)
 
        u32 dram_present=0;
        u32 dram_ctrl;
-#ifdef CFG_SDRAM_DRCTMCTL
+#ifdef CONFIG_SYS_SDRAM_DRCTMCTL
        /* these memory control registers are set up in the assember part,
         * in sc520_asm.S, during 'mem_init'.  If we muck with them here,
         * after we are running a stack in RAM, we have troubles.  Besides,
@@ -156,9 +156,9 @@ unsigned long init_sc520_dram(void)
 #else
        int val;
 
-       int cas_precharge_delay = CFG_SDRAM_PRECHARGE_DELAY;
-       int refresh_rate        = CFG_SDRAM_REFRESH_RATE;
-       int ras_cas_delay       = CFG_SDRAM_RAS_CAS_DELAY;
+       int cas_precharge_delay = CONFIG_SYS_SDRAM_PRECHARGE_DELAY;
+       int refresh_rate        = CONFIG_SYS_SDRAM_REFRESH_RATE;
+       int ras_cas_delay       = CONFIG_SYS_SDRAM_RAS_CAS_DELAY;
 
        /* set SDRAM speed here */
 
@@ -393,7 +393,7 @@ void pci_sc520_init(struct pci_controller *hose)
 
 #endif
 
-#ifdef CFG_TIMER_SC520
+#ifdef CONFIG_SYS_TIMER_SC520
 
 
 void reset_timer(void)
index 34322ea2514a3bef3551d92e066093128f9ee38e..59ed2b8d654ed4062b1cb3ad93baafb4e182427c 100644 (file)
@@ -460,21 +460,21 @@ emptybank:
        incl    %edi
        loop    cleanuplp
 
-#if defined CFG_SDRAM_DRCTMCTL
+#if defined CONFIG_SYS_SDRAM_DRCTMCTL
        /* just have your hardware desinger _GIVE_ you what you need here! */
        movl    $DRCTMCTL, %edi
-       movb    $CFG_SDRAM_DRCTMCTL,%al
+       movb    $CONFIG_SYS_SDRAM_DRCTMCTL,%al
        movb    (%edi), %al
 #else
-#if defined(CFG_SDRAM_CAS_LATENCY_2T) || defined(CFG_SDRAM_CAS_LATENCY_3T)
+#if defined(CONFIG_SYS_SDRAM_CAS_LATENCY_2T) || defined(CONFIG_SYS_SDRAM_CAS_LATENCY_3T)
        /* set the CAS latency now since it is hard to do
         * when we run from the RAM */
        movl    $DRCTMCTL, %edi          /* DRAM timing register */
        movb    (%edi), %al
-#ifdef CFG_SDRAM_CAS_LATENCY_2T
+#ifdef CONFIG_SYS_SDRAM_CAS_LATENCY_2T
        andb    $0xef, %al
 #endif
-#ifdef CFG_SDRAM_CAS_LATENCY_3T
+#ifdef CONFIG_SYS_SDRAM_CAS_LATENCY_3T
        orb     $0x10, %al
 #endif
        movb    %al, (%edi)
@@ -540,7 +540,7 @@ bank0:      movl    (%edi), %eax
 done:
        movl    %ebx, %eax
 
-#if CFG_SDRAM_ECC_ENABLE
+#if CONFIG_SYS_SDRAM_ECC_ENABLE
        /* A nominal memory test: just a byte at each address line */
        movl    %eax, %ecx
        shrl    $0x1, %ecx
index 264ac0940b6b27858bba44c189763b757e5fe488..f5ad833aafff171455f74d2068c1d8f616645f83 100644 (file)
@@ -67,7 +67,7 @@ mem_init_ret:
         * (we need atleast bss start+bss size+stack size) */
        movl    $_i386boot_bss_start, %ecx        /* BSS start */
        addl    $_i386boot_bss_size, %ecx         /* BSS size */
-       addl    $CFG_STACK_SIZE, %ecx
+       addl    $CONFIG_SYS_STACK_SIZE, %ecx
        cmpl    %ecx, %eax
        jae     mem_ok
 
@@ -88,7 +88,7 @@ mem_ok:
        /* create a stack after the bss */
        movl    $_i386boot_bss_start, %eax
        addl    $_i386boot_bss_size, %eax
-       addl    $CFG_STACK_SIZE, %eax
+       addl    $CONFIG_SYS_STACK_SIZE, %eax
        movl    %eax, %esp
 
        pushl   $0
index 486d927a5a8a8c4cb5da7cbf220d0be91f4a3e05..46db23f59c6ebdf507f1e6d4df6bd0976a2439c2 100644 (file)
@@ -72,9 +72,9 @@ int timer_init(void)
 }
 
 
-#ifdef CFG_TIMER_GENERIC
+#ifdef CONFIG_SYS_TIMER_GENERIC
 
-/* the unit for these is CFG_HZ */
+/* the unit for these is CONFIG_SYS_HZ */
 
 /* FixMe: implement these */
 void reset_timer (void)
index 2c7d5a01be7ec25b6482e191bdbe216c41017875..402188e30822fcaee9b6ae7b597d1ca2e312a3a6 100644 (file)
@@ -81,7 +81,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
 
@@ -198,7 +198,7 @@ void pci_init(void)
 
 void bootcount_store (ulong a)
 {
-       volatile ulong *save_addr = (volatile ulong *)(CFG_BOOTCOUNT_ADDR);
+       volatile ulong *save_addr = (volatile ulong *)(CONFIG_SYS_BOOTCOUNT_ADDR);
 
        save_addr[0] = a;
        save_addr[1] = BOOTCOUNT_MAGIC;
@@ -206,7 +206,7 @@ void bootcount_store (ulong a)
 
 ulong bootcount_load (void)
 {
-       volatile ulong *save_addr = (volatile ulong *)(CFG_BOOTCOUNT_ADDR);
+       volatile ulong *save_addr = (volatile ulong *)(CONFIG_SYS_BOOTCOUNT_ADDR);
 
        if (save_addr[1] != BOOTCOUNT_MAGIC)
                return 0;
index 84fe9378ab9381c58f72de310d51866de1e923ff..621f31b00f7c620915b060fd1753c64628c2e883 100644 (file)
@@ -40,8 +40,8 @@
  */
 
 #define FREQ           66666666
-#define CLOCK_TICK_RATE        (((FREQ / CFG_HZ & ~IXP425_OST_RELOAD_MASK) + 1) * CFG_HZ)
-#define LATCH          ((CLOCK_TICK_RATE + CFG_HZ/2) / CFG_HZ) /* For divider */
+#define CLOCK_TICK_RATE        (((FREQ / CONFIG_SYS_HZ & ~IXP425_OST_RELOAD_MASK) + 1) * CONFIG_SYS_HZ)
+#define LATCH          ((CLOCK_TICK_RATE + CONFIG_SYS_HZ/2) / CONFIG_SYS_HZ)   /* For divider */
 
 struct _irq_handler {
        void                *m_data;
index e53458defbbdcc20908a26af16d23f940b87e4e8..3d6f727476024e42d7803e8032de2ea8d502314d 100644 (file)
 /*
  * defines...
  */
-#define CFG_NPE_NUMS           1
+#define CONFIG_SYS_NPE_NUMS            1
 #ifdef CONFIG_HAS_ETH1
-#undef CFG_NPE_NUMS
-#define CFG_NPE_NUMS           2
+#undef CONFIG_SYS_NPE_NUMS
+#define CONFIG_SYS_NPE_NUMS            2
 #endif
 
 #define NPE_NUM_PORTS          3
index 892096b26feb5324aa1189775d5e36ebc25e0090..bd77fed377d08112feb2caf89fc2bbe224c35d04 100644 (file)
@@ -51,7 +51,7 @@ static int npe_exists[NPE_NUM_PORTS];
 static int npe_used[NPE_NUM_PORTS];
 
 /* A little extra so we can align to cacheline. */
-static u8 npe_alloc_pool[NPE_MEM_POOL_SIZE + CFG_CACHELINE_SIZE - 1];
+static u8 npe_alloc_pool[NPE_MEM_POOL_SIZE + CONFIG_SYS_CACHELINE_SIZE - 1];
 static u8 *npe_alloc_end;
 static u8 *npe_alloc_free;
 
@@ -60,7 +60,7 @@ static void *npe_alloc(int size)
        static int count = 0;
        void *p = NULL;
 
-       size = (size + (CFG_CACHELINE_SIZE-1)) & ~(CFG_CACHELINE_SIZE-1);
+       size = (size + (CONFIG_SYS_CACHELINE_SIZE-1)) & ~(CONFIG_SYS_CACHELINE_SIZE-1);
        count++;
 
        if ((npe_alloc_free + size) < npe_alloc_end) {
@@ -399,7 +399,7 @@ static int npe_init(struct eth_device *dev, bd_t * bis)
 
        npe_alloc_end = npe_alloc_pool + sizeof(npe_alloc_pool);
        npe_alloc_free = (u8 *)(((unsigned)npe_alloc_pool +
-                                CFG_CACHELINE_SIZE - 1) & ~(CFG_CACHELINE_SIZE - 1));
+                                CONFIG_SYS_CACHELINE_SIZE - 1) & ~(CONFIG_SYS_CACHELINE_SIZE - 1));
 
        /* initialize mbuf pool */
        init_rx_mbufs(p_npe);
@@ -568,7 +568,7 @@ int npe_initialize(bd_t * bis)
        int eth_num = 0;
        struct npe *p_npe = NULL;
 
-       for (eth_num = 0; eth_num < CFG_NPE_NUMS; eth_num++) {
+       for (eth_num = 0; eth_num < CONFIG_SYS_NPE_NUMS; eth_num++) {
 
                /* See if we can actually bring up the interface, otherwise, skip it */
                switch (eth_num) {
@@ -673,8 +673,8 @@ int npe_initialize(bd_t * bis)
 
                        npe_alloc_end = npe_alloc_pool + sizeof(npe_alloc_pool);
                        npe_alloc_free = (u8 *)(((unsigned)npe_alloc_pool +
-                                                CFG_CACHELINE_SIZE - 1)
-                                               & ~(CFG_CACHELINE_SIZE - 1));
+                                                CONFIG_SYS_CACHELINE_SIZE - 1)
+                                               & ~(CONFIG_SYS_CACHELINE_SIZE - 1));
 
                        if (!npe_csr_load())
                                return 0;
index 45496318a82eb224996c4c0bac1a84347114c773..dd26af49b54d00e21fb5dac5519dd82031cdcfa8 100644 (file)
@@ -43,7 +43,7 @@ DECLARE_GLOBAL_DATA_PTR;
 void serial_setbrg (void)
 {
        unsigned int quot = 0;
-       int uart = CFG_IXP425_CONSOLE;
+       int uart = CONFIG_SYS_IXP425_CONSOLE;
 
        if ((gd->baudrate <= SERIAL_CLOCK) && (SERIAL_CLOCK % gd->baudrate == 0))
                quot = SERIAL_CLOCK / gd->baudrate;
@@ -85,9 +85,9 @@ int serial_init (void)
 void serial_putc (const char c)
 {
        /* wait for room in the tx FIFO on UART */
-       while ((LSR(CFG_IXP425_CONSOLE) & LSR_TEMT) == 0);
+       while ((LSR(CONFIG_SYS_IXP425_CONSOLE) & LSR_TEMT) == 0);
 
-       THR(CFG_IXP425_CONSOLE) = c;
+       THR(CONFIG_SYS_IXP425_CONSOLE) = c;
 
        /* If \n, also do \r */
        if (c == '\n')
@@ -101,7 +101,7 @@ void serial_putc (const char c)
  */
 int serial_tstc (void)
 {
-       return LSR(CFG_IXP425_CONSOLE) & LSR_DR;
+       return LSR(CONFIG_SYS_IXP425_CONSOLE) & LSR_DR;
 }
 
 /*
@@ -111,9 +111,9 @@ int serial_tstc (void)
  */
 int serial_getc (void)
 {
-       while (!(LSR(CFG_IXP425_CONSOLE) & LSR_DR));
+       while (!(LSR(CONFIG_SYS_IXP425_CONSOLE) & LSR_DR));
 
-       return (char) RBR(CFG_IXP425_CONSOLE) & 0xff;
+       return (char) RBR(CONFIG_SYS_IXP425_CONSOLE) & 0xff;
 }
 
 void
index d4c8e33bc5e603acc2e5bdc281d3b22b7eb76445..196ba5db2eaf760c750b1c4a8b0ac41ea18b1cf6 100644 (file)
@@ -154,7 +154,7 @@ reset:
        CPWAIT  r0
 
        /* set EXP CS0 to the optimum timing */
-       ldr     r1, =CFG_EXP_CS0
+       ldr     r1, =CONFIG_SYS_EXP_CS0
        ldr     r2, =IXP425_EXP_CS0
        str     r1, [r2]
 
@@ -165,7 +165,7 @@ reset:
        orr     r1, r1, #0x80000000
        str     r1, [r2]
 #endif
-       mov     r1, #CFG_SDR_CONFIG
+       mov     r1, #CONFIG_SYS_SDR_CONFIG
        ldr     r2, =IXP425_SDR_CONFIG
        str     r1, [r2]
 
@@ -181,7 +181,7 @@ reset:
        DELAY_FOR 0x4000, r0
 
        /* set SDRAM internal refresh val */
-       ldr     r1, =CFG_SDRAM_REFRESH_CNT
+       ldr     r1, =CONFIG_SYS_SDRAM_REFRESH_CNT
        str     r1, [r3]
        DELAY_FOR 0x4000, r0
 
@@ -199,7 +199,7 @@ reset:
        bne     111b
 
        /* set mode register in sdram */
-       mov     r1, #CFG_SDR_MODE_CONFIG
+       mov     r1, #CONFIG_SYS_SDR_MODE_CONFIG
        str     r1, [r4]
        DELAY_FOR 0x4000, r0
 
@@ -211,7 +211,7 @@ reset:
        /* copy */
        mov     r0, #0
        mov     r4, r0
-       add     r2, r0, #CFG_MONITOR_LEN
+       add     r2, r0, #CONFIG_SYS_MONITOR_LEN
        mov     r1, #0x10000000
        mov     r5, r1
 
@@ -283,8 +283,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -345,8 +345,8 @@ _start_armboot: .word start_armboot
        add     r8, sp, #S_PC
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        ldmia   r2, {r2 - r4}                   /* get pc, cpsr, old_r0     */
        add     r0, sp, #S_FRAME_SIZE           /* restore sp_SVC           */
 
@@ -382,8 +382,8 @@ _start_armboot: .word start_armboot
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]                       @ save caller lr / spsr
        mrs     lr, spsr
index 920f34e612827ed11312ddf4edd35f43730c7fc0..09d8ad56020c969c738f2f10d0d7f68d47101ff5 100644 (file)
@@ -44,7 +44,7 @@ void ixp425_udelay(unsigned long usec)
         * This function has a max usec, but since it is called from udelay
         * we should not have to worry... be happy
         */
-       unsigned long usecs = CFG_HZ/1000000L & ~IXP425_OST_RELOAD_MASK;
+       unsigned long usecs = CONFIG_SYS_HZ/1000000L & ~IXP425_OST_RELOAD_MASK;
 
        *IXP425_OSST = IXP425_OSST_TIMER_1_PEND;
        usecs |= IXP425_OST_ONE_SHOT | IXP425_OST_ENABLE;
index 35b375c7822f51e12939e8b90b3d486e193804c7..9b0da963af2531292e405ddf665b8689a41eecca 100644 (file)
@@ -98,8 +98,8 @@ static void leon2_ic_enable(unsigned int irq)
 void handler_irq(int irq, struct pt_regs *regs)
 {
        if (irq_handlers[irq].handler) {
-               if (((unsigned int)irq_handlers[irq].handler > CFG_RAM_END) ||
-                   ((unsigned int)irq_handlers[irq].handler < CFG_RAM_BASE)
+               if (((unsigned int)irq_handlers[irq].handler > CONFIG_SYS_RAM_END) ||
+                   ((unsigned int)irq_handlers[irq].handler < CONFIG_SYS_RAM_BASE)
                    ) {
                        printf("handler_irq: bad handler: %x, irq number %d\n",
                               (unsigned int)irq_handlers[irq].handler, irq);
@@ -163,8 +163,8 @@ void irq_install_handler(int irq, interrupt_handler_t * handler, void *arg)
                printf("irq_install_handler: 0x%08lx replacing 0x%08lx\n",
                       (ulong) handler, (ulong) irq_handlers[irq].handler);
 
-       if (((unsigned int)handler > CFG_RAM_END) ||
-           ((unsigned int)handler < CFG_RAM_BASE)
+       if (((unsigned int)handler > CONFIG_SYS_RAM_END) ||
+           ((unsigned int)handler < CONFIG_SYS_RAM_BASE)
            ) {
                printf("irq_install_handler: bad handler: %x, irq number %d\n",
                       (unsigned int)handler, irq);
index b03199577ff1b95d83960b16069f6b486a5a220a..1a6c7f79cd5a8ef26afdb5aedfcefd1c0f9a34e2 100644 (file)
@@ -45,14 +45,14 @@ extern struct linux_romvec *kernel_arg_promvec;
 /* for __va */
 extern int __prom_start;
 #define PAGE_OFFSET 0xf0000000
-#define phys_base CFG_SDRAM_BASE
+#define phys_base CONFIG_SYS_SDRAM_BASE
 #define PROM_OFFS 8192
 #define PROM_SIZE_MASK (PROM_OFFS-1)
 #define __va(x) ( \
        (void *)( ((unsigned long)(x))-PROM_OFFS+ \
-       (CFG_PROM_OFFSET-phys_base)+PAGE_OFFSET-TEXT_BASE ) \
+       (CONFIG_SYS_PROM_OFFSET-phys_base)+PAGE_OFFSET-TEXT_BASE ) \
        )
-#define __phy(x) ((void *)(((unsigned long)(x))-PROM_OFFS+CFG_PROM_OFFSET-TEXT_BASE))
+#define __phy(x) ((void *)(((unsigned long)(x))-PROM_OFFS+CONFIG_SYS_PROM_OFFSET-TEXT_BASE))
 
 struct property {
        char *name;
@@ -540,13 +540,13 @@ static struct leon_prom_info PROM_DATA spi = {
        __va(&spi.totphys),
        {
         NULL,
-        (char *)CFG_SDRAM_BASE,
+        (char *)CONFIG_SYS_SDRAM_BASE,
         0,
         },
        __va(&spi.avail),
        {
         NULL,
-        (char *)CFG_SDRAM_BASE,
+        (char *)CONFIG_SYS_SDRAM_BASE,
         0,
         },
        NULL,                   /* prommap_p */
@@ -654,7 +654,7 @@ static void PROM_TEXT leon_reboot(char *bcommand)
 
        /* get physical address */
        struct leon_prom_info *pspi =
-           (void *)(CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (void *)(CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        unsigned int *srmmu_ctx_table;
 
@@ -707,7 +707,7 @@ static void PROM_TEXT leon_reboot_physical(char *bcommand)
        srmmu_set_mmureg(0);
 
        /* Hardcoded start address */
-       reset = CFG_MONITOR_BASE;
+       reset = CONFIG_SYS_MONITOR_BASE;
 
        /* flush data cache */
        sparc_dcache_flush_all();
@@ -762,7 +762,7 @@ static int PROM_TEXT no_nextnode(int node)
 {
        /* get physical address */
        struct leon_prom_info *pspi =
-           (void *)(CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (void *)(CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -777,7 +777,7 @@ static int PROM_TEXT no_child(int node)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -792,7 +792,7 @@ static struct property PROM_TEXT *find_property(int node, char *name)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -811,7 +811,7 @@ static int PROM_TEXT no_proplen(int node, char *name)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -827,7 +827,7 @@ static int PROM_TEXT no_getprop(int node, char *name, char *value)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -850,7 +850,7 @@ static char PROM_TEXT *no_nextprop(int node, char *name)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
        struct property *prop;
 
        /* convert into virtual address */
@@ -906,7 +906,7 @@ void leon_prom_init(struct leon_prom_info *pspi)
        pspi->freq_khz = CONFIG_SYS_CLK_FREQ / 1000;
 
        /* Set Available main memory size */
-       pspi->totphys.num_bytes = CFG_PROM_OFFSET - CFG_SDRAM_BASE;
+       pspi->totphys.num_bytes = CONFIG_SYS_PROM_OFFSET - CONFIG_SYS_SDRAM_BASE;
        pspi->avail.num_bytes = pspi->totphys.num_bytes;
 
 #undef nodes
@@ -951,7 +951,7 @@ extern unsigned short bss_start, bss_end;
 int prom_init(void)
 {
        struct leon_prom_info *pspi = (void *)
-           ((((unsigned int)&spi) & PROM_SIZE_MASK) + CFG_PROM_OFFSET);
+           ((((unsigned int)&spi) & PROM_SIZE_MASK) + CONFIG_SYS_PROM_OFFSET);
 
        /* disable mmu */
        srmmu_set_mmureg(0x00000000);
@@ -977,7 +977,7 @@ void prepare_bootargs(char *bootargs)
        /* if no bootargs set, skip copying ==> default bootline */
        if (bootargs && (*bootargs != '\0')) {
                pspi = (void *)((((unsigned int)&spi) & PROM_SIZE_MASK) +
-                               CFG_PROM_OFFSET);
+                               CONFIG_SYS_PROM_OFFSET);
                src = bootargs;
                dst = &pspi->arg[0];
                left = 255;     /* max len */
@@ -994,7 +994,7 @@ void srmmu_init_cpu(unsigned int entry)
 {
        sparc_srmmu_setup *psrmmu_tables = (void *)
            ((((unsigned int)&srmmu_tables) & PROM_SIZE_MASK) +
-            CFG_PROM_OFFSET);
+            CONFIG_SYS_PROM_OFFSET);
 
        /* Make context 0 (kernel's context) point
         * to our prepared memory mapping
@@ -1010,21 +1010,21 @@ void srmmu_init_cpu(unsigned int entry)
 #define PTE 2
 #define ACC_SU_ALL 0x1c
        psrmmu_tables->pgd_table[0xf0] =
-           (CFG_SDRAM_BASE >> 4) | ACC_SU_ALL | PTE;
+           (CONFIG_SYS_SDRAM_BASE >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf1] =
-           ((CFG_SDRAM_BASE + 0x1000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x1000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf2] =
-           ((CFG_SDRAM_BASE + 0x2000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x2000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf3] =
-           ((CFG_SDRAM_BASE + 0x3000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x3000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf4] =
-           ((CFG_SDRAM_BASE + 0x4000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x4000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf5] =
-           ((CFG_SDRAM_BASE + 0x5000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x5000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf6] =
-           ((CFG_SDRAM_BASE + 0x6000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x6000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf7] =
-           ((CFG_SDRAM_BASE + 0x7000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x7000000) >> 4) | ACC_SU_ALL | PTE;
 
        /* convert rom vec pointer to virtual address */
        kernel_arg_promvec = (struct linux_romvec *)
index ce9457f5a965a0c16aa0b21cce381578c7e1acbb..4f41b8e6aa3302ce25e3fd0f56366fbb0e1fa8b9 100644 (file)
@@ -57,7 +57,7 @@ int serial_init(void)
        regs = (LEON2_Uart_regs *) & leon2->UART_Channel_2;
 #endif
 
-       regs->UART_Scaler = CFG_LEON2_UART1_SCALER;
+       regs->UART_Scaler = CONFIG_SYS_LEON2_UART1_SCALER;
 
        /* Let bit 11 be unchanged (debug bit for GRMON) */
        tmp = READ_WORD(regs->UART_Control);
index f23f49937166356b241e3721431e30cf070a7f97..9b5d83ea50f8978a59d140ca19b67c83465fd002 100644 (file)
@@ -68,7 +68,7 @@ ARGPUSH = (WINDOWSIZE + 4)
 MINFRAME = (WINDOWSIZE + ARGPUSHSIZE + 4)
 
 /* Number of register windows */
-#ifndef CFG_SPARC_NWINDOWS
+#ifndef CONFIG_SYS_SPARC_NWINDOWS
 #error Must define number of SPARC register windows, default is 8
 #endif
 
@@ -280,16 +280,16 @@ leon2_init_ioport:
 leon2_init_mctrl:
 
        /* memory config register 1 */
-       set     CFG_GRLIB_MEMCFG1, %g2
+       set     CONFIG_SYS_GRLIB_MEMCFG1, %g2
        ld      [%g1], %g3              !
        and     %g3, 0x300, %g3
        or      %g2, %g3, %g2
        st      %g2, [%g1 + LEON2_MCFG1]
-       set     CFG_GRLIB_MEMCFG2, %g2          ! Load memory config register 2
+       set     CONFIG_SYS_GRLIB_MEMCFG2, %g2           ! Load memory config register 2
 #if !( defined(TSIM) || !defined(BZIMAGE))
        st      %g2, [%g1 + LEON2_MCFG2]        ! only for prom version, else done by "dumon -i"
 #endif
-       set     CFG_GRLIB_MEMCFG3, %g2          ! Init FT register
+       set     CONFIG_SYS_GRLIB_MEMCFG3, %g2           ! Init FT register
        st      %g2, [%g1 + LEON2_ECTRL]
        ld      [%g1 + LEON2_ECTRL], %g2
        srl     %g2, 30, %g2
@@ -310,7 +310,7 @@ leon2_init_psr:
        nop
 
 leon2_init_stackp:
-       set     CFG_INIT_SP_OFFSET, %fp
+       set     CONFIG_SYS_INIT_SP_OFFSET, %fp
        andn    %fp, 0x0f, %fp
        sub     %fp, 64, %sp
 
@@ -327,7 +327,7 @@ cpu_init_unreloc:
 reloc:
        set     TEXT_START,%g2
        set     DATA_END,%g3
-       set     CFG_RELOC_MONITOR_BASE,%g4
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%g4
 reloc_loop:
        ldd     [%g2],%l0
        ldd     [%g2+8],%l2
@@ -373,10 +373,10 @@ fixup_got:
        set     __got_end,%g3
 /*
  * new got offset = (old GOT-PTR (read with ld) -
- *   CFG_RELOC_MONITOR_BASE(from define) ) +
+ *   CONFIG_SYS_RELOC_MONITOR_BASE(from define) ) +
  *   Destination Address (from define)
  */
-       set     CFG_RELOC_MONITOR_BASE,%g2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%g2
        set     TEXT_START, %g1
        add     %g4,%g2,%g4
        sub     %g4,%g1,%g4
@@ -397,7 +397,7 @@ got_loop:
 prom_relocate:
        set     __prom_start, %g2
        set     __prom_end, %g3
-       set     CFG_PROM_OFFSET, %g4
+       set     CONFIG_SYS_PROM_OFFSET, %g4
 
 prom_relocate_loop:
        ldd     [%g2],%l0
@@ -413,7 +413,7 @@ prom_relocate_loop:
  * the new trap table address
  */
 
-       set     CFG_RELOC_MONITOR_BASE, %g2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE, %g2
        wr      %g0, %g2, %tbr
 
 /*     call    relocate*/
@@ -421,14 +421,14 @@ prom_relocate_loop:
 /* Call relocated init functions */
 jump:
        set     cpu_init_f2,%o1
-       set     CFG_RELOC_MONITOR_BASE,%o2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%o2
        add     %o1,%o2,%o1
        sub     %o1,%g1,%o1
        call    %o1
        clr     %o0
 
        set     board_init_f,%o1
-       set     CFG_RELOC_MONITOR_BASE,%o2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%o2
        add     %o1,%o2,%o1
        sub     %o1,%g1,%o1
        call    %o1
@@ -454,7 +454,7 @@ _irq_entry:
        WRITE_PAUSE
        mov     %l7, %o0                ! irq level
        set     handler_irq, %o1
-       set     (CFG_RELOC_MONITOR_BASE-TEXT_BASE), %o2
+       set     (CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE), %o2
        add     %o1, %o2, %o1
        call    %o1
        add     %sp, SF_REGS_SZ, %o1    ! pt_regs ptr
@@ -472,7 +472,7 @@ _window_overflow:
        mov     %wim, %l3               ! Calculate next WIM
        mov     %g1, %l7
        srl     %l3, 1, %g1
-       sll     %l3, (CFG_SPARC_NWINDOWS-1) , %l4
+       sll     %l3, (CONFIG_SYS_SPARC_NWINDOWS-1) , %l4
        or      %l4, %g1, %g1
 
        save                            ! Get into window to be saved.
@@ -509,7 +509,7 @@ _window_underflow:
 
        mov  %wim, %l3                  ! Calculate next WIM
        sll  %l3, 1, %l4
-       srl  %l3, (CFG_SPARC_NWINDOWS-1), %l5
+       srl  %l3, (CONFIG_SYS_SPARC_NWINDOWS-1), %l5
        or   %l5, %l4, %l5
        mov  %l5, %wim
        nop; nop; nop
@@ -578,7 +578,7 @@ trap_setup:
         */
        srl     %t_wim, 0x1, %g2                ! begin computation of new %wim
 
-       set     (CFG_SPARC_NWINDOWS-1), %g3     !NWINDOWS-1
+       set     (CONFIG_SYS_SPARC_NWINDOWS-1), %g3      !NWINDOWS-1
 
        sll     %t_wim, %g3, %t_wim     ! NWINDOWS-1
        or      %t_wim, %g2, %g2
@@ -612,7 +612,7 @@ ret_trap_entry:
        mov     2, %g1
        sll     %g1, %t_psr, %g1
 
-       set     CFG_SPARC_NWINDOWS, %g2 !NWINDOWS
+       set     CONFIG_SYS_SPARC_NWINDOWS, %g2  !NWINDOWS
 
        srl     %g1, %g2, %g2
        or      %g1, %g2, %g1
@@ -622,7 +622,7 @@ ret_trap_entry:
         sll    %g2, 0x1, %g1
 
        /* We have to grab a window before returning. */
-       set     (CFG_SPARC_NWINDOWS-1), %g3     !NWINDOWS-1
+       set     (CONFIG_SYS_SPARC_NWINDOWS-1), %g3      !NWINDOWS-1
 
        srl     %g2, %g3,  %g2
        or      %g1, %g2, %g1
index 4fe7d4b8d183f1c99e0c6c34766ad4ca9a6cc60a..be22ec26aafb5112e3aa09e8543e9eca80ca3ef1 100644 (file)
@@ -159,9 +159,9 @@ int init_memory_ctrl()
                mctrl = (ambapp_dev_mctrl *) base;
 
                /* config MCTRL memory controller */
-               mctrl->mcfg1 = CFG_GRLIB_MEMCFG1 | (mctrl->mcfg1 & 0x300);
-               mctrl->mcfg2 = CFG_GRLIB_MEMCFG2;
-               mctrl->mcfg3 = CFG_GRLIB_MEMCFG3;
+               mctrl->mcfg1 = CONFIG_SYS_GRLIB_MEMCFG1 | (mctrl->mcfg1 & 0x300);
+               mctrl->mcfg2 = CONFIG_SYS_GRLIB_MEMCFG2;
+               mctrl->mcfg3 = CONFIG_SYS_GRLIB_MEMCFG3;
                not_found_mctrl = 0;
        }
 
@@ -171,9 +171,9 @@ int init_memory_ctrl()
                mctrl = (ambapp_dev_mctrl *) base;
 
                /* config MCTRL memory controller */
-               mctrl->mcfg1 = CFG_GRLIB_FT_MEMCFG1 | (mctrl->mcfg1 & 0x300);
-               mctrl->mcfg2 = CFG_GRLIB_FT_MEMCFG2;
-               mctrl->mcfg3 = CFG_GRLIB_FT_MEMCFG3;
+               mctrl->mcfg1 = CONFIG_SYS_GRLIB_FT_MEMCFG1 | (mctrl->mcfg1 & 0x300);
+               mctrl->mcfg2 = CONFIG_SYS_GRLIB_FT_MEMCFG2;
+               mctrl->mcfg3 = CONFIG_SYS_GRLIB_FT_MEMCFG3;
                not_found_mctrl = 0;
        }
 
@@ -183,7 +183,7 @@ int init_memory_ctrl()
                sdctrl = (ambapp_dev_sdctrl *) base;
 
                /* config memory controller */
-               sdctrl->sdcfg = CFG_GRLIB_SDRAM;
+               sdctrl->sdcfg = CONFIG_SYS_GRLIB_SDRAM;
                not_found_mctrl = 0;
        }
 
@@ -192,8 +192,8 @@ int init_memory_ctrl()
                ddr2spa = (ambapp_dev_ddr2spa *) ambapp_ahb_get_info(ahb, 1);
 
                /* Config DDR2 memory controller */
-               ddr2spa->cfg1 = CFG_GRLIB_DDR2_CFG1;
-               ddr2spa->cfg3 = CFG_GRLIB_DDR2_CFG3;
+               ddr2spa->cfg1 = CONFIG_SYS_GRLIB_DDR2_CFG1;
+               ddr2spa->cfg3 = CONFIG_SYS_GRLIB_DDR2_CFG3;
                not_found_mctrl = 0;
        }
 
@@ -202,7 +202,7 @@ int init_memory_ctrl()
                ddrspa = (ambapp_dev_ddrspa *) ambapp_ahb_get_info(ahb, 1);
 
                /* Config DDR memory controller */
-               ddrspa->ctrl = CFG_GRLIB_DDR_CFG;
+               ddrspa->ctrl = CONFIG_SYS_GRLIB_DDR_CFG;
                not_found_mctrl = 0;
        }
 
index 26926321a552e562f6f0d19128e52171e67c9d2b..ac6aca5d18713d5ba2c733dcca67739db0c3b083 100644 (file)
@@ -104,8 +104,8 @@ static void leon3_ic_enable(unsigned int irq)
 void handler_irq(int irq, struct pt_regs *regs)
 {
        if (irq_handlers[irq].handler) {
-               if (((unsigned int)irq_handlers[irq].handler > CFG_RAM_END) ||
-                   ((unsigned int)irq_handlers[irq].handler < CFG_RAM_BASE)
+               if (((unsigned int)irq_handlers[irq].handler > CONFIG_SYS_RAM_END) ||
+                   ((unsigned int)irq_handlers[irq].handler < CONFIG_SYS_RAM_BASE)
                    ) {
                        printf("handler_irq: bad handler: %x, irq number %d\n",
                               (unsigned int)irq_handlers[irq].handler, irq);
@@ -165,8 +165,8 @@ void irq_install_handler(int irq, interrupt_handler_t * handler, void *arg)
                printf("irq_install_handler: 0x%08lx replacing 0x%08lx\n",
                       (ulong) handler, (ulong) irq_handlers[irq].handler);
 
-       if (((unsigned int)handler > CFG_RAM_END) ||
-           ((unsigned int)handler < CFG_RAM_BASE)
+       if (((unsigned int)handler > CONFIG_SYS_RAM_END) ||
+           ((unsigned int)handler < CONFIG_SYS_RAM_BASE)
            ) {
                printf("irq_install_handler: bad handler: %x, irq number %d\n",
                       (unsigned int)handler, irq);
index 9fa2d040e8712c7ebae203d5829a6aafd7ea84cf..18d2fb294aee9cff2436a5e58c71b398180ab0a8 100644 (file)
@@ -49,14 +49,14 @@ ambapp_dev_gptimer *gptimer;
 /* for __va */
 extern int __prom_start;
 #define PAGE_OFFSET 0xf0000000
-#define phys_base CFG_SDRAM_BASE
+#define phys_base CONFIG_SYS_SDRAM_BASE
 #define PROM_OFFS 8192
 #define PROM_SIZE_MASK (PROM_OFFS-1)
 #define __va(x) ( \
        (void *)( ((unsigned long)(x))-PROM_OFFS+ \
-       (CFG_PROM_OFFSET-phys_base)+PAGE_OFFSET-TEXT_BASE ) \
+       (CONFIG_SYS_PROM_OFFSET-phys_base)+PAGE_OFFSET-TEXT_BASE ) \
        )
-#define __phy(x) ((void *)(((unsigned long)(x))-PROM_OFFS+CFG_PROM_OFFSET-TEXT_BASE))
+#define __phy(x) ((void *)(((unsigned long)(x))-PROM_OFFS+CONFIG_SYS_PROM_OFFSET-TEXT_BASE))
 
 struct property {
        char *name;
@@ -545,13 +545,13 @@ static struct leon_prom_info PROM_DATA spi = {
        __va(&spi.totphys),
        {
         NULL,
-        (char *)CFG_SDRAM_BASE,
+        (char *)CONFIG_SYS_SDRAM_BASE,
         0,
         },
        __va(&spi.avail),
        {
         NULL,
-        (char *)CFG_SDRAM_BASE,
+        (char *)CONFIG_SYS_SDRAM_BASE,
         0,
         },
        NULL,                   /* prommap_p */
@@ -659,7 +659,7 @@ static void PROM_TEXT leon_reboot(char *bcommand)
 
        /* get physical address */
        struct leon_prom_info *pspi =
-           (void *)(CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (void *)(CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        unsigned int *srmmu_ctx_table;
 
@@ -712,7 +712,7 @@ static void PROM_TEXT leon_reboot_physical(char *bcommand)
        srmmu_set_mmureg(0);
 
        /* Hardcoded start address */
-       reset = CFG_MONITOR_BASE;
+       reset = CONFIG_SYS_MONITOR_BASE;
 
        /* flush data cache */
        sparc_dcache_flush_all();
@@ -742,7 +742,7 @@ static int PROM_TEXT leon_nbputchar(int c)
 
        /* get physical address */
        struct leon_prom_info *pspi =
-           (void *)(CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (void *)(CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        uart = (ambapp_dev_apbuart *)
            SPARC_BYPASS_READ(&pspi->reloc_funcs.leon3_apbuart);
@@ -778,7 +778,7 @@ static int PROM_TEXT no_nextnode(int node)
 {
        /* get physical address */
        struct leon_prom_info *pspi =
-           (void *)(CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (void *)(CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -793,7 +793,7 @@ static int PROM_TEXT no_child(int node)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -808,7 +808,7 @@ static struct property PROM_TEXT *find_property(int node, char *name)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -827,7 +827,7 @@ static int PROM_TEXT no_proplen(int node, char *name)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -843,7 +843,7 @@ static int PROM_TEXT no_getprop(int node, char *name, char *value)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
 
        /* convert into virtual address */
        pspi = (struct leon_prom_info *)
@@ -866,7 +866,7 @@ static char PROM_TEXT *no_nextprop(int node, char *name)
 {
        /* get physical address */
        struct leon_prom_info *pspi = (struct leon_prom_info *)
-           (CFG_PROM_OFFSET + sizeof(srmmu_tables));
+           (CONFIG_SYS_PROM_OFFSET + sizeof(srmmu_tables));
        struct property *prop;
 
        /* convert into virtual address */
@@ -922,7 +922,7 @@ void leon_prom_init(struct leon_prom_info *pspi)
        pspi->freq_khz = CONFIG_SYS_CLK_FREQ / 1000;
 
        /* Set Available main memory size */
-       pspi->totphys.num_bytes = CFG_PROM_OFFSET - CFG_SDRAM_BASE;
+       pspi->totphys.num_bytes = CONFIG_SYS_PROM_OFFSET - CONFIG_SYS_SDRAM_BASE;
        pspi->avail.num_bytes = pspi->totphys.num_bytes;
 
        /* Set the pointer to the Console UART in romvec */
@@ -982,7 +982,7 @@ extern unsigned short bss_start, bss_end;
 int prom_init(void)
 {
        struct leon_prom_info *pspi = (void *)
-           ((((unsigned int)&spi) & PROM_SIZE_MASK) + CFG_PROM_OFFSET);
+           ((((unsigned int)&spi) & PROM_SIZE_MASK) + CONFIG_SYS_PROM_OFFSET);
 
        /* disable mmu */
        srmmu_set_mmureg(0x00000000);
@@ -1008,7 +1008,7 @@ void prepare_bootargs(char *bootargs)
        /* if no bootargs set, skip copying ==> default bootline */
        if (bootargs && (*bootargs != '\0')) {
                pspi = (void *)((((unsigned int)&spi) & PROM_SIZE_MASK) +
-                               CFG_PROM_OFFSET);
+                               CONFIG_SYS_PROM_OFFSET);
                src = bootargs;
                dst = &pspi->arg[0];
                left = 255;     /* max len */
@@ -1025,7 +1025,7 @@ void srmmu_init_cpu(unsigned int entry)
 {
        sparc_srmmu_setup *psrmmu_tables = (void *)
            ((((unsigned int)&srmmu_tables) & PROM_SIZE_MASK) +
-            CFG_PROM_OFFSET);
+            CONFIG_SYS_PROM_OFFSET);
 
        /* Make context 0 (kernel's context) point
         * to our prepared memory mapping
@@ -1041,21 +1041,21 @@ void srmmu_init_cpu(unsigned int entry)
 #define PTE 2
 #define ACC_SU_ALL 0x1c
        psrmmu_tables->pgd_table[0xf0] =
-           (CFG_SDRAM_BASE >> 4) | ACC_SU_ALL | PTE;
+           (CONFIG_SYS_SDRAM_BASE >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf1] =
-           ((CFG_SDRAM_BASE + 0x1000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x1000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf2] =
-           ((CFG_SDRAM_BASE + 0x2000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x2000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf3] =
-           ((CFG_SDRAM_BASE + 0x3000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x3000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf4] =
-           ((CFG_SDRAM_BASE + 0x4000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x4000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf5] =
-           ((CFG_SDRAM_BASE + 0x5000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x5000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf6] =
-           ((CFG_SDRAM_BASE + 0x6000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x6000000) >> 4) | ACC_SU_ALL | PTE;
        psrmmu_tables->pgd_table[0xf7] =
-           ((CFG_SDRAM_BASE + 0x7000000) >> 4) | ACC_SU_ALL | PTE;
+           ((CONFIG_SYS_SDRAM_BASE + 0x7000000) >> 4) | ACC_SU_ALL | PTE;
 
        /* convert rom vec pointer to virtual address */
        kernel_arg_promvec = (struct linux_romvec *)
index 27d5cd38032118005f2a7fd81d1b3ff50946d522..4b2fcb8667c4b5cd3b19314a318e225f3aad1551 100644 (file)
@@ -58,7 +58,7 @@ int serial_init(void)
                 *
                 * Receiver & transmitter enable
                 */
-               leon3_apbuart->scaler = CFG_GRLIB_APBUART_SCALER;
+               leon3_apbuart->scaler = CONFIG_SYS_GRLIB_APBUART_SCALER;
 
                /* Let bit 11 be unchanged (debug bit for GRMON) */
                tmp = READ_WORD(leon3_apbuart->ctrl);
index d421898d883f2f1d7c052384a1fd66823acf58ed..7afe10e5f28e6308397bc870f9a2244028b5692d 100644 (file)
@@ -68,7 +68,7 @@ ARGPUSH = (WINDOWSIZE + 4)
 MINFRAME = (WINDOWSIZE + ARGPUSHSIZE + 4)
 
 /* Number of register windows */
-#ifndef CFG_SPARC_NWINDOWS
+#ifndef CONFIG_SYS_SPARC_NWINDOWS
 #error Must define number of SPARC register windows, default is 8
 #endif
 
@@ -251,7 +251,7 @@ wininit:
        mov     %g3, %wim
 
 stackp:
-       set     CFG_INIT_SP_OFFSET, %fp
+       set     CONFIG_SYS_INIT_SP_OFFSET, %fp
        andn    %fp, 0x0f, %fp
        sub     %fp, 64, %sp
 
@@ -268,7 +268,7 @@ cpu_init_unreloc:
 reloc:
        set     TEXT_START,%g2
        set     DATA_END,%g3
-       set     CFG_RELOC_MONITOR_BASE,%g4
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%g4
 reloc_loop:
        ldd     [%g2],%l0
        ldd     [%g2+8],%l2
@@ -314,10 +314,10 @@ fixup_got:
        set     __got_end,%g3
 /*
  * new got offset = (old GOT-PTR (read with ld) -
- *   CFG_RELOC_MONITOR_BASE(from define) ) +
+ *   CONFIG_SYS_RELOC_MONITOR_BASE(from define) ) +
  *   Destination Address (from define)
  */
-       set     CFG_RELOC_MONITOR_BASE,%g2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%g2
        set     TEXT_START, %g1
        add     %g4,%g2,%g4
        sub     %g4,%g1,%g4
@@ -338,7 +338,7 @@ got_loop:
 prom_relocate:
        set     __prom_start, %g2
        set     __prom_end, %g3
-       set     CFG_PROM_OFFSET, %g4
+       set     CONFIG_SYS_PROM_OFFSET, %g4
 
 prom_relocate_loop:
        ldd     [%g2],%l0
@@ -354,7 +354,7 @@ prom_relocate_loop:
  * the new trap table address
  */
 
-       set     CFG_RELOC_MONITOR_BASE, %g2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE, %g2
        wr      %g0, %g2, %tbr
        nop
        nop
@@ -368,22 +368,22 @@ snoop_detect:
        sethi   %hi(0x00800000), %o0
        lda     [%g0] 2, %o1
        and     %o0, %o1, %o0
-       sethi   %hi(leon3_snooping_avail+CFG_RELOC_MONITOR_BASE-TEXT_BASE), %o1
-       st      %o0, [%lo(leon3_snooping_avail+CFG_RELOC_MONITOR_BASE-TEXT_BASE)+%o1]
+       sethi   %hi(leon3_snooping_avail+CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE), %o1
+       st      %o0, [%lo(leon3_snooping_avail+CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE)+%o1]
 
 /*     call    relocate*/
        nop
 /* Call relocated init functions */
 jump:
        set     cpu_init_f2,%o1
-       set     CFG_RELOC_MONITOR_BASE,%o2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%o2
        add     %o1,%o2,%o1
        sub     %o1,%g1,%o1
        call    %o1
        clr     %o0
 
        set     board_init_f,%o1
-       set     CFG_RELOC_MONITOR_BASE,%o2
+       set     CONFIG_SYS_RELOC_MONITOR_BASE,%o2
        add     %o1,%o2,%o1
        sub     %o1,%g1,%o1
        call    %o1
@@ -409,7 +409,7 @@ _irq_entry:
        WRITE_PAUSE
        mov     %l7, %o0                ! irq level
        set     handler_irq, %o1
-       set     (CFG_RELOC_MONITOR_BASE-TEXT_BASE), %o2
+       set     (CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE), %o2
        add     %o1, %o2, %o1
        call    %o1
        add     %sp, SF_REGS_SZ, %o1    ! pt_regs ptr
@@ -427,7 +427,7 @@ _window_overflow:
        mov     %wim, %l3               ! Calculate next WIM
        mov     %g1, %l7
        srl     %l3, 1, %g1
-       sll     %l3, (CFG_SPARC_NWINDOWS-1) , %l4
+       sll     %l3, (CONFIG_SYS_SPARC_NWINDOWS-1) , %l4
        or      %l4, %g1, %g1
 
        save                            ! Get into window to be saved.
@@ -464,7 +464,7 @@ _window_underflow:
 
        mov  %wim, %l3                  ! Calculate next WIM
        sll  %l3, 1, %l4
-       srl  %l3, (CFG_SPARC_NWINDOWS-1), %l5
+       srl  %l3, (CONFIG_SYS_SPARC_NWINDOWS-1), %l5
        or   %l5, %l4, %l5
        mov  %l5, %wim
        nop; nop; nop
@@ -533,7 +533,7 @@ trap_setup:
         */
        srl     %t_wim, 0x1, %g2                ! begin computation of new %wim
 
-       set     (CFG_SPARC_NWINDOWS-1), %g3     !NWINDOWS-1
+       set     (CONFIG_SYS_SPARC_NWINDOWS-1), %g3      !NWINDOWS-1
 
        sll     %t_wim, %g3, %t_wim     ! NWINDOWS-1
        or      %t_wim, %g2, %g2
@@ -567,7 +567,7 @@ ret_trap_entry:
        mov     2, %g1
        sll     %g1, %t_psr, %g1
 
-       set     CFG_SPARC_NWINDOWS, %g2 !NWINDOWS
+       set     CONFIG_SYS_SPARC_NWINDOWS, %g2  !NWINDOWS
 
        srl     %g1, %g2, %g2
        or      %g1, %g2, %g1
@@ -577,7 +577,7 @@ ret_trap_entry:
         sll    %g2, 0x1, %g1
 
        /* We have to grab a window before returning. */
-       set     (CFG_SPARC_NWINDOWS-1), %g3     !NWINDOWS-1
+       set     (CONFIG_SYS_SPARC_NWINDOWS-1), %g3      !NWINDOWS-1
 
        srl     %g2, %g3,  %g2
        or      %g1, %g2, %g1
index 578eb73e8e014e74c54ca7c25d8417fe5e7853cc..8ff3a36821dc829e3efec76249429bcaca6935f3 100644 (file)
@@ -94,7 +94,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index d01787f916083eabd8296c266012e6ca97e22923..5acfe1a44976d8b9e1e95493026657b844505544 100644 (file)
@@ -59,7 +59,7 @@ int interrupt_init (void)
                /*
                 * 10ms period with 508.469kHz clock = 5084
                 */
-               timer_load_val = CFG_HZ/100;
+               timer_load_val = CONFIG_SYS_HZ/100;
        }
 
        /* load value for 10 ms timeout */
@@ -98,12 +98,12 @@ void udelay (unsigned long usec)
        /* normalize */
        if (usec >= 1000) {
                tmo = usec / 1000;
-               tmo *= CFG_HZ;
+               tmo *= CONFIG_SYS_HZ;
                tmo /= 1000;
        }
        else {
                if (usec > 1) {
-                       tmo = usec * CFG_HZ;
+                       tmo = usec * CONFIG_SYS_HZ;
                        tmo /= (1000*1000);
                }
                else
@@ -152,11 +152,11 @@ void udelay_masked (unsigned long usec)
        /* normalize */
        if (usec >= 1000) {
                tmo = usec / 1000;
-               tmo *= CFG_HZ;
+               tmo *= CONFIG_SYS_HZ;
                tmo /= 1000;
        } else {
                if (usec > 1) {
-                       tmo = usec * CFG_HZ;
+                       tmo = usec * CONFIG_SYS_HZ;
                        tmo /= (1000*1000);
                } else {
                        tmo = 1;
index e4655d69b169df90c2a0b57960d18fe99bd3840e..11252ce33b64816f79a0d7dc81c5b0cab00b1025 100644 (file)
@@ -172,8 +172,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -285,8 +285,8 @@ cpu_init_crit:
        sub     sp, sp, #S_FRAME_SIZE
        stmia   sp, {r0 - r12}                  @ Calling r0-r12
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        ldmia   r2, {r2 - r3}                   @ get pc, cpsr
        add     r0, sp, #S_FRAME_SIZE           @ restore sp_SVC
 
@@ -318,8 +318,8 @@ cpu_init_crit:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]                       @ save caller lr / spsr
        mrs     lr, spsr
index cf29559e7144b31e9df46b640c1d2775e8bd38e6..0f1dd1f125a0cd968f02ccb597a90b0b61e00212 100644 (file)
@@ -58,40 +58,40 @@ void cpu_init_f(void)
        scm1->pacrg = 0;
        scm1->pacri = 0;
 
-#if (defined(CFG_CS0_BASE) && defined(CFG_CS0_MASK) && defined(CFG_CS0_CTRL))
-       fbcs->csar0 = CFG_CS0_BASE;
-       fbcs->cscr0 = CFG_CS0_CTRL;
-       fbcs->csmr0 = CFG_CS0_MASK;
+#if (defined(CONFIG_SYS_CS0_BASE) && defined(CONFIG_SYS_CS0_MASK) && defined(CONFIG_SYS_CS0_CTRL))
+       fbcs->csar0 = CONFIG_SYS_CS0_BASE;
+       fbcs->cscr0 = CONFIG_SYS_CS0_CTRL;
+       fbcs->csmr0 = CONFIG_SYS_CS0_MASK;
 #endif
 
-#if (defined(CFG_CS1_BASE) && defined(CFG_CS1_MASK) && defined(CFG_CS1_CTRL))
-       fbcs->csar1 = CFG_CS1_BASE;
-       fbcs->cscr1 = CFG_CS1_CTRL;
-       fbcs->csmr1 = CFG_CS1_MASK;
+#if (defined(CONFIG_SYS_CS1_BASE) && defined(CONFIG_SYS_CS1_MASK) && defined(CONFIG_SYS_CS1_CTRL))
+       fbcs->csar1 = CONFIG_SYS_CS1_BASE;
+       fbcs->cscr1 = CONFIG_SYS_CS1_CTRL;
+       fbcs->csmr1 = CONFIG_SYS_CS1_MASK;
 #endif
 
-#if (defined(CFG_CS2_BASE) && defined(CFG_CS2_MASK) && defined(CFG_CS2_CTRL))
-       fbcs->csar2 = CFG_CS2_BASE;
-       fbcs->cscr2 = CFG_CS2_CTRL;
-       fbcs->csmr2 = CFG_CS2_MASK;
+#if (defined(CONFIG_SYS_CS2_BASE) && defined(CONFIG_SYS_CS2_MASK) && defined(CONFIG_SYS_CS2_CTRL))
+       fbcs->csar2 = CONFIG_SYS_CS2_BASE;
+       fbcs->cscr2 = CONFIG_SYS_CS2_CTRL;
+       fbcs->csmr2 = CONFIG_SYS_CS2_MASK;
 #endif
 
-#if (defined(CFG_CS3_BASE) && defined(CFG_CS3_MASK) && defined(CFG_CS3_CTRL))
-       fbcs->csar3 = CFG_CS3_BASE;
-       fbcs->cscr3 = CFG_CS3_CTRL;
-       fbcs->csmr3 = CFG_CS3_MASK;
+#if (defined(CONFIG_SYS_CS3_BASE) && defined(CONFIG_SYS_CS3_MASK) && defined(CONFIG_SYS_CS3_CTRL))
+       fbcs->csar3 = CONFIG_SYS_CS3_BASE;
+       fbcs->cscr3 = CONFIG_SYS_CS3_CTRL;
+       fbcs->csmr3 = CONFIG_SYS_CS3_MASK;
 #endif
 
-#if (defined(CFG_CS4_BASE) && defined(CFG_CS4_MASK) && defined(CFG_CS4_CTRL))
-       fbcs->csar4 = CFG_CS4_BASE;
-       fbcs->cscr4 = CFG_CS4_CTRL;
-       fbcs->csmr4 = CFG_CS4_MASK;
+#if (defined(CONFIG_SYS_CS4_BASE) && defined(CONFIG_SYS_CS4_MASK) && defined(CONFIG_SYS_CS4_CTRL))
+       fbcs->csar4 = CONFIG_SYS_CS4_BASE;
+       fbcs->cscr4 = CONFIG_SYS_CS4_CTRL;
+       fbcs->csmr4 = CONFIG_SYS_CS4_MASK;
 #endif
 
-#if (defined(CFG_CS5_BASE) && defined(CFG_CS5_MASK) && defined(CFG_CS5_CTRL))
-       fbcs->csar5 = CFG_CS5_BASE;
-       fbcs->cscr5 = CFG_CS5_CTRL;
-       fbcs->csmr5 = CFG_CS5_MASK;
+#if (defined(CONFIG_SYS_CS5_BASE) && defined(CONFIG_SYS_CS5_MASK) && defined(CONFIG_SYS_CS5_CTRL))
+       fbcs->csar5 = CONFIG_SYS_CS5_BASE;
+       fbcs->cscr5 = CONFIG_SYS_CS5_CTRL;
+       fbcs->csmr5 = CONFIG_SYS_CS5_MASK;
 #endif
 
 #ifdef CONFIG_FSL_I2C
@@ -107,12 +107,12 @@ void cpu_init_f(void)
 int cpu_init_r(void)
 {
 #ifdef CONFIG_MCFRTC
-       volatile rtc_t *rtc = (volatile rtc_t *)(CFG_MCFRTC_BASE);
+       volatile rtc_t *rtc = (volatile rtc_t *)(CONFIG_SYS_MCFRTC_BASE);
        volatile rtcex_t *rtcex = (volatile rtcex_t *)&rtc->extended;
-       u32 oscillator = CFG_RTC_OSCILLATOR;
+       u32 oscillator = CONFIG_SYS_RTC_OSCILLATOR;
 
-       rtcex->gocu = (CFG_RTC_OSCILLATOR >> 16) & 0xFFFF;
-       rtcex->gocl = CFG_RTC_OSCILLATOR & 0xFFFF;
+       rtcex->gocu = (CONFIG_SYS_RTC_OSCILLATOR >> 16) & 0xFFFF;
+       rtcex->gocl = CONFIG_SYS_RTC_OSCILLATOR & 0xFFFF;
 #endif
 
        return (0);
@@ -123,7 +123,7 @@ void uart_port_conf(void)
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                gpio->par_uart &=
                    (GPIO_PAR_UART_U0TXD_MASK & GPIO_PAR_UART_U0RXD_MASK);
index 9572a7bc32be267e2aaaa91df43e4cad17509bc4..85828a67b5f93f732b6bfb9cb4b5ddc4b95e6bde 100644 (file)
@@ -31,7 +31,7 @@
 
 int interrupt_init(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
        /* Make sure all interrupts are disabled */
        intp->imrh0 |= 0xFFFFFFFF;
@@ -44,9 +44,9 @@ int interrupt_init(void)
 #if defined(CONFIG_MCFTMR)
 void dtimer_intr_setup(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
-       intp->icr0[CFG_TMRINTR_NO] = CFG_TMRINTR_PRI;
-       intp->imrh0 &= ~CFG_TMRINTR_MASK;
+       intp->icr0[CONFIG_SYS_TMRINTR_NO] = CONFIG_SYS_TMRINTR_PRI;
+       intp->imrh0 &= ~CONFIG_SYS_TMRINTR_MASK;
 }
 #endif
index 0baf9bcd997d29fee07788cf37b5bb966d736417..74b9059d3dcc01c8a31e0c555aaf4656c3d76a60 100644 (file)
@@ -99,14 +99,14 @@ int get_clocks(void)
                /* serial mode */
        } else {
                /* Normal Mode */
-               vco = pfdr * CFG_INPUT_CLKSRC;
+               vco = pfdr * CONFIG_SYS_INPUT_CLKSRC;
                gd->vco_clk = vco;
        }
 
        if ((ccm->ccr & CCM_MISCCR_LIMP) == CCM_MISCCR_LIMP) {
                /* Limp mode */
        } else {
-               gd->inp_clk = CFG_INPUT_CLKSRC; /* Input clock */
+               gd->inp_clk = CONFIG_SYS_INPUT_CLKSRC;  /* Input clock */
 
                temp = (pll->pcr & PLL_PCR_OUTDIV1_MASK) + 1;
                gd->cpu_clk = vco / temp;       /* cpu clock */
index 1b47c9775df99f5d46837eaa3cfa71886babd483..becaab7c2557230cbb12cfb9c9c56ef97178da6a 100644 (file)
@@ -29,9 +29,9 @@
 #endif
 
 /* last three long word reserved for cache status */
-#define ICACHE_STATUS  (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END- 4)
-#define DCACHE_STATUS  (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END- 8)
-#define CACR_STATUS    (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-12)
+#define ICACHE_STATUS  (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END- 4)
+#define DCACHE_STATUS  (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END- 8)
+#define CACR_STATUS    (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-12)
 
 #define _START _start
 #define _FAULT _fault
@@ -132,10 +132,10 @@ _start:
        move.w #0x2700,%sr              /* Mask off Interrupt */
 
        /* Set vector base register at the beginning of the Flash */
-       move.l  #CFG_FLASH_BASE, %d0
+       move.l  #CONFIG_SYS_FLASH_BASE, %d0
        movec   %d0, %VBR
 
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_RAM_CTRL), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
        movec   %d0, %RAMBAR1
 
        /* initialize general use internal ram */
@@ -156,7 +156,7 @@ _start:
 
        /* set stackpointer to end of internal ram to get some stackspace for
           the first c-code */
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET), %sp
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l %sp@-
 
        move.l #__got_start, %a5        /* put relocation table address to a5 */
@@ -187,7 +187,7 @@ relocate_code:
        move.l 12(%a6), %d0             /* Save copy of Global Data pointer */
        move.l 16(%a6), %a0             /* Save copy of Destination Address */
 
-       move.l #CFG_MONITOR_BASE, %a1
+       move.l #CONFIG_SYS_MONITOR_BASE, %a1
        move.l #__init_end, %a2
        move.l %a0, %a3
 
@@ -202,7 +202,7 @@ relocate_code:
  * initialization, now running from RAM.
  */
        move.l  %a0, %a1
-       add.l   #(in_ram - CFG_MONITOR_BASE), %a1
+       add.l   #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
        jmp     (%a1)
 
 in_ram:
@@ -212,9 +212,9 @@ clear_bss:
         * Now clear BSS segment
         */
        move.l  %a0, %a1
-       add.l   #(_sbss - CFG_MONITOR_BASE),%a1
+       add.l   #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a0, %d1
-       add.l   #(_ebss - CFG_MONITOR_BASE),%d1
+       add.l   #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
 6:
        clr.l   (%a1)+
        cmp.l   %a1,%d1
@@ -224,11 +224,11 @@ clear_bss:
         * fix got table in RAM
         */
        move.l  %a0, %a1
-       add.l   #(__got_start - CFG_MONITOR_BASE),%a1
+       add.l   #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a1,%a5                 /* * fix got pointer register a5 */
 
        move.l  %a0, %a2
-       add.l   #(__got_end - CFG_MONITOR_BASE),%a2
+       add.l   #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
 
 7:
        move.l  (%a1),%d1
@@ -240,7 +240,7 @@ clear_bss:
 
        /* calculate relative jump to board_init_r in ram */
        move.l %a0, %a1
-       add.l #(board_init_r - CFG_MONITOR_BASE), %a1
+       add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
 
        /* set parameters for board_init_r */
        move.l %a0,-(%sp)               /* dest_addr */
@@ -276,7 +276,7 @@ icache_enable:
        move.l  #0x01200000, %d0        /* Invalid cache */
        movec   %d0, %CACR
 
-       move.l  #(CFG_SDRAM_BASE + 0x1c000), %d0
+       move.l  #(CONFIG_SYS_SDRAM_BASE + 0x1c000), %d0
        movec   %d0, %ACR0
 
        move.l  #0x81600610, %d0        /* Enable cache */
index bdc152f07824ad83e5ad216d60bc9287942eb8f1..1ce90fd15efb953eaf06ce2d1136356b3266af2b 100644 (file)
@@ -98,7 +98,7 @@ int watchdog_init(void)
        u32 wdog_module = 0;
 
        /* set timeout and enable watchdog */
-       wdog_module = ((CFG_CLK / CFG_HZ) * CONFIG_WATCHDOG_TIMEOUT);
+       wdog_module = ((CONFIG_SYS_CLK / CONFIG_SYS_HZ) * CONFIG_WATCHDOG_TIMEOUT);
        wdog_module |= (wdog_module / 8192);
        wdp->mr = wdog_module;
 
index 8ab5b8ed8ba51ad7b8c9d915187a200538a3d64a..652094485e8d5778dea304eedc99496cfa076b8d 100644 (file)
@@ -49,69 +49,69 @@ void cpu_init_f(void)
        wdog->cr = 0;
 #endif
 
-       scm->rambar = (CFG_INIT_RAM_ADDR | SCM_RAMBAR_BDE);
+       scm->rambar = (CONFIG_SYS_INIT_RAM_ADDR | SCM_RAMBAR_BDE);
 
        /* Port configuration */
        gpio->par_cs = 0;
 
-#if (defined(CFG_CS0_BASE) && defined(CFG_CS0_MASK) && defined(CFG_CS0_CTRL))
-       fbcs->csar0 = CFG_CS0_BASE;
-       fbcs->cscr0 = CFG_CS0_CTRL;
-       fbcs->csmr0 = CFG_CS0_MASK;
+#if (defined(CONFIG_SYS_CS0_BASE) && defined(CONFIG_SYS_CS0_MASK) && defined(CONFIG_SYS_CS0_CTRL))
+       fbcs->csar0 = CONFIG_SYS_CS0_BASE;
+       fbcs->cscr0 = CONFIG_SYS_CS0_CTRL;
+       fbcs->csmr0 = CONFIG_SYS_CS0_MASK;
 #endif
 
-#if (defined(CFG_CS1_BASE) && defined(CFG_CS1_MASK) && defined(CFG_CS1_CTRL))
+#if (defined(CONFIG_SYS_CS1_BASE) && defined(CONFIG_SYS_CS1_MASK) && defined(CONFIG_SYS_CS1_CTRL))
        gpio->par_cs |= GPIO_PAR_CS_CS1;
-       fbcs->csar1 = CFG_CS1_BASE;
-       fbcs->cscr1 = CFG_CS1_CTRL;
-       fbcs->csmr1 = CFG_CS1_MASK;
+       fbcs->csar1 = CONFIG_SYS_CS1_BASE;
+       fbcs->cscr1 = CONFIG_SYS_CS1_CTRL;
+       fbcs->csmr1 = CONFIG_SYS_CS1_MASK;
 #endif
 
-#if (defined(CFG_CS2_BASE) && defined(CFG_CS2_MASK) && defined(CFG_CS2_CTRL))
+#if (defined(CONFIG_SYS_CS2_BASE) && defined(CONFIG_SYS_CS2_MASK) && defined(CONFIG_SYS_CS2_CTRL))
        gpio->par_cs |= GPIO_PAR_CS_CS2;
-       fbcs->csar2 = CFG_CS2_BASE;
-       fbcs->cscr2 = CFG_CS2_CTRL;
-       fbcs->csmr2 = CFG_CS2_MASK;
+       fbcs->csar2 = CONFIG_SYS_CS2_BASE;
+       fbcs->cscr2 = CONFIG_SYS_CS2_CTRL;
+       fbcs->csmr2 = CONFIG_SYS_CS2_MASK;
 #endif
 
-#if (defined(CFG_CS3_BASE) && defined(CFG_CS3_MASK) && defined(CFG_CS3_CTRL))
+#if (defined(CONFIG_SYS_CS3_BASE) && defined(CONFIG_SYS_CS3_MASK) && defined(CONFIG_SYS_CS3_CTRL))
        gpio->par_cs |= GPIO_PAR_CS_CS3;
-       fbcs->csar3 = CFG_CS3_BASE;
-       fbcs->cscr3 = CFG_CS3_CTRL;
-       fbcs->csmr3 = CFG_CS3_MASK;
+       fbcs->csar3 = CONFIG_SYS_CS3_BASE;
+       fbcs->cscr3 = CONFIG_SYS_CS3_CTRL;
+       fbcs->csmr3 = CONFIG_SYS_CS3_MASK;
 #endif
 
-#if (defined(CFG_CS4_BASE) && defined(CFG_CS4_MASK) && defined(CFG_CS4_CTRL))
+#if (defined(CONFIG_SYS_CS4_BASE) && defined(CONFIG_SYS_CS4_MASK) && defined(CONFIG_SYS_CS4_CTRL))
        gpio->par_cs |= GPIO_PAR_CS_CS4;
-       fbcs->csar4 = CFG_CS4_BASE;
-       fbcs->cscr4 = CFG_CS4_CTRL;
-       fbcs->csmr4 = CFG_CS4_MASK;
+       fbcs->csar4 = CONFIG_SYS_CS4_BASE;
+       fbcs->cscr4 = CONFIG_SYS_CS4_CTRL;
+       fbcs->csmr4 = CONFIG_SYS_CS4_MASK;
 #endif
 
-#if (defined(CFG_CS5_BASE) && defined(CFG_CS5_MASK) && defined(CFG_CS5_CTRL))
+#if (defined(CONFIG_SYS_CS5_BASE) && defined(CONFIG_SYS_CS5_MASK) && defined(CONFIG_SYS_CS5_CTRL))
        gpio->par_cs |= GPIO_PAR_CS_CS5;
-       fbcs->csar5 = CFG_CS5_BASE;
-       fbcs->cscr5 = CFG_CS5_CTRL;
-       fbcs->csmr5 = CFG_CS5_MASK;
+       fbcs->csar5 = CONFIG_SYS_CS5_BASE;
+       fbcs->cscr5 = CONFIG_SYS_CS5_CTRL;
+       fbcs->csmr5 = CONFIG_SYS_CS5_MASK;
 #endif
 
-#if (defined(CFG_CS6_BASE) && defined(CFG_CS6_MASK) && defined(CFG_CS6_CTRL))
+#if (defined(CONFIG_SYS_CS6_BASE) && defined(CONFIG_SYS_CS6_MASK) && defined(CONFIG_SYS_CS6_CTRL))
        gpio->par_cs |= GPIO_PAR_CS_CS6;
-       fbcs->csar6 = CFG_CS6_BASE;
-       fbcs->cscr6 = CFG_CS6_CTRL;
-       fbcs->csmr6 = CFG_CS6_MASK;
+       fbcs->csar6 = CONFIG_SYS_CS6_BASE;
+       fbcs->cscr6 = CONFIG_SYS_CS6_CTRL;
+       fbcs->csmr6 = CONFIG_SYS_CS6_MASK;
 #endif
 
-#if (defined(CFG_CS7_BASE) && defined(CFG_CS7_MASK) && defined(CFG_CS7_CTRL))
+#if (defined(CONFIG_SYS_CS7_BASE) && defined(CONFIG_SYS_CS7_MASK) && defined(CONFIG_SYS_CS7_CTRL))
        gpio->par_cs |= GPIO_PAR_CS_CS7;
-       fbcs->csar7 = CFG_CS7_BASE;
-       fbcs->cscr7 = CFG_CS7_CTRL;
-       fbcs->csmr7 = CFG_CS7_MASK;
+       fbcs->csar7 = CONFIG_SYS_CS7_BASE;
+       fbcs->cscr7 = CONFIG_SYS_CS7_CTRL;
+       fbcs->csmr7 = CONFIG_SYS_CS7_MASK;
 #endif
 
 #ifdef CONFIG_FSL_I2C
-       CFG_I2C_PINMUX_REG &= CFG_I2C_PINMUX_CLR;
-       CFG_I2C_PINMUX_REG |= CFG_I2C_PINMUX_SET;
+       CONFIG_SYS_I2C_PINMUX_REG &= CONFIG_SYS_I2C_PINMUX_CLR;
+       CONFIG_SYS_I2C_PINMUX_REG |= CONFIG_SYS_I2C_PINMUX_SET;
 #endif
 
        icache_enable();
@@ -130,7 +130,7 @@ void uart_port_conf(void)
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                gpio->par_uart = (GPIO_PAR_UART_U0RXD | GPIO_PAR_UART_U0TXD);
                break;
index 125c53b1bcd93717d3a54dc10a20e53e0a311c82..db5ccdf6d3e7c58f8e1853b89dc15e5a1a7ed0fb 100644 (file)
@@ -28,7 +28,7 @@
 
 int interrupt_init(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
        /* Make sure all interrupts are disabled */
        intp->imrl0 |= 0x1;
@@ -40,10 +40,10 @@ int interrupt_init(void)
 #if defined(CONFIG_MCFTMR)
 void dtimer_intr_setup(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
-       intp->icr0[CFG_TMRINTR_NO] = CFG_TMRINTR_PRI;
+       intp->icr0[CONFIG_SYS_TMRINTR_NO] = CONFIG_SYS_TMRINTR_PRI;
        intp->imrl0 &= ~INTC_IPRL_INT0;
-       intp->imrl0 &= ~CFG_TMRINTR_MASK;
+       intp->imrl0 &= ~CONFIG_SYS_TMRINTR_MASK;
 }
 #endif
index 1bda2d482e6572695df033dbe33a206276fe9dd7..6096ba41444c410400be753aca3628bc2a955a8b 100644 (file)
@@ -42,7 +42,7 @@ int get_clocks(void)
 
        while (!(pll->synsr & PLL_SYNSR_LOCK));
 
-       gd->bus_clk = CFG_CLK;
+       gd->bus_clk = CONFIG_SYS_CLK;
        gd->cpu_clk = (gd->bus_clk * 2);
 
 #ifdef CONFIG_FSL_I2C
index 2b638dfef22267d4f7224ed45f6b26e0fd5a9e3d..b70b83b3375bfa6c3269e45342d7ac37c5917653 100644 (file)
@@ -127,10 +127,10 @@ _start:
        move.w #0x2700,%sr      /* Mask off Interrupt */
 
        /* Set vector base register at the beginning of the Flash */
-       move.l  #CFG_FLASH_BASE, %d0
+       move.l  #CONFIG_SYS_FLASH_BASE, %d0
        movec   %d0, %VBR
 
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_RAM_CTRL), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
        movec   %d0, %RAMBAR1
 
        /* invalidate and disable cache */
@@ -143,14 +143,14 @@ _start:
 
        /* initialize general use internal ram */
        move.l #0, %d0
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a2
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a2
        move.l %d0, (%a1)
        move.l %d0, (%a2)
 
        /* set stackpointer to end of internal ram to get some stackspace for the
           first c-code */
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET), %sp
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l %sp@-
 
        move.l #__got_start, %a5        /* put relocation table address to a5 */
@@ -181,7 +181,7 @@ relocate_code:
        move.l 12(%a6), %d0             /* Save copy of Global Data pointer */
        move.l 16(%a6), %a0             /* Save copy of Destination Address */
 
-       move.l #CFG_MONITOR_BASE, %a1
+       move.l #CONFIG_SYS_MONITOR_BASE, %a1
        move.l #__init_end, %a2
        move.l %a0, %a3
 
@@ -196,7 +196,7 @@ relocate_code:
  * initialization, now running from RAM.
  */
        move.l  %a0, %a1
-       add.l   #(in_ram - CFG_MONITOR_BASE), %a1
+       add.l   #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
        jmp     (%a1)
 
 in_ram:
@@ -206,9 +206,9 @@ clear_bss:
         * Now clear BSS segment
         */
        move.l  %a0, %a1
-       add.l   #(_sbss - CFG_MONITOR_BASE),%a1
+       add.l   #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a0, %d1
-       add.l   #(_ebss - CFG_MONITOR_BASE),%d1
+       add.l   #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
 6:
        clr.l   (%a1)+
        cmp.l   %a1,%d1
@@ -218,11 +218,11 @@ clear_bss:
         * fix got table in RAM
         */
        move.l  %a0, %a1
-       add.l   #(__got_start - CFG_MONITOR_BASE),%a1
+       add.l   #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a1,%a5         /* * fix got pointer register a5 */
 
        move.l  %a0, %a2
-       add.l   #(__got_end - CFG_MONITOR_BASE),%a2
+       add.l   #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
 
 7:
        move.l  (%a1),%d1
@@ -234,7 +234,7 @@ clear_bss:
 
        /* calculate relative jump to board_init_r in ram */
        move.l %a0, %a1
-       add.l #(board_init_r - CFG_MONITOR_BASE), %a1
+       add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
 
        /* set parameters for board_init_r */
        move.l %a0,-(%sp)               /* dest_addr */
@@ -270,16 +270,16 @@ icache_enable:
        move.l  #0x01000000, %d0                /* Invalidate cache cmd */
        movec   %d0, %CACR                      /* Invalidate cache */
        nop
-       move.l  #(CFG_SDRAM_BASE + 0xc000), %d0 /* Setup cache mask */
+       move.l  #(CONFIG_SYS_SDRAM_BASE + 0xc000), %d0  /* Setup cache mask */
        movec   %d0, %ACR0                      /* Enable cache */
-       move.l  #(CFG_FLASH_BASE + 0xc000), %d0 /* Setup cache mask */
+       move.l  #(CONFIG_SYS_FLASH_BASE + 0xc000), %d0  /* Setup cache mask */
        movec   %d0, %ACR1                      /* Enable cache */
 
        move.l  #0x80400100, %d0                /* Setup cache mask */
        movec   %d0, %CACR                      /* Enable cache */
        nop
 
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
        moveq   #1, %d0
        move.l  %d0, (%a1)
        rts
@@ -292,14 +292,14 @@ icache_disable:
        movec   %d0, %ACR0
        movec   %d0, %ACR1
 
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
        moveq   #0, %d0
        move.l  %d0, (%a1)
        rts
 
        .globl  icache_status
 icache_status:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
        move.l  (%a1), %d0
        rts
 
@@ -312,7 +312,7 @@ icache_invalid:
 
        .globl  dcache_enable
 dcache_enable:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a1
        moveq   #1, %d0
        move.l  %d0, (%a1)
        rts
@@ -320,14 +320,14 @@ dcache_enable:
     /* No dcache, just a dummy function */
        .globl  dcache_disable
 dcache_disable:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a1
        moveq   #0, %d0
        move.l  %d0, (%a1)
        rts
 
        .globl  dcache_status
 dcache_status:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a1
        move.l  (%a1), %d0
        rts
 
index c25670d412640e91274bd50607e5b00824075fe9..32d6c40da081620a8c58533da7ac1837c163ece1 100644 (file)
@@ -66,11 +66,11 @@ int checkcpu(void)
 
        if (cpu_model)
                printf("CPU:   Freescale ColdFire MCF%s rev. %hu, at %s MHz\n",
-                      cpu_model, prn, strmhz(buf, CFG_CLK));
+                      cpu_model, prn, strmhz(buf, CONFIG_SYS_CLK));
        else
                printf("CPU:   Unknown - Freescale ColdFire MCF5271 family"
                       " (PIN: 0x%x) rev. %hu, at %s MHz\n",
-                      pin, prn, strmhz(buf, CFG_CLK));
+                      pin, prn, strmhz(buf, CONFIG_SYS_CLK));
 
        return 0;
 }
@@ -174,7 +174,7 @@ int watchdog_init(void)
 
        /* set timeout and enable watchdog */
        wdt->wdog_wrrr =
-           ((CONFIG_WATCHDOG_TIMEOUT * CFG_HZ) / (32768 * 1000)) - 1;
+           ((CONFIG_WATCHDOG_TIMEOUT * CONFIG_SYS_HZ) / (32768 * 1000)) - 1;
        wdt->wdog_wcr = 0;      /* reset watchdog counter */
 
        puts("WATCHDOG:enabled\n");
@@ -202,7 +202,7 @@ int checkcpu(void)
        char buf[32];
 
        printf("CPU:   Freescale Coldfire MCF5275 at %s MHz\n",
-                       strmhz(buf, CFG_CLK));
+                       strmhz(buf, CONFIG_SYS_CLK));
        return 0;
 };
 
@@ -236,7 +236,7 @@ int watchdog_init(void)
 
        /* set timeout and enable watchdog */
        wdt->wmr =
-               ((CONFIG_WATCHDOG_TIMEOUT * CFG_HZ) / (32768 * 1000)) - 1;
+               ((CONFIG_WATCHDOG_TIMEOUT * CONFIG_SYS_HZ) / (32768 * 1000)) - 1;
        wdt->wsr = 0x5555; /* reset watchdog counter */
        wdt->wsr = 0xAAAA;
 
@@ -278,7 +278,7 @@ int checkcpu(void)
        char buf[32];
 
        printf("CPU:   Freescale Coldfire MCF5249 at %s MHz\n",
-              strmhz(buf, CFG_CLK));
+              strmhz(buf, CONFIG_SYS_CLK));
        return 0;
 }
 
@@ -300,7 +300,7 @@ int checkcpu(void)
 
        unsigned char resetsource = mbar_readLong(SIM_RSR);
        printf("CPU:   Freescale Coldfire MCF5253 at %s MHz\n",
-              strmhz(buf, CFG_CLK));
+              strmhz(buf, CONFIG_SYS_CLK));
 
        if ((resetsource & SIM_RSR_HRST) || (resetsource & SIM_RSR_SWTR)) {
                printf("Reset:%s%s\n",
index 68aefe9151b3032eaa851caf39875503a75d9e96..7bb358e63f5760e41a44a6b978d17f45bdc19df2 100644 (file)
@@ -72,20 +72,20 @@ void cpu_init_f(void)
         *  Setup chip selects...
         */
 
-       mbar_writeShort(MCFSIM_CSAR1, CFG_CSAR1);
-       mbar_writeShort(MCFSIM_CSCR1, CFG_CSCR1);
-       mbar_writeLong(MCFSIM_CSMR1, CFG_CSMR1);
+       mbar_writeShort(MCFSIM_CSAR1, CONFIG_SYS_CSAR1);
+       mbar_writeShort(MCFSIM_CSCR1, CONFIG_SYS_CSCR1);
+       mbar_writeLong(MCFSIM_CSMR1, CONFIG_SYS_CSMR1);
 
-       mbar_writeShort(MCFSIM_CSAR0, CFG_CSAR0);
-       mbar_writeShort(MCFSIM_CSCR0, CFG_CSCR0);
-       mbar_writeLong(MCFSIM_CSMR0, CFG_CSMR0);
+       mbar_writeShort(MCFSIM_CSAR0, CONFIG_SYS_CSAR0);
+       mbar_writeShort(MCFSIM_CSCR0, CONFIG_SYS_CSCR0);
+       mbar_writeLong(MCFSIM_CSMR0, CONFIG_SYS_CSMR0);
 
 #ifdef CONFIG_FSL_I2C
-       CFG_I2C_PINMUX_REG = CFG_I2C_PINMUX_REG & CFG_I2C_PINMUX_CLR;
-       CFG_I2C_PINMUX_REG |= CFG_I2C_PINMUX_SET;
-#ifdef CFG_I2C2_OFFSET
-       CFG_I2C2_PINMUX_REG &= CFG_I2C2_PINMUX_CLR;
-       CFG_I2C2_PINMUX_REG |= CFG_I2C2_PINMUX_SET;
+       CONFIG_SYS_I2C_PINMUX_REG = CONFIG_SYS_I2C_PINMUX_REG & CONFIG_SYS_I2C_PINMUX_CLR;
+       CONFIG_SYS_I2C_PINMUX_REG |= CONFIG_SYS_I2C_PINMUX_SET;
+#ifdef CONFIG_SYS_I2C2_OFFSET
+       CONFIG_SYS_I2C2_PINMUX_REG &= CONFIG_SYS_I2C2_PINMUX_CLR;
+       CONFIG_SYS_I2C2_PINMUX_REG |= CONFIG_SYS_I2C2_PINMUX_SET;
 #endif
 #endif
 
@@ -102,7 +102,7 @@ int cpu_init_r(void)
 void uart_port_conf(void)
 {
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                break;
        case 1:
@@ -138,7 +138,7 @@ int cpu_init_r(void)
 void uart_port_conf(void)
 {
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                mbar_writeShort(MCF_GPIO_PAR_UART, MCF_GPIO_PAR_UART_U0TXD |
                                MCF_GPIO_PAR_UART_U0RXD);
@@ -169,59 +169,59 @@ void cpu_init_f(void)
         * already initialized.
         */
 #ifndef CONFIG_MONITOR_IS_IN_RAM
-       volatile sysctrl_t *sysctrl = (sysctrl_t *) (CFG_MBAR);
+       volatile sysctrl_t *sysctrl = (sysctrl_t *) (CONFIG_SYS_MBAR);
        volatile gpio_t *gpio = (gpio_t *) (MMAP_GPIO);
        volatile csctrl_t *csctrl = (csctrl_t *) (MMAP_FBCS);
 
-       sysctrl->sc_scr = CFG_SCR;
-       sysctrl->sc_spr = CFG_SPR;
+       sysctrl->sc_scr = CONFIG_SYS_SCR;
+       sysctrl->sc_spr = CONFIG_SYS_SPR;
 
        /* Setup Ports: */
-       gpio->gpio_pacnt = CFG_PACNT;
-       gpio->gpio_paddr = CFG_PADDR;
-       gpio->gpio_padat = CFG_PADAT;
-       gpio->gpio_pbcnt = CFG_PBCNT;
-       gpio->gpio_pbddr = CFG_PBDDR;
-       gpio->gpio_pbdat = CFG_PBDAT;
-       gpio->gpio_pdcnt = CFG_PDCNT;
+       gpio->gpio_pacnt = CONFIG_SYS_PACNT;
+       gpio->gpio_paddr = CONFIG_SYS_PADDR;
+       gpio->gpio_padat = CONFIG_SYS_PADAT;
+       gpio->gpio_pbcnt = CONFIG_SYS_PBCNT;
+       gpio->gpio_pbddr = CONFIG_SYS_PBDDR;
+       gpio->gpio_pbdat = CONFIG_SYS_PBDAT;
+       gpio->gpio_pdcnt = CONFIG_SYS_PDCNT;
 
        /* Memory Controller: */
-       csctrl->cs_br0 = CFG_BR0_PRELIM;
-       csctrl->cs_or0 = CFG_OR0_PRELIM;
+       csctrl->cs_br0 = CONFIG_SYS_BR0_PRELIM;
+       csctrl->cs_or0 = CONFIG_SYS_OR0_PRELIM;
 
-#if (defined(CFG_OR1_PRELIM) && defined(CFG_BR1_PRELIM))
-       csctrl->cs_br1 = CFG_BR1_PRELIM;
-       csctrl->cs_or1 = CFG_OR1_PRELIM;
+#if (defined(CONFIG_SYS_OR1_PRELIM) && defined(CONFIG_SYS_BR1_PRELIM))
+       csctrl->cs_br1 = CONFIG_SYS_BR1_PRELIM;
+       csctrl->cs_or1 = CONFIG_SYS_OR1_PRELIM;
 #endif
 
-#if defined(CFG_OR2_PRELIM) && defined(CFG_BR2_PRELIM)
-       csctrl->cs_br2 = CFG_BR2_PRELIM;
-       csctrl->cs_or2 = CFG_OR2_PRELIM;
+#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
+       csctrl->cs_br2 = CONFIG_SYS_BR2_PRELIM;
+       csctrl->cs_or2 = CONFIG_SYS_OR2_PRELIM;
 #endif
 
-#if defined(CFG_OR3_PRELIM) && defined(CFG_BR3_PRELIM)
-       csctrl->cs_br3 = CFG_BR3_PRELIM;
-       csctrl->cs_or3 = CFG_OR3_PRELIM;
+#if defined(CONFIG_SYS_OR3_PRELIM) && defined(CONFIG_SYS_BR3_PRELIM)
+       csctrl->cs_br3 = CONFIG_SYS_BR3_PRELIM;
+       csctrl->cs_or3 = CONFIG_SYS_OR3_PRELIM;
 #endif
 
-#if defined(CFG_OR4_PRELIM) && defined(CFG_BR4_PRELIM)
-       csctrl->cs_br4 = CFG_BR4_PRELIM;
-       csctrl->cs_or4 = CFG_OR4_PRELIM;
+#if defined(CONFIG_SYS_OR4_PRELIM) && defined(CONFIG_SYS_BR4_PRELIM)
+       csctrl->cs_br4 = CONFIG_SYS_BR4_PRELIM;
+       csctrl->cs_or4 = CONFIG_SYS_OR4_PRELIM;
 #endif
 
-#if defined(CFG_OR5_PRELIM) && defined(CFG_BR5_PRELIM)
-       csctrl->cs_br5 = CFG_BR5_PRELIM;
-       csctrl->cs_or5 = CFG_OR5_PRELIM;
+#if defined(CONFIG_SYS_OR5_PRELIM) && defined(CONFIG_SYS_BR5_PRELIM)
+       csctrl->cs_br5 = CONFIG_SYS_BR5_PRELIM;
+       csctrl->cs_or5 = CONFIG_SYS_OR5_PRELIM;
 #endif
 
-#if defined(CFG_OR6_PRELIM) && defined(CFG_BR6_PRELIM)
-       csctrl->cs_br6 = CFG_BR6_PRELIM;
-       csctrl->cs_or6 = CFG_OR6_PRELIM;
+#if defined(CONFIG_SYS_OR6_PRELIM) && defined(CONFIG_SYS_BR6_PRELIM)
+       csctrl->cs_br6 = CONFIG_SYS_BR6_PRELIM;
+       csctrl->cs_or6 = CONFIG_SYS_OR6_PRELIM;
 #endif
 
-#if defined(CFG_OR7_PRELIM) && defined(CFG_BR7_PRELIM)
-       csctrl->cs_br7 = CFG_BR7_PRELIM;
-       csctrl->cs_or7 = CFG_OR7_PRELIM;
+#if defined(CONFIG_SYS_OR7_PRELIM) && defined(CONFIG_SYS_BR7_PRELIM)
+       csctrl->cs_br7 = CONFIG_SYS_BR7_PRELIM;
+       csctrl->cs_or7 = CONFIG_SYS_OR7_PRELIM;
 #endif
 
 #endif                         /* #ifndef CONFIG_MONITOR_IS_IN_RAM */
@@ -244,7 +244,7 @@ void uart_port_conf(void)
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                gpio->gpio_pbcnt &= ~(GPIO_PBCNT_PB0MSK | GPIO_PBCNT_PB1MSK);
                gpio->gpio_pbcnt |= (GPIO_PBCNT_URT0_TXD | GPIO_PBCNT_URT0_RXD);
@@ -282,57 +282,57 @@ void cpu_init_f(void)
 
        /* Memory Controller: */
        /* Flash */
-       csctrl_reg->ar0 = CFG_AR0_PRELIM;
-       csctrl_reg->cr0 = CFG_CR0_PRELIM;
-       csctrl_reg->mr0 = CFG_MR0_PRELIM;
+       csctrl_reg->ar0 = CONFIG_SYS_AR0_PRELIM;
+       csctrl_reg->cr0 = CONFIG_SYS_CR0_PRELIM;
+       csctrl_reg->mr0 = CONFIG_SYS_MR0_PRELIM;
 
-#if (defined(CFG_AR1_PRELIM) && defined(CFG_CR1_PRELIM) && defined(CFG_MR1_PRELIM))
-       csctrl_reg->ar1 = CFG_AR1_PRELIM;
-       csctrl_reg->cr1 = CFG_CR1_PRELIM;
-       csctrl_reg->mr1 = CFG_MR1_PRELIM;
+#if (defined(CONFIG_SYS_AR1_PRELIM) && defined(CONFIG_SYS_CR1_PRELIM) && defined(CONFIG_SYS_MR1_PRELIM))
+       csctrl_reg->ar1 = CONFIG_SYS_AR1_PRELIM;
+       csctrl_reg->cr1 = CONFIG_SYS_CR1_PRELIM;
+       csctrl_reg->mr1 = CONFIG_SYS_MR1_PRELIM;
 #endif
 
-#if (defined(CFG_AR2_PRELIM) && defined(CFG_CR2_PRELIM) && defined(CFG_MR2_PRELIM))
-       csctrl_reg->ar2 = CFG_AR2_PRELIM;
-       csctrl_reg->cr2 = CFG_CR2_PRELIM;
-       csctrl_reg->mr2 = CFG_MR2_PRELIM;
+#if (defined(CONFIG_SYS_AR2_PRELIM) && defined(CONFIG_SYS_CR2_PRELIM) && defined(CONFIG_SYS_MR2_PRELIM))
+       csctrl_reg->ar2 = CONFIG_SYS_AR2_PRELIM;
+       csctrl_reg->cr2 = CONFIG_SYS_CR2_PRELIM;
+       csctrl_reg->mr2 = CONFIG_SYS_MR2_PRELIM;
 #endif
 
-#if (defined(CFG_AR3_PRELIM) && defined(CFG_CR3_PRELIM) && defined(CFG_MR3_PRELIM))
-       csctrl_reg->ar3 = CFG_AR3_PRELIM;
-       csctrl_reg->cr3 = CFG_CR3_PRELIM;
-       csctrl_reg->mr3 = CFG_MR3_PRELIM;
+#if (defined(CONFIG_SYS_AR3_PRELIM) && defined(CONFIG_SYS_CR3_PRELIM) && defined(CONFIG_SYS_MR3_PRELIM))
+       csctrl_reg->ar3 = CONFIG_SYS_AR3_PRELIM;
+       csctrl_reg->cr3 = CONFIG_SYS_CR3_PRELIM;
+       csctrl_reg->mr3 = CONFIG_SYS_MR3_PRELIM;
 #endif
 
-#if (defined(CFG_AR4_PRELIM) && defined(CFG_CR4_PRELIM) && defined(CFG_MR4_PRELIM))
-       csctrl_reg->ar4 = CFG_AR4_PRELIM;
-       csctrl_reg->cr4 = CFG_CR4_PRELIM;
-       csctrl_reg->mr4 = CFG_MR4_PRELIM;
+#if (defined(CONFIG_SYS_AR4_PRELIM) && defined(CONFIG_SYS_CR4_PRELIM) && defined(CONFIG_SYS_MR4_PRELIM))
+       csctrl_reg->ar4 = CONFIG_SYS_AR4_PRELIM;
+       csctrl_reg->cr4 = CONFIG_SYS_CR4_PRELIM;
+       csctrl_reg->mr4 = CONFIG_SYS_MR4_PRELIM;
 #endif
 
-#if (defined(CFG_AR5_PRELIM) && defined(CFG_CR5_PRELIM) && defined(CFG_MR5_PRELIM))
-       csctrl_reg->ar5 = CFG_AR5_PRELIM;
-       csctrl_reg->cr5 = CFG_CR5_PRELIM;
-       csctrl_reg->mr5 = CFG_MR5_PRELIM;
+#if (defined(CONFIG_SYS_AR5_PRELIM) && defined(CONFIG_SYS_CR5_PRELIM) && defined(CONFIG_SYS_MR5_PRELIM))
+       csctrl_reg->ar5 = CONFIG_SYS_AR5_PRELIM;
+       csctrl_reg->cr5 = CONFIG_SYS_CR5_PRELIM;
+       csctrl_reg->mr5 = CONFIG_SYS_MR5_PRELIM;
 #endif
 
-#if (defined(CFG_AR6_PRELIM) && defined(CFG_CR6_PRELIM) && defined(CFG_MR6_PRELIM))
-       csctrl_reg->ar6 = CFG_AR6_PRELIM;
-       csctrl_reg->cr6 = CFG_CR6_PRELIM;
-       csctrl_reg->mr6 = CFG_MR6_PRELIM;
+#if (defined(CONFIG_SYS_AR6_PRELIM) && defined(CONFIG_SYS_CR6_PRELIM) && defined(CONFIG_SYS_MR6_PRELIM))
+       csctrl_reg->ar6 = CONFIG_SYS_AR6_PRELIM;
+       csctrl_reg->cr6 = CONFIG_SYS_CR6_PRELIM;
+       csctrl_reg->mr6 = CONFIG_SYS_MR6_PRELIM;
 #endif
 
-#if (defined(CFG_AR7_PRELIM) && defined(CFG_CR7_PRELIM) && defined(CFG_MR7_PRELIM))
-       csctrl_reg->ar7 = CFG_AR7_PRELIM;
-       csctrl_reg->cr7 = CFG_CR7_PRELIM;
-       csctrl_reg->mr7 = CFG_MR7_PRELIM;
+#if (defined(CONFIG_SYS_AR7_PRELIM) && defined(CONFIG_SYS_CR7_PRELIM) && defined(CONFIG_SYS_MR7_PRELIM))
+       csctrl_reg->ar7 = CONFIG_SYS_AR7_PRELIM;
+       csctrl_reg->cr7 = CONFIG_SYS_CR7_PRELIM;
+       csctrl_reg->mr7 = CONFIG_SYS_MR7_PRELIM;
 #endif
 
 #endif                         /* #ifndef CONFIG_MONITOR_IS_IN_RAM */
 
 #ifdef CONFIG_FSL_I2C
-       CFG_I2C_PINMUX_REG &= CFG_I2C_PINMUX_CLR;
-       CFG_I2C_PINMUX_REG |= CFG_I2C_PINMUX_SET;
+       CONFIG_SYS_I2C_PINMUX_REG &= CONFIG_SYS_I2C_PINMUX_CLR;
+       CONFIG_SYS_I2C_PINMUX_REG |= CONFIG_SYS_I2C_PINMUX_SET;
 #endif
 
        /* enable instruction cache now */
@@ -352,7 +352,7 @@ void uart_port_conf(void)
        volatile gpio_t *gpio = (gpio_t *)MMAP_GPIO;
 
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                gpio->par_uart |= UART0_ENABLE_MASK;
                break;
@@ -384,155 +384,155 @@ void cpu_init_f(void)
 #ifndef CONFIG_MONITOR_IS_IN_RAM
        /* Set speed /PLL */
        MCFCLOCK_SYNCR =
-           MCFCLOCK_SYNCR_MFD(CFG_MFD) | MCFCLOCK_SYNCR_RFD(CFG_RFD);
+           MCFCLOCK_SYNCR_MFD(CONFIG_SYS_MFD) | MCFCLOCK_SYNCR_RFD(CONFIG_SYS_RFD);
        while (!(MCFCLOCK_SYNSR & MCFCLOCK_SYNSR_LOCK)) ;
 
        MCFGPIO_PBCDPAR = 0xc0;
 
        /* Set up the GPIO ports */
-#ifdef CFG_PEPAR
-       MCFGPIO_PEPAR = CFG_PEPAR;
+#ifdef CONFIG_SYS_PEPAR
+       MCFGPIO_PEPAR = CONFIG_SYS_PEPAR;
 #endif
-#ifdef CFG_PFPAR
-       MCFGPIO_PFPAR = CFG_PFPAR;
+#ifdef CONFIG_SYS_PFPAR
+       MCFGPIO_PFPAR = CONFIG_SYS_PFPAR;
 #endif
-#ifdef CFG_PJPAR
-       MCFGPIO_PJPAR = CFG_PJPAR;
+#ifdef CONFIG_SYS_PJPAR
+       MCFGPIO_PJPAR = CONFIG_SYS_PJPAR;
 #endif
-#ifdef CFG_PSDPAR
-       MCFGPIO_PSDPAR = CFG_PSDPAR;
+#ifdef CONFIG_SYS_PSDPAR
+       MCFGPIO_PSDPAR = CONFIG_SYS_PSDPAR;
 #endif
-#ifdef CFG_PASPAR
-       MCFGPIO_PASPAR = CFG_PASPAR;
+#ifdef CONFIG_SYS_PASPAR
+       MCFGPIO_PASPAR = CONFIG_SYS_PASPAR;
 #endif
-#ifdef CFG_PEHLPAR
-       MCFGPIO_PEHLPAR = CFG_PEHLPAR;
+#ifdef CONFIG_SYS_PEHLPAR
+       MCFGPIO_PEHLPAR = CONFIG_SYS_PEHLPAR;
 #endif
-#ifdef CFG_PQSPAR
-       MCFGPIO_PQSPAR = CFG_PQSPAR;
+#ifdef CONFIG_SYS_PQSPAR
+       MCFGPIO_PQSPAR = CONFIG_SYS_PQSPAR;
 #endif
-#ifdef CFG_PTCPAR
-       MCFGPIO_PTCPAR = CFG_PTCPAR;
+#ifdef CONFIG_SYS_PTCPAR
+       MCFGPIO_PTCPAR = CONFIG_SYS_PTCPAR;
 #endif
-#ifdef CFG_PTDPAR
-       MCFGPIO_PTDPAR = CFG_PTDPAR;
+#ifdef CONFIG_SYS_PTDPAR
+       MCFGPIO_PTDPAR = CONFIG_SYS_PTDPAR;
 #endif
-#ifdef CFG_PUAPAR
-       MCFGPIO_PUAPAR = CFG_PUAPAR;
+#ifdef CONFIG_SYS_PUAPAR
+       MCFGPIO_PUAPAR = CONFIG_SYS_PUAPAR;
 #endif
 
-#ifdef CFG_DDRUA
-       MCFGPIO_DDRUA = CFG_DDRUA;
+#ifdef CONFIG_SYS_DDRUA
+       MCFGPIO_DDRUA = CONFIG_SYS_DDRUA;
 #endif
 
        /* This is probably a bad place to setup chip selects, but everyone
           else is doing it! */
 
-#if defined(CFG_CS0_BASE) & defined(CFG_CS0_SIZE) & \
-    defined(CFG_CS0_WIDTH) & defined(CFG_CS0_WS)
+#if defined(CONFIG_SYS_CS0_BASE) & defined(CONFIG_SYS_CS0_SIZE) & \
+    defined(CONFIG_SYS_CS0_WIDTH) & defined(CONFIG_SYS_CS0_WS)
 
-       MCFCSM_CSAR0 = (CFG_CS0_BASE >> 16) & 0xFFFF;
+       MCFCSM_CSAR0 = (CONFIG_SYS_CS0_BASE >> 16) & 0xFFFF;
 
-#if (CFG_CS0_WIDTH == 8)
-#define         CFG_CS0_PS  MCFCSM_CSCR_PS_8
-#elif (CFG_CS0_WIDTH == 16)
-#define         CFG_CS0_PS  MCFCSM_CSCR_PS_16
-#elif (CFG_CS0_WIDTH == 32)
-#define         CFG_CS0_PS  MCFCSM_CSCR_PS_32
+#if (CONFIG_SYS_CS0_WIDTH == 8)
+#define         CONFIG_SYS_CS0_PS  MCFCSM_CSCR_PS_8
+#elif (CONFIG_SYS_CS0_WIDTH == 16)
+#define         CONFIG_SYS_CS0_PS  MCFCSM_CSCR_PS_16
+#elif (CONFIG_SYS_CS0_WIDTH == 32)
+#define         CONFIG_SYS_CS0_PS  MCFCSM_CSCR_PS_32
 #else
-#error "CFG_CS0_WIDTH: Fault - wrong bus with for CS0"
+#error "CONFIG_SYS_CS0_WIDTH: Fault - wrong bus with for CS0"
 #endif
-       MCFCSM_CSCR0 = MCFCSM_CSCR_WS(CFG_CS0_WS)
-           | CFG_CS0_PS | MCFCSM_CSCR_AA;
+       MCFCSM_CSCR0 = MCFCSM_CSCR_WS(CONFIG_SYS_CS0_WS)
+           | CONFIG_SYS_CS0_PS | MCFCSM_CSCR_AA;
 
-#if (CFG_CS0_RO != 0)
-       MCFCSM_CSMR0 = MCFCSM_CSMR_BAM(CFG_CS0_SIZE - 1)
+#if (CONFIG_SYS_CS0_RO != 0)
+       MCFCSM_CSMR0 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS0_SIZE - 1)
            | MCFCSM_CSMR_WP | MCFCSM_CSMR_V;
 #else
-       MCFCSM_CSMR0 = MCFCSM_CSMR_BAM(CFG_CS0_SIZE - 1) | MCFCSM_CSMR_V;
+       MCFCSM_CSMR0 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS0_SIZE - 1) | MCFCSM_CSMR_V;
 #endif
 #else
 #warning "Chip Select 0 are not initialized/used"
 #endif
 
-#if defined(CFG_CS1_BASE) & defined(CFG_CS1_SIZE) & \
-    defined(CFG_CS1_WIDTH) & defined(CFG_CS1_WS)
+#if defined(CONFIG_SYS_CS1_BASE) & defined(CONFIG_SYS_CS1_SIZE) & \
+    defined(CONFIG_SYS_CS1_WIDTH) & defined(CONFIG_SYS_CS1_WS)
 
-       MCFCSM_CSAR1 = (CFG_CS1_BASE >> 16) & 0xFFFF;
+       MCFCSM_CSAR1 = (CONFIG_SYS_CS1_BASE >> 16) & 0xFFFF;
 
-#if (CFG_CS1_WIDTH == 8)
-#define         CFG_CS1_PS  MCFCSM_CSCR_PS_8
-#elif (CFG_CS1_WIDTH == 16)
-#define         CFG_CS1_PS  MCFCSM_CSCR_PS_16
-#elif (CFG_CS1_WIDTH == 32)
-#define         CFG_CS1_PS  MCFCSM_CSCR_PS_32
+#if (CONFIG_SYS_CS1_WIDTH == 8)
+#define         CONFIG_SYS_CS1_PS  MCFCSM_CSCR_PS_8
+#elif (CONFIG_SYS_CS1_WIDTH == 16)
+#define         CONFIG_SYS_CS1_PS  MCFCSM_CSCR_PS_16
+#elif (CONFIG_SYS_CS1_WIDTH == 32)
+#define         CONFIG_SYS_CS1_PS  MCFCSM_CSCR_PS_32
 #else
-#error "CFG_CS1_WIDTH: Fault - wrong bus with for CS1"
+#error "CONFIG_SYS_CS1_WIDTH: Fault - wrong bus with for CS1"
 #endif
-       MCFCSM_CSCR1 = MCFCSM_CSCR_WS(CFG_CS1_WS)
-           | CFG_CS1_PS | MCFCSM_CSCR_AA;
+       MCFCSM_CSCR1 = MCFCSM_CSCR_WS(CONFIG_SYS_CS1_WS)
+           | CONFIG_SYS_CS1_PS | MCFCSM_CSCR_AA;
 
-#if (CFG_CS1_RO != 0)
-       MCFCSM_CSMR1 = MCFCSM_CSMR_BAM(CFG_CS1_SIZE - 1)
+#if (CONFIG_SYS_CS1_RO != 0)
+       MCFCSM_CSMR1 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS1_SIZE - 1)
            | MCFCSM_CSMR_WP | MCFCSM_CSMR_V;
 #else
-       MCFCSM_CSMR1 = MCFCSM_CSMR_BAM(CFG_CS1_SIZE - 1)
+       MCFCSM_CSMR1 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS1_SIZE - 1)
            | MCFCSM_CSMR_V;
 #endif
 #else
 #warning "Chip Select 1 are not initialized/used"
 #endif
 
-#if defined(CFG_CS2_BASE) & defined(CFG_CS2_SIZE) & \
-    defined(CFG_CS2_WIDTH) & defined(CFG_CS2_WS)
+#if defined(CONFIG_SYS_CS2_BASE) & defined(CONFIG_SYS_CS2_SIZE) & \
+    defined(CONFIG_SYS_CS2_WIDTH) & defined(CONFIG_SYS_CS2_WS)
 
-       MCFCSM_CSAR2 = (CFG_CS2_BASE >> 16) & 0xFFFF;
+       MCFCSM_CSAR2 = (CONFIG_SYS_CS2_BASE >> 16) & 0xFFFF;
 
-#if (CFG_CS2_WIDTH == 8)
-#define         CFG_CS2_PS  MCFCSM_CSCR_PS_8
-#elif (CFG_CS2_WIDTH == 16)
-#define         CFG_CS2_PS  MCFCSM_CSCR_PS_16
-#elif (CFG_CS2_WIDTH == 32)
-#define         CFG_CS2_PS  MCFCSM_CSCR_PS_32
+#if (CONFIG_SYS_CS2_WIDTH == 8)
+#define         CONFIG_SYS_CS2_PS  MCFCSM_CSCR_PS_8
+#elif (CONFIG_SYS_CS2_WIDTH == 16)
+#define         CONFIG_SYS_CS2_PS  MCFCSM_CSCR_PS_16
+#elif (CONFIG_SYS_CS2_WIDTH == 32)
+#define         CONFIG_SYS_CS2_PS  MCFCSM_CSCR_PS_32
 #else
-#error "CFG_CS2_WIDTH: Fault - wrong bus with for CS2"
+#error "CONFIG_SYS_CS2_WIDTH: Fault - wrong bus with for CS2"
 #endif
-       MCFCSM_CSCR2 = MCFCSM_CSCR_WS(CFG_CS2_WS)
-           | CFG_CS2_PS | MCFCSM_CSCR_AA;
+       MCFCSM_CSCR2 = MCFCSM_CSCR_WS(CONFIG_SYS_CS2_WS)
+           | CONFIG_SYS_CS2_PS | MCFCSM_CSCR_AA;
 
-#if (CFG_CS2_RO != 0)
-       MCFCSM_CSMR2 = MCFCSM_CSMR_BAM(CFG_CS2_SIZE - 1)
+#if (CONFIG_SYS_CS2_RO != 0)
+       MCFCSM_CSMR2 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS2_SIZE - 1)
            | MCFCSM_CSMR_WP | MCFCSM_CSMR_V;
 #else
-       MCFCSM_CSMR2 = MCFCSM_CSMR_BAM(CFG_CS2_SIZE - 1)
+       MCFCSM_CSMR2 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS2_SIZE - 1)
            | MCFCSM_CSMR_V;
 #endif
 #else
 #warning "Chip Select 2 are not initialized/used"
 #endif
 
-#if defined(CFG_CS3_BASE) & defined(CFG_CS3_SIZE) & \
-    defined(CFG_CS3_WIDTH) & defined(CFG_CS3_WS)
+#if defined(CONFIG_SYS_CS3_BASE) & defined(CONFIG_SYS_CS3_SIZE) & \
+    defined(CONFIG_SYS_CS3_WIDTH) & defined(CONFIG_SYS_CS3_WS)
 
-       MCFCSM_CSAR3 = (CFG_CS3_BASE >> 16) & 0xFFFF;
+       MCFCSM_CSAR3 = (CONFIG_SYS_CS3_BASE >> 16) & 0xFFFF;
 
-#if (CFG_CS3_WIDTH == 8)
-#define         CFG_CS3_PS  MCFCSM_CSCR_PS_8
-#elif (CFG_CS3_WIDTH == 16)
-#define         CFG_CS3_PS  MCFCSM_CSCR_PS_16
-#elif (CFG_CS3_WIDTH == 32)
-#define         CFG_CS3_PS  MCFCSM_CSCR_PS_32
+#if (CONFIG_SYS_CS3_WIDTH == 8)
+#define         CONFIG_SYS_CS3_PS  MCFCSM_CSCR_PS_8
+#elif (CONFIG_SYS_CS3_WIDTH == 16)
+#define         CONFIG_SYS_CS3_PS  MCFCSM_CSCR_PS_16
+#elif (CONFIG_SYS_CS3_WIDTH == 32)
+#define         CONFIG_SYS_CS3_PS  MCFCSM_CSCR_PS_32
 #else
-#error "CFG_CS3_WIDTH: Fault - wrong bus with for CS1"
+#error "CONFIG_SYS_CS3_WIDTH: Fault - wrong bus with for CS1"
 #endif
-       MCFCSM_CSCR3 = MCFCSM_CSCR_WS(CFG_CS3_WS)
-           | CFG_CS3_PS | MCFCSM_CSCR_AA;
+       MCFCSM_CSCR3 = MCFCSM_CSCR_WS(CONFIG_SYS_CS3_WS)
+           | CONFIG_SYS_CS3_PS | MCFCSM_CSCR_AA;
 
-#if (CFG_CS3_RO != 0)
-       MCFCSM_CSMR3 = MCFCSM_CSMR_BAM(CFG_CS3_SIZE - 1)
+#if (CONFIG_SYS_CS3_RO != 0)
+       MCFCSM_CSMR3 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS3_SIZE - 1)
            | MCFCSM_CSMR_WP | MCFCSM_CSMR_V;
 #else
-       MCFCSM_CSMR3 = MCFCSM_CSMR_BAM(CFG_CS3_SIZE - 1)
+       MCFCSM_CSMR3 = MCFCSM_CSMR_BAM(CONFIG_SYS_CS3_SIZE - 1)
            | MCFCSM_CSMR_V;
 #endif
 #else
@@ -556,7 +556,7 @@ int cpu_init_r(void)
 void uart_port_conf(void)
 {
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                MCFGPIO_PUAPAR &= 0xFc;
                MCFGPIO_PUAPAR |= 0x03;
@@ -589,12 +589,12 @@ void cpu_init_f(void)
         *        which is their primary function.
         *        ~Jeremy
         */
-       mbar2_writeLong(MCFSIM_GPIO_FUNC, CFG_GPIO_FUNC);
-       mbar2_writeLong(MCFSIM_GPIO1_FUNC, CFG_GPIO1_FUNC);
-       mbar2_writeLong(MCFSIM_GPIO_EN, CFG_GPIO_EN);
-       mbar2_writeLong(MCFSIM_GPIO1_EN, CFG_GPIO1_EN);
-       mbar2_writeLong(MCFSIM_GPIO_OUT, CFG_GPIO_OUT);
-       mbar2_writeLong(MCFSIM_GPIO1_OUT, CFG_GPIO1_OUT);
+       mbar2_writeLong(MCFSIM_GPIO_FUNC, CONFIG_SYS_GPIO_FUNC);
+       mbar2_writeLong(MCFSIM_GPIO1_FUNC, CONFIG_SYS_GPIO1_FUNC);
+       mbar2_writeLong(MCFSIM_GPIO_EN, CONFIG_SYS_GPIO_EN);
+       mbar2_writeLong(MCFSIM_GPIO1_EN, CONFIG_SYS_GPIO1_EN);
+       mbar2_writeLong(MCFSIM_GPIO_OUT, CONFIG_SYS_GPIO_OUT);
+       mbar2_writeLong(MCFSIM_GPIO1_OUT, CONFIG_SYS_GPIO1_OUT);
 
        /*
         *  dBug Compliance:
@@ -636,13 +636,13 @@ void cpu_init_f(void)
         *  Setup chip selects...
         */
 
-       mbar_writeShort(MCFSIM_CSAR1, CFG_CSAR1);
-       mbar_writeShort(MCFSIM_CSCR1, CFG_CSCR1);
-       mbar_writeLong(MCFSIM_CSMR1, CFG_CSMR1);
+       mbar_writeShort(MCFSIM_CSAR1, CONFIG_SYS_CSAR1);
+       mbar_writeShort(MCFSIM_CSCR1, CONFIG_SYS_CSCR1);
+       mbar_writeLong(MCFSIM_CSMR1, CONFIG_SYS_CSMR1);
 
-       mbar_writeShort(MCFSIM_CSAR0, CFG_CSAR0);
-       mbar_writeShort(MCFSIM_CSCR0, CFG_CSCR0);
-       mbar_writeLong(MCFSIM_CSMR0, CFG_CSMR0);
+       mbar_writeShort(MCFSIM_CSAR0, CONFIG_SYS_CSAR0);
+       mbar_writeShort(MCFSIM_CSCR0, CONFIG_SYS_CSCR0);
+       mbar_writeLong(MCFSIM_CSMR0, CONFIG_SYS_CSMR0);
 
        /* enable instruction cache now */
        icache_enable();
@@ -659,7 +659,7 @@ int cpu_init_r(void)
 void uart_port_conf(void)
 {
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                break;
        case 1:
index b8fb7bb0eecd710afb7fcae0bfa918495ce52876..0181e4b416cb74005058571fac000f2c4c113d95 100644 (file)
@@ -51,10 +51,10 @@ int interrupt_init(void)
 #if defined(CONFIG_MCFTMR)
 void dtimer_intr_setup(void)
 {
-       volatile intctrl_t *intp = (intctrl_t *) (CFG_INTR_BASE);
+       volatile intctrl_t *intp = (intctrl_t *) (CONFIG_SYS_INTR_BASE);
 
        intp->int_icr1 &= ~INT_ICR1_TMR3MASK;
-       intp->int_icr1 |= CFG_TMRINTR_PRI;
+       intp->int_icr1 |= CONFIG_SYS_TMRINTR_PRI;
 }
 #endif                         /* CONFIG_MCFTMR */
 #endif                         /* CONFIG_M5272 */
@@ -62,7 +62,7 @@ void dtimer_intr_setup(void)
 #if defined(CONFIG_M5282) || defined(CONFIG_M5271) || defined(CONFIG_M5275)
 int interrupt_init(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
        /* Make sure all interrupts are disabled */
        intp->imrl0 |= 0x1;
@@ -74,11 +74,11 @@ int interrupt_init(void)
 #if defined(CONFIG_MCFTMR)
 void dtimer_intr_setup(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
-       intp->icr0[CFG_TMRINTR_NO] = CFG_TMRINTR_PRI;
+       intp->icr0[CONFIG_SYS_TMRINTR_NO] = CONFIG_SYS_TMRINTR_PRI;
        intp->imrl0 &= 0xFFFFFFFE;
-       intp->imrl0 &= ~CFG_TMRINTR_MASK;
+       intp->imrl0 &= ~CONFIG_SYS_TMRINTR_MASK;
 }
 #endif                         /* CONFIG_MCFTMR */
 #endif                         /* CONFIG_M5282 | CONFIG_M5271 | CONFIG_M5275 */
@@ -95,7 +95,7 @@ int interrupt_init(void)
 void dtimer_intr_setup(void)
 {
        mbar_writeLong(MCFSIM_IMR, mbar_readLong(MCFSIM_IMR) & ~0x00000400);
-       mbar_writeByte(MCFSIM_TIMER2ICR, CFG_TMRINTR_PRI);
+       mbar_writeByte(MCFSIM_TIMER2ICR, CONFIG_SYS_TMRINTR_PRI);
 }
 #endif                         /* CONFIG_MCFTMR */
 #endif                         /* CONFIG_M5249 || CONFIG_M5253 */
index 4cb8f9300d9c8e97435e052cc7762781b9036deb..fe51fb480352751db237547a782a8efa2182f19a 100644 (file)
@@ -39,11 +39,11 @@ int get_clocks (void)
        volatile unsigned long cpll = mbar2_readLong(MCFSIM_PLLCR);
        unsigned long pllcr;
 
-#ifndef CFG_PLL_BYPASS
+#ifndef CONFIG_SYS_PLL_BYPASS
 
 #ifdef CONFIG_M5249
        /* Setup the PLL to run at the specified speed */
-#ifdef CFG_FAST_CLK
+#ifdef CONFIG_SYS_FAST_CLK
        pllcr = 0x925a3100;     /* ~140MHz clock (PLL bypass = 0) */
 #else
        pllcr = 0x135a4140;     /* ~72MHz clock (PLL bypass = 0) */
@@ -51,7 +51,7 @@ int get_clocks (void)
 #endif                         /* CONFIG_M5249 */
 
 #ifdef CONFIG_M5253
-       pllcr = CFG_PLLCR;
+       pllcr = CONFIG_SYS_PLLCR;
 #endif                         /* CONFIG_M5253 */
 
        cpll = cpll & 0xfffffffe;       /* Set PLL bypass mode = 0 (PSTCLK = crystal) */
@@ -60,7 +60,7 @@ int get_clocks (void)
        pllcr ^= 0x00000001;    /* Set pll bypass to 1 */
        mbar2_writeLong(MCFSIM_PLLCR, pllcr);   /* Start locking (pll bypass = 1) */
        udelay(0x20);           /* Wait for a lock ... */
-#endif                         /* #ifndef CFG_PLL_BYPASS */
+#endif                         /* #ifndef CONFIG_SYS_PLL_BYPASS */
 
 #endif                         /* CONFIG_M5249 || CONFIG_M5253 */
 
@@ -76,7 +76,7 @@ int get_clocks (void)
                ;
 #endif
 
-       gd->cpu_clk = CFG_CLK;
+       gd->cpu_clk = CONFIG_SYS_CLK;
 #if defined(CONFIG_M5249) || defined(CONFIG_M5253) || defined(CONFIG_M5275)
        gd->bus_clk = gd->cpu_clk / 2;
 #else
@@ -85,7 +85,7 @@ int get_clocks (void)
 
 #ifdef CONFIG_FSL_I2C
        gd->i2c1_clk = gd->bus_clk;
-#ifdef CFG_I2C2_OFFSET
+#ifdef CONFIG_SYS_I2C2_OFFSET
        gd->i2c2_clk = gd->bus_clk;
 #endif
 #endif
index 2e8ecfbe68c0985426ca9f25a7e6733251cb94c3..da45bcbbf7052d66a48e1dc74132355466fea17c 100644 (file)
@@ -56,7 +56,7 @@
 _vectors:
 
 .long  0x00000000              /* Flash offset is 0 until we setup CS0 */
-#if defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE)
+#if defined(CONFIG_M5282) && (TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
 .long  _start - TEXT_BASE
 #else
 .long  _START
@@ -103,9 +103,9 @@ _vectors:
        .text
 
 
-#if defined(CFG_INT_FLASH_BASE) && \
+#if defined(CONFIG_SYS_INT_FLASH_BASE) && \
     (defined(CONFIG_M5282) || defined(CONFIG_M5281))
-       #if (TEXT_BASE == CFG_INT_FLASH_BASE)
+       #if (TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
                .long   0x55AA55AA,0xAA55AA55 /* CFM Backdoorkey */
                .long   0xFFFFFFFF /* all sectors protected */
                .long   0x00000000 /* supervisor/User restriction */
@@ -120,44 +120,44 @@ _start:
        move.w #0x2700,%sr
 
 #if defined(CONFIG_M5272) || defined(CONFIG_M5249) || defined(CONFIG_M5253)
-       move.l  #(CFG_MBAR + 1), %d0            /* set MBAR address + valid flag */
+       move.l  #(CONFIG_SYS_MBAR + 1), %d0             /* set MBAR address + valid flag */
        move.c  %d0, %MBAR
 
        /*** The 5249 has MBAR2 as well ***/
-#ifdef CFG_MBAR2
-       move.l  #(CFG_MBAR2 + 1), %d0           /* Get MBAR2 address */
+#ifdef CONFIG_SYS_MBAR2
+       move.l  #(CONFIG_SYS_MBAR2 + 1), %d0            /* Get MBAR2 address */
        movec   %d0, #0xc0e                     /* Set MBAR2 */
 #endif
 
-       move.l  #(CFG_INIT_RAM_ADDR + 1), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + 1), %d0
        movec   %d0, %RAMBAR0
 #endif /* CONFIG_M5272 || CONFIG_M5249 || CONFIG_M5253 */
 
 #if defined(CONFIG_M5282) || defined(CONFIG_M5271)
        /* Initialize IPSBAR */
-       move.l  #(CFG_MBAR + 1), %d0            /* set IPSBAR address + valid flag */
+       move.l  #(CONFIG_SYS_MBAR + 1), %d0             /* set IPSBAR address + valid flag */
        move.l  %d0, 0x40000000
 
        /* Initialize RAMBAR1: locate SRAM and validate it */
-       move.l  #(CFG_INIT_RAM_ADDR + 0x21), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + 0x21), %d0
        movec   %d0, %RAMBAR1
 
 #if defined(CONFIG_M5282)
-#if (TEXT_BASE == CFG_INT_FLASH_BASE)
+#if (TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
        /* Setup code in SRAM to initialize FLASHBAR, if start from internal Flash */
 
-       move.l #(_flashbar_setup-CFG_INT_FLASH_BASE), %a0
-       move.l #(_flashbar_setup_end-CFG_INT_FLASH_BASE), %a1
-       move.l #(CFG_INIT_RAM_ADDR), %a2
+       move.l #(_flashbar_setup-CONFIG_SYS_INT_FLASH_BASE), %a0
+       move.l #(_flashbar_setup_end-CONFIG_SYS_INT_FLASH_BASE), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR), %a2
 _copy_flash:
        move.l (%a0)+, (%a2)+
        cmp.l %a0, %a1
        bgt.s _copy_flash
-       jmp CFG_INIT_RAM_ADDR
+       jmp CONFIG_SYS_INIT_RAM_ADDR
 
 _flashbar_setup:
        /* Initialize FLASHBAR: locate internal Flash and validate it */
-       move.l  #(CFG_INT_FLASH_BASE + CFG_INT_FLASH_ENABLE), %d0
+       move.l  #(CONFIG_SYS_INT_FLASH_BASE + CONFIG_SYS_INT_FLASH_ENABLE), %d0
        movec   %d0, %FLASHBAR
        jmp _after_flashbar_copy.L      /* Force jump to absolute address */
 _flashbar_setup_end:
@@ -165,9 +165,9 @@ _flashbar_setup_end:
 _after_flashbar_copy:
 #else
        /* Setup code to initialize FLASHBAR, if start from external Memory */
-       move.l  #(CFG_INT_FLASH_BASE + CFG_INT_FLASH_ENABLE), %d0
+       move.l  #(CONFIG_SYS_INT_FLASH_BASE + CONFIG_SYS_INT_FLASH_ENABLE), %d0
        movec   %d0, %FLASHBAR
-#endif /* (TEXT_BASE == CFG_INT_FLASH_BASE) */
+#endif /* (TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE) */
 
 #endif
 #endif
@@ -175,22 +175,22 @@ _after_flashbar_copy:
         * therefore no VBR to set
         */
 #if !defined(CONFIG_MONITOR_IS_IN_RAM)
-#if defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE)
-       move.l  #CFG_INT_FLASH_BASE, %d0
+#if defined(CONFIG_M5282) && (TEXT_BASE == CONFIG_SYS_INT_FLASH_BASE)
+       move.l  #CONFIG_SYS_INT_FLASH_BASE, %d0
 #else
-       move.l  #CFG_FLASH_BASE, %d0
+       move.l  #CONFIG_SYS_FLASH_BASE, %d0
 #endif
        movec   %d0, %VBR
 #endif
 
 #ifdef CONFIG_M5275
        /* Initialize IPSBAR */
-       move.l  #(CFG_MBAR + 1), %d0            /* set IPSBAR address + valid flag */
+       move.l  #(CONFIG_SYS_MBAR + 1), %d0             /* set IPSBAR address + valid flag */
        move.l  %d0, 0x40000000
 /*     movec   %d0, %MBAR */
 
        /* Initialize RAMBAR: locate SRAM and validate it */
-       move.l  #(CFG_INIT_RAM_ADDR + 0x21), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + 0x21), %d0
        movec   %d0, %RAMBAR1
 #endif
 
@@ -204,7 +204,7 @@ _after_flashbar_copy:
 #endif
 
        /* set stackpointer to end of internal ram to get some stackspace for the first c-code */
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET), %sp
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l %sp@-
 
        move.l #__got_start, %a5                /* put relocation table address to a5 */
@@ -235,7 +235,7 @@ relocate_code:
        move.l 12(%a6), %d0             /* Save copy of Global Data pointer */
        move.l 16(%a6), %a0             /* Save copy of Destination Address */
 
-       move.l #CFG_MONITOR_BASE, %a1
+       move.l #CONFIG_SYS_MONITOR_BASE, %a1
        move.l #__init_end, %a2
        move.l %a0, %a3
        /* copy the code to RAM */
@@ -249,7 +249,7 @@ relocate_code:
  * initialization, now running from RAM.
  */
        move.l  %a0, %a1
-       add.l   #(in_ram - CFG_MONITOR_BASE), %a1
+       add.l   #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
        jmp     (%a1)
 
 in_ram:
@@ -259,9 +259,9 @@ clear_bss:
         * Now clear BSS segment
         */
        move.l  %a0, %a1
-       add.l   #(_sbss - CFG_MONITOR_BASE),%a1
+       add.l   #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a0, %d1
-       add.l   #(_ebss - CFG_MONITOR_BASE),%d1
+       add.l   #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
 6:
        clr.l   (%a1)+
        cmp.l   %a1,%d1
@@ -271,11 +271,11 @@ clear_bss:
         * fix got table in RAM
         */
        move.l  %a0, %a1
-       add.l   #(__got_start - CFG_MONITOR_BASE),%a1
+       add.l   #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a1,%a5         /* * fix got pointer register a5 */
 
        move.l  %a0, %a2
-       add.l   #(__got_end - CFG_MONITOR_BASE),%a2
+       add.l   #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
 
 7:
        move.l  (%a1),%d1
@@ -290,27 +290,27 @@ clear_bss:
        /* quick and dirty */
 
        move.l  %a0,%d1
-       add.l   #(icache_state - CFG_MONITOR_BASE),%d1
+       add.l   #(icache_state - CONFIG_SYS_MONITOR_BASE),%d1
        move.l  %a0,%a1
-       add.l   #(icache_state_access_1+2 - CFG_MONITOR_BASE),%a1
+       add.l   #(icache_state_access_1+2 - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %d1,(%a1)
        move.l  %a0,%a1
-       add.l   #(icache_state_access_2+2 - CFG_MONITOR_BASE),%a1
+       add.l   #(icache_state_access_2+2 - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %d1,(%a1)
        move.l  %a0,%a1
-       add.l   #(icache_state_access_3+2 - CFG_MONITOR_BASE),%a1
+       add.l   #(icache_state_access_3+2 - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %d1,(%a1)
 #endif
 
        /* calculate relative jump to board_init_r in ram */
        move.l %a0, %a1
-       add.l #(board_init_r - CFG_MONITOR_BASE), %a1
+       add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
 
        /* set parameters for board_init_r */
        move.l %a0,-(%sp)               /* dest_addr */
        move.l %d0,-(%sp)               /* gd */
-#if defined(DEBUG) && (TEXT_BASE != CFG_INT_FLASH_BASE) && \
-    defined(CFG_HALT_BEFOR_RAM_JUMP)
+#if defined(DEBUG) && (TEXT_BASE != CONFIG_SYS_INT_FLASH_BASE) && \
+    defined(CONFIG_SYS_HALT_BEFOR_RAM_JUMP)
        halt
 #endif
        jsr     (%a1)
@@ -344,14 +344,14 @@ _int_handler:
 icache_enable:
        move.l  #0x01000000, %d0                /* Invalidate cache cmd */
        movec   %d0, %CACR                      /* Invalidate cache */
-       move.l  #(CFG_SDRAM_BASE + 0xc000), %d0 /* Setup cache mask */
+       move.l  #(CONFIG_SYS_SDRAM_BASE + 0xc000), %d0  /* Setup cache mask */
        movec   %d0, %ACR0                      /* Enable cache */
 
        move.l  #0x80000200, %d0                /* Setup cache mask */
        movec   %d0, %CACR                      /* Enable cache */
        nop
 
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
        moveq   #1, %d0
        move.l  %d0, (%a1)
        rts
index 260d6e67557c5ebef9b509c351399b7303ba06e9..8c496a2a2ae4e6b44862d307cda69dfd8802c936 100644 (file)
@@ -117,7 +117,7 @@ int watchdog_init(void)
        u32 wdog_module = 0;
 
        /* set timeout and enable watchdog */
-       wdog_module = ((CFG_CLK / 1000) * CONFIG_WATCHDOG_TIMEOUT);
+       wdog_module = ((CONFIG_SYS_CLK / 1000) * CONFIG_WATCHDOG_TIMEOUT);
 #ifdef CONFIG_M5329
        wdp->mr = (wdog_module / 8192);
 #else
index 93086f74bf014a768433ef9e0937290ad73197e5..d348e29a1f5b3f98a5bb58846fdb6171dd5698ed 100644 (file)
@@ -63,46 +63,46 @@ void cpu_init_f(void)
        /* Port configuration */
        gpio->par_cs = 0;
 
-#if (defined(CFG_CS0_BASE) && defined(CFG_CS0_MASK) && defined(CFG_CS0_CTRL))
-       fbcs->csar0 = CFG_CS0_BASE;
-       fbcs->cscr0 = CFG_CS0_CTRL;
-       fbcs->csmr0 = CFG_CS0_MASK;
+#if (defined(CONFIG_SYS_CS0_BASE) && defined(CONFIG_SYS_CS0_MASK) && defined(CONFIG_SYS_CS0_CTRL))
+       fbcs->csar0 = CONFIG_SYS_CS0_BASE;
+       fbcs->cscr0 = CONFIG_SYS_CS0_CTRL;
+       fbcs->csmr0 = CONFIG_SYS_CS0_MASK;
 #endif
 
-#if (defined(CFG_CS1_BASE) && defined(CFG_CS1_MASK) && defined(CFG_CS1_CTRL))
+#if (defined(CONFIG_SYS_CS1_BASE) && defined(CONFIG_SYS_CS1_MASK) && defined(CONFIG_SYS_CS1_CTRL))
        /* Latch chipselect */
        gpio->par_cs |= GPIO_PAR_CS1;
-       fbcs->csar1 = CFG_CS1_BASE;
-       fbcs->cscr1 = CFG_CS1_CTRL;
-       fbcs->csmr1 = CFG_CS1_MASK;
+       fbcs->csar1 = CONFIG_SYS_CS1_BASE;
+       fbcs->cscr1 = CONFIG_SYS_CS1_CTRL;
+       fbcs->csmr1 = CONFIG_SYS_CS1_MASK;
 #endif
 
-#if (defined(CFG_CS2_BASE) && defined(CFG_CS2_MASK) && defined(CFG_CS2_CTRL))
+#if (defined(CONFIG_SYS_CS2_BASE) && defined(CONFIG_SYS_CS2_MASK) && defined(CONFIG_SYS_CS2_CTRL))
        gpio->par_cs |= GPIO_PAR_CS2;
-       fbcs->csar2 = CFG_CS2_BASE;
-       fbcs->cscr2 = CFG_CS2_CTRL;
-       fbcs->csmr2 = CFG_CS2_MASK;
+       fbcs->csar2 = CONFIG_SYS_CS2_BASE;
+       fbcs->cscr2 = CONFIG_SYS_CS2_CTRL;
+       fbcs->csmr2 = CONFIG_SYS_CS2_MASK;
 #endif
 
-#if (defined(CFG_CS3_BASE) && defined(CFG_CS3_MASK) && defined(CFG_CS3_CTRL))
+#if (defined(CONFIG_SYS_CS3_BASE) && defined(CONFIG_SYS_CS3_MASK) && defined(CONFIG_SYS_CS3_CTRL))
        gpio->par_cs |= GPIO_PAR_CS3;
-       fbcs->csar3 = CFG_CS3_BASE;
-       fbcs->cscr3 = CFG_CS3_CTRL;
-       fbcs->csmr3 = CFG_CS3_MASK;
+       fbcs->csar3 = CONFIG_SYS_CS3_BASE;
+       fbcs->cscr3 = CONFIG_SYS_CS3_CTRL;
+       fbcs->csmr3 = CONFIG_SYS_CS3_MASK;
 #endif
 
-#if (defined(CFG_CS4_BASE) && defined(CFG_CS4_MASK) && defined(CFG_CS4_CTRL))
+#if (defined(CONFIG_SYS_CS4_BASE) && defined(CONFIG_SYS_CS4_MASK) && defined(CONFIG_SYS_CS4_CTRL))
        gpio->par_cs |= GPIO_PAR_CS4;
-       fbcs->csar4 = CFG_CS4_BASE;
-       fbcs->cscr4 = CFG_CS4_CTRL;
-       fbcs->csmr4 = CFG_CS4_MASK;
+       fbcs->csar4 = CONFIG_SYS_CS4_BASE;
+       fbcs->cscr4 = CONFIG_SYS_CS4_CTRL;
+       fbcs->csmr4 = CONFIG_SYS_CS4_MASK;
 #endif
 
-#if (defined(CFG_CS5_BASE) && defined(CFG_CS5_MASK) && defined(CFG_CS5_CTRL))
+#if (defined(CONFIG_SYS_CS5_BASE) && defined(CONFIG_SYS_CS5_MASK) && defined(CONFIG_SYS_CS5_CTRL))
        gpio->par_cs |= GPIO_PAR_CS5;
-       fbcs->csar5 = CFG_CS5_BASE;
-       fbcs->cscr5 = CFG_CS5_CTRL;
-       fbcs->csmr5 = CFG_CS5_MASK;
+       fbcs->csar5 = CONFIG_SYS_CS5_BASE;
+       fbcs->cscr5 = CONFIG_SYS_CS5_CTRL;
+       fbcs->csmr5 = CONFIG_SYS_CS5_MASK;
 #endif
 
 #ifdef CONFIG_FSL_I2C
@@ -125,7 +125,7 @@ void uart_port_conf(void)
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                gpio->par_uart = (GPIO_PAR_UART_TXD0 | GPIO_PAR_UART_RXD0);
                break;
index ff50d7ddfb8ecbf1fa185bbef292d5ca8fa3c748..d6c82054549dc281f72a84c6fccd2c0d351e3d8f 100644 (file)
@@ -28,7 +28,7 @@
 
 int interrupt_init(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
        /* Make sure all interrupts are disabled */
        intp->imrh0 |= 0xFFFFFFFF;
@@ -41,9 +41,9 @@ int interrupt_init(void)
 #if defined(CONFIG_MCFTMR)
 void dtimer_intr_setup(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
-       intp->icr0[CFG_TMRINTR_NO] = CFG_TMRINTR_PRI;
-       intp->imrh0 &= ~CFG_TMRINTR_MASK;
+       intp->icr0[CONFIG_SYS_TMRINTR_NO] = CONFIG_SYS_TMRINTR_PRI;
+       intp->imrh0 &= ~CONFIG_SYS_TMRINTR_MASK;
 }
 #endif
index a11e425cab982d780dbc61390d68a1c9ce71e62f..1e40374d0966c4d626ef4911fe086976445331ac 100644 (file)
@@ -197,7 +197,7 @@ int clock_pll(int fsys, int flags)
         */
 
        /* software workaround for SDRAM opeartion after exiting LIMP mode errata */
-       *sdram_workaround = CFG_SDRAM_BASE;
+       *sdram_workaround = CONFIG_SYS_SDRAM_BASE;
 
        /* wait for DQS logic to relock */
        for (i = 0; i < 0x200; i++) ;
@@ -210,7 +210,7 @@ int clock_pll(int fsys, int flags)
  */
 int get_clocks(void)
 {
-       gd->bus_clk = clock_pll(CFG_CLK / 1000, 0) * 1000;
+       gd->bus_clk = clock_pll(CONFIG_SYS_CLK / 1000, 0) * 1000;
        gd->cpu_clk = (gd->bus_clk * 3);
 
 #ifdef CONFIG_FSL_I2C
index c806f7a96e5ec095a2325130d6245776314a72c8..7a3eb5f98c558cb1f288e5df3ba8586777946793 100644 (file)
@@ -127,10 +127,10 @@ _start:
        move.w #0x2700,%sr      /* Mask off Interrupt */
 
        /* Set vector base register at the beginning of the Flash */
-       move.l  #CFG_FLASH_BASE, %d0
+       move.l  #CONFIG_SYS_FLASH_BASE, %d0
        movec   %d0, %VBR
 
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_RAM_CTRL), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
        movec   %d0, %RAMBAR1
 
        /* invalidate and disable cache */
@@ -142,14 +142,14 @@ _start:
 
        /* initialize general use internal ram */
        move.l #0, %d0
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a2
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a2
        move.l %d0, (%a1)
        move.l %d0, (%a2)
 
        /* set stackpointer to end of internal ram to get some stackspace for the
           first c-code */
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET), %sp
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l %sp@-
 
        move.l #__got_start, %a5        /* put relocation table address to a5 */
@@ -180,7 +180,7 @@ relocate_code:
        move.l 12(%a6), %d0             /* Save copy of Global Data pointer */
        move.l 16(%a6), %a0             /* Save copy of Destination Address */
 
-       move.l #CFG_MONITOR_BASE, %a1
+       move.l #CONFIG_SYS_MONITOR_BASE, %a1
        move.l #__init_end, %a2
        move.l %a0, %a3
 
@@ -195,7 +195,7 @@ relocate_code:
  * initialization, now running from RAM.
  */
        move.l  %a0, %a1
-       add.l   #(in_ram - CFG_MONITOR_BASE), %a1
+       add.l   #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
        jmp     (%a1)
 
 in_ram:
@@ -205,9 +205,9 @@ clear_bss:
         * Now clear BSS segment
         */
        move.l  %a0, %a1
-       add.l   #(_sbss - CFG_MONITOR_BASE),%a1
+       add.l   #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a0, %d1
-       add.l   #(_ebss - CFG_MONITOR_BASE),%d1
+       add.l   #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
 6:
        clr.l   (%a1)+
        cmp.l   %a1,%d1
@@ -217,11 +217,11 @@ clear_bss:
         * fix got table in RAM
         */
        move.l  %a0, %a1
-       add.l   #(__got_start - CFG_MONITOR_BASE),%a1
+       add.l   #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a1,%a5         /* * fix got pointer register a5 */
 
        move.l  %a0, %a2
-       add.l   #(__got_end - CFG_MONITOR_BASE),%a2
+       add.l   #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
 
 7:
        move.l  (%a1),%d1
@@ -233,7 +233,7 @@ clear_bss:
 
        /* calculate relative jump to board_init_r in ram */
        move.l %a0, %a1
-       add.l #(board_init_r - CFG_MONITOR_BASE), %a1
+       add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
 
        /* set parameters for board_init_r */
        move.l %a0,-(%sp)               /* dest_addr */
@@ -268,14 +268,14 @@ _int_handler:
 icache_enable:
        move.l  #0x01000000, %d0                /* Invalidate cache cmd */
        movec   %d0, %CACR                      /* Invalidate cache */
-       move.l  #(CFG_SDRAM_BASE + 0x1c000), %d0
+       move.l  #(CONFIG_SYS_SDRAM_BASE + 0x1c000), %d0
        movec   %d0, %ACR0                      /* Enable cache */
 
        move.l  #0x80000200, %d0                /* Setup cache mask */
        movec   %d0, %CACR                      /* Enable cache */
        nop
 
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
        moveq   #1, %d0
        move.l  %d0, (%a1)
        rts
@@ -288,14 +288,14 @@ icache_disable:
        movec   %d0, %ACR0
        movec   %d0, %ACR1
 
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
        moveq   #0, %d0
        move.l  %d0, (%a1)
        rts
 
        .globl  icache_status
 icache_status:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-8), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
        move.l  (%a1), %d0
        rts
 
@@ -307,7 +307,7 @@ icache_invalid:
 
        .globl  dcache_enable
 dcache_enable:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a1
        moveq   #1, %d0
        move.l  %d0, (%a1)
        rts
@@ -315,14 +315,14 @@ dcache_enable:
     /* No dcache, just a dummy function */
        .globl  dcache_disable
 dcache_disable:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a1
        moveq   #0, %d0
        move.l  %d0, (%a1)
        rts
 
        .globl  dcache_status
 dcache_status:
-       move.l #(CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-4), %a1
+       move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-4), %a1
        move.l  (%a1), %d0
        rts
 
index 51a9e9037120df2ebaaf51f5d0f0952b0b089f99..50b4561f3fd43d1a32cfe3cc547c8df73636598d 100644 (file)
@@ -62,42 +62,42 @@ void cpu_init_f(void)
            GPIO_PAR_FBCTL_TS_TS;
 
 #if !defined(CONFIG_CF_SBF)
-#if (defined(CFG_CS0_BASE) && defined(CFG_CS0_MASK) && defined(CFG_CS0_CTRL))
-       fbcs->csar0 = CFG_CS0_BASE;
-       fbcs->cscr0 = CFG_CS0_CTRL;
-       fbcs->csmr0 = CFG_CS0_MASK;
+#if (defined(CONFIG_SYS_CS0_BASE) && defined(CONFIG_SYS_CS0_MASK) && defined(CONFIG_SYS_CS0_CTRL))
+       fbcs->csar0 = CONFIG_SYS_CS0_BASE;
+       fbcs->cscr0 = CONFIG_SYS_CS0_CTRL;
+       fbcs->csmr0 = CONFIG_SYS_CS0_MASK;
 #endif
 #endif
 
-#if (defined(CFG_CS1_BASE) && defined(CFG_CS1_MASK) && defined(CFG_CS1_CTRL))
+#if (defined(CONFIG_SYS_CS1_BASE) && defined(CONFIG_SYS_CS1_MASK) && defined(CONFIG_SYS_CS1_CTRL))
        /* Latch chipselect */
-       fbcs->csar1 = CFG_CS1_BASE;
-       fbcs->cscr1 = CFG_CS1_CTRL;
-       fbcs->csmr1 = CFG_CS1_MASK;
+       fbcs->csar1 = CONFIG_SYS_CS1_BASE;
+       fbcs->cscr1 = CONFIG_SYS_CS1_CTRL;
+       fbcs->csmr1 = CONFIG_SYS_CS1_MASK;
 #endif
 
-#if (defined(CFG_CS2_BASE) && defined(CFG_CS2_MASK) && defined(CFG_CS2_CTRL))
-       fbcs->csar2 = CFG_CS2_BASE;
-       fbcs->cscr2 = CFG_CS2_CTRL;
-       fbcs->csmr2 = CFG_CS2_MASK;
+#if (defined(CONFIG_SYS_CS2_BASE) && defined(CONFIG_SYS_CS2_MASK) && defined(CONFIG_SYS_CS2_CTRL))
+       fbcs->csar2 = CONFIG_SYS_CS2_BASE;
+       fbcs->cscr2 = CONFIG_SYS_CS2_CTRL;
+       fbcs->csmr2 = CONFIG_SYS_CS2_MASK;
 #endif
 
-#if (defined(CFG_CS3_BASE) && defined(CFG_CS3_MASK) && defined(CFG_CS3_CTRL))
-       fbcs->csar3 = CFG_CS3_BASE;
-       fbcs->cscr3 = CFG_CS3_CTRL;
-       fbcs->csmr3 = CFG_CS3_MASK;
+#if (defined(CONFIG_SYS_CS3_BASE) && defined(CONFIG_SYS_CS3_MASK) && defined(CONFIG_SYS_CS3_CTRL))
+       fbcs->csar3 = CONFIG_SYS_CS3_BASE;
+       fbcs->cscr3 = CONFIG_SYS_CS3_CTRL;
+       fbcs->csmr3 = CONFIG_SYS_CS3_MASK;
 #endif
 
-#if (defined(CFG_CS4_BASE) && defined(CFG_CS4_MASK) && defined(CFG_CS4_CTRL))
-       fbcs->csar4 = CFG_CS4_BASE;
-       fbcs->cscr4 = CFG_CS4_CTRL;
-       fbcs->csmr4 = CFG_CS4_MASK;
+#if (defined(CONFIG_SYS_CS4_BASE) && defined(CONFIG_SYS_CS4_MASK) && defined(CONFIG_SYS_CS4_CTRL))
+       fbcs->csar4 = CONFIG_SYS_CS4_BASE;
+       fbcs->cscr4 = CONFIG_SYS_CS4_CTRL;
+       fbcs->csmr4 = CONFIG_SYS_CS4_MASK;
 #endif
 
-#if (defined(CFG_CS5_BASE) && defined(CFG_CS5_MASK) && defined(CFG_CS5_CTRL))
-       fbcs->csar5 = CFG_CS5_BASE;
-       fbcs->cscr5 = CFG_CS5_CTRL;
-       fbcs->csmr5 = CFG_CS5_MASK;
+#if (defined(CONFIG_SYS_CS5_BASE) && defined(CONFIG_SYS_CS5_MASK) && defined(CONFIG_SYS_CS5_CTRL))
+       fbcs->csar5 = CONFIG_SYS_CS5_BASE;
+       fbcs->cscr5 = CONFIG_SYS_CS5_CTRL;
+       fbcs->csmr5 = CONFIG_SYS_CS5_MASK;
 #endif
 
 #ifdef CONFIG_FSL_I2C
@@ -113,11 +113,11 @@ void cpu_init_f(void)
 int cpu_init_r(void)
 {
 #ifdef CONFIG_MCFRTC
-       volatile rtc_t *rtc = (volatile rtc_t *)(CFG_MCFRTC_BASE);
+       volatile rtc_t *rtc = (volatile rtc_t *)(CONFIG_SYS_MCFRTC_BASE);
        volatile rtcex_t *rtcex = (volatile rtcex_t *)&rtc->extended;
 
-       rtcex->gocu = (CFG_RTC_OSCILLATOR >> 16) & 0xFFFF;
-       rtcex->gocl = CFG_RTC_OSCILLATOR & 0xFFFF;
+       rtcex->gocu = (CONFIG_SYS_RTC_OSCILLATOR >> 16) & 0xFFFF;
+       rtcex->gocl = CONFIG_SYS_RTC_OSCILLATOR & 0xFFFF;
 #endif
 
        return (0);
@@ -128,7 +128,7 @@ void uart_port_conf(void)
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                gpio->par_uart =
                    (GPIO_PAR_UART_U0TXD_U0TXD | GPIO_PAR_UART_U0RXD_U0RXD);
index 959d6bd6aa8a9c8335bd92254ff057effdfc82b5..6d3ebab6ef90168c6f67734efbc9509681d38e69 100644 (file)
@@ -47,29 +47,29 @@ void dspi_init(void)
            DSPI_DMCR_CSIS2 | DSPI_DMCR_CSIS1 | DSPI_DMCR_CSIS0 |
            DSPI_DMCR_CRXF | DSPI_DMCR_CTXF;
 
-#ifdef CFG_DSPI_DCTAR0
-       dspi->dctar0 = CFG_DSPI_DCTAR0;
+#ifdef CONFIG_SYS_DSPI_DCTAR0
+       dspi->dctar0 = CONFIG_SYS_DSPI_DCTAR0;
 #endif
-#ifdef CFG_DSPI_DCTAR1
-       dspi->dctar1 = CFG_DSPI_DCTAR1;
+#ifdef CONFIG_SYS_DSPI_DCTAR1
+       dspi->dctar1 = CONFIG_SYS_DSPI_DCTAR1;
 #endif
-#ifdef CFG_DSPI_DCTAR2
-       dspi->dctar2 = CFG_DSPI_DCTAR2;
+#ifdef CONFIG_SYS_DSPI_DCTAR2
+       dspi->dctar2 = CONFIG_SYS_DSPI_DCTAR2;
 #endif
-#ifdef CFG_DSPI_DCTAR3
-       dspi->dctar3 = CFG_DSPI_DCTAR3;
+#ifdef CONFIG_SYS_DSPI_DCTAR3
+       dspi->dctar3 = CONFIG_SYS_DSPI_DCTAR3;
 #endif
-#ifdef CFG_DSPI_DCTAR4
-       dspi->dctar4 = CFG_DSPI_DCTAR4;
+#ifdef CONFIG_SYS_DSPI_DCTAR4
+       dspi->dctar4 = CONFIG_SYS_DSPI_DCTAR4;
 #endif
-#ifdef CFG_DSPI_DCTAR5
-       dspi->dctar5 = CFG_DSPI_DCTAR5;
+#ifdef CONFIG_SYS_DSPI_DCTAR5
+       dspi->dctar5 = CONFIG_SYS_DSPI_DCTAR5;
 #endif
-#ifdef CFG_DSPI_DCTAR6
-       dspi->dctar6 = CFG_DSPI_DCTAR6;
+#ifdef CONFIG_SYS_DSPI_DCTAR6
+       dspi->dctar6 = CONFIG_SYS_DSPI_DCTAR6;
 #endif
-#ifdef CFG_DSPI_DCTAR7
-       dspi->dctar7 = CFG_DSPI_DCTAR7;
+#ifdef CONFIG_SYS_DSPI_DCTAR7
+       dspi->dctar7 = CONFIG_SYS_DSPI_DCTAR7;
 #endif
 }
 
index 9572a7bc32be267e2aaaa91df43e4cad17509bc4..85828a67b5f93f732b6bfb9cb4b5ddc4b95e6bde 100644 (file)
@@ -31,7 +31,7 @@
 
 int interrupt_init(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
        /* Make sure all interrupts are disabled */
        intp->imrh0 |= 0xFFFFFFFF;
@@ -44,9 +44,9 @@ int interrupt_init(void)
 #if defined(CONFIG_MCFTMR)
 void dtimer_intr_setup(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
-       intp->icr0[CFG_TMRINTR_NO] = CFG_TMRINTR_PRI;
-       intp->imrh0 &= ~CFG_TMRINTR_MASK;
+       intp->icr0[CONFIG_SYS_TMRINTR_NO] = CONFIG_SYS_TMRINTR_PRI;
+       intp->imrh0 &= ~CONFIG_SYS_TMRINTR_MASK;
 }
 #endif
index 0398469280e5da9afd26f136f8595479d8071255..c4a3b05ee6c2b74e8abc77dc03474eb1a83d8da1 100644 (file)
@@ -31,9 +31,9 @@
 
 #if defined(CONFIG_PCI)
 /* System RAM mapped over PCI */
-#define CFG_PCI_SYS_MEM_BUS    CFG_SDRAM_BASE
-#define CFG_PCI_SYS_MEM_PHYS   CFG_SDRAM_BASE
-#define CFG_PCI_SYS_MEM_SIZE   (1024 * 1024 * 1024)
+#define CONFIG_SYS_PCI_SYS_MEM_BUS     CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SYS_MEM_PHYS    CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SYS_MEM_SIZE    (1024 * 1024 * 1024)
 
 #define cfg_read(val, addr, type, op)          *val = op((type)(addr));
 #define cfg_write(val, addr, type, op)         op((type *)(addr), (val));
@@ -80,9 +80,9 @@ void pci_mcf5445x_init(struct pci_controller *hose)
        pci->tcr1 |= PCI_TCR1_P;
 
        /* Initiator windows */
-       pci->iw0btar = CFG_PCI_MEM_PHYS | (CFG_PCI_MEM_PHYS >> 16);
-       pci->iw1btar = CFG_PCI_IO_PHYS | (CFG_PCI_IO_PHYS >> 16);
-       pci->iw2btar = CFG_PCI_CFG_PHYS | (CFG_PCI_CFG_PHYS >> 16);
+       pci->iw0btar = CONFIG_SYS_PCI_MEM_PHYS | (CONFIG_SYS_PCI_MEM_PHYS >> 16);
+       pci->iw1btar = CONFIG_SYS_PCI_IO_PHYS | (CONFIG_SYS_PCI_IO_PHYS >> 16);
+       pci->iw2btar = CONFIG_SYS_PCI_CFG_PHYS | (CONFIG_SYS_PCI_CFG_PHYS >> 16);
 
        pci->iwcr =
            PCI_IWCR_W0C_EN | PCI_IWCR_W1C_EN | PCI_IWCR_W1C_IO |
@@ -97,34 +97,34 @@ void pci_mcf5445x_init(struct pci_controller *hose)
        pci->cr1 = PCI_CR1_CLS(8) | PCI_CR1_LTMR(0xF8);
        pci->cr2 = 0;
 
-#ifdef CFG_PCI_BAR0
-       pci->bar0 = PCI_BAR_BAR0(CFG_PCI_BAR0);
-       pci->tbatr0 = CFG_PCI_TBATR0 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR0
+       pci->bar0 = PCI_BAR_BAR0(CONFIG_SYS_PCI_BAR0);
+       pci->tbatr0 = CONFIG_SYS_PCI_TBATR0 | PCI_TBATR_EN;
        barEn |= PCI_TCR2_B0E;
 #endif
-#ifdef CFG_PCI_BAR1
-       pci->bar1 = PCI_BAR_BAR1(CFG_PCI_BAR1);
-       pci->tbatr1 = CFG_PCI_TBATR1 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR1
+       pci->bar1 = PCI_BAR_BAR1(CONFIG_SYS_PCI_BAR1);
+       pci->tbatr1 = CONFIG_SYS_PCI_TBATR1 | PCI_TBATR_EN;
        barEn |= PCI_TCR2_B1E;
 #endif
-#ifdef CFG_PCI_BAR2
-       pci->bar2 = PCI_BAR_BAR2(CFG_PCI_BAR2);
-       pci->tbatr2 = CFG_PCI_TBATR2 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR2
+       pci->bar2 = PCI_BAR_BAR2(CONFIG_SYS_PCI_BAR2);
+       pci->tbatr2 = CONFIG_SYS_PCI_TBATR2 | PCI_TBATR_EN;
        barEn |= PCI_TCR2_B2E;
 #endif
-#ifdef CFG_PCI_BAR3
-       pci->bar3 = PCI_BAR_BAR3(CFG_PCI_BAR3);
-       pci->tbatr3 = CFG_PCI_TBATR3 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR3
+       pci->bar3 = PCI_BAR_BAR3(CONFIG_SYS_PCI_BAR3);
+       pci->tbatr3 = CONFIG_SYS_PCI_TBATR3 | PCI_TBATR_EN;
        barEn |= PCI_TCR2_B3E;
 #endif
-#ifdef CFG_PCI_BAR4
-       pci->bar4 = PCI_BAR_BAR4(CFG_PCI_BAR4);
-       pci->tbatr4 = CFG_PCI_TBATR4 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR4
+       pci->bar4 = PCI_BAR_BAR4(CONFIG_SYS_PCI_BAR4);
+       pci->tbatr4 = CONFIG_SYS_PCI_TBATR4 | PCI_TBATR_EN;
        barEn |= PCI_TCR2_B4E;
 #endif
-#ifdef CFG_PCI_BAR5
-       pci->bar5 = PCI_BAR_BAR5(CFG_PCI_BAR5);
-       pci->tbatr5 = CFG_PCI_TBATR5 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR5
+       pci->bar5 = PCI_BAR_BAR5(CONFIG_SYS_PCI_BAR5);
+       pci->tbatr5 = CONFIG_SYS_PCI_TBATR5 | PCI_TBATR_EN;
        barEn |= PCI_TCR2_B5E;
 #endif
 
@@ -138,20 +138,20 @@ void pci_mcf5445x_init(struct pci_controller *hose)
        hose->first_busno = 0;
        hose->last_busno = 0xff;
 
-       pci_set_region(hose->regions + 0, CFG_PCI_MEM_BUS, CFG_PCI_MEM_PHYS,
-                      CFG_PCI_MEM_SIZE, PCI_REGION_MEM);
+       pci_set_region(hose->regions + 0, CONFIG_SYS_PCI_MEM_BUS, CONFIG_SYS_PCI_MEM_PHYS,
+                      CONFIG_SYS_PCI_MEM_SIZE, PCI_REGION_MEM);
 
-       pci_set_region(hose->regions + 1, CFG_PCI_IO_BUS, CFG_PCI_IO_PHYS,
-                      CFG_PCI_IO_SIZE, PCI_REGION_IO);
+       pci_set_region(hose->regions + 1, CONFIG_SYS_PCI_IO_BUS, CONFIG_SYS_PCI_IO_PHYS,
+                      CONFIG_SYS_PCI_IO_SIZE, PCI_REGION_IO);
 
-       pci_set_region(hose->regions + 2, CFG_PCI_SYS_MEM_BUS,
-                      CFG_PCI_SYS_MEM_PHYS, CFG_PCI_SYS_MEM_SIZE,
+       pci_set_region(hose->regions + 2, CONFIG_SYS_PCI_SYS_MEM_BUS,
+                      CONFIG_SYS_PCI_SYS_MEM_PHYS, CONFIG_SYS_PCI_SYS_MEM_SIZE,
                       PCI_REGION_MEM | PCI_REGION_MEMORY);
 
        hose->region_count = 3;
 
        hose->cfg_addr = &(pci->car);
-       hose->cfg_data = (volatile unsigned char *)CFG_PCI_CFG_BUS;
+       hose->cfg_data = (volatile unsigned char *)CONFIG_SYS_PCI_CFG_BUS;
 
        pci_set_ops(hose, pci_read_cfg_byte, pci_read_cfg_word,
                    pci_read_cfg_dword, pci_write_cfg_byte, pci_write_cfg_word,
index 6711a1d7c89479b4e5030aea46ad417842c4084e..9c0c07733b50bfd09cd4fc591d1c92862072a386 100644 (file)
@@ -94,7 +94,7 @@ int get_clocks(void)
        u16 fbpll_mask;
 
 #ifdef CONFIG_M54455EVB
-       volatile u8 *cpld = (volatile u8 *)(CFG_CS2_BASE + 3);
+       volatile u8 *cpld = (volatile u8 *)(CONFIG_SYS_CS2_BASE + 3);
 #endif
        u8 bootmode;
 
@@ -145,7 +145,7 @@ int get_clocks(void)
 
        if (bootmode == 0) {
                /* RCON mode */
-               vco = pPllmult[ccm->rcon & fbpll_mask] * CFG_INPUT_CLKSRC;
+               vco = pPllmult[ccm->rcon & fbpll_mask] * CONFIG_SYS_INPUT_CLKSRC;
 
                if ((vco < CLOCK_PLL_FVCO_MIN) || (vco > CLOCK_PLL_FVCO_MAX)) {
                        /* invaild range, re-set in PCR */
@@ -154,7 +154,7 @@ int get_clocks(void)
 
                        j = (pll->pcr & 0xFF000000) >> 24;
                        for (i = j; i < 0xFF; i++) {
-                               vco = i * CFG_INPUT_CLKSRC;
+                               vco = i * CONFIG_SYS_INPUT_CLKSRC;
                                if (vco >= CLOCK_PLL_FVCO_MIN) {
                                        bus = vco / temp;
                                        if (bus <= CLOCK_PLL_FSYS_MIN - MHZ)
@@ -172,25 +172,25 @@ int get_clocks(void)
                gd->vco_clk = vco;      /* Vco clock */
        } else if (bootmode == 2) {
                /* Normal mode */
-               vco =  ((pll->pcr & 0xFF000000) >> 24) * CFG_INPUT_CLKSRC;
+               vco =  ((pll->pcr & 0xFF000000) >> 24) * CONFIG_SYS_INPUT_CLKSRC;
                if ((vco < CLOCK_PLL_FVCO_MIN) || (vco > CLOCK_PLL_FVCO_MAX)) {
                        /* Default value */
                        pcrvalue = (pll->pcr & 0x00FFFFFF);
                        pcrvalue |= pPllmult[ccm->ccr & fbpll_mask] << 24;
                        pll->pcr = pcrvalue;
-                       vco =  ((pll->pcr & 0xFF000000) >> 24) * CFG_INPUT_CLKSRC;
+                       vco =  ((pll->pcr & 0xFF000000) >> 24) * CONFIG_SYS_INPUT_CLKSRC;
                }
                gd->vco_clk = vco;      /* Vco clock */
        } else if (bootmode == 3) {
                /* serial mode */
-               vco =  ((pll->pcr & 0xFF000000) >> 24) * CFG_INPUT_CLKSRC;
+               vco =  ((pll->pcr & 0xFF000000) >> 24) * CONFIG_SYS_INPUT_CLKSRC;
                gd->vco_clk = vco;      /* Vco clock */
        }
 
        if ((ccm->ccr & CCM_MISCCR_LIMP) == CCM_MISCCR_LIMP) {
                /* Limp mode */
        } else {
-               gd->inp_clk = CFG_INPUT_CLKSRC; /* Input clock */
+               gd->inp_clk = CONFIG_SYS_INPUT_CLKSRC;  /* Input clock */
 
                temp = (pll->pcr & PLL_PCR_OUTDIV1_MASK) + 1;
                gd->cpu_clk = vco / temp;       /* cpu clock */
index 2a6019bbfc7a84bd2c5b9c7e705b3d8c3077780c..61e43fff35a8eee79d725407eab39c6604edecdb 100644 (file)
@@ -29,9 +29,9 @@
 #endif
 
 /* last three long word reserved for cache status */
-#define CACR_STATUS    (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-12)
-#define ICACHE_STATUS  (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END- 8)
-#define DCACHE_STATUS  (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END- 4)
+#define CACR_STATUS    (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-12)
+#define ICACHE_STATUS  (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END- 8)
+#define DCACHE_STATUS  (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END- 4)
 
 #define _START _start
 #define _FAULT _fault
@@ -47,8 +47,8 @@
        rte;
 
 #if defined(CONFIG_CF_SBF)
-#define ASM_DRAMINIT   (asm_dram_init - TEXT_BASE + CFG_INIT_RAM_ADDR)
-#define ASM_SBF_IMG_HDR        (asm_sbf_img_hdr - TEXT_BASE + CFG_INIT_RAM_ADDR)
+#define ASM_DRAMINIT   (asm_dram_init - TEXT_BASE + CONFIG_SYS_INIT_RAM_ADDR)
+#define ASM_SBF_IMG_HDR        (asm_sbf_img_hdr - TEXT_BASE + CONFIG_SYS_INIT_RAM_ADDR)
 #endif
 
 .text
@@ -149,18 +149,18 @@ asm_sbf_img_hdr:
        .long   TEXT_BASE       /* image to be relocated at */
 
 asm_dram_init:
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_RAM_CTRL), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
        movec   %d0, %RAMBAR1   /* init Rambar */
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET), %sp
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l %sp@-
 
        /* Must disable global address */
        move.l  #0xFC008000, %a1
-       move.l  #(CFG_CS0_BASE), (%a1)
+       move.l  #(CONFIG_SYS_CS0_BASE), (%a1)
        move.l  #0xFC008008, %a1
-       move.l  #(CFG_CS0_CTRL), (%a1)
+       move.l  #(CONFIG_SYS_CS0_CTRL), (%a1)
        move.l  #0xFC008004, %a1
-       move.l  #(CFG_CS0_MASK), (%a1)
+       move.l  #(CONFIG_SYS_CS0_MASK), (%a1)
 
        /*
         * Dram Initialization
@@ -168,7 +168,7 @@ asm_dram_init:
         */
        /* mscr sdram */
        move.l  #0xFC0A4074, %a1
-       move.b  #(CFG_SDRAM_DRV_STRENGTH), (%a1)
+       move.b  #(CONFIG_SYS_SDRAM_DRV_STRENGTH), (%a1)
        nop
 
        /* SDRAM Chip 0 and 1 */
@@ -177,8 +177,8 @@ asm_dram_init:
 
        /* calculate the size */
        move.l  #0x13, %d1
-       move.l  #(CFG_SDRAM_SIZE), %d2
-#ifdef CFG_SDRAM_BASE1
+       move.l  #(CONFIG_SYS_SDRAM_SIZE), %d2
+#ifdef CONFIG_SYS_SDRAM_BASE1
        lsr.l   #1, %d2
 #endif
 
@@ -189,20 +189,20 @@ dramsz_loop:
        bne     dramsz_loop
 
        /* SDRAM Chip 0 and 1 */
-       move.l  #(CFG_SDRAM_BASE), (%a1)
+       move.l  #(CONFIG_SYS_SDRAM_BASE), (%a1)
        or.l    %d1, (%a1)
-#ifdef CFG_SDRAM_BASE1
-       move.l  #(CFG_SDRAM_BASE1), (%a2)
+#ifdef CONFIG_SYS_SDRAM_BASE1
+       move.l  #(CONFIG_SYS_SDRAM_BASE1), (%a2)
        or.l    %d1, (%a2)
 #endif
        nop
 
        /* dram cfg1 and cfg2 */
        move.l  #0xFC0B8008, %a1
-       move.l  #(CFG_SDRAM_CFG1), (%a1)
+       move.l  #(CONFIG_SYS_SDRAM_CFG1), (%a1)
        nop
        move.l  #0xFC0B800C, %a2
-       move.l  #(CFG_SDRAM_CFG2), (%a2)
+       move.l  #(CONFIG_SYS_SDRAM_CFG2), (%a2)
        nop
 
        move.l  #0xFC0B8000, %a1        /* Mode */
@@ -210,13 +210,13 @@ dramsz_loop:
 
 #ifdef CONFIG_M54455EVB
        /* Issue PALL */
-       move.l  #(CFG_SDRAM_CTRL + 2), (%a2)
+       move.l  #(CONFIG_SYS_SDRAM_CTRL + 2), (%a2)
        nop
 
        /* Issue LEMR */
-       move.l  #(CFG_SDRAM_EMOD + 0x408), (%a1)
+       move.l  #(CONFIG_SYS_SDRAM_EMOD + 0x408), (%a1)
        nop
-       move.l  #(CFG_SDRAM_MODE + 0x300), (%a1)
+       move.l  #(CONFIG_SYS_SDRAM_MODE + 0x300), (%a1)
        nop
 
        move.l  #1000, %d0
@@ -227,24 +227,24 @@ wait1000:
 #endif
 
        /* Issue PALL */
-       move.l  #(CFG_SDRAM_CTRL + 2), (%a2)
+       move.l  #(CONFIG_SYS_SDRAM_CTRL + 2), (%a2)
        nop
 
        /* Perform two refresh cycles */
-       move.l  #(CFG_SDRAM_CTRL + 4), %d0
+       move.l  #(CONFIG_SYS_SDRAM_CTRL + 4), %d0
        nop
        move.l  %d0, (%a2)
        move.l  %d0, (%a2)
        nop
 
 #ifdef CONFIG_M54455EVB
-       move.l  #(CFG_SDRAM_MODE + 0x200), (%a1)
+       move.l  #(CONFIG_SYS_SDRAM_MODE + 0x200), (%a1)
        nop
 #elif defined(CONFIG_M54451EVB)
        /* Issue LEMR */
-       move.l  #(CFG_SDRAM_MODE), (%a2)
+       move.l  #(CONFIG_SYS_SDRAM_MODE), (%a2)
        nop
-       move.l  #(CFG_SDRAM_EMOD), (%a2)
+       move.l  #(CONFIG_SYS_SDRAM_EMOD), (%a2)
        nop
 #endif
 
@@ -254,7 +254,7 @@ wait500:
        subq.l  #1, %d0
        bne     wait500
 
-       move.l  #(CFG_SDRAM_CTRL), %d0
+       move.l  #(CONFIG_SYS_SDRAM_CTRL), %d0
        and.l   #0x7FFFFFFF, %d0
 #ifdef CONFIG_M54455EVB
        or.l    #0x10000c00, %d0
@@ -290,8 +290,8 @@ wait500:
        move.l  (%a1)+, %d5
        move.l  (%a1), %a4
 
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_SBFHDR_DATA_OFFSET), %a0
-       move.l  #(CFG_SBFHDR_SIZE), %d4
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_SBFHDR_DATA_OFFSET), %a0
+       move.l  #(CONFIG_SYS_SBFHDR_SIZE), %d4
 
        move.l  #0xFC05C02C, %a1        /* dspi status */
 
@@ -381,10 +381,10 @@ _start:
        move.l  #TEXT_BASE, %d0
        movec   %d0, %VBR
 #else
-       move.l  #CFG_FLASH_BASE, %d0
+       move.l  #CONFIG_SYS_FLASH_BASE, %d0
        movec   %d0, %VBR
 
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_RAM_CTRL), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
        movec   %d0, %RAMBAR1
 #endif
 
@@ -408,7 +408,7 @@ _start:
 
        /* set stackpointer to end of internal ram to get some stackspace for
           the first c-code */
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET), %sp
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l %sp@-
 
        move.l #__got_start, %a5        /* put relocation table address to a5 */
@@ -439,7 +439,7 @@ relocate_code:
        move.l 12(%a6), %d0             /* Save copy of Global Data pointer */
        move.l 16(%a6), %a0             /* Save copy of Destination Address */
 
-       move.l #CFG_MONITOR_BASE, %a1
+       move.l #CONFIG_SYS_MONITOR_BASE, %a1
        move.l #__init_end, %a2
        move.l %a0, %a3
 
@@ -454,7 +454,7 @@ relocate_code:
  * initialization, now running from RAM.
  */
        move.l  %a0, %a1
-       add.l   #(in_ram - CFG_MONITOR_BASE), %a1
+       add.l   #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
        jmp     (%a1)
 
 in_ram:
@@ -464,9 +464,9 @@ clear_bss:
         * Now clear BSS segment
         */
        move.l  %a0, %a1
-       add.l   #(_sbss - CFG_MONITOR_BASE),%a1
+       add.l   #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a0, %d1
-       add.l   #(_ebss - CFG_MONITOR_BASE),%d1
+       add.l   #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
 6:
        clr.l   (%a1)+
        cmp.l   %a1,%d1
@@ -476,11 +476,11 @@ clear_bss:
         * fix got table in RAM
         */
        move.l  %a0, %a1
-       add.l   #(__got_start - CFG_MONITOR_BASE),%a1
+       add.l   #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a1,%a5                 /* * fix got pointer register a5 */
 
        move.l  %a0, %a2
-       add.l   #(__got_end - CFG_MONITOR_BASE),%a2
+       add.l   #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
 
 7:
        move.l  (%a1),%d1
@@ -492,7 +492,7 @@ clear_bss:
 
        /* calculate relative jump to board_init_r in ram */
        move.l %a0, %a1
-       add.l #(board_init_r - CFG_MONITOR_BASE), %a1
+       add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
 
        /* set parameters for board_init_r */
        move.l %a0,-(%sp)               /* dest_addr */
@@ -531,7 +531,7 @@ icache_enable:
        move.l  #0x00040100, %d0        /* Invalidate icache */
        movec   %d0, %CACR
 
-       move.l  #(CFG_SDRAM_BASE + 0x1c000), %d0        /* Setup icache */
+       move.l  #(CONFIG_SYS_SDRAM_BASE + 0x1c000), %d0 /* Setup icache */
        movec   %d0, %ACR2
 
        move.l  #0x04088020, %d0        /* Enable bcache and icache */
index ab4ad2889c08f0ce780156d605d50315a86ae4b2..f9a3544dd6d82e6f549dc5a7021d1351d486ffc9 100644 (file)
@@ -133,7 +133,7 @@ int watchdog_init(void)
        volatile gptmr_t *gptmr = (gptmr_t *) (MMAP_GPTMR);
 
        gptmr->pre = CONFIG_WATCHDOG_TIMEOUT;
-       gptmr->cnt = CFG_TIMER_PRESCALER * 1000;
+       gptmr->cnt = CONFIG_SYS_TIMER_PRESCALER * 1000;
 
        gptmr->mode = GPT_TMS_SGPIO;
        gptmr->ctrl = GPT_CTRL_CE | GPT_CTRL_WDEN;
index 11154c63a83e649dcdfbab56c01a035d48a66381..9a0e04083c6cd215076c99dd696f7e3cf86bfc5f 100644 (file)
@@ -52,40 +52,40 @@ void cpu_init_f(void)
        xlbarb->pri = 0;
        xlbarb->prien = 0xff;
 
-#if (defined(CFG_CS0_BASE) && defined(CFG_CS0_MASK) && defined(CFG_CS0_CTRL))
-       fbcs->csar0 = CFG_CS0_BASE;
-       fbcs->cscr0 = CFG_CS0_CTRL;
-       fbcs->csmr0 = CFG_CS0_MASK;
+#if (defined(CONFIG_SYS_CS0_BASE) && defined(CONFIG_SYS_CS0_MASK) && defined(CONFIG_SYS_CS0_CTRL))
+       fbcs->csar0 = CONFIG_SYS_CS0_BASE;
+       fbcs->cscr0 = CONFIG_SYS_CS0_CTRL;
+       fbcs->csmr0 = CONFIG_SYS_CS0_MASK;
 #endif
 
-#if (defined(CFG_CS1_BASE) && defined(CFG_CS1_MASK) && defined(CFG_CS1_CTRL))
-       fbcs->csar1 = CFG_CS1_BASE;
-       fbcs->cscr1 = CFG_CS1_CTRL;
-       fbcs->csmr1 = CFG_CS1_MASK;
+#if (defined(CONFIG_SYS_CS1_BASE) && defined(CONFIG_SYS_CS1_MASK) && defined(CONFIG_SYS_CS1_CTRL))
+       fbcs->csar1 = CONFIG_SYS_CS1_BASE;
+       fbcs->cscr1 = CONFIG_SYS_CS1_CTRL;
+       fbcs->csmr1 = CONFIG_SYS_CS1_MASK;
 #endif
 
-#if (defined(CFG_CS2_BASE) && defined(CFG_CS2_MASK) && defined(CFG_CS2_CTRL))
-       fbcs->csar2 = CFG_CS2_BASE;
-       fbcs->cscr2 = CFG_CS2_CTRL;
-       fbcs->csmr2 = CFG_CS2_MASK;
+#if (defined(CONFIG_SYS_CS2_BASE) && defined(CONFIG_SYS_CS2_MASK) && defined(CONFIG_SYS_CS2_CTRL))
+       fbcs->csar2 = CONFIG_SYS_CS2_BASE;
+       fbcs->cscr2 = CONFIG_SYS_CS2_CTRL;
+       fbcs->csmr2 = CONFIG_SYS_CS2_MASK;
 #endif
 
-#if (defined(CFG_CS3_BASE) && defined(CFG_CS3_MASK) && defined(CFG_CS3_CTRL))
-       fbcs->csar3 = CFG_CS3_BASE;
-       fbcs->cscr3 = CFG_CS3_CTRL;
-       fbcs->csmr3 = CFG_CS3_MASK;
+#if (defined(CONFIG_SYS_CS3_BASE) && defined(CONFIG_SYS_CS3_MASK) && defined(CONFIG_SYS_CS3_CTRL))
+       fbcs->csar3 = CONFIG_SYS_CS3_BASE;
+       fbcs->cscr3 = CONFIG_SYS_CS3_CTRL;
+       fbcs->csmr3 = CONFIG_SYS_CS3_MASK;
 #endif
 
-#if (defined(CFG_CS4_BASE) && defined(CFG_CS4_MASK) && defined(CFG_CS4_CTRL))
-       fbcs->csar4 = CFG_CS4_BASE;
-       fbcs->cscr4 = CFG_CS4_CTRL;
-       fbcs->csmr4 = CFG_CS4_MASK;
+#if (defined(CONFIG_SYS_CS4_BASE) && defined(CONFIG_SYS_CS4_MASK) && defined(CONFIG_SYS_CS4_CTRL))
+       fbcs->csar4 = CONFIG_SYS_CS4_BASE;
+       fbcs->cscr4 = CONFIG_SYS_CS4_CTRL;
+       fbcs->csmr4 = CONFIG_SYS_CS4_MASK;
 #endif
 
-#if (defined(CFG_CS5_BASE) && defined(CFG_CS5_MASK) && defined(CFG_CS5_CTRL))
-       fbcs->csar5 = CFG_CS5_BASE;
-       fbcs->cscr5 = CFG_CS5_CTRL;
-       fbcs->csmr5 = CFG_CS5_MASK;
+#if (defined(CONFIG_SYS_CS5_BASE) && defined(CONFIG_SYS_CS5_MASK) && defined(CONFIG_SYS_CS5_CTRL))
+       fbcs->csar5 = CONFIG_SYS_CS5_BASE;
+       fbcs->cscr5 = CONFIG_SYS_CS5_CTRL;
+       fbcs->csmr5 = CONFIG_SYS_CS5_MASK;
 #endif
 
 #ifdef CONFIG_FSL_I2C
@@ -110,10 +110,10 @@ int cpu_init_r(void)
 void uart_port_conf(void)
 {
        volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO;
-       volatile u8 *pscsicr = (u8 *) (CFG_UART_BASE + 0x40);
+       volatile u8 *pscsicr = (u8 *) (CONFIG_SYS_UART_BASE + 0x40);
 
        /* Setup Ports: */
-       switch (CFG_UART_PORT) {
+       switch (CONFIG_SYS_UART_PORT) {
        case 0:
                gpio->par_psc0 = (GPIO_PAR_PSC0_TXD0 | GPIO_PAR_PSC0_RXD0);
                break;
index d684ffe9d02052628f60785084cc77277cf80c87..76be876aa0b14614089d58601eedb687d0ad6c6c 100644 (file)
@@ -28,7 +28,7 @@
 
 int interrupt_init(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
        /* Make sure all interrupts are disabled */
        intp->imrh0 |= 0xFFFFFFFF;
@@ -42,9 +42,9 @@ int interrupt_init(void)
 #if defined(CONFIG_SLTTMR)
 void dtimer_intr_setup(void)
 {
-       volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
+       volatile int0_t *intp = (int0_t *) (CONFIG_SYS_INTR_BASE);
 
-       intp->icr0[CFG_TMRINTR_NO] = CFG_TMRINTR_PRI;
-       intp->imrh0 &= ~CFG_TMRINTR_MASK;
+       intp->icr0[CONFIG_SYS_TMRINTR_NO] = CONFIG_SYS_TMRINTR_PRI;
+       intp->imrh0 &= ~CONFIG_SYS_TMRINTR_MASK;
 }
 #endif
index 70378b09ec3cb751ae8fc10b8d2d4dfc4c94f3be..f5c25367fbe0e7e1acef95996714b38804db2fbf 100644 (file)
@@ -31,9 +31,9 @@
 
 #if defined(CONFIG_PCI)
 /* System RAM mapped over PCI */
-#define CFG_PCI_SYS_MEM_BUS    CFG_SDRAM_BASE
-#define CFG_PCI_SYS_MEM_PHYS   CFG_SDRAM_BASE
-#define CFG_PCI_SYS_MEM_SIZE   (1024 * 1024 * 1024)
+#define CONFIG_SYS_PCI_SYS_MEM_BUS     CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SYS_MEM_PHYS    CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SYS_MEM_SIZE    (1024 * 1024 * 1024)
 
 #define cfg_read(val, addr, type, op)          *val = op((type)(addr));
 #define cfg_write(val, addr, type, op)         op((type *)(addr), (val));
@@ -107,9 +107,9 @@ void pci_mcf547x_8x_init(struct pci_controller *hose)
        pci->tcr1 = PCI_TCR1_P;
 
        /* Initiator windows */
-       pci->iw0btar = CFG_PCI_MEM_PHYS | (CFG_PCI_MEM_PHYS >> 16);
-       pci->iw1btar = CFG_PCI_IO_PHYS | (CFG_PCI_IO_PHYS >> 16);
-       pci->iw2btar = CFG_PCI_CFG_PHYS | (CFG_PCI_CFG_PHYS >> 16);
+       pci->iw0btar = CONFIG_SYS_PCI_MEM_PHYS | (CONFIG_SYS_PCI_MEM_PHYS >> 16);
+       pci->iw1btar = CONFIG_SYS_PCI_IO_PHYS | (CONFIG_SYS_PCI_IO_PHYS >> 16);
+       pci->iw2btar = CONFIG_SYS_PCI_CFG_PHYS | (CONFIG_SYS_PCI_CFG_PHYS >> 16);
 
        pci->iwcr =
            PCI_IWCR_W0C_EN | PCI_IWCR_W1C_EN | PCI_IWCR_W1C_IO |
@@ -124,13 +124,13 @@ void pci_mcf547x_8x_init(struct pci_controller *hose)
        pci->cr1 = PCI_CR1_CLS(8) | PCI_CR1_LTMR(0xF8);
        pci->cr2 = 0;
 
-#ifdef CFG_PCI_BAR0
-       pci->bar0 = PCI_BAR_BAR0(CFG_PCI_BAR0);
-       pci->tbatr0a = CFG_PCI_TBATR0 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR0
+       pci->bar0 = PCI_BAR_BAR0(CONFIG_SYS_PCI_BAR0);
+       pci->tbatr0a = CONFIG_SYS_PCI_TBATR0 | PCI_TBATR_EN;
 #endif
-#ifdef CFG_PCI_BAR1
-       pci->bar1 = PCI_BAR_BAR1(CFG_PCI_BAR1);
-       pci->tbatr1a = CFG_PCI_TBATR1 | PCI_TBATR_EN;
+#ifdef CONFIG_SYS_PCI_BAR1
+       pci->bar1 = PCI_BAR_BAR1(CONFIG_SYS_PCI_BAR1);
+       pci->tbatr1a = CONFIG_SYS_PCI_TBATR1 | PCI_TBATR_EN;
 #endif
 
        /* Deassert reset bit */
@@ -141,20 +141,20 @@ void pci_mcf547x_8x_init(struct pci_controller *hose)
        hose->first_busno = 0;
        hose->last_busno = 0xff;
 
-       pci_set_region(hose->regions + 0, CFG_PCI_MEM_BUS, CFG_PCI_MEM_PHYS,
-                      CFG_PCI_MEM_SIZE, PCI_REGION_MEM);
+       pci_set_region(hose->regions + 0, CONFIG_SYS_PCI_MEM_BUS, CONFIG_SYS_PCI_MEM_PHYS,
+                      CONFIG_SYS_PCI_MEM_SIZE, PCI_REGION_MEM);
 
-       pci_set_region(hose->regions + 1, CFG_PCI_IO_BUS, CFG_PCI_IO_PHYS,
-                      CFG_PCI_IO_SIZE, PCI_REGION_IO);
+       pci_set_region(hose->regions + 1, CONFIG_SYS_PCI_IO_BUS, CONFIG_SYS_PCI_IO_PHYS,
+                      CONFIG_SYS_PCI_IO_SIZE, PCI_REGION_IO);
 
-       pci_set_region(hose->regions + 2, CFG_PCI_SYS_MEM_BUS,
-                      CFG_PCI_SYS_MEM_PHYS, CFG_PCI_SYS_MEM_SIZE,
+       pci_set_region(hose->regions + 2, CONFIG_SYS_PCI_SYS_MEM_BUS,
+                      CONFIG_SYS_PCI_SYS_MEM_PHYS, CONFIG_SYS_PCI_SYS_MEM_SIZE,
                       PCI_REGION_MEM | PCI_REGION_MEMORY);
 
        hose->region_count = 3;
 
        hose->cfg_addr = &(pci->car);
-       hose->cfg_data = (volatile unsigned char *)CFG_PCI_CFG_BUS;
+       hose->cfg_data = (volatile unsigned char *)CONFIG_SYS_PCI_CFG_BUS;
 
        pci_set_ops(hose, pci_read_cfg_byte, pci_read_cfg_word,
                    pci_read_cfg_dword, pci_write_cfg_byte, pci_write_cfg_word,
index 494f98f6691961aa152ca1ed484a29ba81140fdc..67e81894af4a23dc0059a270fb7ecfe84bb58755 100644 (file)
@@ -31,22 +31,22 @@ DECLARE_GLOBAL_DATA_PTR;
 static ulong timestamp;
 
 #if defined(CONFIG_SLTTMR)
-#ifndef CFG_UDELAY_BASE
+#ifndef CONFIG_SYS_UDELAY_BASE
 #      error   "uDelay base not defined!"
 #endif
 
-#if !defined(CFG_TMR_BASE) || !defined(CFG_INTR_BASE) || !defined(CFG_TMRINTR_NO) || !defined(CFG_TMRINTR_MASK)
+#if !defined(CONFIG_SYS_TMR_BASE) || !defined(CONFIG_SYS_INTR_BASE) || !defined(CONFIG_SYS_TMRINTR_NO) || !defined(CONFIG_SYS_TMRINTR_MASK)
 #      error   "TMR_BASE, INTR_BASE, TMRINTR_NO or TMRINTR_MASk not defined!"
 #endif
 extern void dtimer_intr_setup(void);
 
 void udelay(unsigned long usec)
 {
-       volatile slt_t *timerp = (slt_t *) (CFG_UDELAY_BASE);
+       volatile slt_t *timerp = (slt_t *) (CONFIG_SYS_UDELAY_BASE);
        u32 now, freq;
 
        /* 1 us period */
-       freq = CFG_TIMER_PRESCALER;
+       freq = CONFIG_SYS_TIMER_PRESCALER;
 
        timerp->cr = 0;         /* Disable */
        timerp->tcnt = usec * freq;
@@ -62,10 +62,10 @@ void udelay(unsigned long usec)
 
 void dtimer_interrupt(void *not_used)
 {
-       volatile slt_t *timerp = (slt_t *) (CFG_TMR_BASE);
+       volatile slt_t *timerp = (slt_t *) (CONFIG_SYS_TMR_BASE);
 
        /* check for timer interrupt asserted */
-       if ((CFG_TMRPND_REG & CFG_TMRINTR_MASK) == CFG_TMRINTR_PEND) {
+       if ((CONFIG_SYS_TMRPND_REG & CONFIG_SYS_TMRINTR_MASK) == CONFIG_SYS_TMRINTR_PEND) {
                timerp->sr |= SLT_SR_ST;
                timestamp++;
                return;
@@ -74,7 +74,7 @@ void dtimer_interrupt(void *not_used)
 
 void timer_init(void)
 {
-       volatile slt_t *timerp = (slt_t *) (CFG_TMR_BASE);
+       volatile slt_t *timerp = (slt_t *) (CONFIG_SYS_TMR_BASE);
 
        timestamp = 0;
 
@@ -83,10 +83,10 @@ void timer_init(void)
        timerp->sr = SLT_SR_BE | SLT_SR_ST;     /* clear status */
 
        /* initialize and enable timer interrupt */
-       irq_install_handler(CFG_TMRINTR_NO, dtimer_interrupt, 0);
+       irq_install_handler(CONFIG_SYS_TMRINTR_NO, dtimer_interrupt, 0);
 
        /* Interrupt every ms */
-       timerp->tcnt = 1000 * CFG_TIMER_PRESCALER;
+       timerp->tcnt = 1000 * CONFIG_SYS_TIMER_PRESCALER;
 
        dtimer_intr_setup();
 
index 28fe65729812e36c217c036250ff171fa99fe0ad..2cee4887ac9afe5d1924ab6178b3136433374f2d 100644 (file)
@@ -37,7 +37,7 @@ int get_clocks(void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
-       gd->bus_clk = CFG_CLK;
+       gd->bus_clk = CONFIG_SYS_CLK;
        gd->cpu_clk = (gd->bus_clk * 2);
 
 #ifdef CONFIG_FSL_I2C
index 87355f95813683eb75657a3f186a9b4263a37c04..41fc694ac310891df2b889a89ae84a1059223eb2 100644 (file)
@@ -29,9 +29,9 @@
 #endif
 
 /* last three long word reserved for cache status */
-#define ICACHE_STATUS  (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END- 4)
-#define DCACHE_STATUS  (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END- 8)
-#define CACR_STATUS    (CFG_INIT_RAM_ADDR+CFG_INIT_RAM_END-12)
+#define ICACHE_STATUS  (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END- 4)
+#define DCACHE_STATUS  (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END- 8)
+#define CACR_STATUS    (CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-12)
 
 #define _START _start
 #define _FAULT _fault
@@ -132,16 +132,16 @@ _start:
        move.w #0x2700,%sr              /* Mask off Interrupt */
 
        /* Set vector base register at the beginning of the Flash */
-       move.l  #CFG_FLASH_BASE, %d0
+       move.l  #CONFIG_SYS_FLASH_BASE, %d0
        movec   %d0, %VBR
 
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_RAM_CTRL), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
        movec   %d0, %RAMBAR0
 
-       move.l  #(CFG_INIT_RAM1_ADDR + CFG_INIT_RAM1_CTRL), %d0
+       move.l  #(CONFIG_SYS_INIT_RAM1_ADDR + CONFIG_SYS_INIT_RAM1_CTRL), %d0
        movec   %d0, %RAMBAR1
 
-       move.l  #CFG_MBAR, %d0          /* set MBAR address */
+       move.l  #CONFIG_SYS_MBAR, %d0           /* set MBAR address */
        move.c  %d0, %MBAR
 
        /* invalidate and disable cache */
@@ -164,7 +164,7 @@ _start:
 
        /* set stackpointer to end of internal ram to get some stackspace for the
           first c-code */
-       move.l  #(CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET), %sp
+       move.l  #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
        clr.l %sp@-
 
        move.l #__got_start, %a5        /* put relocation table address to a5 */
@@ -195,7 +195,7 @@ relocate_code:
        move.l 12(%a6), %d0             /* Save copy of Global Data pointer */
        move.l 16(%a6), %a0             /* Save copy of Destination Address */
 
-       move.l #CFG_MONITOR_BASE, %a1
+       move.l #CONFIG_SYS_MONITOR_BASE, %a1
        move.l #__init_end, %a2
        move.l %a0, %a3
 
@@ -210,7 +210,7 @@ relocate_code:
  * initialization, now running from RAM.
  */
        move.l  %a0, %a1
-       add.l   #(in_ram - CFG_MONITOR_BASE), %a1
+       add.l   #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
        jmp     (%a1)
 
 in_ram:
@@ -220,9 +220,9 @@ clear_bss:
         * Now clear BSS segment
         */
        move.l  %a0, %a1
-       add.l   #(_sbss - CFG_MONITOR_BASE),%a1
+       add.l   #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a0, %d1
-       add.l   #(_ebss - CFG_MONITOR_BASE),%d1
+       add.l   #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
 6:
        clr.l   (%a1)+
        cmp.l   %a1,%d1
@@ -232,11 +232,11 @@ clear_bss:
         * fix got table in RAM
         */
        move.l  %a0, %a1
-       add.l   #(__got_start - CFG_MONITOR_BASE),%a1
+       add.l   #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
        move.l  %a1,%a5         /* * fix got pointer register a5 */
 
        move.l  %a0, %a2
-       add.l   #(__got_end - CFG_MONITOR_BASE),%a2
+       add.l   #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
 
 7:
        move.l  (%a1),%d1
@@ -248,7 +248,7 @@ clear_bss:
 
        /* calculate relative jump to board_init_r in ram */
        move.l %a0, %a1
-       add.l #(board_init_r - CFG_MONITOR_BASE), %a1
+       add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
 
        /* set parameters for board_init_r */
        move.l %a0,-(%sp)               /* dest_addr */
@@ -281,7 +281,7 @@ _int_handler:
 /* cache functions */
        .globl  icache_enable
 icache_enable:
-       move.l  #(CFG_SDRAM_BASE + 0x1c000), %d0
+       move.l  #(CONFIG_SYS_SDRAM_BASE + 0x1c000), %d0
        movec   %d0, %ACR2                      /* Enable cache */
 
        move.l  #0x020C8100, %d0                /* Setup cache mask */
@@ -322,7 +322,7 @@ icache_status:
 dcache_enable:
        bsr     icache_disable
 
-       move.l  #(CFG_SDRAM_BASE + 0xc000), %d0
+       move.l  #(CONFIG_SYS_SDRAM_BASE + 0xc000), %d0
        movec   %d0, %ACR0                      /* Enable cache */
 
        move.l  #0xA30C8100, %d0                /* Invalidate cache cmd */
index d76b05a526291e8670d4274a4d8dd66b31de782f..0365de3a0b46ac7dccecebe8274dff55381405a1 100644 (file)
@@ -65,7 +65,7 @@ void _hw_exception_handler (void)
        hang ();
 }
 
-#ifdef CFG_USR_EXCEP
+#ifdef CONFIG_SYS_USR_EXCEP
 void _exception_handler (void)
 {
        puts ("User vector_exception\n");
index 26e88cb519bc6f0ca797bd16bfeb87aceddd2448..a6021c99c3b2ab6a563fdfb1acc14b2ce6ed3d30 100644 (file)
@@ -45,19 +45,19 @@ int disable_interrupts (void)
        return 0;
 }
 
-#ifdef CFG_INTC_0
-#ifdef CFG_TIMER_0
+#ifdef CONFIG_SYS_INTC_0
+#ifdef CONFIG_SYS_TIMER_0
 extern void timer_init (void);
 #endif
-#ifdef CFG_FSL_2
+#ifdef CONFIG_SYS_FSL_2
 extern void fsl_init2 (void);
 #endif
 
 
-static struct irq_action vecs[CFG_INTC_0_NUM];
+static struct irq_action vecs[CONFIG_SYS_INTC_0_NUM];
 
 /* mapping structure to interrupt controller */
-microblaze_intc_t *intc = (microblaze_intc_t *) (CFG_INTC_0_ADDR);
+microblaze_intc_t *intc = (microblaze_intc_t *) (CONFIG_SYS_INTC_0_ADDR);
 
 /* default handler */
 void def_hdlr (void)
@@ -100,7 +100,7 @@ void install_interrupt_handler (int irq, interrupt_handler_t * hdlr, void *arg)
 {
        struct irq_action *act;
        /* irq out of range */
-       if ((irq < 0) || (irq > CFG_INTC_0_NUM)) {
+       if ((irq < 0) || (irq > CONFIG_SYS_INTC_0_NUM)) {
                puts ("IRQ out of range\n");
                return;
        }
@@ -135,17 +135,17 @@ int interrupts_init (void)
 {
        int i;
        /* initialize irq list */
-       for (i = 0; i < CFG_INTC_0_NUM; i++) {
+       for (i = 0; i < CONFIG_SYS_INTC_0_NUM; i++) {
                vecs[i].handler = (interrupt_handler_t *) def_hdlr;
                vecs[i].arg = (void *)i;
                vecs[i].count = 0;
        }
        /* initialize intc controller */
        intc_init ();
-#ifdef CFG_TIMER_0
+#ifdef CONFIG_SYS_TIMER_0
        timer_init ();
 #endif
-#ifdef CFG_FSL_2
+#ifdef CONFIG_SYS_FSL_2
        fsl_init2 ();
 #endif
        enable_interrupts ();
@@ -191,7 +191,7 @@ void interrupt_handler (void)
 #endif
 
 #if defined(CONFIG_CMD_IRQ)
-#ifdef CFG_INTC_0
+#ifdef CONFIG_SYS_INTC_0
 int do_irqinfo (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        int i;
@@ -201,7 +201,7 @@ int do_irqinfo (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
              "Nr  Routine   Arg       Count\n"
              "-----------------------------\n");
 
-       for (i = 0; i < CFG_INTC_0_NUM; i++) {
+       for (i = 0; i < CONFIG_SYS_INTC_0_NUM; i++) {
                if (act->handler != (interrupt_handler_t*) def_hdlr) {
                        printf ("%02d  %08x  %08x  %d\n", i,
                                (int)act->handler, (int)act->arg, act->count);
index 8740284ad844d5d239828aeaf449329eb908ad16..2e9a08dc54d39422ca21ec6045f5ba4c14e36161 100644 (file)
@@ -30,7 +30,7 @@
        .global _start
 _start:
        mts     rmsr, r0        /* disable cache */
-       addi    r1, r0, CFG_INIT_SP_OFFSET
+       addi    r1, r0, CONFIG_SYS_INIT_SP_OFFSET
        addi    r1, r1, -4      /* Decrement SP to top of memory */
        /* add opcode instruction for 32bit jump - 2 instruction imm & brai*/
        addi    r6, r0, 0xb0000000      /* hex b000 opcode imm */
@@ -45,9 +45,9 @@ _start:
        swi     r6, r0, 0x14    /* interrupt */
        swi     r6, r0, 0x24    /* hardware exception */
 
-#ifdef CFG_RESET_ADDRESS
+#ifdef CONFIG_SYS_RESET_ADDRESS
        /* reset address */
-       addik   r6, r0, CFG_RESET_ADDRESS
+       addik   r6, r0, CONFIG_SYS_RESET_ADDRESS
        sw      r6, r1, r0
        lhu     r7, r1, r0
        shi     r7, r0, 0x2
@@ -56,11 +56,11 @@ _start:
  * Copy U-Boot code to TEXT_BASE
  * solve problem with sbrk_base
  */
-#if (CFG_RESET_ADDRESS != TEXT_BASE)
+#if (CONFIG_SYS_RESET_ADDRESS != TEXT_BASE)
        addi    r4, r0, __end
        addi    r5, r0, __text_start
        rsub    r4, r5, r4      /* size = __end - __text_start */
-       addi    r6, r0, CFG_RESET_ADDRESS       /* source address */
+       addi    r6, r0, CONFIG_SYS_RESET_ADDRESS        /* source address */
        addi    r7, r0, 0       /* counter */
 4:
        lw      r8, r6, r7
@@ -71,7 +71,7 @@ _start:
 #endif
 #endif
 
-#ifdef CFG_USR_EXCEP
+#ifdef CONFIG_SYS_USR_EXCEP
        /* user_vector_exception */
        addik   r6, r0, _exception_handler
        sw      r6, r1, r0
@@ -80,7 +80,7 @@ _start:
        shi     r6, r0, 0xe
 #endif
 
-#ifdef CFG_INTC_0
+#ifdef CONFIG_SYS_INTC_0
        /* interrupt_handler */
        addik   r6, r0, _interrupt_handler
        sw      r6, r1, r0
index b350453443e8d09fbfdaa979df50284df1f57cd7..a91eabc64280a84f5219f14b11fae9f6b0bcdf53 100644 (file)
@@ -33,7 +33,7 @@ void reset_timer (void)
        timestamp = 0;
 }
 
-#ifdef CFG_TIMER_0
+#ifdef CONFIG_SYS_TIMER_0
 ulong get_timer (ulong base)
 {
        return (timestamp - base);
@@ -50,9 +50,9 @@ void set_timer (ulong t)
        timestamp = t;
 }
 
-#ifdef CFG_INTC_0
-#ifdef CFG_TIMER_0
-microblaze_timer_t *tmr = (microblaze_timer_t *) (CFG_TIMER_0_ADDR);
+#ifdef CONFIG_SYS_INTC_0
+#ifdef CONFIG_SYS_TIMER_0
+microblaze_timer_t *tmr = (microblaze_timer_t *) (CONFIG_SYS_TIMER_0_ADDR);
 
 void timer_isr (void *arg)
 {
@@ -62,12 +62,12 @@ void timer_isr (void *arg)
 
 void timer_init (void)
 {
-       tmr->loadreg = CFG_TIMER_0_PRELOAD;
+       tmr->loadreg = CONFIG_SYS_TIMER_0_PRELOAD;
        tmr->control = TIMER_INTERRUPT | TIMER_RESET;
        tmr->control =
            TIMER_ENABLE | TIMER_ENABLE_INTR | TIMER_RELOAD | TIMER_DOWN_COUNT;
        reset_timer ();
-       install_interrupt_handler (CFG_TIMER_0_IRQ, timer_isr, (void *)tmr);
+       install_interrupt_handler (CONFIG_SYS_TIMER_0_IRQ, timer_isr, (void *)tmr);
 }
 #endif
 #endif
index d0cf8e0c1bdfa68e31245580a11362293dc7fedf..8ddc06a2d59b63040abc676519fb4d3abc2470c0 100644 (file)
@@ -23,7 +23,7 @@
  */
 #include <config.h>
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 #error "PHY not supported yet"
 /* We just assume that we are running 100FD for now */
 /* We all use switches, right? ;-) */
index e8baab5b1f53f1529ef0584e6b368e928fd1cdf9..c25ba5a5b3fc01130998fb652670094051aee72a 100644 (file)
@@ -76,7 +76,7 @@ void serial_setbrg (void)
        sd = (*sys_powerctrl & 0x03) + 2;
 
        /* calulate 2x baudrate and round */
-       divisorx2 = ((CFG_MIPS_TIMER_FREQ/(sd * 16 * CONFIG_BAUDRATE)));
+       divisorx2 = ((CONFIG_SYS_MIPS_TIMER_FREQ/(sd * 16 * CONFIG_BAUDRATE)));
 
        if (divisorx2 & 0x01)
                divisorx2 = divisorx2 + 1;
index ee5d411e4b6291f0b91b55f3af189208a7eb5dab..ff4f11cf7878e9718bb372b1a4dc3c39c0491f67 100644 (file)
@@ -208,9 +208,9 @@ LEAF(mips_init_dcache)
 */
 NESTED(mips_cache_reset, 0, ra)
        move    RA, ra
-       li      t2, CFG_ICACHE_SIZE
-       li      t3, CFG_DCACHE_SIZE
-       li      t4, CFG_CACHELINE_SIZE
+       li      t2, CONFIG_SYS_ICACHE_SIZE
+       li      t3, CONFIG_SYS_DCACHE_SIZE
+       li      t4, CONFIG_SYS_CACHELINE_SIZE
        move    t5, t4
 
        li      v0, MIPS_MAX_CACHE_SIZE
@@ -302,7 +302,7 @@ LEAF(dcache_enable)
        jr      ra
        END(dcache_enable)
 
-#ifdef CFG_INIT_RAM_LOCK_MIPS
+#ifdef CONFIG_SYS_INIT_RAM_LOCK_MIPS
 /*******************************************************************************
 *
 * mips_cache_lock - lock RAM area pointed to by a0 in cache.
@@ -311,9 +311,9 @@ LEAF(dcache_enable)
 *
 */
 #if defined(CONFIG_PURPLE)
-# define       CACHE_LOCK_SIZE (CFG_DCACHE_SIZE/2)
+# define       CACHE_LOCK_SIZE (CONFIG_SYS_DCACHE_SIZE/2)
 #else
-# define       CACHE_LOCK_SIZE (CFG_DCACHE_SIZE)
+# define       CACHE_LOCK_SIZE (CONFIG_SYS_DCACHE_SIZE)
 #endif
        .globl  mips_cache_lock
        .ent    mips_cache_lock
@@ -321,11 +321,11 @@ mips_cache_lock:
        li      a1, CKSEG0 - CACHE_LOCK_SIZE
        addu    a0, a1
        li      a2, CACHE_LOCK_SIZE
-       li      a3, CFG_CACHELINE_SIZE
+       li      a3, CONFIG_SYS_CACHELINE_SIZE
        move    a1, a2
        icacheop(a0,a1,a2,a3,0x1d)
 
        jr      ra
 
        .end    mips_cache_lock
-#endif /* CFG_INIT_RAM_LOCK_MIPS */
+#endif /* CONFIG_SYS_INIT_RAM_LOCK_MIPS */
index 0f58d25b892bbcc77ee3436c232d7ecdbadcc89a..38d869797a7c791007c3f73827d2f81165a2c2da 100644 (file)
@@ -51,7 +51,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 void flush_cache(ulong start_addr, ulong size)
 {
-       unsigned long lsize = CFG_CACHELINE_SIZE;
+       unsigned long lsize = CONFIG_SYS_CACHELINE_SIZE;
        unsigned long addr = start_addr & ~(lsize - 1);
        unsigned long aend = (start_addr + size - 1) & ~(lsize - 1);
 
index 09e4aab2505957014732b7be7f3c9df2c41887cf..6a22302a081211cc50d07993f7ad3aeb87e4c2a1 100644 (file)
@@ -274,14 +274,14 @@ reset:
 
        /* Set up temporary stack.
         */
-#ifdef CFG_INIT_RAM_LOCK_MIPS
-       li      a0, CFG_INIT_SP_OFFSET
+#ifdef CONFIG_SYS_INIT_RAM_LOCK_MIPS
+       li      a0, CONFIG_SYS_INIT_SP_OFFSET
        la      t9, mips_cache_lock
        jalr    t9
        nop
 #endif
 
-       li      t0, CFG_SDRAM_BASE + CFG_INIT_SP_OFFSET
+       li      t0, CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_INIT_SP_OFFSET
        la      sp, 0(t0)
 
        la      t9, board_init_f
@@ -303,7 +303,7 @@ reset:
 relocate_code:
        move    sp, a0          /* Set new stack pointer        */
 
-       li      t0, CFG_MONITOR_BASE
+       li      t0, CONFIG_SYS_MONITOR_BASE
        la      t3, in_ram
        lw      t2, -12(t3)     /* t2 <-- uboot_end_data        */
        move    t1, a2
@@ -311,10 +311,10 @@ relocate_code:
        /*
         * Fix $gp:
         *
-        * New $gp = (Old $gp - CFG_MONITOR_BASE) + Destination Address
+        * New $gp = (Old $gp - CONFIG_SYS_MONITOR_BASE) + Destination Address
         */
        move    t6, gp
-       sub     gp, CFG_MONITOR_BASE
+       sub     gp, CONFIG_SYS_MONITOR_BASE
        add     gp, a2          /* gp now adjusted              */
        sub     t6, gp, t6      /* t6 <-- relocation offset     */
 
index d432d995a7ae7b11306e544d65935af3b26f5db1..9b5973803dbe47bd802f6afdd71f3606e7a83f3c 100644 (file)
@@ -41,7 +41,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int checkcpu (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        ulong clock = gd->cpu_clk;
        u32 pvr = get_pvr ();
        u32 spridr = immr->sysconf.spridr;
@@ -75,7 +75,7 @@ int
 do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        ulong msr;
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /* Interrupts and MMU off */
        __asm__ __volatile__ ("mfmsr    %0":"=r" (msr):);
@@ -122,7 +122,7 @@ void watchdog_reset (void)
        int re_enable = disable_interrupts ();
 
        /* Reset watchdog */
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        immr->wdt.swsrr = 0x556c;
        immr->wdt.swsrr = 0xaa39;
 
index d6949f6bba0ba99a7f61656ba2516f1ce618027a..fa753c8e70e2632888b8906c637f130893b7355c 100644 (file)
@@ -37,23 +37,23 @@ void cpu_init_f (volatile immap_t * im)
        u32 ips_div;
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
 
        /* system performance tweaking */
 
-#ifdef CFG_ACR_PIPE_DEP
+#ifdef CONFIG_SYS_ACR_PIPE_DEP
        /* Arbiter pipeline depth */
        im->arbiter.acr = (im->arbiter.acr & ~ACR_PIPE_DEP) |
-                         (CFG_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
+                         (CONFIG_SYS_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
 #endif
 
-#ifdef CFG_ACR_RPTCNT
+#ifdef CONFIG_SYS_ACR_RPTCNT
        /* Arbiter repeat count */
        im->arbiter.acr = ((im->arbiter.acr & ~(ACR_RPTCNT)) |
-                          (CFG_ACR_RPTCNT << ACR_RPTCNT_SHIFT));
+                          (CONFIG_SYS_ACR_RPTCNT << ACR_RPTCNT_SHIFT));
 #endif
 
        /* RSR - Reset Status Register - clear all status */
index 56ba44372694ac44b2246a5ef854600b9c2c5aac..77a6f0dc48fc8bd2af3d40de284e763c7b6ad174 100644 (file)
@@ -32,7 +32,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #include <mpc512x.h>
 #include <i2c.h>
 
-#define immr ((immap_t *)CFG_IMMR)
+#define immr ((immap_t *)CONFIG_SYS_IMMR)
 
 /* by default set I2C bus 0 active */
 static unsigned int bus_num = 0;
@@ -422,7 +422,7 @@ unsigned int i2c_get_bus_speed (void)
 
 int i2c_set_bus_speed (unsigned int speed)
 {
-       if (speed != CFG_I2C_SPEED)
+       if (speed != CONFIG_SYS_I2C_SPEED)
                return -1;
 
        return 0;
index 8cc241c8998d33a3b74fb90370828acdb77dc523..ef7c773b2b882e183d97671da1833a5666da8db3 100644 (file)
@@ -37,7 +37,7 @@ struct irq_action {
 
 int interrupt_init_cpu (unsigned *decrementer_count)
 {
-       *decrementer_count = get_tbclk () / CFG_HZ;
+       *decrementer_count = get_tbclk () / CONFIG_SYS_HZ;
 
        return 0;
 }
index 3d7042dfb38dc27571c72d9923b89f835352dccd..78f4fa1e8cc6190d9dd3c5bcec10036c943c7e92 100644 (file)
@@ -29,7 +29,7 @@ void iopin_initialize(iopin_t *ioregs_init, int len)
 {
        short i, j, p;
        u_long *reg;
-       immap_t *im = (immap_t *)CFG_IMMR;
+       immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
 
        reg = (u_long *)&(im->io_ctrl.regs[0]);
 
index 8a214041ad8cef18b52e2a570cb8517f17927e26..7db87a80a1a0a6d4caf1e82e35a881f84d571292 100644 (file)
@@ -37,7 +37,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static void fifo_init (volatile psc512x_t *psc)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
 
        /* reset Rx & Tx fifo slice */
        psc->rfcmd = PSC_FIFO_RESET_SLICE;
@@ -60,7 +60,7 @@ static void fifo_init (volatile psc512x_t *psc)
 
 int serial_init(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
        unsigned long baseclk;
        int div;
@@ -106,7 +106,7 @@ int serial_init(void)
 
 void serial_putc (const char c)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
 
        if (c == '\n')
@@ -121,7 +121,7 @@ void serial_putc (const char c)
 
 void serial_putc_raw (const char c)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
 
        /* Wait for last character to go. */
@@ -141,7 +141,7 @@ void serial_puts (const char *s)
 
 int serial_getc (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
 
        /* Wait for a character to arrive. */
@@ -153,7 +153,7 @@ int serial_getc (void)
 
 int serial_tstc (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
 
        return !(psc->rfstat & PSC_FIFO_EMPTY);
@@ -161,7 +161,7 @@ int serial_tstc (void)
 
 void serial_setbrg (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
        unsigned long baseclk, div;
 
@@ -174,7 +174,7 @@ void serial_setbrg (void)
 
 void serial_setrts(int s)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
 
        if (s) {
@@ -189,7 +189,7 @@ void serial_setrts(int s)
 
 int serial_getcts(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile psc512x_t *psc = (psc512x_t *) &im->psc[CONFIG_PSC_CONSOLE];
 
        return (psc->ip & 0x1) ? 0 : 1;
index e62477bc0b422f075a61ff41625a5caf7d2984c5..baf6215418f5726dbcdd337f029c8165df6a1498 100644 (file)
@@ -62,13 +62,13 @@ static int sys_dividors[][2] = {
 
 int get_clocks (void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u8 spmf;
        u8 cpmf;
        u8 sys_div;
        u8 ips_div;
        u8 pci_div;
-       u32 ref_clk = CFG_MPC512X_CLKIN;
+       u32 ref_clk = CONFIG_SYS_MPC512X_CLKIN;
        u32 spll;
        u32 sys_clk;
        u32 core_clk;
index fb8acb5df6bb801803783a5da3d3f211242ac0d4..26f3c5237e1f328dc21aa56d48d73d4100cd55ac 100644 (file)
@@ -192,8 +192,8 @@ boot_cold:
 
        /* Set IMMR area to our preferred location */
        lis     r4, CONFIG_DEFAULT_IMMR@h
-       lis     r3, CFG_IMMR@h
-       ori     r3, r3, CFG_IMMR@l
+       lis     r3, CONFIG_SYS_IMMR@h
+       ori     r3, r3, CONFIG_SYS_IMMR@l
        stw     r3, IMMRBAR(r4)
        mtspr   MBAR, r3                /* IMMRBAR is mirrored into the MBAR SPR (311) */
 
@@ -208,18 +208,18 @@ boot_cold:
         */
 
        /* Boot CS/CS0 window range */
-       lis     r3, CFG_IMMR@h
-       ori     r3, r3, CFG_IMMR@l
+       lis     r3, CONFIG_SYS_IMMR@h
+       ori     r3, r3, CONFIG_SYS_IMMR@l
 
-       lis     r4, START_REG(CFG_FLASH_BASE)
-       ori     r4, r4, STOP_REG(CFG_FLASH_BASE, CFG_FLASH_SIZE)
+       lis     r4, START_REG(CONFIG_SYS_FLASH_BASE)
+       ori     r4, r4, STOP_REG(CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_SIZE)
        stw     r4, LPCS0AW(r3)
 
        /*
         * The SRAM window has a fixed size (256K), so only the start address
         * is necessary
         */
-       lis     r4, START_REG(CFG_SRAM_BASE) & 0xff00
+       lis     r4, START_REG(CONFIG_SYS_SRAM_BASE) & 0xff00
        stw     r4, SRAMBAR(r3)
 
        /*
@@ -234,11 +234,11 @@ boot_cold:
         * Set configuration of the Boot/CS0, the SRAM window does not have a
         * config register so no params can be set for it
         */
-       lis     r3, (CFG_IMMR + LPC_OFFSET)@h
-       ori     r3, r3, (CFG_IMMR + LPC_OFFSET)@l
+       lis     r3, (CONFIG_SYS_IMMR + LPC_OFFSET)@h
+       ori     r3, r3, (CONFIG_SYS_IMMR + LPC_OFFSET)@l
 
-       lis     r4, CFG_CS0_CFG@h
-       ori     r4, r4, CFG_CS0_CFG@l
+       lis     r4, CONFIG_SYS_CS0_CFG@h
+       ori     r4, r4, CONFIG_SYS_CS0_CFG@l
        stw     r4, CS0_CONFIG(r3)
 
        /* Master enable all CS's */
@@ -246,15 +246,15 @@ boot_cold:
        ori     r4, r4, CS_CTRL_ME@l
        stw     r4, CS_CTRL(r3)
 
-       lis     r4, (CFG_MONITOR_BASE)@h
-       ori     r4, r4, (CFG_MONITOR_BASE)@l
+       lis     r4, (CONFIG_SYS_MONITOR_BASE)@h
+       ori     r4, r4, (CONFIG_SYS_MONITOR_BASE)@l
        addi    r5, r4, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr    r5
        blr
 
 in_flash:
-       lis     r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@h
-       ori     r1, r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@l
+       lis     r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@h
+       ori     r1, r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@l
 
        li      r0, 0           /* Make room for stack frame header and */
        stwu    r0, -4(r1)      /* clear final stack frame so that      */
@@ -268,7 +268,7 @@ in_flash:
        GET_GOT                 /* initialize GOT access        */
 
        /* r3: IMMR */
-       lis     r3, CFG_IMMR@h
+       lis     r3, CONFIG_SYS_IMMR@h
        /* run low-level CPU init code (in Flash) */
        bl      cpu_init_f
 
@@ -353,12 +353,12 @@ cpu_early_init:
        SYNC
        mtspr   SRR1, r3                        /* Mirror current MSR state in SRR1 */
 
-       lis     r3, CFG_IMMR@h
+       lis     r3, CONFIG_SYS_IMMR@h
 
 #if defined(CONFIG_WATCHDOG)
        /* Initialise the watchdog and reset it */
        /*--------------------------------------*/
-       lis r4, CFG_WATCHDOG_VALUE
+       lis r4, CONFIG_SYS_WATCHDOG_VALUE
        ori r4, r4, (SWCRR_SWEN | SWCRR_SWRI | SWCRR_SWPR)
        stw r4, SWCRR(r3)
 
@@ -386,18 +386,18 @@ cpu_early_init:
        /* Initialize the Hardware Implementation-dependent Registers */
        /* HID0 also contains cache control                     */
        /*------------------------------------------------------*/
-       lis     r3, CFG_HID0_INIT@h
-       ori     r3, r3, CFG_HID0_INIT@l
+       lis     r3, CONFIG_SYS_HID0_INIT@h
+       ori     r3, r3, CONFIG_SYS_HID0_INIT@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID0_FINAL@h
-       ori     r3, r3, CFG_HID0_FINAL@l
+       lis     r3, CONFIG_SYS_HID0_FINAL@h
+       ori     r3, r3, CONFIG_SYS_HID0_FINAL@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID2@h
-       ori     r3, r3, CFG_HID2@l
+       lis     r3, CONFIG_SYS_HID2@h
+       ori     r3, r3, CONFIG_SYS_HID2@l
        SYNC
        mtspr   HID2, r3
        sync
@@ -499,16 +499,16 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address */
 
        mr      r3,  r5                         /* Destination Address */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE)
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE)
         *              + Destination Address
         *
         * Offset:
index 4bef90c48ad97755ce644736a31d1054df0baf6f..7fffebcc1e552d16c9d3da573b697b2063bb6932 100644 (file)
@@ -80,7 +80,7 @@ void watchdog_reset (void)
 {
        int re_enable = disable_interrupts ();
 
-       reset_5xx_watchdog ((immap_t *) CFG_IMMR);
+       reset_5xx_watchdog ((immap_t *) CONFIG_SYS_IMMR);
        if (re_enable)
                enable_interrupts ();
 }
@@ -103,14 +103,14 @@ void reset_5xx_watchdog (volatile immap_t * immr)
  */
 unsigned long get_tbclk (void)
 {
-       volatile immap_t *immr = (volatile immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *) CONFIG_SYS_IMMR;
        ulong oscclk, factor;
 
        if (immr->im_clkrst.car_sccr & SCCR_TBS) {
                return (gd->cpu_clk / 16);
        }
 
-       factor = (((CFG_PLPRCR) & PLPRCR_MF_MSK) >> PLPRCR_MF_SHIFT) + 1;
+       factor = (((CONFIG_SYS_PLPRCR) & PLPRCR_MF_MSK) >> PLPRCR_MF_SHIFT) + 1;
 
        oscclk = gd->cpu_clk / factor;
 
@@ -141,7 +141,7 @@ int dcache_status (void)
 int do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
 #if defined(CONFIG_PATI)
-       volatile ulong *addr = (ulong *) CFG_RESET_ADDRESS;
+       volatile ulong *addr = (ulong *) CONFIG_SYS_RESET_ADDRESS;
        *addr = 1;
 #else
        ulong addr;
@@ -155,15 +155,15 @@ int do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
         * Trying to execute the next instruction at a non-existing address
         * should cause a machine check, resulting in reset
         */
-#ifdef CFG_RESET_ADDRESS
-       addr = CFG_RESET_ADDRESS;
+#ifdef CONFIG_SYS_RESET_ADDRESS
+       addr = CONFIG_SYS_RESET_ADDRESS;
 #else
        /*
-        * note: when CFG_MONITOR_BASE points to a RAM address, CFG_MONITOR_BASE         * - sizeof (ulong) is usually a valid address. Better pick an address
-        * known to be invalid on your system and assign it to CFG_RESET_ADDRESS.
+        * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address, CONFIG_SYS_MONITOR_BASE         * - sizeof (ulong) is usually a valid address. Better pick an address
+        * known to be invalid on your system and assign it to CONFIG_SYS_RESET_ADDRESS.
         * "(ulong)-1" used to be a good choice for many systems...
         */
-       addr = CFG_MONITOR_BASE - sizeof (ulong);
+       addr = CONFIG_SYS_MONITOR_BASE - sizeof (ulong);
 #endif
        ((void (*) (void)) addr) ();
 #endif  /* #if defined(CONFIG_PATI) */
index 5bbb7986b483c81a75d3b345e05baecc6e802db8..cb4bf84737a874fd998328bb9539a83ca4e6bfab 100644 (file)
@@ -41,74 +41,74 @@ void cpu_init_f (volatile immap_t * immr)
 
        /* SYPCR - contains watchdog control. This will enable watchdog */
        /* if CONFIG_WATCHDOG is set */
-       immr->im_siu_conf.sc_sypcr = CFG_SYPCR;
+       immr->im_siu_conf.sc_sypcr = CONFIG_SYS_SYPCR;
 
 #if defined(CONFIG_WATCHDOG)
        reset_5xx_watchdog (immr);
 #endif
 
        /* SIUMCR - contains debug pin configuration */
-       immr->im_siu_conf.sc_siumcr |= CFG_SIUMCR;
+       immr->im_siu_conf.sc_siumcr |= CONFIG_SYS_SIUMCR;
 
        /* Initialize timebase. Unlock TBSCRK */
        immr->im_sitk.sitk_tbscrk = KAPWR_KEY;
-       immr->im_sit.sit_tbscr = CFG_TBSCR;
+       immr->im_sit.sit_tbscr = CONFIG_SYS_TBSCR;
 
        /* Full IMB bus speed */
-       immr->im_uimb.uimb_umcr = CFG_UMCR;
+       immr->im_uimb.uimb_umcr = CONFIG_SYS_UMCR;
 
        /* Time base and decrementer will be enables (TBE) */
        /* in init_timebase() in time.c called from board_init_f(). */
 
        /* Initialize the PIT. Unlock PISCRK */
        immr->im_sitk.sitk_piscrk = KAPWR_KEY;
-       immr->im_sit.sit_piscr = CFG_PISCR;
+       immr->im_sit.sit_piscr = CONFIG_SYS_PISCR;
 
 #if !defined(CONFIG_PATI)
        /* PATI sest PLL in start.S */
        /* PLL (CPU clock) settings */
        immr->im_clkrstk.cark_plprcrk = KAPWR_KEY;
 
-       /* If CFG_PLPRCR (set in the various *_config.h files) tries to
-        * set the MF field, then just copy CFG_PLPRCR over car_plprcr,
-        * otherwise OR in CFG_PLPRCR so we do not change the currentMF
+       /* If CONFIG_SYS_PLPRCR (set in the various *_config.h files) tries to
+        * set the MF field, then just copy CONFIG_SYS_PLPRCR over car_plprcr,
+        * otherwise OR in CONFIG_SYS_PLPRCR so we do not change the currentMF
         * field value.
         */
-#if ((CFG_PLPRCR & PLPRCR_MF_MSK) != 0)
-       reg = CFG_PLPRCR;                       /* reset control bits   */
+#if ((CONFIG_SYS_PLPRCR & PLPRCR_MF_MSK) != 0)
+       reg = CONFIG_SYS_PLPRCR;                        /* reset control bits   */
 #else
        reg = immr->im_clkrst.car_plprcr;
        reg &= PLPRCR_MF_MSK;                   /* isolate MF field */
-       reg |= CFG_PLPRCR;                      /* reset control bits   */
+       reg |= CONFIG_SYS_PLPRCR;                       /* reset control bits   */
 #endif
        immr->im_clkrst.car_plprcr = reg;
 
 #endif /* !defined(CONFIG_PATI) */
 
-       /* System integration timers. CFG_MASK has EBDF configuration */
+       /* System integration timers. CONFIG_SYS_MASK has EBDF configuration */
        immr->im_clkrstk.cark_sccrk = KAPWR_KEY;
        reg = immr->im_clkrst.car_sccr;
        reg &= SCCR_MASK;
-       reg |= CFG_SCCR;
+       reg |= CONFIG_SYS_SCCR;
        immr->im_clkrst.car_sccr = reg;
 
        /* Memory Controller */
-       memctl->memc_br0 = CFG_BR0_PRELIM;
-       memctl->memc_or0 = CFG_OR0_PRELIM;
+       memctl->memc_br0 = CONFIG_SYS_BR0_PRELIM;
+       memctl->memc_or0 = CONFIG_SYS_OR0_PRELIM;
 
-#if (defined(CFG_OR1_PRELIM) && defined(CFG_BR1_PRELIM))
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+#if (defined(CONFIG_SYS_OR1_PRELIM) && defined(CONFIG_SYS_BR1_PRELIM))
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 #endif
 
-#if defined(CFG_OR2_PRELIM) && defined(CFG_BR2_PRELIM)
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 #endif
 
-#if defined(CFG_OR3_PRELIM) && defined(CFG_BR3_PRELIM)
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+#if defined(CONFIG_SYS_OR3_PRELIM) && defined(CONFIG_SYS_BR3_PRELIM)
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 #endif
 
 }
index a4f47c74b5d6f3b9ed98375251aa14ff7b21e0eb..167543fcf53789ad1b51733f428a1a253f308417 100644 (file)
@@ -52,11 +52,11 @@ static struct interrupt_action irq_vecs[NR_IRQS];
 
 int interrupt_init_cpu (ulong *decrementer_count)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int vec;
 
        /* Decrementer used here for status led */
-       *decrementer_count = get_tbclk () / CFG_HZ;
+       *decrementer_count = get_tbclk () / CONFIG_SYS_HZ;
 
        /* Disable all interrupts */
        immr->im_siu_conf.sc_simask = 0;
@@ -74,7 +74,7 @@ int interrupt_init_cpu (ulong *decrementer_count)
  */
 void external_interrupt (struct pt_regs *regs)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int irq;
        ulong simask, newmask;
        ulong vec, v_bit;
@@ -130,7 +130,7 @@ void external_interrupt (struct pt_regs *regs)
 void irq_install_handler (int vec, interrupt_handler_t * handler,
                                                  void *arg)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        /* SIU interrupt */
        if (irq_vecs[vec].handler != NULL) {
                printf ("SIU interrupt %d 0x%x\n",
@@ -148,7 +148,7 @@ void irq_install_handler (int vec, interrupt_handler_t * handler,
 
 void irq_free_handler (int vec)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        /* SIU interrupt */
 #if 0
        printf ("Free CPM interrupt for vector %d\n",
@@ -165,7 +165,7 @@ void irq_free_handler (int vec)
  */
 void timer_interrupt_cpu (struct pt_regs *regs)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
 #if 0
        printf ("*** Timer Interrupt *** ");
index 39f57a121029ea6ed51c174a7195c65fb14a5047..88c6db81cb255c238f05b7f31de6d04e2c75e575 100644 (file)
@@ -48,7 +48,7 @@ static int ready_to_send(void);
 
 int serial_init (void)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
        serial_setbrg();
 
@@ -65,7 +65,7 @@ int serial_init (void)
 
 void serial_putc(const char c)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
        /* Test for completition */
        if(ready_to_send()) {
@@ -87,7 +87,7 @@ void serial_putc(const char c)
 
 int serial_getc(void)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile short status;
        unsigned char tmp;
 
@@ -115,7 +115,7 @@ int serial_getc(void)
 
 int serial_tstc()
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        short status;
 
        /* New data character ? */
@@ -129,7 +129,7 @@ int serial_tstc()
 
 void serial_setbrg (void)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        short scxbr;
 
        /* Set baudrate */
@@ -151,7 +151,7 @@ void serial_puts (const char *s)
 
 int ready_to_send(void)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile short status;
 
        do {
index 7b7c5b961921e9cfe0627850de39c2f9e3e41d40..ea5c1dead57214b55f293bc29bd184ca6ff6a1ae 100644 (file)
@@ -38,14 +38,14 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 int get_clocks (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
 #ifndef        CONFIG_5xx_GCLK_FREQ
        uint divf = (immr->im_clkrst.car_plprcr & PLPRCR_DIVF_MSK);
        uint mf = ((immr->im_clkrst.car_plprcr & PLPRCR_MF_MSK) >> PLPRCR_MF_SHIFT);
        ulong vcoout;
 
-       vcoout = (CFG_OSC_CLK / (divf + 1)) * (mf + 1) * 2;
+       vcoout = (CONFIG_SYS_OSC_CLK / (divf + 1)) * (mf + 1) * 2;
        if(immr->im_clkrst.car_plprcr & PLPRCR_CSRC_MSK) {
                gd->cpu_clk = vcoout / (2^(((immr->im_clkrst.car_sccr & SCCR_DFNL_MSK) >> SCCR_DFNL_SHIFT) + 1));
        } else {
index 3c187bee5909fc30e5b3537d411e5048ebb7827d..3ca15ea83860472ebd6d97afc573695f53d69a4a 100644 (file)
@@ -111,7 +111,7 @@ void spi_init_f (void)
        volatile immap_t *immr;
        volatile qsmcm5xx_t *qsmcm;
 
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        qsmcm = (qsmcm5xx_t *)&immr->im_qsmcm;
 
        qsmcm->qsmcm_qsmcr = 0; /* all accesses enabled */
@@ -128,7 +128,7 @@ void spi_init_f (void)
         * PQSPAR[06] = 1 [0x0200] -> PERI: (SPIMOSI)
         * PQSPAR[07] = 1 [0x0100] -> PERI: (SPIMISO)
         * -------------------------------------------- */
-       qsmcm->qsmcm_pqspar =  0x3 | (CFG_SPI_CS_USED << 3);
+       qsmcm->qsmcm_pqspar =  0x3 | (CONFIG_SYS_SPI_CS_USED << 3);
 
         /* --------------------------------------------
         * DDRQS[00] = 0 reserved
@@ -160,7 +160,7 @@ void spi_init_f (void)
         * PORTQS[14] = 0 [0x0002] -> SPIMOSI Output
         * PORTQS[15] = 0 [0x0001] -> SPIMISO Input
         * -------------------------------------------- */
-       qsmcm->qsmcm_portqs |= (CFG_SPI_CS_BASE << 3);
+       qsmcm->qsmcm_portqs |= (CONFIG_SYS_SPI_CS_BASE << 3);
        /* --------------------------------------------
         * Controll Register 0
         * SPCR0[00] = 1 (0x8000) Master
@@ -235,7 +235,7 @@ ssize_t short_spi_write (uchar *addr, int alen, uchar *buffer, int len)
        volatile immap_t *immr;
        volatile qsmcm5xx_t *qsmcm;
 
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        qsmcm = (qsmcm5xx_t *)&immr->im_qsmcm;
        for(i=0;i<32;i++) {
                 qsmcm->qsmcm_recram[i]=0x0000;
@@ -308,7 +308,7 @@ ssize_t short_spi_read (uchar *addr, int alen, uchar *buffer, int len)
        volatile immap_t *immr;
        volatile qsmcm5xx_t *qsmcm;
 
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        qsmcm = (qsmcm5xx_t *)&immr->im_qsmcm;
 
        for(i=0;i<32;i++) {
@@ -364,15 +364,15 @@ ssize_t spi_xfer (size_t count)
        int i;
        int tm;
        ushort status;
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        qsmcm = (qsmcm5xx_t *)&immr->im_qsmcm;
        DPRINT (("*** spi_xfer entered count %d***\n",count));
 
        /* Set CS for device */
        for(i=0;i<(count-1);i++)
-               qsmcm->qsmcm_comdram[i] = 0x80 | CFG_SPI_CS_ACT;  /* CS3 is connected to the SPI EEPROM */
+               qsmcm->qsmcm_comdram[i] = 0x80 | CONFIG_SYS_SPI_CS_ACT;  /* CS3 is connected to the SPI EEPROM */
 
-       qsmcm->qsmcm_comdram[i] = CFG_SPI_CS_ACT; /* CS3 is connected to the SPI EEPROM */
+       qsmcm->qsmcm_comdram[i] = CONFIG_SYS_SPI_CS_ACT; /* CS3 is connected to the SPI EEPROM */
        qsmcm->qsmcm_spcr2=((count-1)&0x1F)<<8;
 
        DPRINT (("*** spi_xfer: Bytes to be xferred: %d ***\n", count));
index 0637003ce29916b0fdd8ffd2b83a5a1e2335e41b..f2ffe84c2d96233d07201cb809a75682d30f47df 100644 (file)
@@ -87,7 +87,7 @@ version_string:
        .globl  _start
 _start:
        mfspr   r3, 638
-       li      r4, CFG_ISB                     /* Set ISB bit */
+       li      r4, CONFIG_SYS_ISB                      /* Set ISB bit */
        or      r3, r3, r4
        mtspr   638, r3
        li      r21, BOOTFLAG_COLD              /* Normal Power-On: Boot from FLASH     */
@@ -121,12 +121,12 @@ boot_warm:
        /* the external flash access on PATI fails if programming the PLL to 40MHz.
         * Copy the PLL programming code to the internal RAM and execute it
         *----------------------------------------------------------------------*/
-       lis     r3, CFG_MONITOR_BASE@h
-       ori     r3, r3, CFG_MONITOR_BASE@l
+       lis     r3, CONFIG_SYS_MONITOR_BASE@h
+       ori     r3, r3, CONFIG_SYS_MONITOR_BASE@l
        addi    r3, r3, pll_prog_code_start - _start + EXC_OFF_SYS_RESET
 
-       lis     r4, CFG_INIT_RAM_ADDR@h
-       ori     r4, r4, CFG_INIT_RAM_ADDR@l
+       lis     r4, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r4, r4, CONFIG_SYS_INIT_RAM_ADDR@l
        mtlr    r4
        addis   r5,0,0x0
        ori     r5,r5,((pll_prog_code_end - pll_prog_code_start) >>2)
@@ -144,8 +144,8 @@ boot_warm:
         * Calculate absolute address in FLASH and jump there
         *----------------------------------------------------------------------*/
 
-       lis     r3, CFG_MONITOR_BASE@h
-       ori     r3, r3, CFG_MONITOR_BASE@l
+       lis     r3, CONFIG_SYS_MONITOR_BASE@h
+       ori     r3, r3, CONFIG_SYS_MONITOR_BASE@l
        addi    r3, r3, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr    r3
        blr
@@ -155,9 +155,9 @@ in_flash:
        /* Initialize some SPRs that are hard to access from C                  */
        /*----------------------------------------------------------------------*/
 
-       lis     r3, CFG_IMMR@h                  /* Pass IMMR as arg1 to C routine */
-       lis     r2, CFG_INIT_SP_ADDR@h
-       ori     r1, r2, CFG_INIT_SP_ADDR@l      /* Set up the stack in internal SRAM */
+       lis     r3, CONFIG_SYS_IMMR@h                   /* Pass IMMR as arg1 to C routine */
+       lis     r2, CONFIG_SYS_INIT_SP_ADDR@h
+       ori     r1, r2, CONFIG_SYS_INIT_SP_ADDR@l       /* Set up the stack in internal SRAM */
        /* Note: R0 is still 0 here */
        stwu    r0, -4(r1)                      /* Clear final stack frame so that      */
        stwu    r0, -4(r1)                      /* stack backtraces terminate cleanly   */
@@ -173,8 +173,8 @@ in_flash:
 
        /* Set up debug mode entry */
 
-       lis     r2, CFG_DER@h
-       ori     r2, r2, CFG_DER@l
+       lis     r2, CONFIG_SYS_DER@h
+       ori     r2, r2, CONFIG_SYS_DER@l
        mtspr   DER, r2
 
        /* Let the C-code set up the rest                                       */
@@ -385,15 +385,15 @@ relocate_code:
        mr      r10, r5         /* Save copy of monitor destination Address in SRAM */
 
        mr      r3,  r5                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
@@ -581,15 +581,15 @@ trap_reloc:
 #if defined(CONFIG_PATI)
 /* Program the PLL */
 pll_prog_code_start:
-       lis     r4, (CFG_IMMR + 0x002fc384)@h
-       ori     r4, r4, (CFG_IMMR + 0x002fc384)@l
+       lis     r4, (CONFIG_SYS_IMMR + 0x002fc384)@h
+       ori     r4, r4, (CONFIG_SYS_IMMR + 0x002fc384)@l
        lis     r3, (0x55ccaa33)@h
        ori     r3, r3, (0x55ccaa33)@l
        stw     r3, 0(r4)
-       lis     r4, (CFG_IMMR + 0x002fc284)@h
-       ori     r4, r4, (CFG_IMMR + 0x002fc284)@l
-       lis     r3, CFG_PLPRCR@h
-       ori     r3, r3, CFG_PLPRCR@l
+       lis     r4, (CONFIG_SYS_IMMR + 0x002fc284)@h
+       ori     r4, r4, (CONFIG_SYS_IMMR + 0x002fc284)@l
+       lis     r3, CONFIG_SYS_PLPRCR@h
+       ori     r3, r3, CONFIG_SYS_PLPRCR@l
        stw     r3, 0(r4)
        addis   r3,0,0x0
        ori     r3,r3,0xA000
index 1326c3cc99e72c51ff0c8e2ac9b139dfafbeb01a..9c6ab76a6ffe9085fb59fa0972115a01eb16a24f 100644 (file)
@@ -118,7 +118,7 @@ unsigned long get_tbclk (void)
 #if defined(CONFIG_OF_LIBFDT) && defined (CONFIG_OF_BOARD_SETUP)
 void ft_cpu_setup(void *blob, bd_t *bd)
 {
-       int div = in_8((void*)CFG_MBAR + 0x204) & 0x0020 ? 8 : 4;
+       int div = in_8((void*)CONFIG_SYS_MBAR + 0x204) & 0x0020 ? 8 : 4;
        char * cpu_path = "/cpus/" OF_CPU;
 #ifdef CONFIG_MPC5xxx_FEC
        char * eth_path = "/" OF_SOC "/ethernet@3000";
index bc6201ec0ac1abf9a2723fe1bf991fc9666b4a52..14bd417d73ead3b5addec5151e52595ff6d2454c 100644 (file)
@@ -35,11 +35,11 @@ DECLARE_GLOBAL_DATA_PTR;
 void cpu_init_f (void)
 {
        unsigned long addecr = (1 << 25); /* Boot_CS */
-#if defined(CFG_RAMBOOT) && defined(CONFIG_MGT5100)
+#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_MGT5100)
        addecr |= (1 << 22); /* SDRAM enable */
 #endif
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
@@ -47,95 +47,95 @@ void cpu_init_f (void)
        /*
         * Memory Controller: configure chip selects and enable them
         */
-#if defined(CFG_BOOTCS_START) && defined(CFG_BOOTCS_SIZE)
-       *(vu_long *)MPC5XXX_BOOTCS_START = START_REG(CFG_BOOTCS_START);
-       *(vu_long *)MPC5XXX_BOOTCS_STOP = STOP_REG(CFG_BOOTCS_START,
-                       CFG_BOOTCS_SIZE);
+#if defined(CONFIG_SYS_BOOTCS_START) && defined(CONFIG_SYS_BOOTCS_SIZE)
+       *(vu_long *)MPC5XXX_BOOTCS_START = START_REG(CONFIG_SYS_BOOTCS_START);
+       *(vu_long *)MPC5XXX_BOOTCS_STOP = STOP_REG(CONFIG_SYS_BOOTCS_START,
+                       CONFIG_SYS_BOOTCS_SIZE);
 #endif
-#if defined(CFG_BOOTCS_CFG)
-       *(vu_long *)MPC5XXX_BOOTCS_CFG = CFG_BOOTCS_CFG;
+#if defined(CONFIG_SYS_BOOTCS_CFG)
+       *(vu_long *)MPC5XXX_BOOTCS_CFG = CONFIG_SYS_BOOTCS_CFG;
 #endif
 
-#if defined(CFG_CS0_START) && defined(CFG_CS0_SIZE)
-       *(vu_long *)MPC5XXX_CS0_START = START_REG(CFG_CS0_START);
-       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CFG_CS0_START, CFG_CS0_SIZE);
+#if defined(CONFIG_SYS_CS0_START) && defined(CONFIG_SYS_CS0_SIZE)
+       *(vu_long *)MPC5XXX_CS0_START = START_REG(CONFIG_SYS_CS0_START);
+       *(vu_long *)MPC5XXX_CS0_STOP = STOP_REG(CONFIG_SYS_CS0_START, CONFIG_SYS_CS0_SIZE);
        /* CS0 and BOOT_CS cannot be enabled at once. */
        /*      addecr |= (1 << 16); */
 #endif
-#if defined(CFG_CS0_CFG)
-       *(vu_long *)MPC5XXX_CS0_CFG = CFG_CS0_CFG;
+#if defined(CONFIG_SYS_CS0_CFG)
+       *(vu_long *)MPC5XXX_CS0_CFG = CONFIG_SYS_CS0_CFG;
 #endif
 
-#if defined(CFG_CS1_START) && defined(CFG_CS1_SIZE)
-       *(vu_long *)MPC5XXX_CS1_START = START_REG(CFG_CS1_START);
-       *(vu_long *)MPC5XXX_CS1_STOP = STOP_REG(CFG_CS1_START, CFG_CS1_SIZE);
+#if defined(CONFIG_SYS_CS1_START) && defined(CONFIG_SYS_CS1_SIZE)
+       *(vu_long *)MPC5XXX_CS1_START = START_REG(CONFIG_SYS_CS1_START);
+       *(vu_long *)MPC5XXX_CS1_STOP = STOP_REG(CONFIG_SYS_CS1_START, CONFIG_SYS_CS1_SIZE);
        addecr |= (1 << 17);
 #endif
-#if defined(CFG_CS1_CFG)
-       *(vu_long *)MPC5XXX_CS1_CFG = CFG_CS1_CFG;
+#if defined(CONFIG_SYS_CS1_CFG)
+       *(vu_long *)MPC5XXX_CS1_CFG = CONFIG_SYS_CS1_CFG;
 #endif
 
-#if defined(CFG_CS2_START) && defined(CFG_CS2_SIZE)
-       *(vu_long *)MPC5XXX_CS2_START = START_REG(CFG_CS2_START);
-       *(vu_long *)MPC5XXX_CS2_STOP = STOP_REG(CFG_CS2_START, CFG_CS2_SIZE);
+#if defined(CONFIG_SYS_CS2_START) && defined(CONFIG_SYS_CS2_SIZE)
+       *(vu_long *)MPC5XXX_CS2_START = START_REG(CONFIG_SYS_CS2_START);
+       *(vu_long *)MPC5XXX_CS2_STOP = STOP_REG(CONFIG_SYS_CS2_START, CONFIG_SYS_CS2_SIZE);
        addecr |= (1 << 18);
 #endif
-#if defined(CFG_CS2_CFG)
-       *(vu_long *)MPC5XXX_CS2_CFG = CFG_CS2_CFG;
+#if defined(CONFIG_SYS_CS2_CFG)
+       *(vu_long *)MPC5XXX_CS2_CFG = CONFIG_SYS_CS2_CFG;
 #endif
 
-#if defined(CFG_CS3_START) && defined(CFG_CS3_SIZE)
-       *(vu_long *)MPC5XXX_CS3_START = START_REG(CFG_CS3_START);
-       *(vu_long *)MPC5XXX_CS3_STOP = STOP_REG(CFG_CS3_START, CFG_CS3_SIZE);
+#if defined(CONFIG_SYS_CS3_START) && defined(CONFIG_SYS_CS3_SIZE)
+       *(vu_long *)MPC5XXX_CS3_START = START_REG(CONFIG_SYS_CS3_START);
+       *(vu_long *)MPC5XXX_CS3_STOP = STOP_REG(CONFIG_SYS_CS3_START, CONFIG_SYS_CS3_SIZE);
        addecr |= (1 << 19);
 #endif
-#if defined(CFG_CS3_CFG)
-       *(vu_long *)MPC5XXX_CS3_CFG = CFG_CS3_CFG;
+#if defined(CONFIG_SYS_CS3_CFG)
+       *(vu_long *)MPC5XXX_CS3_CFG = CONFIG_SYS_CS3_CFG;
 #endif
 
-#if defined(CFG_CS4_START) && defined(CFG_CS4_SIZE)
-       *(vu_long *)MPC5XXX_CS4_START = START_REG(CFG_CS4_START);
-       *(vu_long *)MPC5XXX_CS4_STOP = STOP_REG(CFG_CS4_START, CFG_CS4_SIZE);
+#if defined(CONFIG_SYS_CS4_START) && defined(CONFIG_SYS_CS4_SIZE)
+       *(vu_long *)MPC5XXX_CS4_START = START_REG(CONFIG_SYS_CS4_START);
+       *(vu_long *)MPC5XXX_CS4_STOP = STOP_REG(CONFIG_SYS_CS4_START, CONFIG_SYS_CS4_SIZE);
        addecr |= (1 << 20);
 #endif
-#if defined(CFG_CS4_CFG)
-       *(vu_long *)MPC5XXX_CS4_CFG = CFG_CS4_CFG;
+#if defined(CONFIG_SYS_CS4_CFG)
+       *(vu_long *)MPC5XXX_CS4_CFG = CONFIG_SYS_CS4_CFG;
 #endif
 
-#if defined(CFG_CS5_START) && defined(CFG_CS5_SIZE)
-       *(vu_long *)MPC5XXX_CS5_START = START_REG(CFG_CS5_START);
-       *(vu_long *)MPC5XXX_CS5_STOP = STOP_REG(CFG_CS5_START, CFG_CS5_SIZE);
+#if defined(CONFIG_SYS_CS5_START) && defined(CONFIG_SYS_CS5_SIZE)
+       *(vu_long *)MPC5XXX_CS5_START = START_REG(CONFIG_SYS_CS5_START);
+       *(vu_long *)MPC5XXX_CS5_STOP = STOP_REG(CONFIG_SYS_CS5_START, CONFIG_SYS_CS5_SIZE);
        addecr |= (1 << 21);
 #endif
-#if defined(CFG_CS5_CFG)
-       *(vu_long *)MPC5XXX_CS5_CFG = CFG_CS5_CFG;
+#if defined(CONFIG_SYS_CS5_CFG)
+       *(vu_long *)MPC5XXX_CS5_CFG = CONFIG_SYS_CS5_CFG;
 #endif
 
 #if defined(CONFIG_MPC5200)
        addecr |= 1;
-#if defined(CFG_CS6_START) && defined(CFG_CS6_SIZE)
-       *(vu_long *)MPC5XXX_CS6_START = START_REG(CFG_CS6_START);
-       *(vu_long *)MPC5XXX_CS6_STOP = STOP_REG(CFG_CS6_START, CFG_CS6_SIZE);
+#if defined(CONFIG_SYS_CS6_START) && defined(CONFIG_SYS_CS6_SIZE)
+       *(vu_long *)MPC5XXX_CS6_START = START_REG(CONFIG_SYS_CS6_START);
+       *(vu_long *)MPC5XXX_CS6_STOP = STOP_REG(CONFIG_SYS_CS6_START, CONFIG_SYS_CS6_SIZE);
        addecr |= (1 << 26);
 #endif
-#if defined(CFG_CS6_CFG)
-       *(vu_long *)MPC5XXX_CS6_CFG = CFG_CS6_CFG;
+#if defined(CONFIG_SYS_CS6_CFG)
+       *(vu_long *)MPC5XXX_CS6_CFG = CONFIG_SYS_CS6_CFG;
 #endif
 
-#if defined(CFG_CS7_START) && defined(CFG_CS7_SIZE)
-       *(vu_long *)MPC5XXX_CS7_START = START_REG(CFG_CS7_START);
-       *(vu_long *)MPC5XXX_CS7_STOP = STOP_REG(CFG_CS7_START, CFG_CS7_SIZE);
+#if defined(CONFIG_SYS_CS7_START) && defined(CONFIG_SYS_CS7_SIZE)
+       *(vu_long *)MPC5XXX_CS7_START = START_REG(CONFIG_SYS_CS7_START);
+       *(vu_long *)MPC5XXX_CS7_STOP = STOP_REG(CONFIG_SYS_CS7_START, CONFIG_SYS_CS7_SIZE);
        addecr |= (1 << 27);
 #endif
-#if defined(CFG_CS7_CFG)
-       *(vu_long *)MPC5XXX_CS7_CFG = CFG_CS7_CFG;
+#if defined(CONFIG_SYS_CS7_CFG)
+       *(vu_long *)MPC5XXX_CS7_CFG = CONFIG_SYS_CS7_CFG;
 #endif
 
-#if defined(CFG_CS_BURST)
-       *(vu_long *)MPC5XXX_CS_BURST = CFG_CS_BURST;
+#if defined(CONFIG_SYS_CS_BURST)
+       *(vu_long *)MPC5XXX_CS_BURST = CONFIG_SYS_CS_BURST;
 #endif
-#if defined(CFG_CS_DEADCYCLE)
-       *(vu_long *)MPC5XXX_CS_DEADCYCLE = CFG_CS_DEADCYCLE;
+#if defined(CONFIG_SYS_CS_DEADCYCLE)
+       *(vu_long *)MPC5XXX_CS_DEADCYCLE = CONFIG_SYS_CS_DEADCYCLE;
 #endif
 #endif /* CONFIG_MPC5200 */
 
@@ -144,8 +144,8 @@ void cpu_init_f (void)
        *(vu_long *)MPC5XXX_CS_CTRL = (1 << 24);
 
        /* Setup pin multiplexing */
-#if defined(CFG_GPS_PORT_CONFIG)
-       *(vu_long *)MPC5XXX_GPS_PORT_CONFIG = CFG_GPS_PORT_CONFIG;
+#if defined(CONFIG_SYS_GPS_PORT_CONFIG)
+       *(vu_long *)MPC5XXX_GPS_PORT_CONFIG = CONFIG_SYS_GPS_PORT_CONFIG;
 #endif
 
 #if defined(CONFIG_MPC5200)
@@ -154,28 +154,28 @@ void cpu_init_f (void)
 
        /* Enable snooping for RAM */
        *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 15);
-       *(vu_long *)(MPC5XXX_XLBARB + 0x70) = CFG_SDRAM_BASE | 0x1d;
+       *(vu_long *)(MPC5XXX_XLBARB + 0x70) = CONFIG_SYS_SDRAM_BASE | 0x1d;
 
-# if defined(CFG_IPBCLK_EQUALS_XLBCLK)
+# if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
        /* Motorola reports IPB should better run at 133 MHz. */
        *(vu_long *)MPC5XXX_ADDECR |= 1;
        /* pci_clk_sel = 0x02, ipb_clk_sel = 0x00; */
        addecr = *(vu_long *)MPC5XXX_CDM_CFG;
        addecr &= ~0x103;
-#  if defined(CFG_PCICLK_EQUALS_IPBCLK_DIV2)
+#  if defined(CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2)
        /* pci_clk_sel = 0x01 -> IPB_CLK/2 */
        addecr |= 0x01;
 #  else
        /* pci_clk_sel = 0x02 -> XLB_CLK/4 = IPB_CLK/4 */
        addecr |= 0x02;
-#  endif /* CFG_PCICLK_EQUALS_IPBCLK_DIV2 */
+#  endif /* CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2 */
        *(vu_long *)MPC5XXX_CDM_CFG = addecr;
-# endif        /* CFG_IPBCLK_EQUALS_XLBCLK */
+# endif        /* CONFIG_SYS_IPBCLK_EQUALS_XLBCLK */
        /* Configure the XLB Arbiter */
        *(vu_long *)MPC5XXX_XLBARB_MPRIEN = 0xff;
        *(vu_long *)MPC5XXX_XLBARB_MPRIVAL = 0x11111111;
 
-# if defined(CFG_XLB_PIPELINING)
+# if defined(CONFIG_SYS_XLB_PIPELINING)
        /* Enable piplining */
        *(vu_long *)(MPC5XXX_XLBARB + 0x40) &= ~(1 << 31);
 # endif
index a07c7769934f3c1406da221e5c10c59c78c8016d..d140c7e9892dbc7d2234898d67e346da5a6c8431 100644 (file)
@@ -23,7 +23,7 @@ scEthernetRecv_Entry:         /* Task 0 */
 .long   0x00000000
 .long   0x00000000
 .long   scEthernetRecv_CSave - taskTable       /* Task 0 context save space */
-.long   CFG_MBAR
+.long   CONFIG_SYS_MBAR
 .globl scEthernetXmit_Entry
 scEthernetXmit_Entry:          /* Task 1 */
 .long   scEthernetXmit_TDT - taskTable /* Task 1 Descriptor Table */
@@ -33,7 +33,7 @@ scEthernetXmit_Entry:         /* Task 1 */
 .long   0x00000000
 .long   0x00000000
 .long   scEthernetXmit_CSave - taskTable       /* Task 1 context save space */
-.long   CFG_MBAR
+.long   CONFIG_SYS_MBAR
 
 
 .globl scEthernetRecv_TDT
@@ -151,7 +151,7 @@ scEthernetRecv_VarTab:      /* Task 0 Variable Table */
 .long   0x00000000     /* var[6] */
 .long   0x00000000     /* var[7] */
 .long   0x00000000     /* var[8] */
-.long   (CFG_MBAR + 0x8800)    /* var[9] */
+.long   (CONFIG_SYS_MBAR + 0x8800)     /* var[9] */
 .long   0x00000008     /* var[10] */
 .long   0x0000000c     /* var[11] */
 .long   0x80000000     /* var[12] */
@@ -190,7 +190,7 @@ scEthernetXmit_VarTab:      /* Task 1 Variable Table */
 .long   0x00000000     /* var[8] */
 .long   0x00000000     /* var[9] */
 .long   0x00000000     /* var[10] */
-.long   (CFG_MBAR + 0x8800)    /* var[11] */
+.long   (CONFIG_SYS_MBAR + 0x8800)     /* var[11] */
 .long   0x00000000     /* var[12] */
 .long   0x80000000     /* var[13] */
 .long   0x10000000     /* var[14] */
index 0f02e78a3bd3e25d04459b50c0b36c5d0e79cdc1..4d16bbe77416b84814e8ccf83f702d63a47494ab 100644 (file)
@@ -30,12 +30,12 @@ DECLARE_GLOBAL_DATA_PTR;
 #include <mpc5xxx.h>
 #include <i2c.h>
 
-#if (CFG_I2C_MODULE == 2)
+#if (CONFIG_SYS_I2C_MODULE == 2)
 #define I2C_BASE       MPC5XXX_I2C2
-#elif (CFG_I2C_MODULE == 1)
+#elif (CONFIG_SYS_I2C_MODULE == 1)
 #define I2C_BASE       MPC5XXX_I2C1
 #else
-#error CFG_I2C_MODULE is not properly configured
+#error CONFIG_SYS_I2C_MODULE is not properly configured
 #endif
 
 #define I2C_TIMEOUT    100
index 8816dd1e2dc4fccf6c378411ff8c81238b6ede15..6035771eeb02c07ab396ddcb7543d8647e2519bd 100644 (file)
@@ -229,7 +229,7 @@ int mpc5xxx_get_irq(struct pt_regs *regs)
 
 int interrupt_init_cpu(ulong * decrementer_count)
 {
-       *decrementer_count = get_tbclk() / CFG_HZ;
+       *decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
 
        mpc5xxx_init_irq();
 
index 2f01d5ce996279e675a7e3398f4db5d8fac427f7..a3251abf58d80a7eb715919c4aa00ede7f0bbf5f 100644 (file)
@@ -31,8 +31,8 @@
 #include <mpc5xxx.h>
 
 /* System RAM mapped over PCI */
-#define CONFIG_PCI_MEMORY_BUS  CFG_SDRAM_BASE
-#define CONFIG_PCI_MEMORY_PHYS CFG_SDRAM_BASE
+#define CONFIG_PCI_MEMORY_BUS  CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_MEMORY_PHYS CONFIG_SYS_SDRAM_BASE
 #define CONFIG_PCI_MEMORY_SIZE (1024 * 1024 * 1024)
 
 /* PCIIWCR bit fields */
@@ -125,11 +125,11 @@ void pci_mpc5xxx_init (struct pci_controller *hose)
 
        /* Set cache line size */
        *(vu_long *)MPC5XXX_PCI_CFG = (*(vu_long *)MPC5XXX_PCI_CFG & ~0xff) |
-               (CFG_CACHELINE_SIZE / 4);
+               (CONFIG_SYS_CACHELINE_SIZE / 4);
 
        /* Map MBAR to PCI space */
-       *(vu_long *)MPC5XXX_PCI_BAR0 = CFG_MBAR;
-       *(vu_long *)MPC5XXX_PCI_TBATR0 = CFG_MBAR | 1;
+       *(vu_long *)MPC5XXX_PCI_BAR0 = CONFIG_SYS_MBAR;
+       *(vu_long *)MPC5XXX_PCI_TBATR0 = CONFIG_SYS_MBAR | 1;
 
        /* Map RAM to PCI space */
        *(vu_long *)MPC5XXX_PCI_BAR1 = CONFIG_PCI_MEMORY_BUS | (1 << 3);
index 430d63f7464f4b3cf6fcfa57dccf7a1a1b648b6f..a8a384aa58b005ea0e4b185c9cd46148704f3700 100644 (file)
@@ -106,7 +106,7 @@ int serial_init (void)
        /* select clock sources */
 #if defined(CONFIG_MGT5100)
        psc->psc_clock_select = 0xdd00;
-       baseclk = (CFG_MPC5XXX_CLKIN + 16) / 32;
+       baseclk = (CONFIG_SYS_MPC5XXX_CLKIN + 16) / 32;
 #elif defined(CONFIG_MPC5200)
        psc->psc_clock_select = 0;
        baseclk = (gd->ipb_clk + 16) / 32;
@@ -247,7 +247,7 @@ void serial_setbrg(void)
        unsigned long baseclk, div;
 
 #if defined(CONFIG_MGT5100)
-       baseclk = (CFG_MPC5XXX_CLKIN + 16) / 32;
+       baseclk = (CONFIG_SYS_MPC5XXX_CLKIN + 16) / 32;
 #elif defined(CONFIG_MPC5200)
        baseclk = (gd->ipb_clk + 16) / 32;
 #endif
index 7847adcefa40f4258e0e846ff7ed4d1f143b38d6..0e3e5525fd3de22514a57cb71b1c6f422d9225a5 100644 (file)
@@ -47,15 +47,15 @@ int get_clocks (void)
 {
        ulong val, vco;
 
-#if !defined(CFG_MPC5XXX_CLKIN)
-#error clock measuring not implemented yet - define CFG_MPC5XXX_CLKIN
+#if !defined(CONFIG_SYS_MPC5XXX_CLKIN)
+#error clock measuring not implemented yet - define CONFIG_SYS_MPC5XXX_CLKIN
 #endif
 
        val = *(vu_long *)MPC5XXX_CDM_PORCFG;
        if (val & (1 << 6)) {
-               vco = CFG_MPC5XXX_CLKIN * 12;
+               vco = CONFIG_SYS_MPC5XXX_CLKIN * 12;
        } else {
-               vco = CFG_MPC5XXX_CLKIN * 16;
+               vco = CONFIG_SYS_MPC5XXX_CLKIN * 16;
        }
        if (val & (1 << 5)) {
                gd->bus_clk = vco / 8;
index 9b1bd48c7338299dfd98ecd5c4b81b7ddb70db61..defe77d75f2f49aebc2c38066e4d1f741779e05a 100644 (file)
@@ -106,19 +106,19 @@ boot_warm:
        /* Move CSBoot and adjust instruction pointer                   */
        /*--------------------------------------------------------------*/
 
-#if defined(CFG_LOWBOOT)
-# if defined(CFG_RAMBOOT)
-#  error CFG_LOWBOOT is incompatible with CFG_RAMBOOT
-# endif /* CFG_RAMBOOT */
+#if defined(CONFIG_SYS_LOWBOOT)
+# if defined(CONFIG_SYS_RAMBOOT)
+#  error CONFIG_SYS_LOWBOOT is incompatible with CONFIG_SYS_RAMBOOT
+# endif /* CONFIG_SYS_RAMBOOT */
 # if defined(CONFIG_MGT5100)
-#  error CFG_LOWBOOT is incompatible with MGT5100
+#  error CONFIG_SYS_LOWBOOT is incompatible with MGT5100
 # endif /* CONFIG_MGT5100 */
-       lis     r4, CFG_DEFAULT_MBAR@h
-       lis     r3,     START_REG(CFG_BOOTCS_START)@h
-       ori     r3, r3, START_REG(CFG_BOOTCS_START)@l
+       lis     r4, CONFIG_SYS_DEFAULT_MBAR@h
+       lis     r3,     START_REG(CONFIG_SYS_BOOTCS_START)@h
+       ori     r3, r3, START_REG(CONFIG_SYS_BOOTCS_START)@l
        stw     r3, 0x4(r4)             /* CS0 start */
-       lis     r3,     STOP_REG(CFG_BOOTCS_START, CFG_BOOTCS_SIZE)@h
-       ori     r3, r3, STOP_REG(CFG_BOOTCS_START, CFG_BOOTCS_SIZE)@l
+       lis     r3,     STOP_REG(CONFIG_SYS_BOOTCS_START, CONFIG_SYS_BOOTCS_SIZE)@h
+       ori     r3, r3, STOP_REG(CONFIG_SYS_BOOTCS_START, CONFIG_SYS_BOOTCS_SIZE)@l
        stw     r3, 0x8(r4)             /* CS0 stop */
        lis     r3,     0x02010000@h
        ori     r3, r3, 0x02010000@l
@@ -130,20 +130,20 @@ boot_warm:
        blr
 
 lowboot_reentry:
-       lis     r3,     START_REG(CFG_BOOTCS_START)@h
-       ori     r3, r3, START_REG(CFG_BOOTCS_START)@l
+       lis     r3,     START_REG(CONFIG_SYS_BOOTCS_START)@h
+       ori     r3, r3, START_REG(CONFIG_SYS_BOOTCS_START)@l
        stw     r3, 0x4c(r4)            /* Boot start */
-       lis     r3,     STOP_REG(CFG_BOOTCS_START, CFG_BOOTCS_SIZE)@h
-       ori     r3, r3, STOP_REG(CFG_BOOTCS_START, CFG_BOOTCS_SIZE)@l
+       lis     r3,     STOP_REG(CONFIG_SYS_BOOTCS_START, CONFIG_SYS_BOOTCS_SIZE)@h
+       ori     r3, r3, STOP_REG(CONFIG_SYS_BOOTCS_START, CONFIG_SYS_BOOTCS_SIZE)@l
        stw     r3, 0x50(r4)            /* Boot stop */
        lis     r3,     0x02000001@h
        ori     r3, r3, 0x02000001@l
        stw     r3, 0x54(r4)            /* Boot enable, CS0 disable */
-#endif /* CFG_LOWBOOT */
+#endif /* CONFIG_SYS_LOWBOOT */
 
-#if defined(CFG_DEFAULT_MBAR) && !defined(CFG_RAMBOOT)
-       lis     r3, CFG_MBAR@h
-       ori     r3, r3, CFG_MBAR@l
+#if defined(CONFIG_SYS_DEFAULT_MBAR) && !defined(CONFIG_SYS_RAMBOOT)
+       lis     r3, CONFIG_SYS_MBAR@h
+       ori     r3, r3, CONFIG_SYS_MBAR@l
 #if defined(CONFIG_MPC5200)
        /* MBAR is mirrored into the MBAR SPR */
        mtspr   MBAR,r3
@@ -152,9 +152,9 @@ lowboot_reentry:
 #if defined(CONFIG_MGT5100)
        rlwinm  r3, r3, 17, 15, 31
 #endif
-       lis     r4, CFG_DEFAULT_MBAR@h
+       lis     r4, CONFIG_SYS_DEFAULT_MBAR@h
        stw     r3, 0(r4)
-#endif /* CFG_DEFAULT_MBAR */
+#endif /* CONFIG_SYS_DEFAULT_MBAR */
 
        /* Initialise the MPC5xxx processor core                        */
        /*--------------------------------------------------------------*/
@@ -165,9 +165,9 @@ lowboot_reentry:
        /*--------------------------------------------------------------*/
 
        /* set up stack in on-chip SRAM */
-       lis     r3, CFG_INIT_RAM_ADDR@h
-       ori     r3, r3, CFG_INIT_RAM_ADDR@l
-       ori     r1, r3, CFG_INIT_SP_OFFSET
+       lis     r3, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3, r3, CONFIG_SYS_INIT_RAM_ADDR@l
+       ori     r1, r3, CONFIG_SYS_INIT_SP_OFFSET
        li      r0, 0                   /* Make room for stack frame header and */
        stwu    r0, -4(r1)              /* clear final stack frame so that      */
        stwu    r0, -4(r1)              /* stack backtraces terminate cleanly   */
@@ -400,13 +400,13 @@ init_5xxx_core:
        /* HID0 also contains cache control                             */
        /*--------------------------------------------------------------*/
 
-       lis     r3, CFG_HID0_INIT@h
-       ori     r3, r3, CFG_HID0_INIT@l
+       lis     r3, CONFIG_SYS_HID0_INIT@h
+       ori     r3, r3, CONFIG_SYS_HID0_INIT@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID0_FINAL@h
-       ori     r3, r3, CFG_HID0_FINAL@l
+       lis     r3, CONFIG_SYS_HID0_FINAL@h
+       ori     r3, r3, CONFIG_SYS_HID0_FINAL@l
        SYNC
        mtspr   HID0, r3
 
@@ -582,16 +582,16 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address     */
 
        mr      r3,  r5                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
index ed467ab3b889e2017cc4c26c3b49ac97d199e8b4..8f2b66a518645a3681f72f519a19c7826d2ce24f 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 
 #include <mpc5xxx.h>
 
@@ -51,4 +51,4 @@ int usb_cpu_init_fail(void)
        return 0;
 }
 
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */
index be274cde9e0dc31200bb19dad9fbf755fda2a3cb..5b3fdd32c16d5ca6f8771b3ad2ec52a7d700bc3f 100644 (file)
@@ -42,7 +42,7 @@ int checkcpu (void)
 
        printf (CPU_ID_STR);
 
-       printf (" (JTAG ID %08lx)", *(vu_long *) (CFG_MBAR + 0x50));
+       printf (" (JTAG ID %08lx)", *(vu_long *) (CONFIG_SYS_MBAR + 0x50));
 
        printf (" at %s MHz\n", strmhz (buf, clock));
 
index 0daac5bbd4bf847132608ef34ef2cf2a527ac9b0..8f52c7dd0ebadb9b774f7006d970aa3e87145788 100644 (file)
@@ -39,7 +39,7 @@ void cpu_init_f (void)
        volatile xlbarb8220_t *xlbarb = (volatile xlbarb8220_t *) MMAP_XLBARB;
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
@@ -49,54 +49,54 @@ void cpu_init_f (void)
        portcfg->pcfg1 = 0;
        portcfg->pcfg2 = 0;
        portcfg->pcfg3 = 0;
-       portcfg->pcfg2 = CFG_GP1_PORT2_CONFIG;
-       portcfg->pcfg3 = CFG_PCI_PORT3_CONFIG | CFG_GP2_PORT3_CONFIG;
+       portcfg->pcfg2 = CONFIG_SYS_GP1_PORT2_CONFIG;
+       portcfg->pcfg3 = CONFIG_SYS_PCI_PORT3_CONFIG | CONFIG_SYS_GP2_PORT3_CONFIG;
 
        /*
         * Flexbus Controller: configure chip selects and enable them
         */
-#if defined (CFG_CS0_BASE)
-       flexbus->csar0 = CFG_CS0_BASE;
+#if defined (CONFIG_SYS_CS0_BASE)
+       flexbus->csar0 = CONFIG_SYS_CS0_BASE;
 
 /* Sorcery-C can hang-up after CTRL reg initialization */
-#if defined (CFG_CS0_CTRL)
-       flexbus->cscr0 = CFG_CS0_CTRL;
+#if defined (CONFIG_SYS_CS0_CTRL)
+       flexbus->cscr0 = CONFIG_SYS_CS0_CTRL;
 #endif
-       flexbus->csmr0 = ((CFG_CS0_MASK - 1) & 0xffff0000) | 1;
+       flexbus->csmr0 = ((CONFIG_SYS_CS0_MASK - 1) & 0xffff0000) | 1;
        __asm__ volatile ("sync");
 #endif
-#if defined (CFG_CS1_BASE)
-       flexbus->csar1 = CFG_CS1_BASE;
-       flexbus->cscr1 = CFG_CS1_CTRL;
-       flexbus->csmr1 = ((CFG_CS1_MASK - 1) & 0xffff0000) | 1;
+#if defined (CONFIG_SYS_CS1_BASE)
+       flexbus->csar1 = CONFIG_SYS_CS1_BASE;
+       flexbus->cscr1 = CONFIG_SYS_CS1_CTRL;
+       flexbus->csmr1 = ((CONFIG_SYS_CS1_MASK - 1) & 0xffff0000) | 1;
        __asm__ volatile ("sync");
 #endif
-#if defined (CFG_CS2_BASE)
-       flexbus->csar2 = CFG_CS2_BASE;
-       flexbus->cscr2 = CFG_CS2_CTRL;
-       flexbus->csmr2 = ((CFG_CS2_MASK - 1) & 0xffff0000) | 1;
-       portcfg->pcfg3 |= CFG_CS2_PORT3_CONFIG;
+#if defined (CONFIG_SYS_CS2_BASE)
+       flexbus->csar2 = CONFIG_SYS_CS2_BASE;
+       flexbus->cscr2 = CONFIG_SYS_CS2_CTRL;
+       flexbus->csmr2 = ((CONFIG_SYS_CS2_MASK - 1) & 0xffff0000) | 1;
+       portcfg->pcfg3 |= CONFIG_SYS_CS2_PORT3_CONFIG;
        __asm__ volatile ("sync");
 #endif
-#if defined (CFG_CS3_BASE)
-       flexbus->csar3 = CFG_CS3_BASE;
-       flexbus->cscr3 = CFG_CS3_CTRL;
-       flexbus->csmr3 = ((CFG_CS3_MASK - 1) & 0xffff0000) | 1;
-       portcfg->pcfg3 |= CFG_CS3_PORT3_CONFIG;
+#if defined (CONFIG_SYS_CS3_BASE)
+       flexbus->csar3 = CONFIG_SYS_CS3_BASE;
+       flexbus->cscr3 = CONFIG_SYS_CS3_CTRL;
+       flexbus->csmr3 = ((CONFIG_SYS_CS3_MASK - 1) & 0xffff0000) | 1;
+       portcfg->pcfg3 |= CONFIG_SYS_CS3_PORT3_CONFIG;
        __asm__ volatile ("sync");
 #endif
-#if defined (CFG_CS4_BASE)
-       flexbus->csar4 = CFG_CS4_BASE;
-       flexbus->cscr4 = CFG_CS4_CTRL;
-       flexbus->csmr4 = ((CFG_CS4_MASK - 1) & 0xffff0000) | 1;
-       portcfg->pcfg3 |= CFG_CS4_PORT3_CONFIG;
+#if defined (CONFIG_SYS_CS4_BASE)
+       flexbus->csar4 = CONFIG_SYS_CS4_BASE;
+       flexbus->cscr4 = CONFIG_SYS_CS4_CTRL;
+       flexbus->csmr4 = ((CONFIG_SYS_CS4_MASK - 1) & 0xffff0000) | 1;
+       portcfg->pcfg3 |= CONFIG_SYS_CS4_PORT3_CONFIG;
        __asm__ volatile ("sync");
 #endif
-#if defined (CFG_CS5_BASE)
-       flexbus->csar5 = CFG_CS5_BASE;
-       flexbus->cscr5 = CFG_CS5_CTRL;
-       flexbus->csmr5 = ((CFG_CS5_MASK - 1) & 0xffff0000) | 1;
-       portcfg->pcfg3 |= CFG_CS5_PORT3_CONFIG;
+#if defined (CONFIG_SYS_CS5_BASE)
+       flexbus->csar5 = CONFIG_SYS_CS5_BASE;
+       flexbus->cscr5 = CONFIG_SYS_CS5_CTRL;
+       flexbus->csmr5 = ((CONFIG_SYS_CS5_MASK - 1) & 0xffff0000) | 1;
+       portcfg->pcfg3 |= CONFIG_SYS_CS5_PORT3_CONFIG;
        __asm__ volatile ("sync");
 #endif
 
index 08e3172f2bf2a140e1c36f4672c7265d5f7f95f1..52cf1333f7973efae018b2c6ffbbd528a774cf2a 100644 (file)
@@ -34,9 +34,9 @@ characteristics to initialize the dram on MPC8220
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define SPD_SIZE       CFG_SDRAM_SPD_SIZE
-#define DRAM_SPD       (CFG_SDRAM_SPD_I2C_ADDR)<<1     /* on Board SPD eeprom */
-#define TOTAL_BANK     CFG_SDRAM_TOTAL_BANKS
+#define SPD_SIZE       CONFIG_SYS_SDRAM_SPD_SIZE
+#define DRAM_SPD       (CONFIG_SYS_SDRAM_SPD_I2C_ADDR)<<1      /* on Board SPD eeprom */
+#define TOTAL_BANK     CONFIG_SYS_SDRAM_TOTAL_BANKS
 
 int spd_status (volatile i2c8220_t * pi2c, u8 sta_bit, u8 truefalse)
 {
@@ -103,7 +103,7 @@ int readSpdData (u8 * spdData)
        /* Enable Port Configuration for SDA and SDL signals */
        pcfg = (volatile pcfg8220_t *) (MMAP_PCFG);
        __asm__ ("sync");
-       pcfg->pcfg3 &= ~CFG_I2C_PORT3_CONFIG;
+       pcfg->pcfg3 &= ~CONFIG_SYS_I2C_PORT3_CONFIG;
        __asm__ ("sync");
 
        /* Points the structure to I2c mbar memory offset */
@@ -144,7 +144,7 @@ int readSpdData (u8 * spdData)
                break;
        }
 
-       pi2cReg->adr = CFG_I2C_SLAVE<<1;
+       pi2cReg->adr = CONFIG_SYS_I2C_SLAVE<<1;
 
        pi2cReg->cr = I2C_CTL_EN;       /* Set Enable         */
 
@@ -541,7 +541,7 @@ u32 dramSetup (void)
        }
 
        /* Set up the Drive Strength register */
-       sysconf->sdramds = CFG_SDRAM_DRIVE_STRENGTH;
+       sysconf->sdramds = CONFIG_SYS_SDRAM_DRIVE_STRENGTH;
 
        /* ********************** Cfg 1 ************************* */
 
@@ -679,7 +679,7 @@ u32 dramSetup (void)
 
 
        /* Set up mode value for CAS latency */
-#if (CFG_SDRAM_CAS_LATENCY==5) /* CL=2.5 */
+#if (CONFIG_SYS_SDRAM_CAS_LATENCY==5) /* CL=2.5 */
        mode_value = (MODE_MODE | MODE_BURSTLEN (MODE_BURSTLEN_8) |
                MODE_BT_SEQUENTIAL | MODE_CL (MODE_CL_2p5) | MODE_CMD);
 #else
index 036378c8bb0f0d912a78ca41081be7ad92e5afb9..78e99179c947648059b0036f2f3d65dd95cff3e5 100644 (file)
@@ -34,7 +34,7 @@
 
 int interrupt_init_cpu (ulong * decrementer_count)
 {
-       *decrementer_count = get_tbclk () / CFG_HZ;
+       *decrementer_count = get_tbclk () / CONFIG_SYS_HZ;
 
        return (0);
 }
index 4ef214e54027768c0331161928e9a701d706a25d..a78a82850c676523a7fa82f5944a2a6f2f874157 100644 (file)
@@ -33,8 +33,8 @@
 #if defined(CONFIG_PCI)
 
 /* System RAM mapped over PCI */
-#define CONFIG_PCI_SYS_MEM_BUS  CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS         CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS  CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS         CONFIG_SYS_SDRAM_BASE
 #define CONFIG_PCI_SYS_MEM_SIZE         (1024 * 1024 * 1024)
 
 #define cfg_read(val, addr, type, op)          *val = op((type)(addr));
index 200a762711ec25c40a94eca8a1f1ea07835d5121..c01ca0cd5eafaee096c64bd7b54453a17178423c 100644 (file)
@@ -67,25 +67,25 @@ int get_clocks (void)
        u32 hid1;
        int i, size, pci2bus;
 
-#if !defined(CFG_MPC8220_CLKIN)
-#error clock measuring not implemented yet - define CFG_MPC8220_CLKIN
+#if !defined(CONFIG_SYS_MPC8220_CLKIN)
+#error clock measuring not implemented yet - define CONFIG_SYS_MPC8220_CLKIN
 #endif
 
-       gd->inp_clk = CFG_MPC8220_CLKIN;
+       gd->inp_clk = CONFIG_SYS_MPC8220_CLKIN;
 
        /* Read XLB to PCI(INP) clock multiplier */
        pci2bus = (*((volatile u32 *)PCI_REG_PCIGSCR) &
                PCI_REG_PCIGSCR_PCI2XLB_CLK_MASK)>>PCI_REG_PCIGSCR_PCI2XLB_CLK_BIT;
 
        /* XLB bus clock */
-       gd->bus_clk = CFG_MPC8220_CLKIN * pci2bus;
+       gd->bus_clk = CONFIG_SYS_MPC8220_CLKIN * pci2bus;
 
        /* PCI clock is same as input clock */
-       gd->pci_clk = CFG_MPC8220_CLKIN;
+       gd->pci_clk = CONFIG_SYS_MPC8220_CLKIN;
 
        /* FlexBus is temporary set as the same as input clock */
        /* will do dynamic in the future */
-       gd->flb_clk = CFG_MPC8220_CLKIN;
+       gd->flb_clk = CONFIG_SYS_MPC8220_CLKIN;
 
        /* CPU Clock - Read HID1 */
        asm volatile ("mfspr %0, 1009":"=r" (hid1):);
@@ -97,7 +97,7 @@ int get_clocks (void)
        for (i = 0; i < size; i++)
                if (hid1 == bus2core[i].hid1) {
                        gd->cpu_clk = (bus2core[i].multi * gd->bus_clk) >> 1;
-                       gd->vco_clk = CFG_MPC8220_SYSPLL_VCO_MULTIPLIER * (gd->pci_clk * bus2core[i].vco_div)/2;
+                       gd->vco_clk = CONFIG_SYS_MPC8220_SYSPLL_VCO_MULTIPLIER * (gd->pci_clk * bus2core[i].vco_div)/2;
                        break;
                }
 
index b5145ca035d37f0c04e5ff59f994bf61e7fd1e87..373be2c7458feecd7ffd961a22a83f30c474c849 100644 (file)
@@ -105,16 +105,16 @@ boot_warm:
        /* replace default MBAR base address from 0x80000000
            to 0xf0000000 */
 
-#if defined(CFG_DEFAULT_MBAR) && !defined(CFG_RAMBOOT)
-       lis     r3, CFG_MBAR@h
-       ori     r3, r3, CFG_MBAR@l
+#if defined(CONFIG_SYS_DEFAULT_MBAR) && !defined(CONFIG_SYS_RAMBOOT)
+       lis     r3, CONFIG_SYS_MBAR@h
+       ori     r3, r3, CONFIG_SYS_MBAR@l
 
        /* MBAR is mirrored into the MBAR SPR */
        mtspr   MBAR,r3
        mtspr   SPRN_SPRG7W,r3
-       lis     r4, CFG_DEFAULT_MBAR@h
+       lis     r4, CONFIG_SYS_DEFAULT_MBAR@h
        stw     r3, 0(r4)
-#endif /* CFG_DEFAULT_MBAR */
+#endif /* CONFIG_SYS_DEFAULT_MBAR */
 
        /* Initialise the MPC8220 processor core                        */
        /*--------------------------------------------------------------*/
@@ -125,9 +125,9 @@ boot_warm:
        /*--------------------------------------------------------------*/
 
        /* set up stack in on-chip SRAM */
-       lis     r3, CFG_INIT_RAM_ADDR@h
-       ori     r3, r3, CFG_INIT_RAM_ADDR@l
-       ori     r1, r3, CFG_INIT_SP_OFFSET
+       lis     r3, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3, r3, CONFIG_SYS_INIT_RAM_ADDR@l
+       ori     r1, r3, CONFIG_SYS_INIT_SP_OFFSET
 
        li      r0, 0           /* Make room for stack frame header and */
        stwu    r0, -4(r1)      /* clear final stack frame so that      */
@@ -361,13 +361,13 @@ init_8220_core:
        /* HID0 also contains cache control                             */
        /*--------------------------------------------------------------*/
 
-       lis     r3, CFG_HID0_INIT@h
-       ori     r3, r3, CFG_HID0_INIT@l
+       lis     r3, CONFIG_SYS_HID0_INIT@h
+       ori     r3, r3, CONFIG_SYS_HID0_INIT@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID0_FINAL@h
-       ori     r3, r3, CFG_HID0_FINAL@l
+       lis     r3, CONFIG_SYS_HID0_FINAL@h
+       ori     r3, r3, CONFIG_SYS_HID0_FINAL@l
        SYNC
        mtspr   HID0, r3
 
@@ -458,7 +458,7 @@ init_8220_core:
        .globl  icache_enable
 icache_enable:
        lis     r4, 0
-       ori     r4, r4, CFG_HID0_INIT /* set ICE & ICFI bit             */
+       ori     r4, r4, CONFIG_SYS_HID0_INIT /* set ICE & ICFI bit              */
        rlwinm  r3, r4, 0, 21, 19     /* clear the ICFI bit             */
 
        /*
@@ -547,16 +547,16 @@ relocate_code:
        mr      r10, r5     /* Save copy of Destination Address */
 
        mr      r3,  r5     /* Destination Address              */
-       lis     r4, CFG_MONITOR_BASE@h  /* Source Address       */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h   /* Source Address       */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE  /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE   /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
index 0a45cc8419f610544969abd7600d85f033d09c8e..08f6a947f410435e33410a86a5889d82809ea121 100644 (file)
@@ -109,17 +109,17 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
         * Trying to execute the next instruction at a non-existing address
         * should cause a machine check, resulting in reset
         */
-#ifdef CFG_RESET_ADDRESS
-       addr = CFG_RESET_ADDRESS;
+#ifdef CONFIG_SYS_RESET_ADDRESS
+       addr = CONFIG_SYS_RESET_ADDRESS;
 #else
        /*
-        * note: when CFG_MONITOR_BASE points to a RAM address,
-        * CFG_MONITOR_BASE - sizeof (ulong) is usually a valid
+        * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address,
+        * CONFIG_SYS_MONITOR_BASE - sizeof (ulong) is usually a valid
         * address. Better pick an address known to be invalid on
-        * your system and assign it to CFG_RESET_ADDRESS.
+        * your system and assign it to CONFIG_SYS_RESET_ADDRESS.
         * "(ulong)-1" used to be a good choice for many systems...
         */
-       addr = CFG_MONITOR_BASE - sizeof (ulong);
+       addr = CONFIG_SYS_MONITOR_BASE - sizeof (ulong);
 #endif
        ((void (*)(void)) addr) ();
        return 1;
index 7871031b9709610ac9fa805992b1260af8172902..395f7767d124fc6ba2aa3830da9c313e43590c7d 100644 (file)
 #include <asm/processor.h>
 #include <mpc824x.h>
 
-#ifndef CFG_BANK0_ROW
-#define CFG_BANK0_ROW 0
+#ifndef CONFIG_SYS_BANK0_ROW
+#define CONFIG_SYS_BANK0_ROW 0
 #endif
-#ifndef CFG_BANK1_ROW
-#define CFG_BANK1_ROW 0
+#ifndef CONFIG_SYS_BANK1_ROW
+#define CONFIG_SYS_BANK1_ROW 0
 #endif
-#ifndef CFG_BANK2_ROW
-#define CFG_BANK2_ROW 0
+#ifndef CONFIG_SYS_BANK2_ROW
+#define CONFIG_SYS_BANK2_ROW 0
 #endif
-#ifndef CFG_BANK3_ROW
-#define CFG_BANK3_ROW 0
+#ifndef CONFIG_SYS_BANK3_ROW
+#define CONFIG_SYS_BANK3_ROW 0
 #endif
-#ifndef CFG_BANK4_ROW
-#define CFG_BANK4_ROW 0
+#ifndef CONFIG_SYS_BANK4_ROW
+#define CONFIG_SYS_BANK4_ROW 0
 #endif
-#ifndef CFG_BANK5_ROW
-#define CFG_BANK5_ROW 0
+#ifndef CONFIG_SYS_BANK5_ROW
+#define CONFIG_SYS_BANK5_ROW 0
 #endif
-#ifndef CFG_BANK6_ROW
-#define CFG_BANK6_ROW 0
+#ifndef CONFIG_SYS_BANK6_ROW
+#define CONFIG_SYS_BANK6_ROW 0
 #endif
-#ifndef CFG_BANK7_ROW
-#define CFG_BANK7_ROW 0
+#ifndef CONFIG_SYS_BANK7_ROW
+#define CONFIG_SYS_BANK7_ROW 0
 #endif
-#ifndef CFG_DBUS_SIZE2
-#define CFG_DBUS_SIZE2 0
+#ifndef CONFIG_SYS_DBUS_SIZE2
+#define CONFIG_SYS_DBUS_SIZE2 0
 #endif
 
 /*
@@ -163,150 +163,150 @@ cpu_init_f (void)
 #endif
        CONFIG_WRITE_WORD(PICR2, val);
 
-       CONFIG_WRITE_WORD(EUMBBAR, CFG_EUMB_ADDR);
-#ifndef CFG_RAMBOOT
-       CONFIG_WRITE_WORD(MCCR1, (CFG_ROMNAL << MCCR1_ROMNAL_SHIFT) |
-                                (CFG_BANK0_ROW) |
-                                (CFG_BANK1_ROW << MCCR1_BANK1ROW_SHIFT) |
-                                (CFG_BANK2_ROW << MCCR1_BANK2ROW_SHIFT) |
-                                (CFG_BANK3_ROW << MCCR1_BANK3ROW_SHIFT) |
-                                (CFG_BANK4_ROW << MCCR1_BANK4ROW_SHIFT) |
-                                (CFG_BANK5_ROW << MCCR1_BANK5ROW_SHIFT) |
-                                (CFG_BANK6_ROW << MCCR1_BANK6ROW_SHIFT) |
-                                (CFG_BANK7_ROW << MCCR1_BANK7ROW_SHIFT) |
-                                (CFG_ROMFAL << MCCR1_ROMFAL_SHIFT));
+       CONFIG_WRITE_WORD(EUMBBAR, CONFIG_SYS_EUMB_ADDR);
+#ifndef CONFIG_SYS_RAMBOOT
+       CONFIG_WRITE_WORD(MCCR1, (CONFIG_SYS_ROMNAL << MCCR1_ROMNAL_SHIFT) |
+                                (CONFIG_SYS_BANK0_ROW) |
+                                (CONFIG_SYS_BANK1_ROW << MCCR1_BANK1ROW_SHIFT) |
+                                (CONFIG_SYS_BANK2_ROW << MCCR1_BANK2ROW_SHIFT) |
+                                (CONFIG_SYS_BANK3_ROW << MCCR1_BANK3ROW_SHIFT) |
+                                (CONFIG_SYS_BANK4_ROW << MCCR1_BANK4ROW_SHIFT) |
+                                (CONFIG_SYS_BANK5_ROW << MCCR1_BANK5ROW_SHIFT) |
+                                (CONFIG_SYS_BANK6_ROW << MCCR1_BANK6ROW_SHIFT) |
+                                (CONFIG_SYS_BANK7_ROW << MCCR1_BANK7ROW_SHIFT) |
+                                (CONFIG_SYS_ROMFAL << MCCR1_ROMFAL_SHIFT));
 #endif
 
-#if defined(CFG_ASRISE) && defined(CFG_ASFALL)
-       CONFIG_WRITE_WORD(MCCR2, CFG_REFINT << MCCR2_REFINT_SHIFT |
-                                CFG_ASRISE << MCCR2_ASRISE_SHIFT |
-                                CFG_ASFALL << MCCR2_ASFALL_SHIFT);
+#if defined(CONFIG_SYS_ASRISE) && defined(CONFIG_SYS_ASFALL)
+       CONFIG_WRITE_WORD(MCCR2, CONFIG_SYS_REFINT << MCCR2_REFINT_SHIFT |
+                                CONFIG_SYS_ASRISE << MCCR2_ASRISE_SHIFT |
+                                CONFIG_SYS_ASFALL << MCCR2_ASFALL_SHIFT);
 #else
-       CONFIG_WRITE_WORD(MCCR2, CFG_REFINT << MCCR2_REFINT_SHIFT);
+       CONFIG_WRITE_WORD(MCCR2, CONFIG_SYS_REFINT << MCCR2_REFINT_SHIFT);
 #endif
 
 #if defined(CONFIG_MPC8240)
        CONFIG_WRITE_WORD(MCCR3,
-               (((CFG_BSTOPRE & 0x003c) >> 2) << MCCR3_BSTOPRE2TO5_SHIFT) |
-               (CFG_REFREC << MCCR3_REFREC_SHIFT) |
-               (CFG_RDLAT  << MCCR3_RDLAT_SHIFT));
+               (((CONFIG_SYS_BSTOPRE & 0x003c) >> 2) << MCCR3_BSTOPRE2TO5_SHIFT) |
+               (CONFIG_SYS_REFREC << MCCR3_REFREC_SHIFT) |
+               (CONFIG_SYS_RDLAT  << MCCR3_RDLAT_SHIFT));
 #elif defined(CONFIG_MPC8245)
        CONFIG_WRITE_WORD(MCCR3,
-               (((CFG_BSTOPRE & 0x003c) >> 2) << MCCR3_BSTOPRE2TO5_SHIFT) |
-               (CFG_REFREC << MCCR3_REFREC_SHIFT));
+               (((CONFIG_SYS_BSTOPRE & 0x003c) >> 2) << MCCR3_BSTOPRE2TO5_SHIFT) |
+               (CONFIG_SYS_REFREC << MCCR3_REFREC_SHIFT));
 #else
 #error Specific type of MPC824x must be defined (i.e. CONFIG_MPC8240)
 #endif
 
 /* this is gross.  We think these should all be the same, and various boards
- *  should define CFG_ACTORW to 0 if they don't want to set it, or even, if
+ *  should define CONFIG_SYS_ACTORW to 0 if they don't want to set it, or even, if
  *  its not set, we define it to zero in this file
  */
 #if defined(CONFIG_CU824) || defined(CONFIG_PN62)
        CONFIG_WRITE_WORD(MCCR4,
-       (CFG_PRETOACT << MCCR4_PRETOACT_SHIFT) |
-       (CFG_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) |
+       (CONFIG_SYS_PRETOACT << MCCR4_PRETOACT_SHIFT) |
+       (CONFIG_SYS_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) |
        MCCR4_BIT21 |
-       (CFG_REGISTERD_TYPE_BUFFER ? MCCR4_REGISTERED: 0) |
-       ((CFG_BSTOPRE & 0x0003) <<MCCR4_BSTOPRE0TO1_SHIFT ) |
-       (((CFG_SDMODE_CAS_LAT <<4) | (CFG_SDMODE_WRAP <<3) |
-                 CFG_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) |
-       (CFG_ACTORW << MCCR4_ACTTORW_SHIFT) |
-       (((CFG_BSTOPRE & 0x03c0) >> 6) << MCCR4_BSTOPRE6TO9_SHIFT));
+       (CONFIG_SYS_REGISTERD_TYPE_BUFFER ? MCCR4_REGISTERED: 0) |
+       ((CONFIG_SYS_BSTOPRE & 0x0003) <<MCCR4_BSTOPRE0TO1_SHIFT ) |
+       (((CONFIG_SYS_SDMODE_CAS_LAT <<4) | (CONFIG_SYS_SDMODE_WRAP <<3) |
+                 CONFIG_SYS_SDMODE_BURSTLEN) << MCCR4_SDMODE_SHIFT) |
+       (CONFIG_SYS_ACTORW << MCCR4_ACTTORW_SHIFT) |
+       (((CONFIG_SYS_BSTOPRE & 0x03c0) >> 6) << MCCR4_BSTOPRE6TO9_SHIFT));
 #elif defined(CONFIG_MPC8240)
        CONFIG_WRITE_WORD(MCCR4,
-       (CFG_PRETOACT << MCCR4_PRETOACT_SHIFT) |
-       (CFG_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) |
+       (CONFIG_SYS_PRETOACT << MCCR4_PRETOACT_SHIFT) |
+       (CONFIG_SYS_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) |
        MCCR4_BIT21 |
-       (CFG_REGISTERD_TYPE_BUFFER ? MCCR4_REGISTERED: 0) |
-       ((CFG_BSTOPRE & 0x0003) <<MCCR4_BSTOPRE0TO1_SHIFT ) |
-       (((CFG_SDMODE_CAS_LAT <<4) | (CFG_SDMODE_WRAP <<3) |
-                 (CFG_SDMODE_BURSTLEN)) <<MCCR4_SDMODE_SHIFT) |
-       (((CFG_BSTOPRE & 0x03c0) >> 6) <<MCCR4_BSTOPRE6TO9_SHIFT ));
+       (CONFIG_SYS_REGISTERD_TYPE_BUFFER ? MCCR4_REGISTERED: 0) |
+       ((CONFIG_SYS_BSTOPRE & 0x0003) <<MCCR4_BSTOPRE0TO1_SHIFT ) |
+       (((CONFIG_SYS_SDMODE_CAS_LAT <<4) | (CONFIG_SYS_SDMODE_WRAP <<3) |
+                 (CONFIG_SYS_SDMODE_BURSTLEN)) <<MCCR4_SDMODE_SHIFT) |
+       (((CONFIG_SYS_BSTOPRE & 0x03c0) >> 6) <<MCCR4_BSTOPRE6TO9_SHIFT ));
 #elif defined(CONFIG_MPC8245)
        CONFIG_READ_WORD(MCCR1, val);
        val &= MCCR1_DBUS_SIZE0;    /* test for 64-bit mem bus */
 
        CONFIG_WRITE_WORD(MCCR4,
-               (CFG_PRETOACT << MCCR4_PRETOACT_SHIFT) |
-               (CFG_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) |
-               (CFG_EXTROM ? MCCR4_EXTROM : 0) |
-               (CFG_REGDIMM ? MCCR4_REGDIMM : 0) |
-               (CFG_REGISTERD_TYPE_BUFFER ? MCCR4_REGISTERED: 0) |
-               ((CFG_BSTOPRE & 0x0003) <<MCCR4_BSTOPRE0TO1_SHIFT ) |
-               (CFG_DBUS_SIZE2 << MCCR4_DBUS_SIZE2_SHIFT) |
-               (((CFG_SDMODE_CAS_LAT <<4) | (CFG_SDMODE_WRAP <<3) |
+               (CONFIG_SYS_PRETOACT << MCCR4_PRETOACT_SHIFT) |
+               (CONFIG_SYS_ACTTOPRE << MCCR4_ACTTOPRE_SHIFT) |
+               (CONFIG_SYS_EXTROM ? MCCR4_EXTROM : 0) |
+               (CONFIG_SYS_REGDIMM ? MCCR4_REGDIMM : 0) |
+               (CONFIG_SYS_REGISTERD_TYPE_BUFFER ? MCCR4_REGISTERED: 0) |
+               ((CONFIG_SYS_BSTOPRE & 0x0003) <<MCCR4_BSTOPRE0TO1_SHIFT ) |
+               (CONFIG_SYS_DBUS_SIZE2 << MCCR4_DBUS_SIZE2_SHIFT) |
+               (((CONFIG_SYS_SDMODE_CAS_LAT <<4) | (CONFIG_SYS_SDMODE_WRAP <<3) |
                      (val ? 2 : 3)) << MCCR4_SDMODE_SHIFT)  |
-               (CFG_ACTORW << MCCR4_ACTTORW_SHIFT) |
-               (((CFG_BSTOPRE & 0x03c0) >> 6) <<MCCR4_BSTOPRE6TO9_SHIFT ));
+               (CONFIG_SYS_ACTORW << MCCR4_ACTTORW_SHIFT) |
+               (((CONFIG_SYS_BSTOPRE & 0x03c0) >> 6) <<MCCR4_BSTOPRE6TO9_SHIFT ));
 #else
 #error Specific type of MPC824x must be defined (i.e. CONFIG_MPC8240)
 #endif
 
        CONFIG_WRITE_WORD(MSAR1,
-               ( (CFG_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
-               (((CFG_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
-               (((CFG_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
-               (((CFG_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
+               ( (CONFIG_SYS_BANK0_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
+               (((CONFIG_SYS_BANK1_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK2_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK3_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
        CONFIG_WRITE_WORD(EMSAR1,
-               ( (CFG_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
-               (((CFG_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
-               (((CFG_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
-               (((CFG_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
+               ( (CONFIG_SYS_BANK0_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
+               (((CONFIG_SYS_BANK1_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK2_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK3_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
        CONFIG_WRITE_WORD(MSAR2,
-               ( (CFG_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
-               (((CFG_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
-               (((CFG_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
-               (((CFG_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
+               ( (CONFIG_SYS_BANK4_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
+               (((CONFIG_SYS_BANK5_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK6_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK7_START & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
        CONFIG_WRITE_WORD(EMSAR2,
-               ( (CFG_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
-               (((CFG_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
-               (((CFG_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
-               (((CFG_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
+               ( (CONFIG_SYS_BANK4_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
+               (((CONFIG_SYS_BANK5_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK6_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK7_START & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
        CONFIG_WRITE_WORD(MEAR1,
-               ( (CFG_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
-               (((CFG_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
-               (((CFG_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
-               (((CFG_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
+               ( (CONFIG_SYS_BANK0_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
+               (((CONFIG_SYS_BANK1_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK2_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK3_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
        CONFIG_WRITE_WORD(EMEAR1,
-               ( (CFG_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
-               (((CFG_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
-               (((CFG_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
-               (((CFG_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
+               ( (CONFIG_SYS_BANK0_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
+               (((CONFIG_SYS_BANK1_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK2_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK3_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
        CONFIG_WRITE_WORD(MEAR2,
-               ( (CFG_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
-               (((CFG_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
-               (((CFG_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
-               (((CFG_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
+               ( (CONFIG_SYS_BANK4_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) |
+               (((CONFIG_SYS_BANK5_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK6_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK7_END & MICR_ADDR_MASK) >> MICR_ADDR_SHIFT) << 24));
        CONFIG_WRITE_WORD(EMEAR2,
-               ( (CFG_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
-               (((CFG_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
-               (((CFG_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
-               (((CFG_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
-
-       CONFIG_WRITE_BYTE(ODCR, CFG_ODCR);
-#ifdef CFG_DLL_MAX_DELAY
-       CONFIG_WRITE_BYTE(MIOCR1, CFG_DLL_MAX_DELAY);   /* needed to make DLL lock */
+               ( (CONFIG_SYS_BANK4_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) |
+               (((CONFIG_SYS_BANK5_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 8) |
+               (((CONFIG_SYS_BANK6_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 16) |
+               (((CONFIG_SYS_BANK7_END & MICR_EADDR_MASK) >> MICR_EADDR_SHIFT) << 24));
+
+       CONFIG_WRITE_BYTE(ODCR, CONFIG_SYS_ODCR);
+#ifdef CONFIG_SYS_DLL_MAX_DELAY
+       CONFIG_WRITE_BYTE(MIOCR1, CONFIG_SYS_DLL_MAX_DELAY);    /* needed to make DLL lock */
 #endif
-#if defined(CFG_DLL_EXTEND) && defined(CFG_PCI_HOLD_DEL)
-       CONFIG_WRITE_BYTE(PMCR2, CFG_DLL_EXTEND | CFG_PCI_HOLD_DEL);
+#if defined(CONFIG_SYS_DLL_EXTEND) && defined(CONFIG_SYS_PCI_HOLD_DEL)
+       CONFIG_WRITE_BYTE(PMCR2, CONFIG_SYS_DLL_EXTEND | CONFIG_SYS_PCI_HOLD_DEL);
 #endif
-#if defined(MIOCR2) && defined(CFG_SDRAM_DSCD)
-       CONFIG_WRITE_BYTE(MIOCR2, CFG_SDRAM_DSCD);      /* change memory input */
+#if defined(MIOCR2) && defined(CONFIG_SYS_SDRAM_DSCD)
+       CONFIG_WRITE_BYTE(MIOCR2, CONFIG_SYS_SDRAM_DSCD);       /* change memory input */
 #endif /* setup & hold time */
 
        CONFIG_WRITE_BYTE(MBER,
-                CFG_BANK0_ENABLE |
-               (CFG_BANK1_ENABLE << 1) |
-               (CFG_BANK2_ENABLE << 2) |
-               (CFG_BANK3_ENABLE << 3) |
-               (CFG_BANK4_ENABLE << 4) |
-               (CFG_BANK5_ENABLE << 5) |
-               (CFG_BANK6_ENABLE << 6) |
-               (CFG_BANK7_ENABLE << 7));
-
-#ifdef CFG_PGMAX
-       CONFIG_WRITE_BYTE(MPMR, CFG_PGMAX);
+                CONFIG_SYS_BANK0_ENABLE |
+               (CONFIG_SYS_BANK1_ENABLE << 1) |
+               (CONFIG_SYS_BANK2_ENABLE << 2) |
+               (CONFIG_SYS_BANK3_ENABLE << 3) |
+               (CONFIG_SYS_BANK4_ENABLE << 4) |
+               (CONFIG_SYS_BANK5_ENABLE << 5) |
+               (CONFIG_SYS_BANK6_ENABLE << 6) |
+               (CONFIG_SYS_BANK7_ENABLE << 7));
+
+#ifdef CONFIG_SYS_PGMAX
+       CONFIG_WRITE_BYTE(MPMR, CONFIG_SYS_PGMAX);
 #endif
 
        /* ! Wait 200us before initialize other registers */
index f89deed538bd5becaa9c9afff7762013bc504b58..ecbb42d0d62a711a508a5efae0ea3856b817b9dc 100644 (file)
@@ -311,7 +311,7 @@ ULONG sysEUMBBARRead
     {
     ULONG temp;
 
-    temp = *(ULONG *) (CFG_EUMB_ADDR + regNum);
+    temp = *(ULONG *) (CONFIG_SYS_EUMB_ADDR + regNum);
     return ( LONGSWAP(temp));
     }
 
@@ -331,7 +331,7 @@ void sysEUMBBARWrite
     )
     {
 
-    *(ULONG *) (CFG_EUMB_ADDR + regNum) = LONGSWAP(regVal);
+    *(ULONG *) (CONFIG_SYS_EUMB_ADDR + regNum) = LONGSWAP(regVal);
     return ;
     }
 
index 3add687514c060907f3150b03f2ebd5b8c034b98..854345e146eea7d46e82e9c502f5a27916bae6f4 100644 (file)
@@ -31,9 +31,9 @@
 #ifdef CONFIG_HARD_I2C
 #include <i2c.h>
 
-#define TIMEOUT (CFG_HZ/4)
+#define TIMEOUT (CONFIG_SYS_HZ/4)
 
-#define I2C_Addr ((unsigned *)(CFG_EUMB_ADDR + 0x3000))
+#define I2C_Addr ((unsigned *)(CONFIG_SYS_EUMB_ADDR + 0x3000))
 
 #define I2CADR &I2C_Addr[0]
 #define I2CFDR  &I2C_Addr[1]
index 4359ecc05e97e6c90c8463b74de316956338c4a3..139c52cd3c3cdf633d623b35b94b2ea235de4c9d 100644 (file)
@@ -31,7 +31,7 @@
 
 int interrupt_init_cpu (unsigned *decrementer_count)
 {
-       *decrementer_count = (get_bus_freq (0) / 4) / CFG_HZ;
+       *decrementer_count = (get_bus_freq (0) / 4) / CONFIG_SYS_HZ;
 
        /*
         * It's all broken at the moment and I currently don't need
@@ -57,7 +57,7 @@ void external_interrupt (struct pt_regs *regs)
 {
        register unsigned long temp;
 
-       pci_readl (CFG_EUMB_ADDR + EPIC_PROC_INT_ACK_REG, temp);
+       pci_readl (CONFIG_SYS_EUMB_ADDR + EPIC_PROC_INT_ACK_REG, temp);
        sync ();                                        /* i'm not convinced this is needed, but dink source has it */
        temp &= 0xff;                           /*get vector */
 
index 784edc36a0c8b433ed58e735089e32e54c27805b..b5d7eb109af6c39d3794ed4c10c9b194c2c484fb 100644 (file)
@@ -157,8 +157,8 @@ in_flash:
 
        /* Allocate Initial RAM in data cache.
         */
-       lis     r3, CFG_INIT_RAM_ADDR@h
-       ori     r3, r3, CFG_INIT_RAM_ADDR@l
+       lis     r3, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3, r3, CONFIG_SYS_INIT_RAM_ADDR@l
        li      r2, 128
        mtctr   r2
 1:
@@ -180,8 +180,8 @@ in_flash:
         * Thisk the stack pointer *somewhere* sensible. Doesnt
         * matter much where as we'll move it when we relocate
         */
-       lis     r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@h
-       ori     r1, r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@l
+       lis     r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@h
+       ori     r1, r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@l
 
        li      r0, 0                   /* Make room for stack frame header and */
        stwu    r0, -4(r1)              /* clear final stack frame so that      */
@@ -475,21 +475,21 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address     */
 
        mr      r3,  r5                         /* Destination Address  */
-#ifdef CFG_RAMBOOT
-       lis     r4, CFG_SDRAM_BASE@h            /* Source      Address  */
-       ori     r4, r4, CFG_SDRAM_BASE@l
+#ifdef CONFIG_SYS_RAMBOOT
+       lis     r4, CONFIG_SYS_SDRAM_BASE@h             /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_SDRAM_BASE@l
 #else
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
 #endif
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
@@ -531,8 +531,8 @@ relocate_code:
 /* Unlock the data cache and invalidate locked area */
        xor     r0, r0, r0
        mtspr   1011, r0
-       lis     r4, CFG_INIT_RAM_ADDR@h
-       ori     r4, r4, CFG_INIT_RAM_ADDR@l
+       lis     r4, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r4, r4, CONFIG_SYS_INIT_RAM_ADDR@l
        li      r0, 128
        mtctr   r0
 41:
@@ -709,66 +709,66 @@ trap_reloc:
        /* Setup the BAT registers.
         */
 setup_bats:
-       lis     r4, CFG_IBAT0L@h
-       ori     r4, r4, CFG_IBAT0L@l
-       lis     r3, CFG_IBAT0U@h
-       ori     r3, r3, CFG_IBAT0U@l
+       lis     r4, CONFIG_SYS_IBAT0L@h
+       ori     r4, r4, CONFIG_SYS_IBAT0L@l
+       lis     r3, CONFIG_SYS_IBAT0U@h
+       ori     r3, r3, CONFIG_SYS_IBAT0U@l
        mtspr   IBAT0L, r4
        mtspr   IBAT0U, r3
        isync
 
-       lis     r4, CFG_DBAT0L@h
-       ori     r4, r4, CFG_DBAT0L@l
-       lis     r3, CFG_DBAT0U@h
-       ori     r3, r3, CFG_DBAT0U@l
+       lis     r4, CONFIG_SYS_DBAT0L@h
+       ori     r4, r4, CONFIG_SYS_DBAT0L@l
+       lis     r3, CONFIG_SYS_DBAT0U@h
+       ori     r3, r3, CONFIG_SYS_DBAT0U@l
        mtspr   DBAT0L, r4
        mtspr   DBAT0U, r3
        isync
 
-       lis     r4, CFG_IBAT1L@h
-       ori     r4, r4, CFG_IBAT1L@l
-       lis     r3, CFG_IBAT1U@h
-       ori     r3, r3, CFG_IBAT1U@l
+       lis     r4, CONFIG_SYS_IBAT1L@h
+       ori     r4, r4, CONFIG_SYS_IBAT1L@l
+       lis     r3, CONFIG_SYS_IBAT1U@h
+       ori     r3, r3, CONFIG_SYS_IBAT1U@l
        mtspr   IBAT1L, r4
        mtspr   IBAT1U, r3
        isync
 
-       lis     r4, CFG_DBAT1L@h
-       ori     r4, r4, CFG_DBAT1L@l
-       lis     r3, CFG_DBAT1U@h
-       ori     r3, r3, CFG_DBAT1U@l
+       lis     r4, CONFIG_SYS_DBAT1L@h
+       ori     r4, r4, CONFIG_SYS_DBAT1L@l
+       lis     r3, CONFIG_SYS_DBAT1U@h
+       ori     r3, r3, CONFIG_SYS_DBAT1U@l
        mtspr   DBAT1L, r4
        mtspr   DBAT1U, r3
        isync
 
-       lis     r4, CFG_IBAT2L@h
-       ori     r4, r4, CFG_IBAT2L@l
-       lis     r3, CFG_IBAT2U@h
-       ori     r3, r3, CFG_IBAT2U@l
+       lis     r4, CONFIG_SYS_IBAT2L@h
+       ori     r4, r4, CONFIG_SYS_IBAT2L@l
+       lis     r3, CONFIG_SYS_IBAT2U@h
+       ori     r3, r3, CONFIG_SYS_IBAT2U@l
        mtspr   IBAT2L, r4
        mtspr   IBAT2U, r3
        isync
 
-       lis     r4, CFG_DBAT2L@h
-       ori     r4, r4, CFG_DBAT2L@l
-       lis     r3, CFG_DBAT2U@h
-       ori     r3, r3, CFG_DBAT2U@l
+       lis     r4, CONFIG_SYS_DBAT2L@h
+       ori     r4, r4, CONFIG_SYS_DBAT2L@l
+       lis     r3, CONFIG_SYS_DBAT2U@h
+       ori     r3, r3, CONFIG_SYS_DBAT2U@l
        mtspr   DBAT2L, r4
        mtspr   DBAT2U, r3
        isync
 
-       lis     r4, CFG_IBAT3L@h
-       ori     r4, r4, CFG_IBAT3L@l
-       lis     r3, CFG_IBAT3U@h
-       ori     r3, r3, CFG_IBAT3U@l
+       lis     r4, CONFIG_SYS_IBAT3L@h
+       ori     r4, r4, CONFIG_SYS_IBAT3L@l
+       lis     r3, CONFIG_SYS_IBAT3U@h
+       ori     r3, r3, CONFIG_SYS_IBAT3U@l
        mtspr   IBAT3L, r4
        mtspr   IBAT3U, r3
        isync
 
-       lis     r4, CFG_DBAT3L@h
-       ori     r4, r4, CFG_DBAT3L@l
-       lis     r3, CFG_DBAT3U@h
-       ori     r3, r3, CFG_DBAT3U@l
+       lis     r4, CONFIG_SYS_DBAT3L@h
+       ori     r4, r4, CONFIG_SYS_DBAT3L@l
+       lis     r3, CONFIG_SYS_DBAT3U@h
+       ori     r3, r3, CONFIG_SYS_DBAT3U@l
        mtspr   DBAT3L, r4
        mtspr   DBAT3U, r3
        isync
index 8777e773698c0addaf5681e98f603f22c2e99b13..94f6bc224fdab8403998163ddc8a4fdfd096d30b 100644 (file)
@@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;
 void
 m8260_cpm_reset(void)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile ulong count;
 
        /* Reclaim the DP memory for our use.
@@ -54,7 +54,7 @@ m8260_cpm_reset(void)
 uint
 m8260_cpm_dpalloc(uint size, uint align)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        uint    retloc;
        uint    align_mask, off;
        uint    savebase;
@@ -110,7 +110,7 @@ m8260_cpm_hostalloc(uint size, uint align)
 void
 m8260_cpm_setbrg(uint brg, uint rate)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile uint   *bp;
        uint cd = BRG_UART_CLK / rate;
 
@@ -133,7 +133,7 @@ m8260_cpm_setbrg(uint brg, uint rate)
 void
 m8260_cpm_fastbrg(uint brg, uint rate, int div16)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile uint   *bp;
 
        /* This is good enough to get SMCs running.....
@@ -158,7 +158,7 @@ m8260_cpm_fastbrg(uint brg, uint rate, int div16)
 void
 m8260_cpm_extcbrg(uint brg, uint rate, uint extclk, int pinsel)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile uint   *bp;
 
        if (brg < 4) {
@@ -181,7 +181,7 @@ m8260_cpm_extcbrg(uint brg, uint rate, uint extclk, int pinsel)
 void post_word_store (ulong a)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_IMMR + CPM_POST_WORD_ADDR);
+               (volatile ulong *)(CONFIG_SYS_IMMR + CPM_POST_WORD_ADDR);
 
        *save_addr = a;
 }
@@ -189,7 +189,7 @@ void post_word_store (ulong a)
 ulong post_word_load (void)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_IMMR + CPM_POST_WORD_ADDR);
+               (volatile ulong *)(CONFIG_SYS_IMMR + CPM_POST_WORD_ADDR);
 
        return *save_addr;
 }
@@ -201,7 +201,7 @@ ulong post_word_load (void)
 void bootcount_store (ulong a)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_IMMR + CPM_BOOTCOUNT_ADDR);
+               (volatile ulong *)(CONFIG_SYS_IMMR + CPM_BOOTCOUNT_ADDR);
 
        save_addr[0] = a;
        save_addr[1] = BOOTCOUNT_MAGIC;
@@ -210,7 +210,7 @@ void bootcount_store (ulong a)
 ulong bootcount_load (void)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_IMMR + CPM_BOOTCOUNT_ADDR);
+               (volatile ulong *)(CONFIG_SYS_IMMR + CPM_BOOTCOUNT_ADDR);
 
        if (save_addr[1] != BOOTCOUNT_MAGIC)
                return 0;
index efb8ed6f4e8d60f674b13ee263a03f077ff7a2b5..9f834d3e5a2c62b714712476206d8baafaf58add 100644 (file)
@@ -61,7 +61,7 @@ extern int get_cpu_str_f (char *buf);
 
 int checkcpu (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        ulong clock = gd->cpu_clk;
        uint pvr = get_pvr ();
        uint immr, rev, m, k;
@@ -88,7 +88,7 @@ int checkcpu (void)
        rev = pvr & 0xff;
 
        immr = immap->im_memctl.memc_immr;
-       if ((immr & IMMR_ISB_MSK) != CFG_IMMR)
+       if ((immr & IMMR_ISB_MSK) != CONFIG_SYS_IMMR)
                return -1;      /* whoops! someone moved the IMMR */
 
 #if defined(CONFIG_GET_CPU_STR_F)
@@ -178,7 +178,7 @@ int checkcpu (void)
 
 void upmconfig (uint upm, uint * table, uint size)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
        volatile uchar *dummy = (uchar *) BRx_BA_MSK;   /* set all BA bits */
        uint i;
@@ -241,7 +241,7 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
        ulong msr, addr;
 
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        immap->im_clkrst.car_rmr = RMR_CSRE;    /* Checkstop Reset enable */
 
@@ -255,15 +255,15 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
         * Trying to execute the next instruction at a non-existing address
         * should cause a machine check, resulting in reset
         */
-#ifdef CFG_RESET_ADDRESS
-       addr = CFG_RESET_ADDRESS;
+#ifdef CONFIG_SYS_RESET_ADDRESS
+       addr = CONFIG_SYS_RESET_ADDRESS;
 #else
        /*
-        * note: when CFG_MONITOR_BASE points to a RAM address, CFG_MONITOR_BASE
+        * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address, CONFIG_SYS_MONITOR_BASE
         * - sizeof (ulong) is usually a valid address. Better pick an address
-        * known to be invalid on your system and assign it to CFG_RESET_ADDRESS.
+        * known to be invalid on your system and assign it to CONFIG_SYS_RESET_ADDRESS.
         */
-       addr = CFG_MONITOR_BASE - sizeof (ulong);
+       addr = CONFIG_SYS_MONITOR_BASE - sizeof (ulong);
 #endif
        ((void (*)(void)) addr) ();
        return 1;
@@ -293,7 +293,7 @@ void watchdog_reset (void)
 {
        int re_enable = disable_interrupts ();
 
-       reset_8260_watchdog ((immap_t *) CFG_IMMR);
+       reset_8260_watchdog ((immap_t *) CONFIG_SYS_IMMR);
        if (re_enable)
                enable_interrupts ();
 }
index 36fc1eba5fd1014458fcf4d453a219eacf6e3d9c..1d527734456d7c878825a4877ef9ad455039f5ec 100644 (file)
@@ -114,7 +114,7 @@ void cpu_init_f (volatile immap_t * immr)
        extern void m8260_cpm_reset (void);
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
@@ -124,45 +124,45 @@ void cpu_init_f (volatile immap_t * immr)
        immr->im_clkrst.car_rsr = RSR_ALLBITS;
 
        /* RMR - Reset Mode Register - contains checkstop reset enable (5-5) */
-       immr->im_clkrst.car_rmr = CFG_RMR;
+       immr->im_clkrst.car_rmr = CONFIG_SYS_RMR;
 
        /* BCR - Bus Configuration Register (4-25) */
-#if defined(CFG_BCR_60x) && (CFG_BCR_SINGLE)
+#if defined(CONFIG_SYS_BCR_60x) && (CONFIG_SYS_BCR_SINGLE)
        if (immr->im_siu_conf.sc_bcr & BCR_EBM) {
-               immr->im_siu_conf.sc_bcr = SET_VAL_MASK(immr->im_siu_conf.sc_bcr, CFG_BCR_60x, 0x80000010);
+               immr->im_siu_conf.sc_bcr = SET_VAL_MASK(immr->im_siu_conf.sc_bcr, CONFIG_SYS_BCR_60x, 0x80000010);
        } else {
-               immr->im_siu_conf.sc_bcr = SET_VAL_MASK(immr->im_siu_conf.sc_bcr, CFG_BCR_SINGLE, 0x80000010);
+               immr->im_siu_conf.sc_bcr = SET_VAL_MASK(immr->im_siu_conf.sc_bcr, CONFIG_SYS_BCR_SINGLE, 0x80000010);
        }
 #else
-       immr->im_siu_conf.sc_bcr = CFG_BCR;
+       immr->im_siu_conf.sc_bcr = CONFIG_SYS_BCR;
 #endif
 
        /* SIUMCR - contains debug pin configuration (4-31) */
-#if defined(CFG_SIUMCR_LOW) && (CFG_SIUMCR_HIGH)
+#if defined(CONFIG_SYS_SIUMCR_LOW) && (CONFIG_SYS_SIUMCR_HIGH)
        cpu_clk = board_get_cpu_clk_f ();
        if (cpu_clk >= 100000000) {
-               immr->im_siu_conf.sc_siumcr = SET_VAL_MASK(immr->im_siu_conf.sc_siumcr, CFG_SIUMCR_HIGH, 0x9f3cc000);
+               immr->im_siu_conf.sc_siumcr = SET_VAL_MASK(immr->im_siu_conf.sc_siumcr, CONFIG_SYS_SIUMCR_HIGH, 0x9f3cc000);
        } else {
-               immr->im_siu_conf.sc_siumcr = SET_VAL_MASK(immr->im_siu_conf.sc_siumcr, CFG_SIUMCR_LOW, 0x9f3cc000);
+               immr->im_siu_conf.sc_siumcr = SET_VAL_MASK(immr->im_siu_conf.sc_siumcr, CONFIG_SYS_SIUMCR_LOW, 0x9f3cc000);
        }
 #else
-       immr->im_siu_conf.sc_siumcr = CFG_SIUMCR;
+       immr->im_siu_conf.sc_siumcr = CONFIG_SYS_SIUMCR;
 #endif
 
        config_8260_ioports (immr);
 
        /* initialize time counter status and control register (4-40) */
-       immr->im_sit.sit_tmcntsc = CFG_TMCNTSC;
+       immr->im_sit.sit_tmcntsc = CONFIG_SYS_TMCNTSC;
 
        /* initialize the PIT (4-42) */
-       immr->im_sit.sit_piscr = CFG_PISCR;
+       immr->im_sit.sit_piscr = CONFIG_SYS_PISCR;
 
 #if !defined(CONFIG_COGENT)            /* done in start.S for the cogent */
        /* System clock control register (9-8) */
        sccr = immr->im_clkrst.car_sccr &
                (SCCR_PCI_MODE | SCCR_PCI_MODCK | SCCR_PCIDF_MSK);
        immr->im_clkrst.car_sccr = sccr |
-               (CFG_SCCR & ~(SCCR_PCI_MODE | SCCR_PCI_MODCK | SCCR_PCIDF_MSK) );
+               (CONFIG_SYS_SCCR & ~(SCCR_PCI_MODE | SCCR_PCI_MODCK | SCCR_PCIDF_MSK) );
 #endif /* !CONFIG_COGENT */
 
        /*
@@ -174,71 +174,71 @@ void cpu_init_f (volatile immap_t * immr)
         * has been determined
         */
 
-#if defined(CFG_OR0_REMAP)
-       memctl->memc_or0 = CFG_OR0_REMAP;
+#if defined(CONFIG_SYS_OR0_REMAP)
+       memctl->memc_or0 = CONFIG_SYS_OR0_REMAP;
 #endif
-#if defined(CFG_OR1_REMAP)
-       memctl->memc_or1 = CFG_OR1_REMAP;
+#if defined(CONFIG_SYS_OR1_REMAP)
+       memctl->memc_or1 = CONFIG_SYS_OR1_REMAP;
 #endif
 
        /* now restrict to preliminary range */
        /* the PS came from the HRCW, don´t change it */
-       memctl->memc_br0 = SET_VAL_MASK(memctl->memc_br0 , CFG_BR0_PRELIM, BRx_PS_MSK);
-       memctl->memc_or0 = CFG_OR0_PRELIM;
+       memctl->memc_br0 = SET_VAL_MASK(memctl->memc_br0 , CONFIG_SYS_BR0_PRELIM, BRx_PS_MSK);
+       memctl->memc_or0 = CONFIG_SYS_OR0_PRELIM;
 
-#if defined(CFG_BR1_PRELIM) && defined(CFG_OR1_PRELIM)
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+#if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 #endif
 
-#if defined(CFG_BR2_PRELIM) && defined(CFG_OR2_PRELIM)
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+#if defined(CONFIG_SYS_BR2_PRELIM) && defined(CONFIG_SYS_OR2_PRELIM)
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 #endif
 
-#if defined(CFG_BR3_PRELIM) && defined(CFG_OR3_PRELIM)
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+#if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 #endif
 
-#if defined(CFG_BR4_PRELIM) && defined(CFG_OR4_PRELIM)
-       memctl->memc_or4 = CFG_OR4_PRELIM;
-       memctl->memc_br4 = CFG_BR4_PRELIM;
+#if defined(CONFIG_SYS_BR4_PRELIM) && defined(CONFIG_SYS_OR4_PRELIM)
+       memctl->memc_or4 = CONFIG_SYS_OR4_PRELIM;
+       memctl->memc_br4 = CONFIG_SYS_BR4_PRELIM;
 #endif
 
-#if defined(CFG_BR5_PRELIM) && defined(CFG_OR5_PRELIM)
-       memctl->memc_or5 = CFG_OR5_PRELIM;
-       memctl->memc_br5 = CFG_BR5_PRELIM;
+#if defined(CONFIG_SYS_BR5_PRELIM) && defined(CONFIG_SYS_OR5_PRELIM)
+       memctl->memc_or5 = CONFIG_SYS_OR5_PRELIM;
+       memctl->memc_br5 = CONFIG_SYS_BR5_PRELIM;
 #endif
 
-#if defined(CFG_BR6_PRELIM) && defined(CFG_OR6_PRELIM)
-       memctl->memc_or6 = CFG_OR6_PRELIM;
-       memctl->memc_br6 = CFG_BR6_PRELIM;
+#if defined(CONFIG_SYS_BR6_PRELIM) && defined(CONFIG_SYS_OR6_PRELIM)
+       memctl->memc_or6 = CONFIG_SYS_OR6_PRELIM;
+       memctl->memc_br6 = CONFIG_SYS_BR6_PRELIM;
 #endif
 
-#if defined(CFG_BR7_PRELIM) && defined(CFG_OR7_PRELIM)
-       memctl->memc_or7 = CFG_OR7_PRELIM;
-       memctl->memc_br7 = CFG_BR7_PRELIM;
+#if defined(CONFIG_SYS_BR7_PRELIM) && defined(CONFIG_SYS_OR7_PRELIM)
+       memctl->memc_or7 = CONFIG_SYS_OR7_PRELIM;
+       memctl->memc_br7 = CONFIG_SYS_BR7_PRELIM;
 #endif
 
-#if defined(CFG_BR8_PRELIM) && defined(CFG_OR8_PRELIM)
-       memctl->memc_or8 = CFG_OR8_PRELIM;
-       memctl->memc_br8 = CFG_BR8_PRELIM;
+#if defined(CONFIG_SYS_BR8_PRELIM) && defined(CONFIG_SYS_OR8_PRELIM)
+       memctl->memc_or8 = CONFIG_SYS_OR8_PRELIM;
+       memctl->memc_br8 = CONFIG_SYS_BR8_PRELIM;
 #endif
 
-#if defined(CFG_BR9_PRELIM) && defined(CFG_OR9_PRELIM)
-       memctl->memc_or9 = CFG_OR9_PRELIM;
-       memctl->memc_br9 = CFG_BR9_PRELIM;
+#if defined(CONFIG_SYS_BR9_PRELIM) && defined(CONFIG_SYS_OR9_PRELIM)
+       memctl->memc_or9 = CONFIG_SYS_OR9_PRELIM;
+       memctl->memc_br9 = CONFIG_SYS_BR9_PRELIM;
 #endif
 
-#if defined(CFG_BR10_PRELIM) && defined(CFG_OR10_PRELIM)
-       memctl->memc_or10 = CFG_OR10_PRELIM;
-       memctl->memc_br10 = CFG_BR10_PRELIM;
+#if defined(CONFIG_SYS_BR10_PRELIM) && defined(CONFIG_SYS_OR10_PRELIM)
+       memctl->memc_or10 = CONFIG_SYS_OR10_PRELIM;
+       memctl->memc_br10 = CONFIG_SYS_BR10_PRELIM;
 #endif
 
-#if defined(CFG_BR11_PRELIM) && defined(CFG_OR11_PRELIM)
-       memctl->memc_or11 = CFG_OR11_PRELIM;
-       memctl->memc_br11 = CFG_BR11_PRELIM;
+#if defined(CONFIG_SYS_BR11_PRELIM) && defined(CONFIG_SYS_OR11_PRELIM)
+       memctl->memc_or11 = CONFIG_SYS_OR11_PRELIM;
+       memctl->memc_br11 = CONFIG_SYS_BR11_PRELIM;
 #endif
 
        m8260_cpm_reset ();
@@ -251,7 +251,7 @@ int cpu_init_r (void)
 {
        volatile immap_t *immr = (immap_t *) gd->bd->bi_immr_base;
 
-       immr->im_cpm.cp_rccr = CFG_RCCR;
+       immr->im_cpm.cp_rccr = CONFIG_SYS_RCCR;
 
        return (0);
 }
index 37bf4456ed1b032a892abced7dffb7c138943d39..3ab57eb5b4eb7ba3f88950d935ddc64bf599b772 100644 (file)
@@ -73,8 +73,8 @@ static struct ether_fcc_info_s
        PROFF_FCC1,
        CPM_CR_FCC1_SBLOCK,
        CPM_CR_FCC1_PAGE,
-       CFG_CMXFCR_MASK1,
-       CFG_CMXFCR_VALUE1
+       CONFIG_SYS_CMXFCR_MASK1,
+       CONFIG_SYS_CMXFCR_VALUE1
 },
 #endif
 
@@ -84,8 +84,8 @@ static struct ether_fcc_info_s
        PROFF_FCC2,
        CPM_CR_FCC2_SBLOCK,
        CPM_CR_FCC2_PAGE,
-       CFG_CMXFCR_MASK2,
-       CFG_CMXFCR_VALUE2
+       CONFIG_SYS_CMXFCR_MASK2,
+       CONFIG_SYS_CMXFCR_VALUE2
 },
 #endif
 
@@ -95,8 +95,8 @@ static struct ether_fcc_info_s
        PROFF_FCC3,
        CPM_CR_FCC3_SBLOCK,
        CPM_CR_FCC3_PAGE,
-       CFG_CMXFCR_MASK3,
-       CFG_CMXFCR_VALUE3
+       CONFIG_SYS_CMXFCR_MASK3,
+       CONFIG_SYS_CMXFCR_VALUE3
 },
 #endif
 };
@@ -225,7 +225,7 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
 {
     struct ether_fcc_info_s * info = dev->priv;
     int i;
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
     volatile cpm8260_t *cp = &(immr->im_cpm);
     fcc_enet_t *pram_ptr;
     unsigned long mem_addr;
@@ -246,7 +246,7 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
       FCC_GFMR_MODE_ENET | FCC_GFMR_TCRC_32;
 
     /* 28.9 - (5): FPSMR: enable full duplex, select CCITT CRC for Ethernet */
-    immr->im_fcc[info->ether_index].fcc_fpsmr = CFG_FCC_PSMR | FCC_PSMR_ENCRC;
+    immr->im_fcc[info->ether_index].fcc_fpsmr = CONFIG_SYS_FCC_PSMR | FCC_PSMR_ENCRC;
 
     /* 28.9 - (6): FDSR: Ethernet Syn */
     immr->im_fcc[info->ether_index].fcc_fdsr = 0xD555;
@@ -296,10 +296,10 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
      */
     pram_ptr->fen_genfcc.fcc_mrblr = PKT_MAXBLR_SIZE;
     pram_ptr->fen_genfcc.fcc_rstate = (CPMFCR_GBL | CPMFCR_EB |
-                                      CFG_CPMFCR_RAMTYPE) << 24;
+                                      CONFIG_SYS_CPMFCR_RAMTYPE) << 24;
     pram_ptr->fen_genfcc.fcc_rbase = (unsigned int)(&rtx.rxbd[rxIdx]);
     pram_ptr->fen_genfcc.fcc_tstate = (CPMFCR_GBL | CPMFCR_EB |
-                                      CFG_CPMFCR_RAMTYPE) << 24;
+                                      CONFIG_SYS_CPMFCR_RAMTYPE) << 24;
     pram_ptr->fen_genfcc.fcc_tbase = (unsigned int)(&rtx.txbd[txIdx]);
 
     /* protocol-specific area */
@@ -366,7 +366,7 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
 static void fec_halt(struct eth_device* dev)
 {
     struct ether_fcc_info_s * info = dev->priv;
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
     /* write GFMR: disable tx/rx */
     immr->im_fcc[info->ether_index].fcc_gfmr &=
@@ -646,7 +646,7 @@ swap16 (unsigned short x)
 void
 eth_loopback_test (void)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8260_t *cp = &(immr->im_cpm);
        int c, nclosed;
        ulong runtime, nmsec;
index 633d053914ec17f8b3f7b99f3d7e4ad09d6c0bb5..c65f0e068f7ad9e29c3445c0b01ee67778874a4f 100644 (file)
@@ -77,8 +77,8 @@
 
 #define TX_BUF_CNT 2
 
-#if !defined(CFG_SCC_TOUT_LOOP)
-  #define CFG_SCC_TOUT_LOOP 1000000
+#if !defined(CONFIG_SYS_SCC_TOUT_LOOP)
+  #define CONFIG_SYS_SCC_TOUT_LOOP 1000000
 #endif
 
 static char txbuf[TX_BUF_CNT][ DBUF_LENGTH ];
@@ -111,7 +111,7 @@ int eth_send(volatile void *packet, int length)
     }
 
     for(i=0; rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) {
-       if (i >= CFG_SCC_TOUT_LOOP) {
+       if (i >= CONFIG_SYS_SCC_TOUT_LOOP) {
            puts ("scc: tx buffer not ready\n");
            goto out;
        }
@@ -123,7 +123,7 @@ int eth_send(volatile void *packet, int length)
                                BD_ENET_TX_WRAP);
 
     for(i=0; rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) {
-       if (i >= CFG_SCC_TOUT_LOOP) {
+       if (i >= CONFIG_SYS_SCC_TOUT_LOOP) {
            puts ("scc: tx error\n");
            goto out;
        }
@@ -187,7 +187,7 @@ int eth_rx(void)
 int eth_init(bd_t *bis)
 {
     int i;
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
     scc_enet_t *pram_ptr;
     uint dpaddr;
 
@@ -203,7 +203,7 @@ int eth_init(bd_t *bis)
     /* 24.21 - (4,5): connect SCC's tx and rx clocks, use NMSI for SCC */
     immr->im_cpmux.cmx_uar = 0;
     immr->im_cpmux.cmx_scr = ( (immr->im_cpmux.cmx_scr & ~CMXSCR_MASK) |
-                              CFG_CMXSCR_VALUE);
+                              CONFIG_SYS_CMXSCR_VALUE);
 
 
     /* 24.21 (6) write RBASE and TBASE to parameter RAM */
@@ -340,7 +340,7 @@ int eth_init(bd_t *bis)
 
 void eth_halt(void)
 {
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
     immr->im_scc[CONFIG_ETHER_INDEX-1].scc_gsmrl &= ~(SCC_GSMRL_ENR |
                                                      SCC_GSMRL_ENT);
 }
@@ -348,7 +348,7 @@ void eth_halt(void)
 #if 0
 void restart(void)
 {
-    volatile immap_t *immr = (immap_t *)CFG_IMMR;
+    volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
     immr->im_cpm.cp_scc[CONFIG_ETHER_INDEX-1].scc_gsmrl |= (SCC_GSMRL_ENR |
                                                            SCC_GSMRL_ENT);
 }
index a96fbf841e0a90c4e4d32dc55941de539c5897c8..a93419396fe6c49b8d66fab69ed4569bcad90444 100644 (file)
@@ -54,12 +54,12 @@ static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = 0;
 /*-----------------------------------------------------------------------
  * Set default values
  */
-#ifndef        CFG_I2C_SPEED
-#define        CFG_I2C_SPEED   50000
+#ifndef        CONFIG_SYS_I2C_SPEED
+#define        CONFIG_SYS_I2C_SPEED    50000
 #endif
 
-#ifndef        CFG_I2C_SLAVE
-#define        CFG_I2C_SLAVE   0xFE
+#ifndef        CONFIG_SYS_I2C_SLAVE
+#define        CONFIG_SYS_I2C_SLAVE    0xFE
 #endif
 /*-----------------------------------------------------------------------
  */
@@ -176,7 +176,7 @@ i2c_roundrate(int hz, int speed, int filter, int modval,
  */
 static int i2c_setrate(int hz, int speed)
 {
-    immap_t    *immap = (immap_t *)CFG_IMMR ;
+    immap_t    *immap = (immap_t *)CONFIG_SYS_IMMR ;
     volatile i2c8260_t *i2c = (i2c8260_t *)&immap->im_i2c;
     int brgval,
          modval,       /* 0-3 */
@@ -219,7 +219,7 @@ static int i2c_setrate(int hz, int speed)
 
 void i2c_init(int speed, int slaveadd)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR ;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR ;
        volatile cpm8260_t *cp = (cpm8260_t *)&immap->im_cpm;
        volatile i2c8260_t *i2c = (i2c8260_t *)&immap->im_i2c;
        volatile iic_t *iip;
@@ -227,7 +227,7 @@ void i2c_init(int speed, int slaveadd)
        volatile I2C_BD *rxbd, *txbd;
        uint dpaddr;
 
-#ifdef CFG_I2C_INIT_BOARD
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
        /* call board specific i2c bus reset routine before accessing the   */
        /* environment, which might be in a chip on that bus. For details   */
        /* about this problem see doc/I2C_Edge_Conditions.                  */
@@ -270,7 +270,7 @@ void i2c_init(int speed, int slaveadd)
         * divide BRGCLK by 1)
         */
        PRINTD(("[I2C] Setting rate...\n"));
-       i2c_setrate (gd->brg_clk, CFG_I2C_SPEED) ;
+       i2c_setrate (gd->brg_clk, CONFIG_SYS_I2C_SPEED) ;
 
        /* Set I2C controller in master mode */
        i2c->i2c_i2com = 0x01;
@@ -309,7 +309,7 @@ void i2c_init(int speed, int slaveadd)
 static
 void i2c_newio(i2c_state_t *state)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR ;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR ;
        volatile iic_t *iip;
        uint dpaddr;
 
@@ -494,7 +494,7 @@ int i2c_receive(i2c_state_t *state,
 static
 int i2c_doio(i2c_state_t *state)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR ;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR ;
        volatile iic_t *iip;
        volatile i2c8260_t *i2c = (i2c8260_t *)&immap->im_i2c;
        volatile I2C_BD *txbd, *rxbd;
@@ -667,7 +667,7 @@ i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)
        xaddr[2] = (addr >>  8) & 0xFF;
        xaddr[3] =  addr        & 0xFF;
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
         /*
          * EEPROM chips that implement "address overflow" are ones
          * like Catalyst 24WC04/08/16 which has 9/10/11 bits of address
@@ -679,7 +679,7 @@ i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)
          * be one byte because the extra address bits are hidden in the
          * chip address.
          */
-       chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+       chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
 
        i2c_newio(&state);
@@ -716,7 +716,7 @@ i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)
        xaddr[2] = (addr >>  8) & 0xFF;
        xaddr[3] =  addr        & 0xFF;
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
         /*
          * EEPROM chips that implement "address overflow" are ones
          * like Catalyst 24WC04/08/16 which has 9/10/11 bits of address
@@ -728,7 +728,7 @@ i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)
          * be one byte because the extra address bits are hidden in the
          * chip address.
          */
-       chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+       chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
 
        i2c_newio(&state);
@@ -781,7 +781,7 @@ unsigned int i2c_get_bus_num(void)
 int i2c_set_bus_num(unsigned int bus)
 {
 #if defined(CONFIG_I2C_MUX)
-       if (bus < CFG_MAX_I2C_BUS) {
+       if (bus < CONFIG_SYS_MAX_I2C_BUS) {
                i2c_bus_num = bus;
        } else {
                int     ret;
@@ -793,7 +793,7 @@ int i2c_set_bus_num(unsigned int bus)
                        return ret;
        }
 #else
-       if (bus >= CFG_MAX_I2C_BUS)
+       if (bus >= CONFIG_SYS_MAX_I2C_BUS)
                return -1;
        i2c_bus_num = bus;
 #endif
@@ -802,12 +802,12 @@ int i2c_set_bus_num(unsigned int bus)
 /* TODO: add 100/400k switching */
 unsigned int i2c_get_bus_speed(void)
 {
-       return CFG_I2C_SPEED;
+       return CONFIG_SYS_I2C_SPEED;
 }
 
 int i2c_set_bus_speed(unsigned int speed)
 {
-       if (speed != CFG_I2C_SPEED)
+       if (speed != CONFIG_SYS_I2C_SPEED)
                return -1;
 
        return 0;
index bf0d4d0d59f06a471f15c9ef347a0e044b411b23..a7700c4b65da016d60d5226718c1312fb5f211f2 100644 (file)
@@ -82,7 +82,7 @@ static u_char irq_to_siubit[] = {
 
 static void m8260_mask_irq (unsigned int irq_nr)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int bit, word;
        volatile uint *simr;
 
@@ -96,7 +96,7 @@ static void m8260_mask_irq (unsigned int irq_nr)
 
 static void m8260_unmask_irq (unsigned int irq_nr)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int bit, word;
        volatile uint *simr;
 
@@ -110,7 +110,7 @@ static void m8260_unmask_irq (unsigned int irq_nr)
 
 static void m8260_mask_and_ack (unsigned int irq_nr)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int bit, word;
        volatile uint *simr, *sipnr;
 
@@ -126,7 +126,7 @@ static void m8260_mask_and_ack (unsigned int irq_nr)
 
 static int m8260_get_irq (struct pt_regs *regs)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int irq;
        unsigned long bits;
 
@@ -142,9 +142,9 @@ static int m8260_get_irq (struct pt_regs *regs)
 
 int interrupt_init_cpu (unsigned *decrementer_count)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
-       *decrementer_count = (gd->bus_clk / 4) / CFG_HZ;
+       *decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
 
        /* Initialize the default interrupt mapping priorities */
        immr->im_intctl.ic_sicr = 0;
index dae87bb97c77f0eff6596619f2da42d70f3c84c4..c5936c7345010288cd2ae6767d2de4516e9f7a4f 100644 (file)
@@ -50,21 +50,21 @@ kgdb_flush_cache_all:
 
        .globl  kgdb_flush_cache_range
 kgdb_flush_cache_range:
-       li      r5,CFG_CACHELINE_SIZE-1
+       li      r5,CONFIG_SYS_CACHELINE_SIZE-1
        andc    r3,r3,r5
        subf    r4,r3,r4
        add     r4,r4,r5
-       srwi.   r4,r4,CFG_CACHELINE_SHIFT
+       srwi.   r4,r4,CONFIG_SYS_CACHELINE_SHIFT
        beqlr
        mtctr   r4
        mr      r6,r3
 1:     dcbst   0,r3
-       addi    r3,r3,CFG_CACHELINE_SIZE
+       addi    r3,r3,CONFIG_SYS_CACHELINE_SIZE
        bdnz    1b
        sync                            /* wait for dcbst's to get to ram */
        mtctr   r4
 2:     icbi    0,r6
-       addi    r6,r6,CFG_CACHELINE_SIZE
+       addi    r6,r6,CONFIG_SYS_CACHELINE_SIZE
        bdnz    2b
        SYNC
        blr
index 82303644b2be6df407b296992f3c251f90e839eb..378d6c573a2ef3caa238dd2fac58e11af17872e5 100644 (file)
@@ -70,23 +70,23 @@ DECLARE_GLOBAL_DATA_PTR;
  * This window is set up using the first set of Inbound ATU registers
  */
 
-#ifndef CFG_PCI_SLV_MEM_LOCAL
-#define PCI_SLV_MEM_LOCAL CFG_SDRAM_BASE       /* Local base */
+#ifndef CONFIG_SYS_PCI_SLV_MEM_LOCAL
+#define PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE        /* Local base */
 #else
-#define PCI_SLV_MEM_LOCAL CFG_PCI_SLV_MEM_LOCAL
+#define PCI_SLV_MEM_LOCAL CONFIG_SYS_PCI_SLV_MEM_LOCAL
 #endif
 
-#ifndef CFG_PCI_SLV_MEM_BUS
+#ifndef CONFIG_SYS_PCI_SLV_MEM_BUS
 #define PCI_SLV_MEM_BUS 0x00000000     /* PCI base */
 #else
-#define PCI_SLV_MEM_BUS CFG_PCI_SLV_MEM_BUS
+#define PCI_SLV_MEM_BUS CONFIG_SYS_PCI_SLV_MEM_BUS
 #endif
 
-#ifndef CFG_PICMR0_MASK_ATTRIB
+#ifndef CONFIG_SYS_PICMR0_MASK_ATTRIB
 #define PICMR0_MASK_ATTRIB     (PICMR_MASK_512MB | PICMR_ENABLE | \
                                 PICMR_PREFETCH_EN)
 #else
-#define PICMR0_MASK_ATTRIB CFG_PICMR0_MASK_ATTRIB
+#define PICMR0_MASK_ATTRIB CONFIG_SYS_PICMR0_MASK_ATTRIB
 #endif
 
 /*
@@ -97,29 +97,29 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 
 /* PCIBR0 */
-#ifndef CFG_PCI_MSTR0_LOCAL
+#ifndef CONFIG_SYS_PCI_MSTR0_LOCAL
 #define PCI_MSTR0_LOCAL                0x80000000      /* Local base */
 #else
-#define PCI_MSTR0_LOCAL CFG_PCI_MSTR0_LOCAL
+#define PCI_MSTR0_LOCAL CONFIG_SYS_PCI_MSTR0_LOCAL
 #endif
 
-#ifndef CFG_PCIMSK0_MASK
+#ifndef CONFIG_SYS_PCIMSK0_MASK
 #define PCIMSK0_MASK           PCIMSK_1GB      /* Size of window */
 #else
-#define PCIMSK0_MASK   CFG_PCIMSK0_MASK
+#define PCIMSK0_MASK   CONFIG_SYS_PCIMSK0_MASK
 #endif
 
 /* PCIBR1 */
-#ifndef CFG_PCI_MSTR1_LOCAL
+#ifndef CONFIG_SYS_PCI_MSTR1_LOCAL
 #define PCI_MSTR1_LOCAL                0xF4000000      /* Local base */
 #else
-#define PCI_MSTR1_LOCAL                CFG_PCI_MSTR1_LOCAL
+#define PCI_MSTR1_LOCAL                CONFIG_SYS_PCI_MSTR1_LOCAL
 #endif
 
-#ifndef CFG_PCIMSK1_MASK
+#ifndef CONFIG_SYS_PCIMSK1_MASK
 #define         PCIMSK1_MASK           PCIMSK_64MB     /* Size of window */
 #else
-#define         PCIMSK1_MASK           CFG_PCIMSK1_MASK
+#define         PCIMSK1_MASK           CONFIG_SYS_PCIMSK1_MASK
 #endif
 
 /*
@@ -128,34 +128,34 @@ DECLARE_GLOBAL_DATA_PTR;
  * in the bridge.
  */
 
-#ifndef CFG_PCI_MSTR_MEM_LOCAL
+#ifndef CONFIG_SYS_PCI_MSTR_MEM_LOCAL
 #define PCI_MSTR_MEM_LOCAL 0x80000000  /* Local base */
 #else
-#define PCI_MSTR_MEM_LOCAL CFG_PCI_MSTR_MEM_LOCAL
+#define PCI_MSTR_MEM_LOCAL CONFIG_SYS_PCI_MSTR_MEM_LOCAL
 #endif
 
-#ifndef CFG_PCI_MSTR_MEM_BUS
+#ifndef CONFIG_SYS_PCI_MSTR_MEM_BUS
 #define PCI_MSTR_MEM_BUS 0x80000000    /* PCI base   */
 #else
-#define PCI_MSTR_MEM_BUS CFG_PCI_MSTR_MEM_BUS
+#define PCI_MSTR_MEM_BUS CONFIG_SYS_PCI_MSTR_MEM_BUS
 #endif
 
-#ifndef CFG_CPU_PCI_MEM_START
+#ifndef CONFIG_SYS_CPU_PCI_MEM_START
 #define CPU_PCI_MEM_START PCI_MSTR_MEM_LOCAL
 #else
-#define CPU_PCI_MEM_START CFG_CPU_PCI_MEM_START
+#define CPU_PCI_MEM_START CONFIG_SYS_CPU_PCI_MEM_START
 #endif
 
-#ifndef CFG_PCI_MSTR_MEM_SIZE
+#ifndef CONFIG_SYS_PCI_MSTR_MEM_SIZE
 #define PCI_MSTR_MEM_SIZE 0x10000000   /* 256MB */
 #else
-#define PCI_MSTR_MEM_SIZE CFG_PCI_MSTR_MEM_SIZE
+#define PCI_MSTR_MEM_SIZE CONFIG_SYS_PCI_MSTR_MEM_SIZE
 #endif
 
-#ifndef CFG_POCMR0_MASK_ATTRIB
+#ifndef CONFIG_SYS_POCMR0_MASK_ATTRIB
 #define POCMR0_MASK_ATTRIB     (POCMR_MASK_256MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
 #else
-#define POCMR0_MASK_ATTRIB CFG_POCMR0_MASK_ATTRIB
+#define POCMR0_MASK_ATTRIB CONFIG_SYS_POCMR0_MASK_ATTRIB
 #endif
 
 /*
@@ -164,34 +164,34 @@ DECLARE_GLOBAL_DATA_PTR;
  * in the bridge.
  */
 
-#ifndef CFG_PCI_MSTR_MEMIO_LOCAL
+#ifndef CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL
 #define PCI_MSTR_MEMIO_LOCAL 0x90000000 /* Local base */
 #else
-#define PCI_MSTR_MEMIO_LOCAL CFG_PCI_MSTR_MEMIO_LOCAL
+#define PCI_MSTR_MEMIO_LOCAL CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL
 #endif
 
-#ifndef CFG_PCI_MSTR_MEMIO_BUS
+#ifndef CONFIG_SYS_PCI_MSTR_MEMIO_BUS
 #define PCI_MSTR_MEMIO_BUS 0x90000000  /* PCI base   */
 #else
-#define PCI_MSTR_MEMIO_BUS CFG_PCI_MSTR_MEMIO_BUS
+#define PCI_MSTR_MEMIO_BUS CONFIG_SYS_PCI_MSTR_MEMIO_BUS
 #endif
 
-#ifndef CFG_CPU_PCI_MEMIO_START
+#ifndef CONFIG_SYS_CPU_PCI_MEMIO_START
 #define CPU_PCI_MEMIO_START PCI_MSTR_MEMIO_LOCAL
 #else
-#define CPU_PCI_MEMIO_START CFG_CPU_PCI_MEMIO_START
+#define CPU_PCI_MEMIO_START CONFIG_SYS_CPU_PCI_MEMIO_START
 #endif
 
-#ifndef CFG_PCI_MSTR_MEMIO_SIZE
+#ifndef CONFIG_SYS_PCI_MSTR_MEMIO_SIZE
 #define PCI_MSTR_MEMIO_SIZE 0x10000000 /* 256 MB */
 #else
-#define PCI_MSTR_MEMIO_SIZE CFG_PCI_MSTR_MEMIO_SIZE
+#define PCI_MSTR_MEMIO_SIZE CONFIG_SYS_PCI_MSTR_MEMIO_SIZE
 #endif
 
-#ifndef CFG_POCMR1_MASK_ATTRIB
+#ifndef CONFIG_SYS_POCMR1_MASK_ATTRIB
 #define POCMR1_MASK_ATTRIB     (POCMR_MASK_512MB | POCMR_ENABLE)
 #else
-#define POCMR1_MASK_ATTRIB CFG_POCMR1_MASK_ATTRIB
+#define POCMR1_MASK_ATTRIB CONFIG_SYS_POCMR1_MASK_ATTRIB
 #endif
 
 /*
@@ -200,34 +200,34 @@ DECLARE_GLOBAL_DATA_PTR;
  * in the bridge.
  */
 
-#ifndef CFG_PCI_MSTR_IO_LOCAL
+#ifndef CONFIG_SYS_PCI_MSTR_IO_LOCAL
 #define PCI_MSTR_IO_LOCAL 0xA0000000   /* Local base */
 #else
-#define PCI_MSTR_IO_LOCAL CFG_PCI_MSTR_IO_LOCAL
+#define PCI_MSTR_IO_LOCAL CONFIG_SYS_PCI_MSTR_IO_LOCAL
 #endif
 
-#ifndef CFG_PCI_MSTR_IO_BUS
+#ifndef CONFIG_SYS_PCI_MSTR_IO_BUS
 #define PCI_MSTR_IO_BUS 0xA0000000     /* PCI base   */
 #else
-#define PCI_MSTR_IO_BUS CFG_PCI_MSTR_IO_BUS
+#define PCI_MSTR_IO_BUS CONFIG_SYS_PCI_MSTR_IO_BUS
 #endif
 
-#ifndef CFG_CPU_PCI_IO_START
+#ifndef CONFIG_SYS_CPU_PCI_IO_START
 #define CPU_PCI_IO_START PCI_MSTR_IO_LOCAL
 #else
-#define CPU_PCI_IO_START CFG_CPU_PCI_IO_START
+#define CPU_PCI_IO_START CONFIG_SYS_CPU_PCI_IO_START
 #endif
 
-#ifndef CFG_PCI_MSTR_IO_SIZE
+#ifndef CONFIG_SYS_PCI_MSTR_IO_SIZE
 #define PCI_MSTR_IO_SIZE 0x10000000    /* 256MB */
 #else
-#define PCI_MSTR_IO_SIZE CFG_PCI_MSTR_IO_SIZE
+#define PCI_MSTR_IO_SIZE CONFIG_SYS_PCI_MSTR_IO_SIZE
 #endif
 
-#ifndef CFG_POCMR2_MASK_ATTRIB
+#ifndef CONFIG_SYS_POCMR2_MASK_ATTRIB
 #define POCMR2_MASK_ATTRIB     (POCMR_MASK_256MB | POCMR_ENABLE | POCMR_PCI_IO)
 #else
-#define POCMR2_MASK_ATTRIB CFG_POCMR2_MASK_ATTRIB
+#define POCMR2_MASK_ATTRIB CONFIG_SYS_POCMR2_MASK_ATTRIB
 #endif
 
 /* PCI bus configuration registers.
@@ -245,11 +245,11 @@ void pci_mpc8250_init (struct pci_controller *hose)
 {
        u16 tempShort;
 
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        pci_dev_t host_devno = PCI_BDF (0, 0, 0);
 
-       pci_setup_indirect (hose, CFG_IMMR + PCI_CFG_ADDR_REG,
-                           CFG_IMMR + PCI_CFG_DATA_REG);
+       pci_setup_indirect (hose, CONFIG_SYS_IMMR + PCI_CFG_ADDR_REG,
+                           CONFIG_SYS_IMMR + PCI_CFG_DATA_REG);
 
        /*
         * Setting required to enable local bus for PCI (SIUMCR [LBPC]).
@@ -413,8 +413,8 @@ void pci_mpc8250_init (struct pci_controller *hose)
                        gd->ram_size, PCI_REGION_MEM | PCI_REGION_MEMORY);
 #else
        pci_set_region (hose->regions + 0,
-                       CFG_SDRAM_BASE,
-                       CFG_SDRAM_BASE,
+                       CONFIG_SYS_SDRAM_BASE,
+                       CONFIG_SYS_SDRAM_BASE,
                        0x4000000, PCI_REGION_MEM | PCI_REGION_MEMORY);
 #endif
 
index 3a6eaf0a6775647c5334181aa56645acf66883e3..4ab6a28640361dc7cda7a34859d0b79718987ae8 100644 (file)
@@ -84,7 +84,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int serial_init (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile scc_t *sp;
        volatile scc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -201,7 +201,7 @@ serial_putc(const char c)
        if (c == '\n')
                serial_putc ('\r');
 
-       im = (immap_t *)CFG_IMMR;
+       im = (immap_t *)CONFIG_SYS_IMMR;
        up = (scc_uart_t *)&im->im_dprambase[PROFF_SCC];
        tbdf = (cbd_t *)&im->im_dprambase[up->scc_genscc.scc_tbase];
 
@@ -233,7 +233,7 @@ serial_getc(void)
        volatile immap_t        *im;
        unsigned char           c;
 
-       im = (immap_t *)CFG_IMMR;
+       im = (immap_t *)CONFIG_SYS_IMMR;
        up = (scc_uart_t *)&im->im_dprambase[PROFF_SCC];
        rbdf = (cbd_t *)&im->im_dprambase[up->scc_genscc.scc_rbase];
 
@@ -257,7 +257,7 @@ serial_tstc()
        volatile scc_uart_t     *up;
        volatile immap_t        *im;
 
-       im = (immap_t *)CFG_IMMR;
+       im = (immap_t *)CONFIG_SYS_IMMR;
        up = (scc_uart_t *)&im->im_dprambase[PROFF_SCC];
        rbdf = (cbd_t *)&im->im_dprambase[up->scc_genscc.scc_rbase];
 
@@ -321,7 +321,7 @@ serial_tstc()
 void
 kgdb_serial_init (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile scc_t *sp;
        volatile scc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -440,7 +440,7 @@ putDebugChar(const char c)
        if (c == '\n')
                putDebugChar ('\r');
 
-       im = (immap_t *)CFG_IMMR;
+       im = (immap_t *)CONFIG_SYS_IMMR;
        up = (scc_uart_t *)&im->im_dprambase[KGDB_PROFF_SCC];
        tbdf = (cbd_t *)&im->im_dprambase[up->scc_genscc.scc_tbase];
 
@@ -472,7 +472,7 @@ getDebugChar(void)
        volatile immap_t        *im;
        unsigned char           c;
 
-       im = (immap_t *)CFG_IMMR;
+       im = (immap_t *)CONFIG_SYS_IMMR;
        up = (scc_uart_t *)&im->im_dprambase[KGDB_PROFF_SCC];
        rbdf = (cbd_t *)&im->im_dprambase[up->scc_genscc.scc_rbase];
 
index f3dffeb11993d81c70aeccb0199b841a75d3613a..a6efa66895fcd9126b3a42a840bacf318d5381b7 100644 (file)
@@ -76,7 +76,7 @@ static unsigned char brg_map[] = {
 
 int serial_init (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile smc_t *sp;
        volatile smc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -186,7 +186,7 @@ serial_putc(const char c)
        volatile cbd_t          *tbdf;
        volatile char           *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
 
        if (c == '\n')
                serial_putc ('\r');
@@ -220,7 +220,7 @@ serial_getc(void)
        volatile cbd_t          *rbdf;
        volatile unsigned char  *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        unsigned char           c;
 
        up = (smc_uart_t *)&(im->im_dprambase[PROFF_SMC]);
@@ -243,7 +243,7 @@ serial_tstc()
 {
        volatile cbd_t          *rbdf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
 
        up = (smc_uart_t *)&(im->im_dprambase[PROFF_SMC]);
 
@@ -289,7 +289,7 @@ serial_tstc()
 void
 kgdb_serial_init (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile smc_t *sp;
        volatile smc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -401,7 +401,7 @@ putDebugChar(const char c)
        volatile cbd_t          *tbdf;
        volatile char           *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
 
        if (c == '\n')
                putDebugChar ('\r');
@@ -435,7 +435,7 @@ getDebugChar(void)
        volatile cbd_t          *rbdf;
        volatile unsigned char  *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        unsigned char           c;
 
        up = (smc_uart_t *)&(im->im_dprambase[KGDB_PROFF_SMC]);
index 8d280fbb7b090bf332011fc704b933d36f37d50c..0e1c2b0659773ac373fa73d7fb43298e727e80ab 100644 (file)
@@ -107,7 +107,7 @@ corecnf_t corecnf_tab[] = {
 
 int get_clocks (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        ulong clkin;
        ulong sccr, dfbrg;
        ulong scmr, corecnf, busdf, cpmdf, plldf, pllmf;
@@ -191,7 +191,7 @@ int get_clocks (void)
 
 int prt_8260_clks (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        ulong sccr, dfbrg;
        ulong scmr, corecnf, busdf, cpmdf, plldf, pllmf, pcidf;
        corecnf_t *cp;
index c1a607ca5d50389c2d0433f91f33a7f445bd513d..f5d2ac35a6ad81a7074a7cf6bd556b61f91fe2e1 100644 (file)
@@ -63,8 +63,8 @@
  * The value 0x2000 makes it far enough from the start of the data
  * area (as well as from the stack pointer).
  * --------------------------------------------------------------- */
-#ifndef        CFG_SPI_INIT_OFFSET
-#define        CFG_SPI_INIT_OFFSET     0x2000
+#ifndef        CONFIG_SYS_SPI_INIT_OFFSET
+#define        CONFIG_SYS_SPI_INIT_OFFSET      0x2000
 #endif
 
 #define CPM_SPI_BASE 0x100
@@ -119,11 +119,11 @@ ssize_t spi_xfer (size_t);
  * Initially we place the RX and TX buffers at a fixed location in DPRAM!
  * ---------------------------------------------------------------------- */
 static uchar *rxbuf =
-  (uchar *)&((immap_t *)CFG_IMMR)->im_dprambase
-                       [CFG_SPI_INIT_OFFSET];
+  (uchar *)&((immap_t *)CONFIG_SYS_IMMR)->im_dprambase
+                       [CONFIG_SYS_SPI_INIT_OFFSET];
 static uchar *txbuf =
-  (uchar *)&((immap_t *)CFG_IMMR)->im_dprambase
-                       [CFG_SPI_INIT_OFFSET+MAX_BUFFER];
+  (uchar *)&((immap_t *)CONFIG_SYS_IMMR)->im_dprambase
+                       [CONFIG_SYS_SPI_INIT_OFFSET+MAX_BUFFER];
 
 /* **************************************************************************
  *
@@ -143,7 +143,7 @@ void spi_init_f (void)
        volatile cpm8260_t *cp;
        volatile cbd_t *tbdf, *rbdf;
 
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        cp   = (cpm8260_t *) &immr->im_cpm;
 
        *(ushort *)(&immr->im_dprambase[PROFF_SPI_BASE]) = PROFF_SPI;
@@ -200,7 +200,7 @@ void spi_init_f (void)
        /* Allocate space for one transmit and one receive buffer
         * descriptor in the DP ram
         */
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = m8260_cpm_dpalloc (sizeof(cbd_t)*2, 8);
 #else
        dpaddr = CPM_SPI_BASE;
@@ -279,7 +279,7 @@ void spi_init_r (void)
        volatile cpm8260_t *cp;
        volatile cbd_t *tbdf, *rbdf;
 
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        cp   = (cpm8260_t *) &immr->im_cpm;
 
        spi  = (spi_t *)&immr->im_dprambase[PROFF_SPI];
@@ -365,7 +365,7 @@ ssize_t spi_xfer (size_t count)
 
        DPRINT (("*** spi_xfer entered ***\n"));
 
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        cp   = (cpm8260_t *) &immr->im_cpm;
 
        spi  = (spi_t *)&immr->im_dprambase[PROFF_SPI];
index 7f5dc819cd840452be07ded5aa114ccf72f71718..da0c5161fbbf68f37c273f889545a5f52770ed35 100644 (file)
@@ -127,14 +127,14 @@ version_string:
        .text
        .globl  _hrcw_table
 _hrcw_table:
-       _HRCW_TABLE_ENTRY(CFG_HRCW_MASTER)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_SLAVE1)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_SLAVE2)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_SLAVE3)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_SLAVE4)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_SLAVE5)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_SLAVE6)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_SLAVE7)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_MASTER)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_SLAVE1)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_SLAVE2)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_SLAVE3)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_SLAVE4)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_SLAVE5)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_SLAVE6)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_SLAVE7)
 /*
  *  After configuration, a system reset exception is executed using the
  *  vector at offset 0x100 relative to the base set by MSR[IP]. If MSR[IP]
@@ -172,8 +172,8 @@ _start_warm:
        b       boot_warm
 
 boot_cold:
-#if defined(CONFIG_MPC8260ADS) && defined(CFG_DEFAULT_IMMR)
-       lis     r3, CFG_DEFAULT_IMMR@h
+#if defined(CONFIG_MPC8260ADS) && defined(CONFIG_SYS_DEFAULT_IMMR)
+       lis     r3, CONFIG_SYS_DEFAULT_IMMR@h
        nop
        lwz     r4, 0(r3)
        nop
@@ -183,7 +183,7 @@ boot_cold:
        nop
        stw     r4, 0(r3)
        nop
-#endif /* CONFIG_MPC8260ADS && CFG_DEFAULT_IMMR */
+#endif /* CONFIG_MPC8260ADS && CONFIG_SYS_DEFAULT_IMMR */
 boot_warm:
        mfmsr   r5                      /* save msr contents            */
 
@@ -195,24 +195,24 @@ boot_warm:
        bl      cogent_init_8260
 #endif /* CONFIG_COGENT */
 
-#if defined(CFG_DEFAULT_IMMR)
-       lis     r3, CFG_IMMR@h
-       ori     r3, r3, CFG_IMMR@l
-       lis     r4, CFG_DEFAULT_IMMR@h
+#if defined(CONFIG_SYS_DEFAULT_IMMR)
+       lis     r3, CONFIG_SYS_IMMR@h
+       ori     r3, r3, CONFIG_SYS_IMMR@l
+       lis     r4, CONFIG_SYS_DEFAULT_IMMR@h
        stw     r3, 0x1A8(r4)
-#endif /* CFG_DEFAULT_IMMR */
+#endif /* CONFIG_SYS_DEFAULT_IMMR */
 
        /* Initialise the MPC8260 processor core                        */
        /*--------------------------------------------------------------*/
 
        bl      init_8260_core
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        /* When booting from ROM (Flash or EPROM), clear the            */
        /* Address Mask in OR0 so ROM appears everywhere                */
        /*--------------------------------------------------------------*/
 
-       lis     r3, (CFG_IMMR+IM_REGBASE)@h
+       lis     r3, (CONFIG_SYS_IMMR+IM_REGBASE)@h
        lwz     r4, IM_OR0@l(r3)
        li      r5, 0x7fff
        and     r4, r4, r5
@@ -221,20 +221,20 @@ boot_warm:
        /* Calculate absolute address in FLASH and jump there           */
        /*--------------------------------------------------------------*/
 
-       lis     r3, CFG_MONITOR_BASE@h
-       ori     r3, r3, CFG_MONITOR_BASE@l
+       lis     r3, CONFIG_SYS_MONITOR_BASE@h
+       ori     r3, r3, CONFIG_SYS_MONITOR_BASE@l
        addi    r3, r3, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr    r3
        blr
 
 in_flash:
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
        /* initialize some things that are hard to access from C        */
        /*--------------------------------------------------------------*/
 
-       lis     r3, CFG_IMMR@h          /* set up stack in internal DPRAM */
-       ori     r1, r3, CFG_INIT_SP_OFFSET
+       lis     r3, CONFIG_SYS_IMMR@h           /* set up stack in internal DPRAM */
+       ori     r1, r3, CONFIG_SYS_INIT_SP_OFFSET
        li      r0, 0                   /* Make room for stack frame header and */
        stwu    r0, -4(r1)              /* clear final stack frame so that      */
        stwu    r0, -4(r1)              /* stack backtraces terminate cleanly   */
@@ -458,18 +458,18 @@ cogent_init_8260:
        /* Taken from page 14 of CMA282 manual                          */
        /*--------------------------------------------------------------*/
 
-       lis     r4, (CFG_IMMR+IM_REGBASE)@h
-       lis     r3, CFG_IMMR@h
+       lis     r4, (CONFIG_SYS_IMMR+IM_REGBASE)@h
+       lis     r3, CONFIG_SYS_IMMR@h
        stw     r3, IM_IMMR@l(r4)
        lwz     r3, IM_IMMR@l(r4)
        stw     r3, 0(r0)
-       lis     r3, CFG_SYPCR@h
-       ori     r3, r3, CFG_SYPCR@l
+       lis     r3, CONFIG_SYS_SYPCR@h
+       ori     r3, r3, CONFIG_SYS_SYPCR@l
        stw     r3, IM_SYPCR@l(r4)
        lwz     r3, IM_SYPCR@l(r4)
        stw     r3, 4(r0)
-       lis     r3, CFG_SCCR@h
-       ori     r3, r3, CFG_SCCR@l
+       lis     r3, CONFIG_SYS_SCCR@h
+       ori     r3, r3, CONFIG_SYS_SCCR@l
        stw     r3, IM_SCCR@l(r4)
        lwz     r3, IM_SCCR@l(r4)
        stw     r3, 8(r0)
@@ -521,10 +521,10 @@ init_8260_core:
        /* Initialise the SYPCR early, and reset the watchdog (if req)  */
        /*--------------------------------------------------------------*/
 
-       lis     r3, (CFG_IMMR+IM_REGBASE)@h
+       lis     r3, (CONFIG_SYS_IMMR+IM_REGBASE)@h
 #if !defined(CONFIG_COGENT)
-       lis     r4, CFG_SYPCR@h
-       ori     r4, r4, CFG_SYPCR@l
+       lis     r4, CONFIG_SYS_SYPCR@h
+       ori     r4, r4, CONFIG_SYS_SYPCR@l
        stw     r4, IM_SYPCR@l(r3)
 #endif /* !CONFIG_COGENT */
 #if defined(CONFIG_WATCHDOG)
@@ -538,18 +538,18 @@ init_8260_core:
        /* HID0 also contains cache control                             */
        /*--------------------------------------------------------------*/
 
-       lis     r3, CFG_HID0_INIT@h
-       ori     r3, r3, CFG_HID0_INIT@l
+       lis     r3, CONFIG_SYS_HID0_INIT@h
+       ori     r3, r3, CONFIG_SYS_HID0_INIT@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID0_FINAL@h
-       ori     r3, r3, CFG_HID0_FINAL@l
+       lis     r3, CONFIG_SYS_HID0_FINAL@h
+       ori     r3, r3, CONFIG_SYS_HID0_FINAL@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID2@h
-       ori     r3, r3, CFG_HID2@l
+       lis     r3, CONFIG_SYS_HID2@h
+       ori     r3, r3, CONFIG_SYS_HID2@l
        mtspr   HID2, r3
 
        /* clear all BAT's                                              */
@@ -619,29 +619,29 @@ init_8260_core:
        .globl  init_debug
 init_debug:
 
-       lis     r3, (CFG_IMMR+IM_REGBASE)@h
+       lis     r3, (CONFIG_SYS_IMMR+IM_REGBASE)@h
 
        /* Quick and dirty hack to enable the RAM and copy the          */
        /* vectors so that we can take exceptions.                      */
        /*--------------------------------------------------------------*/
        /* write Memory Refresh Prescaler */
-       li      r4, CFG_MPTPR
+       li      r4, CONFIG_SYS_MPTPR
        sth     r4, IM_MPTPR@l(r3)
        /* write 60x Refresh Timer */
-       li      r4, CFG_PSRT
+       li      r4, CONFIG_SYS_PSRT
        stb     r4, IM_PSRT@l(r3)
        /* init the 60x SDRAM Mode Register */
-       lis     r4, (CFG_PSDMR|PSDMR_OP_NORM)@h
-       ori     r4, r4, (CFG_PSDMR|PSDMR_OP_NORM)@l
+       lis     r4, (CONFIG_SYS_PSDMR|PSDMR_OP_NORM)@h
+       ori     r4, r4, (CONFIG_SYS_PSDMR|PSDMR_OP_NORM)@l
        stw     r4, IM_PSDMR@l(r3)
        /* write Precharge All Banks command */
-       lis     r4, (CFG_PSDMR|PSDMR_OP_PREA)@h
-       ori     r4, r4, (CFG_PSDMR|PSDMR_OP_PREA)@l
+       lis     r4, (CONFIG_SYS_PSDMR|PSDMR_OP_PREA)@h
+       ori     r4, r4, (CONFIG_SYS_PSDMR|PSDMR_OP_PREA)@l
        stw     r4, IM_PSDMR@l(r3)
        stb     r0, 0(0)
        /* write eight CBR Refresh commands */
-       lis     r4, (CFG_PSDMR|PSDMR_OP_CBRR)@h
-       ori     r4, r4, (CFG_PSDMR|PSDMR_OP_CBRR)@l
+       lis     r4, (CONFIG_SYS_PSDMR|PSDMR_OP_CBRR)@h
+       ori     r4, r4, (CONFIG_SYS_PSDMR|PSDMR_OP_CBRR)@l
        stw     r4, IM_PSDMR@l(r3)
        stb     r0, 0(0)
        stb     r0, 0(0)
@@ -652,13 +652,13 @@ init_debug:
        stb     r0, 0(0)
        stb     r0, 0(0)
        /* write Mode Register Write command */
-       lis     r4, (CFG_PSDMR|PSDMR_OP_MRW)@h
-       ori     r4, r4, (CFG_PSDMR|PSDMR_OP_MRW)@l
+       lis     r4, (CONFIG_SYS_PSDMR|PSDMR_OP_MRW)@h
+       ori     r4, r4, (CONFIG_SYS_PSDMR|PSDMR_OP_MRW)@l
        stw     r4, IM_PSDMR@l(r3)
        stb     r0, 0(0)
        /* write Normal Operation command and enable Refresh */
-       lis     r4, (CFG_PSDMR|PSDMR_OP_NORM|PSDMR_RFEN)@h
-       ori     r4, r4, (CFG_PSDMR|PSDMR_OP_NORM|PSDMR_RFEN)@l
+       lis     r4, (CONFIG_SYS_PSDMR|PSDMR_OP_NORM|PSDMR_RFEN)@h
+       ori     r4, r4, (CONFIG_SYS_PSDMR|PSDMR_OP_NORM|PSDMR_RFEN)@l
        stw     r4, IM_PSDMR@l(r3)
        stb     r0, 0(0)
        /* RAM should now be operational */
@@ -687,7 +687,7 @@ init_debug:
        /* an exception is generated (before the instruction at that    */
        /* location completes). The vector for this exception is 0x1300 */
        /*--------------------------------------------------------------*/
-       lis     r3, CFG_IMMR@h
+       lis     r3, CONFIG_SYS_IMMR@h
        lwz     r3, 0(r3)
        mtspr   IABR, r3
 
@@ -695,9 +695,9 @@ init_debug:
        /* resides) to a known value - makes it easier to see where     */
        /* the stack has been written                                   */
        /*--------------------------------------------------------------*/
-       lis     r3, (CFG_IMMR + CFG_INIT_SP_OFFSET)@h
-       ori     r3, r3, (CFG_IMMR + CFG_INIT_SP_OFFSET)@l
-       li      r4, ((CFG_INIT_SP_OFFSET - 4) / 4)
+       lis     r3, (CONFIG_SYS_IMMR + CONFIG_SYS_INIT_SP_OFFSET)@h
+       ori     r3, r3, (CONFIG_SYS_IMMR + CONFIG_SYS_INIT_SP_OFFSET)@l
+       li      r4, ((CONFIG_SYS_INIT_SP_OFFSET - 4) / 4)
        mtctr   r4
        lis     r4, 0xdeadbeaf@h
        ori     r4, r4, 0xdeadbeaf@l
@@ -807,16 +807,16 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address     */
 
        mr      r3,  r5                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
index b5d416c9741d87239fdfc592710b0afedb908b66..6624544eac09392b15ff2d921d58457267c52121 100644 (file)
@@ -111,7 +111,7 @@ _exception(int signr, struct pt_regs *regs)
 void dump_pci (void)
 {
 
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        printf ("PCI: err status %x err mask %x err ctrl %x\n",
                le32_to_cpu (immap->im_pci.pci_esr),
@@ -135,7 +135,7 @@ MachineCheckException(struct pt_regs *regs)
         * the PCI exception handler.
         */
 #ifdef CONFIG_PCI
-       volatile immap_t *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap  = (immap_t *)CONFIG_SYS_IMMR;
 #ifdef DEBUG
        dump_pci();
 #endif
index 99ab2168e869a3e7ac80235ab832af9b1ef790ba..05c2f33f9eaffadccdb098ec71a314e26b5d350f 100644 (file)
@@ -67,7 +67,7 @@ int checkcpu(void)
                CPU_TYPE_ENTRY(8379),
        };
 
-       immr = (immap_t *)CFG_IMMR;
+       immr = (immap_t *)CONFIG_SYS_IMMR;
 
        puts("CPU:   ");
 
@@ -148,7 +148,7 @@ int checkcpu(void)
 void upmconfig (uint upm, uint *table, uint size)
 {
 #if defined(CONFIG_MPC834X)
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile lbus83xx_t *lbus = &immap->lbus;
        volatile uchar *dummy = NULL;
        const u32 msel = (upm + 4) << BR_MSEL_SHIFT;    /* What the MSEL field in BRn should be */
@@ -196,7 +196,7 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        ulong addr;
 #endif
 
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
 #ifdef MPC83xx_RESET
        /* Interrupts and MMU off */
@@ -235,7 +235,7 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
         * Trying to execute the next instruction at a non-existing address
         * should cause a machine check, resulting in reset
         */
-       addr = CFG_RESET_ADDRESS;
+       addr = CONFIG_SYS_RESET_ADDRESS;
 
        printf("resetting the board.");
        printf("\n");
@@ -266,7 +266,7 @@ void watchdog_reset (void)
        int re_enable = disable_interrupts();
 
        /* Reset the 83xx watchdog */
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        immr->wdt.swsrr = 0x556c;
        immr->wdt.swsrr = 0xaa39;
 
@@ -278,7 +278,7 @@ void watchdog_reset (void)
 #if defined(CONFIG_DDR_ECC)
 void dma_init(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile dma83xx_t *dma = &immap->dma;
        volatile u32 status = swab32(dma->dmasr0);
        volatile u32 dmamr0 = swab32(dma->dmamr0);
@@ -309,7 +309,7 @@ void dma_init(void)
 
 uint dma_check(void)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile dma83xx_t *dma = &immap->dma;
        volatile u32 status = swab32(dma->dmasr0);
        volatile u32 byte_count = swab32(dma->dmabcr0);
@@ -328,7 +328,7 @@ uint dma_check(void)
 
 int dma_xfer(void *dest, u32 count, void *src)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile dma83xx_t *dma = &immap->dma;
        volatile u32 dmamr0;
 
index ff01cf10f55f062aa6ec7ea5bbadea70ef19173a..491c2e5c3b22fbcd1db3b8b487fc1e2d9351d010 100644 (file)
@@ -60,107 +60,107 @@ static void config_qe_ioports(void)
 void cpu_init_f (volatile immap_t * im)
 {
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
 
        /* system performance tweaking */
 
-#ifdef CFG_ACR_PIPE_DEP
+#ifdef CONFIG_SYS_ACR_PIPE_DEP
        /* Arbiter pipeline depth */
        im->arbiter.acr = (im->arbiter.acr & ~ACR_PIPE_DEP) |
-                         (CFG_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
+                         (CONFIG_SYS_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
 #endif
 
-#ifdef CFG_ACR_RPTCNT
+#ifdef CONFIG_SYS_ACR_RPTCNT
        /* Arbiter repeat count */
        im->arbiter.acr = (im->arbiter.acr & ~(ACR_RPTCNT)) |
-                         (CFG_ACR_RPTCNT << ACR_RPTCNT_SHIFT);
+                         (CONFIG_SYS_ACR_RPTCNT << ACR_RPTCNT_SHIFT);
 #endif
 
-#ifdef CFG_SPCR_OPT
+#ifdef CONFIG_SYS_SPCR_OPT
        /* Optimize transactions between CSB and other devices */
        im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_OPT) |
-                          (CFG_SPCR_OPT << SPCR_OPT_SHIFT);
+                          (CONFIG_SYS_SPCR_OPT << SPCR_OPT_SHIFT);
 #endif
 
-#ifdef CFG_SPCR_TSECEP
+#ifdef CONFIG_SYS_SPCR_TSECEP
        /* all eTSEC's Emergency priority */
        im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSECEP) |
-                          (CFG_SPCR_TSECEP << SPCR_TSECEP_SHIFT);
+                          (CONFIG_SYS_SPCR_TSECEP << SPCR_TSECEP_SHIFT);
 #endif
 
-#ifdef CFG_SPCR_TSEC1EP
+#ifdef CONFIG_SYS_SPCR_TSEC1EP
        /* TSEC1 Emergency priority */
        im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC1EP) |
-                          (CFG_SPCR_TSEC1EP << SPCR_TSEC1EP_SHIFT);
+                          (CONFIG_SYS_SPCR_TSEC1EP << SPCR_TSEC1EP_SHIFT);
 #endif
 
-#ifdef CFG_SPCR_TSEC2EP
+#ifdef CONFIG_SYS_SPCR_TSEC2EP
        /* TSEC2 Emergency priority */
        im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC2EP) |
-                          (CFG_SPCR_TSEC2EP << SPCR_TSEC2EP_SHIFT);
+                          (CONFIG_SYS_SPCR_TSEC2EP << SPCR_TSEC2EP_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_ENCCM
+#ifdef CONFIG_SYS_SCCR_ENCCM
        /* Encryption clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_ENCCM) |
-                      (CFG_SCCR_ENCCM << SCCR_PCICM_SHIFT);
+                      (CONFIG_SYS_SCCR_ENCCM << SCCR_PCICM_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_PCICM
+#ifdef CONFIG_SYS_SCCR_PCICM
        /* PCI & DMA clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_PCICM) |
-                      (CFG_SCCR_PCICM << SCCR_PCICM_SHIFT);
+                      (CONFIG_SYS_SCCR_PCICM << SCCR_PCICM_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_TSECCM
+#ifdef CONFIG_SYS_SCCR_TSECCM
        /* all TSEC's clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_TSECCM) |
-                      (CFG_SCCR_TSECCM << SCCR_TSECCM_SHIFT);
+                      (CONFIG_SYS_SCCR_TSECCM << SCCR_TSECCM_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_TSEC1CM
+#ifdef CONFIG_SYS_SCCR_TSEC1CM
        /* TSEC1 clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC1CM) |
-                      (CFG_SCCR_TSEC1CM << SCCR_TSEC1CM_SHIFT);
+                      (CONFIG_SYS_SCCR_TSEC1CM << SCCR_TSEC1CM_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_TSEC2CM
+#ifdef CONFIG_SYS_SCCR_TSEC2CM
        /* TSEC2 clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC2CM) |
-                      (CFG_SCCR_TSEC2CM << SCCR_TSEC2CM_SHIFT);
+                      (CONFIG_SYS_SCCR_TSEC2CM << SCCR_TSEC2CM_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_TSEC1ON
+#ifdef CONFIG_SYS_SCCR_TSEC1ON
        /* TSEC1 clock switch */
        im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC1ON) |
-                      (CFG_SCCR_TSEC1ON << SCCR_TSEC1ON_SHIFT);
+                      (CONFIG_SYS_SCCR_TSEC1ON << SCCR_TSEC1ON_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_TSEC2ON
+#ifdef CONFIG_SYS_SCCR_TSEC2ON
        /* TSEC2 clock switch */
        im->clk.sccr = (im->clk.sccr & ~SCCR_TSEC2ON) |
-                      (CFG_SCCR_TSEC2ON << SCCR_TSEC2ON_SHIFT);
+                      (CONFIG_SYS_SCCR_TSEC2ON << SCCR_TSEC2ON_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_USBMPHCM
+#ifdef CONFIG_SYS_SCCR_USBMPHCM
        /* USB MPH clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_USBMPHCM) |
-                      (CFG_SCCR_USBMPHCM << SCCR_USBMPHCM_SHIFT);
+                      (CONFIG_SYS_SCCR_USBMPHCM << SCCR_USBMPHCM_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_USBDRCM
+#ifdef CONFIG_SYS_SCCR_USBDRCM
        /* USB DR clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_USBDRCM) |
-                      (CFG_SCCR_USBDRCM << SCCR_USBDRCM_SHIFT);
+                      (CONFIG_SYS_SCCR_USBDRCM << SCCR_USBDRCM_SHIFT);
 #endif
 
-#ifdef CFG_SCCR_SATACM
+#ifdef CONFIG_SYS_SCCR_SATACM
        /* SATA controller clock mode */
        im->clk.sccr = (im->clk.sccr & ~SCCR_SATACM) |
-                      (CFG_SCCR_SATACM << SCCR_SATACM_SHIFT);
+                      (CONFIG_SYS_SCCR_SATACM << SCCR_SATACM_SHIFT);
 #endif
 
        /* RSR - Reset Status Register - clear all status (4.6.1.3) */
@@ -178,30 +178,30 @@ void cpu_init_f (volatile immap_t * im)
        im->reset.rmr = (RMR_CSRE & (1<<RMR_CSRE_SHIFT));
 
        /* LCRR - Clock Ratio Register (10.3.1.16) */
-       im->lbus.lcrr = CFG_LCRR;
+       im->lbus.lcrr = CONFIG_SYS_LCRR;
 
        /* Enable Time Base & Decrimenter ( so we will have udelay() )*/
        im->sysconf.spcr |= SPCR_TBEN;
 
        /* System General Purpose Register */
-#ifdef CFG_SICRH
+#ifdef CONFIG_SYS_SICRH
 #if defined(CONFIG_MPC834X) || defined(CONFIG_MPC8313)
        /* regarding to MPC34x manual rev.1 bits 28..29 must be preserved */
-       im->sysconf.sicrh = (im->sysconf.sicrh & 0x0000000C) | CFG_SICRH;
+       im->sysconf.sicrh = (im->sysconf.sicrh & 0x0000000C) | CONFIG_SYS_SICRH;
 #else
-       im->sysconf.sicrh = CFG_SICRH;
+       im->sysconf.sicrh = CONFIG_SYS_SICRH;
 #endif
 #endif
-#ifdef CFG_SICRL
-       im->sysconf.sicrl = CFG_SICRL;
+#ifdef CONFIG_SYS_SICRL
+       im->sysconf.sicrl = CONFIG_SYS_SICRL;
 #endif
        /* DDR control driver register */
-#ifdef CFG_DDRCDR
-       im->sysconf.ddrcdr = CFG_DDRCDR;
+#ifdef CONFIG_SYS_DDRCDR
+       im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR;
 #endif
        /* Output buffer impedance register */
-#ifdef CFG_OBIR
-       im->sysconf.obir = CFG_OBIR;
+#ifdef CONFIG_SYS_OBIR
+       im->sysconf.obir = CONFIG_SYS_OBIR;
 #endif
 
 #ifdef CONFIG_QE
@@ -218,88 +218,88 @@ void cpu_init_f (volatile immap_t * im)
         * has been determined
         */
 
-#if defined(CFG_BR0_PRELIM)  \
-       && defined(CFG_OR0_PRELIM) \
-       && defined(CFG_LBLAWBAR0_PRELIM) \
-       && defined(CFG_LBLAWAR0_PRELIM)
-       im->lbus.bank[0].br = CFG_BR0_PRELIM;
-       im->lbus.bank[0].or = CFG_OR0_PRELIM;
-       im->sysconf.lblaw[0].bar = CFG_LBLAWBAR0_PRELIM;
-       im->sysconf.lblaw[0].ar = CFG_LBLAWAR0_PRELIM;
+#if defined(CONFIG_SYS_BR0_PRELIM)  \
+       && defined(CONFIG_SYS_OR0_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWBAR0_PRELIM) \
+       && defined(CONFIG_SYS_LBLAWAR0_PRELIM)
+       im->lbus.bank[0].br = CONFIG_SYS_BR0_PRELIM;
+       im->lbus.bank[0].or = CONFIG_SYS_OR0_PRELIM;
+       im->sysconf.lblaw[0].bar = CONFIG_SYS_LBLAWBAR0_PRELIM;
+       im->sysconf.lblaw[0].ar = CONFIG_SYS_LBLAWAR0_PRELIM;
 #else
-#error CFG_BR0_PRELIM, CFG_OR0_PRELIM, CFG_LBLAWBAR0_PRELIM & CFG_LBLAWAR0_PRELIM must be defined
+#error CONFIG_SYS_BR0_PRELIM, CONFIG_SYS_OR0_PRELIM, CONFIG_SYS_LBLAWBAR0_PRELIM & CONFIG_SYS_LBLAWAR0_PRELIM must be defined
 #endif
 
-#if defined(CFG_BR1_PRELIM) && defined(CFG_OR1_PRELIM)
-       im->lbus.bank[1].br = CFG_BR1_PRELIM;
-       im->lbus.bank[1].or = CFG_OR1_PRELIM;
+#if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
+       im->lbus.bank[1].br = CONFIG_SYS_BR1_PRELIM;
+       im->lbus.bank[1].or = CONFIG_SYS_OR1_PRELIM;
 #endif
-#if defined(CFG_LBLAWBAR1_PRELIM) && defined(CFG_LBLAWAR1_PRELIM)
-       im->sysconf.lblaw[1].bar = CFG_LBLAWBAR1_PRELIM;
-       im->sysconf.lblaw[1].ar = CFG_LBLAWAR1_PRELIM;
+#if defined(CONFIG_SYS_LBLAWBAR1_PRELIM) && defined(CONFIG_SYS_LBLAWAR1_PRELIM)
+       im->sysconf.lblaw[1].bar = CONFIG_SYS_LBLAWBAR1_PRELIM;
+       im->sysconf.lblaw[1].ar = CONFIG_SYS_LBLAWAR1_PRELIM;
 #endif
-#if defined(CFG_BR2_PRELIM) && defined(CFG_OR2_PRELIM)
-       im->lbus.bank[2].br = CFG_BR2_PRELIM;
-       im->lbus.bank[2].or = CFG_OR2_PRELIM;
+#if defined(CONFIG_SYS_BR2_PRELIM) && defined(CONFIG_SYS_OR2_PRELIM)
+       im->lbus.bank[2].br = CONFIG_SYS_BR2_PRELIM;
+       im->lbus.bank[2].or = CONFIG_SYS_OR2_PRELIM;
 #endif
-#if defined(CFG_LBLAWBAR2_PRELIM) && defined(CFG_LBLAWAR2_PRELIM)
-       im->sysconf.lblaw[2].bar = CFG_LBLAWBAR2_PRELIM;
-       im->sysconf.lblaw[2].ar = CFG_LBLAWAR2_PRELIM;
+#if defined(CONFIG_SYS_LBLAWBAR2_PRELIM) && defined(CONFIG_SYS_LBLAWAR2_PRELIM)
+       im->sysconf.lblaw[2].bar = CONFIG_SYS_LBLAWBAR2_PRELIM;
+       im->sysconf.lblaw[2].ar = CONFIG_SYS_LBLAWAR2_PRELIM;
 #endif
-#if defined(CFG_BR3_PRELIM) && defined(CFG_OR3_PRELIM)
-       im->lbus.bank[3].br = CFG_BR3_PRELIM;
-       im->lbus.bank[3].or = CFG_OR3_PRELIM;
+#if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
+       im->lbus.bank[3].br = CONFIG_SYS_BR3_PRELIM;
+       im->lbus.bank[3].or = CONFIG_SYS_OR3_PRELIM;
 #endif
-#if defined(CFG_LBLAWBAR3_PRELIM) && defined(CFG_LBLAWAR3_PRELIM)
-       im->sysconf.lblaw[3].bar = CFG_LBLAWBAR3_PRELIM;
-       im->sysconf.lblaw[3].ar = CFG_LBLAWAR3_PRELIM;
+#if defined(CONFIG_SYS_LBLAWBAR3_PRELIM) && defined(CONFIG_SYS_LBLAWAR3_PRELIM)
+       im->sysconf.lblaw[3].bar = CONFIG_SYS_LBLAWBAR3_PRELIM;
+       im->sysconf.lblaw[3].ar = CONFIG_SYS_LBLAWAR3_PRELIM;
 #endif
-#if defined(CFG_BR4_PRELIM) && defined(CFG_OR4_PRELIM)
-       im->lbus.bank[4].br = CFG_BR4_PRELIM;
-       im->lbus.bank[4].or = CFG_OR4_PRELIM;
+#if defined(CONFIG_SYS_BR4_PRELIM) && defined(CONFIG_SYS_OR4_PRELIM)
+       im->lbus.bank[4].br = CONFIG_SYS_BR4_PRELIM;
+       im->lbus.bank[4].or = CONFIG_SYS_OR4_PRELIM;
 #endif
-#if defined(CFG_LBLAWBAR4_PRELIM) && defined(CFG_LBLAWAR4_PRELIM)
-       im->sysconf.lblaw[4].bar = CFG_LBLAWBAR4_PRELIM;
-       im->sysconf.lblaw[4].ar = CFG_LBLAWAR4_PRELIM;
+#if defined(CONFIG_SYS_LBLAWBAR4_PRELIM) && defined(CONFIG_SYS_LBLAWAR4_PRELIM)
+       im->sysconf.lblaw[4].bar = CONFIG_SYS_LBLAWBAR4_PRELIM;
+       im->sysconf.lblaw[4].ar = CONFIG_SYS_LBLAWAR4_PRELIM;
 #endif
-#if defined(CFG_BR5_PRELIM) && defined(CFG_OR5_PRELIM)
-       im->lbus.bank[5].br = CFG_BR5_PRELIM;
-       im->lbus.bank[5].or = CFG_OR5_PRELIM;
+#if defined(CONFIG_SYS_BR5_PRELIM) && defined(CONFIG_SYS_OR5_PRELIM)
+       im->lbus.bank[5].br = CONFIG_SYS_BR5_PRELIM;
+       im->lbus.bank[5].or = CONFIG_SYS_OR5_PRELIM;
 #endif
-#if defined(CFG_LBLAWBAR5_PRELIM) && defined(CFG_LBLAWAR5_PRELIM)
-       im->sysconf.lblaw[5].bar = CFG_LBLAWBAR5_PRELIM;
-       im->sysconf.lblaw[5].ar = CFG_LBLAWAR5_PRELIM;
+#if defined(CONFIG_SYS_LBLAWBAR5_PRELIM) && defined(CONFIG_SYS_LBLAWAR5_PRELIM)
+       im->sysconf.lblaw[5].bar = CONFIG_SYS_LBLAWBAR5_PRELIM;
+       im->sysconf.lblaw[5].ar = CONFIG_SYS_LBLAWAR5_PRELIM;
 #endif
-#if defined(CFG_BR6_PRELIM) && defined(CFG_OR6_PRELIM)
-       im->lbus.bank[6].br = CFG_BR6_PRELIM;
-       im->lbus.bank[6].or = CFG_OR6_PRELIM;
+#if defined(CONFIG_SYS_BR6_PRELIM) && defined(CONFIG_SYS_OR6_PRELIM)
+       im->lbus.bank[6].br = CONFIG_SYS_BR6_PRELIM;
+       im->lbus.bank[6].or = CONFIG_SYS_OR6_PRELIM;
 #endif
-#if defined(CFG_LBLAWBAR6_PRELIM) && defined(CFG_LBLAWAR6_PRELIM)
-       im->sysconf.lblaw[6].bar = CFG_LBLAWBAR6_PRELIM;
-       im->sysconf.lblaw[6].ar = CFG_LBLAWAR6_PRELIM;
+#if defined(CONFIG_SYS_LBLAWBAR6_PRELIM) && defined(CONFIG_SYS_LBLAWAR6_PRELIM)
+       im->sysconf.lblaw[6].bar = CONFIG_SYS_LBLAWBAR6_PRELIM;
+       im->sysconf.lblaw[6].ar = CONFIG_SYS_LBLAWAR6_PRELIM;
 #endif
-#if defined(CFG_BR7_PRELIM) && defined(CFG_OR7_PRELIM)
-       im->lbus.bank[7].br = CFG_BR7_PRELIM;
-       im->lbus.bank[7].or = CFG_OR7_PRELIM;
+#if defined(CONFIG_SYS_BR7_PRELIM) && defined(CONFIG_SYS_OR7_PRELIM)
+       im->lbus.bank[7].br = CONFIG_SYS_BR7_PRELIM;
+       im->lbus.bank[7].or = CONFIG_SYS_OR7_PRELIM;
 #endif
-#if defined(CFG_LBLAWBAR7_PRELIM) && defined(CFG_LBLAWAR7_PRELIM)
-       im->sysconf.lblaw[7].bar = CFG_LBLAWBAR7_PRELIM;
-       im->sysconf.lblaw[7].ar = CFG_LBLAWAR7_PRELIM;
+#if defined(CONFIG_SYS_LBLAWBAR7_PRELIM) && defined(CONFIG_SYS_LBLAWAR7_PRELIM)
+       im->sysconf.lblaw[7].bar = CONFIG_SYS_LBLAWBAR7_PRELIM;
+       im->sysconf.lblaw[7].ar = CONFIG_SYS_LBLAWAR7_PRELIM;
 #endif
-#ifdef CFG_GPIO1_PRELIM
-       im->gpio[0].dat = CFG_GPIO1_DAT;
-       im->gpio[0].dir = CFG_GPIO1_DIR;
+#ifdef CONFIG_SYS_GPIO1_PRELIM
+       im->gpio[0].dat = CONFIG_SYS_GPIO1_DAT;
+       im->gpio[0].dir = CONFIG_SYS_GPIO1_DIR;
 #endif
-#ifdef CFG_GPIO2_PRELIM
-       im->gpio[1].dat = CFG_GPIO2_DAT;
-       im->gpio[1].dir = CFG_GPIO2_DIR;
+#ifdef CONFIG_SYS_GPIO2_PRELIM
+       im->gpio[1].dat = CONFIG_SYS_GPIO2_DAT;
+       im->gpio[1].dir = CONFIG_SYS_GPIO2_DIR;
 #endif
 }
 
 int cpu_init_r (void)
 {
 #ifdef CONFIG_QE
-       uint qe_base = CFG_IMMR + 0x00100000; /* QE immr base */
+       uint qe_base = CONFIG_SYS_IMMR + 0x00100000; /* QE immr base */
        qe_init(qe_base);
        qe_reset();
 #endif
index 5137ab6fdb08dca7f923a0bc55a5a1d849e2a5e2..5ab169fe3e0f5524357074737efdff32c62584d9 100644 (file)
@@ -20,7 +20,7 @@
 #if defined(CONFIG_DDR_ECC) && defined(CONFIG_DDR_ECC_CMD)
 void ecc_print_status(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ddr83xx_t *ddr = &immap->ddr;
 
        printf("\nECC mode: %s\n\n",
@@ -100,7 +100,7 @@ void ecc_print_status(void)
 
 int do_ecc(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ddr83xx_t *ddr = &immap->ddr;
        volatile u32 val;
        u64 *addr;
index 3e3e1c8ed035b4e95b4254e624837872e975f554..f89077588f28b4762b67430b24f035575de7e81d 100644 (file)
@@ -34,7 +34,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void ft_cpu_setup(void *blob, bd_t *bd)
 {
-       immap_t *immr = (immap_t *)CFG_IMMR;
+       immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        int spridr = immr->sysconf.spridr;
 
        /*
@@ -77,9 +77,9 @@ void ft_cpu_setup(void *blob, bd_t *bd)
        ft_qe_setup(blob);
 #endif
 
-#ifdef CFG_NS16550
+#ifdef CONFIG_SYS_NS16550
        do_fixup_by_compat_u32(blob, "ns16550",
-               "clock-frequency", CFG_NS16550_CLK, 1);
+               "clock-frequency", CONFIG_SYS_NS16550_CLK, 1);
 #endif
 
        fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
index 98ed21ccfa63af31d26e2b1a3de2f1b61cf29f89..faffbaf83829bc858937f7d1af97e0f12ef39e5a 100644 (file)
@@ -38,9 +38,9 @@ struct irq_action {
 
 int interrupt_init_cpu (unsigned *decrementer_count)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
-       *decrementer_count = (gd->bus_clk / 4) / CFG_HZ;
+       *decrementer_count = (gd->bus_clk / 4) / CONFIG_SYS_HZ;
 
        /* Enable e300 time base */
 
index e92f23023aadf0389325bf207f03174590243178..38e141a82849be3dab7f9130b919962853471a26 100644 (file)
@@ -37,7 +37,7 @@ void cpu_init_f (volatile immap_t * im)
        int i;
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        for (i = 0; i < sizeof(gd_t); i++)
@@ -45,34 +45,34 @@ void cpu_init_f (volatile immap_t * im)
 
        /* system performance tweaking */
 
-#ifdef CFG_ACR_PIPE_DEP
+#ifdef CONFIG_SYS_ACR_PIPE_DEP
        /* Arbiter pipeline depth */
        im->arbiter.acr = (im->arbiter.acr & ~ACR_PIPE_DEP) |
-                         (CFG_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
+                         (CONFIG_SYS_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
 #endif
 
-#ifdef CFG_ACR_RPTCNT
+#ifdef CONFIG_SYS_ACR_RPTCNT
        /* Arbiter repeat count */
        im->arbiter.acr = (im->arbiter.acr & ~(ACR_RPTCNT)) |
-                         (CFG_ACR_RPTCNT << ACR_RPTCNT_SHIFT);
+                         (CONFIG_SYS_ACR_RPTCNT << ACR_RPTCNT_SHIFT);
 #endif
 
-#ifdef CFG_SPCR_OPT
+#ifdef CONFIG_SYS_SPCR_OPT
        /* Optimize transactions between CSB and other devices */
        im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_OPT) |
-                          (CFG_SPCR_OPT << SPCR_OPT_SHIFT);
+                          (CONFIG_SYS_SPCR_OPT << SPCR_OPT_SHIFT);
 #endif
 
        /* Enable Time Base & Decrimenter (so we will have udelay()) */
        im->sysconf.spcr |= SPCR_TBEN;
 
        /* DDR control driver register */
-#ifdef CFG_DDRCDR
-       im->sysconf.ddrcdr = CFG_DDRCDR;
+#ifdef CONFIG_SYS_DDRCDR
+       im->sysconf.ddrcdr = CONFIG_SYS_DDRCDR;
 #endif
        /* Output buffer impedance register */
-#ifdef CFG_OBIR
-       im->sysconf.obir = CFG_OBIR;
+#ifdef CONFIG_SYS_OBIR
+       im->sysconf.obir = CONFIG_SYS_OBIR;
 #endif
 
        /*
@@ -84,16 +84,16 @@ void cpu_init_f (volatile immap_t * im)
         * has been determined
         */
 
-#if defined(CFG_NAND_BR_PRELIM)  \
-       && defined(CFG_NAND_OR_PRELIM) \
-       && defined(CFG_NAND_LBLAWBAR_PRELIM) \
-       && defined(CFG_NAND_LBLAWAR_PRELIM)
-       im->lbus.bank[0].br = CFG_NAND_BR_PRELIM;
-       im->lbus.bank[0].or = CFG_NAND_OR_PRELIM;
-       im->sysconf.lblaw[0].bar = CFG_NAND_LBLAWBAR_PRELIM;
-       im->sysconf.lblaw[0].ar = CFG_NAND_LBLAWAR_PRELIM;
+#if defined(CONFIG_SYS_NAND_BR_PRELIM)  \
+       && defined(CONFIG_SYS_NAND_OR_PRELIM) \
+       && defined(CONFIG_SYS_NAND_LBLAWBAR_PRELIM) \
+       && defined(CONFIG_SYS_NAND_LBLAWAR_PRELIM)
+       im->lbus.bank[0].br = CONFIG_SYS_NAND_BR_PRELIM;
+       im->lbus.bank[0].or = CONFIG_SYS_NAND_OR_PRELIM;
+       im->sysconf.lblaw[0].bar = CONFIG_SYS_NAND_LBLAWBAR_PRELIM;
+       im->sysconf.lblaw[0].ar = CONFIG_SYS_NAND_LBLAWAR_PRELIM;
 #else
-#error CFG_NAND_BR_PRELIM, CFG_NAND_OR_PRELIM, CFG_NAND_LBLAWBAR_PRELIM & CFG_NAND_LBLAWAR_PRELIM must be defined
+#error CONFIG_SYS_NAND_BR_PRELIM, CONFIG_SYS_NAND_OR_PRELIM, CONFIG_SYS_NAND_LBLAWBAR_PRELIM & CONFIG_SYS_NAND_LBLAWAR_PRELIM must be defined
 #endif
 }
 
index c3ec5f87eed4ea964209e02436edab20962e8335..5b8eeb7758b2122d4d3d0a47242f21677f7312cf 100644 (file)
@@ -42,7 +42,7 @@ static int pci_num_buses;
 
 static void pci_init_bus(int bus, struct pci_region *reg)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile pot83xx_t *pot = immr->ios.pot;
        volatile pcictrl83xx_t *pci_ctrl = &immr->pci_ctrl[bus];
        struct pci_controller *hose = &pci_hose[bus];
@@ -94,8 +94,8 @@ static void pci_init_bus(int bus, struct pci_region *reg)
        hose->first_busno = 0;
        hose->last_busno = 0xff;
 
-       pci_setup_indirect(hose, CFG_IMMR + 0x8300 + bus * 0x80,
-                                CFG_IMMR + 0x8304 + bus * 0x80);
+       pci_setup_indirect(hose, CONFIG_SYS_IMMR + 0x8300 + bus * 0x80,
+                                CONFIG_SYS_IMMR + 0x8304 + bus * 0x80);
 
        pci_register_hose(hose);
 
@@ -133,7 +133,7 @@ static void pci_init_bus(int bus, struct pci_region *reg)
  */
 void mpc83xx_pci_init(int num_buses, struct pci_region **reg, int warmboot)
 {
-       volatile immap_t *immr = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (volatile immap_t *)CONFIG_SYS_IMMR;
        int i;
 
        if (num_buses > MAX_BUSES) {
index ce91a07d72557e71f0f6a431be24c0522a11a489..db94f00098e216edf0927915dfe7e383585c1335 100644 (file)
@@ -33,7 +33,7 @@ void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
        u32                     pin_2bit_assign;
        u32                     pin_1bit_mask;
        u32                     tmp_val;
-       volatile immap_t        *im = (volatile immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (volatile immap_t *)CONFIG_SYS_IMMR;
        volatile qepio83xx_t    *par_io = (volatile qepio83xx_t *)&im->qepio;
 
        /* Caculate pin location and 2bit mask and dir */
index 020c4c8f917de1bebe52904afa7cf7bc1b1fe649..630b111aab31ddb7ec5923eb8379b7f09587560a 100644 (file)
@@ -44,7 +44,7 @@
 
 void fsl_setup_serdes(u32 offset, char proto, char rfcks, char vdd)
 {
-       void *regs = (void *)CFG_IMMR + offset;
+       void *regs = (void *)CONFIG_SYS_IMMR + offset;
        u32 tmp;
 
        /* 1.0V corevdd */
index f4a0e9001286803ac43fddc5c15b78a655769425..359a915586c7b5327a0b755dc4806268811d4578 100644 (file)
@@ -38,7 +38,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void board_add_ram_info(int use_default)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ddr83xx_t *ddr = &immap->ddr;
        char buf[32];
 
@@ -57,9 +57,9 @@ void board_add_ram_info(int use_default)
 
        printf(", %s MHz)", strmhz(buf, gd->mem_clk));
 
-#if defined(CFG_LB_SDRAM) && defined(CFG_LBC_SDRAM_SIZE)
+#if defined(CONFIG_SYS_LB_SDRAM) && defined(CONFIG_SYS_LBC_SDRAM_SIZE)
        puts("\nSDRAM: ");
-       print_size (CFG_LBC_SDRAM_SIZE * 1024 * 1024, " (local bus)");
+       print_size (CONFIG_SYS_LBC_SDRAM_SIZE * 1024 * 1024, " (local bus)");
 #endif
 }
 
@@ -71,8 +71,8 @@ extern uint dma_check(void);
 extern int dma_xfer(void *dest, uint count, void *src);
 #endif
 
-#ifndef        CFG_READ_SPD
-#define CFG_READ_SPD   i2c_read
+#ifndef        CONFIG_SYS_READ_SPD
+#define CONFIG_SYS_READ_SPD    i2c_read
 #endif
 
 /*
@@ -129,7 +129,7 @@ static void spd_debug(spd_eeprom_t *spd)
 
 long int spd_sdram()
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ddr83xx_t *ddr = &immap->ddr;
        volatile law83xx_t *ecm = &immap->sysconf.ddrlaw[0];
        spd_eeprom_t spd;
@@ -158,7 +158,7 @@ long int spd_sdram()
        unsigned int pvr = get_pvr();
 
        /* Read SPD parameters with I2C */
-       CFG_READ_SPD(SPD_EEPROM_ADDRESS, 0, 1, (uchar *) & spd, sizeof (spd));
+       CONFIG_SYS_READ_SPD(SPD_EEPROM_ADDRESS, 0, 1, (uchar *) & spd, sizeof (spd));
 #ifdef SPD_DEBUG
        spd_debug(&spd);
 #endif
@@ -194,12 +194,12 @@ long int spd_sdram()
                return 0;
        }
 
-#ifdef CFG_DDRCDR_VALUE
+#ifdef CONFIG_SYS_DDRCDR_VALUE
        /*
         * Adjust DDR II IO voltage biasing.  It just makes it work.
         */
        if(spd.mem_type == SPD_MEMTYPE_DDR2) {
-               immap->sysconf.ddrcdr = CFG_DDRCDR_VALUE;
+               immap->sysconf.ddrcdr = CONFIG_SYS_DDRCDR_VALUE;
        }
        udelay(50000);
 #endif
@@ -214,7 +214,7 @@ long int spd_sdram()
        }
 
        /* Setup DDR chip select register */
-#ifdef CFG_83XX_DDR_USES_CS0
+#ifdef CONFIG_SYS_83XX_DDR_USES_CS0
        ddr->csbnds[0].csbnds = (banksize(spd.row_dens) >> 24) - 1;
        ddr->cs_config[0] = ( 1 << 31
                            | (odt_rd_cfg << 20)
@@ -274,7 +274,7 @@ long int spd_sdram()
        /*
         * Set up LAWBAR for all of DDR.
         */
-       ecm->bar = CFG_DDR_SDRAM_BASE & 0xfffff000;
+       ecm->bar = CONFIG_SYS_DDR_SDRAM_BASE & 0xfffff000;
        ecm->ar  = (LAWAR_EN | LAWAR_TRGT_IF_DDR | (LAWAR_SIZE & law_size));
        debug("DDR:bar=0x%08x\n", ecm->bar);
        debug("DDR:ar=0x%08x\n", ecm->ar);
@@ -724,8 +724,8 @@ long int spd_sdram()
                debug("DDR: sdram_cfg2  = 0x%08x\n", ddr->sdram_cfg2);
        }
 
-#ifdef CFG_DDR_SDRAM_CLK_CNTL  /* Optional platform specific value */
-       ddr->sdram_clk_cntl = CFG_DDR_SDRAM_CLK_CNTL;
+#ifdef CONFIG_SYS_DDR_SDRAM_CLK_CNTL   /* Optional platform specific value */
+       ddr->sdram_clk_cntl = CONFIG_SYS_DDR_SDRAM_CLK_CNTL;
 #endif
        debug("DDR:sdram_clk_cntl=0x%08x\n", ddr->sdram_clk_cntl);
 
@@ -842,7 +842,7 @@ static __inline__ unsigned long get_tbms (void)
 /* #define CONFIG_DDR_ECC_INIT_VIA_DMA */
 void ddr_enable_ecc(unsigned int dram_size)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ddr83xx_t *ddr= &immap->ddr;
        unsigned long t_start, t_end;
        register u64 *p;
index 76c569de1b53f182db0f52823e239f0945731c72..3a708d8544142cfedb4f99428cfd85b59f418e50 100644 (file)
@@ -90,7 +90,7 @@ corecnf_t corecnf_tab[] = {
  */
 int get_clocks(void)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        u32 pci_sync_in;
        u8 spmf;
        u8 clkin_div;
index 14bfbdade8f7b1a9ddbf9b10e4674b2467b94ec3..565cc3972b207c178ace438030ee1c7ed559283f 100644 (file)
@@ -57,8 +57,8 @@
 #define MSR_KERNEL (MSR_FP|MSR_ME|MSR_RI)
 #endif
 
-#if !defined(CONFIG_NAND_SPL) && !defined(CFG_RAMBOOT)
-#define CFG_FLASHBOOT
+#if !defined(CONFIG_NAND_SPL) && !defined(CONFIG_SYS_RAMBOOT)
+#define CONFIG_SYS_FLASHBOOT
 #endif
 
 /*
@@ -93,8 +93,8 @@
        .fill   8,1,(((w)>> 8)&0xff);   \
        .fill   8,1,(((w)    )&0xff)
 
-       _HRCW_TABLE_ENTRY(CFG_HRCW_LOW)
-       _HRCW_TABLE_ENTRY(CFG_HRCW_HIGH)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_LOW)
+       _HRCW_TABLE_ENTRY(CONFIG_SYS_HRCW_HIGH)
 
 /*
  * Magic number and version string - put it after the HRCW since it
@@ -111,10 +111,10 @@ version_string:
 
 #ifndef CONFIG_DEFAULT_IMMR
 #error CONFIG_DEFAULT_IMMR must be defined
-#endif /* CFG_DEFAULT_IMMR */
-#ifndef CFG_IMMR
-#define CFG_IMMR CONFIG_DEFAULT_IMMR
-#endif /* CFG_IMMR */
+#endif /* CONFIG_SYS_DEFAULT_IMMR */
+#ifndef CONFIG_SYS_IMMR
+#define CONFIG_SYS_IMMR CONFIG_DEFAULT_IMMR
+#endif /* CONFIG_SYS_IMMR */
 
 /*
  * After configuration, a system reset exception is executed using the
@@ -160,8 +160,8 @@ boot_cold: /* time t 3 */
        nop
 boot_warm: /* time t 5 */
        mfmsr   r5                      /* save msr contents    */
-       lis     r3, CFG_IMMR@h
-       ori     r3, r3, CFG_IMMR@l
+       lis     r3, CONFIG_SYS_IMMR@h
+       ori     r3, r3, CONFIG_SYS_IMMR@l
        stw     r3, IMMRBAR(r4)
 
        /* Initialise the E300 processor core           */
@@ -169,15 +169,15 @@ boot_warm: /* time t 5 */
 
        bl      init_e300_core
 
-#ifdef CFG_FLASHBOOT
+#ifdef CONFIG_SYS_FLASHBOOT
 
        /* Inflate flash location so it appears everywhere, calculate */
        /* the absolute address in final location of the FLASH, jump  */
        /* there and deflate the flash size back to minimal size      */
        /*------------------------------------------------------------*/
        bl map_flash_by_law1
-       lis r4, (CFG_MONITOR_BASE)@h
-       ori r4, r4, (CFG_MONITOR_BASE)@l
+       lis r4, (CONFIG_SYS_MONITOR_BASE)@h
+       ori r4, r4, (CONFIG_SYS_MONITOR_BASE)@l
        addi r5, r4, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr r5
        blr
@@ -185,7 +185,7 @@ in_flash:
 #if 1 /* Remapping flash with LAW0. */
        bl remap_flash_by_law0
 #endif
-#endif /* CFG_FLASHBOOT */
+#endif /* CONFIG_SYS_FLASHBOOT */
 
        /* setup the bats */
        bl      setup_bats
@@ -211,15 +211,15 @@ in_flash:
        /* enable the data cache */
        bl      dcache_enable
        sync
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
        bl      lock_ram_in_cache
        sync
 #endif
 
        /* set up the stack pointer in our newly created
         * cache-ram (r1) */
-       lis     r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@h
-       ori     r1, r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@l
+       lis     r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@h
+       ori     r1, r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@l
 
        li      r0, 0           /* Make room for stack frame header and */
        stwu    r0, -4(r1)      /* clear final stack frame so that      */
@@ -234,7 +234,7 @@ in_flash:
        GET_GOT                 /* initialize GOT access        */
 
        /* r3: IMMR */
-       lis     r3, CFG_IMMR@h
+       lis     r3, CONFIG_SYS_IMMR@h
        /* run low-level CPU init code (in Flash)*/
        bl      cpu_init_f
 
@@ -456,11 +456,11 @@ init_e300_core: /* time t 10 */
        mtspr   SRR1, r3                        /* Make SRR1 match MSR */
 
 
-       lis     r3, CFG_IMMR@h
+       lis     r3, CONFIG_SYS_IMMR@h
 #if defined(CONFIG_WATCHDOG)
        /* Initialise the Wathcdog values and reset it (if req) */
        /*------------------------------------------------------*/
-       lis r4, CFG_WATCHDOG_VALUE
+       lis r4, CONFIG_SYS_WATCHDOG_VALUE
        ori r4, r4, (SWCRR_SWEN | SWCRR_SWRI | SWCRR_SWPR)
        stw r4, SWCRR(r3)
 
@@ -499,18 +499,18 @@ init_e300_core: /* time t 10 */
        /* - force invalidation of data and instruction caches  */
        /*------------------------------------------------------*/
 
-       lis     r3, CFG_HID0_INIT@h
-       ori     r3, r3, (CFG_HID0_INIT | HID0_ICFI | HID0_DCFI)@l
+       lis     r3, CONFIG_SYS_HID0_INIT@h
+       ori     r3, r3, (CONFIG_SYS_HID0_INIT | HID0_ICFI | HID0_DCFI)@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID0_FINAL@h
-       ori     r3, r3, (CFG_HID0_FINAL & ~(HID0_ICFI | HID0_DCFI))@l
+       lis     r3, CONFIG_SYS_HID0_FINAL@h
+       ori     r3, r3, (CONFIG_SYS_HID0_FINAL & ~(HID0_ICFI | HID0_DCFI))@l
        SYNC
        mtspr   HID0, r3
 
-       lis     r3, CFG_HID2@h
-       ori     r3, r3, CFG_HID2@l
+       lis     r3, CONFIG_SYS_HID2@h
+       ori     r3, r3, CONFIG_SYS_HID2@l
        SYNC
        mtspr   HID2, r3
 
@@ -524,131 +524,131 @@ setup_bats:
        addis   r0, r0, 0x0000
 
        /* IBAT 0 */
-       addis   r4, r0, CFG_IBAT0L@h
-       ori     r4, r4, CFG_IBAT0L@l
-       addis   r3, r0, CFG_IBAT0U@h
-       ori     r3, r3, CFG_IBAT0U@l
+       addis   r4, r0, CONFIG_SYS_IBAT0L@h
+       ori     r4, r4, CONFIG_SYS_IBAT0L@l
+       addis   r3, r0, CONFIG_SYS_IBAT0U@h
+       ori     r3, r3, CONFIG_SYS_IBAT0U@l
        mtspr   IBAT0L, r4
        mtspr   IBAT0U, r3
 
        /* DBAT 0 */
-       addis   r4, r0, CFG_DBAT0L@h
-       ori     r4, r4, CFG_DBAT0L@l
-       addis   r3, r0, CFG_DBAT0U@h
-       ori     r3, r3, CFG_DBAT0U@l
+       addis   r4, r0, CONFIG_SYS_DBAT0L@h
+       ori     r4, r4, CONFIG_SYS_DBAT0L@l
+       addis   r3, r0, CONFIG_SYS_DBAT0U@h
+       ori     r3, r3, CONFIG_SYS_DBAT0U@l
        mtspr   DBAT0L, r4
        mtspr   DBAT0U, r3
 
        /* IBAT 1 */
-       addis   r4, r0, CFG_IBAT1L@h
-       ori     r4, r4, CFG_IBAT1L@l
-       addis   r3, r0, CFG_IBAT1U@h
-       ori     r3, r3, CFG_IBAT1U@l
+       addis   r4, r0, CONFIG_SYS_IBAT1L@h
+       ori     r4, r4, CONFIG_SYS_IBAT1L@l
+       addis   r3, r0, CONFIG_SYS_IBAT1U@h
+       ori     r3, r3, CONFIG_SYS_IBAT1U@l
        mtspr   IBAT1L, r4
        mtspr   IBAT1U, r3
 
        /* DBAT 1 */
-       addis   r4, r0, CFG_DBAT1L@h
-       ori     r4, r4, CFG_DBAT1L@l
-       addis   r3, r0, CFG_DBAT1U@h
-       ori     r3, r3, CFG_DBAT1U@l
+       addis   r4, r0, CONFIG_SYS_DBAT1L@h
+       ori     r4, r4, CONFIG_SYS_DBAT1L@l
+       addis   r3, r0, CONFIG_SYS_DBAT1U@h
+       ori     r3, r3, CONFIG_SYS_DBAT1U@l
        mtspr   DBAT1L, r4
        mtspr   DBAT1U, r3
 
        /* IBAT 2 */
-       addis   r4, r0, CFG_IBAT2L@h
-       ori     r4, r4, CFG_IBAT2L@l
-       addis   r3, r0, CFG_IBAT2U@h
-       ori     r3, r3, CFG_IBAT2U@l
+       addis   r4, r0, CONFIG_SYS_IBAT2L@h
+       ori     r4, r4, CONFIG_SYS_IBAT2L@l
+       addis   r3, r0, CONFIG_SYS_IBAT2U@h
+       ori     r3, r3, CONFIG_SYS_IBAT2U@l
        mtspr   IBAT2L, r4
        mtspr   IBAT2U, r3
 
        /* DBAT 2 */
-       addis   r4, r0, CFG_DBAT2L@h
-       ori     r4, r4, CFG_DBAT2L@l
-       addis   r3, r0, CFG_DBAT2U@h
-       ori     r3, r3, CFG_DBAT2U@l
+       addis   r4, r0, CONFIG_SYS_DBAT2L@h
+       ori     r4, r4, CONFIG_SYS_DBAT2L@l
+       addis   r3, r0, CONFIG_SYS_DBAT2U@h
+       ori     r3, r3, CONFIG_SYS_DBAT2U@l
        mtspr   DBAT2L, r4
        mtspr   DBAT2U, r3
 
        /* IBAT 3 */
-       addis   r4, r0, CFG_IBAT3L@h
-       ori     r4, r4, CFG_IBAT3L@l
-       addis   r3, r0, CFG_IBAT3U@h
-       ori     r3, r3, CFG_IBAT3U@l
+       addis   r4, r0, CONFIG_SYS_IBAT3L@h
+       ori     r4, r4, CONFIG_SYS_IBAT3L@l
+       addis   r3, r0, CONFIG_SYS_IBAT3U@h
+       ori     r3, r3, CONFIG_SYS_IBAT3U@l
        mtspr   IBAT3L, r4
        mtspr   IBAT3U, r3
 
        /* DBAT 3 */
-       addis   r4, r0, CFG_DBAT3L@h
-       ori     r4, r4, CFG_DBAT3L@l
-       addis   r3, r0, CFG_DBAT3U@h
-       ori     r3, r3, CFG_DBAT3U@l
+       addis   r4, r0, CONFIG_SYS_DBAT3L@h
+       ori     r4, r4, CONFIG_SYS_DBAT3L@l
+       addis   r3, r0, CONFIG_SYS_DBAT3U@h
+       ori     r3, r3, CONFIG_SYS_DBAT3U@l
        mtspr   DBAT3L, r4
        mtspr   DBAT3U, r3
 
 #ifdef CONFIG_HIGH_BATS
        /* IBAT 4 */
-       addis   r4, r0, CFG_IBAT4L@h
-       ori     r4, r4, CFG_IBAT4L@l
-       addis   r3, r0, CFG_IBAT4U@h
-       ori     r3, r3, CFG_IBAT4U@l
+       addis   r4, r0, CONFIG_SYS_IBAT4L@h
+       ori     r4, r4, CONFIG_SYS_IBAT4L@l
+       addis   r3, r0, CONFIG_SYS_IBAT4U@h
+       ori     r3, r3, CONFIG_SYS_IBAT4U@l
        mtspr   IBAT4L, r4
        mtspr   IBAT4U, r3
 
        /* DBAT 4 */
-       addis   r4, r0, CFG_DBAT4L@h
-       ori     r4, r4, CFG_DBAT4L@l
-       addis   r3, r0, CFG_DBAT4U@h
-       ori     r3, r3, CFG_DBAT4U@l
+       addis   r4, r0, CONFIG_SYS_DBAT4L@h
+       ori     r4, r4, CONFIG_SYS_DBAT4L@l
+       addis   r3, r0, CONFIG_SYS_DBAT4U@h
+       ori     r3, r3, CONFIG_SYS_DBAT4U@l
        mtspr   DBAT4L, r4
        mtspr   DBAT4U, r3
 
        /* IBAT 5 */
-       addis   r4, r0, CFG_IBAT5L@h
-       ori     r4, r4, CFG_IBAT5L@l
-       addis   r3, r0, CFG_IBAT5U@h
-       ori     r3, r3, CFG_IBAT5U@l
+       addis   r4, r0, CONFIG_SYS_IBAT5L@h
+       ori     r4, r4, CONFIG_SYS_IBAT5L@l
+       addis   r3, r0, CONFIG_SYS_IBAT5U@h
+       ori     r3, r3, CONFIG_SYS_IBAT5U@l
        mtspr   IBAT5L, r4
        mtspr   IBAT5U, r3
 
        /* DBAT 5 */
-       addis   r4, r0, CFG_DBAT5L@h
-       ori     r4, r4, CFG_DBAT5L@l
-       addis   r3, r0, CFG_DBAT5U@h
-       ori     r3, r3, CFG_DBAT5U@l
+       addis   r4, r0, CONFIG_SYS_DBAT5L@h
+       ori     r4, r4, CONFIG_SYS_DBAT5L@l
+       addis   r3, r0, CONFIG_SYS_DBAT5U@h
+       ori     r3, r3, CONFIG_SYS_DBAT5U@l
        mtspr   DBAT5L, r4
        mtspr   DBAT5U, r3
 
        /* IBAT 6 */
-       addis   r4, r0, CFG_IBAT6L@h
-       ori     r4, r4, CFG_IBAT6L@l
-       addis   r3, r0, CFG_IBAT6U@h
-       ori     r3, r3, CFG_IBAT6U@l
+       addis   r4, r0, CONFIG_SYS_IBAT6L@h
+       ori     r4, r4, CONFIG_SYS_IBAT6L@l
+       addis   r3, r0, CONFIG_SYS_IBAT6U@h
+       ori     r3, r3, CONFIG_SYS_IBAT6U@l
        mtspr   IBAT6L, r4
        mtspr   IBAT6U, r3
 
        /* DBAT 6 */
-       addis   r4, r0, CFG_DBAT6L@h
-       ori     r4, r4, CFG_DBAT6L@l
-       addis   r3, r0, CFG_DBAT6U@h
-       ori     r3, r3, CFG_DBAT6U@l
+       addis   r4, r0, CONFIG_SYS_DBAT6L@h
+       ori     r4, r4, CONFIG_SYS_DBAT6L@l
+       addis   r3, r0, CONFIG_SYS_DBAT6U@h
+       ori     r3, r3, CONFIG_SYS_DBAT6U@l
        mtspr   DBAT6L, r4
        mtspr   DBAT6U, r3
 
        /* IBAT 7 */
-       addis   r4, r0, CFG_IBAT7L@h
-       ori     r4, r4, CFG_IBAT7L@l
-       addis   r3, r0, CFG_IBAT7U@h
-       ori     r3, r3, CFG_IBAT7U@l
+       addis   r4, r0, CONFIG_SYS_IBAT7L@h
+       ori     r4, r4, CONFIG_SYS_IBAT7L@l
+       addis   r3, r0, CONFIG_SYS_IBAT7U@h
+       ori     r3, r3, CONFIG_SYS_IBAT7U@l
        mtspr   IBAT7L, r4
        mtspr   IBAT7U, r3
 
        /* DBAT 7 */
-       addis   r4, r0, CFG_DBAT7L@h
-       ori     r4, r4, CFG_DBAT7L@l
-       addis   r3, r0, CFG_DBAT7U@h
-       ori     r3, r3, CFG_DBAT7U@l
+       addis   r4, r0, CONFIG_SYS_DBAT7L@h
+       ori     r4, r4, CONFIG_SYS_DBAT7L@l
+       addis   r3, r0, CONFIG_SYS_DBAT7U@h
+       ori     r3, r3, CONFIG_SYS_DBAT7U@l
        mtspr   DBAT7L, r4
        mtspr   DBAT7U, r3
 #endif
@@ -774,11 +774,11 @@ dcache_status:
        .globl  flush_dcache
 flush_dcache:
        lis     r3, 0
-       lis     r5, CFG_CACHELINE_SIZE
+       lis     r5, CONFIG_SYS_CACHELINE_SIZE
 1:     cmp     0, 1, r3, r5
        bge     2f
        lwz     r5, 0(r3)
-       lis     r5, CFG_CACHELINE_SIZE
+       lis     r5, CONFIG_SYS_CACHELINE_SIZE
        addi    r3, r3, 0x4
        b       1b
 2:     blr
@@ -820,16 +820,16 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address */
 
        mr      r3,  r5                         /* Destination Address */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__bss_start)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE)
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE)
         *              + Destination Address
         *
         * Offset:
@@ -1073,14 +1073,14 @@ trap_reloc:
        blr
 #endif /* !CONFIG_NAND_SPL */
 
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
 lock_ram_in_cache:
        /* Allocate Initial RAM in data cache.
         */
-       lis     r3, (CFG_INIT_RAM_ADDR & ~31)@h
-       ori     r3, r3, (CFG_INIT_RAM_ADDR & ~31)@l
-       li      r4, ((CFG_INIT_RAM_END & ~31) + \
-                    (CFG_INIT_RAM_ADDR & 31) + 31) / 32
+       lis     r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@h
+       ori     r3, r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@l
+       li      r4, ((CONFIG_SYS_INIT_RAM_END & ~31) + \
+                    (CONFIG_SYS_INIT_RAM_ADDR & 31) + 31) / 32
        mtctr   r4
 1:
        dcbz    r0, r3
@@ -1099,10 +1099,10 @@ lock_ram_in_cache:
 .globl unlock_ram_in_cache
 unlock_ram_in_cache:
        /* invalidate the INIT_RAM section */
-       lis     r3, (CFG_INIT_RAM_ADDR & ~31)@h
-       ori     r3, r3, (CFG_INIT_RAM_ADDR & ~31)@l
-       li      r4, ((CFG_INIT_RAM_END & ~31) + \
-                    (CFG_INIT_RAM_ADDR & 31) + 31) / 32
+       lis     r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@h
+       ori     r3, r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@l
+       li      r4, ((CONFIG_SYS_INIT_RAM_END & ~31) + \
+                    (CONFIG_SYS_INIT_RAM_ADDR & 31) + 31) / 32
        mtctr   r4
 1:     icbi    r0, r3
        dcbi    r0, r3
@@ -1122,14 +1122,14 @@ unlock_ram_in_cache:
        mtspr   HID0, r3                /* no invalidate, unlock */
        blr
 #endif /* !CONFIG_NAND_SPL */
-#endif /* CFG_INIT_RAM_LOCK */
+#endif /* CONFIG_SYS_INIT_RAM_LOCK */
 
-#ifdef CFG_FLASHBOOT
+#ifdef CONFIG_SYS_FLASHBOOT
 map_flash_by_law1:
        /* When booting from ROM (Flash or EPROM), clear the  */
        /* Address Mask in OR0 so ROM appears everywhere      */
        /*----------------------------------------------------*/
-       lis     r3, (CFG_IMMR)@h  /* r3 <= CFG_IMMR    */
+       lis     r3, (CONFIG_SYS_IMMR)@h  /* r3 <= CONFIG_SYS_IMMR    */
        lwz     r4, OR0@l(r3)
        li      r5, 0x7fff        /* r5 <= 0x00007FFFF */
        and     r4, r4, r5
@@ -1151,14 +1151,14 @@ map_flash_by_law1:
         * LBIU Local Access Widow 0 will not cover this memory space.  So, we
         * need another window to map in it.
         */
-       lis r4, (CFG_FLASH_BASE)@h
-       ori r4, r4, (CFG_FLASH_BASE)@l
-       stw r4, LBLAWBAR1(r3) /* LBLAWBAR1 <= CFG_FLASH_BASE */
+       lis r4, (CONFIG_SYS_FLASH_BASE)@h
+       ori r4, r4, (CONFIG_SYS_FLASH_BASE)@l
+       stw r4, LBLAWBAR1(r3) /* LBLAWBAR1 <= CONFIG_SYS_FLASH_BASE */
 
-       /* Store 0x80000012 + log2(CFG_FLASH_SIZE) into LBLAWAR1 */
+       /* Store 0x80000012 + log2(CONFIG_SYS_FLASH_SIZE) into LBLAWAR1 */
        lis r4, (0x80000012)@h
        ori r4, r4, (0x80000012)@l
-       li r5, CFG_FLASH_SIZE
+       li r5, CONFIG_SYS_FLASH_SIZE
 1:     srawi. r5, r5, 1        /* r5 = r5 >> 1 */
        addi r4, r4, 1
        bne 1b
@@ -1175,24 +1175,24 @@ remap_flash_by_law0:
        lwz r4, BR0(r3)
        li  r5, 0x7FFF
        and r4, r4, r5
-       lis r5, (CFG_FLASH_BASE & 0xFFFF8000)@h
-       ori r5, r5, (CFG_FLASH_BASE & 0xFFFF8000)@l
+       lis r5, (CONFIG_SYS_FLASH_BASE & 0xFFFF8000)@h
+       ori r5, r5, (CONFIG_SYS_FLASH_BASE & 0xFFFF8000)@l
        or  r5, r5, r4
-       stw r5, BR0(r3) /* r5 <= (CFG_FLASH_BASE & 0xFFFF8000) | (BR0 & 0x00007FFF) */
+       stw r5, BR0(r3) /* r5 <= (CONFIG_SYS_FLASH_BASE & 0xFFFF8000) | (BR0 & 0x00007FFF) */
 
        lwz r4, OR0(r3)
-       lis r5, ~((CFG_FLASH_SIZE << 4) - 1)
+       lis r5, ~((CONFIG_SYS_FLASH_SIZE << 4) - 1)
        or r4, r4, r5
        stw r4, OR0(r3)
 
-       lis r4, (CFG_FLASH_BASE)@h
-       ori r4, r4, (CFG_FLASH_BASE)@l
-       stw r4, LBLAWBAR0(r3) /* LBLAWBAR0 <= CFG_FLASH_BASE */
+       lis r4, (CONFIG_SYS_FLASH_BASE)@h
+       ori r4, r4, (CONFIG_SYS_FLASH_BASE)@l
+       stw r4, LBLAWBAR0(r3) /* LBLAWBAR0 <= CONFIG_SYS_FLASH_BASE */
 
-       /* Store 0x80000012 + log2(CFG_FLASH_SIZE) into LBLAWAR0 */
+       /* Store 0x80000012 + log2(CONFIG_SYS_FLASH_SIZE) into LBLAWAR0 */
        lis r4, (0x80000012)@h
        ori r4, r4, (0x80000012)@l
-       li r5, CFG_FLASH_SIZE
+       li r5, CONFIG_SYS_FLASH_SIZE
 1:     srawi. r5, r5, 1 /* r5 = r5 >> 1 */
        addi r4, r4, 1
        bne 1b
@@ -1203,4 +1203,4 @@ remap_flash_by_law0:
        stw r4, LBLAWBAR1(r3)
        stw r4, LBLAWAR1(r3) /* Off LBIU LAW1 */
        blr
-#endif /* CFG_FLASHBOOT */
+#endif /* CONFIG_SYS_FLASHBOOT */
index dfd6c038642192296e3bcf2d3bac5e7fb5829638..3b09a62ac1adc59a0d8482932f8916496f8e9dd4 100644 (file)
@@ -100,7 +100,7 @@ _exception(int signr, struct pt_regs *regs)
 void dump_pci (void)
 {
 /*
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        printf ("PCI: err status %x err mask %x err ctrl %x\n",
                le32_to_cpu (immap->im_pci.pci_esr),
                le32_to_cpu (immap->im_pci.pci_emr),
@@ -124,7 +124,7 @@ MachineCheckException(struct pt_regs *regs)
         */
 #ifdef CONFIG_PCI
 #if 0
-       volatile immap_t *immap  = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap  = (immap_t *)CONFIG_SYS_IMMR;
 #ifdef DEBUG
        dump_pci();
 #endif
index b0ecd25507bbb4ea6487610e1141796d5b3ce0f1..fff8dff5032ea513ccc6dd5e805f0262f9ed21da 100644 (file)
@@ -37,10 +37,10 @@ DECLARE_GLOBAL_DATA_PTR;
 void
 m8560_cpm_reset(void)
 {
-       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        volatile ulong count;
 
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Reclaim the DP memory for our use.
        */
@@ -64,7 +64,7 @@ m8560_cpm_reset(void)
 uint
 m8560_cpm_dpalloc(uint size, uint align)
 {
-       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        uint    retloc;
        uint    align_mask, off;
        uint    savebase;
@@ -120,7 +120,7 @@ m8560_cpm_hostalloc(uint size, uint align)
 void
 m8560_cpm_setbrg(uint brg, uint rate)
 {
-       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        volatile uint   *bp;
 
        /* This is good enough to get SMCs running.....
@@ -142,7 +142,7 @@ m8560_cpm_setbrg(uint brg, uint rate)
 void
 m8560_cpm_fastbrg(uint brg, uint rate, int div16)
 {
-       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        volatile uint   *bp;
 
        /* This is good enough to get SMCs running.....
@@ -167,7 +167,7 @@ m8560_cpm_fastbrg(uint brg, uint rate, int div16)
 void
 m8560_cpm_extcbrg(uint brg, uint rate, uint extclk, int pinsel)
 {
-       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        volatile uint   *bp;
 
        if (brg < 4) {
@@ -190,7 +190,7 @@ m8560_cpm_extcbrg(uint brg, uint rate, uint extclk, int pinsel)
 void post_word_store (ulong a)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_IMMR + CPM_POST_WORD_ADDR);
+               (volatile ulong *)(CONFIG_SYS_IMMR + CPM_POST_WORD_ADDR);
 
        *save_addr = a;
 }
@@ -198,7 +198,7 @@ void post_word_store (ulong a)
 ulong post_word_load (void)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_IMMR + CPM_POST_WORD_ADDR);
+               (volatile ulong *)(CONFIG_SYS_IMMR + CPM_POST_WORD_ADDR);
 
        return *save_addr;
 }
index f15b0a8c9e5cc3c910a75acfa29282bd8322b1e7..61162a8bb3a7721254b69bc09fdd8a49f5599dc6 100644 (file)
@@ -84,7 +84,7 @@ int checkcpu (void)
        uint major, minor;
        struct cpu_type *cpu;
 #ifdef CONFIG_DDR_CLK_FREQ
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO)
                >> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT;
 #else
@@ -151,11 +151,11 @@ int checkcpu (void)
                break;
        }
 
-#if defined(CFG_LBC_LCRR)
-       lcrr = CFG_LBC_LCRR;
+#if defined(CONFIG_SYS_LBC_LCRR)
+       lcrr = CONFIG_SYS_LBC_LCRR;
 #else
        {
-           volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+           volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
 
            lcrr = lbc->lcrr;
        }
@@ -200,7 +200,7 @@ int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
        if (ver & 1){
        /* e500 v2 core has reset control register */
                volatile unsigned int * rstcr;
-               rstcr = (volatile unsigned int *)(CFG_IMMR + 0xE00B0);
+               rstcr = (volatile unsigned int *)(CONFIG_SYS_IMMR + 0xE00B0);
                *rstcr = 0x2;           /* HRESET_REQ */
                udelay(100);
        }
@@ -256,7 +256,7 @@ reset_85xx_watchdog(void)
 
 #if defined(CONFIG_DDR_ECC)
 void dma_init(void) {
-       volatile ccsr_dma_t *dma = (void *)(CFG_MPC85xx_DMA_ADDR);
+       volatile ccsr_dma_t *dma = (void *)(CONFIG_SYS_MPC85xx_DMA_ADDR);
 
        dma->satr0 = 0x02c40000;
        dma->datr0 = 0x02c40000;
@@ -266,7 +266,7 @@ void dma_init(void) {
 }
 
 uint dma_check(void) {
-       volatile ccsr_dma_t *dma = (void *)(CFG_MPC85xx_DMA_ADDR);
+       volatile ccsr_dma_t *dma = (void *)(CONFIG_SYS_MPC85xx_DMA_ADDR);
        volatile uint status = dma->sr0;
 
        /* While the channel is busy, spin */
@@ -285,7 +285,7 @@ uint dma_check(void) {
 }
 
 int dma_xfer(void *dest, uint count, void *src) {
-       volatile ccsr_dma_t *dma = (void *)(CFG_MPC85xx_DMA_ADDR);
+       volatile ccsr_dma_t *dma = (void *)(CONFIG_SYS_MPC85xx_DMA_ADDR);
 
        dma->dar0 = (uint) dest;
        dma->sar0 = (uint) src;
@@ -306,7 +306,7 @@ void upmconfig (uint upm, uint * table, uint size)
 {
        int i, mdr, mad, old_mad = 0;
        volatile u32 *mxmr;
-       volatile ccsr_lbc_t *lbc = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *lbc = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
        volatile u32 *brp,*orp;
        volatile u8* dummy = NULL;
        int upmmask;
index 783c5bae7736315b948993ae7404e733fdb3cf1a..3a8aef20d31516d69f66fd60c4f9c0d1cd9b1c0f 100644 (file)
@@ -132,28 +132,28 @@ void config_8560_ioports (volatile ccsr_cpm_t * cpm)
 /* We run cpu_init_early_f in AS = 1 */
 void cpu_init_early_f(void)
 {
-       set_tlb(0, CFG_CCSRBAR, CFG_CCSRBAR_PHYS,
+       set_tlb(0, CONFIG_SYS_CCSRBAR, CONFIG_SYS_CCSRBAR_PHYS,
                MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                1, 0, BOOKE_PAGESZ_4K, 0);
 
        /* set up CCSR if we want it moved */
-#if (CFG_CCSRBAR_DEFAULT != CFG_CCSRBAR_PHYS)
+#if (CONFIG_SYS_CCSRBAR_DEFAULT != CONFIG_SYS_CCSRBAR_PHYS)
        {
                u32 temp;
 
-               set_tlb(0, CFG_CCSRBAR_DEFAULT, CFG_CCSRBAR_DEFAULT,
+               set_tlb(0, CONFIG_SYS_CCSRBAR_DEFAULT, CONFIG_SYS_CCSRBAR_DEFAULT,
                        MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
                        1, 1, BOOKE_PAGESZ_4K, 0);
 
-               temp = in_be32((volatile u32 *)CFG_CCSRBAR_DEFAULT);
-               out_be32((volatile u32 *)CFG_CCSRBAR_DEFAULT, CFG_CCSRBAR_PHYS >> 12);
+               temp = in_be32((volatile u32 *)CONFIG_SYS_CCSRBAR_DEFAULT);
+               out_be32((volatile u32 *)CONFIG_SYS_CCSRBAR_DEFAULT, CONFIG_SYS_CCSRBAR_PHYS >> 12);
 
-               temp = in_be32((volatile u32 *)CFG_CCSRBAR);
+               temp = in_be32((volatile u32 *)CONFIG_SYS_CCSRBAR);
        }
 #endif
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
@@ -172,69 +172,69 @@ void cpu_init_early_f(void)
 
 void cpu_init_f (void)
 {
-       volatile ccsr_lbc_t *memctl = (void *)(CFG_MPC85xx_LBC_ADDR);
+       volatile ccsr_lbc_t *memctl = (void *)(CONFIG_SYS_MPC85xx_LBC_ADDR);
        extern void m8560_cpm_reset (void);
 
        disable_tlb(14);
        disable_tlb(15);
 
 #ifdef CONFIG_CPM2
-       config_8560_ioports((ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR);
+       config_8560_ioports((ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR);
 #endif
 
        /* Map banks 0 and 1 to the FLASH banks 0 and 1 at preliminary
         * addresses - these have to be modified later when FLASH size
         * has been determined
         */
-#if defined(CFG_OR0_REMAP)
-       memctl->or0 = CFG_OR0_REMAP;
+#if defined(CONFIG_SYS_OR0_REMAP)
+       memctl->or0 = CONFIG_SYS_OR0_REMAP;
 #endif
-#if defined(CFG_OR1_REMAP)
-       memctl->or1 = CFG_OR1_REMAP;
+#if defined(CONFIG_SYS_OR1_REMAP)
+       memctl->or1 = CONFIG_SYS_OR1_REMAP;
 #endif
 
        /* now restrict to preliminary range */
        /* if cs1 is already set via debugger, leave cs0/cs1 alone */
        if (! memctl->br1 & 1) {
-#if defined(CFG_BR0_PRELIM) && defined(CFG_OR0_PRELIM)
-               memctl->br0 = CFG_BR0_PRELIM;
-               memctl->or0 = CFG_OR0_PRELIM;
+#if defined(CONFIG_SYS_BR0_PRELIM) && defined(CONFIG_SYS_OR0_PRELIM)
+               memctl->br0 = CONFIG_SYS_BR0_PRELIM;
+               memctl->or0 = CONFIG_SYS_OR0_PRELIM;
 #endif
 
-#if defined(CFG_BR1_PRELIM) && defined(CFG_OR1_PRELIM)
-               memctl->or1 = CFG_OR1_PRELIM;
-               memctl->br1 = CFG_BR1_PRELIM;
+#if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
+               memctl->or1 = CONFIG_SYS_OR1_PRELIM;
+               memctl->br1 = CONFIG_SYS_BR1_PRELIM;
 #endif
        }
 
-#if defined(CFG_BR2_PRELIM) && defined(CFG_OR2_PRELIM)
-       memctl->or2 = CFG_OR2_PRELIM;
-       memctl->br2 = CFG_BR2_PRELIM;
+#if defined(CONFIG_SYS_BR2_PRELIM) && defined(CONFIG_SYS_OR2_PRELIM)
+       memctl->or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->br2 = CONFIG_SYS_BR2_PRELIM;
 #endif
 
-#if defined(CFG_BR3_PRELIM) && defined(CFG_OR3_PRELIM)
-       memctl->or3 = CFG_OR3_PRELIM;
-       memctl->br3 = CFG_BR3_PRELIM;
+#if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
+       memctl->or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->br3 = CONFIG_SYS_BR3_PRELIM;
 #endif
 
-#if defined(CFG_BR4_PRELIM) && defined(CFG_OR4_PRELIM)
-       memctl->or4 = CFG_OR4_PRELIM;
-       memctl->br4 = CFG_BR4_PRELIM;
+#if defined(CONFIG_SYS_BR4_PRELIM) && defined(CONFIG_SYS_OR4_PRELIM)
+       memctl->or4 = CONFIG_SYS_OR4_PRELIM;
+       memctl->br4 = CONFIG_SYS_BR4_PRELIM;
 #endif
 
-#if defined(CFG_BR5_PRELIM) && defined(CFG_OR5_PRELIM)
-       memctl->or5 = CFG_OR5_PRELIM;
-       memctl->br5 = CFG_BR5_PRELIM;
+#if defined(CONFIG_SYS_BR5_PRELIM) && defined(CONFIG_SYS_OR5_PRELIM)
+       memctl->or5 = CONFIG_SYS_OR5_PRELIM;
+       memctl->br5 = CONFIG_SYS_BR5_PRELIM;
 #endif
 
-#if defined(CFG_BR6_PRELIM) && defined(CFG_OR6_PRELIM)
-       memctl->or6 = CFG_OR6_PRELIM;
-       memctl->br6 = CFG_BR6_PRELIM;
+#if defined(CONFIG_SYS_BR6_PRELIM) && defined(CONFIG_SYS_OR6_PRELIM)
+       memctl->or6 = CONFIG_SYS_OR6_PRELIM;
+       memctl->br6 = CONFIG_SYS_BR6_PRELIM;
 #endif
 
-#if defined(CFG_BR7_PRELIM) && defined(CFG_OR7_PRELIM)
-       memctl->or7 = CFG_OR7_PRELIM;
-       memctl->br7 = CFG_BR7_PRELIM;
+#if defined(CONFIG_SYS_BR7_PRELIM) && defined(CONFIG_SYS_OR7_PRELIM)
+       memctl->or7 = CONFIG_SYS_OR7_PRELIM;
+       memctl->br7 = CONFIG_SYS_BR7_PRELIM;
 #endif
 
 #if defined(CONFIG_CPM2)
@@ -264,7 +264,7 @@ int cpu_init_r(void)
        puts ("L2:    ");
 
 #if defined(CONFIG_L2_CACHE)
-       volatile ccsr_l2cache_t *l2cache = (void *)CFG_MPC85xx_L2_ADDR;
+       volatile ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR;
        volatile uint cache_ctl;
        uint svr, ver;
        uint l2srbar;
@@ -317,13 +317,13 @@ int cpu_init_r(void)
        if (l2cache->l2ctl & 0x80000000) {
                puts("already enabled");
                l2srbar = l2cache->l2srbar0;
-#ifdef CFG_INIT_L2_ADDR
-               if (l2cache->l2ctl & 0x00010000 && l2srbar >= CFG_FLASH_BASE) {
-                       l2srbar = CFG_INIT_L2_ADDR;
+#ifdef CONFIG_SYS_INIT_L2_ADDR
+               if (l2cache->l2ctl & 0x00010000 && l2srbar >= CONFIG_SYS_FLASH_BASE) {
+                       l2srbar = CONFIG_SYS_INIT_L2_ADDR;
                        l2cache->l2srbar0 = l2srbar;
-                       printf("moving to 0x%08x", CFG_INIT_L2_ADDR);
+                       printf("moving to 0x%08x", CONFIG_SYS_INIT_L2_ADDR);
                }
-#endif /* CFG_INIT_L2_ADDR */
+#endif /* CONFIG_SYS_INIT_L2_ADDR */
                puts("\n");
        } else {
                asm("msync;isync");
@@ -335,7 +335,7 @@ int cpu_init_r(void)
        puts("disabled\n");
 #endif
 #ifdef CONFIG_QE
-       uint qe_base = CFG_IMMR + 0x00080000; /* QE immr base */
+       uint qe_base = CONFIG_SYS_IMMR + 0x00080000; /* QE immr base */
        qe_init(qe_base);
        qe_reset();
 #endif
index 2c11ee4d0f6d57df84b4fb8d08fd3a089eb22374..e24c9afaf599eb51021059031a43bf311745277d 100644 (file)
@@ -18,7 +18,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
                             unsigned int ctrl_num)
 {
        unsigned int i;
-       volatile ccsr_ddr_t *ddr = (void *)CFG_MPC85xx_DDR_ADDR;
+       volatile ccsr_ddr_t *ddr = (void *)CONFIG_SYS_MPC85xx_DDR_ADDR;
 
        if (ctrl_num != 0) {
                printf("%s unexpected ctrl_num = %u\n", __FUNCTION__, ctrl_num);
@@ -79,7 +79,7 @@ ddr_enable_ecc(unsigned int dram_size)
 {
        uint *p = 0;
        uint i = 0;
-       volatile ccsr_ddr_t *ddr= (void *)(CFG_MPC85xx_DDR_ADDR);
+       volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
 
        dma_init();
 
index 130090c2142654714ec5784748b213b89f186fc0..655f99c028ea70536d109630f2cb03652481e90e 100644 (file)
@@ -18,7 +18,7 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
                             unsigned int ctrl_num)
 {
        unsigned int i;
-       volatile ccsr_ddr_t *ddr = (void *)CFG_MPC85xx_DDR_ADDR;
+       volatile ccsr_ddr_t *ddr = (void *)CONFIG_SYS_MPC85xx_DDR_ADDR;
 
        if (ctrl_num) {
                printf("%s unexpected ctrl_num = %u\n", __FUNCTION__, ctrl_num);
index d7cc9db4e6b04fc509932a0530a2bf546b202929..e0654bb3f8316e95809eac42aaecd6fc5ac2f74e 100644 (file)
@@ -22,10 +22,10 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
 
        switch (ctrl_num) {
        case 0:
-               ddr = (void *)CFG_MPC85xx_DDR_ADDR;
+               ddr = (void *)CONFIG_SYS_MPC85xx_DDR_ADDR;
                break;
        case 1:
-               ddr = (void *)CFG_MPC85xx_DDR2_ADDR;
+               ddr = (void *)CONFIG_SYS_MPC85xx_DDR2_ADDR;
                break;
        default:
                printf("%s unexpected ctrl_num = %u\n", __FUNCTION__, ctrl_num);
index bd62aab9f34b9567c43b65e986bc4d1339b09c4a..32ad46956ede56a43b1fd23d4b2f6791aab096c3 100644 (file)
@@ -74,8 +74,8 @@ static struct ether_fcc_info_s
        PROFF_FCC1,
        CPM_CR_FCC1_SBLOCK,
        CPM_CR_FCC1_PAGE,
-       CFG_CMXFCR_MASK1,
-       CFG_CMXFCR_VALUE1
+       CONFIG_SYS_CMXFCR_MASK1,
+       CONFIG_SYS_CMXFCR_VALUE1
 },
 #endif
 
@@ -85,8 +85,8 @@ static struct ether_fcc_info_s
        PROFF_FCC2,
        CPM_CR_FCC2_SBLOCK,
        CPM_CR_FCC2_PAGE,
-       CFG_CMXFCR_MASK2,
-       CFG_CMXFCR_VALUE2
+       CONFIG_SYS_CMXFCR_MASK2,
+       CONFIG_SYS_CMXFCR_VALUE2
 },
 #endif
 
@@ -96,8 +96,8 @@ static struct ether_fcc_info_s
        PROFF_FCC3,
        CPM_CR_FCC3_SBLOCK,
        CPM_CR_FCC3_PAGE,
-       CFG_CMXFCR_MASK3,
-       CFG_CMXFCR_VALUE3
+       CONFIG_SYS_CMXFCR_MASK3,
+       CONFIG_SYS_CMXFCR_VALUE3
 },
 #endif
 };
@@ -230,7 +230,7 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
 {
     struct ether_fcc_info_s * info = dev->priv;
     int i;
-    volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+    volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
     volatile ccsr_cpm_cp_t *cp = &(cpm->im_cpm_cp);
     fcc_enet_t *pram_ptr;
     unsigned long mem_addr;
@@ -257,11 +257,11 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
 
     /* 28.9 - (5): FPSMR: enable full duplex, select CCITT CRC for Ethernet,MII */
     if(info->ether_index == 0) {
-       cpm->im_cpm_fcc1.fpsmr = CFG_FCC_PSMR | FCC_PSMR_ENCRC;
+       cpm->im_cpm_fcc1.fpsmr = CONFIG_SYS_FCC_PSMR | FCC_PSMR_ENCRC;
     } else if (info->ether_index == 1){
-       cpm->im_cpm_fcc2.fpsmr = CFG_FCC_PSMR | FCC_PSMR_ENCRC;
+       cpm->im_cpm_fcc2.fpsmr = CONFIG_SYS_FCC_PSMR | FCC_PSMR_ENCRC;
     } else if (info->ether_index == 2){
-       cpm->im_cpm_fcc3.fpsmr = CFG_FCC_PSMR | FCC_PSMR_ENCRC;
+       cpm->im_cpm_fcc3.fpsmr = CONFIG_SYS_FCC_PSMR | FCC_PSMR_ENCRC;
     }
 
     /* 28.9 - (6): FDSR: Ethernet Syn */
@@ -321,14 +321,14 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
     pram_ptr->fen_genfcc.fcc_mrblr = PKT_MAXBLR_SIZE; /* 1536 */
     /* localbus SDRAM should be preferred */
     pram_ptr->fen_genfcc.fcc_rstate = (CPMFCR_GBL | CPMFCR_EB |
-                                      CFG_CPMFCR_RAMTYPE) << 24;
+                                      CONFIG_SYS_CPMFCR_RAMTYPE) << 24;
     pram_ptr->fen_genfcc.fcc_rbase = (unsigned int)(&rtx.rxbd[rxIdx]);
     pram_ptr->fen_genfcc.fcc_rbdstat = 0;
     pram_ptr->fen_genfcc.fcc_rbdlen = 0;
     pram_ptr->fen_genfcc.fcc_rdptr = 0;
     /* localbus SDRAM should be preferred */
     pram_ptr->fen_genfcc.fcc_tstate = (CPMFCR_GBL | CPMFCR_EB |
-                                      CFG_CPMFCR_RAMTYPE) << 24;
+                                      CONFIG_SYS_CPMFCR_RAMTYPE) << 24;
     pram_ptr->fen_genfcc.fcc_tbase = (unsigned int)(&rtx.txbd[txIdx]);
     pram_ptr->fen_genfcc.fcc_tbdstat = 0;
     pram_ptr->fen_genfcc.fcc_tbdlen = 0;
@@ -426,7 +426,7 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
 static void fec_halt(struct eth_device* dev)
 {
     struct ether_fcc_info_s * info = dev->priv;
-    volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+    volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
 
     /* write GFMR: disable tx/rx */
     if(info->ether_index == 0) {
index 037a60fba9a4944e6c3418e619b56884927c8aff..3c8fbd8364521364caa040e1798d955015d81124 100644 (file)
@@ -83,7 +83,7 @@ void ft_fixup_cpu(void *blob, u64 memory_limit)
 /* return size in kilobytes */
 static inline u32 l2cache_size(void)
 {
-       volatile ccsr_l2cache_t *l2cache = (void *)CFG_MPC85xx_L2_ADDR;
+       volatile ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR;
        volatile u32 l2siz_field = (l2cache->l2ctl >> 28) & 0x3;
        u32 ver = SVR_SOC_VER(get_svr());
 
@@ -224,9 +224,9 @@ void ft_cpu_setup(void *blob, bd_t *bd)
        ft_qe_setup(blob);
 #endif
 
-#ifdef CFG_NS16550
+#ifdef CONFIG_SYS_NS16550
        do_fixup_by_compat_u32(blob, "ns16550",
-               "clock-frequency", CFG_NS16550_CLK, 1);
+               "clock-frequency", CONFIG_SYS_NS16550_CLK, 1);
 #endif
 
 #ifdef CONFIG_CPM2
index d702ca6e4c2bcf1d7023130bf2b8981e77cc48a2..4ef83950d11a34fc196886e53acf9ff89919a3c7 100644 (file)
 
 int interrupt_init_cpu(unsigned long *decrementer_count)
 {
-       volatile ccsr_pic_t *pic = (void *)(CFG_MPC85xx_PIC_ADDR);
+       volatile ccsr_pic_t *pic = (void *)(CONFIG_SYS_MPC85xx_PIC_ADDR);
 
        pic->gcr = MPC85xx_PICGCR_RST;
        while (pic->gcr & MPC85xx_PICGCR_RST)
                ;
        pic->gcr = MPC85xx_PICGCR_M;
 
-       *decrementer_count = get_tbclk() / CFG_HZ;
+       *decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
 
        /* PIE is same as DIE, dec interrupt enable */
        mtspr(SPRN_TCR, TCR_PIE);
index 4e09c9c258bb5214f0a9399d02c420db869d889c..3338c1aa7165d158880f46e540d24e5a77b033bd 100644 (file)
@@ -36,7 +36,7 @@ u32 get_my_id()
 
 int cpu_reset(int nr)
 {
-       volatile ccsr_pic_t *pic = (void *)(CFG_MPC85xx_PIC_ADDR);
+       volatile ccsr_pic_t *pic = (void *)(CONFIG_SYS_MPC85xx_PIC_ADDR);
        out_be32(&pic->pir, 1 << nr);
        (void)in_be32(&pic->pir);
        out_be32(&pic->pir, 0x0);
@@ -87,7 +87,7 @@ int cpu_release(int nr, int argc, char *argv[])
                return 1;
        }
 
-#ifdef CFG_64BIT_STRTOUL
+#ifdef CONFIG_SYS_64BIT_STRTOUL
        boot_addr = simple_strtoull(argv[0], NULL, 16);
 #else
        boot_addr = simple_strtoul(argv[0], NULL, 16);
@@ -129,9 +129,9 @@ static void pq3_mp_up(unsigned long bootpg)
        u32 up, cpu_up_mask, whoami;
        u32 *table = (u32 *)get_spin_addr();
        volatile u32 bpcr;
-       volatile ccsr_local_ecm_t *ecm = (void *)(CFG_MPC85xx_ECM_ADDR);
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       volatile ccsr_pic_t *pic = (void *)(CFG_MPC85xx_PIC_ADDR);
+       volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       volatile ccsr_pic_t *pic = (void *)(CONFIG_SYS_MPC85xx_PIC_ADDR);
        u32 devdisr;
        int timeout = 10;
 
index ae091e6ad0e3e5d9e29afaa81623855970738772..d9ac466218e3c5e46d2b313156d41f9782f62003 100644 (file)
@@ -54,8 +54,8 @@
 
 void fsl_serdes_init(void)
 {
-       void *guts = (void *)(CFG_MPC85xx_GUTS_ADDR);
-       void *sd = (void *)CFG_MPC85xx_SERDES2_ADDR;
+       void *guts = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+       void *sd = (void *)CONFIG_SYS_MPC85xx_SERDES2_ADDR;
        u32 pordevsr = in_be32(guts + GUTS_PORDEVSR_OFFS);
        u32 srds2_io_sel;
        u32 tmp;
index fdc4c83b7834ed8cd8bbc2e04f15fd7f5be8e77a..112f18c2b8b261e69bbc2c3d31bf2e6a7c72f0c4 100644 (file)
@@ -39,11 +39,11 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
        u16 reg16;
        u32 dev;
 
-       volatile ccsr_pcix_t *pcix = (void *)(CFG_MPC85xx_PCIX_ADDR);
+       volatile ccsr_pcix_t *pcix = (void *)(CONFIG_SYS_MPC85xx_PCIX_ADDR);
 #ifdef CONFIG_MPC85XX_PCI2
-       volatile ccsr_pcix_t *pcix2 = (void *)(CFG_MPC85xx_PCIX2_ADDR);
+       volatile ccsr_pcix_t *pcix2 = (void *)(CONFIG_SYS_MPC85xx_PCIX2_ADDR);
 #endif
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        struct pci_controller * hose;
 
        pci_hose = board_hose;
@@ -54,8 +54,8 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
        hose->last_busno = 0xff;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR+0x8000),
-                          (CFG_IMMR+0x8004));
+                          (CONFIG_SYS_IMMR+0x8000),
+                          (CONFIG_SYS_IMMR+0x8004));
 
        /*
         * Hose scan.
@@ -80,19 +80,19 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
                pci_hose_write_config_word(hose, dev, PCIX_COMMAND, reg16);
        }
 
-       pcix->potar1   = (CFG_PCI1_MEM_BASE >> 12) & 0x000fffff;
+       pcix->potar1   = (CONFIG_SYS_PCI1_MEM_BASE >> 12) & 0x000fffff;
        pcix->potear1  = 0x00000000;
-       pcix->powbar1  = (CFG_PCI1_MEM_PHYS >> 12) & 0x000fffff;
+       pcix->powbar1  = (CONFIG_SYS_PCI1_MEM_PHYS >> 12) & 0x000fffff;
        pcix->powbear1 = 0x00000000;
        pcix->powar1 = (POWAR_EN | POWAR_MEM_READ |
-                       POWAR_MEM_WRITE | (__ilog2(CFG_PCI1_MEM_SIZE) - 1));
+                       POWAR_MEM_WRITE | (__ilog2(CONFIG_SYS_PCI1_MEM_SIZE) - 1));
 
-       pcix->potar2  = (CFG_PCI1_IO_BASE >> 12) & 0x000fffff;
+       pcix->potar2  = (CONFIG_SYS_PCI1_IO_BASE >> 12) & 0x000fffff;
        pcix->potear2  = 0x00000000;
-       pcix->powbar2  = (CFG_PCI1_IO_PHYS >> 12) & 0x000fffff;
+       pcix->powbar2  = (CONFIG_SYS_PCI1_IO_PHYS >> 12) & 0x000fffff;
        pcix->powbear2 = 0x00000000;
        pcix->powar2 = (POWAR_EN | POWAR_IO_READ |
-                       POWAR_IO_WRITE | (__ilog2(CFG_PCI1_IO_SIZE) - 1));
+                       POWAR_IO_WRITE | (__ilog2(CONFIG_SYS_PCI1_IO_SIZE) - 1));
 
        pcix->pitar1 = 0x00000000;
        pcix->piwbar1 = 0x00000000;
@@ -105,15 +105,15 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
        pcix->piwar3 = 0;
 
        pci_set_region(hose->regions + 0,
-                      CFG_PCI1_MEM_BASE,
-                      CFG_PCI1_MEM_PHYS,
-                      CFG_PCI1_MEM_SIZE,
+                      CONFIG_SYS_PCI1_MEM_BASE,
+                      CONFIG_SYS_PCI1_MEM_PHYS,
+                      CONFIG_SYS_PCI1_MEM_SIZE,
                       PCI_REGION_MEM);
 
        pci_set_region(hose->regions + 1,
-                      CFG_PCI1_IO_BASE,
-                      CFG_PCI1_IO_PHYS,
-                      CFG_PCI1_IO_SIZE,
+                      CONFIG_SYS_PCI1_IO_BASE,
+                      CONFIG_SYS_PCI1_IO_PHYS,
+                      CONFIG_SYS_PCI1_IO_SIZE,
                       PCI_REGION_IO);
 
        hose->region_count = 2;
@@ -152,8 +152,8 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
        hose->last_busno = 0xff;
 
        pci_setup_indirect(hose,
-                          (CFG_IMMR+0x9000),
-                          (CFG_IMMR+0x9004));
+                          (CONFIG_SYS_IMMR+0x9000),
+                          (CONFIG_SYS_IMMR+0x9004));
 
        dev = PCI_BDF(hose->first_busno, 0, 0);
        pci_hose_read_config_word (hose, dev, PCI_COMMAND, &reg16);
@@ -165,19 +165,19 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
         */
        pci_hose_write_config_word(hose, dev, PCI_STATUS, 0xffff);
 
-       pcix2->potar1   = (CFG_PCI2_MEM_BASE >> 12) & 0x000fffff;
+       pcix2->potar1   = (CONFIG_SYS_PCI2_MEM_BASE >> 12) & 0x000fffff;
        pcix2->potear1  = 0x00000000;
-       pcix2->powbar1  = (CFG_PCI2_MEM_PHYS >> 12) & 0x000fffff;
+       pcix2->powbar1  = (CONFIG_SYS_PCI2_MEM_PHYS >> 12) & 0x000fffff;
        pcix2->powbear1 = 0x00000000;
        pcix2->powar1 = (POWAR_EN | POWAR_MEM_READ |
-                       POWAR_MEM_WRITE | (__ilog2(CFG_PCI2_MEM_SIZE) - 1));
+                       POWAR_MEM_WRITE | (__ilog2(CONFIG_SYS_PCI2_MEM_SIZE) - 1));
 
-       pcix2->potar2  = (CFG_PCI2_IO_BASE >> 12) & 0x000fffff;
+       pcix2->potar2  = (CONFIG_SYS_PCI2_IO_BASE >> 12) & 0x000fffff;
        pcix2->potear2  = 0x00000000;
-       pcix2->powbar2  = (CFG_PCI2_IO_PHYS >> 12) & 0x000fffff;
+       pcix2->powbar2  = (CONFIG_SYS_PCI2_IO_PHYS >> 12) & 0x000fffff;
        pcix2->powbear2 = 0x00000000;
        pcix2->powar2 = (POWAR_EN | POWAR_IO_READ |
-                       POWAR_IO_WRITE | (__ilog2(CFG_PCI2_IO_SIZE) - 1));
+                       POWAR_IO_WRITE | (__ilog2(CONFIG_SYS_PCI2_IO_SIZE) - 1));
 
        pcix2->pitar1 = 0x00000000;
        pcix2->piwbar1 = 0x00000000;
@@ -190,15 +190,15 @@ pci_mpc85xx_init(struct pci_controller *board_hose)
        pcix2->piwar3 = 0;
 
        pci_set_region(hose->regions + 0,
-                      CFG_PCI2_MEM_BASE,
-                      CFG_PCI2_MEM_PHYS,
-                      CFG_PCI2_MEM_SIZE,
+                      CONFIG_SYS_PCI2_MEM_BASE,
+                      CONFIG_SYS_PCI2_MEM_PHYS,
+                      CONFIG_SYS_PCI2_MEM_SIZE,
                       PCI_REGION_MEM);
 
        pci_set_region(hose->regions + 1,
-                      CFG_PCI2_IO_BASE,
-                      CFG_PCI2_IO_PHYS,
-                      CFG_PCI2_IO_SIZE,
+                      CONFIG_SYS_PCI2_IO_BASE,
+                      CONFIG_SYS_PCI2_IO_PHYS,
+                      CONFIG_SYS_PCI2_IO_SIZE,
                       PCI_REGION_IO);
 
        hose->region_count = 2;
index 21ea38b7a698a52b9313533b2c895adf191cab69..72a29b7b5acf005ffb0e51e9b974f9e668417eb8 100644 (file)
@@ -34,7 +34,7 @@ void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
        u32                     pin_2bit_assign;
        u32                     pin_1bit_mask;
        u32                     tmp_val;
-       volatile ccsr_gur_t     *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t     *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        volatile par_io_t       *par_io = (volatile par_io_t *)
                                                &(gur->qe_par_io);
 
index 7ee3cc8234c8781ba790a08eaa853d7fcb3967f6..05fb80875d8b7b54011da00c4cb2d92d162bd61a 100644 (file)
@@ -88,7 +88,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int serial_init (void)
 {
-       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        volatile ccsr_cpm_scc_t *sp;
        volatile scc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -201,7 +201,7 @@ serial_putc(const char c)
 {
        volatile scc_uart_t     *up;
        volatile cbd_t          *tbdf;
-       volatile ccsr_cpm_t     *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t     *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
 
        if (c == '\n')
                serial_putc ('\r');
@@ -234,7 +234,7 @@ serial_getc(void)
 {
        volatile cbd_t          *rbdf;
        volatile scc_uart_t     *up;
-       volatile ccsr_cpm_t     *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t     *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        unsigned char           c;
 
        up = (scc_uart_t *)&(cpm->im_dprambase[PROFF_SCC]);
@@ -258,7 +258,7 @@ serial_tstc()
 {
        volatile cbd_t          *rbdf;
        volatile scc_uart_t     *up;
-       volatile ccsr_cpm_t     *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t     *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
 
        up = (scc_uart_t *)&(cpm->im_dprambase[PROFF_SCC]);
        rbdf = (cbd_t *)&(cpm->im_dprambase[up->scc_genscc.scc_rbase]);
index 70dfad0321ee73aa86d55a541fb752e9efdc9786..d9f9a8c38a7201d66c328923e2dad0533f94e40f 100644 (file)
@@ -35,7 +35,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void get_sys_info (sys_info_t * sysInfo)
 {
-       volatile ccsr_gur_t *gur = (void *)(CFG_MPC85xx_GUTS_ADDR);
+       volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
        uint plat_ratio,e500_ratio,half_freqSystemBus;
 
        plat_ratio = (gur->porpllsr) & 0x0000003e;
@@ -67,10 +67,10 @@ int get_clocks (void)
 {
        sys_info_t sys_info;
 #ifdef CONFIG_MPC8544
-       volatile ccsr_gur_t *gur = (void *) CFG_MPC85xx_GUTS_ADDR;
+       volatile ccsr_gur_t *gur = (void *) CONFIG_SYS_MPC85xx_GUTS_ADDR;
 #endif
 #if defined(CONFIG_CPM2)
-       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CFG_MPC85xx_CPM_ADDR;
+       volatile ccsr_cpm_t *cpm = (ccsr_cpm_t *)CONFIG_SYS_MPC85xx_CPM_ADDR;
        uint sccr, dfbrg;
 
        /* set VCO = 4 * BRG */
index 10fe93629c3badfec8d7c3189e47faac7da122ec..25d039056e8e7b2cc99e8b5843bcba2c767435ce 100644 (file)
@@ -172,12 +172,12 @@ _start_e500:
        mtspr   BUCSR,r0
 #endif
 
-#if defined(CFG_INIT_DBCR)
+#if defined(CONFIG_SYS_INIT_DBCR)
        lis     r1,0xffff
        ori     r1,r1,0xffff
        mtspr   DBSR,r1                 /* Clear all status bits */
-       lis     r0,CFG_INIT_DBCR@h      /* DBCR0[IDM] must be set */
-       ori     r0,r0,CFG_INIT_DBCR@l
+       lis     r0,CONFIG_SYS_INIT_DBCR@h       /* DBCR0[IDM] must be set */
+       ori     r0,r0,CONFIG_SYS_INIT_DBCR@l
        mtspr   DBCR0,r0
 #endif
 
@@ -210,11 +210,11 @@ _start_e500:
        lis     r7,FSL_BOOKE_MAS1(1, 1, 0, 1, BOOKE_PAGESZ_16K)@h
        ori     r7,r7,FSL_BOOKE_MAS1(1, 1, 0, 1, BOOKE_PAGESZ_16K)@l
 
-       lis     r8,FSL_BOOKE_MAS2(CFG_INIT_RAM_ADDR, 0)@h
-       ori     r8,r8,FSL_BOOKE_MAS2(CFG_INIT_RAM_ADDR, 0)@l
+       lis     r8,FSL_BOOKE_MAS2(CONFIG_SYS_INIT_RAM_ADDR, 0)@h
+       ori     r8,r8,FSL_BOOKE_MAS2(CONFIG_SYS_INIT_RAM_ADDR, 0)@l
 
-       lis     r9,FSL_BOOKE_MAS3(CFG_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@h
-       ori     r9,r9,FSL_BOOKE_MAS3(CFG_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@l
+       lis     r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@h
+       ori     r9,r9,FSL_BOOKE_MAS3(CONFIG_SYS_INIT_RAM_ADDR, 0, (MAS3_SX|MAS3_SW|MAS3_SR))@l
 
        mtspr   MAS0,r6
        mtspr   MAS1,r7
@@ -238,8 +238,8 @@ switch_as:
 
        /* Allocate Initial RAM in data cache.
         */
-       lis     r3,CFG_INIT_RAM_ADDR@h
-       ori     r3,r3,CFG_INIT_RAM_ADDR@l
+       lis     r3,CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3,r3,CONFIG_SYS_INIT_RAM_ADDR@l
        mfspr   r2, L1CFG0
        andi.   r2, r2, 0x1ff
        /* cache size * 1024 / (2 * L1 line size) */
@@ -249,17 +249,17 @@ switch_as:
 1:
        dcbz    r0,r3
        dcbtls  0,r0,r3
-       addi    r3,r3,CFG_CACHELINE_SIZE
+       addi    r3,r3,CONFIG_SYS_CACHELINE_SIZE
        bdnz    1b
 
        /* Jump out the last 4K page and continue to 'normal' start */
-#ifdef CFG_RAMBOOT
+#ifdef CONFIG_SYS_RAMBOOT
        b       _start_cont
 #else
        /* Calculate absolute address in FLASH and jump there           */
        /*--------------------------------------------------------------*/
-       lis     r3,CFG_MONITOR_BASE@h
-       ori     r3,r3,CFG_MONITOR_BASE@l
+       lis     r3,CONFIG_SYS_MONITOR_BASE@h
+       ori     r3,r3,CONFIG_SYS_MONITOR_BASE@l
        addi    r3,r3,_start_cont - _start + _START_OFFSET
        mtlr    r3
        blr
@@ -279,8 +279,8 @@ version_string:
        .globl  _start_cont
 _start_cont:
        /* Setup the stack in initial RAM,could be L2-as-SRAM or L1 dcache*/
-       lis     r1,CFG_INIT_RAM_ADDR@h
-       ori     r1,r1,CFG_INIT_SP_OFFSET@l
+       lis     r1,CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r1,r1,CONFIG_SYS_INIT_SP_OFFSET@l
 
        li      r0,0
        stwu    r0,-4(r1)
@@ -778,16 +778,16 @@ relocate_code:
        mr      r10,r5          /* Save copy of Destination Address     */
 
        mr      r3,r5                           /* Destination Address  */
-       lis     r4,CFG_MONITOR_BASE@h           /* Source      Address  */
-       ori     r4,r4,CFG_MONITOR_BASE@l
+       lis     r4,CONFIG_SYS_MONITOR_BASE@h            /* Source      Address  */
+       ori     r4,r4,CONFIG_SYS_MONITOR_BASE@l
        lwz     r5,GOT(__init_end)
        sub     r5,r5,r4
-       li      r6,CFG_CACHELINE_SIZE           /* Cache Line Size      */
+       li      r6,CONFIG_SYS_CACHELINE_SIZE            /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
@@ -996,20 +996,20 @@ trap_reloc:
 .globl unlock_ram_in_cache
 unlock_ram_in_cache:
        /* invalidate the INIT_RAM section */
-       lis     r3,(CFG_INIT_RAM_ADDR & ~31)@h
-       ori     r3,r3,(CFG_INIT_RAM_ADDR & ~31)@l
+       lis     r3,(CONFIG_SYS_INIT_RAM_ADDR & ~31)@h
+       ori     r3,r3,(CONFIG_SYS_INIT_RAM_ADDR & ~31)@l
        mfspr   r4,L1CFG0
        andi.   r4,r4,0x1ff
        slwi    r4,r4,(10 - 1 - L1_CACHE_SHIFT)
        mtctr   r4
 1:     dcbi    r0,r3
-       addi    r3,r3,CFG_CACHELINE_SIZE
+       addi    r3,r3,CONFIG_SYS_CACHELINE_SIZE
        bdnz    1b
        sync
 
        /* Invalidate the TLB entries for the cache */
-       lis     r3,CFG_INIT_RAM_ADDR@h
-       ori     r3,r3,CFG_INIT_RAM_ADDR@l
+       lis     r3,CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3,r3,CONFIG_SYS_INIT_RAM_ADDR@l
        tlbivax 0,r3
        addi    r3,r3,0x1000
        tlbivax 0,r3
index 7ce7a14b849eb02495632661124e2010186d6da0..a2d16ae2fa1017470c91363ea43b2fe7618a074a 100644 (file)
@@ -138,7 +138,7 @@ unsigned int setup_ddr_tlbs(unsigned int memsize_in_meg)
         * Starting at TLB1 8, use no more than 8 TLB1 entries.
         */
        ram_tlb_index = 8;
-       ram_tlb_address = (unsigned int)CFG_DDR_SDRAM_BASE;
+       ram_tlb_address = (unsigned int)CONFIG_SYS_DDR_SDRAM_BASE;
        while (ram_tlb_address < (memsize_in_meg * 1024 * 1024)
              && ram_tlb_index < 16) {
                set_tlb(1, ram_tlb_address, ram_tlb_address,
index 0eab69448c1b67dc6ee6117fabcccfe55e93a690..1045cc1e7d08f4aec72a9f2c9df026fb15318f57 100644 (file)
@@ -290,7 +290,7 @@ UnknownException(struct pt_regs *regs)
 void
 ExtIntException(struct pt_regs *regs)
 {
-       volatile ccsr_pic_t *pic = (void *)(CFG_MPC85xx_PIC_ADDR);
+       volatile ccsr_pic_t *pic = (void *)(CONFIG_SYS_MPC85xx_PIC_ADDR);
 
        uint vect;
 
index dd38806c0b869458a0e43c99e00371e920978f8e..0bb058b043f30a8183397a03053bb79efbf49503 100644 (file)
@@ -279,7 +279,7 @@ _GLOBAL(dcache_enable)
        mtspr   HID0, r5                /* enable + invalidate */
        mtspr   HID0, r3                /* enable */
        sync
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        mflr    r5
        bl      l2cache_enable          /* uses r3 and r4 */
        sync
@@ -305,7 +305,7 @@ _GLOBAL(dcache_disable)
        andc    r3, r3, r5              /* no enable, no invalidate */
        mtspr   HID0, r3
        sync
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        bl      l2cache_disable_no_flush /* uses r3 */
 #endif
        mtlr    r4                      /* restore link register */
index 3a75af77cf64ca1f4014001d835b3702b5095541..4cace984d91743e3fd2d45cf2ed9ad7d2aefbb76 100644 (file)
@@ -41,7 +41,7 @@ checkcpu(void)
        uint major, minor;
        uint lcrr;              /* local bus clock ratio register */
        uint clkdiv;            /* clock divider portion of lcrr */
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
 
        puts("Freescale PowerPC\n");
@@ -100,11 +100,11 @@ checkcpu(void)
        printf("MPX:%4lu MHz, ", sysinfo.freqSystemBus / 1000000);
        printf("DDR:%4lu MHz, ", sysinfo.freqSystemBus / 2000000);
 
-#if defined(CFG_LBC_LCRR)
-       lcrr = CFG_LBC_LCRR;
+#if defined(CONFIG_SYS_LBC_LCRR)
+       lcrr = CONFIG_SYS_LBC_LCRR;
 #else
        {
-               volatile immap_t *immap = (immap_t *) CFG_IMMR;
+               volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
                volatile ccsr_lbc_t *lbc = &immap->im_lbc;
 
                lcrr = lbc->lcrr;
@@ -161,16 +161,16 @@ do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
 #if !defined(CONFIG_MPC8641HPCN) && !defined(CONFIG_MPC8610HPCD)
 
-#ifdef CFG_RESET_ADDRESS
-       ulong addr = CFG_RESET_ADDRESS;
+#ifdef CONFIG_SYS_RESET_ADDRESS
+       ulong addr = CONFIG_SYS_RESET_ADDRESS;
 #else
        /*
-        * note: when CFG_MONITOR_BASE points to a RAM address,
-        * CFG_MONITOR_BASE - sizeof (ulong) is usually a valid
+        * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address,
+        * CONFIG_SYS_MONITOR_BASE - sizeof (ulong) is usually a valid
         * address. Better pick an address known to be invalid on your
-        * system and assign it to CFG_RESET_ADDRESS.
+        * system and assign it to CONFIG_SYS_RESET_ADDRESS.
         */
-       ulong addr = CFG_MONITOR_BASE - sizeof(ulong);
+       ulong addr = CONFIG_SYS_MONITOR_BASE - sizeof(ulong);
 #endif
 
        /* flush and disable I/D cache */
@@ -219,7 +219,7 @@ watchdog_reset(void)
        /*
         * This actually feed the hard enabled watchdog.
         */
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_wdt_t *wdt = &immap->im_wdt;
        volatile ccsr_gur_t *gur = &immap->im_gur;
        u32 tmp = gur->pordevsr;
@@ -237,7 +237,7 @@ watchdog_reset(void)
 void
 dma_init(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ccsr_dma_t *dma = &immap->im_dma;
 
        dma->satr0 = 0x00040000;
@@ -248,7 +248,7 @@ dma_init(void)
 uint
 dma_check(void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ccsr_dma_t *dma = &immap->im_dma;
        volatile uint status = dma->sr0;
 
@@ -266,7 +266,7 @@ dma_check(void)
 int
 dma_xfer(void *dest, uint count, void *src)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ccsr_dma_t *dma = &immap->im_dma;
 
        dma->dar0 = (uint) dest;
@@ -288,7 +288,7 @@ dma_xfer(void *dest, uint count, void *src)
  */
 void mpc86xx_reginfo(void)
 {
-       immap_t *immap = (immap_t *)CFG_IMMR;
+       immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        ccsr_lbc_t *lbc = &immap->im_lbc;
 
        print_bats();
index 1fda3fe805226ffce838f355bff9c4e2148df024..4ab88f0b0a8a4158146f76b04d27f30a5fd9ae46 100644 (file)
@@ -43,11 +43,11 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void cpu_init_f(void)
 {
-       volatile immap_t    *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t    *immap = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_lbc_t *memctl = &immap->im_lbc;
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset ((void *) gd, 0, sizeof (gd_t));
@@ -61,52 +61,52 @@ void cpu_init_f(void)
         * has been determined
         */
 
-#if defined(CFG_OR0_REMAP)
-       memctl->or0 = CFG_OR0_REMAP;
+#if defined(CONFIG_SYS_OR0_REMAP)
+       memctl->or0 = CONFIG_SYS_OR0_REMAP;
 #endif
-#if defined(CFG_OR1_REMAP)
-       memctl->or1 = CFG_OR1_REMAP;
+#if defined(CONFIG_SYS_OR1_REMAP)
+       memctl->or1 = CONFIG_SYS_OR1_REMAP;
 #endif
 
        /* now restrict to preliminary range */
-#if defined(CFG_BR0_PRELIM) && defined(CFG_OR0_PRELIM)
-       memctl->br0 = CFG_BR0_PRELIM;
-       memctl->or0 = CFG_OR0_PRELIM;
+#if defined(CONFIG_SYS_BR0_PRELIM) && defined(CONFIG_SYS_OR0_PRELIM)
+       memctl->br0 = CONFIG_SYS_BR0_PRELIM;
+       memctl->or0 = CONFIG_SYS_OR0_PRELIM;
 #endif
 
-#if defined(CFG_BR1_PRELIM) && defined(CFG_OR1_PRELIM)
-       memctl->or1 = CFG_OR1_PRELIM;
-       memctl->br1 = CFG_BR1_PRELIM;
+#if defined(CONFIG_SYS_BR1_PRELIM) && defined(CONFIG_SYS_OR1_PRELIM)
+       memctl->or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->br1 = CONFIG_SYS_BR1_PRELIM;
 #endif
 
-#if defined(CFG_BR2_PRELIM) && defined(CFG_OR2_PRELIM)
-       memctl->or2 = CFG_OR2_PRELIM;
-       memctl->br2 = CFG_BR2_PRELIM;
+#if defined(CONFIG_SYS_BR2_PRELIM) && defined(CONFIG_SYS_OR2_PRELIM)
+       memctl->or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->br2 = CONFIG_SYS_BR2_PRELIM;
 #endif
 
-#if defined(CFG_BR3_PRELIM) && defined(CFG_OR3_PRELIM)
-       memctl->or3 = CFG_OR3_PRELIM;
-       memctl->br3 = CFG_BR3_PRELIM;
+#if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
+       memctl->or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->br3 = CONFIG_SYS_BR3_PRELIM;
 #endif
 
-#if defined(CFG_BR4_PRELIM) && defined(CFG_OR4_PRELIM)
-       memctl->or4 = CFG_OR4_PRELIM;
-       memctl->br4 = CFG_BR4_PRELIM;
+#if defined(CONFIG_SYS_BR4_PRELIM) && defined(CONFIG_SYS_OR4_PRELIM)
+       memctl->or4 = CONFIG_SYS_OR4_PRELIM;
+       memctl->br4 = CONFIG_SYS_BR4_PRELIM;
 #endif
 
-#if defined(CFG_BR5_PRELIM) && defined(CFG_OR5_PRELIM)
-       memctl->or5 = CFG_OR5_PRELIM;
-       memctl->br5 = CFG_BR5_PRELIM;
+#if defined(CONFIG_SYS_BR5_PRELIM) && defined(CONFIG_SYS_OR5_PRELIM)
+       memctl->or5 = CONFIG_SYS_OR5_PRELIM;
+       memctl->br5 = CONFIG_SYS_BR5_PRELIM;
 #endif
 
-#if defined(CFG_BR6_PRELIM) && defined(CFG_OR6_PRELIM)
-       memctl->or6 = CFG_OR6_PRELIM;
-       memctl->br6 = CFG_BR6_PRELIM;
+#if defined(CONFIG_SYS_BR6_PRELIM) && defined(CONFIG_SYS_OR6_PRELIM)
+       memctl->or6 = CONFIG_SYS_OR6_PRELIM;
+       memctl->br6 = CONFIG_SYS_BR6_PRELIM;
 #endif
 
-#if defined(CFG_BR7_PRELIM) && defined(CFG_OR7_PRELIM)
-       memctl->or7 = CFG_OR7_PRELIM;
-       memctl->br7 = CFG_BR7_PRELIM;
+#if defined(CONFIG_SYS_BR7_PRELIM) && defined(CONFIG_SYS_OR7_PRELIM)
+       memctl->or7 = CONFIG_SYS_OR7_PRELIM;
+       memctl->br7 = CONFIG_SYS_BR7_PRELIM;
 #endif
 
        /* enable the timebase bit in HID0 */
@@ -127,22 +127,22 @@ int cpu_init_r(void)
 /* Set up BAT registers */
 void setup_bats(void)
 {
-       write_bat(DBAT0, CFG_DBAT0U, CFG_DBAT0L);
-       write_bat(IBAT0, CFG_IBAT0U, CFG_IBAT0L);
-       write_bat(DBAT1, CFG_DBAT1U, CFG_DBAT1L);
-       write_bat(IBAT1, CFG_IBAT1U, CFG_IBAT1L);
-       write_bat(DBAT2, CFG_DBAT2U, CFG_DBAT2L);
-       write_bat(IBAT2, CFG_IBAT2U, CFG_IBAT2L);
-       write_bat(DBAT3, CFG_DBAT3U, CFG_DBAT3L);
-       write_bat(IBAT3, CFG_IBAT3U, CFG_IBAT3L);
-       write_bat(DBAT4, CFG_DBAT4U, CFG_DBAT4L);
-       write_bat(IBAT4, CFG_IBAT4U, CFG_IBAT4L);
-       write_bat(DBAT5, CFG_DBAT5U, CFG_DBAT5L);
-       write_bat(IBAT5, CFG_IBAT5U, CFG_IBAT5L);
-       write_bat(DBAT6, CFG_DBAT6U, CFG_DBAT6L);
-       write_bat(IBAT6, CFG_IBAT6U, CFG_IBAT6L);
-       write_bat(DBAT7, CFG_DBAT7U, CFG_DBAT7L);
-       write_bat(IBAT7, CFG_IBAT7U, CFG_IBAT7L);
+       write_bat(DBAT0, CONFIG_SYS_DBAT0U, CONFIG_SYS_DBAT0L);
+       write_bat(IBAT0, CONFIG_SYS_IBAT0U, CONFIG_SYS_IBAT0L);
+       write_bat(DBAT1, CONFIG_SYS_DBAT1U, CONFIG_SYS_DBAT1L);
+       write_bat(IBAT1, CONFIG_SYS_IBAT1U, CONFIG_SYS_IBAT1L);
+       write_bat(DBAT2, CONFIG_SYS_DBAT2U, CONFIG_SYS_DBAT2L);
+       write_bat(IBAT2, CONFIG_SYS_IBAT2U, CONFIG_SYS_IBAT2L);
+       write_bat(DBAT3, CONFIG_SYS_DBAT3U, CONFIG_SYS_DBAT3L);
+       write_bat(IBAT3, CONFIG_SYS_IBAT3U, CONFIG_SYS_IBAT3L);
+       write_bat(DBAT4, CONFIG_SYS_DBAT4U, CONFIG_SYS_DBAT4L);
+       write_bat(IBAT4, CONFIG_SYS_IBAT4U, CONFIG_SYS_IBAT4L);
+       write_bat(DBAT5, CONFIG_SYS_DBAT5U, CONFIG_SYS_DBAT5L);
+       write_bat(IBAT5, CONFIG_SYS_IBAT5U, CONFIG_SYS_IBAT5L);
+       write_bat(DBAT6, CONFIG_SYS_DBAT6U, CONFIG_SYS_DBAT6L);
+       write_bat(IBAT6, CONFIG_SYS_IBAT6U, CONFIG_SYS_IBAT6L);
+       write_bat(DBAT7, CONFIG_SYS_DBAT7U, CONFIG_SYS_DBAT7L);
+       write_bat(IBAT7, CONFIG_SYS_IBAT7U, CONFIG_SYS_IBAT7L);
 
        return;
 }
index f9361820a333a120e81bcb5a1c513c70495f420d..51d0102ce1e780f478302daea4c8d6210ff59b55 100644 (file)
@@ -22,10 +22,10 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
 
        switch (ctrl_num) {
        case 0:
-               ddr = (void *)CFG_MPC86xx_DDR_ADDR;
+               ddr = (void *)CONFIG_SYS_MPC86xx_DDR_ADDR;
                break;
        case 1:
-               ddr = (void *)CFG_MPC86xx_DDR2_ADDR;
+               ddr = (void *)CONFIG_SYS_MPC86xx_DDR2_ADDR;
                break;
        default:
                printf("%s unexpected ctrl_num = %u\n", __FUNCTION__, ctrl_num);
index 12d90520317b74e83cb62278bbc1e5293900ff67..1fef94f5db54190b4783a82a61e3644c52fbefbb 100644 (file)
@@ -28,8 +28,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
        fdt_fixup_ethernet(blob);
 #endif
 
-#ifdef CFG_NS16550
+#ifdef CONFIG_SYS_NS16550
        do_fixup_by_compat_u32(blob, "ns16550",
-                              "clock-frequency", CFG_NS16550_CLK, 1);
+                              "clock-frequency", CONFIG_SYS_NS16550_CLK, 1);
 #endif
 }
index fa2cfac0831cb47dfb1a7ebf07f6fc49f607d050..c78fc72254b104e5bbcc50bb6f9981b481d2fb99 100644 (file)
@@ -38,7 +38,7 @@
 
 int interrupt_init_cpu(unsigned long *decrementer_count)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        volatile ccsr_pic_t *pic = &immr->im_pic;
 
        pic->gcr = MPC86xx_PICGCR_RST;
@@ -46,7 +46,7 @@ int interrupt_init_cpu(unsigned long *decrementer_count)
                ;
        pic->gcr = MPC86xx_PICGCR_MODE;
 
-       *decrementer_count = get_tbclk() / CFG_HZ;
+       *decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
        debug("interrupt init: tbclk() = %d MHz, decrementer_count = %ld\n",
              (get_tbclk() / 1000000),
              *decrementer_count);
index da5b58b73f29441761d0abd430f8d1f19a879103..415ac9db89055ed4f72d8c1c89bde489083b76ad 100644 (file)
@@ -36,7 +36,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 
 void get_sys_info(sys_info_t *sysInfo)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
        uint plat_ratio, e600_ratio;
 
index 90a1b833da8f97b9781c4f2c93f44e9dcff1ec05..159f3e174385b98e86acbe91cc852ce434d58c4f 100644 (file)
@@ -194,7 +194,7 @@ boot_warm:
 #endif
 
 1:
-#ifdef CFG_RAMBOOT
+#ifdef CONFIG_SYS_RAMBOOT
        /* disable everything */
        li      r0, 0
        mtspr   HID0, r0
@@ -205,7 +205,7 @@ boot_warm:
        bl      invalidate_bats
        sync
 
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        /* init the L2 cache */
        lis     r3, L2_INIT@h
        ori     r3, r3, L2_INIT@l
@@ -218,8 +218,8 @@ boot_warm:
        /*
         * Calculate absolute address in FLASH and jump there
         *------------------------------------------------------*/
-       lis     r3, CFG_MONITOR_BASE@h
-       ori     r3, r3, CFG_MONITOR_BASE@l
+       lis     r3, CONFIG_SYS_MONITOR_BASE@h
+       ori     r3, r3, CONFIG_SYS_MONITOR_BASE@l
        addi    r3, r3, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr    r3
        blr
@@ -257,15 +257,15 @@ in_flash:
        bl      icache_enable
 #endif
 
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
        bl      lock_ram_in_cache
        sync
 #endif
 
        /* set up the stack pointer in our newly created
         * cache-ram (r1) */
-       lis     r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@h
-       ori     r1, r1, (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET)@l
+       lis     r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@h
+       ori     r1, r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET)@l
 
        li      r0, 0           /* Make room for stack frame header and */
        stwu    r0, -4(r1)      /* clear final stack frame so that      */
@@ -278,7 +278,7 @@ in_flash:
        bl      clear_tlbs
        sync
 
-#if (CFG_CCSRBAR_DEFAULT != CFG_CCSRBAR)
+#if (CONFIG_SYS_CCSRBAR_DEFAULT != CONFIG_SYS_CCSRBAR)
        /* setup ccsrbar */
        bl      setup_ccsrbar
 #endif
@@ -308,8 +308,8 @@ in_flash:
        stb     r3, 0(r4)
 
        /* Get the address to jump to in r3*/
-       lis     r3, CFG_DIAG_ADDR@h
-       ori     r3, r3, CFG_DIAG_ADDR@l
+       lis     r3, CONFIG_SYS_DIAG_ADDR@h
+       ori     r3, r3, CONFIG_SYS_DIAG_ADDR@l
 
        /* Load the LR with the branch address */
        mtlr    r3
@@ -367,37 +367,37 @@ invalidate_bats:
        .globl  early_bats
 early_bats:
        /* IBAT 5 */
-       lis     r4, CFG_IBAT5L@h
-       ori     r4, r4, CFG_IBAT5L@l
-       lis     r3, CFG_IBAT5U@h
-       ori     r3, r3, CFG_IBAT5U@l
+       lis     r4, CONFIG_SYS_IBAT5L@h
+       ori     r4, r4, CONFIG_SYS_IBAT5L@l
+       lis     r3, CONFIG_SYS_IBAT5U@h
+       ori     r3, r3, CONFIG_SYS_IBAT5U@l
        mtspr   IBAT5L, r4
        mtspr   IBAT5U, r3
        isync
 
        /* DBAT 5 */
-       lis     r4, CFG_DBAT5L@h
-       ori     r4, r4, CFG_DBAT5L@l
-       lis     r3, CFG_DBAT5U@h
-       ori     r3, r3, CFG_DBAT5U@l
+       lis     r4, CONFIG_SYS_DBAT5L@h
+       ori     r4, r4, CONFIG_SYS_DBAT5L@l
+       lis     r3, CONFIG_SYS_DBAT5U@h
+       ori     r3, r3, CONFIG_SYS_DBAT5U@l
        mtspr   DBAT5L, r4
        mtspr   DBAT5U, r3
        isync
 
        /* IBAT 6 */
-       lis     r4, CFG_IBAT6L@h
-       ori     r4, r4, CFG_IBAT6L@l
-       lis     r3, CFG_IBAT6U@h
-       ori     r3, r3, CFG_IBAT6U@l
+       lis     r4, CONFIG_SYS_IBAT6L@h
+       ori     r4, r4, CONFIG_SYS_IBAT6L@l
+       lis     r3, CONFIG_SYS_IBAT6U@h
+       ori     r3, r3, CONFIG_SYS_IBAT6U@l
        mtspr   IBAT6L, r4
        mtspr   IBAT6U, r3
        isync
 
        /* DBAT 6 */
-       lis     r4, CFG_DBAT6L@h
-       ori     r4, r4, CFG_DBAT6L@l
-       lis     r3, CFG_DBAT6U@h
-       ori     r3, r3, CFG_DBAT6U@l
+       lis     r4, CONFIG_SYS_DBAT6L@h
+       ori     r4, r4, CONFIG_SYS_DBAT6L@l
+       lis     r3, CONFIG_SYS_DBAT6U@h
+       ori     r3, r3, CONFIG_SYS_DBAT6U@l
        mtspr   DBAT6L, r4
        mtspr   DBAT6U, r3
        isync
@@ -621,16 +621,16 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address     */
 
        mr      r3,  r5                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
@@ -648,11 +648,11 @@ relocate_code:
        bl      board_relocate_rom
        sync
        mr      r3, r10                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 #else
        cmplw   cr1,r3,r4
        addi    r0,r5,3
@@ -864,15 +864,15 @@ enable_ext_addr:
        isync
        blr
 
-#if (CFG_CCSRBAR_DEFAULT != CFG_CCSRBAR)
+#if (CONFIG_SYS_CCSRBAR_DEFAULT != CONFIG_SYS_CCSRBAR)
 .globl setup_ccsrbar
 setup_ccsrbar:
        /* Special sequence needed to update CCSRBAR itself */
-       lis     r4, CFG_CCSRBAR_DEFAULT@h
-       ori     r4, r4, CFG_CCSRBAR_DEFAULT@l
+       lis     r4, CONFIG_SYS_CCSRBAR_DEFAULT@h
+       ori     r4, r4, CONFIG_SYS_CCSRBAR_DEFAULT@l
 
-       lis     r5, CFG_CCSRBAR@h
-       ori     r5, r5, CFG_CCSRBAR@l
+       lis     r5, CONFIG_SYS_CCSRBAR@h
+       ori     r5, r5, CONFIG_SYS_CCSRBAR@l
        srwi    r6,r5,12
        stw     r6, 0(r4)
        isync
@@ -882,21 +882,21 @@ setup_ccsrbar:
        lwz     r5, 0(r5)
        isync
 
-       lis     r3, CFG_CCSRBAR@h
-       lwz     r5, CFG_CCSRBAR@l(r3)
+       lis     r3, CONFIG_SYS_CCSRBAR@h
+       lwz     r5, CONFIG_SYS_CCSRBAR@l(r3)
        isync
 
        blr
 #endif
 
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
 lock_ram_in_cache:
        /* Allocate Initial RAM in data cache.
         */
-       lis     r3, (CFG_INIT_RAM_ADDR & ~31)@h
-       ori     r3, r3, (CFG_INIT_RAM_ADDR & ~31)@l
-       li      r4, ((CFG_INIT_RAM_END & ~31) + \
-                    (CFG_INIT_RAM_ADDR & 31) + 31) / 32
+       lis     r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@h
+       ori     r3, r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@l
+       li      r4, ((CONFIG_SYS_INIT_RAM_END & ~31) + \
+                    (CONFIG_SYS_INIT_RAM_ADDR & 31) + 31) / 32
        mtctr   r4
 1:
        dcbz    r0, r3
@@ -928,10 +928,10 @@ lock_ram_in_cache:
 .globl unlock_ram_in_cache
 unlock_ram_in_cache:
        /* invalidate the INIT_RAM section */
-       lis     r3, (CFG_INIT_RAM_ADDR & ~31)@h
-       ori     r3, r3, (CFG_INIT_RAM_ADDR & ~31)@l
-       li      r4, ((CFG_INIT_RAM_END & ~31) + \
-                    (CFG_INIT_RAM_ADDR & 31) + 31) / 32
+       lis     r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@h
+       ori     r3, r3, (CONFIG_SYS_INIT_RAM_ADDR & ~31)@l
+       li      r4, ((CONFIG_SYS_INIT_RAM_END & ~31) + \
+                    (CONFIG_SYS_INIT_RAM_ADDR & 31) + 31) / 32
        mtctr   r4
 1:     icbi    r0, r3
        addi    r3, r3, 32
@@ -987,7 +987,7 @@ secondary_cpu_setup:
        sync
        bl      enable_ext_addr
 
-#ifdef CFG_L2
+#ifdef CONFIG_SYS_L2
        /* init the L2 cache */
        addis   r3, r0, L2_INIT@h
        ori     r3, r3, L2_INIT@l
index 07c763cfde9061b76829ef976e902f1c8e4c657b..a87a0dce88cbd3119baa617b79916be819229214 100644 (file)
@@ -26,7 +26,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
 
 int dpram_init (void)
 {
@@ -82,14 +82,14 @@ uint dpram_base_align (uint align)
 
        return (gd->dp_alloc_base + mask) & ~mask;
 }
-#endif /* CFG_ALLOC_DPRAM */
+#endif /* CONFIG_SYS_ALLOC_DPRAM */
 
 #if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
 
 void post_word_store (ulong a)
 {
        volatile void *save_addr =
-               ((immap_t *) CFG_IMMR)->im_cpm.cp_dpmem + CPM_POST_WORD_ADDR;
+               ((immap_t *) CONFIG_SYS_IMMR)->im_cpm.cp_dpmem + CPM_POST_WORD_ADDR;
 
        *(volatile ulong *) save_addr = a;
 }
@@ -97,7 +97,7 @@ void post_word_store (ulong a)
 ulong post_word_load (void)
 {
        volatile void *save_addr =
-               ((immap_t *) CFG_IMMR)->im_cpm.cp_dpmem + CPM_POST_WORD_ADDR;
+               ((immap_t *) CONFIG_SYS_IMMR)->im_cpm.cp_dpmem + CPM_POST_WORD_ADDR;
 
        return *(volatile ulong *) save_addr;
 }
@@ -109,7 +109,7 @@ ulong post_word_load (void)
 void bootcount_store (ulong a)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)( ((immap_t *) CFG_IMMR)->im_cpm.cp_dpmem +
+               (volatile ulong *)( ((immap_t *) CONFIG_SYS_IMMR)->im_cpm.cp_dpmem +
                                    CPM_BOOTCOUNT_ADDR );
 
        save_addr[0] = a;
@@ -119,7 +119,7 @@ void bootcount_store (ulong a)
 ulong bootcount_load (void)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)( ((immap_t *) CFG_IMMR)->im_cpm.cp_dpmem +
+               (volatile ulong *)( ((immap_t *) CONFIG_SYS_IMMR)->im_cpm.cp_dpmem +
                                    CPM_BOOTCOUNT_ADDR );
 
        if (save_addr[1] != BOOTCOUNT_MAGIC)
index ec6a3fd5d6921be5812172b6170c71f29ad3608d..420eaedf504e2ee50dc07bba248915370c71041e 100644 (file)
@@ -137,13 +137,13 @@ static int check_CPU (long clock, uint pvr, uint immr)
                printf ("unknown M%s (0x%08x)", id_str, k);
 
 
-#if defined(CFG_8xx_CPUCLK_MIN) && defined(CFG_8xx_CPUCLK_MAX)
+#if defined(CONFIG_SYS_8xx_CPUCLK_MIN) && defined(CONFIG_SYS_8xx_CPUCLK_MAX)
        printf (" at %s MHz [%d.%d...%d.%d MHz]\n       ",
                strmhz (buf, clock),
-               CFG_8xx_CPUCLK_MIN / 1000000,
-               ((CFG_8xx_CPUCLK_MIN % 1000000) + 50000) / 100000,
-               CFG_8xx_CPUCLK_MAX / 1000000,
-               ((CFG_8xx_CPUCLK_MAX % 1000000) + 50000) / 100000
+               CONFIG_SYS_8xx_CPUCLK_MIN / 1000000,
+               ((CONFIG_SYS_8xx_CPUCLK_MIN % 1000000) + 50000) / 100000,
+               CONFIG_SYS_8xx_CPUCLK_MAX / 1000000,
+               ((CONFIG_SYS_8xx_CPUCLK_MAX % 1000000) + 50000) / 100000
        );
 #else
        printf (" at %s MHz: ", strmhz (buf, clock));
@@ -375,7 +375,7 @@ int checkcpu (void)
 
 int checkicache (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        u32 cacheon = rd_ic_cst () & IDC_ENABLED;
 
@@ -422,7 +422,7 @@ int checkicache (void)
 
 int checkdcache (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        u32 cacheon = rd_dc_cst () & IDC_ENABLED;
 
@@ -462,7 +462,7 @@ void upmconfig (uint upm, uint * table, uint size)
 {
        uint i;
        uint addr = 0;
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
 
        for (i = 0; i < size; i++) {
@@ -480,7 +480,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
        ulong msr, addr;
 
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        immap->im_clkrst.car_plprcr |= PLPRCR_CSR;      /* Checkstop Reset enable */
 
@@ -495,16 +495,16 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
         * Trying to execute the next instruction at a non-existing address
         * should cause a machine check, resulting in reset
         */
-#ifdef CFG_RESET_ADDRESS
-       addr = CFG_RESET_ADDRESS;
+#ifdef CONFIG_SYS_RESET_ADDRESS
+       addr = CONFIG_SYS_RESET_ADDRESS;
 #else
        /*
-        * note: when CFG_MONITOR_BASE points to a RAM address, CFG_MONITOR_BASE
+        * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address, CONFIG_SYS_MONITOR_BASE
         * - sizeof (ulong) is usually a valid address. Better pick an address
-        * known to be invalid on your system and assign it to CFG_RESET_ADDRESS.
+        * known to be invalid on your system and assign it to CONFIG_SYS_RESET_ADDRESS.
         * "(ulong)-1" used to be a good choice for many systems...
         */
-       addr = CFG_MONITOR_BASE - sizeof (ulong);
+       addr = CONFIG_SYS_MONITOR_BASE - sizeof (ulong);
 #endif
        ((void (*)(void)) addr) ();
        return 1;
@@ -525,7 +525,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        disable_interrupts ();
 
        /* make sure the watchdog is running */
-       reset_8xx_watchdog ((immap_t *) CFG_IMMR);
+       reset_8xx_watchdog ((immap_t *) CONFIG_SYS_IMMR);
 
        /* wait for watchdog reset */
        while (1) {};
@@ -591,7 +591,7 @@ void watchdog_reset (void)
 {
        int re_enable = disable_interrupts ();
 
-       reset_8xx_watchdog ((immap_t *) CFG_IMMR);
+       reset_8xx_watchdog ((immap_t *) CONFIG_SYS_IMMR);
        if (re_enable)
                enable_interrupts ();
 }
index 5c43ecac50d1b34c71efbf71a3589946c8ae7fa1..eb0091bdb3034cc0f29f1e61f9459121130b556d 100644 (file)
 #include <mpc8xx.h>
 #include <commproc.h>
 
-#if defined(CFG_RTCSC) || defined(CFG_RMDS)
+#if defined(CONFIG_SYS_RTCSC) || defined(CONFIG_SYS_RMDS)
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
-#if defined(CFG_I2C_UCODE_PATCH) || defined(CFG_SPI_UCODE_PATCH) || \
-    defined(CFG_SMC_UCODE_PATCH)
+#if defined(CONFIG_SYS_I2C_UCODE_PATCH) || defined(CONFIG_SYS_SPI_UCODE_PATCH) || \
+    defined(CONFIG_SYS_SMC_UCODE_PATCH)
 void cpm_load_patch (volatile immap_t * immr);
 #endif
 
@@ -47,7 +47,7 @@ void cpu_init_f (volatile immap_t * immr)
 {
 #ifndef CONFIG_MBX
        volatile memctl8xx_t *memctl = &immr->im_memctl;
-# ifdef CFG_PLPRCR
+# ifdef CONFIG_SYS_PLPRCR
        ulong mfmask;
 # endif
 #endif
@@ -55,7 +55,7 @@ void cpu_init_f (volatile immap_t * immr)
 
        /* SYPCR - contains watchdog control (11-9) */
 
-       immr->im_siu_conf.sc_sypcr = CFG_SYPCR;
+       immr->im_siu_conf.sc_sypcr = CONFIG_SYS_SYPCR;
 
 #if defined(CONFIG_WATCHDOG)
        reset_8xx_watchdog (immr);
@@ -63,27 +63,27 @@ void cpu_init_f (volatile immap_t * immr)
 
        /* SIUMCR - contains debug pin configuration (11-6) */
 #ifndef CONFIG_SVM_SC8xx
-       immr->im_siu_conf.sc_siumcr |= CFG_SIUMCR;
+       immr->im_siu_conf.sc_siumcr |= CONFIG_SYS_SIUMCR;
 #else
-       immr->im_siu_conf.sc_siumcr = CFG_SIUMCR;
+       immr->im_siu_conf.sc_siumcr = CONFIG_SYS_SIUMCR;
 #endif
        /* initialize timebase status and control register (11-26) */
        /* unlock TBSCRK */
 
        immr->im_sitk.sitk_tbscrk = KAPWR_KEY;
-       immr->im_sit.sit_tbscr = CFG_TBSCR;
+       immr->im_sit.sit_tbscr = CONFIG_SYS_TBSCR;
 
        /* initialize the PIT (11-31) */
 
        immr->im_sitk.sitk_piscrk = KAPWR_KEY;
-       immr->im_sit.sit_piscr = CFG_PISCR;
+       immr->im_sit.sit_piscr = CONFIG_SYS_PISCR;
 
        /* System integration timers. Don't change EBDF! (15-27) */
 
        immr->im_clkrstk.cark_sccrk = KAPWR_KEY;
        reg = immr->im_clkrst.car_sccr;
        reg &= SCCR_MASK;
-       reg |= CFG_SCCR;
+       reg |= CONFIG_SYS_SCCR;
        immr->im_clkrst.car_sccr = reg;
 
        /* PLL (CPU clock) settings (15-30) */
@@ -92,25 +92,25 @@ void cpu_init_f (volatile immap_t * immr)
 
 #ifndef CONFIG_MBX             /* MBX board does things different */
 
-       /* If CFG_PLPRCR (set in the various *_config.h files) tries to
-        * set the MF field, then just copy CFG_PLPRCR over car_plprcr,
-        * otherwise OR in CFG_PLPRCR so we do not change the current MF
+       /* If CONFIG_SYS_PLPRCR (set in the various *_config.h files) tries to
+        * set the MF field, then just copy CONFIG_SYS_PLPRCR over car_plprcr,
+        * otherwise OR in CONFIG_SYS_PLPRCR so we do not change the current MF
         * field value.
         *
         * For newer (starting MPC866) chips PLPRCR layout is different.
         */
-#ifdef CFG_PLPRCR
+#ifdef CONFIG_SYS_PLPRCR
        if (get_immr(0xFFFF) >= MPC8xx_NEW_CLK)
           mfmask = PLPRCR_MFACT_MSK;
        else
           mfmask = PLPRCR_MF_MSK;
 
-       if ((CFG_PLPRCR & mfmask) != 0)
-          reg = CFG_PLPRCR;                    /* reset control bits   */
+       if ((CONFIG_SYS_PLPRCR & mfmask) != 0)
+          reg = CONFIG_SYS_PLPRCR;                     /* reset control bits   */
        else {
           reg = immr->im_clkrst.car_plprcr;
           reg &= mfmask;                       /* isolate MF-related fields */
-          reg |= CFG_PLPRCR;                   /* reset control bits   */
+          reg |= CONFIG_SYS_PLPRCR;                    /* reset control bits   */
        }
        immr->im_clkrst.car_plprcr = reg;
 #endif
@@ -130,20 +130,20 @@ void cpu_init_f (volatile immap_t * immr)
         * when FLASH size has been determined
         *
         * Depending on the size of the memory region defined by
-        * CFG_OR0_REMAP some boards (wide address mask) allow to map the
-        * CFG_MONITOR_BASE, while others (narrower address mask) can't
-        * map CFG_MONITOR_BASE.
+        * CONFIG_SYS_OR0_REMAP some boards (wide address mask) allow to map the
+        * CONFIG_SYS_MONITOR_BASE, while others (narrower address mask) can't
+        * map CONFIG_SYS_MONITOR_BASE.
         *
-        * For example, for CONFIG_IVMS8, the CFG_MONITOR_BASE is
-        * 0xff000000, but CFG_OR0_REMAP's address mask is 0xfff80000.
+        * For example, for CONFIG_IVMS8, the CONFIG_SYS_MONITOR_BASE is
+        * 0xff000000, but CONFIG_SYS_OR0_REMAP's address mask is 0xfff80000.
         *
         * If BR0 wasn't loaded with address base 0xff000000, then BR0's
         * base address remains as 0x00000000. However, the address mask
-        * have been narrowed to 512Kb, so CFG_MONITOR_BASE wasn't mapped
+        * have been narrowed to 512Kb, so CONFIG_SYS_MONITOR_BASE wasn't mapped
         * into the Bank0.
         *
         * This is why CONFIG_IVMS8 and similar boards must load BR0 with
-        * CFG_BR0_PRELIM in advance.
+        * CONFIG_SYS_BR0_PRELIM in advance.
         *
         * [Thanks to Michael Liao for this explanation.
         *  I owe him a free beer. - wd]
@@ -165,60 +165,60 @@ void cpu_init_f (volatile immap_t * immr)
     defined(CONFIG_SPC1920)    || \
     defined(CONFIG_SPD823TS)
 
-       memctl->memc_br0 = CFG_BR0_PRELIM;
+       memctl->memc_br0 = CONFIG_SYS_BR0_PRELIM;
 #endif
 
-#if defined(CFG_OR0_REMAP)
-       memctl->memc_or0 = CFG_OR0_REMAP;
+#if defined(CONFIG_SYS_OR0_REMAP)
+       memctl->memc_or0 = CONFIG_SYS_OR0_REMAP;
 #endif
-#if defined(CFG_OR1_REMAP)
-       memctl->memc_or1 = CFG_OR1_REMAP;
+#if defined(CONFIG_SYS_OR1_REMAP)
+       memctl->memc_or1 = CONFIG_SYS_OR1_REMAP;
 #endif
-#if defined(CFG_OR5_REMAP)
-       memctl->memc_or5 = CFG_OR5_REMAP;
+#if defined(CONFIG_SYS_OR5_REMAP)
+       memctl->memc_or5 = CONFIG_SYS_OR5_REMAP;
 #endif
 
        /* now restrict to preliminary range */
-       memctl->memc_br0 = CFG_BR0_PRELIM;
-       memctl->memc_or0 = CFG_OR0_PRELIM;
+       memctl->memc_br0 = CONFIG_SYS_BR0_PRELIM;
+       memctl->memc_or0 = CONFIG_SYS_OR0_PRELIM;
 
-#if (defined(CFG_OR1_PRELIM) && defined(CFG_BR1_PRELIM))
-       memctl->memc_or1 = CFG_OR1_PRELIM;
-       memctl->memc_br1 = CFG_BR1_PRELIM;
+#if (defined(CONFIG_SYS_OR1_PRELIM) && defined(CONFIG_SYS_BR1_PRELIM))
+       memctl->memc_or1 = CONFIG_SYS_OR1_PRELIM;
+       memctl->memc_br1 = CONFIG_SYS_BR1_PRELIM;
 #endif
 
 #if defined(CONFIG_IP860) /* disable CS0 now that Flash is mapped on CS1 */
        memctl->memc_br0 = 0;
 #endif
 
-#if defined(CFG_OR2_PRELIM) && defined(CFG_BR2_PRELIM)
-       memctl->memc_or2 = CFG_OR2_PRELIM;
-       memctl->memc_br2 = CFG_BR2_PRELIM;
+#if defined(CONFIG_SYS_OR2_PRELIM) && defined(CONFIG_SYS_BR2_PRELIM)
+       memctl->memc_or2 = CONFIG_SYS_OR2_PRELIM;
+       memctl->memc_br2 = CONFIG_SYS_BR2_PRELIM;
 #endif
 
-#if defined(CFG_OR3_PRELIM) && defined(CFG_BR3_PRELIM)
-       memctl->memc_or3 = CFG_OR3_PRELIM;
-       memctl->memc_br3 = CFG_BR3_PRELIM;
+#if defined(CONFIG_SYS_OR3_PRELIM) && defined(CONFIG_SYS_BR3_PRELIM)
+       memctl->memc_or3 = CONFIG_SYS_OR3_PRELIM;
+       memctl->memc_br3 = CONFIG_SYS_BR3_PRELIM;
 #endif
 
-#if defined(CFG_OR4_PRELIM) && defined(CFG_BR4_PRELIM)
-       memctl->memc_or4 = CFG_OR4_PRELIM;
-       memctl->memc_br4 = CFG_BR4_PRELIM;
+#if defined(CONFIG_SYS_OR4_PRELIM) && defined(CONFIG_SYS_BR4_PRELIM)
+       memctl->memc_or4 = CONFIG_SYS_OR4_PRELIM;
+       memctl->memc_br4 = CONFIG_SYS_BR4_PRELIM;
 #endif
 
-#if defined(CFG_OR5_PRELIM) && defined(CFG_BR5_PRELIM)
-       memctl->memc_or5 = CFG_OR5_PRELIM;
-       memctl->memc_br5 = CFG_BR5_PRELIM;
+#if defined(CONFIG_SYS_OR5_PRELIM) && defined(CONFIG_SYS_BR5_PRELIM)
+       memctl->memc_or5 = CONFIG_SYS_OR5_PRELIM;
+       memctl->memc_br5 = CONFIG_SYS_BR5_PRELIM;
 #endif
 
-#if defined(CFG_OR6_PRELIM) && defined(CFG_BR6_PRELIM)
-       memctl->memc_or6 = CFG_OR6_PRELIM;
-       memctl->memc_br6 = CFG_BR6_PRELIM;
+#if defined(CONFIG_SYS_OR6_PRELIM) && defined(CONFIG_SYS_BR6_PRELIM)
+       memctl->memc_or6 = CONFIG_SYS_OR6_PRELIM;
+       memctl->memc_br6 = CONFIG_SYS_BR6_PRELIM;
 #endif
 
-#if defined(CFG_OR7_PRELIM) && defined(CFG_BR7_PRELIM)
-       memctl->memc_or7 = CFG_OR7_PRELIM;
-       memctl->memc_br7 = CFG_BR7_PRELIM;
+#if defined(CONFIG_SYS_OR7_PRELIM) && defined(CONFIG_SYS_BR7_PRELIM)
+       memctl->memc_or7 = CONFIG_SYS_OR7_PRELIM;
+       memctl->memc_br7 = CONFIG_SYS_BR7_PRELIM;
 #endif
 
 #endif /* ! CONFIG_MBX */
@@ -249,13 +249,13 @@ void cpu_init_f (volatile immap_t * immr)
        rpxlite_init ();
 #endif
 
-#ifdef CFG_RCCR                        /* must be done before cpm_load_patch() */
+#ifdef CONFIG_SYS_RCCR                 /* must be done before cpm_load_patch() */
        /* write config value */
-       immr->im_cpm.cp_rccr = CFG_RCCR;
+       immr->im_cpm.cp_rccr = CONFIG_SYS_RCCR;
 #endif
 
-#if defined(CFG_I2C_UCODE_PATCH) || defined(CFG_SPI_UCODE_PATCH) || \
-    defined(CFG_SMC_UCODE_PATCH)
+#if defined(CONFIG_SYS_I2C_UCODE_PATCH) || defined(CONFIG_SYS_SPI_UCODE_PATCH) || \
+    defined(CONFIG_SYS_SMC_UCODE_PATCH)
        cpm_load_patch (immr);  /* load mpc8xx  microcode patch */
 #endif
 }
@@ -265,21 +265,21 @@ void cpu_init_f (volatile immap_t * immr)
  */
 int cpu_init_r (void)
 {
-#if defined(CFG_RTCSC) || defined(CFG_RMDS)
+#if defined(CONFIG_SYS_RTCSC) || defined(CONFIG_SYS_RMDS)
        bd_t *bd = gd->bd;
        volatile immap_t *immr = (volatile immap_t *) (bd->bi_immr_base);
 #endif
 
-#ifdef CFG_RTCSC
+#ifdef CONFIG_SYS_RTCSC
        /* Unlock RTSC register */
        immr->im_sitk.sitk_rtcsck = KAPWR_KEY;
        /* write config value */
-       immr->im_sit.sit_rtcsc = CFG_RTCSC;
+       immr->im_sit.sit_rtcsc = CONFIG_SYS_RTCSC;
 #endif
 
-#ifdef CFG_RMDS
+#ifdef CONFIG_SYS_RMDS
        /* write config value */
-       immr->im_cpm.cp_rmds = CFG_RMDS;
+       immr->im_cpm.cp_rmds = CONFIG_SYS_RMDS;
 #endif
        return (0);
 }
index 37eb481ff16d534d0009b5d06010deb2a0d93e9d..141425d8ed4bdeabdfcbf7adf0c58a03e2773f53 100644 (file)
@@ -40,7 +40,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #endif
 
 /* define WANT_MII when MII support is required */
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_FEC1_PHY) || defined(CONFIG_FEC2_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_FEC1_PHY) || defined(CONFIG_FEC2_PHY)
 #define WANT_MII
 #else
 #undef WANT_MII
@@ -59,7 +59,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #error RMII support is unusable without a working PHY.
 #endif
 
-#ifdef CFG_DISCOVER_PHY
+#ifdef CONFIG_SYS_DISCOVER_PHY
 static int mii_discover_phy(struct eth_device *dev);
 #endif
 
@@ -197,7 +197,7 @@ static int fec_send(struct eth_device* dev, volatile void *packet, int length)
 {
        int j, rc;
        struct ether_fcc_info_s *efis = dev->priv;
-       volatile fec_t *fecp = (volatile fec_t *)(CFG_IMMR + efis->fecp_offset);
+       volatile fec_t *fecp = (volatile fec_t *)(CONFIG_SYS_IMMR + efis->fecp_offset);
 
        /* section 16.9.23.3
         * Wait for ready
@@ -248,7 +248,7 @@ static int fec_recv (struct eth_device *dev)
 {
        struct ether_fcc_info_s *efis = dev->priv;
        volatile fec_t *fecp =
-               (volatile fec_t *) (CFG_IMMR + efis->fecp_offset);
+               (volatile fec_t *) (CONFIG_SYS_IMMR + efis->fecp_offset);
        int length;
 
        for (;;) {
@@ -339,7 +339,7 @@ static inline void fec_10Mbps(struct eth_device *dev)
        if ((unsigned int)fecidx >= 2)
                hang();
 
-       ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_cptr |=  mask;
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_cptr |=  mask;
 }
 
 static inline void fec_100Mbps(struct eth_device *dev)
@@ -351,7 +351,7 @@ static inline void fec_100Mbps(struct eth_device *dev)
        if ((unsigned int)fecidx >= 2)
                hang();
 
-       ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_cptr &= ~mask;
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_cptr &= ~mask;
 }
 
 #endif
@@ -359,7 +359,7 @@ static inline void fec_100Mbps(struct eth_device *dev)
 static inline void fec_full_duplex(struct eth_device *dev)
 {
        struct ether_fcc_info_s *efis = dev->priv;
-       volatile fec_t *fecp = (volatile fec_t *)(CFG_IMMR + efis->fecp_offset);
+       volatile fec_t *fecp = (volatile fec_t *)(CONFIG_SYS_IMMR + efis->fecp_offset);
 
        fecp->fec_r_cntrl &= ~FEC_RCNTRL_DRT;
        fecp->fec_x_cntrl |=  FEC_TCNTRL_FDEN;  /* FD enable */
@@ -368,7 +368,7 @@ static inline void fec_full_duplex(struct eth_device *dev)
 static inline void fec_half_duplex(struct eth_device *dev)
 {
        struct ether_fcc_info_s *efis = dev->priv;
-       volatile fec_t *fecp = (volatile fec_t *)(CFG_IMMR + efis->fecp_offset);
+       volatile fec_t *fecp = (volatile fec_t *)(CONFIG_SYS_IMMR + efis->fecp_offset);
 
        fecp->fec_r_cntrl |=  FEC_RCNTRL_DRT;
        fecp->fec_x_cntrl &= ~FEC_TCNTRL_FDEN;  /* FD disable */
@@ -377,7 +377,7 @@ static inline void fec_half_duplex(struct eth_device *dev)
 static void fec_pin_init(int fecidx)
 {
        bd_t           *bd = gd->bd;
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile fec_t *fecp;
 
        /*
@@ -474,7 +474,7 @@ static void fec_pin_init(int fecidx)
                 * Configure port A for MII.
                 */
 
-#if defined(CONFIG_ICU862) && defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_ICU862) && defined(CONFIG_SYS_DISCOVER_PHY)
 
                /*
                 * On the ICU862 board the MII-MDC pin is routed to PD8 pin
@@ -569,9 +569,9 @@ static int fec_reset(volatile fec_t *fecp)
 static int fec_init (struct eth_device *dev, bd_t * bd)
 {
        struct ether_fcc_info_s *efis = dev->priv;
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile fec_t *fecp =
-               (volatile fec_t *) (CFG_IMMR + efis->fecp_offset);
+               (volatile fec_t *) (CONFIG_SYS_IMMR + efis->fecp_offset);
        int i;
 
        if (efis->ether_index == 0) {
@@ -657,7 +657,7 @@ static int fec_init (struct eth_device *dev, bd_t * bd)
        txIdx = 0;
 
        if (!rtx) {
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
                rtx = (RTXBD *) (immr->im_cpm.cp_dpmem +
                                 dpram_alloc_align (sizeof (RTXBD), 8));
 #else
@@ -721,7 +721,7 @@ static int fec_init (struct eth_device *dev, bd_t * bd)
        fecp->fec_ecntrl = FEC_ECNTRL_PINMUX | FEC_ECNTRL_ETHER_EN;
 
        if (efis->phy_addr == -1) {
-#ifdef CFG_DISCOVER_PHY
+#ifdef CONFIG_SYS_DISCOVER_PHY
                /*
                 * wait for the PHY to wake up after reset
                 */
@@ -772,7 +772,7 @@ static int fec_init (struct eth_device *dev, bd_t * bd)
 static void fec_halt(struct eth_device* dev)
 {
        struct ether_fcc_info_s *efis = dev->priv;
-       volatile fec_t *fecp = (volatile fec_t *)(CFG_IMMR + efis->fecp_offset);
+       volatile fec_t *fecp = (volatile fec_t *)(CONFIG_SYS_IMMR + efis->fecp_offset);
        int i;
 
        /* avoid halt if initialized; mii gets stuck otherwise */
@@ -801,7 +801,7 @@ static void fec_halt(struct eth_device* dev)
        efis->initialized = 0;
 }
 
-#if defined(CFG_DISCOVER_PHY) || defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
+#if defined(CONFIG_SYS_DISCOVER_PHY) || defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
 
 /* Make MII read/write commands for the FEC.
 */
@@ -846,7 +846,7 @@ mii_send(uint mii_cmd)
        volatile fec_t  *ep;
        int cnt;
 
-       ep = &(((immap_t *)CFG_IMMR)->im_cpm.cp_fec);
+       ep = &(((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_fec);
 
        ep->fec_mii_data = mii_cmd;     /* command to phy */
 
@@ -868,7 +868,7 @@ mii_send(uint mii_cmd)
 }
 #endif
 
-#if defined(CFG_DISCOVER_PHY)
+#if defined(CONFIG_SYS_DISCOVER_PHY)
 static int mii_discover_phy(struct eth_device *dev)
 {
 #define MAX_PHY_PASSES 11
@@ -937,7 +937,7 @@ static int mii_discover_phy(struct eth_device *dev)
        }
        return phyaddr;
 }
-#endif /* CFG_DISCOVER_PHY */
+#endif /* CONFIG_SYS_DISCOVER_PHY */
 
 #if (defined(CONFIG_MII) || defined(CONFIG_CMD_MII)) && !defined(CONFIG_BITBANGMII)
 
@@ -948,7 +948,7 @@ static int mii_discover_phy(struct eth_device *dev)
  */
 static void __mii_init(void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile fec_t *fecp = &(immr->im_cpm.cp_fec);
 
        if (fec_reset(fecp) < 0)
index f05b666b883b5178568a38997b893f104891f9e3..29c7c71bbc4bea23de9ade337950ef733e1987ec 100644 (file)
@@ -45,12 +45,12 @@ DECLARE_GLOBAL_DATA_PTR;
 /*-----------------------------------------------------------------------
  * Set default values
  */
-#ifndef        CFG_I2C_SPEED
-#define        CFG_I2C_SPEED   50000
+#ifndef        CONFIG_SYS_I2C_SPEED
+#define        CONFIG_SYS_I2C_SPEED    50000
 #endif
 
-#ifndef        CFG_I2C_SLAVE
-#define        CFG_I2C_SLAVE   0xFE
+#ifndef        CONFIG_SYS_I2C_SLAVE
+#define        CONFIG_SYS_I2C_SLAVE    0xFE
 #endif
 /*-----------------------------------------------------------------------
  */
@@ -162,7 +162,7 @@ i2c_roundrate(int hz, int speed, int filter, int modval,
 static int
 i2c_setrate (int hz, int speed)
 {
-       immap_t         *immap = (immap_t *) CFG_IMMR;
+       immap_t         *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile i2c8xx_t *i2c = (i2c8xx_t *) & immap->im_i2c;
        int             brgval,
                        modval,         /* 0-3 */
@@ -207,7 +207,7 @@ i2c_setrate (int hz, int speed)
 void
 i2c_init(int speed, int slaveaddr)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR ;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR ;
        volatile cpm8xx_t *cp = (cpm8xx_t *)&immap->im_cpm;
        volatile i2c8xx_t *i2c  = (i2c8xx_t *)&immap->im_i2c;
        volatile iic_t *iip = (iic_t *)&cp->cp_dparam[PROFF_IIC];
@@ -215,21 +215,21 @@ i2c_init(int speed, int slaveaddr)
        volatile I2C_BD *rxbd, *txbd;
        uint dpaddr;
 
-#ifdef CFG_I2C_INIT_BOARD
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
        /* call board specific i2c bus reset routine before accessing the   */
        /* environment, which might be in a chip on that bus. For details   */
        /* about this problem see doc/I2C_Edge_Conditions.                  */
        i2c_init_board();
 #endif
 
-#ifdef CFG_I2C_UCODE_PATCH
+#ifdef CONFIG_SYS_I2C_UCODE_PATCH
        iip = (iic_t *)&cp->cp_dpmem[iip->iic_rpbase];
 #else
        /* Disable relocation */
        iip->iic_rpbase = 0;
 #endif
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = iip->iic_rbase;
        if (dpaddr == 0) {
            /* need to allocate dual port ram */
@@ -269,7 +269,7 @@ i2c_init(int speed, int slaveaddr)
         * divide BRGCLK by 1)
         */
        PRINTD(("[I2C] Setting rate...\n"));
-       i2c_setrate (gd->cpu_clk, CFG_I2C_SPEED) ;
+       i2c_setrate (gd->cpu_clk, CONFIG_SYS_I2C_SPEED) ;
 
        /* Set I2C controller in master mode */
        i2c->i2c_i2com = 0x01;
@@ -295,7 +295,7 @@ i2c_init(int speed, int slaveaddr)
        /* Set maximum receive size. */
        iip->iic_mrblr = I2C_RXTX_LEN;
 
-#ifdef CFG_I2C_UCODE_PATCH
+#ifdef CONFIG_SYS_I2C_UCODE_PATCH
        /*
         *  Initialize required parameters if using microcode patch.
         */
@@ -318,13 +318,13 @@ i2c_init(int speed, int slaveaddr)
 static void
 i2c_newio(i2c_state_t *state)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR ;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR ;
        volatile cpm8xx_t *cp = (cpm8xx_t *)&immap->im_cpm;
        volatile iic_t *iip = (iic_t *)&cp->cp_dparam[PROFF_IIC];
 
        PRINTD(("[I2C] i2c_newio\n"));
 
-#ifdef CFG_I2C_UCODE_PATCH
+#ifdef CONFIG_SYS_I2C_UCODE_PATCH
        iip = (iic_t *)&cp->cp_dpmem[iip->iic_rpbase];
 #endif
        state->rx_idx = 0;
@@ -492,7 +492,7 @@ i2c_receive(i2c_state_t *state,
 
 static int i2c_doio(i2c_state_t *state)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR ;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR ;
        volatile cpm8xx_t *cp = (cpm8xx_t *)&immap->im_cpm;
        volatile i2c8xx_t *i2c  = (i2c8xx_t *)&immap->im_i2c;
        volatile iic_t *iip = (iic_t *)&cp->cp_dparam[PROFF_IIC];
@@ -501,7 +501,7 @@ static int i2c_doio(i2c_state_t *state)
 
        PRINTD(("[I2C] i2c_doio\n"));
 
-#ifdef CFG_I2C_UCODE_PATCH
+#ifdef CONFIG_SYS_I2C_UCODE_PATCH
        iip = (iic_t *)&cp->cp_dpmem[iip->iic_rpbase];
 #endif
 
@@ -593,7 +593,7 @@ int i2c_probe(uchar chip)
        int rc;
        uchar buf[1];
 
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        i2c_newio(&state);
 
@@ -628,7 +628,7 @@ int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)
        xaddr[2] = (addr >>  8) & 0xFF;
        xaddr[3] =  addr        & 0xFF;
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones like
         * Catalyst 24WC04/08/16 which has 9/10/11 bits of address and the
@@ -639,7 +639,7 @@ int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)
         * be one byte because the extra address bits are hidden in the
         * chip address.
         */
-        chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+        chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
 
        i2c_newio(&state);
@@ -678,7 +678,7 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)
        xaddr[2] = (addr >>  8) & 0xFF;
        xaddr[3] =  addr        & 0xFF;
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones like
         * Catalyst 24WC04/08/16 which has 9/10/11 bits of address and the
@@ -689,7 +689,7 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)
         * be one byte because the extra address bits are hidden in the
         * chip address.
         */
-        chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+        chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
 
        i2c_newio(&state);
@@ -722,7 +722,7 @@ i2c_reg_read(uchar i2c_addr, uchar reg)
 {
        uchar buf;
 
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        i2c_read(i2c_addr, reg, 1, &buf, 1);
 
@@ -732,7 +732,7 @@ i2c_reg_read(uchar i2c_addr, uchar reg)
 void
 i2c_reg_write(uchar i2c_addr, uchar reg, uchar val)
 {
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        i2c_write(i2c_addr, reg, 1, &val, 1);
 }
index 20e7012c3724e6b02b7b628973720ff22b6db222..5daa6b2752c3278fc515b2b587007811b24e9537 100644 (file)
@@ -47,9 +47,9 @@ static void cpm_interrupt (void *regs);
 
 int interrupt_init_cpu (unsigned *decrementer_count)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
-       *decrementer_count = get_tbclk () / CFG_HZ;
+       *decrementer_count = get_tbclk () / CONFIG_SYS_HZ;
 
        /* disable all interrupts */
        immr->im_siu_conf.sc_simask = 0;
@@ -67,7 +67,7 @@ int interrupt_init_cpu (unsigned *decrementer_count)
  */
 void external_interrupt (struct pt_regs *regs)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        int irq;
        ulong simask, newmask;
        ulong vec, v_bit;
@@ -124,7 +124,7 @@ void external_interrupt (struct pt_regs *regs)
  */
 static void cpm_interrupt (void *regs)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        uint vec;
 
        /*
@@ -165,7 +165,7 @@ static void cpm_error_interrupt (void *dummy)
 void irq_install_handler (int vec, interrupt_handler_t * handler,
                                                  void *arg)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        if ((vec & CPMVEC_OFFSET) != 0) {
                /* CPM interrupt */
@@ -202,7 +202,7 @@ void irq_install_handler (int vec, interrupt_handler_t * handler,
 
 void irq_free_handler (int vec)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        if ((vec & CPMVEC_OFFSET) != 0) {
                /* CPM interrupt */
@@ -230,7 +230,7 @@ void irq_free_handler (int vec)
 
 static void cpm_interrupt_init (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        /*
         * Initialize the CPM interrupt controller.
@@ -266,7 +266,7 @@ static void cpm_interrupt_init (void)
  */
 void timer_interrupt_cpu (struct pt_regs *regs)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
 #if 0
        printf ("*** Timer Interrupt *** ");
index 812baa3ecd4d5158f2e2e73fc19f9a2417452759..2cc8fe63c9b2ffaa02d44e3679ad47b46b4291bd 100644 (file)
@@ -52,21 +52,21 @@ kgdb_flush_cache_all:
 
        .globl  kgdb_flush_cache_range
 kgdb_flush_cache_range:
-       li      r5,CFG_CACHELINE_SIZE-1
+       li      r5,CONFIG_SYS_CACHELINE_SIZE-1
        andc    r3,r3,r5
        subf    r4,r3,r4
        add     r4,r4,r5
-       srwi.   r4,r4,CFG_CACHELINE_SHIFT
+       srwi.   r4,r4,CONFIG_SYS_CACHELINE_SHIFT
        beqlr
        mtctr   r4
        mr      r6,r3
 1:     dcbst   0,r3
-       addi    r3,r3,CFG_CACHELINE_SIZE
+       addi    r3,r3,CONFIG_SYS_CACHELINE_SIZE
        bdnz    1b
        sync                            /* wait for dcbst's to get to ram */
        mtctr   r4
 2:     icbi    0,r6
-       addi    r6,r6,CFG_CACHELINE_SIZE
+       addi    r6,r6,CONFIG_SYS_CACHELINE_SIZE
        bdnz    2b
        SYNC
        blr
index 3c64a9ba4e0e01fbda6b40621a5b4015ff22404f..4474e24e26a50fc1cbf2d93f5ad8f9d473c6b4c6 100644 (file)
@@ -63,7 +63,7 @@
 #define LCD_BPP        LCD_COLOR4
 
 vidinfo_t panel_info = {
-    640, 480, 132, 99, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH,
+    640, 480, 132, 99, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH,
     LCD_BPP, 1, 0, 1, 0,  5, 0, 0, 0
                /* wbl, vpw, lcdac, wbf */
 };
@@ -76,7 +76,7 @@ vidinfo_t panel_info = {
  *  Hitachi SP19X001-. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 154, 116, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH,
+    640, 480, 154, 116, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH,
     LCD_COLOR8, 1, 0, 1, 0, 0, 0, 0, 0
                /* wbl, vpw, lcdac, wbf */
 };
@@ -89,7 +89,7 @@ vidinfo_t panel_info = {
  *  NEC NL6448AC33-18. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 132, 99, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_HIGH,
+    640, 480, 132, 99, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 144, 2, 0, 33
                /* wbl, vpw, lcdac, wbf */
 };
@@ -101,7 +101,7 @@ vidinfo_t panel_info = {
  *  NEC NL6448BC20-08.  6.5", 640x480. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 132, 99, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_HIGH,
+    640, 480, 132, 99, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 144, 2, 0, 33
                /* wbl, vpw, lcdac, wbf */
 };
@@ -113,7 +113,7 @@ vidinfo_t panel_info = {
  *  NEC NL6448BC33-54. 10.4", 640x480. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 212, 158, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_HIGH,
+    640, 480, 212, 158, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 144, 2, 0, 33
                /* wbl, vpw, lcdac, wbf */
 };
@@ -125,7 +125,7 @@ vidinfo_t panel_info = {
  *  SHARP LQ104V7DS01. 6.5", 640x480. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 132, 99, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_LOW,
+    640, 480, 132, 99, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_LOW,
     3, 0, 0, 1, 1, 25, 1, 0, 33
                /* wbl, vpw, lcdac, wbf */
 };
@@ -138,7 +138,7 @@ vidinfo_t panel_info = {
  * not sure what it is.......
  */
 vidinfo_t panel_info = {
-    320, 240, 0, 0, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH,
+    320, 240, 0, 0, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 15, 4, 0, 3
 };
 #endif /* CONFIG_SHARP_16x9 */
@@ -152,7 +152,7 @@ vidinfo_t panel_info = {
 #define LCD_DF 12
 
 vidinfo_t panel_info = {
-    320, 240, 0, 0, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_HIGH,
+    320, 240, 0, 0, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 15, 4, 0, 3
                /* wbl, vpw, lcdac, wbf */
 };
@@ -165,7 +165,7 @@ vidinfo_t panel_info = {
  * Sharp LQ64D341 display, 640x480. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 0, 0, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_HIGH,
+    640, 480, 0, 0, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 128, 16, 0, 32
                /* wbl, vpw, lcdac, wbf */
 };
@@ -176,7 +176,7 @@ vidinfo_t panel_info = {
  * Sharp LQ065T9DR51U display, 400x240. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    400, 240, 143, 79, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH,
+    400, 240, 143, 79, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 248, 4, 0, 35
                /* wbl, vpw, lcdac, wbf */
 };
@@ -188,7 +188,7 @@ vidinfo_t panel_info = {
  * Sharp LQ084V1DG21 display, 640x480. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 171, 129, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_LOW,
+    640, 480, 171, 129, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_LOW,
     3, 0, 0, 1, 1, 160, 3, 0, 48
                /* wbl, vpw, lcdac, wbf */
 };
@@ -201,7 +201,7 @@ vidinfo_t panel_info = {
  * HLD1045 display, 640x480. Active, color, single scan.
  */
 vidinfo_t panel_info = {
-    640, 480, 0, 0, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_HIGH,
+    640, 480, 0, 0, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 160, 3, 0, 48
                /* wbl, vpw, lcdac, wbf */
 };
@@ -213,7 +213,7 @@ vidinfo_t panel_info = {
  * Prime View V16C6448AC
  */
 vidinfo_t panel_info = {
-    640, 480, 130, 98, CFG_HIGH, CFG_HIGH, CFG_LOW, CFG_LOW, CFG_HIGH,
+    640, 480, 130, 98, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW, CONFIG_SYS_LOW, CONFIG_SYS_HIGH,
     3, 0, 0, 1, 1, 144, 2, 0, 35
                /* wbl, vpw, lcdac, wbf */
 };
@@ -235,7 +235,7 @@ vidinfo_t panel_info = {
                                /* 1 -  4 grey levels, 2 bpp */
                                /* 2 - 16 grey levels, 4 bpp */
 vidinfo_t panel_info = {
-    320, 240, 0, 0, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_LOW,
+    320, 240, 0, 0, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW,
     OPTREX_BPP, 0, 0, 0, 0, 0, 0, 0, 0, 4
 };
 #endif /* CONFIG_OPTREX_BW */
@@ -249,7 +249,7 @@ vidinfo_t panel_info = {
 #define LCD_DF         10
 
 vidinfo_t panel_info = {
-    320, 240, 0, 0, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_HIGH, CFG_LOW,
+    320, 240, 0, 0, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_HIGH, CONFIG_SYS_LOW,
     LCD_BPP,  0, 0, 0, 0, 33, 0, 0, 0
 };
 #endif
@@ -307,7 +307,7 @@ ulong calc_fbsize (void)
 
 void lcd_ctrl_init (void *lcdbase)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile lcd823_t *lcdp = &immr->im_lcd;
 
        uint lccrtmp;
@@ -320,7 +320,7 @@ void lcd_ctrl_init (void *lcdbase)
 
 #ifdef CONFIG_RPXLITE
        /* This is special for RPXlite_DW Software Development Platform **[Sam]** */
-       panel_info.vl_dp = CFG_LOW;
+       panel_info.vl_dp = CONFIG_SYS_LOW;
 #endif
 
        lccrtmp  = LCDBIT (LCCR_BNUM_BIT,
@@ -436,14 +436,14 @@ void lcd_ctrl_init (void *lcdbase)
 static void
 lcd_getcolreg (ushort regno, ushort *red, ushort *green, ushort *blue)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(immr->im_cpm);
        unsigned short colreg, *cmap_ptr;
 
        cmap_ptr = (unsigned short *)&cp->lcd_cmap[regno * 2];
 
        colreg = *cmap_ptr;
-#ifdef CFG_INVERT_COLORS
+#ifdef CONFIG_SYS_INVERT_COLORS
        colreg ^= 0x0FFF;
 #endif
 
@@ -459,7 +459,7 @@ lcd_getcolreg (ushort regno, ushort *red, ushort *green, ushort *blue)
 void
 lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(immr->im_cpm);
        unsigned short colreg, *cmap_ptr;
 
@@ -468,7 +468,7 @@ lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue)
        colreg = ((red   & 0x0F) << 8) |
                 ((green & 0x0F) << 4) |
                  (blue  & 0x0F) ;
-#ifdef CFG_INVERT_COLORS
+#ifdef CONFIG_SYS_INVERT_COLORS
        colreg ^= 0x0FFF;
 #endif
        *cmap_ptr = colreg;
@@ -486,7 +486,7 @@ lcd_setcolreg (ushort regno, ushort red, ushort green, ushort blue)
 static
 void lcd_initcolregs (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(immr->im_cpm);
        ushort regno;
 
@@ -501,7 +501,7 @@ void lcd_initcolregs (void)
 
 void lcd_enable (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile lcd823_t *lcdp = &immr->im_lcd;
 
        /* Enable the LCD panel */
@@ -521,7 +521,7 @@ void lcd_enable (void)
 
 #if defined(CONFIG_LWMON)
     {  uchar c = pic_read (0x60);
-#if defined(CONFIG_LCD) && defined(CONFIG_LWMON) && (CONFIG_POST & CFG_POST_SYSMON)
+#if defined(CONFIG_LCD) && defined(CONFIG_LWMON) && (CONFIG_POST & CONFIG_SYS_POST_SYSMON)
        /* Enable LCD later in sysmon test, only if temperature is OK */
 #else
        c |= 0x07;      /* Power on CCFL, Enable CCFL, Chip Enable LCD */
@@ -586,7 +586,7 @@ void lcd_enable (void)
 #if defined (CONFIG_RBC823)
 void lcd_disable (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile lcd823_t *lcdp = &immr->im_lcd;
 
 #if defined(CONFIG_LWMON)
index 09a6348fd0ee93ba01aaa072778e028986343776..effb967e3254d24d819280ce225e04c879304db4 100644 (file)
@@ -191,7 +191,7 @@ static int scc_init (struct eth_device *dev, bd_t * bis)
        int i;
        scc_enet_t *pram_ptr;
 
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
 #if defined(CONFIG_LWMON)
        reset_phy();
@@ -216,7 +216,7 @@ static int scc_init (struct eth_device *dev, bd_t * bis)
        txIdx = 0;
 
        if (!rtx) {
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
                rtx = (RTXBD *) (immr->im_cpm.cp_dpmem +
                                 dpram_alloc_align (sizeof (RTXBD), 8));
 #else
@@ -552,7 +552,7 @@ static int scc_init (struct eth_device *dev, bd_t * bis)
 
 static void scc_halt (struct eth_device *dev)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        immr->im_cpm.cp_scc[SCC_ENET].scc_gsmrl &=
                ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);
@@ -563,7 +563,7 @@ static void scc_halt (struct eth_device *dev)
 #if 0
 void restart (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        immr->im_cpm.cp_scc[SCC_ENET].scc_gsmrl |=
                (SCC_GSMRL_ENR | SCC_GSMRL_ENT);
index ad0229999fa43a4ca60918f441c71d9919e14d15..cae90ddaf532cd398ccf780ea96c43908c0b0e4c 100644 (file)
@@ -74,8 +74,8 @@ static void serial_setdivisor(volatile cpm8xx_t *cp)
                divisor=(50*1000*1000 + 8*9600)/16/9600;
        }
 
-#ifdef CFG_BRGCLK_PRESCALE
-       divisor /= CFG_BRGCLK_PRESCALE;
+#ifdef CONFIG_SYS_BRGCLK_PRESCALE
+       divisor /= CONFIG_SYS_BRGCLK_PRESCALE;
 #endif
 
        if(divisor<=0x1000) {
@@ -94,7 +94,7 @@ static void serial_setdivisor(volatile cpm8xx_t *cp)
 
 static void smc_setbrg (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(im->im_cpm);
 
        /* Set up the baud rate generator.
@@ -110,7 +110,7 @@ static void smc_setbrg (void)
 
 static int smc_init (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile smc_t *sp;
        volatile smc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -124,7 +124,7 @@ static int smc_init (void)
 
        sp = (smc_t *) &(cp->cp_smc[SMC_INDEX]);
        up = (smc_uart_t *) &cp->cp_dparam[PROFF_SMC];
-#ifdef CFG_SMC_UCODE_PATCH
+#ifdef CONFIG_SYS_SMC_UCODE_PATCH
        up = (smc_uart_t *) &cp->cp_dpmem[up->smc_rpbase];
 #else
        /* Disable relocation */
@@ -140,15 +140,15 @@ static int smc_init (void)
        im->im_siu_conf.sc_sdcr = 1;
 
        /* clear error conditions */
-#ifdef CFG_SDSR
-       im->im_sdma.sdma_sdsr = CFG_SDSR;
+#ifdef CONFIG_SYS_SDSR
+       im->im_sdma.sdma_sdsr = CONFIG_SYS_SDSR;
 #else
        im->im_sdma.sdma_sdsr = 0x83;
 #endif
 
        /* clear SDMA interrupt mask */
-#ifdef CFG_SDMR
-       im->im_sdma.sdma_sdmr = CFG_SDMR;
+#ifdef CONFIG_SYS_SDMR
+       im->im_sdma.sdma_sdmr = CONFIG_SYS_SDMR;
 #else
        im->im_sdma.sdma_sdmr = 0x00;
 #endif
@@ -193,7 +193,7 @@ static int smc_init (void)
         * the buffer descriptors.
         */
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = dpram_alloc_align (sizeof(cbd_t)*2 + 2, 8) ;
 #else
        dpaddr = CPM_SERIAL_BASE ;
@@ -218,7 +218,7 @@ static int smc_init (void)
        up->smc_tbase = dpaddr+sizeof(cbd_t);
        up->smc_rfcr = SMC_EB;
        up->smc_tfcr = SMC_EB;
-#if defined (CFG_SMC_UCODE_PATCH)
+#if defined (CONFIG_SYS_SMC_UCODE_PATCH)
        up->smc_rbptr = up->smc_rbase;
        up->smc_tbptr = up->smc_tbase;
        up->smc_rstate = 0;
@@ -239,11 +239,11 @@ static int smc_init (void)
        sp->smc_smcm = 0;
        sp->smc_smce = 0xff;
 
-#ifdef CFG_SPC1920_SMC1_CLK4
+#ifdef CONFIG_SYS_SPC1920_SMC1_CLK4
        /* clock source is PLD */
 
        /* set freq to 19200 Baud */
-       *((volatile uchar *) CFG_SPC1920_PLD_BASE+6) = 0x3;
+       *((volatile uchar *) CONFIG_SYS_SPC1920_PLD_BASE+6) = 0x3;
        /* configure clk4 as input */
        im->im_ioport.iop_pdpar |= 0x800;
        im->im_ioport.iop_pddir &= ~0x800;
@@ -288,7 +288,7 @@ smc_putc(const char c)
        volatile cbd_t          *tbdf;
        volatile char           *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
 
 #ifdef CONFIG_MODEM_SUPPORT
@@ -300,7 +300,7 @@ smc_putc(const char c)
                smc_putc ('\r');
 
        up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
-#ifdef CFG_SMC_UCODE_PATCH
+#ifdef CONFIG_SYS_SMC_UCODE_PATCH
        up = (smc_uart_t *) &cpmp->cp_dpmem[up->smc_rpbase];
 #endif
 
@@ -336,12 +336,12 @@ smc_getc(void)
        volatile cbd_t          *rbdf;
        volatile unsigned char  *buf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
        unsigned char           c;
 
        up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
-#ifdef CFG_SMC_UCODE_PATCH
+#ifdef CONFIG_SYS_SMC_UCODE_PATCH
        up = (smc_uart_t *) &cpmp->cp_dpmem[up->smc_rpbase];
 #endif
 
@@ -365,11 +365,11 @@ smc_tstc(void)
 {
        volatile cbd_t          *rbdf;
        volatile smc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
 
        up = (smc_uart_t *)&cpmp->cp_dparam[PROFF_SMC];
-#ifdef CFG_SMC_UCODE_PATCH
+#ifdef CONFIG_SYS_SMC_UCODE_PATCH
        up = (smc_uart_t *) &cpmp->cp_dpmem[up->smc_rpbase];
 #endif
 
@@ -398,7 +398,7 @@ struct serial_device serial_smc_device =
 static void
 scc_setbrg (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(im->im_cpm);
 
        /* Set up the baud rate generator.
@@ -414,7 +414,7 @@ scc_setbrg (void)
 
 static int scc_init (void)
 {
-       volatile immap_t *im = (immap_t *)CFG_IMMR;
+       volatile immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile scc_t *sp;
        volatile scc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -474,7 +474,7 @@ static int scc_init (void)
        /* Allocate space for two buffer descriptors in the DP ram.
         */
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = dpram_alloc_align (sizeof(cbd_t)*2 + 2, 8) ;
 #else
        dpaddr = CPM_SERIAL2_BASE ;
@@ -580,7 +580,7 @@ scc_putc(const char c)
        volatile cbd_t          *tbdf;
        volatile char           *buf;
        volatile scc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
 
 #ifdef CONFIG_MODEM_SUPPORT
@@ -625,7 +625,7 @@ scc_getc(void)
        volatile cbd_t          *rbdf;
        volatile unsigned char  *buf;
        volatile scc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
        unsigned char           c;
 
@@ -651,7 +651,7 @@ scc_tstc(void)
 {
        volatile cbd_t          *rbdf;
        volatile scc_uart_t     *up;
-       volatile immap_t        *im = (immap_t *)CFG_IMMR;
+       volatile immap_t        *im = (immap_t *)CONFIG_SYS_IMMR;
        volatile cpm8xx_t       *cpmp = &(im->im_cpm);
 
        up = (scc_uart_t *)&cpmp->cp_dparam[PROFF_SCC];
index 070babcc9a3b4f88b0c30d22f82e3b4aa620da54..f309f29c0493422c2c09b73c319b1f2b2efe7729 100644 (file)
@@ -27,7 +27,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if !defined(CONFIG_8xx_CPUCLK_DEFAULT) || defined(CFG_MEASURE_CPUCLK) || defined(DEBUG)
+#if !defined(CONFIG_8xx_CPUCLK_DEFAULT) || defined(CONFIG_SYS_MEASURE_CPUCLK) || defined(DEBUG)
 
 #define PITC_SHIFT 16
 #define PITR_SHIFT 16
@@ -87,12 +87,12 @@ static __inline__ void set_msr(unsigned long msr)
 
 unsigned long measure_gclk(void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpmtimer8xx_t *timerp = &immr->im_cpmtimer;
        ulong timer2_val;
        ulong msr_val;
 
-#ifdef CFG_8XX_XIN
+#ifdef CONFIG_SYS_8XX_XIN
        /* dont use OSCM, only use EXTCLK/512 */
        immr->im_clkrst.car_sccr |= SCCR_RTSEL | SCCR_RTDIV;
 #else
@@ -137,7 +137,7 @@ unsigned long measure_gclk(void)
        immr->im_sit.sit_pitc = SPEED_PITC_INIT;
 
        immr->im_sitk.sitk_piscrk = KAPWR_KEY;
-       immr->im_sit.sit_piscr = CFG_PISCR;
+       immr->im_sit.sit_piscr = CONFIG_SYS_PISCR;
 
        /*
         * Start measurement - disable interrupts, just in case
@@ -164,9 +164,9 @@ unsigned long measure_gclk(void)
        timerp->cpmt_tgcr &= ~(TGCR_RST2 | TGCR_FRZ2 | TGCR_STP2);
        immr->im_sit.sit_piscr &= ~PISCR_PTE;
 
-#if defined(CFG_8XX_XIN)
+#if defined(CONFIG_SYS_8XX_XIN)
        /* not using OSCM, using XIN, so scale appropriately */
-       return (((timer2_val + 2) / 4) * (CFG_8XX_XIN/512))/8192 * 100000L;
+       return (((timer2_val + 2) / 4) * (CONFIG_SYS_8XX_XIN/512))/8192 * 100000L;
 #else
        return ((timer2_val + 2) / 4) * 100000L;        /* convert to Hz        */
 #endif
@@ -261,7 +261,7 @@ static long init_pll_866 (long clk);
  */
 int get_clocks_866 (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        char              tmp[64];
        long              cpuclk = 0;
        long              sccr_reg;
@@ -269,11 +269,11 @@ int get_clocks_866 (void)
        if (getenv_r ("cpuclk", tmp, sizeof (tmp)) > 0)
                cpuclk = simple_strtoul (tmp, NULL, 10) * 1000000;
 
-       if ((CFG_8xx_CPUCLK_MIN > cpuclk) || (CFG_8xx_CPUCLK_MAX < cpuclk))
+       if ((CONFIG_SYS_8xx_CPUCLK_MIN > cpuclk) || (CONFIG_SYS_8xx_CPUCLK_MAX < cpuclk))
                cpuclk = CONFIG_8xx_CPUCLK_DEFAULT;
 
        gd->cpu_clk = init_pll_866 (cpuclk);
-#if defined(CFG_MEASURE_CPUCLK)
+#if defined(CONFIG_SYS_MEASURE_CPUCLK)
        gd->cpu_clk = measure_gclk ();
 #endif
 
@@ -301,12 +301,12 @@ int get_clocks_866 (void)
  */
 int sdram_adjust_866 (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        long              mamr;
 
        mamr = immr->im_memctl.memc_mamr;
        mamr &= ~MAMR_PTA_MSK;
-       mamr |= ((gd->cpu_clk / CFG_PTA_PER_CLK) << MAMR_PTA_SHIFT);
+       mamr |= ((gd->cpu_clk / CONFIG_SYS_PTA_PER_CLK) << MAMR_PTA_SHIFT);
        immr->im_memctl.memc_mamr = mamr;
 
        return (0);
@@ -320,7 +320,7 @@ static long init_pll_866 (long clk)
 {
        extern void plprcr_write_866 (long);
 
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        long              n, plprcr;
        char              mfi, mfn, mfd, s, pdf;
        long              step_mfi, step_mfn;
@@ -394,13 +394,13 @@ static long init_pll_866 (long clk)
  */
 int adjust_sdram_tbs_8xx (void)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        long              mamr;
        long              sccr;
 
        mamr = immr->im_memctl.memc_mamr;
        mamr &= ~MAMR_PTA_MSK;
-       mamr |= ((gd->cpu_clk / CFG_PTA_PER_CLK) << MAMR_PTA_SHIFT);
+       mamr |= ((gd->cpu_clk / CONFIG_SYS_PTA_PER_CLK) << MAMR_PTA_SHIFT);
        immr->im_memctl.memc_mamr = mamr;
 
        if (gd->cpu_clk < 67000000) {
index e318ed0d298aefa9bc84c0ee4e27d0a2a1522083..b2ac23e5ea4b9bc140ee49c45381fc042108f56f 100644 (file)
@@ -41,7 +41,7 @@
 #include <post.h>
 #include <serial.h>
 
-#if (defined(CONFIG_SPI)) || (CONFIG_POST & CFG_POST_SPI)
+#if (defined(CONFIG_SPI)) || (CONFIG_POST & CONFIG_SYS_POST_SPI)
 
 /* Warning:
  * You cannot enable DEBUG for early system initalization, i. e. when
@@ -64,8 +64,8 @@
  * The value 0xb00 makes it far enough from the start of the data
  * area (as well as from the stack pointer).
  * --------------------------------------------------------------- */
-#ifndef        CFG_SPI_INIT_OFFSET
-#define        CFG_SPI_INIT_OFFSET     0xB00
+#ifndef        CONFIG_SYS_SPI_INIT_OFFSET
+#define        CONFIG_SYS_SPI_INIT_OFFSET      0xB00
 #endif
 
 #ifdef DEBUG
@@ -118,11 +118,11 @@ ssize_t spi_xfer (size_t);
  * Initially we place the RX and TX buffers at a fixed location in DPRAM!
  * ---------------------------------------------------------------------- */
 static uchar *rxbuf =
-  (uchar *)&((cpm8xx_t *)&((immap_t *)CFG_IMMR)->im_cpm)->cp_dpmem
-                       [CFG_SPI_INIT_OFFSET];
+  (uchar *)&((cpm8xx_t *)&((immap_t *)CONFIG_SYS_IMMR)->im_cpm)->cp_dpmem
+                       [CONFIG_SYS_SPI_INIT_OFFSET];
 static uchar *txbuf =
-  (uchar *)&((cpm8xx_t *)&((immap_t *)CFG_IMMR)->im_cpm)->cp_dpmem
-                       [CFG_SPI_INIT_OFFSET+MAX_BUFFER];
+  (uchar *)&((cpm8xx_t *)&((immap_t *)CONFIG_SYS_IMMR)->im_cpm)->cp_dpmem
+                       [CONFIG_SYS_SPI_INIT_OFFSET+MAX_BUFFER];
 
 /* **************************************************************************
  *
@@ -144,12 +144,12 @@ void spi_init_f (void)
        volatile iop8xx_t *iop;
        volatile cbd_t *tbdf, *rbdf;
 
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        cpi  = (cpic8xx_t *)&immr->im_cpic;
        iop  = (iop8xx_t *) &immr->im_ioport;
        cp   = (cpm8xx_t *) &immr->im_cpm;
 
-#ifdef CFG_SPI_UCODE_PATCH
+#ifdef CONFIG_SYS_SPI_UCODE_PATCH
        spi  = (spi_t *)&cp->cp_dpmem[spi->spi_rpbase];
 #else
        spi  = (spi_t *)&cp->cp_dparam[PROFF_SPI];
@@ -210,7 +210,7 @@ void spi_init_f (void)
        /* Allocate space for one transmit and one receive buffer
         * descriptor in the DP ram
         */
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = dpram_alloc_align (sizeof(cbd_t)*2, 8);
 #else
        dpaddr = CPM_SPI_BASE;
@@ -234,7 +234,7 @@ void spi_init_f (void)
        spi->spi_tbptr = spi->spi_tbase;
 
 /* 4 */
-#ifdef CFG_SPI_UCODE_PATCH
+#ifdef CONFIG_SYS_SPI_UCODE_PATCH
        /*
         *  Initialize required parameters if using microcode patch.
         */
@@ -247,7 +247,7 @@ void spi_init_f (void)
        cp->cp_cpcr = mk_cr_cmd(CPM_CR_CH_SPI, CPM_CR_INIT_TRX) | CPM_CR_FLG;
        while (cp->cp_cpcr & CPM_CR_FLG)
                ;
-#endif /* CFG_SPI_UCODE_PATCH */
+#endif /* CONFIG_SYS_SPI_UCODE_PATCH */
 
 /* 5 */
        /* Set SDMA configuration register */
@@ -299,10 +299,10 @@ void spi_init_r (void)
        volatile immap_t *immr;
        volatile cbd_t *tbdf, *rbdf;
 
-       immr = (immap_t *)  CFG_IMMR;
+       immr = (immap_t *)  CONFIG_SYS_IMMR;
        cp   = (cpm8xx_t *) &immr->im_cpm;
 
-#ifdef CFG_SPI_UCODE_PATCH
+#ifdef CONFIG_SYS_SPI_UCODE_PATCH
        spi  = (spi_t *)&cp->cp_dpmem[spi->spi_rpbase];
 #else
        spi  = (spi_t *)&cp->cp_dparam[PROFF_SPI];
@@ -392,10 +392,10 @@ ssize_t spi_xfer (size_t count)
 
        DPRINT (("*** spi_xfer entered ***\n"));
 
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        cp   = (cpm8xx_t *) &immr->im_cpm;
 
-#ifdef CFG_SPI_UCODE_PATCH
+#ifdef CONFIG_SYS_SPI_UCODE_PATCH
        spi  = (spi_t *)&cp->cp_dpmem[spi->spi_rpbase];
 #else
        spi  = (spi_t *)&cp->cp_dparam[PROFF_SPI];
@@ -468,7 +468,7 @@ ssize_t spi_xfer (size_t count)
 
        return count;
 }
-#endif /* CONFIG_SPI || (CONFIG_POST & CFG_POST_SPI) */
+#endif /* CONFIG_SPI || (CONFIG_POST & CONFIG_SYS_POST_SPI) */
 
 /*
  * SPI test
@@ -481,7 +481,7 @@ ssize_t spi_xfer (size_t count)
  *   TEST_NUM - number of tests
  */
 
-#if CONFIG_POST & CFG_POST_SPI
+#if CONFIG_POST & CONFIG_SYS_POST_SPI
 
 #define TEST_MIN_LENGTH                1
 #define TEST_MAX_LENGTH                MAX_BUFFER
@@ -513,7 +513,7 @@ static int packet_check (char * packet, int length)
 int spi_post_test (int flags)
 {
        int res = -1;
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = (cpm8xx_t *) & immr->im_cpm;
        int i;
        int l;
@@ -557,4 +557,4 @@ int spi_post_test (int flags)
 
        return res;
 }
-#endif /* CONFIG_POST & CFG_POST_SPI */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_SPI */
index eca4b50626dce0f6ef3f175d9e23a9d4d85b6708..7b75660de1287b2e9f32fa0728e78e4eab3de3a0 100644 (file)
@@ -93,7 +93,7 @@ version_string:
        . = EXC_OFF_SYS_RESET
        .globl  _start
 _start:
-       lis     r3, CFG_IMMR@h          /* position IMMR */
+       lis     r3, CONFIG_SYS_IMMR@h           /* position IMMR */
        mtspr   638, r3
        li      r21, BOOTFLAG_COLD      /* Normal Power-On: Boot from FLASH     */
        b       boot_cold
@@ -159,8 +159,8 @@ boot_warm:
         * Calculate absolute address in FLASH and jump there
         *----------------------------------------------------------------------*/
 
-       lis     r3, CFG_MONITOR_BASE@h
-       ori     r3, r3, CFG_MONITOR_BASE@l
+       lis     r3, CONFIG_SYS_MONITOR_BASE@h
+       ori     r3, r3, CONFIG_SYS_MONITOR_BASE@l
        addi    r3, r3, in_flash - _start + EXC_OFF_SYS_RESET
        mtlr    r3
        blr
@@ -170,8 +170,8 @@ in_flash:
        /* initialize some SPRs that are hard to access from C                  */
        /*----------------------------------------------------------------------*/
 
-       lis     r3, CFG_IMMR@h          /* pass IMMR as arg1 to C routine */
-       ori     r1, r3, CFG_INIT_SP_OFFSET /* set up the stack in internal DPRAM */
+       lis     r3, CONFIG_SYS_IMMR@h           /* pass IMMR as arg1 to C routine */
+       ori     r1, r3, CONFIG_SYS_INIT_SP_OFFSET /* set up the stack in internal DPRAM */
        /* Note: R0 is still 0 here */
        stwu    r0, -4(r1)              /* clear final stack frame so that      */
        stwu    r0, -4(r1)              /* stack backtraces terminate cleanly   */
@@ -187,8 +187,8 @@ in_flash:
 
        /* Set up debug mode entry */
 
-       lis     r2, CFG_DER@h
-       ori     r2, r2, CFG_DER@l
+       lis     r2, CONFIG_SYS_DER@h
+       ori     r2, r2, CONFIG_SYS_DER@l
        mtspr   DER, r2
 
        /* let the C-code set up the rest                                       */
@@ -495,16 +495,16 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address     */
 
        mr      r3,  r5                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
-       li      r6, CFG_CACHELINE_SIZE          /* Cache Line Size      */
+       li      r6, CONFIG_SYS_CACHELINE_SIZE           /* Cache Line Size      */
 
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
index 4d6c522467972ec1db77484bb703a88f7b9c171e..a8cb735ab7717e7e5ea3821059f11bbc0eacda5c 100644 (file)
@@ -1,8 +1,8 @@
 #include <common.h>
 #include <commproc.h>
 
-#if defined(CFG_I2C_UCODE_PATCH) || defined(CFG_SPI_UCODE_PATCH) || \
-    defined(CFG_SMC_UCODE_PATCH)
+#if defined(CONFIG_SYS_I2C_UCODE_PATCH) || defined(CONFIG_SYS_SPI_UCODE_PATCH) || \
+    defined(CONFIG_SYS_SMC_UCODE_PATCH)
 
 static void UcodeCopy (volatile cpm8xx_t *cpm);
 
@@ -11,36 +11,36 @@ void cpm_load_patch (volatile immap_t *immr)
        immr->im_cpm.cp_rccr &= ~0x0003;        /* Disable microcode program area */
 
        UcodeCopy ((cpm8xx_t *)&immr->im_cpm);  /* Copy ucode patch to DPRAM   */
-#ifdef CFG_SPI_UCODE_PATCH
+#ifdef CONFIG_SYS_SPI_UCODE_PATCH
     {
        volatile spi_t *spi = (spi_t *) & immr->im_cpm.cp_dparam[PROFF_SPI];
        /* Activate the microcode per the instructions in the microcode manual */
        /* NOTE:  We're only relocating the SPI parameters (not I2C).          */
        immr->im_cpm.cp_cpmcr1 = 0x802a;        /* Write Trap register 1 value */
        immr->im_cpm.cp_cpmcr2 = 0x8028;        /* Write Trap register 2 value */
-       spi->spi_rpbase = CFG_SPI_DPMEM_OFFSET; /* Where to relocte SPI params */
+       spi->spi_rpbase = CONFIG_SYS_SPI_DPMEM_OFFSET;  /* Where to relocte SPI params */
     }
 #endif
 
-#ifdef CFG_I2C_UCODE_PATCH
+#ifdef CONFIG_SYS_I2C_UCODE_PATCH
     {
        volatile iic_t *iip = (iic_t *) & immr->im_cpm.cp_dparam[PROFF_IIC];
        /* Activate the microcode per the instructions in the microcode manual */
        /* NOTE:  We're only relocating the I2C parameters (not SPI).          */
        immr->im_cpm.cp_cpmcr3 = 0x802e;        /* Write Trap register 3 value */
        immr->im_cpm.cp_cpmcr4 = 0x802c;        /* Write Trap register 4 value */
-       iip->iic_rpbase = CFG_I2C_DPMEM_OFFSET; /* Where to relocte I2C params */
+       iip->iic_rpbase = CONFIG_SYS_I2C_DPMEM_OFFSET;  /* Where to relocte I2C params */
     }
 #endif
 
-#ifdef CFG_SMC_UCODE_PATCH
+#ifdef CONFIG_SYS_SMC_UCODE_PATCH
     {
        volatile smc_uart_t *up = (smc_uart_t *) & immr->im_cpm.cp_dparam[PROFF_SMC1];
        /* Activate the microcode per the instructions in the microcode manual */
        /* NOTE:  We're only relocating the SMC parameters.                    */
        immr->im_cpm.cp_cpmcr1 = 0x8080;        /* Write Trap register 1 value */
        immr->im_cpm.cp_cpmcr2 = 0x8088;        /* Write Trap register 2 value */
-       up->smc_rpbase = CFG_SMC_DPMEM_OFFSET;  /* Where to relocte SMC params */
+       up->smc_rpbase = CONFIG_SYS_SMC_DPMEM_OFFSET;   /* Where to relocte SMC params */
     }
 #endif
 
@@ -48,14 +48,14 @@ void cpm_load_patch (volatile immap_t *immr)
         * Enable DPRAM microcode to execute from the first 512 bytes
         * and a 256 byte extension of DPRAM.
         */
-#ifdef CFG_SMC_UCODE_PATCH
+#ifdef CONFIG_SYS_SMC_UCODE_PATCH
        immr->im_cpm.cp_rccr |= 0x0002;
 #else
        immr->im_cpm.cp_rccr |= 0x0001;
 #endif
 }
 
-#if defined(CFG_I2C_UCODE_PATCH) || defined(CFG_SPI_UCODE_PATCh)
+#if defined(CONFIG_SYS_I2C_UCODE_PATCH) || defined(CONFIG_SYS_SPI_UCODE_PATCh)
 static ulong patch_2000[] = {
        0x7FFFEFD9, 0x3FFD0000, 0x7FFB49F7, 0x7FF90000,
        0x5FEFADF7, 0x5F88ADF7, 0x5FEFAFF7, 0x5F88AFF7,
@@ -191,4 +191,4 @@ static void UcodeCopy (volatile cpm8xx_t *cpm)
        }
 }
 
-#endif /* CFG_I2C_UCODE_PATCH, CFG_SPI_UCODE_PATCH */
+#endif /* CONFIG_SYS_I2C_UCODE_PATCH, CONFIG_SYS_SPI_UCODE_PATCH */
index ef91165602df3fcad7a1902eef8a7edb74d55484..2e6a22a94bc00944f93c70e8538ff1276d5de4f4 100644 (file)
@@ -517,7 +517,7 @@ static void inline video_mode_addentry (VRAM * vr,
 
 static int video_mode_generate (void)
 {
-       immap_t *immap = (immap_t *) CFG_IMMR;
+       immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        VRAM *vr = (VRAM *) (((void *) immap) + 0xb00); /* Pointer to the VRAM table */
        int DX, X1, X2, DY, Y1, Y2, entry = 0, fifo;
 
@@ -808,7 +808,7 @@ static void video_encoder_init (void)
 
        /* Initialize the I2C */
        debug ("[VIDEO ENCODER] Initializing I2C bus...\n");
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
 #ifdef CONFIG_FADS
        /* Reset ADV7176 chip */
@@ -856,7 +856,7 @@ static void video_encoder_init (void)
 
 static void video_ctrl_init (void *memptr)
 {
-       immap_t *immap = (immap_t *) CFG_IMMR;
+       immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        video_fb_address = memptr;
 
@@ -1235,13 +1235,13 @@ static int video_init (void *videobase)
        video_setpalette  (CONSOLE_COLOR_GREY2,   0xF8, 0xF8, 0xF8);
        video_setpalette  (CONSOLE_COLOR_WHITE,   0xFF, 0xFF, 0xFF);
 
-#ifndef CFG_WHITE_ON_BLACK
+#ifndef CONFIG_SYS_WHITE_ON_BLACK
        video_setfgcolor (CONSOLE_COLOR_BLACK);
        video_setbgcolor (CONSOLE_COLOR_GREY2);
 #else
        video_setfgcolor (CONSOLE_COLOR_GREY2);
        video_setbgcolor (CONSOLE_COLOR_BLACK);
-#endif /* CFG_WHITE_ON_BLACK */
+#endif /* CONFIG_SYS_WHITE_ON_BLACK */
 
 #ifdef CONFIG_VIDEO_LOGO
        /* Paint the logo and retrieve tv base address */
index f5dc40a537cae157acdd5f1d99e92132e1484c87..0d79be32219c26826a40314e4b287eb208409530 100644 (file)
@@ -31,17 +31,17 @@ compute_dimm_parameters(const generic_spd_eeprom_t *spd,
  *
  * All data structures have to be on the stack
  */
-#define CFG_NUM_DDR_CTLRS CONFIG_NUM_DDR_CONTROLLERS
-#define CFG_DIMM_SLOTS_PER_CTLR CONFIG_DIMM_SLOTS_PER_CTLR
+#define CONFIG_SYS_NUM_DDR_CTLRS CONFIG_NUM_DDR_CONTROLLERS
+#define CONFIG_SYS_DIMM_SLOTS_PER_CTLR CONFIG_DIMM_SLOTS_PER_CTLR
 
 typedef struct {
        generic_spd_eeprom_t
-          spd_installed_dimms[CFG_NUM_DDR_CTLRS][CFG_DIMM_SLOTS_PER_CTLR];
+          spd_installed_dimms[CONFIG_SYS_NUM_DDR_CTLRS][CONFIG_SYS_DIMM_SLOTS_PER_CTLR];
        struct dimm_params_s
-          dimm_params[CFG_NUM_DDR_CTLRS][CFG_DIMM_SLOTS_PER_CTLR];
-       memctl_options_t memctl_opts[CFG_NUM_DDR_CTLRS];
-       common_timing_params_t common_timing_params[CFG_NUM_DDR_CTLRS];
-       fsl_ddr_cfg_regs_t fsl_ddr_config_reg[CFG_NUM_DDR_CTLRS];
+          dimm_params[CONFIG_SYS_NUM_DDR_CTLRS][CONFIG_SYS_DIMM_SLOTS_PER_CTLR];
+       memctl_options_t memctl_opts[CONFIG_SYS_NUM_DDR_CTLRS];
+       common_timing_params_t common_timing_params[CONFIG_SYS_NUM_DDR_CTLRS];
+       fsl_ddr_cfg_regs_t fsl_ddr_config_reg[CONFIG_SYS_NUM_DDR_CTLRS];
 } fsl_ddr_info_t;
 
 /* Compute steps */
index c2cd8fead0ebe7c4cfdf342093f2bc0b674f19bf..2c2e838de84c22f7e394107592ad1fae82231a85 100644 (file)
@@ -27,8 +27,8 @@
 #include <command.h>
 #include <nios-io.h>
 
-#if !defined(CFG_NIOS_ASMIBASE)
-#error "*** CFG_NIOS_ASMIBASE not defined ***"
+#if !defined(CONFIG_SYS_NIOS_ASMIBASE)
+#error "*** CONFIG_SYS_NIOS_ASMIBASE not defined ***"
 #endif
 
 /*-----------------------------------------------------------------------*/
@@ -69,7 +69,7 @@
 #define ASMI_STATUS_WIP                (1<<0)  /* Write in progress */
 #define ASMI_STATUS_WEL                (1<<1)  /* Write enable latch */
 
-static nios_asmi_t *asmi = (nios_asmi_t *)CFG_NIOS_ASMIBASE;
+static nios_asmi_t *asmi = (nios_asmi_t *)CONFIG_SYS_NIOS_ASMIBASE;
 
 /***********************************************************************
  * Device access
index 75e491d8436cbbc1f3bd3e432c42d6da111f039b..55a571857414eb4d577ed94e6290a06a57ee0ab8 100644 (file)
@@ -68,15 +68,15 @@ void set_timer (ulong t)
 /* The board must handle this interrupt if a timer is not
  * provided.
  */
-#if defined(CFG_NIOS_TMRBASE)
+#if defined(CONFIG_SYS_NIOS_TMRBASE)
 void timer_interrupt (struct pt_regs *regs)
 {
        /* Interrupt is cleared by writing anything to the
         * status register.
         */
-       nios_timer_t *tmr = (nios_timer_t *)CFG_NIOS_TMRBASE;
+       nios_timer_t *tmr = (nios_timer_t *)CONFIG_SYS_NIOS_TMRBASE;
        tmr->status = 0;
-       timestamp += CFG_NIOS_TMRMS;
+       timestamp += CONFIG_SYS_NIOS_TMRMS;
 #ifdef CONFIG_STATUS_LED
        status_led_tick(timestamp);
 #endif
@@ -125,14 +125,14 @@ int interrupt_init (void)
 {
        int vec;
 
-#if defined(CFG_NIOS_TMRBASE)
-       nios_timer_t *tmr = (nios_timer_t *)CFG_NIOS_TMRBASE;
+#if defined(CONFIG_SYS_NIOS_TMRBASE)
+       nios_timer_t *tmr = (nios_timer_t *)CONFIG_SYS_NIOS_TMRBASE;
 
        tmr->control &= ~NIOS_TIMER_ITO;
        tmr->control |= NIOS_TIMER_STOP;
-#if defined(CFG_NIOS_TMRCNT)
-       tmr->periodl = CFG_NIOS_TMRCNT & 0xffff;
-       tmr->periodh = (CFG_NIOS_TMRCNT >> 16) & 0xffff;
+#if defined(CONFIG_SYS_NIOS_TMRCNT)
+       tmr->periodl = CONFIG_SYS_NIOS_TMRCNT & 0xffff;
+       tmr->periodh = (CONFIG_SYS_NIOS_TMRCNT >> 16) & 0xffff;
 #endif
 #endif
 
@@ -143,11 +143,11 @@ int interrupt_init (void)
        }
 
        /* Need timus interruptus -- start the lopri timer */
-#if defined(CFG_NIOS_TMRBASE)
+#if defined(CONFIG_SYS_NIOS_TMRBASE)
        tmr->control |= ( NIOS_TIMER_ITO |
                          NIOS_TIMER_CONT |
                          NIOS_TIMER_START );
-       ipri (CFG_NIOS_TMRIRQ + 1);
+       ipri (CONFIG_SYS_NIOS_TMRIRQ + 1);
 #endif
        enable_interrupts ();
        return (0);
index 5ecdc6d7ea128ef8e831d8032656518d559496d2..44aa6001f599049db8e8979f483fae4c732e2128 100644 (file)
@@ -33,7 +33,7 @@ DECLARE_GLOBAL_DATA_PTR;
  *-----------------------------------------------------------------*/
 #if defined(CONFIG_CONSOLE_JTAG)
 
-static nios_jtag_t *jtag = (nios_jtag_t *)CFG_NIOS_CONSOLE;
+static nios_jtag_t *jtag = (nios_jtag_t *)CONFIG_SYS_NIOS_CONSOLE;
 
 void serial_setbrg( void ){ return; }
 int serial_init( void ) { return(0);}
@@ -71,9 +71,9 @@ int serial_getc (void)
  *-----------------------------------------------------------------*/
 #else
 
-static nios_uart_t *uart = (nios_uart_t *)CFG_NIOS_CONSOLE;
+static nios_uart_t *uart = (nios_uart_t *)CONFIG_SYS_NIOS_CONSOLE;
 
-#if defined(CFG_NIOS_FIXEDBAUD)
+#if defined(CONFIG_SYS_NIOS_FIXEDBAUD)
 
 /* Everything's already setup for fixed-baud PTF
  * assignment
@@ -98,7 +98,7 @@ int serial_init (void)
        return (0);
 }
 
-#endif /* CFG_NIOS_FIXEDBAUD */
+#endif /* CONFIG_SYS_NIOS_FIXEDBAUD */
 
 
 /*-----------------------------------------------------------------------
index 6408180147a9fd39ca87d0136d1cbf6bbd14e3e7..89f9797faa23c193607f99b7f47c656e1ed1d1da 100644 (file)
 #include <nios-io.h>
 #include <spi.h>
 
-#if !defined(CFG_NIOS_SPIBASE)
-#error "*** CFG_NIOS_SPIBASE not defined ***"
+#if !defined(CONFIG_SYS_NIOS_SPIBASE)
+#error "*** CONFIG_SYS_NIOS_SPIBASE not defined ***"
 #endif
 
-#if !defined(CFG_NIOS_SPIBITS)
-#error "*** CFG_NIOS_SPIBITS not defined ***"
+#if !defined(CONFIG_SYS_NIOS_SPIBITS)
+#error "*** CONFIG_SYS_NIOS_SPIBITS not defined ***"
 #endif
 
-#if (CFG_NIOS_SPIBITS != 8) && (CFG_NIOS_SPIBITS != 16)
-#error "*** CFG_NIOS_SPIBITS should be either 8 or 16 ***"
+#if (CONFIG_SYS_NIOS_SPIBITS != 8) && (CONFIG_SYS_NIOS_SPIBITS != 16)
+#error "*** CONFIG_SYS_NIOS_SPIBITS should be either 8 or 16 ***"
 #endif
 
-static nios_spi_t      *spi    = (nios_spi_t *)CFG_NIOS_SPIBASE;
+static nios_spi_t      *spi    = (nios_spi_t *)CONFIG_SYS_NIOS_SPIBASE;
 
 /* Warning:
  * You cannot enable DEBUG for early system initalization, i. e. when
@@ -139,7 +139,7 @@ int spi_xfer(struct spi_slave *slave, int bitlen, const void *dout,
        if (flags & SPI_XFER_BEGIN)
                spi_cs_activate(slave);
 
-       if (!(flags & SPI_XFER_END) || bitlen > CFG_NIOS_SPIBITS) {
+       if (!(flags & SPI_XFER_END) || bitlen > CONFIG_SYS_NIOS_SPIBITS) {
                /* leave chip select active */
                spi->control |= NIOS_SPI_SSO;
        }
@@ -147,7 +147,7 @@ int spi_xfer(struct spi_slave *slave, int bitlen, const void *dout,
        for (   j = 0;                          /* count each byte in */
                j < ((bitlen + 7) / 8);         /* dout[] and din[] */
 
-#if    (CFG_NIOS_SPIBITS == 8)
+#if    (CONFIG_SYS_NIOS_SPIBITS == 8)
                j++) {
 
                while ((spi->status & NIOS_SPI_TRDY) == 0)
@@ -158,7 +158,7 @@ int spi_xfer(struct spi_slave *slave, int bitlen, const void *dout,
                        ;
                rxd[j] = (unsigned char)(spi->rxdata & 0xff);
 
-#elif  (CFG_NIOS_SPIBITS == 16)
+#elif  (CONFIG_SYS_NIOS_SPIBITS == 16)
                j++, j++) {
 
                while ((spi->status & NIOS_SPI_TRDY) == 0)
@@ -175,12 +175,12 @@ int spi_xfer(struct spi_slave *slave, int bitlen, const void *dout,
                        rxd[j+1] = (unsigned char)(spi->rxdata & 0xff);
 
 #else
-#error "*** unsupported value of CFG_NIOS_SPIBITS ***"
+#error "*** unsupported value of CONFIG_SYS_NIOS_SPIBITS ***"
 #endif
 
        }
 
-       if (bitlen > CFG_NIOS_SPIBITS && (flags & SPI_XFER_END)) {
+       if (bitlen > CONFIG_SYS_NIOS_SPIBITS && (flags & SPI_XFER_END)) {
                spi->control &= ~NIOS_SPI_SSO;
        }
 
index 9e73941a5e8a8ff98fce6889f81be54c13b056c8..5d15e8d1dd7da32edfc0f8c74fc15affc77a7dfe 100644 (file)
@@ -71,10 +71,10 @@ _start:
        /*
         * STACK
         */
-       pfx     %hi(CFG_INIT_SP)
-       movi    %sp, %lo(CFG_INIT_SP)
-       pfx     %xhi(CFG_INIT_SP)
-       movhi   %sp, %xlo(CFG_INIT_SP)
+       pfx     %hi(CONFIG_SYS_INIT_SP)
+       movi    %sp, %lo(CONFIG_SYS_INIT_SP)
+       pfx     %xhi(CONFIG_SYS_INIT_SP)
+       movhi   %sp, %xlo(CONFIG_SYS_INIT_SP)
        mov     %fp, %sp
 
        pfx     %hi(4*16)
@@ -152,10 +152,10 @@ reloc:
        /*
         * INIT VECTOR TABLE
         */
-       pfx     %hi(CFG_VECT_BASE)
-       movi    %g0, %lo(CFG_VECT_BASE)
-       pfx     %xhi(CFG_VECT_BASE)
-       movhi   %g0, %xlo(CFG_VECT_BASE)        /* dst */
+       pfx     %hi(CONFIG_SYS_VECT_BASE)
+       movi    %g0, %lo(CONFIG_SYS_VECT_BASE)
+       pfx     %xhi(CONFIG_SYS_VECT_BASE)
+       movhi   %g0, %xlo(CONFIG_SYS_VECT_BASE) /* dst */
        mov     %l0, %g0
 
        pfx     %hi(_vectors)
index f4217a88cf16652ed687e707f78c920170def312..6379534a0b5c59175332a11b317fbd5f35fec39d 100644 (file)
 #include <nios2.h>
 #include <nios2-io.h>
 
-#if defined (CFG_NIOS_SYSID_BASE)
+#if defined (CONFIG_SYS_NIOS_SYSID_BASE)
 extern void display_sysid (void);
-#endif /* CFG_NIOS_SYSID_BASE */
+#endif /* CONFIG_SYS_NIOS_SYSID_BASE */
 
 int checkcpu (void)
 {
        printf ("CPU   : Nios-II\n");
-#if !defined(CFG_NIOS_SYSID_BASE)
+#if !defined(CONFIG_SYS_NIOS_SYSID_BASE)
        printf ("SYSID : <unknown>\n");
 #else
        display_sysid ();
@@ -43,7 +43,7 @@ int checkcpu (void)
 
 int do_reset (void)
 {
-       void (*rst)(void) = (void(*)(void))CFG_RESET_ADDR;
+       void (*rst)(void) = (void(*)(void))CONFIG_SYS_RESET_ADDR;
        disable_interrupts ();
        rst();
        return(0);
index 414c38c2b1df370f8432777e28bb635a90e028ad..968b50f3d8c357c18049e778e77e5b235cccb8e0 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CFG_NIOS_EPCSBASE)
+#if defined(CONFIG_SYS_NIOS_EPCSBASE)
 #include <command.h>
 #include <asm/io.h>
 #include <nios2-io.h>
@@ -72,7 +72,7 @@
  */
 #define EPCS_TIMEOUT           100     /* 100 msec timeout */
 
-static nios_spi_t *epcs = (nios_spi_t *)CFG_NIOS_EPCSBASE;
+static nios_spi_t *epcs = (nios_spi_t *)CONFIG_SYS_NIOS_EPCSBASE;
 
 /***********************************************************************
  * Device access
index ec5db31b0ff468132680ba7b881a0fddcb7f96ed..1c3566ebf95610e2e171d02775a9b2cb0c59f183 100644 (file)
@@ -37,8 +37,8 @@
 #include <status_led.h>
 #endif
 
-#if defined(CFG_NIOS_TMRBASE) && !defined(CFG_NIOS_TMRIRQ)
-#error CFG_NIOS_TMRIRQ not defined (see documentation)
+#if defined(CONFIG_SYS_NIOS_TMRBASE) && !defined(CONFIG_SYS_NIOS_TMRIRQ)
+#error CONFIG_SYS_NIOS_TMRIRQ not defined (see documentation)
 #endif
 
 /****************************************************************************/
@@ -74,7 +74,7 @@ void set_timer (ulong t)
 /* The board must handle this interrupt if a timer is not
  * provided.
  */
-#if defined(CFG_NIOS_TMRBASE)
+#if defined(CONFIG_SYS_NIOS_TMRBASE)
 void tmr_isr (void *arg)
 {
        nios_timer_t *tmr = (nios_timer_t *)arg;
@@ -82,7 +82,7 @@ void tmr_isr (void *arg)
         * status register.
         */
        writel (&tmr->status, 0);
-       timestamp += CFG_NIOS_TMRMS;
+       timestamp += CONFIG_SYS_NIOS_TMRMS;
 #ifdef CONFIG_STATUS_LED
        status_led_tick(timestamp);
 #endif
@@ -90,22 +90,22 @@ void tmr_isr (void *arg)
 
 static void tmr_init (void)
 {
-       nios_timer_t *tmr =(nios_timer_t *)CFG_NIOS_TMRBASE;
+       nios_timer_t *tmr =(nios_timer_t *)CONFIG_SYS_NIOS_TMRBASE;
 
        writel (&tmr->status, 0);
        writel (&tmr->control, 0);
        writel (&tmr->control, NIOS_TIMER_STOP);
 
-#if defined(CFG_NIOS_TMRCNT)
-       writel (&tmr->periodl, CFG_NIOS_TMRCNT & 0xffff);
-       writel (&tmr->periodh, (CFG_NIOS_TMRCNT >> 16) & 0xffff);
+#if defined(CONFIG_SYS_NIOS_TMRCNT)
+       writel (&tmr->periodl, CONFIG_SYS_NIOS_TMRCNT & 0xffff);
+       writel (&tmr->periodh, (CONFIG_SYS_NIOS_TMRCNT >> 16) & 0xffff);
 #endif
        writel (&tmr->control, NIOS_TIMER_ITO | NIOS_TIMER_CONT |
                          NIOS_TIMER_START );
-       irq_install_handler (CFG_NIOS_TMRIRQ, tmr_isr, (void *)tmr);
+       irq_install_handler (CONFIG_SYS_NIOS_TMRIRQ, tmr_isr, (void *)tmr);
 }
 
-#endif /* CFG_NIOS_TMRBASE */
+#endif /* CONFIG_SYS_NIOS_TMRBASE */
 
 /*************************************************************************/
 int disable_interrupts (void)
@@ -195,7 +195,7 @@ int interrupt_init (void)
                vecs[i].count = 0;
        }
 
-#if defined(CFG_NIOS_TMRBASE)
+#if defined(CONFIG_SYS_NIOS_TMRBASE)
        tmr_init ();
 #endif
 
index 0bd3821e395e82842bb40ca6d79acc3bd884f582..8bbb803a6893c319cce8a7706affb1ee5dd66b8a 100644 (file)
@@ -34,7 +34,7 @@ DECLARE_GLOBAL_DATA_PTR;
  *-----------------------------------------------------------------*/
 #if defined(CONFIG_CONSOLE_JTAG)
 
-static nios_jtag_t *jtag = (nios_jtag_t *)CFG_NIOS_CONSOLE;
+static nios_jtag_t *jtag = (nios_jtag_t *)CONFIG_SYS_NIOS_CONSOLE;
 
 void serial_setbrg( void ){ return; }
 int serial_init( void ) { return(0);}
@@ -79,9 +79,9 @@ int serial_getc (void)
  *-----------------------------------------------------------------*/
 #else
 
-static nios_uart_t *uart = (nios_uart_t *) CFG_NIOS_CONSOLE;
+static nios_uart_t *uart = (nios_uart_t *) CONFIG_SYS_NIOS_CONSOLE;
 
-#if defined(CFG_NIOS_FIXEDBAUD)
+#if defined(CONFIG_SYS_NIOS_FIXEDBAUD)
 
 /* Everything's already setup for fixed-baud PTF
  * assignment
@@ -106,7 +106,7 @@ int serial_init (void)
        return (0);
 }
 
-#endif /* CFG_NIOS_FIXEDBAUD */
+#endif /* CONFIG_SYS_NIOS_FIXEDBAUD */
 
 
 /*-----------------------------------------------------------------------
index 6c6f294b011a51d561e13b218330777f1fd4ae23..ea41435661985c3299255ec2282ae4246b28f493 100644 (file)
@@ -39,9 +39,9 @@ _start:
         * just be invalidating the cache a second time. If cache
         * is not implemented initi behaves as nop.
         */
-       ori     r4, r0, %lo(CFG_ICACHELINE_SIZE)
-       movhi   r5, %hi(CFG_ICACHE_SIZE)
-       ori     r5, r5, %lo(CFG_ICACHE_SIZE)
+       ori     r4, r0, %lo(CONFIG_SYS_ICACHELINE_SIZE)
+       movhi   r5, %hi(CONFIG_SYS_ICACHE_SIZE)
+       ori     r5, r5, %lo(CONFIG_SYS_ICACHE_SIZE)
        mov     r6, r0
 0:     initi   r6
        add     r6, r6, r4
@@ -67,10 +67,10 @@ _except_end:
        /* DCACHE INIT -- if dcache not implemented, initd behaves as
         * nop.
         */
-       movhi   r4, %hi(CFG_DCACHELINE_SIZE)
-       ori     r4, r4, %lo(CFG_DCACHELINE_SIZE)
-       movhi   r5, %hi(CFG_DCACHE_SIZE)
-       ori     r5, r5, %lo(CFG_DCACHE_SIZE)
+       movhi   r4, %hi(CONFIG_SYS_DCACHELINE_SIZE)
+       ori     r4, r4, %lo(CONFIG_SYS_DCACHELINE_SIZE)
+       movhi   r5, %hi(CONFIG_SYS_DCACHE_SIZE)
+       ori     r5, r5, %lo(CONFIG_SYS_DCACHE_SIZE)
        mov     r6, r0
 1:     initd   0(r6)
        add     r6, r6, r4
@@ -136,8 +136,8 @@ _reloc:
        ori     r4, r4, %lo(_except_start)
        movhi   r5, %hi(_except_end)
        ori     r5, r5, %lo(_except_end)
-       movhi   r6, %hi(CFG_EXCEPTION_ADDR)
-       ori     r6, r6, %lo(CFG_EXCEPTION_ADDR)
+       movhi   r6, %hi(CONFIG_SYS_EXCEPTION_ADDR)
+       ori     r6, r6, %lo(CONFIG_SYS_EXCEPTION_ADDR)
        beq     r4, r6, 7f      /* Skip if at proper addr */
 
 6:     ldwio   r7, 0(r4)
@@ -150,8 +150,8 @@ _reloc:
 
        /* STACK INIT -- zero top two words for call back chain.
         */
-       movhi   sp, %hi(CFG_INIT_SP)
-       ori     sp, sp, %lo(CFG_INIT_SP)
+       movhi   sp, %hi(CONFIG_SYS_INIT_SP)
+       ori     sp, sp, %lo(CONFIG_SYS_INIT_SP)
        addi    sp, sp, -8
        stw     r0, 0(sp)
        stw     r0, 4(sp)
@@ -195,7 +195,7 @@ _reloc:
 
 dly_clks:
 
-#if (CFG_ICACHE_SIZE > 0)
+#if (CONFIG_SYS_ICACHE_SIZE > 0)
        subi    r4, r4, 3               /* 3 clocks/loop        */
 #else
        subi    r4, r4, 12              /* 12 clocks/loop       */
index 697ed03a2cbd464bf2800e47ee8a046a829971e2..afd5d83d95de91f113d1f6437c990328470f81ee 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined (CFG_NIOS_SYSID_BASE)
+#if defined (CONFIG_SYS_NIOS_SYSID_BASE)
 
 #include <command.h>
 #include <asm/io.h>
@@ -32,7 +32,7 @@
 
 void display_sysid (void)
 {
-       struct nios_sysid_t *sysid = (struct nios_sysid_t *)CFG_NIOS_SYSID_BASE;
+       struct nios_sysid_t *sysid = (struct nios_sysid_t *)CONFIG_SYS_NIOS_SYSID_BASE;
        struct tm t;
        char asc[32];
        time_t stamp;
@@ -55,4 +55,4 @@ U_BOOT_CMD(
        "sysid   - display Nios-II system id\n\n",
        "\n    - display Nios-II system id\n"
 );
-#endif /* CFG_NIOS_SYSID_BASE */
+#endif /* CONFIG_SYS_NIOS_SYSID_BASE */
index b21b13e4936e81c6b4721fba7ccc1eb9e2839e64..57861b3595a6d50a50102e9388e93bb9fe08ce4e 100644 (file)
 /*
  * Set default values
  */
-#ifndef CFG_I2C_SPEED
-#define CFG_I2C_SPEED  50000
+#ifndef CONFIG_SYS_I2C_SPEED
+#define CONFIG_SYS_I2C_SPEED   50000
 #endif
 
-#ifndef CFG_I2C_SLAVE
-#define CFG_I2C_SLAVE  0xFE
+#ifndef CONFIG_SYS_I2C_SLAVE
+#define CONFIG_SYS_I2C_SLAVE   0xFE
 #endif
 
 #define ONE_BILLION    1000000000
@@ -163,7 +163,7 @@ long int spd_sdram(int(read_spd)(uint addr))
                 * Make sure I2C controller is initialized
                 * before continuing.
                 */
-               i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+               i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        }
 
        /* Make shure we are using SDRAM */
index 9efcedefed0a36e5c5994ed699b2cd1a77b33aac..153391e59841aae7b6966942e03d3164711b9dbc 100644 (file)
 /*
  * Set default values
  */
-#ifndef CFG_I2C_SPEED
-#define CFG_I2C_SPEED  50000
+#ifndef CONFIG_SYS_I2C_SPEED
+#define CONFIG_SYS_I2C_SPEED   50000
 #endif
 
-#ifndef CFG_I2C_SLAVE
-#define CFG_I2C_SLAVE  0xFE
+#ifndef CONFIG_SYS_I2C_SLAVE
+#define CONFIG_SYS_I2C_SLAVE   0xFE
 #endif
 
 #define ONE_BILLION    1000000000
@@ -119,7 +119,7 @@ struct bank_param {
 
 typedef struct bank_param BANKPARMS;
 
-#ifdef CFG_SIMULATE_SPD_EEPROM
+#ifdef CONFIG_SYS_SIMULATE_SPD_EEPROM
 extern const unsigned char cfg_simulate_spd_eeprom[128];
 #endif
 
@@ -174,7 +174,7 @@ long int spd_sdram(void) {
         * Make sure I2C controller is initialized
         * before continuing.
         */
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /*
         * Read the SPD information using I2C interface. Check to see if the
@@ -265,7 +265,7 @@ long int spd_sdram(void) {
        /*
         * If ecc is enabled, initialize the parity bits.
         */
-       ecc_init(CFG_SDRAM_BASE, total_size);
+       ecc_init(CONFIG_SYS_SDRAM_BASE, total_size);
 #endif
 
        return total_size;
@@ -275,14 +275,14 @@ static unsigned char spd_read(uchar chip, uint addr)
 {
        unsigned char data[2];
 
-#ifdef CFG_SIMULATE_SPD_EEPROM
-       if (chip == CFG_SIMULATE_SPD_EEPROM) {
+#ifdef CONFIG_SYS_SIMULATE_SPD_EEPROM
+       if (chip == CONFIG_SYS_SIMULATE_SPD_EEPROM) {
                /*
                 * Onboard spd eeprom requested -> simulate values
                 */
                return cfg_simulate_spd_eeprom[addr];
        }
-#endif /* CFG_SIMULATE_SPD_EEPROM */
+#endif /* CONFIG_SYS_SIMULATE_SPD_EEPROM */
 
        if (i2c_probe(chip) == 0) {
                if (i2c_read(chip, addr, 1, data, 1) == 0) {
@@ -1120,7 +1120,7 @@ static unsigned long program_bxcr(unsigned long *dimm_populated,
        /*
         * reset the bank_base address
         */
-       bank_base_addr = CFG_SDRAM_BASE;
+       bank_base_addr = CONFIG_SYS_SDRAM_BASE;
 
        for (dimm_num = 0; dimm_num < num_dimm_banks; dimm_num++) {
                if (dimm_populated[dimm_num] == TRUE) {
index f1d76840f21a365115685d558ba14804f7a94443..30c2e44b46583248d23bd5f84112eb969348b4e5 100644 (file)
@@ -402,8 +402,8 @@ phys_size_t initdram(int board_type)
         */
 
        /* switch to correct I2C bus */
-       I2C_SET_BUS(CFG_SPD_BUS_NUM);
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       I2C_SET_BUS(CONFIG_SYS_SPD_BUS_NUM);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /*------------------------------------------------------------------
         * Clear out the serial presence detect buffers.
@@ -2976,62 +2976,62 @@ phys_size_t initdram(int board_type)
 
        /* Set Memory Bank Configuration Registers */
 
-       mtsdram(SDRAM_MB0CF, CFG_SDRAM0_MB0CF);
-       mtsdram(SDRAM_MB1CF, CFG_SDRAM0_MB1CF);
-       mtsdram(SDRAM_MB2CF, CFG_SDRAM0_MB2CF);
-       mtsdram(SDRAM_MB3CF, CFG_SDRAM0_MB3CF);
+       mtsdram(SDRAM_MB0CF, CONFIG_SYS_SDRAM0_MB0CF);
+       mtsdram(SDRAM_MB1CF, CONFIG_SYS_SDRAM0_MB1CF);
+       mtsdram(SDRAM_MB2CF, CONFIG_SYS_SDRAM0_MB2CF);
+       mtsdram(SDRAM_MB3CF, CONFIG_SYS_SDRAM0_MB3CF);
 
        /* Set Memory Clock Timing Register */
 
-       mtsdram(SDRAM_CLKTR, CFG_SDRAM0_CLKTR);
+       mtsdram(SDRAM_CLKTR, CONFIG_SYS_SDRAM0_CLKTR);
 
        /* Set Refresh Time Register */
 
-       mtsdram(SDRAM_RTR, CFG_SDRAM0_RTR);
+       mtsdram(SDRAM_RTR, CONFIG_SYS_SDRAM0_RTR);
 
        /* Set SDRAM Timing Registers */
 
-       mtsdram(SDRAM_SDTR1, CFG_SDRAM0_SDTR1);
-       mtsdram(SDRAM_SDTR2, CFG_SDRAM0_SDTR2);
-       mtsdram(SDRAM_SDTR3, CFG_SDRAM0_SDTR3);
+       mtsdram(SDRAM_SDTR1, CONFIG_SYS_SDRAM0_SDTR1);
+       mtsdram(SDRAM_SDTR2, CONFIG_SYS_SDRAM0_SDTR2);
+       mtsdram(SDRAM_SDTR3, CONFIG_SYS_SDRAM0_SDTR3);
 
        /* Set Mode and Extended Mode Registers */
 
-       mtsdram(SDRAM_MMODE, CFG_SDRAM0_MMODE);
-       mtsdram(SDRAM_MEMODE, CFG_SDRAM0_MEMODE);
+       mtsdram(SDRAM_MMODE, CONFIG_SYS_SDRAM0_MMODE);
+       mtsdram(SDRAM_MEMODE, CONFIG_SYS_SDRAM0_MEMODE);
 
        /* Set Memory Controller Options 1 Register */
 
-       mtsdram(SDRAM_MCOPT1, CFG_SDRAM0_MCOPT1);
+       mtsdram(SDRAM_MCOPT1, CONFIG_SYS_SDRAM0_MCOPT1);
 
        /* Set Manual Initialization Control Registers */
 
-       mtsdram(SDRAM_INITPLR0, CFG_SDRAM0_INITPLR0);
-       mtsdram(SDRAM_INITPLR1, CFG_SDRAM0_INITPLR1);
-       mtsdram(SDRAM_INITPLR2, CFG_SDRAM0_INITPLR2);
-       mtsdram(SDRAM_INITPLR3, CFG_SDRAM0_INITPLR3);
-       mtsdram(SDRAM_INITPLR4, CFG_SDRAM0_INITPLR4);
-       mtsdram(SDRAM_INITPLR5, CFG_SDRAM0_INITPLR5);
-       mtsdram(SDRAM_INITPLR6, CFG_SDRAM0_INITPLR6);
-       mtsdram(SDRAM_INITPLR7, CFG_SDRAM0_INITPLR7);
-       mtsdram(SDRAM_INITPLR8, CFG_SDRAM0_INITPLR8);
-       mtsdram(SDRAM_INITPLR9, CFG_SDRAM0_INITPLR9);
-       mtsdram(SDRAM_INITPLR10, CFG_SDRAM0_INITPLR10);
-       mtsdram(SDRAM_INITPLR11, CFG_SDRAM0_INITPLR11);
-       mtsdram(SDRAM_INITPLR12, CFG_SDRAM0_INITPLR12);
-       mtsdram(SDRAM_INITPLR13, CFG_SDRAM0_INITPLR13);
-       mtsdram(SDRAM_INITPLR14, CFG_SDRAM0_INITPLR14);
-       mtsdram(SDRAM_INITPLR15, CFG_SDRAM0_INITPLR15);
+       mtsdram(SDRAM_INITPLR0, CONFIG_SYS_SDRAM0_INITPLR0);
+       mtsdram(SDRAM_INITPLR1, CONFIG_SYS_SDRAM0_INITPLR1);
+       mtsdram(SDRAM_INITPLR2, CONFIG_SYS_SDRAM0_INITPLR2);
+       mtsdram(SDRAM_INITPLR3, CONFIG_SYS_SDRAM0_INITPLR3);
+       mtsdram(SDRAM_INITPLR4, CONFIG_SYS_SDRAM0_INITPLR4);
+       mtsdram(SDRAM_INITPLR5, CONFIG_SYS_SDRAM0_INITPLR5);
+       mtsdram(SDRAM_INITPLR6, CONFIG_SYS_SDRAM0_INITPLR6);
+       mtsdram(SDRAM_INITPLR7, CONFIG_SYS_SDRAM0_INITPLR7);
+       mtsdram(SDRAM_INITPLR8, CONFIG_SYS_SDRAM0_INITPLR8);
+       mtsdram(SDRAM_INITPLR9, CONFIG_SYS_SDRAM0_INITPLR9);
+       mtsdram(SDRAM_INITPLR10, CONFIG_SYS_SDRAM0_INITPLR10);
+       mtsdram(SDRAM_INITPLR11, CONFIG_SYS_SDRAM0_INITPLR11);
+       mtsdram(SDRAM_INITPLR12, CONFIG_SYS_SDRAM0_INITPLR12);
+       mtsdram(SDRAM_INITPLR13, CONFIG_SYS_SDRAM0_INITPLR13);
+       mtsdram(SDRAM_INITPLR14, CONFIG_SYS_SDRAM0_INITPLR14);
+       mtsdram(SDRAM_INITPLR15, CONFIG_SYS_SDRAM0_INITPLR15);
 
        /* Set On-Die Termination Registers */
 
-       mtsdram(SDRAM_CODT, CFG_SDRAM0_CODT);
-       mtsdram(SDRAM_MODT0, CFG_SDRAM0_MODT0);
-       mtsdram(SDRAM_MODT1, CFG_SDRAM0_MODT1);
+       mtsdram(SDRAM_CODT, CONFIG_SYS_SDRAM0_CODT);
+       mtsdram(SDRAM_MODT0, CONFIG_SYS_SDRAM0_MODT0);
+       mtsdram(SDRAM_MODT1, CONFIG_SYS_SDRAM0_MODT1);
 
        /* Set Write Timing Register */
 
-       mtsdram(SDRAM_WRDTR, CFG_SDRAM0_WRDTR);
+       mtsdram(SDRAM_WRDTR, CONFIG_SYS_SDRAM0_WRDTR);
 
        /*
         * Start Initialization by SDRAM0_MCOPT2[SREN] = 0 and
@@ -3052,12 +3052,12 @@ phys_size_t initdram(int board_type)
 
        /* Set Delay Control Registers */
 
-       mtsdram(SDRAM_DLCR, CFG_SDRAM0_DLCR);
+       mtsdram(SDRAM_DLCR, CONFIG_SYS_SDRAM0_DLCR);
 
 #if !defined(CONFIG_PPC4xx_DDR_AUTOCALIBRATION)
-       mtsdram(SDRAM_RDCC, CFG_SDRAM0_RDCC);
-       mtsdram(SDRAM_RQDC, CFG_SDRAM0_RQDC);
-       mtsdram(SDRAM_RFDC, CFG_SDRAM0_RFDC);
+       mtsdram(SDRAM_RDCC, CONFIG_SYS_SDRAM0_RDCC);
+       mtsdram(SDRAM_RQDC, CONFIG_SYS_SDRAM0_RQDC);
+       mtsdram(SDRAM_RFDC, CONFIG_SYS_SDRAM0_RFDC);
 #endif /* !CONFIG_PPC4xx_DDR_AUTOCALIBRATION */
 
        /*
@@ -3077,7 +3077,7 @@ phys_size_t initdram(int board_type)
 #endif /* CONFIG_PPC4xx_DDR_AUTOCALIBRATION */
 
 #if defined(CONFIG_DDR_ECC)
-       ecc_init(CFG_SDRAM_BASE, CFG_MBYTES_SDRAM << 20);
+       ecc_init(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_MBYTES_SDRAM << 20);
 #endif /* defined(CONFIG_DDR_ECC) */
 
        ppc4xx_ibm_ddr2_register_dump();
@@ -3093,7 +3093,7 @@ phys_size_t initdram(int board_type)
 
 #endif /* !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL) */
 
-       return (CFG_MBYTES_SDRAM << 20);
+       return (CONFIG_SYS_MBYTES_SDRAM << 20);
 }
 #endif /* CONFIG_SPD_EEPROM */
 
index 6d4d043e04103ba476708c6e8493f7f09a74889d..d7b16daf394344761617cfae4d2526ca0fbebb19 100644 (file)
  * Some boards do not have a PHY for each ethernet port. These ports
  * are known as Fixed PHY (or PHY-less) ports. For such ports, set
  * the appropriate CONFIG_PHY_ADDR equal to CONFIG_FIXED_PHY and
- * then define CFG_FIXED_PHY_PORTS to define what the speed and
+ * then define CONFIG_SYS_FIXED_PHY_PORTS to define what the speed and
  * duplex should be for these ports in the board configuration
  * file.
  *
  *     #define CONFIG_PHY2_ADDR   CONFIG_FIXED_PHY
  *     #define CONFIG_PHY3_ADDR   3
  *
- *     #define CFG_FIXED_PHY_PORT(devnum,speed,duplex) \
+ *     #define CONFIG_SYS_FIXED_PHY_PORT(devnum,speed,duplex) \
  *                     {devnum, speed, duplex},
  *
- *     #define CFG_FIXED_PHY_PORTS \
- *                     CFG_FIXED_PHY_PORT(0,1000,FULL) \
- *                     CFG_FIXED_PHY_PORT(2,100,HALF)
+ *     #define CONFIG_SYS_FIXED_PHY_PORTS \
+ *                     CONFIG_SYS_FIXED_PHY_PORT(0,1000,FULL) \
+ *                     CONFIG_SYS_FIXED_PHY_PORT(2,100,HALF)
  */
 
 #ifndef CONFIG_FIXED_PHY
 #define CONFIG_FIXED_PHY       0xFFFFFFFF /* Fixed PHY (PHY-less) */
 #endif
 
-#ifndef CFG_FIXED_PHY_PORTS
-#define CFG_FIXED_PHY_PORTS    /* default is an empty array */
+#ifndef CONFIG_SYS_FIXED_PHY_PORTS
+#define CONFIG_SYS_FIXED_PHY_PORTS     /* default is an empty array */
 #endif
 
 struct fixed_phy_port {
@@ -260,7 +260,7 @@ struct fixed_phy_port {
 };
 
 static const struct fixed_phy_port fixed_phy_port[] = {
-       CFG_FIXED_PHY_PORTS     /* defined in board configuration file */
+       CONFIG_SYS_FIXED_PHY_PORTS      /* defined in board configuration file */
 };
 
 /*-----------------------------------------------------------------------------+
@@ -1337,8 +1337,8 @@ get_speed:
 #ifdef CONFIG_4xx_DCACHE
                flush_dcache_range(bd_cached, bd_cached + MAL_ALLOC_SIZE);
                if (!last_used_ea)
-#if defined(CFG_MEM_TOP_HIDE)
-                       bd_uncached = bis->bi_memsize + CFG_MEM_TOP_HIDE;
+#if defined(CONFIG_SYS_MEM_TOP_HIDE)
+                       bd_uncached = bis->bi_memsize + CONFIG_SYS_MEM_TOP_HIDE;
 #else
                        bd_uncached = bis->bi_memsize;
 #endif
index 47ab39bdb6a871426ab57edea01b5322e9f17c7a..1e3e20df2e8fed402db7b421957070a83fec09f3 100644 (file)
 #define MAXBXCF                        4
 #define SDRAM_RXBAS_SHIFT_1M   20
 
-#if defined(CFG_DECREMENT_PATTERNS)
+#if defined(CONFIG_SYS_DECREMENT_PATTERNS)
 #define NUMMEMTESTS            24
 #else
 #define NUMMEMTESTS            8
-#endif /* CFG_DECREMENT_PATTERNS */
+#endif /* CONFIG_SYS_DECREMENT_PATTERNS */
 #define NUMLOOPS               1       /* configure as you deem approporiate */
 #define NUMMEMWORDS            16
 
@@ -254,7 +254,7 @@ static int short_mem_test(u32 *base_address)
                 0x55AA55AA, 0x55AA55AA, 0xAA55AA55, 0xAA55AA55,
                 0x55AA55AA, 0x55AA55AA, 0xAA55AA55, 0xAA55AA55},
 
-#if defined(CFG_DECREMENT_PATTERNS)
+#if defined(CONFIG_SYS_DECREMENT_PATTERNS)
        /* 8 */ {0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
                 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
                 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
@@ -319,7 +319,7 @@ static int short_mem_test(u32 *base_address)
                 0xfff0fff0, 0xfff0fff0, 0xfff0fff0, 0xfff0fff0,
                 0xfff0fff0, 0xfff0fff0, 0xfff0fff0, 0xfff0fff0,
                 0xfff0fff0, 0xfff0fffe, 0xfff0fff0, 0xfff0fff0},
-#endif /* CFG_DECREMENT_PATTERNS */
+#endif /* CONFIG_SYS_DECREMENT_PATTERNS */
                                                                 };
 
        mfsdram(SDRAM_MCOPT1, ecc_mode);
index c28c7ac86dd64e440ea4e3e601e13ec2f2dfc684..eca92e83b788b6ab1e5cd057e5accf17266f8353 100644 (file)
@@ -108,12 +108,12 @@ void pci_405gp_init(struct pci_controller *hose)
        bd_t *bd = gd->bd;
 
        unsigned short temp_short;
-       unsigned long ptmpcila[2] = {CFG_PCI_PTM1PCI, CFG_PCI_PTM2PCI};
+       unsigned long ptmpcila[2] = {CONFIG_SYS_PCI_PTM1PCI, CONFIG_SYS_PCI_PTM2PCI};
 #if defined(CONFIG_CPCI405) || defined(CONFIG_PMC405)
        char *ptmla_str, *ptmms_str;
 #endif
-       unsigned long ptmla[2]    = {CFG_PCI_PTM1LA, CFG_PCI_PTM2LA};
-       unsigned long ptmms[2]    = {CFG_PCI_PTM1MS, CFG_PCI_PTM2MS};
+       unsigned long ptmla[2]    = {CONFIG_SYS_PCI_PTM1LA, CONFIG_SYS_PCI_PTM2LA};
+       unsigned long ptmms[2]    = {CONFIG_SYS_PCI_PTM1MS, CONFIG_SYS_PCI_PTM2MS};
 #if defined(CONFIG_PIP405) || defined (CONFIG_MIP405)
        unsigned long pmmla[3]    = {0x80000000, 0xA0000000, 0};
        unsigned long pmmma[3]    = {0xE0000001, 0xE0000001, 0};
@@ -268,22 +268,22 @@ void pci_405gp_init(struct pci_controller *hose)
        /*
         * Insert Subsystem Vendor and Device ID
         */
-       pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_VENDOR_ID, CFG_PCI_SUBSYS_VENDORID);
+       pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_VENDOR_ID, CONFIG_SYS_PCI_SUBSYS_VENDORID);
 #ifdef CONFIG_CPCI405
        if (mfdcr(strap) & PSR_PCI_ARBIT_EN)
-               pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_DEVICEID);
+               pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_DEVICEID);
        else
-               pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_DEVICEID2);
+               pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_DEVICEID2);
 #else
-       pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_ID, CFG_PCI_SUBSYS_DEVICEID);
+       pci_write_config_word(PCIDEVID_405GP, PCI_SUBSYSTEM_ID, CONFIG_SYS_PCI_SUBSYS_DEVICEID);
 #endif
 
        /*
         * Insert Class-code
         */
-#ifdef CFG_PCI_CLASSCODE
-       pci_write_config_word(PCIDEVID_405GP, PCI_CLASS_SUB_CODE, CFG_PCI_CLASSCODE);
-#endif /* CFG_PCI_CLASSCODE */
+#ifdef CONFIG_SYS_PCI_CLASSCODE
+       pci_write_config_word(PCIDEVID_405GP, PCI_CLASS_SUB_CODE, CONFIG_SYS_PCI_CLASSCODE);
+#endif /* CONFIG_SYS_PCI_CLASSCODE */
 
        /*--------------------------------------------------------------------------+
         * If PCI speed = 66Mhz, set 66Mhz capable bit.
@@ -405,8 +405,8 @@ void pci_405gp_setup_vga(struct pci_controller *hose, pci_dev_t dev,
  */
 static struct pci_config_table pci_405gp_config_table[] = {
 /*if VendID is 0 it terminates the table search (ie Walnut)*/
-#ifdef CFG_PCI_SUBSYS_VENDORID
-       {CFG_PCI_SUBSYS_VENDORID, PCI_ANY_ID, PCI_CLASS_BRIDGE_HOST,
+#ifdef CONFIG_SYS_PCI_SUBSYS_VENDORID
+       {CONFIG_SYS_PCI_SUBSYS_VENDORID, PCI_ANY_ID, PCI_CLASS_BRIDGE_HOST,
         PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, pci_405gp_setup_bridge},
 #endif
        {PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA,
@@ -488,10 +488,10 @@ int pci_440_init (struct pci_controller *hose)
 
        /* PCI memory space */
        pci_set_region(hose->regions + reg_num++,
-                      CFG_PCI_TARGBASE,
-                      CFG_PCI_MEMBASE,
-#ifdef CFG_PCI_MEMSIZE
-                      CFG_PCI_MEMSIZE,
+                      CONFIG_SYS_PCI_TARGBASE,
+                      CONFIG_SYS_PCI_MEMBASE,
+#ifdef CONFIG_SYS_PCI_MEMSIZE
+                      CONFIG_SYS_PCI_MEMSIZE,
 #else
                       0x10000000,
 #endif
@@ -523,11 +523,11 @@ int pci_440_init (struct pci_controller *hose)
        /*--------------------------------------------------------------------------+
         * PCI target init
         *--------------------------------------------------------------------------*/
-#if defined(CFG_PCI_TARGET_INIT)
+#if defined(CONFIG_SYS_PCI_TARGET_INIT)
        pci_target_init(hose);                /* Let board setup pci target */
 #else
-       out16r( PCIX0_SBSYSVID, CFG_PCI_SUBSYS_VENDORID );
-       out16r( PCIX0_SBSYSID, CFG_PCI_SUBSYS_ID );
+       out16r( PCIX0_SBSYSVID, CONFIG_SYS_PCI_SUBSYS_VENDORID );
+       out16r( PCIX0_SBSYSID, CONFIG_SYS_PCI_SUBSYS_ID );
        out16r( PCIX0_CLS, 0x00060000 ); /* Bridge, host bridge */
 #endif
 
@@ -542,9 +542,9 @@ int pci_440_init (struct pci_controller *hose)
 
        /*--------------------------------------------------------------------------+
         * PCI master init: default is one 256MB region for PCI memory:
-        * 0x3_00000000 - 0x3_0FFFFFFF  ==> CFG_PCI_MEMBASE
+        * 0x3_00000000 - 0x3_0FFFFFFF  ==> CONFIG_SYS_PCI_MEMBASE
         *--------------------------------------------------------------------------*/
-#if defined(CFG_PCI_MASTER_INIT)
+#if defined(CONFIG_SYS_PCI_MASTER_INIT)
        pci_master_init(hose);          /* Let board setup pci master */
 #else
        out32r( PCIX0_POM0SA, 0 ); /* disable */
@@ -558,7 +558,7 @@ int pci_440_init (struct pci_controller *hose)
        out32r( PCIX0_POM0LAL, 0x00000000 );
        out32r( PCIX0_POM0LAH, 0x00000003 );
 #endif
-       out32r( PCIX0_POM0PCIAL, CFG_PCI_MEMBASE );
+       out32r( PCIX0_POM0PCIAL, CONFIG_SYS_PCI_MEMBASE );
        out32r( PCIX0_POM0PCIAH, 0x00000000 );
        out32r( PCIX0_POM0SA, 0xf0000001 ); /* 256MB, enabled */
        out32r( PCIX0_STS, in32r( PCIX0_STS ) & ~0x0000fff8 );
index 0aadc06a9e52221d4f9f51d8866cf97168320a55..fd40d8abda8d8e76e6f662ff02cd97354b162c2d 100644 (file)
@@ -49,12 +49,12 @@ enum {
 
 static int validate_endpoint(struct pci_controller *hose)
 {
-       if (hose->cfg_data == (u8 *)CFG_PCIE0_CFGBASE)
+       if (hose->cfg_data == (u8 *)CONFIG_SYS_PCIE0_CFGBASE)
                return (is_end_point(0));
-       else if (hose->cfg_data == (u8 *)CFG_PCIE1_CFGBASE)
+       else if (hose->cfg_data == (u8 *)CONFIG_SYS_PCIE1_CFGBASE)
                return (is_end_point(1));
-#if CFG_PCIE_NR_PORTS > 2
-       else if (hose->cfg_data == (u8 *)CFG_PCIE2_CFGBASE)
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
+       else if (hose->cfg_data == (u8 *)CONFIG_SYS_PCIE2_CFGBASE)
                return (is_end_point(2));
 #endif
 
@@ -67,13 +67,13 @@ static u8* pcie_get_base(struct pci_controller *hose, unsigned int devfn)
 
        /* use local configuration space for the first bus */
        if (PCI_BUS(devfn) == 0) {
-               if (hose->cfg_data == (u8*)CFG_PCIE0_CFGBASE)
-                       base = (u8*)CFG_PCIE0_XCFGBASE;
-               if (hose->cfg_data == (u8*)CFG_PCIE1_CFGBASE)
-                       base = (u8*)CFG_PCIE1_XCFGBASE;
-#if CFG_PCIE_NR_PORTS > 2
-               if (hose->cfg_data == (u8*)CFG_PCIE2_CFGBASE)
-                       base = (u8*)CFG_PCIE2_XCFGBASE;
+               if (hose->cfg_data == (u8*)CONFIG_SYS_PCIE0_CFGBASE)
+                       base = (u8*)CONFIG_SYS_PCIE0_XCFGBASE;
+               if (hose->cfg_data == (u8*)CONFIG_SYS_PCIE1_CFGBASE)
+                       base = (u8*)CONFIG_SYS_PCIE1_XCFGBASE;
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
+               if (hose->cfg_data == (u8*)CONFIG_SYS_PCIE2_CFGBASE)
+                       base = (u8*)CONFIG_SYS_PCIE2_XCFGBASE;
 #endif
        }
 
@@ -86,7 +86,7 @@ static void pcie_dmer_disable(void)
                mfdcr (DCRN_PEGPL_CFG(DCRN_PCIE0_BASE)) | GPL_DMER_MASK_DISA);
        mtdcr (DCRN_PEGPL_CFG(DCRN_PCIE1_BASE),
                mfdcr (DCRN_PEGPL_CFG(DCRN_PCIE1_BASE)) | GPL_DMER_MASK_DISA);
-#if CFG_PCIE_NR_PORTS > 2
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
        mtdcr (DCRN_PEGPL_CFG(DCRN_PCIE2_BASE),
                mfdcr (DCRN_PEGPL_CFG(DCRN_PCIE2_BASE)) | GPL_DMER_MASK_DISA);
 #endif
@@ -98,7 +98,7 @@ static void pcie_dmer_enable(void)
                mfdcr (DCRN_PEGPL_CFG(DCRN_PCIE0_BASE)) & ~GPL_DMER_MASK_DISA);
        mtdcr (DCRN_PEGPL_CFG (DCRN_PCIE1_BASE),
                mfdcr (DCRN_PEGPL_CFG(DCRN_PCIE1_BASE)) & ~GPL_DMER_MASK_DISA);
-#if CFG_PCIE_NR_PORTS > 2
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
        mtdcr (DCRN_PEGPL_CFG (DCRN_PCIE2_BASE),
                mfdcr (DCRN_PEGPL_CFG(DCRN_PCIE2_BASE)) & ~GPL_DMER_MASK_DISA);
 #endif
@@ -286,7 +286,7 @@ static void ppc4xx_setup_utl(u32 port) {
                mtdcr(DCRN_PEGPL_SPECIAL(PCIE2), 0x68782800);
                break;
        }
-       utl_base = (unsigned int *)(CFG_PCIE_BASE + 0x1000 * port);
+       utl_base = (unsigned int *)(CONFIG_SYS_PCIE_BASE + 0x1000 * port);
 
        /*
         * Set buffer allocations and then assert VRB and TXE.
@@ -412,21 +412,21 @@ static void ppc4xx_setup_utl(u32 port)
         */
        switch (port) {
        case 0:
-               mtdcr(DCRN_PEGPL_REGBAH(PCIE0), U64_TO_U32_HIGH(CFG_PCIE0_UTLBASE));
-               mtdcr(DCRN_PEGPL_REGBAL(PCIE0), U64_TO_U32_LOW(CFG_PCIE0_UTLBASE));
+               mtdcr(DCRN_PEGPL_REGBAH(PCIE0), U64_TO_U32_HIGH(CONFIG_SYS_PCIE0_UTLBASE));
+               mtdcr(DCRN_PEGPL_REGBAL(PCIE0), U64_TO_U32_LOW(CONFIG_SYS_PCIE0_UTLBASE));
                mtdcr(DCRN_PEGPL_REGMSK(PCIE0), 0x00007001);    /* BAM 11100000=4KB */
                mtdcr(DCRN_PEGPL_SPECIAL(PCIE0), 0);
                break;
 
        case 1:
-               mtdcr(DCRN_PEGPL_REGBAH(PCIE1), U64_TO_U32_HIGH(CFG_PCIE0_UTLBASE));
-               mtdcr(DCRN_PEGPL_REGBAL(PCIE1), U64_TO_U32_LOW(CFG_PCIE0_UTLBASE)
+               mtdcr(DCRN_PEGPL_REGBAH(PCIE1), U64_TO_U32_HIGH(CONFIG_SYS_PCIE0_UTLBASE));
+               mtdcr(DCRN_PEGPL_REGBAL(PCIE1), U64_TO_U32_LOW(CONFIG_SYS_PCIE0_UTLBASE)
                        + 0x1000);
                mtdcr(DCRN_PEGPL_REGMSK(PCIE1), 0x00007001);    /* BAM 11100000=4KB */
                mtdcr(DCRN_PEGPL_SPECIAL(PCIE1), 0);
                break;
        }
-       utl_base = (unsigned int *)(CFG_PCIE_BASE + 0x1000 * port);
+       utl_base = (unsigned int *)(CONFIG_SYS_PCIE_BASE + 0x1000 * port);
 
        /*
         * Set buffer allocations and then assert VRB and TXE.
@@ -512,20 +512,20 @@ static void ppc4xx_setup_utl(u32 port)
        switch (port) {
        case 0:
                mtdcr(DCRN_PEGPL_REGBAH(PCIE0), 0x00000000);
-               mtdcr(DCRN_PEGPL_REGBAL(PCIE0), CFG_PCIE0_UTLBASE);
+               mtdcr(DCRN_PEGPL_REGBAL(PCIE0), CONFIG_SYS_PCIE0_UTLBASE);
                mtdcr(DCRN_PEGPL_REGMSK(PCIE0), 0x00007001); /* 4k region, valid */
                mtdcr(DCRN_PEGPL_SPECIAL(PCIE0), 0);
                break;
 
        case 1:
                mtdcr(DCRN_PEGPL_REGBAH(PCIE1), 0x00000000);
-               mtdcr(DCRN_PEGPL_REGBAL(PCIE1), CFG_PCIE1_UTLBASE);
+               mtdcr(DCRN_PEGPL_REGBAL(PCIE1), CONFIG_SYS_PCIE1_UTLBASE);
                mtdcr(DCRN_PEGPL_REGMSK(PCIE1), 0x00007001); /* 4k region, valid */
                mtdcr(DCRN_PEGPL_SPECIAL(PCIE1), 0);
 
                break;
        }
-       utl_base = (port==0) ? CFG_PCIE0_UTLBASE : CFG_PCIE1_UTLBASE;
+       utl_base = (port==0) ? CONFIG_SYS_PCIE0_UTLBASE : CONFIG_SYS_PCIE1_UTLBASE;
 
        /*
         * Set buffer allocations and then assert VRB and TXE.
@@ -761,9 +761,9 @@ static inline u64 ppc4xx_get_cfgaddr(int port)
 {
 #if defined(CONFIG_405EX)
        if (port == 0)
-               return (u64)CFG_PCIE0_CFGBASE;
+               return (u64)CONFIG_SYS_PCIE0_CFGBASE;
        else
-               return (u64)CFG_PCIE1_CFGBASE;
+               return (u64)CONFIG_SYS_PCIE1_CFGBASE;
 #endif
 #if defined(CONFIG_440SPE)
        if (ppc440spe_revB()) {
@@ -895,7 +895,7 @@ int ppc4xx_init_pcie_port(int port, int rootport)
                mtdcr(DCRN_PEGPL_CFGBAL(PCIE1), low);
                mtdcr(DCRN_PEGPL_CFGMSK(PCIE1), 0xe0000001); /* 512MB region, valid */
                break;
-#if CFG_PCIE_NR_PORTS > 2
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
        case 2:
                mtdcr(DCRN_PEGPL_CFGBAH(PCIE2), high);
                mtdcr(DCRN_PEGPL_CFGBAL(PCIE2), low);
@@ -947,20 +947,20 @@ void ppc4xx_setup_pcie_rootpoint(struct pci_controller *hose, int port)
 
        switch (port) {
        case 0:
-               mbase = (u32 *)CFG_PCIE0_XCFGBASE;
-               rmbase = (u32 *)CFG_PCIE0_CFGBASE;
-               hose->cfg_data = (u8 *)CFG_PCIE0_CFGBASE;
+               mbase = (u32 *)CONFIG_SYS_PCIE0_XCFGBASE;
+               rmbase = (u32 *)CONFIG_SYS_PCIE0_CFGBASE;
+               hose->cfg_data = (u8 *)CONFIG_SYS_PCIE0_CFGBASE;
                break;
        case 1:
-               mbase = (u32 *)CFG_PCIE1_XCFGBASE;
-               rmbase = (u32 *)CFG_PCIE1_CFGBASE;
-               hose->cfg_data = (u8 *)CFG_PCIE1_CFGBASE;
+               mbase = (u32 *)CONFIG_SYS_PCIE1_XCFGBASE;
+               rmbase = (u32 *)CONFIG_SYS_PCIE1_CFGBASE;
+               hose->cfg_data = (u8 *)CONFIG_SYS_PCIE1_CFGBASE;
                break;
-#if CFG_PCIE_NR_PORTS > 2
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
        case 2:
-               mbase = (u32 *)CFG_PCIE2_XCFGBASE;
-               rmbase = (u32 *)CFG_PCIE2_CFGBASE;
-               hose->cfg_data = (u8 *)CFG_PCIE2_CFGBASE;
+               mbase = (u32 *)CONFIG_SYS_PCIE2_XCFGBASE;
+               rmbase = (u32 *)CONFIG_SYS_PCIE2_CFGBASE;
+               hose->cfg_data = (u8 *)CONFIG_SYS_PCIE2_CFGBASE;
                break;
 #endif
        }
@@ -979,19 +979,19 @@ void ppc4xx_setup_pcie_rootpoint(struct pci_controller *hose, int port)
         * subregions and to enable the outbound translation.
         */
        out_le32(mbase + PECFG_POM0LAH, 0x00000000);
-       out_le32(mbase + PECFG_POM0LAL, CFG_PCIE_MEMBASE +
-                port * CFG_PCIE_MEMSIZE);
+       out_le32(mbase + PECFG_POM0LAL, CONFIG_SYS_PCIE_MEMBASE +
+                port * CONFIG_SYS_PCIE_MEMSIZE);
        debug("PECFG_POM0LA=%08x.%08x\n", in_le32(mbase + PECFG_POM0LAH),
              in_le32(mbase + PECFG_POM0LAL));
 
        switch (port) {
        case 0:
-               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE0), CFG_PCIE_ADDR_HIGH);
-               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE0), CFG_PCIE_MEMBASE +
-                     port * CFG_PCIE_MEMSIZE);
+               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE0), CONFIG_SYS_PCIE_ADDR_HIGH);
+               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE0), CONFIG_SYS_PCIE_MEMBASE +
+                     port * CONFIG_SYS_PCIE_MEMSIZE);
                mtdcr(DCRN_PEGPL_OMR1MSKH(PCIE0), 0x7fffffff);
                mtdcr(DCRN_PEGPL_OMR1MSKL(PCIE0),
-                     ~(CFG_PCIE_MEMSIZE - 1) | 3);
+                     ~(CONFIG_SYS_PCIE_MEMSIZE - 1) | 3);
                debug("0:PEGPL_OMR1BA=%08x.%08x MSK=%08x.%08x\n",
                      mfdcr(DCRN_PEGPL_OMR1BAH(PCIE0)),
                      mfdcr(DCRN_PEGPL_OMR1BAL(PCIE0)),
@@ -999,26 +999,26 @@ void ppc4xx_setup_pcie_rootpoint(struct pci_controller *hose, int port)
                      mfdcr(DCRN_PEGPL_OMR1MSKL(PCIE0)));
                break;
        case 1:
-               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE1), CFG_PCIE_ADDR_HIGH);
-               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE1), CFG_PCIE_MEMBASE +
-                     port * CFG_PCIE_MEMSIZE);
+               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE1), CONFIG_SYS_PCIE_ADDR_HIGH);
+               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE1), CONFIG_SYS_PCIE_MEMBASE +
+                     port * CONFIG_SYS_PCIE_MEMSIZE);
                mtdcr(DCRN_PEGPL_OMR1MSKH(PCIE1), 0x7fffffff);
                mtdcr(DCRN_PEGPL_OMR1MSKL(PCIE1),
-                     ~(CFG_PCIE_MEMSIZE - 1) | 3);
+                     ~(CONFIG_SYS_PCIE_MEMSIZE - 1) | 3);
                debug("1:PEGPL_OMR1BA=%08x.%08x MSK=%08x.%08x\n",
                      mfdcr(DCRN_PEGPL_OMR1BAH(PCIE1)),
                      mfdcr(DCRN_PEGPL_OMR1BAL(PCIE1)),
                      mfdcr(DCRN_PEGPL_OMR1MSKH(PCIE1)),
                      mfdcr(DCRN_PEGPL_OMR1MSKL(PCIE1)));
                break;
-#if CFG_PCIE_NR_PORTS > 2
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
        case 2:
-               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE2), CFG_PCIE_ADDR_HIGH);
-               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE2), CFG_PCIE_MEMBASE +
-                     port * CFG_PCIE_MEMSIZE);
+               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE2), CONFIG_SYS_PCIE_ADDR_HIGH);
+               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE2), CONFIG_SYS_PCIE_MEMBASE +
+                     port * CONFIG_SYS_PCIE_MEMSIZE);
                mtdcr(DCRN_PEGPL_OMR1MSKH(PCIE2), 0x7fffffff);
                mtdcr(DCRN_PEGPL_OMR1MSKL(PCIE2),
-                     ~(CFG_PCIE_MEMSIZE - 1) | 3);
+                     ~(CONFIG_SYS_PCIE_MEMSIZE - 1) | 3);
                debug("2:PEGPL_OMR1BA=%08x.%08x MSK=%08x.%08x\n",
                      mfdcr(DCRN_PEGPL_OMR1BAH(PCIE2)),
                      mfdcr(DCRN_PEGPL_OMR1BAL(PCIE2)),
@@ -1072,17 +1072,17 @@ int ppc4xx_setup_pcie_endpoint(struct pci_controller *hose, int port)
 
        switch (port) {
        case 0:
-               mbase = (u32 *)CFG_PCIE0_XCFGBASE;
-               hose->cfg_data = (u8 *)CFG_PCIE0_CFGBASE;
+               mbase = (u32 *)CONFIG_SYS_PCIE0_XCFGBASE;
+               hose->cfg_data = (u8 *)CONFIG_SYS_PCIE0_CFGBASE;
                break;
        case 1:
-               mbase = (u32 *)CFG_PCIE1_XCFGBASE;
-               hose->cfg_data = (u8 *)CFG_PCIE1_CFGBASE;
+               mbase = (u32 *)CONFIG_SYS_PCIE1_XCFGBASE;
+               hose->cfg_data = (u8 *)CONFIG_SYS_PCIE1_CFGBASE;
                break;
-#if defined(CFG_PCIE2_CFGBASE)
+#if defined(CONFIG_SYS_PCIE2_CFGBASE)
        case 2:
-               mbase = (u32 *)CFG_PCIE2_XCFGBASE;
-               hose->cfg_data = (u8 *)CFG_PCIE2_CFGBASE;
+               mbase = (u32 *)CONFIG_SYS_PCIE2_XCFGBASE;
+               hose->cfg_data = (u8 *)CONFIG_SYS_PCIE2_CFGBASE;
                break;
 #endif
        }
@@ -1098,29 +1098,29 @@ int ppc4xx_setup_pcie_endpoint(struct pci_controller *hose, int port)
 
        switch (port) {
        case 0:
-               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE0), CFG_PCIE_ADDR_HIGH);
-               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE0), CFG_PCIE_MEMBASE +
-                     port * CFG_PCIE_MEMSIZE);
+               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE0), CONFIG_SYS_PCIE_ADDR_HIGH);
+               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE0), CONFIG_SYS_PCIE_MEMBASE +
+                     port * CONFIG_SYS_PCIE_MEMSIZE);
                mtdcr(DCRN_PEGPL_OMR1MSKH(PCIE0), 0x7fffffff);
                mtdcr(DCRN_PEGPL_OMR1MSKL(PCIE0),
-                     ~(CFG_PCIE_MEMSIZE - 1) | 3);
+                     ~(CONFIG_SYS_PCIE_MEMSIZE - 1) | 3);
                break;
        case 1:
-               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE1), CFG_PCIE_ADDR_HIGH);
-               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE1), CFG_PCIE_MEMBASE +
-                     port * CFG_PCIE_MEMSIZE);
+               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE1), CONFIG_SYS_PCIE_ADDR_HIGH);
+               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE1), CONFIG_SYS_PCIE_MEMBASE +
+                     port * CONFIG_SYS_PCIE_MEMSIZE);
                mtdcr(DCRN_PEGPL_OMR1MSKH(PCIE1), 0x7fffffff);
                mtdcr(DCRN_PEGPL_OMR1MSKL(PCIE1),
-                     ~(CFG_PCIE_MEMSIZE - 1) | 3);
+                     ~(CONFIG_SYS_PCIE_MEMSIZE - 1) | 3);
                break;
-#if CFG_PCIE_NR_PORTS > 2
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
        case 2:
-               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE2), CFG_PCIE_ADDR_HIGH);
-               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE2), CFG_PCIE_MEMBASE +
-                     port * CFG_PCIE_MEMSIZE);
+               mtdcr(DCRN_PEGPL_OMR1BAH(PCIE2), CONFIG_SYS_PCIE_ADDR_HIGH);
+               mtdcr(DCRN_PEGPL_OMR1BAL(PCIE2), CONFIG_SYS_PCIE_MEMBASE +
+                     port * CONFIG_SYS_PCIE_MEMSIZE);
                mtdcr(DCRN_PEGPL_OMR1MSKH(PCIE2), 0x7fffffff);
                mtdcr(DCRN_PEGPL_OMR1MSKL(PCIE2),
-                     ~(CFG_PCIE_MEMSIZE - 1) | 3);
+                     ~(CONFIG_SYS_PCIE_MEMSIZE - 1) | 3);
                break;
 #endif
        }
@@ -1141,8 +1141,8 @@ int ppc4xx_setup_pcie_endpoint(struct pci_controller *hose, int port)
        out_le32(mbase + PECFG_BAR2HMPA, 0);
        out_le32(mbase + PECFG_BAR2LMPA, 0);
 
-       out_le32(mbase + PECFG_PIM0LAL, U64_TO_U32_LOW(CFG_PCIE_INBOUND_BASE));
-       out_le32(mbase + PECFG_PIM0LAH, U64_TO_U32_HIGH(CFG_PCIE_INBOUND_BASE));
+       out_le32(mbase + PECFG_PIM0LAL, U64_TO_U32_LOW(CONFIG_SYS_PCIE_INBOUND_BASE));
+       out_le32(mbase + PECFG_PIM0LAH, U64_TO_U32_HIGH(CONFIG_SYS_PCIE_INBOUND_BASE));
        out_le32(mbase + PECFG_PIMEN, 0x1);
 
        /* Enable I/O, Mem, and Busmaster cycles */
index 766e586808b69fab138472b0c4c313492d05e9db..c106ac223cbaf9c68a8565505689f93d172ab135 100644 (file)
@@ -66,20 +66,20 @@ DECLARE_GLOBAL_DATA_PTR;
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define UART0_BASE     (CFG_PERIPHERAL_BASE + 0x00000300)
-#define UART1_BASE     (CFG_PERIPHERAL_BASE + 0x00000400)
+#define UART0_BASE     (CONFIG_SYS_PERIPHERAL_BASE + 0x00000300)
+#define UART1_BASE     (CONFIG_SYS_PERIPHERAL_BASE + 0x00000400)
 #else
-#define UART0_BASE     (CFG_PERIPHERAL_BASE + 0x00000200)
-#define UART1_BASE     (CFG_PERIPHERAL_BASE + 0x00000300)
+#define UART0_BASE     (CONFIG_SYS_PERIPHERAL_BASE + 0x00000200)
+#define UART1_BASE     (CONFIG_SYS_PERIPHERAL_BASE + 0x00000300)
 #endif
 
 #if defined(CONFIG_440SP) || defined(CONFIG_440SPE)
-#define UART2_BASE     (CFG_PERIPHERAL_BASE + 0x00000600)
+#define UART2_BASE     (CONFIG_SYS_PERIPHERAL_BASE + 0x00000600)
 #endif
 
 #if defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define UART2_BASE     (CFG_PERIPHERAL_BASE + 0x00000500)
-#define UART3_BASE     (CFG_PERIPHERAL_BASE + 0x00000600)
+#define UART2_BASE     (CONFIG_SYS_PERIPHERAL_BASE + 0x00000500)
+#define UART3_BASE     (CONFIG_SYS_PERIPHERAL_BASE + 0x00000600)
 #endif
 
 #if defined(CONFIG_440GP)
@@ -147,7 +147,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define ACTING_UART1_BASE      UART1_BASE
 #endif
 
-#if defined(CONFIG_405EP) && defined(CFG_EXT_SERIAL_CLOCK)
+#if defined(CONFIG_405EP) && defined(CONFIG_SYS_EXT_SERIAL_CLOCK)
 #error "External serial clock not supported on AMCC PPC405EP!"
 #endif
 
@@ -199,8 +199,8 @@ static void serial_init_common(u32 base, u32 udiv, u16 bdiv)
        /* Correct UART frequency in bd-info struct now that
         * the UART divisor is available
         */
-#ifdef CFG_EXT_SERIAL_CLOCK
-       gd->uart_clk = CFG_EXT_SERIAL_CLOCK;
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
+       gd->uart_clk = CONFIG_SYS_EXT_SERIAL_CLOCK;
 #else
        gd->uart_clk = sys_info.freqUART / udiv;
 #endif
@@ -218,7 +218,7 @@ static void serial_init_common(u32 base, u32 udiv, u16 bdiv)
 }
 
 #if (defined(CONFIG_440) || defined(CONFIG_405EX)) &&  \
-    !defined(CFG_EXT_SERIAL_CLOCK)
+    !defined(CONFIG_SYS_EXT_SERIAL_CLOCK)
 static void serial_divs (int baudrate, unsigned long *pudiv,
                         unsigned short *pbdiv)
 {
@@ -315,7 +315,7 @@ static void serial_divs (int baudrate, unsigned long *pudiv,
        mtcpr(cprperd0, reg);
        *pbdiv = div / udiv;
 }
-#endif /* defined(CONFIG_440) && !defined(CFG_EXT_SERIAL_CLK) */
+#endif /* defined(CONFIG_440) && !defined(CONFIG_SYS_EXT_SERIAL_CLK) */
 
 /*
  * Minimal serial functions needed to use one of the SMC ports
@@ -328,18 +328,18 @@ int serial_init_dev(unsigned long base)
        unsigned long reg;
        unsigned long udiv;
        unsigned short bdiv;
-#ifdef CFG_EXT_SERIAL_CLOCK
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
        unsigned long tmp;
 #endif
 
        MFREG(UART0_SDR, reg);
        reg &= ~CR0_MASK;
 
-#ifdef CFG_EXT_SERIAL_CLOCK
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
        reg |= CR0_EXTCLK_ENA;
        udiv = 1;
        tmp  = gd->baudrate * 16;
-       bdiv = (CFG_EXT_SERIAL_CLOCK + tmp / 2) / tmp;
+       bdiv = (CONFIG_SYS_EXT_SERIAL_CLOCK + tmp / 2) / tmp;
 #else
        /* For 440, the cpu clock is on divider chain A, UART on divider
         * chain B ... so cpu clock is irrelevant. Get the "optimized"
@@ -384,11 +384,11 @@ int serial_init_dev (unsigned long base)
        clk = tmp = 0;
        mfsdr(UART0_SDR, reg);
        reg &= ~CR0_MASK;
-#ifdef CFG_EXT_SERIAL_CLOCK
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
        reg |= CR0_EXTCLK_ENA;
        udiv = 1;
        tmp  = gd->baudrate * 16;
-       bdiv = (CFG_EXT_SERIAL_CLOCK + tmp / 2) / tmp;
+       bdiv = (CONFIG_SYS_EXT_SERIAL_CLOCK + tmp / 2) / tmp;
 #else
        serial_divs(gd->baudrate, &udiv, &bdiv);
 #endif
@@ -411,7 +411,7 @@ int serial_init_dev (unsigned long base)
 #ifdef CONFIG_405EP
        reg = mfdcr(cpc0_ucr) & ~(UCR0_MASK | UCR1_MASK);
        clk = gd->cpu_clk;
-       tmp = CFG_BASE_BAUD * 16;
+       tmp = CONFIG_SYS_BASE_BAUD * 16;
        udiv = (clk + tmp / 2) / tmp;
        if (udiv > UDIV_MAX)                    /* max. n bits for udiv */
                udiv = UDIV_MAX;
@@ -420,16 +420,16 @@ int serial_init_dev (unsigned long base)
        mtdcr (cpc0_ucr, reg);
 #else /* CONFIG_405EP */
        reg = mfdcr(cntrl0) & ~CR0_MASK;
-#ifdef CFG_EXT_SERIAL_CLOCK
-       clk = CFG_EXT_SERIAL_CLOCK;
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
+       clk = CONFIG_SYS_EXT_SERIAL_CLOCK;
        udiv = 1;
        reg |= CR0_EXTCLK_ENA;
 #else
        clk = gd->cpu_clk;
-#ifdef CFG_405_UART_ERRATA_59
+#ifdef CONFIG_SYS_405_UART_ERRATA_59
        udiv = 31;                      /* Errata 59: stuck at 31 */
 #else
-       tmp = CFG_BASE_BAUD * 16;
+       tmp = CONFIG_SYS_BASE_BAUD * 16;
        udiv = (clk + tmp / 2) / tmp;
        if (udiv > UDIV_MAX)                    /* max. n bits for udiv */
                udiv = UDIV_MAX;
index ceb3ec0d3401f3112aaa0900b249eb527d81db74..269716fcebf34c0d450873620b8a92eaf87e01b0 100644 (file)
@@ -143,8 +143,8 @@ _GLOBAL(flush_dcache)
 _GLOBAL(invalidate_dcache)
        addi    r6,0,0x0000             /* clear GPR 6 */
        /* Do loop for # of dcache congruence classes. */
-       lis     r7,(CFG_DCACHE_SIZE / L1_CACHE_BYTES / 2)@ha    /* TBS for large sized cache */
-       ori     r7,r7,(CFG_DCACHE_SIZE / L1_CACHE_BYTES / 2)@l
+       lis     r7,(CONFIG_SYS_DCACHE_SIZE / L1_CACHE_BYTES / 2)@ha     /* TBS for large sized cache */
+       ori     r7,r7,(CONFIG_SYS_DCACHE_SIZE / L1_CACHE_BYTES / 2)@l
                                        /* NOTE: dccci invalidates both */
        mtctr   r7                      /* ways in the D cache */
 ..dcloop:
index 8b2954c16cc9c22fb510f09a4f74d961f15765ef..a1696d37e6c46c96548b316f6a2860fbb37ab5c8 100644 (file)
 
 #if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
 
-#if defined(CFG_POST_WORD_ADDR)
-# define _POST_ADDR    ((CFG_OCM_DATA_ADDR) + (CFG_POST_WORD_ADDR))
-#elif defined(CFG_POST_ALT_WORD_ADDR)
-# define _POST_ADDR    (CFG_POST_ALT_WORD_ADDR)
+#if defined(CONFIG_SYS_POST_WORD_ADDR)
+# define _POST_ADDR    ((CONFIG_SYS_OCM_DATA_ADDR) + (CONFIG_SYS_POST_WORD_ADDR))
+#elif defined(CONFIG_SYS_POST_ALT_WORD_ADDR)
+# define _POST_ADDR    (CONFIG_SYS_POST_ALT_WORD_ADDR)
 #endif
 
 void post_word_store (ulong a)
@@ -57,7 +57,7 @@ ulong post_word_load (void)
 void bootcount_store (ulong a)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_OCM_DATA_ADDR + CFG_BOOTCOUNT_ADDR);
+               (volatile ulong *)(CONFIG_SYS_OCM_DATA_ADDR + CONFIG_SYS_BOOTCOUNT_ADDR);
 
        save_addr[0] = a;
        save_addr[1] = BOOTCOUNT_MAGIC;
@@ -66,7 +66,7 @@ void bootcount_store (ulong a)
 ulong bootcount_load (void)
 {
        volatile ulong *save_addr =
-               (volatile ulong *)(CFG_OCM_DATA_ADDR + CFG_BOOTCOUNT_ADDR);
+               (volatile ulong *)(CONFIG_SYS_OCM_DATA_ADDR + CONFIG_SYS_BOOTCOUNT_ADDR);
 
        if (save_addr[1] != BOOTCOUNT_MAGIC)
                return 0;
index bc9335a05ea71a617c4bce2b6d163b4a79416625..66a77370c8f422016dab2a7c489691ef7985d41b 100644 (file)
@@ -629,14 +629,14 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 #if defined(CONFIG_BOARD_RESET)
        board_reset();
 #else
-#if defined(CFG_4xx_RESET_TYPE)
-       mtspr(dbcr0, CFG_4xx_RESET_TYPE << 28);
+#if defined(CONFIG_SYS_4xx_RESET_TYPE)
+       mtspr(dbcr0, CONFIG_SYS_4xx_RESET_TYPE << 28);
 #else
        /*
         * Initiate system reset in debug control register DBCR
         */
        mtspr(dbcr0, 0x30000000);
-#endif /* defined(CFG_4xx_RESET_TYPE) */
+#endif /* defined(CONFIG_SYS_4xx_RESET_TYPE) */
 #endif /* defined(CONFIG_BOARD_RESET) */
 
        return 1;
index dee98077170ebff1f1379f63acad7fb6b3fc1f2b..b5d81f2e6dd984c25f7c472bb69de1f6668c6a2b 100644 (file)
@@ -32,8 +32,8 @@
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
-#ifndef CFG_PLL_RECONFIG
-#define CFG_PLL_RECONFIG       0
+#ifndef CONFIG_SYS_PLL_RECONFIG
+#define CONFIG_SYS_PLL_RECONFIG        0
 #endif
 
 void reconfigure_pll(u32 new_cpu_freq)
@@ -142,32 +142,32 @@ cpu_init_f (void)
        u32 val;
 #endif
 
-       reconfigure_pll(CFG_PLL_RECONFIG);
+       reconfigure_pll(CONFIG_SYS_PLL_RECONFIG);
 
-#if (defined(CONFIG_405EP) || defined (CONFIG_405EX)) && !defined(CFG_4xx_GPIO_TABLE)
+#if (defined(CONFIG_405EP) || defined (CONFIG_405EX)) && !defined(CONFIG_SYS_4xx_GPIO_TABLE)
        /*
         * GPIO0 setup (select GPIO or alternate function)
         */
-#if defined(CFG_GPIO0_OR)
-       out32(GPIO0_OR, CFG_GPIO0_OR);          /* set initial state of output pins     */
+#if defined(CONFIG_SYS_GPIO0_OR)
+       out32(GPIO0_OR, CONFIG_SYS_GPIO0_OR);           /* set initial state of output pins     */
 #endif
-#if defined(CFG_GPIO0_ODR)
-       out32(GPIO0_ODR, CFG_GPIO0_ODR);        /* open-drain select                    */
+#if defined(CONFIG_SYS_GPIO0_ODR)
+       out32(GPIO0_ODR, CONFIG_SYS_GPIO0_ODR); /* open-drain select                    */
 #endif
-       out32(GPIO0_OSRH, CFG_GPIO0_OSRH);      /* output select                        */
-       out32(GPIO0_OSRL, CFG_GPIO0_OSRL);
-       out32(GPIO0_ISR1H, CFG_GPIO0_ISR1H);    /* input select                         */
-       out32(GPIO0_ISR1L, CFG_GPIO0_ISR1L);
-       out32(GPIO0_TSRH, CFG_GPIO0_TSRH);      /* three-state select                   */
-       out32(GPIO0_TSRL, CFG_GPIO0_TSRL);
-#if defined(CFG_GPIO0_ISR2H)
-       out32(GPIO0_ISR2H, CFG_GPIO0_ISR2H);
-       out32(GPIO0_ISR2L, CFG_GPIO0_ISR2L);
+       out32(GPIO0_OSRH, CONFIG_SYS_GPIO0_OSRH);       /* output select                        */
+       out32(GPIO0_OSRL, CONFIG_SYS_GPIO0_OSRL);
+       out32(GPIO0_ISR1H, CONFIG_SYS_GPIO0_ISR1H);     /* input select                         */
+       out32(GPIO0_ISR1L, CONFIG_SYS_GPIO0_ISR1L);
+       out32(GPIO0_TSRH, CONFIG_SYS_GPIO0_TSRH);       /* three-state select                   */
+       out32(GPIO0_TSRL, CONFIG_SYS_GPIO0_TSRL);
+#if defined(CONFIG_SYS_GPIO0_ISR2H)
+       out32(GPIO0_ISR2H, CONFIG_SYS_GPIO0_ISR2H);
+       out32(GPIO0_ISR2L, CONFIG_SYS_GPIO0_ISR2L);
 #endif
-#if defined (CFG_GPIO0_TCR)
-       out32(GPIO0_TCR, CFG_GPIO0_TCR);        /* enable output driver for outputs     */
+#if defined (CONFIG_SYS_GPIO0_TCR)
+       out32(GPIO0_TCR, CONFIG_SYS_GPIO0_TCR); /* enable output driver for outputs     */
 #endif
-#endif /* CONFIG_405EP ... && !CFG_4xx_GPIO_TABLE */
+#endif /* CONFIG_405EP ... && !CONFIG_SYS_4xx_GPIO_TABLE */
 
 #if defined (CONFIG_405EP)
        /*
@@ -181,14 +181,14 @@ cpu_init_f (void)
        mtdcr(cpc0_pci, mfdcr(cpc0_pci) | CPC0_PCI_HOST_CFG_EN | CPC0_PCI_ARBIT_EN);
 #endif /* CONFIG_405EP */
 
-#if defined(CFG_4xx_GPIO_TABLE)
+#if defined(CONFIG_SYS_4xx_GPIO_TABLE)
        gpio_set_chip_configuration();
-#endif /* CFG_4xx_GPIO_TABLE */
+#endif /* CONFIG_SYS_4xx_GPIO_TABLE */
 
        /*
         * External Bus Controller (EBC) Setup
         */
-#if (defined(CFG_EBC_PB0AP) && defined(CFG_EBC_PB0CR))
+#if (defined(CONFIG_SYS_EBC_PB0AP) && defined(CONFIG_SYS_EBC_PB0CR))
 #if (defined(CONFIG_405GP) || defined(CONFIG_405CR) || \
      defined(CONFIG_405EP) || defined(CONFIG_405EZ) || \
      defined(CONFIG_405EX) || defined(CONFIG_405))
@@ -209,47 +209,47 @@ cpu_init_f (void)
        asm volatile("2:        bdnz    2b"             ::: "ctr", "cr0");
 #endif
 
-       mtebc(pb0ap, CFG_EBC_PB0AP);
-       mtebc(pb0cr, CFG_EBC_PB0CR);
+       mtebc(pb0ap, CONFIG_SYS_EBC_PB0AP);
+       mtebc(pb0cr, CONFIG_SYS_EBC_PB0CR);
 #endif
 
-#if (defined(CFG_EBC_PB1AP) && defined(CFG_EBC_PB1CR) && !(CFG_INIT_DCACHE_CS == 1))
-       mtebc(pb1ap, CFG_EBC_PB1AP);
-       mtebc(pb1cr, CFG_EBC_PB1CR);
+#if (defined(CONFIG_SYS_EBC_PB1AP) && defined(CONFIG_SYS_EBC_PB1CR) && !(CONFIG_SYS_INIT_DCACHE_CS == 1))
+       mtebc(pb1ap, CONFIG_SYS_EBC_PB1AP);
+       mtebc(pb1cr, CONFIG_SYS_EBC_PB1CR);
 #endif
 
-#if (defined(CFG_EBC_PB2AP) && defined(CFG_EBC_PB2CR) && !(CFG_INIT_DCACHE_CS == 2))
-       mtebc(pb2ap, CFG_EBC_PB2AP);
-       mtebc(pb2cr, CFG_EBC_PB2CR);
+#if (defined(CONFIG_SYS_EBC_PB2AP) && defined(CONFIG_SYS_EBC_PB2CR) && !(CONFIG_SYS_INIT_DCACHE_CS == 2))
+       mtebc(pb2ap, CONFIG_SYS_EBC_PB2AP);
+       mtebc(pb2cr, CONFIG_SYS_EBC_PB2CR);
 #endif
 
-#if (defined(CFG_EBC_PB3AP) && defined(CFG_EBC_PB3CR) && !(CFG_INIT_DCACHE_CS == 3))
-       mtebc(pb3ap, CFG_EBC_PB3AP);
-       mtebc(pb3cr, CFG_EBC_PB3CR);
+#if (defined(CONFIG_SYS_EBC_PB3AP) && defined(CONFIG_SYS_EBC_PB3CR) && !(CONFIG_SYS_INIT_DCACHE_CS == 3))
+       mtebc(pb3ap, CONFIG_SYS_EBC_PB3AP);
+       mtebc(pb3cr, CONFIG_SYS_EBC_PB3CR);
 #endif
 
-#if (defined(CFG_EBC_PB4AP) && defined(CFG_EBC_PB4CR) && !(CFG_INIT_DCACHE_CS == 4))
-       mtebc(pb4ap, CFG_EBC_PB4AP);
-       mtebc(pb4cr, CFG_EBC_PB4CR);
+#if (defined(CONFIG_SYS_EBC_PB4AP) && defined(CONFIG_SYS_EBC_PB4CR) && !(CONFIG_SYS_INIT_DCACHE_CS == 4))
+       mtebc(pb4ap, CONFIG_SYS_EBC_PB4AP);
+       mtebc(pb4cr, CONFIG_SYS_EBC_PB4CR);
 #endif
 
-#if (defined(CFG_EBC_PB5AP) && defined(CFG_EBC_PB5CR) && !(CFG_INIT_DCACHE_CS == 5))
-       mtebc(pb5ap, CFG_EBC_PB5AP);
-       mtebc(pb5cr, CFG_EBC_PB5CR);
+#if (defined(CONFIG_SYS_EBC_PB5AP) && defined(CONFIG_SYS_EBC_PB5CR) && !(CONFIG_SYS_INIT_DCACHE_CS == 5))
+       mtebc(pb5ap, CONFIG_SYS_EBC_PB5AP);
+       mtebc(pb5cr, CONFIG_SYS_EBC_PB5CR);
 #endif
 
-#if (defined(CFG_EBC_PB6AP) && defined(CFG_EBC_PB6CR) && !(CFG_INIT_DCACHE_CS == 6))
-       mtebc(pb6ap, CFG_EBC_PB6AP);
-       mtebc(pb6cr, CFG_EBC_PB6CR);
+#if (defined(CONFIG_SYS_EBC_PB6AP) && defined(CONFIG_SYS_EBC_PB6CR) && !(CONFIG_SYS_INIT_DCACHE_CS == 6))
+       mtebc(pb6ap, CONFIG_SYS_EBC_PB6AP);
+       mtebc(pb6cr, CONFIG_SYS_EBC_PB6CR);
 #endif
 
-#if (defined(CFG_EBC_PB7AP) && defined(CFG_EBC_PB7CR) && !(CFG_INIT_DCACHE_CS == 7))
-       mtebc(pb7ap, CFG_EBC_PB7AP);
-       mtebc(pb7cr, CFG_EBC_PB7CR);
+#if (defined(CONFIG_SYS_EBC_PB7AP) && defined(CONFIG_SYS_EBC_PB7CR) && !(CONFIG_SYS_INIT_DCACHE_CS == 7))
+       mtebc(pb7ap, CONFIG_SYS_EBC_PB7AP);
+       mtebc(pb7cr, CONFIG_SYS_EBC_PB7CR);
 #endif
 
-#if defined (CFG_EBC_CFG)
-       mtebc(EBC0_CFG, CFG_EBC_CFG);
+#if defined (CONFIG_SYS_EBC_CFG)
+       mtebc(EBC0_CFG, CONFIG_SYS_EBC_CFG);
 #endif
 
 #if defined(CONFIG_WATCHDOG)
@@ -261,9 +261,9 @@ cpu_init_f (void)
 #else
        val |= 0xf0000000;      /* generate system reset after 2.684 seconds */
 #endif
-#if defined(CFG_4xx_RESET_TYPE)
+#if defined(CONFIG_SYS_4xx_RESET_TYPE)
        val &= ~0x30000000;                     /* clear WRC bits */
-       val |= CFG_4xx_RESET_TYPE << 28;        /* set board specific WRC type */
+       val |= CONFIG_SYS_4xx_RESET_TYPE << 28; /* set board specific WRC type */
 #endif
        mtspr(tcr, val);
 
index 967e61bd415684fb0036dab673f09cc7bbe7dbf6..ffc38174491f1531c5f0ee76d94557f6587fe2ee 100644 (file)
@@ -127,7 +127,7 @@ void denali_core_search_data_eye(void)
                0x55AA55AA, 0x55AA55AA, 0xAA55AA55, 0xAA55AA55
        };
 
-       ram_pointer = (volatile u32 *)(CFG_SDRAM_BASE);
+       ram_pointer = (volatile u32 *)(CONFIG_SYS_SDRAM_BASE);
 
        for (wr_dqs_shift = 64; wr_dqs_shift < 96; wr_dqs_shift++) {
                /* for (wr_dqs_shift=1; wr_dqs_shift<96; wr_dqs_shift++) { */
index 670fc5c6ed376365e9269182b3121d2de0b1077e..4705e21b57c0b01d64f337d688656fd52fc3420c 100644 (file)
@@ -1048,8 +1048,8 @@ phys_size_t initdram(int board_type)
         * before continuing.
         */
        /* switch to correct I2C bus */
-       I2C_SET_BUS(CFG_SPD_BUS_NUM);
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       I2C_SET_BUS(CONFIG_SYS_SPD_BUS_NUM);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 
        /*------------------------------------------------------------------
         * Clear out the serial presence detect buffers.
@@ -1185,27 +1185,27 @@ phys_size_t initdram(int board_type)
         * Map the first 1 MiB of memory in the TLB, and perform the data eye
         * search.
         */
-       program_tlb(0, CFG_SDRAM_BASE, TLB_1MB_SIZE, TLB_WORD2_I_ENABLE);
+       program_tlb(0, CONFIG_SYS_SDRAM_BASE, TLB_1MB_SIZE, TLB_WORD2_I_ENABLE);
        denali_core_search_data_eye();
        denali_sdram_register_dump();
-       remove_tlb(CFG_SDRAM_BASE, TLB_1MB_SIZE);
+       remove_tlb(CONFIG_SYS_SDRAM_BASE, TLB_1MB_SIZE);
 #endif
 
 #if defined(CONFIG_ZERO_SDRAM) || defined(CONFIG_DDR_ECC)
-       program_tlb(0, CFG_SDRAM_BASE, dram_size, 0);
+       program_tlb(0, CONFIG_SYS_SDRAM_BASE, dram_size, 0);
        sync();
        /* Zero the memory */
        debug("Zeroing SDRAM...");
-#if defined(CFG_MEM_TOP_HIDE)
-       dcbz_area(CFG_SDRAM_BASE, dram_size - CFG_MEM_TOP_HIDE);
+#if defined(CONFIG_SYS_MEM_TOP_HIDE)
+       dcbz_area(CONFIG_SYS_SDRAM_BASE, dram_size - CONFIG_SYS_MEM_TOP_HIDE);
 #else
-#error Please define CFG_MEM_TOP_HIDE (see README) in your board config file
+#error Please define CONFIG_SYS_MEM_TOP_HIDE (see README) in your board config file
 #endif
        /* Write modified dcache lines back to memory */
-       clean_dcache_range(CFG_SDRAM_BASE, CFG_SDRAM_BASE + dram_size - CFG_MEM_TOP_HIDE);
+       clean_dcache_range(CONFIG_SYS_SDRAM_BASE, CONFIG_SYS_SDRAM_BASE + dram_size - CONFIG_SYS_MEM_TOP_HIDE);
        debug("Completed\n");
        sync();
-       remove_tlb(CFG_SDRAM_BASE, dram_size);
+       remove_tlb(CONFIG_SYS_SDRAM_BASE, dram_size);
 
 #if defined(CONFIG_DDR_ECC)
        /*
@@ -1236,7 +1236,7 @@ phys_size_t initdram(int board_type)
 #endif /* defined(CONFIG_DDR_ECC) */
 #endif /* defined(CONFIG_ZERO_SDRAM) || defined(CONFIG_DDR_ECC) */
 
-       program_tlb(0, CFG_SDRAM_BASE, dram_size, MY_TLB_WORD2_I_ENABLE);
+       program_tlb(0, CONFIG_SYS_SDRAM_BASE, dram_size, MY_TLB_WORD2_I_ENABLE);
        return dram_size;
 }
 
index a2eb07bd755cbafc6fa8123aadaa469f57699b0a..3f989e7f59b16083154adc5503636a29ef3eee8a 100644 (file)
@@ -68,7 +68,7 @@
  *
  *  Output(s):
  *    start - A pointer to the start of memory covered by ECC with
- *           CFG_ECC_PATTERN written to all locations and ECC data
+ *           CONFIG_SYS_ECC_PATTERN written to all locations and ECC data
  *           primed.
  *
  *  Returns:
@@ -76,7 +76,7 @@
  */
 void ecc_init(unsigned long * const start, unsigned long size)
 {
-       const unsigned long pattern = CFG_ECC_PATTERN;
+       const unsigned long pattern = CONFIG_SYS_ECC_PATTERN;
        unsigned long * const end = (unsigned long * const)((long)start + size);
        unsigned long * current = start;
        unsigned long mcopt1;
index aecf291a8b623287232d06d36a74e61e8525e052..67c3bff878ef3d0fb18338084bdc37d28d62c121 100644 (file)
@@ -33,9 +33,9 @@
 #ifndef _ECC_H_
 #define _ECC_H_
 
-#if !defined(CFG_ECC_PATTERN)
-#define        CFG_ECC_PATTERN 0x00000000
-#endif /* !defined(CFG_ECC_PATTERN) */
+#if !defined(CONFIG_SYS_ECC_PATTERN)
+#define        CONFIG_SYS_ECC_PATTERN  0x00000000
+#endif /* !defined(CONFIG_SYS_ECC_PATTERN) */
 
 /*
  * Since the IBM DDR controller used on 440GP/GX/EP/GR is not register
index df99f5314b5772d39e1fe71747ac712a15fb3053..c0d351a957b9b2a851aadf0d072b0341b77b7b17 100644 (file)
@@ -26,8 +26,8 @@
 #include <asm/io.h>
 #include <asm/gpio.h>
 
-#if defined(CFG_4xx_GPIO_TABLE)
-gpio_param_s const gpio_tab[GPIO_GROUP_MAX][GPIO_MAX] = CFG_4xx_GPIO_TABLE;
+#if defined(CONFIG_SYS_4xx_GPIO_TABLE)
+gpio_param_s const gpio_tab[GPIO_GROUP_MAX][GPIO_MAX] = CONFIG_SYS_4xx_GPIO_TABLE;
 #endif
 
 #if defined(GPIO0_OSRL)
@@ -132,7 +132,7 @@ int gpio_read_in_bit(int pin)
        return (in_be32((void *)GPIO0_IR + offs) & GPIO_VAL(pin) ? 1 : 0);
 }
 
-#if defined(CFG_4xx_GPIO_TABLE)
+#if defined(CONFIG_SYS_4xx_GPIO_TABLE)
 void gpio_set_chip_configuration(void)
 {
        unsigned char i=0, j=0, offs=0, gpio_core;
@@ -252,4 +252,4 @@ void gpio_set_chip_configuration(void)
                }
        }
 }
-#endif /* CFG_4xx_GPIO_TABLE */
+#endif /* CONFIG_SYS_4xx_GPIO_TABLE */
index d8be2cef1f7b9b3ea64d82c28114a2c438c737b9..0deb1499307306e1e0449ed35c907d4219aec426 100644 (file)
@@ -42,8 +42,8 @@ DECLARE_GLOBAL_DATA_PTR;
  * runs from ROM, and we can't switch buses because we can't modify
  * the global variables.
  */
-#ifdef CFG_SPD_BUS_NUM
-static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = CFG_SPD_BUS_NUM;
+#ifdef CONFIG_SYS_SPD_BUS_NUM
+static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = CONFIG_SYS_SPD_BUS_NUM;
 #else
 static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = 0;
 #endif
@@ -95,14 +95,14 @@ void i2c_init(int speed, int slaveadd)
        int val, divisor;
        int bus;
 
-#ifdef CFG_I2C_INIT_BOARD
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
        /* call board specific i2c bus reset routine before accessing the   */
        /* environment, which might be in a chip on that bus. For details   */
        /* about this problem see doc/I2C_Edge_Conditions.                  */
        i2c_init_board();
 #endif
 
-       for (bus = 0; bus < CFG_MAX_I2C_BUS; bus++) {
+       for (bus = 0; bus < CONFIG_SYS_MAX_I2C_BUS; bus++) {
                I2C_SET_BUS(bus);
 
                /* Handle possible failed I2C state */
@@ -161,7 +161,7 @@ void i2c_init(int speed, int slaveadd)
        }
 
        /* set to SPD bus as default bus upon powerup */
-       I2C_SET_BUS(CFG_SPD_BUS_NUM);
+       I2C_SET_BUS(CONFIG_SYS_SPD_BUS_NUM);
 }
 
 /*
@@ -361,7 +361,7 @@ int i2c_read(uchar chip, uint addr, int alen, uchar * buffer, int len)
        }
 
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones
         * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
@@ -374,7 +374,7 @@ int i2c_read(uchar chip, uint addr, int alen, uchar * buffer, int len)
         * hidden in the chip address.
         */
        if (alen > 0)
-               chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+               chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
        if ((ret = i2c_transfer(1, chip<<1, &xaddr[4-alen], alen, buffer, len)) != 0) {
                if (gd->have_console)
@@ -401,7 +401,7 @@ int i2c_write(uchar chip, uint addr, int alen, uchar * buffer, int len)
                xaddr[3] = addr & 0xFF;
        }
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones
         * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
@@ -414,7 +414,7 @@ int i2c_write(uchar chip, uint addr, int alen, uchar * buffer, int len)
         * hidden in the chip address.
         */
        if (alen > 0)
-               chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+               chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 #endif
 
        return (i2c_transfer(0, chip<<1, &xaddr[4-alen], alen, buffer, len ) != 0);
@@ -451,7 +451,7 @@ unsigned int i2c_get_bus_num(void)
 
 int i2c_set_bus_num(unsigned int bus)
 {
-       if (bus >= CFG_MAX_I2C_BUS)
+       if (bus >= CONFIG_SYS_MAX_I2C_BUS)
                return -1;
 
        i2c_bus_num = bus;
@@ -463,12 +463,12 @@ int i2c_set_bus_num(unsigned int bus)
 /* TODO: add 100/400k switching */
 unsigned int i2c_get_bus_speed(void)
 {
-       return CFG_I2C_SPEED;
+       return CONFIG_SYS_I2C_SPEED;
 }
 
 int i2c_set_bus_speed(unsigned int speed)
 {
-       if (speed != CFG_I2C_SPEED)
+       if (speed != CONFIG_SYS_I2C_SPEED)
                return -1;
 
        return 0;
index 7d96e796d16b675a54a1cc43eb3af1954c990e6e..3a5af12db9c005ee6e849d1ca011d0ef90d39e11 100644 (file)
@@ -149,8 +149,8 @@ static int ndfc_verify_buf(struct mtd_info *mtdinfo, const uint8_t *buf, int len
 }
 #endif /* #ifndef CONFIG_NAND_SPL */
 
-#ifndef CFG_NAND_BCR
-#define CFG_NAND_BCR 0x80002222
+#ifndef CONFIG_SYS_NAND_BCR
+#define CONFIG_SYS_NAND_BCR 0x80002222
 #endif
 
 void board_nand_select_device(struct nand_chip *nand, int chip)
@@ -165,7 +165,7 @@ void board_nand_select_device(struct nand_chip *nand, int chip)
        /* Set NandFlash Core Configuration Register */
        /* 1 col x 2 rows */
        out_be32((u32 *)(base + NDFC_CCR), 0x00000000 | (cs << 24));
-       out_be32((u32 *)(base + NDFC_BCFG0 + (cs << 2)), CFG_NAND_BCR);
+       out_be32((u32 *)(base + NDFC_BCFG0 + (cs << 2)), CONFIG_SYS_NAND_BCR);
 }
 
 static void ndfc_select_chip(struct mtd_info *mtd, int chip)
@@ -214,8 +214,8 @@ int board_nand_init(struct nand_chip *nand)
         */
        mtebc(EBC0_CFG, 0xb8400000);
 
-       mtebc(pb0cr, CFG_EBC_PB0CR);
-       mtebc(pb0ap, CFG_EBC_PB0AP);
+       mtebc(pb0cr, CONFIG_SYS_EBC_PB0CR);
+       mtebc(pb0ap, CONFIG_SYS_EBC_PB0AP);
 #endif
 
        chip++;
index b5a6a4c981bf1912831981afe2356f599deb58a7..6d5f8d65da80c9f4a1860947d0612c2236b8659a 100644 (file)
@@ -37,7 +37,7 @@
 
 #ifndef CONFIG_440
 
-#ifndef CFG_SDRAM_TABLE
+#ifndef CONFIG_SYS_SDRAM_TABLE
 sdram_conf_t mb0cf[] = {
        {(128 << 20), 13, 0x000A4001},      /* (0-128MB) Address Mode 3, 13x10(4) */
        {(64 << 20),  13, 0x00084001},      /* (0-64MB) Address Mode 3, 13x9(4)   */
@@ -46,72 +46,72 @@ sdram_conf_t mb0cf[] = {
        {(4 << 20),   11, 0x00008001},      /* (0-4MB) Address Mode 5, 11x8(2)    */
 };
 #else
-sdram_conf_t mb0cf[] = CFG_SDRAM_TABLE;
+sdram_conf_t mb0cf[] = CONFIG_SYS_SDRAM_TABLE;
 #endif
 
 #define N_MB0CF (sizeof(mb0cf) / sizeof(mb0cf[0]))
 
-#ifdef CFG_SDRAM_CASL
+#ifdef CONFIG_SYS_SDRAM_CASL
 static ulong ns2clks(ulong ns)
 {
        ulong bus_period_x_10 = ONE_BILLION / (get_bus_freq(0) / 10);
 
        return ((ns * 10) + bus_period_x_10) / bus_period_x_10;
 }
-#endif /* CFG_SDRAM_CASL */
+#endif /* CONFIG_SYS_SDRAM_CASL */
 
 static ulong compute_sdtr1(ulong speed)
 {
-#ifdef CFG_SDRAM_CASL
+#ifdef CONFIG_SYS_SDRAM_CASL
        ulong tmp;
        ulong sdtr1 = 0;
 
        /* CASL */
-       if (CFG_SDRAM_CASL < 2)
+       if (CONFIG_SYS_SDRAM_CASL < 2)
                sdtr1 |= (1 << SDRAM0_TR_CASL);
        else
-               if (CFG_SDRAM_CASL > 4)
+               if (CONFIG_SYS_SDRAM_CASL > 4)
                        sdtr1 |= (3 << SDRAM0_TR_CASL);
                else
-                       sdtr1 |= ((CFG_SDRAM_CASL-1) << SDRAM0_TR_CASL);
+                       sdtr1 |= ((CONFIG_SYS_SDRAM_CASL-1) << SDRAM0_TR_CASL);
 
        /* PTA */
-       tmp = ns2clks(CFG_SDRAM_PTA);
+       tmp = ns2clks(CONFIG_SYS_SDRAM_PTA);
        if ((tmp >= 2) && (tmp <= 4))
                sdtr1 |= ((tmp-1) << SDRAM0_TR_PTA);
        else
                sdtr1 |= ((4-1) << SDRAM0_TR_PTA);
 
        /* CTP */
-       tmp = ns2clks(CFG_SDRAM_CTP);
+       tmp = ns2clks(CONFIG_SYS_SDRAM_CTP);
        if ((tmp >= 2) && (tmp <= 4))
                sdtr1 |= ((tmp-1) << SDRAM0_TR_CTP);
        else
                sdtr1 |= ((4-1) << SDRAM0_TR_CTP);
 
        /* LDF */
-       tmp = ns2clks(CFG_SDRAM_LDF);
+       tmp = ns2clks(CONFIG_SYS_SDRAM_LDF);
        if ((tmp >= 2) && (tmp <= 4))
                sdtr1 |= ((tmp-1) << SDRAM0_TR_LDF);
        else
                sdtr1 |= ((2-1) << SDRAM0_TR_LDF);
 
        /* RFTA */
-       tmp = ns2clks(CFG_SDRAM_RFTA);
+       tmp = ns2clks(CONFIG_SYS_SDRAM_RFTA);
        if ((tmp >= 4) && (tmp <= 10))
                sdtr1 |= ((tmp-4) << SDRAM0_TR_RFTA);
        else
                sdtr1 |= ((10-4) << SDRAM0_TR_RFTA);
 
        /* RCD */
-       tmp = ns2clks(CFG_SDRAM_RCD);
+       tmp = ns2clks(CONFIG_SYS_SDRAM_RCD);
        if ((tmp >= 2) && (tmp <= 4))
                sdtr1 |= ((tmp-1) << SDRAM0_TR_RCD);
        else
                sdtr1 |= ((4-1) << SDRAM0_TR_RCD);
 
        return sdtr1;
-#else /* CFG_SDRAM_CASL */
+#else /* CONFIG_SYS_SDRAM_CASL */
        /*
         * If no values are configured in the board config file
         * use the default values, which seem to be ok for most
@@ -133,20 +133,20 @@ static ulong compute_sdtr1(ulong speed)
                 */
                return 0x0086400d;
        }
-#endif /* CFG_SDRAM_CASL */
+#endif /* CONFIG_SYS_SDRAM_CASL */
 }
 
 /* refresh is expressed in ms */
 static ulong compute_rtr(ulong speed, ulong rows, ulong refresh)
 {
-#ifdef CFG_SDRAM_CASL
+#ifdef CONFIG_SYS_SDRAM_CASL
        ulong tmp;
 
        tmp = ((refresh*1000*1000) / (1 << rows)) * (speed / 1000);
        tmp /= 1000000;
 
        return ((tmp & 0x00003FF8) << 16);
-#else /* CFG_SDRAM_CASL */
+#else /* CONFIG_SYS_SDRAM_CASL */
        if (speed > 100000000) {
                /*
                 * 133 MHz SDRAM
@@ -158,7 +158,7 @@ static ulong compute_rtr(ulong speed, ulong rows, ulong refresh)
                 */
                return 0x05f00000;
        }
-#endif /* CFG_SDRAM_CASL */
+#endif /* CONFIG_SYS_SDRAM_CASL */
 }
 
 /*
@@ -256,17 +256,17 @@ phys_size_t initdram(int board_type)
  * board config file.
  */
 
-#ifndef CFG_SDRAM_TABLE
+#ifndef CONFIG_SYS_SDRAM_TABLE
 sdram_conf_t mb0cf[] = {
        {(256 << 20), 13, 0x000C4001},  /* 256MB mode 3, 13x10(4)       */
        {(64 << 20),  12, 0x00082001}   /* 64MB mode 2, 12x9(4)         */
 };
 #else
-sdram_conf_t mb0cf[] = CFG_SDRAM_TABLE;
+sdram_conf_t mb0cf[] = CONFIG_SYS_SDRAM_TABLE;
 #endif
 
-#ifndef CFG_SDRAM0_TR0
-#define        CFG_SDRAM0_TR0          0x41094012
+#ifndef CONFIG_SYS_SDRAM0_TR0
+#define        CONFIG_SYS_SDRAM0_TR0           0x41094012
 #endif
 
 #define N_MB0CF (sizeof(mb0cf) / sizeof(mb0cf[0]))
@@ -385,7 +385,7 @@ phys_size_t initdram(int board_type)
                 * Following for CAS Latency = 2.5 @ 133 MHz PLB
                 */
                mtsdram(mem_b0cr, mb0cf[i].reg);
-               mtsdram(mem_tr0, CFG_SDRAM0_TR0);
+               mtsdram(mem_tr0, CONFIG_SYS_SDRAM0_TR0);
                mtsdram(mem_tr1, 0x80800800);   /* SS=T2 SL=STAGE 3 CD=1 CT=0x00*/
                mtsdram(mem_rtr, 0x04100000);   /* Interval 7.8µs @ 133MHz PLB  */
                mtsdram(mem_cfg1, 0x00000000);  /* Self-refresh exit, disable PM*/
index 4fb9b1ae14e70eed077b0ad6e2eabe13a5419620..bea33765348a1c2ca621b131f2df31497ca5a9dd 100644 (file)
@@ -47,19 +47,19 @@ typedef struct sdram_conf_s sdram_conf_t;
 #define SDRAM0_TR_RFTA         (31 - 29)
 #define SDRAM0_TR_RCD          (31 - 31)
 
-#ifdef CFG_SDRAM_CL
+#ifdef CONFIG_SYS_SDRAM_CL
 /* SDRAM timings [ns] according to AMCC/IBM names (see SDRAM_faq.doc) */
-#define CFG_SDRAM_CASL         CFG_SDRAM_CL
-#define CFG_SDRAM_PTA          CFG_SDRAM_tRP
-#define CFG_SDRAM_CTP          (CFG_SDRAM_tRC - CFG_SDRAM_tRCD - CFG_SDRAM_tRP)
-#define CFG_SDRAM_LDF          0
-#ifdef CFG_SDRAM_tRFC
-#define CFG_SDRAM_RFTA         CFG_SDRAM_tRFC
+#define CONFIG_SYS_SDRAM_CASL          CONFIG_SYS_SDRAM_CL
+#define CONFIG_SYS_SDRAM_PTA           CONFIG_SYS_SDRAM_tRP
+#define CONFIG_SYS_SDRAM_CTP           (CONFIG_SYS_SDRAM_tRC - CONFIG_SYS_SDRAM_tRCD - CONFIG_SYS_SDRAM_tRP)
+#define CONFIG_SYS_SDRAM_LDF           0
+#ifdef CONFIG_SYS_SDRAM_tRFC
+#define CONFIG_SYS_SDRAM_RFTA          CONFIG_SYS_SDRAM_tRFC
 #else
-#define CFG_SDRAM_RFTA         CFG_SDRAM_tRC
+#define CONFIG_SYS_SDRAM_RFTA          CONFIG_SYS_SDRAM_tRC
 #endif
-#define CFG_SDRAM_RCD          CFG_SDRAM_tRCD
-#endif /* #ifdef CFG_SDRAM_CL */
+#define CONFIG_SYS_SDRAM_RCD           CONFIG_SYS_SDRAM_tRCD
+#endif /* #ifdef CONFIG_SYS_SDRAM_CL */
 
 /*
  * Some defines for the 440 DDR controller
index 97411bdb9d13a1127d0215f1f21ca2dc196d38a8..31902a08f8d7fd9b3e5736b42b1d836b563837f6 100644 (file)
 #define         CONFIG_IDENT_STRING ""
 #endif
 
-#ifdef CFG_INIT_DCACHE_CS
-# if (CFG_INIT_DCACHE_CS == 0)
+#ifdef CONFIG_SYS_INIT_DCACHE_CS
+# if (CONFIG_SYS_INIT_DCACHE_CS == 0)
 #  define PBxAP pb0ap
 #  define PBxCR pb0cr
-#  if (defined(CFG_EBC_PB0AP) && defined(CFG_EBC_PB0CR))
-#   define PBxAP_VAL CFG_EBC_PB0AP
-#   define PBxCR_VAL CFG_EBC_PB0CR
+#  if (defined(CONFIG_SYS_EBC_PB0AP) && defined(CONFIG_SYS_EBC_PB0CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB0AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB0CR
 #  endif
 # endif
-# if (CFG_INIT_DCACHE_CS == 1)
+# if (CONFIG_SYS_INIT_DCACHE_CS == 1)
 #  define PBxAP pb1ap
 #  define PBxCR pb1cr
-#  if (defined(CFG_EBC_PB1AP) && defined(CFG_EBC_PB1CR))
-#   define PBxAP_VAL CFG_EBC_PB1AP
-#   define PBxCR_VAL CFG_EBC_PB1CR
+#  if (defined(CONFIG_SYS_EBC_PB1AP) && defined(CONFIG_SYS_EBC_PB1CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB1AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB1CR
 #  endif
 # endif
-# if (CFG_INIT_DCACHE_CS == 2)
+# if (CONFIG_SYS_INIT_DCACHE_CS == 2)
 #  define PBxAP pb2ap
 #  define PBxCR pb2cr
-#  if (defined(CFG_EBC_PB2AP) && defined(CFG_EBC_PB2CR))
-#   define PBxAP_VAL CFG_EBC_PB2AP
-#   define PBxCR_VAL CFG_EBC_PB2CR
+#  if (defined(CONFIG_SYS_EBC_PB2AP) && defined(CONFIG_SYS_EBC_PB2CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB2AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB2CR
 #  endif
 # endif
-# if (CFG_INIT_DCACHE_CS == 3)
+# if (CONFIG_SYS_INIT_DCACHE_CS == 3)
 #  define PBxAP pb3ap
 #  define PBxCR pb3cr
-#  if (defined(CFG_EBC_PB3AP) && defined(CFG_EBC_PB3CR))
-#   define PBxAP_VAL CFG_EBC_PB3AP
-#   define PBxCR_VAL CFG_EBC_PB3CR
+#  if (defined(CONFIG_SYS_EBC_PB3AP) && defined(CONFIG_SYS_EBC_PB3CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB3AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB3CR
 #  endif
 # endif
-# if (CFG_INIT_DCACHE_CS == 4)
+# if (CONFIG_SYS_INIT_DCACHE_CS == 4)
 #  define PBxAP pb4ap
 #  define PBxCR pb4cr
-#  if (defined(CFG_EBC_PB4AP) && defined(CFG_EBC_PB4CR))
-#   define PBxAP_VAL CFG_EBC_PB4AP
-#   define PBxCR_VAL CFG_EBC_PB4CR
+#  if (defined(CONFIG_SYS_EBC_PB4AP) && defined(CONFIG_SYS_EBC_PB4CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB4AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB4CR
 #  endif
 # endif
-# if (CFG_INIT_DCACHE_CS == 5)
+# if (CONFIG_SYS_INIT_DCACHE_CS == 5)
 #  define PBxAP pb5ap
 #  define PBxCR pb5cr
-#  if (defined(CFG_EBC_PB5AP) && defined(CFG_EBC_PB5CR))
-#   define PBxAP_VAL CFG_EBC_PB5AP
-#   define PBxCR_VAL CFG_EBC_PB5CR
+#  if (defined(CONFIG_SYS_EBC_PB5AP) && defined(CONFIG_SYS_EBC_PB5CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB5AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB5CR
 #  endif
 # endif
-# if (CFG_INIT_DCACHE_CS == 6)
+# if (CONFIG_SYS_INIT_DCACHE_CS == 6)
 #  define PBxAP pb6ap
 #  define PBxCR pb6cr
-#  if (defined(CFG_EBC_PB6AP) && defined(CFG_EBC_PB6CR))
-#   define PBxAP_VAL CFG_EBC_PB6AP
-#   define PBxCR_VAL CFG_EBC_PB6CR
+#  if (defined(CONFIG_SYS_EBC_PB6AP) && defined(CONFIG_SYS_EBC_PB6CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB6AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB6CR
 #  endif
 # endif
-# if (CFG_INIT_DCACHE_CS == 7)
+# if (CONFIG_SYS_INIT_DCACHE_CS == 7)
 #  define PBxAP pb7ap
 #  define PBxCR pb7cr
-#  if (defined(CFG_EBC_PB7AP) && defined(CFG_EBC_PB7CR))
-#   define PBxAP_VAL CFG_EBC_PB7AP
-#   define PBxCR_VAL CFG_EBC_PB7CR
+#  if (defined(CONFIG_SYS_EBC_PB7AP) && defined(CONFIG_SYS_EBC_PB7CR))
+#   define PBxAP_VAL CONFIG_SYS_EBC_PB7AP
+#   define PBxCR_VAL CONFIG_SYS_EBC_PB7CR
 #  endif
 # endif
 # ifndef PBxAP_VAL
 #  define PBxCR_VAL    0
 # endif
 /*
- * Memory Bank x (nothingness) initialization CFG_INIT_RAM_ADDR + 64 MiB
+ * Memory Bank x (nothingness) initialization CONFIG_SYS_INIT_RAM_ADDR + 64 MiB
  * used as temporary stack pointer for the primordial stack
  */
-# ifndef CFG_INIT_DCACHE_PBxAR
-#  define CFG_INIT_DCACHE_PBxAR        (EBC_BXAP_BME_DISABLED                  | \
+# ifndef CONFIG_SYS_INIT_DCACHE_PBxAR
+#  define CONFIG_SYS_INIT_DCACHE_PBxAR (EBC_BXAP_BME_DISABLED                  | \
                                 EBC_BXAP_TWT_ENCODE(7)                 | \
                                 EBC_BXAP_BCE_DISABLE                   | \
                                 EBC_BXAP_BCT_2TRANS                    | \
                                 EBC_BXAP_SOR_NONDELAYED                | \
                                 EBC_BXAP_BEM_WRITEONLY                 | \
                                 EBC_BXAP_PEN_DISABLED)
-# endif /* CFG_INIT_DCACHE_PBxAR */
-# ifndef CFG_INIT_DCACHE_PBxCR
-#  define CFG_INIT_DCACHE_PBxCR        (EBC_BXCR_BAS_ENCODE(CFG_INIT_RAM_ADDR) | \
+# endif /* CONFIG_SYS_INIT_DCACHE_PBxAR */
+# ifndef CONFIG_SYS_INIT_DCACHE_PBxCR
+#  define CONFIG_SYS_INIT_DCACHE_PBxCR (EBC_BXCR_BAS_ENCODE(CONFIG_SYS_INIT_RAM_ADDR)  | \
                                 EBC_BXCR_BS_64MB                       | \
                                 EBC_BXCR_BU_RW                         | \
                                 EBC_BXCR_BW_16BIT)
-# endif /* CFG_INIT_DCACHE_PBxCR */
-# ifndef CFG_INIT_RAM_PATTERN
-#  define CFG_INIT_RAM_PATTERN 0xDEADDEAD
+# endif /* CONFIG_SYS_INIT_DCACHE_PBxCR */
+# ifndef CONFIG_SYS_INIT_RAM_PATTERN
+#  define CONFIG_SYS_INIT_RAM_PATTERN  0xDEADDEAD
 # endif
-#endif /* CFG_INIT_DCACHE_CS */
+#endif /* CONFIG_SYS_INIT_DCACHE_CS */
 
-#if (defined(CFG_INIT_RAM_DCACHE) && (CFG_INIT_RAM_END > (4 << 10)))
-#error Only 4k of init-ram is supported - please adjust CFG_INIT_RAM_END!
+#if (defined(CONFIG_SYS_INIT_RAM_DCACHE) && (CONFIG_SYS_INIT_RAM_END > (4 << 10)))
+#error Only 4k of init-ram is supported - please adjust CONFIG_SYS_INIT_RAM_END!
 #endif
 
 /*
  * Unless otherwise overriden, enable two 128MB cachable instruction regions
- * at CFG_SDRAM_BASE and another 128MB cacheable instruction region covering
- * NOR flash at CFG_FLASH_BASE. Disable all cacheable data regions.
+ * at CONFIG_SYS_SDRAM_BASE and another 128MB cacheable instruction region covering
+ * NOR flash at CONFIG_SYS_FLASH_BASE. Disable all cacheable data regions.
  */
-#if !defined(CFG_FLASH_BASE)
+#if !defined(CONFIG_SYS_FLASH_BASE)
 /* If not already defined, set it to the "last" 128MByte region */
-# define CFG_FLASH_BASE                0xf8000000
+# define CONFIG_SYS_FLASH_BASE         0xf8000000
 #endif
-#if !defined(CFG_ICACHE_SACR_VALUE)
-# define CFG_ICACHE_SACR_VALUE         \
-               (PPC_128MB_SACR_VALUE(CFG_SDRAM_BASE + (  0 << 20)) | \
-                PPC_128MB_SACR_VALUE(CFG_SDRAM_BASE + (128 << 20)) | \
-                PPC_128MB_SACR_VALUE(CFG_FLASH_BASE))
-#endif /* !defined(CFG_ICACHE_SACR_VALUE) */
-
-#if !defined(CFG_DCACHE_SACR_VALUE)
-# define CFG_DCACHE_SACR_VALUE         \
+#if !defined(CONFIG_SYS_ICACHE_SACR_VALUE)
+# define CONFIG_SYS_ICACHE_SACR_VALUE          \
+               (PPC_128MB_SACR_VALUE(CONFIG_SYS_SDRAM_BASE + (  0 << 20)) | \
+                PPC_128MB_SACR_VALUE(CONFIG_SYS_SDRAM_BASE + (128 << 20)) | \
+                PPC_128MB_SACR_VALUE(CONFIG_SYS_FLASH_BASE))
+#endif /* !defined(CONFIG_SYS_ICACHE_SACR_VALUE) */
+
+#if !defined(CONFIG_SYS_DCACHE_SACR_VALUE)
+# define CONFIG_SYS_DCACHE_SACR_VALUE          \
                (0x00000000)
-#endif /* !defined(CFG_DCACHE_SACR_VALUE) */
+#endif /* !defined(CONFIG_SYS_DCACHE_SACR_VALUE) */
 
 #define function_prolog(func_name)     .text; \
                                        .align 2; \
@@ -609,15 +609,15 @@ _start:
 
        /*----------------------------------------------------------------*/
        /* Debug setup -- some (not very good) ice's need an event*/
-       /* to establish control :-( Define CFG_INIT_DBCR to the dbsr */
+       /* to establish control :-( Define CONFIG_SYS_INIT_DBCR to the dbsr */
        /* value you need in this case 0x8cff 0000 should do the trick */
        /*----------------------------------------------------------------*/
-#if defined(CFG_INIT_DBCR)
+#if defined(CONFIG_SYS_INIT_DBCR)
        lis     r1,0xffff
        ori     r1,r1,0xffff
        mtspr   dbsr,r1                 /* Clear all status bits */
-       lis     r0,CFG_INIT_DBCR@h
-       ori     r0,r0,CFG_INIT_DBCR@l
+       lis     r0,CONFIG_SYS_INIT_DBCR@h
+       ori     r0,r0,CONFIG_SYS_INIT_DBCR@l
        mtspr   dbcr0,r0
        isync
 #endif
@@ -627,12 +627,12 @@ _start:
        /*----------------------------------------------------------------*/
        li      r0,0
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /* Clear Dcache to use as RAM */
-       addis   r3,r0,CFG_INIT_RAM_ADDR@h
-       ori     r3,r3,CFG_INIT_RAM_ADDR@l
-       addis   r4,r0,CFG_INIT_RAM_END@h
-       ori     r4,r4,CFG_INIT_RAM_END@l
+       addis   r3,r0,CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3,r3,CONFIG_SYS_INIT_RAM_ADDR@l
+       addis   r4,r0,CONFIG_SYS_INIT_RAM_END@h
+       ori     r4,r4,CONFIG_SYS_INIT_RAM_END@l
        rlwinm. r5,r4,0,27,31
        rlwinm  r5,r4,27,5,31
        beq     ..d_ran
@@ -670,7 +670,7 @@ _start:
        mtspr   dtv3,r1
        msync
        isync
-#endif /* CFG_INIT_RAM_DCACHE */
+#endif /* CONFIG_SYS_INIT_RAM_DCACHE */
 
        /* 440EP & 440GR are only 440er PPC's without internal SRAM */
 #if !defined(CONFIG_440EP) && !defined(CONFIG_440GR)
@@ -744,8 +744,8 @@ _start:
        /*----------------------------------------------------------------*/
        /* Setup the stack in internal SRAM */
        /*----------------------------------------------------------------*/
-       lis     r1,CFG_INIT_RAM_ADDR@h
-       ori     r1,r1,CFG_INIT_SP_OFFSET@l
+       lis     r1,CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r1,r1,CONFIG_SYS_INIT_SP_OFFSET@l
        li      r0,0
        stwu    r0,-4(r1)
        stwu    r0,-4(r1)               /* Terminate call chain */
@@ -852,18 +852,18 @@ _start:
        sync
 
        /* Set-up icache cacheability. */
-       lis     r1, CFG_ICACHE_SACR_VALUE@h
-       ori     r1, r1, CFG_ICACHE_SACR_VALUE@l
+       lis     r1, CONFIG_SYS_ICACHE_SACR_VALUE@h
+       ori     r1, r1, CONFIG_SYS_ICACHE_SACR_VALUE@l
        mticcr  r1
        isync
 
        /* Set-up dcache cacheability. */
-       lis     r1, CFG_DCACHE_SACR_VALUE@h
-       ori     r1, r1, CFG_DCACHE_SACR_VALUE@l
+       lis     r1, CONFIG_SYS_DCACHE_SACR_VALUE@h
+       ori     r1, r1, CONFIG_SYS_DCACHE_SACR_VALUE@l
        mtdccr  r1
 
-       addis   r1,r0,CFG_INIT_RAM_ADDR@h
-       ori     r1,r1,CFG_INIT_SP_OFFSET /* set up the stack to SDRAM */
+       addis   r1,r0,CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r1,r1,CONFIG_SYS_INIT_SP_OFFSET /* set up the stack to SDRAM */
        li      r0, 0                   /* Make room for stack frame header and */
        stwu    r0, -4(r1)              /* clear final stack frame so that      */
        stwu    r0, -4(r1)              /* stack backtraces terminate cleanly   */
@@ -908,31 +908,31 @@ _start:
        bl      invalidate_dcache
 
        /* Set-up icache cacheability. */
-       lis     r4, CFG_ICACHE_SACR_VALUE@h
-       ori     r4, r4, CFG_ICACHE_SACR_VALUE@l
+       lis     r4, CONFIG_SYS_ICACHE_SACR_VALUE@h
+       ori     r4, r4, CONFIG_SYS_ICACHE_SACR_VALUE@l
        mticcr  r4
        isync
 
        /* Set-up dcache cacheability. */
-       lis     r4, CFG_DCACHE_SACR_VALUE@h
-       ori     r4, r4, CFG_DCACHE_SACR_VALUE@l
+       lis     r4, CONFIG_SYS_DCACHE_SACR_VALUE@h
+       ori     r4, r4, CONFIG_SYS_DCACHE_SACR_VALUE@l
        mtdccr  r4
 
-#if !(defined(CFG_EBC_PB0AP) && defined(CFG_EBC_PB0CR))
+#if !(defined(CONFIG_SYS_EBC_PB0AP) && defined(CONFIG_SYS_EBC_PB0CR))
        /*----------------------------------------------------------------------- */
        /* Tune the speed and size for flash CS0  */
        /*----------------------------------------------------------------------- */
        bl      ext_bus_cntlr_init
 #endif
 
-#if !(defined(CFG_INIT_DCACHE_CS) || defined(CFG_TEMP_STACK_OCM))
+#if !(defined(CONFIG_SYS_INIT_DCACHE_CS) || defined(CONFIG_SYS_TEMP_STACK_OCM))
        /*
         * For boards that don't have OCM and can't use the data cache
         * for their primordial stack, setup stack here directly after the
         * SDRAM is initialized in ext_bus_cntlr_init.
         */
-       lis     r1, CFG_INIT_RAM_ADDR@h
-       ori     r1,r1,CFG_INIT_SP_OFFSET /* set up the stack in SDRAM */
+       lis     r1, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r1,r1,CONFIG_SYS_INIT_SP_OFFSET /* set up the stack in SDRAM */
 
        li      r0, 0                   /* Make room for stack frame header and */
        stwu    r0, -4(r1)              /* clear final stack frame so that      */
@@ -946,7 +946,7 @@ _start:
        ori     r0, r0, RESET_VECTOR@l
        stwu    r1, -8(r1)              /* Save back chain and move SP */
        stw     r0, +12(r1)             /* Save return addr (underflow vect) */
-#endif /* !(CFG_INIT_DCACHE_CS || !CFG_TEM_STACK_OCM) */
+#endif /* !(CONFIG_SYS_INIT_DCACHE_CS  || !CONFIG_SYS_TEM_STACK_OCM) */
 
 #if defined(CONFIG_405EP)
        /*----------------------------------------------------------------------- */
@@ -959,25 +959,25 @@ _start:
        bl      ppc405ep_init           /* do ppc405ep specific init */
 #endif /* CONFIG_405EP */
 
-#if defined(CFG_OCM_DATA_ADDR) && defined(CFG_OCM_DATA_SIZE)
+#if defined(CONFIG_SYS_OCM_DATA_ADDR) && defined(CONFIG_SYS_OCM_DATA_SIZE)
 #if defined(CONFIG_405EZ)
        /********************************************************************
         * Setup OCM - On Chip Memory - PPC405EZ uses OCM Controller V2
         *******************************************************************/
        /*
         * We can map the OCM on the PLB3, so map it at
-        * CFG_OCM_DATA_ADDR + 0x8000
+        * CONFIG_SYS_OCM_DATA_ADDR + 0x8000
         */
-       lis     r3,CFG_OCM_DATA_ADDR@h  /* OCM location */
-       ori     r3,r3,CFG_OCM_DATA_ADDR@l
+       lis     r3,CONFIG_SYS_OCM_DATA_ADDR@h   /* OCM location */
+       ori     r3,r3,CONFIG_SYS_OCM_DATA_ADDR@l
        ori     r3,r3,0x0270            /* 16K for Bank 1, R/W/Enable */
        mtdcr   ocmplb3cr1,r3           /* Set PLB Access */
        ori     r3,r3,0x4000            /* Add 0x4000 for bank 2 */
        mtdcr   ocmplb3cr2,r3           /* Set PLB Access */
        isync
 
-       lis     r3,CFG_OCM_DATA_ADDR@h  /* OCM location */
-       ori     r3,r3,CFG_OCM_DATA_ADDR@l
+       lis     r3,CONFIG_SYS_OCM_DATA_ADDR@h   /* OCM location */
+       ori     r3,r3,CONFIG_SYS_OCM_DATA_ADDR@l
        ori     r3,r3,0x0270            /* 16K for Bank 1, R/W/Enable */
        mtdcr   ocmdscr1, r3            /* Set Data Side */
        mtdcr   ocmiscr1, r3            /* Set Instruction Side */
@@ -1003,8 +1003,8 @@ _start:
        mtdcr   ocmdscntl, r4           /* set data-side IRAM config */
        isync
 
-       lis     r3,CFG_OCM_DATA_ADDR@h  /* OCM location */
-       ori     r3,r3,CFG_OCM_DATA_ADDR@l
+       lis     r3,CONFIG_SYS_OCM_DATA_ADDR@h   /* OCM location */
+       ori     r3,r3,CONFIG_SYS_OCM_DATA_ADDR@l
        mtdcr   ocmdsarc, r3
        addis   r4, 0, 0xC000           /* OCM data area enabled */
        mtdcr   ocmdscntl, r4
@@ -1015,26 +1015,26 @@ _start:
        /*----------------------------------------------------------------------- */
        /* Setup temporary stack in DCACHE or OCM if needed for SDRAM SPD. */
        /*----------------------------------------------------------------------- */
-#ifdef CFG_INIT_DCACHE_CS
+#ifdef CONFIG_SYS_INIT_DCACHE_CS
        li      r4, PBxAP
        mtdcr   ebccfga, r4
-       lis     r4, CFG_INIT_DCACHE_PBxAR@h
-       ori     r4, r4, CFG_INIT_DCACHE_PBxAR@l
+       lis     r4, CONFIG_SYS_INIT_DCACHE_PBxAR@h
+       ori     r4, r4, CONFIG_SYS_INIT_DCACHE_PBxAR@l
        mtdcr   ebccfgd, r4
 
        addi    r4, 0, PBxCR
        mtdcr   ebccfga, r4
-       lis     r4, CFG_INIT_DCACHE_PBxCR@h
-       ori     r4, r4, CFG_INIT_DCACHE_PBxCR@l
+       lis     r4, CONFIG_SYS_INIT_DCACHE_PBxCR@h
+       ori     r4, r4, CONFIG_SYS_INIT_DCACHE_PBxCR@l
        mtdcr   ebccfgd, r4
 
        /*
         * Enable the data cache for the 128MB storage access control region
-        * at CFG_INIT_RAM_ADDR.
+        * at CONFIG_SYS_INIT_RAM_ADDR.
         */
        mfdccr  r4
-       oris    r4, r4, PPC_128MB_SACR_VALUE(CFG_INIT_RAM_ADDR)@h
-       ori     r4, r4, PPC_128MB_SACR_VALUE(CFG_INIT_RAM_ADDR)@l
+       oris    r4, r4, PPC_128MB_SACR_VALUE(CONFIG_SYS_INIT_RAM_ADDR)@h
+       ori     r4, r4, PPC_128MB_SACR_VALUE(CONFIG_SYS_INIT_RAM_ADDR)@l
        mtdccr  r4
 
        /*
@@ -1044,11 +1044,11 @@ _start:
         */
        li      r0, 0
 
-       lis     r3, CFG_INIT_RAM_ADDR@h
-       ori     r3, r3, CFG_INIT_RAM_ADDR@l
+       lis     r3, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3, r3, CONFIG_SYS_INIT_RAM_ADDR@l
 
-       lis     r4, CFG_INIT_RAM_END@h
-       ori     r4, r4, CFG_INIT_RAM_END@l
+       lis     r4, CONFIG_SYS_INIT_RAM_END@h
+       ori     r4, r4, CONFIG_SYS_INIT_RAM_END@l
 
        /*
         * Convert the size, in bytes, to the number of cache lines/blocks
@@ -1072,18 +1072,18 @@ _start:
         * Load the initial stack pointer and data area and convert the size,
         * in bytes, to the number of words to initialize to a known value.
         */
-       lis     r1, CFG_INIT_RAM_ADDR@h
-       ori     r1, r1, CFG_INIT_SP_OFFSET@l
+       lis     r1, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r1, r1, CONFIG_SYS_INIT_SP_OFFSET@l
 
-       lis     r4, (CFG_INIT_RAM_END >> 2)@h
-       ori     r4, r4, (CFG_INIT_RAM_END >> 2)@l
+       lis     r4, (CONFIG_SYS_INIT_RAM_END >> 2)@h
+       ori     r4, r4, (CONFIG_SYS_INIT_RAM_END >> 2)@l
        mtctr   r4
 
-       lis     r2, CFG_INIT_RAM_ADDR@h
-       ori     r2, r2, CFG_INIT_RAM_END@l
+       lis     r2, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r2, r2, CONFIG_SYS_INIT_RAM_END@l
 
-       lis     r4, CFG_INIT_RAM_PATTERN@h
-       ori     r4, r4, CFG_INIT_RAM_PATTERN@l
+       lis     r4, CONFIG_SYS_INIT_RAM_PATTERN@h
+       ori     r4, r4, CONFIG_SYS_INIT_RAM_PATTERN@l
 
 ..stackloop:
        stwu    r4, -4(r2)
@@ -1106,15 +1106,15 @@ _start:
        stwu    r1, -8(r1)              /* Save back chain and move SP */
        stw     r0, +12(r1)             /* Save return addr (underflow vect) */
 
-#elif defined(CFG_TEMP_STACK_OCM) && \
-       (defined(CFG_OCM_DATA_ADDR) && defined(CFG_OCM_DATA_SIZE))
+#elif defined(CONFIG_SYS_TEMP_STACK_OCM) && \
+       (defined(CONFIG_SYS_OCM_DATA_ADDR) && defined(CONFIG_SYS_OCM_DATA_SIZE))
        /*
         * Stack in OCM.
         */
 
        /* Set up Stack at top of OCM */
-       lis     r1, (CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET)@h
-       ori     r1, r1, (CFG_INIT_RAM_ADDR + CFG_INIT_SP_OFFSET)@l
+       lis     r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)@h
+       ori     r1, r1, (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)@l
 
        /* Set up a zeroized stack frame so that backtrace works right */
        li      r0, 0
@@ -1130,7 +1130,7 @@ _start:
        ori     r0, r0, RESET_VECTOR@l
        stwu    r1, -8(r1)              /* Save back chain and move SP */
        stw     r0, +12(r1)             /* Save return addr (underflow vect) */
-#endif /* CFG_INIT_DCACHE_CS */
+#endif /* CONFIG_SYS_INIT_DCACHE_CS */
 
 #ifdef CONFIG_NAND_SPL
        bl      nand_boot_common        /* will not return */
@@ -1341,7 +1341,7 @@ in32r:
  */
        .globl  relocate_code
 relocate_code:
-#if defined(CONFIG_4xx_DCACHE) || defined(CFG_INIT_DCACHE_CS)
+#if defined(CONFIG_4xx_DCACHE) || defined(CONFIG_SYS_INIT_DCACHE_CS)
        /*
         * We need to flush the initial global data (gd_t) before the dcache
         * will be invalidated.
@@ -1354,10 +1354,10 @@ relocate_code:
 
        /* Flush initial global data range */
        mr      r3, r4
-       addi    r4, r4, CFG_GBL_DATA_SIZE@l
+       addi    r4, r4, CONFIG_SYS_GBL_DATA_SIZE@l
        bl      flush_dcache_range
 
-#if defined(CFG_INIT_DCACHE_CS)
+#if defined(CONFIG_SYS_INIT_DCACHE_CS)
        /*
         * Undo the earlier data cache set-up for the primordial stack and
         * data area. First, invalidate the data cache and then disable data
@@ -1366,19 +1366,19 @@ relocate_code:
         */
 
        /* Invalidate the primordial stack and data area in cache */
-       lis     r3, CFG_INIT_RAM_ADDR@h
-       ori     r3, r3, CFG_INIT_RAM_ADDR@l
+       lis     r3, CONFIG_SYS_INIT_RAM_ADDR@h
+       ori     r3, r3, CONFIG_SYS_INIT_RAM_ADDR@l
 
-       lis     r4, CFG_INIT_RAM_END@h
-       ori     r4, r4, CFG_INIT_RAM_END@l
+       lis     r4, CONFIG_SYS_INIT_RAM_END@h
+       ori     r4, r4, CONFIG_SYS_INIT_RAM_END@l
        add     r4, r4, r3
 
        bl      invalidate_dcache_range
 
        /* Disable cacheability for the region */
        mfdccr  r3
-       lis     r4, ~PPC_128MB_SACR_VALUE(CFG_INIT_RAM_ADDR)@h
-       ori     r4, r4, ~PPC_128MB_SACR_VALUE(CFG_INIT_RAM_ADDR)@l
+       lis     r4, ~PPC_128MB_SACR_VALUE(CONFIG_SYS_INIT_RAM_ADDR)@h
+       ori     r4, r4, ~PPC_128MB_SACR_VALUE(CONFIG_SYS_INIT_RAM_ADDR)@l
        and     r3, r3, r4
        mtdccr  r3
 
@@ -1394,15 +1394,15 @@ relocate_code:
        lis     r3, PBxCR_VAL@h
        ori     r3, r3, PBxCR_VAL@l
        mtdcr   ebccfgd, r3
-#endif /* defined(CFG_INIT_DCACHE_CS) */
+#endif /* defined(CONFIG_SYS_INIT_DCACHE_CS) */
 
        /* Restore registers */
        mr      r3, r9
        mr      r4, r10
        mr      r5, r11
-#endif /* defined(CONFIG_4xx_DCACHE) || defined(CFG_INIT_DCACHE_CS) */
+#endif /* defined(CONFIG_4xx_DCACHE) || defined(CONFIG_SYS_INIT_DCACHE_CS) */
 
-#ifdef CFG_INIT_RAM_DCACHE
+#ifdef CONFIG_SYS_INIT_RAM_DCACHE
        /*
         * Unlock the previously locked d-cache
         */
@@ -1424,7 +1424,7 @@ relocate_code:
        mtspr   dtv3,r6
        msync
        isync
-#endif /* CFG_INIT_RAM_DCACHE */
+#endif /* CONFIG_SYS_INIT_RAM_DCACHE */
 
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
@@ -1439,11 +1439,11 @@ relocate_code:
        dccci   0,0                     /* Invalidate data cache, now no longer our stack */
        sync
        isync
-#ifdef CFG_TLB_FOR_BOOT_FLASH
-       addi    r1,r0,CFG_TLB_FOR_BOOT_FLASH    /* Use defined TLB */
+#ifdef CONFIG_SYS_TLB_FOR_BOOT_FLASH
+       addi    r1,r0,CONFIG_SYS_TLB_FOR_BOOT_FLASH     /* Use defined TLB */
 #else
        addi    r1,r0,0x0000            /* Default TLB entry is #0 */
-#endif /* CFG_TLB_FOR_BOOT_FLASH */
+#endif /* CONFIG_SYS_TLB_FOR_BOOT_FLASH */
        tlbre   r0,r1,0x0002            /* Read contents */
        ori     r0,r0,0x0c00            /* Or in the inhibit, write through bit */
        tlbwe   r0,r1,0x0002            /* Save it out */
@@ -1455,8 +1455,8 @@ relocate_code:
        mr      r10, r5         /* Save copy of Destination Address     */
 
        mr      r3,  r5                         /* Destination Address  */
-       lis     r4, CFG_MONITOR_BASE@h          /* Source      Address  */
-       ori     r4, r4, CFG_MONITOR_BASE@l
+       lis     r4, CONFIG_SYS_MONITOR_BASE@h           /* Source      Address  */
+       ori     r4, r4, CONFIG_SYS_MONITOR_BASE@l
        lwz     r5, GOT(__init_end)
        sub     r5, r5, r4
        li      r6, L1_CACHE_BYTES              /* Cache Line Size      */
@@ -1464,7 +1464,7 @@ relocate_code:
        /*
         * Fix GOT pointer:
         *
-        * New GOT-PTR = (old GOT-PTR - CFG_MONITOR_BASE) + Destination Address
+        * New GOT-PTR = (old GOT-PTR - CONFIG_SYS_MONITOR_BASE) + Destination Address
         *
         * Offset:
         */
@@ -1775,74 +1775,74 @@ ppc405ep_init:
 
        lis     r3,GPIO0_OSRH@h         /* config GPIO output select */
        ori     r3,r3,GPIO0_OSRH@l
-       lis     r4,CFG_GPIO0_OSRH@h
-       ori     r4,r4,CFG_GPIO0_OSRH@l
+       lis     r4,CONFIG_SYS_GPIO0_OSRH@h
+       ori     r4,r4,CONFIG_SYS_GPIO0_OSRH@l
        stw     r4,0(r3)
        lis     r3,GPIO0_OSRL@h
        ori     r3,r3,GPIO0_OSRL@l
-       lis     r4,CFG_GPIO0_OSRL@h
-       ori     r4,r4,CFG_GPIO0_OSRL@l
+       lis     r4,CONFIG_SYS_GPIO0_OSRL@h
+       ori     r4,r4,CONFIG_SYS_GPIO0_OSRL@l
        stw     r4,0(r3)
 
        lis     r3,GPIO0_ISR1H@h        /* config GPIO input select */
        ori     r3,r3,GPIO0_ISR1H@l
-       lis     r4,CFG_GPIO0_ISR1H@h
-       ori     r4,r4,CFG_GPIO0_ISR1H@l
+       lis     r4,CONFIG_SYS_GPIO0_ISR1H@h
+       ori     r4,r4,CONFIG_SYS_GPIO0_ISR1H@l
        stw     r4,0(r3)
        lis     r3,GPIO0_ISR1L@h
        ori     r3,r3,GPIO0_ISR1L@l
-       lis     r4,CFG_GPIO0_ISR1L@h
-       ori     r4,r4,CFG_GPIO0_ISR1L@l
+       lis     r4,CONFIG_SYS_GPIO0_ISR1L@h
+       ori     r4,r4,CONFIG_SYS_GPIO0_ISR1L@l
        stw     r4,0(r3)
 
        lis     r3,GPIO0_TSRH@h         /* config GPIO three-state select */
        ori     r3,r3,GPIO0_TSRH@l
-       lis     r4,CFG_GPIO0_TSRH@h
-       ori     r4,r4,CFG_GPIO0_TSRH@l
+       lis     r4,CONFIG_SYS_GPIO0_TSRH@h
+       ori     r4,r4,CONFIG_SYS_GPIO0_TSRH@l
        stw     r4,0(r3)
        lis     r3,GPIO0_TSRL@h
        ori     r3,r3,GPIO0_TSRL@l
-       lis     r4,CFG_GPIO0_TSRL@h
-       ori     r4,r4,CFG_GPIO0_TSRL@l
+       lis     r4,CONFIG_SYS_GPIO0_TSRL@h
+       ori     r4,r4,CONFIG_SYS_GPIO0_TSRL@l
        stw     r4,0(r3)
 
        lis     r3,GPIO0_TCR@h          /* config GPIO driver output enables */
        ori     r3,r3,GPIO0_TCR@l
-       lis     r4,CFG_GPIO0_TCR@h
-       ori     r4,r4,CFG_GPIO0_TCR@l
+       lis     r4,CONFIG_SYS_GPIO0_TCR@h
+       ori     r4,r4,CONFIG_SYS_GPIO0_TCR@l
        stw     r4,0(r3)
 
        li      r3,pb1ap                /* program EBC bank 1 for RTC access */
        mtdcr   ebccfga,r3
-       lis     r3,CFG_EBC_PB1AP@h
-       ori     r3,r3,CFG_EBC_PB1AP@l
+       lis     r3,CONFIG_SYS_EBC_PB1AP@h
+       ori     r3,r3,CONFIG_SYS_EBC_PB1AP@l
        mtdcr   ebccfgd,r3
        li      r3,pb1cr
        mtdcr   ebccfga,r3
-       lis     r3,CFG_EBC_PB1CR@h
-       ori     r3,r3,CFG_EBC_PB1CR@l
+       lis     r3,CONFIG_SYS_EBC_PB1CR@h
+       ori     r3,r3,CONFIG_SYS_EBC_PB1CR@l
        mtdcr   ebccfgd,r3
 
        li      r3,pb1ap                /* program EBC bank 1 for RTC access */
        mtdcr   ebccfga,r3
-       lis     r3,CFG_EBC_PB1AP@h
-       ori     r3,r3,CFG_EBC_PB1AP@l
+       lis     r3,CONFIG_SYS_EBC_PB1AP@h
+       ori     r3,r3,CONFIG_SYS_EBC_PB1AP@l
        mtdcr   ebccfgd,r3
        li      r3,pb1cr
        mtdcr   ebccfga,r3
-       lis     r3,CFG_EBC_PB1CR@h
-       ori     r3,r3,CFG_EBC_PB1CR@l
+       lis     r3,CONFIG_SYS_EBC_PB1CR@h
+       ori     r3,r3,CONFIG_SYS_EBC_PB1CR@l
        mtdcr   ebccfgd,r3
 
        li      r3,pb4ap                /* program EBC bank 4 for FPGA access */
        mtdcr   ebccfga,r3
-       lis     r3,CFG_EBC_PB4AP@h
-       ori     r3,r3,CFG_EBC_PB4AP@l
+       lis     r3,CONFIG_SYS_EBC_PB4AP@h
+       ori     r3,r3,CONFIG_SYS_EBC_PB4AP@l
        mtdcr   ebccfgd,r3
        li      r3,pb4cr
        mtdcr   ebccfga,r3
-       lis     r3,CFG_EBC_PB4CR@h
-       ori     r3,r3,CFG_EBC_PB4CR@l
+       lis     r3,CONFIG_SYS_EBC_PB4CR@h
+       ori     r3,r3,CONFIG_SYS_EBC_PB4CR@l
        mtdcr   ebccfgd,r3
 #endif
 
@@ -2111,20 +2111,20 @@ nand_boot_common:
         * First initialize SDRAM. It has to be available *before* calling
         * nand_boot().
         */
-       lis     r3,CFG_SDRAM_BASE@h
-       ori     r3,r3,CFG_SDRAM_BASE@l
+       lis     r3,CONFIG_SYS_SDRAM_BASE@h
+       ori     r3,r3,CONFIG_SYS_SDRAM_BASE@l
        bl      initdram
 
        /*
         * Now copy the 4k SPL code into SDRAM and continue execution
         * from there.
         */
-       lis     r3,CFG_NAND_BOOT_SPL_DST@h
-       ori     r3,r3,CFG_NAND_BOOT_SPL_DST@l
-       lis     r4,CFG_NAND_BOOT_SPL_SRC@h
-       ori     r4,r4,CFG_NAND_BOOT_SPL_SRC@l
-       lis     r5,CFG_NAND_BOOT_SPL_SIZE@h
-       ori     r5,r5,CFG_NAND_BOOT_SPL_SIZE@l
+       lis     r3,CONFIG_SYS_NAND_BOOT_SPL_DST@h
+       ori     r3,r3,CONFIG_SYS_NAND_BOOT_SPL_DST@l
+       lis     r4,CONFIG_SYS_NAND_BOOT_SPL_SRC@h
+       ori     r4,r4,CONFIG_SYS_NAND_BOOT_SPL_SRC@l
+       lis     r5,CONFIG_SYS_NAND_BOOT_SPL_SIZE@h
+       ori     r5,r5,CONFIG_SYS_NAND_BOOT_SPL_SIZE@l
        bl      nand_boot_relocate
 
        /*
index cb8d5c7d30f631ff8b0223f1c664d3df18ce89b0..592efe70a71561911514bd2eb0b5b8e4b18eb3bf 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 
 #ifdef CONFIG_4xx_DCACHE
 #include <asm/mmu.h>
@@ -63,4 +63,4 @@ int usb_cpu_init_fail(void)
        return 0;
 }
 
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */
index 5dbd84227453c455fe48179a67ae7ca7e9d16877..2c80d5cb4382002f17d54e05243222826a1c5934 100644 (file)
@@ -1600,9 +1600,9 @@ int usb_lowlevel_init(void)
        gohci.sleeping = 0;
        gohci.irq = -1;
 #if defined(CONFIG_440EP)
-       gohci.regs = (struct ohci_regs *)(CFG_PERIPHERAL_BASE | 0x1000);
-#elif defined(CONFIG_440EPX) || defined(CFG_USB_HOST)
-       gohci.regs = (struct ohci_regs *)(CFG_USB_HOST);
+       gohci.regs = (struct ohci_regs *)(CONFIG_SYS_PERIPHERAL_BASE | 0x1000);
+#elif defined(CONFIG_440EPX) || defined(CONFIG_SYS_USB_HOST)
+       gohci.regs = (struct ohci_regs *)(CONFIG_SYS_USB_HOST);
 #endif
 
        gohci.flags = 0;
index 3446d9893d36f3197313c85174c384d7bdad96a0..ef6a2da649f738a17d95495f9c89ff496669fe6a 100644 (file)
@@ -1,31 +1,31 @@
 #include <config.h>
 
 /*Common Registers*/
-#define USB2D0_INTRIN_16   (CFG_USB_DEVICE | 0x100)
-#define USB2D0_POWER_8     (CFG_USB_DEVICE | 0x102)
-#define USB2D0_FADDR_8     (CFG_USB_DEVICE | 0x103)
-#define USB2D0_INTRINE_16  (CFG_USB_DEVICE | 0x104)
-#define USB2D0_INTROUT_16  (CFG_USB_DEVICE | 0x106)
-#define USB2D0_INTRUSBE_8  (CFG_USB_DEVICE | 0x108)
-#define USB2D0_INTRUSB_8   (CFG_USB_DEVICE | 0x109)
-#define USB2D0_INTROUTE_16 (CFG_USB_DEVICE | 0x10a)
-#define USB2D0_TSTMODE_8   (CFG_USB_DEVICE | 0x10c)
-#define USB2D0_INDEX_8     (CFG_USB_DEVICE | 0x10d)
-#define USB2D0_FRAME_16    (CFG_USB_DEVICE | 0x10e)
+#define USB2D0_INTRIN_16   (CONFIG_SYS_USB_DEVICE | 0x100)
+#define USB2D0_POWER_8     (CONFIG_SYS_USB_DEVICE | 0x102)
+#define USB2D0_FADDR_8     (CONFIG_SYS_USB_DEVICE | 0x103)
+#define USB2D0_INTRINE_16  (CONFIG_SYS_USB_DEVICE | 0x104)
+#define USB2D0_INTROUT_16  (CONFIG_SYS_USB_DEVICE | 0x106)
+#define USB2D0_INTRUSBE_8  (CONFIG_SYS_USB_DEVICE | 0x108)
+#define USB2D0_INTRUSB_8   (CONFIG_SYS_USB_DEVICE | 0x109)
+#define USB2D0_INTROUTE_16 (CONFIG_SYS_USB_DEVICE | 0x10a)
+#define USB2D0_TSTMODE_8   (CONFIG_SYS_USB_DEVICE | 0x10c)
+#define USB2D0_INDEX_8     (CONFIG_SYS_USB_DEVICE | 0x10d)
+#define USB2D0_FRAME_16    (CONFIG_SYS_USB_DEVICE | 0x10e)
 
 /*Indexed Registers*/
-#define USB2D0_INCSR0_8    (CFG_USB_DEVICE | 0x110)
-#define USB2D0_INCSR_16    (CFG_USB_DEVICE | 0x110)
-#define USB2D0_INMAXP_16   (CFG_USB_DEVICE | 0x112)
-#define USB2D0_OUTCSR_16   (CFG_USB_DEVICE | 0x114)
-#define USB2D0_OUTMAXP_16  (CFG_USB_DEVICE | 0x116)
-#define USB2D0_OUTCOUNT0_8 (CFG_USB_DEVICE | 0x11a)
-#define USB2D0_OUTCOUNT_16 (CFG_USB_DEVICE | 0x11a)
+#define USB2D0_INCSR0_8    (CONFIG_SYS_USB_DEVICE | 0x110)
+#define USB2D0_INCSR_16    (CONFIG_SYS_USB_DEVICE | 0x110)
+#define USB2D0_INMAXP_16   (CONFIG_SYS_USB_DEVICE | 0x112)
+#define USB2D0_OUTCSR_16   (CONFIG_SYS_USB_DEVICE | 0x114)
+#define USB2D0_OUTMAXP_16  (CONFIG_SYS_USB_DEVICE | 0x116)
+#define USB2D0_OUTCOUNT0_8 (CONFIG_SYS_USB_DEVICE | 0x11a)
+#define USB2D0_OUTCOUNT_16 (CONFIG_SYS_USB_DEVICE | 0x11a)
 
 /*FIFOs*/
-#define USB2D0_FIFO_0 (CFG_USB_DEVICE | 0x120)
-#define USB2D0_FIFO_1 (CFG_USB_DEVICE | 0x124)
-#define USB2D0_FIFO_2 (CFG_USB_DEVICE | 0x128)
-#define USB2D0_FIFO_3 (CFG_USB_DEVICE | 0x12c)
+#define USB2D0_FIFO_0 (CONFIG_SYS_USB_DEVICE | 0x120)
+#define USB2D0_FIFO_1 (CONFIG_SYS_USB_DEVICE | 0x124)
+#define USB2D0_FIFO_2 (CONFIG_SYS_USB_DEVICE | 0x128)
+#define USB2D0_FIFO_3 (CONFIG_SYS_USB_DEVICE | 0x12c)
 
 void usb_dev_init(void);
index 0ee8180361f5f43e5fcbb066d52d6e87e211a9e1..e84cb5b156b78730b4bff7f011557984dac58873 100644 (file)
@@ -44,7 +44,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index df537c4351f088878d354f27fc337f0692abaf1d..08042be1c11ef4718ba8bab6fa9d7e8147e8d2a7 100644 (file)
@@ -37,7 +37,7 @@
 #ifdef CONFIG_HARD_I2C
 
 /*
- *     - CFG_I2C_SPEED
+ *     - CONFIG_SYS_I2C_SPEED
  *     - I2C_PXA_SLAVE_ADDR
  */
 
@@ -48,7 +48,7 @@
 /*#define      DEBUG_I2C       1       /###* activate local debugging output  */
 #define I2C_PXA_SLAVE_ADDR     0x1     /* slave pxa unit address           */
 
-#if (CFG_I2C_SPEED == 400000)
+#if (CONFIG_SYS_I2C_SPEED == 400000)
 #define I2C_ICR_INIT   (ICR_FM | ICR_BEIE | ICR_IRFIE | ICR_ITEIE | ICR_GCD | ICR_SCLE)
 #else
 #define I2C_ICR_INIT   (ICR_BEIE | ICR_IRFIE | ICR_ITEIE | ICR_GCD | ICR_SCLE)
@@ -254,7 +254,7 @@ i2c_transfer_finish:
 
 void i2c_init(int speed, int slaveaddr)
 {
-#ifdef CFG_I2C_INIT_BOARD
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
        /* call board specific i2c bus reset routine before accessing the   */
        /* environment, which might be in a chip on that bus. For details   */
        /* about this problem see doc/I2C_Edge_Conditions.                  */
@@ -329,7 +329,7 @@ int i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)
         * send memory address bytes;
         * alen defines how much bytes we have to send.
         */
-       /*addr &= ((1 << CFG_EEPROM_PAGE_WRITE_BITS)-1); */
+       /*addr &= ((1 << CONFIG_SYS_EEPROM_PAGE_WRITE_BITS)-1); */
        addr_bytes[0] = (u8)((addr >>  0) & 0x000000FF);
        addr_bytes[1] = (u8)((addr >>  8) & 0x000000FF);
        addr_bytes[2] = (u8)((addr >> 16) & 0x000000FF);
index 8b577e1359c879d07eb8a3593649eedf81ac3768..ec8fb9e3d7dccd3e4f398914b63245ac999e73da 100644 (file)
@@ -78,10 +78,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {
                tmo = usec / 1000;
-               tmo *= CFG_HZ;
+               tmo *= CONFIG_SYS_HZ;
                tmo /= 1000;
        } else {
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -109,6 +109,6 @@ unsigned long long get_ticks(void)
 ulong get_tbclk (void)
 {
        ulong tbclk;
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
index 1cfede7e334f3ce60e2a10827780d55a92d03b6e..d735c8d4850c1d85ada432474a44246e265ac1d6 100644 (file)
@@ -234,7 +234,7 @@ mmc_read(ulong src, uchar * dst, int size)
        mmc_block_size = MMC_BLOCK_SIZE;
        mmc_block_address = ~(mmc_block_size - 1);
 
-       src -= CFG_MMC_BASE;
+       src -= CONFIG_SYS_MMC_BASE;
        end = src + size;
        part_start = ~mmc_block_address & src;
        part_end = ~mmc_block_address & end;
@@ -310,7 +310,7 @@ mmc_write(uchar * src, ulong dst, int size)
        mmc_block_size = MMC_BLOCK_SIZE;
        mmc_block_address = ~(mmc_block_size - 1);
 
-       dst -= CFG_MMC_BASE;
+       dst -= CONFIG_SYS_MMC_BASE;
        end = dst + size;
        part_start = ~mmc_block_address & dst;
        part_end = ~mmc_block_address & end;
@@ -379,7 +379,7 @@ mmc_bread(int dev_num, ulong blknr, lbaint_t blkcnt, void *dst)
 /****************************************************/
 {
        int mmc_block_size = MMC_BLOCK_SIZE;
-       ulong src = blknr * mmc_block_size + CFG_MMC_BASE;
+       ulong src = blknr * mmc_block_size + CONFIG_SYS_MMC_BASE;
 
        mmc_read(src, (uchar *) dst, blkcnt * mmc_block_size);
        return blkcnt;
@@ -652,8 +652,8 @@ int mmc_ident(block_dev_desc_t * dev)
 
 int mmc2info(ulong addr)
 {
-       if (addr >= CFG_MMC_BASE
-           && addr < CFG_MMC_BASE + (mmc_dev.lba * mmc_dev.blksz)) {
+       if (addr >= CONFIG_SYS_MMC_BASE
+           && addr < CONFIG_SYS_MMC_BASE + (mmc_dev.lba * mmc_dev.blksz)) {
                return 1;
        }
        return 0;
index b2caa73c6c6fda275d716621775e0ed3b999afa2..97efcb6dfcac5fccb909be389ec1faa36e26f68f 100644 (file)
@@ -60,11 +60,11 @@ vidinfo_t panel_info = {
        vl_row:         480,
        vl_width:       640,
        vl_height:      480,
-       vl_clkp:        CFG_HIGH,
-       vl_oep:         CFG_HIGH,
-       vl_hsp:         CFG_HIGH,
-       vl_vsp:         CFG_HIGH,
-       vl_dp:          CFG_HIGH,
+       vl_clkp:        CONFIG_SYS_HIGH,
+       vl_oep:         CONFIG_SYS_HIGH,
+       vl_hsp:         CONFIG_SYS_HIGH,
+       vl_vsp:         CONFIG_SYS_HIGH,
+       vl_dp:          CONFIG_SYS_HIGH,
        vl_bpix:        LCD_BPP,
        vl_lbw:         0,
        vl_splt:        0,
@@ -94,11 +94,11 @@ vidinfo_t panel_info = {
        vl_row:         480,
        vl_width:       157,
        vl_height:      118,
-       vl_clkp:        CFG_HIGH,
-       vl_oep:         CFG_HIGH,
-       vl_hsp:         CFG_HIGH,
-       vl_vsp:         CFG_HIGH,
-       vl_dp:          CFG_HIGH,
+       vl_clkp:        CONFIG_SYS_HIGH,
+       vl_oep:         CONFIG_SYS_HIGH,
+       vl_hsp:         CONFIG_SYS_HIGH,
+       vl_vsp:         CONFIG_SYS_HIGH,
+       vl_dp:          CONFIG_SYS_HIGH,
        vl_bpix:        LCD_BPP,
        vl_lbw:         0,
        vl_splt:        1,
@@ -127,11 +127,11 @@ vidinfo_t panel_info = {
        vl_row:         240,
        vl_width:       167,
        vl_height:      109,
-       vl_clkp:        CFG_HIGH,
-       vl_oep:         CFG_HIGH,
-       vl_hsp:         CFG_HIGH,
-       vl_vsp:         CFG_HIGH,
-       vl_dp:          CFG_HIGH,
+       vl_clkp:        CONFIG_SYS_HIGH,
+       vl_oep:         CONFIG_SYS_HIGH,
+       vl_hsp:         CONFIG_SYS_HIGH,
+       vl_vsp:         CONFIG_SYS_HIGH,
+       vl_dp:          CONFIG_SYS_HIGH,
        vl_bpix:        LCD_BPP,
        vl_lbw:         1,
        vl_splt:        0,
index 23005e20f97af1884aa55da7a54b20fbc58f23bc..63ab0c591aabc2e280a479423ae7b5728ca38389 100644 (file)
@@ -135,8 +135,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area                       */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                         */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif /* CONFIG_USE_IRQ */
@@ -191,20 +191,20 @@ OSTIMER_BASE:     .word   0x40a00000
 
 /* Clock Manager Registers                                                 */
 #ifdef CONFIG_CPU_MONAHANS
-# ifndef CFG_MONAHANS_RUN_MODE_OSC_RATIO
-#  error "You have to define CFG_MONAHANS_RUN_MODE_OSC_RATIO!!"
-# endif /* !CFG_MONAHANS_RUN_MODE_OSC_RATIO */
-# ifndef CFG_MONAHANS_TURBO_RUN_MODE_RATIO
-#  define CFG_MONAHANS_TURBO_RUN_MODE_RATIO 0x1
-# endif /* !CFG_MONAHANS_TURBO_RUN_MODE_RATIO */
+# ifndef CONFIG_SYS_MONAHANS_RUN_MODE_OSC_RATIO
+#  error "You have to define CONFIG_SYS_MONAHANS_RUN_MODE_OSC_RATIO!!"
+# endif /* !CONFIG_SYS_MONAHANS_RUN_MODE_OSC_RATIO */
+# ifndef CONFIG_SYS_MONAHANS_TURBO_RUN_MODE_RATIO
+#  define CONFIG_SYS_MONAHANS_TURBO_RUN_MODE_RATIO 0x1
+# endif /* !CONFIG_SYS_MONAHANS_TURBO_RUN_MODE_RATIO */
 #else /* !CONFIG_CPU_MONAHANS */
-#ifdef CFG_CPUSPEED
+#ifdef CONFIG_SYS_CPUSPEED
 CC_BASE:       .word   0x41300000
 #define CCCR   0x00
-cpuspeed:      .word   CFG_CPUSPEED
-#else /* !CFG_CPUSPEED */
-#error "You have to define CFG_CPUSPEED!!"
-#endif /* CFG_CPUSPEED */
+cpuspeed:      .word   CONFIG_SYS_CPUSPEED
+#else /* !CONFIG_SYS_CPUSPEED */
+#error "You have to define CONFIG_SYS_CPUSPEED!!"
+#endif /* CONFIG_SYS_CPUSPEED */
 #endif /* CONFIG_CPU_MONAHANS */
 
        /* takes care the CP15 update has taken place */
@@ -245,10 +245,10 @@ cpu_init_crit:
        /* set clock speed */
 #ifdef CONFIG_CPU_MONAHANS
        ldr     r0, =ACCR
-       ldr     r1, =(((CFG_MONAHANS_TURBO_RUN_MODE_RATIO<<8) & ACCR_XN_MASK) | (CFG_MONAHANS_RUN_MODE_OSC_RATIO & ACCR_XL_MASK))
+       ldr     r1, =(((CONFIG_SYS_MONAHANS_TURBO_RUN_MODE_RATIO<<8) & ACCR_XN_MASK) | (CONFIG_SYS_MONAHANS_RUN_MODE_OSC_RATIO & ACCR_XL_MASK))
        str     r1, [r0]
 #else /* !CONFIG_CPU_MONAHANS */
-#ifdef CFG_CPUSPEED
+#ifdef CONFIG_SYS_CPUSPEED
        ldr     r0, CC_BASE
        ldr     r1, cpuspeed
        str     r1, [r0, #CCCR]
@@ -257,7 +257,7 @@ cpu_init_crit:
 
 setspeed_done:
 
-#endif /* CFG_CPUSPEED */
+#endif /* CONFIG_SYS_CPUSPEED */
 #endif /* CONFIG_CPU_MONAHANS */
 
        /*
@@ -336,8 +336,8 @@ setspeed_done:
        add     r8, sp, #S_PC
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)   @ set base 2 words into abort stack
        ldmia   r2, {r2 - r4}                   /* get pc, cpsr, old_r0     */
        add     r0, sp, #S_FRAME_SIZE           /* restore sp_SVC           */
 
@@ -373,8 +373,8 @@ setspeed_done:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]                       @ save caller lr / spsr
        mrs     lr, spsr
index aa6f4b7b9d15b940b3e44034e30b6a66b7f67ba9..bd718a6fff8e7c5e85eb3c194d2cb1b9e3038ab9 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#if defined(CONFIG_USB_OHCI_NEW) && defined(CFG_USB_OHCI_CPU_INIT)
+#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
 # if defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_PXA27X)
 
 #include <asm/arch/pxa-regs.h>
@@ -109,4 +109,4 @@ int usb_cpu_init_fail(void)
 }
 
 # endif /* defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_PXA27X) */
-#endif /* defined(CONFIG_USB_OHCI) && defined(CFG_USB_OHCI_CPU_INIT) */
+#endif /* defined(CONFIG_USB_OHCI) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT) */
index ed7964844d28efbc2aea02eea120f4e204c4f7c8..eb23e6ab114d0e5f248be22b8fc9c8ae92a0762a 100644 (file)
@@ -80,7 +80,7 @@ void udelay (unsigned long usec)
        ulong tmo;
 
        tmo = usec / 1000;
-       tmo *= CFG_HZ;
+       tmo *= CONFIG_SYS_HZ;
        tmo /= 8;
 
        tmo += get_timer (0);
@@ -120,10 +120,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {
                tmo = usec / 1000;
-               tmo *= CFG_HZ;
+               tmo *= CONFIG_SYS_HZ;
                tmo /= 8;
        } else {
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*8);
        }
 
index 1d88c1c030aab66a5cb2a0e60d71eae44f34e7a3..f5a3d3ac386ceabe492e91c8ba6bab56a6938cec 100644 (file)
@@ -157,8 +157,8 @@ vector_copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
index f1bd6440933b4bc5edd72f32e08e1312628c4b07..bb4e5a1de93a3928dc84f22dede207433ad120f8 100644 (file)
@@ -43,7 +43,7 @@ int cpu_init (void)
         * setup up stacks if necessary
         */
 #ifdef CONFIG_USE_IRQ
-       IRQ_STACK_START = _armboot_start - CFG_MALLOC_LEN - CFG_GBL_DATA_SIZE - 4;
+       IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4;
        FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;
 #endif
        return 0;
index 53f27456acc8c8e814062a8bdfd535dd90445536..2eff045709f6229a282b9deb000056037ee4ef5e 100644 (file)
@@ -74,10 +74,10 @@ void udelay_masked (unsigned long usec)
 
        if (usec >= 1000) {
                tmo = usec / 1000;
-               tmo *= CFG_HZ;
+               tmo *= CONFIG_SYS_HZ;
                tmo /= 1000;
        } else {
-               tmo = usec * CFG_HZ;
+               tmo = usec * CONFIG_SYS_HZ;
                tmo /= (1000*1000);
        }
 
@@ -106,6 +106,6 @@ ulong get_tbclk (void)
 {
        ulong tbclk;
 
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
index 910650d15bb64bc974c178e429cd7a45e4aa548f..278c5008fb84079362a4145f078b9fb74a9af1fd 100644 (file)
@@ -147,8 +147,8 @@ copy_loop:
        /* Set up the stack                                                 */
 stack_setup:
        ldr     r0, _TEXT_BASE          /* upper 128 KiB: relocated uboot   */
-       sub     r0, r0, #CFG_MALLOC_LEN /* malloc area                      */
-       sub     r0, r0, #CFG_GBL_DATA_SIZE /* bdinfo                        */
+       sub     r0, r0, #CONFIG_SYS_MALLOC_LEN  /* malloc area                      */
+       sub     r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo                        */
 #ifdef CONFIG_USE_IRQ
        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
 #endif
@@ -196,7 +196,7 @@ RST_BASE:           .word   0x90030000
 PWR_BASE:              .word   0x90020000
 #define PSPR    0x08
 #define PPCR    0x14
-cpuspeed:              .word   CFG_CPUSPEED
+cpuspeed:              .word   CONFIG_SYS_CPUSPEED
 
 
 cpu_init_crit:
@@ -288,8 +288,8 @@ cpu_init_crit:
        add     r8, sp, #S_PC
 
        ldr     r2, _armboot_start
-       sub     r2, r2, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r2, r2, #(CFG_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
+       sub     r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8)  @ set base 2 words into abort stack
        ldmia   r2, {r2 - r4}                   @ get pc, cpsr, old_r0
        add     r0, sp, #S_FRAME_SIZE           @ restore sp_SVC
 
@@ -321,8 +321,8 @@ cpu_init_crit:
 
        .macro get_bad_stack
        ldr     r13, _armboot_start             @ setup our mode stack
-       sub     r13, r13, #(CONFIG_STACKSIZE+CFG_MALLOC_LEN)
-       sub     r13, r13, #(CFG_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
+       sub     r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
+       sub     r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
 
        str     lr, [r13]                       @ save caller lr / spsr
        mrs     lr, spsr
index c4fa688bdacaf03df871398194169f843fc253e7..0ab867d54d56578401ef14cde8322debbb3758f0 100644 (file)
@@ -73,6 +73,6 @@ loop:
 ._reloc_dst_end:       .long   reloc_dst_end
 ._bss_start:           .long   bss_start
 ._bss_end:             .long   bss_end
-._gd_init:             .long   (_start - CFG_GBL_DATA_SIZE)
-._stack_init:  .long   (_start - CFG_GBL_DATA_SIZE - CFG_MALLOC_LEN - 16)
+._gd_init:             .long   (_start - CONFIG_SYS_GBL_DATA_SIZE)
+._stack_init:  .long   (_start - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
 ._sh_generic_init:     .long   sh_generic_init
index d6eb0cb103028c118606f165cff19a25555904af..fcbb921c8c71078f6d592483bbdfcb291e397e67 100644 (file)
@@ -101,11 +101,11 @@ void udelay(unsigned long usec)
 {
        unsigned int start = get_timer(0);
 
-       while (get_timer((ulong) start) < (usec * (CFG_HZ / 1000000)))
+       while (get_timer((ulong) start) < (usec * (CONFIG_SYS_HZ / 1000000)))
                continue;
 }
 
 unsigned long get_tbclk(void)
 {
-       return CFG_HZ;
+       return CONFIG_SYS_HZ;
 }
index ee0bcdf7b405ec5019555db8852ae8c963a92406..c0f83261d10fd9c1584c316563948b056f3d1b17 100644 (file)
@@ -72,6 +72,6 @@ loop:
 ._reloc_dst_end:       .long   reloc_dst_end
 ._bss_start:           .long   bss_start
 ._bss_end:             .long   bss_end
-._gd_init:             .long   (_start - CFG_GBL_DATA_SIZE)
-._stack_init:  .long   (_start - CFG_GBL_DATA_SIZE - CFG_MALLOC_LEN - 16)
+._gd_init:             .long   (_start - CONFIG_SYS_GBL_DATA_SIZE)
+._stack_init:  .long   (_start - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
 ._sh_generic_init:     .long   sh_generic_init
index 0c273dde37e1af710008a2d6a24f3fb76ce7dc5a..aab365982185e31830ab3d3b10ac5a91dfd7f9e3 100644 (file)
@@ -91,7 +91,7 @@ void reset_timer(void)
 void udelay(unsigned long usec)
 {
        unsigned int start = get_timer(0);
-       unsigned int end = start + (usec * ((CFG_HZ + 500000) / 1000000));
+       unsigned int end = start + (usec * ((CONFIG_SYS_HZ + 500000) / 1000000));
 
        while (get_timer(0) < end)
                continue;
@@ -99,5 +99,5 @@ void udelay(unsigned long usec)
 
 unsigned long get_tbclk(void)
 {
-       return CFG_HZ;
+       return CONFIG_SYS_HZ;
 }
index a68ebb8c93e264bdfae3d10691e2df880eac2adf..711ae668d59bc4403e0a1d098f951d3a7a5cbe72 100644 (file)
@@ -69,6 +69,6 @@ loop:
 ._reloc_dst_end:       .long   reloc_dst_end
 ._bss_start:           .long   bss_start
 ._bss_end:             .long   bss_end
-._gd_init:             .long   (_start - CFG_GBL_DATA_SIZE)
-._stack_init:          .long   (_start - CFG_GBL_DATA_SIZE - CFG_MALLOC_LEN - 16)
+._gd_init:             .long   (_start - CONFIG_SYS_GBL_DATA_SIZE)
+._stack_init:          .long   (_start - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
 ._sh_generic_init:     .long   sh_generic_init
index 5f8a3a0802dcd15695e04e38a4341663498f5637..77e0ae2986143604976dbb59a6ff576cdd600221 100644 (file)
@@ -86,7 +86,7 @@ void reset_timer (void)
 void udelay (unsigned long usec)
 {
        unsigned int start = get_timer (0);
-       unsigned int end = start + (usec * ((CFG_HZ + 500000) / 1000000));
+       unsigned int end = start + (usec * ((CONFIG_SYS_HZ + 500000) / 1000000));
 
        while (get_timer (0) < end)
                continue;
@@ -94,5 +94,5 @@ void udelay (unsigned long usec)
 
 unsigned long get_tbclk (void)
 {
-       return CFG_HZ;
+       return CONFIG_SYS_HZ;
 }
index e2bf4ab840cdf8e5085ca4835b55db35b1a6e8fc..e353cee991d522a572a87c0de62c611231f5cd4f 100644 (file)
@@ -183,7 +183,7 @@ void dev_print (block_dev_desc_t *dev_desc)
                if (dev_desc->lba48)
                        printf ("            Supports 48-bit addressing\n");
 #endif
-#if defined(CFG_64BIT_LBA) && defined(CFG_64BIT_VSPRINTF)
+#if defined(CONFIG_SYS_64BIT_LBA) && defined(CONFIG_SYS_64BIT_VSPRINTF)
                printf ("            Capacity: %ld.%ld MB = %ld.%ld GB (%qd x %ld)\n",
                        mb_quot, mb_rem,
                        gb_quot, gb_rem,
index 979019ac80175053da7da32b7bfbcb3b6ac4d410..cc188ee8991f35f1d731cccf49578d2fa88ab9d4 100644 (file)
  */
 
 /*
- * Problems with CFG_64BIT_LBA:
+ * Problems with CONFIG_SYS_64BIT_LBA:
  *
  * struct disk_partition.start in include/part.h is sized as ulong.
- * When CFG_64BIT_LBA is activated, lbaint_t changes from ulong to uint64_t.
+ * When CONFIG_SYS_64BIT_LBA is activated, lbaint_t changes from ulong to uint64_t.
  * For now, it is cast back to ulong at assignment.
  *
  * This limits the maximum size of addressable storage to < 2 Terra Bytes
index 44d34785499773dca1d5a38a1297110ea71479e7..f4a996870110d32aa815fdc913ceda8e5d20d901 100644 (file)
@@ -33,7 +33,7 @@ Notes
 This reset edge condition could possibly be present in every I2C
 controller and device available. For boards where a I2C bus reset
 function can be implemented a i2c_init_board() function should be
-provided and enabled by #define'ing CFG_I2C_INIT_BOARD in your
+provided and enabled by #define'ing CONFIG_SYS_I2C_INIT_BOARD in your
 board's config file. Note that this is NOT necessary when using the
 bit-banging I2C driver (common/soft_i2c.c) as this already includes
 the I2C bus reset sequence.
index c5d67fd4e058e48d00a84fede2b5489c2295eed8..f0e9bc1b37aacf8ebb8b0ddc50d61e577b1f9399 100644 (file)
@@ -12,7 +12,7 @@ chpart  - change active partition
 
 If you boot from a partition which is mounted writable, and you
 update your boot environment by replacing single files on that
-partition, you should also define CFG_JFFS2_SORT_FRAGMENTS. Scanning
+partition, you should also define CONFIG_SYS_JFFS2_SORT_FRAGMENTS. Scanning
 the JFFS2 filesystem takes *much* longer with this feature, though.
 Sorting is done while inserting into the fragment list, which is
 more or less a bubble sort. That algorithm is known to be O(n^2),
@@ -24,16 +24,16 @@ the flash_info structure to find the start of a JFFS2 disk (called
 partition in the code) and you can change where the partition is with
 two defines.
 
-CFG_JFFS2_FIRST_BANK
+CONFIG_SYS_JFFS2_FIRST_BANK
        defined the first flash bank to use
 
-CFG_JFFS2_FIRST_SECTOR
+CONFIG_SYS_JFFS2_FIRST_SECTOR
        defines the first sector to use
 
 
-The second way is to define CFG_JFFS_CUSTOM_PART and implement the
+The second way is to define CONFIG_SYS_JFFS_CUSTOM_PART and implement the
 jffs2_part_info(int part_num) function in your board specific files.
-In this mode CFG_JFFS2_FIRST_BANK and CFG_JFFS2_FIRST_SECTOR is not
+In this mode CONFIG_SYS_JFFS2_FIRST_BANK and CONFIG_SYS_JFFS2_FIRST_SECTOR is not
 used.
 
 The input is a partition number starting with 0.
@@ -41,7 +41,7 @@ Return a pointer to struct part_info or NULL for error;
 
 Ex jffs2_part_info() for one partition.
 ---
-#if defined CFG_JFFS_CUSTOM_PART
+#if defined CONFIG_SYS_JFFS_CUSTOM_PART
 #include <jffs2/jffs2.h>
 
 static struct part_info part;
index a836d53be53b695359a7ff6927f9a02829aa2d8a..2b3326bc152bf704e3fe322f6b48a667899a1c80 100644 (file)
@@ -13,7 +13,7 @@ configured using the following #defines in the configuration file:
 #define CONFIG_JFFS2_NAND_SIZE 2*1024*1024     /* size of jffs2 partition */
 
 If more than a single partition is desired, the user can define a
-CFG_JFFS_CUSTOM_PART macro and implement a
+CONFIG_SYS_JFFS_CUSTOM_PART macro and implement a
 
        struct part_info* jffs2_part_info(int part_num)
 
index 679228ec39fa4acf9c0af44615cfa3864e4aa313..c889fe97911fdb0a7707c97e4195a4b90c4360d1 100644 (file)
@@ -1,4 +1,4 @@
-IMPORTANT NOTE - read before defining CFG_USE_OSCCLK in your board
+IMPORTANT NOTE - read before defining CONFIG_SYS_USE_OSCCLK in your board
                 config file!!!
 
 
@@ -62,7 +62,7 @@ firmware opts for the NASTY timing loops, but needs to configure the
 serial ports to do so.
 
 
-You may have a legitimate need to define CFG_USE_OSCCLK if your
+You may have a legitimate need to define CONFIG_SYS_USE_OSCCLK if your
 MBX8xx board is using the OSCM clocking mode.
 
 You better know what you are doing here.
index c8256a14cf2432d7670201dc5c0915038e0b5191..4707cb7df7d6362ee2887085fd5e8291b33c96e9 100644 (file)
@@ -4,8 +4,8 @@ clock value, in MHz, via an environment variable "cpuclk".
 Four compile-time constants are used:
 
        CONFIG_8xx_OSCLK          - input quartz clock
-       CFG_8xx_CPUCLK_MIN        - minimum allowed CPU clock
-       CFG_8xx_CPUCLK_MAX        - maximum allowed CPU clock
+       CONFIG_SYS_8xx_CPUCLK_MIN        - minimum allowed CPU clock
+       CONFIG_SYS_8xx_CPUCLK_MAX        - maximum allowed CPU clock
        CONFIG_8xx_CPUCLK_DEFAULT - default CPU clock value
 
 If the "cpuclk" environment variable value is within the CPUCLK_MIN /
index 07756a5d505d775f6aa2fabe80613272177f7a9f..d8b3f9c01205d90ae369e7326cce9030e067a35c 100644 (file)
@@ -100,9 +100,9 @@ CONFIG_ATAPI        enables ATAPI Support
 SCSI support (experimental) only SYM53C8xx supported
 ----------------------------------------------------
 CONFIG_SCSI_SYM53C8XX          type of SCSI controller
-CFG_SCSI_MAX_LUN       8       number of supported LUNs
-CFG_SCSI_MAX_SCSI_ID   7       maximum SCSI ID (0..6)
-CFG_SCSI_MAX_DEVICE    CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN
+CONFIG_SYS_SCSI_MAX_LUN        8       number of supported LUNs
+CONFIG_SYS_SCSI_MAX_SCSI_ID    7       maximum SCSI ID (0..6)
+CONFIG_SYS_SCSI_MAX_DEVICE     CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN
                                maximum of Target devices (multiple LUN support
                                for boot)
 
@@ -125,7 +125,7 @@ CONFIG_VIDEO_CT69000                Enable Chips & Technologies 69000 Video chip
 
 External peripheral base address:
 ---------------------------------
-CFG_ISA_IO_BASE_ADDRESS                address of all ISA-bus related parts
+CONFIG_SYS_ISA_IO_BASE_ADDRESS         address of all ISA-bus related parts
                                _must_ be defined for ISA-bus parts
 
 Identify:
@@ -135,14 +135,14 @@ CONFIG_IDENT_STRING               added to the U_BOOT_VERSION String
 Environment / Console:
 ----------------------
 
-CFG_CONSOLE_IS_IN_ENV          if defined, stdin, stdout and stderr used from
+CONFIG_SYS_CONSOLE_IS_IN_ENV           if defined, stdin, stdout and stderr used from
                                the values stored in the evironment.
 
-CFG_CONSOLE_OVERWRITE_ROUTINE  if defined, console_overwrite() decides if the
+CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE   if defined, console_overwrite() decides if the
                                values stored in the environment or the standard
                                serial in/out put should be assigned to the console.
 
-CFG_CONSOLE_ENV_OVERWRITE      if defined, the start-up console switching
+CONFIG_SYS_CONSOLE_ENV_OVERWRITE       if defined, the start-up console switching
                                are stored in the environment.
 
 PIP405 specific:
@@ -161,7 +161,7 @@ Added Devices:
 
 Floppy support:
 ---------------
-Support of a standard floppy disk controller at address CFG_ISA_IO_BASE_ADDRESS
+Support of a standard floppy disk controller at address CONFIG_SYS_ISA_IO_BASE_ADDRESS
 + 0x3F0. Enabled with define CONFIG_CMD_FDC. Reads a unformated floppy disk
 with a image header (see: mkimage). No interrupts and no DMA are used for this.
 Added files:
@@ -173,7 +173,7 @@ SCSI support:
 Support for Symbios SYM53C810A chip. Implemented as follows:
 - without disconnect
 - only asynchrounous
-- multiple LUN support (caution, needs a lot of RAM. define CFG_SCSI_MAX_LUN 1 to
+- multiple LUN support (caution, needs a lot of RAM. define CONFIG_SYS_SCSI_MAX_LUN 1 to
   save RAM)
 - multiple SCSI ID support
 - no write support
@@ -197,7 +197,7 @@ ATAPI support (IDE changes):
 ----------------------------
 Added ATAPI support (with CONFIG_ATAPI) in the file cmd_ide.c.
 To support a hardreset, when the IDE reset pin is not connected to the
-CFG_PC_IDE_RESET pin, the switch CONFIG_IDE_RESET_ROUTINE has been added. When
+CONFIG_SYS_PC_IDE_RESET pin, the switch CONFIG_IDE_RESET_ROUTINE has been added. When
 this switch is enabled the routine void ide_set_reset(int idereset) must be
 within the board specific files.
 Only read from ATAPI devices are supported.
@@ -242,7 +242,7 @@ changed files:
 MC146818 RTC support:
 ---------------------
 Added support for MC146818 RTC with defining CONFIG_RTC_MC146818. The ISA bus IO
-base address must be defined with CFG_ISA_IO_BASE_ADDRESS.
+base address must be defined with CONFIG_SYS_ISA_IO_BASE_ADDRESS.
 Added files:
 - rtc/mc146818.c
 
@@ -299,7 +299,7 @@ I2C Stuff:
 ----------
 Added defined(CONFIG_PIP405) at several points in common/cmd_i2c.c.
 Added 16bit read/write support for I2C (PPC405), and page write to
-I2C EEPROM if defined CFG_EEPROM_PAGE_WRITE_ENABLE.
+I2C EEPROM if defined CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE.
 Changed files:
 - cpu/ppc4xx/i2c.c
 - common/cmd_i2c.c
@@ -308,11 +308,11 @@ Environment / Console:
 ----------------------
 Although in README.console described, the U-Boot has not assinged the values
 found in the environment to the console. Corrected this behavior, but only if
-CFG_CONSOLE_IS_IN_ENV is defined.
-If CFG_CONSOLE_OVERWRITE_ROUTINE is defined, console_overwrite() decides if the
+CONFIG_SYS_CONSOLE_IS_IN_ENV is defined.
+If CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE is defined, console_overwrite() decides if the
 values stored in the environment or the standard serial in/output should be
 assigned to the console. This is useful if the environment values are not correct.
-If CFG_CONSOLE_ENV_OVERWRITE is defined the devices assigned to the console at
+If CONFIG_SYS_CONSOLE_ENV_OVERWRITE is defined the devices assigned to the console at
 start-up time will be written to the environment. This means that if the
 environment values are overwritten by the overwrite_console() routine, they will be
 stored in the environment.
index e443d3959620a94f256a511f76c567141a7e671d..6a0f236d3ca8e66555aaca60d46a37ceff508693 100644 (file)
@@ -12,35 +12,35 @@ are imposed by the PXA architecture.
 #define CONFIG_PCMCIA_SLOT_A 1
 /* just to keep build system happy  */
 
-#define CFG_PCMCIA_MEM_ADDR     0x28000000
-#define CFG_PCMCIA_MEM_SIZE     0x10000000
-
-#define CFG_MECR_VAL           0x00000000
-#define CFG_MCMEM0_VAL         0x00004204
-#define CFG_MCMEM1_VAL         0x00000000
-#define CFG_MCATT0_VAL         0x00010504
-#define CFG_MCATT1_VAL         0x00000000
-#define CFG_MCIO0_VAL          0x00008407
-#define CFG_MCIO1_VAL          0x00000000
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     0x28000000
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     0x10000000
+
+#define CONFIG_SYS_MECR_VAL            0x00000000
+#define CONFIG_SYS_MCMEM0_VAL          0x00004204
+#define CONFIG_SYS_MCMEM1_VAL          0x00000000
+#define CONFIG_SYS_MCATT0_VAL          0x00010504
+#define CONFIG_SYS_MCATT1_VAL          0x00000000
+#define CONFIG_SYS_MCIO0_VAL           0x00008407
+#define CONFIG_SYS_MCIO1_VAL           0x00000000
 /* memory configuration */
 
-#define CFG_IDE_MAXBUS         1
+#define CONFIG_SYS_IDE_MAXBUS          1
 /* max. 1 IDE bus              */
-#define CFG_IDE_MAXDEVICE      1
+#define CONFIG_SYS_IDE_MAXDEVICE       1
 /* max. 1 drive per IDE bus    */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      0x20000000
+#define CONFIG_SYS_ATA_BASE_ADDR       0x20000000
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    0x1f0
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x1f0
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     0x1f0
+#define CONFIG_SYS_ATA_REG_OFFSET      0x1f0
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x3f0
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x3f0
 
 
 Another important point is that maybe you have to power the pcmcia
index 05710954ea67066d570273b0acdb366b7a25cf1a..b93a1cb948ec1a792f0d0834cea2a3abed0976dc 100644 (file)
@@ -52,7 +52,7 @@ CONFIG_82xx_CONS_SMC2
 
        If defined, SMC2 will be used as the console
 
-CFG_INIT_LOCAL_SDRAM
+CONFIG_SYS_INIT_LOCAL_SDRAM
 
        If defined, the SDRAM on the local bus will be initialized and
        mapped at BR2.
index 5257f18b4bcd885f11f67391e75ba22c1601c290..f9566b8ee8788476fa32b22f97f4e0fe7c2adfa7 100644 (file)
@@ -78,7 +78,7 @@ configuration settings occupies about 97 KBytes of flash.
 A minimal configuration occupies less than 70 KByte
 (network, SPI, POST and board command support disabled). You
 can save more memory by deactivating the Hu-Shell support and
-long command help (CFG_HUSH_PARSER, CFG_LONGHELP).
+long command help (CONFIG_SYS_HUSH_PARSER, CONFIG_SYS_LONGHELP).
 
 To program U-Boot into the ADNP/ESC1 flash using GERMS do the
 following:
@@ -193,24 +193,24 @@ you have to check-up the next environment variables:
        - this is the startup address for autoboot
        - each Nios application code we want to update will be copied
          to this address
-       - default is CFG_ADNPESC1_NIOS_APPL_ENTRY
+       - default is CONFIG_SYS_ADNPESC1_NIOS_APPL_ENTRY
 
 3. appl_end_addr
 
        - Nios application area end address (usually in Flash)
        - will be used to unprotect/erase the Flash area while updating
-       - default is CFG_ADNPESC1_NIOS_APPL_END
+       - default is CONFIG_SYS_ADNPESC1_NIOS_APPL_END
 
 4. appl_ident_addr
 
        - address of the Nios application identification string
        - this is the address checked-up by autoboot
-       - default is CFG_ADNPESC1_NIOS_APPL_IDENT
+       - default is CONFIG_SYS_ADNPESC1_NIOS_APPL_IDENT
 
 5. appl_ident_str
 
        - the Nios application identification string itself
-       - default is CFG_ADNPESC1_NIOS_IDENTIFIER
+       - default is CONFIG_SYS_ADNPESC1_NIOS_IDENTIFIER
 
 6. appl_name
 
@@ -221,13 +221,13 @@ you have to check-up the next environment variables:
 
        - optionally file system area start address (usually in Flash)
        - each file system we want to update will be copied to this address
-       - default is CFG_ADNPESC1_FILESYSTEM_BASE
+       - default is CONFIG_SYS_ADNPESC1_FILESYSTEM_BASE
 
 8. fs_end_addr
 
        - optionally file system area end address (usually in Flash)
        - will be used to unprotect/erase the Flash area while updating
-       - default is CFG_ADNPESC1_FILESYSTEM_END
+       - default is CONFIG_SYS_ADNPESC1_FILESYSTEM_END
 
 9. fs_name
 
index 145e8cdadedde0164135fad2fbf7e405adb08de4..e6fb7a47dfc8e5224248062e8bd2808913d445ca 100644 (file)
@@ -18,39 +18,39 @@ CPU:        "DNP_ESC1"
        no Debug Core
        no On Chip Instrumentation (OCI)
 
-       U-Boot CFG:     CFG_NIOS_CPU_CLK             = 50000000
-                       CFG_NIOS_CPU_ICACHE          = (not present)
-                       CFG_NIOS_CPU_DCACHE          = (not present)
-                       CFG_NIOS_CPU_REG_NUMS        = 512
-                       CFG_NIOS_CPU_MUL             = 0
-                       CFG_NIOS_CPU_MSTEP           = 1
-                       CFG_NIOS_CPU_DBG_CORE        = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_CLK      = 50000000
+                       CONFIG_SYS_NIOS_CPU_ICACHE           = (not present)
+                       CONFIG_SYS_NIOS_CPU_DCACHE           = (not present)
+                       CONFIG_SYS_NIOS_CPU_REG_NUMS         = 512
+                       CONFIG_SYS_NIOS_CPU_MUL      = 0
+                       CONFIG_SYS_NIOS_CPU_MSTEP            = 1
+                       CONFIG_SYS_NIOS_CPU_DBG_CORE         = 0
 
 IRQ:    Nr.  | used by
        ------+--------------------------------------------------------
-        16   | TIMER0    |  CFG_NIOS_CPU_TIMER0_IRQ = 16
-        17   | UART0     |  CFG_NIOS_CPU_UART0_IRQ  = 17
-        18   | UART1     |  CFG_NIOS_CPU_UART1_IRQ  = 18
-        20   | LAN91C111 |  CFG_NIOS_CPU_LAN0_IRQ   =
-             | PIO6      |  CFG_NIOS_CPU_PIO6_IRQ   = 20
-        25   | SPI0      |  CFG_NIOS_CPU_SPI0_IRQ   = 25
-        31   | PIO7      |  CFG_NIOS_CPU_PIO7_IRQ   = 31
-        32   | PIO8      |  CFG_NIOS_CPU_PIO8_IRQ   = 32
-        33   | PIO9      |  CFG_NIOS_CPU_PIO9_IRQ   = 33
-        34   | PIO10     |  CFG_NIOS_CPU_PIO10_IRQ  = 34
-        35   | PIO11     |  CFG_NIOS_CPU_PIO11_IRQ  = 35
-        36   | PIO12     |  CFG_NIOS_CPU_PIO12_IRQ  =
-             | IDE0      |  CFG_NIOS_CPU_IDE0_IRQ   = 36
-        37   | PIO13     |  CFG_NIOS_CPU_PIO13_IRQ  =
-             | IDE1      |  CFG_NIOS_CPU_IDE1_IRQ   = 37
+        16   | TIMER0    |  CONFIG_SYS_NIOS_CPU_TIMER0_IRQ = 16
+        17   | UART0     |  CONFIG_SYS_NIOS_CPU_UART0_IRQ  = 17
+        18   | UART1     |  CONFIG_SYS_NIOS_CPU_UART1_IRQ  = 18
+        20   | LAN91C111 |  CONFIG_SYS_NIOS_CPU_LAN0_IRQ   =
+             | PIO6      |  CONFIG_SYS_NIOS_CPU_PIO6_IRQ   = 20
+        25   | SPI0      |  CONFIG_SYS_NIOS_CPU_SPI0_IRQ   = 25
+        31   | PIO7      |  CONFIG_SYS_NIOS_CPU_PIO7_IRQ   = 31
+        32   | PIO8      |  CONFIG_SYS_NIOS_CPU_PIO8_IRQ   = 32
+        33   | PIO9      |  CONFIG_SYS_NIOS_CPU_PIO9_IRQ   = 33
+        34   | PIO10     |  CONFIG_SYS_NIOS_CPU_PIO10_IRQ  = 34
+        35   | PIO11     |  CONFIG_SYS_NIOS_CPU_PIO11_IRQ  = 35
+        36   | PIO12     |  CONFIG_SYS_NIOS_CPU_PIO12_IRQ  =
+             | IDE0      |  CONFIG_SYS_NIOS_CPU_IDE0_IRQ   = 36
+        37   | PIO13     |  CONFIG_SYS_NIOS_CPU_PIO13_IRQ  =
+             | IDE1      |  CONFIG_SYS_NIOS_CPU_IDE1_IRQ   = 37
 
 MEMORY:         8 MByte Flash
        16 MByte SDRAM
 
 Timer: TIMER0: high priority programmable timer (IRQ16)
 
-       U-Boot CFG:     CFG_NIOS_CPU_TICK_TIMER      = 0
-                       CFG_NIOS_CPU_USER_TIMER      = (not present)
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_TICK_TIMER       = 0
+                       CONFIG_SYS_NIOS_CPU_USER_TIMER       = (not present)
 
 PIO:    Nr.  | description
        ------+--------------------------------------------------------
@@ -71,13 +71,13 @@ PIO:         Nr.  | description
         PIO13| INT7:       1 input for general purpose irq (IRQ37)
              | IDE1INT:     (same) for IDE1 irq input
 
-       U-Boot CFG:     CFG_NIOS_CPU_PORTA_PIO       = 0
-                       CFG_NIOS_CPU_PORTB_PIO       = 1
-                       CFG_NIOS_CPU_PORTC_PIO       = 2
-                       CFG_NIOS_CPU_RCM_PIO         = 3
-                       CFG_NIOS_CPU_WDTENA_PIO      = 4
-                       CFG_NIOS_CPU_WDTTRIG_PIO     = 5
-                       CFG_NIOS_CPU_LED_PIO         = (not present)
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_PORTA_PIO        = 0
+                       CONFIG_SYS_NIOS_CPU_PORTB_PIO        = 1
+                       CONFIG_SYS_NIOS_CPU_PORTC_PIO        = 2
+                       CONFIG_SYS_NIOS_CPU_RCM_PIO          = 3
+                       CONFIG_SYS_NIOS_CPU_WDTENA_PIO       = 4
+                       CONFIG_SYS_NIOS_CPU_WDTTRIG_PIO     = 5
+                       CONFIG_SYS_NIOS_CPU_LED_PIO          = (not present)
 
 UART:  UART0: fixed baudrate of 115200, fixed protocol 8N1, RTS/CTS (IRQ17)
        UART1: fixed baudrate of 115200, fixed protocol 8N1,
@@ -104,28 +104,28 @@ IDE:      (TODO)
   0x44000000 ---32-----------16|15------------0-
               |               |               | \
               :  (real size   :               : |
-  EXT3 (CS4)   :   and content :              :  > CFG_NIOS_CPU_CS3_SIZE
+  EXT3 (CS4)   :   and content :              :  > CONFIG_SYS_NIOS_CPU_CS3_SIZE
               :   unknown)    :               : |   = 0x01000000
               |               |               | /
-  0x43000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_CS3_BASE
+  0x43000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_CS3_BASE
               |               |               | \
               :  (real size   :               : |
-  EXT2 (CS3)   :   and content :              :  > CFG_NIOS_CPU_CS2_SIZE
+  EXT2 (CS3)   :   and content :              :  > CONFIG_SYS_NIOS_CPU_CS2_SIZE
               :   unknown)    :               : |   = 0x01000000
               |               |               | /
-  0x42000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_CS2_BASE
+  0x42000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_CS2_BASE
               |               |               | \
               :  (real size   :               : |
-  EXT1 (CS2)   :   and content :              :  > CFG_NIOS_CPU_CS1_SIZE
+  EXT1 (CS2)   :   and content :              :  > CONFIG_SYS_NIOS_CPU_CS1_SIZE
               :   unknown)    :               : |   = 0x01000000
               |               |               | /
-  0x41000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_CS1_BASE
+  0x41000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_CS1_BASE
               |               |               | \
               :  (real size   :               : |
-  EXT0 (CS1)   :   and content :              :  > CFG_NIOS_CPU_CS0_SIZE
+  EXT0 (CS1)   :   and content :              :  > CONFIG_SYS_NIOS_CPU_CS0_SIZE
               :   unknown)    :               : |   = 0x01000000
               |               |               | /
-  0x40000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_CS0_BASE
+  0x40000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_CS0_BASE
               |                               |
               :              gap              :
               :                               :
@@ -135,23 +135,23 @@ IDE:      (TODO)
               :                               :
               :              gap              :
               |                               |
-  0x03000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_STACK
+  0x03000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_STACK
               |               .               | \
               |               .               | |  (U-Boot run-time system)
               |               .               | |
-              |               .               |  > CFG_MONITOR_LEN
+              |               .               |  > CONFIG_SYS_MONITOR_LEN
               |               .               | |   = 0x00040000
               |               .               | |
               |               .               | /
   0x02fc0000 --+32-----------16|15------------0+    TEXT_BASE
               |               .               | \
-              |               .               |  > CFG_MALLOC_LEN (heap)
+              |               .               |  > CONFIG_SYS_MALLOC_LEN (heap)
               |               .               | /
             --+32-----------16|15------------0+
               |               .               | \
-              |               .               |  > CFG_GBL_DATA_SIZE (global)
+              |               .               |  > CONFIG_SYS_GBL_DATA_SIZE (global)
               |               .               | /
-            --+32-----------16|15------------0+    CFG_INIT_SP (u-boot stack)
+            --+32-----------16|15------------0+    CONFIG_SYS_INIT_SP (u-boot stack)
               |               .               | \ \
               |               .               | | |
               |               .               | |  > stack area
@@ -159,17 +159,17 @@ IDE:      (TODO)
               |               .               | | V
               |               .               | |
               |               .               | |
-  SDRAM               |               .               |  > CFG_NIOS_CPU_SDRAM_SIZE
+  SDRAM               |               .               |  > CONFIG_SYS_NIOS_CPU_SDRAM_SIZE
               |               .               | |   = 0x01000000
               |               .               | |
   0x02000100   |- - - - - - - - - - - - - - - -+-|-
               |               .               | | \
               |               .               | | |
-              |               .               | |  > CFG_NIOS_CPU_VEC_SIZE
+              |               .               | |  > CONFIG_SYS_NIOS_CPU_VEC_SIZE
               |               .               | | |   = 0x00000100
               |                               | / /
-  0x02000000   |- - - - - - - - - - - - - - - -+- - CFG_NIOS_CPU_VEC_BASE
-  0x02000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SDRAM_BASE
+  0x02000000   |- - - - - - - - - - - - - - - -+- - CONFIG_SYS_NIOS_CPU_VEC_BASE
+  0x02000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SDRAM_BASE
               |                               | \
               :              gap              :  > (space for 2nd Flash)
               |                               | /
@@ -177,11 +177,11 @@ IDE:      (TODO)
               |  sector 127                   | \
     + 0x7f0000 |- - - - - - - - - - - - - - - -| |
               |               :               | |
-  Flash               |-   -   -   -  :  -   -   -   -|  > CFG_NIOS_CPU_FLASH_SIZE
+  Flash               |-   -   -   -  :  -   -   -   -|  > CONFIG_SYS_NIOS_CPU_FLASH_SIZE
               |  sector 1     :               | |   = 0x00800000
     + 0x010000 |- - - - - - - - - - - - - - - -| |
               |  sector 0 (size = 0x10000)    | /
-  0x01000000 ---8-------------4|3-------------0-    CFG_NIOS_CPU_FLASH_BASE
+  0x01000000 ---8-------------4|3-------------0-    CONFIG_SYS_NIOS_CPU_FLASH_BASE
               |                               |
               :              gap              :
               :                               :
@@ -207,7 +207,7 @@ IDE:        (TODO)
               | |- - - - - - -|- - - - - - -| | |
               | | EPH STATUS  | TCR         | | |
               | +---------------------------+ | /
-  0x00010000 ---32-----------16|15------------0-    CFG_NIOS_CPU_LAN0_BASE
+  0x00010000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_LAN0_BASE
               |                               |
               :              gap              :
               :                               :
@@ -223,13 +223,13 @@ IDE:      (TODO)
   IDE1 i/f     :              :               :  > 0x00000020
   [5]         :               :               : |
               |               |               | /
-  0x00001020 ---32-----------16|15------------0-    CFG_NIOS_CPU_IDE1
+  0x00001020 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_IDE1
               |               |               | \
               :               :               : |
   IDE0 i/f     :              :               :  > 0x00000020
   [5]         :               :               : |
               |               |               | /
-  0x00001000 ---32-----------16|15------------0-    CFG_NIOS_CPU_IDE0
+  0x00001000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_IDE0
               |                               |
               :              gap              :
               |                               |
@@ -241,7 +241,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000970 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO13
+  0x00000970 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO13
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO12        |  interruptmask (1 bit)         (rw)  | |
@@ -249,7 +249,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000960 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO12
+  0x00000960 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO12
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO11        |  interruptmask (1 bit)         (rw)  | |
@@ -257,7 +257,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000950 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO11
+  0x00000950 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO11
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO10        |  interruptmask (1 bit)         (rw)  | |
@@ -265,7 +265,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000940 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO10
+  0x00000940 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO10
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO9         |  interruptmask (1 bit)         (rw)  | |
@@ -273,7 +273,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000930 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO9
+  0x00000930 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO9
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO8         |  interruptmask (1 bit)         (rw)  | |
@@ -281,7 +281,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000920 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO8
+  0x00000920 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO8
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO7         |  interruptmask (1 bit)         (rw)  | |
@@ -289,7 +289,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000910 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO7
+  0x00000910 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO7
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO6         |  interruptmask (1 bit)         (rw)  | |
@@ -297,7 +297,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000900 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO6
+  0x00000900 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO6
               |                               |
               :              gap              :
               |                               |
@@ -317,7 +317,7 @@ IDE:        (TODO)
               |  txdata (16 bit)        (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (16 bit)        (ro)  | /
-  0x000008c0 ---32-----------16|15------------0-    CFG_NIOS_CPU_SPI0
+  0x000008c0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SPI0
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO5        |                     (unused)  | |
@@ -325,7 +325,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x000008b0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO5
+  0x000008b0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO5
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO4        |                     (unused)  | |
@@ -333,7 +333,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x000008a0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO4
+  0x000008a0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO4
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO3        |                     (unused)  | |
@@ -341,7 +341,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x00000890 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO3
+  0x00000890 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO3
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO2        |                     (unused)  | |
@@ -349,7 +349,7 @@ IDE:        (TODO)
               |  direction (4 bit)      (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (4 bit)           (rw)  | /
-  0x00000880 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO2
+  0x00000880 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO2
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO1        |                     (unused)  | |
@@ -357,7 +357,7 @@ IDE:        (TODO)
               |  direction (8 bit)      (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (8 bit)           (rw)  | /
-  0x00000870 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO1
+  0x00000870 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO1
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO0        |                     (unused)  | |
@@ -365,7 +365,7 @@ IDE:        (TODO)
               |  direction (8 bit)      (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (8 bit)           (rw)  | /
-  0x00000860 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO0
+  0x00000860 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -381,7 +381,7 @@ IDE:        (TODO)
               |  control (4 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x00000840 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER0
+  0x00000840 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -397,7 +397,7 @@ IDE:        (TODO)
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x00000820 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART1
+  0x00000820 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART1
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -413,18 +413,18 @@ IDE:      (TODO)
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x00000800 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART0
+  0x00000800 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART0
 
 - - - - - - - - - - -  on chip memory 1          - - - - - - - - - - -
 
   0x00000800 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  GERMS               |               :               |  > CFG_NIOS_CPU_ROM_SIZE
+  GERMS               |               :               |  > CONFIG_SYS_NIOS_CPU_ROM_SIZE
               |               :               | |   = 0x00000800
               |               :               | /
-  0x00000000   |- - - - - - - - - - - - - - - -+- - CFG_NIOS_CPU_RST_VECT
-  0x00000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_ROM_BASE
+  0x00000000   |- - - - - - - - - - - - - - - -+- - CONFIG_SYS_NIOS_CPU_RST_VECT
+  0x00000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_ROM_BASE
 
 
 ===============================================================================
index 8e659f3dde915ad40d2365b1fe1af36a5ca59d6a..0bd68d9628b8a203729cb85dbd9b82846519e065 100644 (file)
@@ -87,12 +87,12 @@ Added files:
 3.1 Explanation on NEW definitions in include/configs/alaska8220.h
     CONFIG_MPC8220         MPC8220 specific
     CONFIG_ALASKA8220      Alaska board specific
-    CFG_MPC8220_CLKIN      Define Alaska Input Clock
+    CONFIG_SYS_MPC8220_CLKIN       Define Alaska Input Clock
     CONFIG_PSC_CONSOLE     Enable MPC8220 UART
     CONFIG_EXTUART_CONSOLE  Enable External 16552 UART
-    CFG_AMD_BOOT           To determine the u-boot is booted from AMD or Intel
-    CFG_MBAR               MBAR base address
-    CFG_DEFAULT_MBAR       Reset MBAR base address
+    CONFIG_SYS_AMD_BOOT            To determine the u-boot is booted from AMD or Intel
+    CONFIG_SYS_MBAR                MBAR base address
+    CONFIG_SYS_DEFAULT_MBAR        Reset MBAR base address
 
 3.2 Compilation
    export CROSS_COMPILE=cross-compile-prefix
index 884854d884ba3d43eaf3d73bb52f0f7ecbd71c07..0edd50ad22ccc8985529a6879c8ce96b1b9182a7 100644 (file)
@@ -35,17 +35,17 @@ Memory Map:
 
 Memory Map after relocation:
 
-    0x0000 0000                CFG_SDRAM_BASE
+    0x0000 0000                CONFIG_SYS_SDRAM_BASE
          :
     0x000F 9FFF
          :
          :
-    0x0100 0000                CFG_IMMR (Internal memory map base adress)
+    0x0100 0000                CONFIG_SYS_IMMR (Internal memory map base adress)
          :
     0x0130 7FFF
          :
          :
-    0x0200 0000                CFG_FLASH_BASE
+    0x0200 0000                CONFIG_SYS_FLASH_BASE
          :
     0x027C FFFF
          :
index 521fab75fd489123bc18865ffac89cc09af317b9..2be12998d312a4d6ebf7e312325ebf83b639c3e2 100644 (file)
@@ -20,25 +20,25 @@ CPU:        "standard_32"
        no Debug Core
        On Chip Instrumentation (OCI) enabled
 
-       U-Boot CFG:     CFG_NIOS_CPU_CLK             = 50000000
-                       CFG_NIOS_CPU_ICACHE          = 4096
-                       CFG_NIOS_CPU_DCACHE          = 4096
-                       CFG_NIOS_CPU_REG_NUMS        = 256
-                       CFG_NIOS_CPU_MUL             = 0
-                       CFG_NIOS_CPU_MSTEP           = 1
-                       CFG_NIOS_CPU_DBG_CORE        = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_CLK      = 50000000
+                       CONFIG_SYS_NIOS_CPU_ICACHE           = 4096
+                       CONFIG_SYS_NIOS_CPU_DCACHE           = 4096
+                       CONFIG_SYS_NIOS_CPU_REG_NUMS         = 256
+                       CONFIG_SYS_NIOS_CPU_MUL      = 0
+                       CONFIG_SYS_NIOS_CPU_MSTEP            = 1
+                       CONFIG_SYS_NIOS_CPU_DBG_CORE         = 0
 
 OCI:   (TODO)
 
 IRQ:    Nr.  | used by
        ------+--------------------------------------------------------
-        16   | TIMER0    |  CFG_NIOS_CPU_TIMER0_IRQ = 16
-        25   | UART0     |  CFG_NIOS_CPU_UART0_IRQ  = 25
-        30   | LAN91C111 |  CFG_NIOS_CPU_LAN0_IRQ   = 30
-        35   | PIO5      |  CFG_NIOS_CPU_PIO5_IRQ   = 35
-        40   | PIO0      |  CFG_NIOS_CPU_PIO0_IRQ   = 40
-        45   | ASMI      |  CFG_NIOS_CPU_ASMI0_IRQ  = 45
-        50   | TIMER1    |  CFG_NIOS_CPU_TIMER1_IRQ = 50
+        16   | TIMER0    |  CONFIG_SYS_NIOS_CPU_TIMER0_IRQ = 16
+        25   | UART0     |  CONFIG_SYS_NIOS_CPU_UART0_IRQ  = 25
+        30   | LAN91C111 |  CONFIG_SYS_NIOS_CPU_LAN0_IRQ   = 30
+        35   | PIO5      |  CONFIG_SYS_NIOS_CPU_PIO5_IRQ   = 35
+        40   | PIO0      |  CONFIG_SYS_NIOS_CPU_PIO0_IRQ   = 40
+        45   | ASMI      |  CONFIG_SYS_NIOS_CPU_ASMI0_IRQ  = 45
+        50   | TIMER1    |  CONFIG_SYS_NIOS_CPU_TIMER1_IRQ = 50
 
 MEMORY:         8 MByte Flash
         1 MByte SRAM
@@ -49,8 +49,8 @@ ASMI: (TODO) <-- ASMI part is 4M bits
 Timer: TIMER0: high priority programmable timer (IRQ16)
        TIMER1: low priority fixed timer for 10 ms @ 50 MHz (IRQ50)
 
-       U-Boot CFG:     CFG_NIOS_CPU_TICK_TIMER      = 1
-                       CFG_NIOS_CPU_USER_TIMER      = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_TICK_TIMER       = 1
+                       CONFIG_SYS_NIOS_CPU_USER_TIMER       = 0
 
 PIO:    Nr.  | description
        ------+--------------------------------------------------------
@@ -63,14 +63,14 @@ PIO:         Nr.  | description
         PIO6 | CFPOWER:    1 output to controll CF power supply
         PIO7 | CFATASEL:   1 output to controll CF ATA card select
 
-       U-Boot CFG:     CFG_NIOS_CPU_BUTTON_PIO      = 0
-                       CFG_NIOS_CPU_LCD_PIO         = 1
-                       CFG_NIOS_CPU_LED_PIO         = 2
-                       CFG_NIOS_CPU_SEVENSEG_PIO    = 3
-                       CFG_NIOS_CPU_RECONF_PIO      = 4
-                       CFG_NIOS_CPU_CFPRESENT_PIO   = 5
-                       CFG_NIOS_CPU_CFPOWER_PIO     = 6
-                       CFG_NIOS_CPU_CFATASEL_PIO    = 7
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_BUTTON_PIO       = 0
+                       CONFIG_SYS_NIOS_CPU_LCD_PIO          = 1
+                       CONFIG_SYS_NIOS_CPU_LED_PIO          = 2
+                       CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO    = 3
+                       CONFIG_SYS_NIOS_CPU_RECONF_PIO       = 4
+                       CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO   = 5
+                       CONFIG_SYS_NIOS_CPU_CFPOWER_PIO     = 6
+                       CONFIG_SYS_NIOS_CPU_CFATASEL_PIO    = 7
 
 UART:  UART0: fixed baudrate of 115200, fixed protocol 8N1,
               without handshake RTS/CTS (IRQ25)
@@ -91,10 +91,10 @@ IDE:        (TODO)
   0x02000000 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  SDRAM               |               :               |  > CFG_NIOS_CPU_SDRAM_SIZE
+  SDRAM               |               :               |  > CONFIG_SYS_NIOS_CPU_SDRAM_SIZE
               |               :               | |   = 0x01000000
               |               :               | /
-  0x01000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SDRAM_BASE
+  0x01000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SDRAM_BASE
               |                               |
               :              gap              :
               :                               :
@@ -110,7 +110,7 @@ IDE:        (TODO)
   ASMI i/f     :   and content :              :  > 0x________
   [5]         :   unknown)    :               : |
               |               |               | /
-  0x00920b00 ---32-----------16|15------------0-    CFG_NIOS_CPU_ASMI0
+  0x00920b00 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_ASMI0
               |                               |
               :              gap              :
               |                               |
@@ -120,7 +120,7 @@ IDE:        (TODO)
   IDE i/f      :   and content :              :  > 0x00000080
   [6]         :   unknown)    :               : |
               |               |               | /
-  0x00920a00 ---32-----------16|15------------0-    CFG_NIOS_CPU_IDE0
+  0x00920a00 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_IDE0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -136,7 +136,7 @@ IDE:        (TODO)
               |  control (1 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x009209e0 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER1
+  0x009209e0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER1
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO7        |                     (unused)  | |
@@ -144,7 +144,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x009209d0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO7
+  0x009209d0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO7
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO6        |                     (unused)  | |
@@ -152,7 +152,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x009209c0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO6
+  0x009209c0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO6
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO5        |  interruptmask (1 bit)  (rw)  | |
@@ -160,7 +160,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x009209b0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO5
+  0x009209b0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO5
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO4        |                     (unused)  | |
@@ -168,7 +168,7 @@ IDE:        (TODO)
               |  direction (1 bit)      (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (rw)  | /
-  0x009209a0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO4
+  0x009209a0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO4
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO3        |                     (unused)  | |
@@ -176,7 +176,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (16 bit)          (wo)  | /
-  0x00920990 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO3
+  0x00920990 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO3
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO2        |                     (unused)  | |
@@ -184,7 +184,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (8 bit)           (wo)  | /
-  0x00920980 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO2
+  0x00920980 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO2
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO1        |                     (unused)  | |
@@ -192,7 +192,7 @@ IDE:        (TODO)
               |  direction (11 bit)     (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (11 bit)          (rw)  | /
-  0x00920970 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO1
+  0x00920970 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO1
               |  edgecapture (4 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO0        |  interruptmask (4 bit)  (rw)  | |
@@ -200,7 +200,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (4 bit)           (ro)  | /
-  0x00920960 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO0
+  0x00920960 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -216,7 +216,7 @@ IDE:        (TODO)
               |  control (4 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x00920940 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER0
+  0x00920940 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER0
               |                               | \
               :              gap              :  > (space for UART1)
               |                               | /
@@ -236,28 +236,28 @@ IDE:      (TODO)
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x00920900 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART0
+  0x00920900 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART0
 
 - - - - - - - - - - -  on chip debugging  - - - - - - - - - - - - - - - - - - -
 
   0x00920900 -----------------------------------
               |                               | \
               :  (real size                   : |
-  OCI Debug    :   and content                :  > CFG_NIOS_CPU_OCI_SIZE
+  OCI Debug    :   and content                :  > CONFIG_SYS_NIOS_CPU_OCI_SIZE
               :   unknown)                    : |   = 0x00000100
               |                               | /
-  0x00920800 -----------------------------------    CFG_NIOS_CPU_OCI_BASE
+  0x00920800 -----------------------------------    CONFIG_SYS_NIOS_CPU_OCI_BASE
 
 - - - - - - - - - - -  on chip memory    - - - - - - - - - - -
 
   0x00920800 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  GERMS               |               :               |  > CFG_NIOS_CPU_ROM_SIZE
+  GERMS               |               :               |  > CONFIG_SYS_NIOS_CPU_ROM_SIZE
               |               :               | |   = 0x00000800
               |               :               | /
-  0x00920000   |- - - - - - - - - - - - - - - -+- - CFG_NIOS_CPU_RST_VECT
-  0x00920000 ---32-----------16|15------------0-    CFG_NIOS_CPU_ROM_BASE
+  0x00920000   |- - - - - - - - - - - - - - - -+- - CONFIG_SYS_NIOS_CPU_RST_VECT
+  0x00920000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_ROM_BASE
 
 - - - - - - - - - - -   external i/o     - - - - - - - - - - - - - - - - - - -
 
@@ -279,7 +279,7 @@ IDE:        (TODO)
               | +---------------------------+ | |
   0x00910300 --+--LAN91C111_REGISTERS_OFFSET---| |
               |              gap              | /
-  0x00910000 ---32-----------16|15------------0-    CFG_NIOS_CPU_LAN0_BASE
+  0x00910000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_LAN0_BASE
               |                               |
               :              gap              :
               :                               :
@@ -293,30 +293,30 @@ IDE:      (TODO)
   0x00900000 --+32-----------16|15------------0+
               |               :               | \ \
               |               :               | | |
-              |               :               | |  > CFG_NIOS_CPU_VEC_SIZE
+              |               :               | |  > CONFIG_SYS_NIOS_CPU_VEC_SIZE
               |               :               | | |   = 0x00000100
               |               :               | | /
-  0x008fff00   |- - - - - - - -:- - - - - - - -+-|- CFG_NIOS_CPU_VEC_BASE
-  0x008fff00   |- - - - - - - -:- - - - - - - -+-|- CFG_NIOS_CPU_STACK
+  0x008fff00   |- - - - - - - -:- - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_VEC_BASE
+  0x008fff00   |- - - - - - - -:- - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_STACK
               |               :               | | \
               |               :               | | |
               |               :               | |  > stack area
               |               :               | | |
               |               :               | | V
               |               :               | |
-  SRAM        |               :               |  > CFG_NIOS_CPU_SRAM_SIZE
+  SRAM        |               :               |  > CONFIG_SYS_NIOS_CPU_SRAM_SIZE
               |               :               | |   = 0x00100000
               |               :               | /
-  0x00800000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SRAM_BASE
+  0x00800000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SRAM_BASE
   0x00800000 ---8-------------4|3-------------0-
               |  sector 127                   | \
     + 0x7f0000 |- - - - - - - - - - - - - - - -| |
               |               :               | |
-  Flash               |-   -   -   -  :  -   -   -   -|  > CFG_NIOS_CPU_FLASH_SIZE
+  Flash               |-   -   -   -  :  -   -   -   -|  > CONFIG_SYS_NIOS_CPU_FLASH_SIZE
               |  sector 1     :               | |   = 0x00800000
     + 0x010000 |- - - - - - - - - - - - - - - -| |
               |  sector 0 (size = 0x10000)    | /
-  0x00000000 ---8-------------4|3-------------0-    CFG_NIOS_CPU_FLASH_BASE
+  0x00000000 ---8-------------4|3-------------0-    CONFIG_SYS_NIOS_CPU_FLASH_BASE
 
 
 ===============================================================================
index fcf8170d66607f49147b839438572b2e3cd70a3f..74e07a93d15a5b0405bed13dfe412bc9140eb37c 100644 (file)
@@ -18,29 +18,29 @@ CPU:        "LDK2"
        no Debug Core
        no On Chip Instrumentation (OCI)
 
-       U-Boot CFG:     CFG_NIOS_CPU_CLK             = 75000000
-                       CFG_NIOS_CPU_ICACHE          = (not present)
-                       CFG_NIOS_CPU_DCACHE          = (not present)
-                       CFG_NIOS_CPU_REG_NUMS        = 512
-                       CFG_NIOS_CPU_MUL             = 0
-                       CFG_NIOS_CPU_MSTEP           = 1
-                       CFG_NIOS_CPU_DBG_CORE        = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_CLK      = 75000000
+                       CONFIG_SYS_NIOS_CPU_ICACHE           = (not present)
+                       CONFIG_SYS_NIOS_CPU_DCACHE           = (not present)
+                       CONFIG_SYS_NIOS_CPU_REG_NUMS         = 512
+                       CONFIG_SYS_NIOS_CPU_MUL      = 0
+                       CONFIG_SYS_NIOS_CPU_MSTEP            = 1
+                       CONFIG_SYS_NIOS_CPU_DBG_CORE         = 0
 
 IRQ:    Nr.  | used by
        ------+--------------------------------------------------------
-        16   | TIMER0    |  CFG_NIOS_CPU_TIMER0_IRQ = 16
-        17   | UART0     |  CFG_NIOS_CPU_UART0_IRQ  = 17
-        18   | UART1     |  CFG_NIOS_CPU_UART1_IRQ  = 18
-        20   | LAN91C111 |  CFG_NIOS_CPU_LAN0_IRQ   = 20
-        25   | IDE0      |  CFG_NIOS_CPU_IDE0_IRQ   = 25
+        16   | TIMER0    |  CONFIG_SYS_NIOS_CPU_TIMER0_IRQ = 16
+        17   | UART0     |  CONFIG_SYS_NIOS_CPU_UART0_IRQ  = 17
+        18   | UART1     |  CONFIG_SYS_NIOS_CPU_UART1_IRQ  = 18
+        20   | LAN91C111 |  CONFIG_SYS_NIOS_CPU_LAN0_IRQ   = 20
+        25   | IDE0      |  CONFIG_SYS_NIOS_CPU_IDE0_IRQ   = 25
 
 MEMORY:         8 MByte Flash
        16 MByte SDRAM
 
 Timer: TIMER0: high priority programmable timer (IRQ16)
 
-       U-Boot CFG:     CFG_NIOS_CPU_TICK_TIMER      = 0
-                       CFG_NIOS_CPU_USER_TIMER      = (not present)
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_TICK_TIMER       = 0
+                       CONFIG_SYS_NIOS_CPU_USER_TIMER       = (not present)
 
 PIO:    Nr.  | description
        ------+--------------------------------------------------------
@@ -54,14 +54,14 @@ PIO:         Nr.  | description
              | CFPRESENT:  1 input for CF present event (IRQ35)
              | CFATASEL:   1 output to controll CF ATA card select
 
-       U-Boot CFG:     CFG_NIOS_CPU_BUTTON_PIO      = 1
-                       CFG_NIOS_CPU_LCD_PIO         = (not present)
-                       CFG_NIOS_CPU_LED_PIO         = (not present)
-                       CFG_NIOS_CPU_SEVENSEG_PIO    = (not present)
-                       CFG_NIOS_CPU_RECONF_PIO      = (not present)
-                       CFG_NIOS_CPU_CFPRESENT_PIO   = (not present)
-                       CFG_NIOS_CPU_CFPOWER_PIO     = 0
-                       CFG_NIOS_CPU_CFATASEL_PIO    = (not present)
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_BUTTON_PIO       = 1
+                       CONFIG_SYS_NIOS_CPU_LCD_PIO          = (not present)
+                       CONFIG_SYS_NIOS_CPU_LED_PIO          = (not present)
+                       CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO    = (not present)
+                       CONFIG_SYS_NIOS_CPU_RECONF_PIO       = (not present)
+                       CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO   = (not present)
+                       CONFIG_SYS_NIOS_CPU_CFPOWER_PIO     = 0
+                       CONFIG_SYS_NIOS_CPU_CFATASEL_PIO    = (not present)
 
 UART:  UART0: fixed baudrate of 115200, fixed protocol 8N2,
               without handshake RTS/CTS (IRQ17)
@@ -81,7 +81,7 @@ IDE:  (TODO)
 
 - - - - - - - - - - -   external memory   - - - - - - - - - - - - - - - - - - -
 
-  0x02000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_STACK
+  0x02000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_STACK
   0x02000000 --+32-----------16|15------------0+
               |               .               | \ \
               |               .               | | |
@@ -90,25 +90,25 @@ IDE:        (TODO)
               |               .               | | V
               |               .               | |
               |               .               | |
-  SDRAM               |               .               |  > CFG_NIOS_CPU_SDRAM_SIZE
+  SDRAM               |               .               |  > CONFIG_SYS_NIOS_CPU_SDRAM_SIZE
               |               .               | |   = 0x01000000
               |               .               | |
   0x01000100   |- - - - - - - - - - - - - - - -+-|-
               |               .               | | \
               |               .               | | |
-              |               .               | |  > CFG_NIOS_CPU_VEC_SIZE
+              |               .               | |  > CONFIG_SYS_NIOS_CPU_VEC_SIZE
               |               .               | | |   = 0x00000100
               |                               | / /
-  0x01000000   |- - - - - - - - - - - - - - - -+- - CFG_NIOS_CPU_VEC_BASE
-  0x01000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SDRAM_BASE
+  0x01000000   |- - - - - - - - - - - - - - - -+- - CONFIG_SYS_NIOS_CPU_VEC_BASE
+  0x01000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SDRAM_BASE
               |  sector 127                   | \
     + 0x7f0000 |- - - - - - - - - - - - - - - -| |
               |               :               | |
-  Flash               |-   -   -   -  :  -   -   -   -|  > CFG_NIOS_CPU_FLASH_SIZE
+  Flash               |-   -   -   -  :  -   -   -   -|  > CONFIG_SYS_NIOS_CPU_FLASH_SIZE
               |  sector 1     :               | |   = 0x00800000
     + 0x010000 |- - - - - - - - - - - - - - - -| |
               |  sector 0 (size = 0x10000)    | /
-  0x00800000 ---8-------------4|3-------------0-    CFG_NIOS_CPU_FLASH_BASE
+  0x00800000 ---8-------------4|3-------------0-    CONFIG_SYS_NIOS_CPU_FLASH_BASE
               |                               |
               :              gap              :
               :                               :
@@ -136,7 +136,7 @@ IDE:        (TODO)
               | +---------------------------+ | |
   0x00010300 --+--LAN91C111_REGISTERS_OFFSET---| |
               |              gap              | /
-  0x00010000 ---32-----------16|15------------0-    CFG_NIOS_CPU_LAN0_BASE
+  0x00010000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_LAN0_BASE
               |                               |
               :              gap              :
               :                               :
@@ -152,7 +152,7 @@ IDE:        (TODO)
   IDE i/f      :   and content :              :  > 0x00000080
   [5]         :   unknown)    :               : |
               |               |               | /
-  0x00000900 ---32-----------16|15------------0-    CFG_NIOS_CPU_IDE0
+  0x00000900 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_IDE0
               |                               | \
               :              gap              :  > (space for PIO4..7)
               |                               | /
@@ -172,7 +172,7 @@ IDE:        (TODO)
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x000008a0 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART1
+  0x000008a0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART1
               |                               | \
               :              gap              :  > (space for PIO2..3)
               |                               | /
@@ -184,7 +184,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (4 bit)           (ro)  | /
-  0x00000870 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO1
+  0x00000870 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO1
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO0        |                     (unused)  | |
@@ -192,7 +192,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x00000860 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO0
+  0x00000860 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -208,7 +208,7 @@ IDE:        (TODO)
               |  control (4 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x00000840 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER0
+  0x00000840 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER0
               |                               | \
               :              gap              :  > (space for UART2)
               |                               | /
@@ -228,18 +228,18 @@ IDE:      (TODO)
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x00000800 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART0
+  0x00000800 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART0
 
 - - - - - - - - - - -  on chip memory 1          - - - - - - - - - - -
 
   0x00000800 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  GERMS               |               :               |  > CFG_NIOS_CPU_ROM_SIZE
+  GERMS               |               :               |  > CONFIG_SYS_NIOS_CPU_ROM_SIZE
               |               :               | |   = 0x00000800
               |               :               | /
-  0x00000000   |- - - - - - - - - - - - - - - -+- - CFG_NIOS_CPU_RST_VECT
-  0x00000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_ROM_BASE
+  0x00000000   |- - - - - - - - - - - - - - - -+- - CONFIG_SYS_NIOS_CPU_RST_VECT
+  0x00000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_ROM_BASE
 
 ===============================================================================
        F L A S H   M E M O R Y   A L L O C A T I O N
index d649eb37938e815d64c411af7ae17886290dcfa3..622b2b9c83781db45459956fe3a0c097414e56fc 100644 (file)
@@ -19,24 +19,24 @@ CPU:        "standard_32"
        no Debug Core
        On Chip Instrumentation (OCI) enabled
 
-       U-Boot CFG:     CFG_NIOS_CPU_CLK             = 50000000
-                       CFG_NIOS_CPU_ICACHE          = 4096
-                       CFG_NIOS_CPU_DCACHE          = 4096
-                       CFG_NIOS_CPU_REG_NUMS        = 256
-                       CFG_NIOS_CPU_MUL             = 0
-                       CFG_NIOS_CPU_MSTEP           = 1
-                       CFG_NIOS_CPU_DBG_CORE        = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_CLK      = 50000000
+                       CONFIG_SYS_NIOS_CPU_ICACHE           = 4096
+                       CONFIG_SYS_NIOS_CPU_DCACHE           = 4096
+                       CONFIG_SYS_NIOS_CPU_REG_NUMS         = 256
+                       CONFIG_SYS_NIOS_CPU_MUL      = 0
+                       CONFIG_SYS_NIOS_CPU_MSTEP            = 1
+                       CONFIG_SYS_NIOS_CPU_DBG_CORE         = 0
 
 OCI:   (TODO)
 
 IRQ:    Nr.  | used by
        ------+--------------------------------------------------------
-        16   | TIMER0    |  CFG_NIOS_CPU_TIMER0_IRQ = 16
-        25   | UART0     |  CFG_NIOS_CPU_UART0_IRQ  = 25
-        30   | LAN91C111 |  CFG_NIOS_CPU_LAN0_IRQ   = 30
-        35   | PIO5      |  CFG_NIOS_CPU_PIO5_IRQ   = 35
-        40   | PIO0      |  CFG_NIOS_CPU_PIO0_IRQ   = 40
-        50   | TIMER1    |  CFG_NIOS_CPU_TIMER1_IRQ = 50
+        16   | TIMER0    |  CONFIG_SYS_NIOS_CPU_TIMER0_IRQ = 16
+        25   | UART0     |  CONFIG_SYS_NIOS_CPU_UART0_IRQ  = 25
+        30   | LAN91C111 |  CONFIG_SYS_NIOS_CPU_LAN0_IRQ   = 30
+        35   | PIO5      |  CONFIG_SYS_NIOS_CPU_PIO5_IRQ   = 35
+        40   | PIO0      |  CONFIG_SYS_NIOS_CPU_PIO0_IRQ   = 40
+        50   | TIMER1    |  CONFIG_SYS_NIOS_CPU_TIMER1_IRQ = 50
 
 MEMORY:         8 MByte Flash
         1 MByte SRAM
@@ -45,8 +45,8 @@ MEMORY:        8 MByte Flash
 Timer: TIMER0: high priority programmable timer (IRQ16)
        TIMER1: low priority fixed timer for 10 ms @ 50 MHz (IRQ50)
 
-       U-Boot CFG:     CFG_NIOS_CPU_TICK_TIMER      = 1
-                       CFG_NIOS_CPU_USER_TIMER      = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_TICK_TIMER       = 1
+                       CONFIG_SYS_NIOS_CPU_USER_TIMER       = 0
 
 PIO:    Nr.  | description
        ------+--------------------------------------------------------
@@ -59,14 +59,14 @@ PIO:         Nr.  | description
         PIO6 | CFPOWER:    1 output to controll CF power supply
         PIO7 | CFATASEL:   1 output to controll CF ATA card select
 
-       U-Boot CFG:     CFG_NIOS_CPU_BUTTON_PIO      = 0
-                       CFG_NIOS_CPU_LCD_PIO         = 1
-                       CFG_NIOS_CPU_LED_PIO         = 2
-                       CFG_NIOS_CPU_SEVENSEG_PIO    = 3
-                       CFG_NIOS_CPU_RECONF_PIO      = 4
-                       CFG_NIOS_CPU_CFPRESENT_PIO   = 5
-                       CFG_NIOS_CPU_CFPOWER_PIO     = 6
-                       CFG_NIOS_CPU_CFATASEL_PIO    = 7
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_BUTTON_PIO       = 0
+                       CONFIG_SYS_NIOS_CPU_LCD_PIO          = 1
+                       CONFIG_SYS_NIOS_CPU_LED_PIO          = 2
+                       CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO    = 3
+                       CONFIG_SYS_NIOS_CPU_RECONF_PIO       = 4
+                       CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO   = 5
+                       CONFIG_SYS_NIOS_CPU_CFPOWER_PIO     = 6
+                       CONFIG_SYS_NIOS_CPU_CFATASEL_PIO    = 7
 
 UART:  UART0: fixed baudrate of 115200, fixed protocol 8N1,
               without handshake RTS/CTS (IRQ25)
@@ -87,10 +87,10 @@ IDE:        (TODO)
   0x02000000 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  SDRAM               |               :               |  > CFG_NIOS_CPU_SDRAM_SIZE
+  SDRAM               |               :               |  > CONFIG_SYS_NIOS_CPU_SDRAM_SIZE
               |               :               | |   = 0x01000000
               |               :               | /
-  0x01000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SDRAM_BASE
+  0x01000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SDRAM_BASE
               |                               |
               :              gap              :
               :                               :
@@ -106,7 +106,7 @@ IDE:        (TODO)
   IDE i/f      :   and content :              :  > 0x00000080
   [5]         :   unknown)    :               : |
               |               |               | /
-  0x00920a00 ---32-----------16|15------------0-    CFG_NIOS_CPU_IDE0
+  0x00920a00 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_IDE0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -122,7 +122,7 @@ IDE:        (TODO)
               |  control (1 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x009209e0 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER1
+  0x009209e0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER1
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO7        |                     (unused)  | |
@@ -130,7 +130,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x009209d0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO7
+  0x009209d0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO7
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO6        |                     (unused)  | |
@@ -138,7 +138,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x009209c0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO6
+  0x009209c0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO6
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO5        |  interruptmask (1 bit)  (rw)  | |
@@ -146,7 +146,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x009209b0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO5
+  0x009209b0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO5
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO4        |                     (unused)  | |
@@ -154,7 +154,7 @@ IDE:        (TODO)
               |  direction (1 bit)      (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (rw)  | /
-  0x009209a0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO4
+  0x009209a0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO4
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO3        |                     (unused)  | |
@@ -162,7 +162,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (16 bit)          (wo)  | /
-  0x00920990 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO3
+  0x00920990 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO3
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO2        |                     (unused)  | |
@@ -170,7 +170,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (8 bit)           (wo)  | /
-  0x00920980 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO2
+  0x00920980 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO2
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO1        |                     (unused)  | |
@@ -178,7 +178,7 @@ IDE:        (TODO)
               |  direction (11 bit)     (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (11 bit)          (rw)  | /
-  0x00920970 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO1
+  0x00920970 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO1
               |  edgecapture (4 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO0        |  interruptmask (4 bit)  (rw)  | |
@@ -186,7 +186,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (4 bit)           (ro)  | /
-  0x00920960 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO0
+  0x00920960 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -202,7 +202,7 @@ IDE:        (TODO)
               |  control (4 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x00920940 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER0
+  0x00920940 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER0
               |                               | \
               :              gap              :  > (space for UART1)
               |                               | /
@@ -222,28 +222,28 @@ IDE:      (TODO)
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x00920900 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART0
+  0x00920900 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART0
 
 - - - - - - - - - - -  on chip debugging  - - - - - - - - - - - - - - - - - - -
 
   0x00920900 -----------------------------------
               |                               | \
               :  (real size                   : |
-  OCI Debug    :   and content                :  > CFG_NIOS_CPU_OCI_SIZE
+  OCI Debug    :   and content                :  > CONFIG_SYS_NIOS_CPU_OCI_SIZE
               :   unknown)                    : |   = 0x00000100
               |                               | /
-  0x00920800 -----------------------------------    CFG_NIOS_CPU_OCI_BASE
+  0x00920800 -----------------------------------    CONFIG_SYS_NIOS_CPU_OCI_BASE
 
 - - - - - - - - - - -  on chip memory 2          - - - - - - - - - - -
 
   0x00920800 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  GERMS               |               :               |  > CFG_NIOS_CPU_ROM_SIZE
+  GERMS               |               :               |  > CONFIG_SYS_NIOS_CPU_ROM_SIZE
               |               :               | |   = 0x00000800
               |               :               | /
-  0x00920000   |- - - - - - - - - - - - - - - -+- - CFG_NIOS_CPU_RST_VECT
-  0x00920000 ---32-----------16|15------------0-    CFG_NIOS_CPU_ROM_BASE
+  0x00920000   |- - - - - - - - - - - - - - - -+- - CONFIG_SYS_NIOS_CPU_RST_VECT
+  0x00920000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_ROM_BASE
 
 - - - - - - - - - - -   external i/o     - - - - - - - - - - - - - - - - - - -
 
@@ -265,17 +265,17 @@ IDE:      (TODO)
               | +---------------------------+ | |
   0x00910300 --+--LAN91C111_REGISTERS_OFFSET---| |
               |              gap              | /
-  0x00910000 ---32-----------16|15------------0-    CFG_NIOS_CPU_LAN0_BASE
+  0x00910000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_LAN0_BASE
 
 - - - - - - - - - - -  on chip memory 1          - - - - - - - - - - -
 
   0x00910000 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  onchip RAM   |              :               |  > CFG_NIOS_CPU_RAM_SIZE
+  onchip RAM   |              :               |  > CONFIG_SYS_NIOS_CPU_RAM_SIZE
               |               :               | |   = 0x00010000
               |               :               | /
-  0x00900000 ---32-----------16|15------------0-    CFG_NIOS_CPU_RAM_BASE
+  0x00900000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_RAM_BASE
 
 - - - - - - - - - - -  external memory 1  - - - - - - - - - - - - - - - - - - -
 
@@ -283,30 +283,30 @@ IDE:      (TODO)
   0x00900000 --+32-----------16|15------------0+
               |               .               | \ \
               |               .               | | |
-              |               .               | |  > CFG_NIOS_CPU_VEC_SIZE
+              |               .               | |  > CONFIG_SYS_NIOS_CPU_VEC_SIZE
               |               .               | | |   = 0x00000100
               |               .               | | /
-  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CFG_NIOS_CPU_VEC_BASE
-  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CFG_NIOS_CPU_STACK
+  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_VEC_BASE
+  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_STACK
               |               .               | | \
               |               .               | | |
               |               .               | |  > stack area
               |               .               | | |
               |               .               | | V
               |               .               | |
-  SRAM        |               .               |  > CFG_NIOS_CPU_SRAM_SIZE
+  SRAM        |               .               |  > CONFIG_SYS_NIOS_CPU_SRAM_SIZE
               |               .               | |   = 0x00100000
               |                               | /
-  0x00800000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SRAM_BASE
+  0x00800000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SRAM_BASE
   0x00800000 ---8-------------4|3-------------0-
               |  sector 127                   | \
     + 0x7f0000 |- - - - - - - - - - - - - - - -| |
               |               :               | |
-  Flash               |-   -   -   -  :  -   -   -   -|  > CFG_NIOS_CPU_FLASH_SIZE
+  Flash               |-   -   -   -  :  -   -   -   -|  > CONFIG_SYS_NIOS_CPU_FLASH_SIZE
               |  sector 1     :               | |   = 0x00800000
     + 0x010000 |- - - - - - - - - - - - - - - -| |
               |  sector 0 (size = 0x10000)    | /
-  0x00000000 ---8-------------4|3-------------0-    CFG_NIOS_CPU_FLASH_BASE
+  0x00000000 ---8-------------4|3-------------0-    CONFIG_SYS_NIOS_CPU_FLASH_BASE
 
 
 ===============================================================================
index 08c8244450b839cd5ef49bdb0d714a729beb0efe..9a0ea060c751bd0f0967753f698b51b105dc18a6 100644 (file)
@@ -19,24 +19,24 @@ CPU:        "standard_32"
        no Debug Core
        On Chip Instrumentation (OCI) enabled
 
-       U-Boot CFG:     CFG_NIOS_CPU_CLK             = 50000000
-                       CFG_NIOS_CPU_ICACHE          = 4096
-                       CFG_NIOS_CPU_DCACHE          = 4096
-                       CFG_NIOS_CPU_REG_NUMS        = 256
-                       CFG_NIOS_CPU_MUL             = 0
-                       CFG_NIOS_CPU_MSTEP           = 1
-                       CFG_NIOS_CPU_DBG_CORE        = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_CLK      = 50000000
+                       CONFIG_SYS_NIOS_CPU_ICACHE           = 4096
+                       CONFIG_SYS_NIOS_CPU_DCACHE           = 4096
+                       CONFIG_SYS_NIOS_CPU_REG_NUMS         = 256
+                       CONFIG_SYS_NIOS_CPU_MUL      = 0
+                       CONFIG_SYS_NIOS_CPU_MSTEP            = 1
+                       CONFIG_SYS_NIOS_CPU_DBG_CORE         = 0
 
 OCI:   (TODO)
 
 IRQ:    Nr.  | used by
        ------+--------------------------------------------------------
-        16   | TIMER0    |  CFG_NIOS_CPU_TIMER0_IRQ = 16
-        25   | UART0     |  CFG_NIOS_CPU_UART0_IRQ  = 25
-        30   | LAN91C111 |  CFG_NIOS_CPU_LAN0_IRQ   = 30
-        35   | PIO5      |  CFG_NIOS_CPU_PIO5_IRQ   = 35
-        40   | PIO0      |  CFG_NIOS_CPU_PIO0_IRQ   = 40
-        50   | TIMER1    |  CFG_NIOS_CPU_TIMER1_IRQ = 50
+        16   | TIMER0    |  CONFIG_SYS_NIOS_CPU_TIMER0_IRQ = 16
+        25   | UART0     |  CONFIG_SYS_NIOS_CPU_UART0_IRQ  = 25
+        30   | LAN91C111 |  CONFIG_SYS_NIOS_CPU_LAN0_IRQ   = 30
+        35   | PIO5      |  CONFIG_SYS_NIOS_CPU_PIO5_IRQ   = 35
+        40   | PIO0      |  CONFIG_SYS_NIOS_CPU_PIO0_IRQ   = 40
+        50   | TIMER1    |  CONFIG_SYS_NIOS_CPU_TIMER1_IRQ = 50
 
 MEMORY:         8 MByte Flash
         1 MByte SRAM
@@ -45,8 +45,8 @@ MEMORY:        8 MByte Flash
 Timer: TIMER0: high priority programmable timer (IRQ16)
        TIMER1: low priority fixed timer for 10 ms @ 50 MHz (IRQ50)
 
-       U-Boot CFG:     CFG_NIOS_CPU_TICK_TIMER      = 1
-                       CFG_NIOS_CPU_USER_TIMER      = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_TICK_TIMER       = 1
+                       CONFIG_SYS_NIOS_CPU_USER_TIMER       = 0
 
 PIO:    Nr.  | description
        ------+--------------------------------------------------------
@@ -59,14 +59,14 @@ PIO:         Nr.  | description
         PIO6 | CFPOWER:    1 output to controll CF power supply
         PIO7 | CFATASEL:   1 output to controll CF ATA card select
 
-       U-Boot CFG:     CFG_NIOS_CPU_BUTTON_PIO      = 0
-                       CFG_NIOS_CPU_LCD_PIO         = 1
-                       CFG_NIOS_CPU_LED_PIO         = 2
-                       CFG_NIOS_CPU_SEVENSEG_PIO    = 3
-                       CFG_NIOS_CPU_RECONF_PIO      = 4
-                       CFG_NIOS_CPU_CFPRESENT_PIO   = 5
-                       CFG_NIOS_CPU_CFPOWER_PIO     = 6
-                       CFG_NIOS_CPU_CFATASEL_PIO    = 7
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_BUTTON_PIO       = 0
+                       CONFIG_SYS_NIOS_CPU_LCD_PIO          = 1
+                       CONFIG_SYS_NIOS_CPU_LED_PIO          = 2
+                       CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO    = 3
+                       CONFIG_SYS_NIOS_CPU_RECONF_PIO       = 4
+                       CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO   = 5
+                       CONFIG_SYS_NIOS_CPU_CFPOWER_PIO     = 6
+                       CONFIG_SYS_NIOS_CPU_CFATASEL_PIO    = 7
 
 UART:  UART0: fixed baudrate of 115200, fixed protocol 8N1,
               without handshake RTS/CTS (IRQ25)
@@ -87,10 +87,10 @@ IDE:        (TODO)
   0x02000000 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  SDRAM               |               :               |  > CFG_NIOS_CPU_SRAM_SIZE
+  SDRAM               |               :               |  > CONFIG_SYS_NIOS_CPU_SRAM_SIZE
               |               :               | |   = 0x01000000
               |               :               | /
-  0x01000000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SRAM_BASE
+  0x01000000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SRAM_BASE
               |                               |
               :              gap              :
               :                               :
@@ -106,7 +106,7 @@ IDE:        (TODO)
   IDE i/f      :   and content :              :  > 0x00000080
   [5]         :   unknown)    :               : |
               |               |               | /
-  0x00920a00 ---32-----------16|15------------0-    CFG_NIOS_CPU_IDE0
+  0x00920a00 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_IDE0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -122,7 +122,7 @@ IDE:        (TODO)
               |  control (1 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x009209e0 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER1
+  0x009209e0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER1
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO7        |                     (unused)  | |
@@ -130,7 +130,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x009209d0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO7
+  0x009209d0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO7
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO6        |                     (unused)  | |
@@ -138,7 +138,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (wo)  | /
-  0x009209c0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO6
+  0x009209c0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO6
               |  edgecapture (1 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO5        |  interruptmask (1 bit)  (rw)  | |
@@ -146,7 +146,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (ro)  | /
-  0x009209b0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO5
+  0x009209b0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO5
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO4        |                     (unused)  | |
@@ -154,7 +154,7 @@ IDE:        (TODO)
               |  direction (1 bit)      (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (1 bit)           (rw)  | /
-  0x009209a0 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO4
+  0x009209a0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO4
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO3        |                     (unused)  | |
@@ -162,7 +162,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (16 bit)          (wo)  | /
-  0x00920990 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO3
+  0x00920990 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO3
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO2        |                     (unused)  | |
@@ -170,7 +170,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (8 bit)           (wo)  | /
-  0x00920980 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO2
+  0x00920980 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO2
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO1        |                     (unused)  | |
@@ -178,7 +178,7 @@ IDE:        (TODO)
               |  direction (11 bit)     (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (11 bit)          (rw)  | /
-  0x00920970 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO1
+  0x00920970 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO1
               |  edgecapture (4 bit)    (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO0        |  interruptmask (4 bit)  (rw)  | |
@@ -186,7 +186,7 @@ IDE:        (TODO)
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (4 bit)           (ro)  | /
-  0x00920960 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO0
+  0x00920960 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -202,7 +202,7 @@ IDE:        (TODO)
               |  control (4 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x00920940 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER0
+  0x00920940 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER0
               |                               | \
               :              gap              :  > (space for UART1)
               |                               | /
@@ -222,28 +222,28 @@ IDE:      (TODO)
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x00920900 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART0
+  0x00920900 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART0
 
 - - - - - - - - - - -  on chip debugging  - - - - - - - - - - - - - - - - - - -
 
   0x00920900 -----------------------------------
               |                               | \
               :  (real size                   : |
-  OCI Debug    :   and content                :  > CFG_NIOS_CPU_OCI_SIZE
+  OCI Debug    :   and content                :  > CONFIG_SYS_NIOS_CPU_OCI_SIZE
               :   unknown)                    : |   = 0x00000100
               |                               | /
-  0x00920800 -----------------------------------    CFG_NIOS_CPU_OCI_BASE
+  0x00920800 -----------------------------------    CONFIG_SYS_NIOS_CPU_OCI_BASE
 
 - - - - - - - - - - -  on chip memory 2          - - - - - - - - - - -
 
   0x00920800 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  GERMS               |               :               |  > CFG_NIOS_CPU_ROM_SIZE
+  GERMS               |               :               |  > CONFIG_SYS_NIOS_CPU_ROM_SIZE
               |               :               | |   = 0x00000800
               |               :               | /
-  0x00920000   |- - - - - - - - - - - - - - - -+- - CFG_NIOS_CPU_RST_VECT
-  0x00920000 ---32-----------16|15------------0-    CFG_NIOS_CPU_ROM_BASE
+  0x00920000   |- - - - - - - - - - - - - - - -+- - CONFIG_SYS_NIOS_CPU_RST_VECT
+  0x00920000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_ROM_BASE
 
 - - - - - - - - - - -   external i/o     - - - - - - - - - - - - - - - - - - -
 
@@ -265,17 +265,17 @@ IDE:      (TODO)
               | +---------------------------+ | |
   0x00910300 --+--LAN91C111_REGISTERS_OFFSET---| |
               |              gap              | /
-  0x00910000 ---32-----------16|15------------0-    CFG_NIOS_CPU_LAN0_BASE
+  0x00910000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_LAN0_BASE
 
 - - - - - - - - - - -  on chip memory 1          - - - - - - - - - - -
 
   0x00910000 ---32-----------16|15------------0-
               |               :               | \
               |               :               | |
-  onchip RAM   |              :               |  > CFG_NIOS_CPU_RAM_SIZE
+  onchip RAM   |              :               |  > CONFIG_SYS_NIOS_CPU_RAM_SIZE
               |               :               | |   = 0x00010000
               |               :               | /
-  0x00900000 ---32-----------16|15------------0-    CFG_NIOS_CPU_RAM_BASE
+  0x00900000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_RAM_BASE
 
 - - - - - - - - - - -  external memory 1  - - - - - - - - - - - - - - - - - - -
 
@@ -283,30 +283,30 @@ IDE:      (TODO)
   0x00900000 --+32-----------16|15------------0+
               |               .               | \ \
               |               .               | | |
-              |               .               | |  > CFG_NIOS_CPU_VEC_SIZE
+              |               .               | |  > CONFIG_SYS_NIOS_CPU_VEC_SIZE
               |               .               | | |   = 0x00000100
               |               .               | | /
-  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CFG_NIOS_CPU_VEC_BASE
-  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CFG_NIOS_CPU_STACK
+  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_VEC_BASE
+  0x008fff00   |- - - - - - - - - - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_STACK
               |               .               | | \
               |               .               | | |
               |               .               | |  > stack area
               |               .               | | |
               |               .               | | V
               |               .               | |
-  SRAM        |               .               |  > CFG_NIOS_CPU_SRAM_SIZE
+  SRAM        |               .               |  > CONFIG_SYS_NIOS_CPU_SRAM_SIZE
               |               .               | |   = 0x00100000
               |                               | /
-  0x00800000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SRAM_BASE
+  0x00800000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SRAM_BASE
   0x00800000 ---8-------------4|3-------------0-
               |  sector 127                   | \
     + 0x7f0000 |- - - - - - - - - - - - - - - -| |
               |               :               | |
-  Flash               |-   -   -   -  :  -   -   -   -|  > CFG_NIOS_CPU_FLASH_SIZE
+  Flash               |-   -   -   -  :  -   -   -   -|  > CONFIG_SYS_NIOS_CPU_FLASH_SIZE
               |  sector 1     :               | |   = 0x00800000
     + 0x010000 |- - - - - - - - - - - - - - - -| |
               |  sector 0 (size = 0x10000)    | /
-  0x00000000 ---8-------------4|3-------------0-    CFG_NIOS_CPU_FLASH_BASE
+  0x00000000 ---8-------------4|3-------------0-    CONFIG_SYS_NIOS_CPU_FLASH_BASE
 
 
 ===============================================================================
index 7b5d4d4810afb77e4a4c1d5905e4702311e62684..fc2d2a38749db721aa3dc3664a46e1302335d435 100644 (file)
@@ -15,20 +15,20 @@ CPU:        "standard_32"
        no Debug Core
        no On Chip Instrumentation (OCI) enabled
 
-       U-Boot CFG:     CFG_NIOS_CPU_CLK             = 50000000
-                       CFG_NIOS_CPU_ICACHE          = 0
-                       CFG_NIOS_CPU_DCACHE          = 0
-                       CFG_NIOS_CPU_REG_NUMS        = 256
-                       CFG_NIOS_CPU_MUL             = 0
-                       CFG_NIOS_CPU_MSTEP           = 1
-                       CFG_NIOS_CPU_DBG_CORE        = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_CLK      = 50000000
+                       CONFIG_SYS_NIOS_CPU_ICACHE           = 0
+                       CONFIG_SYS_NIOS_CPU_DCACHE           = 0
+                       CONFIG_SYS_NIOS_CPU_REG_NUMS         = 256
+                       CONFIG_SYS_NIOS_CPU_MUL      = 0
+                       CONFIG_SYS_NIOS_CPU_MSTEP            = 1
+                       CONFIG_SYS_NIOS_CPU_DBG_CORE         = 0
 
 IRQ:    Nr.  | used by
        ------+--------------------------------------------------------
-        25   | TIMER0    |  CFG_NIOS_CPU_TIMER0_IRQ = 25
-        26   | UART0     |  CFG_NIOS_CPU_UART0_IRQ  = 26
-        27   | PIO2      |  CFG_NIOS_CPU_PIO2_IRQ   = 27
-        28   | UART1     |  CFG_NIOS_CPU_UART1_IRQ  = 28    (debug)
+        25   | TIMER0    |  CONFIG_SYS_NIOS_CPU_TIMER0_IRQ = 25
+        26   | UART0     |  CONFIG_SYS_NIOS_CPU_UART0_IRQ  = 26
+        27   | PIO2      |  CONFIG_SYS_NIOS_CPU_PIO2_IRQ   = 27
+        28   | UART1     |  CONFIG_SYS_NIOS_CPU_UART1_IRQ  = 28    (debug)
 
 MEMORY:          1 MByte Flash
        256 KByte SRAM
@@ -36,7 +36,7 @@ MEMORY:         1 MByte Flash
 
 Timer: TIMER0: high priority programmable timer (IRQ25)
 
-       U-Boot CFG:     CFG_NIOS_CPU_TICK_TIMER      = 0
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_TICK_TIMER       = 0
 
 PIO:    Nr.  | description
        ------+--------------------------------------------------------
@@ -45,10 +45,10 @@ PIO:         Nr.  | description
         PIO2 | BUTTON:     4 inputs for user push buttons (IRQ27)
         PIO3 | LCD:       11 in/outputs for ASCII LCD
 
-       U-Boot CFG:     CFG_NIOS_CPU_SEVENSEG_PIO    = 0
-                       CFG_NIOS_CPU_LED_PIO         = 1
-                       CFG_NIOS_CPU_BUTTON_PIO      = 2
-                       CFG_NIOS_CPU_LCD_PIO         = 3
+       U-Boot CFG:     CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO    = 0
+                       CONFIG_SYS_NIOS_CPU_LED_PIO          = 1
+                       CONFIG_SYS_NIOS_CPU_BUTTON_PIO       = 2
+                       CONFIG_SYS_NIOS_CPU_LCD_PIO          = 3
 
 UART:  UART0: fixed baudrate of 115200, fixed protocol 8N2,
               without handshake RTS/CTS (IRQ26)
@@ -70,7 +70,7 @@ UART: UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |  sector 5     :               | |
     + 0x020000 |-   -  -   -  -  -   -   -   -| |
               |  sector 4 (size = 0x10000)    | |
-    + 0x010000 |- - - - - - - - - - - - - - - -|  > CFG_NIOS_CPU_FLASH_SIZE
+    + 0x010000 |- - - - - - - - - - - - - - - -|  > CONFIG_SYS_NIOS_CPU_FLASH_SIZE
               |  sector 3 (size = 0x08000)    | |   = 0x00100000
     + 0x008000 |- - - - - - - - - - - - - - - -| |
               |  sector 2 (size = 0x02000)    | |
@@ -78,7 +78,7 @@ UART: UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |  sector 1 (size = 0x02000)    | |
     + 0x004000 |- - - - - - - - - - - - - - - -| |
               |  sector 0 (size = 0x04000)    | /
-  0x00100000 ---15------------8|7-------------0-    CFG_NIOS_CPU_FLASH_BASE
+  0x00100000 ---15------------8|7-------------0-    CONFIG_SYS_NIOS_CPU_FLASH_BASE
               |                               |
               :              gap              :
               |                               |
@@ -86,21 +86,21 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
   0x00080000 --+32-----------16|15------------0+
               |               .               | \ \
               |               .               | | |
-              |               .               | |  > CFG_NIOS_CPU_VEC_SIZE
+              |               .               | |  > CONFIG_SYS_NIOS_CPU_VEC_SIZE
               |               .               | | |   = 0x00000100
               |               .               | | /
-  0x0007ff00   |- - - - - - - - - - - - - - - -+-|- CFG_NIOS_CPU_VEC_BASE
-  0x0007ff00   |- - - - - - - - - - - - - - - -+-|- CFG_NIOS_CPU_STACK
+  0x0007ff00   |- - - - - - - - - - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_VEC_BASE
+  0x0007ff00   |- - - - - - - - - - - - - - - -+-|- CONFIG_SYS_NIOS_CPU_STACK
               |               .               | | \
               |               .               | | |
               |               .               | |  > stack area
               |               .               | | |
               |               .               | | V
               |               .               | |
-  SRAM        |               .               |  > CFG_NIOS_CPU_SRAM_SIZE
+  SRAM        |               .               |  > CONFIG_SYS_NIOS_CPU_SRAM_SIZE
               |               .               | |   = 0x00040000
               |                               | /
-  0x00040000 ---32-----------16|15------------0-    CFG_NIOS_CPU_SRAM_BASE
+  0x00040000 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_SRAM_BASE
               |                               |
               :              gap              :
               :                               :
@@ -126,7 +126,7 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x000004c0 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART1
+  0x000004c0 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART1
               |                               |
               :              gap              :
               |                               |
@@ -138,7 +138,7 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |  direction (11 bit)     (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (11 bit)          (rw)  | /
-  0x00000480 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO3
+  0x00000480 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO3
               |  edgecapture (12 bit)   (rw)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO2        |  interruptmask (12 bit) (rw)  | |
@@ -146,7 +146,7 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (12 bit)          (ro)  | /
-  0x00000470 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO2
+  0x00000470 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO2
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO1        |                     (unused)  | |
@@ -154,7 +154,7 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |  direction (2 bit)      (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (2 bit)           (rw)  | /
-  0x00000460 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO1
+  0x00000460 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO1
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -170,7 +170,7 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |  control (4 bit)        (rw)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  status (2 bit)         (rw)  | /
-  0x00000440 ---32-----------16|15------------0-    CFG_NIOS_CPU_TIMER0
+  0x00000440 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_TIMER0
               |                     (unused)  | \
        + 0x0c |- - - - - - - - - - - - - - - -| |
   PIO0        |                     (unused)  | |
@@ -178,7 +178,7 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |                     (unused)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  data (16 bit)          (wo)  | /
-  0x00000420 ---32-----------16|15------------0-    CFG_NIOS_CPU_PIO0
+  0x00000420 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_PIO0
               |                     (unused)  | \
        + 0x1c |- - - - - - - - - - - - - - - -| |
               |                     (unused)  | |
@@ -194,7 +194,7 @@ UART:       UART0: fixed baudrate of 115200, fixed protocol 8N2,
               |  txdata (8 bit)         (wo)  | |
        + 0x04 |- - - - - - - - - - - - - - - -| |
               |  rxdata (8 bit)         (ro)  | /
-  0x00000400 ---32-----------16|15------------0-    CFG_NIOS_CPU_UART0
+  0x00000400 ---32-----------16|15------------0-    CONFIG_SYS_NIOS_CPU_UART0
 
 - - - - - - - - - - -  on chip memory    - - - - - - - - - - -
 
index 8b030dbb54631ccb82084f53bb05b4d940e165f2..a395a4996219a372825914206bc4fd8935c8552b 100644 (file)
@@ -35,7 +35,7 @@ I2C iprobe
 =====================
 
 The i2c utilities have been tested on both Rev B. and Rev C. and
-look good. The CFG_I2C_NOPROBES macro is defined to prevent
+look good. The CONFIG_SYS_I2C_NOPROBES macro is defined to prevent
 probing the CDCV850 clock controller at address 0x69 (since reading
 it causes the i2c implementation to misbehave. The output of
 iprobe should look like this (assuming you are only using a single
index 147ea514ae92c26127244e323408f1540cd0d71d..ba7cea83ca8eb2bf5825344edbcf4cf337c7b7b9 100644 (file)
@@ -11,24 +11,24 @@ Configuration options
 
        CONFIG_USB_OHCI_NEW: enable the new OHCI driver
 
-       CFG_USB_OHCI_BOARD_INIT: call the board dependant hooks:
+       CONFIG_SYS_USB_OHCI_BOARD_INIT: call the board dependant hooks:
 
                  - extern int usb_board_init(void);
                  - extern int usb_board_stop(void);
                  - extern int usb_cpu_init_fail(void);
 
-       CFG_USB_OHCI_CPU_INIT: call the cpu dependant hooks:
+       CONFIG_SYS_USB_OHCI_CPU_INIT: call the cpu dependant hooks:
 
                  - extern int usb_cpu_init(void);
                  - extern int usb_cpu_stop(void);
                  - extern int usb_cpu_init_fail(void);
 
-       CFG_USB_OHCI_REGS_BASE: defines the base address of the OHCI
+       CONFIG_SYS_USB_OHCI_REGS_BASE: defines the base address of the OHCI
                                registers
 
-       CFG_USB_OHCI_SLOT_NAME: slot name
+       CONFIG_SYS_USB_OHCI_SLOT_NAME: slot name
 
-       CFG_USB_OHCI_MAX_ROOT_PORTS: maximal number of ports of the
+       CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS: maximal number of ports of the
                                     root hub.
 
 
@@ -39,7 +39,7 @@ The USB bus operates in little endian, but unfortunately there are
 OHCI controllers that operate in big endian such as ppc4xx and
 mpc5xxx. For these the config option
 
-       CFG_OHCI_BE_CONTROLLER
+       CONFIG_SYS_OHCI_BE_CONTROLLER
 
 needs to be defined.
 
@@ -60,4 +60,4 @@ If undefined, the first instance found in PCI space will be used.
 PCI Controllers need to do byte swapping on register accesses, so they
 should to define:
 
-       CFG_OHCI_SWAP_REG_ACCESS
+       CONFIG_SYS_OHCI_SWAP_REG_ACCESS
index 8fdf49503d4f2fe1177d38880b63babdc2f39452..076f01862a1e7735a9403ce85bbfc9d65fe4ac06 100644 (file)
@@ -39,9 +39,9 @@ modifications to the config file.
 
 Edit include/configs/MPC8260ADS.h to use the following:
 
-#define CFG_IMMR       0xFA200000
-#define CFG_BCSR       0xFA100000
-#define CFG_BR1_PRELIM 0xFA101801
+#define CONFIG_SYS_IMMR        0xFA200000
+#define CONFIG_SYS_BCSR        0xFA100000
+#define CONFIG_SYS_BR1_PRELIM  0xFA101801
 
 When creating a LynxOS or BlueCat u-boot image using mkimage,
 you must specify the following:
index de1dabadedcefd6c555cc7d9daf7d6651da4072d..e002947993adb682cd993999748643f0bf9a9421 100644 (file)
@@ -70,12 +70,12 @@ CONFIG_M52277               -- define for all Freescale MCF52277 CPUs
 CONFIG_M52277EVB       -- define for M52277EVB board
 
 CONFIG_MCFUART         -- define to use common CF Uart driver
-CFG_UART_PORT          -- define UART port number, start with 0, 1 and 2
+CONFIG_SYS_UART_PORT           -- define UART port number, start with 0, 1 and 2
 CONFIG_BAUDRATE                -- define UART baudrate
 
 CONFIG_MCFRTC          -- define to use common CF RTC driver
-CFG_MCFRTC_BASE                -- provide base address for RTC in immap.h
-CFG_RTC_OSCILLATOR     -- define RTC clock frequency
+CONFIG_SYS_MCFRTC_BASE         -- provide base address for RTC in immap.h
+CONFIG_SYS_RTC_OSCILLATOR      -- define RTC clock frequency
 RTC_DEBUG              -- define to show RTC debug message
 CONFIG_CMD_DATE                -- enable to use date feature in u-boot
 
@@ -85,22 +85,22 @@ CONFIG_MCFPIT               -- define to use PIT timer
 CONFIG_FSL_I2C         -- define to use FSL common I2C driver
 CONFIG_HARD_I2C                -- define for I2C hardware support
 CONFIG_SOFT_I2C                -- define for I2C bit-banged
-CFG_I2C_SPEED          -- define for I2C speed
-CFG_I2C_SLAVE          -- define for I2C slave address
-CFG_I2C_OFFSET         -- define for I2C base address offset
-CFG_IMMR               -- define for MBAR offset
+CONFIG_SYS_I2C_SPEED           -- define for I2C speed
+CONFIG_SYS_I2C_SLAVE           -- define for I2C slave address
+CONFIG_SYS_I2C_OFFSET          -- define for I2C base address offset
+CONFIG_SYS_IMMR                -- define for MBAR offset
 
-CFG_MBAR               -- define MBAR offset
+CONFIG_SYS_MBAR                -- define MBAR offset
 
 CONFIG_MONITOR_IS_IN_RAM -- Not support
 
-CFG_INIT_RAM_ADDR      -- defines the base address of the MCF52277 internal SRAM
+CONFIG_SYS_INIT_RAM_ADDR       -- defines the base address of the MCF52277 internal SRAM
 
-CFG_CSn_BASE   -- defines the Chip Select Base register
-CFG_CSn_MASK   -- defines the Chip Select Mask register
-CFG_CSn_CTRL   -- defines the Chip Select Control register
+CONFIG_SYS_CSn_BASE    -- defines the Chip Select Base register
+CONFIG_SYS_CSn_MASK    -- defines the Chip Select Mask register
+CONFIG_SYS_CSn_CTRL    -- defines the Chip Select Control register
 
-CFG_SDRAM_BASE -- defines the DRAM Base
+CONFIG_SYS_SDRAM_BASE  -- defines the DRAM Base
 
 CONFIG_LCD and CONFIG_CMD_USB are not supported in this current u-boot,
 update will be provided at later time
index 0426cb1d4ed39868f66800e8409c4e51c602fcc3..f51609f3e04bb0e8e2c2aad0647b00d0dcf380a2 100644 (file)
@@ -28,9 +28,9 @@ Created 06/05/2007
        CONFIG_MCF52x2          Processor family
        CONFIG_MCF5253          MCF5253 specific
        CONFIG_M5253EVBE        Amadeus Plus board specific
-       CFG_CLK                 Define Amadeus Plus CPU Clock
-       CFG_MBAR                MBAR base address
-       CFG_MBAR2               MBAR2 base address
+       CONFIG_SYS_CLK                  Define Amadeus Plus CPU Clock
+       CONFIG_SYS_MBAR         MBAR base address
+       CONFIG_SYS_MBAR2                MBAR2 base address
 
 3.2 Compilation
        export CROSS_COMPILE=/usr/local/freescale-coldfire-4.1-elf/bin/m68k-elf-
index b2ef4a5f7c413968bce261afb7880f8f0a33f0b7..4781d9417222bf8bb6f6be13ff0bd1399157b5b6 100644 (file)
@@ -67,12 +67,12 @@ CONFIG_M5373                -- define for all Freescale MCF5373 CPUs
 CONFIG_M5373EVB                -- define for M5373EVB board
 
 CONFIG_MCFUART         -- define to use common CF Uart driver
-CFG_UART_PORT          -- define UART port number, start with 0, 1 and 2
+CONFIG_SYS_UART_PORT           -- define UART port number, start with 0, 1 and 2
 CONFIG_BAUDRATE                -- define UART baudrate
 
 CONFIG_MCFRTC          -- define to use common CF RTC driver
-CFG_MCFRTC_BASE                -- provide base address for RTC in immap.h
-CFG_RTC_OSCILLATOR     -- define RTC clock frequency
+CONFIG_SYS_MCFRTC_BASE         -- provide base address for RTC in immap.h
+CONFIG_SYS_RTC_OSCILLATOR      -- define RTC clock frequency
 RTC_DEBUG              -- define to show RTC debug message
 CONFIG_CMD_DATE                -- enable to use date feature in u-boot
 
@@ -80,11 +80,11 @@ CONFIG_MCFFEC               -- define to use common CF FEC driver
 CONFIG_NET_MULTI       -- define to use multi FEC in u-boot
 CONFIG_MII             -- enable to use MII driver
 CONFIG_CF_DOMII                -- enable to use MII feature in cmd_mii.c
-CFG_DISCOVER_PHY       -- enable PHY discovery
-CFG_RX_ETH_BUFFER      -- Set FEC Receive buffer
-CFG_FAULT_ECHO_LINK_DOWN--
-CFG_FEC0_PINMUX                -- Set FEC0 Pin configuration
-CFG_FEC0_MIIBASE       -- Set FEC0 MII base register
+CONFIG_SYS_DISCOVER_PHY        -- enable PHY discovery
+CONFIG_SYS_RX_ETH_BUFFER       -- Set FEC Receive buffer
+CONFIG_SYS_FAULT_ECHO_LINK_DOWN--
+CONFIG_SYS_FEC0_PINMUX         -- Set FEC0 Pin configuration
+CONFIG_SYS_FEC0_MIIBASE        -- Set FEC0 MII base register
 MCFFEC_TOUT_LOOP       -- set FEC timeout loop
 
 CONFIG_MCFTMR          -- define to use DMA timer
@@ -93,22 +93,22 @@ CONFIG_MCFPIT               -- define to use PIT timer
 CONFIG_FSL_I2C         -- define to use FSL common I2C driver
 CONFIG_HARD_I2C                -- define for I2C hardware support
 CONFIG_SOFT_I2C                -- define for I2C bit-banged
-CFG_I2C_SPEED          -- define for I2C speed
-CFG_I2C_SLAVE          -- define for I2C slave address
-CFG_I2C_OFFSET         -- define for I2C base address offset
-CFG_IMMR               -- define for MBAR offset
+CONFIG_SYS_I2C_SPEED           -- define for I2C speed
+CONFIG_SYS_I2C_SLAVE           -- define for I2C slave address
+CONFIG_SYS_I2C_OFFSET          -- define for I2C base address offset
+CONFIG_SYS_IMMR                -- define for MBAR offset
 
-CFG_MBAR               -- define MBAR offset
+CONFIG_SYS_MBAR                -- define MBAR offset
 
 CONFIG_MONITOR_IS_IN_RAM -- Not support
 
-CFG_INIT_RAM_ADDR      -- defines the base address of the MCF5373 internal SRAM
+CONFIG_SYS_INIT_RAM_ADDR       -- defines the base address of the MCF5373 internal SRAM
 
-CFG_CSn_BASE   -- defines the Chip Select Base register
-CFG_CSn_MASK   -- defines the Chip Select Mask register
-CFG_CSn_CTRL   -- defines the Chip Select Control register
+CONFIG_SYS_CSn_BASE    -- defines the Chip Select Base register
+CONFIG_SYS_CSn_MASK    -- defines the Chip Select Mask register
+CONFIG_SYS_CSn_CTRL    -- defines the Chip Select Control register
 
-CFG_SDRAM_BASE -- defines the DRAM Base
+CONFIG_SYS_SDRAM_BASE  -- defines the DRAM Base
 
 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
 ===========================================
index 5c01f0dff12ee73855b6383221358262af039919..f695da5f1ccb4211df051332d2b68b6a89a7d877 100644 (file)
@@ -71,12 +71,12 @@ CONFIG_M54455               -- define for all Freescale MCF54455 CPUs
 CONFIG_M54455EVB       -- define for M54455EVB board
 
 CONFIG_MCFUART         -- define to use common CF Uart driver
-CFG_UART_PORT          -- define UART port number, start with 0, 1 and 2
+CONFIG_SYS_UART_PORT           -- define UART port number, start with 0, 1 and 2
 CONFIG_BAUDRATE                -- define UART baudrate
 
 CONFIG_MCFRTC          -- define to use common CF RTC driver
-CFG_MCFRTC_BASE                -- provide base address for RTC in immap.h
-CFG_RTC_OSCILLATOR     -- define RTC clock frequency
+CONFIG_SYS_MCFRTC_BASE         -- provide base address for RTC in immap.h
+CONFIG_SYS_RTC_OSCILLATOR      -- define RTC clock frequency
 RTC_DEBUG              -- define to show RTC debug message
 CONFIG_CMD_DATE                -- enable to use date feature in u-boot
 
@@ -84,13 +84,13 @@ CONFIG_MCFFEC               -- define to use common CF FEC driver
 CONFIG_NET_MULTI       -- define to use multi FEC in u-boot
 CONFIG_MII             -- enable to use MII driver
 CONFIG_CF_DOMII                -- enable to use MII feature in cmd_mii.c
-CFG_DISCOVER_PHY       -- enable PHY discovery
-CFG_RX_ETH_BUFFER      -- Set FEC Receive buffer
-CFG_FAULT_ECHO_LINK_DOWN--
-CFG_FEC0_PINMUX                -- Set FEC0 Pin configuration
-CFG_FEC1_PINMUX                -- Set FEC1 Pin configuration
-CFG_FEC0_MIIBASE       -- Set FEC0 MII base register
-CFG_FEC1_MIIBASE       -- Set FEC0 MII base register
+CONFIG_SYS_DISCOVER_PHY        -- enable PHY discovery
+CONFIG_SYS_RX_ETH_BUFFER       -- Set FEC Receive buffer
+CONFIG_SYS_FAULT_ECHO_LINK_DOWN--
+CONFIG_SYS_FEC0_PINMUX         -- Set FEC0 Pin configuration
+CONFIG_SYS_FEC1_PINMUX         -- Set FEC1 Pin configuration
+CONFIG_SYS_FEC0_MIIBASE        -- Set FEC0 MII base register
+CONFIG_SYS_FEC1_MIIBASE        -- Set FEC0 MII base register
 MCFFEC_TOUT_LOOP       -- set FEC timeout loop
 CONFIG_HAS_ETH1                -- define to enable second FEC in u-boot
 
@@ -100,14 +100,14 @@ CONFIG_IDE_RESET  -- define ide_reset()
 CONFIG_IDE_PREINIT     -- define ide_preinit()
 CONFIG_ATAPI           -- define ATAPI support
 CONFIG_LBA48           -- define LBA48 (larger than 120GB) support
-CFG_IDE_MAXBUS         -- define max channel
-CFG_IDE_MAXDEVICE      -- define max devices per channel
-CFG_ATA_BASE_ADDR      -- define ATA base address
-CFG_ATA_IDE0_OFFSET    -- define ATA IDE0 offset
-CFG_ATA_DATA_OFFSET    -- define ATA data IO
-CFG_ATA_REG_OFFSET     -- define for normal register accesses
-CFG_ATA_ALT_OFFSET     -- define for alternate registers
-CFG_ATA_STRIDE         -- define for Interval between registers
+CONFIG_SYS_IDE_MAXBUS          -- define max channel
+CONFIG_SYS_IDE_MAXDEVICE       -- define max devices per channel
+CONFIG_SYS_ATA_BASE_ADDR       -- define ATA base address
+CONFIG_SYS_ATA_IDE0_OFFSET     -- define ATA IDE0 offset
+CONFIG_SYS_ATA_DATA_OFFSET     -- define ATA data IO
+CONFIG_SYS_ATA_REG_OFFSET      -- define for normal register accesses
+CONFIG_SYS_ATA_ALT_OFFSET      -- define for alternate registers
+CONFIG_SYS_ATA_STRIDE          -- define for Interval between registers
 _IO_BASE               -- define for IO base address
 
 CONFIG_MCFTMR          -- define to use DMA timer
@@ -116,42 +116,42 @@ CONFIG_MCFPIT             -- define to use PIT timer
 CONFIG_FSL_I2C         -- define to use FSL common I2C driver
 CONFIG_HARD_I2C                -- define for I2C hardware support
 CONFIG_SOFT_I2C                -- define for I2C bit-banged
-CFG_I2C_SPEED          -- define for I2C speed
-CFG_I2C_SLAVE          -- define for I2C slave address
-CFG_I2C_OFFSET         -- define for I2C base address offset
-CFG_IMMR               -- define for MBAR offset
+CONFIG_SYS_I2C_SPEED           -- define for I2C speed
+CONFIG_SYS_I2C_SLAVE           -- define for I2C slave address
+CONFIG_SYS_I2C_OFFSET          -- define for I2C base address offset
+CONFIG_SYS_IMMR                -- define for MBAR offset
 
 CONFIG_PCI              -- define for PCI support
 CONFIG_PCI_PNP          -- define for Plug n play support
-CFG_PCI_MEM_BUS                -- PCI memory logical offset
-CFG_PCI_MEM_PHYS       -- PCI memory physical offset
-CFG_PCI_MEM_SIZE       -- PCI memory size
-CFG_PCI_IO_BUS         -- PCI IO logical offset
-CFG_PCI_IO_PHYS                -- PCI IO physical offset
-CFG_PCI_IO_SIZE                -- PCI IO size
-CFG_PCI_CFG_BUS                -- PCI Configuration logical offset
-CFG_PCI_CFG_PHYS       -- PCI Configuration physical offset
-CFG_PCI_CFG_SIZE       -- PCI Configuration size
+CONFIG_SYS_PCI_MEM_BUS         -- PCI memory logical offset
+CONFIG_SYS_PCI_MEM_PHYS        -- PCI memory physical offset
+CONFIG_SYS_PCI_MEM_SIZE        -- PCI memory size
+CONFIG_SYS_PCI_IO_BUS          -- PCI IO logical offset
+CONFIG_SYS_PCI_IO_PHYS         -- PCI IO physical offset
+CONFIG_SYS_PCI_IO_SIZE         -- PCI IO size
+CONFIG_SYS_PCI_CFG_BUS         -- PCI Configuration logical offset
+CONFIG_SYS_PCI_CFG_PHYS        -- PCI Configuration physical offset
+CONFIG_SYS_PCI_CFG_SIZE        -- PCI Configuration size
 
 CONFIG_EXTRA_CLOCK     -- Enable extra clock such as vco, flexbus, pci, etc
 
-CFG_MBAR               -- define MBAR offset
+CONFIG_SYS_MBAR                -- define MBAR offset
 
-CFG_ATMEL_BOOT         -- To determine the u-boot is booted from Atmel or Intel
+CONFIG_SYS_ATMEL_BOOT          -- To determine the u-boot is booted from Atmel or Intel
 
 CONFIG_MONITOR_IS_IN_RAM -- Not support
 
-CFG_INIT_RAM_ADDR      -- defines the base address of the MCF54455 internal SRAM
+CONFIG_SYS_INIT_RAM_ADDR       -- defines the base address of the MCF54455 internal SRAM
 
-CFG_CSn_BASE   -- defines the Chip Select Base register
-CFG_CSn_MASK   -- defines the Chip Select Mask register
-CFG_CSn_CTRL   -- defines the Chip Select Control register
+CONFIG_SYS_CSn_BASE    -- defines the Chip Select Base register
+CONFIG_SYS_CSn_MASK    -- defines the Chip Select Mask register
+CONFIG_SYS_CSn_CTRL    -- defines the Chip Select Control register
 
-CFG_ATMEL_BASE -- defines the Atmel Flash base
-CFG_INTEL_BASE -- defines the Intel Flash base
+CONFIG_SYS_ATMEL_BASE  -- defines the Atmel Flash base
+CONFIG_SYS_INTEL_BASE  -- defines the Intel Flash base
 
-CFG_SDRAM_BASE -- defines the DRAM Base
-CFG_SDRAM_BASE1        -- defines the DRAM Base 1
+CONFIG_SYS_SDRAM_BASE  -- defines the DRAM Base
+CONFIG_SYS_SDRAM_BASE1 -- defines the DRAM Base 1
 
 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
 ===========================================
index 37d14387851404dc13993a0aa918b34c34968395..dc9a6057120b24d840f9bac5c12c14880d5fe44e 100644 (file)
@@ -74,20 +74,20 @@ CONFIG_M547x                -- define for all Freescale MCF547x CPUs
 CONFIG_M5475           -- define for M5475EVB board
 
 CONFIG_MCFUART         -- define to use common CF Uart driver
-CFG_UART_PORT          -- define UART port number, start with 0, 1 and 2
+CONFIG_SYS_UART_PORT           -- define UART port number, start with 0, 1 and 2
 CONFIG_BAUDRATE                -- define UART baudrate
 
 CONFIG_FSLDMAFEC       -- define to use common dma FEC driver
 CONFIG_NET_MULTI       -- define to use multi FEC in u-boot
 CONFIG_MII             -- enable to use MII driver
 CONFIG_CF_DOMII                -- enable to use MII feature in cmd_mii.c
-CFG_DISCOVER_PHY       -- enable PHY discovery
-CFG_RX_ETH_BUFFER      -- Set FEC Receive buffer
-CFG_FAULT_ECHO_LINK_DOWN--
-CFG_FEC0_PINMUX                -- Set FEC0 Pin configuration
-CFG_FEC1_PINMUX                -- Set FEC1 Pin configuration
-CFG_FEC0_MIIBASE       -- Set FEC0 MII base register
-CFG_FEC1_MIIBASE       -- Set FEC0 MII base register
+CONFIG_SYS_DISCOVER_PHY        -- enable PHY discovery
+CONFIG_SYS_RX_ETH_BUFFER       -- Set FEC Receive buffer
+CONFIG_SYS_FAULT_ECHO_LINK_DOWN--
+CONFIG_SYS_FEC0_PINMUX         -- Set FEC0 Pin configuration
+CONFIG_SYS_FEC1_PINMUX         -- Set FEC1 Pin configuration
+CONFIG_SYS_FEC0_MIIBASE        -- Set FEC0 MII base register
+CONFIG_SYS_FEC1_MIIBASE        -- Set FEC0 MII base register
 MCFFEC_TOUT_LOOP       -- set FEC timeout loop
 CONFIG_HAS_ETH1                -- define to enable second FEC in u-boot
 
@@ -101,35 +101,35 @@ CONFIG_SLTTMR             -- define to use SLT timer
 CONFIG_FSL_I2C         -- define to use FSL common I2C driver
 CONFIG_HARD_I2C                -- define for I2C hardware support
 CONFIG_SOFT_I2C                -- define for I2C bit-banged
-CFG_I2C_SPEED          -- define for I2C speed
-CFG_I2C_SLAVE          -- define for I2C slave address
-CFG_I2C_OFFSET         -- define for I2C base address offset
-CFG_IMMR               -- define for MBAR offset
+CONFIG_SYS_I2C_SPEED           -- define for I2C speed
+CONFIG_SYS_I2C_SLAVE           -- define for I2C slave address
+CONFIG_SYS_I2C_OFFSET          -- define for I2C base address offset
+CONFIG_SYS_IMMR                -- define for MBAR offset
 
 CONFIG_PCI             -- define for PCI support
 CONFIG_PCI_PNP         -- define for Plug n play support
 CONFIG_SKIPPCI_HOSTBRIDGE      -- SKIP PCI Host bridge
-CFG_PCI_MEM_BUS                -- PCI memory logical offset
-CFG_PCI_MEM_PHYS       -- PCI memory physical offset
-CFG_PCI_MEM_SIZE       -- PCI memory size
-CFG_PCI_IO_BUS         -- PCI IO logical offset
-CFG_PCI_IO_PHYS                -- PCI IO physical offset
-CFG_PCI_IO_SIZE                -- PCI IO size
-CFG_PCI_CFG_BUS                -- PCI Configuration logical offset
-CFG_PCI_CFG_PHYS       -- PCI Configuration physical offset
-CFG_PCI_CFG_SIZE       -- PCI Configuration size
+CONFIG_SYS_PCI_MEM_BUS         -- PCI memory logical offset
+CONFIG_SYS_PCI_MEM_PHYS        -- PCI memory physical offset
+CONFIG_SYS_PCI_MEM_SIZE        -- PCI memory size
+CONFIG_SYS_PCI_IO_BUS          -- PCI IO logical offset
+CONFIG_SYS_PCI_IO_PHYS         -- PCI IO physical offset
+CONFIG_SYS_PCI_IO_SIZE         -- PCI IO size
+CONFIG_SYS_PCI_CFG_BUS         -- PCI Configuration logical offset
+CONFIG_SYS_PCI_CFG_PHYS        -- PCI Configuration physical offset
+CONFIG_SYS_PCI_CFG_SIZE        -- PCI Configuration size
 
-CFG_MBAR               -- define MBAR offset
+CONFIG_SYS_MBAR                -- define MBAR offset
 
 CONFIG_MONITOR_IS_IN_RAM -- Not support
 
-CFG_INIT_RAM_ADDR      -- defines the base address of the MCF547x internal SRAM
+CONFIG_SYS_INIT_RAM_ADDR       -- defines the base address of the MCF547x internal SRAM
 
-CFG_CSn_BASE   -- defines the Chip Select Base register
-CFG_CSn_MASK   -- defines the Chip Select Mask register
-CFG_CSn_CTRL   -- defines the Chip Select Control register
+CONFIG_SYS_CSn_BASE    -- defines the Chip Select Base register
+CONFIG_SYS_CSn_MASK    -- defines the Chip Select Mask register
+CONFIG_SYS_CSn_CTRL    -- defines the Chip Select Control register
 
-CFG_SDRAM_BASE -- defines the DRAM Base
+CONFIG_SYS_SDRAM_BASE  -- defines the DRAM Base
 
 2. MEMORY MAP UNDER U-BOOT AND LINUX KERNEL
 ===========================================
index 0c533f3fa9c300435b3be2fb716c132e77376e15..e6c33a7d960c3c70d593a95207c477fdc5caeffa 100644 (file)
@@ -72,7 +72,7 @@ For the preloader, please see
 http://mailman.uclinux.org/pipermail/uclinux-dev/2003-December/023384.html
 
 U-boot is configured to run at 0x20000 at default. This can be configured by
-change TEXT_BASE in board/m5282evb/config.mk and CFG_MONITOR_BASE in
+change TEXT_BASE in board/m5282evb/config.mk and CONFIG_SYS_MONITOR_BASE in
 include/configs/M5282EVB.h.
 
 3.2 BuS EB+MCF-EV123
@@ -95,7 +95,7 @@ If u-boot should be loaded to RAM and started by a pre-loader
 CONFIG_MONITOR_IS_IN_RAM must be defined. If it is defined the
 initial vector table and basic processor initialization will not
 be compiled in. The start address of u-boot must be adjusted in
-the boards config header file (CFG_MONITOR_BASE) and Makefile
+the boards config header file (CONFIG_SYS_MONITOR_BASE) and Makefile
 (TEXT_BASE) to the load address.
 
 4.1 MCF5272 specific Options/Settings
@@ -107,20 +107,20 @@ CONFIG_M5272      -- defined for all Motorola MCF5272 CPUs
 CONFIG_MONITOR_IS_IN_RAM
                -- defined if u-boot is loaded by a pre-loader
 
-CFG_MBAR       -- defines the base address of the MCF5272 configuration registers
-CFG_INIT_RAM_ADDR
+CONFIG_SYS_MBAR        -- defines the base address of the MCF5272 configuration registers
+CONFIG_SYS_INIT_RAM_ADDR
                -- defines the base address of the MCF5272 internal SRAM
-CFG_ENET_BD_BASE
+CONFIG_SYS_ENET_BD_BASE
                -- defines the base addres of the FEC buffer descriptors
 
-CFG_SCR                -- defines the contents of the System Configuration Register
-CFG_SPR                -- defines the contents of the System Protection Register
-CFG_BRx_PRELIM -- defines the contents of the Chip Select Base Registers
-CFG_ORx_PRELIM -- defines the contents of the Chip Select Option Registers
+CONFIG_SYS_SCR         -- defines the contents of the System Configuration Register
+CONFIG_SYS_SPR         -- defines the contents of the System Protection Register
+CONFIG_SYS_BRx_PRELIM  -- defines the contents of the Chip Select Base Registers
+CONFIG_SYS_ORx_PRELIM  -- defines the contents of the Chip Select Option Registers
 
-CFG_PxDDR      -- defines the contents of the Data Direction Registers
-CFG_PxDAT      -- defines the contents of the Data Registers
-CFG_PXCNT      -- defines the contents of the Port Configuration Registers
+CONFIG_SYS_PxDDR       -- defines the contents of the Data Direction Registers
+CONFIG_SYS_PxDAT       -- defines the contents of the Data Registers
+CONFIG_SYS_PXCNT       -- defines the contents of the Port Configuration Registers
 
 
 4.2 MCF5282 specific Options/Settings
@@ -132,32 +132,32 @@ CONFIG_M5282      -- defined for all Motorola MCF5282 CPUs
 CONFIG_MONITOR_IS_IN_RAM
                -- defined if u-boot is loaded by a pre-loader
 
-CFG_MBAR       -- defines the base address of the MCF5282 internal register space
-CFG_INIT_RAM_ADDR
+CONFIG_SYS_MBAR        -- defines the base address of the MCF5282 internal register space
+CONFIG_SYS_INIT_RAM_ADDR
                -- defines the base address of the MCF5282 internal SRAM
-CFG_INT_FLASH_BASE
+CONFIG_SYS_INT_FLASH_BASE
                -- defines the base address of the MCF5282 internal Flash memory
-CFG_ENET_BD_BASE
+CONFIG_SYS_ENET_BD_BASE
                -- defines the base addres of the FEC buffer descriptors
 
-CFG_MFD
+CONFIG_SYS_MFD
                -- defines the PLL Multiplication Factor Devider
                   (see table 9-4 of MCF user manual)
-CFG_RFD                -- defines the PLL Reduce Frecuency Devider
+CONFIG_SYS_RFD         -- defines the PLL Reduce Frecuency Devider
                   (see table 9-4 of MCF user manual)
 
-CFG_CSx_BASE   -- defines the base address of chip select x
-CFG_CSx_SIZE   -- defines the memory size (address range) of chip select x
-CFG_CSx_WIDTH  -- defines the bus with of chip select x
-CFG_CSx_RO     -- if set to 0 chip select x is read/wirte
+CONFIG_SYS_CSx_BASE    -- defines the base address of chip select x
+CONFIG_SYS_CSx_SIZE    -- defines the memory size (address range) of chip select x
+CONFIG_SYS_CSx_WIDTH   -- defines the bus with of chip select x
+CONFIG_SYS_CSx_RO      -- if set to 0 chip select x is read/wirte
                        else chipselct is read only
-CFG_CSx_WS     -- defines the number of wait states  of chip select x
+CONFIG_SYS_CSx_WS      -- defines the number of wait states  of chip select x
 
-CFG_PxDDR      -- defines the contents of the Data Direction Registers
-CFG_PxDAT      -- defines the contents of the Data Registers
-CFG_PXCNT      -- defines the contents of the Port Configuration Registers
+CONFIG_SYS_PxDDR       -- defines the contents of the Data Direction Registers
+CONFIG_SYS_PxDAT       -- defines the contents of the Data Registers
+CONFIG_SYS_PXCNT       -- defines the contents of the Port Configuration Registers
 
-CFG_PxPAR      -- defines the function of ports
+CONFIG_SYS_PxPAR       -- defines the function of ports
 
 
 5. COMPILER
index 6099da2fbf3be10031cac93ac2dd19cc092da2e1..d3563a3cd9993a712fe4e904aa1fa4c31912b0f7 100644 (file)
@@ -33,28 +33,28 @@ U-Boot MARUBUN MR-SHPC-01 PCMCIA controller driver
        Most devices have only one slot. You should define CONFIG_PCMCIA_SLOT_A .
        ex.     #define CONFIG_PCMCIA_SLOT_A    1
 
-    * CFG_MARUBUN_MRSHPC
+    * CONFIG_SYS_MARUBUN_MRSHPC
        This is MR-SHPC-01 PCMCIA controler base address.
        You should do the setting matched to your environment.
-       ex.  #define CFG_MARUBUN_MRSHPC 0xb03fffe0
+       ex.  #define CONFIG_SYS_MARUBUN_MRSHPC 0xb03fffe0
             ( for MS7722SE01 environment )
 
-    * CFG_MARUBUN_MW1
+    * CONFIG_SYS_MARUBUN_MW1
        This is MR-SHPC-01 memory window base address.
        You should do the setting matched to your environment.
-       ex. #define CFG_MARUBUN_MW1 0xb0400000
+       ex. #define CONFIG_SYS_MARUBUN_MW1 0xb0400000
             ( for MS7722SE01 environment )
 
-    * CFG_MARUBUN_MW1
+    * CONFIG_SYS_MARUBUN_MW1
        This is MR-SHPC-01 attribute window base address.
        You should do the setting matched to your environment.
-       ex. #define CFG_MARUBUN_MW2 0xb0500000
+       ex. #define CONFIG_SYS_MARUBUN_MW2 0xb0500000
             ( for MS7722SE01 environment )
 
-    * CFG_MARUBUN_MW1
+    * CONFIG_SYS_MARUBUN_MW1
        This is MR-SHPC-01 I/O window base address.
        You should do the setting matched to your environment.
-       ex. #define CFG_MARUBUN_IO  0xb0600000
+       ex. #define CONFIG_SYS_MARUBUN_IO  0xb0600000
             ( for MS7722SE01 environment )
 
 3. Other
index cd5668993c46aec125b142c898bdde42e3d3f959..7c1af17c509c1dcfa1538b3b7c7f338bdb8c478c 100644 (file)
@@ -3,7 +3,7 @@ Freescale MPC8313ERDB Board
 
 1.     Board Switches and Jumpers
 
-       S3 is used to set CFG_RESET_SOURCE.
+       S3 is used to set CONFIG_SYS_RESET_SOURCE.
 
        To boot the image at 0xFE000000 in NOR flash, use these DIP
        switch settings for S3 S4:
index e77eba710eaa54ff1a885523573da951bd1c3506..7d476d0018a7903ed74ddac7dbe06085cfe815f1 100644 (file)
@@ -3,7 +3,7 @@ Freescale MPC8315ERDB Board
 
 1.     Board Switches and Jumpers
 
-       S3 is used to set CFG_RESET_SOURCE.
+       S3 is used to set CONFIG_SYS_RESET_SOURCE.
 
        To boot the image at 0xFE000000 in NOR flash, use these DIP
        switch settings for S3 S4:
index 1c41d77ab028c3f5a52579b7e3e400e30a8c02f8..2c3c7034e2e613533d5fe19e93d76162327f137c 100644 (file)
@@ -21,16 +21,16 @@ Jumpers:
        J14 Pins 1-2 (near plcc32 socket)
 
 Switches:
-       SW1(1-5) = 01100        CFG_COREPLL     = 01000 :: CORE =   2:1
+       SW1(1-5) = 01100        CONFIG_SYS_COREPLL      = 01000 :: CORE =   2:1
                                                  01100 :: CORE = 2.5:1
                                                  10000 :: CORE =   3:1
                                                  11100 :: CORE = 3.5:1
                                                  10100 :: CORE =   4:1
                                                  01110 :: CORE = 4.5:1
-       SW1(6-8) = 001          CFG_SYSCLK      = 000   :: SYSCLK = 33MHz
+       SW1(6-8) = 001          CONFIG_SYS_SYSCLK       = 000   :: SYSCLK = 33MHz
                                                  001   :: SYSCLK = 40MHz
 
-       SW2(1-4) = 1100         CFG_CCBPLL      = 0010  :: 2X
+       SW2(1-4) = 1100         CONFIG_SYS_CCBPLL       = 0010  :: 2X
                                                  0100  :: 4X
                                                  0110  :: 6X
                                                  1000  :: 8X
@@ -38,34 +38,34 @@ Switches:
                                                  1100  :: 12X
                                                  1110  :: 14X
                                                  0000  :: 16X
-       SW2(5-8) = 1110         CFG_BOOTLOC     = 1110  :: boot 16-bit localbus
+       SW2(5-8) = 1110         CONFIG_SYS_BOOTLOC      = 1110  :: boot 16-bit localbus
 
-       SW3(1-7) = 0011000      CFG_VID         = 0011000 :: VCORE = 1.2V
+       SW3(1-7) = 0011000      CONFIG_SYS_VID          = 0011000 :: VCORE = 1.2V
                                                  0100000 :: VCORE = 1.11V
        SW3(8)   = 0            VCC_PLAT        = 0     :: VCC_PLAT = 1.2V
                                                  1     :: VCC_PLAT = 1.0V
 
-       SW4(1-2) = 11           CFG_HOSTMODE    = 11    :: both prots host/root
-       SW4(3-4) = 11           CFG_BOOTSEQ     = 11    :: no boot seq
-       SW4(5-8) = 0011         CFG_IOPORT      = 0011  :: both PEX
+       SW4(1-2) = 11           CONFIG_SYS_HOSTMODE     = 11    :: both prots host/root
+       SW4(3-4) = 11           CONFIG_SYS_BOOTSEQ      = 11    :: no boot seq
+       SW4(5-8) = 0011         CONFIG_SYS_IOPORT       = 0011  :: both PEX
 
-       SW5(1)   = 1            CFG_FLASHMAP    = 1     :: boot from flash
+       SW5(1)   = 1            CONFIG_SYS_FLASHMAP     = 1     :: boot from flash
                                                  0     :: boot from PromJet
-       SW5(2)   = 1            CFG_FLASHBANK   = 1     :: swap upper/lower
+       SW5(2)   = 1            CONFIG_SYS_FLASHBANK    = 1     :: swap upper/lower
                                                         halves (virtual banks)
                                                  0     :: normal
-       SW5(3)   = 0            CFG_FLASHWP     = 0     :: not protected
-       SW5(4)   = 0            CFG_PORTDIV     = 1     :: 2:1 for PD4
+       SW5(3)   = 0            CONFIG_SYS_FLASHWP      = 0     :: not protected
+       SW5(4)   = 0            CONFIG_SYS_PORTDIV      = 1     :: 2:1 for PD4
                                                           1:1 for PD6
-       SW5(5-6) = 11           CFG_PIXISOPT    = 11    :: s/w determined
-       SW5(7-8) = 11           CFG_LADOPT      = 11    :: s/w determined
+       SW5(5-6) = 11           CONFIG_SYS_PIXISOPT     = 11    :: s/w determined
+       SW5(7-8) = 11           CONFIG_SYS_LADOPT       = 11    :: s/w determined
 
-       SW6(1)   = 1            CFG_CPUBOOT     = 1     :: no boot holdoff
-       SW6(2)   = 1            CFG_BOOTADDR    = 1     :: no traslation
-       SW6(3-5) = 000          CFG_REFCLKSEL   = 000   :: 100MHZ
-       SW6(6)   = 1            CFG_SERROM_ADDR= 1      ::
-       SW6(7)   = 1            CFG_MEMDEBUG    = 1     ::
-       SW6(8)   = 1            CFG_DDRDEBUG    = 1     ::
+       SW6(1)   = 1            CONFIG_SYS_CPUBOOT      = 1     :: no boot holdoff
+       SW6(2)   = 1            CONFIG_SYS_BOOTADDR     = 1     :: no traslation
+       SW6(3-5) = 000          CONFIG_SYS_REFCLKSEL    = 000   :: 100MHZ
+       SW6(6)   = 1            CONFIG_SYS_SERROM_ADDR= 1       ::
+       SW6(7)   = 1            CONFIG_SYS_MEMDEBUG     = 1     ::
+       SW6(8)   = 1            CONFIG_SYS_DDRDEBUG     = 1     ::
 
        SW8(1)   = 1            ACZ_SYNC        = 1     :: 48MHz on TP49
        SW8(2)   = 1            ACB_SYNC        = 1     :: THRMTRIP disabled
@@ -74,7 +74,7 @@ Switches:
        SW8(5)   = 0            SUSLED          = 0     :: SouthBridge Mode
        SW8(6)   = 0            SPREAD          = 0     :: REFCLK SSCG Disabled
        SW8(7)   = 1            ACPWR           = 1     :: non-battery
-       SW8(8)   = 0            CFG_IDWP        = 0     :: write enable
+       SW8(8)   = 0            CONFIG_SYS_IDWP = 0     :: write enable
 
 
 3. Flash U-Boot
index 6dac24cd90adcfb0eb8e73892882ce27ea8cd955..bf80bc0a5852447acbb4a42ec6d260df70c8c267 100644 (file)
@@ -95,7 +95,7 @@ Configuration Options:
       CONFIG_MTD_NAND_ECC_YAFFS would be another useful choice for
       someone to implement.
 
-   CFG_MAX_NAND_DEVICE
+   CONFIG_SYS_MAX_NAND_DEVICE
       The maximum number of NAND devices you want to support.
 
 NAND Interface:
@@ -164,7 +164,7 @@ More Definitions:
    These definitions are needed in the board configuration for now, but
    may really belong in a header file.
    TODO: Figure which ones are truly configuration settings and rename
-        them to CFG_NAND_... and move the rest somewhere appropriate.
+        them to CONFIG_SYS_NAND_... and move the rest somewhere appropriate.
 
    #define SECTORSIZE 512
    #define ADDR_COLUMN 1
@@ -174,7 +174,7 @@ More Definitions:
    #define NAND_MAX_FLOORS 1
    #define NAND_MAX_CHIPS 1
 
-   #define CFG_DAVINCI_BROKEN_ECC
+   #define CONFIG_SYS_DAVINCI_BROKEN_ECC
       Versions of U-Boot <= 1.3.3 and Montavista Linux kernels
       generated bogus ECCs on large-page NAND. Both large and small page
       NAND ECCs were incompatible with the Linux davinci git tree (since
index 2f1148975ae061afb10c1b1a5ef5de67a1a0df6f..7f349380810def91f731231e94a8755359c6b64d 100644 (file)
@@ -68,11 +68,11 @@ port are not currently implemented.
 2.1 Nios-specific Options/Settings
 -----------------------------------
 All configuration options/settings that are specific to Nios begin
-with "CONFIG_NIOS_", "CFG_NIOS_", or "CFG_NIOS_CPU_".
+with "CONFIG_NIOS_", "CONFIG_SYS_NIOS_", or "CONFIG_SYS_NIOS_CPU_".
 
 The configuration follows a two-stage process. In the first stage
 the NIOS CPU core will defined like defined in Alteras SOPC Builder.
-At this point we use the "CFG_NIOS_CPU_" defines exclusively. For
+At this point we use the "CONFIG_SYS_NIOS_CPU_" defines exclusively. For
 more informations about all the definitions you have to setup see
 into current board configurations and doc/README.nios_CFG_NIOS_CPU.
 
@@ -85,41 +85,41 @@ description).
 
 CONFIG_NIOS -- defined for all Nios-32 boards.
 
-CFG_NIOS_CONSOLE -- the base address of the console UART or the JTAG
+CONFIG_SYS_NIOS_CONSOLE -- the base address of the console UART or the JTAG
        stdio port. To enable a console via JTAG, define
        CONFIG_CONSOLE_JTAG and set CGF_NIOS_CONSOLE to the base address
        of the JTAG stdio port (normally OCI base + 0x00fa). Then
        run nios-console with the -w option.
        (standard-32: nasys_uart_0 resp. na_uart1_base).
 
-CFG_NIOS_FIXEDBAUD -- defined if the console UART PTF fixed_baud
+CONFIG_SYS_NIOS_FIXEDBAUD -- defined if the console UART PTF fixed_baud
        parameter is set to '1'.
 
-CFG_NIOS_MULT_HW -- use full hardware multiply (not yet implemented).
+CONFIG_SYS_NIOS_MULT_HW -- use full hardware multiply (not yet implemented).
 
-CFG_NIOS_MULT_MSTEP -- use hardware assisted multiply using the
+CONFIG_SYS_NIOS_MULT_MSTEP -- use hardware assisted multiply using the
        MSTEP instruction (not yet implemented).
 
-CFG_NIOS_TMRBASE -- the base address of the timer used to support
+CONFIG_SYS_NIOS_TMRBASE -- the base address of the timer used to support
        xxx_timer routines (e.g. set_timer(), get_timer(), etc.).
        (standard-32: nasys_timer_1 resp. na_lo_priority_timer2_base).
 
-CFG_NIOS_TMRIRQ -- the interrupt request (vector number) assigned to
+CONFIG_SYS_NIOS_TMRIRQ -- the interrupt request (vector number) assigned to
        the timer. (standard-32: nasys_timer_1_irq resp.
        na_low_priority_timer2_irq).
 
-CFG_NIOS_TMRMS -- the period of the timer in milliseconds.
+CONFIG_SYS_NIOS_TMRMS -- the period of the timer in milliseconds.
 
-CFG_NIOS_TMRCNT -- the preloadable counter value for the timer if it has
+CONFIG_SYS_NIOS_TMRCNT -- the preloadable counter value for the timer if it has
        no fixed period.
 
-CFG_NIOS_ASMIBASE -- the base address of the ASMI peripheral.
+CONFIG_SYS_NIOS_ASMIBASE -- the base address of the ASMI peripheral.
        (standard-32: na_asmi_base).
 
-CFG_NIOS_SPIBASE -- the base address of the SPI master (!) peripheral.
+CONFIG_SYS_NIOS_SPIBASE -- the base address of the SPI master (!) peripheral.
        (nasys_spi_0)
 
-CFG_NIOS_SPIBITS -- the amount of configured SPI data bits in PTF.
+CONFIG_SYS_NIOS_SPIBITS -- the amount of configured SPI data bits in PTF.
        This value can be 8 or 16 only! (PTF: databits)
 
 
@@ -128,7 +128,7 @@ CFG_NIOS_SPIBITS -- the amount of configured SPI data bits in PTF.
 Some 'standard' U-Boot options/settings are treated differently in
 the Nios port. These are described below.
 
-CFG_GBL_DATA_OFFSET -- in the Nios port, this is the offset of the
+CONFIG_SYS_GBL_DATA_OFFSET -- in the Nios port, this is the offset of the
        global data structure in the Nios memory space. More simply,
        the address of global data.
 
@@ -156,17 +156,17 @@ but does not appear in the programmer's manual.
 4.1 Boot process over GERMS
 ---------------------------
 When the NIOS CPU catch a reset signal it will begin to be running
-code from CFG_NIOS_CPU_RST_VECT. Normally at this place it will
+code from CONFIG_SYS_NIOS_CPU_RST_VECT. Normally at this place it will
 find the GERMS monitor. That's the case for the generic NIOS CPU
 configuration "standard_32". When the GERMS monitor starts running,
 it performs important system initializations and then looks for
 executable code in flash, using the following steps:
 
-    1. Examining the two bytes at CFG_NIOS_CPU_FLASH_BASE + 0x04000C.
-    2. Examining the button 0 on the PIO CFG_NIOS_CPU_BUTTON_PIO.
+    1. Examining the two bytes at CONFIG_SYS_NIOS_CPU_FLASH_BASE + 0x04000C.
+    2. Examining the button 0 on the PIO CONFIG_SYS_NIOS_CPU_BUTTON_PIO.
     3. If the button is not pressed and the two bytes contain 'N'
        and 'i', the monitor executes a CALL to location
-       CFG_NIOS_CPU_FLASH_BASE + 0x040000.
+       CONFIG_SYS_NIOS_CPU_FLASH_BASE + 0x040000.
     4. If the code is not executed in step 3 or the code returns,
        then prints an 8-digit version number to STDOUT and waits for
        user commands from STDIN.
@@ -181,9 +181,9 @@ of application software in flash memory. If found, the processor
 immediately executes the code. To return program execution to the
 GERMS monitor (that is, avoid running code stored in flash memory):
 
-    1. Hold down CFG_NIOS_CPU_BUTTON_PIO, button number 0.
+    1. Hold down CONFIG_SYS_NIOS_CPU_BUTTON_PIO, button number 0.
     2. Press then release the CPU reset button.
-    3. Release CFG_NIOS_CPU_BUTTON_PIO, button number 0.
+    3. Release CONFIG_SYS_NIOS_CPU_BUTTON_PIO, button number 0.
 
 
 5. DEBUGGING WITH GDB
@@ -354,7 +354,7 @@ for those interested in contributing:
 -Add boot support for ucLinux (niosnommu).
 
 -Implement (don't copy Altera code) the __mulxx routines using the
- MSTEP and MUL instructions (e.g. CFG_NIOS_MULT_HW and CFG_NIOS_MULT_MSTEP).
+ MSTEP and MUL instructions (e.g. CONFIG_SYS_NIOS_MULT_HW and CONFIG_SYS_NIOS_MULT_MSTEP).
 
 
 Regards,
diff --git a/doc/README.nios_CFG_NIOS_CPU b/doc/README.nios_CFG_NIOS_CPU
deleted file mode 100644 (file)
index e38ed91..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-
-===============================================================================
-       C F G _ N I O S _ C P U _ *   v s .   N I O S   S D K
-===============================================================================
-
-When ever you have to make a new NIOS CPU configuration you can use this table
-as a reference list to the original NIOS SDK symbols made by Alteras SOPC
-Builder. Look into excalibur.h and excalibur.s in your SDK path cpu_sdk/inc.
-Symbols beginning with a '[ptf]:' are coming from your SOPC sytem description
-(PTF file) in sections WIZARD_SCRIPT_ARGUMENTS or SYSTEM_BUILDER_INFO.
-
-C O R E                                        N I O S   S D K                 [1],[7]
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_CLK                                       nasys_clock_freq
-CFG_NIOS_CPU_ICACHE                                    nasys_icache_size
-CFG_NIOS_CPU_DCACHE                                    nasys_dcache_size
-CFG_NIOS_CPU_REG_NUMS                                  nasys_nios_num_regs
-CFG_NIOS_CPU_MUL                                       __nios_use_multiply__
-CFG_NIOS_CPU_MSTEP                                     __nios_use_mstep__
-CFG_NIOS_CPU_STACK                                     nasys_stack_top
-CFG_NIOS_CPU_VEC_BASE                                  nasys_vector_table
-CFG_NIOS_CPU_VEC_SIZE                                  nasys_vector_table_size
-CFG_NIOS_CPU_VEC_NUMS
-CFG_NIOS_CPU_RST_VECT                                  nasys_reset_address
-CFG_NIOS_CPU_DBG_CORE                                  nasys_debug_core
-CFG_NIOS_CPU_RAM_BASE          na_onchip_ram_64_kbytes
-CFG_NIOS_CPU_RAM_SIZE          na_onchip_ram_64_kbytes_size
-CFG_NIOS_CPU_ROM_BASE          na_boot_monitor_rom
-CFG_NIOS_CPU_ROM_SIZE          na_boot_monitor_rom_size
-CFG_NIOS_CPU_OCI_BASE                                  nasys_oci_core
-CFG_NIOS_CPU_OCI_SIZE
-CFG_NIOS_CPU_SRAM_BASE         na_ext_ram              nasys_program_mem
-                                                       nasys_data_mem
-CFG_NIOS_CPU_SRAM_SIZE         na_ext_ram_size         nasys_program_mem_size
-                                                       nasys_data_mem_size
-CFG_NIOS_CPU_SDRAM_BASE                 na_sdram
-CFG_NIOS_CPU_SDRAM_SIZE                 na_sdram_size
-CFG_NIOS_CPU_FLASH_BASE                 na_ext_flash           nasys_main_flash
-                                                       nasys_am29lv065d_flash_0
-                                                       nasys_flash_0
-CFG_NIOS_CPU_FLASH_SIZE            na_ext_flash_size           nasys_main_flash_size
-
-T I M E R                              N I O S   S D K                     [3]
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_TIMER_NUMS                                        nasys_timer_count
-CFG_NIOS_CPU_TIMER[0-9]                                        nasys_timer_[0-9]
-CFG_NIOS_CPU_TIMER[0-9]_IRQ                            nasys_timer_[0-9]_irq
-CFG_NIOS_CPU_TIMER[0-9]_PER                            [ptf]:period
-                                                       [ptf]:period_units
-                                                       [ptf]:mult
-CFG_NIOS_CPU_TIMER[0-9]_AR                             [ptf]:always_run
-CFG_NIOS_CPU_TIMER[0-9]_FP                             [ptf]:fixed_period
-CFG_NIOS_CPU_TIMER[0-9]_SS                             [ptf]:snapshot
-
-U A R T                                        N I O S   S D K                     [2]
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_UART_NUMS                                 nasys_uart_count
-CFG_NIOS_CPU_UART[0-9]                                 nasys_uart_[0-9]
-CFG_NIOS_CPU_UART[0-9]_IRQ                             nasys_uart_[0-9]_irq
-CFG_NIOS_CPU_UART[0-9]_BR                              [ptf]:baud
-CFG_NIOS_CPU_UART[0-9]_DB                              [ptf]:data_bits
-CFG_NIOS_CPU_UART[0-9]_SB                              [ptf]:stop_bits
-CFG_NIOS_CPU_UART[0-9]_PA                              [ptf]:parity
-CFG_NIOS_CPU_UART[0-9]_HS                              [ptf]:use_cts_rts
-CFG_NIOS_CPU_UART[0-9]_EOP                             [ptf]:use_eop_register
-
-P I O                                  N I O S   S D K                     [4]
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_PIO_NUMS                                  nasys_pio_count
-CFG_NIOS_CPU_PIO[0-9]                                  nasys_pio_[0-9]
-CFG_NIOS_CPU_PIO[0-9]_IRQ                              nasys_pio_[0-9]_irq
-CFG_NIOS_CPU_PIO[0-9]_BITS                             [ptf]:Data_Width
-CFG_NIOS_CPU_PIO[0-9]_TYPE                             [ptf]:has_tri
-                                                       [ptf]:has_out
-                                                       [ptf]:has_in
-CFG_NIOS_CPU_PIO[0-9]_CAP                              [ptf]:capture
-CFG_NIOS_CPU_PIO[0-9]_EDGE                             [ptf]:edge_type
-CFG_NIOS_CPU_PIO[0-9]_ITYPE                            [ptf]:irq_type
-
-S P I                                  N I O S   S D K                     [6]
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_SPI_NUMS                                  nasys_spi_count
-CFG_NIOS_CPU_SPI[0-9]                                  nasys_spi_[0-9]
-CFG_NIOS_CPU_SPI[0-9]_IRQ                              nasys_spi_[0-9]_irq
-CFG_NIOS_CPU_SPI[0-9]_BITS                             [ptf]:databits
-CFG_NIOS_CPU_SPI[0-9]_MA                               [ptf]:ismaster
-CFG_NIOS_CPU_SPI[0-9]_SLN                              [ptf]:numslaves
-CFG_NIOS_CPU_SPI[0-9]_TCLK                             [ptf]:targetclock
-CFG_NIOS_CPU_SPI[0-9]_TDELAY                           [ptf]:targetdelay
-CFG_NIOS_CPU_SPI[0-9]_*                                        [ptf]:*
-
-I D E                                  N I O S   S D K
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_IDE_NUMS                                  nasys_usersocket_count
-CFG_NIOS_CPU_IDE[0-9]                                  nasys_usersocket_[0-9]
-
-A S M I                                        N I O S   S D K                     [5]
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_ASMI_NUMS                                 nasys_asmi_count
-CFG_NIOS_CPU_ASMI[0-9]                                 nasys_asmi_[0-9]
-CFG_NIOS_CPU_ASMI[0-9]_IRQ                             nasys_asmi_[0-9]_irq
-
-E t h e r n e t          ( L A N )             N I O S   S D K
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_LAN_NUMS
-CFG_NIOS_CPU_LAN[0-9]_BASE     na_lan91c111
-CFG_NIOS_CPU_LAN[0-9]_OFFS                             LAN91C111_REGISTERS_OFFSET
-CFG_NIOS_CPU_LAN[0-9]_IRQ      na_lan91c111_irq
-CFG_NIOS_CPU_LAN[0-9]_BUSW                             LAN91C111_DATA_BUS_WIDTH
-CFG_NIOS_CPU_LAN[0-9]_TYPE
-
-s y s t e m   c o m p o s i n g                N I O S   S D K
--------------------------------------------------------------------------------
-CFG_NIOS_CPU_TICK_TIMER                (na_low_priority_timer2)
-CFG_NIOS_CPU_USER_TIMER                (na_timer1)
-CFG_NIOS_CPU_BUTTON_PIO                (na_button_pio)
-CFG_NIOS_CPU_LCD_PIO           (na_lcd_pio)
-CFG_NIOS_CPU_LED_PIO           (na_led_pio)
-CFG_NIOS_CPU_SEVENSEG_PIO      (na_seven_seg_pio)
-CFG_NIOS_CPU_RECONF_PIO                (na_reconfig_request_pio)
-CFG_NIOS_CPU_CFPRESENT_PIO     (na_cf_present_pio)
-CFG_NIOS_CPU_CFPOWER_PIO       (na_cf_power_pio)
-CFG_NIOS_CPU_CFATASEL_PIO      (na_cf_ata_select_pio)
-CFG_NIOS_CPU_USER_SPI          (na_spi)
-
-
-===============================================================================
-       R E F E R E N C E S
-===============================================================================
-[1]    http://www.altera.com/literature/ds/ds_nioscpu.pdf
-[2]    http://www.altera.com/literature/ds/ds_nios_uart.pdf
-[3]    http://www.altera.com/literature/ds/ds_nios_timer.pdf
-[4]    http://www.altera.com/literature/ds/ds_nios_pio.pdf
-[5]    http://www.altera.com/literature/ds/ds_nios_asmi.pdf
-[6]    http://www.altera.com/literature/ds/ds_nios_spi.pdf
-[7]    http://www.altera.com/literature/ds/ds_legacy_sdram_ctrl.pdf
-
-
-===============================================================================
-Stephan Linz <linz@li-pro.net>
index 2e04abacc8c287a702ffd7898999ff3866fea232..0a5f99fb1343013c60f0ba47fd7ea7a5329195d9 100644 (file)
@@ -47,25 +47,25 @@ the cpu-specific code (vs. board-specific code), so you should
 at least review these before deciding to make any changes ... it
 will probably save you some headaches ;-)
 
-CFG_SDRAM_BASE - The virtual address where SDRAM is mapped (always 0)
+CONFIG_SYS_SDRAM_BASE - The virtual address where SDRAM is mapped (always 0)
 
-CFG_FLASH_BASE - The virtual address where FLASH is mapped.
+CONFIG_SYS_FLASH_BASE - The virtual address where FLASH is mapped.
 
-CFG_PCI_MEMBASE - The virtual address where PCI-bus memory is mapped.
+CONFIG_SYS_PCI_MEMBASE - The virtual address where PCI-bus memory is mapped.
     This mapping provides access to PCI-bus memory.
 
-CFG_PERIPHERAL_BASE - The virtual address where the 440 memory-mapped
+CONFIG_SYS_PERIPHERAL_BASE - The virtual address where the 440 memory-mapped
     peripherals are mapped. (e.g. -- UART registers, IIC registers, etc).
 
-CFG_ISRAM_BASE - The virtual address where the 440 internal SRAM is
+CONFIG_SYS_ISRAM_BASE - The virtual address where the 440 internal SRAM is
     mapped. The internal SRAM is equivalent to 405gp OCM and is used
     for the initial stack.
 
-CFG_PCI_BASE - The virtual address where the 440 PCI-x bridge config
+CONFIG_SYS_PCI_BASE - The virtual address where the 440 PCI-x bridge config
     registers are mapped.
 
-CFG_PCI_TARGBASE - The PCI address that is mapped to the virtual address
-    defined by CFG_PCI_MEMBASE.
+CONFIG_SYS_PCI_TARGBASE - The PCI address that is mapped to the virtual address
+    defined by CONFIG_SYS_PCI_MEMBASE.
 
 
 UART / SERIAL
@@ -73,7 +73,7 @@ UART / SERIAL
 
 The UART port works fine when an external serial clock is provided
 (like the one on the Ebony board) and when using internal clocking.
-This is controlled with the CFG_EXT_SERIAL_CLOCK flag. When using
+This is controlled with the CONFIG_SYS_EXT_SERIAL_CLOCK flag. When using
 internal clocking, the "ideal baud rate" settings in the 440GP
 user manual are automatically calculated.
 
@@ -94,7 +94,7 @@ cause problems when a probe (read) is performed (for example the
 CDCV850 clock controller at address 0x69 on the ebony board).
 
 To prevent probing certain addresses you can define the
-CFG_I2C_NOPROBES macro in your board-specific header file. When
+CONFIG_SYS_I2C_NOPROBES macro in your board-specific header file. When
 defined, all specified addresses are skipped during a probe.
 The addresses that are skipped will be displayed in the output
 of the iprobe command.
@@ -102,12 +102,12 @@ of the iprobe command.
 For example, to prevent probing address 0x69, define the macro as
 follows:
 
-#define CFG_I2C_NOPROBES {0x69}
+#define CONFIG_SYS_I2C_NOPROBES {0x69}
 
 Similarly, to prevent probing addresses 0x69 and 0x70, define the
 macro a:
 
-#define CFG_I2C_NOPROBES {0x69, 0x70}
+#define CONFIG_SYS_I2C_NOPROBES {0x69, 0x70}
 
 
 DDR SDRAM CONTROLLER
@@ -144,7 +144,7 @@ utilities once you get to the U-Boot command prompt. NOTE: the default
 The cpu-specific code sets up a default pci_controller structure
 that maps in a single PCI I/O space and PCI memory space. The I/O
 space begins at PCI I/O address 0 and the PCI memory space is
-256 MB starting at PCI address CFG_PCI_TARGBASE. After the
+256 MB starting at PCI address CONFIG_SYS_PCI_TARGBASE. After the
 pci_controller structure is initialized, the cpu-specific code will
 call the routine pci_pre_init(). This routine is implemented by
 board-specific code & is where the board can over-ride/extend the
@@ -157,7 +157,7 @@ initialization continues.
 The default 440GP PCI target configuration is minimal -- it assumes that
 the strapping registers are set as necessary. Since the strapping bits
 provide very limited flexibility, you may want to customize the boards
-target configuration. If CFG_PCI_TARGET_INIT is defined, the cpu-specific
+target configuration. If CONFIG_SYS_PCI_TARGET_INIT is defined, the cpu-specific
 code will call the routine pci_target_init() which you must implement
 in your board-specific code.
 
@@ -166,7 +166,7 @@ initializing the subsystem id and subsystem vendor id, and then ensuring
 that the 'enable host configuration' bit in the PCIX0_BRDGOPT2 is set.
 
 The default PCI master initialization maps in 256 MB of pci memory
-starting at PCI address CFG_PCI_MEMBASE. To customize this, define
+starting at PCI address CONFIG_SYS_PCI_MEMBASE. To customize this, define
 PCI_MASTER_INIT. This will call the routine pci_master_init() in your
 board-specific code rather than performing the default master
 initialization.
index 40f78159f59f40432cf863a5c6912d15a06a89e6..ad61d4261b66a00564c741db0176ca51ecece408 100644 (file)
@@ -35,7 +35,7 @@ just after switching the console:
        setenv sout serial_scc; setenv baudrate 38400
 
 After that press 'enter' at the SCC console. Note that baudrates <38400
-are not allowed on LWMON with watchdog enabled (see CFG_BAUDRATE_TABLE in
+are not allowed on LWMON with watchdog enabled (see CONFIG_SYS_BAUDRATE_TABLE in
 include/configs/lwmon.h).
 
 
index 7992f7fb4c87e7b45cbbfc10dcfd60b2e0f5f56a..f6cca40d50663f86ea91067982c16e26def2aa3f 100644 (file)
@@ -34,7 +34,7 @@ a) cp the new Image on a position in RAM (here 0x300000)
 
 b) Initialize the SHA1 sum in the Image with 0x00
    The SHA1 sum is stored in Flash at:
-                          CFG_MONITOR_BASE + CFG_MONITOR_LEN + SHA1_SUM_POS
+                          CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN + SHA1_SUM_POS
    for the pcs440ep Flash:      0xfffa0000 +         0x60000 +        -0x20
                            = 0xffffffe0
    for the example in RAM:        0x300000 +         0x60000 +        -0x20
index 677253251856a60c24e043d5dc032faa3e023b7f..a26e3df0da606af9c278f70a4e90d87417ef5c57 100644 (file)
@@ -13,7 +13,7 @@ The following actions are taken if "silent" is set at boot time:
  - When the console devices have been initialized, "stdout" and
    "stderr" are set to "nulldev", so subsequent messages are
    suppressed automatically. Make sure to enable "nulldev" by
-   #defining CFG_DEVICE_NULLDEV in your board config file.
+   #defining CONFIG_SYS_DEVICE_NULLDEV in your board config file.
 
  - When booting a linux kernel, the "bootargs" are fixed up so that
    the argument "console=" will be in the command line, no matter how
index 6185cd838ce1ad16b3ce48d1eb518168de02babc..002818c226b8e15d714e87b788d4bba8396575f6 100644 (file)
@@ -160,7 +160,7 @@ Note on current image address
 
 When bootm is called without arguments, the image at current image address is
 booted. The current image address is the address set most recently by a load
-command, etc, and is by default equal to CFG_LOAD_ADDR. For example, consider
+command, etc, and is by default equal to CONFIG_SYS_LOAD_ADDR. For example, consider
 the following commands:
 
 tftp 200000 /tftpboot/kernel
index 52fd1080e61d8a61dd9079b01e40d39a243b7899..2445e8c62e7e5d0568575f703994a3b909447e9a 100644 (file)
@@ -676,7 +676,7 @@ void scsi_low_level_init(int busdevfunc)
 
        linkmap = probe_ent->link_port_map;
 
-       for (i = 0; i < CFG_SCSI_MAX_SCSI_ID; i++) {
+       for (i = 0; i < CONFIG_SYS_SCSI_MAX_SCSI_ID; i++) {
                if (((linkmap >> i) & 0x01)) {
                        if (ahci_port_start((u8) i)) {
                                printf("Can not start port %d\n", i);
index 4c26b36f5ab2e52b59e4c1551982309a9ebbfa07..ec3768711a423048a356c31dfa8deabc757655ce 100644 (file)
@@ -35,7 +35,7 @@
 #include <ide.h>
 #include <ata.h>
 
-extern block_dev_desc_t sata_dev_desc[CFG_SATA_MAX_DEVICE];
+extern block_dev_desc_t sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE];
 extern int curr_device;
 
 #define DEBUG_SATA 0           /*For debug prints set DEBUG_SATA to 1 */
@@ -173,10 +173,10 @@ init_sata (int dev)
            iobase4 | ATA_PCI_CTL_OFS;
        port[1].ioaddr.bmdma_addr = iobase5 + 0x8;
 
-       for (i = 0; i < CFG_SATA_MAXBUS; i++)
+       for (i = 0; i < CONFIG_SYS_SATA_MAXBUS; i++)
                sata_port (&port[i].ioaddr);
 
-       for (i = 0; i < CFG_SATA_MAXBUS; i++) {
+       for (i = 0; i < CONFIG_SYS_SATA_MAXBUS; i++) {
                if (!(sata_bus_probe (i))) {
                        port[i].port_state = 0;
                        printf ("SATA#%d port is not present \n", i);
@@ -190,15 +190,15 @@ init_sata (int dev)
                }
        }
 
-       for (i = 0; i < CFG_SATA_MAXBUS; i++) {
+       for (i = 0; i < CONFIG_SYS_SATA_MAXBUS; i++) {
                u8 j, devno;
 
                if (port[i].port_state == 0)
                        continue;
-               for (j = 0; j < CFG_SATA_DEVS_PER_BUS; j++) {
+               for (j = 0; j < CONFIG_SYS_SATA_DEVS_PER_BUS; j++) {
                        sata_identify (i, j);
                        set_Feature_cmd (i, j);
-                       devno = i * CFG_SATA_DEVS_PER_BUS + j;
+                       devno = i * CONFIG_SYS_SATA_DEVS_PER_BUS + j;
                        if ((sata_dev_desc[devno].lba > 0) &&
                            (sata_dev_desc[devno].blksz > 0)) {
                                dev_print (&sata_dev_desc[devno]);
@@ -206,7 +206,7 @@ init_sata (int dev)
                                init_part (&sata_dev_desc[devno]);
                                if (curr_device < 0)
                                        curr_device =
-                                           i * CFG_SATA_DEVS_PER_BUS + j;
+                                           i * CONFIG_SYS_SATA_DEVS_PER_BUS + j;
                        }
                }
        }
@@ -271,7 +271,7 @@ sata_bus_softreset (int num)
 
        port[num].dev_mask = 0;
 
-       for (i = 0; i < CFG_SATA_DEVS_PER_BUS; i++) {
+       for (i = 0; i < CONFIG_SYS_SATA_DEVS_PER_BUS; i++) {
                if (!(sata_devchk (&port[num].ioaddr, i))) {
                        PRINTF ("dev_chk failed for dev#%d\n", i);
                } else {
@@ -328,7 +328,7 @@ sata_bus_softreset (int num)
 void
 sata_identify (int num, int dev)
 {
-       u8 cmd = 0, status = 0, devno = num * CFG_SATA_DEVS_PER_BUS + dev;
+       u8 cmd = 0, status = 0, devno = num * CONFIG_SYS_SATA_DEVS_PER_BUS + dev;
        u16 iobuf[ATA_SECT_SIZE];
        u64 n_sectors = 0;
        u8 mask = 0;
@@ -564,10 +564,10 @@ sata_read (int device, ulong blknr,lbaint_t blkcnt, void * buff)
        }
 #endif
        /*Port Number */
-       num = device / CFG_SATA_DEVS_PER_BUS;
+       num = device / CONFIG_SYS_SATA_DEVS_PER_BUS;
        /*dev on the port */
-       if (device >= CFG_SATA_DEVS_PER_BUS)
-               dev = device - CFG_SATA_DEVS_PER_BUS;
+       if (device >= CONFIG_SYS_SATA_DEVS_PER_BUS)
+               dev = device - CONFIG_SYS_SATA_DEVS_PER_BUS;
        else
                dev = device;
 
@@ -671,10 +671,10 @@ sata_write (int device, ulong blknr,lbaint_t blkcnt, void * buff)
        }
 #endif
        /*Port Number */
-       num = device / CFG_SATA_DEVS_PER_BUS;
+       num = device / CONFIG_SYS_SATA_DEVS_PER_BUS;
        /*dev on the Port */
-       if (device >= CFG_SATA_DEVS_PER_BUS)
-               dev = device - CFG_SATA_DEVS_PER_BUS;
+       if (device >= CONFIG_SYS_SATA_DEVS_PER_BUS)
+               dev = device - CONFIG_SYS_SATA_DEVS_PER_BUS;
        else
                dev = device;
 
index f9f0194706b3769684e605fa8308664bb55fb921..11885af20e94b242275ec6f5d9544c7ffcb29789 100644 (file)
@@ -88,7 +88,7 @@ int init_sata (int dev);
 #endif
 
 #ifdef DRV_DECL                        /*Defines Driver Specific variables */
-struct sata_port port[CFG_SATA_MAXBUS];
+struct sata_port port[CONFIG_SYS_SATA_MAXBUS];
 #endif
 
 #endif /* __ATA_PIIX_H__ */
index 55f593a4915def5d66469a2adc013f76b06a6133..2009d1ecdac095cdb2aa7b497833ac21d1909a9c 100644 (file)
 #include <fis.h>
 #include "fsl_sata.h"
 
-extern block_dev_desc_t sata_dev_desc[CFG_SATA_MAX_DEVICE];
+extern block_dev_desc_t sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE];
 
-#ifndef CFG_SATA1_FLAGS
-       #define CFG_SATA1_FLAGS FLAGS_DMA
+#ifndef CONFIG_SYS_SATA1_FLAGS
+       #define CONFIG_SYS_SATA1_FLAGS  FLAGS_DMA
 #endif
-#ifndef CFG_SATA2_FLAGS
-       #define CFG_SATA2_FLAGS FLAGS_DMA
+#ifndef CONFIG_SYS_SATA2_FLAGS
+       #define CONFIG_SYS_SATA2_FLAGS  FLAGS_DMA
 #endif
 
 static struct fsl_sata_info fsl_sata_info[] = {
 #ifdef CONFIG_SATA1
-       {CFG_SATA1, CFG_SATA1_FLAGS},
+       {CONFIG_SYS_SATA1, CONFIG_SYS_SATA1_FLAGS},
 #else
        {0, 0},
 #endif
 #ifdef CONFIG_SATA2
-       {CFG_SATA2, CFG_SATA2_FLAGS},
+       {CONFIG_SYS_SATA2, CONFIG_SYS_SATA2_FLAGS},
 #else
        {0, 0},
 #endif
@@ -123,7 +123,7 @@ int init_sata(int dev)
        int i;
        fsl_sata_t *sata;
 
-       if (dev < 0 || dev > (CFG_SATA_MAX_DEVICE - 1)) {
+       if (dev < 0 || dev > (CONFIG_SYS_SATA_MAX_DEVICE - 1)) {
                printf("the sata index %d is out of ranges\n\r", dev);
                return -1;
        }
index 8399737ff53981de1f2c6bc42eaff241b2707cb0..351cf993cc3bb0202609bcb2fd4b91bf5a542472 100644 (file)
@@ -48,9 +48,9 @@ static u8 sata_chk_status (struct sata_ioports *ioaddr, u8 usealtstatus);
 static void msleep (int count);
 
 static u32 iobase[6] = { 0, 0, 0, 0, 0, 0};    /* PCI BAR registers for device */
-extern block_dev_desc_t sata_dev_desc[CFG_SATA_MAX_DEVICE];
+extern block_dev_desc_t sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE];
 
-static struct sata_port port[CFG_SATA_MAX_DEVICE];
+static struct sata_port port[CONFIG_SYS_SATA_MAX_DEVICE];
 
 static void output_data (struct sata_ioports *ioaddr, u16 * sect_buf, int words)
 {
index 052c3d3671a865b5dcd18e9b063b18a2f8bae8c8..e21fb9b69108aef90fd74eb7772922dcf81672b5 100644 (file)
  * #define CONFIG_PCI_PNP
  * NOTE it may also be necessary to define this if the default of 8 is
  * incorrect for the target board (e.g. the sequoia board requires 0).
- * #define CFG_PCI_CACHE_LINE_SIZE     0
+ * #define CONFIG_SYS_PCI_CACHE_LINE_SIZE      0
  *
  * #define CONFIG_CMD_IDE
  * #undef  CONFIG_IDE_8xx_DIRECT
  * #undef  CONFIG_IDE_LED
  * #undef  CONFIG_IDE_RESET
  * #define CONFIG_IDE_PREINIT
- * #define CFG_IDE_MAXBUS              2 - modify to suit
- * #define CFG_IDE_MAXDEVICE   (CFG_IDE_MAXBUS*2) - modify to suit
- * #define CFG_ATA_BASE_ADDR   0
- * #define CFG_ATA_IDE0_OFFSET 0
- * #define CFG_ATA_IDE1_OFFSET 0
- * #define CFG_ATA_DATA_OFFSET 0
- * #define CFG_ATA_REG_OFFSET  0
- * #define CFG_ATA_ALT_OFFSET  0x0004
+ * #define CONFIG_SYS_IDE_MAXBUS               2 - modify to suit
+ * #define CONFIG_SYS_IDE_MAXDEVICE    (CONFIG_SYS_IDE_MAXBUS*2) - modify to suit
+ * #define CONFIG_SYS_ATA_BASE_ADDR    0
+ * #define CONFIG_SYS_ATA_IDE0_OFFSET  0
+ * #define CONFIG_SYS_ATA_IDE1_OFFSET  0
+ * #define CONFIG_SYS_ATA_DATA_OFFSET  0
+ * #define CONFIG_SYS_ATA_REG_OFFSET   0
+ * #define CONFIG_SYS_ATA_ALT_OFFSET   0x0004
  *
  * The mapping for PCI IO-space.
  * NOTE this is the value for the sequoia board. Modify to suit.
- * #define CFG_PCI0_IO_SPACE   0xE8000000
+ * #define CONFIG_SYS_PCI0_IO_SPACE   0xE8000000
  */
 
 #include <common.h>
@@ -58,7 +58,7 @@
 #include <ide.h>
 #include <pci.h>
 
-extern ulong ide_bus_offset[CFG_IDE_MAXBUS];
+extern ulong ide_bus_offset[CONFIG_SYS_IDE_MAXBUS];
 
 int ide_preinit (void)
 {
@@ -67,7 +67,7 @@ int ide_preinit (void)
        int l;
 
        status = 1;
-       for (l = 0; l < CFG_IDE_MAXBUS; l++) {
+       for (l = 0; l < CONFIG_SYS_IDE_MAXBUS; l++) {
                ide_bus_offset[l] = -ATA_STATUS;
        }
        devbusfn = pci_find_device (0x1095, 0x0680, 0);
@@ -77,11 +77,11 @@ int ide_preinit (void)
                pci_read_config_dword (devbusfn, PCI_BASE_ADDRESS_0,
                                       (u32 *) &ide_bus_offset[0]);
                ide_bus_offset[0] &= 0xfffffff8;
-               ide_bus_offset[0] += CFG_PCI0_IO_SPACE;
+               ide_bus_offset[0] += CONFIG_SYS_PCI0_IO_SPACE;
                pci_read_config_dword (devbusfn, PCI_BASE_ADDRESS_2,
                                       (u32 *) &ide_bus_offset[1]);
                ide_bus_offset[1] &= 0xfffffff8;
-               ide_bus_offset[1] += CFG_PCI0_IO_SPACE;
+               ide_bus_offset[1] += CONFIG_SYS_PCI0_IO_SPACE;
                /* init various things - taken from the Linux driver */
                /* set PIO mode */
                pci_write_config_byte(devbusfn, 0x80, 0x00);
index 44e998b55644ca9b1a671a7f152f2d85b46eb1df..0c60bf80e5d32975ddd98bf463438d8c712dfba2 100644 (file)
@@ -426,7 +426,7 @@ void scsi_bus_reset(void)
 {
        unsigned char t;
        int i;
-       int end = CFG_SCSI_SPIN_UP_TIME*1000;
+       int end = CONFIG_SYS_SCSI_SPIN_UP_TIME*1000;
 
        t=scsi_read_byte(SCNTL1);
        scsi_write_byte(SCNTL1,(t | CRST));
@@ -836,10 +836,10 @@ void scsi_chip_init(void)
        scsi_write_byte(SCNTL0,0xC0); /* full arbitration no start, no message, parity disabled, master */
        scsi_write_byte(SCNTL1,0x00);
        scsi_write_byte(SCNTL2,0x00);
-#ifndef CFG_SCSI_SYM53C8XX_CCF    /* config value for none 40 mhz clocks */
+#ifndef CONFIG_SYS_SCSI_SYM53C8XX_CCF    /* config value for none 40 mhz clocks */
        scsi_write_byte(SCNTL3,0x13); /* synchronous clock 40/4=10MHz, asynchronous 40MHz */
 #else
-       scsi_write_byte(SCNTL3,CFG_SCSI_SYM53C8XX_CCF); /* config value for none 40 mhz clocks */
+       scsi_write_byte(SCNTL3,CONFIG_SYS_SCSI_SYM53C8XX_CCF); /* config value for none 40 mhz clocks */
 #endif
        scsi_write_byte(SCID,0x47); /* ID=7, enable reselection */
        scsi_write_byte(SXFER,0x00); /* synchronous transfer period 10MHz, asynchronous */
index dfaab528bf4cb914087fbe59173adb86022c376d..e8dff0acf6c0a9dd76e5dfed17a78603b3873fcc 100644 (file)
@@ -20,7 +20,7 @@
 
 /*
  * The Xilinx SystemACE chip support is activated by defining
- * CONFIG_SYSTEMACE to turn on support, and CFG_SYSTEMACE_BASE
+ * CONFIG_SYSTEMACE to turn on support, and CONFIG_SYS_SYSTEMACE_BASE
  * to set the base address of the device. This code currently
  * assumes that the chip is connected via a byte-wide bus.
  *
 /*
  * The ace_readw and writew functions read/write 16bit words, but the
  * offset value is the BYTE offset as most used in the Xilinx
- * datasheet for the SystemACE chip. The CFG_SYSTEMACE_BASE is defined
+ * datasheet for the SystemACE chip. The CONFIG_SYS_SYSTEMACE_BASE is defined
  * to be the base address for the chip, usually in the local
  * peripheral bus.
  */
-#if (CFG_SYSTEMACE_WIDTH == 8)
+#if (CONFIG_SYS_SYSTEMACE_WIDTH == 8)
 #if !defined(__BIG_ENDIAN)
-#define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)<<8) | \
-                       (readb(CFG_SYSTEMACE_BASE+off+1)))
-#define ace_writew(val, off) {writeb(val>>8, CFG_SYSTEMACE_BASE+off); \
-                             writeb(val, CFG_SYSTEMACE_BASE+off+1);}
+#define ace_readw(off) ((readb(CONFIG_SYS_SYSTEMACE_BASE+off)<<8) | \
+                       (readb(CONFIG_SYS_SYSTEMACE_BASE+off+1)))
+#define ace_writew(val, off) {writeb(val>>8, CONFIG_SYS_SYSTEMACE_BASE+off); \
+                             writeb(val, CONFIG_SYS_SYSTEMACE_BASE+off+1);}
 #else
-#define ace_readw(off) ((readb(CFG_SYSTEMACE_BASE+off)) | \
-                       (readb(CFG_SYSTEMACE_BASE+off+1)<<8))
-#define ace_writew(val, off) {writeb(val, CFG_SYSTEMACE_BASE+off); \
-                             writeb(val>>8, CFG_SYSTEMACE_BASE+off+1);}
+#define ace_readw(off) ((readb(CONFIG_SYS_SYSTEMACE_BASE+off)) | \
+                       (readb(CONFIG_SYS_SYSTEMACE_BASE+off+1)<<8))
+#define ace_writew(val, off) {writeb(val, CONFIG_SYS_SYSTEMACE_BASE+off); \
+                             writeb(val>>8, CONFIG_SYS_SYSTEMACE_BASE+off+1);}
 #endif
 #else
-#define ace_readw(off) (in16(CFG_SYSTEMACE_BASE+off))
-#define ace_writew(val, off) (out16(CFG_SYSTEMACE_BASE+off,val))
+#define ace_readw(off) (in16(CONFIG_SYS_SYSTEMACE_BASE+off))
+#define ace_writew(val, off) (out16(CONFIG_SYS_SYSTEMACE_BASE+off,val))
 #endif
 
 /* */
@@ -120,7 +120,7 @@ block_dev_desc_t *systemace_get_dev(int dev)
                /*
                 * Ensure the correct bus mode (8/16 bits) gets enabled
                 */
-               ace_writew(CFG_SYSTEMACE_WIDTH == 8 ? 0 : 0x0001, 0);
+               ace_writew(CONFIG_SYS_SYSTEMACE_WIDTH == 8 ? 0 : 0x0001, 0);
 
                init_part(&systemace_dev);
 
index b791ec0415b1e9254988e5b140067524daf3d34c..d753e9a72f778d5fbc03233ee382bcf7e2be12db 100644 (file)
@@ -81,7 +81,7 @@ typedef
        }
 dtt_cfg_t;
 
-dtt_cfg_t dttcfg[] = CFG_DTT_ADM1021;
+dtt_cfg_t dttcfg[] = CONFIG_SYS_DTT_ADM1021;
 
 int
 dtt_read (int sensor, int reg)
@@ -174,7 +174,7 @@ dtt_init (void)
        const char *const header = "DTT:   ";
 
        /* switch to correct I2C bus */
-       I2C_SET_BUS(CFG_DTT_BUS_NUM);
+       I2C_SET_BUS(CONFIG_SYS_DTT_BUS_NUM);
 
        for (i = 0; i < sizeof(sensors); i++) {
                if (_dtt_init(sensors[i]) != 0)
index 523f8bee514eca70d88388169f77e6d9c03074d6..d15a082df518821fbaabd44cc62d6a6590489a5a 100644 (file)
@@ -125,7 +125,7 @@ static int _dtt_init(int sensor)
     /*
      * Setup High Temp.
      */
-    val = ((CFG_DTT_MAX_TEMP * 2) << 7) & 0xff80;
+    val = ((CONFIG_SYS_DTT_MAX_TEMP * 2) << 7) & 0xff80;
     if (dtt_write(sensor, DTT_TEMP_HIGH, val) != 0)
        return 1;
     udelay(50000);                             /* Max 50ms */
@@ -133,7 +133,7 @@ static int _dtt_init(int sensor)
     /*
      * Setup Low Temp - hysteresis.
      */
-    val = (((CFG_DTT_MAX_TEMP - CFG_DTT_HYSTERESIS) * 2) << 7) & 0xff80;
+    val = (((CONFIG_SYS_DTT_MAX_TEMP - CONFIG_SYS_DTT_HYSTERESIS) * 2) << 7) & 0xff80;
     if (dtt_write(sensor, DTT_TEMP_LOW, val) != 0)
        return 1;
     udelay(50000);                             /* Max 50ms */
index 6a4d8e56db31a1c58cb5bbe42ca635998e069d00..80fb26f7b5ae9e40277a8a2239583e68fed1c7ef 100644 (file)
@@ -24,7 +24,7 @@
 #include <i2c.h>
 #include <dtt.h>
 
-#define DTT_I2C_DEV_CODE       CFG_I2C_DTT_ADDR /* Dallas Semi's DS1775 device code */
+#define DTT_I2C_DEV_CODE       CONFIG_SYS_I2C_DTT_ADDR /* Dallas Semi's DS1775 device code */
 #define DTT_READ_TEMP          0x0
 #define DTT_CONFIG             0x1
 #define DTT_TEMP_HYST          0x2
@@ -105,7 +105,7 @@ static int _dtt_init(int sensor)
        /*
         * Setup High Temp
         */
-       val = ((CFG_DTT_MAX_TEMP * 2) << 7) & 0xff80;
+       val = ((CONFIG_SYS_DTT_MAX_TEMP * 2) << 7) & 0xff80;
        if (dtt_write(sensor, DTT_TEMP_OS, val) != 0)
                return 1;
        udelay(50000);                  /* Max 50ms */
@@ -113,7 +113,7 @@ static int _dtt_init(int sensor)
        /*
         * Setup Low Temp - hysteresis
         */
-       val = (((CFG_DTT_MAX_TEMP - CFG_DTT_HYSTERESIS) * 2) << 7) & 0xff80;
+       val = (((CONFIG_SYS_DTT_MAX_TEMP - CONFIG_SYS_DTT_HYSTERESIS) * 2) << 7) & 0xff80;
        if (dtt_write(sensor, DTT_TEMP_HYST, val) != 0)
                return 1;
        udelay(50000);                  /* Max 50ms */
index dd246835362040cc365217d33bb5e88d84050e1c..7b5d893ff26447f1d7de3ac5aacef40cf8f1c3da 100644 (file)
@@ -124,11 +124,11 @@ static int _dtt_init(int const sensor)
        /*
         * Setup THIGH (upper-limit) and TLOW (lower-limit) registers
         */
-       val = CFG_DTT_MAX_TEMP << 7;
+       val = CONFIG_SYS_DTT_MAX_TEMP << 7;
        if (dtt_write(sensor, DTT_TEMP_HIGH, val))
                return -1;
 
-       val = CFG_DTT_MIN_TEMP << 7;
+       val = CONFIG_SYS_DTT_MIN_TEMP << 7;
        if (dtt_write(sensor, DTT_TEMP_LOW, val))
                return -1;
        /*
index 17379e53186cd9cf61dd65dd9b6000b4e44f2e80..81198215ff6cdf867df3ffd1ac88a06d6fd6b772 100644 (file)
@@ -32,8 +32,8 @@
 /*
  * Device code
  */
-#if defined(CFG_I2C_DTT_ADDR)
-#define DTT_I2C_DEV_CODE CFG_I2C_DTT_ADDR
+#if defined(CONFIG_SYS_I2C_DTT_ADDR)
+#define DTT_I2C_DEV_CODE CONFIG_SYS_I2C_DTT_ADDR
 #else
 #define DTT_I2C_DEV_CODE 0x48                  /* ON Semi's LM75 device */
 #endif
@@ -124,12 +124,12 @@ static int _dtt_init(int sensor)
        int val;
 
        /* Setup TSET ( trip point ) register */
-       val = ((CFG_DTT_MAX_TEMP * 2) << 7) & 0xff80; /* trip */
+       val = ((CONFIG_SYS_DTT_MAX_TEMP * 2) << 7) & 0xff80; /* trip */
        if (dtt_write(sensor, DTT_TEMP_SET, val) != 0)
                return 1;
 
        /* Setup THYST ( untrip point ) register - Hysteresis */
-       val = (((CFG_DTT_MAX_TEMP - CFG_DTT_HYSTERESIS) * 2) << 7) & 0xff80;
+       val = (((CONFIG_SYS_DTT_MAX_TEMP - CONFIG_SYS_DTT_HYSTERESIS) * 2) << 7) & 0xff80;
        if (dtt_write(sensor, DTT_TEMP_HYST, val) != 0)
                return 1;
 
@@ -157,7 +157,7 @@ int dtt_init (void)
 
        /* switch to correct I2C bus */
        old_bus = I2C_GET_BUS();
-       I2C_SET_BUS(CFG_DTT_BUS_NUM);
+       I2C_SET_BUS(CONFIG_SYS_DTT_BUS_NUM);
 
        for (i = 0; i < sizeof(sensors); i++) {
        if (_dtt_init(sensors[i]) != 0)
index 264553dfa84078d48ae5b24249da0ee8913b18fa..281a88b972fd7594faf7b90d9b41a04232842584 100644 (file)
@@ -26,7 +26,7 @@
 #include <asm/io.h>
 #include <asm/fsl_i2c.h>       /* HW definitions */
 
-#define I2C_TIMEOUT    (CFG_HZ / 4)
+#define I2C_TIMEOUT    (CONFIG_SYS_HZ / 4)
 
 #define I2C_READ_BIT  1
 #define I2C_WRITE_BIT 0
@@ -38,18 +38,18 @@ DECLARE_GLOBAL_DATA_PTR;
  * runs from ROM, and we can't switch buses because we can't modify
  * the global variables.
  */
-#ifdef CFG_SPD_BUS_NUM
-static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = CFG_SPD_BUS_NUM;
+#ifdef CONFIG_SYS_SPD_BUS_NUM
+static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = CONFIG_SYS_SPD_BUS_NUM;
 #else
 static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = 0;
 #endif
 
-static unsigned int i2c_bus_speed[2] = {CFG_I2C_SPEED, CFG_I2C_SPEED};
+static unsigned int i2c_bus_speed[2] = {CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SPEED};
 
 static const struct fsl_i2c *i2c_dev[2] = {
-       (struct fsl_i2c *) (CFG_IMMR + CFG_I2C_OFFSET),
-#ifdef CFG_I2C2_OFFSET
-       (struct fsl_i2c *) (CFG_IMMR + CFG_I2C2_OFFSET)
+       (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C_OFFSET),
+#ifdef CONFIG_SYS_I2C2_OFFSET
+       (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C2_OFFSET)
 #endif
 };
 
@@ -176,7 +176,7 @@ i2c_init(int speed, int slaveadd)
        struct fsl_i2c *dev;
        unsigned int temp;
 
-       dev = (struct fsl_i2c *) (CFG_IMMR + CFG_I2C_OFFSET);
+       dev = (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C_OFFSET);
 
        writeb(0, &dev->cr);                    /* stop I2C controller */
        udelay(5);                              /* let it shutdown in peace */
@@ -187,8 +187,8 @@ i2c_init(int speed, int slaveadd)
        writeb(0x0, &dev->sr);                  /* clear status register */
        writeb(I2C_CR_MEN, &dev->cr);           /* start I2C controller */
 
-#ifdef CFG_I2C2_OFFSET
-       dev = (struct fsl_i2c *) (CFG_IMMR + CFG_I2C2_OFFSET);
+#ifdef CONFIG_SYS_I2C2_OFFSET
+       dev = (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C2_OFFSET);
 
        writeb(0, &dev->cr);                    /* stop I2C controller */
        udelay(5);                              /* let it shutdown in peace */
@@ -386,7 +386,7 @@ i2c_reg_write(uchar i2c_addr, uchar reg, uchar val)
 
 int i2c_set_bus_num(unsigned int bus)
 {
-#ifdef CFG_I2C2_OFFSET
+#ifdef CONFIG_SYS_I2C2_OFFSET
        if (bus > 1) {
 #else
        if (bus > 0) {
index 1f6ba1f390c56d2c926bf02b376ac50a76ec20e1..eedad065fed7b997b9af2668f4086fcaed2e59d5 100644 (file)
 #define I2SR_IIF       (1 << 1)
 #define I2SR_RX_NO_AK  (1 << 0)
 
-#ifdef CFG_I2C_MX31_PORT1
+#ifdef CONFIG_SYS_I2C_MX31_PORT1
 #define I2C_BASE       0x43f80000
-#elif defined (CFG_I2C_MX31_PORT2)
+#elif defined (CONFIG_SYS_I2C_MX31_PORT2)
 #define I2C_BASE       0x43f98000
-#elif defined (CFG_I2C_MX31_PORT3)
+#elif defined (CONFIG_SYS_I2C_MX31_PORT3)
 #define I2C_BASE       0x43f84000
 #else
-#error "define CFG_I2C_MX31_PORTx to use the mx31 I2C driver"
+#error "define CONFIG_SYS_I2C_MX31_PORTx to use the mx31 I2C driver"
 #endif
 
 #ifdef DEBUG
index 388951db1f46a18d54af9f29d2af740859c37791..a4e6227c5d8db8377951257d006808575b3d880f 100644 (file)
@@ -205,7 +205,7 @@ int i2c_read (uchar chip, uint addr, int alen, uchar * buffer, int len)
        for (i = 0; i < len; i++) {
                if (i2c_read_byte (chip, addr + i, &buffer[i])) {
                        printf ("I2C read: I/O error\n");
-                       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+                       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
                        return 1;
                }
        }
@@ -230,7 +230,7 @@ int i2c_write (uchar chip, uint addr, int alen, uchar * buffer, int len)
        for (i = 0; i < len; i++) {
                if (i2c_write_byte (chip, addr + i, buffer[i])) {
                        printf ("I2C read: I/O error\n");
-                       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+                       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
                        return 1;
                }
        }
index d16cfb123f51b17865ef3955dee37eb0e988a1f4..134dccb61005b9d6ab25428c6fec2de54308929b 100644 (file)
@@ -252,7 +252,7 @@ int i2c_read (uchar chip, uint addr, int alen, uchar * buffer, int len)
        for (i = 0; i < len; i++) {
                if (i2c_read_byte (chip, addr + i, &buffer[i])) {
                        printf ("I2C read: I/O error\n");
-                       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+                       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
                        return 1;
                }
        }
@@ -277,7 +277,7 @@ int i2c_write (uchar chip, uint addr, int alen, uchar * buffer, int len)
        for (i = 0; i < len; i++) {
                if (i2c_write_byte (chip, addr + i, buffer[i])) {
                        printf ("I2C read: I/O error\n");
-                       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+                       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
                        return 1;
                }
        }
index 0a9feb67c7c5b8cd42c7fee834935547b41605b9..508d3d7d784be3ea6322f7e378806413b43d5e41 100644 (file)
@@ -75,7 +75,7 @@ static unsigned int i2c_bus_num __attribute__ ((section ("data"))) = 0;
 /*-----------------------------------------------------------------------
  * Local functions
  */
-#if !defined(CFG_I2C_INIT_BOARD)
+#if !defined(CONFIG_SYS_I2C_INIT_BOARD)
 static void  send_reset        (void);
 #endif
 static void  send_start        (void);
@@ -84,7 +84,7 @@ static void  send_ack (int);
 static int   write_byte        (uchar byte);
 static uchar read_byte (int);
 
-#if !defined(CFG_I2C_INIT_BOARD)
+#if !defined(CONFIG_SYS_I2C_INIT_BOARD)
 /*-----------------------------------------------------------------------
  * Send a reset sequence consisting of 9 clocks with the data signal high
  * to clock any confused device back into an idle state.  Also send a
@@ -224,7 +224,7 @@ unsigned int i2c_get_bus_num(void)
 int i2c_set_bus_num(unsigned int bus)
 {
 #if defined(CONFIG_I2C_MUX)
-       if (bus < CFG_MAX_I2C_BUS) {
+       if (bus < CONFIG_SYS_MAX_I2C_BUS) {
                i2c_bus_num = bus;
        } else {
                int     ret;
@@ -236,7 +236,7 @@ int i2c_set_bus_num(unsigned int bus)
                        return ret;
        }
 #else
-       if (bus >= CFG_MAX_I2C_BUS)
+       if (bus >= CONFIG_SYS_MAX_I2C_BUS)
                return -1;
        i2c_bus_num = bus;
 #endif
@@ -246,12 +246,12 @@ int i2c_set_bus_num(unsigned int bus)
 /* TODO: add 100/400k switching */
 unsigned int i2c_get_bus_speed(void)
 {
-       return CFG_I2C_SPEED;
+       return CONFIG_SYS_I2C_SPEED;
 }
 
 int i2c_set_bus_speed(unsigned int speed)
 {
-       if (speed != CFG_I2C_SPEED)
+       if (speed != CONFIG_SYS_I2C_SPEED)
                return -1;
 
        return 0;
@@ -297,7 +297,7 @@ static uchar read_byte(int ack)
  */
 void i2c_init (int speed, int slaveaddr)
 {
-#if defined(CFG_I2C_INIT_BOARD)
+#if defined(CONFIG_SYS_I2C_INIT_BOARD)
        /* call board specific i2c bus reset routine before accessing the   */
        /* environment, which might be in a chip on that bus. For details   */
        /* about this problem see doc/I2C_Edge_Conditions.                  */
@@ -342,7 +342,7 @@ int  i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)
        PRINTD("i2c_read: chip %02X addr %02X alen %d buffer %p len %d\n",
                chip, addr, alen, buffer, len);
 
-#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW
+#ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
        /*
         * EEPROM chips that implement "address overflow" are ones
         * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
@@ -354,7 +354,7 @@ int  i2c_read(uchar chip, uint addr, int alen, uchar *buffer, int len)
         * still be one byte because the extra address bits are
         * hidden in the chip address.
         */
-       chip |= ((addr >> (alen * 8)) & CFG_I2C_EEPROM_ADDR_OVERFLOW);
+       chip |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
 
        PRINTD("i2c_read: fix addr_overflow: chip %02X addr %02X\n",
                chip, addr);
index 695e393417e9587d977a1616c30f6bb66ad69cb8..fda822c52d37a026589f77000c525ace444e19f1 100644 (file)
@@ -60,14 +60,14 @@ static int i2c_read_byte (
                chan_offset = TSI108_I2C_SDRAM_OFFSET;
 
        /* Check if I2C operation is in progress */
-       temp = *(u32 *) (CFG_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2);
+       temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2);
 
        if (0 == (temp & (I2C_CNTRL2_RD_STATUS | I2C_CNTRL2_WR_STATUS |
                          I2C_CNTRL2_START))) {
                /* Set device address and operation (read = 0) */
                temp = (byte_addr << 16) | ((chip_addr & 0x07) << 8) |
                    ((chip_addr >> 3) & 0x0F);
-               *(u32 *) (CFG_TSI108_CSR_BASE + chan_offset + I2C_CNTRL1) =
+               *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + chan_offset + I2C_CNTRL1) =
                    temp;
 
                /* Issue the read command
@@ -75,13 +75,13 @@ static int i2c_read_byte (
                 * (size = 1 byte, lane = 0)
                 */
 
-               *(u32 *) (CFG_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2) =
+               *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2) =
                    (I2C_CNTRL2_START);
 
                /* Wait until operation completed */
                do {
                        /* Read I2C operation status */
-                       temp = *(u32 *) (CFG_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2);
+                       temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2);
 
                        if (0 == (temp & (I2C_CNTRL2_RD_STATUS | I2C_CNTRL2_START))) {
                                if (0 == (temp &
@@ -90,7 +90,7 @@ static int i2c_read_byte (
                                    ) {
                                        op_status = TSI108_I2C_SUCCESS;
 
-                                       temp = *(u32 *) (CFG_TSI108_CSR_BASE +
+                                       temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE +
                                                         chan_offset +
                                                         I2C_RD_DATA);
 
@@ -172,25 +172,25 @@ static int i2c_write_byte (uchar chip_addr,/* I2C device address on the bus */
        u32 op_status = TSI108_I2C_TIMEOUT_ERR;
 
        /* Check if I2C operation is in progress */
-       temp = *(u32 *) (CFG_TSI108_CSR_BASE + TSI108_I2C_OFFSET + I2C_CNTRL2);
+       temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_I2C_OFFSET + I2C_CNTRL2);
 
        if (0 == (temp & (I2C_CNTRL2_RD_STATUS | I2C_CNTRL2_WR_STATUS | I2C_CNTRL2_START))) {
                /* Place data into the I2C Tx Register */
-               *(u32 *) (CFG_TSI108_CSR_BASE + TSI108_I2C_OFFSET +
+               *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_I2C_OFFSET +
                          I2C_TX_DATA) = (u32) * buffer;
 
                /* Set device address and operation  */
                temp =
                    I2C_CNTRL1_I2CWRITE | (byte_addr << 16) |
                    ((chip_addr & 0x07) << 8) | ((chip_addr >> 3) & 0x0F);
-               *(u32 *) (CFG_TSI108_CSR_BASE + TSI108_I2C_OFFSET +
+               *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_I2C_OFFSET +
                          I2C_CNTRL1) = temp;
 
                /* Issue the write command (at this moment all other parameters
                 * are 0 (size = 1 byte, lane = 0)
                 */
 
-               *(u32 *) (CFG_TSI108_CSR_BASE + TSI108_I2C_OFFSET +
+               *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_I2C_OFFSET +
                          I2C_CNTRL2) = (I2C_CNTRL2_START);
 
                op_status = TSI108_I2C_TIMEOUT_ERR;
@@ -198,7 +198,7 @@ static int i2c_write_byte (uchar chip_addr,/* I2C device address on the bus */
                /* Wait until operation completed */
                do {
                        /* Read I2C operation status */
-                       temp = *(u32 *) (CFG_TSI108_CSR_BASE + TSI108_I2C_OFFSET + I2C_CNTRL2);
+                       temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_I2C_OFFSET + I2C_CNTRL2);
 
                        if (0 == (temp & (I2C_CNTRL2_WR_STATUS | I2C_CNTRL2_START))) {
                                if (0 == (temp &
index d152768b8e09428c4926fc7f7f6fa5a3670e8d8c..58094c925ceccfae14e969c2567cc496feca51de 100644 (file)
@@ -41,7 +41,7 @@ extern void gt_cpcidvi_out8(u32 offset, u8 data);
 
 #ifdef CONFIG_CONSOLE_CURSOR
 extern void console_cursor (int state);
-static int blinkCount = CFG_CONSOLE_BLINK_COUNT;
+static int blinkCount = CONFIG_SYS_CONSOLE_BLINK_COUNT;
 static int cursor_state = 0;
 #endif
 
@@ -368,7 +368,7 @@ int i8042_tstc (void)
     {
        cursor_state ^= 1;
        console_cursor (cursor_state);
-       blinkCount = CFG_CONSOLE_BLINK_COUNT;
+       blinkCount = CONFIG_SYS_CONSOLE_BLINK_COUNT;
        udelay (10);
     }
 #endif
@@ -409,7 +409,7 @@ int i8042_getc (void)
            {
                cursor_state ^= 1;
                console_cursor (cursor_state);
-               blinkCount = CFG_CONSOLE_BLINK_COUNT;
+               blinkCount = CONFIG_SYS_CONSOLE_BLINK_COUNT;
            }
            udelay (10);
 #endif
index a634d76d6c294e7dfd50929f63e2101da0ebf17e..512b9f28c4c126b3f1fc73a2ff54096dbbf7cb90 100644 (file)
@@ -258,12 +258,12 @@ void handle_scancode(unsigned char scancode)
  * Init
  ******************************************************************/
 
-#ifdef CFG_CONSOLE_OVERWRITE_ROUTINE
+#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
 extern int overwrite_console (void);
 #define OVERWRITE_CONSOLE overwrite_console ()
 #else
 #define OVERWRITE_CONSOLE 0
-#endif /* CFG_CONSOLE_OVERWRITE_ROUTINE */
+#endif /* CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE */
 
 int kbd_init (void)
 {
index 480ffa25a2bfecb05d14df6fb4a8ebbca89226ab..1af3fde6477868151d4ed87f08b347a24536fe91 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/io.h>
 #include <asm/atomic.h>
 #include <ps2mult.h>
-#if defined(CFG_NS16550) || defined(CONFIG_MPC85xx)
+#if defined(CONFIG_SYS_NS16550) || defined(CONFIG_MPC85xx)
 #include <ns16550.h>
 #endif
 
@@ -51,9 +51,9 @@ DECLARE_GLOBAL_DATA_PTR;
       defined(CONFIG_MPC8548) || defined(CONFIG_MPC8555)
 
 #if CONFIG_PS2SERIAL == 1
-#define COM_BASE (CFG_CCSRBAR+0x4500)
+#define COM_BASE (CONFIG_SYS_CCSRBAR+0x4500)
 #elif CONFIG_PS2SERIAL == 2
-#define COM_BASE (CFG_CCSRBAR+0x4600)
+#define COM_BASE (CONFIG_SYS_CCSRBAR+0x4600)
 #else
 #error CONFIG_PS2SERIAL must be in 1 ... 2
 #endif
@@ -88,7 +88,7 @@ int ps2ser_init(void)
        /* select clock sources */
 #if defined(CONFIG_MGT5100)
        psc->psc_clock_select = 0xdd00;
-       baseclk = (CFG_MPC5XXX_CLKIN + 16) / 32;
+       baseclk = (CONFIG_SYS_MPC5XXX_CLKIN + 16) / 32;
 #elif defined(CONFIG_MPC5200)
        psc->psc_clock_select = 0;
        baseclk = (gd->ipb_clk + 16) / 32;
@@ -129,8 +129,8 @@ int ps2ser_init(void)
 
        com_port->ier = 0x00;
        com_port->lcr = LCR_BKSE | LCR_8N1;
-       com_port->dll = (CFG_NS16550_CLK / 16 / PS2SER_BAUD) & 0xff;
-       com_port->dlm = ((CFG_NS16550_CLK / 16 / PS2SER_BAUD) >> 8) & 0xff;
+       com_port->dll = (CONFIG_SYS_NS16550_CLK / 16 / PS2SER_BAUD) & 0xff;
+       com_port->dlm = ((CONFIG_SYS_NS16550_CLK / 16 / PS2SER_BAUD) >> 8) & 0xff;
        com_port->lcr = LCR_8N1;
        com_port->mcr = (MCR_DTR | MCR_RTS);
        com_port->fcr = (FCR_FIFO_EN | FCR_RXSR | FCR_TXSR);
index 2e946143bc03385c57f550997ce02b0e540fa097..64df1c98897f9b360a336c82b3d0fb3877234f40 100644 (file)
@@ -46,7 +46,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
 {
-       volatile u32 *base = (volatile u32 *)(CFG_IMMR + 0xc08);
+       volatile u32 *base = (volatile u32 *)(CONFIG_SYS_IMMR + 0xc08);
        volatile u32 *lawbar = base + 8 * idx;
        volatile u32 *lawar = base + 8 * idx + 2;
 
@@ -91,7 +91,7 @@ int set_last_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id)
 
 void disable_law(u8 idx)
 {
-       volatile u32 *base = (volatile u32 *)(CFG_IMMR + 0xc08);
+       volatile u32 *base = (volatile u32 *)(CONFIG_SYS_IMMR + 0xc08);
        volatile u32 *lawbar = base + 8 * idx;
        volatile u32 *lawar = base + 8 * idx + 2;
 
@@ -105,7 +105,7 @@ void disable_law(u8 idx)
 
 void print_laws(void)
 {
-       volatile u32 *base = (volatile u32 *)(CFG_IMMR + 0xc08);
+       volatile u32 *base = (volatile u32 *)(CONFIG_SYS_IMMR + 0xc08);
        volatile u32 *lawbar = base;
        volatile u32 *lawar = base + 2;
        int i;
index 6642c2e072d117337450ece8dd395b9b9f0ea1e6..9130a1ff289e486a3abd3066a38bd298456c75a1 100644 (file)
@@ -27,7 +27,7 @@
 
 void initialise_ns87308 (void)
 {
-#ifdef CFG_NS87308_PS2MOD
+#ifdef CONFIG_SYS_NS87308_PS2MOD
        unsigned char data;
 
        /*
@@ -38,80 +38,80 @@ void initialise_ns87308 (void)
        write_pnp_config(SUPOERIO_CONF1, data);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_KBC1)
-       PNP_SET_DEVICE_BASE(LDEV_KBC1, CFG_NS87308_KBC1_BASE);
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_KBC1)
+       PNP_SET_DEVICE_BASE(LDEV_KBC1, CONFIG_SYS_NS87308_KBC1_BASE);
        write_pnp_config(LUN_CONFIG_REG, 0);
        write_pnp_config(CBASE_HIGH, 0x00);
        write_pnp_config(CBASE_LOW, 0x64);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_MOUSE)
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_MOUSE)
        PNP_ACTIVATE_DEVICE(LDEV_MOUSE);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_RTC_APC)
-       PNP_SET_DEVICE_BASE(LDEV_RTC_APC, CFG_NS87308_RTC_BASE);
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_RTC_APC)
+       PNP_SET_DEVICE_BASE(LDEV_RTC_APC, CONFIG_SYS_NS87308_RTC_BASE);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_FDC)
-       PNP_SET_DEVICE_BASE(LDEV_FDC, CFG_NS87308_FDC_BASE);
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_FDC)
+       PNP_SET_DEVICE_BASE(LDEV_FDC, CONFIG_SYS_NS87308_FDC_BASE);
        write_pnp_config(LUN_CONFIG_REG, 0x40);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_RARP)
-       PNP_SET_DEVICE_BASE(LDEV_PARP, CFG_NS87308_LPT_BASE);
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_RARP)
+       PNP_SET_DEVICE_BASE(LDEV_PARP, CONFIG_SYS_NS87308_LPT_BASE);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_UART1)
-       PNP_SET_DEVICE_BASE(LDEV_UART1, CFG_NS87308_UART1_BASE);
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_UART1)
+       PNP_SET_DEVICE_BASE(LDEV_UART1, CONFIG_SYS_NS87308_UART1_BASE);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_UART2)
-       PNP_SET_DEVICE_BASE(LDEV_UART2, CFG_NS87308_UART2_BASE);
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_UART2)
+       PNP_SET_DEVICE_BASE(LDEV_UART2, CONFIG_SYS_NS87308_UART2_BASE);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_GPIO)
-       PNP_SET_DEVICE_BASE(LDEV_GPIO, CFG_NS87308_GPIO_BASE);
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_GPIO)
+       PNP_SET_DEVICE_BASE(LDEV_GPIO, CONFIG_SYS_NS87308_GPIO_BASE);
 #endif
 
-#if (CFG_NS87308_DEVS & CFG_NS87308_POWRMAN)
-#ifndef CFG_NS87308_PWMAN_BASE
+#if (CONFIG_SYS_NS87308_DEVS & CONFIG_SYS_NS87308_POWRMAN)
+#ifndef CONFIG_SYS_NS87308_PWMAN_BASE
        PNP_ACTIVATE_DEVICE(LDEV_POWRMAN);
 #else
-       PNP_SET_DEVICE_BASE(LDEV_POWRMAN, CFG_NS87308_PWMAN_BASE);
+       PNP_SET_DEVICE_BASE(LDEV_POWRMAN, CONFIG_SYS_NS87308_PWMAN_BASE);
 
        /*
         * Enable all units
         */
-       write_pm_reg(CFG_NS87308_PWMAN_BASE, PWM_FER1, 0x7d);
-       write_pm_reg(CFG_NS87308_PWMAN_BASE, PWM_FER2, 0x87);
+       write_pm_reg(CONFIG_SYS_NS87308_PWMAN_BASE, PWM_FER1, 0x7d);
+       write_pm_reg(CONFIG_SYS_NS87308_PWMAN_BASE, PWM_FER2, 0x87);
 
-#ifdef CFG_NS87308_PMC1
-       write_pm_reg(CFG_NS87308_PWMAN_BASE, PWM_PMC1, CFG_NS87308_PMC1);
+#ifdef CONFIG_SYS_NS87308_PMC1
+       write_pm_reg(CONFIG_SYS_NS87308_PWMAN_BASE, PWM_PMC1, CONFIG_SYS_NS87308_PMC1);
 #endif
 
-#ifdef CFG_NS87308_PMC2
-       write_pm_reg(CFG_NS87308_PWMAN_BASE, PWM_PMC2, CFG_NS87308_PMC2);
+#ifdef CONFIG_SYS_NS87308_PMC2
+       write_pm_reg(CONFIG_SYS_NS87308_PWMAN_BASE, PWM_PMC2, CONFIG_SYS_NS87308_PMC2);
 #endif
 
-#ifdef CFG_NS87308_PMC3
-       write_pm_reg(CFG_NS87308_PWMAN_BASE, PWM_PMC3, CFG_NS87308_PMC3);
+#ifdef CONFIG_SYS_NS87308_PMC3
+       write_pm_reg(CONFIG_SYS_NS87308_PWMAN_BASE, PWM_PMC3, CONFIG_SYS_NS87308_PMC3);
 #endif
 #endif
 #endif
 
-#ifdef CFG_NS87308_CS0_BASE
-       PNP_PGCS_CSLINE_BASE(0, CFG_NS87308_CS0_BASE);
-       PNP_PGCS_CSLINE_CONF(0, CFG_NS87308_CS0_CONF);
+#ifdef CONFIG_SYS_NS87308_CS0_BASE
+       PNP_PGCS_CSLINE_BASE(0, CONFIG_SYS_NS87308_CS0_BASE);
+       PNP_PGCS_CSLINE_CONF(0, CONFIG_SYS_NS87308_CS0_CONF);
 #endif
 
-#ifdef CFG_NS87308_CS1_BASE
-       PNP_PGCS_CSLINE_BASE(1, CFG_NS87308_CS1_BASE);
-       PNP_PGCS_CSLINE_CONF(1, CFG_NS87308_CS1_CONF);
+#ifdef CONFIG_SYS_NS87308_CS1_BASE
+       PNP_PGCS_CSLINE_BASE(1, CONFIG_SYS_NS87308_CS1_BASE);
+       PNP_PGCS_CSLINE_CONF(1, CONFIG_SYS_NS87308_CS1_CONF);
 #endif
 
-#ifdef CFG_NS87308_CS2_BASE
-       PNP_PGCS_CSLINE_BASE(2, CFG_NS87308_CS2_BASE);
-       PNP_PGCS_CSLINE_CONF(2, CFG_NS87308_CS2_CONF);
+#ifdef CONFIG_SYS_NS87308_CS2_BASE
+       PNP_PGCS_CSLINE_BASE(2, CONFIG_SYS_NS87308_CS2_BASE);
+       PNP_PGCS_CSLINE_CONF(2, CONFIG_SYS_NS87308_CS2_CONF);
 #endif
 }
index a151488d12580a60aaad3cfbf2a90b934ba158d8..3aa92f26e12ef109108c5d395d575265633dea0a 100644 (file)
 #define pr_debug(...) do { } while(0)
 #endif
 
-#ifndef CFG_MMC_CLK_OD
-#define CFG_MMC_CLK_OD         150000
+#ifndef CONFIG_SYS_MMC_CLK_OD
+#define CONFIG_SYS_MMC_CLK_OD          150000
 #endif
 
-#ifndef CFG_MMC_CLK_PP
-#define CFG_MMC_CLK_PP         5000000
+#ifndef CONFIG_SYS_MMC_CLK_PP
+#define CONFIG_SYS_MMC_CLK_PP          5000000
 #endif
 
-#ifndef CFG_MMC_OP_COND
-#define CFG_MMC_OP_COND                0x00100000
+#ifndef CONFIG_SYS_MMC_OP_COND
+#define CONFIG_SYS_MMC_OP_COND         0x00100000
 #endif
 
 #define MMC_DEFAULT_BLKLEN     512
@@ -349,7 +349,7 @@ static int sd_init_card(struct mmc_cid *cid, int verbose)
 
        mmc_idle_cards();
        for (i = 0; i < 1000; i++) {
-               ret = mmc_acmd(SD_CMD_APP_SEND_OP_COND, CFG_MMC_OP_COND,
+               ret = mmc_acmd(SD_CMD_APP_SEND_OP_COND, CONFIG_SYS_MMC_OP_COND,
                               resp, R3 | NID);
                if (ret || (resp[0] & 0x80000000))
                        break;
@@ -385,7 +385,7 @@ static int mmc_init_card(struct mmc_cid *cid, int verbose)
 
        mmc_idle_cards();
        for (i = 0; i < 1000; i++) {
-               ret = mmc_cmd(MMC_CMD_SEND_OP_COND, CFG_MMC_OP_COND, resp,
+               ret = mmc_cmd(MMC_CMD_SEND_OP_COND, CONFIG_SYS_MMC_OP_COND, resp,
                              R3 | NID | OPEN_DRAIN);
                if (ret || (resp[0] & 0x80000000))
                        break;
@@ -434,7 +434,7 @@ static void mci_set_data_timeout(struct mmc_csd *csd)
        timeout_clks = csd->nsac * 100;
 
        timeout_clks += (((timeout_ns + 9) / 10)
-                        * ((CFG_MMC_CLK_PP + 99999) / 100000) + 9999) / 10000;
+                        * ((CONFIG_SYS_MMC_CLK_PP + 99999) / 100000) + 9999) / 10000;
        if (!mmc_card_is_sd)
                timeout_clks *= 10;
        else
@@ -475,7 +475,7 @@ int mmc_init(int verbose)
        mmci_writel(CR, MMCI_BIT(MCIEN));
        mmci_writel(DTOR, 0x5f);
        mmci_writel(IDR, ~0UL);
-       mci_set_mode(CFG_MMC_CLK_OD, MMC_DEFAULT_BLKLEN);
+       mci_set_mode(CONFIG_SYS_MMC_CLK_OD, MMC_DEFAULT_BLKLEN);
 
        mmc_card_is_sd = 0;
 
@@ -520,7 +520,7 @@ int mmc_init(int verbose)
        mmc_blkdev.blksz = 512;
        mmc_blkdev.lba = (csd.c_size + 1) * (1 << (csd.c_size_mult + 2));
 
-       mci_set_mode(CFG_MMC_CLK_PP, mmc_blkdev.blksz);
+       mci_set_mode(CONFIG_SYS_MMC_CLK_PP, mmc_blkdev.blksz);
 
 #if 0
        if (fat_register_device(&mmc_blkdev, 1))
index 7bfdc43da14e3a1455691a8104acdfd85a1bc199..c40bf661052082b2d1424d8f70e0f44ad86602bc 100644 (file)
  * AMD/Spansion Application Note: Migration from Single-byte to Three-byte
  *   Device IDs, Publication Number 25538 Revision A, November 8, 2001
  *
- * Define CFG_WRITE_SWAPPED_DATA, if you have to swap the Bytes between
+ * Define CONFIG_SYS_WRITE_SWAPPED_DATA, if you have to swap the Bytes between
  * reading and writing ... (yes there is such a Hardware).
  */
 
-#ifndef CFG_FLASH_BANKS_LIST
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE }
+#ifndef CONFIG_SYS_FLASH_BANKS_LIST
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
 #endif
 
 #define FLASH_CMD_CFI                  0x98
 #define CFI_CMDSET_SST                 258
 #define CFI_CMDSET_INTEL_PROG_REGIONS  512
 
-#ifdef CFG_FLASH_CFI_AMD_RESET /* needed for STM_ID_29W320DB on UC100 */
+#ifdef CONFIG_SYS_FLASH_CFI_AMD_RESET /* needed for STM_ID_29W320DB on UC100 */
 # undef  FLASH_CMD_RESET
 # define FLASH_CMD_RESET       AMD_CMD_RESET /* use AMD-Reset instead */
 #endif
@@ -159,11 +159,11 @@ typedef union {
 
 static uint flash_offset_cfi[2] = { FLASH_OFFSET_CFI, FLASH_OFFSET_CFI_ALT };
 
-/* use CFG_MAX_FLASH_BANKS_DETECT if defined */
-#ifdef CFG_MAX_FLASH_BANKS_DETECT
-# define CFI_MAX_FLASH_BANKS   CFG_MAX_FLASH_BANKS_DETECT
+/* use CONFIG_SYS_MAX_FLASH_BANKS_DETECT if defined */
+#ifdef CONFIG_SYS_MAX_FLASH_BANKS_DETECT
+# define CFI_MAX_FLASH_BANKS   CONFIG_SYS_MAX_FLASH_BANKS_DETECT
 #else
-# define CFI_MAX_FLASH_BANKS   CFG_MAX_FLASH_BANKS
+# define CFI_MAX_FLASH_BANKS   CONFIG_SYS_MAX_FLASH_BANKS
 #endif
 
 flash_info_t flash_info[CFI_MAX_FLASH_BANKS];  /* FLASH chips info */
@@ -171,8 +171,8 @@ flash_info_t flash_info[CFI_MAX_FLASH_BANKS];       /* FLASH chips info */
 /*
  * Check if chip width is defined. If not, start detecting with 8bit.
  */
-#ifndef CFG_FLASH_CFI_WIDTH
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_8BIT
+#ifndef CONFIG_SYS_FLASH_CFI_WIDTH
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
 #endif
 
 typedef unsigned long flash_sect_t;
@@ -255,20 +255,20 @@ u64 flash_read64(void *addr)__attribute__((weak, alias("__flash_read64")));
 
 /*-----------------------------------------------------------------------
  */
-#if defined(CONFIG_ENV_IS_IN_FLASH) || defined(CONFIG_ENV_ADDR_REDUND) || (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
+#if defined(CONFIG_ENV_IS_IN_FLASH) || defined(CONFIG_ENV_ADDR_REDUND) || (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)
 static flash_info_t *flash_get_info(ulong base)
 {
        int i;
        flash_info_t * info = 0;
 
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                info = & flash_info[i];
                if (info->size && info->start[0] <= base &&
                    base <= info->start[0] + info->size - 1)
                        break;
        }
 
-       return i == CFG_MAX_FLASH_BANKS ? 0 : info;
+       return i == CONFIG_SYS_MAX_FLASH_BANKS ? 0 : info;
 }
 #endif
 
@@ -309,7 +309,7 @@ static void flash_make_cmd(flash_info_t *info, u32 cmd, void *cmdbuf)
        int i;
        int cword_offset;
        int cp_offset;
-#if defined(__LITTLE_ENDIAN) || defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) || defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
        u32 cmd_le = cpu_to_le32(cmd);
 #endif
        uchar val;
@@ -317,7 +317,7 @@ static void flash_make_cmd(flash_info_t *info, u32 cmd, void *cmdbuf)
 
        for (i = info->portwidth; i > 0; i--){
                cword_offset = (info->portwidth-i)%info->chipwidth;
-#if defined(__LITTLE_ENDIAN) || defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) || defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
                cp_offset = info->portwidth - i;
                val = *((uchar*)&cmd_le + cword_offset);
 #else
@@ -374,7 +374,7 @@ static inline uchar flash_read_uchar (flash_info_t * info, uint offset)
        uchar retval;
 
        cp = flash_map (info, 0, offset);
-#if defined(__LITTLE_ENDIAN) || defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) || defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
        retval = flash_read8(cp);
 #else
        retval = flash_read8(cp + info->portwidth - 1);
@@ -419,7 +419,7 @@ static ulong flash_read_long (flash_info_t * info, flash_sect_t sect,
                debug ("addr[%x] = 0x%x\n", x, flash_read8(addr + x));
        }
 #endif
-#if defined(__LITTLE_ENDIAN) || defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) || defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
        retval = ((flash_read8(addr) << 16) |
                  (flash_read8(addr + info->portwidth) << 24) |
                  (flash_read8(addr + 2 * info->portwidth)) |
@@ -646,8 +646,8 @@ static int flash_status_check (flash_info_t * info, flash_sect_t sector,
 {
        ulong start;
 
-#if CFG_HZ != 1000
-       tout *= CFG_HZ/1000;
+#if CONFIG_SYS_HZ != 1000
+       tout *= CONFIG_SYS_HZ/1000;
 #endif
 
        /* Wait for command completion */
@@ -716,7 +716,7 @@ static int flash_full_status_check (flash_info_t * info, flash_sect_t sector,
  */
 static void flash_add_byte (flash_info_t * info, cfiword_t * cword, uchar c)
 {
-#if defined(__LITTLE_ENDIAN) && !defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) && !defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
        unsigned short  w;
        unsigned int    l;
        unsigned long long ll;
@@ -727,7 +727,7 @@ static void flash_add_byte (flash_info_t * info, cfiword_t * cword, uchar c)
                cword->c = c;
                break;
        case FLASH_CFI_16BIT:
-#if defined(__LITTLE_ENDIAN) && !defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) && !defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
                w = c;
                w <<= 8;
                cword->w = (cword->w >> 8) | w;
@@ -736,7 +736,7 @@ static void flash_add_byte (flash_info_t * info, cfiword_t * cword, uchar c)
 #endif
                break;
        case FLASH_CFI_32BIT:
-#if defined(__LITTLE_ENDIAN) && !defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) && !defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
                l = c;
                l <<= 24;
                cword->l = (cword->l >> 8) | l;
@@ -745,7 +745,7 @@ static void flash_add_byte (flash_info_t * info, cfiword_t * cword, uchar c)
 #endif
                break;
        case FLASH_CFI_64BIT:
-#if defined(__LITTLE_ENDIAN) && !defined(CFG_WRITE_SWAPPED_DATA)
+#if defined(__LITTLE_ENDIAN) && !defined(CONFIG_SYS_WRITE_SWAPPED_DATA)
                ll = c;
                ll <<= 56;
                cword->ll = (cword->ll >> 8) | ll;
@@ -850,7 +850,7 @@ static int flash_write_cfiword (flash_info_t * info, ulong dest,
                                        info->write_tout, "write");
 }
 
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 static int flash_write_cfibuffer (flash_info_t * info, ulong dest, uchar * cp,
                                  int len)
@@ -1024,7 +1024,7 @@ out_unmap:
        unmap_physmem(dst, len);
        return retcode;
 }
-#endif /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
 
 
 /*-----------------------------------------------------------------------
@@ -1173,7 +1173,7 @@ void flash_print_info (flash_info_t * info)
        for (i = 0; i < info->sector_count; ++i) {
                if ((i % 5) == 0)
                        printf ("\n");
-#ifdef CFG_FLASH_EMPTY_INFO
+#ifdef CONFIG_SYS_FLASH_EMPTY_INFO
                int k;
                int size;
                int erased;
@@ -1198,7 +1198,7 @@ void flash_print_info (flash_info_t * info)
                        info->start[i],
                        erased ? 'E' : ' ',
                        info->protect[i] ? "RO" : "  ");
-#else  /* ! CFG_FLASH_EMPTY_INFO */
+#else  /* ! CONFIG_SYS_FLASH_EMPTY_INFO */
                printf ("  %08lX   %s ",
                        info->start[i],
                        info->protect[i] ? "RO" : "  ");
@@ -1242,7 +1242,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
        int aln;
        cfiword_t cword;
        int i, rc;
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        int buffered_size;
 #endif
 #ifdef CONFIG_FLASH_SHOW_PROGRESS
@@ -1286,7 +1286,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
        }
 
        /* handle the aligned part */
-#ifdef CFG_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
        buffered_size = (info->portwidth / info->chipwidth);
        buffered_size *= info->buffer_size;
        while (cnt >= info->portwidth) {
@@ -1326,7 +1326,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                cnt -= info->portwidth;
                FLASH_SHOW_PROGRESS(scale, dots, digit, info->portwidth);
        }
-#endif /* CFG_FLASH_USE_BUFFER_WRITE */
+#endif /* CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
 
        if (cnt == 0) {
                return (0);
@@ -1350,7 +1350,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
 
 /*-----------------------------------------------------------------------
  */
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
 
 int flash_real_protect (flash_info_t * info, long sector, int prot)
 {
@@ -1457,7 +1457,7 @@ void flash_read_factory_serial (flash_info_t * info, void *buffer, int offset,
        flash_unmap(info, 0, FLASH_OFFSET_INTEL_PROTECTION, src);
 }
 
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
 /*-----------------------------------------------------------------------
  * Reverse the order of the erase regions in the CFI QRY structure.
@@ -1501,7 +1501,7 @@ static int cmdset_intel_init(flash_info_t *info, struct cfi_qry *qry)
        cmdset_intel_read_jedec_ids(info);
        flash_write_cmd(info, 0, info->cfi_offset, FLASH_CMD_CFI);
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
        /* read legacy lock/unlock bit from intel flash */
        if (info->ext_addr) {
                info->legacy_unlock = flash_read_uchar (info,
@@ -1717,7 +1717,7 @@ static int flash_detect_cfi (flash_info_t * info, struct cfi_qry *qry)
 {
        debug ("flash detect cfi\n");
 
-       for (info->portwidth = CFG_FLASH_CFI_WIDTH;
+       for (info->portwidth = CONFIG_SYS_FLASH_CFI_WIDTH;
             info->portwidth <= FLASH_CFI_64BIT; info->portwidth <<= 1) {
                for (info->chipwidth = FLASH_CFI_BY8;
                     info->chipwidth <= info->portwidth;
@@ -1793,7 +1793,7 @@ ulong flash_get_size (ulong base, int banknum)
 
        info->ext_addr = 0;
        info->cfi_version = 0;
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
        info->legacy_unlock = 0;
 #endif
 
@@ -1882,7 +1882,7 @@ ulong flash_get_size (ulong base, int banknum)
                        debug ("erase_region_count = %d erase_region_size = %d\n",
                                erase_region_count, erase_region_size);
                        for (j = 0; j < erase_region_count; j++) {
-                               if (sect_cnt >= CFG_MAX_FLASH_SECT) {
+                               if (sect_cnt >= CONFIG_SYS_MAX_FLASH_SECT) {
                                        printf("ERROR: too many flash sectors\n");
                                        break;
                                }
@@ -1947,41 +1947,41 @@ unsigned long flash_init (void)
 {
        unsigned long size = 0;
        int i;
-#if defined(CFG_FLASH_AUTOPROTECT_LIST)
+#if defined(CONFIG_SYS_FLASH_AUTOPROTECT_LIST)
        struct apl_s {
                ulong start;
                ulong size;
-       } apl[] = CFG_FLASH_AUTOPROTECT_LIST;
+       } apl[] = CONFIG_SYS_FLASH_AUTOPROTECT_LIST;
 #endif
 
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
        char *s = getenv("unlock");
 #endif
 
-#define BANK_BASE(i)   (((unsigned long [CFI_MAX_FLASH_BANKS])CFG_FLASH_BANKS_LIST)[i])
+#define BANK_BASE(i)   (((unsigned long [CFI_MAX_FLASH_BANKS])CONFIG_SYS_FLASH_BANKS_LIST)[i])
 
        /* Init: no FLASHes known */
-       for (i = 0; i < CFG_MAX_FLASH_BANKS; ++i) {
+       for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
 
                if (!flash_detect_legacy (BANK_BASE(i), i))
                        flash_get_size (BANK_BASE(i), i);
                size += flash_info[i].size;
                if (flash_info[i].flash_id == FLASH_UNKNOWN) {
-#ifndef CFG_FLASH_QUIET_TEST
+#ifndef CONFIG_SYS_FLASH_QUIET_TEST
                        printf ("## Unknown FLASH on Bank %d "
                                "- Size = 0x%08lx = %ld MB\n",
                                i+1, flash_info[i].size,
                                flash_info[i].size << 20);
-#endif /* CFG_FLASH_QUIET_TEST */
+#endif /* CONFIG_SYS_FLASH_QUIET_TEST */
                }
-#ifdef CFG_FLASH_PROTECTION
+#ifdef CONFIG_SYS_FLASH_PROTECTION
                else if ((s != NULL) && (strcmp(s, "yes") == 0)) {
                        /*
                         * Only the U-Boot image and it's environment
                         * is protected, all other sectors are
                         * unprotected (unlocked) if flash hardware
-                        * protection is used (CFG_FLASH_PROTECTION)
+                        * protection is used (CONFIG_SYS_FLASH_PROTECTION)
                         * and the environment variable "unlock" is
                         * set to "yes".
                         */
@@ -2022,15 +2022,15 @@ unsigned long flash_init (void)
                                               &flash_info[i]);
                        }
                }
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
        }
 
        /* Monitor protection ON by default */
-#if (CFG_MONITOR_BASE >= CFG_FLASH_BASE)
+#if (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_MONITOR_BASE,
-                      CFG_MONITOR_BASE + monitor_flash_len  - 1,
-                      flash_get_info(CFG_MONITOR_BASE));
+                      CONFIG_SYS_MONITOR_BASE,
+                      CONFIG_SYS_MONITOR_BASE + monitor_flash_len  - 1,
+                      flash_get_info(CONFIG_SYS_MONITOR_BASE));
 #endif
 
        /* Environment protection ON by default */
@@ -2049,7 +2049,7 @@ unsigned long flash_init (void)
                       flash_get_info(CONFIG_ENV_ADDR_REDUND));
 #endif
 
-#if defined(CFG_FLASH_AUTOPROTECT_LIST)
+#if defined(CONFIG_SYS_FLASH_AUTOPROTECT_LIST)
        for (i = 0; i < (sizeof(apl) / sizeof(struct apl_s)); i++) {
                debug("autoprotecting from %08x to %08x\n",
                      apl[i].start, apl[i].start + apl[i].size - 1);
index 049da69fec3cc2bb2604b90cc7354b0713315045..201e5180bdc8599c5bd1a0af759534eb05af9909 100644 (file)
@@ -40,12 +40,12 @@ int AT91F_DataflashInit (void)
        int dfcode;
        int part;
        int last_part;
-       int found[CFG_MAX_DATAFLASH_BANKS];
+       int found[CONFIG_SYS_MAX_DATAFLASH_BANKS];
        unsigned char protected;
 
        AT91F_SpiInit ();
 
-       for (i = 0; i < CFG_MAX_DATAFLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++) {
                found[i] = 0;
                dataflash_info[i].Desc.state = IDLE;
                dataflash_info[i].id = 0;
@@ -179,7 +179,7 @@ void AT91F_DataflashSetEnv (void)
        unsigned char s[32];    /* Will fit a long int in hex */
        unsigned long start;
 
-       for (i = 0, part= 0; i < CFG_MAX_DATAFLASH_BANKS; i++) {
+       for (i = 0, part= 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++) {
                for(j = 0; j<NB_DATAFLASH_AREA; j++) {
                        env = area_list[part].setenv;
                        /* Set the environment according to the label...*/
@@ -198,7 +198,7 @@ void dataflash_print_info (void)
 {
        int i, j;
 
-       for (i = 0; i < CFG_MAX_DATAFLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++) {
                if (dataflash_info[i].id != 0) {
                        printf("DataFlash:");
                        switch (dataflash_info[i].id) {
@@ -258,7 +258,7 @@ AT91PS_DataFlash AT91F_DataflashSelect (AT91PS_DataFlash pFlash,
        char addr_valid = 0;
        int i;
 
-       for (i = 0; i < CFG_MAX_DATAFLASH_BANKS; i++)
+       for (i = 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++)
                if ( dataflash_info[i].id
                        && ((((int) *addr) & 0xFF000000) ==
                        dataflash_info[i].logical_address)) {
@@ -284,7 +284,7 @@ int addr_dataflash (unsigned long addr)
        int addr_valid = 0;
        int i;
 
-       for (i = 0; i < CFG_MAX_DATAFLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++) {
                if ((((int) addr) & 0xFF000000) ==
                        dataflash_info[i].logical_address) {
                        addr_valid = 1;
@@ -349,7 +349,7 @@ int dataflash_real_protect (int flag, unsigned long start_addr,
        int i,j, area1, area2, addr_valid = 0;
 
        /* find dataflash */
-       for (i = 0; i < CFG_MAX_DATAFLASH_BANKS; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++) {
                if ((((int) start_addr) & 0xF0000000) ==
                        dataflash_info[i].logical_address) {
                                addr_valid = 1;
index 020647a7caf058cb64cb7616fcb84290367addf6..226e1e418fe3a8a7229869fcff4164bbd1932d2d 100644 (file)
@@ -170,7 +170,7 @@ struct amd_flash_info {
 #define SIZE_8MiB   23
 
 static const struct amd_flash_info jedec_table[] = {
-#ifdef CFG_FLASH_LEGACY_256Kx8
+#ifdef CONFIG_SYS_FLASH_LEGACY_256Kx8
        {
                .mfr_id         = MANUFACTURER_SST,
                .dev_id         = SST39LF020,
@@ -186,7 +186,7 @@ static const struct amd_flash_info jedec_table[] = {
                }
        },
 #endif
-#ifdef CFG_FLASH_LEGACY_512Kx8
+#ifdef CONFIG_SYS_FLASH_LEGACY_512Kx8
        {
                .mfr_id         = MANUFACTURER_AMD,
                .dev_id         = AM29LV040B,
@@ -216,7 +216,7 @@ static const struct amd_flash_info jedec_table[] = {
                }
        },
 #endif
-#ifdef CFG_FLASH_LEGACY_512Kx16
+#ifdef CONFIG_SYS_FLASH_LEGACY_512Kx16
        {
                .mfr_id         = MANUFACTURER_AMD,
                .dev_id         = AM29LV400BB,
@@ -307,7 +307,7 @@ static inline void fill_info(flash_info_t *info, const struct amd_flash_info *je
                debug ("erase_region_count = %d erase_region_size = %d\n",
                       erase_region_count, erase_region_size);
                for (j = 0; j < erase_region_count; j++) {
-                       if (sect_cnt >= CFG_MAX_FLASH_SECT) {
+                       if (sect_cnt >= CONFIG_SYS_MAX_FLASH_SECT) {
                                printf("ERROR: too many flash sectors\n");
                                break;
                        }
index 435182438863786ac36a857dae4cd6a10d090028..7dda6c4e57d061cc032950fde175cb8bb6ed0082 100644 (file)
@@ -693,7 +693,7 @@ static struct fsl_elbc_ctrl *elbc_ctrl;
 
 static void fsl_elbc_ctrl_init(void)
 {
-       immap_t *im = (immap_t *)CFG_IMMR;
+       immap_t *im = (immap_t *)CONFIG_SYS_IMMR;
 
        elbc_ctrl = kzalloc(sizeof(*elbc_ctrl), GFP_KERNEL);
        if (!elbc_ctrl)
index 71a0e4bbb1d233f6da96641fc9afe216121e640c..eeb19ff1b93392e5964d40c5ccd25b67df5f52db 100644 (file)
 #include <common.h>
 #include <nand.h>
 
-#ifndef CFG_NAND_BASE_LIST
-#define CFG_NAND_BASE_LIST { CFG_NAND_BASE }
+#ifndef CONFIG_SYS_NAND_BASE_LIST
+#define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE }
 #endif
 
 int nand_curr_device = -1;
-nand_info_t nand_info[CFG_MAX_NAND_DEVICE];
+nand_info_t nand_info[CONFIG_SYS_MAX_NAND_DEVICE];
 
-static struct nand_chip nand_chip[CFG_MAX_NAND_DEVICE];
-static ulong base_address[CFG_MAX_NAND_DEVICE] = CFG_NAND_BASE_LIST;
+static struct nand_chip nand_chip[CONFIG_SYS_MAX_NAND_DEVICE];
+static ulong base_address[CONFIG_SYS_MAX_NAND_DEVICE] = CONFIG_SYS_NAND_BASE_LIST;
 
 static const char default_nand_name[] = "nand";
 
@@ -61,7 +61,7 @@ void nand_init(void)
 {
        int i;
        unsigned int size = 0;
-       for (i = 0; i < CFG_MAX_NAND_DEVICE; i++) {
+       for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++) {
                nand_init_chip(&nand_info[i], &nand_chip[i], base_address[i]);
                size += nand_info[i].size / 1024;
                if (nand_curr_device == -1)
@@ -69,7 +69,7 @@ void nand_init(void)
        }
        printf("%u MiB\n", size / 1024);
 
-#ifdef CFG_NAND_SELECT_DEVICE
+#ifdef CONFIG_SYS_NAND_SELECT_DEVICE
        /*
         * Select the chip in the board/cpu specific driver
         */
index 0913bb87418cb52bf43d8efbd4944c358811ec0c..fe34a4864b3ed75519ae48b5c0437665b50f852c 100644 (file)
@@ -492,7 +492,7 @@ EXPORT_SYMBOL_GPL(nand_wait_ready);
 void nand_wait_ready(struct mtd_info *mtd)
 {
        struct nand_chip *chip = mtd->priv;
-       u32 timeo = (CFG_HZ * 20) / 1000;
+       u32 timeo = (CONFIG_SYS_HZ * 20) / 1000;
 
        reset_timer();
 
@@ -831,9 +831,9 @@ static int nand_wait(struct mtd_info *mtd, struct nand_chip *this)
        int state = this->state;
 
        if (state == FL_ERASING)
-               timeo = (CFG_HZ * 400) / 1000;
+               timeo = (CONFIG_SYS_HZ * 400) / 1000;
        else
-               timeo = (CFG_HZ * 20) / 1000;
+               timeo = (CONFIG_SYS_HZ * 20) / 1000;
 
        if ((state == FL_ERASING) && (this->options & NAND_IS_AND))
                this->cmdfunc(mtd, NAND_CMD_STATUS_MULTI, -1, -1);
index 159fe76aa5f88d7d60b18a716ccaa6983b27a1f3..edaf55a14ed023801b5fd600df01b73af9a15174 100644 (file)
@@ -141,7 +141,7 @@ static int s3c_nand_device_ready(struct mtd_info *mtdinfo)
        return !!(readl(NFSTAT) & NFSTAT_RnB);
 }
 
-#ifdef CFG_S3C_NAND_HWECC
+#ifdef CONFIG_SYS_S3C_NAND_HWECC
 /*
  * This function is called before encoding ecc codes to ready ecc engine.
  * Written by jsgood
@@ -256,7 +256,7 @@ static int s3c_nand_correct_data(struct mtd_info *mtd, u_char *dat,
 
        return ret;
 }
-#endif /* CFG_S3C_NAND_HWECC */
+#endif /* CONFIG_SYS_S3C_NAND_HWECC */
 
 /*
  * Board-specific NAND initialization. The following members of the
@@ -297,7 +297,7 @@ int board_nand_init(struct nand_chip *nand)
        nand->read_buf          = nand_read_buf;
 #endif
 
-#ifdef CFG_S3C_NAND_HWECC
+#ifdef CONFIG_SYS_S3C_NAND_HWECC
        nand->ecc.hwctl         = s3c_nand_enable_hwecc;
        nand->ecc.calculate     = s3c_nand_calculate_ecc;
        nand->ecc.correct       = s3c_nand_correct_data;
@@ -307,11 +307,11 @@ int board_nand_init(struct nand_chip *nand)
         * board one day, it will get more complicated...
         */
        nand->ecc.mode          = NAND_ECC_HW;
-       nand->ecc.size          = CFG_NAND_ECCSIZE;
-       nand->ecc.bytes         = CFG_NAND_ECCBYTES;
+       nand->ecc.size          = CONFIG_SYS_NAND_ECCSIZE;
+       nand->ecc.bytes         = CONFIG_SYS_NAND_ECCBYTES;
 #else
        nand->ecc.mode          = NAND_ECC_SOFT;
-#endif /* ! CFG_S3C_NAND_HWECC */
+#endif /* ! CONFIG_SYS_S3C_NAND_HWECC */
 
        nand->priv              = nand_cs + chip_n++;
 
index bf5565a8fbe758d05493338c1cfb6090c8ff198d..407e901a37d310cac12314b3a7f3b8f05b1012f4 100644 (file)
@@ -66,7 +66,7 @@ struct nand_oob_config {
        int eccvalid_pos;
 } oob_config = { {0}, 0, 0};
 
-struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE] = {{0}};
+struct nand_chip nand_dev_desc[CONFIG_SYS_MAX_NAND_DEVICE] = {{0}};
 
 int curr_device = -1; /* Current NAND Device */
 
@@ -982,7 +982,7 @@ static int nand_write_ecc (struct nand_chip* nand, size_t to, size_t len,
 #ifdef CONFIG_OMAP1510
        archflashwp(0,0);
 #endif
-#ifdef CFG_NAND_WP
+#ifdef CONFIG_SYS_NAND_WP
        NAND_WP_OFF();
 #endif
 
@@ -1036,7 +1036,7 @@ out:
 #ifdef CONFIG_OMAP1510
        archflashwp(0,1);
 #endif
-#ifdef CFG_NAND_WP
+#ifdef CONFIG_SYS_NAND_WP
        NAND_WP_ON();
 #endif
 
@@ -1235,7 +1235,7 @@ int nand_legacy_erase(struct nand_chip* nand, size_t ofs, size_t len, int clean)
 #ifdef CONFIG_OMAP1510
        archflashwp(0,0);
 #endif
-#ifdef CFG_NAND_WP
+#ifdef CONFIG_SYS_NAND_WP
        NAND_WP_OFF();
 #endif
     NAND_ENABLE_CE(nand);  /* set pin low */
@@ -1321,7 +1321,7 @@ out:
 #ifdef CONFIG_OMAP1510
        archflashwp(0,1);
 #endif
-#ifdef CFG_NAND_WP
+#ifdef CONFIG_SYS_NAND_WP
        NAND_WP_ON();
 #endif
 
@@ -1358,7 +1358,7 @@ unsigned long nand_probe(unsigned long physadr)
 #endif
        oob_config.badblock_pos = 5;
 
-       for (i=0; i<CFG_MAX_NAND_DEVICE; i++) {
+       for (i=0; i<CONFIG_SYS_MAX_NAND_DEVICE; i++) {
                if (nand_dev_desc[i].ChipID == NAND_ChipID_UNKNOWN) {
                        nand = &nand_dev_desc[i];
                        break;
index d614450616f12dd533ffc08adc9c840a10293b0d..08082f3edef0b7d6d5b932eb2c3ddf78082bf5f4 100644 (file)
@@ -26,7 +26,7 @@ void onenand_init(void)
        memset(&onenand_mtd, 0, sizeof(struct mtd_info));
        memset(&onenand_chip, 0, sizeof(struct onenand_chip));
 
-       onenand_chip.base = (void *) CFG_ONENAND_BASE;
+       onenand_chip.base = (void *) CONFIG_SYS_ONENAND_BASE;
        onenand_mtd.priv = &onenand_chip;
 
        onenand_scan(&onenand_mtd, 1);
index e5f758e10954fecbefe51fc62fb37941887dd195..75f5900dc17e939aa2c74649dfd8978dfa1b7634 100644 (file)
@@ -5,9 +5,9 @@
  */
 
 /* Common parameters */
-#define SPI_FLASH_PROG_TIMEOUT         ((10 * CFG_HZ) / 1000)
-#define SPI_FLASH_PAGE_ERASE_TIMEOUT   ((50 * CFG_HZ) / 1000)
-#define SPI_FLASH_SECTOR_ERASE_TIMEOUT (10 * CFG_HZ)
+#define SPI_FLASH_PROG_TIMEOUT         ((10 * CONFIG_SYS_HZ) / 1000)
+#define SPI_FLASH_PAGE_ERASE_TIMEOUT   ((50 * CONFIG_SYS_HZ) / 1000)
+#define SPI_FLASH_SECTOR_ERASE_TIMEOUT (10 * CONFIG_SYS_HZ)
 
 /* Common commands */
 #define CMD_READ_ID                    0x9f
index c999b125e3ed7476692f4cff148443a5f22484aa..b8b835a3ffe6f8e19886e0ed08a7c648ec2adac8 100644 (file)
@@ -295,7 +295,7 @@ int stmicro_erase(struct spi_flash *flash, u32 offset, size_t len)
                }
 
                /* Up to 2 seconds */
-               ret = stmicro_wait_ready(flash, 2 * CFG_HZ);
+               ret = stmicro_wait_ready(flash, 2 * CONFIG_SYS_HZ);
                if (ret < 0) {
                        debug("SF: STMicro page erase timed out\n");
                        break;
index 6b28b95ebc6418471594252c817f016dead63065..185764ef5e96b7ab20dd79fd6dc474d5f3bc5fdf 100644 (file)
@@ -439,9 +439,9 @@ int eth_init (bd_t * bis)
        /* Setup timer delays */
        if (T3_ASIC_REV (pDevice->ChipRevId) == T3_ASIC_REV_5701) {
                pDevice->UseTaggedStatus = TRUE;
-               pUmDevice->timer_interval = CFG_HZ;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ;
        } else {
-               pUmDevice->timer_interval = CFG_HZ / 50;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ / 50;
        }
 
        /* Grab name .... */
@@ -458,15 +458,15 @@ int eth_init (bd_t * bis)
        pUmDevice->rx_last_cnt = pUmDevice->tx_last_cnt = 0;
 
        /* delay for 4 seconds */
-       pUmDevice->delayed_link_ind = (4 * CFG_HZ) / pUmDevice->timer_interval;
+       pUmDevice->delayed_link_ind = (4 * CONFIG_SYS_HZ) / pUmDevice->timer_interval;
 
-       pUmDevice->adaptive_expiry = CFG_HZ / pUmDevice->timer_interval;
+       pUmDevice->adaptive_expiry = CONFIG_SYS_HZ / pUmDevice->timer_interval;
 
        /* Sometimes we get spurious ints. after reset when link is down. */
        /* This field tells the isr to service the int. even if there is */
        /* no status block update. */
        pUmDevice->adapter_just_inited =
-           (3 * CFG_HZ) / pUmDevice->timer_interval;
+           (3 * CONFIG_SYS_HZ) / pUmDevice->timer_interval;
 
        /* Initialize 570x */
        if (LM_InitializeAdapter (pDevice) != LM_STATUS_SUCCESS) {
@@ -1046,9 +1046,9 @@ LM_STATUS MM_GetConfig (PLM_DEVICE_BLOCK pDevice)
 
        if (T3_ASIC_REV (pDevice->ChipRevId) == T3_ASIC_REV_5701) {
                pDevice->UseTaggedStatus = TRUE;
-               pUmDevice->timer_interval = CFG_HZ;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ;
        } else {
-               pUmDevice->timer_interval = CFG_HZ / 50;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ / 50;
        }
 
        pDevice->TxPacketDescCnt = tx_pkt_desc_cnt[index];
index c5e74b8b5d64e0e7eef42741944fb18a461b342e..504fd100a4d905b1aba7b2c24798f098d80daf1e 100644 (file)
@@ -466,7 +466,7 @@ ADI_ETHER_BUFFER *SetupTxBuffer(int no)
        return buf;
 }
 
-#if defined(CONFIG_POST) && defined(CFG_POST_ETHER)
+#if defined(CONFIG_POST) && defined(CONFIG_SYS_POST_ETHER)
 int ether_post_test(int flags)
 {
        uchar buf[64];
index ae1983ac0b56bcfc539a45b8cf8bc6f33b780dc5..35a9bafaa347fd640eafbcf6acf710df2d6732a6 100644 (file)
@@ -90,7 +90,7 @@ static void eth_reset (void)
        udelay (200000);
        /* Wait until the chip is reset */
 
-       tmo = get_timer (0) + 1 * CFG_HZ;
+       tmo = get_timer (0) + 1 * CONFIG_SYS_HZ;
        while ((((us = get_reg_init_bus (PP_SelfSTAT)) & PP_SelfSTAT_InitD) == 0)
                   && tmo < get_timer (0))
                /*NOP*/;
@@ -244,7 +244,7 @@ retry:
 #ifdef DEBUG
                printf ("cs: unable to send packet; retrying...\n");
 #endif
-               for (tmo = get_timer (0) + 5 * CFG_HZ; get_timer (0) < tmo;)
+               for (tmo = get_timer (0) + 5 * CONFIG_SYS_HZ; get_timer (0) < tmo;)
                        /*NOP*/;
                eth_reset ();
                eth_reginit ();
@@ -257,7 +257,7 @@ retry:
                CS8900_RTDATA = *addr++;
 
        /* wait for transfer to succeed */
-       tmo = get_timer (0) + 5 * CFG_HZ;
+       tmo = get_timer (0) + 5 * CONFIG_SYS_HZ;
        while ((s = get_reg (PP_TER) & ~0x1F) == 0) {
                if (get_timer (0) >= tmo)
                        break;
index 3a61b802e66c47eab510f9e881068312bc0c9cb1..ffb739de9fc5f43dbeb1b49589751148696e0579 100644 (file)
@@ -447,7 +447,7 @@ eth_send(volatile void *packet, int length)
        DM9000_iow(DM9000_TCR, TCR_TXREQ); /* Cleared after TX complete */
 
        /* wait for end of transmission */
-       tmo = get_timer(0) + 5 * CFG_HZ;
+       tmo = get_timer(0) + 5 * CONFIG_SYS_HZ;
        while ( !(DM9000_ior(DM9000_NSR) & (NSR_TX1END | NSR_TX2END)) ||
                !(DM9000_ior(DM9000_ISR) & IMR_PTM) ) {
                if (get_timer(0) >= tmo) {
index d6539c01aa9ef22cb116f3e375c07d2bdfab6bce..9c06b25569419d73d96b4537e7db3b4339967032 100644 (file)
@@ -194,14 +194,14 @@ struct descriptor {                       /* A generic descriptor. */
        unsigned char params[0];
 };
 
-#define CFG_CMD_EL             0x8000
-#define CFG_CMD_SUSPEND                0x4000
-#define CFG_CMD_INT            0x2000
-#define CFG_CMD_IAS            0x0001  /* individual address setup */
-#define CFG_CMD_CONFIGURE      0x0002  /* configure */
+#define CONFIG_SYS_CMD_EL              0x8000
+#define CONFIG_SYS_CMD_SUSPEND         0x4000
+#define CONFIG_SYS_CMD_INT             0x2000
+#define CONFIG_SYS_CMD_IAS             0x0001  /* individual address setup */
+#define CONFIG_SYS_CMD_CONFIGURE       0x0002  /* configure */
 
-#define CFG_STATUS_C           0x8000
-#define CFG_STATUS_OK          0x2000
+#define CONFIG_SYS_STATUS_C            0x8000
+#define CONFIG_SYS_STATUS_OK           0x2000
 
        /* Misc.
         */
@@ -529,7 +529,7 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
        tx_next = ((tx_next + 1) % NUM_TX_DESC);
 
        cfg_cmd = (struct descriptor *) &tx_ring[tx_cur];
-       cfg_cmd->command = cpu_to_le16 ((CFG_CMD_SUSPEND | CFG_CMD_CONFIGURE));
+       cfg_cmd->command = cpu_to_le16 ((CONFIG_SYS_CMD_SUSPEND | CONFIG_SYS_CMD_CONFIGURE));
        cfg_cmd->status = 0;
        cfg_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next]));
 
@@ -537,7 +537,7 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
                        sizeof (i82558_config_cmd));
 
        if (!wait_for_eepro100 (dev)) {
-               printf ("Error---CFG_CMD_CONFIGURE: Can not reset ethernet controller.\n");
+               printf ("Error---CONFIG_SYS_CMD_CONFIGURE: Can not reset ethernet controller.\n");
                goto Done;
        }
 
@@ -545,7 +545,7 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
        OUTW (dev, SCB_M | CU_START, SCBCmd);
 
        for (i = 0;
-            !(le16_to_cpu (tx_ring[tx_cur].status) & CFG_STATUS_C);
+            !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C);
             i++) {
                if (i >= TOUT_LOOP) {
                        printf ("%s: Tx error buffer not ready\n", dev->name);
@@ -553,7 +553,7 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
                }
        }
 
-       if (!(le16_to_cpu (tx_ring[tx_cur].status) & CFG_STATUS_OK)) {
+       if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) {
                printf ("TX error status = 0x%08X\n",
                        le16_to_cpu (tx_ring[tx_cur].status));
                goto Done;
@@ -565,7 +565,7 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
        tx_next = ((tx_next + 1) % NUM_TX_DESC);
 
        ias_cmd = (struct descriptor *) &tx_ring[tx_cur];
-       ias_cmd->command = cpu_to_le16 ((CFG_CMD_SUSPEND | CFG_CMD_IAS));
+       ias_cmd->command = cpu_to_le16 ((CONFIG_SYS_CMD_SUSPEND | CONFIG_SYS_CMD_IAS));
        ias_cmd->status = 0;
        ias_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next]));
 
@@ -581,7 +581,7 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
        OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer);
        OUTW (dev, SCB_M | CU_START, SCBCmd);
 
-       for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CFG_STATUS_C);
+       for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C);
                 i++) {
                if (i >= TOUT_LOOP) {
                        printf ("%s: Tx error buffer not ready\n",
@@ -590,7 +590,7 @@ static int eepro100_init (struct eth_device *dev, bd_t * bis)
                }
        }
 
-       if (!(le16_to_cpu (tx_ring[tx_cur].status) & CFG_STATUS_OK)) {
+       if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) {
                printf ("TX error status = 0x%08X\n",
                        le16_to_cpu (tx_ring[tx_cur].status));
                goto Done;
@@ -640,7 +640,7 @@ static int eepro100_send (struct eth_device *dev, volatile void *packet, int len
        OUTL (dev, phys_to_bus ((u32) & tx_ring[tx_cur]), SCBPointer);
        OUTW (dev, SCB_M | CU_START, SCBCmd);
 
-       for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CFG_STATUS_C);
+       for (i = 0; !(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_C);
                 i++) {
                if (i >= TOUT_LOOP) {
                        printf ("%s: Tx error buffer not ready\n", dev->name);
@@ -648,7 +648,7 @@ static int eepro100_send (struct eth_device *dev, volatile void *packet, int len
                }
        }
 
-       if (!(le16_to_cpu (tx_ring[tx_cur].status) & CFG_STATUS_OK)) {
+       if (!(le16_to_cpu (tx_ring[tx_cur].status) & CONFIG_SYS_STATUS_OK)) {
                printf ("TX error status = 0x%08X\n",
                        le16_to_cpu (tx_ring[tx_cur].status));
                goto Done;
index 59524a5ede91d6548872f29dce2d47901488c02b..d056010c74ee3852667bc94197474fefb5370f36 100644 (file)
 DECLARE_GLOBAL_DATA_PTR;
 
 struct fec_info_dma fec_info[] = {
-#ifdef CFG_FEC0_IOBASE
+#ifdef CONFIG_SYS_FEC0_IOBASE
        {
         0,                     /* index */
-        CFG_FEC0_IOBASE,       /* io base */
-        CFG_FEC0_PINMUX,       /* gpio pin muxing */
-        CFG_FEC0_MIIBASE,      /* mii base */
+        CONFIG_SYS_FEC0_IOBASE,        /* io base */
+        CONFIG_SYS_FEC0_PINMUX,        /* gpio pin muxing */
+        CONFIG_SYS_FEC0_MIIBASE,       /* mii base */
         -1,                    /* phy_addr */
         0,                     /* duplex and speed */
         0,                     /* phy name */
@@ -83,17 +83,17 @@ struct fec_info_dma fec_info[] = {
         0,                     /* cleanTbdNum */
         },
 #endif
-#ifdef CFG_FEC1_IOBASE
+#ifdef CONFIG_SYS_FEC1_IOBASE
        {
         1,                     /* index */
-        CFG_FEC1_IOBASE,       /* io base */
-        CFG_FEC1_PINMUX,       /* gpio pin muxing */
-        CFG_FEC1_MIIBASE,      /* mii base */
+        CONFIG_SYS_FEC1_IOBASE,        /* io base */
+        CONFIG_SYS_FEC1_PINMUX,        /* gpio pin muxing */
+        CONFIG_SYS_FEC1_MIIBASE,       /* mii base */
         -1,                    /* phy_addr */
         0,                     /* duplex and speed */
         0,                     /* phy name */
         0,                     /* phy name init */
-#ifdef CFG_DMA_USE_INTSRAM
+#ifdef CONFIG_SYS_DMA_USE_INTSRAM
         (cbd_t *)DBUF_LENGTH,  /* RX BD */
 #else
         0,                     /* RX BD */
@@ -203,7 +203,7 @@ static int fec_send(struct eth_device *dev, volatile void *packet, int length)
        miiphy_read(dev->name, info->phy_addr, PHY_BMSR, &phyStatus);
 
        /* process all the consumed TBDs */
-       while (info->cleanTbdNum < CFG_TX_ETH_BUFFER) {
+       while (info->cleanTbdNum < CONFIG_SYS_TX_ETH_BUFFER) {
                pUsedTbd = &info->txbd[info->usedTbdIdx];
                if (pUsedTbd->cbd_sc & BD_ENET_TX_READY) {
 #ifdef ET_DEBUG
@@ -214,14 +214,14 @@ static int fec_send(struct eth_device *dev, volatile void *packet, int length)
                }
 
                /* clean this buffer descriptor */
-               if (info->usedTbdIdx == (CFG_TX_ETH_BUFFER - 1))
+               if (info->usedTbdIdx == (CONFIG_SYS_TX_ETH_BUFFER - 1))
                        pUsedTbd->cbd_sc = BD_ENET_TX_WRAP;
                else
                        pUsedTbd->cbd_sc = 0;
 
                /* update some indeces for a correct handling of the TBD ring */
                info->cleanTbdNum++;
-               info->usedTbdIdx = (info->usedTbdIdx + 1) % CFG_TX_ETH_BUFFER;
+               info->usedTbdIdx = (info->usedTbdIdx + 1) % CONFIG_SYS_TX_ETH_BUFFER;
        }
 
        /* Check for valid length of data. */
@@ -240,7 +240,7 @@ static int fec_send(struct eth_device *dev, volatile void *packet, int length)
        pTbd->cbd_datlen = length;
        pTbd->cbd_bufaddr = (u32) packet;
        pTbd->cbd_sc |= BD_ENET_TX_LAST | BD_ENET_TX_TC | BD_ENET_TX_READY;
-       info->txIdx = (info->txIdx + 1) % CFG_TX_ETH_BUFFER;
+       info->txIdx = (info->txIdx + 1) % CONFIG_SYS_TX_ETH_BUFFER;
 
        /* Enable DMA transmit task */
        MCD_continDma(info->txTask);
@@ -379,15 +379,15 @@ static int fec_init(struct eth_device *dev, bd_t * bd)
        fec_halt(dev);
 
 #if defined(CONFIG_CMD_MII) || defined (CONFIG_MII) || \
-       defined (CFG_DISCOVER_PHY)
+       defined (CONFIG_SYS_DISCOVER_PHY)
 
        mii_init();
 
        set_fec_duplex_speed(fecp, bd, info->dup_spd);
 #else
-#ifndef CFG_DISCOVER_PHY
+#ifndef CONFIG_SYS_DISCOVER_PHY
        set_fec_duplex_speed(fecp, bd, (FECDUPLEX << 16) | FECSPEED);
-#endif                         /* ifndef CFG_DISCOVER_PHY */
+#endif                         /* ifndef CONFIG_SYS_DISCOVER_PHY */
 #endif                         /* CONFIG_CMD_MII || CONFIG_MII */
 
        /* We use strictly polling mode only */
@@ -397,7 +397,7 @@ static int fec_init(struct eth_device *dev, bd_t * bd)
        fecp->eir = 0xffffffff;
 
        /* Set station address   */
-       if ((u32) fecp == CFG_FEC0_IOBASE) {
+       if ((u32) fecp == CONFIG_SYS_FEC0_IOBASE) {
                fec_set_hwaddr(fecp, bd->bi_enetaddr);
        } else {
                fec_set_hwaddr(fecp, bd->bi_enet1addr);
@@ -421,15 +421,15 @@ static int fec_init(struct eth_device *dev, bd_t * bd)
 
        /* Setup Ethernet Transmitter Buffer Descriptors (13.14.24.19)
         * Settings:    Last, Tx CRC */
-       for (i = 0; i < CFG_TX_ETH_BUFFER; i++) {
+       for (i = 0; i < CONFIG_SYS_TX_ETH_BUFFER; i++) {
                info->txbd[i].cbd_sc = 0;
                info->txbd[i].cbd_datlen = 0;
                info->txbd[i].cbd_bufaddr = (uint) (&info->txbuf[0]);
        }
-       info->txbd[CFG_TX_ETH_BUFFER - 1].cbd_sc |= BD_ENET_TX_WRAP;
+       info->txbd[CONFIG_SYS_TX_ETH_BUFFER - 1].cbd_sc |= BD_ENET_TX_WRAP;
 
        info->usedTbdIdx = 0;
-       info->cleanTbdNum = CFG_TX_ETH_BUFFER;
+       info->cleanTbdNum = CONFIG_SYS_TX_ETH_BUFFER;
 
        /* Set Rx FIFO alarm and granularity value */
        fecp->rfcr = 0x0c000000;
@@ -516,14 +516,14 @@ int mcdmafec_initialize(bd_t * bis)
 {
        struct eth_device *dev;
        int i;
-#ifdef CFG_DMA_USE_INTSRAM
-       u32 tmp = CFG_INTSRAM + 0x2000;
+#ifdef CONFIG_SYS_DMA_USE_INTSRAM
+       u32 tmp = CONFIG_SYS_INTSRAM + 0x2000;
 #endif
 
        for (i = 0; i < sizeof(fec_info) / sizeof(fec_info[0]); i++) {
 
                dev =
-                   (struct eth_device *)memalign(CFG_CACHELINE_SIZE,
+                   (struct eth_device *)memalign(CONFIG_SYS_CACHELINE_SIZE,
                                                  sizeof *dev);
                if (dev == NULL)
                        hang();
@@ -539,7 +539,7 @@ int mcdmafec_initialize(bd_t * bis)
                dev->recv = fec_recv;
 
                /* setup Receive and Transmit buffer descriptor */
-#ifdef CFG_DMA_USE_INTSRAM
+#ifdef CONFIG_SYS_DMA_USE_INTSRAM
                fec_info[i].rxbd = (cbd_t *)((u32)fec_info[i].rxbd + tmp);
                tmp = (u32)fec_info[i].rxbd;
                fec_info[i].txbd =
@@ -548,17 +548,17 @@ int mcdmafec_initialize(bd_t * bis)
                tmp = (u32)fec_info[i].txbd;
                fec_info[i].txbuf =
                    (char *)((u32)fec_info[i].txbuf + tmp +
-                   (CFG_TX_ETH_BUFFER * sizeof(cbd_t)));
+                   (CONFIG_SYS_TX_ETH_BUFFER * sizeof(cbd_t)));
                tmp = (u32)fec_info[i].txbuf;
 #else
                fec_info[i].rxbd =
-                   (cbd_t *) memalign(CFG_CACHELINE_SIZE,
+                   (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE,
                                       (PKTBUFSRX * sizeof(cbd_t)));
                fec_info[i].txbd =
-                   (cbd_t *) memalign(CFG_CACHELINE_SIZE,
-                                      (CFG_TX_ETH_BUFFER * sizeof(cbd_t)));
+                   (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE,
+                                      (CONFIG_SYS_TX_ETH_BUFFER * sizeof(cbd_t)));
                fec_info[i].txbuf =
-                   (char *)memalign(CFG_CACHELINE_SIZE, DBUF_LENGTH);
+                   (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, DBUF_LENGTH);
 #endif
 
 #ifdef ET_DEBUG
@@ -566,7 +566,7 @@ int mcdmafec_initialize(bd_t * bis)
                       (int)fec_info[i].rxbd, (int)fec_info[i].txbd);
 #endif
 
-               fec_info[i].phy_name = (char *)memalign(CFG_CACHELINE_SIZE, 32);
+               fec_info[i].phy_name = (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, 32);
 
                eth_register(dev);
 
index c23a4000a2860cfa596fd864c11da8ff4b22c4b6..318bdf4a15c066b1ae49d12f1ec17e4df0eafecb 100644 (file)
@@ -267,7 +267,7 @@ static void smc_shutdown (void);
 
 static int poll4int (byte mask, int timeout)
 {
-       int tmo = get_timer (0) + timeout * CFG_HZ;
+       int tmo = get_timer (0) + timeout * CONFIG_SYS_HZ;
        int is_timeout = 0;
        word old_bank = SMC_inw (LAN91C96_BANK_SELECT);
 
index 08bebf74a5c5ec83ef426a6b4ab2bd99f74caca1..98e8c73cabb41a5599bcddfcd6a9759720bbb47b 100644 (file)
@@ -28,7 +28,7 @@
  * allocate our own, but we need one such buffer in case a packet
  * wraps around the DMA ring so that we have to copy it.
  *
- * Therefore, define CFG_RX_ETH_BUFFER to 1 in the board-specific
+ * Therefore, define CONFIG_SYS_RX_ETH_BUFFER to 1 in the board-specific
  * configuration header.  This way, the core allocates one RX buffer
  * and one TX buffer, each of which can hold a ethernet packet of
  * maximum size.
 
 #define barrier() asm volatile("" ::: "memory")
 
-#define CFG_MACB_RX_BUFFER_SIZE                4096
-#define CFG_MACB_RX_RING_SIZE          (CFG_MACB_RX_BUFFER_SIZE / 128)
-#define CFG_MACB_TX_RING_SIZE          16
-#define CFG_MACB_TX_TIMEOUT            1000
-#define CFG_MACB_AUTONEG_TIMEOUT       5000000
+#define CONFIG_SYS_MACB_RX_BUFFER_SIZE         4096
+#define CONFIG_SYS_MACB_RX_RING_SIZE           (CONFIG_SYS_MACB_RX_BUFFER_SIZE / 128)
+#define CONFIG_SYS_MACB_TX_RING_SIZE           16
+#define CONFIG_SYS_MACB_TX_TIMEOUT             1000
+#define CONFIG_SYS_MACB_AUTONEG_TIMEOUT        5000000
 
 struct macb_dma_desc {
        u32     addr;
@@ -178,7 +178,7 @@ static int macb_send(struct eth_device *netdev, volatile void *packet,
 
        ctrl = length & TXBUF_FRMLEN_MASK;
        ctrl |= TXBUF_FRAME_END;
-       if (tx_head == (CFG_MACB_TX_RING_SIZE - 1)) {
+       if (tx_head == (CONFIG_SYS_MACB_TX_RING_SIZE - 1)) {
                ctrl |= TXBUF_WRAP;
                macb->tx_head = 0;
        } else
@@ -193,7 +193,7 @@ static int macb_send(struct eth_device *netdev, volatile void *packet,
         * I guess this is necessary because the networking core may
         * re-use the transmit buffer as soon as we return...
         */
-       for (i = 0; i <= CFG_MACB_TX_TIMEOUT; i++) {
+       for (i = 0; i <= CONFIG_SYS_MACB_TX_TIMEOUT; i++) {
                barrier();
                ctrl = macb->tx_ring[tx_head].ctrl;
                if (ctrl & TXBUF_USED)
@@ -203,7 +203,7 @@ static int macb_send(struct eth_device *netdev, volatile void *packet,
 
        dma_unmap_single(packet, length, paddr);
 
-       if (i <= CFG_MACB_TX_TIMEOUT) {
+       if (i <= CONFIG_SYS_MACB_TX_TIMEOUT) {
                if (ctrl & TXBUF_UNDERRUN)
                        printf("%s: TX underrun\n", netdev->name);
                if (ctrl & TXBUF_EXHAUSTED)
@@ -226,7 +226,7 @@ static void reclaim_rx_buffers(struct macb_device *macb,
        while (i > new_tail) {
                macb->rx_ring[i].addr &= ~RXADDR_USED;
                i++;
-               if (i > CFG_MACB_RX_RING_SIZE)
+               if (i > CONFIG_SYS_MACB_RX_RING_SIZE)
                        i = 0;
        }
 
@@ -265,7 +265,7 @@ static int macb_recv(struct eth_device *netdev)
                        if (wrapped) {
                                unsigned int headlen, taillen;
 
-                               headlen = 128 * (CFG_MACB_RX_RING_SIZE
+                               headlen = 128 * (CONFIG_SYS_MACB_RX_RING_SIZE
                                                 - macb->rx_tail);
                                taillen = length - headlen;
                                memcpy((void *)NetRxPackets[0],
@@ -276,11 +276,11 @@ static int macb_recv(struct eth_device *netdev)
                        }
 
                        NetReceive(buffer, length);
-                       if (++rx_tail >= CFG_MACB_RX_RING_SIZE)
+                       if (++rx_tail >= CONFIG_SYS_MACB_RX_RING_SIZE)
                                rx_tail = 0;
                        reclaim_rx_buffers(macb, rx_tail);
                } else {
-                       if (++rx_tail >= CFG_MACB_RX_RING_SIZE) {
+                       if (++rx_tail >= CONFIG_SYS_MACB_RX_RING_SIZE) {
                                wrapped = 1;
                                rx_tail = 0;
                        }
@@ -303,7 +303,7 @@ static void macb_phy_reset(struct macb_device *macb)
        macb_mdio_write(macb, MII_BMCR, (BMCR_ANENABLE
                                         | BMCR_ANRESTART));
 
-       for (i = 0; i < CFG_MACB_AUTONEG_TIMEOUT / 100; i++) {
+       for (i = 0; i < CONFIG_SYS_MACB_AUTONEG_TIMEOUT / 100; i++) {
                status = macb_mdio_read(macb, MII_BMSR);
                if (status & BMSR_ANEGCOMPLETE)
                        break;
@@ -337,7 +337,7 @@ static int macb_phy_init(struct macb_device *macb)
                /* Try to re-negotiate if we don't have link already. */
                macb_phy_reset(macb);
 
-               for (i = 0; i < CFG_MACB_AUTONEG_TIMEOUT / 100; i++) {
+               for (i = 0; i < CONFIG_SYS_MACB_AUTONEG_TIMEOUT / 100; i++) {
                        status = macb_mdio_read(macb, MII_BMSR);
                        if (status & BMSR_LSTATUS)
                                break;
@@ -388,16 +388,16 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
 
        /* initialize DMA descriptors */
        paddr = macb->rx_buffer_dma;
-       for (i = 0; i < CFG_MACB_RX_RING_SIZE; i++) {
-               if (i == (CFG_MACB_RX_RING_SIZE - 1))
+       for (i = 0; i < CONFIG_SYS_MACB_RX_RING_SIZE; i++) {
+               if (i == (CONFIG_SYS_MACB_RX_RING_SIZE - 1))
                        paddr |= RXADDR_WRAP;
                macb->rx_ring[i].addr = paddr;
                macb->rx_ring[i].ctrl = 0;
                paddr += 128;
        }
-       for (i = 0; i < CFG_MACB_TX_RING_SIZE; i++) {
+       for (i = 0; i < CONFIG_SYS_MACB_TX_RING_SIZE; i++) {
                macb->tx_ring[i].addr = 0;
-               if (i == (CFG_MACB_TX_RING_SIZE - 1))
+               if (i == (CONFIG_SYS_MACB_TX_RING_SIZE - 1))
                        macb->tx_ring[i].ctrl = TXBUF_USED | TXBUF_WRAP;
                else
                        macb->tx_ring[i].ctrl = TXBUF_USED;
@@ -473,12 +473,12 @@ int macb_eth_initialize(int id, void *regs, unsigned int phy_addr)
 
        netdev = &macb->netdev;
 
-       macb->rx_buffer = dma_alloc_coherent(CFG_MACB_RX_BUFFER_SIZE,
+       macb->rx_buffer = dma_alloc_coherent(CONFIG_SYS_MACB_RX_BUFFER_SIZE,
                                             &macb->rx_buffer_dma);
-       macb->rx_ring = dma_alloc_coherent(CFG_MACB_RX_RING_SIZE
+       macb->rx_ring = dma_alloc_coherent(CONFIG_SYS_MACB_RX_RING_SIZE
                                           * sizeof(struct macb_dma_desc),
                                           &macb->rx_ring_dma);
-       macb->tx_ring = dma_alloc_coherent(CFG_MACB_TX_RING_SIZE
+       macb->tx_ring = dma_alloc_coherent(CONFIG_SYS_MACB_TX_RING_SIZE
                                           * sizeof(struct macb_dma_desc),
                                           &macb->tx_ring_dma);
 
index f93cf598e251d2b3ce1d56eb75458f7889c79802..c00474e222f857a9f1b02290a3a57db20f3065e3 100644 (file)
 DECLARE_GLOBAL_DATA_PTR;
 
 struct fec_info_s fec_info[] = {
-#ifdef CFG_FEC0_IOBASE
+#ifdef CONFIG_SYS_FEC0_IOBASE
        {
         0,                     /* index */
-        CFG_FEC0_IOBASE,       /* io base */
-        CFG_FEC0_PINMUX,       /* gpio pin muxing */
-        CFG_FEC0_MIIBASE,      /* mii base */
+        CONFIG_SYS_FEC0_IOBASE,        /* io base */
+        CONFIG_SYS_FEC0_PINMUX,        /* gpio pin muxing */
+        CONFIG_SYS_FEC0_MIIBASE,       /* mii base */
         -1,                    /* phy_addr */
         0,                     /* duplex and speed */
         0,                     /* phy name */
@@ -70,17 +70,17 @@ struct fec_info_s fec_info[] = {
         (struct fec_info_s *)-1,
         },
 #endif
-#ifdef CFG_FEC1_IOBASE
+#ifdef CONFIG_SYS_FEC1_IOBASE
        {
         1,                     /* index */
-        CFG_FEC1_IOBASE,       /* io base */
-        CFG_FEC1_PINMUX,       /* gpio pin muxing */
-        CFG_FEC1_MIIBASE,      /* mii base */
+        CONFIG_SYS_FEC1_IOBASE,        /* io base */
+        CONFIG_SYS_FEC1_PINMUX,        /* gpio pin muxing */
+        CONFIG_SYS_FEC1_MIIBASE,       /* mii base */
         -1,                    /* phy_addr */
         0,                     /* duplex and speed */
         0,                     /* phy name */
         0,                     /* phy name init */
-#ifdef CFG_FEC_BUF_USE_SRAM
+#ifdef CONFIG_SYS_FEC_BUF_USE_SRAM
         (cbd_t *)DBUF_LENGTH,  /* RX BD */
 #else
         0,                     /* RX BD */
@@ -103,7 +103,7 @@ void fec_reset(struct eth_device *dev);
 
 extern int fecpin_setclear(struct eth_device *dev, int setclear);
 
-#ifdef CFG_DISCOVER_PHY
+#ifdef CONFIG_SYS_DISCOVER_PHY
 extern void __mii_init(void);
 extern uint mii_send(uint mii_cmd);
 extern int mii_discover_phy(struct eth_device *dev);
@@ -175,7 +175,7 @@ int fec_send(struct eth_device *dev, volatile void *packet, int length)
        /* Activate transmit Buffer Descriptor polling */
        fecp->tdar = 0x01000000;        /* Descriptor polling active    */
 
-#ifndef CFG_FEC_BUF_USE_SRAM
+#ifndef CONFIG_SYS_FEC_BUF_USE_SRAM
        /*
         * FEC unable to initial transmit data packet.
         * A nop will ensure the descriptor polling active completed.
@@ -187,7 +187,7 @@ int fec_send(struct eth_device *dev, volatile void *packet, int length)
 
 #endif
 
-#ifdef CFG_UNIFY_CACHE
+#ifdef CONFIG_SYS_UNIFY_CACHE
        icache_invalid();
 #endif
 
@@ -222,9 +222,9 @@ int fec_recv(struct eth_device *dev)
        int length;
 
        for (;;) {
-#ifndef CFG_FEC_BUF_USE_SRAM
+#ifndef CONFIG_SYS_FEC_BUF_USE_SRAM
 #endif
-#ifdef CFG_UNIFY_CACHE
+#ifdef CONFIG_SYS_UNIFY_CACHE
                icache_invalid();
 #endif
                /* section 16.9.23.2 */
@@ -435,15 +435,15 @@ int fec_init(struct eth_device *dev, bd_t * bd)
        fec_reset(dev);
 
 #if defined(CONFIG_CMD_MII) || defined (CONFIG_MII) || \
-       defined (CFG_DISCOVER_PHY)
+       defined (CONFIG_SYS_DISCOVER_PHY)
 
        mii_init();
 
        setFecDuplexSpeed(fecp, bd, info->dup_spd);
 #else
-#ifndef CFG_DISCOVER_PHY
+#ifndef CONFIG_SYS_DISCOVER_PHY
        setFecDuplexSpeed(fecp, bd, (FECDUPLEX << 16) | FECSPEED);
-#endif                         /* ifndef CFG_DISCOVER_PHY */
+#endif                         /* ifndef CONFIG_SYS_DISCOVER_PHY */
 #endif                         /* CONFIG_CMD_MII || CONFIG_MII */
 
        /* We use strictly polling mode only */
@@ -453,9 +453,9 @@ int fec_init(struct eth_device *dev, bd_t * bd)
        fecp->eir = 0xffffffff;
 
        /* Set station address   */
-       if ((u32) fecp == CFG_FEC0_IOBASE) {
-#ifdef CFG_FEC1_IOBASE
-               volatile fec_t *fecp1 = (fec_t *) (CFG_FEC1_IOBASE);
+       if ((u32) fecp == CONFIG_SYS_FEC0_IOBASE) {
+#ifdef CONFIG_SYS_FEC1_IOBASE
+               volatile fec_t *fecp1 = (fec_t *) (CONFIG_SYS_FEC1_IOBASE);
                ea = &bd->bi_enet1addr[0];
                fecp1->palr =
                    (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]);
@@ -466,14 +466,14 @@ int fec_init(struct eth_device *dev, bd_t * bd)
                    (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]);
                fecp->paur = (ea[4] << 24) | (ea[5] << 16);
        } else {
-#ifdef CFG_FEC0_IOBASE
-               volatile fec_t *fecp0 = (fec_t *) (CFG_FEC0_IOBASE);
+#ifdef CONFIG_SYS_FEC0_IOBASE
+               volatile fec_t *fecp0 = (fec_t *) (CONFIG_SYS_FEC0_IOBASE);
                ea = &bd->bi_enetaddr[0];
                fecp0->palr =
                    (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]);
                fecp0->paur = (ea[4] << 24) | (ea[5] << 16);
 #endif
-#ifdef CFG_FEC1_IOBASE
+#ifdef CONFIG_SYS_FEC1_IOBASE
                ea = &bd->bi_enet1addr[0];
                fecp->palr =
                    (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]);
@@ -568,14 +568,14 @@ int mcffec_initialize(bd_t * bis)
 {
        struct eth_device *dev;
        int i;
-#ifdef CFG_FEC_BUF_USE_SRAM
-       u32 tmp = CFG_INIT_RAM_ADDR + 0x1000;
+#ifdef CONFIG_SYS_FEC_BUF_USE_SRAM
+       u32 tmp = CONFIG_SYS_INIT_RAM_ADDR + 0x1000;
 #endif
 
        for (i = 0; i < sizeof(fec_info) / sizeof(fec_info[0]); i++) {
 
                dev =
-                   (struct eth_device *)memalign(CFG_CACHELINE_SIZE,
+                   (struct eth_device *)memalign(CONFIG_SYS_CACHELINE_SIZE,
                                                  sizeof *dev);
                if (dev == NULL)
                        hang();
@@ -591,7 +591,7 @@ int mcffec_initialize(bd_t * bis)
                dev->recv = fec_recv;
 
                /* setup Receive and Transmit buffer descriptor */
-#ifdef CFG_FEC_BUF_USE_SRAM
+#ifdef CONFIG_SYS_FEC_BUF_USE_SRAM
                fec_info[i].rxbd = (cbd_t *)((u32)fec_info[i].rxbd + tmp);
                tmp = (u32)fec_info[i].rxbd;
                fec_info[i].txbd =
@@ -600,17 +600,17 @@ int mcffec_initialize(bd_t * bis)
                tmp = (u32)fec_info[i].txbd;
                fec_info[i].txbuf =
                    (char *)((u32)fec_info[i].txbuf + tmp +
-                   (CFG_TX_ETH_BUFFER * sizeof(cbd_t)));
+                   (CONFIG_SYS_TX_ETH_BUFFER * sizeof(cbd_t)));
                tmp = (u32)fec_info[i].txbuf;
 #else
                fec_info[i].rxbd =
-                   (cbd_t *) memalign(CFG_CACHELINE_SIZE,
+                   (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE,
                                       (PKTBUFSRX * sizeof(cbd_t)));
                fec_info[i].txbd =
-                   (cbd_t *) memalign(CFG_CACHELINE_SIZE,
+                   (cbd_t *) memalign(CONFIG_SYS_CACHELINE_SIZE,
                                       (TX_BUF_CNT * sizeof(cbd_t)));
                fec_info[i].txbuf =
-                   (char *)memalign(CFG_CACHELINE_SIZE, DBUF_LENGTH);
+                   (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, DBUF_LENGTH);
 #endif
 
 #ifdef ET_DEBUG
@@ -618,7 +618,7 @@ int mcffec_initialize(bd_t * bis)
                       (int)fec_info[i].rxbd, (int)fec_info[i].txbd);
 #endif
 
-               fec_info[i].phy_name = (char *)memalign(CFG_CACHELINE_SIZE, 32);
+               fec_info[i].phy_name = (char *)memalign(CONFIG_SYS_CACHELINE_SIZE, 32);
 
                eth_register(dev);
 
index 4a0770814d2122a2f2684c05bbec1578ce447bf5..f93f93227786c8d520543035ff6692ad067431b0 100644 (file)
@@ -740,7 +740,7 @@ int eth_send(volatile void *packet, int length) {
        pkey = -1;
 
        dp83902a_send((u8 *) packet, length, 666);
-       tmo = get_timer (0) + TOUT * CFG_HZ;
+       tmo = get_timer (0) + TOUT * CONFIG_SYS_HZ;
        while(1) {
                dp83902a_poll();
                if (pkey != -1) {
index c011809b6fd4b2e19ea085fb116a04bea5aa98a2..c9e324ee264c637fb13254d6b88b35ac335f1946 100644 (file)
@@ -56,7 +56,7 @@ static void na_mii_write (int reg, int value)
        int mii_addr;
 
        /* Select register */
-       mii_addr = CFG_ETH_PHY_ADDR + reg;
+       mii_addr = CONFIG_SYS_ETH_PHY_ADDR + reg;
        SET_EADDR (NETARM_ETH_MII_ADDR, mii_addr);
        /* Write value */
        SET_EADDR (NETARM_ETH_MII_WRITE, value);
@@ -68,7 +68,7 @@ static unsigned int na_mii_read (int reg)
        int mii_addr, val;
 
        /* Select register */
-       mii_addr = CFG_ETH_PHY_ADDR + reg;
+       mii_addr = CONFIG_SYS_ETH_PHY_ADDR + reg;
        SET_EADDR (NETARM_ETH_MII_ADDR, mii_addr);
        /* do one management cycle */
        SET_EADDR (NETARM_ETH_MII_CMD,
index e19c22325577a98797f959b5735d32a939b04d12..c28726e698f0e796b180b083db6cb3f5b20d28f9 100644 (file)
@@ -86,8 +86,8 @@ static int nDebugLvl = DEBUG_ERROR_CRIT;
 # define ASSERT(expr, func)
 #endif                         /* DEBUG */
 
-#define NS7520_MII_NEG_DELAY           (5*CFG_HZ)      /* in s */
-#define TX_TIMEOUT                     (5*CFG_HZ)      /* in s */
+#define NS7520_MII_NEG_DELAY           (5*CONFIG_SYS_HZ)       /* in s */
+#define TX_TIMEOUT                     (5*CONFIG_SYS_HZ)       /* in s */
 #define RX_STALL_WORKAROUND_CNT 100
 
 static int ns7520_eth_reset(void);
index cade831ac90662d1c08e50f40ee27405ef803064..d4901b41188631c5ac6ee419597b0b468f26c2d2 100644 (file)
@@ -90,8 +90,8 @@ static int nDebugLvl = DEBUG_ERROR_CRIT;
 # define ASSERT(expr, func)
 #endif /* DEBUG */
 
-#define NS9750_MII_NEG_DELAY           (5*CFG_HZ) /* in s */
-#define TX_TIMEOUT                     (5*CFG_HZ) /* in s */
+#define NS9750_MII_NEG_DELAY           (5*CONFIG_SYS_HZ) /* in s */
+#define TX_TIMEOUT                     (5*CONFIG_SYS_HZ) /* in s */
 
 /* @TODO move it to eeprom.h */
 #define FS_EEPROM_AUTONEG_MASK         0x7
index 6446012f95e34361a8c1f86bb991666df3a1f2ef..e3c163a349f7eed46ec379c4e2fb3bd00ad2cd3c 100644 (file)
@@ -39,7 +39,7 @@ static void miiphy_pre (char read, unsigned char addr, unsigned char reg)
 {
        int j;                  /* counter */
 #if !(defined(CONFIG_EP8248) || defined(CONFIG_EP82XXM))
-       volatile ioport_t *iop = ioport_addr ((immap_t *) CFG_IMMR, MDIO_PORT);
+       volatile ioport_t *iop = ioport_addr ((immap_t *) CONFIG_SYS_IMMR, MDIO_PORT);
 #endif
 
        /*
@@ -124,7 +124,7 @@ int bb_miiphy_read (char *devname, unsigned char addr,
        short rdreg;            /* register working value */
        int j;                  /* counter */
 #if !(defined(CONFIG_EP8248) || defined(CONFIG_EP82XXM))
-       volatile ioport_t *iop = ioport_addr ((immap_t *) CFG_IMMR, MDIO_PORT);
+       volatile ioport_t *iop = ioport_addr ((immap_t *) CONFIG_SYS_IMMR, MDIO_PORT);
 #endif
 
        miiphy_pre (1, addr, reg);
@@ -191,7 +191,7 @@ int bb_miiphy_write (char *devname, unsigned char addr,
 {
        int j;                  /* counter */
 #if !(defined(CONFIG_EP8248) || defined(CONFIG_EP82XXM))
-       volatile ioport_t *iop = ioport_addr ((immap_t *) CFG_IMMR, MDIO_PORT);
+       volatile ioport_t *iop = ioport_addr ((immap_t *) CONFIG_SYS_IMMR, MDIO_PORT);
 #endif
 
        miiphy_pre (0, addr, reg);
index af34d7b96f5ea4084715a4be0f297ac9027ffeb2..8d372b58d91c888303684fcc42288b170f3ef8ad 100644 (file)
@@ -174,7 +174,7 @@ typedef struct s_AC SK_AC;
 #if 0
 #define SK_TICKS_PER_SEC       HZ
 #else
-#define SK_TICKS_PER_SEC       CFG_HZ
+#define SK_TICKS_PER_SEC       CONFIG_SYS_HZ
 #endif
 
 #define        SK_MEM_MAPPED_IO
index 52dc83f8bc0af9ba4c544de6b558f6d91108944d..8aad4425f7920226aeb5d0bbaed2a1f027764da2 100644 (file)
@@ -1107,10 +1107,10 @@ extern "C" {
 /*     Values of connector and PMD type comply to SysKonnect internal std */
 
 /*     B2_MAC_CFG       8 bit  MAC Configuration / Chip Revision */
-#define CFG_CHIP_R_MSK (0xf<<4)        /* Bit 7.. 4: Chip Revision */
+#define CONFIG_SYS_CHIP_R_MSK  (0xf<<4)        /* Bit 7.. 4: Chip Revision */
                                                                        /* Bit 3.. 2:   reserved */
-#define CFG_DIS_M2_CLK BIT_1S          /* Disable Clock for 2nd MAC */
-#define CFG_SNG_MAC            BIT_0S          /* MAC Config: 0=2 MACs / 1=1 MAC*/
+#define CONFIG_SYS_DIS_M2_CLK  BIT_1S          /* Disable Clock for 2nd MAC */
+#define CONFIG_SYS_SNG_MAC             BIT_0S          /* MAC Config: 0=2 MACs / 1=1 MAC*/
 
 /*     B2_CHIP_ID       8 bit  Chip Identification Number */
 #define CHIP_ID_GENESIS        0x0a            /* Chip ID for GENESIS */
index ab740c7fcd6ed610dd6f53bb9d8de5a24177051f..df63f27e84d284aee80684ee1e32f176075f04e6 100644 (file)
@@ -1882,10 +1882,10 @@ SK_IOC  IoC)            /* IO context */
 
        /* read number of MACs */
        SK_IN8(IoC, B2_MAC_CFG, &Byte);
-       pAC->GIni.GIMacsFound = (Byte & CFG_SNG_MAC) ? 1 : 2;
+       pAC->GIni.GIMacsFound = (Byte & CONFIG_SYS_SNG_MAC) ? 1 : 2;
 
        /* get Chip Revision Number */
-       pAC->GIni.GIChipRev = (SK_U8)((Byte & CFG_CHIP_R_MSK) >> 4);
+       pAC->GIni.GIChipRev = (SK_U8)((Byte & CONFIG_SYS_CHIP_R_MSK) >> 4);
 
        /* get diff. PCI parameters */
        SK_IN16(IoC, B0_CTST, &CtrlStat);
index 1e385f8ef59834e12522b576ccb565c6f0341fb1..cadf4029626a37537ad135bcac2a404a02e3e77d 100644 (file)
@@ -54,7 +54,7 @@
 #define EAGAIN                         2
 #define EBUSY                          3
 
-#define HZ                             CFG_HZ
+#define HZ                             CONFIG_SYS_HZ
 
 
 #define printk                         printf
index e8b235b4ab8f0636c5a160b80cf147dd0f2a8b21..82abb0201500ed3a90f84067ce3a487d75ce8174 100644 (file)
@@ -383,7 +383,7 @@ static void smc_write_phy_register(byte phyreg, word phydata);
 
 static int poll4int (byte mask, int timeout)
 {
-       int tmo = get_timer (0) + timeout * CFG_HZ;
+       int tmo = get_timer (0) + timeout * CONFIG_SYS_HZ;
        int is_timeout = 0;
        word old_bank = SMC_inw (BSR_REG);
 
index e34076ff763e3c43996ea8b2ea28158b3d3c364f..d7da0819d10bd07f2e5913618393888de03193e2 100644 (file)
@@ -305,8 +305,8 @@ static int init_phy(struct eth_device *dev)
        volatile tsec_t *regs = priv->regs;
 
        /* Assign a Physical address to the TBI */
-       regs->tbipa = CFG_TBIPA_VALUE;
-       phyregs->tbipa = CFG_TBIPA_VALUE;
+       regs->tbipa = CONFIG_SYS_TBIPA_VALUE;
+       phyregs->tbipa = CONFIG_SYS_TBIPA_VALUE;
        asm("sync");
 
        /* Reset MII (due to new addresses) */
@@ -1357,11 +1357,11 @@ struct phy_info phy_info_VSC8601 = {
                                /* Override PHY config settings */
                                /* Configure some basic stuff */
                                {MIIM_CONTROL, MIIM_CONTROL_INIT, &mii_cr_init},
-#ifdef CFG_VSC8601_SKEWFIX
+#ifdef CONFIG_SYS_VSC8601_SKEWFIX
                                {MIIM_VSC8601_EPHY_CON,MIIM_VSC8601_EPHY_CON_INIT_SKEW,NULL},
-#if defined(CFG_VSC8601_SKEW_TX) && defined(CFG_VSC8601_SKEW_RX)
+#if defined(CONFIG_SYS_VSC8601_SKEW_TX) && defined(CONFIG_SYS_VSC8601_SKEW_RX)
                                {MIIM_EXT_PAGE_ACCESS,1,NULL},
-#define VSC8101_SKEW   (CFG_VSC8601_SKEW_TX<<14)|(CFG_VSC8601_SKEW_RX<<12)
+#define VSC8101_SKEW   (CONFIG_SYS_VSC8601_SKEW_TX<<14)|(CONFIG_SYS_VSC8601_SKEW_RX<<12)
                                {MIIM_VSC8601_SKEW_CTRL,VSC8101_SKEW,NULL},
                                {MIIM_EXT_PAGE_ACCESS,0,NULL},
 #endif
index 50fa765f7019aef3c2de40e19ec3a12a062bb50f..079354aaff361dd9f18301b3fc2a7d7e7466be98 100644 (file)
@@ -54,7 +54,7 @@ printf ("%s %d: " fmt, __FUNCTION__, __LINE__, ##args)
 #define RX_PRINT_ERRORS
 #define TX_PRINT_ERRORS
 
-#define ETH_BASE       (CFG_TSI108_CSR_BASE + 0x6000)
+#define ETH_BASE       (CONFIG_SYS_TSI108_CSR_BASE + 0x6000)
 
 #define ETH_PORT_OFFSET        0x400
 
index 4e7259fd96930bde6cdf38ff22ecb7ccfe0380dd..ada42c41f8bfea21aa51abba163e507ed5f6262e 100644 (file)
@@ -35,13 +35,13 @@ int vsc7385_upload_firmware(void *firmware, unsigned int size)
        u8 *fw = firmware;
        unsigned int i;
 
-       u32 *gloreset = (u32 *) (CFG_VSC7385_BASE + 0x1c050);
-       u32 *icpu_ctrl = (u32 *) (CFG_VSC7385_BASE + 0x1c040);
-       u32 *icpu_addr = (u32 *) (CFG_VSC7385_BASE + 0x1c044);
-       u32 *icpu_data = (u32 *) (CFG_VSC7385_BASE + 0x1c048);
-       u32 *icpu_rom_map = (u32 *) (CFG_VSC7385_BASE + 0x1c070);
+       u32 *gloreset = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c050);
+       u32 *icpu_ctrl = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c040);
+       u32 *icpu_addr = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c044);
+       u32 *icpu_data = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c048);
+       u32 *icpu_rom_map = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c070);
 #ifdef DEBUG
-       u32 *chipid = (u32 *) (CFG_VSC7385_BASE + 0x1c060);
+       u32 *chipid = (u32 *) (CONFIG_SYS_VSC7385_BASE + 0x1c060);
 #endif
 
        out_be32(gloreset, 3);
index b5eea89e7d42d6e49ff7091411b1e3bfdefccc5b..41780dbe74130e889f13bcf3460f936fce2be69d 100644 (file)
@@ -157,7 +157,7 @@ pci_dev_t pci_find_devices(struct pci_device_id *ids, int index)
 
        for (hose = hose_head; hose; hose = hose->next)
        {
-#ifdef CFG_SCSI_SCAN_BUS_REVERSE
+#ifdef CONFIG_SYS_SCSI_SCAN_BUS_REVERSE
                for (bus = hose->last_busno; bus >= hose->first_busno; bus--)
 #else
                for (bus = hose->first_busno; bus <= hose->last_busno; bus++)
index 2acf9bf780802a8aa16b78a72e2ca48f2a7059e5..3844359513eb8ec4a0a8df8d0e6540b9ace1c267 100644 (file)
@@ -26,9 +26,9 @@
 
 #define        PCIAUTO_IDE_MODE_MASK           0x05
 
-/* the user can define CFG_PCI_CACHE_LINE_SIZE to avoid problems */
-#ifndef CFG_PCI_CACHE_LINE_SIZE
-#define CFG_PCI_CACHE_LINE_SIZE        8
+/* the user can define CONFIG_SYS_PCI_CACHE_LINE_SIZE to avoid problems */
+#ifndef CONFIG_SYS_PCI_CACHE_LINE_SIZE
+#define CONFIG_SYS_PCI_CACHE_LINE_SIZE 8
 #endif
 
 /*
@@ -154,7 +154,7 @@ void pciauto_setup_device(struct pci_controller *hose,
 
        pci_hose_write_config_dword(hose, dev, PCI_COMMAND, cmdstat);
        pci_hose_write_config_byte(hose, dev, PCI_CACHE_LINE_SIZE,
-               CFG_PCI_CACHE_LINE_SIZE);
+               CONFIG_SYS_PCI_CACHE_LINE_SIZE);
        pci_hose_write_config_byte(hose, dev, PCI_LATENCY_TIMER, 0x80);
 }
 
index edd614f236eefd8c4f4824ba57a100f2059da1ad..d153fc6bebb68b2c7fe26383a66d8fab2cde0a93 100644 (file)
@@ -47,32 +47,32 @@ void tsi108_clear_pci_error (void)
         * requests.
         */
        /* Read PB Error Log Registers */
-       err_stat = *(volatile u32 *)(CFG_TSI108_CSR_BASE +
+       err_stat = *(volatile u32 *)(CONFIG_SYS_TSI108_CSR_BASE +
                                     TSI108_PB_REG_OFFSET + PB_ERRCS);
-       err_addr = *(volatile u32 *)(CFG_TSI108_CSR_BASE +
+       err_addr = *(volatile u32 *)(CONFIG_SYS_TSI108_CSR_BASE +
                                     TSI108_PB_REG_OFFSET + PB_AERR);
        if (err_stat & PB_ERRCS_ES) {
                /* Clear PCI/X bus errors if applicable */
-               if ((err_addr & 0xFF000000) == CFG_PCI_CFG_BASE) {
+               if ((err_addr & 0xFF000000) == CONFIG_SYS_PCI_CFG_BASE) {
                        /* Clear error flag */
-                       *(u32 *) (CFG_TSI108_CSR_BASE +
+                       *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE +
                                  TSI108_PB_REG_OFFSET + PB_ERRCS) =
                            PB_ERRCS_ES;
 
                        /* Clear read error reported in PB_ISR */
-                       *(u32 *) (CFG_TSI108_CSR_BASE +
+                       *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE +
                                  TSI108_PB_REG_OFFSET + PB_ISR) =
                            PB_ISR_PBS_RD_ERR;
 
                /* Clear errors reported by PCI CSR (Normally Master Abort) */
-                       pci_stat = *(volatile u32 *)(CFG_TSI108_CSR_BASE +
+                       pci_stat = *(volatile u32 *)(CONFIG_SYS_TSI108_CSR_BASE +
                                                     TSI108_PCI_REG_OFFSET +
                                                     PCI_CSR);
-                       *(volatile u32 *)(CFG_TSI108_CSR_BASE +
+                       *(volatile u32 *)(CONFIG_SYS_TSI108_CSR_BASE +
                                          TSI108_PCI_REG_OFFSET + PCI_CSR) =
                            pci_stat;
 
-                       *(volatile u32 *)(CFG_TSI108_CSR_BASE +
+                       *(volatile u32 *)(CONFIG_SYS_TSI108_CSR_BASE +
                                          TSI108_PCI_REG_OFFSET +
                                          PCI_IRP_STAT) = PCI_IRP_STAT_P_CSR;
                }
@@ -102,8 +102,8 @@ unsigned int __get_pci_config_dword (u32 addr)
 static int tsi108_read_config_dword (struct pci_controller *hose,
                                    pci_dev_t dev, int offset, u32 * value)
 {
-       dev &= (CFG_PCI_CFG_SIZE - 1);
-       dev |= (CFG_PCI_CFG_BASE | (offset & 0xfc));
+       dev &= (CONFIG_SYS_PCI_CFG_SIZE - 1);
+       dev |= (CONFIG_SYS_PCI_CFG_BASE | (offset & 0xfc));
        *value = __get_pci_config_dword(dev);
        if (0xFFFFFFFF == *value)
                tsi108_clear_pci_error ();
@@ -113,8 +113,8 @@ static int tsi108_read_config_dword (struct pci_controller *hose,
 static int tsi108_write_config_dword (struct pci_controller *hose,
                                     pci_dev_t dev, int offset, u32 value)
 {
-       dev &= (CFG_PCI_CFG_SIZE - 1);
-       dev |= (CFG_PCI_CFG_BASE | (offset & 0xfc));
+       dev &= (CONFIG_SYS_PCI_CFG_SIZE - 1);
+       dev |= (CONFIG_SYS_PCI_CFG_BASE | (offset & 0xfc));
 
        out_le32 ((volatile unsigned *)dev, value);
 
@@ -129,19 +129,19 @@ void pci_init_board (void)
        hose->last_busno = 0xff;
 
        pci_set_region (hose->regions + 0,
-                      CFG_PCI_MEMORY_BUS,
-                      CFG_PCI_MEMORY_PHYS,
-                      CFG_PCI_MEMORY_SIZE, PCI_REGION_MEM | PCI_REGION_MEMORY);
+                      CONFIG_SYS_PCI_MEMORY_BUS,
+                      CONFIG_SYS_PCI_MEMORY_PHYS,
+                      CONFIG_SYS_PCI_MEMORY_SIZE, PCI_REGION_MEM | PCI_REGION_MEMORY);
 
        /* PCI memory space */
        pci_set_region (hose->regions + 1,
-                      CFG_PCI_MEM_BUS,
-                      CFG_PCI_MEM_PHYS, CFG_PCI_MEM_SIZE, PCI_REGION_MEM);
+                      CONFIG_SYS_PCI_MEM_BUS,
+                      CONFIG_SYS_PCI_MEM_PHYS, CONFIG_SYS_PCI_MEM_SIZE, PCI_REGION_MEM);
 
        /* PCI I/O space */
        pci_set_region (hose->regions + 2,
-                      CFG_PCI_IO_BUS,
-                      CFG_PCI_IO_PHYS, CFG_PCI_IO_SIZE, PCI_REGION_IO);
+                      CONFIG_SYS_PCI_IO_BUS,
+                      CONFIG_SYS_PCI_IO_PHYS, CONFIG_SYS_PCI_IO_SIZE, PCI_REGION_IO);
 
        hose->region_count = 3;
 
index d7355a4084d5ba018224daa87ac4b386e663d2fe..85614223f086d4cdec7f503c2c6324846e445d9d 100644 (file)
@@ -42,7 +42,7 @@
                        out_be16((u16*) (addr),(val)); udelay(1); \
                        } while (0)
 
-extern uint ide_bus_offset[CFG_IDE_MAXBUS];
+extern uint ide_bus_offset[CONFIG_SYS_IDE_MAXBUS];
 
 void initialise_pic(void);
 void initialise_dma(void);
@@ -105,7 +105,7 @@ void initialise_w83c553f(void)
 
        pci_read_config_dword(devbusfn, PCI_BASE_ADDRESS_0, &ide_bus_offset[0]);
        ide_bus_offset[0] &= ~1;
-#if CFG_IDE_MAXBUS > 1
+#if CONFIG_SYS_IDE_MAXBUS > 1
        pci_read_config_dword(devbusfn, PCI_BASE_ADDRESS_2, &ide_bus_offset[1]);
        ide_bus_offset[1] &= ~1;
 #endif
index 1e2431e49707c50f685b62a76e694d3e3eedc6fc..1bcb3a52eb8fd7cbea4ab17dac09660b13c076b5 100644 (file)
@@ -909,8 +909,8 @@ int i82365_init (void)
        mem.map = 0;
        mem.flags = MAP_ATTRIB | MAP_ACTIVE;
        mem.speed = 300;
-       mem.sys_start = CFG_PCMCIA_MEM_ADDR;
-       mem.sys_stop = CFG_PCMCIA_MEM_ADDR + CFG_PCMCIA_MEM_SIZE - 1;
+       mem.sys_start = CONFIG_SYS_PCMCIA_MEM_ADDR;
+       mem.sys_stop = CONFIG_SYS_PCMCIA_MEM_ADDR + CONFIG_SYS_PCMCIA_MEM_SIZE - 1;
        mem.card_start = 0;
        i365_set_mem_map (&socket, &mem);
 
@@ -918,8 +918,8 @@ int i82365_init (void)
        mem.map = 1;
        mem.flags = MAP_ACTIVE;
        mem.speed = 300;
-       mem.sys_start = CFG_PCMCIA_MEM_ADDR + CFG_PCMCIA_MEM_SIZE;
-       mem.sys_stop = CFG_PCMCIA_MEM_ADDR + (2 * CFG_PCMCIA_MEM_SIZE) - 1;
+       mem.sys_start = CONFIG_SYS_PCMCIA_MEM_ADDR + CONFIG_SYS_PCMCIA_MEM_SIZE;
+       mem.sys_stop = CONFIG_SYS_PCMCIA_MEM_ADDR + (2 * CONFIG_SYS_PCMCIA_MEM_SIZE) - 1;
        mem.card_start = 0;
        i365_set_mem_map (&socket, &mem);
 
@@ -988,8 +988,8 @@ static void i82365_dump_regions (pci_dev_t dev)
 {
        u_int tmp[2];
        u_int *mem = (void *) socket.cb_phys;
-       u_char *cis = (void *) CFG_PCMCIA_MEM_ADDR;
-       u_char *ide = (void *) (CFG_ATA_BASE_ADDR + CFG_ATA_REG_OFFSET);
+       u_char *cis = (void *) CONFIG_SYS_PCMCIA_MEM_ADDR;
+       u_char *ide = (void *) (CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_REG_OFFSET);
 
        pci_read_config_dword (dev, 0x00, tmp + 0);
        pci_read_config_dword (dev, 0x80, tmp + 1);
index d075ba37cd4262be2d8e9e4304e53cc7aadced5e..f715dec5f138f55decd3026ddfdf42c80c649e2f 100644 (file)
 #if defined(CONFIG_PCMCIA)
 
 /* MR-SHPC-01 register */
-#define MRSHPC_MODE    (CFG_MARUBUN_MRSHPC + 4)
-#define MRSHPC_OPTION   (CFG_MARUBUN_MRSHPC + 6)
-#define MRSHPC_CSR      (CFG_MARUBUN_MRSHPC + 8)
-#define MRSHPC_ISR      (CFG_MARUBUN_MRSHPC + 10)
-#define MRSHPC_ICR      (CFG_MARUBUN_MRSHPC + 12)
-#define MRSHPC_CPWCR    (CFG_MARUBUN_MRSHPC + 14)
-#define MRSHPC_MW0CR1   (CFG_MARUBUN_MRSHPC + 16)
-#define MRSHPC_MW1CR1   (CFG_MARUBUN_MRSHPC + 18)
-#define MRSHPC_IOWCR1   (CFG_MARUBUN_MRSHPC + 20)
-#define MRSHPC_MW0CR2   (CFG_MARUBUN_MRSHPC + 22)
-#define MRSHPC_MW1CR2   (CFG_MARUBUN_MRSHPC + 24)
-#define MRSHPC_IOWCR2   (CFG_MARUBUN_MRSHPC + 26)
-#define MRSHPC_CDCR     (CFG_MARUBUN_MRSHPC + 28)
-#define MRSHPC_PCIC_INFO (CFG_MARUBUN_MRSHPC + 30)
+#define MRSHPC_MODE    (CONFIG_SYS_MARUBUN_MRSHPC + 4)
+#define MRSHPC_OPTION   (CONFIG_SYS_MARUBUN_MRSHPC + 6)
+#define MRSHPC_CSR      (CONFIG_SYS_MARUBUN_MRSHPC + 8)
+#define MRSHPC_ISR      (CONFIG_SYS_MARUBUN_MRSHPC + 10)
+#define MRSHPC_ICR      (CONFIG_SYS_MARUBUN_MRSHPC + 12)
+#define MRSHPC_CPWCR    (CONFIG_SYS_MARUBUN_MRSHPC + 14)
+#define MRSHPC_MW0CR1   (CONFIG_SYS_MARUBUN_MRSHPC + 16)
+#define MRSHPC_MW1CR1   (CONFIG_SYS_MARUBUN_MRSHPC + 18)
+#define MRSHPC_IOWCR1   (CONFIG_SYS_MARUBUN_MRSHPC + 20)
+#define MRSHPC_MW0CR2   (CONFIG_SYS_MARUBUN_MRSHPC + 22)
+#define MRSHPC_MW1CR2   (CONFIG_SYS_MARUBUN_MRSHPC + 24)
+#define MRSHPC_IOWCR2   (CONFIG_SYS_MARUBUN_MRSHPC + 26)
+#define MRSHPC_CDCR     (CONFIG_SYS_MARUBUN_MRSHPC + 28)
+#define MRSHPC_PCIC_INFO (CONFIG_SYS_MARUBUN_MRSHPC + 30)
 
 int pcmcia_on (void)
 {
@@ -98,8 +98,8 @@ int pcmcia_on (void)
 
        outw(0x0000,MRSHPC_ISR);
        outw(0x2000,MRSHPC_ICR);
-       outb(0x00,(CFG_MARUBUN_MW2 + 0x206));
-       outb(0x42,(CFG_MARUBUN_MW2 + 0x200));
+       outb(0x00,(CONFIG_SYS_MARUBUN_MW2 + 0x206));
+       outb(0x42,(CONFIG_SYS_MARUBUN_MW2 + 0x200));
 
        return 0;
 }
index 14477a4487faa326b3931f19e961443f13a2e21a..95ea5e999f518b6e0918613842b18ab1b07c1188 100644 (file)
@@ -34,8 +34,8 @@ static u_int m8xx_get_speed(u_int ns, u_int is_io);
 
 /* look up table for pgcrx registers */
 u_int *pcmcia_pgcrx[2] = {
-       &((immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pgcra,
-       &((immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pgcrb,
+       &((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pgcra,
+       &((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pgcrb,
 };
 
 /*
@@ -66,11 +66,11 @@ static const u_int m8xx_size_to_gray[M8XX_SIZES_NO] =
 #endif
 
 #if    defined(CONFIG_LWMON) || defined(CONFIG_NSCU)
-#define        CFG_PCMCIA_TIMING       (       PCMCIA_SHT(9)   \
+#define        CONFIG_SYS_PCMCIA_TIMING        (       PCMCIA_SHT(9)   \
                                |       PCMCIA_SST(3)   \
                                |       PCMCIA_SL(12))
 #else
-#define        CFG_PCMCIA_TIMING       (       PCMCIA_SHT(2)   \
+#define        CONFIG_SYS_PCMCIA_TIMING        (       PCMCIA_SHT(2)   \
                                |       PCMCIA_SST(4)   \
                                |       PCMCIA_SL(9))
 #endif
@@ -88,12 +88,12 @@ int pcmcia_on (void)
        debug ("Enable PCMCIA " PCMCIA_SLOT_MSG "\n");
 
        /* intialize the fixed memory windows */
-       win = (pcmcia_win_t *)(&((immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pbr0);
-       base = CFG_PCMCIA_MEM_ADDR;
+       win = (pcmcia_win_t *)(&((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pbr0);
+       base = CONFIG_SYS_PCMCIA_MEM_ADDR;
 
-       if((reg = m8xx_get_graycode(CFG_PCMCIA_MEM_SIZE)) == -1) {
+       if((reg = m8xx_get_graycode(CONFIG_SYS_PCMCIA_MEM_SIZE)) == -1) {
                printf ("Cannot set window size to 0x%08x\n",
-                       CFG_PCMCIA_MEM_SIZE);
+                       CONFIG_SYS_PCMCIA_MEM_SIZE);
                return (1);
        }
 
@@ -125,7 +125,7 @@ int pcmcia_on (void)
                                |       PCMCIA_PRS_ATTR
                                |       slotbit
                                |       PCMCIA_PV
-                               |       CFG_PCMCIA_TIMING );
+                               |       CONFIG_SYS_PCMCIA_TIMING );
                        break;
                }
                case 5:
@@ -135,7 +135,7 @@ int pcmcia_on (void)
                                |       PCMCIA_PRS_IO
                                |       slotbit
                                |       PCMCIA_PV
-                               |       CFG_PCMCIA_TIMING );
+                               |       CONFIG_SYS_PCMCIA_TIMING );
                        break;
                }
                case 6:
@@ -145,7 +145,7 @@ int pcmcia_on (void)
                                |       PCMCIA_PRS_IO
                                |       slotbit
                                |       PCMCIA_PV
-                               |       CFG_PCMCIA_TIMING );
+                               |       CONFIG_SYS_PCMCIA_TIMING );
                        break;
                }
 #endif /* CONFIG_IDE_8xx_PCCARD */
@@ -157,7 +157,7 @@ int pcmcia_on (void)
                                |       PCMCIA_PRS_IO
                                |       slotbit
                                |       PCMCIA_PV
-                               |       CFG_PCMCIA_TIMING );
+                               |       CONFIG_SYS_PCMCIA_TIMING );
                        break;
                }
 #endif /* CONFIG_HMI10 */
@@ -168,7 +168,7 @@ int pcmcia_on (void)
 
                debug ("MemWin %d: PBR 0x%08lX  POR %08lX\n",
                       i, win->br, win->or);
-               base += CFG_PCMCIA_MEM_SIZE;
+               base += CONFIG_SYS_PCMCIA_MEM_SIZE;
                ++win;
        }
 
@@ -198,14 +198,14 @@ int pcmcia_off (void)
        printf ("Disable PCMCIA " PCMCIA_SLOT_MSG "\n");
 
        /* clear interrupt state, and disable interrupts */
-       ((immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pscr =  PCMCIA_MASK(_slot_);
-       ((immap_t *)CFG_IMMR)->im_pcmcia.pcmc_per &= ~PCMCIA_MASK(_slot_);
+       ((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pscr =  PCMCIA_MASK(_slot_);
+       ((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_per &= ~PCMCIA_MASK(_slot_);
 
        /* turn off interrupt and disable CxOE */
        PCMCIA_PGCRX(_slot_) = __MY_PCMCIA_GCRX_CXOE;
 
        /* turn off memory windows */
-       win = (pcmcia_win_t *)(&((immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pbr0);
+       win = (pcmcia_win_t *)(&((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pbr0);
 
        for (i=0; i<PCMCIA_MEM_WIN_NO; ++i) {
                /* disable memory window */
index 11d8590d7bb9915ef53ebc2552bd7652b733c0da..d06ab746c8ad8c50e7a293daa8dfa47c548983fa 100644 (file)
@@ -13,12 +13,12 @@ static inline void msWait(unsigned msVal)
 int pcmcia_on (void)
 {
        unsigned int reg_arr[] = {
-               0x48000028, CFG_MCMEM0_VAL,
-               0x4800002c, CFG_MCMEM1_VAL,
-               0x48000030, CFG_MCATT0_VAL,
-               0x48000034, CFG_MCATT1_VAL,
-               0x48000038, CFG_MCIO0_VAL,
-               0x4800003c, CFG_MCIO1_VAL,
+               0x48000028, CONFIG_SYS_MCMEM0_VAL,
+               0x4800002c, CONFIG_SYS_MCMEM1_VAL,
+               0x48000030, CONFIG_SYS_MCATT0_VAL,
+               0x48000034, CONFIG_SYS_MCATT1_VAL,
+               0x48000038, CONFIG_SYS_MCIO0_VAL,
+               0x4800003c, CONFIG_SYS_MCIO1_VAL,
 
                0, 0
        };
index c876d0c402556126d2953af71f30ac35b297be51..6ab97597f7b888d199d51f03d4859ddf43072906 100644 (file)
@@ -88,8 +88,8 @@ const char *indent = "\t   ";
 
 int do_pinit(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 {
-#ifndef CFG_FIRST_PCMCIA_BUS
-# define CFG_FIRST_PCMCIA_BUS 0
+#ifndef CONFIG_SYS_FIRST_PCMCIA_BUS
+# define CONFIG_SYS_FIRST_PCMCIA_BUS 0
 #endif
 
        int rcode = 0;
@@ -99,7 +99,7 @@ int do_pinit(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                return 1;
        }
        if (strcmp(argv[1],"on") == 0) {
-               rcode = pcmcia_on(CFG_FIRST_PCMCIA_BUS);
+               rcode = pcmcia_on(CONFIG_SYS_FIRST_PCMCIA_BUS);
        } else if (strcmp(argv[1],"off") == 0) {
                rcode = pcmcia_off();
        } else {
@@ -148,11 +148,11 @@ int pcmcia_on(int ide_base_bus)
                debug("Enable PCMCIA Ti PCI1410A\n");
        }
 
-       pcmcia_cis_ptr = CFG_PCMCIA_CIS_WIN;
-       cis_len = CFG_PCMCIA_CIS_WIN_SIZE;
+       pcmcia_cis_ptr = CONFIG_SYS_PCMCIA_CIS_WIN;
+       cis_len = CONFIG_SYS_PCMCIA_CIS_WIN_SIZE;
 
-       io_base = CFG_PCMCIA_IO_WIN;
-       io_len = CFG_PCMCIA_IO_WIN_SIZE;
+       io_base = CONFIG_SYS_PCMCIA_IO_WIN;
+       io_len = CONFIG_SYS_PCMCIA_IO_WIN_SIZE;
 
        /*
         * Setup the PCI device.
index cc980c2ea3981c650b740551d3f211df0ed7077f..6ba8b5c01ffd03da4b64dc82df5ebb05aec87d22 100644 (file)
@@ -40,7 +40,7 @@
 
 static inline void power_config(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        /*
         * Configure Port B  pins for
         * 5 Volts Enable and 3 Volts enable
@@ -50,21 +50,21 @@ static inline void power_config(int slot)
 
 static inline void power_off(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        /* remove all power */
        immap->im_cpm.cp_pbdat |= 0x00000300;
 }
 
 static inline void power_on_5_0(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        immap->im_cpm.cp_pbdat &= ~(0x0000100);
        immap->im_cpm.cp_pbdir |= 0x00000300;
 }
 
 static inline void power_on_3_3(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        immap->im_cpm.cp_pbdat &= ~(0x0000200);
        immap->im_cpm.cp_pbdir |= 0x00000300;
 }
@@ -97,7 +97,7 @@ static inline void power_on_3_3(int slot)
 
 static inline void power_config(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        /*
        * Configure Port C pins for
        * 5 Volts Enable and 3 Volts enable
@@ -108,20 +108,20 @@ static inline void power_config(int slot)
 
 static inline void power_off(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        immap->im_ioport.iop_pcdat &= ~(0x0002 | 0x0004);
 }
 
 static inline void power_on_5_0(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        immap->im_ioport.iop_pcdat |= 0x0004;
        immap->im_ioport.iop_pcdir |= (0x0002 | 0x0004);
 }
 
 static inline void power_on_3_3(int slot)
 {
-       volatile immap_t *immap = (immap_t *)CFG_IMMR;
+       volatile immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
        immap->im_ioport.iop_pcdat |= 0x0002;
        immap->im_ioport.iop_pcdir |= (0x0002 | 0x0004);
 }
@@ -132,14 +132,14 @@ static inline void power_on_3_3(int slot)
 static inline int check_card_is_absent(int slot)
 {
        volatile pcmconf8xx_t *pcmp =
-               (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+               (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        return pcmp->pcmc_pipr & (0x10000000 >> (slot << 4));
 }
 #else
 static inline int check_card_is_absent(int slot)
 {
        volatile pcmconf8xx_t *pcmp =
-               (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+               (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        return pcmp->pcmc_pipr & (0x18000000 >> (slot << 4));
 }
 #endif
@@ -153,9 +153,9 @@ static inline int check_card_is_absent(int slot)
 int pcmcia_hardware_enable(int slot)
 {
        volatile pcmconf8xx_t *pcmp =
-               (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+               (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
        volatile sysconf8xx_t *sysp =
-               (sysconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_siu_conf));
+               (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
        uint reg, mask;
 
        debug ("hardware_enable: " PCMCIA_BOARD_MSG " Slot %c\n", 'A'+slot);
@@ -271,7 +271,7 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
        u_long reg;
 # ifdef DEBUG
        volatile pcmconf8xx_t *pcmp =
-               (pcmconf8xx_t *)(&(((immap_t *)CFG_IMMR)->im_pcmcia));
+               (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
 # endif
 
        debug ("voltage_set: " PCMCIA_BOARD_MSG
index 0d48360a2de1938f20f2024ec44f6bc134fdf817..ed7ed65759e3f8d33bfae2cd81b58ccbc2aee36f 100644 (file)
 #ifdef CONFIG_UEC_ETH1
 static uec_info_t eth1_uec_info = {
        .uf_info                = {
-               .ucc_num        = CFG_UEC1_UCC_NUM,
-               .rx_clock       = CFG_UEC1_RX_CLK,
-               .tx_clock       = CFG_UEC1_TX_CLK,
-               .eth_type       = CFG_UEC1_ETH_TYPE,
+               .ucc_num        = CONFIG_SYS_UEC1_UCC_NUM,
+               .rx_clock       = CONFIG_SYS_UEC1_RX_CLK,
+               .tx_clock       = CONFIG_SYS_UEC1_TX_CLK,
+               .eth_type       = CONFIG_SYS_UEC1_ETH_TYPE,
        },
-#if (CFG_UEC1_ETH_TYPE == FAST_ETH)
+#if (CONFIG_SYS_UEC1_ETH_TYPE == FAST_ETH)
        .num_threads_tx         = UEC_NUM_OF_THREADS_1,
        .num_threads_rx         = UEC_NUM_OF_THREADS_1,
 #else
@@ -50,19 +50,19 @@ static uec_info_t eth1_uec_info = {
        .riscRx                 = QE_RISC_ALLOCATION_RISC1_AND_RISC2,
        .tx_bd_ring_len         = 16,
        .rx_bd_ring_len         = 16,
-       .phy_address            = CFG_UEC1_PHY_ADDR,
-       .enet_interface         = CFG_UEC1_INTERFACE_MODE,
+       .phy_address            = CONFIG_SYS_UEC1_PHY_ADDR,
+       .enet_interface         = CONFIG_SYS_UEC1_INTERFACE_MODE,
 };
 #endif
 #ifdef CONFIG_UEC_ETH2
 static uec_info_t eth2_uec_info = {
        .uf_info                = {
-               .ucc_num        = CFG_UEC2_UCC_NUM,
-               .rx_clock       = CFG_UEC2_RX_CLK,
-               .tx_clock       = CFG_UEC2_TX_CLK,
-               .eth_type       = CFG_UEC2_ETH_TYPE,
+               .ucc_num        = CONFIG_SYS_UEC2_UCC_NUM,
+               .rx_clock       = CONFIG_SYS_UEC2_RX_CLK,
+               .tx_clock       = CONFIG_SYS_UEC2_TX_CLK,
+               .eth_type       = CONFIG_SYS_UEC2_ETH_TYPE,
        },
-#if (CFG_UEC2_ETH_TYPE == FAST_ETH)
+#if (CONFIG_SYS_UEC2_ETH_TYPE == FAST_ETH)
        .num_threads_tx         = UEC_NUM_OF_THREADS_1,
        .num_threads_rx         = UEC_NUM_OF_THREADS_1,
 #else
@@ -73,19 +73,19 @@ static uec_info_t eth2_uec_info = {
        .riscRx                 = QE_RISC_ALLOCATION_RISC1_AND_RISC2,
        .tx_bd_ring_len         = 16,
        .rx_bd_ring_len         = 16,
-       .phy_address            = CFG_UEC2_PHY_ADDR,
-       .enet_interface         = CFG_UEC2_INTERFACE_MODE,
+       .phy_address            = CONFIG_SYS_UEC2_PHY_ADDR,
+       .enet_interface         = CONFIG_SYS_UEC2_INTERFACE_MODE,
 };
 #endif
 #ifdef CONFIG_UEC_ETH3
 static uec_info_t eth3_uec_info = {
        .uf_info                = {
-               .ucc_num        = CFG_UEC3_UCC_NUM,
-               .rx_clock       = CFG_UEC3_RX_CLK,
-               .tx_clock       = CFG_UEC3_TX_CLK,
-               .eth_type       = CFG_UEC3_ETH_TYPE,
+               .ucc_num        = CONFIG_SYS_UEC3_UCC_NUM,
+               .rx_clock       = CONFIG_SYS_UEC3_RX_CLK,
+               .tx_clock       = CONFIG_SYS_UEC3_TX_CLK,
+               .eth_type       = CONFIG_SYS_UEC3_ETH_TYPE,
        },
-#if (CFG_UEC3_ETH_TYPE == FAST_ETH)
+#if (CONFIG_SYS_UEC3_ETH_TYPE == FAST_ETH)
        .num_threads_tx         = UEC_NUM_OF_THREADS_1,
        .num_threads_rx         = UEC_NUM_OF_THREADS_1,
 #else
@@ -96,19 +96,19 @@ static uec_info_t eth3_uec_info = {
        .riscRx                 = QE_RISC_ALLOCATION_RISC1_AND_RISC2,
        .tx_bd_ring_len         = 16,
        .rx_bd_ring_len         = 16,
-       .phy_address            = CFG_UEC3_PHY_ADDR,
-       .enet_interface         = CFG_UEC3_INTERFACE_MODE,
+       .phy_address            = CONFIG_SYS_UEC3_PHY_ADDR,
+       .enet_interface         = CONFIG_SYS_UEC3_INTERFACE_MODE,
 };
 #endif
 #ifdef CONFIG_UEC_ETH4
 static uec_info_t eth4_uec_info = {
        .uf_info                = {
-               .ucc_num        = CFG_UEC4_UCC_NUM,
-               .rx_clock       = CFG_UEC4_RX_CLK,
-               .tx_clock       = CFG_UEC4_TX_CLK,
-               .eth_type       = CFG_UEC4_ETH_TYPE,
+               .ucc_num        = CONFIG_SYS_UEC4_UCC_NUM,
+               .rx_clock       = CONFIG_SYS_UEC4_RX_CLK,
+               .tx_clock       = CONFIG_SYS_UEC4_TX_CLK,
+               .eth_type       = CONFIG_SYS_UEC4_ETH_TYPE,
        },
-#if (CFG_UEC4_ETH_TYPE == FAST_ETH)
+#if (CONFIG_SYS_UEC4_ETH_TYPE == FAST_ETH)
        .num_threads_tx         = UEC_NUM_OF_THREADS_1,
        .num_threads_rx         = UEC_NUM_OF_THREADS_1,
 #else
@@ -119,19 +119,19 @@ static uec_info_t eth4_uec_info = {
        .riscRx                 = QE_RISC_ALLOCATION_RISC1_AND_RISC2,
        .tx_bd_ring_len         = 16,
        .rx_bd_ring_len         = 16,
-       .phy_address            = CFG_UEC4_PHY_ADDR,
-       .enet_interface         = CFG_UEC4_INTERFACE_MODE,
+       .phy_address            = CONFIG_SYS_UEC4_PHY_ADDR,
+       .enet_interface         = CONFIG_SYS_UEC4_INTERFACE_MODE,
 };
 #endif
 #ifdef CONFIG_UEC_ETH5
 static uec_info_t eth5_uec_info = {
        .uf_info                = {
-               .ucc_num        = CFG_UEC5_UCC_NUM,
-               .rx_clock       = CFG_UEC5_RX_CLK,
-               .tx_clock       = CFG_UEC5_TX_CLK,
-               .eth_type       = CFG_UEC5_ETH_TYPE,
+               .ucc_num        = CONFIG_SYS_UEC5_UCC_NUM,
+               .rx_clock       = CONFIG_SYS_UEC5_RX_CLK,
+               .tx_clock       = CONFIG_SYS_UEC5_TX_CLK,
+               .eth_type       = CONFIG_SYS_UEC5_ETH_TYPE,
        },
-#if (CFG_UEC5_ETH_TYPE == FAST_ETH)
+#if (CONFIG_SYS_UEC5_ETH_TYPE == FAST_ETH)
        .num_threads_tx         = UEC_NUM_OF_THREADS_1,
        .num_threads_rx         = UEC_NUM_OF_THREADS_1,
 #else
@@ -142,19 +142,19 @@ static uec_info_t eth5_uec_info = {
        .riscRx                 = QE_RISC_ALLOCATION_RISC1_AND_RISC2,
        .tx_bd_ring_len         = 16,
        .rx_bd_ring_len         = 16,
-       .phy_address            = CFG_UEC5_PHY_ADDR,
-       .enet_interface         = CFG_UEC5_INTERFACE_MODE,
+       .phy_address            = CONFIG_SYS_UEC5_PHY_ADDR,
+       .enet_interface         = CONFIG_SYS_UEC5_INTERFACE_MODE,
 };
 #endif
 #ifdef CONFIG_UEC_ETH6
 static uec_info_t eth6_uec_info = {
        .uf_info                = {
-               .ucc_num        = CFG_UEC6_UCC_NUM,
-               .rx_clock       = CFG_UEC6_RX_CLK,
-               .tx_clock       = CFG_UEC6_TX_CLK,
-               .eth_type       = CFG_UEC6_ETH_TYPE,
+               .ucc_num        = CONFIG_SYS_UEC6_UCC_NUM,
+               .rx_clock       = CONFIG_SYS_UEC6_RX_CLK,
+               .tx_clock       = CONFIG_SYS_UEC6_TX_CLK,
+               .eth_type       = CONFIG_SYS_UEC6_ETH_TYPE,
        },
-#if (CFG_UEC6_ETH_TYPE == FAST_ETH)
+#if (CONFIG_SYS_UEC6_ETH_TYPE == FAST_ETH)
        .num_threads_tx         = UEC_NUM_OF_THREADS_1,
        .num_threads_rx         = UEC_NUM_OF_THREADS_1,
 #else
@@ -165,8 +165,8 @@ static uec_info_t eth6_uec_info = {
        .riscRx                 = QE_RISC_ALLOCATION_RISC1_AND_RISC2,
        .tx_bd_ring_len         = 16,
        .rx_bd_ring_len         = 16,
-       .phy_address            = CFG_UEC6_PHY_ADDR,
-       .enet_interface         = CFG_UEC6_INTERFACE_MODE,
+       .phy_address            = CONFIG_SYS_UEC6_PHY_ADDR,
+       .enet_interface         = CONFIG_SYS_UEC6_INTERFACE_MODE,
 };
 #endif
 
index 03c4089267e1923522308a77ff6c7a027e53363b..75f88a9a529dd7fe80435381df8bac77afaa22f5 100644 (file)
@@ -86,7 +86,7 @@ static void init_spi (void);
 /* read clock time from DS1306 and return it in *tmp */
 int rtc_get (struct rtc_time *tmp)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        unsigned char spi_byte; /* Data Byte */
 
        init_spi ();            /* set port B for software SPI */
@@ -143,7 +143,7 @@ int rtc_get (struct rtc_time *tmp)
 /* set clock time in DS1306 RTC and in MPC8xx RTC */
 int rtc_set (struct rtc_time *tmp)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        init_spi ();            /* set port B for software SPI */
 
@@ -218,7 +218,7 @@ int rtc_set (struct rtc_time *tmp)
 /* Initialize Port B for software SPI */
 static void init_spi (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /* Force output pins to begin at logic 0 */
        immap->im_cpm.cp_pbdat &= ~(PB_SPI_CE | PB_SPIMOSI | PB_SPISCK);
@@ -235,7 +235,7 @@ static void init_spi (void)
 /* NOTE: soft_spi_send() assumes that the I/O lines are configured already */
 static void soft_spi_send (unsigned char n)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        unsigned char bitpos;   /* bit position to receive */
        unsigned char i;        /* Loop Control */
 
@@ -264,7 +264,7 @@ static void soft_spi_send (unsigned char n)
 /* NOTE: soft_spi_read() assumes that the I/O lines are configured already */
 static unsigned char soft_spi_read (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        unsigned char spi_byte = 0;     /* Return value, assume success */
        unsigned char bitpos;   /* bit position to receive */
@@ -314,7 +314,7 @@ int rtc_get (struct rtc_time *tmp)
         * step just once.
         */
        if (!slave) {
-               slave = spi_setup_slave(0, CFG_SPI_RTC_DEVID, 600000,
+               slave = spi_setup_slave(0, CONFIG_SYS_SPI_RTC_DEVID, 600000,
                                SPI_MODE_3 | SPI_CS_HIGH);
                if (!slave)
                        return;
@@ -377,7 +377,7 @@ int rtc_set (struct rtc_time *tmp)
 {
        /* Assuming Vcc = 2.0V (lowest speed) */
        if (!slave) {
-               slave = spi_setup_slave(0, CFG_SPI_RTC_DEVID, 600000,
+               slave = spi_setup_slave(0, CONFIG_SYS_SPI_RTC_DEVID, 600000,
                                SPI_MODE_3 | SPI_CS_HIGH);
                if (!slave)
                        return;
@@ -408,7 +408,7 @@ void rtc_reset (void)
 {
        /* Assuming Vcc = 2.0V (lowest speed) */
        if (!slave) {
-               slave = spi_setup_slave(0, CFG_SPI_RTC_DEVID, 600000,
+               slave = spi_setup_slave(0, CONFIG_SYS_SPI_RTC_DEVID, 600000,
                                SPI_MODE_3 | SPI_CS_HIGH);
                if (!slave)
                        return;
index afc4b782daa9ef61f7cb42828ebe22f9ccea2d78..0650d915abb80c72ef04b2bc5372c975c377bb05 100644 (file)
 #endif
 /*---------------------------------------------------------------------*/
 
-#ifndef CFG_I2C_RTC_ADDR
-# define CFG_I2C_RTC_ADDR      0x68
+#ifndef CONFIG_SYS_I2C_RTC_ADDR
+# define CONFIG_SYS_I2C_RTC_ADDR       0x68
 #endif
 
-#if defined(CONFIG_RTC_DS1307) && (CFG_I2C_SPEED > 100000)
+#if defined(CONFIG_RTC_DS1307) && (CONFIG_SYS_I2C_SPEED > 100000)
 # error The DS1307 is specified only up to 100kHz!
 #endif
 
@@ -187,13 +187,13 @@ void rtc_reset (void)
 static
 uchar rtc_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
 }
 
 
 static void rtc_write (uchar reg, uchar val)
 {
-       i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+       i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
 }
 
 static unsigned bcd2bin (uchar n)
index 509f81ff7507661198c4710b2cd7a13a0d26c271..58e3966ec7b0937a436e862f3d417b2c13036bc2 100644 (file)
@@ -160,10 +160,10 @@ int rtc_set (struct rtc_time *tmp)
  * SQW/INTB* pin and program it for 32,768 Hz output. Note that
  * according to the datasheet, turning on the square wave output
  * increases the current drain on the backup battery from about
- * 600 nA to 2uA. Define CFG_RTC_DS1337_NOOSC if you wish to turn
+ * 600 nA to 2uA. Define CONFIG_SYS_RTC_DS1337_NOOSC if you wish to turn
  * off the OSC output.
  */
-#ifdef CFG_RTC_DS1337_NOOSC
+#ifdef CONFIG_SYS_RTC_DS1337_NOOSC
  #define RTC_DS1337_RESET_VAL \
        (RTC_CTL_BIT_INTCN | RTC_CTL_BIT_RS1 | RTC_CTL_BIT_RS2)
 #else
@@ -182,13 +182,13 @@ void rtc_reset (void)
 static
 uchar rtc_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
 }
 
 
 static void rtc_write (uchar reg, uchar val)
 {
-       i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+       i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
 }
 
 static unsigned bcd2bin (uchar n)
index 79a3d73060985845ee9c61db406a17827ca92010..d61a2289f998015c45be8a1b75590512534749ab 100644 (file)
 #endif
 /*---------------------------------------------------------------------*/
 
-#ifndef CFG_I2C_RTC_ADDR
-# define CFG_I2C_RTC_ADDR      0x68
+#ifndef CONFIG_SYS_I2C_RTC_ADDR
+# define CONFIG_SYS_I2C_RTC_ADDR       0x68
 #endif
 
-#if defined(CONFIG_RTC_DS1374) && (CFG_I2C_SPEED > 400000)
+#if defined(CONFIG_RTC_DS1374) && (CONFIG_SYS_I2C_SPEED > 400000)
 # error The DS1374 is specified up to 400kHz in fast mode!
 #endif
 
@@ -239,22 +239,22 @@ void rtc_reset (void){
  */
 static uchar rtc_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
 }
 
 static void rtc_write (uchar reg, uchar val, boolean_t set)
 {
        if (set == TRUE) {
-               val |= i2c_reg_read (CFG_I2C_RTC_ADDR, reg);
-               i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+               val |= i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg);
+               i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
        } else {
-               val = i2c_reg_read (CFG_I2C_RTC_ADDR, reg) & ~val;
-               i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+               val = i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg) & ~val;
+               i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
        }
 }
 
 static void rtc_write_raw (uchar reg, uchar val)
 {
-               i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+               i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
 }
 #endif
index 75746261734715b3b47fb8de8128e3119e9f5dda..763d22a03b1d4a2ab41c770c6a30c768aa5a9f09 100644 (file)
@@ -43,7 +43,7 @@ static void  rtc_write( unsigned int addr, uchar val);
 static uchar bin2bcd   (unsigned int n);
 static unsigned bcd2bin(uchar c);
 
-#define RTC_BASE               ( CFG_NVRAM_SIZE + CFG_NVRAM_BASE_ADDR )
+#define RTC_BASE               ( CONFIG_SYS_NVRAM_SIZE + CONFIG_SYS_NVRAM_BASE_ADDR )
 
 #define RTC_YEAR               ( RTC_BASE + 0xf )
 #define RTC_MONTH              ( RTC_BASE + 0xe )
index 00494b38d1d25be0604d7d255c50b08e7cc512f8..1e96679de24af2e653051e2bf31b520f41e2417a 100644 (file)
@@ -49,7 +49,7 @@ static unsigned bcd2bin(uchar c);
 /*
  * DS164x registers layout
  */
-#define RTC_BASE               ( CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE )
+#define RTC_BASE               ( CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE )
 
 #define RTC_YEAR               ( RTC_BASE + 0x07 )
 #define RTC_MONTH              ( RTC_BASE + 0x06 )
index 43e6ab763bd47f435319a8e47ad247a9927c76ca..738d1185c2162ed8a5927b608117eb1ba6aa34a5 100644 (file)
@@ -40,7 +40,7 @@ static void  rtc_write( unsigned int addr, uchar val);
 static uchar bin2bcd   (unsigned int n);
 static unsigned bcd2bin(uchar c);
 
-#define RTC_BASE               ( CFG_NVRAM_SIZE + CFG_NVRAM_BASE_ADDR )
+#define RTC_BASE               ( CONFIG_SYS_NVRAM_SIZE + CONFIG_SYS_NVRAM_BASE_ADDR )
 
 #define RTC_YEAR               ( RTC_BASE + 7 )
 #define RTC_MONTH              ( RTC_BASE + 6 )
index da8a3e63f0568bab5f03468b5d62b039091e8bf7..ef033588a9b5e5a6c9cee3207924c8add1e2fc81 100644 (file)
@@ -177,13 +177,13 @@ void rtc_reset (void)
 static
 uchar rtc_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
 }
 
 
 static void rtc_write (uchar reg, uchar val)
 {
-       i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+       i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
 }
 
 static unsigned bcd2bin (uchar n)
index 87f06cc1f7082c96c8febfdc1318b5c3f4f37b96..71f63d5fa006c311fbea7853e794b1735c6167a6 100644 (file)
@@ -153,12 +153,12 @@ void rtc_reset (void)
 
 static uchar rtc_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
 }
 
 static void rtc_write (uchar reg, uchar val)
 {
-       i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+       i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
 }
 
 static unsigned bcd2bin (uchar n)
index 0a9b12ec2a4d0b2725ff39cdc999d431c85df4a7..3a77c1b63879f22057980ebcf9825a2ef8585cce 100644 (file)
        is what should be done.
 
 #define CONFIG_RTC_M41T11 1
-#define CFG_I2C_RTC_ADDR 0x68
+#define CONFIG_SYS_I2C_RTC_ADDR 0x68
 #if 0
-#define CFG_M41T11_EXT_CENTURY_DATA
+#define CONFIG_SYS_M41T11_EXT_CENTURY_DATA
 #else
-#define CFG_M41T11_BASE_YEAR 2000
+#define CONFIG_SYS_M41T11_BASE_YEAR 2000
 #endif
 */
 
-#if defined(CFG_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
+#if defined(CONFIG_SYS_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
 
 static unsigned bcd2bin (uchar n)
 {
@@ -75,7 +75,7 @@ static unsigned char bin2bcd (unsigned int n)
 #define RTC_CONTROL_ADDR   0x7
 
 
-#ifndef CFG_M41T11_EXT_CENTURY_DATA
+#ifndef CONFIG_SYS_M41T11_EXT_CENTURY_DATA
 
 #define REG_CNT            (RTC_REG_CNT+1)
 
@@ -83,8 +83,8 @@ static unsigned char bin2bcd (unsigned int n)
   you only get 00-99 for the year we will asume you
   want from the year 2000 if you don't set the config
 */
-#ifndef CFG_M41T11_BASE_YEAR
-#define CFG_M41T11_BASE_YEAR 2000
+#ifndef CONFIG_SYS_M41T11_BASE_YEAR
+#define CONFIG_SYS_M41T11_BASE_YEAR 2000
 #endif
 
 #else
@@ -101,7 +101,7 @@ int rtc_get (struct rtc_time *tmp)
        int rel = 0;
        uchar data[RTC_REG_CNT];
 
-       i2c_read(CFG_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT);
+       i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT);
 
        if( data[RTC_SEC_ADDR] & 0x80 ){
                printf( "m41t11 RTC Clock stopped!!!\n" );
@@ -112,14 +112,14 @@ int rtc_get (struct rtc_time *tmp)
        tmp->tm_hour = bcd2bin (data[RTC_HOUR_ADDR] & 0x3F);
        tmp->tm_mday = bcd2bin (data[RTC_DATE_ADDR] & 0x3F);
        tmp->tm_mon  = bcd2bin (data[RTC_MONTH_ADDR]& 0x1F);
-#ifndef CFG_M41T11_EXT_CENTURY_DATA
-       tmp->tm_year = CFG_M41T11_BASE_YEAR
+#ifndef CONFIG_SYS_M41T11_EXT_CENTURY_DATA
+       tmp->tm_year = CONFIG_SYS_M41T11_BASE_YEAR
                + bcd2bin(data[RTC_YEARS_ADDR])
                + ((data[RTC_HOUR_ADDR]&0x40) ? 100 : 0);
 #else
        {
                unsigned char cent;
-               i2c_read(CFG_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE);
+               i2c_read(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE);
                if( !(data[RTC_HOUR_ADDR] & 0x80) ){
                        printf( "m41t11 RTC: cann't keep track of years without CEB set\n" );
                        rel = -1;
@@ -127,7 +127,7 @@ int rtc_get (struct rtc_time *tmp)
                if( (cent & 0x1) != ((data[RTC_HOUR_ADDR]&0x40)>>7) ){
                        /*century flip store off new year*/
                        cent += 1;
-                       i2c_write(CFG_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE);
+                       i2c_write(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE);
                }
                tmp->tm_year =((int)cent*100)+bcd2bin(data[RTC_YEARS_ADDR]);
        }
@@ -161,21 +161,21 @@ int rtc_set (struct rtc_time *tmp)
        data[RTC_HOUR_ADDR]   |= 0x80;/*we will always use CEB*/
 
        data[RTC_YEARS_ADDR]  = bin2bcd(tmp->tm_year%100);/*same thing either way*/
-#ifndef CFG_M41T11_EXT_CENTURY_DATA
-       if( ((tmp->tm_year - CFG_M41T11_BASE_YEAR) > 200) ||
-           (tmp->tm_year < CFG_M41T11_BASE_YEAR) ){
+#ifndef CONFIG_SYS_M41T11_EXT_CENTURY_DATA
+       if( ((tmp->tm_year - CONFIG_SYS_M41T11_BASE_YEAR) > 200) ||
+           (tmp->tm_year < CONFIG_SYS_M41T11_BASE_YEAR) ){
                printf( "m41t11 RTC setting year out of range!!need recompile\n" );
        }
-       data[RTC_HOUR_ADDR] |= (tmp->tm_year - CFG_M41T11_BASE_YEAR) > 100 ? 0x40 : 0;
+       data[RTC_HOUR_ADDR] |= (tmp->tm_year - CONFIG_SYS_M41T11_BASE_YEAR) > 100 ? 0x40 : 0;
 #else
        {
                unsigned char cent;
                cent = tmp->tm_year ? tmp->tm_year / 100 : 0;
                data[RTC_HOUR_ADDR] |= (cent & 0x1) ? 0x40 : 0;
-               i2c_write(CFG_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE);
+               i2c_write(CONFIG_SYS_I2C_RTC_ADDR, M41T11_YEAR_DATA, 1, &cent, M41T11_YEAR_SIZE);
        }
 #endif
-       i2c_write(CFG_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT);
+       i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, data, RTC_REG_CNT);
 
        return 0;
 }
@@ -184,13 +184,13 @@ void rtc_reset (void)
 {
        unsigned char val;
        /* clear all control & status registers */
-       i2c_read(CFG_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, 1);
+       i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, 1);
        val = val & 0x7F;/*make sure we are running*/
-       i2c_write(CFG_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT);
+       i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC_ADDR, 1, &val, RTC_REG_CNT);
 
-       i2c_read(CFG_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1);
+       i2c_read(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1);
        val = val & 0x3F;/*turn off freq test keep calibration*/
-       i2c_write(CFG_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1);
+       i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CONTROL_ADDR, 1, &val, 1);
 }
 
 int rtc_store(int addr, unsigned char* data, int size)
@@ -198,12 +198,12 @@ int rtc_store(int addr, unsigned char* data, int size)
        /*don't let things wrap onto the time on a write*/
        if( (addr+size) >= M41T11_STORAGE_SZ )
                return 1;
-       return i2c_write( CFG_I2C_RTC_ADDR, REG_CNT+addr, 1, data, size );
+       return i2c_write( CONFIG_SYS_I2C_RTC_ADDR, REG_CNT+addr, 1, data, size );
 }
 
 int rtc_recall(int addr, unsigned char* data, int size)
 {
-       return i2c_read( CFG_I2C_RTC_ADDR, REG_CNT+addr, 1, data, size );
+       return i2c_read( CONFIG_SYS_I2C_RTC_ADDR, REG_CNT+addr, 1, data, size );
 }
 
 #endif
index 71bfc326769d4a748c414fe5a6221a5db54ebd11..e34a5f47831c85960b383f8105bcdd1e2ffe0a0f 100644 (file)
@@ -34,7 +34,7 @@
 #include <rtc.h>
 #include <i2c.h>
 
-#if defined(CFG_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
+#if defined(CONFIG_SYS_I2C_RTC_ADDR) && defined(CONFIG_CMD_DATE)
 
 static unsigned bcd2bin(uchar n)
 {
@@ -85,7 +85,7 @@ static void rtc_dump(char const *const label)
 {
        uchar data[8];
 
-       if (i2c_read(CFG_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) {
+       if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) {
                printf("I2C read failed in rtc_dump()\n");
                return;
        }
@@ -114,7 +114,7 @@ static uchar *rtc_validate(void)
        uchar min, date, month, years;
 
        rtc_dump("begin validate");
-       if (i2c_read(CFG_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) {
+       if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) {
                printf("I2C read failed in rtc_validate()\n");
                return 0;
        }
@@ -125,7 +125,7 @@ static uchar *rtc_validate(void)
        if (0x00 != (data[RTC_CTRL] & 0x80)) {
                printf("M41T60 RTC clock lost power.\n");
                data[RTC_SEC] = 0x80;
-               if (i2c_write(CFG_I2C_RTC_ADDR, RTC_SEC, 1, data, 1)) {
+               if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_SEC, 1, data, 1)) {
                        printf("I2C write failed in rtc_validate()\n");
                        return 0;
                }
@@ -161,7 +161,7 @@ static uchar *rtc_validate(void)
                data[RTC_YEAR] = 0x00;
                data[RTC_CTRL] &= 0x7F; /* reset OUT bit */
 
-               if (i2c_write(CFG_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) {
+               if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) {
                        printf("I2C write failed in rtc_validate()\n");
                        return 0;
                }
@@ -212,7 +212,7 @@ int rtc_set(struct rtc_time *tmp)
        data[RTC_YEAR] = bin2bcd(tmp->tm_year % 100);
        data[RTC_MONTH] |= year2cb(tmp->tm_year) << 6;
        data[RTC_DAY] = bin2bcd(tmp->tm_wday + 1) & 0x07;
-       if (i2c_write(CFG_I2C_RTC_ADDR, 0, 1, data, RTC_REG_CNT)) {
+       if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, RTC_REG_CNT)) {
                printf("I2C write failed in rtc_set()\n");
                return -1;
        }
@@ -255,10 +255,10 @@ void rtc_reset(void)
         * Turn off frequency test.
         */
        data[RTC_CTRL] &= 0xBF;
-       if (i2c_write(CFG_I2C_RTC_ADDR, RTC_CTRL, 1, data + RTC_CTRL, 1)) {
+       if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, RTC_CTRL, 1, data + RTC_CTRL, 1)) {
                printf("I2C write failed in rtc_reset()\n");
                return;
        }
        rtc_dump("end reset");
 }
-#endif /* CONFIG_RTC_M41T60 && CFG_I2C_RTC_ADDR && CONFIG_CMD_DATE */
+#endif /* CONFIG_RTC_M41T60 && CONFIG_SYS_I2C_RTC_ADDR && CONFIG_CMD_DATE */
index 9b7c84a084f621caddd10664e1a16abbd8fa5e6f..cfe84f926be3e4f51170c0ae3db43093043f15d5 100644 (file)
@@ -68,7 +68,7 @@ int rtc_get(struct rtc_time *tm)
 {
        u8 buf[M41T62_DATETIME_REG_SIZE];
 
-       i2c_read(CFG_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE);
+       i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE);
 
        debug("%s: raw read data - sec=%02x, min=%02x, hr=%02x, "
              "mday=%02x, mon=%02x, year=%02x, wday=%02x, y2k=%02x\n",
@@ -104,7 +104,7 @@ int rtc_set(struct rtc_time *tm)
              tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday,
              tm->tm_hour, tm->tm_min, tm->tm_sec);
 
-       i2c_read(CFG_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE);
+       i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE);
 
        /* Merge time-data and register flags into buf[0..7] */
        buf[M41T62_REG_SSEC] = 0;
@@ -123,7 +123,7 @@ int rtc_set(struct rtc_time *tm)
        /* assume 20YY not 19YY */
        buf[M41T62_REG_YEAR] = BIN2BCD(tm->tm_year % 100);
 
-       if (i2c_write(CFG_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE)) {
+       if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE)) {
                printf("I2C write failed in %s()\n", __func__);
                return -1;
        }
index e19b81b16b1995c47a61e9f396d09bcdc535d88f..1482edd607fc3381ce4e560e12e2f86fed087075 100644 (file)
@@ -147,14 +147,14 @@ static uchar rtc_read (uchar reg)
 {
        uchar val;
        val = *(unsigned char *)
-               ((CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE - 8) + reg);
+               ((CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE - 8) + reg);
        return val;
 }
 
 static void rtc_write (uchar reg, uchar val)
 {
        *(unsigned char *)
-               ((CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE - 8) + reg) = val;
+               ((CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE - 8) + reg) = val;
 }
 
 static unsigned bcd2bin (uchar n)
index 758d7b79d94323fa135794ab8a5682c6cc6280fd..7c99c5e5b1c9568a5511ff67881b60bce7baf5af 100644 (file)
 
 #if defined(CONFIG_CMD_DATE)
 
-#ifndef        CFG_I2C_RTC_ADDR
-#define        CFG_I2C_RTC_ADDR        0x50
+#ifndef        CONFIG_SYS_I2C_RTC_ADDR
+#define        CONFIG_SYS_I2C_RTC_ADDR 0x50
 #endif
 
 /* ------------------------------------------------------------------------- */
 
 static uchar rtc_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
 }
 
 static void rtc_write (uchar reg, uchar val)
 {
-       i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+       i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
        udelay(2500);
 }
 
index 1225454fcc5c139c5011db43bfa1f1f6e5170180..38484ce26cf4837274bdee4fca5f44e6085cf630 100644 (file)
@@ -38,7 +38,7 @@ static void  rtc_write (uchar reg, uchar val);
 static uchar bin2bcd   (unsigned int n);
 static unsigned bcd2bin(uchar c);
 
-#define RTC_PORT_MC146818      CFG_ISA_IO_BASE_ADDRESS +  0x70
+#define RTC_PORT_MC146818      CONFIG_SYS_ISA_IO_BASE_ADDRESS +  0x70
 #define RTC_SECONDS            0x00
 #define RTC_SECONDS_ALARM      0x01
 #define RTC_MINUTES            0x02
@@ -141,18 +141,18 @@ void rtc_reset (void)
 
 /* ------------------------------------------------------------------------- */
 
-#ifdef CFG_RTC_REG_BASE_ADDR
+#ifdef CONFIG_SYS_RTC_REG_BASE_ADDR
 /*
  * use direct memory access
  */
 static uchar rtc_read (uchar reg)
 {
-       return(in8(CFG_RTC_REG_BASE_ADDR+reg));
+       return(in8(CONFIG_SYS_RTC_REG_BASE_ADDR+reg));
 }
 
 static void rtc_write (uchar reg, uchar val)
 {
-       out8(CFG_RTC_REG_BASE_ADDR+reg, val);
+       out8(CONFIG_SYS_RTC_REG_BASE_ADDR+reg, val);
 }
 #else
 static uchar rtc_read (uchar reg)
index c2af197987401f2733449fb799459443bae4c521..979c466514e720ba7f8ab6deef225bf1114e238d 100644 (file)
@@ -32,7 +32,7 @@
 
 #undef RTC_DEBUG
 
-#ifndef CFG_MCFRTC_BASE
+#ifndef CONFIG_SYS_MCFRTC_BASE
 #error RTC_BASE is not defined!
 #endif
 
@@ -41,7 +41,7 @@
 
 int rtc_get(struct rtc_time *tmp)
 {
-       volatile rtc_t *rtc = (rtc_t *) (CFG_MCFRTC_BASE);
+       volatile rtc_t *rtc = (rtc_t *) (CONFIG_SYS_MCFRTC_BASE);
 
        int rtc_days, rtc_hrs, rtc_mins;
        int tim;
@@ -70,7 +70,7 @@ int rtc_get(struct rtc_time *tmp)
 
 int rtc_set(struct rtc_time *tmp)
 {
-       volatile rtc_t *rtc = (rtc_t *) (CFG_MCFRTC_BASE);
+       volatile rtc_t *rtc = (rtc_t *) (CONFIG_SYS_MCFRTC_BASE);
 
        static int month_days[12] = {
                31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
@@ -112,7 +112,7 @@ int rtc_set(struct rtc_time *tmp)
 
 void rtc_reset(void)
 {
-       volatile rtc_t *rtc = (rtc_t *) (CFG_MCFRTC_BASE);
+       volatile rtc_t *rtc = (rtc_t *) (CONFIG_SYS_MCFRTC_BASE);
 
        if ((rtc->cr & RTC_CR_EN) == 0) {
                printf("real-time-clock was stopped. Now starting...\n");
index 6231b9b6999890865172f81a3a6a5afab96ecfef..ec0b0ef68f0aa83b1858dba46132b8a3bf903c1a 100644 (file)
@@ -57,7 +57,7 @@ typedef struct rtc5200 {
  *****************************************************************************/
 int rtc_get (struct rtc_time *tmp)
 {
-       RTC5200 *rtc = (RTC5200 *) (CFG_MBAR+0x800);
+       RTC5200 *rtc = (RTC5200 *) (CONFIG_SYS_MBAR+0x800);
        ulong time, date, time2;
 
        /* read twice to avoid getting a funny time when the second is just changing */
@@ -90,7 +90,7 @@ int rtc_get (struct rtc_time *tmp)
  *****************************************************************************/
 int rtc_set (struct rtc_time *tmp)
 {
-       RTC5200 *rtc = (RTC5200 *) (CFG_MBAR+0x800);
+       RTC5200 *rtc = (RTC5200 *) (CONFIG_SYS_MBAR+0x800);
        ulong time, date, year;
 
        debug ( "Set DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n",
index 2bbc5d3d2870adbb792fb8562616d3f65d4eb7eb..1c24e59e425b5fb7795080e000a34cf093de1202 100644 (file)
@@ -37,7 +37,7 @@
 
 int rtc_get (struct rtc_time *tmp)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        ulong tim;
 
        tim = immr->im_sit.sit_rtc;
@@ -53,7 +53,7 @@ int rtc_get (struct rtc_time *tmp)
 
 int rtc_set (struct rtc_time *tmp)
 {
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
        ulong tim;
 
        debug ( "Set DATE: %4d-%02d-%02d (wday=%d)  TIME: %2d:%02d:%02d\n",
index 2fe1e37dc8533da8d57abfa00261eb054546df4f..cd9fb65c3a414e0b58e64846c6fd4eba4053c398 100644 (file)
@@ -129,12 +129,12 @@ void rtc_reset (void)
 
 static uchar rtc_read (uchar reg)
 {
-       return (i2c_reg_read (CFG_I2C_RTC_ADDR, reg));
+       return (i2c_reg_read (CONFIG_SYS_I2C_RTC_ADDR, reg));
 }
 
 static void rtc_write (uchar reg, uchar val)
 {
-       i2c_reg_write (CFG_I2C_RTC_ADDR, reg, val);
+       i2c_reg_write (CONFIG_SYS_I2C_RTC_ADDR, reg, val);
 }
 
 static unsigned bcd2bin (uchar n)
index 6c1e9bdec05cd951739bb61bdd4209081d8584a6..8b2b174aea66c3795ce2fdbd659bb8917b10eb52 100644 (file)
@@ -29,8 +29,8 @@
 
 #if defined(CONFIG_CMD_DATE)
 
-#ifndef CFG_RTC_PL031_BASE
-#error CFG_RTC_PL031_BASE is not defined!
+#ifndef CONFIG_SYS_RTC_PL031_BASE
+#error CONFIG_SYS_RTC_PL031_BASE is not defined!
 #endif
 
 /*
@@ -48,9 +48,9 @@
 #define RTC_CR_START   (1 << 0)
 
 #define        RTC_WRITE_REG(addr, val) \
-                       (*(volatile unsigned int *)(CFG_RTC_PL031_BASE + (addr)) = (val))
+                       (*(volatile unsigned int *)(CONFIG_SYS_RTC_PL031_BASE + (addr)) = (val))
 #define        RTC_READ_REG(addr)      \
-                       (*(volatile unsigned int *)(CFG_RTC_PL031_BASE + (addr)))
+                       (*(volatile unsigned int *)(CONFIG_SYS_RTC_PL031_BASE + (addr)))
 
 static int pl031_initted = 0;
 
index 82dd9694e6f75a3609550d6c5ebee3ca257d8286..d6cd7c825df743b4735c8aa44326b175fa1c5188 100644 (file)
@@ -50,8 +50,8 @@ static unsigned int rtc_debug = DEBUG;
 #define rtc_debug 0    /* gcc will remove all the debug code for us */
 #endif
 
-#ifndef CFG_I2C_RTC_ADDR
-#define CFG_I2C_RTC_ADDR 0x32
+#ifndef CONFIG_SYS_I2C_RTC_ADDR
+#define CONFIG_SYS_I2C_RTC_ADDR 0x32
 #endif
 
 #define RS5C372_RAM_SIZE 0x10
@@ -77,7 +77,7 @@ rs5c372_readram(unsigned char *buf, int len)
 {
        int ret;
 
-       ret = i2c_read(CFG_I2C_RTC_ADDR, 0, 0, buf, len);
+       ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, len);
        if (ret != 0) {
                printf("%s: failed to read\n", __FUNCTION__);
                return ret;
@@ -117,7 +117,7 @@ rs5c372_enable(void)
        buf[14] = 0; /* reg. 13 */
        buf[15] = 0; /* reg. 14 */
        buf[16] = USE_24HOUR_MODE; /* reg. 15 */
-       ret = i2c_write(CFG_I2C_RTC_ADDR, 0, 0, buf, RS5C372_RAM_SIZE+1);
+       ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, RS5C372_RAM_SIZE+1);
        if (ret != 0) {
                printf("%s: failed\n", __FUNCTION__);
                return;
@@ -218,7 +218,7 @@ int rtc_set (struct rtc_time *tmp)
        memset(buf, 0, sizeof(buf));
 
        /* only read register 15 */
-       ret = i2c_read(CFG_I2C_RTC_ADDR, 0, 0, buf, 1);
+       ret = i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 1);
 
        if (ret == 0) {
                /* need to save register 15 */
@@ -247,7 +247,7 @@ int rtc_set (struct rtc_time *tmp)
                        printf("WARNING: year should be between 1970 and 2069!\n");
                buf[7] = bin2bcd(tmp->tm_year % 100);
 
-               ret = i2c_write(CFG_I2C_RTC_ADDR, 0, 0, buf, 8);
+               ret = i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 8);
                if (ret != 0) {
                        printf("rs5c372_set_datetime(), i2c_master_send() returned %d\n",ret);
                        return -1;
index 9f4ce2f9adf2bb58591e934275d13f2ca797a4f7..da87394a085c15b41ddefd628d732da67d39d9e1 100644 (file)
@@ -42,8 +42,8 @@
 #endif
 /*---------------------------------------------------------------------*/
 
-#ifndef CFG_I2C_RTC_ADDR
-# define CFG_I2C_RTC_ADDR      0x32
+#ifndef CONFIG_SYS_I2C_RTC_ADDR
+# define CONFIG_SYS_I2C_RTC_ADDR       0x32
 #endif
 
 /*
@@ -102,7 +102,7 @@ int rtc_get (struct rtc_time *tmp)
        uchar sec, min, hour, mday, wday, mon, year, ctl2;
        uchar buf[16];
 
-       if (i2c_read(CFG_I2C_RTC_ADDR, 0, 0, buf, 16))
+       if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 16))
                printf("Error reading from RTC\n");
 
        sec = rtc_read(RTC_SEC_REG_ADDR);
@@ -189,7 +189,7 @@ void rtc_reset (void)
        uchar buf[16];
        uchar ctl2;
 
-       if (i2c_read(CFG_I2C_RTC_ADDR, 0,    0,   buf, 16))
+       if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0,    0,   buf, 16))
                printf("Error reading from RTC\n");
 
        ctl2 = rtc_read(RTC_CTL2_REG_ADDR);
@@ -221,7 +221,7 @@ static void rtc_write (uchar reg, uchar val)
        uchar buf[2];
        buf[0] = reg << 4;
        buf[1] = val;
-       if (i2c_write(CFG_I2C_RTC_ADDR, 0, 0, buf, 2) != 0)
+       if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 0, buf, 2) != 0)
                printf("Error writing to RTC\n");
 
 }
index 7a3b514915100d22d407e5eba5738ae3d7d9ee51..56115b032ac4cada55da46f76e4038d646805172 100644 (file)
@@ -96,7 +96,7 @@
 
 static void rtc_write(int reg, u8 val)
 {
-       i2c_write(CFG_I2C_RTC_ADDR, reg, 2, &val, 1);
+       i2c_write(CONFIG_SYS_I2C_RTC_ADDR, reg, 2, &val, 1);
 }
 
 /*
@@ -108,7 +108,7 @@ int rtc_get(struct rtc_time *tm)
 {
        u8 buf[8];
 
-       i2c_read(CFG_I2C_RTC_ADDR, X1205_CCR_BASE, 2, buf, 8);
+       i2c_read(CONFIG_SYS_I2C_RTC_ADDR, X1205_CCR_BASE, 2, buf, 8);
 
        debug("%s: raw read data - sec=%02x, min=%02x, hr=%02x, "
              "mday=%02x, mon=%02x, year=%02x, wday=%02x, y2k=%02x\n",
index a1fcd057a46fb41037488025fa0b46819c6d0cc0..e04fc298d960d8d338140db468a1022b6342753d 100644 (file)
@@ -41,7 +41,7 @@ int serial_init(void)
        volatile uart_t *uart;
        u32 counter;
 
-       uart = (volatile uart_t *)(CFG_UART_BASE);
+       uart = (volatile uart_t *)(CONFIG_SYS_UART_BASE);
 
        uart_port_conf();
 
@@ -76,7 +76,7 @@ int serial_init(void)
 
 void serial_putc(const char c)
 {
-       volatile uart_t *uart = (volatile uart_t *)(CFG_UART_BASE);
+       volatile uart_t *uart = (volatile uart_t *)(CONFIG_SYS_UART_BASE);
 
        if (c == '\n')
                serial_putc('\r');
@@ -96,7 +96,7 @@ void serial_puts(const char *s)
 
 int serial_getc(void)
 {
-       volatile uart_t *uart = (volatile uart_t *)(CFG_UART_BASE);
+       volatile uart_t *uart = (volatile uart_t *)(CONFIG_SYS_UART_BASE);
 
        /* Wait for a character to arrive. */
        while (!(uart->usr & UART_USR_RXRDY)) ;
@@ -105,14 +105,14 @@ int serial_getc(void)
 
 int serial_tstc(void)
 {
-       volatile uart_t *uart = (volatile uart_t *)(CFG_UART_BASE);
+       volatile uart_t *uart = (volatile uart_t *)(CONFIG_SYS_UART_BASE);
 
        return (uart->usr & UART_USR_RXRDY);
 }
 
 void serial_setbrg(void)
 {
-       volatile uart_t *uart = (volatile uart_t *)(CFG_UART_BASE);
+       volatile uart_t *uart = (volatile uart_t *)(CONFIG_SYS_UART_BASE);
        u32 counter;
 
        counter = ((gd->bus_clk / gd->baudrate)) >> 5;
index 6b3f60eb575c3d9eaf31f92da5a169a58167e677..93c2243d7d7badabfd8cd896a3b7232640ac639f 100644 (file)
@@ -1,12 +1,12 @@
 /*
  * COM1 NS16550 support
  * originally from linux source (arch/ppc/boot/ns16550.c)
- * modified to use CFG_ISA_MEM and new defines
+ * modified to use CONFIG_SYS_ISA_MEM and new defines
  */
 
 #include <config.h>
 
-#ifdef CFG_NS16550
+#ifdef CONFIG_SYS_NS16550
 
 #include <ns16550.h>
 
index b361eef9a41d8d06b63662843e5362e447a1087e..bce75489d2ecdf55442af084c1a7174ebee38104 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <common.h>
 
-#ifdef CFG_NS16550_SERIAL
+#ifdef CONFIG_SYS_NS16550_SERIAL
 
 #include <ns16550.h>
 #ifdef CONFIG_NS87308
@@ -48,13 +48,13 @@ DECLARE_GLOBAL_DATA_PTR;
 #error "Invalid console index value."
 #endif
 
-#if CONFIG_CONS_INDEX == 1 && !defined(CFG_NS16550_COM1)
+#if CONFIG_CONS_INDEX == 1 && !defined(CONFIG_SYS_NS16550_COM1)
 #error "Console port 1 defined but not configured."
-#elif CONFIG_CONS_INDEX == 2 && !defined(CFG_NS16550_COM2)
+#elif CONFIG_CONS_INDEX == 2 && !defined(CONFIG_SYS_NS16550_COM2)
 #error "Console port 2 defined but not configured."
-#elif CONFIG_CONS_INDEX == 3 && !defined(CFG_NS16550_COM3)
+#elif CONFIG_CONS_INDEX == 3 && !defined(CONFIG_SYS_NS16550_COM3)
 #error "Console port 3 defined but not configured."
-#elif CONFIG_CONS_INDEX == 4 && !defined(CFG_NS16550_COM4)
+#elif CONFIG_CONS_INDEX == 4 && !defined(CONFIG_SYS_NS16550_COM4)
 #error "Console port 4 defined but not configured."
 #endif
 
@@ -62,23 +62,23 @@ DECLARE_GLOBAL_DATA_PTR;
  *      the array is 0 based.
  */
 static NS16550_t serial_ports[4] = {
-#ifdef CFG_NS16550_COM1
-       (NS16550_t)CFG_NS16550_COM1,
+#ifdef CONFIG_SYS_NS16550_COM1
+       (NS16550_t)CONFIG_SYS_NS16550_COM1,
 #else
        NULL,
 #endif
-#ifdef CFG_NS16550_COM2
-       (NS16550_t)CFG_NS16550_COM2,
+#ifdef CONFIG_SYS_NS16550_COM2
+       (NS16550_t)CONFIG_SYS_NS16550_COM2,
 #else
        NULL,
 #endif
-#ifdef CFG_NS16550_COM3
-       (NS16550_t)CFG_NS16550_COM3,
+#ifdef CONFIG_SYS_NS16550_COM3
+       (NS16550_t)CONFIG_SYS_NS16550_COM3,
 #else
        NULL,
 #endif
-#ifdef CFG_NS16550_COM4
-       (NS16550_t)CFG_NS16550_COM4
+#ifdef CONFIG_SYS_NS16550_COM4
+       (NS16550_t)CONFIG_SYS_NS16550_COM4
 #else
        NULL
 #endif
@@ -126,7 +126,7 @@ static int calc_divisor (NS16550_t port)
 {
 #ifdef CONFIG_OMAP1510
        /* If can't cleanly clock 115200 set div to 1 */
-       if ((CFG_NS16550_CLK == 12000000) && (gd->baudrate == 115200)) {
+       if ((CONFIG_SYS_NS16550_CLK == 12000000) && (gd->baudrate == 115200)) {
                port->osc_12m_sel = OSC_12M_SEL;        /* enable 6.5 * divisor */
                return (1);                             /* return 1 for base divisor */
        }
@@ -134,7 +134,7 @@ static int calc_divisor (NS16550_t port)
 #endif
 #ifdef CONFIG_OMAP1610
        /* If can't cleanly clock 115200 set div to 1 */
-       if ((CFG_NS16550_CLK == 48000000) && (gd->baudrate == 115200)) {
+       if ((CONFIG_SYS_NS16550_CLK == 48000000) && (gd->baudrate == 115200)) {
                return (26);            /* return 26 for base divisor */
        }
 #endif
@@ -146,11 +146,11 @@ static int calc_divisor (NS16550_t port)
 #endif
 
        /* Compute divisor value. Normally, we should simply return:
-        *   CFG_NS16550_CLK) / MODE_X_DIV / gd->baudrate
+        *   CONFIG_SYS_NS16550_CLK) / MODE_X_DIV / gd->baudrate
         * but we need to round that value by adding 0.5.
         * Rounding is especially important at high baud rates.
         */
-       return (CFG_NS16550_CLK + (gd->baudrate * (MODE_X_DIV / 2))) /
+       return (CONFIG_SYS_NS16550_CLK + (gd->baudrate * (MODE_X_DIV / 2))) /
                (MODE_X_DIV * gd->baudrate);
 }
 
@@ -163,19 +163,19 @@ int serial_init (void)
        initialise_ns87308();
 #endif
 
-#ifdef CFG_NS16550_COM1
+#ifdef CONFIG_SYS_NS16550_COM1
        clock_divisor = calc_divisor(serial_ports[0]);
        NS16550_init(serial_ports[0], clock_divisor);
 #endif
-#ifdef CFG_NS16550_COM2
+#ifdef CONFIG_SYS_NS16550_COM2
        clock_divisor = calc_divisor(serial_ports[1]);
        NS16550_init(serial_ports[1], clock_divisor);
 #endif
-#ifdef CFG_NS16550_COM3
+#ifdef CONFIG_SYS_NS16550_COM3
        clock_divisor = calc_divisor(serial_ports[2]);
        NS16550_init(serial_ports[2], clock_divisor);
 #endif
-#ifdef CFG_NS16550_COM4
+#ifdef CONFIG_SYS_NS16550_COM4
        clock_divisor = calc_divisor(serial_ports[3]);
        NS16550_init(serial_ports[3], clock_divisor);
 #endif
index 9eaf9860b4f83d720cffa7661c5c24a3fdc397d7..c4b36f06c05cf037b6daaeb2903f7dc8a5b7e7b4 100644 (file)
@@ -67,7 +67,7 @@ void spi_free_slave(struct spi_slave *slave)
 
 void spi_init(void)
 {
-       volatile spi8xxx_t *spi = &((immap_t *) (CFG_IMMR))->spi;
+       volatile spi8xxx_t *spi = &((immap_t *) (CONFIG_SYS_IMMR))->spi;
 
        /*
         * SPI pins on the MPC83xx are not muxed, so all we do is initialize
@@ -94,7 +94,7 @@ void spi_release_bus(struct spi_slave *slave)
 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
                void *din, unsigned long flags)
 {
-       volatile spi8xxx_t *spi = &((immap_t *) (CFG_IMMR))->spi;
+       volatile spi8xxx_t *spi = &((immap_t *) (CONFIG_SYS_IMMR))->spi;
        unsigned int tmpdout, tmpdin, event;
        int numBlks = bitlen / 32 + (bitlen % 32 ? 1 : 0);
        int tm, isRead = 0;
index 25b589ad7c604dc280c33050c6db4119de1440b6..13df8cb7de167aece971549f0cddf5696cbb8c17 100644 (file)
@@ -59,7 +59,7 @@ static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave)
 void spi_init (void)
 {
 #ifdef SPI_INIT
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 
        SPI_INIT;
 #endif
@@ -95,8 +95,8 @@ void spi_free_slave(struct spi_slave *slave)
 
 int spi_claim_bus(struct spi_slave *slave)
 {
-#ifdef CFG_IMMR
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+#ifdef CONFIG_SYS_IMMR
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 #endif
        struct soft_spi_slave *ss = to_soft_spi(slave);
 
@@ -132,8 +132,8 @@ void spi_release_bus(struct spi_slave *slave)
 int  spi_xfer(struct spi_slave *slave, unsigned int bitlen,
                const void *dout, void *din, unsigned long flags)
 {
-#ifdef CFG_IMMR
-       volatile immap_t *immr = (immap_t *)CFG_IMMR;
+#ifdef CONFIG_SYS_IMMR
+       volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 #endif
        struct soft_spi_slave *ss = to_soft_spi(slave);
        uchar           tmpdin  = 0;
index 159cc2527515505b4f390f4da7a7ca9c672818ca..48f1ee95f5ab2b44128fed3af8c8bb71ef66e62e 100644 (file)
@@ -111,7 +111,7 @@ static void inline sl811_write_buf(__u8 offset, __u8 *buf, __u8 size)
 
 int usb_init_kup4x (void)
 {
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8xx_t *memctl = &immap->im_memctl;
        int i;
        unsigned char tmp;
@@ -265,7 +265,7 @@ static int sl811_send_packet(struct usb_device *dev, unsigned long pipe, __u8 *b
 
                sl811_write(SL811_CTRL_A, ctrl);
                while (!(sl811_read(SL811_INTRSTS) & SL811_INTR_DONE_A)) {
-                       if (5*CFG_HZ < get_timer(time_start)) {
+                       if (5*CONFIG_SYS_HZ < get_timer(time_start)) {
                                printf("USB transmit timed out\n");
                                return -USB_ST_CRC_ERR;
                        }
index da11ecbc0fef92f1c936fd9684628829ca51496e..c1aac3382e80ad406d9d477f7e78a3c8e034fd5a 100644 (file)
@@ -73,7 +73,7 @@
     defined(CONFIG_440EP) || \
     defined(CONFIG_PCI_OHCI) || \
     defined(CONFIG_MPC5200) || \
-    defined(CFG_OHCI_USE_NPS)
+    defined(CONFIG_SYS_OHCI_USE_NPS)
 # define OHCI_USE_NPS          /* force NoPowerSwitching mode */
 #endif
 
 /*
  * e.g. PCI controllers need this
  */
-#ifdef CFG_OHCI_SWAP_REG_ACCESS
+#ifdef CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 # define readl(a) __swap_32(*((volatile u32 *)(a)))
 # define writel(a, b) (*((volatile u32 *)(b)) = __swap_32((volatile u32)a))
 #else
 # define readl(a) (*((volatile u32 *)(a)))
 # define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a))
-#endif /* CFG_OHCI_SWAP_REG_ACCESS */
+#endif /* CONFIG_SYS_OHCI_SWAP_REG_ACCESS */
 
 #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
 
@@ -129,13 +129,13 @@ static struct pci_device_id ehci_pci_ids[] = {
 #define info(format, arg...) do {} while(0)
 #endif
 
-#ifdef CFG_OHCI_BE_CONTROLLER
+#ifdef CONFIG_SYS_OHCI_BE_CONTROLLER
 # define m16_swap(x) cpu_to_be16(x)
 # define m32_swap(x) cpu_to_be32(x)
 #else
 # define m16_swap(x) cpu_to_le16(x)
 # define m32_swap(x) cpu_to_le32(x)
-#endif /* CFG_OHCI_BE_CONTROLLER */
+#endif /* CONFIG_SYS_OHCI_BE_CONTROLLER */
 
 /* global ohci_t */
 static ohci_t gohci;
@@ -1819,13 +1819,13 @@ int usb_lowlevel_init(void)
        pci_dev_t pdev;
 #endif
 
-#ifdef CFG_USB_OHCI_CPU_INIT
+#ifdef CONFIG_SYS_USB_OHCI_CPU_INIT
        /* cpu dependant init */
        if(usb_cpu_init())
                return -1;
 #endif
 
-#ifdef CFG_USB_OHCI_BOARD_INIT
+#ifdef CONFIG_SYS_USB_OHCI_BOARD_INIT
        /*  board dependant init */
        if(usb_board_init())
                return -1;
@@ -1873,21 +1873,21 @@ int usb_lowlevel_init(void)
        } else
                return -1;
 #else
-       gohci.regs = (struct ohci_regs *)CFG_USB_OHCI_REGS_BASE;
+       gohci.regs = (struct ohci_regs *)CONFIG_SYS_USB_OHCI_REGS_BASE;
 #endif
 
        gohci.flags = 0;
-       gohci.slot_name = CFG_USB_OHCI_SLOT_NAME;
+       gohci.slot_name = CONFIG_SYS_USB_OHCI_SLOT_NAME;
 
        if (hc_reset (&gohci) < 0) {
                hc_release_ohci (&gohci);
                err ("can't reset usb-%s", gohci.slot_name);
-#ifdef CFG_USB_OHCI_BOARD_INIT
+#ifdef CONFIG_SYS_USB_OHCI_BOARD_INIT
                /* board dependant cleanup */
                usb_board_init_fail();
 #endif
 
-#ifdef CFG_USB_OHCI_CPU_INIT
+#ifdef CONFIG_SYS_USB_OHCI_CPU_INIT
                /* cpu dependant cleanup */
                usb_cpu_init_fail();
 #endif
@@ -1901,12 +1901,12 @@ int usb_lowlevel_init(void)
                err ("can't start usb-%s", gohci.slot_name);
                hc_release_ohci (&gohci);
                /* Initialization failed */
-#ifdef CFG_USB_OHCI_BOARD_INIT
+#ifdef CONFIG_SYS_USB_OHCI_BOARD_INIT
                /* board dependant cleanup */
                usb_board_stop();
 #endif
 
-#ifdef CFG_USB_OHCI_CPU_INIT
+#ifdef CONFIG_SYS_USB_OHCI_CPU_INIT
                /* cpu dependant cleanup */
                usb_cpu_stop();
 #endif
@@ -1932,13 +1932,13 @@ int usb_lowlevel_stop(void)
        /* call hc_release_ohci() here ? */
        hc_reset (&gohci);
 
-#ifdef CFG_USB_OHCI_BOARD_INIT
+#ifdef CONFIG_SYS_USB_OHCI_BOARD_INIT
        /* board dependant cleanup */
        if(usb_board_stop())
                return -1;
 #endif
 
-#ifdef CFG_USB_OHCI_CPU_INIT
+#ifdef CONFIG_SYS_USB_OHCI_CPU_INIT
        /* cpu dependant cleanup */
        if(usb_cpu_stop())
                return -1;
index 7a04bf5e8a82f07f8a4faa892f51b339dec4bc40..c1af547fa4c66230cd91ef90d5cc02a9bd07f197 100644 (file)
@@ -155,8 +155,8 @@ struct ohci_hcca {
 /*
  * Maximum number of root hub ports.
  */
-#ifndef CFG_USB_OHCI_MAX_ROOT_PORTS
-# error "CFG_USB_OHCI_MAX_ROOT_PORTS undefined!"
+#ifndef CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS
+# error "CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS undefined!"
 #endif
 
 /*
@@ -191,7 +191,7 @@ struct ohci_regs {
                __u32   a;
                __u32   b;
                __u32   status;
-               __u32   portstatus[CFG_USB_OHCI_MAX_ROOT_PORTS];
+               __u32   portstatus[CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS];
        } roothub;
 } __attribute((aligned(32)));
 
index 122793c023cfcddb6508f308f48c1bb7dfabbdd1..fa02003d1dbccc9ef71d5b1bae8425deaf34d6f5 100644 (file)
@@ -133,7 +133,7 @@ static void mpc8xx_udc_advance_rx (volatile cbd_t ** rx_cbdp, int epid);
 int udc_init (void)
 {
        /* Init various pointers */
-       immr = (immap_t *) CFG_IMMR;
+       immr = (immap_t *) CONFIG_SYS_IMMR;
        cp = (cpm8xx_t *) & (immr->im_cpm);
        usb_paramp = (usb_pram_t *) & (cp->cp_dparam[PROFF_USB]);
        usbp = (usb_t *) & (cp->cp_scc[0]);
@@ -752,7 +752,7 @@ static short mpc8xx_udc_handle_txerr ()
 static void mpc8xx_udc_advance_rx (volatile cbd_t ** rx_cbdp, int epid)
 {
        if ((*rx_cbdp)->cbd_sc & RX_BD_W) {
-               *rx_cbdp = (volatile cbd_t *) (endpoints[epid]->rbase + CFG_IMMR);
+               *rx_cbdp = (volatile cbd_t *) (endpoints[epid]->rbase + CONFIG_SYS_IMMR);
 
        } else {
                (*rx_cbdp)++;
@@ -780,7 +780,7 @@ static void mpc8xx_udc_flush_tx_fifo (int epid)
        usbp->uscom = 0x40 | 0;
 
        /* reset ring */
-       tx_cbdp = (cbd_t *) (endpoints[epid]->tbptr + CFG_IMMR);
+       tx_cbdp = (cbd_t *) (endpoints[epid]->tbptr + CONFIG_SYS_IMMR);
        tx_cbdp->cbd_sc = (TX_BD_I | TX_BD_W);
 
 
@@ -886,7 +886,7 @@ static int mpc8xx_udc_ep_tx (struct usb_endpoint_instance *epi)
        }
 
        ep = epi->endpoint_address & 0x03;
-       tx_cbdp = (cbd_t *) (endpoints[ep]->tbptr + CFG_IMMR);
+       tx_cbdp = (cbd_t *) (endpoints[ep]->tbptr + CONFIG_SYS_IMMR);
 
        if (tx_cbdp->cbd_sc & TX_BD_R || usbp->usber & USB_E_TXB) {
                mpc8xx_udc_flush_tx_fifo (ep);
@@ -903,7 +903,7 @@ static int mpc8xx_udc_ep_tx (struct usb_endpoint_instance *epi)
                        return -1;
                }
 
-               tx_cbdp = (cbd_t *) (endpoints[ep]->tbptr + CFG_IMMR);
+               tx_cbdp = (cbd_t *) (endpoints[ep]->tbptr + CONFIG_SYS_IMMR);
                while (tx_cbdp->cbd_sc & TX_BD_R) {
                };
                tx_cbdp->cbd_sc = (tx_cbdp->cbd_sc & TX_BD_W);
@@ -1187,10 +1187,10 @@ static void mpc8xx_udc_clock_init (volatile immap_t * immr,
                                   volatile cpm8xx_t * cp)
 {
 
-#if defined(CFG_USB_EXTC_CLK)
+#if defined(CONFIG_SYS_USB_EXTC_CLK)
 
        /* This has been tested with a 48MHz crystal on CLK6 */
-       switch (CFG_USB_EXTC_CLK) {
+       switch (CONFIG_SYS_USB_EXTC_CLK) {
        case 1:
                immr->im_ioport.iop_papar |= 0x0100;
                immr->im_ioport.iop_padir &= ~0x0100;
@@ -1216,7 +1216,7 @@ static void mpc8xx_udc_clock_init (volatile immap_t * immr,
                break;
        }
 
-#elif defined(CFG_USB_BRGCLK)
+#elif defined(CONFIG_SYS_USB_BRGCLK)
 
        /* This has been tested with brgclk == 50MHz */
        int divisor = 0;
@@ -1233,7 +1233,7 @@ static void mpc8xx_udc_clock_init (volatile immap_t * immr,
        divisor = (gd->cpu_clk / 48000000L) - 1;
        cp->cp_sicr &= ~0x0000003F;
 
-       switch (CFG_USB_BRGCLK) {
+       switch (CONFIG_SYS_USB_BRGCLK) {
        case 1:
                cp->cp_brgc1 |= (divisor | CPM_BRG_EN);
                cp->cp_sicr &= ~0x2F;
@@ -1256,7 +1256,7 @@ static void mpc8xx_udc_clock_init (volatile immap_t * immr,
        }
 
 #else
-#error "CFG_USB_EXTC_CLK or CFG_USB_BRGCLK must be defined"
+#error "CONFIG_SYS_USB_EXTC_CLK or CONFIG_SYS_USB_BRGCLK must be defined"
 #endif
 
 }
index 650380b2c25a0a4cc905e6959280f5df83b91779..9ebb0b0c965ac388a4adc0d61c06804cd5089404 100644 (file)
@@ -653,7 +653,7 @@ void *video_hw_init(void)
 
        tmp = 0;
 
-       videomode = CFG_DEFAULT_VIDEO_MODE;
+       videomode = CONFIG_SYS_DEFAULT_VIDEO_MODE;
        /* get video mode via environment */
        if ((penv = getenv ("videomode")) != NULL) {
                /* deceide if it is a string */
@@ -672,7 +672,7 @@ void *video_hw_init(void)
                                break;
                }
                if (i == VESA_MODES_COUNT) {
-                       printf ("no VESA Mode found, switching to mode 0x%x ", CFG_DEFAULT_VIDEO_MODE);
+                       printf ("no VESA Mode found, switching to mode 0x%x ", CONFIG_SYS_DEFAULT_VIDEO_MODE);
                        i = 0;
                }
                res_mode = (struct ctfb_res_modes *) &res_mode_init[vesa_modes[i].resindex];
@@ -732,7 +732,7 @@ void *video_hw_init(void)
                break;
        }
 
-       pGD->isaBase = CFG_ISA_IO_BASE_ADDRESS;
+       pGD->isaBase = CONFIG_SYS_ISA_IO_BASE_ADDRESS;
        pGD->pciBase = rinfo->fb_base_phys;
        pGD->frameAdrs = rinfo->fb_base_phys;
        pGD->memSize = 64 * 1024 * 1024;
index fe418f11b23c6b07aac95510635beda6fd0894aa..779aa4b53e49da3b7eea4814dce0feeef9d48f14 100644 (file)
@@ -61,7 +61,7 @@
 
  CONFIG_CONSOLE_CURSOR      - on/off drawing cursor is done with delay
                               loop in VIDEO_TSTC_FCT (i8042)
- CFG_CONSOLE_BLINK_COUNT     - value for delay loop - blink rate
+ CONFIG_SYS_CONSOLE_BLINK_COUNT     - value for delay loop - blink rate
  CONFIG_CONSOLE_TIME        - display time/date in upper right corner,
                               needs CONFIG_CMD_DATE and CONFIG_CONSOLE_CURSOR
  CONFIG_VIDEO_LOGO          - display Linux Logo in upper left corner
@@ -824,19 +824,19 @@ int video_display_bitmap (ulong bmp_image, int x, int y)
                /*
                 * Could be a gzipped bmp image, try to decrompress...
                 */
-               len = CFG_VIDEO_LOGO_MAX_SIZE;
-               dst = malloc(CFG_VIDEO_LOGO_MAX_SIZE);
+               len = CONFIG_SYS_VIDEO_LOGO_MAX_SIZE;
+               dst = malloc(CONFIG_SYS_VIDEO_LOGO_MAX_SIZE);
                if (dst == NULL) {
                        printf("Error: malloc in gunzip failed!\n");
                        return(1);
                }
-               if (gunzip(dst, CFG_VIDEO_LOGO_MAX_SIZE, (uchar *)bmp_image, &len) != 0) {
+               if (gunzip(dst, CONFIG_SYS_VIDEO_LOGO_MAX_SIZE, (uchar *)bmp_image, &len) != 0) {
                        printf ("Error: no valid bmp or bmp.gz image at %lx\n", bmp_image);
                        free(dst);
                        return 1;
                }
-               if (len == CFG_VIDEO_LOGO_MAX_SIZE) {
-                       printf("Image could be truncated (increase CFG_VIDEO_LOGO_MAX_SIZE)!\n");
+               if (len == CONFIG_SYS_VIDEO_LOGO_MAX_SIZE) {
+                       printf("Image could be truncated (increase CONFIG_SYS_VIDEO_LOGO_MAX_SIZE)!\n");
                }
 
                /*
index cae662eaa98bab3ec761d403afe3c4f03ab9069c..ae219ccf83d43f8ae8b9072b16cf2d1cdfb01f4f 100644 (file)
@@ -1107,7 +1107,7 @@ video_hw_init (void)
                pGD->gdfIndex = GDF_24BIT_888RGB;
                break;
        }
-       pGD->isaBase = CFG_ISA_IO_BASE_ADDRESS;
+       pGD->isaBase = CONFIG_SYS_ISA_IO_BASE_ADDRESS;
        pGD->pciBase = pci_mem_base;
        pGD->frameAdrs = pci_mem_base;
        pGD->memSize = chips_param->max_mem;
index d47cb035817cac74b6d839e52864f084b087ecb3..22a85d1a914830c5dcc596466910e2c84f224000 100644 (file)
@@ -358,7 +358,7 @@ void *video_hw_init (void)
 #endif
 
 #if (defined(CONFIG_LWMON5) || \
-     defined(CONFIG_SOCRATES)) && !(CONFIG_POST & CFG_POST_SYSMON)
+     defined(CONFIG_SOCRATES)) && !(CONFIG_POST & CONFIG_SYS_POST_SYSMON)
        /* Lamp on */
        board_backlight_switch (1);
 #endif
index 390dd5697b06b1461a2333f6992432f659107dda..59b43efca39b93a997a5aeb6a7cff722b7d5b21d 100644 (file)
@@ -596,7 +596,7 @@ void *video_hw_init (void)
 
        tmp = 0;
 
-       videomode = CFG_DEFAULT_VIDEO_MODE;
+       videomode = CONFIG_SYS_DEFAULT_VIDEO_MODE;
        /* get video mode via environment */
        if ((penv = getenv ("videomode")) != NULL) {
                /* deceide if it is a string */
@@ -615,7 +615,7 @@ void *video_hw_init (void)
                                break;
                }
                if (i == VESA_MODES_COUNT) {
-                       printf ("no VESA Mode found, switching to mode 0x%x ", CFG_DEFAULT_VIDEO_MODE);
+                       printf ("no VESA Mode found, switching to mode 0x%x ", CONFIG_SYS_DEFAULT_VIDEO_MODE);
                        i = 0;
                }
                res_mode =
@@ -669,7 +669,7 @@ void *video_hw_init (void)
                break;
        }
 
-       pGD->isaBase = CFG_ISA_IO;
+       pGD->isaBase = CONFIG_SYS_ISA_IO;
        pGD->pciBase = pci_mem_base;
        pGD->dprBase = (pci_mem_base + 0x400000 + 0x8000);
        pGD->vprBase = (pci_mem_base + 0x400000 + 0xc000);
index c81e5bc1416a55dbacb6f4f9b5b6d5a3c07182de..d27ce1d2cd2a45c400df753233be499583c92774 100644 (file)
@@ -23,7 +23,7 @@
 
 /************************************************************************
   Get Parameters for the video mode:
-  The default video mode can be defined in CFG_DEFAULT_VIDEO_MODE.
+  The default video mode can be defined in CONFIG_SYS_DEFAULT_VIDEO_MODE.
   If undefined, default video mode is set to 0x301
   Parameters can be set via the variable "videomode" in the environment.
   2 diferent ways are possible:
index e2dffe7fed51342b5422b79ec1c7a8ac46fe7c90..0d7c335410ca7ca675a38fe313371d31daa98311 100644 (file)
@@ -22,8 +22,8 @@
  */
 
 
-#ifndef CFG_DEFAULT_VIDEO_MODE
-#define CFG_DEFAULT_VIDEO_MODE 0x301
+#ifndef CONFIG_SYS_DEFAULT_VIDEO_MODE
+#define CONFIG_SYS_DEFAULT_VIDEO_MODE  0x301
 #endif
 
 /* Some mode definitions */
index 3ff28041f81267bdf548a2a4b7fd062e8e59de5a..15779d0a162fc0de4a6203f0527c6a1e615b8363 100644 (file)
@@ -39,8 +39,8 @@ DECLARE_GLOBAL_DATA_PTR;
 #include <watchdog.h>
 #else                                  /* Standalone app of PPCBoot */
 #define WATCHDOG_RESET() {                                             \
-                       *(ushort *)(CFG_IMMR + 0x1000E) = 0x556c;       \
-                       *(ushort *)(CFG_IMMR + 0x1000E) = 0xaa39;       \
+                       *(ushort *)(CONFIG_SYS_IMMR + 0x1000E) = 0x556c;        \
+                       *(ushort *)(CONFIG_SYS_IMMR + 0x1000E) = 0xaa39;        \
                }
 #endif /* STANDALONE */
 
@@ -156,7 +156,7 @@ typedef struct pram_idma {
 } pram_idma_t;
 
 
-volatile immap_t *immap = (immap_t *) CFG_IMMR;
+volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 volatile ibd_t *bdf;
 volatile pram_idma_t *piptr;
 
@@ -348,7 +348,7 @@ static uint dpbase = 0;
 
 uint dpalloc (uint size, uint align)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        uint retloc;
        uint align_mask, off;
        uint savebase;
index d8c5ed4a9edfd05b63f50514ae99ab45038e3af8..7109c098ef18495ad28bbadc257b14bfbb775bb1 100644 (file)
 /* Define GPIO ports to signal start of burst transfers and errors */
 #ifdef CONFIG_LWMON
 /* Use PD.8 to signal start of burst transfers */
-#define GPIO1_DAT      (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat)
+#define GPIO1_DAT      (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat)
 #define GPIO1_BIT      0x0080
 /* Configure PD.8 as general purpose output */
 #define GPIO1_INIT \
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pdpar &= ~GPIO1_BIT; \
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddir |=  GPIO1_BIT;
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdpar &= ~GPIO1_BIT; \
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddir |=  GPIO1_BIT;
 /* Use PD.9 to signal error */
-#define GPIO2_DAT      (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat)
+#define GPIO2_DAT      (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat)
 #define GPIO2_BIT      0x0040
 /* Configure PD.9 as general purpose output */
 #define GPIO2_INIT \
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pdpar &= ~GPIO2_BIT; \
-       ((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddir |=  GPIO2_BIT;
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdpar &= ~GPIO2_BIT; \
+       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddir |=  GPIO2_BIT;
 #endif /* CONFIG_LWMON */
 
 
index 57f5582d77aa99b8c38755e082a33fcac502a699..0177268c3cee762862f2ca98f842aefc67550982 100644 (file)
@@ -92,7 +92,7 @@
  * - implemented fragment sorting to ensure that the newest data is copied
  *   if there are multiple copies of fragments for a certain file offset.
  *
- * The fragment sorting feature must be enabled by CFG_JFFS2_SORT_FRAGMENTS.
+ * The fragment sorting feature must be enabled by CONFIG_SYS_JFFS2_SORT_FRAGMENTS.
  * Sorting is done while adding fragments to the lists, which is more or less a
  * bubble sort. This takes a lot of time, and is most probably not an issue if
  * the boot filesystem is always mounted readonly.
@@ -544,7 +544,7 @@ static struct b_node *
 insert_node(struct b_list *list, u32 offset)
 {
        struct b_node *new;
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
        struct b_node *b, *prev;
 #endif
 
@@ -554,7 +554,7 @@ insert_node(struct b_list *list, u32 offset)
        }
        new->offset = offset;
 
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
        if (list->listTail != NULL && list->listCompare(new, list->listTail))
                prev = list->listTail;
        else if (list->listLast != NULL && list->listCompare(new, list->listLast))
@@ -591,7 +591,7 @@ insert_node(struct b_list *list, u32 offset)
        return new;
 }
 
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
 /* Sort data entries with the latest version last, so that if there
  * is overlapping data the latest version will be used.
  */
@@ -694,7 +694,7 @@ jffs_init_1pass_list(struct part_info *part)
                pL = (struct b_lists *)part->jffs2_priv;
 
                memset(pL, 0, sizeof(*pL));
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
                pL->dir.listCompare = compare_dirents;
                pL->frag.listCompare = compare_inodes;
 #endif
@@ -715,7 +715,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 inode, char *dest)
        long ret;
        int i;
        u32 counter = 0;
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
        /* Find file size before loading any data, so fragments that
         * start past the end of file can be ignored. A fragment
         * that is partially in the file is loaded, so extra data may
@@ -753,7 +753,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 inode, char *dest)
                        putLabeledWord("read_inode: flags = ", jNode->flags);
 #endif
 
-#ifndef CFG_JFFS2_SORT_FRAGMENTS
+#ifndef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
                        /* get actual file length from the newest node */
                        if (jNode->version >= latestVersion) {
                                totalSize = jNode->isize;
index e288d5a84a4dc3b64c6de8c62bd3e56c1f6c60f6..6eb674550ac19d936c1acce7f0a2e27ed67a1f44 100644 (file)
@@ -96,7 +96,7 @@ add_node(struct b_list *list, int size)
 static struct b_node *
 insert_node(struct b_list *list, struct b_node *new)
 {
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
        struct b_node *b, *prev;
 
        if (list->listTail != NULL && list->listCompare(new, list->listTail))
@@ -173,7 +173,7 @@ insert_dirent(struct b_list *list, struct jffs2_raw_dirent *node, u32 offset)
        return insert_node(list, (struct b_node *)new);
 }
 
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
 /* Sort data entries with the latest version last, so that if there
  * is overlapping data the latest version will be used.
  */
@@ -250,7 +250,7 @@ jffs_init_1pass_list(struct part_info *part)
                pL = (struct b_lists *)part->jffs2_priv;
 
                memset(pL, 0, sizeof(*pL));
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
                pL->dir.listCompare = compare_dirents;
                pL->frag.listCompare = compare_inodes;
 #endif
@@ -268,7 +268,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 ino, char *dest,
        u32 latestVersion = 0;
        long ret;
 
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
        /* Find file size before loading any data, so fragments that
         * start past the end of file can be ignored. A fragment
         * that is partially in the file is loaded, so extra data may
@@ -290,7 +290,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 ino, char *dest,
        for (jNode = (struct b_inode *)pL->frag.listHead; jNode; jNode = jNode->next) {
                if ((ino != jNode->ino))
                        continue;
-#ifndef CFG_JFFS2_SORT_FRAGMENTS
+#ifndef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
                /* get actual file length from the newest node */
                if (jNode->version >= latestVersion) {
                        totalSize = jNode->isize;
index 46ed644e4d4a6dd795ae70a639484447f660751c..97457627c1573a6d8405655325ad3b44e854cc7d 100644 (file)
@@ -12,7 +12,7 @@ struct b_node {
 struct b_list {
        struct b_node *listTail;
        struct b_node *listHead;
-#ifdef CFG_JFFS2_SORT_FRAGMENTS
+#ifdef CONFIG_SYS_JFFS2_SORT_FRAGMENTS
        struct b_node *listLast;
        int (*listCompare)(struct b_node *new, struct b_node *node);
        u32 listLoops;
index 2df4fbde61920952da8200766607fc84f3caeaaf..f0e772c0501b51eeb827a92d0613115aa0be0bf7 100644 (file)
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define I2C_BASE_ADDR  (CFG_PERIPHERAL_BASE + 0x00000700 + I2C_BUS_OFFS)
+#define I2C_BASE_ADDR  (CONFIG_SYS_PERIPHERAL_BASE + 0x00000700 + I2C_BUS_OFFS)
 #elif defined(CONFIG_440) || defined(CONFIG_405EX)
 /* all remaining 440 variants */
-#define I2C_BASE_ADDR  (CFG_PERIPHERAL_BASE + 0x00000400 + I2C_BUS_OFFS)
+#define I2C_BASE_ADDR  (CONFIG_SYS_PERIPHERAL_BASE + 0x00000400 + I2C_BUS_OFFS)
 #else
 /* all 405 variants */
 #define I2C_BASE_ADDR  (0xEF600500 + I2C_BUS_OFFS)
index c03fe87c414f6ab61bf7ab97799633536e3b583b..44a1ee5635a1681882349a8c949d64a60538f0d9 100644 (file)
 
 /* Altera Model definitions
  *********************************************************************/
-#define CFG_ACEX1K             CFG_FPGA_DEV( 0x1 )
-#define CFG_CYCLON2            CFG_FPGA_DEV( 0x2 )
-#define CFG_STRATIX_II         CFG_FPGA_DEV( 0x4 )
+#define CONFIG_SYS_ACEX1K              CONFIG_SYS_FPGA_DEV( 0x1 )
+#define CONFIG_SYS_CYCLON2             CONFIG_SYS_FPGA_DEV( 0x2 )
+#define CONFIG_SYS_STRATIX_II          CONFIG_SYS_FPGA_DEV( 0x4 )
 
-#define CFG_ALTERA_ACEX1K      (CFG_FPGA_ALTERA | CFG_ACEX1K)
-#define CFG_ALTERA_CYCLON2     (CFG_FPGA_ALTERA | CFG_CYCLON2)
-#define CFG_ALTERA_STRATIX_II  (CFG_FPGA_ALTERA | CFG_STRATIX_II)
+#define CONFIG_SYS_ALTERA_ACEX1K       (CONFIG_SYS_FPGA_ALTERA | CONFIG_SYS_ACEX1K)
+#define CONFIG_SYS_ALTERA_CYCLON2      (CONFIG_SYS_FPGA_ALTERA | CONFIG_SYS_CYCLON2)
+#define CONFIG_SYS_ALTERA_STRATIX_II   (CONFIG_SYS_FPGA_ALTERA | CONFIG_SYS_STRATIX_II)
 /* Add new models here */
 
 /* Altera Interface definitions
  *********************************************************************/
-#define CFG_ALTERA_IF_PS       CFG_FPGA_IF( 0x1 )      /* passive serial */
-#define CFG_ALTERA_IF_FPP      CFG_FPGA_IF( 0x2 )      /* fast passive parallel */
+#define CONFIG_SYS_ALTERA_IF_PS        CONFIG_SYS_FPGA_IF( 0x1 )       /* passive serial */
+#define CONFIG_SYS_ALTERA_IF_FPP       CONFIG_SYS_FPGA_IF( 0x2 )       /* fast passive parallel */
 /* Add new interfaces here */
 
 typedef enum {                         /* typedef Altera_iface */
index 5b0c09e3108a1a063c786b53a4df4f2e8b241799..d3164f69cef07856703e04f77df1de102ac6c1b0 100644 (file)
@@ -110,8 +110,8 @@ struct sys_info {
        int                     mr_no;  /* number of memory regions */
 };
 
-#undef CFG_64BIT_LBA
-#ifdef CFG_64BIT_LBA
+#undef CONFIG_SYS_64BIT_LBA
+#ifdef CONFIG_SYS_64BIT_LBA
 typedef        u_int64_t lbasize_t;
 #else
 typedef unsigned long lbasize_t;
index 619bd47973655649a8a3fbb6c635a9dbe9cf191f..187d3c3437bacd83e7d8f057c0e20f4fed020ed8 100644 (file)
@@ -31,9 +31,9 @@
 #define        MASK_CLE        0x10
 #define        MASK_ALE        0x0a
 
-#define NAND_CE0CLE    ((volatile u_int8_t *)(CFG_NAND_BASE + 0x10))
-#define NAND_CE0ALE    ((volatile u_int8_t *)(CFG_NAND_BASE + 0x0a))
-#define NAND_CE0DATA   ((volatile u_int8_t *)CFG_NAND_BASE)
+#define NAND_CE0CLE    ((volatile u_int8_t *)(CONFIG_SYS_NAND_BASE + 0x10))
+#define NAND_CE0ALE    ((volatile u_int8_t *)(CONFIG_SYS_NAND_BASE + 0x0a))
+#define NAND_CE0DATA   ((volatile u_int8_t *)CONFIG_SYS_NAND_BASE)
 
 typedef struct  {
        u_int32_t       NRCSR;
@@ -89,7 +89,7 @@ typedef volatile nand_registers       *nandregs;
 #define NAND_READ_END          0x30
 #define NAND_STATUS            0x70
 
-#ifdef CFG_NAND_HW_ECC
+#ifdef CONFIG_SYS_NAND_HW_ECC
 #define NAND_Ecc_P1e           (1 << 0)
 #define NAND_Ecc_P2e           (1 << 1)
 #define NAND_Ecc_P4e           (1 << 2)
index c81f1c4370c2d08ee8981e87c9303cec1e8fd527..42e8ab2bce1bb7d3266a66373a18f61c165e8c6d 100644 (file)
@@ -103,7 +103,7 @@ typedef enum {
 
 /* GPMC settings */
 #ifdef PRCM_CONFIG_II       /* L3 at 100MHz */
-# ifdef CFG_NAND_BOOT
+# ifdef CONFIG_SYS_NAND_BOOT
 #  define H4_24XX_GPMC_CONFIG1_0   0x0
 #  define H4_24XX_GPMC_CONFIG2_0   0x00141400
 #  define H4_24XX_GPMC_CONFIG3_0   0x00141400
@@ -116,7 +116,7 @@ typedef enum {
 #  define H4_24XX_GPMC_CONFIG3_0   0x00050502
 #  define H4_24XX_GPMC_CONFIG4_0   0x0C060C06
 #  define H4_24XX_GPMC_CONFIG5_0   0x01131F1F
-# endif /* endif CFG_NAND_BOOT */
+# endif /* endif CONFIG_SYS_NAND_BOOT */
 # define H4_24XX_GPMC_CONFIG7_0          (0x00000C40|(H4_CS0_BASE >> 24))
 # define H4_24XX_GPMC_CONFIG1_1          0x00011000
 # define H4_24XX_GPMC_CONFIG2_1          0x001F1F00
@@ -128,7 +128,7 @@ typedef enum {
 #endif /* endif PRCM_CONFIG_II */
 
 #ifdef PRCM_CONFIG_III /* L3 at 133MHz */
-# ifdef CFG_NAND_BOOT
+# ifdef CONFIG_SYS_NAND_BOOT
 #  define H4_24XX_GPMC_CONFIG1_0   0x0
 #  define H4_24XX_GPMC_CONFIG2_0   0x00141400
 #  define H4_24XX_GPMC_CONFIG3_0   0x00141400
@@ -142,7 +142,7 @@ typedef enum {
 #  define H4_24XX_GPMC_CONFIG4_0   0x10081008
 #  define H4_24XX_GPMC_CONFIG5_0   0x01131F1F
 #  define H4_24XX_GPMC_CONFIG6_0   0x000004c4
-# endif /* endif CFG_NAND_BOOT */
+# endif /* endif CONFIG_SYS_NAND_BOOT */
 # define H4_24XX_GPMC_CONFIG7_0          (0x00000C40|(H4_CS0_BASE >> 24))
 # define H4_24XX_GPMC_CONFIG1_1          0x00011000
 # define H4_24XX_GPMC_CONFIG2_1          0x001f1f01
@@ -151,6 +151,6 @@ typedef enum {
 # define H4_24XX_GPMC_CONFIG5_1          0x041f1F1F
 # define H4_24XX_GPMC_CONFIG6_1          0x000004C4
 # define H4_24XX_GPMC_CONFIG7_1          (0x00000F40|(H4_CS1_BASE >> 24))
-#endif /* endif CFG_PRCM_III */
+#endif /* endif CONFIG_SYS_PRCM_III */
 
 #endif /* endif _OMAP24XX_MEM_H_ */
index f419b42adc8c4ced9d3dd7e5ca1e01fa29a76b68..5c56ce32821e93fe307003eaee7a8484af258cf9 100644 (file)
@@ -30,7 +30,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef        struct  global_data {
index e9a4fe4d649d1d04bc81159b1d982598d5799885..7817572270c1245095d12b81c62e0f0330d0ac61 100644 (file)
 #include <asm/arch/chip-features.h>
 
 #ifdef CONFIG_PLL
-#define MAIN_CLK_RATE ((CFG_OSC0_HZ / CFG_PLL0_DIV) * CFG_PLL0_MUL)
+#define MAIN_CLK_RATE ((CONFIG_SYS_OSC0_HZ / CONFIG_SYS_PLL0_DIV) * CONFIG_SYS_PLL0_MUL)
 #else
-#define MAIN_CLK_RATE (CFG_OSC0_HZ)
+#define MAIN_CLK_RATE (CONFIG_SYS_OSC0_HZ)
 #endif
 
 static inline unsigned long get_cpu_clk_rate(void)
 {
-       return MAIN_CLK_RATE >> CFG_CLKDIV_CPU;
+       return MAIN_CLK_RATE >> CONFIG_SYS_CLKDIV_CPU;
 }
 static inline unsigned long get_hsb_clk_rate(void)
 {
-       return MAIN_CLK_RATE >> CFG_CLKDIV_HSB;
+       return MAIN_CLK_RATE >> CONFIG_SYS_CLKDIV_HSB;
 }
 static inline unsigned long get_pba_clk_rate(void)
 {
-       return MAIN_CLK_RATE >> CFG_CLKDIV_PBA;
+       return MAIN_CLK_RATE >> CONFIG_SYS_CLKDIV_PBA;
 }
 static inline unsigned long get_pbb_clk_rate(void)
 {
-       return MAIN_CLK_RATE >> CFG_CLKDIV_PBB;
+       return MAIN_CLK_RATE >> CONFIG_SYS_CLKDIV_PBB;
 }
 
 /* Accessors for specific devices. More will be added as needed. */
@@ -85,6 +85,6 @@ extern void clk_init(void);
 extern void gclk_init(void) __attribute__((weak));
 
 /* Board code may need the SDRAM base clock as a compile-time constant */
-#define SDRAMC_BUS_HZ  (MAIN_CLK_RATE >> CFG_CLKDIV_HSB)
+#define SDRAMC_BUS_HZ  (MAIN_CLK_RATE >> CONFIG_SYS_CLKDIV_HSB)
 
 #endif /* __ASM_AVR32_ARCH_CLK_H__ */
index 75e75cc6c8c918456f4bb4e310620f1e17dc2b61..97a6c6173c9af26be8966c34933b5a6e44a8546c 100644 (file)
@@ -29,7 +29,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef        struct  global_data {
index 6a1ffa17d0435c17060817e8744bd891578b504c..0ab68ace75f27e285cbdaa6abc1dbc1c69274f41 100644 (file)
@@ -10,7 +10,7 @@
 #define __ASM_BLACKFIN_CONFIG_POST_H__
 
 /* Check to make sure everything fits in external RAM */
-#if ((CFG_MONITOR_BASE + CFG_MONITOR_LEN) > CFG_MAX_RAM_SIZE)
+#if ((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) > CONFIG_SYS_MAX_RAM_SIZE)
 # error Memory Map does not fit into configuration
 #endif
 
@@ -20,8 +20,8 @@
 #endif
 
 /* Make sure the structure is properly aligned */
-#if ((CFG_GBL_DATA_ADDR & -4) != CFG_GBL_DATA_ADDR)
-# error CFG_GBL_DATA_ADDR: must be 4 byte aligned
+#if ((CONFIG_SYS_GBL_DATA_ADDR & -4) != CONFIG_SYS_GBL_DATA_ADDR)
+# error CONFIG_SYS_GBL_DATA_ADDR: must be 4 byte aligned
 #endif
 
 /* Set default CONFIG_VCO_HZ if need be */
index f2c44f78c9d7393ce31b50dc5e2bf2474205e9c8..541cb76f4237cad7bf68dd81f6c76a53a98d7515 100644 (file)
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 
 /* Configurable Blackfin-specific monitor commands */
-#define CFG_BFIN_CMD_BOOTLDR     0x01
-#define CFG_BFIN_CMD_CPLBINFO    0x02
-#define CFG_BFIN_CMD_OTP         0x04
-#define CFG_BFIN_CMD_CACHE_DUMP  0x08
+#define CONFIG_SYS_BFIN_CMD_BOOTLDR     0x01
+#define CONFIG_SYS_BFIN_CMD_CPLBINFO    0x02
+#define CONFIG_SYS_BFIN_CMD_OTP         0x04
+#define CONFIG_SYS_BFIN_CMD_CACHE_DUMP  0x08
 
 /* Bootmode defines -- your config needs to select this via BFIN_BOOT_MODE.
  * Depending on your cpu, some of these may not be valid, check your HRM.
index 2f408705e46321ee4b6d4d0cc4ba3ead3c891ae4..5c9903bb150228e1a0d1c963b6ddfdb61cd62a59 100644 (file)
@@ -35,7 +35,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 typedef struct global_data {
        bd_t *bd;
index cc30689d210e9e37aaa5f1e98d099b6b663b77ba..3abbf1dba29b8c2157156bca6b2798a9116af44f 100644 (file)
@@ -30,7 +30,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef        struct {
index 187618d72c394c9edd6a8fc590042a68f69a50b5..413c20002309bb0d995548c46ceecc7cc4498dc6 100644 (file)
@@ -30,7 +30,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef        struct  global_data {
index b0814f1601b24e7d050723cf1271bb61dee4a93b..ccd7c2be81091661ae75d526b62f85e96d902e44 100644 (file)
 #include <asm/immap_5227x.h>
 #include <asm/m5227x.h>
 
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x4000))
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
 
-#define CFG_MCFRTC_BASE                (MMAP_RTC)
+#define CONFIG_SYS_MCFRTC_BASE         (MMAP_RTC)
 
 #ifdef CONFIG_LCD
-#define        CFG_LCD_BASE            (MMAP_LCD)
+#define        CONFIG_SYS_LCD_BASE             (MMAP_LCD)
 #endif
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR1)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
-#define CFG_TMRINTR_NO         (INT0_HI_DTMR1)
-#define CFG_TMRINTR_MASK       (INTC_IPRH_INT33)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (6)
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR1)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_HI_DTMR1)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRH_INT33)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (6)
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 
 #ifdef CONFIG_MCFPIT
-#define CFG_UDELAY_BASE                (MMAP_PIT0)
-#define CFG_PIT_BASE           (MMAP_PIT1)
-#define CFG_PIT_PRESCALE       (6)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_PIT0)
+#define CONFIG_SYS_PIT_BASE            (MMAP_PIT1)
+#define CONFIG_SYS_PIT_PRESCALE        (6)
 #endif
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 #endif                         /* CONFIG_M52277 */
 
 #ifdef CONFIG_M5235
 #include <asm/immap_5235.h>
 #include <asm/m5235.h>
 
-#define CFG_FEC0_IOBASE                (MMAP_FEC)
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x40))
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC)
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR3)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprl0)
-#define CFG_TMRINTR_NO         (INT0_LO_DTMR3)
-#define CFG_TMRINTR_MASK       (INTC_IPRL_INT22)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (0x1E)          /* Level must include inorder to work */
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR3)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_LO_DTMR3)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRL_INT22)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (0x1E)          /* Level must include inorder to work */
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 
 #ifdef CONFIG_MCFPIT
-#define CFG_UDELAY_BASE                (MMAP_PIT0)
-#define CFG_PIT_BASE           (MMAP_PIT1)
-#define CFG_PIT_PRESCALE       (6)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_PIT0)
+#define CONFIG_SYS_PIT_BASE            (MMAP_PIT1)
+#define CONFIG_SYS_PIT_PRESCALE        (6)
 #endif
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 #endif                         /* CONFIG_M5235 */
 
 #ifdef CONFIG_M5249
 #include <asm/immap_5249.h>
 #include <asm/m5249.h>
 
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x40))
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
 
-#define CFG_INTR_BASE          (MMAP_INTC)
-#define CFG_NUM_IRQS           (64)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC)
+#define CONFIG_SYS_NUM_IRQS            (64)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR1)
-#define CFG_TMRPND_REG         (mbar_readLong(MCFSIM_IPR))
-#define CFG_TMRINTR_NO         (31)
-#define CFG_TMRINTR_MASK       (0x00000400)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 2000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR1)
+#define CONFIG_SYS_TMRPND_REG          (mbar_readLong(MCFSIM_IPR))
+#define CONFIG_SYS_TMRINTR_NO          (31)
+#define CONFIG_SYS_TMRINTR_MASK        (0x00000400)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 2000000) - 1) << 8)
 #endif
 #endif                         /* CONFIG_M5249 */
 
 #include <asm/m5249.h>
 #include <asm/m5253.h>
 
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x40))
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
 
-#define CFG_INTR_BASE          (MMAP_INTC)
-#define CFG_NUM_IRQS           (64)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC)
+#define CONFIG_SYS_NUM_IRQS            (64)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR1)
-#define CFG_TMRPND_REG         (mbar_readLong(MCFSIM_IPR))
-#define CFG_TMRINTR_NO         (27)
-#define CFG_TMRINTR_MASK       (0x00000400)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 2000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR1)
+#define CONFIG_SYS_TMRPND_REG          (mbar_readLong(MCFSIM_IPR))
+#define CONFIG_SYS_TMRINTR_NO          (27)
+#define CONFIG_SYS_TMRINTR_MASK        (0x00000400)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 2000000) - 1) << 8)
 #endif
 #endif                         /* CONFIG_M5253 */
 
 #include <asm/immap_5271.h>
 #include <asm/m5271.h>
 
-#define CFG_FEC0_IOBASE                (MMAP_FEC)
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x40))
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC)
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR3)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprl0)
-#define CFG_TMRINTR_NO         (INT0_LO_DTMR3)
-#define CFG_TMRINTR_MASK       (INTC_IPRL_INT22)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (0)             /* Level must include inorder to work */
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR3)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_LO_DTMR3)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRL_INT22)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (0)             /* Level must include inorder to work */
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 #endif                         /* CONFIG_M5271 */
 
 #ifdef CONFIG_M5272
 #include <asm/immap_5272.h>
 #include <asm/m5272.h>
 
-#define CFG_FEC0_IOBASE                (MMAP_FEC)
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x40))
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC)
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
 
-#define CFG_INTR_BASE          (MMAP_INTC)
-#define CFG_NUM_IRQS           (64)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC)
+#define CONFIG_SYS_NUM_IRQS            (64)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_TMR0)
-#define CFG_TMR_BASE           (MMAP_TMR3)
-#define CFG_TMRPND_REG         (((volatile intctrl_t *)(CFG_INTR_BASE))->int_isr)
-#define CFG_TMRINTR_NO         (INT_TMR3)
-#define CFG_TMRINTR_MASK       (INT_ISR_INT24)
-#define CFG_TMRINTR_PEND       (0)
-#define CFG_TMRINTR_PRI                (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_TMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_TMR3)
+#define CONFIG_SYS_TMRPND_REG          (((volatile intctrl_t *)(CONFIG_SYS_INTR_BASE))->int_isr)
+#define CONFIG_SYS_TMRINTR_NO          (INT_TMR3)
+#define CONFIG_SYS_TMRINTR_MASK        (INT_ISR_INT24)
+#define CONFIG_SYS_TMRINTR_PEND        (0)
+#define CONFIG_SYS_TMRINTR_PRI         (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 #endif                         /* CONFIG_M5272 */
 
 #include <asm/immap_5275.h>
 #include <asm/m5275.h>
 
-#define CFG_FEC0_IOBASE                (MMAP_FEC0)
-#define CFG_FEC1_IOBASE                (MMAP_FEC1)
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x40))
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC0)
+#define CONFIG_SYS_FEC1_IOBASE         (MMAP_FEC1)
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (192)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (192)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR3)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprl0)
-#define CFG_TMRINTR_NO         (INT0_LO_DTMR3)
-#define CFG_TMRINTR_MASK       (INTC_IPRL_INT22)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (0x1E)
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR3)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_LO_DTMR3)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRL_INT22)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (0x1E)
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 #endif                         /* CONFIG_M5275 */
 
 #include <asm/immap_5282.h>
 #include <asm/m5282.h>
 
-#define CFG_FEC0_IOBASE                (MMAP_FEC)
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x40))
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC)
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR3)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprl0)
-#define CFG_TMRINTR_NO         (INT0_LO_DTMR3)
-#define CFG_TMRINTR_MASK       (1 << INT0_LO_DTMR3)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (0x1E)          /* Level must include inorder to work */
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR3)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_LO_DTMR3)
+#define CONFIG_SYS_TMRINTR_MASK        (1 << INT0_LO_DTMR3)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (0x1E)          /* Level must include inorder to work */
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 #endif                         /* CONFIG_M5282 */
 
 #include <asm/immap_5329.h>
 #include <asm/m5329.h>
 
-#define CFG_FEC0_IOBASE                (MMAP_FEC)
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x4000))
-#define CFG_MCFRTC_BASE                (MMAP_RTC)
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC)
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
+#define CONFIG_SYS_MCFRTC_BASE         (MMAP_RTC)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR1)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
-#define CFG_TMRINTR_NO         (INT0_HI_DTMR1)
-#define CFG_TMRINTR_MASK       (INTC_IPRH_INT33)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (6)
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR1)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_HI_DTMR1)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRH_INT33)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (6)
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 
 #ifdef CONFIG_MCFPIT
-#define CFG_UDELAY_BASE                (MMAP_PIT0)
-#define CFG_PIT_BASE           (MMAP_PIT1)
-#define CFG_PIT_PRESCALE       (6)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_PIT0)
+#define CONFIG_SYS_PIT_BASE            (MMAP_PIT1)
+#define CONFIG_SYS_PIT_PRESCALE        (6)
 #endif
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 #endif                         /* CONFIG_M5329 && CONFIG_M5373 */
 
 #if defined(CONFIG_M54451) || defined(CONFIG_M54455)
 #include <asm/immap_5445x.h>
 #include <asm/m5445x.h>
 
-#define CFG_FEC0_IOBASE                (MMAP_FEC0)
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC0)
 #if defined(CONFIG_M54455EVB)
-#define CFG_FEC1_IOBASE                (MMAP_FEC1)
+#define CONFIG_SYS_FEC1_IOBASE         (MMAP_FEC1)
 #endif
 
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x4000))
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
 
-#define CFG_MCFRTC_BASE                (MMAP_RTC)
+#define CONFIG_SYS_MCFRTC_BASE         (MMAP_RTC)
 
 /* Timer */
 #ifdef CONFIG_MCFTMR
-#define CFG_UDELAY_BASE                (MMAP_DTMR0)
-#define CFG_TMR_BASE           (MMAP_DTMR1)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
-#define CFG_TMRINTR_NO         (INT0_HI_DTMR1)
-#define CFG_TMRINTR_MASK       (INTC_IPRH_INT33)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (6)
-#define CFG_TIMER_PRESCALER    (((gd->bus_clk / 1000000) - 1) << 8)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_DTMR0)
+#define CONFIG_SYS_TMR_BASE            (MMAP_DTMR1)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_HI_DTMR1)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRH_INT33)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (6)
+#define CONFIG_SYS_TIMER_PRESCALER     (((gd->bus_clk / 1000000) - 1) << 8)
 #endif
 
 #ifdef CONFIG_MCFPIT
-#define CFG_UDELAY_BASE                (MMAP_PIT0)
-#define CFG_PIT_BASE           (MMAP_PIT1)
-#define CFG_PIT_PRESCALE       (6)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_PIT0)
+#define CONFIG_SYS_PIT_BASE            (MMAP_PIT1)
+#define CONFIG_SYS_PIT_PRESCALE        (6)
 #endif
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 
 #ifdef CONFIG_PCI
-#define CFG_PCI_BAR0           (CFG_MBAR)
-#define CFG_PCI_BAR5           (CFG_SDRAM_BASE)
-#define CFG_PCI_TBATR0         (CFG_MBAR)
-#define CFG_PCI_TBATR5         (CFG_SDRAM_BASE)
+#define CONFIG_SYS_PCI_BAR0            (CONFIG_SYS_MBAR)
+#define CONFIG_SYS_PCI_BAR5            (CONFIG_SYS_SDRAM_BASE)
+#define CONFIG_SYS_PCI_TBATR0          (CONFIG_SYS_MBAR)
+#define CONFIG_SYS_PCI_TBATR5          (CONFIG_SYS_SDRAM_BASE)
 #endif
 #endif                         /* CONFIG_M54451 || CONFIG_M54455 */
 
 #include <asm/m547x_8x.h>
 
 #ifdef CONFIG_FSLDMAFEC
-#define CFG_FEC0_IOBASE                (MMAP_FEC0)
-#define CFG_FEC1_IOBASE                (MMAP_FEC1)
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC0)
+#define CONFIG_SYS_FEC1_IOBASE         (MMAP_FEC1)
 
 #define FEC0_RX_TASK           0
 #define FEC0_TX_TASK           1
 #define FEC1_TX_INIT           31
 #endif
 
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x100))
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
 
 #ifdef CONFIG_SLTTMR
-#define CFG_UDELAY_BASE                (MMAP_SLT1)
-#define CFG_TMR_BASE           (MMAP_SLT0)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
-#define CFG_TMRINTR_NO         (INT0_HI_SLT0)
-#define CFG_TMRINTR_MASK       (INTC_IPRH_INT54)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (0x1E)
-#define CFG_TIMER_PRESCALER    (gd->bus_clk / 1000000)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_SLT1)
+#define CONFIG_SYS_TMR_BASE            (MMAP_SLT0)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_HI_SLT0)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRH_INT54)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (0x1E)
+#define CONFIG_SYS_TIMER_PRESCALER     (gd->bus_clk / 1000000)
 #endif
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 
 #ifdef CONFIG_PCI
-#define CFG_PCI_BAR0           (0x40000000)
-#define CFG_PCI_BAR1           (CFG_SDRAM_BASE)
-#define CFG_PCI_TBATR0         (CFG_MBAR)
-#define CFG_PCI_TBATR1         (CFG_SDRAM_BASE)
+#define CONFIG_SYS_PCI_BAR0            (0x40000000)
+#define CONFIG_SYS_PCI_BAR1            (CONFIG_SYS_SDRAM_BASE)
+#define CONFIG_SYS_PCI_TBATR0          (CONFIG_SYS_MBAR)
+#define CONFIG_SYS_PCI_TBATR1          (CONFIG_SYS_SDRAM_BASE)
 #endif
 #endif                         /* CONFIG_M547x */
 
 #include <asm/m547x_8x.h>
 
 #ifdef CONFIG_FSLDMAFEC
-#define CFG_FEC0_IOBASE                (MMAP_FEC0)
-#define CFG_FEC1_IOBASE                (MMAP_FEC1)
+#define CONFIG_SYS_FEC0_IOBASE         (MMAP_FEC0)
+#define CONFIG_SYS_FEC1_IOBASE         (MMAP_FEC1)
 
 #define FEC0_RX_TASK           0
 #define FEC0_TX_TASK           1
 #define FEC1_TX_INIT           31
 #endif
 
-#define CFG_UART_BASE          (MMAP_UART0 + (CFG_UART_PORT * 0x100))
+#define CONFIG_SYS_UART_BASE           (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
 
 /* Timer */
 #ifdef CONFIG_SLTTMR
-#define CFG_UDELAY_BASE                (MMAP_SLT1)
-#define CFG_TMR_BASE           (MMAP_SLT0)
-#define CFG_TMRPND_REG         (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
-#define CFG_TMRINTR_NO         (INT0_HI_SLT0)
-#define CFG_TMRINTR_MASK       (INTC_IPRH_INT54)
-#define CFG_TMRINTR_PEND       (CFG_TMRINTR_MASK)
-#define CFG_TMRINTR_PRI                (0x1E)
-#define CFG_TIMER_PRESCALER    (gd->bus_clk / 1000000)
+#define CONFIG_SYS_UDELAY_BASE         (MMAP_SLT1)
+#define CONFIG_SYS_TMR_BASE            (MMAP_SLT0)
+#define CONFIG_SYS_TMRPND_REG          (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
+#define CONFIG_SYS_TMRINTR_NO          (INT0_HI_SLT0)
+#define CONFIG_SYS_TMRINTR_MASK        (INTC_IPRH_INT54)
+#define CONFIG_SYS_TMRINTR_PEND        (CONFIG_SYS_TMRINTR_MASK)
+#define CONFIG_SYS_TMRINTR_PRI         (0x1E)
+#define CONFIG_SYS_TIMER_PRESCALER     (gd->bus_clk / 1000000)
 #endif
 
-#define CFG_INTR_BASE          (MMAP_INTC0)
-#define CFG_NUM_IRQS           (128)
+#define CONFIG_SYS_INTR_BASE           (MMAP_INTC0)
+#define CONFIG_SYS_NUM_IRQS            (128)
 
 #ifdef CONFIG_PCI
-#define CFG_PCI_BAR0           (CFG_MBAR)
-#define CFG_PCI_BAR1           (CFG_SDRAM_BASE)
-#define CFG_PCI_TBATR0         (CFG_MBAR)
-#define CFG_PCI_TBATR1         (CFG_SDRAM_BASE)
+#define CONFIG_SYS_PCI_BAR0            (CONFIG_SYS_MBAR)
+#define CONFIG_SYS_PCI_BAR1            (CONFIG_SYS_SDRAM_BASE)
+#define CONFIG_SYS_PCI_TBATR0          (CONFIG_SYS_MBAR)
+#define CONFIG_SYS_PCI_TBATR1          (CONFIG_SYS_SDRAM_BASE)
 #endif
 #endif                         /* CONFIG_M548x */
 
index 1d1e6f1b071d22ce759333eb2e852ff80ad726de..83da3d5f76bb971d31966ae710fd8f92137536b5 100644 (file)
 #define __IMMAP_5227X__
 
 /* Module Base Addresses */
-#define MMAP_SCM1      (CFG_MBAR + 0x00000000)
-#define MMAP_XBS       (CFG_MBAR + 0x00004000)
-#define MMAP_FBCS      (CFG_MBAR + 0x00008000)
-#define MMAP_CAN       (CFG_MBAR + 0x00020000)
-#define MMAP_RTC       (CFG_MBAR + 0x0003C000)
-#define MMAP_SCM2      (CFG_MBAR + 0x00040010)
-#define MMAP_SCM3      (CFG_MBAR + 0x00040070)
-#define MMAP_EDMA      (CFG_MBAR + 0x00044000)
-#define MMAP_INTC0     (CFG_MBAR + 0x00048000)
-#define MMAP_INTC1     (CFG_MBAR + 0x0004C000)
-#define MMAP_IACK      (CFG_MBAR + 0x00054000)
-#define MMAP_I2C       (CFG_MBAR + 0x00058000)
-#define MMAP_DSPI      (CFG_MBAR + 0x0005C000)
-#define MMAP_UART0     (CFG_MBAR + 0x00060000)
-#define MMAP_UART1     (CFG_MBAR + 0x00064000)
-#define MMAP_UART2     (CFG_MBAR + 0x00068000)
-#define MMAP_DTMR0     (CFG_MBAR + 0x00070000)
-#define MMAP_DTMR1     (CFG_MBAR + 0x00074000)
-#define MMAP_DTMR2     (CFG_MBAR + 0x00078000)
-#define MMAP_DTMR3     (CFG_MBAR + 0x0007C000)
-#define MMAP_PIT0      (CFG_MBAR + 0x00080000)
-#define MMAP_PIT1      (CFG_MBAR + 0x00084000)
-#define MMAP_PWM       (CFG_MBAR + 0x00090000)
-#define MMAP_EPORT     (CFG_MBAR + 0x00094000)
-#define MMAP_RCM       (CFG_MBAR + 0x000A0000)
-#define MMAP_CCM       (CFG_MBAR + 0x000A0004)
-#define MMAP_GPIO      (CFG_MBAR + 0x000A4000)
-#define MMAP_ADC       (CFG_MBAR + 0x000A8000)
-#define MMAP_LCD       (CFG_MBAR + 0x000AC000)
-#define MMAP_LCD_BGLUT (CFG_MBAR + 0x000AC800)
-#define MMAP_LCD_GWLUT (CFG_MBAR + 0x000ACC00)
-#define MMAP_USBHW     (CFG_MBAR + 0x000B0000)
-#define MMAP_USBCAPS   (CFG_MBAR + 0x000B0100)
-#define MMAP_USBEHCI   (CFG_MBAR + 0x000B0140)
-#define MMAP_USBOTG    (CFG_MBAR + 0x000B01A0)
-#define MMAP_SDRAM     (CFG_MBAR + 0x000B8000)
-#define MMAP_SSI       (CFG_MBAR + 0x000BC000)
-#define MMAP_PLL       (CFG_MBAR + 0x000C0000)
+#define MMAP_SCM1      (CONFIG_SYS_MBAR + 0x00000000)
+#define MMAP_XBS       (CONFIG_SYS_MBAR + 0x00004000)
+#define MMAP_FBCS      (CONFIG_SYS_MBAR + 0x00008000)
+#define MMAP_CAN       (CONFIG_SYS_MBAR + 0x00020000)
+#define MMAP_RTC       (CONFIG_SYS_MBAR + 0x0003C000)
+#define MMAP_SCM2      (CONFIG_SYS_MBAR + 0x00040010)
+#define MMAP_SCM3      (CONFIG_SYS_MBAR + 0x00040070)
+#define MMAP_EDMA      (CONFIG_SYS_MBAR + 0x00044000)
+#define MMAP_INTC0     (CONFIG_SYS_MBAR + 0x00048000)
+#define MMAP_INTC1     (CONFIG_SYS_MBAR + 0x0004C000)
+#define MMAP_IACK      (CONFIG_SYS_MBAR + 0x00054000)
+#define MMAP_I2C       (CONFIG_SYS_MBAR + 0x00058000)
+#define MMAP_DSPI      (CONFIG_SYS_MBAR + 0x0005C000)
+#define MMAP_UART0     (CONFIG_SYS_MBAR + 0x00060000)
+#define MMAP_UART1     (CONFIG_SYS_MBAR + 0x00064000)
+#define MMAP_UART2     (CONFIG_SYS_MBAR + 0x00068000)
+#define MMAP_DTMR0     (CONFIG_SYS_MBAR + 0x00070000)
+#define MMAP_DTMR1     (CONFIG_SYS_MBAR + 0x00074000)
+#define MMAP_DTMR2     (CONFIG_SYS_MBAR + 0x00078000)
+#define MMAP_DTMR3     (CONFIG_SYS_MBAR + 0x0007C000)
+#define MMAP_PIT0      (CONFIG_SYS_MBAR + 0x00080000)
+#define MMAP_PIT1      (CONFIG_SYS_MBAR + 0x00084000)
+#define MMAP_PWM       (CONFIG_SYS_MBAR + 0x00090000)
+#define MMAP_EPORT     (CONFIG_SYS_MBAR + 0x00094000)
+#define MMAP_RCM       (CONFIG_SYS_MBAR + 0x000A0000)
+#define MMAP_CCM       (CONFIG_SYS_MBAR + 0x000A0004)
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x000A4000)
+#define MMAP_ADC       (CONFIG_SYS_MBAR + 0x000A8000)
+#define MMAP_LCD       (CONFIG_SYS_MBAR + 0x000AC000)
+#define MMAP_LCD_BGLUT (CONFIG_SYS_MBAR + 0x000AC800)
+#define MMAP_LCD_GWLUT (CONFIG_SYS_MBAR + 0x000ACC00)
+#define MMAP_USBHW     (CONFIG_SYS_MBAR + 0x000B0000)
+#define MMAP_USBCAPS   (CONFIG_SYS_MBAR + 0x000B0100)
+#define MMAP_USBEHCI   (CONFIG_SYS_MBAR + 0x000B0140)
+#define MMAP_USBOTG    (CONFIG_SYS_MBAR + 0x000B01A0)
+#define MMAP_SDRAM     (CONFIG_SYS_MBAR + 0x000B8000)
+#define MMAP_SSI       (CONFIG_SYS_MBAR + 0x000BC000)
+#define MMAP_PLL       (CONFIG_SYS_MBAR + 0x000C0000)
 
 #include <asm/coldfire/crossbar.h>
 #include <asm/coldfire/dspi.h>
index 4a034501d3b059fc2dbebca8c4109c4e2b2de21f..3ef0321082f3fbd8a14498fd191e88fa4dc85419 100644 (file)
 #ifndef __IMMAP_5235__
 #define __IMMAP_5235__
 
-#define MMAP_SCM       (CFG_MBAR + 0x00000000)
-#define MMAP_SDRAM     (CFG_MBAR + 0x00000040)
-#define MMAP_FBCS      (CFG_MBAR + 0x00000080)
-#define MMAP_DMA0      (CFG_MBAR + 0x00000100)
-#define MMAP_DMA1      (CFG_MBAR + 0x00000110)
-#define MMAP_DMA2      (CFG_MBAR + 0x00000120)
-#define MMAP_DMA3      (CFG_MBAR + 0x00000130)
-#define MMAP_UART0     (CFG_MBAR + 0x00000200)
-#define MMAP_UART1     (CFG_MBAR + 0x00000240)
-#define MMAP_UART2     (CFG_MBAR + 0x00000280)
-#define MMAP_I2C       (CFG_MBAR + 0x00000300)
-#define MMAP_QSPI      (CFG_MBAR + 0x00000340)
-#define MMAP_DTMR0     (CFG_MBAR + 0x00000400)
-#define MMAP_DTMR1     (CFG_MBAR + 0x00000440)
-#define MMAP_DTMR2     (CFG_MBAR + 0x00000480)
-#define MMAP_DTMR3     (CFG_MBAR + 0x000004C0)
-#define MMAP_INTC0     (CFG_MBAR + 0x00000C00)
-#define MMAP_INTC1     (CFG_MBAR + 0x00000D00)
-#define MMAP_INTCACK   (CFG_MBAR + 0x00000F00)
-#define MMAP_FEC       (CFG_MBAR + 0x00001000)
-#define MMAP_FECFIFO   (CFG_MBAR + 0x00001400)
-#define MMAP_GPIO      (CFG_MBAR + 0x00100000)
-#define MMAP_CCM       (CFG_MBAR + 0x00110000)
-#define MMAP_PLL       (CFG_MBAR + 0x00120000)
-#define MMAP_EPORT     (CFG_MBAR + 0x00130000)
-#define MMAP_WDOG      (CFG_MBAR + 0x00140000)
-#define MMAP_PIT0      (CFG_MBAR + 0x00150000)
-#define MMAP_PIT1      (CFG_MBAR + 0x00160000)
-#define MMAP_PIT2      (CFG_MBAR + 0x00170000)
-#define MMAP_PIT3      (CFG_MBAR + 0x00180000)
-#define MMAP_MDHA      (CFG_MBAR + 0x00190000)
-#define MMAP_RNG       (CFG_MBAR + 0x001A0000)
-#define MMAP_SKHA      (CFG_MBAR + 0x001B0000)
-#define MMAP_CAN1      (CFG_MBAR + 0x001C0000)
-#define MMAP_ETPU      (CFG_MBAR + 0x001D0000)
-#define MMAP_CAN2      (CFG_MBAR + 0x001F0000)
+#define MMAP_SCM       (CONFIG_SYS_MBAR + 0x00000000)
+#define MMAP_SDRAM     (CONFIG_SYS_MBAR + 0x00000040)
+#define MMAP_FBCS      (CONFIG_SYS_MBAR + 0x00000080)
+#define MMAP_DMA0      (CONFIG_SYS_MBAR + 0x00000100)
+#define MMAP_DMA1      (CONFIG_SYS_MBAR + 0x00000110)
+#define MMAP_DMA2      (CONFIG_SYS_MBAR + 0x00000120)
+#define MMAP_DMA3      (CONFIG_SYS_MBAR + 0x00000130)
+#define MMAP_UART0     (CONFIG_SYS_MBAR + 0x00000200)
+#define MMAP_UART1     (CONFIG_SYS_MBAR + 0x00000240)
+#define MMAP_UART2     (CONFIG_SYS_MBAR + 0x00000280)
+#define MMAP_I2C       (CONFIG_SYS_MBAR + 0x00000300)
+#define MMAP_QSPI      (CONFIG_SYS_MBAR + 0x00000340)
+#define MMAP_DTMR0     (CONFIG_SYS_MBAR + 0x00000400)
+#define MMAP_DTMR1     (CONFIG_SYS_MBAR + 0x00000440)
+#define MMAP_DTMR2     (CONFIG_SYS_MBAR + 0x00000480)
+#define MMAP_DTMR3     (CONFIG_SYS_MBAR + 0x000004C0)
+#define MMAP_INTC0     (CONFIG_SYS_MBAR + 0x00000C00)
+#define MMAP_INTC1     (CONFIG_SYS_MBAR + 0x00000D00)
+#define MMAP_INTCACK   (CONFIG_SYS_MBAR + 0x00000F00)
+#define MMAP_FEC       (CONFIG_SYS_MBAR + 0x00001000)
+#define MMAP_FECFIFO   (CONFIG_SYS_MBAR + 0x00001400)
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x00100000)
+#define MMAP_CCM       (CONFIG_SYS_MBAR + 0x00110000)
+#define MMAP_PLL       (CONFIG_SYS_MBAR + 0x00120000)
+#define MMAP_EPORT     (CONFIG_SYS_MBAR + 0x00130000)
+#define MMAP_WDOG      (CONFIG_SYS_MBAR + 0x00140000)
+#define MMAP_PIT0      (CONFIG_SYS_MBAR + 0x00150000)
+#define MMAP_PIT1      (CONFIG_SYS_MBAR + 0x00160000)
+#define MMAP_PIT2      (CONFIG_SYS_MBAR + 0x00170000)
+#define MMAP_PIT3      (CONFIG_SYS_MBAR + 0x00180000)
+#define MMAP_MDHA      (CONFIG_SYS_MBAR + 0x00190000)
+#define MMAP_RNG       (CONFIG_SYS_MBAR + 0x001A0000)
+#define MMAP_SKHA      (CONFIG_SYS_MBAR + 0x001B0000)
+#define MMAP_CAN1      (CONFIG_SYS_MBAR + 0x001C0000)
+#define MMAP_ETPU      (CONFIG_SYS_MBAR + 0x001D0000)
+#define MMAP_CAN2      (CONFIG_SYS_MBAR + 0x001F0000)
 
 /* System Control Module register */
 typedef struct scm_ctrl {
index 6c6fbcce45dbc8f76d983329b0631895575a972e..6b57ba7a5ca18c28300f8fe866a398c94c540795 100644 (file)
 #ifndef __IMMAP_5249__
 #define __IMMAP_5249__
 
-#define MMAP_INTC              (CFG_MBAR + 0x00000040)
-#define MMAP_DTMR0             (CFG_MBAR + 0x00000140)
-#define MMAP_DTMR1             (CFG_MBAR + 0x00000180)
-#define MMAP_UART0             (CFG_MBAR + 0x000001C0)
-#define MMAP_UART1             (CFG_MBAR + 0x00000200)
-#define MMAP_QSPI              (CFG_MBAR + 0x00000400)
+#define MMAP_INTC              (CONFIG_SYS_MBAR + 0x00000040)
+#define MMAP_DTMR0             (CONFIG_SYS_MBAR + 0x00000140)
+#define MMAP_DTMR1             (CONFIG_SYS_MBAR + 0x00000180)
+#define MMAP_UART0             (CONFIG_SYS_MBAR + 0x000001C0)
+#define MMAP_UART1             (CONFIG_SYS_MBAR + 0x00000200)
+#define MMAP_QSPI              (CONFIG_SYS_MBAR + 0x00000400)
 
 #endif                         /* __IMMAP_5249__ */
index aafbdd095799595d13da88cb378133821b493447..4e3a481555b1953b83187952feac3cc853365b92 100644 (file)
 #ifndef __IMMAP_5249__
 #define __IMMAP_5249__
 
-#define MMAP_INTC              (CFG_MBAR + 0x00000040)
-#define MMAP_DTMR0             (CFG_MBAR + 0x00000140)
-#define MMAP_DTMR1             (CFG_MBAR + 0x00000180)
-#define MMAP_UART0             (CFG_MBAR + 0x000001C0)
-#define MMAP_UART1             (CFG_MBAR + 0x00000200)
-#define MMAP_I2C0              (CFG_MBAR + 0x00000280)
-#define MMAP_QSPI              (CFG_MBAR + 0x00000400)
-#define MMAP_CAN0              (CFG_MBAR + 0x00010000)
-#define MMAP_CAN1              (CFG_MBAR + 0x00011000)
+#define MMAP_INTC              (CONFIG_SYS_MBAR + 0x00000040)
+#define MMAP_DTMR0             (CONFIG_SYS_MBAR + 0x00000140)
+#define MMAP_DTMR1             (CONFIG_SYS_MBAR + 0x00000180)
+#define MMAP_UART0             (CONFIG_SYS_MBAR + 0x000001C0)
+#define MMAP_UART1             (CONFIG_SYS_MBAR + 0x00000200)
+#define MMAP_I2C0              (CONFIG_SYS_MBAR + 0x00000280)
+#define MMAP_QSPI              (CONFIG_SYS_MBAR + 0x00000400)
+#define MMAP_CAN0              (CONFIG_SYS_MBAR + 0x00010000)
+#define MMAP_CAN1              (CONFIG_SYS_MBAR + 0x00011000)
 
-#define MMAP_I2C1              (CFG_MBAR2 + 0x00000440)
-#define MMAP_UART2             (CFG_MBAR2 + 0x00000C00)
+#define MMAP_I2C1              (CONFIG_SYS_MBAR2 + 0x00000440)
+#define MMAP_UART2             (CONFIG_SYS_MBAR2 + 0x00000C00)
 
 /*********************************************************************
 * ATA Module (ATAC)
index d9dc01591457779413ff326f5050ced05ff3b531..462d5f2b448ac4b889f973ce999dc6df255a60ec 100644 (file)
 #ifndef __IMMAP_5271__
 #define __IMMAP_5271__
 
-#define MMAP_SCM       (CFG_MBAR + 0x00000000)
-#define MMAP_SDRAM     (CFG_MBAR + 0x00000040)
-#define MMAP_FBCS      (CFG_MBAR + 0x00000080)
-#define MMAP_DMA0      (CFG_MBAR + 0x00000100)
-#define MMAP_DMA1      (CFG_MBAR + 0x00000110)
-#define MMAP_DMA2      (CFG_MBAR + 0x00000120)
-#define MMAP_DMA3      (CFG_MBAR + 0x00000130)
-#define MMAP_UART0     (CFG_MBAR + 0x00000200)
-#define MMAP_UART1     (CFG_MBAR + 0x00000240)
-#define MMAP_UART2     (CFG_MBAR + 0x00000280)
-#define MMAP_I2C       (CFG_MBAR + 0x00000300)
-#define MMAP_QSPI      (CFG_MBAR + 0x00000340)
-#define MMAP_DTMR0     (CFG_MBAR + 0x00000400)
-#define MMAP_DTMR1     (CFG_MBAR + 0x00000440)
-#define MMAP_DTMR2     (CFG_MBAR + 0x00000480)
-#define MMAP_DTMR3     (CFG_MBAR + 0x000004C0)
-#define MMAP_INTC0     (CFG_MBAR + 0x00000C00)
-#define MMAP_INTC1     (CFG_MBAR + 0x00000D00)
-#define MMAP_INTCACK   (CFG_MBAR + 0x00000F00)
-#define MMAP_FEC       (CFG_MBAR + 0x00001000)
-#define MMAP_FECFIFO   (CFG_MBAR + 0x00001400)
-#define MMAP_GPIO      (CFG_MBAR + 0x00100000)
-#define MMAP_CCM       (CFG_MBAR + 0x00110000)
-#define MMAP_PLL       (CFG_MBAR + 0x00120000)
-#define MMAP_EPORT     (CFG_MBAR + 0x00130000)
-#define MMAP_WDOG      (CFG_MBAR + 0x00140000)
-#define MMAP_PIT0      (CFG_MBAR + 0x00150000)
-#define MMAP_PIT1      (CFG_MBAR + 0x00160000)
-#define MMAP_PIT2      (CFG_MBAR + 0x00170000)
-#define MMAP_PIT3      (CFG_MBAR + 0x00180000)
-#define MMAP_MDHA      (CFG_MBAR + 0x00190000)
-#define MMAP_RNG       (CFG_MBAR + 0x001A0000)
-#define MMAP_SKHA      (CFG_MBAR + 0x001B0000)
-#define MMAP_CAN1      (CFG_MBAR + 0x001C0000)
-#define MMAP_ETPU      (CFG_MBAR + 0x001D0000)
-#define MMAP_CAN2      (CFG_MBAR + 0x001F0000)
+#define MMAP_SCM       (CONFIG_SYS_MBAR + 0x00000000)
+#define MMAP_SDRAM     (CONFIG_SYS_MBAR + 0x00000040)
+#define MMAP_FBCS      (CONFIG_SYS_MBAR + 0x00000080)
+#define MMAP_DMA0      (CONFIG_SYS_MBAR + 0x00000100)
+#define MMAP_DMA1      (CONFIG_SYS_MBAR + 0x00000110)
+#define MMAP_DMA2      (CONFIG_SYS_MBAR + 0x00000120)
+#define MMAP_DMA3      (CONFIG_SYS_MBAR + 0x00000130)
+#define MMAP_UART0     (CONFIG_SYS_MBAR + 0x00000200)
+#define MMAP_UART1     (CONFIG_SYS_MBAR + 0x00000240)
+#define MMAP_UART2     (CONFIG_SYS_MBAR + 0x00000280)
+#define MMAP_I2C       (CONFIG_SYS_MBAR + 0x00000300)
+#define MMAP_QSPI      (CONFIG_SYS_MBAR + 0x00000340)
+#define MMAP_DTMR0     (CONFIG_SYS_MBAR + 0x00000400)
+#define MMAP_DTMR1     (CONFIG_SYS_MBAR + 0x00000440)
+#define MMAP_DTMR2     (CONFIG_SYS_MBAR + 0x00000480)
+#define MMAP_DTMR3     (CONFIG_SYS_MBAR + 0x000004C0)
+#define MMAP_INTC0     (CONFIG_SYS_MBAR + 0x00000C00)
+#define MMAP_INTC1     (CONFIG_SYS_MBAR + 0x00000D00)
+#define MMAP_INTCACK   (CONFIG_SYS_MBAR + 0x00000F00)
+#define MMAP_FEC       (CONFIG_SYS_MBAR + 0x00001000)
+#define MMAP_FECFIFO   (CONFIG_SYS_MBAR + 0x00001400)
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x00100000)
+#define MMAP_CCM       (CONFIG_SYS_MBAR + 0x00110000)
+#define MMAP_PLL       (CONFIG_SYS_MBAR + 0x00120000)
+#define MMAP_EPORT     (CONFIG_SYS_MBAR + 0x00130000)
+#define MMAP_WDOG      (CONFIG_SYS_MBAR + 0x00140000)
+#define MMAP_PIT0      (CONFIG_SYS_MBAR + 0x00150000)
+#define MMAP_PIT1      (CONFIG_SYS_MBAR + 0x00160000)
+#define MMAP_PIT2      (CONFIG_SYS_MBAR + 0x00170000)
+#define MMAP_PIT3      (CONFIG_SYS_MBAR + 0x00180000)
+#define MMAP_MDHA      (CONFIG_SYS_MBAR + 0x00190000)
+#define MMAP_RNG       (CONFIG_SYS_MBAR + 0x001A0000)
+#define MMAP_SKHA      (CONFIG_SYS_MBAR + 0x001B0000)
+#define MMAP_CAN1      (CONFIG_SYS_MBAR + 0x001C0000)
+#define MMAP_ETPU      (CONFIG_SYS_MBAR + 0x001D0000)
+#define MMAP_CAN2      (CONFIG_SYS_MBAR + 0x001F0000)
 
 /* Interrupt module registers */
 typedef struct int0_ctrl {
index 2ebb140b02d6544c166914a2373ac46d7f2c1219..b106289c03f86b0df329d03c116bed7eac50d491 100644 (file)
 #ifndef __IMMAP_5272__
 #define __IMMAP_5272__
 
-#define MMAP_CFG       (CFG_MBAR + 0x00000000)
-#define MMAP_INTC      (CFG_MBAR + 0x00000020)
-#define MMAP_FBCS      (CFG_MBAR + 0x00000040)
-#define MMAP_GPIO      (CFG_MBAR + 0x00000080)
-#define MMAP_QSPI      (CFG_MBAR + 0x000000A0)
-#define MMAP_PWM       (CFG_MBAR + 0x000000C0)
-#define MMAP_DMA0      (CFG_MBAR + 0x000000E0)
-#define MMAP_UART0     (CFG_MBAR + 0x00000100)
-#define MMAP_UART1     (CFG_MBAR + 0x00000140)
-#define MMAP_SDRAM     (CFG_MBAR + 0x00000180)
-#define MMAP_TMR0      (CFG_MBAR + 0x00000200)
-#define MMAP_TMR1      (CFG_MBAR + 0x00000220)
-#define MMAP_TMR2      (CFG_MBAR + 0x00000240)
-#define MMAP_TMR3      (CFG_MBAR + 0x00000260)
-#define MMAP_WDOG      (CFG_MBAR + 0x00000280)
-#define MMAP_PLIC      (CFG_MBAR + 0x00000300)
-#define MMAP_FEC       (CFG_MBAR + 0x00000840)
-#define MMAP_USB       (CFG_MBAR + 0x00001000)
+#define MMAP_CFG       (CONFIG_SYS_MBAR + 0x00000000)
+#define MMAP_INTC      (CONFIG_SYS_MBAR + 0x00000020)
+#define MMAP_FBCS      (CONFIG_SYS_MBAR + 0x00000040)
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x00000080)
+#define MMAP_QSPI      (CONFIG_SYS_MBAR + 0x000000A0)
+#define MMAP_PWM       (CONFIG_SYS_MBAR + 0x000000C0)
+#define MMAP_DMA0      (CONFIG_SYS_MBAR + 0x000000E0)
+#define MMAP_UART0     (CONFIG_SYS_MBAR + 0x00000100)
+#define MMAP_UART1     (CONFIG_SYS_MBAR + 0x00000140)
+#define MMAP_SDRAM     (CONFIG_SYS_MBAR + 0x00000180)
+#define MMAP_TMR0      (CONFIG_SYS_MBAR + 0x00000200)
+#define MMAP_TMR1      (CONFIG_SYS_MBAR + 0x00000220)
+#define MMAP_TMR2      (CONFIG_SYS_MBAR + 0x00000240)
+#define MMAP_TMR3      (CONFIG_SYS_MBAR + 0x00000260)
+#define MMAP_WDOG      (CONFIG_SYS_MBAR + 0x00000280)
+#define MMAP_PLIC      (CONFIG_SYS_MBAR + 0x00000300)
+#define MMAP_FEC       (CONFIG_SYS_MBAR + 0x00000840)
+#define MMAP_USB       (CONFIG_SYS_MBAR + 0x00001000)
 
 /* System configuration registers */
 typedef struct sys_ctrl {
index 774866e34fac270bd878d6b2f03ab7f2e5ee61ea..495010b139c816dcad1cddac2234df8aed0e8bfe 100644 (file)
 #ifndef __IMMAP_5275__
 #define __IMMAP_5275__
 
-#define MMAP_SCM       (CFG_MBAR + 0x00000000)
-#define MMAP_SDRAM     (CFG_MBAR + 0x00000040)
-#define MMAP_FBCS      (CFG_MBAR + 0x00000080)
-#define MMAP_DMA0      (CFG_MBAR + 0x00000100)
-#define MMAP_DMA1      (CFG_MBAR + 0x00000110)
-#define MMAP_DMA2      (CFG_MBAR + 0x00000120)
-#define MMAP_DMA3      (CFG_MBAR + 0x00000130)
-#define MMAP_UART0     (CFG_MBAR + 0x00000200)
-#define MMAP_UART1     (CFG_MBAR + 0x00000240)
-#define MMAP_UART2     (CFG_MBAR + 0x00000280)
-#define MMAP_I2C       (CFG_MBAR + 0x00000300)
-#define MMAP_QSPI      (CFG_MBAR + 0x00000340)
-#define MMAP_DTMR0     (CFG_MBAR + 0x00000400)
-#define MMAP_DTMR1     (CFG_MBAR + 0x00000440)
-#define MMAP_DTMR2     (CFG_MBAR + 0x00000480)
-#define MMAP_DTMR3     (CFG_MBAR + 0x000004C0)
-#define MMAP_INTC0     (CFG_MBAR + 0x00000C00)
-#define MMAP_INTC1     (CFG_MBAR + 0x00000D00)
-#define MMAP_INTCACK   (CFG_MBAR + 0x00000F00)
-#define MMAP_FEC0      (CFG_MBAR + 0x00001000)
-#define MMAP_FEC0FIFO  (CFG_MBAR + 0x00001400)
-#define MMAP_FEC1      (CFG_MBAR + 0x00001800)
-#define MMAP_FEC1FIFO  (CFG_MBAR + 0x00001C00)
-#define MMAP_GPIO      (CFG_MBAR + 0x00100000)
-#define MMAP_RCM       (CFG_MBAR + 0x00110000)
-#define MMAP_CCM       (CFG_MBAR + 0x00110004)
-#define MMAP_PLL       (CFG_MBAR + 0x00120000)
-#define MMAP_EPORT     (CFG_MBAR + 0x00130000)
-#define MMAP_WDOG      (CFG_MBAR + 0x00140000)
-#define MMAP_PIT0      (CFG_MBAR + 0x00150000)
-#define MMAP_PIT1      (CFG_MBAR + 0x00160000)
-#define MMAP_PIT2      (CFG_MBAR + 0x00170000)
-#define MMAP_PIT3      (CFG_MBAR + 0x00180000)
-#define MMAP_MDHA      (CFG_MBAR + 0x00190000)
-#define MMAP_RNG       (CFG_MBAR + 0x001A0000)
-#define MMAP_SKHA      (CFG_MBAR + 0x001B0000)
-#define MMAP_USB       (CFG_MBAR + 0x001C0000)
-#define MMAP_PWM0      (CFG_MBAR + 0x001D0000)
+#define MMAP_SCM       (CONFIG_SYS_MBAR + 0x00000000)
+#define MMAP_SDRAM     (CONFIG_SYS_MBAR + 0x00000040)
+#define MMAP_FBCS      (CONFIG_SYS_MBAR + 0x00000080)
+#define MMAP_DMA0      (CONFIG_SYS_MBAR + 0x00000100)
+#define MMAP_DMA1      (CONFIG_SYS_MBAR + 0x00000110)
+#define MMAP_DMA2      (CONFIG_SYS_MBAR + 0x00000120)
+#define MMAP_DMA3      (CONFIG_SYS_MBAR + 0x00000130)
+#define MMAP_UART0     (CONFIG_SYS_MBAR + 0x00000200)
+#define MMAP_UART1     (CONFIG_SYS_MBAR + 0x00000240)
+#define MMAP_UART2     (CONFIG_SYS_MBAR + 0x00000280)
+#define MMAP_I2C       (CONFIG_SYS_MBAR + 0x00000300)
+#define MMAP_QSPI      (CONFIG_SYS_MBAR + 0x00000340)
+#define MMAP_DTMR0     (CONFIG_SYS_MBAR + 0x00000400)
+#define MMAP_DTMR1     (CONFIG_SYS_MBAR + 0x00000440)
+#define MMAP_DTMR2     (CONFIG_SYS_MBAR + 0x00000480)
+#define MMAP_DTMR3     (CONFIG_SYS_MBAR + 0x000004C0)
+#define MMAP_INTC0     (CONFIG_SYS_MBAR + 0x00000C00)
+#define MMAP_INTC1     (CONFIG_SYS_MBAR + 0x00000D00)
+#define MMAP_INTCACK   (CONFIG_SYS_MBAR + 0x00000F00)
+#define MMAP_FEC0      (CONFIG_SYS_MBAR + 0x00001000)
+#define MMAP_FEC0FIFO  (CONFIG_SYS_MBAR + 0x00001400)
+#define MMAP_FEC1      (CONFIG_SYS_MBAR + 0x00001800)
+#define MMAP_FEC1FIFO  (CONFIG_SYS_MBAR + 0x00001C00)
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x00100000)
+#define MMAP_RCM       (CONFIG_SYS_MBAR + 0x00110000)
+#define MMAP_CCM       (CONFIG_SYS_MBAR + 0x00110004)
+#define MMAP_PLL       (CONFIG_SYS_MBAR + 0x00120000)
+#define MMAP_EPORT     (CONFIG_SYS_MBAR + 0x00130000)
+#define MMAP_WDOG      (CONFIG_SYS_MBAR + 0x00140000)
+#define MMAP_PIT0      (CONFIG_SYS_MBAR + 0x00150000)
+#define MMAP_PIT1      (CONFIG_SYS_MBAR + 0x00160000)
+#define MMAP_PIT2      (CONFIG_SYS_MBAR + 0x00170000)
+#define MMAP_PIT3      (CONFIG_SYS_MBAR + 0x00180000)
+#define MMAP_MDHA      (CONFIG_SYS_MBAR + 0x00190000)
+#define MMAP_RNG       (CONFIG_SYS_MBAR + 0x001A0000)
+#define MMAP_SKHA      (CONFIG_SYS_MBAR + 0x001B0000)
+#define MMAP_USB       (CONFIG_SYS_MBAR + 0x001C0000)
+#define MMAP_PWM0      (CONFIG_SYS_MBAR + 0x001D0000)
 
 /* System configuration registers
 */
index e82960ac020ad4195b3d7bc0276ec75885a95f98..e96463be432cc79e6a8ca81a88a15e502085398c 100644 (file)
 #ifndef __IMMAP_5282__
 #define __IMMAP_5282__
 
-#define MMAP_SCM       (CFG_MBAR + 0x00000000)
-#define MMAP_SDRAMC    (CFG_MBAR + 0x00000040)
-#define MMAP_FBCS      (CFG_MBAR + 0x00000080)
-#define MMAP_DMA0      (CFG_MBAR + 0x00000100)
-#define MMAP_DMA1      (CFG_MBAR + 0x00000140)
-#define MMAP_DMA2      (CFG_MBAR + 0x00000180)
-#define MMAP_DMA3      (CFG_MBAR + 0x000001C0)
-#define MMAP_UART0     (CFG_MBAR + 0x00000200)
-#define MMAP_UART1     (CFG_MBAR + 0x00000240)
-#define MMAP_UART2     (CFG_MBAR + 0x00000280)
-#define MMAP_I2C       (CFG_MBAR + 0x00000300)
-#define MMAP_QSPI      (CFG_MBAR + 0x00000340)
-#define MMAP_DTMR0     (CFG_MBAR + 0x00000400)
-#define MMAP_DTMR1     (CFG_MBAR + 0x00000440)
-#define MMAP_DTMR2     (CFG_MBAR + 0x00000480)
-#define MMAP_DTMR3     (CFG_MBAR + 0x000004C0)
-#define MMAP_INTC0     (CFG_MBAR + 0x00000C00)
-#define MMAP_INTC1     (CFG_MBAR + 0x00000D00)
-#define MMAP_INTCACK   (CFG_MBAR + 0x00000F00)
-#define MMAP_FEC       (CFG_MBAR + 0x00001000)
-#define MMAP_FECFIFO   (CFG_MBAR + 0x00001400)
-#define MMAP_GPIO      (CFG_MBAR + 0x00100000)
-#define MMAP_CCM       (CFG_MBAR + 0x00110000)
-#define MMAP_PLL       (CFG_MBAR + 0x00120000)
-#define MMAP_EPORT     (CFG_MBAR + 0x00130000)
-#define MMAP_WDOG      (CFG_MBAR + 0x00140000)
-#define MMAP_PIT0      (CFG_MBAR + 0x00150000)
-#define MMAP_PIT1      (CFG_MBAR + 0x00160000)
-#define MMAP_PIT2      (CFG_MBAR + 0x00170000)
-#define MMAP_PIT3      (CFG_MBAR + 0x00180000)
-#define MMAP_QADC      (CFG_MBAR + 0x00190000)
-#define MMAP_GPTMRA    (CFG_MBAR + 0x001A0000)
-#define MMAP_GPTMRB    (CFG_MBAR + 0x001B0000)
-#define MMAP_CAN       (CFG_MBAR + 0x001C0000)
-#define MMAP_CFMC      (CFG_MBAR + 0x001D0000)
-#define MMAP_CFMMEM    (CFG_MBAR + 0x04000000)
+#define MMAP_SCM       (CONFIG_SYS_MBAR + 0x00000000)
+#define MMAP_SDRAMC    (CONFIG_SYS_MBAR + 0x00000040)
+#define MMAP_FBCS      (CONFIG_SYS_MBAR + 0x00000080)
+#define MMAP_DMA0      (CONFIG_SYS_MBAR + 0x00000100)
+#define MMAP_DMA1      (CONFIG_SYS_MBAR + 0x00000140)
+#define MMAP_DMA2      (CONFIG_SYS_MBAR + 0x00000180)
+#define MMAP_DMA3      (CONFIG_SYS_MBAR + 0x000001C0)
+#define MMAP_UART0     (CONFIG_SYS_MBAR + 0x00000200)
+#define MMAP_UART1     (CONFIG_SYS_MBAR + 0x00000240)
+#define MMAP_UART2     (CONFIG_SYS_MBAR + 0x00000280)
+#define MMAP_I2C       (CONFIG_SYS_MBAR + 0x00000300)
+#define MMAP_QSPI      (CONFIG_SYS_MBAR + 0x00000340)
+#define MMAP_DTMR0     (CONFIG_SYS_MBAR + 0x00000400)
+#define MMAP_DTMR1     (CONFIG_SYS_MBAR + 0x00000440)
+#define MMAP_DTMR2     (CONFIG_SYS_MBAR + 0x00000480)
+#define MMAP_DTMR3     (CONFIG_SYS_MBAR + 0x000004C0)
+#define MMAP_INTC0     (CONFIG_SYS_MBAR + 0x00000C00)
+#define MMAP_INTC1     (CONFIG_SYS_MBAR + 0x00000D00)
+#define MMAP_INTCACK   (CONFIG_SYS_MBAR + 0x00000F00)
+#define MMAP_FEC       (CONFIG_SYS_MBAR + 0x00001000)
+#define MMAP_FECFIFO   (CONFIG_SYS_MBAR + 0x00001400)
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x00100000)
+#define MMAP_CCM       (CONFIG_SYS_MBAR + 0x00110000)
+#define MMAP_PLL       (CONFIG_SYS_MBAR + 0x00120000)
+#define MMAP_EPORT     (CONFIG_SYS_MBAR + 0x00130000)
+#define MMAP_WDOG      (CONFIG_SYS_MBAR + 0x00140000)
+#define MMAP_PIT0      (CONFIG_SYS_MBAR + 0x00150000)
+#define MMAP_PIT1      (CONFIG_SYS_MBAR + 0x00160000)
+#define MMAP_PIT2      (CONFIG_SYS_MBAR + 0x00170000)
+#define MMAP_PIT3      (CONFIG_SYS_MBAR + 0x00180000)
+#define MMAP_QADC      (CONFIG_SYS_MBAR + 0x00190000)
+#define MMAP_GPTMRA    (CONFIG_SYS_MBAR + 0x001A0000)
+#define MMAP_GPTMRB    (CONFIG_SYS_MBAR + 0x001B0000)
+#define MMAP_CAN       (CONFIG_SYS_MBAR + 0x001C0000)
+#define MMAP_CFMC      (CONFIG_SYS_MBAR + 0x001D0000)
+#define MMAP_CFMMEM    (CONFIG_SYS_MBAR + 0x04000000)
 
 /* System Control Module */
 typedef struct scm_ctrl {
index 54ef40f517c4a88c2154ca4849253c0e3e07994e..c2219361d2786b203214c2b051951070d1a8340d 100644 (file)
 #ifndef __IMMAP_547x_8x__
 #define __IMMAP_547x_8x__
 
-#define MMAP_SIU       (CFG_MBAR + 0x00000000)
-#define MMAP_SDRAM     (CFG_MBAR + 0x00000100)
-#define MMAP_XARB      (CFG_MBAR + 0x00000240)
-#define MMAP_FBCS      (CFG_MBAR + 0x00000500)
-#define MMAP_INTC0     (CFG_MBAR + 0x00000700)
-#define MMAP_GPTMR     (CFG_MBAR + 0x00000800)
-#define MMAP_SLT0      (CFG_MBAR + 0x00000900)
-#define MMAP_SLT1      (CFG_MBAR + 0x00000910)
-#define MMAP_GPIO      (CFG_MBAR + 0x00000A00)
-#define MMAP_PCI       (CFG_MBAR + 0x00000B00)
-#define MMAP_PCIARB    (CFG_MBAR + 0x00000C00)
-#define MMAP_EXTDMA    (CFG_MBAR + 0x00000D00)
-#define MMAP_EPORT     (CFG_MBAR + 0x00000F00)
-#define MMAP_CTM       (CFG_MBAR + 0x00007F00)
-#define MMAP_MCDMA     (CFG_MBAR + 0x00008000)
-#define MMAP_SCPCI     (CFG_MBAR + 0x00008400)
-#define MMAP_UART0     (CFG_MBAR + 0x00008600)
-#define MMAP_UART1     (CFG_MBAR + 0x00008700)
-#define MMAP_UART2     (CFG_MBAR + 0x00008800)
-#define MMAP_UART3     (CFG_MBAR + 0x00008900)
-#define MMAP_DSPI      (CFG_MBAR + 0x00008A00)
-#define MMAP_I2C       (CFG_MBAR + 0x00008F00)
-#define MMAP_FEC0      (CFG_MBAR + 0x00009000)
-#define MMAP_FEC1      (CFG_MBAR + 0x00009800)
-#define MMAP_CAN0      (CFG_MBAR + 0x0000A000)
-#define MMAP_CAN1      (CFG_MBAR + 0x0000A800)
-#define MMAP_USBD      (CFG_MBAR + 0x0000B000)
-#define MMAP_SRAM      (CFG_MBAR + 0x00010000)
-#define MMAP_SRAMCFG   (CFG_MBAR + 0x0001FF00)
-#define MMAP_SEC       (CFG_MBAR + 0x00020000)
+#define MMAP_SIU       (CONFIG_SYS_MBAR + 0x00000000)
+#define MMAP_SDRAM     (CONFIG_SYS_MBAR + 0x00000100)
+#define MMAP_XARB      (CONFIG_SYS_MBAR + 0x00000240)
+#define MMAP_FBCS      (CONFIG_SYS_MBAR + 0x00000500)
+#define MMAP_INTC0     (CONFIG_SYS_MBAR + 0x00000700)
+#define MMAP_GPTMR     (CONFIG_SYS_MBAR + 0x00000800)
+#define MMAP_SLT0      (CONFIG_SYS_MBAR + 0x00000900)
+#define MMAP_SLT1      (CONFIG_SYS_MBAR + 0x00000910)
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x00000A00)
+#define MMAP_PCI       (CONFIG_SYS_MBAR + 0x00000B00)
+#define MMAP_PCIARB    (CONFIG_SYS_MBAR + 0x00000C00)
+#define MMAP_EXTDMA    (CONFIG_SYS_MBAR + 0x00000D00)
+#define MMAP_EPORT     (CONFIG_SYS_MBAR + 0x00000F00)
+#define MMAP_CTM       (CONFIG_SYS_MBAR + 0x00007F00)
+#define MMAP_MCDMA     (CONFIG_SYS_MBAR + 0x00008000)
+#define MMAP_SCPCI     (CONFIG_SYS_MBAR + 0x00008400)
+#define MMAP_UART0     (CONFIG_SYS_MBAR + 0x00008600)
+#define MMAP_UART1     (CONFIG_SYS_MBAR + 0x00008700)
+#define MMAP_UART2     (CONFIG_SYS_MBAR + 0x00008800)
+#define MMAP_UART3     (CONFIG_SYS_MBAR + 0x00008900)
+#define MMAP_DSPI      (CONFIG_SYS_MBAR + 0x00008A00)
+#define MMAP_I2C       (CONFIG_SYS_MBAR + 0x00008F00)
+#define MMAP_FEC0      (CONFIG_SYS_MBAR + 0x00009000)
+#define MMAP_FEC1      (CONFIG_SYS_MBAR + 0x00009800)
+#define MMAP_CAN0      (CONFIG_SYS_MBAR + 0x0000A000)
+#define MMAP_CAN1      (CONFIG_SYS_MBAR + 0x0000A800)
+#define MMAP_USBD      (CONFIG_SYS_MBAR + 0x0000B000)
+#define MMAP_SRAM      (CONFIG_SYS_MBAR + 0x00010000)
+#define MMAP_SRAMCFG   (CONFIG_SYS_MBAR + 0x0001FF00)
+#define MMAP_SEC       (CONFIG_SYS_MBAR + 0x00020000)
 
 #include <asm/coldfire/flexbus.h>
 
index facf0c90903cb4de2ca02051028fb957701dd05e..feb675c41bd5e0ba06f2394a61fc6ac34119b945 100644 (file)
 /*
  * useful definitions for reading/writing MBAR offset memory
  */
-#define mbar_readLong(x)       *((volatile unsigned long *) (CFG_MBAR + x))
-#define mbar_writeLong(x,y)    *((volatile unsigned long *) (CFG_MBAR + x)) = y
-#define mbar_writeShort(x,y)   *((volatile unsigned short *) (CFG_MBAR + x)) = y
-#define mbar_writeByte(x,y)    *((volatile unsigned char *) (CFG_MBAR + x)) = y
-#define mbar2_readLong(x)      *((volatile unsigned long *) (CFG_MBAR2 + x))
-#define mbar2_writeLong(x,y)   *((volatile unsigned long *) (CFG_MBAR2 + x)) = y
-#define mbar2_writeShort(x,y)  *((volatile unsigned short *) (CFG_MBAR2 + x)) = y
-#define mbar2_writeByte(x,y)   *((volatile unsigned char *) (CFG_MBAR2 + x)) = y
+#define mbar_readLong(x)       *((volatile unsigned long *) (CONFIG_SYS_MBAR + x))
+#define mbar_writeLong(x,y)    *((volatile unsigned long *) (CONFIG_SYS_MBAR + x)) = y
+#define mbar_writeShort(x,y)   *((volatile unsigned short *) (CONFIG_SYS_MBAR + x)) = y
+#define mbar_writeByte(x,y)    *((volatile unsigned char *) (CONFIG_SYS_MBAR + x)) = y
+#define mbar2_readLong(x)      *((volatile unsigned long *) (CONFIG_SYS_MBAR2 + x))
+#define mbar2_writeLong(x,y)   *((volatile unsigned long *) (CONFIG_SYS_MBAR2 + x)) = y
+#define mbar2_writeShort(x,y)  *((volatile unsigned short *) (CONFIG_SYS_MBAR2 + x)) = y
+#define mbar2_writeByte(x,y)   *((volatile unsigned char *) (CONFIG_SYS_MBAR2 + x)) = y
 
 /*
  * Size of internal RAM
index be343987f28c6bd8ec45568cbec84daf1d89bd91..000f0a5e97a0dfb2d6d027a08be4cc87e7029711 100644 (file)
 #ifndef        _MCF5271_H_
 #define        _MCF5271_H_
 
-#define mbar_readLong(x)       *((volatile unsigned long *) (CFG_MBAR + x))
-#define mbar_readShort(x)      *((volatile unsigned short *) (CFG_MBAR + x))
-#define mbar_readByte(x)       *((volatile unsigned char *) (CFG_MBAR + x))
-#define mbar_writeLong(x,y)    *((volatile unsigned long *) (CFG_MBAR + x)) = y
-#define mbar_writeShort(x,y)   *((volatile unsigned short *) (CFG_MBAR + x)) = y
-#define mbar_writeByte(x,y)    *((volatile unsigned char *) (CFG_MBAR + x)) = y
+#define mbar_readLong(x)       *((volatile unsigned long *) (CONFIG_SYS_MBAR + x))
+#define mbar_readShort(x)      *((volatile unsigned short *) (CONFIG_SYS_MBAR + x))
+#define mbar_readByte(x)       *((volatile unsigned char *) (CONFIG_SYS_MBAR + x))
+#define mbar_writeLong(x,y)    *((volatile unsigned long *) (CONFIG_SYS_MBAR + x)) = y
+#define mbar_writeShort(x,y)   *((volatile unsigned short *) (CONFIG_SYS_MBAR + x)) = y
+#define mbar_writeByte(x,y)    *((volatile unsigned char *) (CONFIG_SYS_MBAR + x)) = y
 
 #define MCF_FMPLL_SYNCR                                0x120000
 #define MCF_FMPLL_SYNSR                                0x120004
index f6a6b0408f0c669a79ae5175b721ec374244e523..772c7e0e5e51143206c2d50b500b302fe5e7dbf3 100644 (file)
 
 /* General Purpose I/O Module GPIO */
 
-#define MCFGPIO_PORTA          (*(vu_char *) (CFG_MBAR+0x100000))
-#define MCFGPIO_PORTB          (*(vu_char *) (CFG_MBAR+0x100001))
-#define MCFGPIO_PORTC          (*(vu_char *) (CFG_MBAR+0x100002))
-#define MCFGPIO_PORTD          (*(vu_char *) (CFG_MBAR+0x100003))
-#define MCFGPIO_PORTE          (*(vu_char *) (CFG_MBAR+0x100004))
-#define MCFGPIO_PORTF          (*(vu_char *) (CFG_MBAR+0x100005))
-#define MCFGPIO_PORTG          (*(vu_char *) (CFG_MBAR+0x100006))
-#define MCFGPIO_PORTH          (*(vu_char *) (CFG_MBAR+0x100007))
-#define MCFGPIO_PORTJ          (*(vu_char *) (CFG_MBAR+0x100008))
-#define MCFGPIO_PORTDD         (*(vu_char *) (CFG_MBAR+0x100009))
-#define MCFGPIO_PORTEH         (*(vu_char *) (CFG_MBAR+0x10000A))
-#define MCFGPIO_PORTEL         (*(vu_char *) (CFG_MBAR+0x10000B))
-#define MCFGPIO_PORTAS         (*(vu_char *) (CFG_MBAR+0x10000C))
-#define MCFGPIO_PORTQS         (*(vu_char *) (CFG_MBAR+0x10000D))
-#define MCFGPIO_PORTSD         (*(vu_char *) (CFG_MBAR+0x10000E))
-#define MCFGPIO_PORTTC         (*(vu_char *) (CFG_MBAR+0x10000F))
-#define MCFGPIO_PORTTD         (*(vu_char *) (CFG_MBAR+0x100010))
-#define MCFGPIO_PORTUA         (*(vu_char *) (CFG_MBAR+0x100011))
-
-#define MCFGPIO_DDRA           (*(vu_char *) (CFG_MBAR+0x100014))
-#define MCFGPIO_DDRB           (*(vu_char *) (CFG_MBAR+0x100015))
-#define MCFGPIO_DDRC           (*(vu_char *) (CFG_MBAR+0x100016))
-#define MCFGPIO_DDRD           (*(vu_char *) (CFG_MBAR+0x100017))
-#define MCFGPIO_DDRE           (*(vu_char *) (CFG_MBAR+0x100018))
-#define MCFGPIO_DDRF           (*(vu_char *) (CFG_MBAR+0x100019))
-#define MCFGPIO_DDRG           (*(vu_char *) (CFG_MBAR+0x10001A))
-#define MCFGPIO_DDRH           (*(vu_char *) (CFG_MBAR+0x10001B))
-#define MCFGPIO_DDRJ           (*(vu_char *) (CFG_MBAR+0x10001C))
-#define MCFGPIO_DDRDD          (*(vu_char *) (CFG_MBAR+0x10001D))
-#define MCFGPIO_DDREH          (*(vu_char *) (CFG_MBAR+0x10001E))
-#define MCFGPIO_DDREL          (*(vu_char *) (CFG_MBAR+0x10001F))
-#define MCFGPIO_DDRAS          (*(vu_char *) (CFG_MBAR+0x100020))
-#define MCFGPIO_DDRQS          (*(vu_char *) (CFG_MBAR+0x100021))
-#define MCFGPIO_DDRSD          (*(vu_char *) (CFG_MBAR+0x100022))
-#define MCFGPIO_DDRTC          (*(vu_char *) (CFG_MBAR+0x100023))
-#define MCFGPIO_DDRTD          (*(vu_char *) (CFG_MBAR+0x100024))
-#define MCFGPIO_DDRUA          (*(vu_char *) (CFG_MBAR+0x100025))
-
-#define MCFGPIO_PORTAP         (*(vu_char *) (CFG_MBAR+0x100028))
-#define MCFGPIO_PORTBP         (*(vu_char *) (CFG_MBAR+0x100029))
-#define MCFGPIO_PORTCP         (*(vu_char *) (CFG_MBAR+0x10002A))
-#define MCFGPIO_PORTDP         (*(vu_char *) (CFG_MBAR+0x10002B))
-#define MCFGPIO_PORTEP         (*(vu_char *) (CFG_MBAR+0x10002C))
-#define MCFGPIO_PORTFP         (*(vu_char *) (CFG_MBAR+0x10002D))
-#define MCFGPIO_PORTGP         (*(vu_char *) (CFG_MBAR+0x10002E))
-#define MCFGPIO_PORTHP         (*(vu_char *) (CFG_MBAR+0x10002F))
-#define MCFGPIO_PORTJP         (*(vu_char *) (CFG_MBAR+0x100030))
-#define MCFGPIO_PORTDDP                (*(vu_char *) (CFG_MBAR+0x100031))
-#define MCFGPIO_PORTEHP                (*(vu_char *) (CFG_MBAR+0x100032))
-#define MCFGPIO_PORTELP                (*(vu_char *) (CFG_MBAR+0x100033))
-#define MCFGPIO_PORTASP                (*(vu_char *) (CFG_MBAR+0x100034))
-#define MCFGPIO_PORTQSP                (*(vu_char *) (CFG_MBAR+0x100035))
-#define MCFGPIO_PORTSDP                (*(vu_char *) (CFG_MBAR+0x100036))
-#define MCFGPIO_PORTTCP                (*(vu_char *) (CFG_MBAR+0x100037))
-#define MCFGPIO_PORTTDP                (*(vu_char *) (CFG_MBAR+0x100038))
-#define MCFGPIO_PORTUAP                (*(vu_char *) (CFG_MBAR+0x100039))
-
-#define MCFGPIO_SETA           (*(vu_char *) (CFG_MBAR+0x100028))
-#define MCFGPIO_SETB           (*(vu_char *) (CFG_MBAR+0x100029))
-#define MCFGPIO_SETC           (*(vu_char *) (CFG_MBAR+0x10002A))
-#define MCFGPIO_SETD           (*(vu_char *) (CFG_MBAR+0x10002B))
-#define MCFGPIO_SETE           (*(vu_char *) (CFG_MBAR+0x10002C))
-#define MCFGPIO_SETF           (*(vu_char *) (CFG_MBAR+0x10002D))
-#define MCFGPIO_SETG           (*(vu_char *) (CFG_MBAR+0x10002E))
-#define MCFGPIO_SETH           (*(vu_char *) (CFG_MBAR+0x10002F))
-#define MCFGPIO_SETJ           (*(vu_char *) (CFG_MBAR+0x100030))
-#define MCFGPIO_SETDD          (*(vu_char *) (CFG_MBAR+0x100031))
-#define MCFGPIO_SETEH          (*(vu_char *) (CFG_MBAR+0x100032))
-#define MCFGPIO_SETEL          (*(vu_char *) (CFG_MBAR+0x100033))
-#define MCFGPIO_SETAS          (*(vu_char *) (CFG_MBAR+0x100034))
-#define MCFGPIO_SETQS          (*(vu_char *) (CFG_MBAR+0x100035))
-#define MCFGPIO_SETSD          (*(vu_char *) (CFG_MBAR+0x100036))
-#define MCFGPIO_SETTC          (*(vu_char *) (CFG_MBAR+0x100037))
-#define MCFGPIO_SETTD          (*(vu_char *) (CFG_MBAR+0x100038))
-#define MCFGPIO_SETUA          (*(vu_char *) (CFG_MBAR+0x100039))
-
-#define MCFGPIO_CLRA           (*(vu_char *) (CFG_MBAR+0x10003C))
-#define MCFGPIO_CLRB           (*(vu_char *) (CFG_MBAR+0x10003D))
-#define MCFGPIO_CLRC           (*(vu_char *) (CFG_MBAR+0x10003E))
-#define MCFGPIO_CLRD           (*(vu_char *) (CFG_MBAR+0x10003F))
-#define MCFGPIO_CLRE           (*(vu_char *) (CFG_MBAR+0x100040))
-#define MCFGPIO_CLRF           (*(vu_char *) (CFG_MBAR+0x100041))
-#define MCFGPIO_CLRG           (*(vu_char *) (CFG_MBAR+0x100042))
-#define MCFGPIO_CLRH           (*(vu_char *) (CFG_MBAR+0x100043))
-#define MCFGPIO_CLRJ           (*(vu_char *) (CFG_MBAR+0x100044))
-#define MCFGPIO_CLRDD          (*(vu_char *) (CFG_MBAR+0x100045))
-#define MCFGPIO_CLREH          (*(vu_char *) (CFG_MBAR+0x100046))
-#define MCFGPIO_CLREL          (*(vu_char *) (CFG_MBAR+0x100047))
-#define MCFGPIO_CLRAS          (*(vu_char *) (CFG_MBAR+0x100048))
-#define MCFGPIO_CLRQS          (*(vu_char *) (CFG_MBAR+0x100049))
-#define MCFGPIO_CLRSD          (*(vu_char *) (CFG_MBAR+0x10004A))
-#define MCFGPIO_CLRTC          (*(vu_char *) (CFG_MBAR+0x10004B))
-#define MCFGPIO_CLRTD          (*(vu_char *) (CFG_MBAR+0x10004C))
-#define MCFGPIO_CLRUA          (*(vu_char *) (CFG_MBAR+0x10004D))
-
-#define MCFGPIO_PBCDPAR        (*(vu_char *) (CFG_MBAR+0x100050))
-#define MCFGPIO_PFPAR          (*(vu_char *) (CFG_MBAR+0x100051))
-#define MCFGPIO_PEPAR          (*(vu_short *)(CFG_MBAR+0x100052))
-#define MCFGPIO_PJPAR          (*(vu_char *) (CFG_MBAR+0x100054))
-#define MCFGPIO_PSDPAR         (*(vu_char *) (CFG_MBAR+0x100055))
-#define MCFGPIO_PASPAR         (*(vu_short *)(CFG_MBAR+0x100056))
-#define MCFGPIO_PEHLPAR                (*(vu_char *) (CFG_MBAR+0x100058))
-#define MCFGPIO_PQSPAR         (*(vu_char *) (CFG_MBAR+0x100059))
-#define MCFGPIO_PTCPAR         (*(vu_char *) (CFG_MBAR+0x10005A))
-#define MCFGPIO_PTDPAR         (*(vu_char *) (CFG_MBAR+0x10005B))
-#define MCFGPIO_PUAPAR         (*(vu_char *) (CFG_MBAR+0x10005C))
+#define MCFGPIO_PORTA          (*(vu_char *) (CONFIG_SYS_MBAR+0x100000))
+#define MCFGPIO_PORTB          (*(vu_char *) (CONFIG_SYS_MBAR+0x100001))
+#define MCFGPIO_PORTC          (*(vu_char *) (CONFIG_SYS_MBAR+0x100002))
+#define MCFGPIO_PORTD          (*(vu_char *) (CONFIG_SYS_MBAR+0x100003))
+#define MCFGPIO_PORTE          (*(vu_char *) (CONFIG_SYS_MBAR+0x100004))
+#define MCFGPIO_PORTF          (*(vu_char *) (CONFIG_SYS_MBAR+0x100005))
+#define MCFGPIO_PORTG          (*(vu_char *) (CONFIG_SYS_MBAR+0x100006))
+#define MCFGPIO_PORTH          (*(vu_char *) (CONFIG_SYS_MBAR+0x100007))
+#define MCFGPIO_PORTJ          (*(vu_char *) (CONFIG_SYS_MBAR+0x100008))
+#define MCFGPIO_PORTDD         (*(vu_char *) (CONFIG_SYS_MBAR+0x100009))
+#define MCFGPIO_PORTEH         (*(vu_char *) (CONFIG_SYS_MBAR+0x10000A))
+#define MCFGPIO_PORTEL         (*(vu_char *) (CONFIG_SYS_MBAR+0x10000B))
+#define MCFGPIO_PORTAS         (*(vu_char *) (CONFIG_SYS_MBAR+0x10000C))
+#define MCFGPIO_PORTQS         (*(vu_char *) (CONFIG_SYS_MBAR+0x10000D))
+#define MCFGPIO_PORTSD         (*(vu_char *) (CONFIG_SYS_MBAR+0x10000E))
+#define MCFGPIO_PORTTC         (*(vu_char *) (CONFIG_SYS_MBAR+0x10000F))
+#define MCFGPIO_PORTTD         (*(vu_char *) (CONFIG_SYS_MBAR+0x100010))
+#define MCFGPIO_PORTUA         (*(vu_char *) (CONFIG_SYS_MBAR+0x100011))
+
+#define MCFGPIO_DDRA           (*(vu_char *) (CONFIG_SYS_MBAR+0x100014))
+#define MCFGPIO_DDRB           (*(vu_char *) (CONFIG_SYS_MBAR+0x100015))
+#define MCFGPIO_DDRC           (*(vu_char *) (CONFIG_SYS_MBAR+0x100016))
+#define MCFGPIO_DDRD           (*(vu_char *) (CONFIG_SYS_MBAR+0x100017))
+#define MCFGPIO_DDRE           (*(vu_char *) (CONFIG_SYS_MBAR+0x100018))
+#define MCFGPIO_DDRF           (*(vu_char *) (CONFIG_SYS_MBAR+0x100019))
+#define MCFGPIO_DDRG           (*(vu_char *) (CONFIG_SYS_MBAR+0x10001A))
+#define MCFGPIO_DDRH           (*(vu_char *) (CONFIG_SYS_MBAR+0x10001B))
+#define MCFGPIO_DDRJ           (*(vu_char *) (CONFIG_SYS_MBAR+0x10001C))
+#define MCFGPIO_DDRDD          (*(vu_char *) (CONFIG_SYS_MBAR+0x10001D))
+#define MCFGPIO_DDREH          (*(vu_char *) (CONFIG_SYS_MBAR+0x10001E))
+#define MCFGPIO_DDREL          (*(vu_char *) (CONFIG_SYS_MBAR+0x10001F))
+#define MCFGPIO_DDRAS          (*(vu_char *) (CONFIG_SYS_MBAR+0x100020))
+#define MCFGPIO_DDRQS          (*(vu_char *) (CONFIG_SYS_MBAR+0x100021))
+#define MCFGPIO_DDRSD          (*(vu_char *) (CONFIG_SYS_MBAR+0x100022))
+#define MCFGPIO_DDRTC          (*(vu_char *) (CONFIG_SYS_MBAR+0x100023))
+#define MCFGPIO_DDRTD          (*(vu_char *) (CONFIG_SYS_MBAR+0x100024))
+#define MCFGPIO_DDRUA          (*(vu_char *) (CONFIG_SYS_MBAR+0x100025))
+
+#define MCFGPIO_PORTAP         (*(vu_char *) (CONFIG_SYS_MBAR+0x100028))
+#define MCFGPIO_PORTBP         (*(vu_char *) (CONFIG_SYS_MBAR+0x100029))
+#define MCFGPIO_PORTCP         (*(vu_char *) (CONFIG_SYS_MBAR+0x10002A))
+#define MCFGPIO_PORTDP         (*(vu_char *) (CONFIG_SYS_MBAR+0x10002B))
+#define MCFGPIO_PORTEP         (*(vu_char *) (CONFIG_SYS_MBAR+0x10002C))
+#define MCFGPIO_PORTFP         (*(vu_char *) (CONFIG_SYS_MBAR+0x10002D))
+#define MCFGPIO_PORTGP         (*(vu_char *) (CONFIG_SYS_MBAR+0x10002E))
+#define MCFGPIO_PORTHP         (*(vu_char *) (CONFIG_SYS_MBAR+0x10002F))
+#define MCFGPIO_PORTJP         (*(vu_char *) (CONFIG_SYS_MBAR+0x100030))
+#define MCFGPIO_PORTDDP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100031))
+#define MCFGPIO_PORTEHP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100032))
+#define MCFGPIO_PORTELP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100033))
+#define MCFGPIO_PORTASP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100034))
+#define MCFGPIO_PORTQSP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100035))
+#define MCFGPIO_PORTSDP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100036))
+#define MCFGPIO_PORTTCP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100037))
+#define MCFGPIO_PORTTDP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100038))
+#define MCFGPIO_PORTUAP                (*(vu_char *) (CONFIG_SYS_MBAR+0x100039))
+
+#define MCFGPIO_SETA           (*(vu_char *) (CONFIG_SYS_MBAR+0x100028))
+#define MCFGPIO_SETB           (*(vu_char *) (CONFIG_SYS_MBAR+0x100029))
+#define MCFGPIO_SETC           (*(vu_char *) (CONFIG_SYS_MBAR+0x10002A))
+#define MCFGPIO_SETD           (*(vu_char *) (CONFIG_SYS_MBAR+0x10002B))
+#define MCFGPIO_SETE           (*(vu_char *) (CONFIG_SYS_MBAR+0x10002C))
+#define MCFGPIO_SETF           (*(vu_char *) (CONFIG_SYS_MBAR+0x10002D))
+#define MCFGPIO_SETG           (*(vu_char *) (CONFIG_SYS_MBAR+0x10002E))
+#define MCFGPIO_SETH           (*(vu_char *) (CONFIG_SYS_MBAR+0x10002F))
+#define MCFGPIO_SETJ           (*(vu_char *) (CONFIG_SYS_MBAR+0x100030))
+#define MCFGPIO_SETDD          (*(vu_char *) (CONFIG_SYS_MBAR+0x100031))
+#define MCFGPIO_SETEH          (*(vu_char *) (CONFIG_SYS_MBAR+0x100032))
+#define MCFGPIO_SETEL          (*(vu_char *) (CONFIG_SYS_MBAR+0x100033))
+#define MCFGPIO_SETAS          (*(vu_char *) (CONFIG_SYS_MBAR+0x100034))
+#define MCFGPIO_SETQS          (*(vu_char *) (CONFIG_SYS_MBAR+0x100035))
+#define MCFGPIO_SETSD          (*(vu_char *) (CONFIG_SYS_MBAR+0x100036))
+#define MCFGPIO_SETTC          (*(vu_char *) (CONFIG_SYS_MBAR+0x100037))
+#define MCFGPIO_SETTD          (*(vu_char *) (CONFIG_SYS_MBAR+0x100038))
+#define MCFGPIO_SETUA          (*(vu_char *) (CONFIG_SYS_MBAR+0x100039))
+
+#define MCFGPIO_CLRA           (*(vu_char *) (CONFIG_SYS_MBAR+0x10003C))
+#define MCFGPIO_CLRB           (*(vu_char *) (CONFIG_SYS_MBAR+0x10003D))
+#define MCFGPIO_CLRC           (*(vu_char *) (CONFIG_SYS_MBAR+0x10003E))
+#define MCFGPIO_CLRD           (*(vu_char *) (CONFIG_SYS_MBAR+0x10003F))
+#define MCFGPIO_CLRE           (*(vu_char *) (CONFIG_SYS_MBAR+0x100040))
+#define MCFGPIO_CLRF           (*(vu_char *) (CONFIG_SYS_MBAR+0x100041))
+#define MCFGPIO_CLRG           (*(vu_char *) (CONFIG_SYS_MBAR+0x100042))
+#define MCFGPIO_CLRH           (*(vu_char *) (CONFIG_SYS_MBAR+0x100043))
+#define MCFGPIO_CLRJ           (*(vu_char *) (CONFIG_SYS_MBAR+0x100044))
+#define MCFGPIO_CLRDD          (*(vu_char *) (CONFIG_SYS_MBAR+0x100045))
+#define MCFGPIO_CLREH          (*(vu_char *) (CONFIG_SYS_MBAR+0x100046))
+#define MCFGPIO_CLREL          (*(vu_char *) (CONFIG_SYS_MBAR+0x100047))
+#define MCFGPIO_CLRAS          (*(vu_char *) (CONFIG_SYS_MBAR+0x100048))
+#define MCFGPIO_CLRQS          (*(vu_char *) (CONFIG_SYS_MBAR+0x100049))
+#define MCFGPIO_CLRSD          (*(vu_char *) (CONFIG_SYS_MBAR+0x10004A))
+#define MCFGPIO_CLRTC          (*(vu_char *) (CONFIG_SYS_MBAR+0x10004B))
+#define MCFGPIO_CLRTD          (*(vu_char *) (CONFIG_SYS_MBAR+0x10004C))
+#define MCFGPIO_CLRUA          (*(vu_char *) (CONFIG_SYS_MBAR+0x10004D))
+
+#define MCFGPIO_PBCDPAR        (*(vu_char *) (CONFIG_SYS_MBAR+0x100050))
+#define MCFGPIO_PFPAR          (*(vu_char *) (CONFIG_SYS_MBAR+0x100051))
+#define MCFGPIO_PEPAR          (*(vu_short *)(CONFIG_SYS_MBAR+0x100052))
+#define MCFGPIO_PJPAR          (*(vu_char *) (CONFIG_SYS_MBAR+0x100054))
+#define MCFGPIO_PSDPAR         (*(vu_char *) (CONFIG_SYS_MBAR+0x100055))
+#define MCFGPIO_PASPAR         (*(vu_short *)(CONFIG_SYS_MBAR+0x100056))
+#define MCFGPIO_PEHLPAR                (*(vu_char *) (CONFIG_SYS_MBAR+0x100058))
+#define MCFGPIO_PQSPAR         (*(vu_char *) (CONFIG_SYS_MBAR+0x100059))
+#define MCFGPIO_PTCPAR         (*(vu_char *) (CONFIG_SYS_MBAR+0x10005A))
+#define MCFGPIO_PTDPAR         (*(vu_char *) (CONFIG_SYS_MBAR+0x10005B))
+#define MCFGPIO_PUAPAR         (*(vu_char *) (CONFIG_SYS_MBAR+0x10005C))
 
 /* Bit level definitions and macros */
 #define MCFGPIO_PORT7                  (0x80)
 
 /* System Conrol Module SCM */
 
-#define MCFSCM_RAMBAR          (*(vu_long *) (CFG_MBAR+0x00000008))
-#define MCFSCM_CRSR            (*(vu_char *) (CFG_MBAR+0x00000010))
-#define MCFSCM_CWCR            (*(vu_char *) (CFG_MBAR+0x00000011))
-#define MCFSCM_LPICR           (*(vu_char *) (CFG_MBAR+0x00000012))
-#define MCFSCM_CWSR            (*(vu_char *) (CFG_MBAR+0x00000013))
-
-#define MCFSCM_MPARK           (*(vu_long *) (CFG_MBAR+0x0000001C))
-#define MCFSCM_MPR             (*(vu_char *) (CFG_MBAR+0x00000020))
-#define MCFSCM_PACR0           (*(vu_char *) (CFG_MBAR+0x00000024))
-#define MCFSCM_PACR1           (*(vu_char *) (CFG_MBAR+0x00000025))
-#define MCFSCM_PACR2           (*(vu_char *) (CFG_MBAR+0x00000026))
-#define MCFSCM_PACR3           (*(vu_char *) (CFG_MBAR+0x00000027))
-#define MCFSCM_PACR4           (*(vu_char *) (CFG_MBAR+0x00000028))
-#define MCFSCM_PACR5           (*(vu_char *) (CFG_MBAR+0x0000002A))
-#define MCFSCM_PACR6           (*(vu_char *) (CFG_MBAR+0x0000002B))
-#define MCFSCM_PACR7           (*(vu_char *) (CFG_MBAR+0x0000002C))
-#define MCFSCM_PACR8           (*(vu_char *) (CFG_MBAR+0x0000002E))
-#define MCFSCM_GPACR0          (*(vu_char *) (CFG_MBAR+0x00000030))
-#define MCFSCM_GPACR1          (*(vu_char *) (CFG_MBAR+0x00000031))
+#define MCFSCM_RAMBAR          (*(vu_long *) (CONFIG_SYS_MBAR+0x00000008))
+#define MCFSCM_CRSR            (*(vu_char *) (CONFIG_SYS_MBAR+0x00000010))
+#define MCFSCM_CWCR            (*(vu_char *) (CONFIG_SYS_MBAR+0x00000011))
+#define MCFSCM_LPICR           (*(vu_char *) (CONFIG_SYS_MBAR+0x00000012))
+#define MCFSCM_CWSR            (*(vu_char *) (CONFIG_SYS_MBAR+0x00000013))
+
+#define MCFSCM_MPARK           (*(vu_long *) (CONFIG_SYS_MBAR+0x0000001C))
+#define MCFSCM_MPR             (*(vu_char *) (CONFIG_SYS_MBAR+0x00000020))
+#define MCFSCM_PACR0           (*(vu_char *) (CONFIG_SYS_MBAR+0x00000024))
+#define MCFSCM_PACR1           (*(vu_char *) (CONFIG_SYS_MBAR+0x00000025))
+#define MCFSCM_PACR2           (*(vu_char *) (CONFIG_SYS_MBAR+0x00000026))
+#define MCFSCM_PACR3           (*(vu_char *) (CONFIG_SYS_MBAR+0x00000027))
+#define MCFSCM_PACR4           (*(vu_char *) (CONFIG_SYS_MBAR+0x00000028))
+#define MCFSCM_PACR5           (*(vu_char *) (CONFIG_SYS_MBAR+0x0000002A))
+#define MCFSCM_PACR6           (*(vu_char *) (CONFIG_SYS_MBAR+0x0000002B))
+#define MCFSCM_PACR7           (*(vu_char *) (CONFIG_SYS_MBAR+0x0000002C))
+#define MCFSCM_PACR8           (*(vu_char *) (CONFIG_SYS_MBAR+0x0000002E))
+#define MCFSCM_GPACR0          (*(vu_char *) (CONFIG_SYS_MBAR+0x00000030))
+#define MCFSCM_GPACR1          (*(vu_char *) (CONFIG_SYS_MBAR+0x00000031))
 
 #define MCFSCM_CRSR_EXT                (0x80)
 #define MCFSCM_CRSR_CWDR       (0x20)
 
 /* Reset Controller Module RCM */
 
-#define MCFRESET_RCR           (*(vu_char *) (CFG_MBAR+0x00110000))
-#define MCFRESET_RSR           (*(vu_char *) (CFG_MBAR+0x00110001))
+#define MCFRESET_RCR           (*(vu_char *) (CONFIG_SYS_MBAR+0x00110000))
+#define MCFRESET_RSR           (*(vu_char *) (CONFIG_SYS_MBAR+0x00110001))
 
 #define MCFRESET_RCR_SOFTRST   (0x80)
 #define MCFRESET_RCR_FRCRSTOUT (0x40)
 
 /* Chip Configuration Module CCM */
 
-#define MCFCCM_CCR             (*(vu_short *)(CFG_MBAR+0x00110004))
-#define MCFCCM_RCON            (*(vu_short *)(CFG_MBAR+0x00110008))
-#define MCFCCM_CIR             (*(vu_short *)(CFG_MBAR+0x0011000A))
+#define MCFCCM_CCR             (*(vu_short *)(CONFIG_SYS_MBAR+0x00110004))
+#define MCFCCM_RCON            (*(vu_short *)(CONFIG_SYS_MBAR+0x00110008))
+#define MCFCCM_CIR             (*(vu_short *)(CONFIG_SYS_MBAR+0x0011000A))
 
 /* Bit level definitions and macros */
 #define MCFCCM_CCR_LOAD                (0x8000)
 
 /* Clock Module */
 
-#define MCFCLOCK_SYNCR         (*(vu_short *)(CFG_MBAR+0x120000))
-#define MCFCLOCK_SYNSR         (*(vu_char *) (CFG_MBAR+0x120002))
+#define MCFCLOCK_SYNCR         (*(vu_short *)(CONFIG_SYS_MBAR+0x120000))
+#define MCFCLOCK_SYNSR         (*(vu_char *) (CONFIG_SYS_MBAR+0x120002))
 
 #define MCFCLOCK_SYNCR_MFD(x)  (((x)&0x0007)<<12)
 #define MCFCLOCK_SYNCR_RFD(x)  (((x)&0x0007)<<8)
 #define MCFCLOCK_SYNSR_LOCK    0x08
 
-#define MCFSDRAMC_DCR          (*(vu_short *)(CFG_MBAR+0x00000040))
-#define MCFSDRAMC_DACR0                (*(vu_long *) (CFG_MBAR+0x00000048))
-#define MCFSDRAMC_DMR0         (*(vu_long *) (CFG_MBAR+0x0000004c))
-#define MCFSDRAMC_DACR1                (*(vu_long *) (CFG_MBAR+0x00000050))
-#define MCFSDRAMC_DMR1         (*(vu_long *) (CFG_MBAR+0x00000054))
+#define MCFSDRAMC_DCR          (*(vu_short *)(CONFIG_SYS_MBAR+0x00000040))
+#define MCFSDRAMC_DACR0                (*(vu_long *) (CONFIG_SYS_MBAR+0x00000048))
+#define MCFSDRAMC_DMR0         (*(vu_long *) (CONFIG_SYS_MBAR+0x0000004c))
+#define MCFSDRAMC_DACR1                (*(vu_long *) (CONFIG_SYS_MBAR+0x00000050))
+#define MCFSDRAMC_DMR1         (*(vu_long *) (CONFIG_SYS_MBAR+0x00000054))
 
 #define MCFSDRAMC_DCR_NAM      (0x2000)
 #define MCFSDRAMC_DCR_COC      (0x1000)
 #define MCFSDRAMC_DMR_UD       (0x00000002)
 #define MCFSDRAMC_DMR_V                (0x00000001)
 
-#define MCFWTM_WCR             (*(vu_short *)(CFG_MBAR+0x00140000))
-#define MCFWTM_WMR             (*(vu_short *)(CFG_MBAR+0x00140002))
-#define MCFWTM_WCNTR           (*(vu_short *)(CFG_MBAR+0x00140004))
-#define MCFWTM_WSR             (*(vu_short *)(CFG_MBAR+0x00140006))
+#define MCFWTM_WCR             (*(vu_short *)(CONFIG_SYS_MBAR+0x00140000))
+#define MCFWTM_WMR             (*(vu_short *)(CONFIG_SYS_MBAR+0x00140002))
+#define MCFWTM_WCNTR           (*(vu_short *)(CONFIG_SYS_MBAR+0x00140004))
+#define MCFWTM_WSR             (*(vu_short *)(CONFIG_SYS_MBAR+0x00140006))
 
 /*  Chip SELECT Module CSM */
-#define MCFCSM_CSAR0           (*(vu_short *)(CFG_MBAR+0x00000080))
-#define MCFCSM_CSMR0           (*(vu_long *) (CFG_MBAR+0x00000084))
-#define MCFCSM_CSCR0           (*(vu_short *)(CFG_MBAR+0x0000008a))
-#define MCFCSM_CSAR1           (*(vu_short *)(CFG_MBAR+0x0000008C))
-#define MCFCSM_CSMR1           (*(vu_long *) (CFG_MBAR+0x00000090))
-#define MCFCSM_CSCR1           (*(vu_short *)(CFG_MBAR+0x00000096))
-#define MCFCSM_CSAR2           (*(vu_short *)(CFG_MBAR+0x00000098))
-#define MCFCSM_CSMR2           (*(vu_long *) (CFG_MBAR+0x0000009C))
-#define MCFCSM_CSCR2           (*(vu_short *)(CFG_MBAR+0x000000A2))
-#define MCFCSM_CSAR3           (*(vu_short *)(CFG_MBAR+0x000000A4))
-#define MCFCSM_CSMR3           (*(vu_long *) (CFG_MBAR+0x000000A8))
-#define MCFCSM_CSCR3           (*(vu_short *)(CFG_MBAR+0x000000AE))
+#define MCFCSM_CSAR0           (*(vu_short *)(CONFIG_SYS_MBAR+0x00000080))
+#define MCFCSM_CSMR0           (*(vu_long *) (CONFIG_SYS_MBAR+0x00000084))
+#define MCFCSM_CSCR0           (*(vu_short *)(CONFIG_SYS_MBAR+0x0000008a))
+#define MCFCSM_CSAR1           (*(vu_short *)(CONFIG_SYS_MBAR+0x0000008C))
+#define MCFCSM_CSMR1           (*(vu_long *) (CONFIG_SYS_MBAR+0x00000090))
+#define MCFCSM_CSCR1           (*(vu_short *)(CONFIG_SYS_MBAR+0x00000096))
+#define MCFCSM_CSAR2           (*(vu_short *)(CONFIG_SYS_MBAR+0x00000098))
+#define MCFCSM_CSMR2           (*(vu_long *) (CONFIG_SYS_MBAR+0x0000009C))
+#define MCFCSM_CSCR2           (*(vu_short *)(CONFIG_SYS_MBAR+0x000000A2))
+#define MCFCSM_CSAR3           (*(vu_short *)(CONFIG_SYS_MBAR+0x000000A4))
+#define MCFCSM_CSMR3           (*(vu_long *) (CONFIG_SYS_MBAR+0x000000A8))
+#define MCFCSM_CSCR3           (*(vu_short *)(CONFIG_SYS_MBAR+0x000000AE))
 
 #define MCFCSM_CSMR_BAM(x)     ((x) & 0xFFFF0000)
 #define MCFCSM_CSMR_WP         (1<<8)
 * General Purpose Timer (GPT) Module
 *********************************************************************/
 
-#define MCFGPTA_GPTIOS         (*(vu_char *)(CFG_MBAR+0x1A0000))
-#define MCFGPTA_GPTCFORC       (*(vu_char *)(CFG_MBAR+0x1A0001))
-#define MCFGPTA_GPTOC3M                (*(vu_char *)(CFG_MBAR+0x1A0002))
-#define MCFGPTA_GPTOC3D                (*(vu_char *)(CFG_MBAR+0x1A0003))
-#define MCFGPTA_GPTCNT         (*(vu_short *)(CFG_MBAR+0x1A0004))
-#define MCFGPTA_GPTSCR1                (*(vu_char *)(CFG_MBAR+0x1A0006))
-#define MCFGPTA_GPTTOV         (*(vu_char *)(CFG_MBAR+0x1A0008))
-#define MCFGPTA_GPTCTL1                (*(vu_char *)(CFG_MBAR+0x1A0009))
-#define MCFGPTA_GPTCTL2                (*(vu_char *)(CFG_MBAR+0x1A000B))
-#define MCFGPTA_GPTIE          (*(vu_char *)(CFG_MBAR+0x1A000C))
-#define MCFGPTA_GPTSCR2                (*(vu_char *)(CFG_MBAR+0x1A000D))
-#define MCFGPTA_GPTFLG1                (*(vu_char *)(CFG_MBAR+0x1A000E))
-#define MCFGPTA_GPTFLG2                (*(vu_char *)(CFG_MBAR+0x1A000F))
-#define MCFGPTA_GPTC0          (*(vu_short *)(CFG_MBAR+0x1A0010))
-#define MCFGPTA_GPTC1          (*(vu_short *)(CFG_MBAR+0x1A0012))
-#define MCFGPTA_GPTC2          (*(vu_short *)(CFG_MBAR+0x1A0014))
-#define MCFGPTA_GPTC3          (*(vu_short *)(CFG_MBAR+0x1A0016))
-#define MCFGPTA_GPTPACTL       (*(vu_char *)(CFG_MBAR+0x1A0018))
-#define MCFGPTA_GPTPAFLG       (*(vu_char *)(CFG_MBAR+0x1A0019))
-#define MCFGPTA_GPTPACNT       (*(vu_short *)(CFG_MBAR+0x1A001A))
-#define MCFGPTA_GPTPORT                (*(vu_char *)(CFG_MBAR+0x1A001D))
-#define MCFGPTA_GPTDDR         (*(vu_char *)(CFG_MBAR+0x1A001E))
-
-#define MCFGPTB_GPTIOS         (*(vu_char *)(CFG_MBAR+0x1B0000))
-#define MCFGPTB_GPTCFORC       (*(vu_char *)(CFG_MBAR+0x1B0001))
-#define MCFGPTB_GPTOC3M                (*(vu_char *)(CFG_MBAR+0x1B0002))
-#define MCFGPTB_GPTOC3D                (*(vu_char *)(CFG_MBAR+0x1B0003))
-#define MCFGPTB_GPTCNT         (*(vu_short *)(CFG_MBAR+0x1B0004))
-#define MCFGPTB_GPTSCR1                (*(vu_char *)(CFG_MBAR+0x1B0006))
-#define MCFGPTB_GPTTOV         (*(vu_char *)(CFG_MBAR+0x1B0008))
-#define MCFGPTB_GPTCTL1                (*(vu_char *)(CFG_MBAR+0x1B0009))
-#define MCFGPTB_GPTCTL2                (*(vu_char *)(CFG_MBAR+0x1B000B))
-#define MCFGPTB_GPTIE          (*(vu_char *)(CFG_MBAR+0x1B000C))
-#define MCFGPTB_GPTSCR2                (*(vu_char *)(CFG_MBAR+0x1B000D))
-#define MCFGPTB_GPTFLG1                (*(vu_char *)(CFG_MBAR+0x1B000E))
-#define MCFGPTB_GPTFLG2                (*(vu_char *)(CFG_MBAR+0x1B000F))
-#define MCFGPTB_GPTC0          (*(vu_short *)(CFG_MBAR+0x1B0010))
-#define MCFGPTB_GPTC1          (*(vu_short *)(CFG_MBAR+0x1B0012))
-#define MCFGPTB_GPTC2          (*(vu_short *)(CFG_MBAR+0x1B0014))
-#define MCFGPTB_GPTC3          (*(vu_short *)(CFG_MBAR+0x1B0016))
-#define MCFGPTB_GPTPACTL       (*(vu_char *)(CFG_MBAR+0x1B0018))
-#define MCFGPTB_GPTPAFLG       (*(vu_char *)(CFG_MBAR+0x1B0019))
-#define MCFGPTB_GPTPACNT       (*(vu_short *)(CFG_MBAR+0x1B001A))
-#define MCFGPTB_GPTPORT                (*(vu_char *)(CFG_MBAR+0x1B001D))
-#define MCFGPTB_GPTDDR         (*(vu_char *)(CFG_MBAR+0x1B001E))
+#define MCFGPTA_GPTIOS         (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0000))
+#define MCFGPTA_GPTCFORC       (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0001))
+#define MCFGPTA_GPTOC3M                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0002))
+#define MCFGPTA_GPTOC3D                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0003))
+#define MCFGPTA_GPTCNT         (*(vu_short *)(CONFIG_SYS_MBAR+0x1A0004))
+#define MCFGPTA_GPTSCR1                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0006))
+#define MCFGPTA_GPTTOV         (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0008))
+#define MCFGPTA_GPTCTL1                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0009))
+#define MCFGPTA_GPTCTL2                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A000B))
+#define MCFGPTA_GPTIE          (*(vu_char *)(CONFIG_SYS_MBAR+0x1A000C))
+#define MCFGPTA_GPTSCR2                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A000D))
+#define MCFGPTA_GPTFLG1                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A000E))
+#define MCFGPTA_GPTFLG2                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A000F))
+#define MCFGPTA_GPTC0          (*(vu_short *)(CONFIG_SYS_MBAR+0x1A0010))
+#define MCFGPTA_GPTC1          (*(vu_short *)(CONFIG_SYS_MBAR+0x1A0012))
+#define MCFGPTA_GPTC2          (*(vu_short *)(CONFIG_SYS_MBAR+0x1A0014))
+#define MCFGPTA_GPTC3          (*(vu_short *)(CONFIG_SYS_MBAR+0x1A0016))
+#define MCFGPTA_GPTPACTL       (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0018))
+#define MCFGPTA_GPTPAFLG       (*(vu_char *)(CONFIG_SYS_MBAR+0x1A0019))
+#define MCFGPTA_GPTPACNT       (*(vu_short *)(CONFIG_SYS_MBAR+0x1A001A))
+#define MCFGPTA_GPTPORT                (*(vu_char *)(CONFIG_SYS_MBAR+0x1A001D))
+#define MCFGPTA_GPTDDR         (*(vu_char *)(CONFIG_SYS_MBAR+0x1A001E))
+
+#define MCFGPTB_GPTIOS         (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0000))
+#define MCFGPTB_GPTCFORC       (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0001))
+#define MCFGPTB_GPTOC3M                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0002))
+#define MCFGPTB_GPTOC3D                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0003))
+#define MCFGPTB_GPTCNT         (*(vu_short *)(CONFIG_SYS_MBAR+0x1B0004))
+#define MCFGPTB_GPTSCR1                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0006))
+#define MCFGPTB_GPTTOV         (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0008))
+#define MCFGPTB_GPTCTL1                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0009))
+#define MCFGPTB_GPTCTL2                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B000B))
+#define MCFGPTB_GPTIE          (*(vu_char *)(CONFIG_SYS_MBAR+0x1B000C))
+#define MCFGPTB_GPTSCR2                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B000D))
+#define MCFGPTB_GPTFLG1                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B000E))
+#define MCFGPTB_GPTFLG2                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B000F))
+#define MCFGPTB_GPTC0          (*(vu_short *)(CONFIG_SYS_MBAR+0x1B0010))
+#define MCFGPTB_GPTC1          (*(vu_short *)(CONFIG_SYS_MBAR+0x1B0012))
+#define MCFGPTB_GPTC2          (*(vu_short *)(CONFIG_SYS_MBAR+0x1B0014))
+#define MCFGPTB_GPTC3          (*(vu_short *)(CONFIG_SYS_MBAR+0x1B0016))
+#define MCFGPTB_GPTPACTL       (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0018))
+#define MCFGPTB_GPTPAFLG       (*(vu_char *)(CONFIG_SYS_MBAR+0x1B0019))
+#define MCFGPTB_GPTPACNT       (*(vu_short *)(CONFIG_SYS_MBAR+0x1B001A))
+#define MCFGPTB_GPTPORT                (*(vu_char *)(CONFIG_SYS_MBAR+0x1B001D))
+#define MCFGPTB_GPTDDR         (*(vu_char *)(CONFIG_SYS_MBAR+0x1B001E))
 
 /* Bit level definitions and macros */
 #define MCFGPT_GPTIOS_IOS3             (0x08)
 
 /* Coldfire Flash Module CFM */
 
-#define MCFCFM_MCR                     (*(vu_short *)(CFG_MBAR+0x1D0000))
+#define MCFCFM_MCR                     (*(vu_short *)(CONFIG_SYS_MBAR+0x1D0000))
 #define MCFCFM_MCR_LOCK                        (0x0400)
 #define MCFCFM_MCR_PVIE                        (0x0200)
 #define MCFCFM_MCR_AEIE                        (0x0100)
 #define MCFCFM_MCR_CCIE                        (0x0040)
 #define MCFCFM_MCR_KEYACC              (0x0020)
 
-#define MCFCFM_CLKD                    (*(vu_char *)(CFG_MBAR+0x1D0002))
+#define MCFCFM_CLKD                    (*(vu_char *)(CONFIG_SYS_MBAR+0x1D0002))
 
-#define MCFCFM_SEC                     (*(vu_long*) (CFG_MBAR+0x1D0008))
+#define MCFCFM_SEC                     (*(vu_long*) (CONFIG_SYS_MBAR+0x1D0008))
 #define MCFCFM_SEC_KEYEN               (0x80000000)
 #define MCFCFM_SEC_SECSTAT             (0x40000000)
 
-#define MCFCFM_PROT                    (*(vu_long*) (CFG_MBAR+0x1D0010))
-#define MCFCFM_SACC                    (*(vu_long*) (CFG_MBAR+0x1D0014))
-#define MCFCFM_DACC                    (*(vu_long*) (CFG_MBAR+0x1D0018))
-#define MCFCFM_USTAT                   (*(vu_char*) (CFG_MBAR+0x1D0020))
+#define MCFCFM_PROT                    (*(vu_long*) (CONFIG_SYS_MBAR+0x1D0010))
+#define MCFCFM_SACC                    (*(vu_long*) (CONFIG_SYS_MBAR+0x1D0014))
+#define MCFCFM_DACC                    (*(vu_long*) (CONFIG_SYS_MBAR+0x1D0018))
+#define MCFCFM_USTAT                   (*(vu_char*) (CONFIG_SYS_MBAR+0x1D0020))
 #define MCFCFM_USTAT_CBEIF             0x80
 #define MCFCFM_USTAT_CCIF              0x40
 #define MCFCFM_USTAT_PVIOL             0x20
 #define MCFCFM_USTAT_ACCERR            0x10
 #define MCFCFM_USTAT_BLANK             0x04
 
-#define MCFCFM_CMD                     (*(vu_char*) (CFG_MBAR+0x1D0024))
+#define MCFCFM_CMD                     (*(vu_char*) (CONFIG_SYS_MBAR+0x1D0024))
 #define MCFCFM_CMD_ERSVER              0x05
 #define MCFCFM_CMD_PGERSVER            0x06
 #define MCFCFM_CMD_PGM                 0x20
index 013c56a492b801f36f4ba5419e69d3624f774b54..3f49c349c817761276658bf43128fca7b90cfc98 100644 (file)
@@ -31,7 +31,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef        struct  global_data {
index 7cf2a00acb3da1f2f796b6afb6a59e04d8c651f9..b2c4891151acd5f64fb16e5a15eb2a0950260586 100644 (file)
@@ -33,7 +33,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef        struct  global_data {
index a7cf1e8f5ee3f1266d9030bc193ab67010d117a9..a0e88de11d4390bb38b2b2fb06f81ada33804223 100644 (file)
@@ -18,9 +18,9 @@
 #define DCRN_SDR0_CFGDATA      0x00f
 
 #if defined(CONFIG_440SPE)
-#define CFG_PCIE_NR_PORTS      3
+#define CONFIG_SYS_PCIE_NR_PORTS       3
 
-#define CFG_PCIE_ADDR_HIGH     0x0000000d
+#define CONFIG_SYS_PCIE_ADDR_HIGH      0x0000000d
 
 #define DCRN_PCIE0_BASE                0x100
 #define DCRN_PCIE1_BASE                0x120
@@ -32,9 +32,9 @@
 #endif
 
 #if defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define CFG_PCIE_NR_PORTS      2
+#define CONFIG_SYS_PCIE_NR_PORTS       2
 
-#define CFG_PCIE_ADDR_HIGH     0x0000000d
+#define CONFIG_SYS_PCIE_ADDR_HIGH      0x0000000d
 
 #define DCRN_PCIE0_BASE                0x100
 #define DCRN_PCIE1_BASE                0x120
@@ -44,9 +44,9 @@
 #endif
 
 #if defined(CONFIG_405EX)
-#define CFG_PCIE_NR_PORTS      2
+#define CONFIG_SYS_PCIE_NR_PORTS       2
 
-#define CFG_PCIE_ADDR_HIGH     0x00000000
+#define CONFIG_SYS_PCIE_ADDR_HIGH      0x00000000
 
 #define        DCRN_PCIE0_BASE         0x040
 #define        DCRN_PCIE1_BASE         0x060
@@ -406,7 +406,7 @@ static inline u32 sdr_base(int port)
                return PCIE0_SDR;
        case 1:
                return PCIE1_SDR;
-#if CFG_PCIE_NR_PORTS > 2
+#if CONFIG_SYS_PCIE_NR_PORTS > 2
        case 2:
                return PCIE2_SDR;
 #endif
index 9d9b9717ddedbb1910b0a5ea8d09bef807e4d71c..3d5f3f7241a80ac21759738454fbd4cc67b7e37e 100644 (file)
 #define L1_CACHE_BYTES          (1 << L1_CACHE_SHIFT)
 
 /*
- * For compatibility reasons support the CFG_CACHELINE_SIZE too
+ * For compatibility reasons support the CONFIG_SYS_CACHELINE_SIZE too
  */
-#ifndef CFG_CACHELINE_SIZE
-#define CFG_CACHELINE_SIZE     L1_CACHE_BYTES
+#ifndef CONFIG_SYS_CACHELINE_SIZE
+#define CONFIG_SYS_CACHELINE_SIZE      L1_CACHE_BYTES
 #endif
 
 #define        L1_CACHE_ALIGN(x)       (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
@@ -44,9 +44,9 @@ extern void clean_dcache_range(unsigned long start, unsigned long stop);
 extern void invalidate_dcache_range(unsigned long start, unsigned long stop);
 extern void flush_dcache(void);
 extern void invalidate_dcache(void);
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
 extern void unlock_ram_in_cache(void);
-#endif /* CFG_INIT_RAM_LOCK */
+#endif /* CONFIG_SYS_INIT_RAM_LOCK */
 #endif /* __ASSEMBLY__ */
 
 /* prep registers for L2 */
index 2a9774ade83a723597bfda33fd46bdc52dd4bc68..7e06940c97116bd620c463bf89caa1323c8340dd 100644 (file)
@@ -141,16 +141,16 @@ typedef struct cpm_buf_desc {
 
 /* Parameter RAM offsets from the base.
 */
-#ifndef CFG_CPM_POST_WORD_ADDR
+#ifndef CONFIG_SYS_CPM_POST_WORD_ADDR
 #define CPM_POST_WORD_ADDR      0x80FC /* steal a long at the end of SCC1 */
 #else
-#define CPM_POST_WORD_ADDR     CFG_CPM_POST_WORD_ADDR
+#define CPM_POST_WORD_ADDR     CONFIG_SYS_CPM_POST_WORD_ADDR
 #endif
 
-#ifndef CFG_CPM_BOOTCOUNT_ADDR
+#ifndef CONFIG_SYS_CPM_BOOTCOUNT_ADDR
 #define CPM_BOOTCOUNT_ADDR     (CPM_POST_WORD_ADDR - 2*sizeof(ulong))
 #else
-#define CPM_BOOTCOUNT_ADDR     CFG_CPM_BOOTCOUNT_ADDR
+#define CPM_BOOTCOUNT_ADDR     CONFIG_SYS_CPM_BOOTCOUNT_ADDR
 #endif
 
 #define PROFF_SCC1             ((uint)0x8000)
index 4331a154ea6f3371ac030ee497100c2336906c17..aade097fa4edcd88e9701e133ab49dccc12625fd 100644 (file)
@@ -33,7 +33,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef        struct  global_data {
@@ -129,14 +129,14 @@ typedef   struct  global_data {
        unsigned long   env_addr;       /* Address  of Environment struct       */
        unsigned long   env_valid;      /* Checksum of Environment valid?       */
        unsigned long   have_console;   /* serial_init() was called             */
-#if defined(CFG_ALLOC_DPRAM) || defined(CONFIG_CPM2)
+#if defined(CONFIG_SYS_ALLOC_DPRAM) || defined(CONFIG_CPM2)
        unsigned int    dp_alloc_base;
        unsigned int    dp_alloc_top;
 #endif
 #if defined(CONFIG_4xx)
        u32  uart_clk;
 #endif /* CONFIG_4xx */
-#if defined(CFG_GT_6426x)
+#if defined(CONFIG_SYS_GT_6426x)
        unsigned int    mirror_hack[16];
 #endif
 #if defined(CONFIG_A3000)      || \
index 50c9ddefd22d9bb7a762145ce15c5a1a082deacd..52f54959ab60bb426985c7b897d9649da41dcee1 100644 (file)
@@ -1647,37 +1647,37 @@ typedef struct ccsr_gur {
 
 #define PORDEVSR_PCI   (0x00800000)    /* PCI Mode */
 
-#define CFG_MPC85xx_GUTS_OFFSET        (0xE0000)
-#define CFG_MPC85xx_GUTS_ADDR  (CFG_IMMR + CFG_MPC85xx_GUTS_OFFSET)
-#define CFG_MPC85xx_ECM_OFFSET (0x0000)
-#define CFG_MPC85xx_ECM_ADDR   (CFG_IMMR + CFG_MPC85xx_ECM_OFFSET)
-#define CFG_MPC85xx_DDR_OFFSET (0x2000)
-#define CFG_MPC85xx_DDR_ADDR   (CFG_IMMR + CFG_MPC85xx_DDR_OFFSET)
-#define CFG_MPC85xx_DDR2_OFFSET        (0x6000)
-#define CFG_MPC85xx_DDR2_ADDR  (CFG_IMMR + CFG_MPC85xx_DDR2_OFFSET)
-#define CFG_MPC85xx_LBC_OFFSET (0x5000)
-#define CFG_MPC85xx_LBC_ADDR   (CFG_IMMR + CFG_MPC85xx_LBC_OFFSET)
-#define CFG_MPC85xx_PCIX_OFFSET        (0x8000)
-#define CFG_MPC85xx_PCIX_ADDR  (CFG_IMMR + CFG_MPC85xx_PCIX_OFFSET)
-#define CFG_MPC85xx_PCIX2_OFFSET       (0x9000)
-#define CFG_MPC85xx_PCIX2_ADDR (CFG_IMMR + CFG_MPC85xx_PCIX2_OFFSET)
-#define CFG_MPC85xx_SATA1_OFFSET       (0x18000)
-#define CFG_MPC85xx_SATA1_ADDR (CFG_IMMR + CFG_MPC85xx_SATA1_OFFSET)
-#define CFG_MPC85xx_SATA2_OFFSET       (0x19000)
-#define CFG_MPC85xx_SATA2_ADDR (CFG_IMMR + CFG_MPC85xx_SATA2_OFFSET)
-#define CFG_MPC85xx_L2_OFFSET  (0x20000)
-#define CFG_MPC85xx_L2_ADDR    (CFG_IMMR + CFG_MPC85xx_L2_OFFSET)
-#define CFG_MPC85xx_DMA_OFFSET (0x21000)
-#define CFG_MPC85xx_DMA_ADDR   (CFG_IMMR + CFG_MPC85xx_DMA_OFFSET)
-#define CFG_MPC85xx_ESDHC_OFFSET       (0x2e000)
-#define CFG_MPC85xx_ESDHC_ADDR (CFG_IMMR + CFG_MPC85xx_ESDHC_OFFSET)
-#define CFG_MPC85xx_PIC_OFFSET (0x40000)
-#define CFG_MPC85xx_PIC_ADDR   (CFG_IMMR + CFG_MPC85xx_PIC_OFFSET)
-#define CFG_MPC85xx_CPM_OFFSET (0x80000)
-#define CFG_MPC85xx_CPM_ADDR   (CFG_IMMR + CFG_MPC85xx_CPM_OFFSET)
-#define CFG_MPC85xx_SERDES1_OFFSET     (0xE3000)
-#define CFG_MPC85xx_SERDES1_ADDR       (CFG_IMMR + CFG_MPC85xx_SERDES2_OFFSET)
-#define CFG_MPC85xx_SERDES2_OFFSET     (0xE3100)
-#define CFG_MPC85xx_SERDES2_ADDR       (CFG_IMMR + CFG_MPC85xx_SERDES2_OFFSET)
+#define CONFIG_SYS_MPC85xx_GUTS_OFFSET (0xE0000)
+#define CONFIG_SYS_MPC85xx_GUTS_ADDR   (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_GUTS_OFFSET)
+#define CONFIG_SYS_MPC85xx_ECM_OFFSET  (0x0000)
+#define CONFIG_SYS_MPC85xx_ECM_ADDR    (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ECM_OFFSET)
+#define CONFIG_SYS_MPC85xx_DDR_OFFSET  (0x2000)
+#define CONFIG_SYS_MPC85xx_DDR_ADDR    (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DDR_OFFSET)
+#define CONFIG_SYS_MPC85xx_DDR2_OFFSET (0x6000)
+#define CONFIG_SYS_MPC85xx_DDR2_ADDR   (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DDR2_OFFSET)
+#define CONFIG_SYS_MPC85xx_LBC_OFFSET  (0x5000)
+#define CONFIG_SYS_MPC85xx_LBC_ADDR    (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_LBC_OFFSET)
+#define CONFIG_SYS_MPC85xx_PCIX_OFFSET (0x8000)
+#define CONFIG_SYS_MPC85xx_PCIX_ADDR   (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX_OFFSET)
+#define CONFIG_SYS_MPC85xx_PCIX2_OFFSET        (0x9000)
+#define CONFIG_SYS_MPC85xx_PCIX2_ADDR  (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX2_OFFSET)
+#define CONFIG_SYS_MPC85xx_SATA1_OFFSET        (0x18000)
+#define CONFIG_SYS_MPC85xx_SATA1_ADDR  (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA1_OFFSET)
+#define CONFIG_SYS_MPC85xx_SATA2_OFFSET        (0x19000)
+#define CONFIG_SYS_MPC85xx_SATA2_ADDR  (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SATA2_OFFSET)
+#define CONFIG_SYS_MPC85xx_L2_OFFSET   (0x20000)
+#define CONFIG_SYS_MPC85xx_L2_ADDR     (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_L2_OFFSET)
+#define CONFIG_SYS_MPC85xx_DMA_OFFSET  (0x21000)
+#define CONFIG_SYS_MPC85xx_DMA_ADDR    (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DMA_OFFSET)
+#define CONFIG_SYS_MPC85xx_ESDHC_OFFSET        (0x2e000)
+#define CONFIG_SYS_MPC85xx_ESDHC_ADDR  (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ESDHC_OFFSET)
+#define CONFIG_SYS_MPC85xx_PIC_OFFSET  (0x40000)
+#define CONFIG_SYS_MPC85xx_PIC_ADDR    (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PIC_OFFSET)
+#define CONFIG_SYS_MPC85xx_CPM_OFFSET  (0x80000)
+#define CONFIG_SYS_MPC85xx_CPM_ADDR    (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_CPM_OFFSET)
+#define CONFIG_SYS_MPC85xx_SERDES1_OFFSET      (0xE3000)
+#define CONFIG_SYS_MPC85xx_SERDES1_ADDR        (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES2_OFFSET)
+#define CONFIG_SYS_MPC85xx_SERDES2_OFFSET      (0xE3100)
+#define CONFIG_SYS_MPC85xx_SERDES2_ADDR        (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_SERDES2_OFFSET)
 
 #endif /*__IMMAP_85xx__*/
index 03a25c7944469e9cdf30b7498bbd40ce2b30a652..df28c0f2c3809e27d8f71d9965d6dda512343f1c 100644 (file)
@@ -1348,9 +1348,9 @@ typedef struct immap {
 
 extern immap_t  *immr;
 
-#define CFG_MPC86xx_DDR_OFFSET (0x2000)
-#define CFG_MPC86xx_DDR_ADDR   (CFG_IMMR + CFG_MPC86xx_DDR_OFFSET)
-#define CFG_MPC86xx_DDR2_OFFSET        (0x6000)
-#define CFG_MPC86xx_DDR2_ADDR  (CFG_IMMR + CFG_MPC86xx_DDR2_OFFSET)
+#define CONFIG_SYS_MPC86xx_DDR_OFFSET  (0x2000)
+#define CONFIG_SYS_MPC86xx_DDR_ADDR    (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_DDR_OFFSET)
+#define CONFIG_SYS_MPC86xx_DDR2_OFFSET (0x6000)
+#define CONFIG_SYS_MPC86xx_DDR2_ADDR   (CONFIG_SYS_IMMR + CONFIG_SYS_MPC86xx_DDR2_OFFSET)
 
 #endif /*__IMMAP_86xx__*/
index 21ed8c2ec0c7d81720e99cc8dbd6b310add92fa5..619f3a8abea2b0af17f8bed1d9e0553683ab4042 100644 (file)
@@ -26,140 +26,140 @@ iopin_t;
 extern __inline__ void
 iopin_set_high(iopin_t *iopin)
 {
-    volatile uint *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdata;
+    volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdata;
     datp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void
 iopin_set_low(iopin_t *iopin)
 {
-    volatile uint *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdata;
+    volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdata;
     datp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint
 iopin_is_high(iopin_t *iopin)
 {
-    volatile uint *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdata;
+    volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdata;
     return (datp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint
 iopin_is_low(iopin_t *iopin)
 {
-    volatile uint *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdata;
+    volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdata;
     return ((datp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void
 iopin_set_out(iopin_t *iopin)
 {
-    volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdira;
+    volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdira;
     dirp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void
 iopin_set_in(iopin_t *iopin)
 {
-    volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdira;
+    volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdira;
     dirp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint
 iopin_is_out(iopin_t *iopin)
 {
-    volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdira;
+    volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdira;
     return (dirp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint
 iopin_is_in(iopin_t *iopin)
 {
-    volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdira;
+    volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdira;
     return ((dirp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void
 iopin_set_odr(iopin_t *iopin)
 {
-    volatile uint *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_podra;
+    volatile uint *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_podra;
     odrp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void
 iopin_set_act(iopin_t *iopin)
 {
-    volatile uint *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_podra;
+    volatile uint *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_podra;
     odrp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint
 iopin_is_odr(iopin_t *iopin)
 {
-    volatile uint *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_podra;
+    volatile uint *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_podra;
     return (odrp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint
 iopin_is_act(iopin_t *iopin)
 {
-    volatile uint *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_podra;
+    volatile uint *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_podra;
     return ((odrp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void
 iopin_set_ded(iopin_t *iopin)
 {
-    volatile uint *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_ppara;
+    volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_ppara;
     parp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void
 iopin_set_gen(iopin_t *iopin)
 {
-    volatile uint *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_ppara;
+    volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_ppara;
     parp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint
 iopin_is_ded(iopin_t *iopin)
 {
-    volatile uint *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_ppara;
+    volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_ppara;
     return (parp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint
 iopin_is_gen(iopin_t *iopin)
 {
-    volatile uint *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_ppara;
+    volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_ppara;
     return ((parp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void
 iopin_set_opt2(iopin_t *iopin)
 {
-    volatile uint *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_psora;
+    volatile uint *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_psora;
     sorp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void
 iopin_set_opt1(iopin_t *iopin)
 {
-    volatile uint *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_psora;
+    volatile uint *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_psora;
     sorp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint
 iopin_is_opt2(iopin_t *iopin)
 {
-    volatile uint *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_psora;
+    volatile uint *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_psora;
     return (sorp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint
 iopin_is_opt1(iopin_t *iopin)
 {
-    volatile uint *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_psora;
+    volatile uint *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_psora;
     return ((sorp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
index daddb554d4923aceaf1d0a241db4bfcbab6708c2..0f07ba355e9c0f64b5ecf5d4f802fc1d4e2f9e02 100644 (file)
@@ -23,121 +23,121 @@ typedef struct {
 
 extern __inline__ void iopin_set_high (iopin_t * iopin)
 {
-       volatile uint *datp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
+       volatile uint *datp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
        datp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void iopin_set_low (iopin_t * iopin)
 {
-       volatile uint *datp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
+       volatile uint *datp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
        datp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint iopin_is_high (iopin_t * iopin)
 {
-       volatile uint *datp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
+       volatile uint *datp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
        return (datp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint iopin_is_low (iopin_t * iopin)
 {
-       volatile uint *datp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
+       volatile uint *datp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdata;
        return ((datp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void iopin_set_out (iopin_t * iopin)
 {
-       volatile uint *dirp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
+       volatile uint *dirp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
        dirp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void iopin_set_in (iopin_t * iopin)
 {
-       volatile uint *dirp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
+       volatile uint *dirp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
        dirp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint iopin_is_out (iopin_t * iopin)
 {
-       volatile uint *dirp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
+       volatile uint *dirp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
        return (dirp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint iopin_is_in (iopin_t * iopin)
 {
-       volatile uint *dirp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
+       volatile uint *dirp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.pdira;
        return ((dirp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void iopin_set_odr (iopin_t * iopin)
 {
-       volatile uint *odrp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
+       volatile uint *odrp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
        odrp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void iopin_set_act (iopin_t * iopin)
 {
-       volatile uint *odrp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
+       volatile uint *odrp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
        odrp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint iopin_is_odr (iopin_t * iopin)
 {
-       volatile uint *odrp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
+       volatile uint *odrp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
        return (odrp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint iopin_is_act (iopin_t * iopin)
 {
-       volatile uint *odrp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
+       volatile uint *odrp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.podra;
        return ((odrp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void iopin_set_ded (iopin_t * iopin)
 {
-       volatile uint *parp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
+       volatile uint *parp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
        parp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void iopin_set_gen (iopin_t * iopin)
 {
-       volatile uint *parp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
+       volatile uint *parp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
        parp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint iopin_is_ded (iopin_t * iopin)
 {
-       volatile uint *parp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
+       volatile uint *parp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
        return (parp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint iopin_is_gen (iopin_t * iopin)
 {
-       volatile uint *parp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
+       volatile uint *parp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.ppara;
        return ((parp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
 extern __inline__ void iopin_set_opt2 (iopin_t * iopin)
 {
-       volatile uint *sorp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
+       volatile uint *sorp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
        sorp[iopin->port * 8] |= (1 << (31 - iopin->pin));
 }
 
 extern __inline__ void iopin_set_opt1 (iopin_t * iopin)
 {
-       volatile uint *sorp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
+       volatile uint *sorp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
        sorp[iopin->port * 8] &= ~(1 << (31 - iopin->pin));
 }
 
 extern __inline__ uint iopin_is_opt2 (iopin_t * iopin)
 {
-       volatile uint *sorp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
+       volatile uint *sorp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
        return (sorp[iopin->port * 8] >> (31 - iopin->pin)) & 1;
 }
 
 extern __inline__ uint iopin_is_opt1 (iopin_t * iopin)
 {
-       volatile uint *sorp = &((ccsr_cpm_t *) CFG_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
+       volatile uint *sorp = &((ccsr_cpm_t *) CONFIG_SYS_MPC85xx_CPM_ADDR)->im_cpm_iop.psora;
        return ((sorp[iopin->port * 8] >> (31 - iopin->pin)) & 1) ^ 1;
 }
 
index 1946eb24cbd304b1b46aecc0e8767681276d6e4b..3a2a682f66ce949800ad6bef58307d60f87f7b52 100644 (file)
@@ -46,16 +46,16 @@ extern __inline__ void
 iopin_set_high(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padat;
                *datp |= (1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *datp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdat;
+               volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat;
                *datp |= (1 << (31 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat;
                *datp |= (1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat;
                *datp |= (1 << (15 - iopin->pin));
        }
 }
@@ -64,16 +64,16 @@ extern __inline__ void
 iopin_set_low(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padat;
                *datp &= ~(1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *datp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdat;
+               volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat;
                *datp &= ~(1 << (31 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat;
                *datp &= ~(1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat;
                *datp &= ~(1 << (15 - iopin->pin));
        }
 }
@@ -82,16 +82,16 @@ extern __inline__ uint
 iopin_is_high(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padat;
                return (*datp >> (15 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *datp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdat;
+               volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat;
                return (*datp >> (31 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat;
                return (*datp >> (15 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat;
                return (*datp >> (15 - iopin->pin)) & 1;
        }
        return 0;
@@ -101,16 +101,16 @@ extern __inline__ uint
 iopin_is_low(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padat;
                return ((*datp >> (15 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *datp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdat;
+               volatile uint *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat;
                return ((*datp >> (31 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat;
                return ((*datp >> (15 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *datp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddat;
+               volatile ushort *datp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat;
                return ((*datp >> (15 - iopin->pin)) & 1) ^ 1;
        }
        return 0;
@@ -120,16 +120,16 @@ extern __inline__ void
 iopin_set_out(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padir;
                *dirp |= (1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdir;
+               volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdir;
                *dirp |= (1 << (31 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdir;
                *dirp |= (1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddir;
                *dirp |= (1 << (15 - iopin->pin));
        }
 }
@@ -138,16 +138,16 @@ extern __inline__ void
 iopin_set_in(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padir;
                *dirp &= ~(1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdir;
+               volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdir;
                *dirp &= ~(1 << (31 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdir;
                *dirp &= ~(1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddir;
                *dirp &= ~(1 << (15 - iopin->pin));
        }
 }
@@ -156,16 +156,16 @@ extern __inline__ uint
 iopin_is_out(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padir;
                return (*dirp >> (15 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdir;
+               volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdir;
                return (*dirp >> (31 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdir;
                return (*dirp >> (15 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddir;
                return (*dirp >> (15 - iopin->pin)) & 1;
        }
        return 0;
@@ -175,16 +175,16 @@ extern __inline__ uint
 iopin_is_in(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_padir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padir;
                return ((*dirp >> (15 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *dirp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbdir;
+               volatile uint *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdir;
                return ((*dirp >> (31 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcdir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdir;
                return ((*dirp >> (15 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *dirp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pddir;
+               volatile ushort *dirp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddir;
                return ((*dirp >> (15 - iopin->pin)) & 1) ^ 1;
        }
        return 0;
@@ -194,10 +194,10 @@ extern __inline__ void
 iopin_set_odr(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_paodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_paodr;
                *odrp |= (1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbodr;
                *odrp |= (1 << (31 - iopin->pin));
        }
 }
@@ -206,10 +206,10 @@ extern __inline__ void
 iopin_set_act(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_paodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_paodr;
                *odrp &= ~(1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbodr;
                *odrp &= ~(1 << (31 - iopin->pin));
        }
 }
@@ -218,10 +218,10 @@ extern __inline__ uint
 iopin_is_odr(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_paodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_paodr;
                return (*odrp >> (15 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbodr;
                return (*odrp >> (31 - iopin->pin)) & 1;
        }
        return 0;
@@ -231,10 +231,10 @@ extern __inline__ uint
 iopin_is_act(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_ioport.iop_paodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_paodr;
                return ((*odrp >> (15 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile ushort *odrp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbodr;
+               volatile ushort *odrp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbodr;
                return ((*odrp >> (31 - iopin->pin)) & 1) ^ 1;
        }
        return 0;
@@ -244,16 +244,16 @@ extern __inline__ void
 iopin_set_ded(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_papar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_papar;
                *parp |= (1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *parp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbpar;
+               volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbpar;
                *parp |= (1 << (31 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcpar;
                *parp |= (1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdpar;
                *parp |= (1 << (15 - iopin->pin));
        }
 }
@@ -262,16 +262,16 @@ extern __inline__ void
 iopin_set_gen(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_papar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_papar;
                *parp &= ~(1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *parp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbpar;
+               volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbpar;
                *parp &= ~(1 << (31 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcpar;
                *parp &= ~(1 << (15 - iopin->pin));
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdpar;
                *parp &= ~(1 << (15 - iopin->pin));
        }
 }
@@ -280,16 +280,16 @@ extern __inline__ uint
 iopin_is_ded(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_papar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_papar;
                return (*parp >> (15 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *parp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbpar;
+               volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbpar;
                return (*parp >> (31 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcpar;
                return (*parp >> (15 - iopin->pin)) & 1;
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdpar;
                return (*parp >> (15 - iopin->pin)) & 1;
        }
        return 0;
@@ -299,16 +299,16 @@ extern __inline__ uint
 iopin_is_gen(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTA) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_papar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_papar;
                return ((*parp >> (15 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTB) {
-               volatile uint *parp = &((immap_t *)CFG_IMMR)->im_cpm.cp_pbpar;
+               volatile uint *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbpar;
                return ((*parp >> (31 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcpar;
                return ((*parp >> (15 - iopin->pin)) & 1) ^ 1;
        } else if (iopin->port == IOPIN_PORTD) {
-               volatile ushort *parp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pdpar;
+               volatile ushort *parp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pdpar;
                return ((*parp >> (15 - iopin->pin)) & 1) ^ 1;
        }
        return 0;
@@ -318,7 +318,7 @@ extern __inline__ void
 iopin_set_opt2(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcso;
+               volatile ushort *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcso;
                *sorp |= (1 << (15 - iopin->pin));
        }
 }
@@ -327,7 +327,7 @@ extern __inline__ void
 iopin_set_opt1(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcso;
+               volatile ushort *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcso;
                *sorp &= ~(1 << (15 - iopin->pin));
        }
 }
@@ -336,7 +336,7 @@ extern __inline__ uint
 iopin_is_opt2(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcso;
+               volatile ushort *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcso;
                return (*sorp >> (15 - iopin->pin)) & 1;
        }
        return 0;
@@ -346,7 +346,7 @@ extern __inline__ uint
 iopin_is_opt1(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *sorp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcso;
+               volatile ushort *sorp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcso;
                return ((*sorp >> (15 - iopin->pin)) & 1) ^ 1;
        }
        return 0;
@@ -356,7 +356,7 @@ extern __inline__ void
 iopin_set_falledge(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *intp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcint;
+               volatile ushort *intp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcint;
                *intp |= (1 << (15 - iopin->pin));
        }
 }
@@ -365,7 +365,7 @@ extern __inline__ void
 iopin_set_anyedge(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *intp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcint;
+               volatile ushort *intp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcint;
                *intp &= ~(1 << (15 - iopin->pin));
        }
 }
@@ -374,7 +374,7 @@ extern __inline__ uint
 iopin_is_falledge(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *intp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcint;
+               volatile ushort *intp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcint;
                return (*intp >> (15 - iopin->pin)) & 1;
        }
        return 0;
@@ -384,7 +384,7 @@ extern __inline__ uint
 iopin_is_anyedge(iopin_t *iopin)
 {
        if (iopin->port == IOPIN_PORTC) {
-               volatile ushort *intp = &((immap_t *)CFG_IMMR)->im_ioport.iop_pcint;
+               volatile ushort *intp = &((immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcint;
                return ((*intp >> (15 - iopin->pin)) & 1) ^ 1;
        }
        return 0;
index eb81f371c9644eca494caf0efc67d1e2219cd7eb..037570993ac17541671999774775e437b3547008 100644 (file)
@@ -24,7 +24,7 @@ typedef unsigned long led_id_t;
 
 static inline void __led_init (led_id_t mask, int state)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
 #ifdef STATUS_LED_PAR
        immr->STATUS_LED_PAR &= ~mask;
@@ -51,12 +51,12 @@ static inline void __led_init (led_id_t mask, int state)
 
 static inline void __led_toggle (led_id_t mask)
 {
-       ((immap_t *) CFG_IMMR)->STATUS_LED_DAT ^= mask;
+       ((immap_t *) CONFIG_SYS_IMMR)->STATUS_LED_DAT ^= mask;
 }
 
 static inline void __led_set (led_id_t mask, int state)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
 #if (STATUS_LED_ACTIVE == 0)
        if (state == STATUS_LED_ON)
index 0c4cefdf40bfc1ce2fba073b9d26d38d63af0ed9..aeb87ee7dd1f59d9d95490f0a98457cb35ff2e23 100644 (file)
@@ -33,8 +33,8 @@
  * c-code can be called.
  */
 #define SAVE_ALL_HEAD \
-       sethi   %hi(trap_setup+(CFG_RELOC_MONITOR_BASE-TEXT_BASE)), %l4; \
-       jmpl    %l4 + %lo(trap_setup+(CFG_RELOC_MONITOR_BASE-TEXT_BASE)), %l6;
+       sethi   %hi(trap_setup+(CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE)), %l4; \
+       jmpl    %l4 + %lo(trap_setup+(CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE)), %l6;
 #define SAVE_ALL \
        SAVE_ALL_HEAD \
        nop;
index eeb35d08d0014c6cc4ded496365ed0031f13ecfa..dea2857274c80cc9fa5fb360bfe907abdb819bcd 100644 (file)
@@ -36,7 +36,7 @@
  * global variables during system initialization (until we have set
  * up the memory controller so that we can use RAM).
  *
- * Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)
+ * Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t)
  */
 
 typedef struct global_data {
index ede0b1a8dbfda828bbe404453a2be183314108d0..5f8d05cc36db37c10957a45d507d59e3152e287b 100644 (file)
@@ -32,7 +32,7 @@
  * over and over again resulting in a hang (until an IRQ if lucky)
  *
  */
-#ifndef CFG_HAS_NO_CACHE
+#ifndef CONFIG_SYS_HAS_NO_CACHE
 #define READ_BYTE(var)  SPARC_NOCACHE_READ_BYTE((unsigned int)(var))
 #define READ_HWORD(var) SPARC_NOCACHE_READ_HWORD((unsigned int)(var))
 #define READ_WORD(var)  SPARC_NOCACHE_READ((unsigned int)(var))
index 23967695890e4730e070567c7f019ca64846d0bf..b51475da814e99b0e40f9ecc6d01c4a6ec0fe2c2 100644 (file)
  * 8-bit (register) and 16-bit (data) accesses might use different
  * address spaces. This is implemented by the following definitions.
  */
-#ifndef CFG_ATA_STRIDE
-#define CFG_ATA_STRIDE 1
+#ifndef CONFIG_SYS_ATA_STRIDE
+#define CONFIG_SYS_ATA_STRIDE  1
 #endif
 
-#define ATA_IO_DATA(x) (CFG_ATA_DATA_OFFSET+((x) * CFG_ATA_STRIDE))
-#define ATA_IO_REG(x)  (CFG_ATA_REG_OFFSET +((x) * CFG_ATA_STRIDE))
-#define ATA_IO_ALT(x)  (CFG_ATA_ALT_OFFSET +((x) * CFG_ATA_STRIDE))
+#define ATA_IO_DATA(x) (CONFIG_SYS_ATA_DATA_OFFSET+((x) * CONFIG_SYS_ATA_STRIDE))
+#define ATA_IO_REG(x)  (CONFIG_SYS_ATA_REG_OFFSET +((x) * CONFIG_SYS_ATA_STRIDE))
+#define ATA_IO_ALT(x)  (CONFIG_SYS_ATA_ALT_OFFSET +((x) * CONFIG_SYS_ATA_STRIDE))
 
 /*
  * I/O Register Descriptions
index 78feea5c71cc0020f5421dfd37cedba2db7b0d4b..a8a153cb0fca3b9bde3b503aef719388d335d0fb 100644 (file)
@@ -45,7 +45,7 @@ struct cmd_tbl_s {
                                        /* Implementation function      */
        int             (*cmd)(struct cmd_tbl_s *, int, int, char *[]);
        char            *usage;         /* Usage message        (short) */
-#ifdef CFG_LONGHELP
+#ifdef CONFIG_SYS_LONGHELP
        char            *help;          /* Help  message        (long)  */
 #endif
 #ifdef CONFIG_AUTO_COMPLETE
@@ -98,7 +98,7 @@ extern int cmd_get_data_size(char* arg, int default_size);
 
 #define Struct_Section  __attribute__ ((unused,section (".u_boot_cmd")))
 
-#ifdef  CFG_LONGHELP
+#ifdef  CONFIG_SYS_LONGHELP
 
 #define U_BOOT_CMD(name,maxargs,rep,cmd,usage,help) \
 cmd_tbl_t __u_boot_cmd_##name Struct_Section = {#name, maxargs, rep, cmd, usage, help}
@@ -114,6 +114,6 @@ cmd_tbl_t __u_boot_cmd_##name Struct_Section = {#name, maxargs, rep, cmd, usage}
 #define U_BOOT_CMD_MKENT(name,maxargs,rep,cmd,usage,help) \
 {#name, maxargs, rep, cmd, usage}
 
-#endif /* CFG_LONGHELP */
+#endif /* CONFIG_SYS_LONGHELP */
 
 #endif /* __COMMAND_H */
index 33c6e1087d13f91adbf6a3fad75fb6bb2bdb2f97..e6590441369365cc127092e48c8267fbf211adf5 100644 (file)
@@ -276,10 +276,10 @@ void      pciinfo       (int, int);
 #endif
 
 #if defined(CONFIG_PCI) && (defined(CONFIG_440) || defined(CONFIG_405EX))
-#   if defined(CFG_PCI_TARGET_INIT)
+#   if defined(CONFIG_SYS_PCI_TARGET_INIT)
        void    pci_target_init      (struct pci_controller *);
 #   endif
-#   if defined(CFG_PCI_MASTER_INIT)
+#   if defined(CONFIG_SYS_PCI_MASTER_INIT)
        void    pci_master_init      (struct pci_controller *);
 #   endif
     int            is_pci_host         (struct pci_controller *);
@@ -322,11 +322,11 @@ extern void  pic_write (uchar reg, uchar val);
  * Set this up regardless of board
  * type, to prevent errors.
  */
-#if defined(CONFIG_SPI) || !defined(CFG_I2C_EEPROM_ADDR)
-# define CFG_DEF_EEPROM_ADDR 0
+#if defined(CONFIG_SPI) || !defined(CONFIG_SYS_I2C_EEPROM_ADDR)
+# define CONFIG_SYS_DEF_EEPROM_ADDR 0
 #else
-# define CFG_DEF_EEPROM_ADDR CFG_I2C_EEPROM_ADDR
-#endif /* CONFIG_SPI || !defined(CFG_I2C_EEPROM_ADDR) */
+# define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
+#endif /* CONFIG_SPI || !defined(CONFIG_SYS_I2C_EEPROM_ADDR) */
 
 #if defined(CONFIG_SPI)
 extern void spi_init_f (void);
@@ -376,9 +376,9 @@ int board_postclk_init (void); /* after clocks/timebase, before env/serial */
 int board_early_init_r (void);
 void board_poweroff (void);
 
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
 int testdram(void);
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 /* $(CPU)/start.S */
 #if defined(CONFIG_5xx) || \
@@ -608,7 +608,7 @@ int init_timebase (void);
 
 /* lib_generic/vsprintf.c */
 ulong  simple_strtoul(const char *cp,char **endp,unsigned int base);
-#ifdef CFG_64BIT_VSPRINTF
+#ifdef CONFIG_SYS_64BIT_VSPRINTF
 unsigned long long     simple_strtoull(const char *cp,char **endp,unsigned int base);
 #endif
 long   simple_strtol(const char *cp,char **endp,unsigned int base);
index 0a4e817fa687a648830490ee2397cc4c2af3844b..12decfeaa57abb3b61492a7370073e58e00275c8 100644 (file)
@@ -62,7 +62,7 @@
  * as data ram for buffer descriptors, which is all we use right now.
  * Currently the first 512 and last 256 bytes are used for microcode.
  */
-#ifdef  CFG_ALLOC_DPRAM
+#ifdef  CONFIG_SYS_ALLOC_DPRAM
 
 #define CPM_DATAONLY_BASE      ((uint)0x0800)
 #define CPM_DATAONLY_SIZE      ((uint)0x0700)
 
 #endif
 
-#ifndef CFG_CPM_POST_WORD_ADDR
+#ifndef CONFIG_SYS_CPM_POST_WORD_ADDR
 #define CPM_POST_WORD_ADDR     0x07FC
 #else
-#define CPM_POST_WORD_ADDR     CFG_CPM_POST_WORD_ADDR
+#define CPM_POST_WORD_ADDR     CONFIG_SYS_CPM_POST_WORD_ADDR
 #endif
 
-#ifndef CFG_CPM_BOOTCOUNT_ADDR
+#ifndef CONFIG_SYS_CPM_BOOTCOUNT_ADDR
 #define CPM_BOOTCOUNT_ADDR     (CPM_POST_WORD_ADDR - 2*sizeof(ulong))
 #else
-#define CPM_BOOTCOUNT_ADDR     CFG_CPM_BOOTCOUNT_ADDR
+#define CPM_BOOTCOUNT_ADDR     CONFIG_SYS_CPM_BOOTCOUNT_ADDR
 #endif
 
 #define BD_IIC_START   ((uint) 0x0400) /* <- please use CPM_I2C_BASE !! */
index cee5560d14a55fef54522105535e94c5c5f09864..6d8870c2317d5a5959e163f24bd5c879350a7d09 100644 (file)
@@ -48,7 +48,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_BOOTDELAY       5
 
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                    /* undef to save memory         */
-#define CFG_PROMPT     "A3000> "               /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#undef CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "A3000> "               /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS    8               /* Max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00400000      /* Default load address         */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS     8               /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00400000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
@@ -88,8 +88,8 @@
  */
 #define CONFIG_HARD_I2C                1               /* To enable I2C support        */
 #undef CONFIG_SOFT_I2C                         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE                 0x00000000
+#define CONFIG_SYS_SDRAM_BASE                  0x00000000
 
-#define CFG_FLASH_BASE0_PRELIM         0xFF000000      /* FLASH bank on RCS#0 */
-#define CFG_FLASH_BASE1_PRELIM         0xFF000000      /* FLASH bank on RCS#1 */
-#define CFG_FLASH_BASE                 CFG_FLASH_BASE0_PRELIM
-#define CFG_FLASH_BANKS                        { CFG_FLASH_BASE0_PRELIM }
+#define CONFIG_SYS_FLASH_BASE0_PRELIM          0xFF000000      /* FLASH bank on RCS#0 */
+#define CONFIG_SYS_FLASH_BASE1_PRELIM          0xFF000000      /* FLASH bank on RCS#1 */
+#define CONFIG_SYS_FLASH_BASE                  CONFIG_SYS_FLASH_BASE0_PRELIM
+#define CONFIG_SYS_FLASH_BANKS                 { CONFIG_SYS_FLASH_BASE0_PRELIM }
 
 /* even though FLASHP_BASE is FF800000, with 4MB is RCS0, the
  * reset vector is actually located at FFB00100, but the 8245
  * takes care of us.
  */
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_EUMB_ADDR      0xFC000000
+#define CONFIG_SYS_EUMB_ADDR       0xFC000000
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x02000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM          */
 
        /* Maximum amount of RAM.
         */
-#define CFG_MAX_RAM_SIZE    0x04000000 /* 0 .. 128 MB of (S)DRAM */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x04000000  /* 0 .. 128 MB of (S)DRAM */
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_NS16550_COM1       (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM2       (CFG_EUMB_ADDR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_EUMB_ADDR + 0x4600)
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
 
-/* #define CFG_MONITOR_BASE       TEXT_BASE */
-/*#define CFG_GBL_DATA_SIZE    256*/
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+/* #define CONFIG_SYS_MONITOR_BASE        TEXT_BASE */
+/*#define CONFIG_SYS_GBL_DATA_SIZE    256*/
+#define CONFIG_SYS_GBL_DATA_SIZE      128
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 
 /*
  */
 
 #define CONFIG_SYS_CLK_FREQ  33333333  /* external frequency to pll */
-#define CFG_HZ              1000
+#define CONFIG_SYS_HZ               1000
 
        /* Bit-field values for MCCR1.
         */
-#define CFG_ROMNAL         7
-#define CFG_ROMFAL         11
-#define CFG_DBUS_SIZE      0x3
+#define CONFIG_SYS_ROMNAL          7
+#define CONFIG_SYS_ROMFAL          11
+#define CONFIG_SYS_DBUS_SIZE       0x3
 
        /* Bit-field values for MCCR2.
         */
-#define CFG_TSWAIT         0x5             /* Transaction Start Wait States timer */
-#define CFG_REFINT         0x400           /* Refresh interval FIXME: was 0t430                */
+#define CONFIG_SYS_TSWAIT          0x5             /* Transaction Start Wait States timer */
+#define CONFIG_SYS_REFINT          0x400           /* Refresh interval FIXME: was 0t430                */
 
        /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
         */
-#define CFG_BSTOPRE        121
+#define CONFIG_SYS_BSTOPRE         121
 
        /* Bit-field values for MCCR3.
         */
-#define CFG_REFREC         8       /* Refresh to activate interval */
+#define CONFIG_SYS_REFREC          8       /* Refresh to activate interval */
 
        /* Bit-field values for MCCR4.
         */
-#define CFG_PRETOACT       3       /* Precharge to activate interval FIXME: was 2      */
-#define CFG_ACTTOPRE       5       /* Activate to Precharge interval FIXME: was 5      */
-#define CFG_ACTORW         3           /* FIXME was 2 */
-#define CFG_SDMODE_CAS_LAT  3      /* SDMODE CAS latancy */
-#define CFG_SDMODE_WRAP            0       /* SDMODE wrap type */
-#define CFG_REGISTERD_TYPE_BUFFER 1
-#define CFG_EXTROM         1
-#define CFG_REGDIMM        0
+#define CONFIG_SYS_PRETOACT        3       /* Precharge to activate interval FIXME: was 2      */
+#define CONFIG_SYS_ACTTOPRE        5       /* Activate to Precharge interval FIXME: was 5      */
+#define CONFIG_SYS_ACTORW          3           /* FIXME was 2 */
+#define CONFIG_SYS_SDMODE_CAS_LAT  3       /* SDMODE CAS latancy */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type */
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_EXTROM          1
+#define CONFIG_SYS_REGDIMM         0
 
-#define CFG_PGMAX          0x32 /* how long the 8240 reatins the currently accessed page in memory FIXME: was 0x32*/
+#define CONFIG_SYS_PGMAX           0x32 /* how long the 8240 reatins the currently accessed page in memory FIXME: was 0x32*/
 
-#define CFG_SDRAM_DSCD 0x20    /* SDRAM data in sample clock delay - note bottom 3 bits MUST be 0 */
+#define CONFIG_SYS_SDRAM_DSCD  0x20    /* SDRAM data in sample clock delay - note bottom 3 bits MUST be 0 */
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START            0x3ff00000
-#define CFG_BANK1_END      0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START            0x3ff00000
-#define CFG_BANK2_END      0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START            0x3ff00000
-#define CFG_BANK3_END      0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START            0x3ff00000
-#define CFG_BANK4_END      0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START            0x3ff00000
-#define CFG_BANK5_END      0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START            0x3ff00000
-#define CFG_BANK6_END      0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START            0x3ff00000
-#define CFG_BANK7_END      0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR           0xff
-
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0xff
+
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     128     /* Max number of sectors per flash      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* Max number of sectors per flash      */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
 
        /* Warining: environment is not EMBEDDED in the U-Boot code.
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
index cc7eddc9e54dc2f05465fe4ea43a723459a5f4d0..d8303f3b8c81808690004a5bfcd5c3e62b798ba4 100644 (file)
@@ -50,7 +50,7 @@
 #undef CONFIG_BOOTARGS
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x00df0000 /* inside of SDRAM                   */
-#define CFG_INIT_RAM_END       0x0f00  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x00df0000 /* inside of SDRAM                   */
+#define CONFIG_SYS_INIT_RAM_END        0x0f00  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFD0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFD0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x0AA9  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x0556  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x0AA9  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x0556  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0002  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0000  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0004  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0002  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0000  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0004  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 1 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* use NVRAM for environment vars       */
-#define CFG_NVRAM_BASE_ADDR    0x10000000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0x10000000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
 #define CONFIG_ENV_SIZE                0x0400          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
-#define CFG_VXWORKS_MAC_PTR     (CFG_NVRAM_BASE_ADDR+0x7800) /* VxWorks eth-addr*/
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     (CONFIG_SYS_NVRAM_BASE_ADDR+0x7800) /* VxWorks eth-addr*/
 
 #else /* Use FLASH for environment variables */
 
 
 #define CONFIG_TULIP
 
-#define CFG_ETH_DEV_FN      0x0000
-#define CFG_ETH_IOBASE      0x0fff0000
+#define CONFIG_SYS_ETH_DEV_FN       0x0000
+#define CONFIG_SYS_ETH_IOBASE       0x0fff0000
 
 /*
  * Init Memory Controller:
index 9b84d1f9710b14aafe9b0ea2a8afd733bf072933..e61a3e1095f1c78eac39e485d886f15e26345e4d 100644 (file)
@@ -34,7 +34,7 @@
 #if    defined(CONFIG_NIOS_BASE_32)
 #include <configs/ADNPESC1_base_32.h>
 #else
-#error *** CFG_ERROR: you have to setup right NIOS CPU configuration
+#error *** CONFIG_SYS_ERROR: you have to setup right NIOS CPU configuration
 #endif
 
 /*------------------------------------------------------------------------
  *----------------------------------------------------------------------*/
 #define CONFIG_NIOS            1               /* NIOS-32 core         */
 #define        CONFIG_ADNPESC1         1               /* SSV ADNP/ESC1 board  */
-#define CONFIG_SYS_CLK_FREQ    CFG_NIOS_CPU_CLK/* 50 MHz core clock    */
-#define        CFG_HZ                  1000            /* 1 msec time tick     */
-#undef  CFG_CLKS_IN_HZ
+#define CONFIG_SYS_CLK_FREQ    CONFIG_SYS_NIOS_CPU_CLK/* 50 MHz core clock     */
+#define        CONFIG_SYS_HZ                   1000            /* 1 msec time tick     */
+#undef  CONFIG_SYS_CLKS_IN_HZ
 #define        CONFIG_BOARD_EARLY_INIT_F 1     /* enable early board-spec. init*/
 
 /*------------------------------------------------------------------------
  * BASE ADDRESSES / SIZE (Flash, SRAM, SDRAM)
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_SDRAM_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_SDRAM_SIZE != 0)
 
-#define CFG_SDRAM_BASE         CFG_NIOS_CPU_SDRAM_BASE
-#define CFG_SDRAM_SIZE         CFG_NIOS_CPU_SDRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_NIOS_CPU_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_SIZE          CONFIG_SYS_NIOS_CPU_SDRAM_SIZE
 
 #else
-#error *** CFG_ERROR: you have to setup any SDRAM in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup any SDRAM in NIOS CPU config
 #endif
 
-#if    defined(CFG_NIOS_CPU_SRAM_BASE) && defined(CFG_NIOS_CPU_SRAM_SIZE)
+#if    defined(CONFIG_SYS_NIOS_CPU_SRAM_BASE) && defined(CONFIG_SYS_NIOS_CPU_SRAM_SIZE)
 
-#define        CFG_SRAM_BASE           CFG_NIOS_CPU_SRAM_BASE
-#define        CFG_SRAM_SIZE           CFG_NIOS_CPU_SRAM_SIZE
+#define        CONFIG_SYS_SRAM_BASE            CONFIG_SYS_NIOS_CPU_SRAM_BASE
+#define        CONFIG_SYS_SRAM_SIZE            CONFIG_SYS_NIOS_CPU_SRAM_SIZE
 
 #else
 
-#undef CFG_SRAM_BASE
-#undef CFG_SRAM_SIZE
+#undef CONFIG_SYS_SRAM_BASE
+#undef CONFIG_SYS_SRAM_SIZE
 
 #endif
 
-#define CFG_VECT_BASE          CFG_NIOS_CPU_VEC_BASE
+#define CONFIG_SYS_VECT_BASE           CONFIG_SYS_NIOS_CPU_VEC_BASE
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION - For the most part, you can put things pretty
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_FLASH_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_FLASH_SIZE != 0)
 
-#define CFG_FLASH_BASE         CFG_NIOS_CPU_FLASH_BASE
-#define CFG_FLASH_SIZE         CFG_NIOS_CPU_FLASH_SIZE
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size      */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_NIOS_CPU_FLASH_BASE
+#define CONFIG_SYS_FLASH_SIZE          CONFIG_SYS_NIOS_CPU_FLASH_SIZE
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size      */
 
 #else
-#error *** CFG_ERROR: you have to setup any Flash memory in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup any Flash memory in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * ENVIRONMENT
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_FLASH_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_FLASH_SIZE != 0)
 
 #define        CONFIG_ENV_IS_IN_FLASH  1               /* Environment in flash */
 
 /* Mem addr of environment */
 #if    defined(CONFIG_NIOS_BASE_32)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
 #else
-#error *** CFG_ERROR: you have to setup the environment base address CONFIG_ENV_ADDR
+#error *** CONFIG_SYS_ERROR: you have to setup the environment base address CONFIG_ENV_ADDR
 #endif
 
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
  * NIOS APPLICATION CODE BASE AREA
  *----------------------------------------------------------------------*/
 #if    ((CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) == 0x1050000)
-#define        CFG_ADNPESC1_UPDATE_LOAD_ADDR   "0x2000100"
-#define CFG_ADNPESC1_NIOS_APPL_ENTRY   "0x1050000"
-#define CFG_ADNPESC1_NIOS_APPL_IDENT   "0x105000c"
-#define        CFG_ADNPESC1_NIOS_APPL_END      "0x11fffff"
-#define CFG_ADNPESC1_FILESYSTEM_BASE   "0x1200000"
-#define        CFG_ADNPESC1_FILESYSTEM_END     "0x17fffff"
+#define        CONFIG_SYS_ADNPESC1_UPDATE_LOAD_ADDR    "0x2000100"
+#define CONFIG_SYS_ADNPESC1_NIOS_APPL_ENTRY    "0x1050000"
+#define CONFIG_SYS_ADNPESC1_NIOS_APPL_IDENT    "0x105000c"
+#define        CONFIG_SYS_ADNPESC1_NIOS_APPL_END       "0x11fffff"
+#define CONFIG_SYS_ADNPESC1_FILESYSTEM_BASE    "0x1200000"
+#define        CONFIG_SYS_ADNPESC1_FILESYSTEM_END      "0x17fffff"
 #else
-#error *** CFG_ERROR: missing right appl.code base configuration, expand your config.h
+#error *** CONFIG_SYS_ERROR: missing right appl.code base configuration, expand your config.h
 #endif
-#define CFG_ADNPESC1_NIOS_IDENTIFIER   "Nios"
+#define CONFIG_SYS_ADNPESC1_NIOS_IDENTIFIER    "Nios"
 
 /*------------------------------------------------------------------------
  * BOOT ENVIRONMENT
  *----------------------------------------------------------------------*/
 #ifdef CONFIG_DNPEVA2                  /* DNP/EVA2 base board */
-#define        CFG_ADNPESC1_SLED_BOOT_OFF      "sled boot off; "
-#define        CFG_ADNPESC1_SLED_RED_BLINK     "sled red blink; "
+#define        CONFIG_SYS_ADNPESC1_SLED_BOOT_OFF       "sled boot off; "
+#define        CONFIG_SYS_ADNPESC1_SLED_RED_BLINK      "sled red blink; "
 #else
-#define        CFG_ADNPESC1_SLED_BOOT_OFF
-#define        CFG_ADNPESC1_SLED_RED_BLINK
+#define        CONFIG_SYS_ADNPESC1_SLED_BOOT_OFF
+#define        CONFIG_SYS_ADNPESC1_SLED_RED_BLINK
 #endif
 
 #define        CONFIG_BOOTDELAY        5
        "if itest.s *$appl_ident_addr == \"$appl_ident_str\"; "         \
        "then "                                                         \
                "wd off; "                                              \
-               CFG_ADNPESC1_SLED_BOOT_OFF                              \
+               CONFIG_SYS_ADNPESC1_SLED_BOOT_OFF                               \
                "go $appl_entry_addr; "                                 \
        "else "                                                         \
-               CFG_ADNPESC1_SLED_RED_BLINK                             \
+               CONFIG_SYS_ADNPESC1_SLED_RED_BLINK                              \
                "echo *** missing \"$appl_ident_str\" at $appl_ident_addr; "\
                "echo *** invalid application at $appl_entry_addr; "    \
                "echo *** stop bootup...; "                             \
  * EXTRA ENVIRONMENT
  *----------------------------------------------------------------------*/
 #ifdef CONFIG_DNPEVA2                  /* DNP/EVA2 base board */
-#define        CFG_ADNPESC1_SLED_YELLO_ON      "sled yellow on; "
-#define        CFG_ADNPESC1_SLED_YELLO_OFF     "sled yellow off; "
+#define        CONFIG_SYS_ADNPESC1_SLED_YELLO_ON       "sled yellow on; "
+#define        CONFIG_SYS_ADNPESC1_SLED_YELLO_OFF      "sled yellow off; "
 #else
-#define        CFG_ADNPESC1_SLED_YELLO_ON
-#define        CFG_ADNPESC1_SLED_YELLO_OFF
+#define        CONFIG_SYS_ADNPESC1_SLED_YELLO_ON
+#define        CONFIG_SYS_ADNPESC1_SLED_YELLO_OFF
 #endif
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "update_allowed=0\0"                                            \
-       "update_load_addr="     CFG_ADNPESC1_UPDATE_LOAD_ADDR   "\0"    \
-       "appl_entry_addr="      CFG_ADNPESC1_NIOS_APPL_ENTRY    "\0"    \
-       "appl_end_addr="        CFG_ADNPESC1_NIOS_APPL_END      "\0"    \
-       "appl_ident_addr="      CFG_ADNPESC1_NIOS_APPL_IDENT    "\0"    \
-       "appl_ident_str="       CFG_ADNPESC1_NIOS_IDENTIFIER    "\0"    \
+       "update_load_addr="     CONFIG_SYS_ADNPESC1_UPDATE_LOAD_ADDR    "\0"    \
+       "appl_entry_addr="      CONFIG_SYS_ADNPESC1_NIOS_APPL_ENTRY     "\0"    \
+       "appl_end_addr="        CONFIG_SYS_ADNPESC1_NIOS_APPL_END       "\0"    \
+       "appl_ident_addr="      CONFIG_SYS_ADNPESC1_NIOS_APPL_IDENT     "\0"    \
+       "appl_ident_str="       CONFIG_SYS_ADNPESC1_NIOS_IDENTIFIER     "\0"    \
        "appl_name=ADNPESC1/base32/linux.bin\0"                         \
        "appl_update="                                                  \
                "if itest.b $update_allowed != 0; "                     \
                "then "                                                 \
-                       CFG_ADNPESC1_SLED_YELLO_ON                      \
+                       CONFIG_SYS_ADNPESC1_SLED_YELLO_ON                       \
                        "tftp $update_load_addr $appl_name; "           \
                        "protect off $appl_entry_addr $appl_end_addr; " \
                        "era $appl_entry_addr $appl_end_addr; "         \
                        "cp.b $update_load_addr $appl_entry_addr $filesize; "\
-                       CFG_ADNPESC1_SLED_YELLO_OFF                     \
+                       CONFIG_SYS_ADNPESC1_SLED_YELLO_OFF                      \
                "else "                                                 \
                        "echo *** update not allowed (update_allowed=$update_allowed); "\
                "fi\0"                                                  \
-       "fs_base_addr="         CFG_ADNPESC1_FILESYSTEM_BASE    "\0"    \
-       "fs_end_addr="          CFG_ADNPESC1_FILESYSTEM_END     "\0"    \
+       "fs_base_addr="         CONFIG_SYS_ADNPESC1_FILESYSTEM_BASE     "\0"    \
+       "fs_end_addr="          CONFIG_SYS_ADNPESC1_FILESYSTEM_END      "\0"    \
        "fs_name=ADNPESC1/base32/romfs.img\0"                           \
        "fs_update="                                                    \
                "if itest.b $update_allowed != 0; "                     \
                "then "                                                 \
-                       CFG_ADNPESC1_SLED_YELLO_ON                      \
+                       CONFIG_SYS_ADNPESC1_SLED_YELLO_ON                       \
                        "tftp $update_load_addr $fs_name; "             \
                        "protect off $fs_base_addr $fs_end_addr; "      \
                        "era $fs_base_addr $fs_end_addr; "              \
                        "cp.b $update_load_addr $fs_base_addr $filesize; "\
-                       CFG_ADNPESC1_SLED_YELLO_OFF                     \
+                       CONFIG_SYS_ADNPESC1_SLED_YELLO_OFF                      \
                "else "                                                 \
                        "echo *** update not allowed (update_allowed=$update_allowed); "\
                "fi\0"                                                  \
        "uboot_loadnrun="                                               \
                "if ping $serverip; "                                   \
                "then "                                                 \
-                       CFG_ADNPESC1_SLED_YELLO_ON                      \
+                       CONFIG_SYS_ADNPESC1_SLED_YELLO_ON                       \
                        "tftp $update_load_addr $uboot_name; "          \
                        "wd off; "                                      \
                        "go $update_load_addr; "                        \
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_UART_NUMS != 0)
+#if    (CONFIG_SYS_NIOS_CPU_UART_NUMS != 0)
 
-#define CFG_NIOS_CONSOLE       CFG_NIOS_CPU_UART0 /* 1st UART is Cons. */
+#define CONFIG_SYS_NIOS_CONSOLE        CONFIG_SYS_NIOS_CPU_UART0 /* 1st UART is Cons. */
 
-#if    (CFG_NIOS_CPU_UART0_BR != 0)
-#define CFG_NIOS_FIXEDBAUD     1                  /* Baudrate is fixed */
-#define CONFIG_BAUDRATE                CFG_NIOS_CPU_UART0_BR
+#if    (CONFIG_SYS_NIOS_CPU_UART0_BR != 0)
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1                  /* Baudrate is fixed */
+#define CONFIG_BAUDRATE                CONFIG_SYS_NIOS_CPU_UART0_BR
 #else
-#undef CFG_NIOS_FIXEDBAUD
+#undef CONFIG_SYS_NIOS_FIXEDBAUD
 #define CONFIG_BAUDRATE                115200
 #endif
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #else
-#error *** CFG_ERROR: you have to setup at least one UART in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup at least one UART in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * TIMER FOR TIMEBASE -- Nios doesn't have the equivalent of ppc  PIT,
  * so an avalon bus timer is required.
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_TIMER_NUMS != 0) && defined(CFG_NIOS_CPU_TICK_TIMER)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER_NUMS != 0) && defined(CONFIG_SYS_NIOS_CPU_TICK_TIMER)
 
-#if    (CFG_NIOS_CPU_TICK_TIMER == 0)
+#if    (CONFIG_SYS_NIOS_CPU_TICK_TIMER == 0)
 
-#define CFG_NIOS_TMRBASE       CFG_NIOS_CPU_TIMER0 /* TIMER0 as tick   */
-#define CFG_NIOS_TMRIRQ                CFG_NIOS_CPU_TIMER0_IRQ
+#define CONFIG_SYS_NIOS_TMRBASE        CONFIG_SYS_NIOS_CPU_TIMER0 /* TIMER0 as tick    */
+#define CONFIG_SYS_NIOS_TMRIRQ         CONFIG_SYS_NIOS_CPU_TIMER0_IRQ
 
-#if    (CFG_NIOS_CPU_TIMER0_FP == 1)               /* fixed period */
+#if    (CONFIG_SYS_NIOS_CPU_TIMER0_FP == 1)                /* fixed period */
 
-#if    (CFG_NIOS_CPU_TIMER0_PER >= CFG_HZ)
-#define CFG_NIOS_TMRMS         (CFG_NIOS_CPU_TIMER0_PER / CFG_HZ)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER0_PER >= CONFIG_SYS_HZ)
+#define CONFIG_SYS_NIOS_TMRMS          (CONFIG_SYS_NIOS_CPU_TIMER0_PER / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
+#error *** CONFIG_SYS_ERROR: you have to use a timer periode greater than CONFIG_SYS_HZ
 #endif
 
-#undef CFG_NIOS_TMRCNT /* no preloadable counter value */
+#undef CONFIG_SYS_NIOS_TMRCNT  /* no preloadable counter value */
 
-#elif  (CFG_NIOS_CPU_TIMER0_FP == 0)               /* variable period */
+#elif  (CONFIG_SYS_NIOS_CPU_TIMER0_FP == 0)                /* variable period */
 
-#if    (CFG_HZ <= 1000)
-#define CFG_NIOS_TMRMS         (1000 / CFG_HZ)
+#if    (CONFIG_SYS_HZ <= 1000)
+#define CONFIG_SYS_NIOS_TMRMS          (1000 / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
+#error *** CONFIG_SYS_ERROR: sorry, CONFIG_SYS_HZ have to be less than 1000
 #endif
 
-#define        CFG_NIOS_TMRCNT         (CONFIG_SYS_CLK_FREQ / CFG_HZ)
+#define        CONFIG_SYS_NIOS_TMRCNT          (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ)
 
 #else
-#error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER0_FP correct
+#error *** CONFIG_SYS_ERROR: you have to define CONFIG_SYS_NIOS_CPU_TIMER0_FP correct
 #endif
 
-#elif  (CFG_NIOS_CPU_TICK_TIMER == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_TICK_TIMER == 1)
 
-#define CFG_NIOS_TMRBASE       CFG_NIOS_CPU_TIMER1 /* TIMER1 as tick   */
-#define CFG_NIOS_TMRIRQ                CFG_NIOS_CPU_TIMER1_IRQ
+#define CONFIG_SYS_NIOS_TMRBASE        CONFIG_SYS_NIOS_CPU_TIMER1 /* TIMER1 as tick    */
+#define CONFIG_SYS_NIOS_TMRIRQ         CONFIG_SYS_NIOS_CPU_TIMER1_IRQ
 
-#if    (CFG_NIOS_CPU_TIMER1_FP == 1)               /* fixed period */
+#if    (CONFIG_SYS_NIOS_CPU_TIMER1_FP == 1)                /* fixed period */
 
-#if    (CFG_NIOS_CPU_TIMER1_PER >= CFG_HZ)
-#define CFG_NIOS_TMRMS         (CFG_NIOS_CPU_TIMER1_PER / CFG_HZ)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER1_PER >= CONFIG_SYS_HZ)
+#define CONFIG_SYS_NIOS_TMRMS          (CONFIG_SYS_NIOS_CPU_TIMER1_PER / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
+#error *** CONFIG_SYS_ERROR: you have to use a timer periode greater than CONFIG_SYS_HZ
 #endif
 
-#undef CFG_NIOS_TMRCNT /* no preloadable counter value */
+#undef CONFIG_SYS_NIOS_TMRCNT  /* no preloadable counter value */
 
-#elif  (CFG_NIOS_CPU_TIMER1_FP == 0)               /* variable period */
+#elif  (CONFIG_SYS_NIOS_CPU_TIMER1_FP == 0)                /* variable period */
 
-#if    (CFG_HZ <= 1000)
-#define CFG_NIOS_TMRMS         (1000 / CFG_HZ)
+#if    (CONFIG_SYS_HZ <= 1000)
+#define CONFIG_SYS_NIOS_TMRMS          (1000 / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
+#error *** CONFIG_SYS_ERROR: sorry, CONFIG_SYS_HZ have to be less than 1000
 #endif
 
-#define        CFG_NIOS_TMRCNT         (CONFIG_SYS_CLK_FREQ / CFG_HZ)
+#define        CONFIG_SYS_NIOS_TMRCNT          (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ)
 
 #else
-#error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER1_FP correct
+#error *** CONFIG_SYS_ERROR: you have to define CONFIG_SYS_NIOS_CPU_TIMER1_FP correct
 #endif
 
-#endif /* CFG_NIOS_CPU_TICK_TIMER */
+#endif /* CONFIG_SYS_NIOS_CPU_TICK_TIMER */
 
 #else
-#error *** CFG_ERROR: you have to setup at least one TIMER in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup at least one TIMER in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
 #ifdef CONFIG_HW_WATCHDOG
 
 /* MAX823 supervisor -- watchdog enable port at: */
-#if    (CFG_NIOS_CPU_WDENA_PIO == 0)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO0       /* PIO0         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 1)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO1       /* PIO1         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 2)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO2       /* PIO2         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 3)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO3       /* PIO3         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 4)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO4       /* PIO4         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 5)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO5       /* PIO5         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 6)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO6       /* PIO6         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 7)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO7       /* PIO7         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 8)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO8       /* PIO8         */
-#elif  (CFG_NIOS_CPU_WDENA_PIO == 9)
-#define        CONFIG_HW_WDENA_BASE    CFG_NIOS_CPU_PIO9       /* PIO9         */
-#else
-#error *** CFG_ERROR: you have to setup at least one WDENA_PIO in NIOS CPU config
+#if    (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 0)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO0        /* PIO0         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 1)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO1        /* PIO1         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 2)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO2        /* PIO2         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 3)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO3        /* PIO3         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 4)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO4        /* PIO4         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 5)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO5        /* PIO5         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 6)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO6        /* PIO6         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 7)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO7        /* PIO7         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 8)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO8        /* PIO8         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDENA_PIO == 9)
+#define        CONFIG_HW_WDENA_BASE    CONFIG_SYS_NIOS_CPU_PIO9        /* PIO9         */
+#else
+#error *** CONFIG_SYS_ERROR: you have to setup at least one WDENA_PIO in NIOS CPU config
 #endif
 
 /* MAX823 supervisor -- watchdog trigger port at: */
-#if    (CFG_NIOS_CPU_WDTOG_PIO == 0)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO0       /* PIO0         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 1)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO1       /* PIO1         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 2)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO2       /* PIO2         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 3)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO3       /* PIO3         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 4)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO4       /* PIO4         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 5)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO5       /* PIO5         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 6)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO6       /* PIO6         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 7)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO7       /* PIO7         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 8)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO8       /* PIO8         */
-#elif  (CFG_NIOS_CPU_WDTOG_PIO == 9)
-#define        CONFIG_HW_WDTOG_BASE    CFG_NIOS_CPU_PIO9       /* PIO9         */
-#else
-#error *** CFG_ERROR: you have to setup at least one WDTOG_PIO in NIOS CPU config
+#if    (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 0)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO0        /* PIO0         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 1)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO1        /* PIO1         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 2)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO2        /* PIO2         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 3)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO3        /* PIO3         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 4)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO4        /* PIO4         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 5)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO5        /* PIO5         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 6)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO6        /* PIO6         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 7)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO7        /* PIO7         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 8)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO8        /* PIO8         */
+#elif  (CONFIG_SYS_NIOS_CPU_WDTOG_PIO == 9)
+#define        CONFIG_HW_WDTOG_BASE    CONFIG_SYS_NIOS_CPU_PIO9        /* PIO9         */
+#else
+#error *** CONFIG_SYS_ERROR: you have to setup at least one WDTOG_PIO in NIOS CPU config
 #endif
 
 #if    defined(CONFIG_NIOS_BASE_32)            /* NIOS CPU specifics   */
 #define        CONFIG_HW_WDTOG_BIT             0       /* WD trigger @ Bit 0   */
 #define        CONFIG_HW_WDPORT_WRONLY 1       /* each WD port wr/only*/
 #else
-#error *** CFG_ERROR: missing watchdog bit configuration, expand your config.h
+#error *** CONFIG_SYS_ERROR: missing watchdog bit configuration, expand your config.h
 #endif
 
 #endif /* CONFIG_HW_WATCHDOG */
 /*------------------------------------------------------------------------
  * SERIAL PERIPHAREL INTERFACE
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_SPI_NUMS == 1)
+#if    (CONFIG_SYS_NIOS_CPU_SPI_NUMS == 1)
 
 #define        CONFIG_NIOS_SPI         1               /* SPI support active   */
-#define        CFG_NIOS_SPIBASE        CFG_NIOS_CPU_SPI0
-#define        CFG_NIOS_SPIBITS        CFG_NIOS_CPU_SPI0_BITS
+#define        CONFIG_SYS_NIOS_SPIBASE CONFIG_SYS_NIOS_CPU_SPI0
+#define        CONFIG_SYS_NIOS_SPIBITS CONFIG_SYS_NIOS_CPU_SPI0_BITS
 
 #define        CONFIG_RTC_DS1306       1       /* Dallas 1306 real time clock  */
-#define CFG_SPI_RTC_DEVID      0       /*        as 1st SPI device     */
+#define CONFIG_SYS_SPI_RTC_DEVID       0       /*        as 1st SPI device     */
 
 #else
 #undef CONFIG_NIOS_SPI                         /* NO SPI support       */
 /*------------------------------------------------------------------------
  * Ethernet -- needs work!
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_LAN_NUMS == 1)
+#if    (CONFIG_SYS_NIOS_CPU_LAN_NUMS == 1)
 
-#if    (CFG_NIOS_CPU_LAN0_TYPE == 0)           /* LAN91C111            */
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_TYPE == 0)            /* LAN91C111            */
 
 #define        CONFIG_DRIVER_SMC91111                  /* Using SMC91c111      */
 #undef CONFIG_SMC91111_EXT_PHY                 /* Internal PHY         */
-#define        CONFIG_SMC91111_BASE    (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
+#define        CONFIG_SMC91111_BASE    (CONFIG_SYS_NIOS_CPU_LAN0_BASE + CONFIG_SYS_NIOS_CPU_LAN0_OFFS)
 
-#if    (CFG_NIOS_CPU_LAN0_BUSW == 32)
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_BUSW == 32)
 #define        CONFIG_SMC_USE_32_BIT   1
 #else  /* no */
 #undef CONFIG_SMC_USE_32_BIT
 #endif
 
-#elif  (CFG_NIOS_CPU_LAN0_TYPE == 1)           /* CS8900A              */
+#elif  (CONFIG_SYS_NIOS_CPU_LAN0_TYPE == 1)            /* CS8900A              */
 
        /********************************************/
        /* !!! CS8900 is __not__ tested on NIOS !!! */
        /********************************************/
 #define        CONFIG_DRIVER_CS8900                    /* Using CS8900         */
-#define        CS8900_BASE             (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
+#define        CS8900_BASE             (CONFIG_SYS_NIOS_CPU_LAN0_BASE + CONFIG_SYS_NIOS_CPU_LAN0_OFFS)
 
-#if    (CFG_NIOS_CPU_LAN0_BUSW == 32)
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_BUSW == 32)
 #undef CS8900_BUS16
 #define        CS8900_BUS32            1
 #else  /* no */
 #endif
 
 #else
-#error *** CFG_ERROR: invalid LAN0 chip type, check your NIOS CPU config
+#error *** CONFIG_SYS_ERROR: invalid LAN0 chip type, check your NIOS CPU config
 #endif
 
 #define CONFIG_ETHADDR         02:80:ae:20:60:6f
 #define CONFIG_SERVERIP                192.168.161.85
 
 #else
-#error *** CFG_ERROR: you have to setup just one LAN only or expand your config.h
+#error *** CONFIG_SYS_ERROR: you have to setup just one LAN only or expand your config.h
 #endif
 
 /*------------------------------------------------------------------------
  * STATUS LEDs
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_PIO_NUMS != 0) && defined(CFG_NIOS_CPU_LED_PIO)
+#if    (CONFIG_SYS_NIOS_CPU_PIO_NUMS != 0) && defined(CONFIG_SYS_NIOS_CPU_LED_PIO)
 
-#if    (CFG_NIOS_CPU_LED_PIO == 0)
+#if    (CONFIG_SYS_NIOS_CPU_LED_PIO == 0)
 
-#define        STATUS_LED_BASE                 CFG_NIOS_CPU_PIO0
-#define        STATUS_LED_BITS                 CFG_NIOS_CPU_PIO0_BITS
+#define        STATUS_LED_BASE                 CONFIG_SYS_NIOS_CPU_PIO0
+#define        STATUS_LED_BITS                 CONFIG_SYS_NIOS_CPU_PIO0_BITS
 #define        STATUS_LED_ACTIVE               1 /* LED on for bit == 1 */
 
-#if    (CFG_NIOS_CPU_PIO0_TYPE == 1)
+#if    (CONFIG_SYS_NIOS_CPU_PIO0_TYPE == 1)
 #define        STATUS_LED_WRONLY               1
 #else
 #undef STATUS_LED_WRONLY
 #endif
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 1)
 
-#define        STATUS_LED_BASE                 CFG_NIOS_CPU_PIO1
-#define        STATUS_LED_BITS                 CFG_NIOS_CPU_PIO1_BITS
+#define        STATUS_LED_BASE                 CONFIG_SYS_NIOS_CPU_PIO1
+#define        STATUS_LED_BITS                 CONFIG_SYS_NIOS_CPU_PIO1_BITS
 #define        STATUS_LED_ACTIVE               1 /* LED on for bit == 1 */
 
-#if    (CFG_NIOS_CPU_PIO1_TYPE == 1)
+#if    (CONFIG_SYS_NIOS_CPU_PIO1_TYPE == 1)
 #define        STATUS_LED_WRONLY               1
 #else
 #undef STATUS_LED_WRONLY
 #endif
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 2)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 2)
 
-#define        STATUS_LED_BASE                 CFG_NIOS_CPU_PIO2
-#define        STATUS_LED_BITS                 CFG_NIOS_CPU_PIO2_BITS
+#define        STATUS_LED_BASE                 CONFIG_SYS_NIOS_CPU_PIO2
+#define        STATUS_LED_BITS                 CONFIG_SYS_NIOS_CPU_PIO2_BITS
 #define        STATUS_LED_ACTIVE               1 /* LED on for bit == 1 */
 
-#if    (CFG_NIOS_CPU_PIO2_TYPE == 1)
+#if    (CONFIG_SYS_NIOS_CPU_PIO2_TYPE == 1)
 #define        STATUS_LED_WRONLY               1
 #else
 #undef STATUS_LED_WRONLY
 #endif
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 3)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 3)
 
-#error *** CFG_ERROR: status LEDs at PIO3 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO3 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 4)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 4)
 
-#error *** CFG_ERROR: status LEDs at PIO4 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO4 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 5)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 5)
 
-#error *** CFG_ERROR: status LEDs at PIO5 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO5 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 6)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 6)
 
-#error *** CFG_ERROR: status LEDs at PIO6 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO6 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 7)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 7)
 
-#error *** CFG_ERROR: status LEDs at PIO7 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO7 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 8)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 8)
 
-#error *** CFG_ERROR: status LEDs at PIO8 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO8 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 9)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 9)
 
-#error *** CFG_ERROR: status LEDs at PIO9 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO9 not supported, expand your config.h
 
 #else
-#error *** CFG_ERROR: you have to set CFG_NIOS_CPU_LED_PIO in right case
+#error *** CONFIG_SYS_ERROR: you have to set CONFIG_SYS_NIOS_CPU_LED_PIO in right case
 #endif
 
 #define        CONFIG_STATUS_LED               1 /* enable status led driver */
 #define        STATUS_LED_BIT                  (1 << 0)        /* LED[0] */
 #define        STATUS_LED_STATE                STATUS_LED_BLINKING
 #define        STATUS_LED_BOOT_STATE           STATUS_LED_OFF
-#define        STATUS_LED_PERIOD               (CFG_HZ / 2)    /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD               (CONFIG_SYS_HZ / 2)     /* ca. 1 Hz */
 #define        STATUS_LED_BOOT                 0               /* boot LED */
 
 #if    (STATUS_LED_BITS > 1)
 #define        STATUS_LED_BIT1                 (1 << 1)        /* LED[1] */
 #define        STATUS_LED_STATE1               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD1              (CFG_HZ / 10)   /* ca. 5 Hz */
+#define        STATUS_LED_PERIOD1              (CONFIG_SYS_HZ / 10)    /* ca. 5 Hz */
 #define        STATUS_LED_RED                  1               /* fail LED */
 #endif
 
 #if    (STATUS_LED_BITS > 2)
 #define        STATUS_LED_BIT2                 (1 << 2)        /* LED[2] */
 #define        STATUS_LED_STATE2               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD2              (CFG_HZ / 2)    /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD2              (CONFIG_SYS_HZ / 2)     /* ca. 1 Hz */
 #define        STATUS_LED_YELLOW               2               /* info LED */
 #endif
 
 #if    (STATUS_LED_BITS > 3)
 #define        STATUS_LED_BIT3                 (1 << 3)        /* LED[3] */
 #define        STATUS_LED_STATE3               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD3              (CFG_HZ / 2)    /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD3              (CONFIG_SYS_HZ / 2)     /* ca. 1 Hz */
 #define        STATUS_LED_GREEN                3               /* info LED */
 #endif
 
 #define        STATUS_LED_PAR                  1 /* makes status_led.h happy */
 
-#endif /* CFG_NIOS_CPU_PIO_NUMS */
+#endif /* CONFIG_SYS_NIOS_CPU_PIO_NUMS */
 
 /*------------------------------------------------------------------------
  * Diagnostics / Power On Self Tests
  *----------------------------------------------------------------------*/
-#define        CONFIG_POST                     CFG_POST_RTC
-#define        CFG_NIOS_POST_WORD_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define        CONFIG_POST                     CONFIG_SYS_POST_RTC
+#define        CONFIG_SYS_NIOS_POST_WORD_ADDR          (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 
 /*
  * BOOTP options
 #undef CONFIG_CMD_NFS
 #undef CONFIG_CMD_XIMG
 
-#if (CFG_NIOS_CPU_SPI_NUMS == 1)
+#if (CONFIG_SYS_NIOS_CPU_SPI_NUMS == 1)
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_SPI
 #endif
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define        CFG_LONGHELP                        /* undef to save memory     */
-#define        CFG_HUSH_PARSER         1           /* use "hush" command parser
+#define        CONFIG_SYS_LONGHELP                         /* undef to save memory     */
+#define        CONFIG_SYS_HUSH_PARSER          1           /* use "hush" command parser
                                               undef to save memory     */
-#define        CFG_PROMPT              "ADNPESC1 > " /* Monitor Command Prompt */
-#define        CFG_CBSIZE              1024        /* Console I/O Buffer Size  */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             64          /* max number of command args*/
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size */
+#define        CONFIG_SYS_PROMPT               "ADNPESC1 > " /* Monitor Command Prompt */
+#define        CONFIG_SYS_CBSIZE               1024        /* Console I/O Buffer Size  */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              64          /* max number of command args*/
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size */
 
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "[]> "
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "[]> "
 #endif
 
 /* Default load address        */
-#if    (CFG_SRAM_SIZE != 0)
+#if    (CONFIG_SYS_SRAM_SIZE != 0)
 
 /* default in SRAM */
-#define        CFG_LOAD_ADDR           CFG_SRAM_BASE
+#define        CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SRAM_BASE
 
-#elif  (CFG_SDRAM_SIZE != 0)
+#elif  (CONFIG_SYS_SDRAM_SIZE != 0)
 
 /* default in SDRAM */
-#if    (CFG_SDRAM_BASE == CFG_NIOS_CPU_VEC_BASE)
+#if    (CONFIG_SYS_SDRAM_BASE == CONFIG_SYS_NIOS_CPU_VEC_BASE)
 #if 1
-#define        CFG_LOAD_ADDR           (CFG_SDRAM_BASE + CFG_NIOS_CPU_VEC_SIZE)
+#define        CONFIG_SYS_LOAD_ADDR            (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_NIOS_CPU_VEC_SIZE)
 #else
-#define        CFG_LOAD_ADDR           (CFG_SDRAM_BASE + 0x400000)
+#define        CONFIG_SYS_LOAD_ADDR            (CONFIG_SYS_SDRAM_BASE + 0x400000)
 #endif
 #else
-#define        CFG_LOAD_ADDR           CFG_SDRAM_BASE
+#define        CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SDRAM_BASE
 #endif
 
 #else
-#undef CFG_LOAD_ADDR           /* force error break */
+#undef CONFIG_SYS_LOAD_ADDR            /* force error break */
 #endif
 
 /* MEM test area */
-#if    (CFG_SDRAM_SIZE != 0)
+#if    (CONFIG_SYS_SDRAM_SIZE != 0)
 
 /* SDRAM begin to stack area (1MB stack) */
-#if    (CFG_SDRAM_BASE == CFG_NIOS_CPU_VEC_BASE)
+#if    (CONFIG_SYS_SDRAM_BASE == CONFIG_SYS_NIOS_CPU_VEC_BASE)
 #if 0
-#define        CFG_MEMTEST_START       (CFG_SDRAM_BASE + CFG_NIOS_CPU_VEC_SIZE)
+#define        CONFIG_SYS_MEMTEST_START        (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_NIOS_CPU_VEC_SIZE)
 #else
-#define        CFG_MEMTEST_START       (CFG_SDRAM_BASE + 0x400000)
+#define        CONFIG_SYS_MEMTEST_START        (CONFIG_SYS_SDRAM_BASE + 0x400000)
 #endif
 #else
-#define        CFG_MEMTEST_START       CFG_SDRAM_BASE
+#define        CONFIG_SYS_MEMTEST_START        CONFIG_SYS_SDRAM_BASE
 #endif
 
-#define        CFG_MEMTEST_END         (CFG_INIT_SP - (1024 * 1024))
-#define        CFG_MEMTEST_END         (CFG_INIT_SP - (1024 * 1024))
+#define        CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_INIT_SP - (1024 * 1024))
+#define        CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_INIT_SP - (1024 * 1024))
 
 #else
-#undef CFG_MEMTEST_START       /* force error break */
-#undef CFG_MEMTEST_END
+#undef CONFIG_SYS_MEMTEST_START        /* force error break */
+#undef CONFIG_SYS_MEMTEST_END
 #endif
 
 /*
index c8428b4e79ca373b095e459d7cd4f5792a3235c2..1fe8d095be44266862c34473189aa493733d31a1 100644 (file)
  * Here we must define CPU dependencies. Any unsupported option have to
  * be undefined or defined with zero, example CPU without data cache / OCI:
  *
- *     #define CFG_NIOS_CPU_ICACHE     4096
- *     #define CFG_NIOS_CPU_DCACHE     0
- *     #undef  CFG_NIOS_CPU_OCI_BASE
- *     #undef  CFG_NIOS_CPU_OCI_SIZE
+ *     #define CONFIG_SYS_NIOS_CPU_ICACHE      4096
+ *     #define CONFIG_SYS_NIOS_CPU_DCACHE      0
+ *     #undef  CONFIG_SYS_NIOS_CPU_OCI_BASE
+ *     #undef  CONFIG_SYS_NIOS_CPU_OCI_SIZE
  */
 
 /* CPU core */
-#define        CFG_NIOS_CPU_CLK        50000000        /* NIOS CPU clock       */
-#define        CFG_NIOS_CPU_ICACHE     (0)             /* instruction cache    */
-#define        CFG_NIOS_CPU_DCACHE     (0)             /* data cache           */
-#define        CFG_NIOS_CPU_REG_NUMS   512             /* number of register   */
-#define        CFG_NIOS_CPU_MUL        0               /* 16x16 MUL:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_CLK 50000000        /* NIOS CPU clock       */
+#define        CONFIG_SYS_NIOS_CPU_ICACHE      (0)             /* instruction cache    */
+#define        CONFIG_SYS_NIOS_CPU_DCACHE      (0)             /* data cache           */
+#define        CONFIG_SYS_NIOS_CPU_REG_NUMS    512             /* number of register   */
+#define        CONFIG_SYS_NIOS_CPU_MUL 0               /* 16x16 MUL:   no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_MSTEP      1               /* 16x16 MSTEP: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_MSTEP       1               /* 16x16 MSTEP: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_STACK      0x03000000      /* stack top    addr    */
-#define        CFG_NIOS_CPU_VEC_BASE   0x02000000      /* IRQ vectors  addr    */
-#define        CFG_NIOS_CPU_VEC_SIZE   256             /*              size    */
-#define        CFG_NIOS_CPU_VEC_NUMS   64              /*              numbers */
-#define        CFG_NIOS_CPU_RST_VECT   0x00000000      /* RESET vector addr    */
-#define        CFG_NIOS_CPU_DBG_CORE   0               /* CPU debug:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_STACK       0x03000000      /* stack top    addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_BASE    0x02000000      /* IRQ vectors  addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_SIZE    256             /*              size    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_NUMS    64              /*              numbers */
+#define        CONFIG_SYS_NIOS_CPU_RST_VECT    0x00000000      /* RESET vector addr    */
+#define        CONFIG_SYS_NIOS_CPU_DBG_CORE    0               /* CPU debug:   no(0)   */
                                                /*              yes(1)  */
 
 /* The offset address in flash to check for the Nios signature "Ni".
  * (see GM_FlashExec in germs_monitor.s) */
-#define        CFG_NIOS_CPU_EXES_OFFS  0x0C
+#define        CONFIG_SYS_NIOS_CPU_EXES_OFFS   0x0C
 
 /* on-chip extensions */
-#undef CFG_NIOS_CPU_RAM_BASE                   /* on chip RAM  addr    */
-#undef CFG_NIOS_CPU_RAM_SIZE                   /* 64 KB        size    */
+#undef CONFIG_SYS_NIOS_CPU_RAM_BASE                    /* on chip RAM  addr    */
+#undef CONFIG_SYS_NIOS_CPU_RAM_SIZE                    /* 64 KB        size    */
 
-#define        CFG_NIOS_CPU_ROM_BASE   0x00000000      /* on chip ROM  addr    */
-#define        CFG_NIOS_CPU_ROM_SIZE   (2 * 1024)      /*  2 KB        size    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_BASE    0x00000000      /* on chip ROM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_SIZE    (2 * 1024)      /*  2 KB        size    */
 
-#undef CFG_NIOS_CPU_OCI_BASE                   /* OCI core     addr    */
-#undef CFG_NIOS_CPU_OCI_SIZE                   /*              size    */
+#undef CONFIG_SYS_NIOS_CPU_OCI_BASE                    /* OCI core     addr    */
+#undef CONFIG_SYS_NIOS_CPU_OCI_SIZE                    /*              size    */
 
 /* timer */
-#define        CFG_NIOS_CPU_TIMER_NUMS 1               /* number of timer      */
+#define        CONFIG_SYS_NIOS_CPU_TIMER_NUMS  1               /* number of timer      */
 
-#define        CFG_NIOS_CPU_TIMER0     0x00000840      /* TIMER0       addr    */
-#define        CFG_NIOS_CPU_TIMER0_IRQ 16              /*              IRQ     */
-#define        CFG_NIOS_CPU_TIMER0_PER 1000            /*  periode     usec    */
-#define        CFG_NIOS_CPU_TIMER0_AR  0               /*  always run: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0      0x00000840      /* TIMER0       addr    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_IRQ  16              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_PER  1000            /*  periode     usec    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_AR   0               /*  always run: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_FP  0               /*  fixed per:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_FP   0               /*  fixed per:  no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_SS  1               /*  snaphot:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_SS   1               /*  snaphot:    no(0)   */
                                                /*              yes(1)  */
 
 /* serial i/o */
-#define        CFG_NIOS_CPU_UART_NUMS  2               /* number of uarts      */
-
-#define        CFG_NIOS_CPU_UART0      0x00000800      /* UART0        addr    */
-#define        CFG_NIOS_CPU_UART0_IRQ  17              /*              IRQ     */
-#define        CFG_NIOS_CPU_UART0_BR   115200          /*  baudrate    var(0)  */
-#define        CFG_NIOS_CPU_UART0_DB   8               /*  data bit            */
-#define        CFG_NIOS_CPU_UART0_SB   1               /*  stop bit            */
-#define        CFG_NIOS_CPU_UART0_PA   0               /*  parity      none(0) */
+#define        CONFIG_SYS_NIOS_CPU_UART_NUMS   2               /* number of uarts      */
+
+#define        CONFIG_SYS_NIOS_CPU_UART0       0x00000800      /* UART0        addr    */
+#define        CONFIG_SYS_NIOS_CPU_UART0_IRQ   17              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_UART0_BR    115200          /*  baudrate    var(0)  */
+#define        CONFIG_SYS_NIOS_CPU_UART0_DB    8               /*  data bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_SB    1               /*  stop bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_PA    0               /*  parity      none(0) */
                                                /*              odd(1)  */
                                                /*              even(2) */
-#define        CFG_NIOS_CPU_UART0_HS   1               /*  handshake:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_HS    1               /*  handshake:  no(0)   */
                                                /*              crts(1) */
-#define        CFG_NIOS_CPU_UART0_EOP  0               /*  eop reg:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_EOP   0               /*  eop reg:    no(0)   */
                                                /*              yes(1)  */
 
-#define        CFG_NIOS_CPU_UART1      0x00000820      /* UART1        addr    */
-#define        CFG_NIOS_CPU_UART1_IRQ  18              /*              IRQ     */
-#define        CFG_NIOS_CPU_UART1_BR   115200          /*  baudrate    var(0)  */
-#define        CFG_NIOS_CPU_UART1_DB   8               /*  data bit            */
-#define        CFG_NIOS_CPU_UART1_SB   1               /*  stop bit            */
-#define        CFG_NIOS_CPU_UART1_PA   0               /*  parity      none(0) */
+#define        CONFIG_SYS_NIOS_CPU_UART1       0x00000820      /* UART1        addr    */
+#define        CONFIG_SYS_NIOS_CPU_UART1_IRQ   18              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_UART1_BR    115200          /*  baudrate    var(0)  */
+#define        CONFIG_SYS_NIOS_CPU_UART1_DB    8               /*  data bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART1_SB    1               /*  stop bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART1_PA    0               /*  parity      none(0) */
                                                /*              odd(1)  */
                                                /*              even(2) */
-#define        CFG_NIOS_CPU_UART1_HS   0               /*  handshake:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART1_HS    0               /*  handshake:  no(0)   */
                                                /*              crts(1) */
-#define        CFG_NIOS_CPU_UART1_EOP  0               /*  eop reg:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART1_EOP   0               /*  eop reg:    no(0)   */
                                                /*              yes(1)  */
 
 /* serial peripheral i/o */
-#define        CFG_NIOS_CPU_SPI_NUMS   1               /* number of spis       */
+#define        CONFIG_SYS_NIOS_CPU_SPI_NUMS    1               /* number of spis       */
 
-#define        CFG_NIOS_CPU_SPI0       0x000008c0      /* SPI0         addr    */
-#define        CFG_NIOS_CPU_SPI0_IRQ   25              /*              IRQ     */
-#define        CFG_NIOS_CPU_SPI0_BITS  16              /*  data bit            */
-#define        CFG_NIOS_CPU_SPI0_MA    1               /*  is master:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_SPI0        0x000008c0      /* SPI0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_SPI0_IRQ    25              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_SPI0_BITS   16              /*  data bit            */
+#define        CONFIG_SYS_NIOS_CPU_SPI0_MA     1               /*  is master:  no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_SPI0_SLN   1               /*  num slaves          */
-#define        CFG_NIOS_CPU_SPI0_TCLK  250000          /*  clock (Hz)          */
-#define        CFG_NIOS_CPU_SPI0_TDELAY 2              /*  delay (usec)        */
-#define        CFG_NIOS_CPU_SPI0_FB    0               /*  first bit   msb(0)  */
+#define        CONFIG_SYS_NIOS_CPU_SPI0_SLN    1               /*  num slaves          */
+#define        CONFIG_SYS_NIOS_CPU_SPI0_TCLK   250000          /*  clock (Hz)          */
+#define        CONFIG_SYS_NIOS_CPU_SPI0_TDELAY 2               /*  delay (usec)        */
+#define        CONFIG_SYS_NIOS_CPU_SPI0_FB     0               /*  first bit   msb(0)  */
                                                /*              lsb(1)  */
 
 /* parallel i/o */
-#define        CFG_NIOS_CPU_PIO_NUMS   14              /* number of parports   */
+#define        CONFIG_SYS_NIOS_CPU_PIO_NUMS    14              /* number of parports   */
 
-#define        CFG_NIOS_CPU_PIO0       0x00000860      /* PIO0         addr    */
-#undef CFG_NIOS_CPU_PIO0_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO0_BITS  8               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO0_TYPE  0               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0        0x00000860      /* PIO0         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO0_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_BITS   8               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_TYPE   0               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO0_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO0_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO0_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO1       0x00000870      /* PIO1         addr    */
-#undef CFG_NIOS_CPU_PIO1_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO1_BITS  8               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO1_TYPE  0               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1        0x00000870      /* PIO1         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO1_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_BITS   8               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_TYPE   0               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO1_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO1_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO1_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO2       0x00000880      /* PIO2         addr    */
-#undef CFG_NIOS_CPU_PIO2_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO2_BITS  4               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO2_TYPE  0               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2        0x00000880      /* PIO2         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO2_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_BITS   4               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_TYPE   0               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO2_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO2_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO2_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO3       0x00000890      /* PIO3         addr    */
-#undef CFG_NIOS_CPU_PIO3_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO3_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO3_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3        0x00000890      /* PIO3         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO3_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO3_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO3_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO3_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO3       0x00000890      /* PIO3         addr    */
-#undef CFG_NIOS_CPU_PIO3_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO3_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO3_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3        0x00000890      /* PIO3         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO3_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO3_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO3_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO3_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO4       0x000008a0      /* PIO4         addr    */
-#undef CFG_NIOS_CPU_PIO4_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO4_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO4_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4        0x000008a0      /* PIO4         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO4_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO4_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO4_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO4_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO5       0x000008b0      /* PIO5         addr    */
-#undef CFG_NIOS_CPU_PIO5_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO5_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO5_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5        0x000008b0      /* PIO5         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO5_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO5_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO5_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO5_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO6       0x00000900      /* PIO6         addr    */
-#define        CFG_NIOS_CPU_PIO6_IRQ   20              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO6_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO6_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6        0x00000900      /* PIO6         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_IRQ    20              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO6_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO6_EDGE  2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_EDGE   2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO6_ITYPE 1               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_ITYPE  1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO7       0x00000910      /* PIO7         addr    */
-#define        CFG_NIOS_CPU_PIO7_IRQ   31              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO7_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO7_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7        0x00000910      /* PIO7         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_IRQ    31              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO7_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO7_EDGE  2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_EDGE   2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO7_ITYPE 1               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_ITYPE  1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO8       0x00000920      /* PIO8         addr    */
-#define        CFG_NIOS_CPU_PIO8_IRQ   32              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO8_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO8_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO8        0x00000920      /* PIO8         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO8_IRQ    32              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO8_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO8_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO8_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO8_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO8_EDGE  2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO8_EDGE   2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO8_ITYPE 1               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO8_ITYPE  1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO9       0x00000930      /* PIO9         addr    */
-#define        CFG_NIOS_CPU_PIO9_IRQ   33              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO9_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO9_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO9        0x00000930      /* PIO9         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO9_IRQ    33              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO9_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO9_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO9_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO9_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO9_EDGE  2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO9_EDGE   2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO9_ITYPE 1               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO9_ITYPE  1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO10      0x00000940      /* PIO10        addr    */
-#define        CFG_NIOS_CPU_PIO10_IRQ  34              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO10_BITS 1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO10_TYPE 2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO10       0x00000940      /* PIO10        addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO10_IRQ   34              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO10_BITS  1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO10_TYPE  2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO10_CAP  1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO10_CAP   1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO10_EDGE 2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO10_EDGE  2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO10_ITYPE 1              /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO10_ITYPE 1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO11      0x00000950      /* PIO11        addr    */
-#define        CFG_NIOS_CPU_PIO11_IRQ  35              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO11_BITS 1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO11_TYPE 2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO11       0x00000950      /* PIO11        addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO11_IRQ   35              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO11_BITS  1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO11_TYPE  2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO11_CAP  1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO11_CAP   1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO11_EDGE 2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO11_EDGE  2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO11_ITYPE 1              /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO11_ITYPE 1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO12      0x00000960      /* PIO12        addr    */
-#define        CFG_NIOS_CPU_PIO12_IRQ  36              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO12_BITS 1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO12_TYPE 2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO12       0x00000960      /* PIO12        addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO12_IRQ   36              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO12_BITS  1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO12_TYPE  2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO12_CAP  1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO12_CAP   1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO12_EDGE 2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO12_EDGE  2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO12_ITYPE 1              /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO12_ITYPE 1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO13      0x00000970      /* PIO113       addr    */
-#define        CFG_NIOS_CPU_PIO13_IRQ  37              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO13_BITS 1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO13_TYPE 2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO13       0x00000970      /* PIO113       addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO13_IRQ   37              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO13_BITS  1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO13_TYPE  2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO13_CAP  1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO13_CAP   1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO13_EDGE 2               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO13_EDGE  2               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO13_ITYPE 1              /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO13_ITYPE 1               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
 /* IDE i/f */
-#define        CFG_NIOS_CPU_IDE_NUMS   2               /* number of IDE contr. */
+#define        CONFIG_SYS_NIOS_CPU_IDE_NUMS    2               /* number of IDE contr. */
 
-#define        CFG_NIOS_CPU_IDE0       0x00001000      /* IDE0         addr    */
-#define        CFG_NIOS_CPU_IDE0_IRQ   36              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_IDE0        0x00001000      /* IDE0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_IDE0_IRQ    36              /*              IRQ     */
 
-#define        CFG_NIOS_CPU_IDE1       0x00001020      /* IDE1         addr    */
-#define        CFG_NIOS_CPU_IDE1_IRQ   37              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_IDE1        0x00001020      /* IDE1         addr    */
+#define        CONFIG_SYS_NIOS_CPU_IDE1_IRQ    37              /*              IRQ     */
 
 /* memory accessibility */
-#undef CFG_NIOS_CPU_SRAM_BASE                  /* board SRAM   addr    */
-#undef CFG_NIOS_CPU_SRAM_SIZE                  /*  1 MB        size    */
+#undef CONFIG_SYS_NIOS_CPU_SRAM_BASE                   /* board SRAM   addr    */
+#undef CONFIG_SYS_NIOS_CPU_SRAM_SIZE                   /*  1 MB        size    */
 
-#define        CFG_NIOS_CPU_SDRAM_BASE 0x02000000      /* board SDRAM  addr    */
-#define        CFG_NIOS_CPU_SDRAM_SIZE (16*1024*1024)  /* 16 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_BASE  0x02000000      /* board SDRAM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_SIZE  (16*1024*1024)  /* 16 MB        size    */
 
-#define        CFG_NIOS_CPU_FLASH_BASE 0x01000000      /* board Flash  addr    */
-#define        CFG_NIOS_CPU_FLASH_SIZE (8*1024*1024)   /*  8 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_BASE  0x01000000      /* board Flash  addr    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_SIZE  (8*1024*1024)   /*  8 MB        size    */
 
 /* LAN */
-#define        CFG_NIOS_CPU_LAN_NUMS   1               /* number of LAN i/f    */
+#define        CONFIG_SYS_NIOS_CPU_LAN_NUMS    1               /* number of LAN i/f    */
 
-#define        CFG_NIOS_CPU_LAN0_BASE  0x00010000      /* LAN0         addr    */
-#define        CFG_NIOS_CPU_LAN0_OFFS  (0)             /*              offset  */
-#define        CFG_NIOS_CPU_LAN0_IRQ   20              /*              IRQ     */
-#define        CFG_NIOS_CPU_LAN0_BUSW  16              /*              buswidth*/
-#define        CFG_NIOS_CPU_LAN0_TYPE  0               /*      smc91111(0)     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BASE   0x00010000      /* LAN0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_OFFS   (0)             /*              offset  */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_IRQ    20              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BUSW   16              /*              buswidth*/
+#define        CONFIG_SYS_NIOS_CPU_LAN0_TYPE   0               /*      smc91111(0)     */
                                                /*      cs8900(1)       */
                                                /* ex:  openmac(2)      */
                                                /* ex:  alteramac(3)    */
 
 /* external extension */
-#define        CFG_NIOS_CPU_CS0_BASE   0x40000000      /* board EXT0   addr    */
-#define        CFG_NIOS_CPU_CS0_SIZE   (16*1024*1024)  /*  max. 16 MB  size    */
+#define        CONFIG_SYS_NIOS_CPU_CS0_BASE    0x40000000      /* board EXT0   addr    */
+#define        CONFIG_SYS_NIOS_CPU_CS0_SIZE    (16*1024*1024)  /*  max. 16 MB  size    */
 
-#define        CFG_NIOS_CPU_CS1_BASE   0x41000000      /* board EXT1   addr    */
-#define        CFG_NIOS_CPU_CS1_SIZE   (16*1024*1024)  /*  max. 16 MB  size    */
+#define        CONFIG_SYS_NIOS_CPU_CS1_BASE    0x41000000      /* board EXT1   addr    */
+#define        CONFIG_SYS_NIOS_CPU_CS1_SIZE    (16*1024*1024)  /*  max. 16 MB  size    */
 
-#define        CFG_NIOS_CPU_CS2_BASE   0x42000000      /* board EXT2   addr    */
-#define        CFG_NIOS_CPU_CS2_SIZE   (16*1024*1024)  /*  max. 16 MB  size    */
+#define        CONFIG_SYS_NIOS_CPU_CS2_BASE    0x42000000      /* board EXT2   addr    */
+#define        CONFIG_SYS_NIOS_CPU_CS2_SIZE    (16*1024*1024)  /*  max. 16 MB  size    */
 
-#define        CFG_NIOS_CPU_CS3_BASE   0x43000000      /* board EXT3   addr    */
-#define        CFG_NIOS_CPU_CS3_SIZE   (16*1024*1024)  /*  max. 16 MB  size    */
+#define        CONFIG_SYS_NIOS_CPU_CS3_BASE    0x43000000      /* board EXT3   addr    */
+#define        CONFIG_SYS_NIOS_CPU_CS3_SIZE    (16*1024*1024)  /*  max. 16 MB  size    */
 
 /* symbolic redefinition (undef, if not present) */
-#define        CFG_NIOS_CPU_TICK_TIMER         0       /* TIMER0: tick (needed)*/
-#undef CFG_NIOS_CPU_USER_TIMER                 /* TIMERx: users choice */
+#define        CONFIG_SYS_NIOS_CPU_TICK_TIMER          0       /* TIMER0: tick (needed)*/
+#undef CONFIG_SYS_NIOS_CPU_USER_TIMER                  /* TIMERx: users choice */
 
-#define        CFG_NIOS_CPU_PORTA_PIO          0       /* PIO0: Port A         */
-#define        CFG_NIOS_CPU_PORTB_PIO          1       /* PIO1: Port D         */
-#define        CFG_NIOS_CPU_PORTC_PIO          2       /* PIO2: Port C         */
-#define        CFG_NIOS_CPU_RCM_PIO            3       /* PIO3: RCM jumper     */
-#define        CFG_NIOS_CPU_WDENA_PIO          4       /* PIO4: watchdog enable*/
-#define        CFG_NIOS_CPU_WDTOG_PIO          5       /* PIO5: watchdog trigg.*/
+#define        CONFIG_SYS_NIOS_CPU_PORTA_PIO           0       /* PIO0: Port A         */
+#define        CONFIG_SYS_NIOS_CPU_PORTB_PIO           1       /* PIO1: Port D         */
+#define        CONFIG_SYS_NIOS_CPU_PORTC_PIO           2       /* PIO2: Port C         */
+#define        CONFIG_SYS_NIOS_CPU_RCM_PIO             3       /* PIO3: RCM jumper     */
+#define        CONFIG_SYS_NIOS_CPU_WDENA_PIO           4       /* PIO4: watchdog enable*/
+#define        CONFIG_SYS_NIOS_CPU_WDTOG_PIO           5       /* PIO5: watchdog trigg.*/
 
 /* PIOx: LED bar */
 #ifdef CONFIG_DNPEVA2                  /* DNP/EVA2 base board */
-#define        CFG_NIOS_CPU_LED_PIO            CFG_NIOS_CPU_PORTA_PIO
+#define        CONFIG_SYS_NIOS_CPU_LED_PIO             CONFIG_SYS_NIOS_CPU_PORTA_PIO
 #else
-#undef CFG_NIOS_CPU_LED_PIO                    /* no LED bar           */
+#undef CONFIG_SYS_NIOS_CPU_LED_PIO                     /* no LED bar           */
 #endif
 
 #endif /* __CONFIG_ADNPESC1_BASE_32_H */
index f677b9c80a1c6bf4454a1fa9a76dddfb1bcdfe45..688e77a731dca647200741077874549d64132380 100644 (file)
 #define CONFIG_BAUDRATE                38400   /* Console baudrate */
 
 #if 0
-#define CFG_8XX_FACT           1526    /* 32.768 kHz crystal on XTAL/EXTAL */
+#define CONFIG_SYS_8XX_FACT            1526    /* 32.768 kHz crystal on XTAL/EXTAL */
 #else
-#define CFG_8XX_FACT           12      /* 4 MHz oscillator on EXTCLK */
+#define CONFIG_SYS_8XX_FACT            12      /* 4 MHz oscillator on EXTCLK */
 #endif
 
-#define CFG_PLPRCR  (((CFG_8XX_FACT-1) << PLPRCR_MF_SHIFT) |   \
+#define CONFIG_SYS_PLPRCR  (((CONFIG_SYS_8XX_FACT-1) << PLPRCR_MF_SHIFT) |     \
                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 #define CONFIG_DRAM_50MHZ              1
@@ -53,6 +53,6 @@
 
 #include "../../board/fads/fads.h"
 
-#define CFG_PC_IDE_RESET       ((ushort)0x0008)    /* PC 12    */
+#define CONFIG_SYS_PC_IDE_RESET        ((ushort)0x0008)    /* PC 12    */
 
 #endif /* __CONFIG_H */
index 343123b4b7b1d245b94095d0c4c968c899576808..6e2907e7efb3487e9eb026cd24f2a16f636f5ec3 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0200000       /* 1 ... 4 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0200000       /* 1 ... 4 MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR                       0xFF000000
+#define CONFIG_SYS_IMMR                        0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * U-Boot for AMX board supports two types of memory extension
  * (CONFIG_AMX_RAM_EXT)
  */
 #ifdef CONFIG_AMX_RAM_EXT
-# define       CFG_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux */
+# define       CONFIG_SYS_BOOTMAPSZ    (8 << 20)       /* Initial Memory map for Linux */
 #else
-# define       CFG_BOOTMAPSZ   (4 << 20)       /* Initial Memory map for Linux */
+# define       CONFIG_SYS_BOOTMAPSZ    (4 << 20)       /* Initial Memory map for Linux */
 #endif
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     35      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  *-----------------------------------------------------------------------
  * set the PLL, the low-power modes and the reset control (15-29)
  */
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
                                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS|SCCR_COM00|SCCR_DFSYNC00|SCCR_DFBRG00|SCCR_DFNL000|SCCR_DFNH000|SCCR_DFLCD000|SCCR_DFALCD00)
+#define CONFIG_SYS_SCCR        (SCCR_TBS|SCCR_COM00|SCCR_DFSYNC00|SCCR_DFBRG00|SCCR_DFNL000|SCCR_DFNH000|SCCR_DFLCD000|SCCR_DFALCD00)
 
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /*
  * Init Memory Controller:
 #define FLASH_BASE1_PRELIM     0x60000000      /* FLASH bank #1        */
 #endif
 
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFC00000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFC00000      /* OR addr mask */
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0       */
 /*                              0x00000800     0x00000400 0x00000100 0x00000030     0x00000004 */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_5_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
 
-#define CFG_OR0_PRELIM 0xFFC00954      /* Real values for the board */
-#define CFG_BR0_PRELIM 0x40000001      /* Real values for the board */
+#define CONFIG_SYS_OR0_PRELIM  0xFFC00954      /* Real values for the board */
+#define CONFIG_SYS_BR0_PRELIM  0x40000001      /* Real values for the board */
 
 #ifndef CONFIG_AMX_RAM_EXT
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM 0xFFC00954      /* Real values for the board */
-#define CFG_BR1_PRELIM 0x60000001      /* Real values for the board */
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  0xFFC00954      /* Real values for the board */
+#define CONFIG_SYS_BR1_PRELIM  0x60000001      /* Real values for the board */
 #endif
 
 /* DSP ("Glue") Xilinx */
-#define CFG_OR6_PRELIM 0xFFFF8000      /* 32kB, 15 waits, cs after addr, no bursts */
-#define CFG_BR6_PRELIM 0x60000401      /* use GPCM for CS generation, 8 bit port */
+#define CONFIG_SYS_OR6_PRELIM  0xFFFF8000      /* 32kB, 15 waits, cs after addr, no bursts */
+#define CONFIG_SYS_BR6_PRELIM  0x60000401      /* use GPCM for CS generation, 8 bit port */
 
 /*
  * Internal Definitions
index 63d400357f73f88d34d048bb90adfe1284a42973..ec982bdc51218725a0aa9aec1919754152b57414 100644 (file)
 
 #define CONFIG_PCI     1
 
-#define CFG_HUSH_PARSER 1              /* use "hush" command parser    */
-#define CFG_PROMPT             "0> "
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER 1               /* use "hush" command parser    */
+#define CONFIG_SYS_PROMPT              "0> "
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #define CONFIG_COMMAND_EDIT    1
 #define CONFIG_COMMAND_HISTORY 1
 #define CONFIG_COMPLETE_ADDRESSES 1
 
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CFG_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #undef CONFIG_ENV_IS_IN_FLASH
@@ -62,7 +62,7 @@
 #define CONFIG_BOOTARGS                "console=ttyS0,57600"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-/* usually: (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) */
-#define CFG_PBSIZE     (CFG_CBSIZE+4+16)       /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+/* usually: (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+4+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_ALT_MEMTEST                1
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on */
-#define CFG_MEMTEST_END                0x01000000      /* 4 ... 16 MB in DRAM  */
+#define CONFIG_SYS_ALT_MEMTEST         1
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x01000000      /* 4 ... 16 MB in DRAM  */
 
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
-#undef CFG_EXT_SERIAL_CLOCK            /* external serial clock */
-#undef CFG_405_UART_ERRATA_59          /* 405GP/CR Rev. D silicon */
-
-#define CFG_NS16550_CLK                40000000
-#define CFG_DUART_CHAN         0
-#define CFG_NS16550_COM1       (0x4C000000 + 0x1000)
-#define CFG_NS16550_COM2       (0x4C800000 + 0x1000)
-#define CFG_NS16550_REG_SIZE   4
-#define CFG_NS16550            1
-#define CFG_INIT_CHAN1         1
-#define CFG_INIT_CHAN2         0
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* external serial clock */
+#undef CONFIG_SYS_405_UART_ERRATA_59           /* 405GP/CR Rev. D silicon */
+
+#define CONFIG_SYS_NS16550_CLK         40000000
+#define CONFIG_SYS_DUART_CHAN          0
+#define CONFIG_SYS_NS16550_COM1        (0x4C000000 + 0x1000)
+#define CONFIG_SYS_NS16550_COM2        (0x4C800000 + 0x1000)
+#define CONFIG_SYS_NS16550_REG_SIZE    4
+#define CONFIG_SYS_NS16550             1
+#define CONFIG_SYS_INIT_CHAN1          1
+#define CONFIG_SYS_INIT_CHAN2          0
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
-#define CFG_LOAD_ADDR          0x00200000      /* default load address */
-#define CFG_EXTBDINFO          1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x00200000      /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x20000000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 196 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x20000000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI          1
-#define CFG_PROGFLASH_BASE     CFG_FLASH_BASE
-#define CFG_CONFFLASH_BASE     0x24000000
+#define CONFIG_SYS_FLASH_CFI           1
+#define CONFIG_SYS_PROGFLASH_BASE      CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CONFFLASH_BASE      0x24000000
 
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks       */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_PROTECTION   1       /* use hardware protection          */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware protection          */
 
 /* BEG ENVIRONNEMENT FLASH */
 #ifdef CONFIG_ENV_IS_IN_FLASH
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
-#define CFG_NVRAM_BASE_ADDR    0xf0000000      /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         0x1ff8          /* NVRAM size   */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0000000      /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          0x1ff8          /* NVRAM size   */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars */
 #define CONFIG_ENV_ADDR            \
-    (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)       /* Env  */
+    (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE) /* Env  */
 #endif
 
 /*
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0               /* FLASH bank #1        */
 
 /* Configuration Port location */
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
 
-#define CFG_INIT_RAM_ADDR      0x400000  /* inside of SDRAM                     */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x400000  /* inside of SDRAM                     */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
 
 /* JFFS2 stuff */
 
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    1
-#define CFG_JFFS2_FIRST_SECTOR 1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  1
 
 #define CONFIG_NET_MULTI
 #define CONFIG_E1000
 
-#define CFG_ETH_DEV_FN         0x0800
-#define CFG_ETH_IOBASE         0x31000000
-#define CFG_ETH_MEMBASE                0x32000000
+#define CONFIG_SYS_ETH_DEV_FN          0x0800
+#define CONFIG_SYS_ETH_IOBASE          0x31000000
+#define CONFIG_SYS_ETH_MEMBASE         0x32000000
 
 #endif /* __CONFIG_H */
index 4d6b7ac449243ba43f697c40aa19b4e1a6bffc75..7453518bfdd91cb0c5189801fea628c025be8c23 100644 (file)
 
 #undef CONFIG_BOOTARGS
 
-#define CFG_USB_LOAD_COMMAND   "fatload usb 0 200000 pImage;"          \
+#define CONFIG_SYS_USB_LOAD_COMMAND    "fatload usb 0 200000 pImage;"          \
                                "fatload usb 0 300000 pImage.initrd"
-#define CFG_USB_SELF_COMMAND   "usb start;run usb_load;usb stop;"      \
+#define CONFIG_SYS_USB_SELF_COMMAND    "usb start;run usb_load;usb stop;"      \
                                "run ramargs addip addcon usbargs;"     \
                                "bootm 200000 300000"
-#define CFG_USB_ARGS           "setenv bootargs $(bootargs) usbboot=1"
-#define CFG_BOOTLIMIT          "3"
-#define CFG_ALT_BOOTCOMMAND    "run usb_self;reset"
+#define CONFIG_SYS_USB_ARGS            "setenv bootargs $(bootargs) usbboot=1"
+#define CONFIG_SYS_BOOTLIMIT           "3"
+#define CONFIG_SYS_ALT_BOOTCOMMAND     "run usb_self;reset"
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                       \
        "hostname=abg405\0"                                             \
        "netmask=255.255.0.0\0"                                         \
        "serverip=10.0.0.190\0"                                         \
        "splashimage=ffe80000\0"                                        \
-       "usb_load="CFG_USB_LOAD_COMMAND"\0"                             \
-       "usb_self="CFG_USB_SELF_COMMAND"\0"                             \
-       "usbargs="CFG_USB_ARGS"\0"                                      \
-       "bootlimit="CFG_BOOTLIMIT"\0"                                   \
-       "altbootcmd="CFG_ALT_BOOTCOMMAND"\0"                            \
+       "usb_load="CONFIG_SYS_USB_LOAD_COMMAND"\0"                              \
+       "usb_self="CONFIG_SYS_USB_SELF_COMMAND"\0"                              \
+       "usbargs="CONFIG_SYS_USB_ARGS"\0"                                       \
+       "bootlimit="CONFIG_SYS_BOOTLIMIT"\0"                                    \
+       "altbootcmd="CONFIG_SYS_ALT_BOOTCOMMAND"\0"                             \
        ""
 #define CONFIG_BOOTCOMMAND     "run flash_self;reset"
 
 #define CONFIG_ETHADDR         00:02:27:8e:00:00
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 #undef  CONFIG_WATCHDOG                        /* watchdog disabled */
 
 #define CONFIG_RTC_MC146818            /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR 0xF0000500 /* RTC Base Address */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR 0xF0000500 /* RTC Base Address */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0 */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM */
 
-#define CFG_EXT_SERIAL_CLOCK    14745600 /* use external serial clock   */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    14745600 /* use external serial clock   */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE      \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 
 #define CONFIG_VERSION_VARIABLE        1       /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*
  * PCI stuff
 
 #define CONFIG_PCI_SCAN_SHOW           /* print pci devices @ startup  */
 #define CONFIG_PCI_SKIP_HOST_BRIDGE 1
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*
  * IDE/ATA stuff
 #undef  CONFIG_IDE_LED                 /* no led for ide supported */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported */
 
-#define CFG_IDE_MAXBUS         1               /* max. 1 IDE busses */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* max. 1 IDE busses */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register access */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register access */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers */
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MONITOR_BASE       0xFFF80000
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Monitor */
-#define CFG_MALLOC_LEN         (2*1024*1024)   /* Reserve 2MB for malloc() */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MONITOR_BASE        0xFFF80000
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (2*1024*1024)   /* Reserve 2MB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Init. Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Init. Memory map for Linux */
 
 /*
  * FLASH organization
 extern int flash_banks;
 #endif
 
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
-#define CFG_MAX_FLASH_BANKS    flash_banks /* max num of flash banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     flash_banks /* max num of flash banks */
                                            /* updated in board_early_init_r */
-#define CFG_MAX_FLASH_BANKS_DETECT 2
-#define CFG_FLASH_QUIET_TEST   1
-#define CFG_FLASH_INCREMENT    0x01000000
-#define CFG_FLASH_PROTECTION   1       /* use hardware protection */
-#define CFG_FLASH_AUTOPROTECT_LIST { \
+#define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 2
+#define CONFIG_SYS_FLASH_QUIET_TEST    1
+#define CONFIG_SYS_FLASH_INCREMENT     0x01000000
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware protection */
+#define CONFIG_SYS_FLASH_AUTOPROTECT_LIST { \
                                {0xfe000000, 0x500000}, \
                                {0xffe80000, 0x180000} \
                                }
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster) */
-#define CFG_FLASH_BANKS_LIST   { \
-                               CFG_FLASH_BASE, \
-                               CFG_FLASH_BASE + CFG_FLASH_INCREMENT \
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { \
+                               CONFIG_SYS_FLASH_BASE, \
+                               CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_INCREMENT \
                                }
-#define CFG_FLASH_EMPTY_INFO   /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO    /* print 'E' for empty sector on flinfo */
 
 /*
  * Environment Variable setup
@@ -297,30 +297,30 @@ extern int flash_banks;
 #define CONFIG_ENV_SIZE                0x800   /* 2048 bytes may be used for env vars*/
 #define CONFIG_ENV_OVERWRITE   1       /* allow overwriting vendor vars */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500      /* NVRAM base address */
-#define CFG_NVRAM_SIZE         242             /* NVRAM size */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500      /* NVRAM base address */
+#define CONFIG_SYS_NVRAM_SIZE          242             /* NVRAM size */
 
 /*
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08 */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* Bytes of address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08 */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address */
 /* mask of address bits that overflow into the "EEPROM chip address" */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10 /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10 /* and takes up to 10 msec */
 
 /*
  * External Bus Controller (EBC) Setup
  */
-#define FLASH0_BA       (CFG_FLASH_BASE + CFG_FLASH_INCREMENT) /* FLASH 0 BA */
-#define FLASH1_BA       CFG_FLASH_BASE      /* FLASH 1 Base Address          */
+#define FLASH0_BA       (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_INCREMENT) /* FLASH 0 BA */
+#define FLASH1_BA       CONFIG_SYS_FLASH_BASE      /* FLASH 1 Base Address          */
 #define CAN_BA          0xF0000000          /* CAN Base Address              */
 #define DUART0_BA       0xF0000400          /* DUART Base Address            */
 #define DUART1_BA       0xF0000408          /* DUART Base Address            */
@@ -333,97 +333,97 @@ extern int flash_banks;
 #define PCMCIA2_BA      0x28000000          /* PCMCIA Slot 2 Base Address    */
 #define VGA_BA          0xF1000000          /* Epson VGA Base Address        */
 
-#define CFG_FPGA_BASE_ADDR      FPGA_BA     /* FPGA internal Base Address    */
+#define CONFIG_SYS_FPGA_BASE_ADDR      FPGA_BA     /* FPGA internal Base Address    */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                               */
-#define CFG_EBC_PB0AP   0x92015480
-#define CFG_EBC_PB0CR   FLASH0_BA | 0x9A000 /* BAS=0xFF0,BS=16MB,BU=R/W,BW=16bit*/
-#define CFG_EBC_PB0AP_HWREV8 CFG_EBC_PB0AP
-#define CFG_EBC_PB0CR_HWREV8 FLASH1_BA | 0xBA000 /* BS=32MB */
+#define CONFIG_SYS_EBC_PB0AP   0x92015480
+#define CONFIG_SYS_EBC_PB0CR   FLASH0_BA | 0x9A000 /* BAS=0xFF0,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB0AP_HWREV8 CONFIG_SYS_EBC_PB0AP
+#define CONFIG_SYS_EBC_PB0CR_HWREV8 FLASH1_BA | 0xBA000 /* BS=32MB */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                               */
-#define CFG_EBC_PB1AP   0x92015480
-#define CFG_EBC_PB1CR   FLASH1_BA | 0x9A000 /* BAS=0xFE0,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB1AP   0x92015480
+#define CONFIG_SYS_EBC_PB1CR   FLASH1_BA | 0x9A000 /* BAS=0xFE0,BS=16MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 2 (CAN0, 1, RTC, Duart) initialization                           */
-#define CFG_EBC_PB2AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR   CAN_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR   CAN_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (CompactFlash IDE, FPGA internal) initialization               */
-#define CFG_EBC_PB3AP   0x010059C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR   CF_BA | 0x1A000     /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP   0x010059C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR   CF_BA | 0x1A000     /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 4 (PCMCIA Slot 1) initialization                                 */
-#define CFG_EBC_PB4AP   0x050007C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB4CR   PCMCIA1_BA | 0xFA000 /*BAS=0x200,BS=128MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB4AP   0x050007C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB4CR   PCMCIA1_BA | 0xFA000 /*BAS=0x200,BS=128MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 5 (Epson VGA) initialization                                     */
-#define CFG_EBC_PB5AP   0x03805380   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=0 */
-#define CFG_EBC_PB5CR   VGA_BA | 0x5A000    /* BAS=0xF10,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB5AP   0x03805380   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=0 */
+#define CONFIG_SYS_EBC_PB5CR   VGA_BA | 0x5A000    /* BAS=0xF10,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 6 (PCMCIA Slot 2) initialization                                 */
-#define CFG_EBC_PB6AP   0x050007C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB6CR   PCMCIA2_BA | 0xFA000 /*BAS=0x280,BS=128MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB6AP   0x050007C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB6CR   PCMCIA2_BA | 0xFA000 /*BAS=0x280,BS=128MB,BU=R/W,BW=16bit*/
 
 /*
  * FPGA stuff
  */
 
 /* FPGA internal regs */
-#define CFG_FPGA_CTRL           0x008
-#define CFG_FPGA_CTRL2          0x00a
+#define CONFIG_SYS_FPGA_CTRL           0x008
+#define CONFIG_SYS_FPGA_CTRL2          0x00a
 
 /* FPGA Control Reg */
-#define CFG_FPGA_CTRL_CF_RESET  0x0001
-#define CFG_FPGA_CTRL_WDI       0x0002
-#define CFG_FPGA_CTRL_PS2_RESET 0x0020
+#define CONFIG_SYS_FPGA_CTRL_CF_RESET  0x0001
+#define CONFIG_SYS_FPGA_CTRL_WDI       0x0002
+#define CONFIG_SYS_FPGA_CTRL_PS2_RESET 0x0020
 
-#define CFG_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE       80*1024     /* 80kByte is enough for XC2S50  */
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       80*1024     /* 80kByte is enough for XC2S50  */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*
  * LCD Setup
  */
-#define CFG_LCD_BIG_MEM                (VGA_BA + 0x200000) /* S1D13806 Mem Base */
-#define CFG_LCD_BIG_REG                VGA_BA /* S1D13806 Reg Base */
+#define CONFIG_SYS_LCD_BIG_MEM         (VGA_BA + 0x200000) /* S1D13806 Mem Base */
+#define CONFIG_SYS_LCD_BIG_REG         VGA_BA /* S1D13806 Reg Base */
 
 #define CONFIG_LCD_BIG         2 /* Epson S1D13806 used */
 
 /* Image information... */
 #define CONFIG_LCD_USED                CONFIG_LCD_BIG
 
-#define CFG_LCD_MEM            CFG_LCD_BIG_MEM
-#define CFG_LCD_REG            CFG_LCD_BIG_REG
+#define CONFIG_SYS_LCD_MEM             CONFIG_SYS_LCD_BIG_MEM
+#define CONFIG_SYS_LCD_REG             CONFIG_SYS_LCD_BIG_REG
 
-#define CFG_VIDEO_LOGO_MAX_SIZE (1 << 20)
+#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (1 << 20)
 
 /*
  * Definitions for initial stack pointer and data area (in data cache)
  */
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
 
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128 /* reserved bytes for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* reserved bytes for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 /* reserve some memory for BOOT limit info */
-#define CFG_INIT_SP_OFFSET     (CFG_GBL_DATA_OFFSET - 16)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_GBL_DATA_OFFSET - 16)
 
 #ifdef CONFIG_BOOTCOUNT_LIMIT /* reserve 2 word for bootcount limit */
-#define CFG_BOOTCOUNT_ADDR (CFG_GBL_DATA_OFFSET - 8)
+#define CONFIG_SYS_BOOTCOUNT_ADDR (CONFIG_SYS_GBL_DATA_OFFSET - 8)
 #endif
 
 /*
@@ -439,10 +439,10 @@ extern int flash_banks;
  */
 #define CONFIG_USB_OHCI_NEW    1
 #define CONFIG_PCI_OHCI                1
-#define CFG_OHCI_SWAP_REG_ACCESS 1
-#define CFG_USB_OHCI_MAX_ROOT_PORTS 15
-#define CFG_USB_OHCI_SLOT_NAME "ohci_pci"
+#define CONFIG_SYS_OHCI_SWAP_REG_ACCESS 1
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 15
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "ohci_pci"
 #define CONFIG_USB_STORAGE     1
-#define CFG_USB_OHCI_BOARD_INIT 1
+#define CONFIG_SYS_USB_OHCI_BOARD_INIT 1
 
 #endif /* __CONFIG_H */
index 18ca122a908972e1ca10bec027a9124abddc95d9..864774c229a6e686adc16e009486305d019c4d55 100644 (file)
@@ -65,7 +65,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 #define CONFIG_MX_CYCLIC        1       /* enable mdc/mwc commands      */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_EXT_SERIAL_CLOCK   14745600 /* use external serial clock   */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    14745600 /* use external serial clock   */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 
 #define CONFIG_PCI_BOOTDELAY   0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0403 /* PCI Device ID: ARISTO405     */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xfff00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xfff00001      /* 1MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0403  /* PCI Device ID: ARISTO405     */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xfff00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xfff00001      /* 1MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                0xFFFB0000      /* Address of Environment Sector*/
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (CAN0, 1, 2, 3) initialization                                        */
-#define CFG_EBC_PB1AP          0x01000380  /* enable Ready, BEM=0              */
-#define CFG_EBC_PB1CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x01000380  /* enable Ready, BEM=0              */
+#define CONFIG_SYS_EBC_PB1CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (Expension Bus) initialization                                        */
-#define CFG_EBC_PB2AP          0x01000280  /* disable Ready, BEM=0             */
-#define CFG_EBC_PB2CR          0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x01000280  /* disable Ready, BEM=0             */
+#define CONFIG_SYS_EBC_PB2CR           0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (16552) initialization                                                */
-#define CFG_EBC_PB3AP          0x01000380  /* enable Ready, BEM=0              */
-#define CFG_EBC_PB3CR          0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB3AP           0x01000380  /* enable Ready, BEM=0              */
+#define CONFIG_SYS_EBC_PB3CR           0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 4 (FPGA regs) initialization                                    */
-#define CFG_EBC_PB4AP          0x01005380  /* enable Ready, BEM=0              */
-#define CFG_EBC_PB4CR          0xF031C000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=32bit */
+#define CONFIG_SYS_EBC_PB4AP           0x01005380  /* enable Ready, BEM=0              */
+#define CONFIG_SYS_EBC_PB4CR           0xF031C000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=32bit */
 
 /* Memory Bank 5 (Flash Bank 1/DUMMY) initialization                           */
-#define CFG_EBC_PB5AP          0x92015480
-#define CFG_EBC_PB5CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB5AP           0x92015480
+#define CONFIG_SYS_EBC_PB5CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
 
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
index 9b08af51b798ce2e5819bd6a995e209d6c58e74c..bcc85ee0b05ef0306f2e3eb00f3daee134076d0e 100644 (file)
@@ -51,7 +51,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818            /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000500 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000500 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #undef CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE }
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE }
 #define NAND_MAX_CHIPS          1
-#define CFG_MAX_NAND_DEVICE    1         /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1         /* Max number of NAND devices */
 #define NAND_BIG_DELAY_US      25
 
-#define CFG_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
-#define CFG_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
-#define CFG_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
-#define CFG_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
+#define CONFIG_SYS_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
 
-#define CFG_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
-#define CFG_NAND_QUIET          1
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
+#define CONFIG_SYS_NAND_QUIET          1
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #undef CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* test-only */
-#define CFG_JFFS2_FIRST_BANK   0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS    1           /* ! second bank contains U-Boot */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_SIZE                0x700   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-/*#define CFG_EBC_PB0AP                  0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+/*#define CONFIG_SYS_EBC_PB0AP           0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization             */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (16 Bit Peripheral: FPGA internal, dig. IO) initialization    */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 #define CAN_BA         0xF0000000          /* CAN Base Address                 */
 #define DUART0_BA      0xF0000400          /* DUART Base Address               */
 #define DUART2_BA      0xF0000410          /* DUART Base Address               */
 #define DUART3_BA      0xF0000418          /* DUART Base Address               */
 #define RTC_BA         0xF0000500          /* RTC Base Address                 */
-#define CFG_NAND_BASE  0xF4000000
+#define CONFIG_SYS_NAND_BASE   0xF4000000
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      128*1024    /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs
  */
-#define CFG_GPIO0_OSRH         0x40000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-#define CFG_GPIO0_ISR1L                0x15555445
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xF7FE0014
-
-#define CFG_DUART_RST          (0x80000000 >> 14)
+#define CONFIG_SYS_GPIO0_OSRH          0x40000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xF7FE0014
+
+#define CONFIG_SYS_DUART_RST           (0x80000000 >> 14)
 
 /*
  * Internal Definitions
index 8efea005d8d588534882f1a45e69a8638fd3ba24..2450adb7d31e2d39641e6922fec9e8f861601d3c 100644 (file)
 
 #define CONFIG_CMD_SDRAM               1       /* SDRAM DIMM SPD info printout */
 #define CONFIG_ENABLE_36BIT_PHYS       1
-#undef CFG_DRAM_TEST
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
 #define PCI_SPEED              33333000        /* CPLD currenlty does not have PCI setup info */
-#define CFG_PCI1_ADDR  (CFG_CCSRBAR+0x8000)
-#define CFG_PCI2_ADDR  (CFG_CCSRBAR+0x9000)
-#define CFG_PCIE1_ADDR (CFG_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCI1_ADDR   (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCI2_ADDR   (CONFIG_SYS_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCIE1_ADDR  (CONFIG_SYS_CCSRBAR+0xa000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
 #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER      /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define SPD_EEPROM_ADDRESS     0x51    /* CTLR 0 DIMM 0 */
 
 /* Manually set up DDR parameters */
-#define CFG_SDRAM_SIZE 1024            /* DDR is 1024MB */
-#define CFG_DDR_CS0_BNDS       0x0000000f      /* 0-1024 */
-#define CFG_DDR_CS0_CONFIG     0x80000102
-#define CFG_DDR_TIMING_0       0x00260802
-#define CFG_DDR_TIMING_1       0x38355322
-#define CFG_DDR_TIMING_2       0x039048c7
-#define CFG_DDR_CONTROL        0xc2000000      /* unbuffered,no DYN_PWR */
-#define CFG_DDR_MODE   0x00000432
-#define CFG_DDR_INTERVAL       0x05150100
+#define CONFIG_SYS_SDRAM_SIZE  1024            /* DDR is 1024MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000f      /* 0-1024 */
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80000102
+#define CONFIG_SYS_DDR_TIMING_0        0x00260802
+#define CONFIG_SYS_DDR_TIMING_1        0x38355322
+#define CONFIG_SYS_DDR_TIMING_2        0x039048c7
+#define CONFIG_SYS_DDR_CONTROL 0xc2000000      /* unbuffered,no DYN_PWR */
+#define CONFIG_SYS_DDR_MODE    0x00000432
+#define CONFIG_SYS_DDR_INTERVAL        0x05150100
 #define DDR_SDRAM_CFG  0x43000000
 
 #undef CONFIG_CLOCKS_IN_MHZ
  * 1111 1000 0000 0000 0000 1110 0110 0101 = f8000E65    ORx
  */
 
-#define CFG_BOOT_BLOCK         0xf8000000      /* boot TLB block */
-#define CFG_FLASH_BASE         CFG_BOOT_BLOCK  /* start of FLASH 128M */
+#define CONFIG_SYS_BOOT_BLOCK          0xf8000000      /* boot TLB block */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_BOOT_BLOCK   /* start of FLASH 128M */
 
-#define CFG_BR0_PRELIM         0xf8001001
+#define CONFIG_SYS_BR0_PRELIM          0xf8001001
 
-#define        CFG_OR0_PRELIM          0xf8000E65
+#define        CONFIG_SYS_OR0_PRELIM           0xf8000E65
 
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks      */
-#define CFG_MAX_FLASH_SECT     1024            /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   512000  /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   8000    /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024            /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    512000  /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    8000    /* Flash Write Timeout (ms) */
 
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER    1
-#define CFG_FLASH_CFI           1
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI           1
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 /*
  * Flash on the LocalBus
  */
-#define CFG_LBC_CACHE_BASE     0xf0000000      /* Localbus cacheable    */
+#define CONFIG_SYS_LBC_CACHE_BASE      0xf0000000      /* Localbus cacheable    */
 
 /* Memory */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_INIT_L2_ADDR       0xf8f80000      /* relocate boot L2SRAM */
+#define CONFIG_SYS_INIT_L2_ADDR        0xf8f80000      /* relocate boot L2SRAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE \
+#define CONFIG_SYS_BAUDRATE_TABLE \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_EEPROM_ADDR    0x57
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CFG_PCI_PHYS           0x80000000      /* 1G PCI TLB */
+#define CONFIG_SYS_PCI_PHYS            0x80000000      /* 1G PCI TLB */
 
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
 
 #ifdef CONFIG_PCI2
-#define CFG_PCI2_MEM_BASE      0xC0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xe2800000
-#define CFG_PCI2_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI2_MEM_BASE       0xC0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xe2800000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x00100000      /* 1M */
 #endif
 
 #ifdef CONFIG_PCIE1
-#define CFG_PCIE1_MEM_BASE     0xa0000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xe3000000
-#define CFG_PCIE1_IO_SIZE      0x00100000      /*   1M */
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xe3000000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00100000      /*   1M */
 #endif
 
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 #endif /* CONFIG_PCI */
 
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index fcac64712770014531dd5fe34f063d2c3c2dc354..e4d30a155c669ac817814aa7abc1e0e62da43309 100644 (file)
 #define CONFIG_HAS_ETH1
 
 #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII_INIT                1
 #define FEC_ENET
 #endif /* CONFIG_ETHER_ON_FEC || CONFIG_ETHER_ON_FEC2 */
 
 #define CONFIG_8xx_OSCLK               10000000 /* 10 MHz oscillator on EXTCLK */
 #define CONFIG_8xx_CPUCLK_DEFAULT      50000000
-#define CFG_8xx_CPUCLK_MIN             40000000
+#define CONFIG_SYS_8xx_CPUCLK_MIN              40000000
 #ifdef CONFIG_MPC852T
-#define CFG_8xx_CPUCLK_MAX             50000000
+#define CONFIG_SYS_8xx_CPUCLK_MAX              50000000
 #else
-#define CFG_8xx_CPUCLK_MAX             133000000
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000
 #endif /* CONFIG_MPC852T */
 
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                           /* #undef to save memory        */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* Max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                            /* #undef to save memory        */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)  /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          0x400000        /* Default load address         */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* Default load address         */
 
-#define CFG_HZ                 1000            /* Decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* Decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
- * RAM configuration (note that CFG_SDRAM_BASE must be zero)
+ * RAM configuration (note that CONFIG_SYS_SDRAM_BASE must be zero)
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_MAX_SIZE     0x01000000      /* Up to 16 Mbyte               */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_MAX_SIZE      0x01000000      /* Up to 16 Mbyte               */
 
-#define CFG_MAMR               0x00002114
+#define CONFIG_SYS_MAMR                0x00002114
 
 /*
  * 4096        Up to 4096 SDRAM rows
  * 4   Number of refresh cycles per period
  * 64  Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK                ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK         ((4096 * 32 * 1000) / (4 * 64))
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x00500000      /* 1 ... 5 MB in SDRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x00500000      /* 1 ... 5 MB in SDRAM          */
 
-#define CFG_RESET_ADDRESS      0x09900000
+#define CONFIG_SYS_RESET_ADDRESS       0x09900000
 
 /*-----------------------------------------------------------------------
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 KB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 KB for Monitor   */
 #ifdef CONFIG_BZIP2
-#define CFG_MALLOC_LEN         (2500 << 10)    /* Reserve ~2.5 MB for malloc() */
+#define CONFIG_SYS_MALLOC_LEN          (2500 << 10)    /* Reserve ~2.5 MB for malloc() */
 #else
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 KB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 KB for malloc()  */
 #endif /* CONFIG_BZIP2 */
 
 /*-----------------------------------------------------------------------
  * Flash organisation
  */
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CFG_MAX_FLASH_BANKS    1               /* Max number of flash banks    */
-#define CFG_MAX_FLASH_SECT     128             /* Max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max number of flash banks    */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max num of sects on one chip */
 
 /* Environment is in flash */
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000         /* We use one complete sector   */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 
 #define CONFIG_ENV_OVERWRITE
 
-#define CFG_OR0_PRELIM         0xFF000774
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BR_PS_16 | BR_MS_GPCM | BR_V)
+#define CONFIG_SYS_OR0_PRELIM          0xFF000774
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BR_PS_16 | BR_MS_GPCM | BR_V)
 
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 /*-----------------------------------------------------------------------
  * Internal Memory Map Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00          /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128  /* Size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00          /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* Size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Configuration registers
  */
 #ifdef CONFIG_WATCHDOG
-#define CFG_SYPCR              (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
+#define CONFIG_SYS_SYPCR               (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
                                 SYPCR_SWF  | SYPCR_SWE | SYPCR_SWRI | \
                                 SYPCR_SWP)
 #else
-#define CFG_SYPCR              (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
+#define CONFIG_SYS_SYPCR               (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
                                 SYPCR_SWF  | SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
-#define CFG_SIUMCR             (SIUMCR_MLRC01 | SIUMCR_DBGC11)
+#define CONFIG_SYS_SIUMCR              (SIUMCR_MLRC01 | SIUMCR_DBGC11)
 
 /* TBSCR - Time Base Status and Control Register */
-#define CFG_TBSCR              (TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR               (TBSCR_TBF | TBSCR_TBE)
 
 /* PISCR - Periodic Interrupt Status and Control */
-#define CFG_PISCR              (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR               (PISCR_PS | PISCR_PITF)
 
 /* PLPRCR - PLL, Low-Power, and Reset Control Register */
-/* #define CFG_PLPRCR          PLPRCR_TEXPS */
+/* #define CONFIG_SYS_PLPRCR           PLPRCR_TEXPS */
 
 /* SCCR - System Clock and reset Control Register */
 #define SCCR_MASK              SCCR_EBDF11
-#define CFG_SCCR               SCCR_RTSEL
+#define CONFIG_SYS_SCCR                SCCR_RTSEL
 
-#define CFG_DER                        0
+#define CONFIG_SYS_DER                 0
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx chips                 */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx chips                 */
 
 /*-----------------------------------------------------------------------
  * Internal Definitions
index a4f7f9a28fb706434e9f34cb0933722a0571de3c..e4c1c9ca3e6fc6dc26ff30f3428b24ecc3a93bdb 100644 (file)
@@ -31,9 +31,9 @@
 
 #define CONFIG_USB_DEVICE              /* Include UDC driver */
 #define CONFIG_USB_TTY                 /* Bind the TTY driver to UDC */
-#define CFG_USB_EXTC_CLK 0x02          /* Oscillator on EXTC_CLK 2 */
-#define CFG_USB_BRG_CLK        0x04            /* or use Baud rate generator 0x04 */
-#define CFG_CONSOLE_IS_IN_ENV          /* Console is in env */
+#define CONFIG_SYS_USB_EXTC_CLK 0x02           /* Oscillator on EXTC_CLK 2 */
+#define CONFIG_SYS_USB_BRG_CLK 0x04            /* or use Baud rate generator 0x04 */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           /* Console is in env */
 
 /* If you have a USB-IF assigned VendorID then you may wish to define
  * your own vendor specific values either in BoardName.h or directly in
index 431ed4e56fb8d8b8f9de10d16d7b75102d72ed1c..2581fdfefd8c6d2deaf03af63db1b36603eb1709 100644 (file)
@@ -35,8 +35,8 @@
 
 /* Input clock running at 30Mhz, read Hid1 for the CPU multiplier to
    determine the CPU speed. */
-#define CFG_MPC8220_CLKIN      30000000/* ... running at 30MHz */
-#define CFG_MPC8220_SYSPLL_VCO_MULTIPLIER 16 /* VCO multiplier can't be read from any register */
+#define CONFIG_SYS_MPC8220_CLKIN       30000000/* ... running at 30MHz */
+#define CONFIG_SYS_MPC8220_SYSPLL_VCO_MULTIPLIER 16 /* VCO multiplier can't be read from any register */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot      */
 
 #ifdef CONFIG_EXTUART_CONSOLE
 #   define CONFIG_CONS_INDEX   1
-#   define CFG_NS16550_SERIAL
-#   define CFG_NS16550
-#   define CFG_NS16550_REG_SIZE 1
-#   define CFG_NS16550_COM1    (CFG_CPLD_BASE + 0x1008)
-#   define CFG_NS16550_CLK     18432000
+#   define CONFIG_SYS_NS16550_SERIAL
+#   define CONFIG_SYS_NS16550
+#   define CONFIG_SYS_NS16550_REG_SIZE 1
+#   define CONFIG_SYS_NS16550_COM1     (CONFIG_SYS_CPLD_BASE + 0x1008)
+#   define CONFIG_SYS_NS16550_CLK      18432000
 #endif
 
 #define CONFIG_BAUDRATE                115200      /* ... at 115200 bps */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #define CONFIG_TIMESTAMP                       /* Print image info with timestamp */
 
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1
-#define CFG_I2C_MODULE         1
+#define CONFIG_SYS_I2C_MODULE          1
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x52    /* 1011000xb */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x52    /* 1011000xb */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 /*
 #define CONFIG_ENV_IS_IN_EEPROM        1
 #define CONFIG_ENV_OFFSET              0
 #define CONFIG_ENV_SIZE                256
 */
 
-/* If CFG_AMD_BOOT is defined, the the system will boot from AMD.
+/* If CONFIG_SYS_AMD_BOOT is defined, the the system will boot from AMD.
    else undefined it will boot from Intel Strata flash */
-#define CFG_AMD_BOOT           1
+#define CONFIG_SYS_AMD_BOOT            1
 
 /*
  * Flexbus Chipselect configuration
  */
-#if defined (CFG_AMD_BOOT)
-#define CFG_CS0_BASE           0xfff0
-#define CFG_CS0_MASK           0x00080000  /* 512 KB */
-#define CFG_CS0_CTRL           0x003f0d40
-
-#define CFG_CS1_BASE           0xfe00
-#define CFG_CS1_MASK           0x01000000  /* 16 MB */
-#define CFG_CS1_CTRL           0x003f1540
+#if defined (CONFIG_SYS_AMD_BOOT)
+#define CONFIG_SYS_CS0_BASE            0xfff0
+#define CONFIG_SYS_CS0_MASK            0x00080000  /* 512 KB */
+#define CONFIG_SYS_CS0_CTRL            0x003f0d40
+
+#define CONFIG_SYS_CS1_BASE            0xfe00
+#define CONFIG_SYS_CS1_MASK            0x01000000  /* 16 MB */
+#define CONFIG_SYS_CS1_CTRL            0x003f1540
 #else
-#define CFG_CS0_BASE           0xff00
-#define CFG_CS0_MASK           0x01000000  /* 16 MB */
-#define CFG_CS0_CTRL           0x003f1540
+#define CONFIG_SYS_CS0_BASE            0xff00
+#define CONFIG_SYS_CS0_MASK            0x01000000  /* 16 MB */
+#define CONFIG_SYS_CS0_CTRL            0x003f1540
 
-#define CFG_CS1_BASE           0xfe08
-#define CFG_CS1_MASK           0x00080000  /* 512 KB */
-#define CFG_CS1_CTRL           0x003f0d40
+#define CONFIG_SYS_CS1_BASE            0xfe08
+#define CONFIG_SYS_CS1_MASK            0x00080000  /* 512 KB */
+#define CONFIG_SYS_CS1_CTRL            0x003f0d40
 #endif
 
-#define CFG_CS2_BASE           0xf100
-#define CFG_CS2_MASK           0x00040000
-#define CFG_CS2_CTRL           0x003f1140
+#define CONFIG_SYS_CS2_BASE            0xf100
+#define CONFIG_SYS_CS2_MASK            0x00040000
+#define CONFIG_SYS_CS2_CTRL            0x003f1140
 
-#define CFG_CS3_BASE           0xf200
-#define CFG_CS3_MASK           0x00040000
-#define CFG_CS3_CTRL           0x003f1100
+#define CONFIG_SYS_CS3_BASE            0xf200
+#define CONFIG_SYS_CS3_MASK            0x00040000
+#define CONFIG_SYS_CS3_CTRL            0x003f1100
 
 
-#define CFG_FLASH0_BASE                (CFG_CS0_BASE << 16)
-#define CFG_FLASH1_BASE                (CFG_CS1_BASE << 16)
+#define CONFIG_SYS_FLASH0_BASE         (CONFIG_SYS_CS0_BASE << 16)
+#define CONFIG_SYS_FLASH1_BASE         (CONFIG_SYS_CS1_BASE << 16)
 
-#if defined (CFG_AMD_BOOT)
-#define CFG_AMD_BASE           CFG_FLASH0_BASE
-#define CFG_INTEL_BASE         CFG_FLASH1_BASE + 0xf00000
-#define CFG_FLASH_BASE         CFG_AMD_BASE
+#if defined (CONFIG_SYS_AMD_BOOT)
+#define CONFIG_SYS_AMD_BASE            CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_INTEL_BASE          CONFIG_SYS_FLASH1_BASE + 0xf00000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_AMD_BASE
 #else
-#define CFG_INTEL_BASE         CFG_FLASH0_BASE + 0xf00000
-#define CFG_AMD_BASE           CFG_FLASH1_BASE
-#define CFG_FLASH_BASE         CFG_INTEL_BASE
+#define CONFIG_SYS_INTEL_BASE          CONFIG_SYS_FLASH0_BASE + 0xf00000
+#define CONFIG_SYS_AMD_BASE            CONFIG_SYS_FLASH1_BASE
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_INTEL_BASE
 #endif
 
-#define CFG_CPLD_BASE          (CFG_CS2_BASE << 16)
-#define CFG_FPGA_BASE          (CFG_CS3_BASE << 16)
+#define CONFIG_SYS_CPLD_BASE           (CONFIG_SYS_CS2_BASE << 16)
+#define CONFIG_SYS_FPGA_BASE           (CONFIG_SYS_CS3_BASE << 16)
 
 
-#define CFG_MAX_FLASH_BANKS    4       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     4       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION           /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION            /* "Real" (hardware) sectors protection */
 
 #define PHYS_AMD_SECT_SIZE     0x00010000 /*  64 KB sectors (x2) */
 #define PHYS_INTEL_SECT_SIZE   0x00020000 /* 128 KB sectors (x2) */
 
-#define CFG_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_CHECKSUM
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#if defined (CFG_AMD_BOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH0_BASE + CFG_CS0_MASK - PHYS_AMD_SECT_SIZE)
+#if defined (CONFIG_SYS_AMD_BOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH0_BASE + CONFIG_SYS_CS0_MASK - PHYS_AMD_SECT_SIZE)
 #define CONFIG_ENV_SIZE                PHYS_AMD_SECT_SIZE
 #define CONFIG_ENV_SECT_SIZE   PHYS_AMD_SECT_SIZE
-#define CONFIG_ENV1_ADDR               (CFG_FLASH1_BASE + CFG_CS1_MASK - PHYS_INTEL_SECT_SIZE)
+#define CONFIG_ENV1_ADDR               (CONFIG_SYS_FLASH1_BASE + CONFIG_SYS_CS1_MASK - PHYS_INTEL_SECT_SIZE)
 #define CONFIG_ENV1_SIZE               PHYS_INTEL_SECT_SIZE
 #define CONFIG_ENV1_SECT_SIZE  PHYS_INTEL_SECT_SIZE
 #else
-#define CONFIG_ENV_ADDR                (CFG_FLASH0_BASE + CFG_CS0_MASK - PHYS_INTEL_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH0_BASE + CONFIG_SYS_CS0_MASK - PHYS_INTEL_SECT_SIZE)
 #define CONFIG_ENV_SIZE                PHYS_INTEL_SECT_SIZE
 #define CONFIG_ENV_SECT_SIZE   PHYS_INTEL_SECT_SIZE
-#define CONFIG_ENV1_ADDR               (CFG_FLASH1_BASE + CFG_CS1_MASK - PHYS_AMD_SECT_SIZE)
+#define CONFIG_ENV1_ADDR               (CONFIG_SYS_FLASH1_BASE + CONFIG_SYS_CS1_MASK - PHYS_AMD_SECT_SIZE)
 #define CONFIG_ENV1_SIZE               PHYS_AMD_SECT_SIZE
 #define CONFIG_ENV1_SECT_SIZE  PHYS_AMD_SECT_SIZE
 #endif
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
-#define CFG_SRAM_BASE          (CFG_MBAR + 0x20000)
-#define CFG_SRAM_SIZE          0x8000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
+#define CONFIG_SYS_SRAM_BASE           (CONFIG_SYS_MBAR + 0x20000)
+#define CONFIG_SYS_SRAM_SIZE           0x8000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      (CFG_MBAR + 0x20000)
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MBAR + 0x20000)
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in DPRAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10) /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)   /* Initial Memory map for Linux */
 
 /* SDRAM configuration */
-#define CFG_SDRAM_TOTAL_BANKS          2
-#define CFG_SDRAM_SPD_I2C_ADDR         0x51            /* 7bit */
-#define CFG_SDRAM_SPD_SIZE             0x40
-#define CFG_SDRAM_CAS_LATENCY          4               /* (CL=2)x2 */
+#define CONFIG_SYS_SDRAM_TOTAL_BANKS           2
+#define CONFIG_SYS_SDRAM_SPD_I2C_ADDR          0x51            /* 7bit */
+#define CONFIG_SYS_SDRAM_SPD_SIZE              0x40
+#define CONFIG_SYS_SDRAM_CAS_LATENCY           4               /* (CL=2)x2 */
 
 /* SDRAM drive strength register */
-#define CFG_SDRAM_DRIVE_STRENGTH       ((DRIVE_STRENGTH_LOW  << SDRAMDS_SBE_SHIFT) | \
+#define CONFIG_SYS_SDRAM_DRIVE_STRENGTH        ((DRIVE_STRENGTH_LOW  << SDRAMDS_SBE_SHIFT) | \
                                         (DRIVE_STRENGTH_HIGH << SDRAMDS_SBC_SHIFT) | \
                                         (DRIVE_STRENGTH_LOW  << SDRAMDS_SBA_SHIFT) | \
                                         (DRIVE_STRENGTH_OFF  << SDRAMDS_SBS_SHIFT) | \
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                       /* undef to save memory     */
-#define CFG_PROMPT             "=> "       /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                        /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "       /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024        /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024        /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256         /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256         /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16          /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16          /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000  /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000  /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000  /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000  /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000    /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000    /* default load address */
 
-#define CFG_HZ                 1000        /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000        /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8220 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8220 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5   /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5   /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
 /*
  * JFFS2 partitions
index a6e92287ff5bf6b9137f2885927fb08ec585921e..b71da1fbf0e36fcdefbc2c501a08a060655b2cb8 100644 (file)
@@ -50,7 +50,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #undef CONFIG_CLOCKS_IN_MHZ            /* clocks passed to Linux in Hz */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "] "            /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "] "            /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER                1       /* use "hush" command parser    */
-/* #undef CFG_HUSH_PARSER */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* use "hush" command parser    */
+/* #undef CONFIG_SYS_HUSH_PARSER */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define CFG_MAXARGS    64              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00500000      /* Default load address         */
+#define CONFIG_SYS_MAXARGS     64              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00500000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
-#define CFG_FLASH_BASE     0xFFF00000
-#define CFG_FLASH_MAX_SIZE  0x00080000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_FLASH_BASE      0xFFF00000
+#define CONFIG_SYS_FLASH_MAX_SIZE  0x00080000
 /* Maximum amount of RAM.
  */
-#define CFG_MAX_RAM_SIZE    0x80000000 /* 2G                   */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x80000000  /* 2G                   */
 
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_MONITOR_LEN            (768 << 10) /* Reserve 512 kB for Monitor   */
-#define CFG_MALLOC_LEN     (2500 << 10) /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_MONITOR_LEN     (768 << 10) /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (2500 << 10) /* Reserve 128 kB for malloc() */
 
-#if CFG_MONITOR_BASE >= CFG_SDRAM_BASE && \
-    CFG_MONITOR_BASE < CFG_SDRAM_BASE + CFG_MAX_RAM_SIZE
-#define CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_SDRAM_BASE && \
+    CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MAX_RAM_SIZE
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MEMTEST_START      0x00004000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x02000000      /* 0 ... 32 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00004000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x02000000      /* 0 ... 32 MB in DRAM  */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
 /* Size in bytes reserved for initial data
  */
 /* HJF: used to be 0x400000 */
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x8000
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x8000
+#define CONFIG_SYS_GBL_DATA_SIZE       128
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_LOCK
 
 /*
  * Temporary buffer for serial data until the real serial driver
  * is initialised (memtest will destroy this buffer)
  */
-#define CFG_SCONSOLE_ADDR     CFG_INIT_RAM_ADDR
-#define CFG_SCONSOLE_SIZE     0x0002000
+#define CONFIG_SYS_SCONSOLE_ADDR     CONFIG_SYS_INIT_RAM_ADDR
+#define CONFIG_SYS_SCONSOLE_SIZE     0x0002000
 
 /* SDRAM 0 - 256MB
  */
 
-/*HJF: #define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_4M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_DBAT0U CFG_IBAT0U*/
+/*HJF: #define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_4M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U*/
 
-#define CFG_DBAT0L           (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT0U           (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT0L      (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U      (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L            (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT0U            (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 /* PCI Range
  */
-#define CFG_DBAT1L      (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT1U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT1L      (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L       (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT1U       (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L       (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U       (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 /* HJF:
-#define CFG_IBAT1L ((CFG_SDRAM_BASE+CFG_INIT_RAM_ADDR) | BATL_PP_RW)
-#define CFG_IBAT1U ((CFG_SDRAM_BASE+CFG_INIT_RAM_ADDR) | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L ((CFG_SDRAM_BASE+CFG_INIT_RAM_ADDR + 0x20000) | BATL_PP_RW )
-#define CFG_DBAT1U ((CFG_SDRAM_BASE+CFG_INIT_RAM_ADDR + 0x20000) | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR) | BATL_PP_RW)
+#define CONFIG_SYS_IBAT1U ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR) | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR + 0x20000) | BATL_PP_RW )
+#define CONFIG_SYS_DBAT1U ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR + 0x20000) | BATU_BL_256M | BATU_VS | BATU_VP)
 */
 
 /* Init RAM in the CPU DCache (no backing memory)
  */
-#define CFG_DBAT2L     (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_DBAT2U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT2U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 /* This used to be commented out */
-#define CFG_IBAT2L       CFG_DBAT2L
+#define CONFIG_SYS_IBAT2L        CONFIG_SYS_DBAT2L
 /* This here too */
-#define CFG_IBAT2U       CFG_DBAT2U
+#define CONFIG_SYS_IBAT2U        CONFIG_SYS_DBAT2U
 
 
 /* I/O and PCI memory at 0xf0000000
  */
-#define CFG_DBAT3L     (0xf0000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L      (0xf0000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U      (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT3L     (0xf0000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (0xf0000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /*
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
  */
-#define CFG_HZ         1000
-#define CFG_BUS_HZ     133000000 /* bus speed - 100 mhz                */
-#define CFG_CPU_CLK    133000000
-#define CFG_BUS_CLK    133000000
+#define CONFIG_SYS_HZ          1000
+#define CONFIG_SYS_BUS_HZ      133000000 /* bus speed - 100 mhz                */
+#define CONFIG_SYS_CPU_CLK     133000000
+#define CONFIG_SYS_BUS_CLK     133000000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     8       /* Max number of sectors in one bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* Max number of sectors in one bank    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
 /*
  * Environment is stored in NVRAM.
                                            */
 #define CONFIG_ENV_SIZE                0x8000     /* Size of the Environment. See comment above */
 
-#define CFG_CONSOLE_IS_IN_ENV  1 /* stdin/stdout/stderr are in environment */
-#define CFG_CONSOLE_OVERWRITE_ROUTINE  1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   1 /* stdin/stdout/stderr are in environment */
+#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE   1
 #define CONFIG_ENV_OVERWRITE 1
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
  * L2 cache
  */
-#define CFG_L2
+#define CONFIG_SYS_L2
 #define L2_INIT          (L2CR_L2SIZ_2M | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \
                   L2CR_L2OH_5 | L2CR_L2CTL | L2CR_L2WT)
 #define L2_ENABLE (L2_INIT | L2CR_L2E)
  */
 
 #define CONFIG_ATAPI           1
-#define CFG_IDE_MAXBUS         2
-#define CFG_IDE_MAXDEVICE      4
+#define CONFIG_SYS_IDE_MAXBUS          2
+#define CONFIG_SYS_IDE_MAXDEVICE       4
 #define CONFIG_ISO_PARTITION   1
 
-#define CFG_ATA_BASE_ADDR      0xFE000000  /* was: via_get_base_addr() */
-#define CFG_ATA_IDE0_OFFSET    0x1F0
-#define CFG_ATA_IDE1_OFFSET    0x170
+#define CONFIG_SYS_ATA_BASE_ADDR       0xFE000000  /* was: via_get_base_addr() */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x1F0
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0x170
 
-#define CFG_ATA_REG_OFFSET     0
-#define CFG_ATA_DATA_OFFSET    0
-#define CFG_ATA_ALT_OFFSET     0x0200
+#define CONFIG_SYS_ATA_REG_OFFSET      0
+#define CONFIG_SYS_ATA_DATA_OFFSET     0
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0200
 
 /*-----------------------------------------------------------------------
  * Disk-On-Chip configuration
  */
 
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices            */
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices            */
 
-#define CFG_DOC_SUPPORT_2000
-#undef CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#undef CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*-----------------------------------------------------------------------
   RTC
  * NS16550 Configuration
  */
 
-#define CFG_NS16550
+#define CONFIG_SYS_NS16550
 
-#define CFG_NS16550_COM1 0xFE0003F8
-#define CFG_NS16550_COM2 0xFE0002F8
+#define CONFIG_SYS_NS16550_COM1 0xFE0003F8
+#define CONFIG_SYS_NS16550_COM2 0xFE0002F8
 
-#define CFG_NS16550_REG_SIZE 1
+#define CONFIG_SYS_NS16550_REG_SIZE 1
 
 /* base address for ISA I/O
  */
-#define CFG_ISA_IO_BASE_ADDRESS 0xFE000000
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0xFE000000
 
 /* ISA Interrupt stuff (taken from JWL) */
 
  */
 
 #define CONFIG_NET_MULTI
-#define CFG_BOARD_ASM_INIT
+#define CONFIG_SYS_BOARD_ASM_INIT
 #define CONFIG_LAST_STAGE_INIT
 
 /* #define CONFIG_ETHADDR      00:09:D2:10:00:76 */
 #define CONFIG_USB_UHCI                1
 #define CONFIG_USB_STORAGE     1
 #define CONFIG_USB_KEYBOARD    1
-#define CFG_DEVICE_DEREGISTER  1 /* needed by CONFIG_USB_KEYBOARD */
+#define CONFIG_SYS_DEVICE_DEREGISTER   1 /* needed by CONFIG_USB_KEYBOARD */
 
 /*
  * Autoboot stuff
index a7cb3e22e92ff1405ca8ecaa5096908d82545f85..c77ea1fc471e46997491100fe131e47a5ac93d41 100644 (file)
 /*
  * Size of malloc() pool
  */
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
 #define CONFIG_ENV_SIZE                1024            /* 1024 bytes may be used for env vars*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024 )
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024 )
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "=>  "  /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=>  "  /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0C400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0C400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x0c700000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x0c700000      /* default load address */
 
-#define        CFG_HZ                          1000            /* 1 kHz */
+#define        CONFIG_SYS_HZ                           1000            /* 1 kHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SIZE                0x00400000 /* 4 MB */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * Environment Variable setup
  * I2C EEPROM (STM24C02W6) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
-#define CFG_I2C_EEPROM_ADDR    0xA8    /* EEPROM STM24C02W6            */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0xA8    /* EEPROM STM24C02W6            */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-/*#define CFG_I2C_EEPROM_ADDR_OVERFLOW 0x07*/
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+/*#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW  0x07*/
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /* Flash banks JFFS2 should use */
 /*
-#define CFG_JFFS2_FIRST_BANK    0
-#define CFG_JFFS2_FIRST_SECTOR 2
-#define CFG_JFFS2_NUM_BANKS     1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  2
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 */
 
 /*
index bfbda52090e916914d61053b3b085341e2d32574..1910b34639e5def5f245d232f3a0f86fce3fcbbc 100644 (file)
@@ -63,7 +63,7 @@
     "bootm"
 
 #define CONFIG_LOADS_ECHO       0       /* echo off for serial download */
-#define CFG_LOADS_BAUD_CHANGE           /* allow baudrate changes */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate changes */
 
 /*
  * BOOTP options
@@ -93,8 +93,8 @@
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                    /* undef to save memory */
-#define CFG_PROMPT              "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 /*
  * choose between COM1 and COM2 as serial console
 #define CONFIG_CONS_INDEX       1
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE              1024        /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024        /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE              256         /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256         /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS             16          /* max number of command args    */
-#define CFG_BARGSIZE            CFG_CBSIZE  /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16          /* max number of command args    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START       0x00000000  /* memtest works on    */
-#define CFG_MEMTEST_END         0x04000000  /* 0 ... 64 MB in DRAM    */
+#define CONFIG_SYS_MEMTEST_START       0x00000000  /* memtest works on    */
+#define CONFIG_SYS_MEMTEST_END         0x04000000  /* 0 ... 64 MB in DRAM    */
 
-#define CFG_LOAD_ADDR           0x1000000   /* default load address    */
+#define CONFIG_SYS_LOAD_ADDR           0x1000000   /* default load address    */
 
-#define CFG_HZ                  1000        /* dec. freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000        /* dec. freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
  * You should know what you are doing if you make changes here.
  */
-#define CFG_BOARD_ASM_INIT
+#define CONFIG_SYS_BOARD_ASM_INIT
 #define CONFIG_MISC_INIT_R
 
 /*
  * Choose the address mapping scheme for the MPC106 mem controller.
  * Default is mapping B (CHRP), set this define to choose mapping A (PReP).
  */
-#define CFG_ADDRESS_MAP_A
-#ifdef  CFG_ADDRESS_MAP_A
+#define CONFIG_SYS_ADDRESS_MAP_A
+#ifdef  CONFIG_SYS_ADDRESS_MAP_A
 
-#define CFG_PCI_MEMORY_BUS      0x80000000
-#define CFG_PCI_MEMORY_PHYS     0x00000000
-#define CFG_PCI_MEMORY_SIZE     0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x80000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
-#define CFG_PCI_MEM_BUS         0x00000000
-#define CFG_PCI_MEM_PHYS        0xc0000000
-#define CFG_PCI_MEM_SIZE        0x3f000000
+#define CONFIG_SYS_PCI_MEM_BUS         0x00000000
+#define CONFIG_SYS_PCI_MEM_PHYS        0xc0000000
+#define CONFIG_SYS_PCI_MEM_SIZE        0x3f000000
 
-#define CFG_ISA_MEM_BUS         0
-#define CFG_ISA_MEM_PHYS        0
-#define CFG_ISA_MEM_SIZE        0
+#define CONFIG_SYS_ISA_MEM_BUS         0
+#define CONFIG_SYS_ISA_MEM_PHYS        0
+#define CONFIG_SYS_ISA_MEM_SIZE        0
 
-#define CFG_PCI_IO_BUS          0x1000
-#define CFG_PCI_IO_PHYS         0x81000000
-#define CFG_PCI_IO_SIZE         0x01000000-CFG_PCI_IO_BUS
+#define CONFIG_SYS_PCI_IO_BUS          0x1000
+#define CONFIG_SYS_PCI_IO_PHYS         0x81000000
+#define CONFIG_SYS_PCI_IO_SIZE         0x01000000-CONFIG_SYS_PCI_IO_BUS
 
-#define CFG_ISA_IO_BUS          0x00000000
-#define CFG_ISA_IO_PHYS         0x80000000
-#define CFG_ISA_IO_SIZE         0x00800000
+#define CONFIG_SYS_ISA_IO_BUS          0x00000000
+#define CONFIG_SYS_ISA_IO_PHYS         0x80000000
+#define CONFIG_SYS_ISA_IO_SIZE         0x00800000
 
 #else
 
-#define CFG_PCI_MEMORY_BUS      0x00000000
-#define CFG_PCI_MEMORY_PHYS     0x00000000
-#define CFG_PCI_MEMORY_SIZE     0x40000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x40000000
 
-#define CFG_PCI_MEM_BUS         0x80000000
-#define CFG_PCI_MEM_PHYS        0x80000000
-#define CFG_PCI_MEM_SIZE        0x7d000000
+#define CONFIG_SYS_PCI_MEM_BUS         0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        0x80000000
+#define CONFIG_SYS_PCI_MEM_SIZE        0x7d000000
 
-#define CFG_ISA_MEM_BUS         0x00000000
-#define CFG_ISA_MEM_PHYS        0xfd000000
-#define CFG_ISA_MEM_SIZE        0x01000000
+#define CONFIG_SYS_ISA_MEM_BUS         0x00000000
+#define CONFIG_SYS_ISA_MEM_PHYS        0xfd000000
+#define CONFIG_SYS_ISA_MEM_SIZE        0x01000000
 
-#define CFG_PCI_IO_BUS          0x00800000
-#define CFG_PCI_IO_PHYS         0xfe800000
-#define CFG_PCI_IO_SIZE         0x00400000
+#define CONFIG_SYS_PCI_IO_BUS          0x00800000
+#define CONFIG_SYS_PCI_IO_PHYS         0xfe800000
+#define CONFIG_SYS_PCI_IO_SIZE         0x00400000
 
-#define CFG_ISA_IO_BUS          0x00000000
-#define CFG_ISA_IO_PHYS         0xfe000000
-#define CFG_ISA_IO_SIZE         0x00800000
+#define CONFIG_SYS_ISA_IO_BUS          0x00000000
+#define CONFIG_SYS_ISA_IO_PHYS         0xfe000000
+#define CONFIG_SYS_ISA_IO_SIZE         0x00800000
 
-#endif /*CFG_ADDRESS_MAP_A */
+#endif /*CONFIG_SYS_ADDRESS_MAP_A */
 
-#define CFG_60X_PCI_MEM_OFFSET  0x00000000
+#define CONFIG_SYS_60X_PCI_MEM_OFFSET  0x00000000
 
 /* driver defines FDC,IDE,... */
-#define CFG_ISA_IO_BASE_ADDRESS CFG_ISA_IO_PHYS
-#define CFG_ISA_IO              CFG_ISA_IO_PHYS
-#define CFG_60X_PCI_IO_OFFSET   CFG_ISA_IO_PHYS
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_ISA_IO_PHYS
+#define CONFIG_SYS_ISA_IO              CONFIG_SYS_ISA_IO_PHYS
+#define CONFIG_SYS_60X_PCI_IO_OFFSET   CONFIG_SYS_ISA_IO_PHYS
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE          0xfff00000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xfff00000
 
 /*
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR       0x00fd0000  /* above the memtest region */
-#define CFG_INIT_RAM_END        0x4000
-#define CFG_GBL_DATA_SIZE       64          /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET     (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x00fd0000  /* above the memtest region */
+#define CONFIG_SYS_INIT_RAM_END        0x4000
+#define CONFIG_SYS_GBL_DATA_SIZE       64          /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Flash mapping/organization on the MPC10x.
 #define FLASH_BASE0_PRELIM      0xff800000
 #define FLASH_BASE1_PRELIM      0xffc00000
 
-#define CFG_MAX_FLASH_BANKS     2           /* max number of memory banks    */
-#define CFG_MAX_FLASH_SECT      67          /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2           /* max number of memory banks    */
+#define CONFIG_SYS_MAX_FLASH_SECT      67          /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT    120000      /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT    500         /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000      /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500         /* Timeout for Flash Write (in ms) */
 
 /*
  * JFFS2 partitions
 #define MTDPARTS_DEFAULT       "mtdparts=bab7xx-0:-(jffs2)"
 */
 
-#define CFG_MONITOR_BASE        CFG_FLASH_BASE
-#define CFG_MONITOR_LEN         0x40000     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN          0x20000     /* Reserve 128 kB for malloc() */
-#undef  CFG_MEMTEST
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         0x40000     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          0x20000     /* Reserve 128 kB for malloc() */
+#undef  CONFIG_SYS_MEMTEST
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_ENV_IS_IN_NVRAM     1           /* use NVRAM for environment vars */
-#define CFG_NVRAM_SIZE          0x1ff0      /* NVRAM size (8kB), we must protect the clock data (16 bytes) */
+#define CONFIG_SYS_NVRAM_SIZE          0x1ff0      /* NVRAM size (8kB), we must protect the clock data (16 bytes) */
 #define CONFIG_ENV_SIZE            0x400       /* Size of Environment vars (1kB) */
 /*
  * We store the environment and an image of revision eeprom in the upper part of the NVRAM. Thus,
  * user applications can use the remaining space for other purposes.
  */
-#define CONFIG_ENV_ADDR            (CFG_NVRAM_SIZE +0x10 -0x800)
-#define CFG_NV_SROM_COPY_ADDR   (CFG_NVRAM_SIZE +0x10 -0x400)
-#define CFG_NVRAM_ACCESS_ROUTINE            /* This board needs a special routine to access the NVRAM */
-#define CFG_SROM_SIZE           0x100       /* shadow of revision info is in nvram */
+#define CONFIG_ENV_ADDR            (CONFIG_SYS_NVRAM_SIZE +0x10 -0x800)
+#define CONFIG_SYS_NV_SROM_COPY_ADDR   (CONFIG_SYS_NVRAM_SIZE +0x10 -0x400)
+#define CONFIG_SYS_NVRAM_ACCESS_ROUTINE            /* This board needs a special routine to access the NVRAM */
+#define CONFIG_SYS_SROM_SIZE           0x100       /* shadow of revision info is in nvram */
 
 /*
  * Serial devices
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK         1843200
-#define CFG_NS16550_COM1        (CFG_ISA_IO + CFG_NS87308_UART1_BASE)
-#define CFG_NS16550_COM2        (CFG_ISA_IO + CFG_NS87308_UART2_BASE)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         1843200
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART1_BASE)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART2_BASE)
 
 /*
  * PCI stuff
 #define CONFIG_CONSOLE_TIME
 #define CONFIG_CONSOLE_EXTRA_INFO
 #define CONFIG_CONSOLE_CURSOR
-#define CFG_CONSOLE_BLINK_COUNT         30000    /* approx. 2 HZ */
+#define CONFIG_SYS_CONSOLE_BLINK_COUNT         30000    /* approx. 2 HZ */
 
 /*
  * IDE/SCSI globals
@@ -302,15 +302,15 @@ extern unsigned char   scsi_sym53c8xx_ccf;
  * ATAPI Support (experimental)
  */
 #define CONFIG_ATAPI
-#define CFG_IDE_MAXBUS          1                       /* max. 2 IDE busses    */
-#define CFG_IDE_MAXDEVICE       (CFG_IDE_MAXBUS*2)      /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1                       /* max. 2 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2)      /* max. 2 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR       CFG_60X_PCI_IO_OFFSET   /* base address */
-#define CFG_ATA_IDE0_OFFSET     0x1F0                   /* default ide0 offste */
-#define CFG_ATA_IDE1_OFFSET     0x170                   /* default ide1 offset */
-#define CFG_ATA_DATA_OFFSET     0                       /* data reg offset    */
-#define CFG_ATA_REG_OFFSET      0                       /* reg offset */
-#define CFG_ATA_ALT_OFFSET      0x200                   /* alternate register offset */
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_60X_PCI_IO_OFFSET   /* base address */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x1F0                   /* default ide0 offste */
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0x170                   /* default ide1 offset */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0                       /* data reg offset    */
+#define CONFIG_SYS_ATA_REG_OFFSET      0                       /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x200                   /* alternate register offset */
 
 #define ATA_RESET_TIME          (ata_reset_time)
 
@@ -322,11 +322,11 @@ extern unsigned char   scsi_sym53c8xx_ccf;
  */
 #define CONFIG_SCSI_SYM53C8XX
 #define CONFIG_SCSI_DEV_ID      (scsi_dev_id)           /* 875 or 860 */
-#define CFG_SCSI_SYM53C8XX_CCF  (scsi_sym53c8xx_ccf)    /* value for none 40 mhz clocks */
-#define CFG_SCSI_MAX_LUN        8                       /* number of supported LUNs */
-#define CFG_SCSI_MAX_SCSI_ID    (scsi_max_scsi_id)      /* max SCSI ID (0-6) */
-#define CFG_SCSI_MAX_DEVICE     (15 * CFG_SCSI_MAX_LUN) /* max. Target devices */
-#define CFG_SCSI_SPIN_UP_TIME   (scsi_reset_time)
+#define CONFIG_SYS_SCSI_SYM53C8XX_CCF  (scsi_sym53c8xx_ccf)    /* value for none 40 mhz clocks */
+#define CONFIG_SYS_SCSI_MAX_LUN        8                       /* number of supported LUNs */
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    (scsi_max_scsi_id)      /* max SCSI ID (0-6) */
+#define CONFIG_SYS_SCSI_MAX_DEVICE     (15 * CONFIG_SYS_SCSI_MAX_LUN) /* max. Target devices */
+#define CONFIG_SYS_SCSI_SPIN_UP_TIME   (scsi_reset_time)
 
 /*
  * Partion suppport
@@ -339,40 +339,40 @@ extern unsigned char   scsi_sym53c8xx_ccf;
  * Winbond Configuration
  */
 #define CONFIG_WINBOND_83C553      1                       /* has a winbond bridge */
-#define CFG_USE_WINBOND_IDE     0                       /* use winbond 83c553 internal ide */
-#define CFG_WINBOND_ISA_CFG_ADDR    0x80005800          /* pci-isa bridge config addr */
-#define CFG_WINBOND_IDE_CFG_ADDR    0x80005900          /* ide config addr */
+#define CONFIG_SYS_USE_WINBOND_IDE     0                       /* use winbond 83c553 internal ide */
+#define CONFIG_SYS_WINBOND_ISA_CFG_ADDR    0x80005800          /* pci-isa bridge config addr */
+#define CONFIG_SYS_WINBOND_IDE_CFG_ADDR    0x80005900          /* ide config addr */
 
 /*
  * NS87308 Configuration
  */
 #define CONFIG_NS87308                    /* Nat Semi super-io cntr on ISA bus */
-#define CFG_NS87308_BADDR_10    1
-#define CFG_NS87308_DEVS        (CFG_NS87308_UART1   | \
-                                CFG_NS87308_UART2   | \
-                                CFG_NS87308_KBC1    | \
-                                CFG_NS87308_MOUSE   | \
-                                CFG_NS87308_FDC     | \
-                                CFG_NS87308_RARP    | \
-                                CFG_NS87308_GPIO    | \
-                                CFG_NS87308_POWRMAN | \
-                                CFG_NS87308_RTC_APC )
-
-#define CFG_NS87308_PS2MOD
-#define CFG_NS87308_GPIO_BASE   0x0220
-#define CFG_NS87308_PWMAN_BASE  0x0460
-#define CFG_NS87308_PMC2        0x00        /* SuperI/O clock source is 24MHz via X1 */
+#define CONFIG_SYS_NS87308_BADDR_10    1
+#define CONFIG_SYS_NS87308_DEVS        (CONFIG_SYS_NS87308_UART1   | \
+                                CONFIG_SYS_NS87308_UART2   | \
+                                CONFIG_SYS_NS87308_KBC1    | \
+                                CONFIG_SYS_NS87308_MOUSE   | \
+                                CONFIG_SYS_NS87308_FDC     | \
+                                CONFIG_SYS_NS87308_RARP    | \
+                                CONFIG_SYS_NS87308_GPIO    | \
+                                CONFIG_SYS_NS87308_POWRMAN | \
+                                CONFIG_SYS_NS87308_RTC_APC )
+
+#define CONFIG_SYS_NS87308_PS2MOD
+#define CONFIG_SYS_NS87308_GPIO_BASE   0x0220
+#define CONFIG_SYS_NS87308_PWMAN_BASE  0x0460
+#define CONFIG_SYS_NS87308_PMC2        0x00        /* SuperI/O clock source is 24MHz via X1 */
 
 /*
  * set up the NVRAM access registers
  * NVRAM's controlled by the configurable CS line from the 87308
  */
-#define CFG_NS87308_CS0_BASE    0x0076
-#define CFG_NS87308_CS0_CONF    0x40
-#define CFG_NS87308_CS1_BASE    0x0070
-#define CFG_NS87308_CS1_CONF    0x1C
-#define CFG_NS87308_CS2_BASE    0x0071
-#define CFG_NS87308_CS2_CONF    0x1C
+#define CONFIG_SYS_NS87308_CS0_BASE    0x0076
+#define CONFIG_SYS_NS87308_CS0_CONF    0x40
+#define CONFIG_SYS_NS87308_CS1_BASE    0x0070
+#define CONFIG_SYS_NS87308_CS1_CONF    0x1C
+#define CONFIG_SYS_NS87308_CS2_BASE    0x0071
+#define CONFIG_SYS_NS87308_CS2_CONF    0x1C
 
 #define CONFIG_RTC_MK48T59
 
@@ -381,51 +381,51 @@ extern unsigned char   scsi_sym53c8xx_ccf;
  */
 #if 1
 
-#define CFG_IBAT0L 0
-#define CFG_IBAT0U 0
-#define CFG_DBAT0L CFG_IBAT1L
-#define CFG_DBAT0U CFG_IBAT1U
+#define CONFIG_SYS_IBAT0L 0
+#define CONFIG_SYS_IBAT0U 0
+#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT1U
 
-#define CFG_IBAT1L 0
-#define CFG_IBAT1U 0
-#define CFG_DBAT1L CFG_IBAT1L
-#define CFG_DBAT1U CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L 0
+#define CONFIG_SYS_IBAT1U 0
+#define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
 
-#define CFG_IBAT2L 0
-#define CFG_IBAT2U 0
-#define CFG_DBAT2L CFG_IBAT2L
-#define CFG_DBAT2U CFG_IBAT2U
+#define CONFIG_SYS_IBAT2L 0
+#define CONFIG_SYS_IBAT2U 0
+#define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
 
-#define CFG_IBAT3L 0
-#define CFG_IBAT3U 0
-#define CFG_DBAT3L CFG_IBAT3L
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L 0
+#define CONFIG_SYS_IBAT3U 0
+#define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 #else
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_RW)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L CFG_IBAT1L
-#define CFG_DBAT0U CFG_IBAT1U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_RW)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT1U
 
 /* address range for flashes */
-#define CFG_IBAT1L (CFG_FLASH_BASE | BATL_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U (CFG_FLASH_BASE | BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L CFG_IBAT1L
-#define CFG_DBAT1U CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L (CONFIG_SYS_FLASH_BASE | BATL_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U (CONFIG_SYS_FLASH_BASE | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
 
 /* ISA IO space */
-#define CFG_IBAT2L (CFG_ISA_IO | BATL_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U (CFG_ISA_IO | BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L CFG_IBAT2L
-#define CFG_DBAT2U CFG_IBAT2U
+#define CONFIG_SYS_IBAT2L (CONFIG_SYS_ISA_IO | BATL_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U (CONFIG_SYS_ISA_IO | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
 
 /* ISA memory space */
-#define CFG_IBAT3L (CFG_ISA_MEM | BATL_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U (CFG_ISA_MEM | BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_DBAT3L CFG_IBAT3L
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_ISA_MEM | BATL_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_ISA_MEM | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 #endif
 
@@ -436,35 +436,35 @@ extern unsigned char   scsi_sym53c8xx_ccf;
 extern  unsigned long           bab7xx_get_bus_freq (void);
 extern  unsigned long           bab7xx_get_gclk_freq (void);
 #endif
-#define CFG_BUS_HZ              bab7xx_get_bus_freq()
-#define CFG_BUS_CLK             CFG_BUS_HZ
-#define CFG_CPU_CLK             bab7xx_get_gclk_freq()
+#define CONFIG_SYS_BUS_HZ              bab7xx_get_bus_freq()
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
+#define CONFIG_SYS_CPU_CLK             bab7xx_get_gclk_freq()
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ           (8 << 20)           /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)           /* Initial Memory map for Linux */
 
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE        32    /* For all MPC74xx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE        32    /* For all MPC74xx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT        5    /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT        5    /* log base 2 of the above value */
 #endif
 
 /*
  * L2 Cache Configuration is board specific for BAB740/BAB750
  * Init values read from revision srom.
  */
-#undef  CFG_L2
+#undef  CONFIG_SYS_L2
 #define L2_INIT     (L2CR_L2SIZ_HM | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \
                     L2CR_L2OH_5   | L2CR_L2CTL   | L2CR_L2WT)
 #define L2_ENABLE   (L2_INIT | L2CR_L2E)
 
-#define CFG_L2_BAB7xx
+#define CONFIG_SYS_L2_BAB7xx
 
 /*
  * Internal Definitions
index 7fd6490766b5e952e167481f6a874158effd1740..28be8dd62f2a0b7c8a389b9a82b428c35863d3be 100644 (file)
@@ -56,7 +56,7 @@
 #define CONFIG_BC3450_FP       1       /*  + enable FP O/P                 */
 #undef CONFIG_BC3450_CRT               /*  + enable CRT O/P (Debug only!)  */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz     */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz     */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                  */
@@ -68,7 +68,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1           */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps            */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * AT-PS/2 Multiplexer
@@ -77,7 +77,7 @@
 # define CONFIG_PS2KBD                 /* AT-PS/2 Keyboard             */
 # define CONFIG_PS2MULT                        /* .. on PS/2 Multiplexer       */
 # define CONFIG_PS2SERIAL      6               /* .. on PSC6           */
-# define CONFIG_PS2MULT_DELAY  (CFG_HZ/2)      /* Initial delay        */
+# define CONFIG_PS2MULT_DELAY  (CONFIG_SYS_HZ/2)       /* Initial delay        */
 # define CONFIG_BOARD_EARLY_INIT_R
 #endif /* CONFIG_BC3450_PS2 */
 
 
 #define CONFIG_NET_MULTI       1
 /*#define CONFIG_EEPRO100      XXX - FIXME: conflicts when CONFIG_MII is enabled */
-#define CFG_RX_ETH_BUFFER      8       /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8       /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 
 /*
 # define CONFIG_CONSOLE_EXTRA_INFO     /* display Board/Device-Infos */
 # define CONFIG_VIDEO_SW_CURSOR
 # define CONFIG_SPLASH_SCREEN
-# define CFG_CONSOLE_IS_IN_ENV
+# define CONFIG_SYS_CONSOLE_IS_IN_ENV
 
 /*
  * Partitions
 /*
  * POST support
  */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_I2C)
 
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
 #define CONFIG_TIMESTAMP               /* display image timestamps */
 
 #if (TEXT_BASE == 0xFC000000)          /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
+ * CONFIG_SYS_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
  *  of 66 MHz yet hasn't been tested with a IPB Bus Clock of 66 MHz.
  */
-#if defined(CFG_IPBCLK_EQUALS_XLBCLK)
-# define CFG_PCICLK_EQUALS_IPBCLK_DIV2 /* define for 66MHz speed */
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
+# define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2  /* define for 66MHz speed */
 #endif
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #2 */
 
 /*
  * I2C clock frequency
  * Please notice, that the resulting clock frequency could differ from the
  * configured value. This is because the I2C clock is derived from system
  * clock over a frequency divider with only a few divider values. U-boot
- * calculates the best approximation for CFG_I2C_SPEED. However the calculated
+ * calculates the best approximation for CONFIG_SYS_I2C_SPEED. However the calculated
  * approximation allways lies below the configured value, never above.
  */
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration for I²C EEPROM M24C32
  *
  * The TQM5200 module may hold an EEPROM at address 0x50.
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x (TQM) */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x (TQM) */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 
 /*
  * RTC configuration
  */
 #if defined (CONFIG_BC3450_DS1340) && !defined (CONFIG_BC3450_DS3231)
 # define CONFIG_RTC_M41T11     1
-# define CFG_I2C_RTC_ADDR      0x68
+# define CONFIG_SYS_I2C_RTC_ADDR       0x68
 #else
 # define CONFIG_RTC_MPC5200    1       /* use MPC5200 internal RTC */
 # define CONFIG_BOARD_EARLY_INIT_R
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         TEXT_BASE /* 0xFC000000 */
+#define CONFIG_SYS_FLASH_BASE          TEXT_BASE /* 0xFC000000 */
 
 /* use CFI flash driver if no module variant is spezified */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_BOOTCS_START }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_SIZE         0x04000000 /* 64 MByte */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
-#undef CFG_FLASH_USE_BUFFER_WRITE      /* not supported yet for AMD */
-
-#if !defined(CFG_LOWBOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00760000 + 0x00800000)
-#else  /* CFG_LOWBOOT */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00060000)
-#endif /* CFG_LOWBOOT */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_BOOTCS_START }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_SIZE          0x04000000 /* 64 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
+#undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE       /* not supported yet for AMD */
+
+#if !defined(CONFIG_SYS_LOWBOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00760000 + 0x00800000)
+#else  /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00060000)
+#endif /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /* Dynamic MTD partition support */
 #define CONFIG_JFFS2_CMDLINE
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-# define CFG_INIT_RAM_END      MPC5XXX_SRAM_POST_SIZE
+# define CONFIG_SYS_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
 #else
-# define CFG_INIT_RAM_END      MPC5XXX_SRAM_SIZE
+# define CONFIG_SYS_INIT_RAM_END       MPC5XXX_SRAM_SIZE
 #endif /*CONFIG_POST*/
 
-#define CFG_GBL_DATA_SIZE      128     /* Bytes reserved for initial data  */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* Bytes reserved for initial data  */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (384 << 10) /* Reserve 384 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10) /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (384 << 10) /* Reserve 384 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)   /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  *  I2C:    CAN1 / I²C2                 [0x bxxxxxxx]
  */
 #ifdef CONFIG_BC3450_AC97
-# define CFG_GPS_PORT_CONFIG   0xb1502124
+# define CONFIG_SYS_GPS_PORT_CONFIG    0xb1502124
 #else /* PSC2=UART2 */
-# define CFG_GPS_PORT_CONFIG   0xb1502144
+# define CONFIG_SYS_GPS_PORT_CONFIG    0xb1502144
 #endif
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory     */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size  */
-#define CFG_MAXARGS            16              /* max no of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Arg. Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size  */
+#define CONFIG_SYS_MAXARGS             16              /* max no of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Arg. Buffer Size    */
 
-#define CFG_ALT_MEMTEST                                /* Enable an alternative,   */
+#define CONFIG_SYS_ALT_MEMTEST                         /* Enable an alternative,   */
                                                /*  more extensive mem test */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on         */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM      */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on         */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM      */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address     */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address     */
 
-#define CFG_HZ                 1000            /* dec freq: 1ms ticks      */
+#define CONFIG_SYS_HZ                  1000            /* dec freq: 1ms ticks      */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs                 */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs                 */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value    */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value    */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-# define CFG_HID0_INIT         HID0_ICE | HID0_ICFI
-# define CFG_HID0_FINAL                HID0_ICE
+# define CONFIG_SYS_HID0_INIT          HID0_ICE | HID0_ICFI
+# define CONFIG_SYS_HID0_FINAL         HID0_ICE
 #else
-# define CFG_HID0_INIT         0
-# define CFG_HID0_FINAL                0
+# define CONFIG_SYS_HID0_INIT          0
+# define CONFIG_SYS_HID0_FINAL         0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#ifdef CFG_PCICLK_EQUALS_IPBCLK_DIV2
-# define CFG_BOOTCS_CFG                0x0008DF30      /* for pci_clk  = 66 MHz */
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
+# define CONFIG_SYS_BOOTCS_CFG         0x0008DF30      /* for pci_clk  = 66 MHz */
 #else
-# define CFG_BOOTCS_CFG                0x0004DF30      /* for pci_clk = 33 MHz  */
+# define CONFIG_SYS_BOOTCS_CFG         0x0004DF30      /* for pci_clk = 33 MHz  */
 #endif
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 /* automatic configuration of chip selects */
 #ifdef CONFIG_TQM5200
  * for SDRAM autosizing.
  */
 #ifdef CONFIG_TQM5200
-# define CFG_CS2_START         0xE5000000
-# define CFG_CS2_SIZE          0x100000        /* 1 MByte */
-# define CFG_CS2_CFG           0x0004D930
+# define CONFIG_SYS_CS2_START          0xE5000000
+# define CONFIG_SYS_CS2_SIZE           0x100000        /* 1 MByte */
+# define CONFIG_SYS_CS2_CFG            0x0004D930
 #endif /* CONFIG_TQM5200 */
 
 /*
  */
 #ifdef CONFIG_TQM5200
 # define SM501_FB_BASE         0xE0000000
-# define CFG_CS1_START         (SM501_FB_BASE)
-# define CFG_CS1_SIZE          0x4000000       /* 64 MByte */
-# define CFG_CS1_CFG           0x8F48FF70
-# define SM501_MMIO_BASE       CFG_CS1_START + 0x03E00000
+# define CONFIG_SYS_CS1_START          (SM501_FB_BASE)
+# define CONFIG_SYS_CS1_SIZE           0x4000000       /* 64 MByte */
+# define CONFIG_SYS_CS1_CFG            0x8F48FF70
+# define SM501_MMIO_BASE       CONFIG_SYS_CS1_START + 0x03E00000
 #endif /* CONFIG_TQM5200 */
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333311      /* 1 dead cycle for     */
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333311      /* 1 dead cycle for     */
                                                /*  flash and SM501     */
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*
  * USB stuff
 #define CONFIG_IDE_RESET               /* reset for ide      supported */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 2 drives per IDE bus    */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers */
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #endif /* __CONFIG_H */
index d5a398d1110c23b9b00106fcf92d32ef59d8c3ef..24ffb005380ee7e33032286eef4bb286a4c8f393 100644 (file)
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_CLOCKS_IN_MHZ   1       /* clocks passsed to Linux in MHz       */
 
 #define CONFIG_BOOTCOMMAND     "bootm FF820000"        /* autoboot command     */
 #define CONFIG_BOOTDELAY       5
 
-#define CFG_MAX_DOC_DEVICE      1 /* Only use Onboard TSOP-16MB device */
+#define CONFIG_SYS_MAX_DOC_DEVICE      1 /* Only use Onboard TSOP-16MB device */
 #define DOC_PASSIVE_PROBE       1
-#define CFG_DOC_SUPPORT_2000    1
-#define CFG_DOC_SUPPORT_MILLENNIUM 1
-#define CFG_DOC_SHORT_TIMEOUT    1
+#define CONFIG_SYS_DOC_SUPPORT_2000    1
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM 1
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT    1
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=>"            /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=>"            /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define CFG_MAXARGS    8               /* Max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define CONFIG_SYS_MAXARGS     8               /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
 
-#define CFG_FLASH_BASE0_PRELIM      0xFFF00000      /* FLASH bank on RCS#0 */
-#define CFG_FLASH_BASE1_PRELIM      0xFF800000      /* FLASH bank on RCS#1 */
-#define CFG_FLASH_BASE  CFG_MONITOR_BASE
-#define CFG_FLASH_BANKS                { CFG_FLASH_BASE0_PRELIM , CFG_FLASH_BASE1_PRELIM }
+#define CONFIG_SYS_FLASH_BASE0_PRELIM      0xFFF00000      /* FLASH bank on RCS#0 */
+#define CONFIG_SYS_FLASH_BASE1_PRELIM      0xFF800000      /* FLASH bank on RCS#1 */
+#define CONFIG_SYS_FLASH_BASE  CONFIG_SYS_MONITOR_BASE
+#define CONFIG_SYS_FLASH_BANKS         { CONFIG_SYS_FLASH_BASE0_PRELIM , CONFIG_SYS_FLASH_BASE1_PRELIM }
 
 /* even though FLASHP_BASE is FF800000, with 4MB is RCS0, the
  * reset vector is actually located at FFB00100, but the 8245
  * takes care of us.
  */
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_EUMB_ADDR      0xFC000000
+#define CONFIG_SYS_EUMB_ADDR       0xFC000000
 
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (2048 << 10) /* Reserve 2MB for malloc()    */
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (2048 << 10) /* Reserve 2MB for malloc()    */
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x04000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x04000000  /* 0 ... 32 MB in DRAM          */
 
        /* Maximum amount of RAM.
         */
-#define CFG_MAX_RAM_SIZE    0x04000000 /* 0 .. 64 MB of (S)DRAM */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x04000000  /* 0 .. 64 MB of (S)DRAM */
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR CFG_SDRAM_BASE + CFG_MONITOR_LEN
-#define CFG_INIT_RAM_END   0x2F00  /* End of used area in DPRAM  */
-#define CFG_GBL_DATA_SIZE  128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET  CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MONITOR_LEN
+#define CONFIG_SYS_INIT_RAM_END   0x2F00  /* End of used area in DPRAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE  128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET  CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Low Level Configuration Settings
  */
 
 #define CONFIG_SYS_CLK_FREQ  33000000  /* external frequency to pll */
-#define CFG_HZ              1000
+#define CONFIG_SYS_HZ               1000
 
-#define CFG_ETH_DEV_FN      0x7800
-#define CFG_ETH_IOBASE      0x00104000
+#define CONFIG_SYS_ETH_DEV_FN       0x7800
+#define CONFIG_SYS_ETH_IOBASE       0x00104000
 
        /* Bit-field values for MCCR1.
         */
-#define CFG_ROMNAL         0xf
-#define CFG_ROMFAL         0x1f
-#define CFG_DBUS_SIZE       0x3
+#define CONFIG_SYS_ROMNAL          0xf
+#define CONFIG_SYS_ROMFAL          0x1f
+#define CONFIG_SYS_DBUS_SIZE       0x3
 
        /* Bit-field values for MCCR2.
         */
-#define CFG_TSWAIT         0x5             /* Transaction Start Wait States timer */
-#define CFG_REFINT         0x400           /* Refresh interval FIXME: was 0t430                */
+#define CONFIG_SYS_TSWAIT          0x5             /* Transaction Start Wait States timer */
+#define CONFIG_SYS_REFINT          0x400           /* Refresh interval FIXME: was 0t430                */
 
        /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
         */
-#define CFG_BSTOPRE        0           /* FIXME: was 192 */
+#define CONFIG_SYS_BSTOPRE         0           /* FIXME: was 192 */
 
        /* Bit-field values for MCCR3.
         */
-#define CFG_REFREC         2       /* Refresh to activate interval */
+#define CONFIG_SYS_REFREC          2       /* Refresh to activate interval */
 
        /* Bit-field values for MCCR4.
         */
-#define CFG_PRETOACT       2       /* Precharge to activate interval FIXME: was 2      */
-#define CFG_ACTTOPRE       5       /* Activate to Precharge interval FIXME: was 5      */
-#define CFG_SDMODE_CAS_LAT  3      /* SDMODE CAS latancy */
-#define CFG_SDMODE_WRAP            0       /* SDMODE wrap type */
-#define CFG_SDMODE_BURSTLEN 3      /* SDMODE Burst length */
-#define CFG_ACTORW         0xa         /* FIXME was 2 */
-#define CFG_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_PRETOACT        2       /* Precharge to activate interval FIXME: was 2      */
+#define CONFIG_SYS_ACTTOPRE        5       /* Activate to Precharge interval FIXME: was 5      */
+#define CONFIG_SYS_SDMODE_CAS_LAT  3       /* SDMODE CAS latancy */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type */
+#define CONFIG_SYS_SDMODE_BURSTLEN 3       /* SDMODE Burst length */
+#define CONFIG_SYS_ACTORW          0xa         /* FIXME was 2 */
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
 
-#define CFG_PGMAX           0x0 /* how long the 8240 reatins the currently accessed page in memory FIXME: was 0x32*/
+#define CONFIG_SYS_PGMAX           0x0 /* how long the 8240 reatins the currently accessed page in memory FIXME: was 0x32*/
 
-#define CFG_SDRAM_DSCD 0x20    /* SDRAM data in sample clock delay - note bottom 3 bits MUST be 0 */
+#define CONFIG_SYS_SDRAM_DSCD  0x20    /* SDRAM data in sample clock delay - note bottom 3 bits MUST be 0 */
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START            0x3ff00000
-#define CFG_BANK1_END      0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START            0x3ff00000
-#define CFG_BANK2_END      0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START            0x3ff00000
-#define CFG_BANK3_END      0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START            0x3ff00000
-#define CFG_BANK4_END      0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START            0x3ff00000
-#define CFG_BANK5_END      0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START            0x3ff00000
-#define CFG_BANK6_END      0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START            0x3ff00000
-#define CFG_BANK7_END      0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR           0xff
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0xff
 
 #define CONFIG_PCI              1 /* Include PCI support */
 #undef CONFIG_PCI_PNP
 #include "../board/bmw/bmw.h"
 
 /* BAT configuration */
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT1L  (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U  (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L  (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U  (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    0       /* Max number of flash banks        */
-#define CFG_MAX_FLASH_SECT     64      /* Max number of sectors per  flash */
+#define CONFIG_SYS_MAX_FLASH_BANKS     0       /* Max number of flash banks        */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* Max number of sectors per  flash */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
 /*
  * Warining: environment is not EMBEDDED in the U-Boot code.
  */
 #define CONFIG_ENV_IS_IN_NVRAM      1
 #define CONFIG_ENV_OVERWRITE     1
-#define CFG_NVRAM_ACCESS_ROUTINE 1
+#define CONFIG_SYS_NVRAM_ACCESS_ROUTINE 1
 #define CONFIG_ENV_ADDR                0x7c004000 /* right at the start of NVRAM  */
 #define CONFIG_ENV_SIZE                0x1ff0  /* Size of the Environment - 8K    */
 #define CONFIG_ENV_OFFSET              0       /* starting right at the beginning */
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value   */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value   */
 #endif
 
 /*
index be588389c0e7d9d0a18a03ee2a15d75c29edd2e6..e3e6e75e8d0bbf0715c486b69509664cac761f9b 100644 (file)
@@ -50,7 +50,7 @@
        "bootm ffe00000 ffe80000"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #undef CONFIG_PCI_PNP                  /* no pci plug-and-play         */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_EXT_SERIAL_CLOCK   14745600 /* use external serial clock   */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    14745600 /* use external serial clock   */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFE0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (128 * 1024)    /* Reserve 128 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFE0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)    /* Reserve 128 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* Use FLASH for environment variables */
 
  * I2C EEPROM (CAT24WC08) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2C with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (CAN/USB) initialization                                      */
-#define CFG_EBC_PB1AP          0x010053C0  /* enable Ready, BEM=1              */
-#define CFG_EBC_PB1CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x010053C0  /* enable Ready, BEM=1              */
+#define CONFIG_SYS_EBC_PB1CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (Misc-IO/LEDs) initialization                                 */
-#define CFG_EBC_PB2AP          0x000004c0  /* no Ready, BEM=1                  */
-#define CFG_EBC_PB2CR          0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x000004c0  /* no Ready, BEM=1                  */
+#define CONFIG_SYS_EBC_PB2CR           0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (CAN Features) initialization                                 */
-#define CFG_EBC_PB3AP          0x80000040  /* no Ready, BEM=1                  */
-#define CFG_EBC_PB3CR          0xF021C000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=32bit */
+#define CONFIG_SYS_EBC_PB3AP           0x80000040  /* no Ready, BEM=1                  */
+#define CONFIG_SYS_EBC_PB3CR           0xF021C000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=32bit */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in RAM)
  */
-#define CFG_INIT_RAM_ADDR      0x00ef0000 /* inside of SDRAM                   */
-#define CFG_INIT_RAM_END       0x0f00  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x00ef0000 /* inside of SDRAM                   */
+#define CONFIG_SYS_INIT_RAM_END        0x0f00  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
index 6946871e0d65c88599fe28a3c7919a9b0c7590eb..a44f3e16cc418b623db57784e1446f1817862f25 100644 (file)
@@ -63,7 +63,7 @@
 #define __DISABLE_MACHINE_EXCEPTION__
 
 #ifdef __DEBUG_START_FROM_SRAM__
-#define CFG_DUMMY_FLASH_SIZE           1024*1024*4
+#define CONFIG_SYS_DUMMY_FLASH_SIZE            1024*1024*4
 #endif
 
 /*
 #define CONFIG_ETH1ADDR 00:50:C2:1E:AF:FD
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 
 #undef CONFIG_EXT_PHY
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818            /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000500 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000500 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
-#define        CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define        CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK            /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD          691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD           691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_NAND0_BASE 0xFF400000
-#define CFG_NAND1_BASE 0xFF000000
-#define CFG_NAND_BASE_LIST     { CFG_NAND0_BASE }
+#define CONFIG_SYS_NAND0_BASE 0xFF400000
+#define CONFIG_SYS_NAND1_BASE 0xFF000000
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND0_BASE }
 #define NAND_BIG_DELAY_US      25
 
 /* For CATcenter there is only NAND on the module */
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
 #define SECTORSIZE 512
 #define NAND_NO_RB
 
 #define NAND_MAX_FLOORS 1
 #define NAND_MAX_CHIPS 1
 
-#define CFG_NAND0_CE  (0x80000000 >> 1)         /* our CE is GPIO1 */
-#define CFG_NAND0_CLE (0x80000000 >> 2)         /* our CLE is GPIO2 */
-#define CFG_NAND0_ALE (0x80000000 >> 3)         /* our ALE is GPIO3 */
-#define CFG_NAND0_RDY (0x80000000 >> 4)         /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND0_CE  (0x80000000 >> 1)  /* our CE is GPIO1 */
+#define CONFIG_SYS_NAND0_CLE (0x80000000 >> 2)  /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND0_ALE (0x80000000 >> 3)  /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND0_RDY (0x80000000 >> 4)  /* our RDY is GPIO4 */
 
-#define CFG_NAND1_CE  (0x80000000 >> 14)  /* our CE is GPIO14 */
-#define CFG_NAND1_CLE (0x80000000 >> 15)  /* our CLE is GPIO15 */
-#define CFG_NAND1_ALE (0x80000000 >> 16)  /* our ALE is GPIO16 */
-#define CFG_NAND1_RDY (0x80000000 >> 31)  /* our RDY is GPIO31 */
+#define CONFIG_SYS_NAND1_CE  (0x80000000 >> 14)  /* our CE is GPIO14 */
+#define CONFIG_SYS_NAND1_CLE (0x80000000 >> 15)  /* our CLE is GPIO15 */
+#define CONFIG_SYS_NAND1_ALE (0x80000000 >> 16)  /* our ALE is GPIO16 */
+#define CONFIG_SYS_NAND1_RDY (0x80000000 >> 31)  /* our RDY is GPIO31 */
 
 
 #define MACRO_NAND_DISABLE_CE(nandptr) do \
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND0_CE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND0_CE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND1_CE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND1_CE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND0_CE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND0_CE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND1_CE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND1_CE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND0_ALE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND0_ALE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND1_ALE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND1_ALE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND0_ALE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND0_ALE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND1_ALE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND1_ALE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND0_CLE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND0_CLE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND1_CLE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND1_CLE); \
                break; \
        } \
 } while(0)
 
 #define MACRO_NAND_CTL_SETCLE(nandptr) do { \
        switch((unsigned long)nandptr) { \
-       case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND0_CLE); \
+       case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND0_CLE); \
                break; \
-       case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND1_CLE); \
+       case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND1_CLE); \
                break; \
        } \
 } while(0)
 
 #define CONFIG_PCI_SCAN_SHOW           /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x1014 /* PCI Vendor ID: IBM   */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000 /* PCI Device ID: ---   */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014  /* PCI Vendor ID: IBM   */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: ---   */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
 
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 #endif /* No PCI */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * Environment Variable setup
 #define CONFIG_ENV_ADDR_REDUND 0xFFFFA000
 #define CONFIG_ENV_SIZE_REDUND 0x2000
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-/*#define CFG_I2C_EEPROM_ADDR_OVERFLOW 0x07*/
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+/*#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW  0x07*/
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                16384   /* For AMCC 405 CPUs, older 405 ppc's   */
+#define CONFIG_SYS_DCACHE_SIZE         16384   /* For AMCC 405 CPUs, older 405 ppc's   */
                                        /* have only 8kB, 16kB is save here     */
-#define CFG_CACHELINE_SIZE     32      /* ...                  */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* ...                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value        */
 #endif
 
 /*
  */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (External SRAM) initialization                                        */
 /* Since this must replace NOR Flash, we use the same settings for CS0         */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB2AP          0x92015480
-#define CFG_EBC_PB2CR          0xFF458000  /* BAS=0xFF4,BS=4MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x92015480
+#define CONFIG_SYS_EBC_PB2CR           0xFF458000  /* BAS=0xFF4,BS=4MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (Flash Bank 2, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB3AP          0x92015480
-#define CFG_EBC_PB3CR          0xFF058000  /* BAS=0xFF0,BS=4MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB3AP           0x92015480
+#define CONFIG_SYS_EBC_PB3CR           0xFF058000  /* BAS=0xFF0,BS=4MB,BU=R/W,BW=8bit  */
 
 #ifdef CONFIG_PPCHAMELEON_SMI712
 /*
 #define CONFIG_CONSOLE_EXTRA_INFO
 #define CONFIG_VGA_AS_SINGLE_DEVICE
 /* This is the base address (on 405EP-side) used to generate I/O accesses on PCI bus */
-#define CFG_ISA_IO 0xE8000000
+#define CONFIG_SYS_ISA_IO 0xE8000000
 /* see also drivers/video/videomodes.c */
-#define CFG_DEFAULT_VIDEO_MODE 0x303
+#define CONFIG_SYS_DEFAULT_VIDEO_MODE 0x303
 #endif
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 /* FPGA internal regs */
-#define CFG_FPGA_MODE          0x00
-#define CFG_FPGA_STATUS                0x02
-#define CFG_FPGA_TS            0x04
-#define CFG_FPGA_TS_LOW                0x06
-#define CFG_FPGA_TS_CAP0       0x10
-#define CFG_FPGA_TS_CAP0_LOW   0x12
-#define CFG_FPGA_TS_CAP1       0x14
-#define CFG_FPGA_TS_CAP1_LOW   0x16
-#define CFG_FPGA_TS_CAP2       0x18
-#define CFG_FPGA_TS_CAP2_LOW   0x1a
-#define CFG_FPGA_TS_CAP3       0x1c
-#define CFG_FPGA_TS_CAP3_LOW   0x1e
+#define CONFIG_SYS_FPGA_MODE           0x00
+#define CONFIG_SYS_FPGA_STATUS         0x02
+#define CONFIG_SYS_FPGA_TS             0x04
+#define CONFIG_SYS_FPGA_TS_LOW         0x06
+#define CONFIG_SYS_FPGA_TS_CAP0        0x10
+#define CONFIG_SYS_FPGA_TS_CAP0_LOW    0x12
+#define CONFIG_SYS_FPGA_TS_CAP1        0x14
+#define CONFIG_SYS_FPGA_TS_CAP1_LOW    0x16
+#define CONFIG_SYS_FPGA_TS_CAP2        0x18
+#define CONFIG_SYS_FPGA_TS_CAP2_LOW    0x1a
+#define CONFIG_SYS_FPGA_TS_CAP3        0x1c
+#define CONFIG_SYS_FPGA_TS_CAP3_LOW    0x1e
 
 /* FPGA Mode Reg */
-#define CFG_FPGA_MODE_CF_RESET 0x0001
-#define CFG_FPGA_MODE_TS_IRQ_ENABLE 0x0100
-#define CFG_FPGA_MODE_TS_IRQ_CLEAR  0x1000
-#define CFG_FPGA_MODE_TS_CLEAR 0x2000
+#define CONFIG_SYS_FPGA_MODE_CF_RESET  0x0001
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_ENABLE 0x0100
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_CLEAR  0x1000
+#define CONFIG_SYS_FPGA_MODE_TS_CLEAR  0x2000
 
 /* FPGA Status Reg */
-#define CFG_FPGA_STATUS_DIP0   0x0001
-#define CFG_FPGA_STATUS_DIP1   0x0002
-#define CFG_FPGA_STATUS_DIP2   0x0004
-#define CFG_FPGA_STATUS_FLASH  0x0008
-#define CFG_FPGA_STATUS_TS_IRQ 0x1000
+#define CONFIG_SYS_FPGA_STATUS_DIP0    0x0001
+#define CONFIG_SYS_FPGA_STATUS_DIP1    0x0002
+#define CONFIG_SYS_FPGA_STATUS_DIP2    0x0004
+#define CONFIG_SYS_FPGA_STATUS_FLASH   0x0008
+#define CONFIG_SYS_FPGA_STATUS_TS_IRQ  0x1000
 
-#define CFG_FPGA_SPARTAN2      1               /* using Xilinx Spartan 2 now   */
-#define CFG_FPGA_MAX_SIZE      128*1024        /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1               /* using Xilinx Spartan 2 now   */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024        /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000      /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000      /* FPGA clk pin (ppc output)    */
-#define CFG_FPGA_DATA          0x01000000      /* FPGA data pin (ppc output)   */
-#define CFG_FPGA_INIT          0x00010000      /* FPGA init pin (ppc input)    */
-#define CFG_FPGA_DONE          0x00008000      /* FPGA done pin (ppc input)    */
+#define CONFIG_SYS_FPGA_PRG            0x04000000      /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000      /* FPGA clk pin (ppc output)    */
+#define CONFIG_SYS_FPGA_DATA           0x01000000      /* FPGA data pin (ppc output)   */
+#define CONFIG_SYS_FPGA_INIT           0x00010000      /* FPGA init pin (ppc input)    */
+#define CONFIG_SYS_FPGA_DONE           0x00008000      /* FPGA done pin (ppc input)    */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[30]   - EMAC0 input
  * GPIO0[31]   - EMAC1 reject packet as output
  */
-#define CFG_GPIO0_OSRH         0x40000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-/*#define CFG_GPIO0_ISR1L      0x15555445*/
-#define CFG_GPIO0_ISR1L                0x15555444
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xF7FF8014
+#define CONFIG_SYS_GPIO0_OSRH          0x40000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+/*#define CONFIG_SYS_GPIO0_ISR1L       0x15555445*/
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555444
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xF7FF8014
 
 /*
  * Internal Definitions
 /* Model HI */
 #define PLLMR0_DEFAULT PPCHAMELEON_PLLMR0_333_111_37_55_55
 #define PLLMR1_DEFAULT PPCHAMELEON_PLLMR1_333_111_37_55_55
-#define CFG_OPB_FREQ   55555555
+#define CONFIG_SYS_OPB_FREQ    55555555
 /* Model ME */
 #elif (CONFIG_PPCHAMELEON_MODULE_MODEL == CONFIG_PPCHAMELEON_MODULE_ME)
 #define PLLMR0_DEFAULT PPCHAMELEON_PLLMR0_266_133_33_66_33
 #define PLLMR1_DEFAULT PPCHAMELEON_PLLMR1_266_133_33_66_33
-#define CFG_OPB_FREQ   66666666
+#define CONFIG_SYS_OPB_FREQ    66666666
 #else
 /* Model BA (default) */
 #define PLLMR0_DEFAULT PPCHAMELEON_PLLMR0_133_133_33_66_33
 #define PLLMR1_DEFAULT PPCHAMELEON_PLLMR1_133_133_33_66_33
-#define CFG_OPB_FREQ   66666666
+#define CONFIG_SYS_OPB_FREQ    66666666
 #endif
 
 #endif /* CONFIG_NO_SERIAL_EEPROM */
index 435e8ecf59b8cafbdce5e584881f14db7cb08cc1..d1c293ff0adf06b5d03a6722e3ce93f4cc7df4b1 100644 (file)
@@ -65,7 +65,7 @@
                                "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE   /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE    /* don't allow baudrate change  */
 
 #define        CONFIG_WATCHDOG         1       /* watchdog enabled             */
 
@@ -86,9 +86,9 @@
  * far enough from the start of the data area (as well as from the
  * stack pointer).
  * ---------------------------------------------------------------- */
-#define CFG_SPI_INIT_OFFSET            0xB00
+#define CONFIG_SYS_SPI_INIT_OFFSET             0xB00
 
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* 32-byte page size    */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* 32-byte page size    */
 
 
 #define CONFIG_MAC_PARTITION           /* nod used yet                 */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x00100000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00100000      /* default load address */
 
 /* Ethernet hardware configuration done using port pins */
-#define CFG_PA_ETH_RESET       0x0200          /* PA  6        */
-#define CFG_PA_ETH_MDDIS       0x4000          /* PA  1        */
-#define CFG_PB_ETH_POWERDOWN   0x00000800      /* PB 20        */
-#define CFG_PB_ETH_CFG1                0x00000400      /* PB 21        */
-#define CFG_PB_ETH_CFG2                0x00000200      /* PB 22        */
-#define CFG_PB_ETH_CFG3                0x00000100      /* PB 23        */
+#define CONFIG_SYS_PA_ETH_RESET        0x0200          /* PA  6        */
+#define CONFIG_SYS_PA_ETH_MDDIS        0x4000          /* PA  1        */
+#define CONFIG_SYS_PB_ETH_POWERDOWN    0x00000800      /* PB 20        */
+#define CONFIG_SYS_PB_ETH_CFG1         0x00000400      /* PB 21        */
+#define CONFIG_SYS_PB_ETH_CFG2         0x00000200      /* PB 22        */
+#define CONFIG_SYS_PB_ETH_CFG3         0x00000100      /* PB 23        */
 
 /* Ethernet settings:
  * MDIO not disabled, autonegotiation, 10/100Mbps, half/full duplex
  */
-#define CFG_ETH_MDDIS_VALUE    0
-#define CFG_ETH_CFG1_VALUE     1
-#define CFG_ETH_CFG2_VALUE     1
-#define CFG_ETH_CFG3_VALUE     1
+#define CONFIG_SYS_ETH_MDDIS_VALUE     0
+#define CONFIG_SYS_ETH_CFG1_VALUE      1
+#define CONFIG_SYS_ETH_CFG2_VALUE      1
+#define CONFIG_SYS_ETH_CFG3_VALUE      1
 
 /* PUMA configuration */
-#define CFG_PC_PUMA_PROG       0x0200          /* PC  6        */
-#define CFG_PC_PUMA_DONE       0x0008          /* PC 12        */
-#define CFG_PC_PUMA_INIT       0x0004          /* PC 13        */
+#define CONFIG_SYS_PC_PUMA_PROG        0x0200          /* PC  6        */
+#define CONFIG_SYS_PC_PUMA_DONE        0x0008          /* PC 12        */
+#define CONFIG_SYS_PC_PUMA_INIT        0x0004          /* PC 13        */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Address accessed to reset the board - must not be mapped/assigned
  */
-#define        CFG_RESET_ADDRESS       0xFEFFFFFF
+#define        CONFIG_SYS_RESET_ADDRESS        0xFEFFFFFF
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #if 1
 /* Start port with environment in flash; switch to SPI EEPROM later */
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                           11-9
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                                                  SYPCR_SWP)
 #endif
 
  *-----------------------------------------------------------------------
  * we must activate GPL5 in the SIUMCR for CAN
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 #ifdef CCM_80MHz       /* for 80 MHz, we use a 16 MHz clock * 5 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                ( (5-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
 #else                  /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 #endif /* CCM_80MHz */
 
 /*-----------------------------------------------------------------------
  */
 #define SCCR_MASK      SCCR_EBDF11
 #ifdef CCM_80MHz       /* for 80 MHz, we use a 16 MHz clock * 5 */
-#define CFG_SCCR       (/* SCCR_TBS  | */ \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS  | */ \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 #else                  /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  * Interrupt Levels
  *-----------------------------------------------------------------------
  */
-#define CFG_CPM_INTERRUPT      13      /* SIU_LEVEL6   */
+#define CONFIG_SYS_CPM_INTERRUPT       13      /* SIU_LEVEL6   */
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
                                 OR_SCY_5_CLK | OR_EHTR)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2 and OR2 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * BR3 and OR3 (CAN Controller)
  */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 
 /*
 #define PUMA_CONF_BR_READ      ((PUMA_CONF_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
 #define PUMA_CONF_OR_READ      (PUMA_CONF_OR_AM | PUMA_CONF_READ_TIMING)
 
-#define CFG_BR4_PRELIM         PUMA_CONF_BR_READ
-#define CFG_OR4_PRELIM         PUMA_CONF_OR_READ
+#define CONFIG_SYS_BR4_PRELIM          PUMA_CONF_BR_READ
+#define CONFIG_SYS_OR4_PRELIM          PUMA_CONF_OR_READ
 
 /*
  * BR5/OR5: PUMA: SMA Bus 8 Bit
 #define PUMA_SMA8_OR_AM                0xFFE00000      /* 2 MB */
 #define PUMA_SMA8_TIMING       (OR_BI | OR_SCY_0_CLK | OR_EHTR)
 
-#define CFG_BR5_PRELIM         ((PUMA_SMA8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
-#define CFG_OR5_PRELIM         (PUMA_SMA8_OR_AM | PUMA_SMA8_TIMING | OR_SETA)
+#define CONFIG_SYS_BR5_PRELIM          ((PUMA_SMA8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR5_PRELIM          (PUMA_SMA8_OR_AM | PUMA_SMA8_TIMING | OR_SETA)
 
 /*
  * BR6/OR6: PUMA: SMA Bus 16 Bit
 #define PUMA_SMA16_OR_AM       0xFFE00000      /* 2 MB */
 #define PUMA_SMA16_TIMING      (OR_BI | OR_SCY_0_CLK | OR_EHTR)
 
-#define CFG_BR6_PRELIM         ((PUMA_SMA16_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
-#define CFG_OR6_PRELIM         (PUMA_SMA16_OR_AM | PUMA_SMA16_TIMING | OR_SETA)
+#define CONFIG_SYS_BR6_PRELIM          ((PUMA_SMA16_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR6_PRELIM          (PUMA_SMA16_OR_AM | PUMA_SMA16_TIMING | OR_SETA)
 
 /*
  * BR7/OR7: PUMA: external Flash
 #define PUMA_FLASH_OR_AM       0xFE000000      /* 32 MB */
 #define PUMA_FLASH_TIMING      (OR_BI | OR_SCY_0_CLK | OR_EHTR)
 
-#define CFG_BR7_PRELIM         ((PUMA_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
-#define CFG_OR7_PRELIM         (PUMA_FLASH_OR_AM | PUMA_FLASH_TIMING | OR_SETA)
+#define CONFIG_SYS_BR7_PRELIM          ((PUMA_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR7_PRELIM          (PUMA_FLASH_OR_AM | PUMA_FLASH_TIMING | OR_SETA)
 
 
 /*
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 9aec746621072665f3845f7faa9efda77a104556..d58f50848464cee465a7ff82906aec3cff79bb5f 100644 (file)
@@ -50,7 +50,7 @@
 
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #define        CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * RTC stuff
  *-----------------------------------------------------------------------
  */
 #define CONFIG_RTC_DS1337
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE }
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE }
 #define NAND_MAX_CHIPS          1
-#define CFG_MAX_NAND_DEVICE    1         /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1         /* Max number of NAND devices */
 #define NAND_BIG_DELAY_US      25
 
-#define CFG_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
-#define CFG_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
-#define CFG_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
-#define CFG_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
+#define CONFIG_SYS_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
 
-#define CFG_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
-#define CFG_NAND_QUIET          1
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
+#define CONFIG_SYS_NAND_QUIET          1
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #undef CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 #define FLASH_BASE0_PRELIM     0xFFC00000      /* FLASH bank #0        */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* test-only */
-#define CFG_JFFS2_FIRST_BANK   0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS    1           /* ! second bank contains U-Boot */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
 #endif
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
-
-#if (CFG_MONITOR_BASE < FLASH_BASE0_PRELIM)
-# define CFG_RAMBOOT           1
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
+
+#if (CONFIG_SYS_MONITOR_BASE < FLASH_BASE0_PRELIM)
+# define CONFIG_SYS_RAMBOOT            1
 #else
-# undef CFG_RAMBOOT
+# undef CONFIG_SYS_RAMBOOT
 #endif
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
-#define CFG_EEPROM_WREN         1
+#define CONFIG_SYS_EEPROM_WREN         1
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  */
-#define CFG_PLD_BASE            0xf0000000
-#define CFG_NAND_BASE          0xF4000000  /* NAND FLASH Base Address          */
+#define CONFIG_SYS_PLD_BASE            0xf0000000
+#define CONFIG_SYS_NAND_BASE           0xF4000000  /* NAND FLASH Base Address          */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization             */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
-#define CFG_FPGA_XC95XL                1           /* using Xilinx XC95XL CPLD      */
-#define CFG_FPGA_MAX_SIZE      32*1024     /* 32kByte is enough for CPLD    */
+#define CONFIG_SYS_FPGA_XC95XL         1           /* using Xilinx XC95XL CPLD      */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024     /* 32kByte is enough for CPLD    */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* JTAG TMS pin (ppc output)     */
-#define CFG_FPGA_CLK           0x02000000  /* JTAG TCK pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
-#define CFG_FPGA_INIT          0x00010000  /* unused (ppc input)            */
-#define CFG_FPGA_DONE          0x00008000  /* JTAG TDI->TDO pin (ppc input) */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* JTAG TMS pin (ppc output)     */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* JTAG TCK pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* unused (ppc input)            */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* JTAG TDI->TDO pin (ppc input) */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
 /* GPIO Output:                OSR=00, ISR=00, TSR=00, TCR=1 */
 /* Alt. Funtion Input: OSR=00, ISR=01, TSR=00, TCR=0 */
 /* Alt. Funtion Output: OSR=01, ISR=00, TSR=00, TCR=1 */
-#define CFG_GPIO0_OSRH         0x40000500  /*  0 ... 15 */
-#define CFG_GPIO0_OSRL         0x00000110  /* 16 ... 31 */
-#define CFG_GPIO0_ISR1H                0x00000000  /*  0 ... 15 */
-#define CFG_GPIO0_ISR1L                0x14000045  /* 16 ... 31 */
-#define CFG_GPIO0_TSRH         0x00000000  /*  0 ... 15 */
-#define CFG_GPIO0_TSRL         0x00000000  /* 16 ... 31 */
-#define CFG_GPIO0_TCR          0xF7FE0014  /*  0 ... 31 */
-
-#define CFG_EEPROM_WP          (0x80000000 >> 8)    /* GPIO8 */
-#define CFG_PLD_RESET          (0x80000000 >> 12)   /* GPIO12 */
+#define CONFIG_SYS_GPIO0_OSRH          0x40000500  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_ISR1L         0x14000045  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_TCR           0xF7FE0014  /*  0 ... 31 */
+
+#define CONFIG_SYS_EEPROM_WP           (0x80000000 >> 8)    /* GPIO8 */
+#define CONFIG_SYS_PLD_RESET           (0x80000000 >> 12)   /* GPIO12 */
 
 /*
  * Internal Definitions
index a338af0e5c12e7a3525937220be6e7151696aea6..91d262a22c659c49102c9acd86303d455f6944c2 100644 (file)
@@ -48,7 +48,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_PREBOOT "echo;echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;echo"
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 #if 1
-#define CFG_HUSH_PARSER                1       /* use "hush" command parser    */
+#define CONFIG_SYS_HUSH_PARSER         1       /* use "hush" command parser    */
 #endif
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
 
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 
 #if defined(CONFIG_BOOT_ROM)
-#define CFG_FLASH_BASE         0xFF000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
 #else
-#define CFG_FLASH_BASE         0xFF800000
+#define CONFIG_SYS_FLASH_BASE          0xFF800000
 #endif
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
-#define CFG_EUMB_ADDR          0xFCE00000
+#define CONFIG_SYS_EUMB_ADDR           0xFCE00000
 
-#define CFG_MONITOR_BASE       TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00004000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x02000000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00004000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x02000000      /* 0 ... 32 MB in DRAM          */
 
 /* Maximum amount of RAM.
  */
-#define CFG_MAX_RAM_SIZE       0x10000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x10000000
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 
 
 /* Size in bytes reserved for initial data
  */
-#define CFG_GBL_DATA_SIZE      128
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_NS16550_COM1       (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM2       (CFG_EUMB_ADDR + 0x4600)
-#define DUART_DCR              (CFG_EUMB_ADDR + 0x4511)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_EUMB_ADDR + 0x4600)
+#define DUART_DCR              (CONFIG_SYS_EUMB_ADDR + 0x4511)
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR       0x51
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x58
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
 
 /*
  * Low Level Configuration Settings
  */
 
 #define CONFIG_SYS_CLK_FREQ    33000000
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 
 /* Bit-field values for MCCR1.
  */
-#define CFG_ROMNAL             0
-#define CFG_ROMFAL             8
-
-#define CFG_BANK0_ROW          0       /* SDRAM bank 7-0 row address */
-#define CFG_BANK1_ROW          0
-#define CFG_BANK2_ROW          0
-#define CFG_BANK3_ROW          0
-#define CFG_BANK4_ROW          0
-#define CFG_BANK5_ROW          0
-#define CFG_BANK6_ROW          0
-#define CFG_BANK7_ROW          0
+#define CONFIG_SYS_ROMNAL              0
+#define CONFIG_SYS_ROMFAL              8
+
+#define CONFIG_SYS_BANK0_ROW           0       /* SDRAM bank 7-0 row address */
+#define CONFIG_SYS_BANK1_ROW           0
+#define CONFIG_SYS_BANK2_ROW           0
+#define CONFIG_SYS_BANK3_ROW           0
+#define CONFIG_SYS_BANK4_ROW           0
+#define CONFIG_SYS_BANK5_ROW           0
+#define CONFIG_SYS_BANK6_ROW           0
+#define CONFIG_SYS_BANK7_ROW           0
 
 /* Bit-field values for MCCR2.
  */
 
-#define CFG_REFINT             0x2ec
+#define CONFIG_SYS_REFINT              0x2ec
 
 /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
  */
-#define CFG_BSTOPRE            160
+#define CONFIG_SYS_BSTOPRE             160
 
 /* Bit-field values for MCCR3.
  */
-#define CFG_REFREC             2       /* Refresh to activate interval         */
-#define CFG_RDLAT              0       /* Data latancy from read command       */
+#define CONFIG_SYS_REFREC              2       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT               0       /* Data latancy from read command       */
 
 /* Bit-field values for MCCR4.
  */
-#define CFG_PRETOACT           2       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           5       /* Activate to Precharge interval       */
-#define CFG_SDMODE_CAS_LAT     2       /* SDMODE CAS latancy                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
-#define CFG_SDMODE_BURSTLEN    2       /* SDMODE Burst length                  */
-#define CFG_ACTORW             2
-#define CFG_REGISTERD_TYPE_BUFFER 1
-#define CFG_EXTROM             0
-#define CFG_REGDIMM            0
+#define CONFIG_SYS_PRETOACT            2       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_SDMODE_CAS_LAT      2       /* SDMODE CAS latancy                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_SDMODE_BURSTLEN     2       /* SDMODE Burst length                  */
+#define CONFIG_SYS_ACTORW              2
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_EXTROM              0
+#define CONFIG_SYS_REGDIMM             0
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x3ff00000
-#define CFG_BANK1_END          0x3fffffff
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x3ff00000
-#define CFG_BANK2_END          0x3fffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x3ff00000
-#define CFG_BANK3_END          0x3fffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x3ff00000
-#define CFG_BANK4_END          0x3fffffff
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x3ff00000
-#define CFG_BANK5_END          0x3fffffff
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x3ff00000
-#define CFG_BANK6_END          0x3fffffff
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x3ff00000
-#define CFG_BANK7_END          0x3fffffff
-#define CFG_BANK7_ENABLE       0
-
-#define CFG_ODCR               0xff
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x3ff00000
+#define CONFIG_SYS_BANK1_END           0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x3ff00000
+#define CONFIG_SYS_BANK2_END           0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x3ff00000
+#define CONFIG_SYS_BANK3_END           0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x3ff00000
+#define CONFIG_SYS_BANK4_END           0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x3ff00000
+#define CONFIG_SYS_BANK5_END           0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x3ff00000
+#define CONFIG_SYS_BANK6_END           0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x3ff00000
+#define CONFIG_SYS_BANK7_END           0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE        0
+
+#define CONFIG_SYS_ODCR                0xff
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT3L  (0xFC000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xFC000000 | BATU_BL_64M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L  (0xFC000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xFC000000 | BATU_BL_64M | BATU_VS | BATU_VP)
 
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     39      /* Max number of sectors in one bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      39      /* Max number of sectors in one bank    */
 #define INTEL_ID_28F160F3T     0x88F388F3      /*  16M = 1M x 16 top boot sector       */
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
        /* Warining: environment is not EMBEDDED in the ppcboot code.
         * It's stored in flash separately.
         */
 #define CONFIG_ENV_IS_IN_FLASH     1
 
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x7F8000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x7F8000)
 #define CONFIG_ENV_SIZE                0x4000  /* Size of the Environment              */
 #define CONFIG_ENV_OFFSET              0       /* starting right at the beginning      */
 #define CONFIG_ENV_SECT_SIZE   0x8000 /* Size of the Environment Sector        */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
 #define CONFIG_NET_MULTI               /* Multi ethernet cards support         */
 
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8       /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8       /* use 8 rx buffer on eepro100  */
 
 #define PCI_ENET0_IOADDR       0x82000000
 #define PCI_ENET0_MEMADDR      0x82000000
 
 #define CONFIG_I82365
 
-#define CFG_PCMCIA_MEM_ADDR    PCMCIA_MEM_BASE
-#define CFG_PCMCIA_MEM_SIZE    0x1000
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     PCMCIA_MEM_BASE
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     0x1000
 
 #define CONFIG_PCMCIA_SLOT_A
 
 #undef CONFIG_IDE_RESET                /* reset for IDE not supported  */
 #define        CONFIG_IDE_LED                  /* LED   for IDE is  supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
-#define CFG_ATA_DATA_OFFSET    CFG_PCMCIA_MEM_SIZE
+#define CONFIG_SYS_ATA_DATA_OFFSET     CONFIG_SYS_PCMCIA_MEM_SIZE
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (CFG_PCMCIA_MEM_SIZE + 0x400)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x400)
 
 #define CONFIG_DOS_PARTITION
 
index 208f1a21166d05b981f22291886a56e10f22aa0c..328773430119aeaf72f3e2c14fac708d2655c1be 100644 (file)
@@ -49,7 +49,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #define CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_BOOTDELAY    0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x040b  /* PCI Device ID: CPCI-2DP      */
-#define CFG_PCI_CLASSCODE       0x0280 /* PCI Class Code: Network/Other*/
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x040b  /* PCI Device ID: CPCI-2DP      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0280  /* PCI Class Code: Network/Other*/
 
-#define CFG_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
-#define CFG_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xef000000      /* point to internal regs + PB0/1 */
-#define CFG_PCI_PTM2MS  0xff000001      /* 16MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xef000000      /* point to internal regs + PB0/1 */
+#define CONFIG_SYS_PCI_PTM2MS  0xff000001      /* 16MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* use EEPROM for environment vars */
 #define CONFIG_ENV_OFFSET              0x000   /* environment starts at the beginning of the EEPROM */
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
-#define CFG_EEPROM_WREN         1
+#define CONFIG_SYS_EEPROM_WREN         1
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (PB0) initialization                                  */
-#define CFG_EBC_PB2AP          0x03004580  /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */
-#define CFG_EBC_PB2CR          0xEF018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x03004580  /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xEF018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (PB1) initialization                          */
-#define CFG_EBC_PB3AP          0x03004580  /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */
-#define CFG_EBC_PB3CR          0xEF118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit */
+#define CONFIG_SYS_EBC_PB3AP           0x03004580  /* TWT=6,WBN=1,TH=2,RE=1,SOR=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xEF118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
 
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET     (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * GPIO definitions
  */
-#define CFG_EEPROM_WP          (0x80000000 >> 13)   /* GPIO13 */
-#define CFG_SELF_RST           (0x80000000 >> 14)   /* GPIO14 */
-#define CFG_PB_LED             (0x80000000 >> 16)   /* GPIO16 */
-#define CFG_INTA_FAKE          (0x80000000 >> 23)   /* GPIO23 */
+#define CONFIG_SYS_EEPROM_WP           (0x80000000 >> 13)   /* GPIO13 */
+#define CONFIG_SYS_SELF_RST            (0x80000000 >> 14)   /* GPIO14 */
+#define CONFIG_SYS_PB_LED              (0x80000000 >> 16)   /* GPIO16 */
+#define CONFIG_SYS_INTA_FAKE           (0x80000000 >> 23)   /* GPIO23 */
 
 /*
  * Internal Definitions
index 2e948f54481645a98373d58376bcbf5ac390c20c..3493d75bd4fdfde5c2296ff8b449d10a869a7b4b 100644 (file)
@@ -50,7 +50,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 
 
 #define CONFIG_PCI_BOOTDELAY    0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A    */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
-#define CFG_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A    */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #undef CONFIG_IDE_RESET                /* no reset for ide supported   */
 
-#define CFG_IDE_MAXBUS         1               /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFD0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 196 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFD0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
-#define CFG_NVRAM_BASE_ADDR    0xf0200000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
-#define CFG_VXWORKS_MAC_PTR     (CFG_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0200000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     (CONFIG_SYS_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
 
 #if 1 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* use NVRAM for environment vars       */
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
 
 #else /* Use EEPROM for environment variables */
 
  * I2C EEPROM (CAT24WC08) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (CAN0, 1, 2, Codeswitch) initialization                       */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (CompactFlash IDE) initialization                             */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 4 (NVRAM) initialization                                                */
-#define CFG_EBC_PB4AP          0x01005280  /* TWT=2,WBN=1,WBF=1,TH=1,SOR=1     */
-#define CFG_EBC_PB4CR          0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB4AP           0x01005280  /* TWT=2,WBN=1,WBF=1,TH=1,SOR=1     */
+#define CONFIG_SYS_EBC_PB4CR           0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 5 (Quart) initialization                                                */
-#define CFG_EBC_PB5AP          0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
-#define CFG_EBC_PB5CR          0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB5AP           0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
+#define CONFIG_SYS_EBC_PB5CR           0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00400000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00800000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00400000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00800000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 #if 1 /* test-only */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
 
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
 #else
-#define CFG_INIT_RAM_ADDR      0x00df0000 /* inside of SDRAM                   */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x00df0000 /* inside of SDRAM                   */
 #endif
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
index 199f577613e477c1d26dc7fc4f9163fbef40552e..734ab95e43e522c757bc56272bb1c6ab48fcfcad 100644 (file)
@@ -52,7 +52,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING         /* add command line history     */
 
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_BOOTDELAY    0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A    */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
-#define CFG_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A    */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         1               /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 #define CONFIG_OF_LIBFDT
 #define CONFIG_OF_BOARD_SETUP
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* use NVRAM for environment vars       */
 #define CONFIG_ENV_SIZE                0x0ff8          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-(CONFIG_ENV_SIZE+8))        /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-(CONFIG_ENV_SIZE+8))  /* Env  */
 
 #else /* Use EEPROM for environment variables */
 
                                   /* total size of a CAT24WC16 is 2048 bytes */
 #endif
 
-#define CFG_NVRAM_BASE_ADDR    0xf0200000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
-#define CFG_VXWORKS_MAC_PTR     (CFG_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0200000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     (CONFIG_SYS_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (CAN0, 1) initialization                                      */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
-#define CFG_LED_ADDR           0xF0000380
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_LED_ADDR            0xF0000380
 
 /* Memory Bank 3 (CompactFlash IDE) initialization                             */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 4 (NVRAM/RTC) initialization                                    */
-/*#define CFG_EBC_PB4AP                  0x01805280  / * TWT=3,WBN=1,WBF=1,TH=1,SOR=1     */
-#define CFG_EBC_PB4AP          0x01805680  /* TWT=3,WBN=1,WBF=1,TH=3,SOR=1     */
-#define CFG_EBC_PB4CR          0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
+/*#define CONFIG_SYS_EBC_PB4AP           0x01805280  / * TWT=3,WBN=1,WBF=1,TH=1,SOR=1     */
+#define CONFIG_SYS_EBC_PB4AP           0x01805680  /* TWT=3,WBN=1,WBF=1,TH=3,SOR=1     */
+#define CONFIG_SYS_EBC_PB4CR           0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 5 (optional Quart) initialization                               */
-#define CFG_EBC_PB5AP          0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
-#define CFG_EBC_PB5CR          0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB5AP           0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
+#define CONFIG_SYS_EBC_PB5CR           0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 6 (FPGA internal) initialization                                        */
-#define CFG_EBC_PB6AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB6CR          0xF041A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
-#define CFG_FPGA_BASE_ADDR     0xF0400000
+#define CONFIG_SYS_EBC_PB6AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB6CR           0xF041A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_FPGA_BASE_ADDR      0xF0400000
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 /* FPGA internal regs */
-#define CFG_FPGA_MODE          0x00
-#define CFG_FPGA_STATUS                0x02
-#define CFG_FPGA_TS            0x04
-#define CFG_FPGA_TS_LOW                0x06
-#define CFG_FPGA_TS_CAP0       0x10
-#define CFG_FPGA_TS_CAP0_LOW   0x12
-#define CFG_FPGA_TS_CAP1       0x14
-#define CFG_FPGA_TS_CAP1_LOW   0x16
-#define CFG_FPGA_TS_CAP2       0x18
-#define CFG_FPGA_TS_CAP2_LOW   0x1a
-#define CFG_FPGA_TS_CAP3       0x1c
-#define CFG_FPGA_TS_CAP3_LOW   0x1e
+#define CONFIG_SYS_FPGA_MODE           0x00
+#define CONFIG_SYS_FPGA_STATUS         0x02
+#define CONFIG_SYS_FPGA_TS             0x04
+#define CONFIG_SYS_FPGA_TS_LOW         0x06
+#define CONFIG_SYS_FPGA_TS_CAP0        0x10
+#define CONFIG_SYS_FPGA_TS_CAP0_LOW    0x12
+#define CONFIG_SYS_FPGA_TS_CAP1        0x14
+#define CONFIG_SYS_FPGA_TS_CAP1_LOW    0x16
+#define CONFIG_SYS_FPGA_TS_CAP2        0x18
+#define CONFIG_SYS_FPGA_TS_CAP2_LOW    0x1a
+#define CONFIG_SYS_FPGA_TS_CAP3        0x1c
+#define CONFIG_SYS_FPGA_TS_CAP3_LOW    0x1e
 
 /* FPGA Mode Reg */
-#define CFG_FPGA_MODE_CF_RESET     0x0001
-#define CFG_FPGA_MODE_DUART_RESET   0x0002
-#define CFG_FPGA_MODE_ENABLE_OUTPUT 0x0004     /* only set on CPCI-405 Ver 3 */
-#define CFG_FPGA_MODE_TS_IRQ_ENABLE 0x0100
-#define CFG_FPGA_MODE_TS_IRQ_CLEAR  0x1000
-#define CFG_FPGA_MODE_TS_CLEAR     0x2000
+#define CONFIG_SYS_FPGA_MODE_CF_RESET      0x0001
+#define CONFIG_SYS_FPGA_MODE_DUART_RESET   0x0002
+#define CONFIG_SYS_FPGA_MODE_ENABLE_OUTPUT 0x0004     /* only set on CPCI-405 Ver 3 */
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_ENABLE 0x0100
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_CLEAR  0x1000
+#define CONFIG_SYS_FPGA_MODE_TS_CLEAR      0x2000
 
 /* FPGA Status Reg */
-#define CFG_FPGA_STATUS_DIP0   0x0001
-#define CFG_FPGA_STATUS_DIP1   0x0002
-#define CFG_FPGA_STATUS_DIP2   0x0004
-#define CFG_FPGA_STATUS_FLASH  0x0008
-#define CFG_FPGA_STATUS_TS_IRQ 0x1000
+#define CONFIG_SYS_FPGA_STATUS_DIP0    0x0001
+#define CONFIG_SYS_FPGA_STATUS_DIP1    0x0002
+#define CONFIG_SYS_FPGA_STATUS_DIP2    0x0004
+#define CONFIG_SYS_FPGA_STATUS_FLASH   0x0008
+#define CONFIG_SYS_FPGA_STATUS_TS_IRQ  0x1000
 
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      32*1024     /* 32kByte is enough for XC2S15  */
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024     /* 32kByte is enough for XC2S15  */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
 
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
index cd8a65bce04ba7ab6ac07e91122e0cfe198adf76..47ad89dfebc509ce3e26b75dacad37472e44737f 100644 (file)
@@ -52,7 +52,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #undef CONFIG_LOADS_ECHO               /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING         /* add command line history     */
 
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_BOOTDELAY   0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A   */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
-#define CFG_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A    */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         1               /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 #define CONFIG_OF_LIBFDT
 #define CONFIG_OF_BOARD_SETUP
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC32) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC32             */
-#define CFG_I2C_EEPROM_ADDR_LEN 2      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC32             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x01
-#define CFG_I2C_MULTI_EEPROMS   1       /* more than one eeprom used!   */
-#define CFG_EEPROM_PAGE_WRITE_BITS 5   /* The Catalyst CAT24WC32 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x01
+#define CONFIG_SYS_I2C_MULTI_EEPROMS   1       /* more than one eeprom used!   */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5    /* The Catalyst CAT24WC32 has   */
                                        /* 32 byte page write mode using*/
                                        /* last 5 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /* Use EEPROM for environment variables */
 
 #define CONFIG_ENV_SIZE                0x800   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC32 is 4096 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xf0200000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
-#define CFG_VXWORKS_MAC_PTR     (CFG_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0200000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     (CONFIG_SYS_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (CAN0, 1) initialization                                      */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
-#define CFG_LED_ADDR           0xF0000380
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_LED_ADDR            0xF0000380
 
 /* Memory Bank 3 (CompactFlash IDE) initialization                             */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 4 (NVRAM/RTC) initialization                                    */
-/*#define CFG_EBC_PB4AP                  0x01805280  / * TWT=3,WBN=1,WBF=1,TH=1,SOR=1     */
-#define CFG_EBC_PB4AP          0x01805680  /* TWT=3,WBN=1,WBF=1,TH=3,SOR=1     */
-#define CFG_EBC_PB4CR          0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
+/*#define CONFIG_SYS_EBC_PB4AP           0x01805280  / * TWT=3,WBN=1,WBF=1,TH=1,SOR=1     */
+#define CONFIG_SYS_EBC_PB4AP           0x01805680  /* TWT=3,WBN=1,WBF=1,TH=3,SOR=1     */
+#define CONFIG_SYS_EBC_PB4CR           0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 5 (optional Quart) initialization                               */
-#define CFG_EBC_PB5AP          0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
-#define CFG_EBC_PB5CR          0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB5AP           0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
+#define CONFIG_SYS_EBC_PB5CR           0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 6 (FPGA internal) initialization                                        */
-#define CFG_EBC_PB6AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB6CR          0xF041A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
-#define CFG_FPGA_BASE_ADDR     0xF0400000
+#define CONFIG_SYS_EBC_PB6AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB6CR           0xF041A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_FPGA_BASE_ADDR      0xF0400000
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 /* FPGA internal regs */
-#define CFG_FPGA_MODE          0x00
-#define CFG_FPGA_STATUS                0x02
-#define CFG_FPGA_TS            0x04
-#define CFG_FPGA_TS_LOW                0x06
-#define CFG_FPGA_TS_CAP0       0x10
-#define CFG_FPGA_TS_CAP0_LOW   0x12
-#define CFG_FPGA_TS_CAP1       0x14
-#define CFG_FPGA_TS_CAP1_LOW   0x16
-#define CFG_FPGA_TS_CAP2       0x18
-#define CFG_FPGA_TS_CAP2_LOW   0x1a
-#define CFG_FPGA_TS_CAP3       0x1c
-#define CFG_FPGA_TS_CAP3_LOW   0x1e
+#define CONFIG_SYS_FPGA_MODE           0x00
+#define CONFIG_SYS_FPGA_STATUS         0x02
+#define CONFIG_SYS_FPGA_TS             0x04
+#define CONFIG_SYS_FPGA_TS_LOW         0x06
+#define CONFIG_SYS_FPGA_TS_CAP0        0x10
+#define CONFIG_SYS_FPGA_TS_CAP0_LOW    0x12
+#define CONFIG_SYS_FPGA_TS_CAP1        0x14
+#define CONFIG_SYS_FPGA_TS_CAP1_LOW    0x16
+#define CONFIG_SYS_FPGA_TS_CAP2        0x18
+#define CONFIG_SYS_FPGA_TS_CAP2_LOW    0x1a
+#define CONFIG_SYS_FPGA_TS_CAP3        0x1c
+#define CONFIG_SYS_FPGA_TS_CAP3_LOW    0x1e
 
 /* FPGA Mode Reg */
-#define CFG_FPGA_MODE_CF_RESET     0x0001
-#define CFG_FPGA_MODE_DUART_RESET   0x0002
-#define CFG_FPGA_MODE_ENABLE_OUTPUT 0x0004     /* only set on CPCI-405 Ver 3 */
-#define CFG_FPGA_MODE_1WIRE_DIR     0x0100     /* dir=1 -> output */
-#define CFG_FPGA_MODE_SIM_OK_DIR    0x0200
-#define CFG_FPGA_MODE_TESTRIG_FAIL_DIR 0x0400
-#define CFG_FPGA_MODE_1WIRE         0x1000
-#define CFG_FPGA_MODE_SIM_OK        0x2000     /* wired-or net from all devices */
-#define CFG_FPGA_MODE_TESTRIG_FAIL  0x4000
+#define CONFIG_SYS_FPGA_MODE_CF_RESET      0x0001
+#define CONFIG_SYS_FPGA_MODE_DUART_RESET   0x0002
+#define CONFIG_SYS_FPGA_MODE_ENABLE_OUTPUT 0x0004     /* only set on CPCI-405 Ver 3 */
+#define CONFIG_SYS_FPGA_MODE_1WIRE_DIR     0x0100     /* dir=1 -> output */
+#define CONFIG_SYS_FPGA_MODE_SIM_OK_DIR    0x0200
+#define CONFIG_SYS_FPGA_MODE_TESTRIG_FAIL_DIR 0x0400
+#define CONFIG_SYS_FPGA_MODE_1WIRE         0x1000
+#define CONFIG_SYS_FPGA_MODE_SIM_OK        0x2000     /* wired-or net from all devices */
+#define CONFIG_SYS_FPGA_MODE_TESTRIG_FAIL  0x4000
 
 /* FPGA Status Reg */
-#define CFG_FPGA_STATUS_DIP0    0x0001
-#define CFG_FPGA_STATUS_DIP1    0x0002
-#define CFG_FPGA_STATUS_DIP2    0x0004
-#define CFG_FPGA_STATUS_FLASH   0x0008
-#define CFG_FPGA_STATUS_1WIRE   0x1000
-#define CFG_FPGA_STATUS_SIM_OK  0x2000
+#define CONFIG_SYS_FPGA_STATUS_DIP0    0x0001
+#define CONFIG_SYS_FPGA_STATUS_DIP1    0x0002
+#define CONFIG_SYS_FPGA_STATUS_DIP2    0x0004
+#define CONFIG_SYS_FPGA_STATUS_FLASH   0x0008
+#define CONFIG_SYS_FPGA_STATUS_1WIRE   0x1000
+#define CONFIG_SYS_FPGA_STATUS_SIM_OK  0x2000
 
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      128*1024    /* 128kByte is enough for XC2S30 */
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S30 */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
 
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
index c67e51c0bfe64e0975b991a27d473c4a97295f9c..4e94dfc3280a6a2fd28590d16b09cdbdf9a71782 100644 (file)
@@ -51,7 +51,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_BOOTDELAY    0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A    */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
-#define CFG_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID2 0x0406 /* PCI Device ID: CPCI-405-A    */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         1               /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* use NVRAM for environment vars       */
 #define CONFIG_ENV_SIZE                0x0ff8          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-(CONFIG_ENV_SIZE+8))        /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-(CONFIG_ENV_SIZE+8))  /* Env  */
 
 #else /* Use EEPROM for environment variables */
 
                                   /* total size of a CAT24WC16 is 2048 bytes */
 #endif
 
-#define CFG_NVRAM_BASE_ADDR    0xf0200000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
-#define CFG_VXWORKS_MAC_PTR     (CFG_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0200000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     (CONFIG_SYS_NVRAM_BASE_ADDR+0x6900) /* VxWorks eth-addr*/
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (CAN0, 1) initialization                                      */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
-#define CFG_LED_ADDR           0xF0000380
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_LED_ADDR            0xF0000380
 
 /* Memory Bank 3 (CompactFlash IDE) initialization                             */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 4 (NVRAM/RTC) initialization                                    */
-/*#define CFG_EBC_PB4AP                  0x01805280  / * TWT=3,WBN=1,WBF=1,TH=1,SOR=1     */
-#define CFG_EBC_PB4AP          0x01805680  /* TWT=3,WBN=1,WBF=1,TH=3,SOR=1     */
-#define CFG_EBC_PB4CR          0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
+/*#define CONFIG_SYS_EBC_PB4AP           0x01805280  / * TWT=3,WBN=1,WBF=1,TH=1,SOR=1     */
+#define CONFIG_SYS_EBC_PB4AP           0x01805680  /* TWT=3,WBN=1,WBF=1,TH=3,SOR=1     */
+#define CONFIG_SYS_EBC_PB4CR           0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 5 (optional Quart) initialization                               */
-#define CFG_EBC_PB5AP          0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
-#define CFG_EBC_PB5CR          0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB5AP           0x04005B80  /* TWT=8,WBN=1,WBF=1,TH=5,RE=1,SOR=1*/
+#define CONFIG_SYS_EBC_PB5CR           0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 6 (FPGA internal) initialization                                        */
-#define CFG_EBC_PB6AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB6CR          0xF041A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
-#define CFG_FPGA_BASE_ADDR     0xF0400000
+#define CONFIG_SYS_EBC_PB6AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB6CR           0xF041A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_FPGA_BASE_ADDR      0xF0400000
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 /* FPGA internal regs */
-#define CFG_FPGA_MODE          0x00
-#define CFG_FPGA_STATUS                0x02
-#define CFG_FPGA_TS            0x04
-#define CFG_FPGA_TS_LOW                0x06
-#define CFG_FPGA_TS_CAP0       0x10
-#define CFG_FPGA_TS_CAP0_LOW   0x12
-#define CFG_FPGA_TS_CAP1       0x14
-#define CFG_FPGA_TS_CAP1_LOW   0x16
-#define CFG_FPGA_TS_CAP2       0x18
-#define CFG_FPGA_TS_CAP2_LOW   0x1a
-#define CFG_FPGA_TS_CAP3       0x1c
-#define CFG_FPGA_TS_CAP3_LOW   0x1e
+#define CONFIG_SYS_FPGA_MODE           0x00
+#define CONFIG_SYS_FPGA_STATUS         0x02
+#define CONFIG_SYS_FPGA_TS             0x04
+#define CONFIG_SYS_FPGA_TS_LOW         0x06
+#define CONFIG_SYS_FPGA_TS_CAP0        0x10
+#define CONFIG_SYS_FPGA_TS_CAP0_LOW    0x12
+#define CONFIG_SYS_FPGA_TS_CAP1        0x14
+#define CONFIG_SYS_FPGA_TS_CAP1_LOW    0x16
+#define CONFIG_SYS_FPGA_TS_CAP2        0x18
+#define CONFIG_SYS_FPGA_TS_CAP2_LOW    0x1a
+#define CONFIG_SYS_FPGA_TS_CAP3        0x1c
+#define CONFIG_SYS_FPGA_TS_CAP3_LOW    0x1e
 
 /* FPGA Mode Reg */
-#define CFG_FPGA_MODE_CF_RESET     0x0001
-#define CFG_FPGA_MODE_DUART_RESET   0x0002
-#define CFG_FPGA_MODE_ENABLE_OUTPUT 0x0004     /* only set on CPCI-405 Ver 3 */
-#define CFG_FPGA_MODE_TS_IRQ_ENABLE 0x0100
-#define CFG_FPGA_MODE_TS_IRQ_CLEAR  0x1000
-#define CFG_FPGA_MODE_TS_CLEAR     0x2000
+#define CONFIG_SYS_FPGA_MODE_CF_RESET      0x0001
+#define CONFIG_SYS_FPGA_MODE_DUART_RESET   0x0002
+#define CONFIG_SYS_FPGA_MODE_ENABLE_OUTPUT 0x0004     /* only set on CPCI-405 Ver 3 */
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_ENABLE 0x0100
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_CLEAR  0x1000
+#define CONFIG_SYS_FPGA_MODE_TS_CLEAR      0x2000
 
 /* FPGA Status Reg */
-#define CFG_FPGA_STATUS_DIP0   0x0001
-#define CFG_FPGA_STATUS_DIP1   0x0002
-#define CFG_FPGA_STATUS_DIP2   0x0004
-#define CFG_FPGA_STATUS_FLASH  0x0008
-#define CFG_FPGA_STATUS_TS_IRQ 0x1000
+#define CONFIG_SYS_FPGA_STATUS_DIP0    0x0001
+#define CONFIG_SYS_FPGA_STATUS_DIP1    0x0002
+#define CONFIG_SYS_FPGA_STATUS_DIP2    0x0004
+#define CONFIG_SYS_FPGA_STATUS_FLASH   0x0008
+#define CONFIG_SYS_FPGA_STATUS_TS_IRQ  0x1000
 
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      32*1024     /* 32kByte is enough for XC2S15  */
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024     /* 32kByte is enough for XC2S15  */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
 
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
index 46f80d1d67d6ffd50ec0a40b20ff78f5f6f50bff..8494faac29c1c3752c4a7064322fa5f13fa1cf11 100644 (file)
 #define CONFIG_BOARD_PRE_INIT
 #define CONFIG_BOARD_EARLY_INIT_F 1
 
-#define CFG_BOARD_NAME         "CPCI750"
+#define CONFIG_SYS_BOARD_NAME          "CPCI750"
 #define CONFIG_IDENT_STRING    "Marvell 64360 + IBM750FX"
 
-/*#define CFG_HUSH_PARSER*/
-#define CFG_HUSH_PARSER
+/*#define CONFIG_SYS_HUSH_PARSER*/
+#define CONFIG_SYS_HUSH_PARSER
 
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #define CONFIG_AUTO_COMPLETE 1
 
 /* Define which ETH port will be used for connecting the network */
-#define CFG_ETH_PORT           ETH_0
+#define CONFIG_SYS_ETH_PORT            ETH_0
 
 /*
  * The following defines let you select what serial you want to use
@@ -87,7 +87,7 @@
  *
  * what to do:
  * to use the DUART, undef CONFIG_MPSC.         If you have hacked a serial
- * cable onto the second DUART channel, change the CFG_DUART port from 1
+ * cable onto the second DUART channel, change the CONFIG_SYS_DUART port from 1
  * to 0 below.
  *
  * to use the MPSC, #define CONFIG_MPSC.  If you have wired up another
 
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#define CFG_LOADS_BAUD_CHANGE          /* allow baudrate changes       */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate changes       */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #undef CONFIG_ALTIVEC                  /* undef to disable             */
 #define CONFIG_VIDEO_SW_CURSOR
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_I8042_KBD
-#define CFG_ISA_IO 0
+#define CONFIG_SYS_ISA_IO 0
 #endif
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_SPEED  80000           /* I2C speed default */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_SPEED   80000           /* I2C speed default */
 
-#define CFG_GT_DUAL_CPU                        /* also for JTAG even with one cpu */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_GT_DUAL_CPU                 /* also for JTAG even with one cpu */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-/*#define CFG_MEMTEST_START    0x00400000*/    /* memtest works on     */
-/*#define CFG_MEMTEST_END              0x00C00000*/    /* 4 ... 12 MB in DRAM  */
-/*#define CFG_MEMTEST_END              0x07c00000*/    /* 4 ... 124 MB in DRAM */
+/*#define CONFIG_SYS_MEMTEST_START     0x00400000*/    /* memtest works on     */
+/*#define CONFIG_SYS_MEMTEST_END               0x00C00000*/    /* 4 ... 12 MB in DRAM  */
+/*#define CONFIG_SYS_MEMTEST_END               0x07c00000*/    /* 4 ... 124 MB in DRAM */
 
 /*
-#define CFG_DRAM_TEST
+#define CONFIG_SYS_DRAM_TEST
  * DRAM tests
- *   CFG_DRAM_TEST - enables the following tests.
+ *   CONFIG_SYS_DRAM_TEST - enables the following tests.
  *
- *   CFG_DRAM_TEST_DATA - Enables test for shorted or open data lines
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test for shorted or open data lines
  *                       Environment variable 'test_dram_data' must be
  *                       set to 'y'.
- *   CFG_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
  *                       addressable. Environment variable
  *                       'test_dram_address' must be set to 'y'.
- *   CFG_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
+ *   CONFIG_SYS_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
  *                       This test takes about 6 minutes to test 64 MB.
  *                       Environment variable 'test_dram_walk' must be
  *                       set to 'y'.
  */
-#define CFG_DRAM_TEST
-#if defined(CFG_DRAM_TEST)
-#define CFG_MEMTEST_START              0x00400000      /* memtest works on     */
-/*#define CFG_MEMTEST_END              0x00C00000*/    /* 4 ... 12 MB in DRAM  */
-#define CFG_MEMTEST_END                0x07c00000      /* 4 ... 124 MB in DRAM */
-#define CFG_DRAM_TEST_DATA
-#define CFG_DRAM_TEST_ADDRESS
-#define CFG_DRAM_TEST_WALK
-#endif /* CFG_DRAM_TEST */
+#define CONFIG_SYS_DRAM_TEST
+#if defined(CONFIG_SYS_DRAM_TEST)
+#define CONFIG_SYS_MEMTEST_START               0x00400000      /* memtest works on     */
+/*#define CONFIG_SYS_MEMTEST_END               0x00C00000*/    /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_END         0x07c00000      /* 4 ... 124 MB in DRAM */
+#define CONFIG_SYS_DRAM_TEST_DATA
+#define CONFIG_SYS_DRAM_TEST_ADDRESS
+#define CONFIG_SYS_DRAM_TEST_WALK
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 #define CONFIG_DISPLAY_MEMMAP          /* at the end of the bootprocess show the memory map */
-#undef CFG_DISPLAY_DIMM_SPD_CONTENT    /* show SPD content during boot */
+#undef CONFIG_SYS_DISPLAY_DIMM_SPD_CONTENT     /* show SPD content during boot */
 
-#define CFG_LOAD_ADDR          0x00300000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00300000      /* default load address */
 
-#define CFG_HZ                 1000            /* decr freq: 1ms ticks */
-#define CFG_BUS_HZ             133000000       /* 133 MHz (CPU = 5*Bus = 666MHz)               */
-#define CFG_BUS_CLK            CFG_BUS_HZ
+#define CONFIG_SYS_HZ                  1000            /* decr freq: 1ms ticks */
+#define CONFIG_SYS_BUS_HZ              133000000       /* 133 MHz (CPU = 5*Bus = 666MHz)               */
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_TCLK               133000000
+#define CONFIG_SYS_TCLK                133000000
 
-/*#define CFG_750FX_HID0               0x8000c084*/
-#define CFG_750FX_HID0         0x80008484
-#define CFG_750FX_HID1         0x54800000
-#define CFG_750FX_HID2         0x00000000
+/*#define CONFIG_SYS_750FX_HID0                0x8000c084*/
+#define CONFIG_SYS_750FX_HID0          0x80008484
+#define CONFIG_SYS_750FX_HID1          0x54800000
+#define CONFIG_SYS_750FX_HID2          0x00000000
 
 /*
  * Low Level Configuration Settings
  */
 
  /*
- * When locking data in cache you should point the CFG_INIT_RAM_ADDRESS
+ * When locking data in cache you should point the CONFIG_SYS_INIT_RAM_ADDRESS
  * To an unused memory region. The stack will remain in cache until RAM
  * is initialized
 */
-#undef   CFG_INIT_RAM_LOCK
-/* #define CFG_INIT_RAM_ADDR   0x40000000*/ /* unused memory region */
-/* #define CFG_INIT_RAM_ADDR   0xfba00000*/ /* unused memory region */
-#define CFG_INIT_RAM_ADDR      0xf1080000 /* unused memory region */
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#undef   CONFIG_SYS_INIT_RAM_LOCK
+/* #define CONFIG_SYS_INIT_RAM_ADDR    0x40000000*/ /* unused memory region */
+/* #define CONFIG_SYS_INIT_RAM_ADDR    0xfba00000*/ /* unused memory region */
+#define CONFIG_SYS_INIT_RAM_ADDR       0xf1080000 /* unused memory region */
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #define RELOCATE_INTERNAL_RAM_ADDR
 #ifdef RELOCATE_INTERNAL_RAM_ADDR
-/*#define CFG_INTERNAL_RAM_ADDR 0xfba00000*/
-#define CFG_INTERNAL_RAM_ADDR  0xf1080000
+/*#define CONFIG_SYS_INTERNAL_RAM_ADDR 0xfba00000*/
+#define CONFIG_SYS_INTERNAL_RAM_ADDR   0xf1080000
 #endif
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 /* Dummies for BAT 4-7 */
-#define CFG_SDRAM1_BASE                0x10000000      /* each 256 MByte */
-#define CFG_SDRAM2_BASE                0x20000000
-#define CFG_SDRAM3_BASE                0x30000000
-#define CFG_SDRAM4_BASE                0x40000000
-#define CFG_RESET_ADDRESS      0xfff00100
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE       0xfff00000
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_SDRAM1_BASE         0x10000000      /* each 256 MByte */
+#define CONFIG_SYS_SDRAM2_BASE         0x20000000
+#define CONFIG_SYS_SDRAM3_BASE         0x30000000
+#define CONFIG_SYS_SDRAM4_BASE         0x40000000
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        0xfff00000
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 256 kB for malloc */
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI          1          /* Flash is CFI conformant           */
-#define CFG_FLASH_PROTECTION   1          /* use hardware protection           */
-#define CFG_FLASH_USE_BUFFER_WRITE 1      /* use buffered writes (20x faster)  */
-#define CFG_FLASH_BASE         0xfc000000 /* start of flash banks              */
-#define CFG_MAX_FLASH_BANKS    4          /* max number of memory banks        */
-#define CFG_FLASH_INCREMENT    0x01000000 /* size of  flash bank               */
-#define CFG_MAX_FLASH_SECT     128        /* max number of sectors on one chip */
-#define CFG_FLASH_BANKS_LIST  { CFG_FLASH_BASE,                                   \
-                               CFG_FLASH_BASE + 1*CFG_FLASH_INCREMENT,    \
-                               CFG_FLASH_BASE + 2*CFG_FLASH_INCREMENT,    \
-                               CFG_FLASH_BASE + 3*CFG_FLASH_INCREMENT }
-#define CFG_FLASH_EMPTY_INFO   1          /* show if bank is empty             */
+#define CONFIG_SYS_FLASH_CFI           1          /* Flash is CFI conformant           */
+#define CONFIG_SYS_FLASH_PROTECTION    1          /* use hardware protection           */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1       /* use buffered writes (20x faster)  */
+#define CONFIG_SYS_FLASH_BASE          0xfc000000 /* start of flash banks              */
+#define CONFIG_SYS_MAX_FLASH_BANKS     4          /* max number of memory banks        */
+#define CONFIG_SYS_FLASH_INCREMENT     0x01000000 /* size of  flash bank               */
+#define CONFIG_SYS_MAX_FLASH_SECT      128        /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST  { CONFIG_SYS_FLASH_BASE,                             \
+                               CONFIG_SYS_FLASH_BASE + 1*CONFIG_SYS_FLASH_INCREMENT,      \
+                               CONFIG_SYS_FLASH_BASE + 2*CONFIG_SYS_FLASH_INCREMENT,      \
+                               CONFIG_SYS_FLASH_BASE + 3*CONFIG_SYS_FLASH_INCREMENT }
+#define CONFIG_SYS_FLASH_EMPTY_INFO    1          /* show if bank is empty             */
 
 /* areas to map different things with the GT in physical space */
-#define CFG_DRAM_BANKS         4
+#define CONFIG_SYS_DRAM_BANKS          4
 
 /* What to put in the bats. */
-#define CFG_MISC_REGION_BASE   0xf0000000
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000
 
 /* Peripheral Device section */
 
 /* Data flash on external device module                       */
 /* Boot flash on external device module                       */
 /*******************************************************/
-#define CFG_DFL_GT_REGS                0x14000000                              /* boot time GT_REGS */
-#define         CFG_CPCI750_RESET_ADDR 0x14000000                              /* After power on Reset the CPCI750 is here */
+#define CONFIG_SYS_DFL_GT_REGS         0x14000000                              /* boot time GT_REGS */
+#define         CONFIG_SYS_CPCI750_RESET_ADDR 0x14000000                               /* After power on Reset the CPCI750 is here */
 
 #undef MARVEL_STANDARD_CFG
 #ifndef                MARVEL_STANDARD_CFG
 /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
-#define CFG_GT_REGS            0xf1000000                              /* GT Registers will be mapped here */
-/*#define CFG_DEV_BASE         0xfc000000*/                            /* GT Devices CS start here */
-#define CFG_INT_SRAM_BASE      0xf1080000                              /* GT offers 256k internal fast SRAM */
-
-#define CFG_BOOT_SPACE         0xff000000                              /* BOOT_CS0 flash 0    */
-#define CFG_DEV0_SPACE         0xfc000000                              /* DEV_CS0 flash 1     */
-#define CFG_DEV1_SPACE         0xfd000000                              /* DEV_CS1 flash 2     */
-#define CFG_DEV2_SPACE         0xfe000000                              /* DEV_CS2 flash 3     */
-#define CFG_DEV3_SPACE         0xf0000000                              /* DEV_CS3 nvram/can   */
-
-#define CFG_BOOT_SIZE          _16M                                    /* cpci750 flash 0     */
-#define CFG_DEV0_SIZE          _16M                                    /* cpci750 flash 1     */
-#define CFG_DEV1_SIZE          _16M                                    /* cpci750 flash 2     */
-#define CFG_DEV2_SIZE          _16M                                    /* cpci750 flash 3     */
-#define CFG_DEV3_SIZE          _16M                                    /* cpci750 nvram/can   */
+#define CONFIG_SYS_GT_REGS             0xf1000000                              /* GT Registers will be mapped here */
+/*#define CONFIG_SYS_DEV_BASE          0xfc000000*/                            /* GT Devices CS start here */
+#define CONFIG_SYS_INT_SRAM_BASE       0xf1080000                              /* GT offers 256k internal fast SRAM */
+
+#define CONFIG_SYS_BOOT_SPACE          0xff000000                              /* BOOT_CS0 flash 0    */
+#define CONFIG_SYS_DEV0_SPACE          0xfc000000                              /* DEV_CS0 flash 1     */
+#define CONFIG_SYS_DEV1_SPACE          0xfd000000                              /* DEV_CS1 flash 2     */
+#define CONFIG_SYS_DEV2_SPACE          0xfe000000                              /* DEV_CS2 flash 3     */
+#define CONFIG_SYS_DEV3_SPACE          0xf0000000                              /* DEV_CS3 nvram/can   */
+
+#define CONFIG_SYS_BOOT_SIZE           _16M                                    /* cpci750 flash 0     */
+#define CONFIG_SYS_DEV0_SIZE           _16M                                    /* cpci750 flash 1     */
+#define CONFIG_SYS_DEV1_SIZE           _16M                                    /* cpci750 flash 2     */
+#define CONFIG_SYS_DEV2_SIZE           _16M                                    /* cpci750 flash 3     */
+#define CONFIG_SYS_DEV3_SIZE           _16M                                    /* cpci750 nvram/can   */
 
 /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
 #endif
 
 /* Reset values for Port behavior (8bit/ 32bit, etc.) only corrected by device width */
-#define CFG_DEV0_PAR           0x8FDFFFFF                              /* 16 bit flash */
-#define CFG_DEV1_PAR           0x8FDFFFFF                              /* 16 bit flash */
-#define CFG_DEV2_PAR           0x8FDFFFFF                              /* 16 bit flash */
-#define CFG_DEV3_PAR           0x8FCFFFFF                              /* nvram/can    */
-#define CFG_BOOT_PAR           0x8FDFFFFF                              /* 16 bit flash */
+#define CONFIG_SYS_DEV0_PAR            0x8FDFFFFF                              /* 16 bit flash */
+#define CONFIG_SYS_DEV1_PAR            0x8FDFFFFF                              /* 16 bit flash */
+#define CONFIG_SYS_DEV2_PAR            0x8FDFFFFF                              /* 16 bit flash */
+#define CONFIG_SYS_DEV3_PAR            0x8FCFFFFF                              /* nvram/can    */
+#define CONFIG_SYS_BOOT_PAR            0x8FDFFFFF                              /* 16 bit flash */
 
        /*   c    4    a      8     2     4    1      c         */
        /* 33 22|2222|22 22|111 1|11 11|1 1  |    |             */
 
 
 /* MPP Control MV64360 Appendix P P. 632*/
-#define CFG_MPP_CONTROL_0      0x00002222      /*                                   */
-#define CFG_MPP_CONTROL_1      0x11110000      /*                                   */
-#define CFG_MPP_CONTROL_2      0x11111111      /*                                   */
-#define CFG_MPP_CONTROL_3      0x00001111      /*                                   */
-/* #define CFG_SERIAL_PORT_MUX 0x00000102*/    /*                                   */
+#define CONFIG_SYS_MPP_CONTROL_0       0x00002222      /*                                   */
+#define CONFIG_SYS_MPP_CONTROL_1       0x11110000      /*                                   */
+#define CONFIG_SYS_MPP_CONTROL_2       0x11111111      /*                                   */
+#define CONFIG_SYS_MPP_CONTROL_3       0x00001111      /*                                   */
+/* #define CONFIG_SYS_SERIAL_PORT_MUX  0x00000102*/    /*                                   */
 
 
-#define CFG_GPP_LEVEL_CONTROL  0xffffffff      /* 1111 1111 1111 1111 1111 1111 1111 1111*/
+#define CONFIG_SYS_GPP_LEVEL_CONTROL   0xffffffff      /* 1111 1111 1111 1111 1111 1111 1111 1111*/
 
 /* setup new config_value for MV64360 DDR-RAM To_do !! */
-/*# define CFG_SDRAM_CONFIG    0xd8e18200*/    /* 0x448 */
-/*# define CFG_SDRAM_CONFIG    0xd8e14400*/    /* 0x1400 */
+/*# define CONFIG_SYS_SDRAM_CONFIG     0xd8e18200*/    /* 0x448 */
+/*# define CONFIG_SYS_SDRAM_CONFIG     0xd8e14400*/    /* 0x1400 */
                                /* GB has high prio.
                                   idma has low prio
                                   MPSC has low prio
                                   virtual interleaving enable */
                                /* 15 14 13:0 */
                                /* 0  1  0x400 */
-# define CFG_SDRAM_CONFIG      0x58200400      /* 0x1400  copied from Dink32 bzw. VxWorks*/
+# define CONFIG_SYS_SDRAM_CONFIG       0x58200400      /* 0x1400  copied from Dink32 bzw. VxWorks*/
 
 
 /*-----------------------------------------------------------------------
 #define CONFIG_PCI_SCAN_SHOW           /* show devices on bus          */
 
 /* PCI MEMORY MAP section */
-#define CFG_PCI0_MEM_BASE      0x80000000
-#define CFG_PCI0_MEM_SIZE      _128M
-#define CFG_PCI1_MEM_BASE      0x88000000
-#define CFG_PCI1_MEM_SIZE      _128M
+#define CONFIG_SYS_PCI0_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI0_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI1_MEM_BASE       0x88000000
+#define CONFIG_SYS_PCI1_MEM_SIZE       _128M
 
-#define CFG_PCI0_0_MEM_SPACE   (CFG_PCI0_MEM_BASE)
-#define CFG_PCI1_0_MEM_SPACE   (CFG_PCI1_MEM_BASE)
+#define CONFIG_SYS_PCI0_0_MEM_SPACE    (CONFIG_SYS_PCI0_MEM_BASE)
+#define CONFIG_SYS_PCI1_0_MEM_SPACE    (CONFIG_SYS_PCI1_MEM_BASE)
 
 /* PCI I/O MAP section */
-#define CFG_PCI0_IO_BASE       0xfa000000
-#define CFG_PCI0_IO_SIZE       _16M
-#define CFG_PCI1_IO_BASE       0xfb000000
-#define CFG_PCI1_IO_SIZE       _16M
+#define CONFIG_SYS_PCI0_IO_BASE        0xfa000000
+#define CONFIG_SYS_PCI0_IO_SIZE        _16M
+#define CONFIG_SYS_PCI1_IO_BASE        0xfb000000
+#define CONFIG_SYS_PCI1_IO_SIZE        _16M
 
-#define CFG_PCI0_IO_SPACE      (CFG_PCI0_IO_BASE)
-#define CFG_PCI0_IO_SPACE_PCI  0x00000000
-#define CFG_PCI1_IO_SPACE      (CFG_PCI1_IO_BASE)
-#define CFG_PCI1_IO_SPACE_PCI  0x00000000
+#define CONFIG_SYS_PCI0_IO_SPACE       (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI0_IO_SPACE_PCI   0x00000000
+#define CONFIG_SYS_PCI1_IO_SPACE       (CONFIG_SYS_PCI1_IO_BASE)
+#define CONFIG_SYS_PCI1_IO_SPACE_PCI   0x00000000
 
-#define CFG_ISA_IO_BASE_ADDRESS (CFG_PCI0_IO_BASE)
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS (CONFIG_SYS_PCI0_IO_BASE)
 
 #if defined (CONFIG_750CX)
-#define CFG_PCI_IDSEL 0x0
+#define CONFIG_SYS_PCI_IDSEL 0x0
 #else
-#define CFG_PCI_IDSEL 0x30
+#define CONFIG_SYS_PCI_IDSEL 0x30
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_IDE_RESET               /* no reset for ide supported   */
 #define CONFIG_IDE_PREINIT             /* check for units              */
 
-#define CFG_IDE_MAXBUS         2               /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          2               /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0
-#define CFG_ATA_IDE0_OFFSET    0
-#define CFG_ATA_IDE1_OFFSET    0
+#define CONFIG_SYS_ATA_BASE_ADDR       0
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 
 /*----------------------------------------------------------------------
  */
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
 /* init ram */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
 
 /* PCI0, PCI1 in one BAT */
-#define CFG_IBAT2L BATL_NO_ACCESS
-#define CFG_IBAT2U CFG_DBAT2U
-#define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L BATL_NO_ACCESS
+#define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_DBAT2L (CONFIG_SYS_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (CONFIG_SYS_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* GT regs, bootrom, all the devices, PCI I/O */
-#define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
-#define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
-#define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
+#define CONFIG_SYS_DBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 /*
  * 750FX IBAT and DBAT pairs (To_do: define regins for I(D)BAT4 - I(D)BAT7)
 /*#define SETUP_HIGH_BATS_FX750*/              /* initialize BATS 4-7 */
 
 #ifdef SETUP_HIGH_BATS_FX750
-#define CFG_IBAT4L (CFG_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT4U (CFG_SDRAM1_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT4L (CFG_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L (CONFIG_SYS_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT4U (CONFIG_SYS_SDRAM1_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L (CONFIG_SYS_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT4U CONFIG_SYS_IBAT4U
 
 /* IBAT5 and DBAT5 */
-#define CFG_IBAT5L (CFG_SDRAM2_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT5U (CFG_SDRAM2_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT5L (CFG_SDRAM2_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT5U CFG_IBAT5U
+#define CONFIG_SYS_IBAT5L (CONFIG_SYS_SDRAM2_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT5U (CONFIG_SYS_SDRAM2_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L (CONFIG_SYS_SDRAM2_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT5U CONFIG_SYS_IBAT5U
 
 /* IBAT6 and DBAT6 */
-#define CFG_IBAT6L (CFG_SDRAM3_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT6U (CFG_SDRAM3_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L (CFG_SDRAM3_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT6U CFG_IBAT6U
+#define CONFIG_SYS_IBAT6L (CONFIG_SYS_SDRAM3_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT6U (CONFIG_SYS_SDRAM3_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L (CONFIG_SYS_SDRAM3_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U
 
 /* IBAT7 and DBAT7 */
-#define CFG_IBAT7L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT7U (CFG_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT7U CFG_IBAT7U
+#define CONFIG_SYS_IBAT7L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT7U (CONFIG_SYS_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT7U
 
 #else          /* set em out of range for Linux !!!!!!!!!!! */
-#define CFG_IBAT4L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT4U (CFG_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT4L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT4U (CONFIG_SYS_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT4U CONFIG_SYS_IBAT4U
 
 /* IBAT5 and DBAT5 */
-#define CFG_IBAT5L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT5U (CFG_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT5L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT5U CFG_IBAT4U
+#define CONFIG_SYS_IBAT5L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT5U (CONFIG_SYS_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT5U CONFIG_SYS_IBAT4U
 
 /* IBAT6 and DBAT6 */
-#define CFG_IBAT6L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT6U (CFG_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT6U CFG_IBAT4U
+#define CONFIG_SYS_IBAT6L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT6U (CONFIG_SYS_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT4U
 
 /* IBAT7 and DBAT7 */
-#define CFG_IBAT7L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT7U (CFG_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L (CFG_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT7U CFG_IBAT4U
+#define CONFIG_SYS_IBAT7L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT7U (CONFIG_SYS_SDRAM4_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L (CONFIG_SYS_SDRAM4_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT4U
 
 #endif
 /* FIXME: ingo end: disable BATs for Linux Kernel */
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8<<20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8<<20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_BOOT_FLASH_WIDTH   2       /* 16 bit */
+#define CONFIG_SYS_BOOT_FLASH_WIDTH    2       /* 16 bit */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
-#define CFG_FLASH_LOCK_TOUT    500     /* Timeout for Flash Lock (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     500     /* Timeout for Flash Lock (in ms) */
 
 #if 0
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SIZE                0x1000  /* Total Size of Environment Sector */
 #define CONFIG_ENV_SECT_SIZE   0x10000
 #define CONFIG_ENV_ADDR                0xFFF78000 /* Marvell 8-Bit Bootflash last sector */
-/* #define CONFIG_ENV_ADDR        (CFG_FLASH_BASE+CFG_MONITOR_LEN-CONFIG_ENV_SECT_SIZE) */
+/* #define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_MONITOR_LEN-CONFIG_ENV_SECT_SIZE) */
 #endif
 
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* use EEPROM for environment vars */
-#define CFG_EEPROM_PAGE_WRITE_BITS 5
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
-#define CFG_I2C_EEPROM_ADDR    0x050
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x050
 #define CONFIG_ENV_OFFSET              0x200   /* environment starts at the beginning of the EEPROM */
 #define CONFIG_ENV_SIZE                0x600   /* 2048 bytes may be used for env vars*/
 
-#define CFG_NVRAM_BASE_ADDR    0xf0000000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
-#define CFG_VXWORKS_MAC_PTR    (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-0x40)
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0000000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-0x40)
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * look in include/mpc74xx.h for the defines used here
  */
 
-/*#define CFG_L2*/
-#undef CFG_L2
+/*#define CONFIG_SYS_L2*/
+#undef CONFIG_SYS_L2
 
 /*    #ifdef CONFIG_750CX*/
 #if defined (CONFIG_750CX) || defined (CONFIG_750FX)
 #define BOOTFLAG_COLD  0x01            /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM  0x02            /* Software reboot                  */
 
-#define CFG_BOARD_ASM_INIT     1
+#define CONFIG_SYS_BOARD_ASM_INIT      1
 
 #endif /* __CONFIG_H */
index d7e9739454879b26790f10a41db0df1077ea7c0b..2d60ebf2e484836f5303e888d8d096c3cfc53e9c 100644 (file)
@@ -48,7 +48,7 @@
 #define CONFIG_BOOTCOMMAND     "bootm fff00000"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_EXT_SERIAL_CLOCK   1843200  /* use external serial clock   */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    1843200  /* use external serial clock   */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
                                        /* resource configuration       */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0404 /* PCI Device ID: CPCI-ISER4    */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xff000001      /* 16MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffe00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffe00001      /* 2MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0404  /* PCI Device ID: CPCI-ISER4    */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xff000001      /* 16MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffe00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffe00001      /* 2MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC08) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2C with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* use EEPROM for environment vars */
 #define CONFIG_ENV_OFFSET              0x000   /* environment starts at the beginning of the EEPROM */
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Uart 8bit) initialization                                    */
-#define CFG_EBC_PB1AP          0x01000480  /* TWT=2,TH=2,no Ready,BEM=0,SOR=1  */
-#define CFG_EBC_PB1CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x01000480  /* TWT=2,TH=2,no Ready,BEM=0,SOR=1  */
+#define CONFIG_SYS_EBC_PB1CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (Uart 32bit) initialization                                   */
-#define CFG_EBC_PB2AP          0x000004c0  /* no Ready, BEM=1                  */
-#define CFG_EBC_PB2CR          0xF011C000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=32bit */
+#define CONFIG_SYS_EBC_PB2AP           0x000004c0  /* no Ready, BEM=1                  */
+#define CONFIG_SYS_EBC_PB2CR           0xF011C000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=32bit */
 
 /* Memory Bank 3 (FPGA Reset) initialization                                   */
-#define CFG_EBC_PB3AP          0x010004C0  /* no Ready, BEM=1                  */
-#define CFG_EBC_PB3CR          0xF021A000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010004C0  /* no Ready, BEM=1                  */
+#define CONFIG_SYS_EBC_PB3CR           0xF021A000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=16bit */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
index 5f4e0c76a5b1c2a459b17960599317587a3bef8c..cf21fd90ee3714670d09db837d8f8d647d7f8a53 100644 (file)
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
 
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
  */
 #define        CONFIG_SOFT_I2C                 /* Software I2C support enabled */
 
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xFE
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xFE
 /*
  * Software (bit-bang) I2C driver configuration
  */
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR       0x51
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
  * Disk-On-Chip configuration
  */
 
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices    */
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices    */
 
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configuration options
  */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 /*
  * BOOTP options
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END        0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR   0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR    0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_RESET_ADDRESS 0xFFF00100    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFFF00100     /* "bad" address                */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Flash configuration
  */
 
-#define CFG_BOOTROM_BASE       0xFF800000
-#define CFG_BOOTROM_SIZE       0x00080000
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_SIZE         0x00800000
+#define CONFIG_SYS_BOOTROM_BASE        0xFF800000
+#define CONFIG_SYS_BOOTROM_SIZE        0x00080000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /*-----------------------------------------------------------------------
  * Other areas to be mapped
  */
 
 /* CS3: Dual ported SRAM */
-#define CFG_DPSRAM_BASE                0x40000000
-#define CFG_DPSRAM_SIZE                0x00020000
+#define CONFIG_SYS_DPSRAM_BASE         0x40000000
+#define CONFIG_SYS_DPSRAM_SIZE         0x00020000
 
 /* CS4: DiskOnChip */
-#define CFG_DOC_BASE           0xF4000000
-#define CFG_DOC_SIZE           0x00100000
+#define CONFIG_SYS_DOC_BASE            0xF4000000
+#define CONFIG_SYS_DOC_SIZE            0x00100000
 
 /* CS5: FDC37C78 controller */
-#define CFG_FDC37C78_BASE      0xF1000000
-#define CFG_FDC37C78_SIZE      0x00100000
+#define CONFIG_SYS_FDC37C78_BASE       0xF1000000
+#define CONFIG_SYS_FDC37C78_SIZE       0x00100000
 
 /* CS6: Board configuration registers */
-#define CFG_BCRS_BASE          0xF2000000
-#define CFG_BCRS_SIZE          0x00010000
+#define CONFIG_SYS_BCRS_BASE           0xF2000000
+#define CONFIG_SYS_BCRS_SIZE           0x00010000
 
 /* CS7: VME Extended Access Range */
-#define CFG_VMEEAR_BASE                0x80000000
-#define CFG_VMEEAR_SIZE                0x01000000
+#define CONFIG_SYS_VMEEAR_BASE         0x80000000
+#define CONFIG_SYS_VMEEAR_SIZE         0x01000000
 
 /* CS8: VME Standard Access Range */
-#define CFG_VMESAR_BASE                0xFE000000
-#define CFG_VMESAR_SIZE                0x01000000
+#define CONFIG_SYS_VMESAR_BASE         0xFE000000
+#define CONFIG_SYS_VMESAR_SIZE         0x01000000
 
 /* CS9: VME Short I/O Access Range */
-#define CFG_VMESIOAR_BASE      0xFD000000
-#define CFG_VMESIOAR_SIZE      0x01000000
+#define CONFIG_SYS_VMESIOAR_BASE       0xFD000000
+#define CONFIG_SYS_VMESIOAR_SIZE       0x01000000
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #if defined(CONFIG_BOOT_ROM)
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | \
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | \
                                 HRCW_BPS01 | HRCW_CS10PC01)
 #else
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | HRCW_CS10PC01)
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | HRCW_CS10PC01)
 #endif
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE.
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_MAX_SIZE     0x08000000      /* max. 128 MB          */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_MAX_SIZE      0x08000000      /* max. 128 MB          */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-# define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+# define CONFIG_SYS_RAMBOOT
 #endif
 
 #if 0
 /* environment is in Flash */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #ifdef CONFIG_BOOT_ROM
-# define CONFIG_ENV_ADDR               (CFG_FLASH_BASE+0x70000)
+# define CONFIG_ENV_ADDR               (CONFIG_SYS_FLASH_BASE+0x70000)
 # define CONFIG_ENV_SIZE               0x10000
 # define CONFIG_ENV_SECT_SIZE  0x10000
 #endif
 #else
 /* environment is in EEPROM */
 #define CONFIG_ENV_IS_IN_EEPROM        1
-#define CFG_I2C_EEPROM_ADDR    0x58    /* EEPROM X24C16                */
-#define CFG_I2C_EEPROM_ADDR_LEN        1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x58    /* EEPROM X24C16                */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 #define CONFIG_ENV_OFFSET              512
 #define CONFIG_ENV_SIZE                (2048 - 512)
 #endif
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|\
                         HID0_DCI|HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL  (HID0_IFEM|HID0_ABE)
-#define CFG_HID2        0
+#define CONFIG_SYS_HID0_FINAL  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
 #define BCR_APD01      0x10000000
-#define CFG_BCR                (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
+#define CONFIG_SYS_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                             4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR      (SIUMCR_BBD|SIUMCR_DPPC00|SIUMCR_APPC10|\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_BBD|SIUMCR_DPPC00|SIUMCR_APPC10|\
                         SIUMCR_CS10PC01|SIUMCR_BCTLC10)
 
 /*-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR        SCCR_DFBRG01
+#define CONFIG_SYS_SCCR        SCCR_DFBRG01
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
-#define CFG_MIN_AM_MASK        0xC0000000
+#define CONFIG_SYS_MIN_AM_MASK 0xC0000000
 /*-----------------------------------------------------------------------
  * MPTPR - Memory Refresh Timer Prescaler Register              10-18
  *-----------------------------------------------------------------------
  */
-#define CFG_MPTPR       0x1F00
+#define CONFIG_SYS_MPTPR       0x1F00
 
 /*-----------------------------------------------------------------------
  * PSRT - Refresh Timer Register                                10-16
  *-----------------------------------------------------------------------
  */
-#define CFG_PSRT        0x0f
+#define CONFIG_SYS_PSRT        0x0f
 
 /*-----------------------------------------------------------------------
  * PSRT - SDRAM Mode Register                                   10-10
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR2_8COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_8COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A9             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL (PSDMR_SDAM_A13_IS_A5           |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_SDAM_A13_IS_A5           |\
                         PSDMR_BSMA_A14_A16             |\
                         PSDMR_SDA10_PBI0_A10           |\
                         PSDMR_RFRC_7_CLK               |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR2_9COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_9COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A7             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_9COL (PSDMR_SDAM_A14_IS_A5           |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_SDAM_A14_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI0_A9            |\
                         PSDMR_RFRC_7_CLK               |\
  *
  */
 
-#define CFG_MRS_OFFS   0x00000000
+#define CONFIG_SYS_MRS_OFFS    0x00000000
 
 #ifdef CONFIG_BOOT_ROM
 /* Bank 0 - Boot ROM
  */
-#define CFG_BR0_PRELIM  ((CFG_BOOTROM_BASE & BRx_BA_MSK)|\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_BOOTROM_BASE & BRx_BA_MSK)|\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (P2SZ_TO_AM(CFG_BOOTROM_SIZE)   |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BOOTROM_SIZE)   |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 
 /* Bank 1 - FLASH
  */
-#define CFG_BR1_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM  (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 #else /* CONFIG_BOOT_ROM */
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 
 /* Bank 1 - Boot ROM
  */
-#define CFG_BR1_PRELIM  ((CFG_BOOTROM_BASE & BRx_BA_MSK)|\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_BOOTROM_BASE & BRx_BA_MSK)|\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM  (P2SZ_TO_AM(CFG_BOOTROM_SIZE)   |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BOOTROM_SIZE)   |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 
 /* Bank 2 - 60x bus SDRAM
  */
-#ifndef CFG_RAMBOOT
-#define CFG_BR2_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR2_PRELIM  CFG_OR2_9COL
+#define CONFIG_SYS_OR2_PRELIM   CONFIG_SYS_OR2_9COL
 
-#define CFG_PSDMR       CFG_PSDMR_9COL
-#endif /* CFG_RAMBOOT */
+#define CONFIG_SYS_PSDMR        CONFIG_SYS_PSDMR_9COL
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /* Bank 3 - Dual Ported SRAM
  */
-#define CFG_BR3_PRELIM  ((CFG_DPSRAM_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_DPSRAM_BASE & BRx_BA_MSK) |\
                         BRx_PS_16                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR3_PRELIM  (P2SZ_TO_AM(CFG_DPSRAM_SIZE)    |\
+#define CONFIG_SYS_OR3_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_DPSRAM_SIZE)    |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 
 /* Bank 4 - DiskOnChip
  */
-#define CFG_BR4_PRELIM  ((CFG_DOC_BASE & BRx_BA_MSK)    |\
+#define CONFIG_SYS_BR4_PRELIM  ((CONFIG_SYS_DOC_BASE & BRx_BA_MSK)    |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR4_PRELIM  (P2SZ_TO_AM(CFG_DOC_SIZE)       |\
+#define CONFIG_SYS_OR4_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_DOC_SIZE)       |\
                         ORxG_ACS_DIV2                  |\
                         ORxG_SCY_5_CLK                 |\
                         ORxU_EHTR_8IDLE)
 
 /* Bank 5 - FDC37C78 controller
  */
-#define CFG_BR5_PRELIM  ((CFG_FDC37C78_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR5_PRELIM  ((CONFIG_SYS_FDC37C78_BASE & BRx_BA_MSK) |\
                         BRx_PS_8                         |\
                         BRx_MS_GPCM_P                    |\
                         BRx_V)
 
-#define CFG_OR5_PRELIM  (P2SZ_TO_AM(CFG_FDC37C78_SIZE)    |\
+#define CONFIG_SYS_OR5_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FDC37C78_SIZE)    |\
                         ORxG_ACS_DIV2                    |\
                         ORxG_SCY_8_CLK                   |\
                         ORxU_EHTR_8IDLE)
 
 /* Bank 6 - Board control registers
  */
-#define CFG_BR6_PRELIM  ((CFG_BCRS_BASE & BRx_BA_MSK)   |\
+#define CONFIG_SYS_BR6_PRELIM  ((CONFIG_SYS_BCRS_BASE & BRx_BA_MSK)   |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR6_PRELIM  (P2SZ_TO_AM(CFG_BCRS_SIZE)      |\
+#define CONFIG_SYS_OR6_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BCRS_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_SCY_5_CLK)
 
 /* Bank 7 - VME Extended Access Range
  */
-#define CFG_BR7_PRELIM  ((CFG_VMEEAR_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR7_PRELIM  ((CONFIG_SYS_VMEEAR_BASE & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR7_PRELIM  (P2SZ_TO_AM(CFG_VMEEAR_SIZE)    |\
+#define CONFIG_SYS_OR7_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_VMEEAR_SIZE)    |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 
 /* Bank 8 - VME Standard Access Range
  */
-#define CFG_BR8_PRELIM  ((CFG_VMESAR_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR8_PRELIM  ((CONFIG_SYS_VMESAR_BASE & BRx_BA_MSK) |\
                         BRx_PS_16                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR8_PRELIM  (P2SZ_TO_AM(CFG_VMESAR_SIZE)    |\
+#define CONFIG_SYS_OR8_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_VMESAR_SIZE)    |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 
 /* Bank 9 - VME Short I/O Access Range
  */
-#define CFG_BR9_PRELIM  ((CFG_VMESIOAR_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR9_PRELIM  ((CONFIG_SYS_VMESIOAR_BASE & BRx_BA_MSK) |\
                         BRx_PS_16                        |\
                         BRx_MS_GPCM_P                    |\
                         BRx_V)
 
-#define CFG_OR9_PRELIM  (P2SZ_TO_AM(CFG_VMESIOAR_SIZE)    |\
+#define CONFIG_SYS_OR9_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_VMESIOAR_SIZE)    |\
                         ORxG_CSNT                        |\
                         ORxG_ACS_DIV1                    |\
                         ORxG_SCY_5_CLK                   |\
index e087624e9f4ea3ced1137d86d5981ba41da77e47..489378a1834c12b3371930697ad0fe55d46647a6 100644 (file)
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
 
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
  */
 #define CONFIG_SOFT_I2C                        /* Software I2C support enabled */
 
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xFE
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xFE
 /*
  * Software (bit-bang) I2C driver configuration
  */
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR       0x51
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
  * Disk-On-Chip configuration
  */
 
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices    */
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices    */
 
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configuration options
  */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 /*
  * BOOTP options
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END 0x0C00000      /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_RESET_ADDRESS 0xFFF00100   /* "bad" address                */
+#define CONFIG_SYS_RESET_ADDRESS 0xFFF00100    /* "bad" address                */
 
 #define CONFIG_LOOPW
 
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Flash configuration
  */
 
-#define CFG_BOOTROM_BASE       0xFF800000
-#define CFG_BOOTROM_SIZE       0x00080000
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_SIZE         0x00800000
+#define CONFIG_SYS_BOOTROM_BASE        0xFF800000
+#define CONFIG_SYS_BOOTROM_SIZE        0x00080000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     135     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      135     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /*-----------------------------------------------------------------------
  * Other areas to be mapped
  */
 
 /* CS3: Dual ported SRAM */
-#define CFG_DPSRAM_BASE                0x40000000
-#define CFG_DPSRAM_SIZE                0x00100000
+#define CONFIG_SYS_DPSRAM_BASE         0x40000000
+#define CONFIG_SYS_DPSRAM_SIZE         0x00100000
 
 /* CS4: DiskOnChip */
-#define CFG_DOC_BASE           0xF4000000
-#define CFG_DOC_SIZE           0x00100000
+#define CONFIG_SYS_DOC_BASE            0xF4000000
+#define CONFIG_SYS_DOC_SIZE            0x00100000
 
 /* CS5: FDC37C78 controller */
-#define CFG_FDC37C78_BASE      0xF1000000
-#define CFG_FDC37C78_SIZE      0x00100000
+#define CONFIG_SYS_FDC37C78_BASE       0xF1000000
+#define CONFIG_SYS_FDC37C78_SIZE       0x00100000
 
 /* CS6: Board configuration registers */
-#define CFG_BCRS_BASE          0xF2000000
-#define CFG_BCRS_SIZE          0x00010000
+#define CONFIG_SYS_BCRS_BASE           0xF2000000
+#define CONFIG_SYS_BCRS_SIZE           0x00010000
 
 /* CS7: VME Extended Access Range */
-#define CFG_VMEEAR_BASE                0x60000000
-#define CFG_VMEEAR_SIZE                0x01000000
+#define CONFIG_SYS_VMEEAR_BASE         0x60000000
+#define CONFIG_SYS_VMEEAR_SIZE         0x01000000
 
 /* CS8: VME Standard Access Range */
-#define CFG_VMESAR_BASE                0xFE000000
-#define CFG_VMESAR_SIZE                0x01000000
+#define CONFIG_SYS_VMESAR_BASE         0xFE000000
+#define CONFIG_SYS_VMESAR_SIZE         0x01000000
 
 /* CS9: VME Short I/O Access Range */
-#define CFG_VMESIOAR_BASE      0xFD000000
-#define CFG_VMESIOAR_SIZE      0x01000000
+#define CONFIG_SYS_VMESIOAR_BASE       0xFD000000
+#define CONFIG_SYS_VMESIOAR_SIZE       0x01000000
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #if defined(CONFIG_BOOT_ROM)
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | \
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | \
                                 HRCW_BPS01 | HRCW_CS10PC01)
 #else
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | HRCW_CS10PC01)
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | HRCW_CS10PC01)
 #endif
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE.
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_MAX_SIZE     0x08000000      /* max. 128 MB          */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_MAX_SIZE      0x08000000      /* max. 128 MB          */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-# define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+# define CONFIG_SYS_RAMBOOT
 #endif
 
 #ifdef CONFIG_PCI
 #define CONFIG_PCI_PNP
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #endif
 
 #if 0
 /* environment is in Flash */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #ifdef CONFIG_BOOT_ROM
-# define CONFIG_ENV_ADDR               (CFG_FLASH_BASE+0x70000)
+# define CONFIG_ENV_ADDR               (CONFIG_SYS_FLASH_BASE+0x70000)
 # define CONFIG_ENV_SIZE               0x10000
 # define CONFIG_ENV_SECT_SIZE  0x10000
 #endif
 #else
 /* environment is in EEPROM */
 #define CONFIG_ENV_IS_IN_EEPROM        1
-#define CFG_I2C_EEPROM_ADDR    0x58    /* EEPROM X24C16                */
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x58    /* EEPROM X24C16                */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 #define CONFIG_ENV_OFFSET              512
 #define CONFIG_ENV_SIZE                (2048 - 512)
 #endif
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE|HID0_DCE|HID0_ICFI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|\
                         HID0_DCI|HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL (HID0_IFEM|HID0_ABE)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID0_FINAL  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                    5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR                RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
 #define BCR_APD01      0x10000000
-#define CFG_BCR                (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
+#define CONFIG_SYS_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     (SIUMCR_BBD|SIUMCR_DPPC00|SIUMCR_APPC10|\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_BBD|SIUMCR_DPPC00|SIUMCR_APPC10|\
                         SIUMCR_CS10PC01|SIUMCR_BCTLC10)
 
 /*-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR       SCCR_DFBRG01
+#define CONFIG_SYS_SCCR        SCCR_DFBRG01
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
-#define CFG_MIN_AM_MASK 0xC0000000
+#define CONFIG_SYS_MIN_AM_MASK 0xC0000000
 
 /*
  * we use the same values for 32 MB, 128 MB and 256 MB SDRAM
  * MPTPR - Memory Refresh Timer Prescaler Register             10-18
  *-----------------------------------------------------------------------
  */
-#define CFG_MPTPR      0x2000
+#define CONFIG_SYS_MPTPR       0x2000
 
 /*-----------------------------------------------------------------------
  * PSRT - Refresh Timer Register                               10-16
  *-----------------------------------------------------------------------
  */
-#define CFG_PSRT       0x16
+#define CONFIG_SYS_PSRT        0x16
 
 /*-----------------------------------------------------------------------
  * PSRT - SDRAM Mode Register                                  10-10
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR2_8COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_8COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A9             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL (PSDMR_SDAM_A13_IS_A5           |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_SDAM_A13_IS_A5           |\
                         PSDMR_BSMA_A14_A16             |\
                         PSDMR_SDA10_PBI0_A10           |\
                         PSDMR_RFRC_7_CLK               |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR2_9COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_9COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A7             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_9COL (PSDMR_SDAM_A14_IS_A5           |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_SDAM_A14_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI0_A9            |\
                         PSDMR_RFRC_7_CLK               |\
 
        /* SDRAM initialization values for 10-column chips
         */
-#define CFG_OR2_10COL  (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_10COL   (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A4             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_10COL        (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_10COL (PSDMR_PBI                      |\
                         PSDMR_SDAM_A17_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI1_A6            |\
  *
  */
 
-#define CFG_MRS_OFFS   0x00000000
+#define CONFIG_SYS_MRS_OFFS    0x00000000
 
 #ifdef CONFIG_BOOT_ROM
 /* Bank 0 - Boot ROM
  */
-#define CFG_BR0_PRELIM ((CFG_BOOTROM_BASE & BRx_BA_MSK)|\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_BOOTROM_BASE & BRx_BA_MSK)|\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM (P2SZ_TO_AM(CFG_BOOTROM_SIZE)   |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BOOTROM_SIZE)    |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 
 /* Bank 1 - FLASH
  */
-#define CFG_BR1_PRELIM ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)   |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 #else /* CONFIG_BOOT_ROM */
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)   |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 
 /* Bank 1 - Boot ROM
  */
-#define CFG_BR1_PRELIM ((CFG_BOOTROM_BASE & BRx_BA_MSK)|\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_BOOTROM_BASE & BRx_BA_MSK)|\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM (P2SZ_TO_AM(CFG_BOOTROM_SIZE)   |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BOOTROM_SIZE)    |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 
 /* Bank 2 - 60x bus SDRAM
  */
-#ifndef CFG_RAMBOOT
-#define CFG_BR2_PRELIM ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)   |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR2_PRELIM  CFG_OR2_8COL
+#define CONFIG_SYS_OR2_PRELIM   CONFIG_SYS_OR2_8COL
 
-#define CFG_PSDMR       CFG_PSDMR_8COL
-#endif /* CFG_RAMBOOT */
+#define CONFIG_SYS_PSDMR        CONFIG_SYS_PSDMR_8COL
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /* Bank 3 - Dual Ported SRAM
  */
-#define CFG_BR3_PRELIM ((CFG_DPSRAM_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_DPSRAM_BASE & BRx_BA_MSK) |\
                         BRx_PS_16                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR3_PRELIM (P2SZ_TO_AM(CFG_DPSRAM_SIZE)    |\
+#define CONFIG_SYS_OR3_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_DPSRAM_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_7_CLK                 |\
 
 /* Bank 4 - DiskOnChip
  */
-#define CFG_BR4_PRELIM ((CFG_DOC_BASE & BRx_BA_MSK)    |\
+#define CONFIG_SYS_BR4_PRELIM  ((CONFIG_SYS_DOC_BASE & BRx_BA_MSK)     |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR4_PRELIM (P2SZ_TO_AM(CFG_DOC_SIZE)       |\
+#define CONFIG_SYS_OR4_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_DOC_SIZE)        |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV2                  |\
                         ORxG_SCY_9_CLK                 |\
 
 /* Bank 5 - FDC37C78 controller
  */
-#define CFG_BR5_PRELIM ((CFG_FDC37C78_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR5_PRELIM  ((CONFIG_SYS_FDC37C78_BASE & BRx_BA_MSK) |\
                         BRx_PS_8                         |\
                         BRx_MS_GPCM_P                    |\
                         BRx_V)
 
-#define CFG_OR5_PRELIM (P2SZ_TO_AM(CFG_FDC37C78_SIZE)    |\
+#define CONFIG_SYS_OR5_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FDC37C78_SIZE)     |\
                         ORxG_ACS_DIV2                    |\
                         ORxG_SCY_10_CLK                  |\
                         ORxU_EHTR_8IDLE)
 
 /* Bank 6 - Board control registers
  */
-#define CFG_BR6_PRELIM ((CFG_BCRS_BASE & BRx_BA_MSK)   |\
+#define CONFIG_SYS_BR6_PRELIM  ((CONFIG_SYS_BCRS_BASE & BRx_BA_MSK)    |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR6_PRELIM (P2SZ_TO_AM(CFG_BCRS_SIZE)      |\
+#define CONFIG_SYS_OR6_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BCRS_SIZE)       |\
                         ORxG_CSNT                      |\
                         ORxG_SCY_7_CLK)
 
 /* Bank 7 - VME Extended Access Range
  */
-#define CFG_BR7_PRELIM ((CFG_VMEEAR_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR7_PRELIM  ((CONFIG_SYS_VMEEAR_BASE & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR7_PRELIM (P2SZ_TO_AM(CFG_VMEEAR_SIZE)    |\
+#define CONFIG_SYS_OR7_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_VMEEAR_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_7_CLK                 |\
 
 /* Bank 8 - VME Standard Access Range
  */
-#define CFG_BR8_PRELIM ((CFG_VMESAR_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR8_PRELIM  ((CONFIG_SYS_VMESAR_BASE & BRx_BA_MSK) |\
                         BRx_PS_16                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR8_PRELIM (P2SZ_TO_AM(CFG_VMESAR_SIZE)    |\
+#define CONFIG_SYS_OR8_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_VMESAR_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_7_CLK                 |\
 
 /* Bank 9 - VME Short I/O Access Range
  */
-#define CFG_BR9_PRELIM ((CFG_VMESIOAR_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR9_PRELIM  ((CONFIG_SYS_VMESIOAR_BASE & BRx_BA_MSK) |\
                         BRx_PS_16                        |\
                         BRx_MS_GPCM_P                    |\
                         BRx_V)
 
-#define CFG_OR9_PRELIM (P2SZ_TO_AM(CFG_VMESIOAR_SIZE)    |\
+#define CONFIG_SYS_OR9_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_VMESIOAR_SIZE)     |\
                         ORxG_CSNT                        |\
                         ORxG_ACS_DIV1                    |\
                         ORxG_SCY_7_CLK                   |\
index 4639d30b6d21f984315e3810270aa4b4b6b1509b..1122d02d61cf5613b14c361cf6d157f3d1a32746 100644 (file)
@@ -53,7 +53,7 @@
 
 /* Bootcmd is overridden by the bootscript in board/cray/L1
  */
-#define        CFG_AUTOLOAD            "no"
+#define        CONFIG_SYS_AUTOLOAD             "no"
 #define CONFIG_BOOTCOMMAND     "dhcp"
 
 /*
  */
 #define CONFIG_HARD_I2C         1              /* hardware support for i2c */
 #define CONFIG_SDRAM_BANK0             1
-#define CFG_I2C_SPEED              400000      /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE              0x7F
-#define CFG_I2C_EEPROM_ADDR     0x57
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_SPEED               400000      /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE               0x7F
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 #define CONFIG_IDENT_STRING     "Cray L1"
 #define CONFIG_ENV_OVERWRITE     1
-#define        CFG_HZ                       1000       /* decrementer freq: 1 ms ticks */
-#define CFG_HUSH_PARSER                        1
-#define CFG_PROMPT_HUSH_PS2            "> "
+#define        CONFIG_SYS_HZ                        1000       /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HUSH_PARSER                 1
+#define CONFIG_SYS_PROMPT_HUSH_PS2             "> "
 #define CONFIG_AUTOSCRIPT              1
 
 
  * from the DCR anyway, so its kinda-tied to the above ref. clock which in turn
  * drives the system clock.
  */
-#define CFG_BASE_BAUD       403225
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BASE_BAUD       403225
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_PROMPT     "=> "                           /* Monitor Command Prompt       */
-#define        CFG_CBSIZE      256                             /* Console I/O Buffer Size      */
-#define CFG_BARGSIZE   CFG_CBSIZE                      /* Boot Argument Buffer Size    */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16                              /* max number of command args   */
+#define CONFIG_SYS_PROMPT      "=> "                           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE       256                             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE                       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16                              /* max number of command args   */
 
 
-#define CFG_LOAD_ADDR          0x100000        /* where to load what we get from TFTP */
-#define CFG_TFTP_LOADADDR      CFG_LOAD_ADDR
-#define CFG_EXTBDINFO          1               /* To use extended board_into (bd_t) */
-#define CFG_DRAM_TEST          1
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* where to load what we get from TFTP */
+#define CONFIG_SYS_TFTP_LOADADDR       CONFIG_SYS_LOAD_ADDR
+#define CONFIG_SYS_EXTBDINFO           1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_DRAM_TEST           1
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFC00000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFC00000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
 
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 192 kB for Monitor   */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS     1              /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT      64             /* max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT 120000    /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT 500       /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_MAX_FLASH_BANKS      1              /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT       64             /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT 120000     /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT 500        /* Timeout for Flash Write (in ms)      */
 
 /* BEG ENVIRONNEMENT FLASH: needs to be a whole FlashSector  */
 #define CONFIG_ENV_OFFSET              0x3c8000
 /* Memory tests: U-BOOT relocates itself to the top of Ram, so its at
  * 32meg-(128k+some_malloc_space+copy-of-ENV sector)..
  */
-#define CFG_SDRAM_SIZE         32              /* megs of ram */
-#define CFG_MEMTEST_START      0x2000  /* memtest works from the end of */
+#define CONFIG_SYS_SDRAM_SIZE          32              /* megs of ram */
+#define CONFIG_SYS_MEMTEST_START       0x2000  /* memtest works from the end of */
                                                                        /* the exception vector table */
                                                                        /* to the end of the DRAM  */
                                                                        /* less monitor and malloc area */
-#define CFG_STACK_USAGE                0x10000 /* Reserve 64k for the stack usage */
-#define CFG_MALLOC_LEN         (128 << 10)     /* 128k for malloc space */
-#define CFG_MEM_END_USAGE      ( CFG_MONITOR_LEN \
-                               + CFG_MALLOC_LEN \
+#define CONFIG_SYS_STACK_USAGE         0x10000 /* Reserve 64k for the stack usage */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* 128k for malloc space */
+#define CONFIG_SYS_MEM_END_USAGE       ( CONFIG_SYS_MONITOR_LEN \
+                               + CONFIG_SYS_MALLOC_LEN \
                                + CONFIG_ENV_SECT_SIZE \
-                               + CFG_STACK_USAGE )
+                               + CONFIG_SYS_STACK_USAGE )
 
-#define CFG_MEMTEST_END                (CFG_SDRAM_SIZE * 1024 * 1024 - CFG_MEM_END_USAGE)
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_SDRAM_SIZE * 1024 * 1024 - CONFIG_SYS_MEM_END_USAGE)
 /* END ENVIRONNEMENT FLASH */
 
 /*
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 
 
 /*-----------------------------------------------------------------------
  */
 #if 1
 /* On Chip Memory location */
-#define CFG_TEMP_STACK_OCM     1
-#define CFG_OCM_DATA_ADDR      0xF0000000
-#define CFG_OCM_DATA_SIZE      0x1000
-
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      256  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF0000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE      256  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #else
-#define CFG_OCM_DATA_ADDR      0xF0000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR       /* inside of On Chip SRAM    */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE       /* End of On Chip SRAM       */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF0000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR        /* inside of On Chip SRAM    */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE        /* End of On Chip SRAM       */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #endif
 
 /*-----------------------------------------------------------------------
index a40df76f3e820677a36cf7a1190af96443e527ea..4a3f2bc8a41fed8450c5e7ab4be1cf4fab875323 100644 (file)
@@ -48,7 +48,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_PREBOOT "echo;echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;echo"
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 #if 1
-#define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
+#define        CONFIG_SYS_HUSH_PARSER          1       /* use "hush" command parser    */
 #endif
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
-#define CFG_FLASH_BASE     0xFF000000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_FLASH_BASE      0xFF000000
 
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_EUMB_ADDR      0xFCE00000
+#define CONFIG_SYS_EUMB_ADDR       0xFCE00000
 
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x02000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM          */
 
        /* Maximum amount of RAM.
         */
-#define CFG_MAX_RAM_SIZE    0x10000000
+#define CONFIG_SYS_MAX_RAM_SIZE    0x10000000
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 
 
        /* Size in bytes reserved for initial data
         */
-#define CFG_GBL_DATA_SIZE    128
+#define CONFIG_SYS_GBL_DATA_SIZE    128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   4
+#define CONFIG_SYS_NS16550_REG_SIZE    4
 
-#define CFG_NS16550_CLK                (14745600 / 2)
+#define CONFIG_SYS_NS16550_CLK         (14745600 / 2)
 
-#define CFG_NS16550_COM1       0xFE800080
-#define CFG_NS16550_COM2       0xFE8000C0
+#define CONFIG_SYS_NS16550_COM1        0xFE800080
+#define CONFIG_SYS_NS16550_COM2        0xFE8000C0
 
 /*
  * Low Level Configuration Settings
  */
 
 #define CONFIG_SYS_CLK_FREQ  33000000
-#define CFG_HZ              1000
+#define CONFIG_SYS_HZ               1000
 
        /* Bit-field values for MCCR1.
         */
-#define CFG_ROMNAL         0
-#define CFG_ROMFAL         7
+#define CONFIG_SYS_ROMNAL          0
+#define CONFIG_SYS_ROMFAL          7
 
        /* Bit-field values for MCCR2.
         */
-#define CFG_REFINT         430     /* Refresh interval                 */
+#define CONFIG_SYS_REFINT          430     /* Refresh interval                 */
 
        /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
         */
-#define CFG_BSTOPRE        192
+#define CONFIG_SYS_BSTOPRE         192
 
        /* Bit-field values for MCCR3.
         */
-#define CFG_REFREC         2       /* Refresh to activate interval     */
-#define CFG_RDLAT          3       /* Data latancy from read command   */
+#define CONFIG_SYS_REFREC          2       /* Refresh to activate interval     */
+#define CONFIG_SYS_RDLAT           3       /* Data latancy from read command   */
 
        /* Bit-field values for MCCR4.
         */
-#define CFG_PRETOACT       2       /* Precharge to activate interval   */
-#define CFG_ACTTOPRE       5       /* Activate to Precharge interval   */
-#define CFG_SDMODE_CAS_LAT  2      /* SDMODE CAS latancy               */
-#define CFG_SDMODE_WRAP            0       /* SDMODE wrap type                 */
-#define CFG_SDMODE_BURSTLEN 2      /* SDMODE Burst length              */
-#define CFG_ACTORW         2
-#define CFG_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_PRETOACT        2       /* Precharge to activate interval   */
+#define CONFIG_SYS_ACTTOPRE        5       /* Activate to Precharge interval   */
+#define CONFIG_SYS_SDMODE_CAS_LAT  2       /* SDMODE CAS latancy               */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type                 */
+#define CONFIG_SYS_SDMODE_BURSTLEN 2       /* SDMODE Burst length              */
+#define CONFIG_SYS_ACTORW          2
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START            0x3ff00000
-#define CFG_BANK1_END      0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START            0x3ff00000
-#define CFG_BANK2_END      0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START            0x3ff00000
-#define CFG_BANK3_END      0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START            0x3ff00000
-#define CFG_BANK4_END      0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START            0x3ff00000
-#define CFG_BANK5_END      0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START            0x3ff00000
-#define CFG_BANK6_END      0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START            0x3ff00000
-#define CFG_BANK7_END      0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR           0xff
-
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L  (0xFC000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xFC000000 | BATU_BL_64M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0xff
+
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L  (0xFC000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xFC000000 | BATU_BL_64M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     39      /* Max number of sectors in one bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      39      /* Max number of sectors in one bank    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
        /* Warining: environment is not EMBEDDED in the U-Boot code.
         * It's stored in flash separately.
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
 #define CONFIG_TULIP
 #define CONFIG_TULIP_USE_IO
 
-#define CFG_ETH_DEV_FN      0x7800
-#define CFG_ETH_IOBASE      0x00104000
+#define CONFIG_SYS_ETH_DEV_FN       0x7800
+#define CONFIG_SYS_ETH_IOBASE       0x00104000
 
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #define PCI_ENET0_IOADDR       0x00104000
 #define PCI_ENET0_MEMADDR      0x80000000
 #endif /* __CONFIG_H */
index 3ddf1bf3f53a01500b8de13566273043ec855680..61704d0f19eb9ff284a40f19e22e7b78e2579e41 100644 (file)
@@ -50,7 +50,7 @@
 #undef CONFIG_BOOTARGS
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #if 0 /* Does not appear to be used?!  If it is used, needs to be fixed */
 #define CONFIG_SOFT_I2C                        /* Software I2C support enabled */
 #endif
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x00df0000 /* inside of SDRAM                   */
-#define CFG_INIT_RAM_END       0x0f00  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x00df0000 /* inside of SDRAM                   */
+#define CONFIG_SYS_INIT_RAM_END        0x0f00  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFD0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 128 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFD0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 128 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x0AA9  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x0556  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x0AA9  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x0556  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0002  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0000  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0004  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0002  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0000  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0004  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x00010000      /* Offset of Environment Sector */
 
 #define CONFIG_TULIP
 
-#define CFG_ETH_DEV_FN      0x0000
-#define CFG_ETH_IOBASE      0x0fff0000
-#define CFG_PCI9054_DEV_FN   0x0800
-#define CFG_PCI9054_IOBASE   0x0eff0000
+#define CONFIG_SYS_ETH_DEV_FN       0x0000
+#define CONFIG_SYS_ETH_IOBASE       0x0fff0000
+#define CONFIG_SYS_PCI9054_DEV_FN   0x0800
+#define CONFIG_SYS_PCI9054_IOBASE   0x0eff0000
 
 /*
  * Init Memory Controller:
index 0edd51abfa4e2ca9a53e6b31725c2226fa61f59d..daed9342b377f9c4999660cd1e441eafb1611960 100644 (file)
@@ -132,13 +132,13 @@ if we use PCI it has its own MAC addr */
 #define CONFIG_MISC_INIT_R     /* initialize the icache L1 */
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CFG_BOARD_NAME         "DB64360"
+#define CONFIG_SYS_BOARD_NAME          "DB64360"
 #define CONFIG_IDENT_STRING    "Marvell DB64360 (1.1)"
 
-/*#define CFG_HUSH_PARSER */
-#undef CFG_HUSH_PARSER
+/*#define CONFIG_SYS_HUSH_PARSER */
+#undef CONFIG_SYS_HUSH_PARSER
 
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 /*
  * The following defines let you select what serial you want to use
@@ -146,7 +146,7 @@ if we use PCI it has its own MAC addr */
  *
  * what to do:
  * to use the DUART, undef CONFIG_MPSC.         If you have hacked a serial
- * cable onto the second DUART channel, change the CFG_DUART port from 1
+ * cable onto the second DUART channel, change the CONFIG_SYS_DUART port from 1
  * to 0 below.
  *
  * to use the MPSC, #define CONFIG_MPSC.  If you have wired up another
@@ -210,7 +210,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 /* --------------------------------------------------------------------------------------------------------------- */
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#define CFG_LOADS_BAUD_CHANGE          /* allow baudrate changes       */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate changes       */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #undef CONFIG_ALTIVEC                  /* undef to disable             */
@@ -265,74 +265,74 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 /*
  * Miscellaneous configurable options
  */
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_SPEED  40000           /* I2C speed default */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_SPEED   40000           /* I2C speed default */
 
-/* #define CFG_GT_DUAL_CPU      also for JTAG even with one cpu */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+/* #define CONFIG_SYS_GT_DUAL_CPU       also for JTAG even with one cpu */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-/*#define CFG_MEMTEST_START    0x00400000       memtest works on       */
-/*#define CFG_MEMTEST_END              0x00C00000       4 ... 12 MB in DRAM    */
-/*#define CFG_MEMTEST_END              0x07c00000       4 ... 124 MB in DRAM   */
+/*#define CONFIG_SYS_MEMTEST_START     0x00400000       memtest works on       */
+/*#define CONFIG_SYS_MEMTEST_END               0x00C00000       4 ... 12 MB in DRAM    */
+/*#define CONFIG_SYS_MEMTEST_END               0x07c00000       4 ... 124 MB in DRAM   */
 
 /*
-#define CFG_DRAM_TEST
+#define CONFIG_SYS_DRAM_TEST
  * DRAM tests
- *   CFG_DRAM_TEST - enables the following tests.
+ *   CONFIG_SYS_DRAM_TEST - enables the following tests.
  *
- *   CFG_DRAM_TEST_DATA - Enables test for shorted or open data lines
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test for shorted or open data lines
  *                       Environment variable 'test_dram_data' must be
  *                       set to 'y'.
- *   CFG_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
  *                       addressable. Environment variable
  *                       'test_dram_address' must be set to 'y'.
- *   CFG_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
+ *   CONFIG_SYS_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
  *                       This test takes about 6 minutes to test 64 MB.
  *                       Environment variable 'test_dram_walk' must be
  *                       set to 'y'.
  */
-#define CFG_DRAM_TEST
-#if defined(CFG_DRAM_TEST)
-#define CFG_MEMTEST_START              0x00400000      /* memtest works on     */
-/* #define CFG_MEMTEST_END             0x00C00000       4 ... 12 MB in DRAM    */
-#define CFG_MEMTEST_END                0x07c00000      /* 4 ... 124 MB in DRAM */
-#define CFG_DRAM_TEST_DATA
-#define CFG_DRAM_TEST_ADDRESS
-#define CFG_DRAM_TEST_WALK
-#endif /* CFG_DRAM_TEST */
+#define CONFIG_SYS_DRAM_TEST
+#if defined(CONFIG_SYS_DRAM_TEST)
+#define CONFIG_SYS_MEMTEST_START               0x00400000      /* memtest works on     */
+/* #define CONFIG_SYS_MEMTEST_END              0x00C00000       4 ... 12 MB in DRAM    */
+#define CONFIG_SYS_MEMTEST_END         0x07c00000      /* 4 ... 124 MB in DRAM */
+#define CONFIG_SYS_DRAM_TEST_DATA
+#define CONFIG_SYS_DRAM_TEST_ADDRESS
+#define CONFIG_SYS_DRAM_TEST_WALK
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 #undef CONFIG_DISPLAY_MEMMAP           /* at the end of the bootprocess show the memory map */
-#undef CFG_DISPLAY_DIMM_SPD_CONTENT    /* show SPD content during boot */
+#undef CONFIG_SYS_DISPLAY_DIMM_SPD_CONTENT     /* show SPD content during boot */
 
-#define CFG_LOAD_ADDR          0x00400000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00400000      /* default load address */
 
-#define CFG_HZ                 1000            /* decr freq: 1ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decr freq: 1ms ticks */
 /*ronen - this the Sys clock (cpu bus,internal dram and SDRAM) */
-#define CFG_BUS_HZ             133000000       /* 133 MHz (CPU = 5*Bus = 666MHz)               */
-#define CFG_BUS_CLK            CFG_BUS_HZ
+#define CONFIG_SYS_BUS_HZ              133000000       /* 133 MHz (CPU = 5*Bus = 666MHz)               */
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
 
-#define CFG_DDR_SDRAM_CYCLE_COUNT_LOP 7 /* define the SDRAM cycle count */
-#define CFG_DDR_SDRAM_CYCLE_COUNT_ROP 50 /* for 400MHZ -> 5.0 ns, for 133MHZ -> 7.50 ns */
+#define CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP 7 /* define the SDRAM cycle count */
+#define CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_ROP 50 /* for 400MHZ -> 5.0 ns, for 133MHZ -> 7.50 ns */
 
 /*ronen - this is the Tclk (MV64360 core) */
-#define CFG_TCLK               133000000
+#define CONFIG_SYS_TCLK                133000000
 
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_750FX_HID0         0x8000c084
-#define CFG_750FX_HID1         0x54800000
-#define CFG_750FX_HID2         0x00000000
+#define CONFIG_SYS_750FX_HID0          0x8000c084
+#define CONFIG_SYS_750FX_HID1          0x54800000
+#define CONFIG_SYS_750FX_HID2          0x00000000
 
 /*
  * Low Level Configuration Settings
@@ -345,51 +345,51 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  */
 
 /*
- * When locking data in cache you should point the CFG_INIT_RAM_ADDRESS
+ * When locking data in cache you should point the CONFIG_SYS_INIT_RAM_ADDRESS
  * To an unused memory region. The stack will remain in cache until RAM
  * is initialized
 */
-#define CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0x40000000 /* unused memory region */
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000 /* unused memory region */
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #define RELOCATE_INTERNAL_RAM_ADDR
 #ifdef RELOCATE_INTERNAL_RAM_ADDR
-       #define CFG_INTERNAL_RAM_ADDR   0xf8000000
+       #define CONFIG_SYS_INTERNAL_RAM_ADDR    0xf8000000
 #endif
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 /* Dummies for BAT 4-7 */
-#define CFG_SDRAM1_BASE                0x10000000      /* each 256 MByte */
-#define CFG_SDRAM2_BASE                0x20000000
-#define CFG_SDRAM3_BASE                0x30000000
-#define CFG_SDRAM4_BASE                0x40000000
-#define CFG_FLASH_BASE                 0xfff00000
+#define CONFIG_SYS_SDRAM1_BASE         0x10000000      /* each 256 MByte */
+#define CONFIG_SYS_SDRAM2_BASE         0x20000000
+#define CONFIG_SYS_SDRAM3_BASE         0x30000000
+#define CONFIG_SYS_SDRAM4_BASE         0x40000000
+#define CONFIG_SYS_FLASH_BASE                  0xfff00000
 
-#define CFG_DFL_BOOTCS_BASE    0xff800000
+#define CONFIG_SYS_DFL_BOOTCS_BASE     0xff800000
 #define CONFIG_VERY_BIG_RAM            /* we will use up to 256M memory for cause we are short of BATS*/
 
 #define BRIDGE_REG_BASE_BOOTM 0xfbe00000 /* this paramaters are used when booting the linux kernel */
 #define UART_BASE_BOOTM              0xfbb00000 /* in order to be sync with the kernel parameters. */
 #define PCI0_IO_BASE_BOOTM    0xfd000000
 
-#define CFG_RESET_ADDRESS              0xfff00100
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_RESET_ADDRESS               0xfff00100
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
 
 /* areas to map different things with the GT in physical space */
-#define CFG_DRAM_BANKS         4
+#define CONFIG_SYS_DRAM_BANKS          4
 
 /* What to put in the bats. */
-#define CFG_MISC_REGION_BASE   0xf0000000
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000
 
 /* Peripheral Device section */
 
@@ -403,30 +403,30 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 /* Data flash on external device module                    */
 /* Boot flash on external device module                    */
 /*******************************************************/
-#define CFG_DFL_GT_REGS                0x14000000                              /* boot time GT_REGS */
-#define         CFG_DB64360_RESET_ADDR 0x14000000                              /* After power on Reset the DB64360 is here */
+#define CONFIG_SYS_DFL_GT_REGS         0x14000000                              /* boot time GT_REGS */
+#define         CONFIG_SYS_DB64360_RESET_ADDR 0x14000000                               /* After power on Reset the DB64360 is here */
 
 /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
-#define CFG_GT_REGS            0xf1000000                              /* GT Registers will be mapped here */
-#define CFG_DEV_BASE           0xfc000000                              /* GT Devices CS start here */
-
-#define CFG_DEV0_SPACE         CFG_DEV_BASE                            /* DEV_CS0 device modul sram */
-#define CFG_DEV1_SPACE         (CFG_DEV0_SPACE + CFG_DEV0_SIZE)        /* DEV_CS1 device modul real time clock (rtc) */
-#define CFG_DEV2_SPACE         (CFG_DEV1_SPACE + CFG_DEV1_SIZE)        /* DEV_CS2 device modul doubel uart (duart) */
-#define CFG_DEV3_SPACE         (CFG_DEV2_SPACE + CFG_DEV2_SIZE)        /* DEV_CS3 device modul large flash */
-
-#define CFG_DEV0_SIZE           _8M                                    /* db64360 sram  @ 0xfc00.0000 */
-#define CFG_DEV1_SIZE           _8M                                    /* db64360 rtc   @ 0xfc80.0000 */
-#define CFG_DEV2_SIZE          _16M                                    /* db64360 duart @ 0xfd00.0000 */
-#define CFG_DEV3_SIZE          _16M                                    /* db64360 flash @ 0xfe00.0000 */
+#define CONFIG_SYS_GT_REGS             0xf1000000                              /* GT Registers will be mapped here */
+#define CONFIG_SYS_DEV_BASE            0xfc000000                              /* GT Devices CS start here */
+
+#define CONFIG_SYS_DEV0_SPACE          CONFIG_SYS_DEV_BASE                             /* DEV_CS0 device modul sram */
+#define CONFIG_SYS_DEV1_SPACE          (CONFIG_SYS_DEV0_SPACE + CONFIG_SYS_DEV0_SIZE)  /* DEV_CS1 device modul real time clock (rtc) */
+#define CONFIG_SYS_DEV2_SPACE          (CONFIG_SYS_DEV1_SPACE + CONFIG_SYS_DEV1_SIZE)  /* DEV_CS2 device modul doubel uart (duart) */
+#define CONFIG_SYS_DEV3_SPACE          (CONFIG_SYS_DEV2_SPACE + CONFIG_SYS_DEV2_SIZE)  /* DEV_CS3 device modul large flash */
+
+#define CONFIG_SYS_DEV0_SIZE            _8M                                    /* db64360 sram  @ 0xfc00.0000 */
+#define CONFIG_SYS_DEV1_SIZE            _8M                                    /* db64360 rtc   @ 0xfc80.0000 */
+#define CONFIG_SYS_DEV2_SIZE           _16M                                    /* db64360 duart @ 0xfd00.0000 */
+#define CONFIG_SYS_DEV3_SIZE           _16M                                    /* db64360 flash @ 0xfe00.0000 */
 /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
 
 /* Reset values for Port behavior (8bit/ 32bit, etc.) only corrected by device width */
-#define CFG_DEV0_PAR           0x8FEFFFFF                              /* 32Bit  sram */
-#define CFG_DEV1_PAR           0x8FCFFFFF                              /* 8Bit  rtc */
-#define CFG_DEV2_PAR           0x8FCFFFFF                              /* 8Bit duart */
-#define CFG_8BIT_BOOT_PAR      0x8FCFFFFF                              /* 8Bit flash */
-#define CFG_32BIT_BOOT_PAR     0x8FEFFFFF                              /* 32Bit flash */
+#define CONFIG_SYS_DEV0_PAR            0x8FEFFFFF                              /* 32Bit  sram */
+#define CONFIG_SYS_DEV1_PAR            0x8FCFFFFF                              /* 8Bit  rtc */
+#define CONFIG_SYS_DEV2_PAR            0x8FCFFFFF                              /* 8Bit duart */
+#define CONFIG_SYS_8BIT_BOOT_PAR       0x8FCFFFFF                              /* 8Bit flash */
+#define CONFIG_SYS_32BIT_BOOT_PAR      0x8FEFFFFF                              /* 32Bit flash */
 
        /*   c    4    a      8     2     4    1      c         */
        /* 33 22|2222|22 22|111 1|11 11|1 1  |    |             */
@@ -436,28 +436,28 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 
 
 /* ronen - update MPP Control MV64360*/
-#define CFG_MPP_CONTROL_0      0x02222222
-#define CFG_MPP_CONTROL_1      0x11333011
-#define CFG_MPP_CONTROL_2      0x40431111
-#define CFG_MPP_CONTROL_3      0x00000044
+#define CONFIG_SYS_MPP_CONTROL_0       0x02222222
+#define CONFIG_SYS_MPP_CONTROL_1       0x11333011
+#define CONFIG_SYS_MPP_CONTROL_2       0x40431111
+#define CONFIG_SYS_MPP_CONTROL_3       0x00000044
 
-/*# define CFG_SERIAL_PORT_MUX 0x00000102       0=hiZ  1=MPSC0 2=ETH 0 and 2 RMII */
+/*# define CONFIG_SYS_SERIAL_PORT_MUX  0x00000102       0=hiZ  1=MPSC0 2=ETH 0 and 2 RMII */
 
 
-# define CFG_GPP_LEVEL_CONTROL 0x2c600000      /* 1111 1001 0000 1111 1100 0000 0000 0000*/
+# define CONFIG_SYS_GPP_LEVEL_CONTROL  0x2c600000      /* 1111 1001 0000 1111 1100 0000 0000 0000*/
                                                        /* gpp[31]              gpp[30]         gpp[29]         gpp[28] */
                                /* gpp[27]                      gpp[24]*/
                                                        /* gpp[19:14] */
 
 /* setup new config_value for MV64360 DDR-RAM !! */
-# define CFG_SDRAM_CONFIG      0x58200400      /* 0x1400  copied from Dink32 bzw. VxWorks*/
+# define CONFIG_SYS_SDRAM_CONFIG       0x58200400      /* 0x1400  copied from Dink32 bzw. VxWorks*/
 
-#define CFG_DUART_IO           CFG_DEV2_SPACE
-#define CFG_DUART_CHAN         1               /* channel to use for console */
-#define CFG_INIT_CHAN1
-#define CFG_INIT_CHAN2
+#define CONFIG_SYS_DUART_IO            CONFIG_SYS_DEV2_SPACE
+#define CONFIG_SYS_DUART_CHAN          1               /* channel to use for console */
+#define CONFIG_SYS_INIT_CHAN1
+#define CONFIG_SYS_INIT_CHAN2
 
-#define SRAM_BASE              CFG_DEV0_SPACE
+#define SRAM_BASE              CONFIG_SYS_DEV0_SPACE
 #define SRAM_SIZE              0x00100000              /* 1 MB of sram */
 
 
@@ -476,29 +476,29 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 #define CONFIG_EEPRO100                        /* ronen - Support for Intel 82557/82559/82559ER chips */
 
 /* PCI MEMORY MAP section */
-#define CFG_PCI0_MEM_BASE      0x80000000
-#define CFG_PCI0_MEM_SIZE      _128M
-#define CFG_PCI1_MEM_BASE      0x88000000
-#define CFG_PCI1_MEM_SIZE      _128M
+#define CONFIG_SYS_PCI0_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI0_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI1_MEM_BASE       0x88000000
+#define CONFIG_SYS_PCI1_MEM_SIZE       _128M
 
-#define CFG_PCI0_0_MEM_SPACE   (CFG_PCI0_MEM_BASE)
-#define CFG_PCI1_0_MEM_SPACE   (CFG_PCI1_MEM_BASE)
+#define CONFIG_SYS_PCI0_0_MEM_SPACE    (CONFIG_SYS_PCI0_MEM_BASE)
+#define CONFIG_SYS_PCI1_0_MEM_SPACE    (CONFIG_SYS_PCI1_MEM_BASE)
 
 /* PCI I/O MAP section */
-#define CFG_PCI0_IO_BASE       0xfa000000
-#define CFG_PCI0_IO_SIZE       _16M
-#define CFG_PCI1_IO_BASE       0xfb000000
-#define CFG_PCI1_IO_SIZE       _16M
+#define CONFIG_SYS_PCI0_IO_BASE        0xfa000000
+#define CONFIG_SYS_PCI0_IO_SIZE        _16M
+#define CONFIG_SYS_PCI1_IO_BASE        0xfb000000
+#define CONFIG_SYS_PCI1_IO_SIZE        _16M
 
-#define CFG_PCI0_IO_SPACE      (CFG_PCI0_IO_BASE)
-#define CFG_PCI0_IO_SPACE_PCI  (CFG_PCI0_IO_BASE) /* ronen we want phy=bus 0x00000000 */
-#define CFG_PCI1_IO_SPACE      (CFG_PCI1_IO_BASE)
-#define CFG_PCI1_IO_SPACE_PCI  (CFG_PCI1_IO_BASE) /* ronen we want phy=bus 0x00000000 */
+#define CONFIG_SYS_PCI0_IO_SPACE       (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI0_IO_SPACE_PCI   (CONFIG_SYS_PCI0_IO_BASE) /* ronen we want phy=bus 0x00000000 */
+#define CONFIG_SYS_PCI1_IO_SPACE       (CONFIG_SYS_PCI1_IO_BASE)
+#define CONFIG_SYS_PCI1_IO_SPACE_PCI   (CONFIG_SYS_PCI1_IO_BASE) /* ronen we want phy=bus 0x00000000 */
 
 #if defined (CONFIG_750CX)
-#define CFG_PCI_IDSEL 0x0
+#define CONFIG_SYS_PCI_IDSEL 0x0
 #else
-#define CFG_PCI_IDSEL 0x30
+#define CONFIG_SYS_PCI_IDSEL 0x30
 #endif
 /*----------------------------------------------------------------------
  * Initial BAT mappings
@@ -510,28 +510,28 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  */
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
 /* init ram */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
 
 /* PCI0, PCI1 in one BAT */
-#define CFG_IBAT2L BATL_NO_ACCESS
-#define CFG_IBAT2U CFG_DBAT2U
-#define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L BATL_NO_ACCESS
+#define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_DBAT2L (CONFIG_SYS_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (CONFIG_SYS_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* GT regs, bootrom, all the devices, PCI I/O */
-#define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
-#define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
-#define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
+#define CONFIG_SYS_DBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 /* I2C addresses for the two DIMM SPD chips */
 #define DIMM0_I2C_ADDR 0x56
@@ -542,35 +542,35 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8<<20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8<<20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip */
 
-#define CFG_EXTRA_FLASH_DEVICE DEVICE3 /* extra flash at device 3 */
-#define CFG_EXTRA_FLASH_WIDTH  4       /* 32 bit */
-#define CFG_BOOT_FLASH_WIDTH   1       /* 8 bit */
+#define CONFIG_SYS_EXTRA_FLASH_DEVICE  DEVICE3 /* extra flash at device 3 */
+#define CONFIG_SYS_EXTRA_FLASH_WIDTH   4       /* 32 bit */
+#define CONFIG_SYS_BOOT_FLASH_WIDTH    1       /* 8 bit */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
-#define CFG_FLASH_LOCK_TOUT    500     /* Timeout for Flash Lock (in ms) */
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     500     /* Timeout for Flash Lock (in ms) */
+#define CONFIG_SYS_FLASH_CFI           1
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE                0x1000  /* Total Size of Environment Sector */
 #define CONFIG_ENV_SECT_SIZE   0x10000
 #define CONFIG_ENV_ADDR              0xFFF78000 /* Marvell 8-Bit Bootflash last sector */
-/* #define CONFIG_ENV_ADDR        (CFG_FLASH_BASE+CFG_MONITOR_LEN-CONFIG_ENV_SECT_SIZE) */
+/* #define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_MONITOR_LEN-CONFIG_ENV_SECT_SIZE) */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
@@ -578,7 +578,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  * look in include/mpc74xx.h for the defines used here
  */
 
-#define CFG_L2
+#define CONFIG_SYS_L2
 
 
 #if defined (CONFIG_750CX) || defined (CONFIG_750FX)
@@ -602,6 +602,6 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 #define BOOTFLAG_COLD  0x01            /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM  0x02            /* Software reboot                  */
 
-#define CFG_BOARD_ASM_INIT     1
+#define CONFIG_SYS_BOARD_ASM_INIT      1
 
 #endif /* __CONFIG_H */
index 30615a464fe51dd4c0775d4ed33ce91f1613bb9b..604fd45af7d9957351297cbff1a5a99a9258ea7f 100644 (file)
 #define CONFIG_MISC_INIT_R     /* initialize the icache L1 */
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CFG_BOARD_NAME         "DB64460"
+#define CONFIG_SYS_BOARD_NAME          "DB64460"
 #define CONFIG_IDENT_STRING    "Marvell DB64460 (1.0)"
 
-/*#define CFG_HUSH_PARSER */
-#undef CFG_HUSH_PARSER
+/*#define CONFIG_SYS_HUSH_PARSER */
+#undef CONFIG_SYS_HUSH_PARSER
 
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 /*
  * The following defines let you select what serial you want to use
@@ -84,7 +84,7 @@
  *
  * what to do:
  * to use the DUART, undef CONFIG_MPSC.         If you have hacked a serial
- * cable onto the second DUART channel, change the CFG_DUART port from 1
+ * cable onto the second DUART channel, change the CONFIG_SYS_DUART port from 1
  * to 0 below.
  *
  * to use the MPSC, #define CONFIG_MPSC.  If you have wired up another
@@ -148,7 +148,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 /* --------------------------------------------------------------------------------------------------------------- */
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#define CFG_LOADS_BAUD_CHANGE          /* allow baudrate changes       */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate changes       */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #undef CONFIG_ALTIVEC                  /* undef to disable             */
@@ -203,74 +203,74 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 /*
  * Miscellaneous configurable options
  */
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_SPEED  40000           /* I2C speed default */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_SPEED   40000           /* I2C speed default */
 
-/* #define CFG_GT_DUAL_CPU      also for JTAG even with one cpu */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+/* #define CONFIG_SYS_GT_DUAL_CPU       also for JTAG even with one cpu */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-/*#define CFG_MEMTEST_START    0x00400000       memtest works on       */
-/*#define CFG_MEMTEST_END              0x00C00000       4 ... 12 MB in DRAM    */
-/*#define CFG_MEMTEST_END              0x07c00000       4 ... 124 MB in DRAM   */
+/*#define CONFIG_SYS_MEMTEST_START     0x00400000       memtest works on       */
+/*#define CONFIG_SYS_MEMTEST_END               0x00C00000       4 ... 12 MB in DRAM    */
+/*#define CONFIG_SYS_MEMTEST_END               0x07c00000       4 ... 124 MB in DRAM   */
 
 /*
-#define CFG_DRAM_TEST
+#define CONFIG_SYS_DRAM_TEST
  * DRAM tests
- *   CFG_DRAM_TEST - enables the following tests.
+ *   CONFIG_SYS_DRAM_TEST - enables the following tests.
  *
- *   CFG_DRAM_TEST_DATA - Enables test for shorted or open data lines
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test for shorted or open data lines
  *                       Environment variable 'test_dram_data' must be
  *                       set to 'y'.
- *   CFG_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
  *                       addressable. Environment variable
  *                       'test_dram_address' must be set to 'y'.
- *   CFG_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
+ *   CONFIG_SYS_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
  *                       This test takes about 6 minutes to test 64 MB.
  *                       Environment variable 'test_dram_walk' must be
  *                       set to 'y'.
  */
-#define CFG_DRAM_TEST
-#if defined(CFG_DRAM_TEST)
-#define CFG_MEMTEST_START              0x00400000      /* memtest works on     */
-/* #define CFG_MEMTEST_END             0x00C00000       4 ... 12 MB in DRAM    */
-#define CFG_MEMTEST_END                0x07c00000      /* 4 ... 124 MB in DRAM */
-#define CFG_DRAM_TEST_DATA
-#define CFG_DRAM_TEST_ADDRESS
-#define CFG_DRAM_TEST_WALK
-#endif /* CFG_DRAM_TEST */
+#define CONFIG_SYS_DRAM_TEST
+#if defined(CONFIG_SYS_DRAM_TEST)
+#define CONFIG_SYS_MEMTEST_START               0x00400000      /* memtest works on     */
+/* #define CONFIG_SYS_MEMTEST_END              0x00C00000       4 ... 12 MB in DRAM    */
+#define CONFIG_SYS_MEMTEST_END         0x07c00000      /* 4 ... 124 MB in DRAM */
+#define CONFIG_SYS_DRAM_TEST_DATA
+#define CONFIG_SYS_DRAM_TEST_ADDRESS
+#define CONFIG_SYS_DRAM_TEST_WALK
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 #undef CONFIG_DISPLAY_MEMMAP           /* at the end of the bootprocess show the memory map */
-#undef CFG_DISPLAY_DIMM_SPD_CONTENT    /* show SPD content during boot */
+#undef CONFIG_SYS_DISPLAY_DIMM_SPD_CONTENT     /* show SPD content during boot */
 
-#define CFG_LOAD_ADDR          0x00400000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00400000      /* default load address */
 
-#define CFG_HZ                 1000            /* decr freq: 1ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decr freq: 1ms ticks */
 /*ronen - this the Sys clock (cpu bus,internal dram and SDRAM) */
-#define CFG_BUS_HZ             133000000       /* 133 MHz (CPU = 5*Bus = 666MHz)               */
-#define CFG_BUS_CLK            CFG_BUS_HZ
+#define CONFIG_SYS_BUS_HZ              133000000       /* 133 MHz (CPU = 5*Bus = 666MHz)               */
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
 
-#define CFG_DDR_SDRAM_CYCLE_COUNT_LOP 7 /* define the SDRAM cycle count */
-#define CFG_DDR_SDRAM_CYCLE_COUNT_ROP 50 /* for 200MHZ -> 5.0 ns, 166MHZ -> 6.0, 133MHZ -> 7.50 ns */
+#define CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_LOP 7 /* define the SDRAM cycle count */
+#define CONFIG_SYS_DDR_SDRAM_CYCLE_COUNT_ROP 50 /* for 200MHZ -> 5.0 ns, 166MHZ -> 6.0, 133MHZ -> 7.50 ns */
 
 /*ronen - this is the Tclk (MV64460 core) */
-#define CFG_TCLK               133000000
+#define CONFIG_SYS_TCLK                133000000
 
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_750FX_HID0         0x8000c084
-#define CFG_750FX_HID1         0x54800000
-#define CFG_750FX_HID2         0x00000000
+#define CONFIG_SYS_750FX_HID0          0x8000c084
+#define CONFIG_SYS_750FX_HID1          0x54800000
+#define CONFIG_SYS_750FX_HID2          0x00000000
 
 /*
  * Low Level Configuration Settings
@@ -283,51 +283,51 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  */
 
 /*
- * When locking data in cache you should point the CFG_INIT_RAM_ADDRESS
+ * When locking data in cache you should point the CONFIG_SYS_INIT_RAM_ADDRESS
  * To an unused memory region. The stack will remain in cache until RAM
  * is initialized
 */
-#define CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0x40000000 /* unused memory region */
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000 /* unused memory region */
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #define RELOCATE_INTERNAL_RAM_ADDR
 #ifdef RELOCATE_INTERNAL_RAM_ADDR
-       #define CFG_INTERNAL_RAM_ADDR   0xf8000000
+       #define CONFIG_SYS_INTERNAL_RAM_ADDR    0xf8000000
 #endif
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 /* Dummies for BAT 4-7 */
-#define CFG_SDRAM1_BASE                0x10000000      /* each 256 MByte */
-#define CFG_SDRAM2_BASE                0x20000000
-#define CFG_SDRAM3_BASE                0x30000000
-#define CFG_SDRAM4_BASE                0x40000000
-#define CFG_FLASH_BASE                 0xfff00000
+#define CONFIG_SYS_SDRAM1_BASE         0x10000000      /* each 256 MByte */
+#define CONFIG_SYS_SDRAM2_BASE         0x20000000
+#define CONFIG_SYS_SDRAM3_BASE         0x30000000
+#define CONFIG_SYS_SDRAM4_BASE         0x40000000
+#define CONFIG_SYS_FLASH_BASE                  0xfff00000
 
-#define CFG_DFL_BOOTCS_BASE    0xff800000
+#define CONFIG_SYS_DFL_BOOTCS_BASE     0xff800000
 #define CONFIG_VERY_BIG_RAM            /* we will use up to 256M memory for cause we are short of BATS*/
 
 #define BRIDGE_REG_BASE_BOOTM 0xfbe00000 /* this paramaters are used when booting the linux kernel */
 #define UART_BASE_BOOTM              0xfbb00000 /* in order to be sync with the kernel parameters. */
 #define PCI0_IO_BASE_BOOTM    0xfd000000
 
-#define CFG_RESET_ADDRESS              0xfff00100
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_RESET_ADDRESS               0xfff00100
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
 
 /* areas to map different things with the GT in physical space */
-#define CFG_DRAM_BANKS         4
+#define CONFIG_SYS_DRAM_BANKS          4
 
 /* What to put in the bats. */
-#define CFG_MISC_REGION_BASE   0xf0000000
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000
 
 /* Peripheral Device section */
 
@@ -341,30 +341,30 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 /* Data flash on external device module                    */
 /* Boot flash on external device module                    */
 /*******************************************************/
-#define CFG_DFL_GT_REGS                0x14000000                              /* boot time GT_REGS */
-#define         CFG_DB64460_RESET_ADDR 0x14000000                              /* After power on Reset the DB64460 is here */
+#define CONFIG_SYS_DFL_GT_REGS         0x14000000                              /* boot time GT_REGS */
+#define         CONFIG_SYS_DB64460_RESET_ADDR 0x14000000                               /* After power on Reset the DB64460 is here */
 
 /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
-#define CFG_GT_REGS            0xf1000000                              /* GT Registers will be mapped here */
-#define CFG_DEV_BASE           0xfc000000                              /* GT Devices CS start here */
-
-#define CFG_DEV0_SPACE         CFG_DEV_BASE                            /* DEV_CS0 device modul sram */
-#define CFG_DEV1_SPACE         (CFG_DEV0_SPACE + CFG_DEV0_SIZE)        /* DEV_CS1 device modul real time clock (rtc) */
-#define CFG_DEV2_SPACE         (CFG_DEV1_SPACE + CFG_DEV1_SIZE)        /* DEV_CS2 device modul doubel uart (duart) */
-#define CFG_DEV3_SPACE         (CFG_DEV2_SPACE + CFG_DEV2_SIZE)        /* DEV_CS3 device modul large flash */
-
-#define CFG_DEV0_SIZE           _8M                                    /* db64460 sram  @ 0xfc00.0000 */
-#define CFG_DEV1_SIZE           _8M                                    /* db64460 rtc   @ 0xfc80.0000 */
-#define CFG_DEV2_SIZE          _16M                                    /* db64460 duart @ 0xfd00.0000 */
-#define CFG_DEV3_SIZE          _16M                                    /* db64460 flash @ 0xfe00.0000 */
+#define CONFIG_SYS_GT_REGS             0xf1000000                              /* GT Registers will be mapped here */
+#define CONFIG_SYS_DEV_BASE            0xfc000000                              /* GT Devices CS start here */
+
+#define CONFIG_SYS_DEV0_SPACE          CONFIG_SYS_DEV_BASE                             /* DEV_CS0 device modul sram */
+#define CONFIG_SYS_DEV1_SPACE          (CONFIG_SYS_DEV0_SPACE + CONFIG_SYS_DEV0_SIZE)  /* DEV_CS1 device modul real time clock (rtc) */
+#define CONFIG_SYS_DEV2_SPACE          (CONFIG_SYS_DEV1_SPACE + CONFIG_SYS_DEV1_SIZE)  /* DEV_CS2 device modul doubel uart (duart) */
+#define CONFIG_SYS_DEV3_SPACE          (CONFIG_SYS_DEV2_SPACE + CONFIG_SYS_DEV2_SIZE)  /* DEV_CS3 device modul large flash */
+
+#define CONFIG_SYS_DEV0_SIZE            _8M                                    /* db64460 sram  @ 0xfc00.0000 */
+#define CONFIG_SYS_DEV1_SIZE            _8M                                    /* db64460 rtc   @ 0xfc80.0000 */
+#define CONFIG_SYS_DEV2_SIZE           _16M                                    /* db64460 duart @ 0xfd00.0000 */
+#define CONFIG_SYS_DEV3_SIZE           _16M                                    /* db64460 flash @ 0xfe00.0000 */
 /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
 
 /* Reset values for Port behavior (8bit/ 32bit, etc.) only corrected by device width */
-#define CFG_DEV0_PAR           0x8FEFFFFF                              /* 32Bit  sram */
-#define CFG_DEV1_PAR           0x8FCFFFFF                              /* 8Bit  rtc */
-#define CFG_DEV2_PAR           0x8FCFFFFF                              /* 8Bit duart */
-#define CFG_8BIT_BOOT_PAR      0x8FCFFFFF                              /* 8Bit flash */
-#define CFG_32BIT_BOOT_PAR     0x8FEFFFFF                              /* 32Bit flash */
+#define CONFIG_SYS_DEV0_PAR            0x8FEFFFFF                              /* 32Bit  sram */
+#define CONFIG_SYS_DEV1_PAR            0x8FCFFFFF                              /* 8Bit  rtc */
+#define CONFIG_SYS_DEV2_PAR            0x8FCFFFFF                              /* 8Bit duart */
+#define CONFIG_SYS_8BIT_BOOT_PAR       0x8FCFFFFF                              /* 8Bit flash */
+#define CONFIG_SYS_32BIT_BOOT_PAR      0x8FEFFFFF                              /* 32Bit flash */
 
        /*   c    4    a      8     2     4    1      c         */
        /* 33 22|2222|22 22|111 1|11 11|1 1  |    |             */
@@ -374,28 +374,28 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 
 
 /* ronen - update MPP Control MV64460*/
-#define CFG_MPP_CONTROL_0      0x02222222
-#define CFG_MPP_CONTROL_1      0x11333011
-#define CFG_MPP_CONTROL_2      0x40431111
-#define CFG_MPP_CONTROL_3      0x00000044
+#define CONFIG_SYS_MPP_CONTROL_0       0x02222222
+#define CONFIG_SYS_MPP_CONTROL_1       0x11333011
+#define CONFIG_SYS_MPP_CONTROL_2       0x40431111
+#define CONFIG_SYS_MPP_CONTROL_3       0x00000044
 
-/*# define CFG_SERIAL_PORT_MUX 0x00000102       0=hiZ  1=MPSC0 2=ETH 0 and 2 RMII */
+/*# define CONFIG_SYS_SERIAL_PORT_MUX  0x00000102       0=hiZ  1=MPSC0 2=ETH 0 and 2 RMII */
 
 
-# define CFG_GPP_LEVEL_CONTROL 0x2c600000      /* 1111 1001 0000 1111 1100 0000 0000 0000*/
+# define CONFIG_SYS_GPP_LEVEL_CONTROL  0x2c600000      /* 1111 1001 0000 1111 1100 0000 0000 0000*/
                                                        /* gpp[31]              gpp[30]         gpp[29]         gpp[28] */
                                /* gpp[27]                      gpp[24]*/
                                                        /* gpp[19:14] */
 
 /* setup new config_value for MV64460 DDR-RAM !! */
-# define CFG_SDRAM_CONFIG      0x58200400      /* 0x1400  copied from Dink32 bzw. VxWorks*/
+# define CONFIG_SYS_SDRAM_CONFIG       0x58200400      /* 0x1400  copied from Dink32 bzw. VxWorks*/
 
-#define CFG_DUART_IO           CFG_DEV2_SPACE
-#define CFG_DUART_CHAN         1               /* channel to use for console */
-#define CFG_INIT_CHAN1
-#define CFG_INIT_CHAN2
+#define CONFIG_SYS_DUART_IO            CONFIG_SYS_DEV2_SPACE
+#define CONFIG_SYS_DUART_CHAN          1               /* channel to use for console */
+#define CONFIG_SYS_INIT_CHAN1
+#define CONFIG_SYS_INIT_CHAN2
 
-#define SRAM_BASE              CFG_DEV0_SPACE
+#define SRAM_BASE              CONFIG_SYS_DEV0_SPACE
 #define SRAM_SIZE              0x00100000              /* 1 MB of sram */
 
 
@@ -414,29 +414,29 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 #define CONFIG_EEPRO100                        /* ronen - Support for Intel 82557/82559/82559ER chips */
 
 /* PCI MEMORY MAP section */
-#define CFG_PCI0_MEM_BASE      0x80000000
-#define CFG_PCI0_MEM_SIZE      _128M
-#define CFG_PCI1_MEM_BASE      0x88000000
-#define CFG_PCI1_MEM_SIZE      _128M
+#define CONFIG_SYS_PCI0_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI0_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI1_MEM_BASE       0x88000000
+#define CONFIG_SYS_PCI1_MEM_SIZE       _128M
 
-#define CFG_PCI0_0_MEM_SPACE   (CFG_PCI0_MEM_BASE)
-#define CFG_PCI1_0_MEM_SPACE   (CFG_PCI1_MEM_BASE)
+#define CONFIG_SYS_PCI0_0_MEM_SPACE    (CONFIG_SYS_PCI0_MEM_BASE)
+#define CONFIG_SYS_PCI1_0_MEM_SPACE    (CONFIG_SYS_PCI1_MEM_BASE)
 
 /* PCI I/O MAP section */
-#define CFG_PCI0_IO_BASE       0xfa000000
-#define CFG_PCI0_IO_SIZE       _16M
-#define CFG_PCI1_IO_BASE       0xfb000000
-#define CFG_PCI1_IO_SIZE       _16M
+#define CONFIG_SYS_PCI0_IO_BASE        0xfa000000
+#define CONFIG_SYS_PCI0_IO_SIZE        _16M
+#define CONFIG_SYS_PCI1_IO_BASE        0xfb000000
+#define CONFIG_SYS_PCI1_IO_SIZE        _16M
 
-#define CFG_PCI0_IO_SPACE      (CFG_PCI0_IO_BASE)
-#define CFG_PCI0_IO_SPACE_PCI  (CFG_PCI0_IO_BASE) /* ronen we want phy=bus 0x00000000 */
-#define CFG_PCI1_IO_SPACE      (CFG_PCI1_IO_BASE)
-#define CFG_PCI1_IO_SPACE_PCI  (CFG_PCI1_IO_BASE) /* ronen we want phy=bus 0x00000000 */
+#define CONFIG_SYS_PCI0_IO_SPACE       (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI0_IO_SPACE_PCI   (CONFIG_SYS_PCI0_IO_BASE) /* ronen we want phy=bus 0x00000000 */
+#define CONFIG_SYS_PCI1_IO_SPACE       (CONFIG_SYS_PCI1_IO_BASE)
+#define CONFIG_SYS_PCI1_IO_SPACE_PCI   (CONFIG_SYS_PCI1_IO_BASE) /* ronen we want phy=bus 0x00000000 */
 
 #if defined (CONFIG_750CX)
-#define CFG_PCI_IDSEL 0x0
+#define CONFIG_SYS_PCI_IDSEL 0x0
 #else
-#define CFG_PCI_IDSEL 0x30
+#define CONFIG_SYS_PCI_IDSEL 0x30
 #endif
 /*----------------------------------------------------------------------
  * Initial BAT mappings
@@ -448,28 +448,28 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  */
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
 /* init ram */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
 
 /* PCI0, PCI1 in one BAT */
-#define CFG_IBAT2L BATL_NO_ACCESS
-#define CFG_IBAT2U CFG_DBAT2U
-#define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L BATL_NO_ACCESS
+#define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_DBAT2L (CONFIG_SYS_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (CONFIG_SYS_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* GT regs, bootrom, all the devices, PCI I/O */
-#define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
-#define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
-#define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
+#define CONFIG_SYS_DBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 /* I2C addresses for the two DIMM SPD chips */
 #define DIMM0_I2C_ADDR 0x56
@@ -480,35 +480,35 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8<<20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8<<20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip */
 
-#define CFG_EXTRA_FLASH_DEVICE DEVICE3 /* extra flash at device 3 */
-#define CFG_EXTRA_FLASH_WIDTH  4       /* 32 bit */
-#define CFG_BOOT_FLASH_WIDTH   1       /* 8 bit */
+#define CONFIG_SYS_EXTRA_FLASH_DEVICE  DEVICE3 /* extra flash at device 3 */
+#define CONFIG_SYS_EXTRA_FLASH_WIDTH   4       /* 32 bit */
+#define CONFIG_SYS_BOOT_FLASH_WIDTH    1       /* 8 bit */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
-#define CFG_FLASH_LOCK_TOUT    500     /* Timeout for Flash Lock (in ms) */
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     500     /* Timeout for Flash Lock (in ms) */
+#define CONFIG_SYS_FLASH_CFI           1
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE                0x1000  /* Total Size of Environment Sector */
 #define CONFIG_ENV_SECT_SIZE   0x10000
 #define CONFIG_ENV_ADDR              0xFFF78000 /* Marvell 8-Bit Bootflash last sector */
-/* #define CONFIG_ENV_ADDR        (CFG_FLASH_BASE+CFG_MONITOR_LEN-CONFIG_ENV_SECT_SIZE) */
+/* #define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_MONITOR_LEN-CONFIG_ENV_SECT_SIZE) */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
@@ -516,7 +516,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
  * look in include/mpc74xx.h for the defines used here
  */
 
-#define CFG_L2
+#define CONFIG_SYS_L2
 
 
 #if defined (CONFIG_750CX) || defined (CONFIG_750FX)
@@ -540,6 +540,6 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
 #define BOOTFLAG_COLD  0x01            /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM  0x02            /* Software reboot                  */
 
-#define CFG_BOARD_ASM_INIT     1
+#define CONFIG_SYS_BOARD_ASM_INIT      1
 
 #endif /* __CONFIG_H */
index 3e1fc0affceb4e2801fc679903fc970e5a6fca1c..6fdc56600238bd0b67e2e562d64cc3e4c91286ea 100644 (file)
@@ -40,7 +40,7 @@
 #elif  defined(CONFIG_NIOS_STANDARD_32)
 #include <configs/DK1C20_standard_32.h>
 #else
-#error *** CFG_ERROR: you have to setup right NIOS CPU configuration
+#error *** CONFIG_SYS_ERROR: you have to setup right NIOS CPU configuration
 #endif
 
 /*------------------------------------------------------------------------
  *----------------------------------------------------------------------*/
 #define CONFIG_NIOS            1               /* NIOS-32 core         */
 #define        CONFIG_DK1C20           1               /* Cyclone DK-1C20 board*/
-#define CONFIG_SYS_CLK_FREQ    CFG_NIOS_CPU_CLK/* 50 MHz core clock    */
-#define        CFG_HZ                  1000            /* 1 msec time tick     */
-#undef  CFG_CLKS_IN_HZ
+#define CONFIG_SYS_CLK_FREQ    CONFIG_SYS_NIOS_CPU_CLK/* 50 MHz core clock     */
+#define        CONFIG_SYS_HZ                   1000            /* 1 msec time tick     */
+#undef  CONFIG_SYS_CLKS_IN_HZ
 #define        CONFIG_BOARD_EARLY_INIT_F 1     /* enable early board-spec. init*/
 
 /*------------------------------------------------------------------------
  * BASE ADDRESSES / SIZE (Flash, SRAM, SDRAM)
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_SDRAM_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_SDRAM_SIZE != 0)
 
-#define CFG_SDRAM_BASE         CFG_NIOS_CPU_SDRAM_BASE
-#define CFG_SDRAM_SIZE         CFG_NIOS_CPU_SDRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_NIOS_CPU_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_SIZE          CONFIG_SYS_NIOS_CPU_SDRAM_SIZE
 
 #else
-#error *** CFG_ERROR: you have to setup any SDRAM in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup any SDRAM in NIOS CPU config
 #endif
 
-#define CFG_SRAM_BASE          CFG_NIOS_CPU_SRAM_BASE
-#define CFG_SRAM_SIZE          CFG_NIOS_CPU_SRAM_SIZE
-#define CFG_VECT_BASE          CFG_NIOS_CPU_VEC_BASE
+#define CONFIG_SYS_SRAM_BASE           CONFIG_SYS_NIOS_CPU_SRAM_BASE
+#define CONFIG_SYS_SRAM_SIZE           CONFIG_SYS_NIOS_CPU_SRAM_SIZE
+#define CONFIG_SYS_VECT_BASE           CONFIG_SYS_NIOS_CPU_VEC_BASE
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION - For the most part, you can put things pretty
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_FLASH_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_FLASH_SIZE != 0)
 
-#define CFG_FLASH_BASE         CFG_NIOS_CPU_FLASH_BASE
-#define CFG_FLASH_SIZE         CFG_NIOS_CPU_FLASH_SIZE
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size      */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_NIOS_CPU_FLASH_BASE
+#define CONFIG_SYS_FLASH_SIZE          CONFIG_SYS_NIOS_CPU_FLASH_SIZE
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size      */
 
 #else
-#error *** CFG_ERROR: you have to setup any Flash memory in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup any Flash memory in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * ENVIRONMENT
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_FLASH_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_FLASH_SIZE != 0)
 
 #define        CONFIG_ENV_IS_IN_FLASH  1               /* Environment in flash */
-#define CONFIG_ENV_ADDR                CFG_FLASH_BASE  /* Mem addr of env      */
+#define CONFIG_ENV_ADDR                CONFIG_SYS_FLASH_BASE   /* Mem addr of env      */
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
 #define CONFIG_ENV_OVERWRITE                   /* Serial/eth change Ok */
 
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_UART_NUMS != 0)
+#if    (CONFIG_SYS_NIOS_CPU_UART_NUMS != 0)
 
-#define CFG_NIOS_CONSOLE       CFG_NIOS_CPU_UART0 /* 1st UART is Cons. */
+#define CONFIG_SYS_NIOS_CONSOLE        CONFIG_SYS_NIOS_CPU_UART0 /* 1st UART is Cons. */
 
-#if    (CFG_NIOS_CPU_UART0_BR != 0)
-#define CFG_NIOS_FIXEDBAUD     1                  /* Baudrate is fixed */
-#define CONFIG_BAUDRATE                CFG_NIOS_CPU_UART0_BR
+#if    (CONFIG_SYS_NIOS_CPU_UART0_BR != 0)
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1                  /* Baudrate is fixed */
+#define CONFIG_BAUDRATE                CONFIG_SYS_NIOS_CPU_UART0_BR
 #else
-#undef CFG_NIOS_FIXEDBAUD
+#undef CONFIG_SYS_NIOS_FIXEDBAUD
 #define CONFIG_BAUDRATE                115200
 #endif
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #else
-#error *** CFG_ERROR: you have to setup at least one UART in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup at least one UART in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * TIMER FOR TIMEBASE -- Nios doesn't have the equivalent of ppc  PIT,
  * so an avalon bus timer is required.
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_TIMER_NUMS != 0)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER_NUMS != 0)
 
-#if    (CFG_NIOS_CPU_TICK_TIMER == 0)
+#if    (CONFIG_SYS_NIOS_CPU_TICK_TIMER == 0)
 
-#define CFG_NIOS_TMRBASE       CFG_NIOS_CPU_TIMER0 /* TIMER0 as tick   */
-#define CFG_NIOS_TMRIRQ                CFG_NIOS_CPU_TIMER0_IRQ
+#define CONFIG_SYS_NIOS_TMRBASE        CONFIG_SYS_NIOS_CPU_TIMER0 /* TIMER0 as tick    */
+#define CONFIG_SYS_NIOS_TMRIRQ         CONFIG_SYS_NIOS_CPU_TIMER0_IRQ
 
-#if    (CFG_NIOS_CPU_TIMER0_FP == 1)               /* fixed period */
+#if    (CONFIG_SYS_NIOS_CPU_TIMER0_FP == 1)                /* fixed period */
 
-#if    (CFG_NIOS_CPU_TIMER0_PER >= CFG_HZ)
-#define CFG_NIOS_TMRMS         (CFG_NIOS_CPU_TIMER0_PER / CFG_HZ)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER0_PER >= CONFIG_SYS_HZ)
+#define CONFIG_SYS_NIOS_TMRMS          (CONFIG_SYS_NIOS_CPU_TIMER0_PER / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
+#error *** CONFIG_SYS_ERROR: you have to use a timer periode greater than CONFIG_SYS_HZ
 #endif
 
-#undef CFG_NIOS_TMRCNT /* no preloadable counter value */
+#undef CONFIG_SYS_NIOS_TMRCNT  /* no preloadable counter value */
 
-#elif  (CFG_NIOS_CPU_TIMER0_FP == 0)               /* variable period */
+#elif  (CONFIG_SYS_NIOS_CPU_TIMER0_FP == 0)                /* variable period */
 
-#if    (CFG_HZ <= 1000)
-#define CFG_NIOS_TMRMS         (1000 / CFG_HZ)
+#if    (CONFIG_SYS_HZ <= 1000)
+#define CONFIG_SYS_NIOS_TMRMS          (1000 / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
+#error *** CONFIG_SYS_ERROR: sorry, CONFIG_SYS_HZ have to be less than 1000
 #endif
 
-#define        CFG_NIOS_TMRCNT         (CONFIG_SYS_CLK_FREQ / CFG_HZ)
+#define        CONFIG_SYS_NIOS_TMRCNT          (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ)
 
 #else
-#error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER0_FP correct
+#error *** CONFIG_SYS_ERROR: you have to define CONFIG_SYS_NIOS_CPU_TIMER0_FP correct
 #endif
 
-#elif  (CFG_NIOS_CPU_TICK_TIMER == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_TICK_TIMER == 1)
 
-#define CFG_NIOS_TMRBASE       CFG_NIOS_CPU_TIMER1 /* TIMER1 as tick   */
-#define CFG_NIOS_TMRIRQ                CFG_NIOS_CPU_TIMER1_IRQ
+#define CONFIG_SYS_NIOS_TMRBASE        CONFIG_SYS_NIOS_CPU_TIMER1 /* TIMER1 as tick    */
+#define CONFIG_SYS_NIOS_TMRIRQ         CONFIG_SYS_NIOS_CPU_TIMER1_IRQ
 
-#if    (CFG_NIOS_CPU_TIMER1_FP == 1)               /* fixed period */
+#if    (CONFIG_SYS_NIOS_CPU_TIMER1_FP == 1)                /* fixed period */
 
-#if    (CFG_NIOS_CPU_TIMER1_PER >= CFG_HZ)
-#define CFG_NIOS_TMRMS         (CFG_NIOS_CPU_TIMER1_PER / CFG_HZ)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER1_PER >= CONFIG_SYS_HZ)
+#define CONFIG_SYS_NIOS_TMRMS          (CONFIG_SYS_NIOS_CPU_TIMER1_PER / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
+#error *** CONFIG_SYS_ERROR: you have to use a timer periode greater than CONFIG_SYS_HZ
 #endif
 
-#undef CFG_NIOS_TMRCNT /* no preloadable counter value */
+#undef CONFIG_SYS_NIOS_TMRCNT  /* no preloadable counter value */
 
-#elif  (CFG_NIOS_CPU_TIMER1_FP == 0)               /* variable period */
+#elif  (CONFIG_SYS_NIOS_CPU_TIMER1_FP == 0)                /* variable period */
 
-#if    (CFG_HZ <= 1000)
-#define CFG_NIOS_TMRMS         (1000 / CFG_HZ)
+#if    (CONFIG_SYS_HZ <= 1000)
+#define CONFIG_SYS_NIOS_TMRMS          (1000 / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
+#error *** CONFIG_SYS_ERROR: sorry, CONFIG_SYS_HZ have to be less than 1000
 #endif
 
-#define        CFG_NIOS_TMRCNT         (CONFIG_SYS_CLK_FREQ / CFG_HZ)
+#define        CONFIG_SYS_NIOS_TMRCNT          (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ)
 
 #else
-#error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER1_FP correct
+#error *** CONFIG_SYS_ERROR: you have to define CONFIG_SYS_NIOS_CPU_TIMER1_FP correct
 #endif
 
-#endif /* CFG_NIOS_CPU_TICK_TIMER */
+#endif /* CONFIG_SYS_NIOS_CPU_TICK_TIMER */
 
 #else
-#error *** CFG_ERROR: you have to setup at least one TIMER in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup at least one TIMER in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * Ethernet
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_LAN_NUMS == 1)
+#if    (CONFIG_SYS_NIOS_CPU_LAN_NUMS == 1)
 
-#if    (CFG_NIOS_CPU_LAN0_TYPE == 0)           /* LAN91C111            */
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_TYPE == 0)            /* LAN91C111            */
 
 #define        CONFIG_DRIVER_SMC91111                  /* Using SMC91c111      */
 #undef CONFIG_SMC91111_EXT_PHY                 /* Internal PHY         */
-#define        CONFIG_SMC91111_BASE    (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
+#define        CONFIG_SMC91111_BASE    (CONFIG_SYS_NIOS_CPU_LAN0_BASE + CONFIG_SYS_NIOS_CPU_LAN0_OFFS)
 
-#if    (CFG_NIOS_CPU_LAN0_BUSW == 32)
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_BUSW == 32)
 #define        CONFIG_SMC_USE_32_BIT   1
 #else  /* no */
 #undef CONFIG_SMC_USE_32_BIT
 #endif
 
-#elif  (CFG_NIOS_CPU_LAN0_TYPE == 1)           /* CS8900A              */
+#elif  (CONFIG_SYS_NIOS_CPU_LAN0_TYPE == 1)            /* CS8900A              */
 
        /********************************************/
        /* !!! CS8900 is __not__ tested on NIOS !!! */
        /********************************************/
 #define        CONFIG_DRIVER_CS8900                    /* Using CS8900         */
-#define        CS8900_BASE             (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
+#define        CS8900_BASE             (CONFIG_SYS_NIOS_CPU_LAN0_BASE + CONFIG_SYS_NIOS_CPU_LAN0_OFFS)
 
-#if    (CFG_NIOS_CPU_LAN0_BUSW == 32)
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_BUSW == 32)
 #undef CS8900_BUS16
 #define        CS8900_BUS32            1
 #else  /* no */
 #endif
 
 #else
-#error *** CFG_ERROR: invalid LAN0 chip type, check your NIOS CPU config
+#error *** CONFIG_SYS_ERROR: invalid LAN0 chip type, check your NIOS CPU config
 #endif
 
 #define CONFIG_ETHADDR         08:00:3e:26:0a:5b
 #define CONFIG_SERVERIP                192.168.2.16
 
 #else
-#error *** CFG_ERROR: you have to setup just one LAN only or expand your config.h
+#error *** CONFIG_SYS_ERROR: you have to setup just one LAN only or expand your config.h
 #endif
 
 /*------------------------------------------------------------------------
  * STATUS LEDs
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_PIO_NUMS != 0)
+#if    (CONFIG_SYS_NIOS_CPU_PIO_NUMS != 0)
 
-#if    (CFG_NIOS_CPU_LED_PIO == 0)
+#if    (CONFIG_SYS_NIOS_CPU_LED_PIO == 0)
 
-#error *** CFG_ERROR: status LEDs at PIO0 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO0 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 1)
 
-#error *** CFG_ERROR: status LEDs at PIO1 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO1 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 2)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 2)
 
-#define        STATUS_LED_BASE                 CFG_NIOS_CPU_PIO2
-#define        STATUS_LED_BITS                 CFG_NIOS_CPU_PIO2_BITS
+#define        STATUS_LED_BASE                 CONFIG_SYS_NIOS_CPU_PIO2
+#define        STATUS_LED_BITS                 CONFIG_SYS_NIOS_CPU_PIO2_BITS
 #define        STATUS_LED_ACTIVE               1 /* LED on for bit == 1 */
 
-#if    (CFG_NIOS_CPU_PIO2_TYPE == 1)
+#if    (CONFIG_SYS_NIOS_CPU_PIO2_TYPE == 1)
 #define        STATUS_LED_WRONLY               1
 #else
 #undef STATUS_LED_WRONLY
 #endif
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 3)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 3)
 
-#error *** CFG_ERROR: status LEDs at PIO3 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO3 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 4)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 4)
 
-#error *** CFG_ERROR: status LEDs at PIO4 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO4 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 5)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 5)
 
-#error *** CFG_ERROR: status LEDs at PIO5 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO5 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 6)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 6)
 
-#error *** CFG_ERROR: status LEDs at PIO6 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO6 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 7)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 7)
 
-#error *** CFG_ERROR: status LEDs at PIO7 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO7 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 8)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 8)
 
-#error *** CFG_ERROR: status LEDs at PIO8 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO8 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 9)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 9)
 
-#error *** CFG_ERROR: status LEDs at PIO9 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO9 not supported, expand your config.h
 
 #else
-#error *** CFG_ERROR: you have to set CFG_NIOS_CPU_LED_PIO in right case
+#error *** CONFIG_SYS_ERROR: you have to set CONFIG_SYS_NIOS_CPU_LED_PIO in right case
 #endif
 
 #define        CONFIG_STATUS_LED               1 /* enable status led driver */
 #define        STATUS_LED_BIT                  (1 << 0)        /* LED[0] */
 #define        STATUS_LED_STATE                STATUS_LED_BLINKING
 #define        STATUS_LED_BOOT_STATE           STATUS_LED_OFF
-#define        STATUS_LED_PERIOD               (CFG_HZ / 10)   /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD               (CONFIG_SYS_HZ / 10)    /* ca. 1 Hz */
 #define        STATUS_LED_BOOT                 0               /* boot LED */
 
 #if    (STATUS_LED_BITS > 1)
 #define        STATUS_LED_BIT1                 (1 << 1)        /* LED[1] */
 #define        STATUS_LED_STATE1               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD1              (CFG_HZ / 50)   /* ca. 5 Hz */
+#define        STATUS_LED_PERIOD1              (CONFIG_SYS_HZ / 50)    /* ca. 5 Hz */
 #define        STATUS_LED_RED                  1               /* fail LED */
 #endif
 
 #if    (STATUS_LED_BITS > 2)
 #define        STATUS_LED_BIT2                 (1 << 2)        /* LED[2] */
 #define        STATUS_LED_STATE2               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD2              (CFG_HZ / 10)   /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD2              (CONFIG_SYS_HZ / 10)    /* ca. 1 Hz */
 #define        STATUS_LED_YELLOW               2               /* info LED */
 #endif
 
 #if    (STATUS_LED_BITS > 3)
 #define        STATUS_LED_BIT3                 (1 << 3)        /* LED[3] */
 #define        STATUS_LED_STATE3               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD3              (CFG_HZ / 10)   /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD3              (CONFIG_SYS_HZ / 10)    /* ca. 1 Hz */
 #define        STATUS_LED_GREEN                3               /* info LED */
 #endif
 
 #define        STATUS_LED_PAR                  1 /* makes status_led.h happy */
 
-#endif /* CFG_NIOS_CPU_PIO_NUMS */
+#endif /* CONFIG_SYS_NIOS_CPU_PIO_NUMS */
 
 /*------------------------------------------------------------------------
  * SEVEN SEGMENT LED DISPLAY
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_PIO_NUMS != 0)
+#if    (CONFIG_SYS_NIOS_CPU_PIO_NUMS != 0)
 
-#if    (CFG_NIOS_CPU_SEVENSEG_PIO == 0)
+#if    (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 0)
 
-#error *** CFG_ERROR: seven segment display at PIO0 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO0 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 1)
 
-#error *** CFG_ERROR: seven segment display at PIO1 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO1 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 2)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 2)
 
-#error *** CFG_ERROR: seven segment display at PIO2 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO2 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 3)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 3)
 
-#define        SEVENSEG_BASE                   CFG_NIOS_CPU_PIO3
-#define        SEVENSEG_BITS                   CFG_NIOS_CPU_PIO3_BITS
+#define        SEVENSEG_BASE                   CONFIG_SYS_NIOS_CPU_PIO3
+#define        SEVENSEG_BITS                   CONFIG_SYS_NIOS_CPU_PIO3_BITS
 #define        SEVENSEG_ACTIVE                 0 /* LED on for bit == 1 */
 
-#if    (CFG_NIOS_CPU_PIO3_TYPE == 1)
+#if    (CONFIG_SYS_NIOS_CPU_PIO3_TYPE == 1)
 #define        SEVENSEG_WRONLY                 1
 #else
 #undef SEVENSEG_WRONLY
 #endif
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 4)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 4)
 
-#error *** CFG_ERROR: seven segment display at PIO4 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO4 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 5)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 5)
 
-#error *** CFG_ERROR: seven segment display at PIO5 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO5 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 6)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 6)
 
-#error *** CFG_ERROR: seven segment display at PIO6 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO6 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 7)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 7)
 
-#error *** CFG_ERROR: seven segment display at PIO7 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO7 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 8)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 8)
 
-#error *** CFG_ERROR: seven segment display at PIO8 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO8 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 9)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 9)
 
-#error *** CFG_ERROR: seven segment display at PIO9 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO9 not supported, expand your config.h
 
 #else
-#error *** CFG_ERROR: you have to set CFG_NIOS_CPU_SEVENSEG_PIO in right case
+#error *** CONFIG_SYS_ERROR: you have to set CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO in right case
 #endif
 
 #define        CONFIG_SEVENSEG                 1 /* enable seven segment led driver */
 #define        SEVENSEG_DIGIT_G                (1 << 0) /* bit 0 is segment G */
 #define        SEVENSEG_DIGIT_DP               (1 << 7) /* bit 7 is decimal point */
 
-#endif /* CFG_NIOS_CPU_PIO_NUMS */
+#endif /* CONFIG_SYS_NIOS_CPU_PIO_NUMS */
 
 /*------------------------------------------------------------------------
  * ASMI - Active Serial Memory Interface.
  * is loaded via JTAG or ASMI. Please see doc/README.dk1c20 for details.
  *----------------------------------------------------------------------*/
 #define CONFIG_NIOS_ASMI                          /* Enable ASMI       */
-#define CFG_NIOS_ASMIBASE      CFG_NIOS_CPU_ASMI0 /* ASMI base address */
+#define CONFIG_SYS_NIOS_ASMIBASE       CONFIG_SYS_NIOS_CPU_ASMI0 /* ASMI base address  */
 
 
 /*
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CMD_IDE)
 #define CONFIG_IDE_PREINIT                     /* Implement id_preinit */
-#define CFG_IDE_MAXBUS         1               /* 1 IDE bus            */
-#define CFG_IDE_MAXDEVICE      1               /* 1 drive per IDE bus  */
-
-#define CFG_ATA_BASE_ADDR      0x00920a00      /* IDE/ATA base addr    */
-#define CFG_ATA_IDE0_OFFSET    0x0000          /* IDE0 offset          */
-#define CFG_ATA_DATA_OFFSET    0x0040          /* Data IO offset       */
-#define CFG_ATA_REG_OFFSET     0x0040          /* Register offset      */
-#define CFG_ATA_ALT_OFFSET     0x0100          /* Alternate reg offset */
-#define CFG_ATA_STRIDE          4              /* Width betwix addrs   */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* 1 IDE bus            */
+#define CONFIG_SYS_IDE_MAXDEVICE       1               /* 1 drive per IDE bus  */
+
+#define CONFIG_SYS_ATA_BASE_ADDR       0x00920a00      /* IDE/ATA base addr    */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000          /* IDE0 offset          */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0040          /* Data IO offset       */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0040          /* Register offset      */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100          /* Alternate reg offset */
+#define CONFIG_SYS_ATA_STRIDE          4               /* Width betwix addrs   */
 #define CONFIG_DOS_PARTITION
 
 /* Board-specific cf regs */
-#define CFG_CF_PRESENT         0x009209b0      /* CF Present PIO base  */
-#define CFG_CF_POWER           0x009209c0      /* CF Power FET PIO base*/
-#define CFG_CF_ATASEL          0x009209d0      /* CF ATASEL PIO base   */
+#define CONFIG_SYS_CF_PRESENT          0x009209b0      /* CF Present PIO base  */
+#define CONFIG_SYS_CF_POWER            0x009209c0      /* CF Power FET PIO base*/
+#define CONFIG_SYS_CF_ATASEL           0x009209d0      /* CF ATASEL PIO base   */
 
 #endif
 
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define        CFG_LONGHELP                        /* undef to save memory     */
-#define        CFG_PROMPT              "DK1C20 > " /* Monitor Command Prompt   */
-#define        CFG_CBSIZE              256         /* Console I/O Buffer Size  */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16          /* max number of command args*/
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size */
-
-#if    (CFG_SRAM_SIZE != 0)
-#define        CFG_LOAD_ADDR           CFG_SRAM_BASE   /* Default load address */
+#define        CONFIG_SYS_LONGHELP                         /* undef to save memory     */
+#define        CONFIG_SYS_PROMPT               "DK1C20 > " /* Monitor Command Prompt   */
+#define        CONFIG_SYS_CBSIZE               256         /* Console I/O Buffer Size  */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16          /* max number of command args*/
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size */
+
+#if    (CONFIG_SYS_SRAM_SIZE != 0)
+#define        CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SRAM_BASE    /* Default load address */
 #else
-#undef CFG_LOAD_ADDR
+#undef CONFIG_SYS_LOAD_ADDR
 #endif
 
-#if    (CFG_SDRAM_SIZE != 0)
-#define        CFG_MEMTEST_START       CFG_SDRAM_BASE  /* SDRAM til stack area */
-#define        CFG_MEMTEST_END         (CFG_INIT_SP - (1024 * 1024)) /* 1MB stack */
+#if    (CONFIG_SYS_SDRAM_SIZE != 0)
+#define        CONFIG_SYS_MEMTEST_START        CONFIG_SYS_SDRAM_BASE   /* SDRAM til stack area */
+#define        CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_INIT_SP - (1024 * 1024)) /* 1MB stack */
 #else
-#undef CFG_MEMTEST_START
-#undef CFG_MEMTEST_END
+#undef CONFIG_SYS_MEMTEST_START
+#undef CONFIG_SYS_MEMTEST_END
 #endif
 
 /*
index a483e87664011e5d8d8efe14e8514bacbc8a7778..86e4869f13f7c07b9316df86eb1f1e56dd2d37dc 100644 (file)
@@ -29,6 +29,6 @@
  *
  * !!! TODO !!! TODO !!!
  */
-#error *** CFG_ERROR: DK1C20_safe_32 have to be defined (use DK1C20_standard_32 as template)
+#error *** CONFIG_SYS_ERROR: DK1C20_safe_32 have to be defined (use DK1C20_standard_32 as template)
 
 #endif /* __CONFIG_DK1C20_SAFE_32_H */
index ed08121cc298a9ac8bba4afcb8e68fb6e6af5553..c08aaae0196ac21c3f474b4aeacbe91f4dffe472 100644 (file)
  * Here we must define CPU dependencies. Any unsupported option have to
  * be defined with zero, example CPU without data cache / OCI:
  *
- *     #define CFG_NIOS_CPU_ICACHE     4096
- *     #define CFG_NIOS_CPU_DCACHE     0
- *     #define CFG_NIOS_CPU_OCI_BASE   0
- *     #define CFG_NIOS_CPU_OCI_SIZE   0
+ *     #define CONFIG_SYS_NIOS_CPU_ICACHE      4096
+ *     #define CONFIG_SYS_NIOS_CPU_DCACHE      0
+ *     #define CONFIG_SYS_NIOS_CPU_OCI_BASE    0
+ *     #define CONFIG_SYS_NIOS_CPU_OCI_SIZE    0
  */
 
 /* CPU core */
-#define        CFG_NIOS_CPU_CLK        50000000        /* NIOS CPU clock       */
-#define        CFG_NIOS_CPU_ICACHE     (4 * 1024)      /* instruction cache    */
-#define        CFG_NIOS_CPU_DCACHE     (4 * 1024)      /* data cache           */
-#define        CFG_NIOS_CPU_REG_NUMS   256             /* number of register   */
-#define        CFG_NIOS_CPU_MUL        0               /* 16x16 MUL:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_CLK 50000000        /* NIOS CPU clock       */
+#define        CONFIG_SYS_NIOS_CPU_ICACHE      (4 * 1024)      /* instruction cache    */
+#define        CONFIG_SYS_NIOS_CPU_DCACHE      (4 * 1024)      /* data cache           */
+#define        CONFIG_SYS_NIOS_CPU_REG_NUMS    256             /* number of register   */
+#define        CONFIG_SYS_NIOS_CPU_MUL 0               /* 16x16 MUL:   no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_MSTEP      1               /* 16x16 MSTEP: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_MSTEP       1               /* 16x16 MSTEP: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_STACK      0x008fff00      /* stack top    addr    */
-#define        CFG_NIOS_CPU_VEC_BASE   0x008fff00      /* IRQ vectors  addr    */
-#define        CFG_NIOS_CPU_VEC_SIZE   256             /*              size    */
-#define        CFG_NIOS_CPU_VEC_NUMS   64              /*              numbers */
-#define        CFG_NIOS_CPU_RST_VECT   0x00920000      /* RESET vector addr    */
-#define        CFG_NIOS_CPU_DBG_CORE   0               /* CPU debug:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_STACK       0x008fff00      /* stack top    addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_BASE    0x008fff00      /* IRQ vectors  addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_SIZE    256             /*              size    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_NUMS    64              /*              numbers */
+#define        CONFIG_SYS_NIOS_CPU_RST_VECT    0x00920000      /* RESET vector addr    */
+#define        CONFIG_SYS_NIOS_CPU_DBG_CORE    0               /* CPU debug:   no(0)   */
                                                /*              yes(1)  */
 
 /* on-chip extensions */
-#define        CFG_NIOS_CPU_RAM_BASE   0               /* on chip RAM  addr    */
-#define        CFG_NIOS_CPU_RAM_SIZE   0               /*              size    */
+#define        CONFIG_SYS_NIOS_CPU_RAM_BASE    0               /* on chip RAM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_RAM_SIZE    0               /*              size    */
 
-#define        CFG_NIOS_CPU_ROM_BASE   0x00920000      /* on chip ROM  addr    */
-#define        CFG_NIOS_CPU_ROM_SIZE   (2 * 1024)      /*  2 KB        size    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_BASE    0x00920000      /* on chip ROM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_SIZE    (2 * 1024)      /*  2 KB        size    */
 
-#define        CFG_NIOS_CPU_OCI_BASE   0x00920800      /* OCI core     addr    */
-#define        CFG_NIOS_CPU_OCI_SIZE   256             /*              size    */
+#define        CONFIG_SYS_NIOS_CPU_OCI_BASE    0x00920800      /* OCI core     addr    */
+#define        CONFIG_SYS_NIOS_CPU_OCI_SIZE    256             /*              size    */
 
 /* timer */
-#define        CFG_NIOS_CPU_TIMER_NUMS 2               /* number of timer      */
+#define        CONFIG_SYS_NIOS_CPU_TIMER_NUMS  2               /* number of timer      */
 
-#define        CFG_NIOS_CPU_TIMER0     0x00920940      /* TIMER0       addr    */
-#define        CFG_NIOS_CPU_TIMER0_IRQ 16              /*              IRQ     */
-#define        CFG_NIOS_CPU_TIMER0_PER 1000            /*  periode     usec    */
-#define        CFG_NIOS_CPU_TIMER0_AR  0               /*  always run: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0      0x00920940      /* TIMER0       addr    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_IRQ  16              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_PER  1000            /*  periode     usec    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_AR   0               /*  always run: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_FP  0               /*  fixed per:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_FP   0               /*  fixed per:  no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_SS  1               /*  snaphot:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_SS   1               /*  snaphot:    no(0)   */
                                                /*              yes(1)  */
 
-#define        CFG_NIOS_CPU_TIMER1     0x009209e0      /* TIMER1       addr    */
-#define        CFG_NIOS_CPU_TIMER1_IRQ 50              /*              IRQ     */
-#define        CFG_NIOS_CPU_TIMER1_PER 10000           /*  periode     usec    */
-#define        CFG_NIOS_CPU_TIMER1_AR  1               /*  always run: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1      0x009209e0      /* TIMER1       addr    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_IRQ  50              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_PER  10000           /*  periode     usec    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_AR   1               /*  always run: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER1_FP  1               /*  fixed per:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_FP   1               /*  fixed per:  no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER1_SS  0               /*  snaphot:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_SS   0               /*  snaphot:    no(0)   */
                                                /*              yes(1)  */
 
 /* serial i/o */
-#define        CFG_NIOS_CPU_UART_NUMS  1               /* number of uarts      */
+#define        CONFIG_SYS_NIOS_CPU_UART_NUMS   1               /* number of uarts      */
 
-#define        CFG_NIOS_CPU_UART0      0x00920900      /* UART0        addr    */
-#define        CFG_NIOS_CPU_UART0_IRQ  25              /*              IRQ     */
-#define        CFG_NIOS_CPU_UART0_BR   115200          /*  baudrate    var(0)  */
-#define        CFG_NIOS_CPU_UART0_DB   8               /*  data bit            */
-#define        CFG_NIOS_CPU_UART0_SB   1               /*  stop bit            */
-#define        CFG_NIOS_CPU_UART0_PA   0               /*  parity      none(0) */
+#define        CONFIG_SYS_NIOS_CPU_UART0       0x00920900      /* UART0        addr    */
+#define        CONFIG_SYS_NIOS_CPU_UART0_IRQ   25              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_UART0_BR    115200          /*  baudrate    var(0)  */
+#define        CONFIG_SYS_NIOS_CPU_UART0_DB    8               /*  data bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_SB    1               /*  stop bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_PA    0               /*  parity      none(0) */
                                                /*              odd(1)  */
                                                /*              even(2) */
-#define        CFG_NIOS_CPU_UART0_HS   0               /*  handshake:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_HS    0               /*  handshake:  no(0)   */
                                                /*              crts(1) */
-#define        CFG_NIOS_CPU_UART0_EOP  0               /*  eop reg:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_EOP   0               /*  eop reg:    no(0)   */
                                                /*              yes(1)  */
 
 /* parallel i/o */
-#define        CFG_NIOS_CPU_PIO_NUMS   8               /* number of parports   */
+#define        CONFIG_SYS_NIOS_CPU_PIO_NUMS    8               /* number of parports   */
 
-#define        CFG_NIOS_CPU_PIO0       0x00920960      /* PIO0         addr    */
-#define        CFG_NIOS_CPU_PIO0_IRQ   40              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO0_BITS  4               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO0_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0        0x00920960      /* PIO0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_IRQ    40              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_BITS   4               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO0_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO0_EDGE  3               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_EDGE   3               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO0_ITYPE 2               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_ITYPE  2               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO1       0x00920970      /* PIO1         addr    */
-#undef CFG_NIOS_CPU_PIO1_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO1_BITS  11              /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO1_TYPE  0               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1        0x00920970      /* PIO1         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO1_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_BITS   11              /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_TYPE   0               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO1_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO1_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO1_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO2       0x00920980      /* PIO2         addr    */
-#undef CFG_NIOS_CPU_PIO2_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO2_BITS  8               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO2_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2        0x00920980      /* PIO2         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO2_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_BITS   8               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO2_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO2_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO2_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO3       0x00920990      /* PIO3         addr    */
-#undef CFG_NIOS_CPU_PIO3_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO3_BITS  16              /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO3_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3        0x00920990      /* PIO3         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO3_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_BITS   16              /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO3_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO3_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO3_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO4       0x009209a0      /* PIO4         addr    */
-#undef CFG_NIOS_CPU_PIO4_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO4_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO4_TYPE  0               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4        0x009209a0      /* PIO4         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO4_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_TYPE   0               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO4_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO4_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO4_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO5       0x009209b0      /* PIO5         addr    */
-#define        CFG_NIOS_CPU_PIO5_IRQ   35              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO5_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO5_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5        0x009209b0      /* PIO5         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_IRQ    35              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO5_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO5_EDGE  3               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_EDGE   3               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO5_ITYPE 2               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_ITYPE  2               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO6       0x009209c0      /* PIO6         addr    */
-#undef CFG_NIOS_CPU_PIO6_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO6_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO6_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6        0x009209c0      /* PIO6         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO6_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO6_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO6_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO6_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO7       0x009209d0      /* PIO7         addr    */
-#undef CFG_NIOS_CPU_PIO7_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO7_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO7_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7        0x009209d0      /* PIO7         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO7_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO7_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO7_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO7_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
 /* IDE i/f */
-#define        CFG_NIOS_CPU_IDE_NUMS   1               /* number of IDE contr. */
-#define        CFG_NIOS_CPU_IDE0       0x00920a00      /* IDE0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_IDE_NUMS    1               /* number of IDE contr. */
+#define        CONFIG_SYS_NIOS_CPU_IDE0        0x00920a00      /* IDE0         addr    */
 
 /* active serial memory i/f */
-#define        CFG_NIOS_CPU_ASMI_NUMS  1               /* number of ASMI       */
-#define        CFG_NIOS_CPU_ASMI0      0x00920b00      /* ASMI0        addr    */
-#define        CFG_NIOS_CPU_ASMI0_IRQ  45              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_ASMI_NUMS   1               /* number of ASMI       */
+#define        CONFIG_SYS_NIOS_CPU_ASMI0       0x00920b00      /* ASMI0        addr    */
+#define        CONFIG_SYS_NIOS_CPU_ASMI0_IRQ   45              /*              IRQ     */
 
 /* memory accessibility */
-#define        CFG_NIOS_CPU_SRAM_BASE  0x00800000      /* board SRAM   addr    */
-#define        CFG_NIOS_CPU_SRAM_SIZE  (1024 * 1024)   /*  1 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_SRAM_BASE   0x00800000      /* board SRAM   addr    */
+#define        CONFIG_SYS_NIOS_CPU_SRAM_SIZE   (1024 * 1024)   /*  1 MB        size    */
 
-#define        CFG_NIOS_CPU_SDRAM_BASE 0x01000000      /* board SDRAM  addr    */
-#define        CFG_NIOS_CPU_SDRAM_SIZE (16*1024*1024)  /* 16 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_BASE  0x01000000      /* board SDRAM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_SIZE  (16*1024*1024)  /* 16 MB        size    */
 
-#define        CFG_NIOS_CPU_FLASH_BASE 0x00000000      /* board Flash  addr    */
-#define        CFG_NIOS_CPU_FLASH_SIZE (8*1024*1024)   /*  8 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_BASE  0x00000000      /* board Flash  addr    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_SIZE  (8*1024*1024)   /*  8 MB        size    */
 
 /* LAN */
-#define        CFG_NIOS_CPU_LAN_NUMS   1               /* number of LAN i/f    */
+#define        CONFIG_SYS_NIOS_CPU_LAN_NUMS    1               /* number of LAN i/f    */
 
-#define        CFG_NIOS_CPU_LAN0_BASE  0x00910000      /* LAN0         addr    */
-#define        CFG_NIOS_CPU_LAN0_OFFS  0x0300          /*              offset  */
-#define        CFG_NIOS_CPU_LAN0_IRQ   30              /*              IRQ     */
-#define        CFG_NIOS_CPU_LAN0_BUSW  32              /*              buswidth*/
-#define        CFG_NIOS_CPU_LAN0_TYPE  0               /*      smc91111(0)     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BASE   0x00910000      /* LAN0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_OFFS   0x0300          /*              offset  */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_IRQ    30              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BUSW   32              /*              buswidth*/
+#define        CONFIG_SYS_NIOS_CPU_LAN0_TYPE   0               /*      smc91111(0)     */
                                                /*      cs8900(1)       */
                                                /* ex:  alteramac(2)    */
 
 /* symbolic redefinition (undef, if not present) */
-#define        CFG_NIOS_CPU_USER_TIMER         0       /* TIMER0: users choice */
-#define        CFG_NIOS_CPU_TICK_TIMER         1       /* TIMER1: tick (needed)*/
+#define        CONFIG_SYS_NIOS_CPU_USER_TIMER          0       /* TIMER0: users choice */
+#define        CONFIG_SYS_NIOS_CPU_TICK_TIMER          1       /* TIMER1: tick (needed)*/
 
-#define        CFG_NIOS_CPU_BUTTON_PIO         0       /* PIO0: buttons        */
-#define        CFG_NIOS_CPU_LCD_PIO            1       /* PIO1: ASCII LCD      */
-#define        CFG_NIOS_CPU_LED_PIO            2       /* PIO2: LED bar        */
-#define        CFG_NIOS_CPU_SEVENSEG_PIO       3       /* PIO3: 7-seg. display */
-#define        CFG_NIOS_CPU_RECONF_PIO         4       /* PIO4: reconf pin     */
-#define        CFG_NIOS_CPU_CFPRESENT_PIO      5       /* PIO5: CF present IRQ */
-#define        CFG_NIOS_CPU_CFPOWER_PIO        6       /* PIO6: CF power/sw.   */
-#define        CFG_NIOS_CPU_CFATASEL_PIO       7       /* PIO7: CF ATA select  */
+#define        CONFIG_SYS_NIOS_CPU_BUTTON_PIO          0       /* PIO0: buttons        */
+#define        CONFIG_SYS_NIOS_CPU_LCD_PIO             1       /* PIO1: ASCII LCD      */
+#define        CONFIG_SYS_NIOS_CPU_LED_PIO             2       /* PIO2: LED bar        */
+#define        CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO        3       /* PIO3: 7-seg. display */
+#define        CONFIG_SYS_NIOS_CPU_RECONF_PIO          4       /* PIO4: reconf pin     */
+#define        CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO       5       /* PIO5: CF present IRQ */
+#define        CONFIG_SYS_NIOS_CPU_CFPOWER_PIO 6       /* PIO6: CF power/sw.   */
+#define        CONFIG_SYS_NIOS_CPU_CFATASEL_PIO        7       /* PIO7: CF ATA select  */
 
 #endif /* __CONFIG_DK1C20_STANDARD_32_H */
index 12d4e6b427c6b5d48f23897c80e727a964226454..1d031f1cde7308a9cdc6f92ee9fc0b29b72a179b 100644 (file)
@@ -38,7 +38,7 @@
 #elif  defined(CONFIG_NIOS_MTX_LDK_20)
 #include <configs/DK1S10_mtx_ldk_20.h>
 #else
-#error *** CFG_ERROR: you have to setup right NIOS CPU configuration
+#error *** CONFIG_SYS_ERROR: you have to setup right NIOS CPU configuration
 #endif
 
 /*------------------------------------------------------------------------
  *----------------------------------------------------------------------*/
 #define CONFIG_NIOS            1               /* NIOS-32 core         */
 #define        CONFIG_DK1S10           1               /* Stratix DK-1S10 board*/
-#define CONFIG_SYS_CLK_FREQ    CFG_NIOS_CPU_CLK/* 50 MHz core clock    */
-#define        CFG_HZ                  1000            /* 1 msec time tick     */
-#undef  CFG_CLKS_IN_HZ
+#define CONFIG_SYS_CLK_FREQ    CONFIG_SYS_NIOS_CPU_CLK/* 50 MHz core clock     */
+#define        CONFIG_SYS_HZ                   1000            /* 1 msec time tick     */
+#undef  CONFIG_SYS_CLKS_IN_HZ
 #define        CONFIG_BOARD_EARLY_INIT_F 1     /* enable early board-spec. init*/
 
 /*------------------------------------------------------------------------
  * BASE ADDRESSES / SIZE (Flash, SRAM, SDRAM)
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_SDRAM_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_SDRAM_SIZE != 0)
 
-#define CFG_SDRAM_BASE         CFG_NIOS_CPU_SDRAM_BASE
-#define CFG_SDRAM_SIZE         CFG_NIOS_CPU_SDRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_NIOS_CPU_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_SIZE          CONFIG_SYS_NIOS_CPU_SDRAM_SIZE
 
 #else
-#error *** CFG_ERROR: you have to setup any SDRAM in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup any SDRAM in NIOS CPU config
 #endif
 
-#if    defined(CFG_NIOS_CPU_SRAM_BASE) && defined(CFG_NIOS_CPU_SRAM_SIZE)
+#if    defined(CONFIG_SYS_NIOS_CPU_SRAM_BASE) && defined(CONFIG_SYS_NIOS_CPU_SRAM_SIZE)
 
-#define        CFG_SRAM_BASE           CFG_NIOS_CPU_SRAM_BASE
-#define        CFG_SRAM_SIZE           CFG_NIOS_CPU_SRAM_SIZE
+#define        CONFIG_SYS_SRAM_BASE            CONFIG_SYS_NIOS_CPU_SRAM_BASE
+#define        CONFIG_SYS_SRAM_SIZE            CONFIG_SYS_NIOS_CPU_SRAM_SIZE
 
 #else
 
-#undef CFG_SRAM_BASE
-#undef CFG_SRAM_SIZE
+#undef CONFIG_SYS_SRAM_BASE
+#undef CONFIG_SYS_SRAM_SIZE
 
 #endif
 
-#define CFG_VECT_BASE          CFG_NIOS_CPU_VEC_BASE
+#define CONFIG_SYS_VECT_BASE           CONFIG_SYS_NIOS_CPU_VEC_BASE
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION - For the most part, you can put things pretty
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_FLASH_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_FLASH_SIZE != 0)
 
-#define CFG_FLASH_BASE         CFG_NIOS_CPU_FLASH_BASE
-#define CFG_FLASH_SIZE         CFG_NIOS_CPU_FLASH_SIZE
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size      */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_NIOS_CPU_FLASH_BASE
+#define CONFIG_SYS_FLASH_SIZE          CONFIG_SYS_NIOS_CPU_FLASH_SIZE
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size      */
 
 #else
-#error *** CFG_ERROR: you have to setup any Flash memory in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup any Flash memory in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * ENVIRONMENT
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_FLASH_SIZE != 0)
+#if    (CONFIG_SYS_NIOS_CPU_FLASH_SIZE != 0)
 
 #define        CONFIG_ENV_IS_IN_FLASH  1               /* Environment in flash */
 
 #if    defined(CONFIG_NIOS_STANDARD_32)
-#define CONFIG_ENV_ADDR                CFG_FLASH_BASE  /* Mem addr of env      */
+#define CONFIG_ENV_ADDR                CONFIG_SYS_FLASH_BASE   /* Mem addr of env      */
 #elif  defined(CONFIG_NIOS_MTX_LDK_20)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
 #else
-#error *** CFG_ERROR: you have to setup the environment base address CONFIG_ENV_ADDR
+#error *** CONFIG_SYS_ERROR: you have to setup the environment base address CONFIG_ENV_ADDR
 #endif
 
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_UART_NUMS != 0)
+#if    (CONFIG_SYS_NIOS_CPU_UART_NUMS != 0)
 
-#define CFG_NIOS_CONSOLE       CFG_NIOS_CPU_UART0 /* 1st UART is Cons. */
+#define CONFIG_SYS_NIOS_CONSOLE        CONFIG_SYS_NIOS_CPU_UART0 /* 1st UART is Cons. */
 #define CONFIG_LOADS_ECHO      1        /* echo on for serial download */
 
-#if    (CFG_NIOS_CPU_UART0_BR != 0)
-#define CFG_NIOS_FIXEDBAUD     1                  /* Baudrate is fixed */
-#define CONFIG_BAUDRATE                CFG_NIOS_CPU_UART0_BR
+#if    (CONFIG_SYS_NIOS_CPU_UART0_BR != 0)
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1                  /* Baudrate is fixed */
+#define CONFIG_BAUDRATE                CONFIG_SYS_NIOS_CPU_UART0_BR
 #else
-#undef CFG_NIOS_FIXEDBAUD
+#undef CONFIG_SYS_NIOS_FIXEDBAUD
 #define CONFIG_BAUDRATE                115200
 #endif
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #else
-#error *** CFG_ERROR: you have to setup at least one UART in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup at least one UART in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * TIMER FOR TIMEBASE -- Nios doesn't have the equivalent of ppc  PIT,
  * so an avalon bus timer is required.
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_TIMER_NUMS != 0) && defined(CFG_NIOS_CPU_TICK_TIMER)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER_NUMS != 0) && defined(CONFIG_SYS_NIOS_CPU_TICK_TIMER)
 
-#if    (CFG_NIOS_CPU_TICK_TIMER == 0)
+#if    (CONFIG_SYS_NIOS_CPU_TICK_TIMER == 0)
 
-#define CFG_NIOS_TMRBASE       CFG_NIOS_CPU_TIMER0 /* TIMER0 as tick   */
-#define CFG_NIOS_TMRIRQ                CFG_NIOS_CPU_TIMER0_IRQ
+#define CONFIG_SYS_NIOS_TMRBASE        CONFIG_SYS_NIOS_CPU_TIMER0 /* TIMER0 as tick    */
+#define CONFIG_SYS_NIOS_TMRIRQ         CONFIG_SYS_NIOS_CPU_TIMER0_IRQ
 
-#if    (CFG_NIOS_CPU_TIMER0_FP == 1)               /* fixed period */
+#if    (CONFIG_SYS_NIOS_CPU_TIMER0_FP == 1)                /* fixed period */
 
-#if    (CFG_NIOS_CPU_TIMER0_PER >= CFG_HZ)
-#define CFG_NIOS_TMRMS         (CFG_NIOS_CPU_TIMER0_PER / CFG_HZ)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER0_PER >= CONFIG_SYS_HZ)
+#define CONFIG_SYS_NIOS_TMRMS          (CONFIG_SYS_NIOS_CPU_TIMER0_PER / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
+#error *** CONFIG_SYS_ERROR: you have to use a timer periode greater than CONFIG_SYS_HZ
 #endif
 
-#undef CFG_NIOS_TMRCNT /* no preloadable counter value */
+#undef CONFIG_SYS_NIOS_TMRCNT  /* no preloadable counter value */
 
-#elif  (CFG_NIOS_CPU_TIMER0_FP == 0)               /* variable period */
+#elif  (CONFIG_SYS_NIOS_CPU_TIMER0_FP == 0)                /* variable period */
 
-#if    (CFG_HZ <= 1000)
-#define CFG_NIOS_TMRMS         (1000 / CFG_HZ)
+#if    (CONFIG_SYS_HZ <= 1000)
+#define CONFIG_SYS_NIOS_TMRMS          (1000 / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
+#error *** CONFIG_SYS_ERROR: sorry, CONFIG_SYS_HZ have to be less than 1000
 #endif
 
-#define        CFG_NIOS_TMRCNT         (CONFIG_SYS_CLK_FREQ / CFG_HZ)
+#define        CONFIG_SYS_NIOS_TMRCNT          (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ)
 
 #else
-#error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER0_FP correct
+#error *** CONFIG_SYS_ERROR: you have to define CONFIG_SYS_NIOS_CPU_TIMER0_FP correct
 #endif
 
-#elif  (CFG_NIOS_CPU_TICK_TIMER == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_TICK_TIMER == 1)
 
-#define CFG_NIOS_TMRBASE       CFG_NIOS_CPU_TIMER1 /* TIMER1 as tick   */
-#define CFG_NIOS_TMRIRQ                CFG_NIOS_CPU_TIMER1_IRQ
+#define CONFIG_SYS_NIOS_TMRBASE        CONFIG_SYS_NIOS_CPU_TIMER1 /* TIMER1 as tick    */
+#define CONFIG_SYS_NIOS_TMRIRQ         CONFIG_SYS_NIOS_CPU_TIMER1_IRQ
 
-#if    (CFG_NIOS_CPU_TIMER1_FP == 1)               /* fixed period */
+#if    (CONFIG_SYS_NIOS_CPU_TIMER1_FP == 1)                /* fixed period */
 
-#if    (CFG_NIOS_CPU_TIMER1_PER >= CFG_HZ)
-#define CFG_NIOS_TMRMS         (CFG_NIOS_CPU_TIMER1_PER / CFG_HZ)
+#if    (CONFIG_SYS_NIOS_CPU_TIMER1_PER >= CONFIG_SYS_HZ)
+#define CONFIG_SYS_NIOS_TMRMS          (CONFIG_SYS_NIOS_CPU_TIMER1_PER / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: you have to use a timer periode greater than CFG_HZ
+#error *** CONFIG_SYS_ERROR: you have to use a timer periode greater than CONFIG_SYS_HZ
 #endif
 
-#undef CFG_NIOS_TMRCNT /* no preloadable counter value */
+#undef CONFIG_SYS_NIOS_TMRCNT  /* no preloadable counter value */
 
-#elif  (CFG_NIOS_CPU_TIMER1_FP == 0)               /* variable period */
+#elif  (CONFIG_SYS_NIOS_CPU_TIMER1_FP == 0)                /* variable period */
 
-#if    (CFG_HZ <= 1000)
-#define CFG_NIOS_TMRMS         (1000 / CFG_HZ)
+#if    (CONFIG_SYS_HZ <= 1000)
+#define CONFIG_SYS_NIOS_TMRMS          (1000 / CONFIG_SYS_HZ)
 #else
-#error *** CFG_ERROR: sorry, CFG_HZ have to be less than 1000
+#error *** CONFIG_SYS_ERROR: sorry, CONFIG_SYS_HZ have to be less than 1000
 #endif
 
-#define        CFG_NIOS_TMRCNT         (CONFIG_SYS_CLK_FREQ / CFG_HZ)
+#define        CONFIG_SYS_NIOS_TMRCNT          (CONFIG_SYS_CLK_FREQ / CONFIG_SYS_HZ)
 
 #else
-#error *** CFG_ERROR: you have to define CFG_NIOS_CPU_TIMER1_FP correct
+#error *** CONFIG_SYS_ERROR: you have to define CONFIG_SYS_NIOS_CPU_TIMER1_FP correct
 #endif
 
-#endif /* CFG_NIOS_CPU_TICK_TIMER */
+#endif /* CONFIG_SYS_NIOS_CPU_TICK_TIMER */
 
 #else
-#error *** CFG_ERROR: you have to setup at least one TIMER in NIOS CPU config
+#error *** CONFIG_SYS_ERROR: you have to setup at least one TIMER in NIOS CPU config
 #endif
 
 /*------------------------------------------------------------------------
  * Ethernet -- needs work!
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_LAN_NUMS == 1)
+#if    (CONFIG_SYS_NIOS_CPU_LAN_NUMS == 1)
 
-#if    (CFG_NIOS_CPU_LAN0_TYPE == 0)           /* LAN91C111            */
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_TYPE == 0)            /* LAN91C111            */
 
 #define        CONFIG_DRIVER_SMC91111                  /* Using SMC91c111      */
 #undef CONFIG_SMC91111_EXT_PHY                 /* Internal PHY         */
-#define        CONFIG_SMC91111_BASE    (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
+#define        CONFIG_SMC91111_BASE    (CONFIG_SYS_NIOS_CPU_LAN0_BASE + CONFIG_SYS_NIOS_CPU_LAN0_OFFS)
 
-#if    (CFG_NIOS_CPU_LAN0_BUSW == 32)
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_BUSW == 32)
 #define        CONFIG_SMC_USE_32_BIT   1
 #else  /* no */
 #undef CONFIG_SMC_USE_32_BIT
 #endif
 
-#elif  (CFG_NIOS_CPU_LAN0_TYPE == 1)           /* CS8900A              */
+#elif  (CONFIG_SYS_NIOS_CPU_LAN0_TYPE == 1)            /* CS8900A              */
 
        /********************************************/
        /* !!! CS8900 is __not__ tested on NIOS !!! */
        /********************************************/
 #define        CONFIG_DRIVER_CS8900                    /* Using CS8900         */
-#define        CS8900_BASE             (CFG_NIOS_CPU_LAN0_BASE + CFG_NIOS_CPU_LAN0_OFFS)
+#define        CS8900_BASE             (CONFIG_SYS_NIOS_CPU_LAN0_BASE + CONFIG_SYS_NIOS_CPU_LAN0_OFFS)
 
-#if    (CFG_NIOS_CPU_LAN0_BUSW == 32)
+#if    (CONFIG_SYS_NIOS_CPU_LAN0_BUSW == 32)
 #undef CS8900_BUS16
 #define        CS8900_BUS32            1
 #else  /* no */
 #endif
 
 #else
-#error *** CFG_ERROR: invalid LAN0 chip type, check your NIOS CPU config
+#error *** CONFIG_SYS_ERROR: invalid LAN0 chip type, check your NIOS CPU config
 #endif
 
 #define CONFIG_ETHADDR         08:00:3e:26:0a:5b
 #define CONFIG_SERVERIP                192.168.2.16
 
 #else
-#error *** CFG_ERROR: you have to setup just one LAN only or expand your config.h
+#error *** CONFIG_SYS_ERROR: you have to setup just one LAN only or expand your config.h
 #endif
 
 /*------------------------------------------------------------------------
  * STATUS LEDs
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_PIO_NUMS != 0) && defined(CFG_NIOS_CPU_LED_PIO)
+#if    (CONFIG_SYS_NIOS_CPU_PIO_NUMS != 0) && defined(CONFIG_SYS_NIOS_CPU_LED_PIO)
 
-#if    (CFG_NIOS_CPU_LED_PIO == 0)
+#if    (CONFIG_SYS_NIOS_CPU_LED_PIO == 0)
 
-#error *** CFG_ERROR: status LEDs at PIO0 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO0 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 1)
 
-#error *** CFG_ERROR: status LEDs at PIO1 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO1 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 2)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 2)
 
-#define        STATUS_LED_BASE                 CFG_NIOS_CPU_PIO2
-#define        STATUS_LED_BITS                 CFG_NIOS_CPU_PIO2_BITS
+#define        STATUS_LED_BASE                 CONFIG_SYS_NIOS_CPU_PIO2
+#define        STATUS_LED_BITS                 CONFIG_SYS_NIOS_CPU_PIO2_BITS
 #define        STATUS_LED_ACTIVE               1 /* LED on for bit == 1 */
 
-#if    (CFG_NIOS_CPU_PIO2_TYPE == 1)
+#if    (CONFIG_SYS_NIOS_CPU_PIO2_TYPE == 1)
 #define        STATUS_LED_WRONLY               1
 #else
 #undef STATUS_LED_WRONLY
 #endif
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 3)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 3)
 
-#error *** CFG_ERROR: status LEDs at PIO3 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO3 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 4)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 4)
 
-#error *** CFG_ERROR: status LEDs at PIO4 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO4 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 5)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 5)
 
-#error *** CFG_ERROR: status LEDs at PIO5 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO5 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 6)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 6)
 
-#error *** CFG_ERROR: status LEDs at PIO6 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO6 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 7)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 7)
 
-#error *** CFG_ERROR: status LEDs at PIO7 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO7 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 8)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 8)
 
-#error *** CFG_ERROR: status LEDs at PIO8 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO8 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_LED_PIO == 9)
+#elif  (CONFIG_SYS_NIOS_CPU_LED_PIO == 9)
 
-#error *** CFG_ERROR: status LEDs at PIO9 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: status LEDs at PIO9 not supported, expand your config.h
 
 #else
-#error *** CFG_ERROR: you have to set CFG_NIOS_CPU_LED_PIO in right case
+#error *** CONFIG_SYS_ERROR: you have to set CONFIG_SYS_NIOS_CPU_LED_PIO in right case
 #endif
 
 #define        CONFIG_STATUS_LED               1 /* enable status led driver */
 #define        STATUS_LED_BIT                  (1 << 0)        /* LED[0] */
 #define        STATUS_LED_STATE                STATUS_LED_BLINKING
 #define        STATUS_LED_BOOT_STATE           STATUS_LED_OFF
-#define        STATUS_LED_PERIOD               (CFG_HZ / 10)   /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD               (CONFIG_SYS_HZ / 10)    /* ca. 1 Hz */
 #define        STATUS_LED_BOOT                 0               /* boot LED */
 
 #if    (STATUS_LED_BITS > 1)
 #define        STATUS_LED_BIT1                 (1 << 1)        /* LED[1] */
 #define        STATUS_LED_STATE1               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD1              (CFG_HZ / 50)   /* ca. 5 Hz */
+#define        STATUS_LED_PERIOD1              (CONFIG_SYS_HZ / 50)    /* ca. 5 Hz */
 #define        STATUS_LED_RED                  1               /* fail LED */
 #endif
 
 #if    (STATUS_LED_BITS > 2)
 #define        STATUS_LED_BIT2                 (1 << 2)        /* LED[2] */
 #define        STATUS_LED_STATE2               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD2              (CFG_HZ / 10)   /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD2              (CONFIG_SYS_HZ / 10)    /* ca. 1 Hz */
 #define        STATUS_LED_YELLOW               2               /* info LED */
 #endif
 
 #if    (STATUS_LED_BITS > 3)
 #define        STATUS_LED_BIT3                 (1 << 3)        /* LED[3] */
 #define        STATUS_LED_STATE3               STATUS_LED_OFF
-#define        STATUS_LED_PERIOD3              (CFG_HZ / 10)   /* ca. 1 Hz */
+#define        STATUS_LED_PERIOD3              (CONFIG_SYS_HZ / 10)    /* ca. 1 Hz */
 #define        STATUS_LED_GREEN                3               /* info LED */
 #endif
 
 #define        STATUS_LED_PAR                  1 /* makes status_led.h happy */
 
-#endif /* CFG_NIOS_CPU_PIO_NUMS */
+#endif /* CONFIG_SYS_NIOS_CPU_PIO_NUMS */
 
 /*------------------------------------------------------------------------
  * SEVEN SEGMENT LED DISPLAY
  *----------------------------------------------------------------------*/
-#if    (CFG_NIOS_CPU_PIO_NUMS != 0) && defined(CFG_NIOS_CPU_SEVENSEG_PIO)
+#if    (CONFIG_SYS_NIOS_CPU_PIO_NUMS != 0) && defined(CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO)
 
-#if    (CFG_NIOS_CPU_SEVENSEG_PIO == 0)
+#if    (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 0)
 
-#error *** CFG_ERROR: seven segment display at PIO0 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO0 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 1)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 1)
 
-#error *** CFG_ERROR: seven segment display at PIO1 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO1 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 2)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 2)
 
-#error *** CFG_ERROR: seven segment display at PIO2 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO2 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 3)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 3)
 
-#define        SEVENSEG_BASE                   CFG_NIOS_CPU_PIO3
-#define        SEVENSEG_BITS                   CFG_NIOS_CPU_PIO3_BITS
+#define        SEVENSEG_BASE                   CONFIG_SYS_NIOS_CPU_PIO3
+#define        SEVENSEG_BITS                   CONFIG_SYS_NIOS_CPU_PIO3_BITS
 #define        SEVENSEG_ACTIVE                 0 /* LED on for bit == 1 */
 
-#if    (CFG_NIOS_CPU_PIO3_TYPE == 1)
+#if    (CONFIG_SYS_NIOS_CPU_PIO3_TYPE == 1)
 #define        SEVENSEG_WRONLY                 1
 #else
 #undef SEVENSEG_WRONLY
 #endif
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 4)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 4)
 
-#error *** CFG_ERROR: seven segment display at PIO4 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO4 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 5)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 5)
 
-#error *** CFG_ERROR: seven segment display at PIO5 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO5 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 6)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 6)
 
-#error *** CFG_ERROR: seven segment display at PIO6 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO6 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 7)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 7)
 
-#error *** CFG_ERROR: seven segment display at PIO7 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO7 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 8)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 8)
 
-#error *** CFG_ERROR: seven segment display at PIO8 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO8 not supported, expand your config.h
 
-#elif  (CFG_NIOS_CPU_SEVENSEG_PIO == 9)
+#elif  (CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO == 9)
 
-#error *** CFG_ERROR: seven segment display at PIO9 not supported, expand your config.h
+#error *** CONFIG_SYS_ERROR: seven segment display at PIO9 not supported, expand your config.h
 
 #else
-#error *** CFG_ERROR: you have to set CFG_NIOS_CPU_SEVENSEG_PIO in right case
+#error *** CONFIG_SYS_ERROR: you have to set CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO in right case
 #endif
 
 #define        CONFIG_SEVENSEG                 1 /* enable seven segment led driver */
 #define        SEVENSEG_DIGIT_G                (1 << 0) /* bit 0 is segment G */
 #define        SEVENSEG_DIGIT_DP               (1 << 7) /* bit 7 is decimal point */
 
-#endif /* CFG_NIOS_CPU_PIO_NUMS */
+#endif /* CONFIG_SYS_NIOS_CPU_PIO_NUMS */
 
 /*
  * BOOTP options
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define        CFG_LONGHELP                        /* undef to save memory     */
-#define        CFG_PROMPT              "DK1S10 > " /* Monitor Command Prompt   */
-#define        CFG_CBSIZE              256         /* Console I/O Buffer Size  */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16          /* max number of command args*/
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size */
+#define        CONFIG_SYS_LONGHELP                         /* undef to save memory     */
+#define        CONFIG_SYS_PROMPT               "DK1S10 > " /* Monitor Command Prompt   */
+#define        CONFIG_SYS_CBSIZE               256         /* Console I/O Buffer Size  */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16          /* max number of command args*/
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size */
 
 /* Default load address        */
-#if    (CFG_SRAM_SIZE != 0)
+#if    (CONFIG_SYS_SRAM_SIZE != 0)
 
 /* default in SRAM */
-#define        CFG_LOAD_ADDR           CFG_SRAM_BASE
+#define        CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SRAM_BASE
 
-#elif  (CFG_SDRAM_SIZE != 0)
+#elif  (CONFIG_SYS_SDRAM_SIZE != 0)
 
 /* default in SDRAM */
-#if    (CFG_SDRAM_BASE == CFG_NIOS_CPU_VEC_BASE)
-#define        CFG_LOAD_ADDR           (CFG_SDRAM_BASE + CFG_NIOS_CPU_VEC_SIZE)
+#if    (CONFIG_SYS_SDRAM_BASE == CONFIG_SYS_NIOS_CPU_VEC_BASE)
+#define        CONFIG_SYS_LOAD_ADDR            (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_NIOS_CPU_VEC_SIZE)
 #else
-#define        CFG_LOAD_ADDR           CFG_SDRAM_BASE
+#define        CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SDRAM_BASE
 #endif
 
 #else
-#undef CFG_LOAD_ADDR           /* force error break */
+#undef CONFIG_SYS_LOAD_ADDR            /* force error break */
 #endif
 
 
 /* MEM test area */
-#if    (CFG_SDRAM_SIZE != 0)
+#if    (CONFIG_SYS_SDRAM_SIZE != 0)
 
 /* SDRAM begin to stack area (1MB stack) */
-#if    (CFG_SDRAM_BASE == CFG_NIOS_CPU_VEC_BASE)
-#define        CFG_MEMTEST_START       (CFG_SDRAM_BASE + CFG_NIOS_CPU_VEC_SIZE)
-#define        CFG_MEMTEST_END         (CFG_INIT_SP - (1024 * 1024))
+#if    (CONFIG_SYS_SDRAM_BASE == CONFIG_SYS_NIOS_CPU_VEC_BASE)
+#define        CONFIG_SYS_MEMTEST_START        (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_NIOS_CPU_VEC_SIZE)
+#define        CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_INIT_SP - (1024 * 1024))
 #else
-#define        CFG_MEMTEST_START       CFG_SDRAM_BASE
-#define        CFG_MEMTEST_END         (CFG_INIT_SP - (1024 * 1024))
+#define        CONFIG_SYS_MEMTEST_START        CONFIG_SYS_SDRAM_BASE
+#define        CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_INIT_SP - (1024 * 1024))
 #endif
 
 #else
-#undef CFG_MEMTEST_START       /* force error break */
-#undef CFG_MEMTEST_END
+#undef CONFIG_SYS_MEMTEST_START        /* force error break */
+#undef CONFIG_SYS_MEMTEST_END
 #endif
 
 /*
index 0115699416bbbd99585b506c29ed264217fb6ab8..87a8a5438078b600f3352420b4aade84d9888eb0 100644 (file)
  * Here we must define CPU dependencies. Any unsupported option have to
  * be defined with zero, example CPU without data cache / OCI:
  *
- *     #define CFG_NIOS_CPU_ICACHE     4096
- *     #define CFG_NIOS_CPU_DCACHE     0
- *     #define CFG_NIOS_CPU_OCI_BASE   0
- *     #define CFG_NIOS_CPU_OCI_SIZE   0
+ *     #define CONFIG_SYS_NIOS_CPU_ICACHE      4096
+ *     #define CONFIG_SYS_NIOS_CPU_DCACHE      0
+ *     #define CONFIG_SYS_NIOS_CPU_OCI_BASE    0
+ *     #define CONFIG_SYS_NIOS_CPU_OCI_SIZE    0
  */
 
 /* CPU core */
-#define        CFG_NIOS_CPU_CLK        75000000        /* NIOS CPU clock       */
-#define        CFG_NIOS_CPU_ICACHE     (0)             /* instruction cache    */
-#define        CFG_NIOS_CPU_DCACHE     (0)             /* data cache           */
-#define        CFG_NIOS_CPU_REG_NUMS   512             /* number of register   */
-#define        CFG_NIOS_CPU_MUL        0               /* 16x16 MUL:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_CLK 75000000        /* NIOS CPU clock       */
+#define        CONFIG_SYS_NIOS_CPU_ICACHE      (0)             /* instruction cache    */
+#define        CONFIG_SYS_NIOS_CPU_DCACHE      (0)             /* data cache           */
+#define        CONFIG_SYS_NIOS_CPU_REG_NUMS    512             /* number of register   */
+#define        CONFIG_SYS_NIOS_CPU_MUL 0               /* 16x16 MUL:   no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_MSTEP      1               /* 16x16 MSTEP: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_MSTEP       1               /* 16x16 MSTEP: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_STACK      0x02000000      /* stack top    addr    */
-#define        CFG_NIOS_CPU_VEC_BASE   0x01000000      /* IRQ vectors  addr    */
-#define        CFG_NIOS_CPU_VEC_SIZE   256             /*              size    */
-#define        CFG_NIOS_CPU_VEC_NUMS   64              /*              numbers */
-#define        CFG_NIOS_CPU_RST_VECT   0x00000000      /* RESET vector addr    */
-#define        CFG_NIOS_CPU_DBG_CORE   0               /* CPU debug:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_STACK       0x02000000      /* stack top    addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_BASE    0x01000000      /* IRQ vectors  addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_SIZE    256             /*              size    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_NUMS    64              /*              numbers */
+#define        CONFIG_SYS_NIOS_CPU_RST_VECT    0x00000000      /* RESET vector addr    */
+#define        CONFIG_SYS_NIOS_CPU_DBG_CORE    0               /* CPU debug:   no(0)   */
                                                /*              yes(1)  */
 
 /* The offset address in flash to check for the Nios signature "Ni".
  * (see GM_FlashExec in germs_monitor.s) */
-#define        CFG_NIOS_CPU_EXES_OFFS  0x0C
+#define        CONFIG_SYS_NIOS_CPU_EXES_OFFS   0x0C
 
 /* on-chip extensions */
-#undef CFG_NIOS_CPU_RAM_BASE                   /* on chip RAM  addr    */
-#undef CFG_NIOS_CPU_RAM_SIZE                   /* 64 KB        size    */
+#undef CONFIG_SYS_NIOS_CPU_RAM_BASE                    /* on chip RAM  addr    */
+#undef CONFIG_SYS_NIOS_CPU_RAM_SIZE                    /* 64 KB        size    */
 
-#define        CFG_NIOS_CPU_ROM_BASE   0x00000000      /* on chip ROM  addr    */
-#define        CFG_NIOS_CPU_ROM_SIZE   (2 * 1024)      /*  2 KB        size    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_BASE    0x00000000      /* on chip ROM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_SIZE    (2 * 1024)      /*  2 KB        size    */
 
-#undef CFG_NIOS_CPU_OCI_BASE                   /* OCI core     addr    */
-#undef CFG_NIOS_CPU_OCI_SIZE                   /*              size    */
+#undef CONFIG_SYS_NIOS_CPU_OCI_BASE                    /* OCI core     addr    */
+#undef CONFIG_SYS_NIOS_CPU_OCI_SIZE                    /*              size    */
 
 /* timer */
-#define        CFG_NIOS_CPU_TIMER_NUMS 1               /* number of timer      */
+#define        CONFIG_SYS_NIOS_CPU_TIMER_NUMS  1               /* number of timer      */
 
-#define        CFG_NIOS_CPU_TIMER0     0x00000840      /* TIMER0       addr    */
-#define        CFG_NIOS_CPU_TIMER0_IRQ 16              /*              IRQ     */
-#define        CFG_NIOS_CPU_TIMER0_PER 1000            /*  periode     usec    */
-#define        CFG_NIOS_CPU_TIMER0_AR  0               /*  always run: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0      0x00000840      /* TIMER0       addr    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_IRQ  16              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_PER  1000            /*  periode     usec    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_AR   0               /*  always run: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_FP  0               /*  fixed per:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_FP   0               /*  fixed per:  no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_SS  1               /*  snaphot:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_SS   1               /*  snaphot:    no(0)   */
                                                /*              yes(1)  */
 
 /* serial i/o */
-#define        CFG_NIOS_CPU_UART_NUMS  2               /* number of uarts      */
-
-#define        CFG_NIOS_CPU_UART0      0x00000800      /* UART0        addr    */
-#define        CFG_NIOS_CPU_UART0_IRQ  17              /*              IRQ     */
-#define        CFG_NIOS_CPU_UART0_BR   115200          /*  baudrate    var(0)  */
-#define        CFG_NIOS_CPU_UART0_DB   8               /*  data bit            */
-#define        CFG_NIOS_CPU_UART0_SB   2               /*  stop bit            */
-#define        CFG_NIOS_CPU_UART0_PA   0               /*  parity      none(0) */
+#define        CONFIG_SYS_NIOS_CPU_UART_NUMS   2               /* number of uarts      */
+
+#define        CONFIG_SYS_NIOS_CPU_UART0       0x00000800      /* UART0        addr    */
+#define        CONFIG_SYS_NIOS_CPU_UART0_IRQ   17              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_UART0_BR    115200          /*  baudrate    var(0)  */
+#define        CONFIG_SYS_NIOS_CPU_UART0_DB    8               /*  data bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_SB    2               /*  stop bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_PA    0               /*  parity      none(0) */
                                                /*              odd(1)  */
                                                /*              even(2) */
-#define        CFG_NIOS_CPU_UART0_HS   0               /*  handshake:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_HS    0               /*  handshake:  no(0)   */
                                                /*              crts(1) */
-#define        CFG_NIOS_CPU_UART0_EOP  0               /*  eop reg:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_EOP   0               /*  eop reg:    no(0)   */
                                                /*              yes(1)  */
 
-#define        CFG_NIOS_CPU_UART1      0x000008a0      /* UART1        addr    */
-#define        CFG_NIOS_CPU_UART1_IRQ  18              /*              IRQ     */
-#define        CFG_NIOS_CPU_UART1_BR   115200          /*  baudrate    var(0)  */
-#define        CFG_NIOS_CPU_UART1_DB   8               /*  data bit            */
-#define        CFG_NIOS_CPU_UART1_SB   1               /*  stop bit            */
-#define        CFG_NIOS_CPU_UART1_PA   0               /*  parity      none(0) */
+#define        CONFIG_SYS_NIOS_CPU_UART1       0x000008a0      /* UART1        addr    */
+#define        CONFIG_SYS_NIOS_CPU_UART1_IRQ   18              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_UART1_BR    115200          /*  baudrate    var(0)  */
+#define        CONFIG_SYS_NIOS_CPU_UART1_DB    8               /*  data bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART1_SB    1               /*  stop bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART1_PA    0               /*  parity      none(0) */
                                                /*              odd(1)  */
                                                /*              even(2) */
-#define        CFG_NIOS_CPU_UART1_HS   0               /*  handshake:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART1_HS    0               /*  handshake:  no(0)   */
                                                /*              crts(1) */
-#define        CFG_NIOS_CPU_UART1_EOP  0               /*  eop reg:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART1_EOP   0               /*  eop reg:    no(0)   */
                                                /*              yes(1)  */
 
 /* parallel i/o */
-#define        CFG_NIOS_CPU_PIO_NUMS   2               /* number of parports   */
+#define        CONFIG_SYS_NIOS_CPU_PIO_NUMS    2               /* number of parports   */
 
-#define        CFG_NIOS_CPU_PIO0       0x00000860      /* PIO0         addr    */
-#undef CFG_NIOS_CPU_PIO0_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO0_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO0_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0        0x00000860      /* PIO0         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO0_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO0_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO0_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO0_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO1       0x00000870      /* PIO1         addr    */
-#undef CFG_NIOS_CPU_PIO1_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO1_BITS  4               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO1_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1        0x00000870      /* PIO1         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO1_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_BITS   4               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO1_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO1_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO1_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
 /* IDE i/f */
-#define        CFG_NIOS_CPU_IDE_NUMS   1               /* number of IDE contr. */
-#define        CFG_NIOS_CPU_IDE0       0x00000900      /* IDE0         addr    */
-#define        CFG_NIOS_CPU_IDE0_IRQ   25              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_IDE_NUMS    1               /* number of IDE contr. */
+#define        CONFIG_SYS_NIOS_CPU_IDE0        0x00000900      /* IDE0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_IDE0_IRQ    25              /*              IRQ     */
 
 /* memory accessibility */
-#undef CFG_NIOS_CPU_SRAM_BASE                  /* board SRAM   addr    */
-#undef CFG_NIOS_CPU_SRAM_SIZE                  /*  1 MB        size    */
+#undef CONFIG_SYS_NIOS_CPU_SRAM_BASE                   /* board SRAM   addr    */
+#undef CONFIG_SYS_NIOS_CPU_SRAM_SIZE                   /*  1 MB        size    */
 
-#define        CFG_NIOS_CPU_SDRAM_BASE 0x01000000      /* board SDRAM  addr    */
-#define        CFG_NIOS_CPU_SDRAM_SIZE (16*1024*1024)  /* 16 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_BASE  0x01000000      /* board SDRAM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_SIZE  (16*1024*1024)  /* 16 MB        size    */
 
-#define        CFG_NIOS_CPU_FLASH_BASE 0x00800000      /* board Flash  addr    */
-#define        CFG_NIOS_CPU_FLASH_SIZE (8*1024*1024)   /*  8 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_BASE  0x00800000      /* board Flash  addr    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_SIZE  (8*1024*1024)   /*  8 MB        size    */
 
 /* LAN */
-#define        CFG_NIOS_CPU_LAN_NUMS   1               /* number of LAN i/f    */
+#define        CONFIG_SYS_NIOS_CPU_LAN_NUMS    1               /* number of LAN i/f    */
 
-#define        CFG_NIOS_CPU_LAN0_BASE  0x00010000      /* LAN0         addr    */
-#define        CFG_NIOS_CPU_LAN0_OFFS  0x0300          /*              offset  */
-#define        CFG_NIOS_CPU_LAN0_IRQ   20              /*              IRQ     */
-#define        CFG_NIOS_CPU_LAN0_BUSW  32              /*              buswidth*/
-#define        CFG_NIOS_CPU_LAN0_TYPE  0               /*      smc91111(0)     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BASE   0x00010000      /* LAN0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_OFFS   0x0300          /*              offset  */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_IRQ    20              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BUSW   32              /*              buswidth*/
+#define        CONFIG_SYS_NIOS_CPU_LAN0_TYPE   0               /*      smc91111(0)     */
                                                /*      cs8900(1)       */
                                                /* ex:  openmac(2)      */
                                                /* ex:  alteramac(3)    */
 
 /* symbolic redefinition (undef, if not present) */
-#define        CFG_NIOS_CPU_TICK_TIMER         0       /* TIMER0: tick (needed)*/
-#undef CFG_NIOS_CPU_USER_TIMER                 /* TIMERx: users choice */
-
-#define        CFG_NIOS_CPU_CFPOWER_PIO        0       /* PIO0: CF power/sw.   */
-#define        CFG_NIOS_CPU_BUTTON_PIO         1       /* PIO1: buttons        */
-#undef CFG_NIOS_CPU_LCD_PIO                    /* PIOx: ASCII LCD      */
-#undef CFG_NIOS_CPU_LED_PIO                    /* PIOx: LED bar        */
-#undef CFG_NIOS_CPU_SEVENSEG_PIO               /* PIOx: 7-seg. display */
-#undef CFG_NIOS_CPU_RECONF_PIO                 /* PIOx: reconf pin     */
-#undef CFG_NIOS_CPU_CFPRESENT_PIO              /* PIOx: CF present IRQ */
-#undef CFG_NIOS_CPU_CFATASEL_PIO               /* PIOx: CF ATA select  */
+#define        CONFIG_SYS_NIOS_CPU_TICK_TIMER          0       /* TIMER0: tick (needed)*/
+#undef CONFIG_SYS_NIOS_CPU_USER_TIMER                  /* TIMERx: users choice */
+
+#define        CONFIG_SYS_NIOS_CPU_CFPOWER_PIO 0       /* PIO0: CF power/sw.   */
+#define        CONFIG_SYS_NIOS_CPU_BUTTON_PIO          1       /* PIO1: buttons        */
+#undef CONFIG_SYS_NIOS_CPU_LCD_PIO                     /* PIOx: ASCII LCD      */
+#undef CONFIG_SYS_NIOS_CPU_LED_PIO                     /* PIOx: LED bar        */
+#undef CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO                /* PIOx: 7-seg. display */
+#undef CONFIG_SYS_NIOS_CPU_RECONF_PIO                  /* PIOx: reconf pin     */
+#undef CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO               /* PIOx: CF present IRQ */
+#undef CONFIG_SYS_NIOS_CPU_CFATASEL_PIO                /* PIOx: CF ATA select  */
 
 #endif /* __CONFIG_DK1S10_MTX_LDK_20_H */
index 8541a119f76870c913015acefce4cb18adcd0384..ced4ef281cef182c87b89d3bcf3280ecf379196a 100644 (file)
@@ -29,6 +29,6 @@
  *
  * !!! TODO !!! TODO !!!
  */
-#error *** CFG_ERROR: DK1S10_safe_32 have to be defined (use DK1S10_standard_32 as template)
+#error *** CONFIG_SYS_ERROR: DK1S10_safe_32 have to be defined (use DK1S10_standard_32 as template)
 
 #endif /* __CONFIG_DK1S10_SAFE_32_H */
index b83c31592a4acc1ef600e7291dddbf50f12b48c3..e6ccaf57ab0aa7cd11fde0718abd2aec1de30105 100644 (file)
  * Here we must define CPU dependencies. Any unsupported option have to
  * be defined with zero, example CPU without data cache / OCI:
  *
- *     #define CFG_NIOS_CPU_ICACHE     4096
- *     #define CFG_NIOS_CPU_DCACHE     0
- *     #define CFG_NIOS_CPU_OCI_BASE   0
- *     #define CFG_NIOS_CPU_OCI_SIZE   0
+ *     #define CONFIG_SYS_NIOS_CPU_ICACHE      4096
+ *     #define CONFIG_SYS_NIOS_CPU_DCACHE      0
+ *     #define CONFIG_SYS_NIOS_CPU_OCI_BASE    0
+ *     #define CONFIG_SYS_NIOS_CPU_OCI_SIZE    0
  */
 
 /* CPU core */
-#define        CFG_NIOS_CPU_CLK        50000000        /* NIOS CPU clock       */
-#define        CFG_NIOS_CPU_ICACHE     (4 * 1024)      /* instruction cache    */
-#define        CFG_NIOS_CPU_DCACHE     (4 * 1024)      /* data cache           */
-#define        CFG_NIOS_CPU_REG_NUMS   256             /* number of register   */
-#define        CFG_NIOS_CPU_MUL        0               /* 16x16 MUL:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_CLK 50000000        /* NIOS CPU clock       */
+#define        CONFIG_SYS_NIOS_CPU_ICACHE      (4 * 1024)      /* instruction cache    */
+#define        CONFIG_SYS_NIOS_CPU_DCACHE      (4 * 1024)      /* data cache           */
+#define        CONFIG_SYS_NIOS_CPU_REG_NUMS    256             /* number of register   */
+#define        CONFIG_SYS_NIOS_CPU_MUL 0               /* 16x16 MUL:   no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_MSTEP      1               /* 16x16 MSTEP: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_MSTEP       1               /* 16x16 MSTEP: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_STACK      0x008fff00      /* stack top    addr    */
-#define        CFG_NIOS_CPU_VEC_BASE   0x008fff00      /* IRQ vectors  addr    */
-#define        CFG_NIOS_CPU_VEC_SIZE   256             /*              size    */
-#define        CFG_NIOS_CPU_VEC_NUMS   64              /*              numbers */
-#define        CFG_NIOS_CPU_RST_VECT   0x00920000      /* RESET vector addr    */
-#define        CFG_NIOS_CPU_DBG_CORE   0               /* CPU debug:   no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_STACK       0x008fff00      /* stack top    addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_BASE    0x008fff00      /* IRQ vectors  addr    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_SIZE    256             /*              size    */
+#define        CONFIG_SYS_NIOS_CPU_VEC_NUMS    64              /*              numbers */
+#define        CONFIG_SYS_NIOS_CPU_RST_VECT    0x00920000      /* RESET vector addr    */
+#define        CONFIG_SYS_NIOS_CPU_DBG_CORE    0               /* CPU debug:   no(0)   */
                                                /*              yes(1)  */
 
 /* on-chip extensions */
-#define        CFG_NIOS_CPU_RAM_BASE   0x00900000      /* on chip RAM  addr    */
-#define        CFG_NIOS_CPU_RAM_SIZE   (64 * 1024)     /* 64 KB        size    */
+#define        CONFIG_SYS_NIOS_CPU_RAM_BASE    0x00900000      /* on chip RAM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_RAM_SIZE    (64 * 1024)     /* 64 KB        size    */
 
-#define        CFG_NIOS_CPU_ROM_BASE   0x00920000      /* on chip ROM  addr    */
-#define        CFG_NIOS_CPU_ROM_SIZE   (2 * 1024)      /*  2 KB        size    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_BASE    0x00920000      /* on chip ROM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_ROM_SIZE    (2 * 1024)      /*  2 KB        size    */
 
-#define        CFG_NIOS_CPU_OCI_BASE   0x00920800      /* OCI core     addr    */
-#define        CFG_NIOS_CPU_OCI_SIZE   256             /*              size    */
+#define        CONFIG_SYS_NIOS_CPU_OCI_BASE    0x00920800      /* OCI core     addr    */
+#define        CONFIG_SYS_NIOS_CPU_OCI_SIZE    256             /*              size    */
 
 /* timer */
-#define        CFG_NIOS_CPU_TIMER_NUMS 2               /* number of timer      */
+#define        CONFIG_SYS_NIOS_CPU_TIMER_NUMS  2               /* number of timer      */
 
-#define        CFG_NIOS_CPU_TIMER0     0x00920940      /* TIMER0       addr    */
-#define        CFG_NIOS_CPU_TIMER0_IRQ 16              /*              IRQ     */
-#define        CFG_NIOS_CPU_TIMER0_PER 1000            /*  periode     usec    */
-#define        CFG_NIOS_CPU_TIMER0_AR  0               /*  always run: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0      0x00920940      /* TIMER0       addr    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_IRQ  16              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_PER  1000            /*  periode     usec    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_AR   0               /*  always run: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_FP  0               /*  fixed per:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_FP   0               /*  fixed per:  no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER0_SS  1               /*  snaphot:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER0_SS   1               /*  snaphot:    no(0)   */
                                                /*              yes(1)  */
 
-#define        CFG_NIOS_CPU_TIMER1     0x009209e0      /* TIMER1       addr    */
-#define        CFG_NIOS_CPU_TIMER1_IRQ 50              /*              IRQ     */
-#define        CFG_NIOS_CPU_TIMER1_PER 10000           /*  periode     usec    */
-#define        CFG_NIOS_CPU_TIMER1_AR  1               /*  always run: no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1      0x009209e0      /* TIMER1       addr    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_IRQ  50              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_PER  10000           /*  periode     usec    */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_AR   1               /*  always run: no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER1_FP  1               /*  fixed per:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_FP   1               /*  fixed per:  no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_TIMER1_SS  0               /*  snaphot:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_TIMER1_SS   0               /*  snaphot:    no(0)   */
                                                /*              yes(1)  */
 
 /* serial i/o */
-#define        CFG_NIOS_CPU_UART_NUMS  1               /* number of uarts      */
+#define        CONFIG_SYS_NIOS_CPU_UART_NUMS   1               /* number of uarts      */
 
-#define        CFG_NIOS_CPU_UART0      0x00920900      /* UART0        addr    */
-#define        CFG_NIOS_CPU_UART0_IRQ  25              /*              IRQ     */
-#define        CFG_NIOS_CPU_UART0_BR   115200          /*  baudrate    var(0)  */
-#define        CFG_NIOS_CPU_UART0_DB   8               /*  data bit            */
-#define        CFG_NIOS_CPU_UART0_SB   1               /*  stop bit            */
-#define        CFG_NIOS_CPU_UART0_PA   0               /*  parity      none(0) */
+#define        CONFIG_SYS_NIOS_CPU_UART0       0x00920900      /* UART0        addr    */
+#define        CONFIG_SYS_NIOS_CPU_UART0_IRQ   25              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_UART0_BR    115200          /*  baudrate    var(0)  */
+#define        CONFIG_SYS_NIOS_CPU_UART0_DB    8               /*  data bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_SB    1               /*  stop bit            */
+#define        CONFIG_SYS_NIOS_CPU_UART0_PA    0               /*  parity      none(0) */
                                                /*              odd(1)  */
                                                /*              even(2) */
-#define        CFG_NIOS_CPU_UART0_HS   0               /*  handshake:  no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_HS    0               /*  handshake:  no(0)   */
                                                /*              crts(1) */
-#define        CFG_NIOS_CPU_UART0_EOP  0               /*  eop reg:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_UART0_EOP   0               /*  eop reg:    no(0)   */
                                                /*              yes(1)  */
 
 /* parallel i/o */
-#define        CFG_NIOS_CPU_PIO_NUMS   8               /* number of parports   */
+#define        CONFIG_SYS_NIOS_CPU_PIO_NUMS    8               /* number of parports   */
 
-#define        CFG_NIOS_CPU_PIO0       0x00920960      /* PIO0         addr    */
-#define        CFG_NIOS_CPU_PIO0_IRQ   40              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO0_BITS  4               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO0_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0        0x00920960      /* PIO0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_IRQ    40              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_BITS   4               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO0_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO0_EDGE  3               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_EDGE   3               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO0_ITYPE 2               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO0_ITYPE  2               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO1       0x00920970      /* PIO1         addr    */
-#undef CFG_NIOS_CPU_PIO1_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO1_BITS  11              /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO1_TYPE  0               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1        0x00920970      /* PIO1         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO1_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_BITS   11              /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_TYPE   0               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO1_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO1_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO1_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO1_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO2       0x00920980      /* PIO2         addr    */
-#undef CFG_NIOS_CPU_PIO2_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO2_BITS  8               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO2_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2        0x00920980      /* PIO2         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO2_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_BITS   8               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO2_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO2_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO2_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO2_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO3       0x00920990      /* PIO3         addr    */
-#undef CFG_NIOS_CPU_PIO3_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO3_BITS  16              /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO3_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3        0x00920990      /* PIO3         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO3_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_BITS   16              /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO3_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO3_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO3_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO3_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO4       0x009209a0      /* PIO4         addr    */
-#undef CFG_NIOS_CPU_PIO4_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO4_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO4_TYPE  0               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4        0x009209a0      /* PIO4         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO4_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_TYPE   0               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO4_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO4_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO4_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO4_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO5       0x009209b0      /* PIO5         addr    */
-#define        CFG_NIOS_CPU_PIO5_IRQ   35              /*              IRQ     */
-#define        CFG_NIOS_CPU_PIO5_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO5_TYPE  2               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5        0x009209b0      /* PIO5         addr    */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_IRQ    35              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_TYPE   2               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO5_CAP   1               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_CAP    1               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO5_EDGE  3               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_EDGE   3               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO5_ITYPE 2               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO5_ITYPE  2               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO6       0x009209c0      /* PIO6         addr    */
-#undef CFG_NIOS_CPU_PIO6_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO6_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO6_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6        0x009209c0      /* PIO6         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO6_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO6_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO6_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO6_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO6_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
-#define        CFG_NIOS_CPU_PIO7       0x009209d0      /* PIO7         addr    */
-#undef CFG_NIOS_CPU_PIO7_IRQ                   /*              w/o IRQ */
-#define        CFG_NIOS_CPU_PIO7_BITS  1               /*  number  of  bits    */
-#define        CFG_NIOS_CPU_PIO7_TYPE  1               /*  io type:    tris(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7        0x009209d0      /* PIO7         addr    */
+#undef CONFIG_SYS_NIOS_CPU_PIO7_IRQ                    /*              w/o IRQ */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_BITS   1               /*  number  of  bits    */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_TYPE   1               /*  io type:    tris(0) */
                                                /*              out(1)  */
                                                /*              in(2)   */
-#define        CFG_NIOS_CPU_PIO7_CAP   0               /*  capture:    no(0)   */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_CAP    0               /*  capture:    no(0)   */
                                                /*              yes(1)  */
-#define        CFG_NIOS_CPU_PIO7_EDGE  0               /*  edge type:  none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_EDGE   0               /*  edge type:  none(0) */
                                                /*              fall(1) */
                                                /*              rise(2) */
                                                /*              any(3)  */
-#define        CFG_NIOS_CPU_PIO7_ITYPE 0               /*  IRQ type:   none(0) */
+#define        CONFIG_SYS_NIOS_CPU_PIO7_ITYPE  0               /*  IRQ type:   none(0) */
                                                /*              level(1)*/
                                                /*              edge(2) */
 
 /* IDE i/f */
-#define        CFG_NIOS_CPU_IDE_NUMS   1               /* number of IDE contr. */
-#define        CFG_NIOS_CPU_IDE0       0x00920a00      /* IDE0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_IDE_NUMS    1               /* number of IDE contr. */
+#define        CONFIG_SYS_NIOS_CPU_IDE0        0x00920a00      /* IDE0         addr    */
 
 /* memory accessibility */
-#define        CFG_NIOS_CPU_SRAM_BASE  0x00800000      /* board SRAM   addr    */
-#define        CFG_NIOS_CPU_SRAM_SIZE  (1024 * 1024)   /*  1 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_SRAM_BASE   0x00800000      /* board SRAM   addr    */
+#define        CONFIG_SYS_NIOS_CPU_SRAM_SIZE   (1024 * 1024)   /*  1 MB        size    */
 
-#define        CFG_NIOS_CPU_SDRAM_BASE 0x01000000      /* board SDRAM  addr    */
-#define        CFG_NIOS_CPU_SDRAM_SIZE (16*1024*1024)  /* 16 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_BASE  0x01000000      /* board SDRAM  addr    */
+#define        CONFIG_SYS_NIOS_CPU_SDRAM_SIZE  (16*1024*1024)  /* 16 MB        size    */
 
-#define        CFG_NIOS_CPU_FLASH_BASE 0x00000000      /* board Flash  addr    */
-#define        CFG_NIOS_CPU_FLASH_SIZE (8*1024*1024)   /*  8 MB        size    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_BASE  0x00000000      /* board Flash  addr    */
+#define        CONFIG_SYS_NIOS_CPU_FLASH_SIZE  (8*1024*1024)   /*  8 MB        size    */
 
 /* LAN */
-#define        CFG_NIOS_CPU_LAN_NUMS   1               /* number of LAN i/f    */
+#define        CONFIG_SYS_NIOS_CPU_LAN_NUMS    1               /* number of LAN i/f    */
 
-#define        CFG_NIOS_CPU_LAN0_BASE  0x00910000      /* LAN0         addr    */
-#define        CFG_NIOS_CPU_LAN0_OFFS  0x0300          /*              offset  */
-#define        CFG_NIOS_CPU_LAN0_IRQ   30              /*              IRQ     */
-#define        CFG_NIOS_CPU_LAN0_BUSW  32              /*              buswidth*/
-#define        CFG_NIOS_CPU_LAN0_TYPE  0               /*      smc91111(0)     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BASE   0x00910000      /* LAN0         addr    */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_OFFS   0x0300          /*              offset  */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_IRQ    30              /*              IRQ     */
+#define        CONFIG_SYS_NIOS_CPU_LAN0_BUSW   32              /*              buswidth*/
+#define        CONFIG_SYS_NIOS_CPU_LAN0_TYPE   0               /*      smc91111(0)     */
                                                /*      cs8900(1)       */
                                                /* ex:  alteramac(2)    */
 
 /* symbolic redefinition (undef, if not present) */
-#define        CFG_NIOS_CPU_USER_TIMER         0       /* TIMER0: users choice */
-#define        CFG_NIOS_CPU_TICK_TIMER         1       /* TIMER1: tick (needed)*/
+#define        CONFIG_SYS_NIOS_CPU_USER_TIMER          0       /* TIMER0: users choice */
+#define        CONFIG_SYS_NIOS_CPU_TICK_TIMER          1       /* TIMER1: tick (needed)*/
 
-#define        CFG_NIOS_CPU_BUTTON_PIO         0       /* PIO0: buttons        */
-#define        CFG_NIOS_CPU_LCD_PIO            1       /* PIO1: ASCII LCD      */
-#define        CFG_NIOS_CPU_LED_PIO            2       /* PIO2: LED bar        */
-#define        CFG_NIOS_CPU_SEVENSEG_PIO       3       /* PIO3: 7-seg. display */
-#define        CFG_NIOS_CPU_RECONF_PIO         4       /* PIO4: reconf pin     */
-#define        CFG_NIOS_CPU_CFPRESENT_PIO      5       /* PIO5: CF present IRQ */
-#define        CFG_NIOS_CPU_CFPOWER_PIO        6       /* PIO6: CF power/sw.   */
-#define        CFG_NIOS_CPU_CFATASEL_PIO       7       /* PIO7: CF ATA select  */
+#define        CONFIG_SYS_NIOS_CPU_BUTTON_PIO          0       /* PIO0: buttons        */
+#define        CONFIG_SYS_NIOS_CPU_LCD_PIO             1       /* PIO1: ASCII LCD      */
+#define        CONFIG_SYS_NIOS_CPU_LED_PIO             2       /* PIO2: LED bar        */
+#define        CONFIG_SYS_NIOS_CPU_SEVENSEG_PIO        3       /* PIO3: 7-seg. display */
+#define        CONFIG_SYS_NIOS_CPU_RECONF_PIO          4       /* PIO4: reconf pin     */
+#define        CONFIG_SYS_NIOS_CPU_CFPRESENT_PIO       5       /* PIO5: CF present IRQ */
+#define        CONFIG_SYS_NIOS_CPU_CFPOWER_PIO 6       /* PIO6: CF power/sw.   */
+#define        CONFIG_SYS_NIOS_CPU_CFATASEL_PIO        7       /* PIO7: CF ATA select  */
 
 #endif /* __CONFIG_DK1S10_STANDARD_32_H */
index df9bc7af46d4cea58898fbc294aecd990c931dfd..0ff4f7dfe6c549c64ce9336be66285dfd94d0fd1 100644 (file)
@@ -50,7 +50,7 @@
 
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
@@ -82,7 +82,7 @@
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818            /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000500 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000500 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #undef CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #undef CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 #define FLASH_BASE0_PRELIM     0xFFC00000      /* FLASH bank #0        */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* test-only */
-#define CFG_JFFS2_FIRST_BANK   0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS    1           /* ! second bank contains U-Boot */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
 #endif
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
-
-#if (CFG_MONITOR_BASE < FLASH_BASE0_PRELIM)
-# define CFG_RAMBOOT           1
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
+
+#if (CONFIG_SYS_MONITOR_BASE < FLASH_BASE0_PRELIM)
+# define CONFIG_SYS_RAMBOOT            1
 #else
-# undef CFG_RAMBOOT
+# undef CONFIG_SYS_RAMBOOT
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_SIZE                0x700   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
 #define RTC_BA         0xF0000500          /* RTC Base Address                 */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 #if 0 /* test-only */
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
 #endif
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization             */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
-#define CFG_FPGA_XC95XL                1           /* using Xilinx XC95XL CPLD      */
-#define CFG_FPGA_MAX_SIZE      32*1024     /* 32kByte is enough for CPLD    */
+#define CONFIG_SYS_FPGA_XC95XL         1           /* using Xilinx XC95XL CPLD      */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024     /* 32kByte is enough for CPLD    */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* JTAG TMS pin (ppc output)     */
-#define CFG_FPGA_CLK           0x02000000  /* JTAG TCK pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
-#define CFG_FPGA_INIT          0x00010000  /* unused (ppc input)            */
-#define CFG_FPGA_DONE          0x00008000  /* JTAG TDI->TDO pin (ppc input) */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* JTAG TMS pin (ppc output)     */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* JTAG TCK pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* unused (ppc input)            */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* JTAG TDI->TDO pin (ppc input) */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
 /* GPIO Output:                OSR=00, ISR=00, TSR=00, TCR=1 */
 /* Alt. Funtion Input: OSR=00, ISR=01, TSR=00, TCR=0 */
 /* Alt. Funtion Output: OSR=01, ISR=00, TSR=00, TCR=1 */
-#define CFG_GPIO0_OSRH         0x40000540  /*  0 ... 15 */
-#define CFG_GPIO0_OSRL         0x00000110  /* 16 ... 31 */
-#define CFG_GPIO0_ISR1H                0x00000000  /*  0 ... 15 */
-#define CFG_GPIO0_ISR1L                0x14000045  /* 16 ... 31 */
-#define CFG_GPIO0_TSRH         0x00000000  /*  0 ... 15 */
-#define CFG_GPIO0_TSRL         0x00000000  /* 16 ... 31 */
-#define CFG_GPIO0_TCR          0xF7FE0014  /*  0 ... 31 */
+#define CONFIG_SYS_GPIO0_OSRH          0x40000540  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_ISR1L         0x14000045  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_TCR           0xF7FE0014  /*  0 ... 31 */
 
 /*
  * Internal Definitions
index b93e2a8ab4c1371c3d82c892c922b146e12ead13..939e216051cb59c1e564dab48fbd06f438e46bd2 100644 (file)
@@ -52,7 +52,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818            /* BQ3285 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000080 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000080 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_EXT_SERIAL_CLOCK   11059200  /* use external serial clock  */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    11059200  /* use external serial clock  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_BOOTDELAY   0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0404 /* PCI Device ID: CPCI-ISER4    */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xff000001      /* 16MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffe00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffe00001      /* 2MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0404  /* PCI Device ID: CPCI-ISER4    */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xff000001      /* 16MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffe00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffe00001      /* 2MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #undef CONFIG_IDE_RESET                /* no reset for ide supported   */
 
-#define CFG_IDE_MAXBUS         1               /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFD0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFD0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC08) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* use EEPROM for environment vars */
 #define CONFIG_ENV_OFFSET              0x000   /* environment starts at the beginning of the EEPROM */
 #define FPGA_MODE_REG  (DUART_BA+0x80)     /* FPGA Mode Register               */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP  0x92015480
-#define CFG_EBC_PB0CR  FLASH0_BA | 0x5A000 /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP   0x92015480
+#define CONFIG_SYS_EBC_PB0CR   FLASH0_BA | 0x5A000 /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP  0x92015480
-#define CFG_EBC_PB1CR  FLASH1_BA | 0x5A000 /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP   0x92015480
+#define CONFIG_SYS_EBC_PB1CR   FLASH1_BA | 0x5A000 /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (CAN0) initialization                                         */
-#define CFG_EBC_PB2AP  0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR  CAN_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR   CAN_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (DUART) initialization                                                */
-#define CFG_EBC_PB3AP  0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR  DUART_BA | 0x18000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB3AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR   DUART_BA | 0x18000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 4 (CompactFlash IDE) initialization                             */
-#define CFG_EBC_PB4AP  0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB4CR  CF_BA | 0x1A000     /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB4AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB4CR   CF_BA | 0x1A000     /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 5 (SRAM) initialization                                         */
-#define CFG_EBC_PB5AP  0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB5CR  SRAM_BA | 0x1A000   /* BAS=0xF02,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB5AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB5CR   SRAM_BA | 0x1A000   /* BAS=0xF02,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 6 (DURAG Bus IO Space) initialization                           */
-#define CFG_EBC_PB6AP  0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB6CR  DURAG_IO_BA | 0x18000 /* BAS=0xF04,BS=1MB,BU=R/W,BW=8bit*/
+#define CONFIG_SYS_EBC_PB6AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB6CR   DURAG_IO_BA | 0x18000 /* BAS=0xF04,BS=1MB,BU=R/W,BW=8bit*/
 
 /* Memory Bank 7 (DURAG Bus Mem Space) initialization                          */
-#define CFG_EBC_PB7AP  0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB7CR  DURAG_MEM_BA | 0x18000 /* BAS=0xF05,BS=1MB,BU=R/W,BW=8bit */
+#define CONFIG_SYS_EBC_PB7AP   0x010053C0   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB7CR   DURAG_MEM_BA | 0x18000 /* BAS=0xF05,BS=1MB,BU=R/W,BW=8bit */
 
 
 /*-----------------------------------------------------------------------
  */
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
index c408e43ec860c8d57a6212cbd8306d510ecb9609..508a0cae3d830c2fda8e5fa7f8fb447a328a9563 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_MONITOR_LEN                (384 * 1024)    /* Reserve 384 kB for Monitor */
-#define CFG_MALLOC_LEN         (8 << 20)       /* Reserve 8 MB for malloc()  */
-
-#define CFG_BOOT_BASE_ADDR     0xf0000000
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_FLASH_BASE         0xfc000000      /* start of FLASH       */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_NAND0_ADDR         0xd0000000      /* NAND Flash           */
-#define CFG_NAND1_ADDR         0xd0100000      /* NAND Flash           */
-#define CFG_OCM_BASE           0xe0010000      /* ocm                  */
-#define CFG_PCI_BASE           0xe0000000      /* Internal PCI regs    */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory    */
-#define CFG_PCI_MEMBASE1       CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2       CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3       CFG_PCI_MEMBASE2 + 0x10000000
-#define CFG_PCI_IOBASE          0xe8000000
+#define CONFIG_SYS_MONITOR_LEN         (384 * 1024)    /* Reserve 384 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (8 << 20)       /* Reserve 8 MB for malloc()  */
+
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xf0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_FLASH_BASE          0xfc000000      /* start of FLASH       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_NAND0_ADDR          0xd0000000      /* NAND Flash           */
+#define CONFIG_SYS_NAND1_ADDR          0xd0100000      /* NAND Flash           */
+#define CONFIG_SYS_OCM_BASE            0xe0010000      /* ocm                  */
+#define CONFIG_SYS_PCI_BASE            0xe0000000      /* Internal PCI regs    */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory    */
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_PCI_IOBASE          0xe8000000
 
 
 /* Don't change either of these */
-#define CFG_PERIPHERAL_BASE    0xef600000      /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000      /* internal peripherals */
 
-#define CFG_USB2D0_BASE                0xe0000100
-#define CFG_USB_DEVICE         0xe0000000
-#define CFG_USB_HOST           0xe0000400
+#define CONFIG_SYS_USB2D0_BASE         0xe0000100
+#define CONFIG_SYS_USB_DEVICE          0xe0000000
+#define CONFIG_SYS_USB_HOST            0xe0000400
 
 /*
  * Initial RAM & stack pointer
  */
 /* 440EPx/440GRx have 16KB of internal SRAM, so no need for D-Cache    */
-#define CFG_INIT_RAM_OCM       1               /* OCM as init ram      */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_BASE    /* OCM                  */
+#define CONFIG_SYS_INIT_RAM_OCM        1               /* OCM as init ram      */
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_BASE     /* OCM                  */
 
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Serial Port
  */
-#undef CFG_EXT_SERIAL_CLOCK
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI     1
 #undef CONFIG_UART1_CONSOLE
 
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*
 #define CONFIG_SPLASH_SCREEN
 #define CONFIG_SPLASH_SCREEN_ALIGN
 #define CONFIG_VIDEO_BMP_GZIP              /* gzip compressed bmp images */
-#define CFG_VIDEO_LOGO_MAX_SIZE (4 << 20)  /* for decompressed img */
-#define CFG_DEFAULT_VIDEO_MODE 0x31a       /* 1280x1024,16bpp */
-#define CFG_CONSOLE_IS_IN_ENV
-#define CFG_ISA_IO CFG_PCI_IOBASE
+#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (4 << 20)  /* for decompressed img */
+#define CONFIG_SYS_DEFAULT_VIDEO_MODE 0x31a       /* 1280x1024,16bpp */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
+#define CONFIG_SYS_ISA_IO CONFIG_SYS_PCI_IOBASE
 
 /*
  * Environment
 /*
  * FLASH related
  */
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver       */
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks         */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks         */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip  */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)    */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)   */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)   */
 /* CFI_FLASH_PROTECTION make flash_protect hang sometimes -> disabled */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection      */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection      */
 
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash      */
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash      */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector        */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector   */
 
 /* Address and size of Redundant Environment Sector    */
 /*
  * DDR SDRAM
  */
-#define CFG_MBYTES_SDRAM        (1024) /* 512 MiB      TODO: remove    */
+#define CONFIG_SYS_MBYTES_SDRAM        (1024)  /* 512 MiB      TODO: remove    */
 #define CONFIG_DDR_DATA_EYE            /* use DDR2 optimization        */
-#define CFG_MEM_TOP_HIDE        (4 << 10) /* don't use last 4kbytes     */
+#define CONFIG_SYS_MEM_TOP_HIDE        (4 << 10) /* don't use last 4kbytes     */
                                        /* 440EPx errata CHIP 11        */
 #define CONFIG_SPD_EEPROM              /* Use SPD EEPROM for setup     */
 #define CONFIG_DDR_ECC                 /* Use ECC when available       */
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 #define CONFIG_I2C_CMD_TREE     1
 #define CONFIG_I2C_MULTI_BUS    1
 
-#define CFG_SPD_BUS_NUM         0
+#define CONFIG_SYS_SPD_BUS_NUM         0
 #define IIC1_MCP3021_ADDR      0x4d
 #define IIC1_USB2507_ADDR      0x2c
 #ifdef CONFIG_I2C_MULTI_BUS
-#define CFG_I2C_NOPROBES        {{1, IIC1_USB2507_ADDR}}
+#define CONFIG_SYS_I2C_NOPROBES        {{1, IIC1_USB2507_ADDR}}
 #endif
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    0x54
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_EEPROM_PAGE_WRITE_BITS 5
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW 0x01
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x54
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x01
 
-#define CFG_EEPROM_WREN         1
-#define CFG_I2C_BOOT_EEPROM_ADDR 0x52
+#define CONFIG_SYS_EEPROM_WREN         1
+#define CONFIG_SYS_I2C_BOOT_EEPROM_ADDR 0x52
 
 /*
  * standard dtt sensor configuration - bottom bit will determine local or
  * - remote temp sensor enabled, min set to 0 deg, max set to 70 deg
  */
 #define CONFIG_DTT_ADM1021
-#define CFG_DTT_ADM1021                { { 0x4c, 0x02, 0, 1, 70, 0, 1, 70, 0} }
+#define CONFIG_SYS_DTT_ADM1021         { { 0x4c, 0x02, 0, 1, 70, 0, 1, 70, 0} }
 
 /*
  * RTC stuff
  */
 #define CONFIG_RTC_DS1338
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 #undef CONFIG_BOOTARGS
 
 #define CONFIG_BOOTDELAY       3       /* autoboot after 5 seconds     */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #ifndef __ASSEMBLY__
 int du440_phy_addr(int devnum);
@@ -261,7 +261,7 @@ int du440_phy_addr(int devnum);
 #undef CONFIG_PHY_GIGE                 /* no GbE detection             */
 
 #define CONFIG_HAS_ETH0
-#define CFG_RX_ETH_BUFFER      128
+#define CONFIG_SYS_RX_ETH_BUFFER       128
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_HAS_ETH1                1       /* add support for "eth1addr"   */
@@ -272,12 +272,12 @@ int du440_phy_addr(int devnum);
  */
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_USB_STORAGE
-#define CFG_OHCI_BE_CONTROLLER
+#define CONFIG_SYS_OHCI_BE_CONTROLLER
 
-#define CFG_USB_OHCI_CPU_INIT  1
-#define CFG_USB_OHCI_REGS_BASE CFG_USB_HOST
-#define CFG_USB_OHCI_SLOT_NAME "du440"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  CONFIG_SYS_USB_HOST
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "du440"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
 
 /* Comment this out to enable USB 1.1 device */
 #define USB_2_0_DEVICE
@@ -317,25 +317,25 @@ int du440_phy_addr(int devnum);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
 /* Print Buffer Size */
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x00400000 /* memtest works on          */
-#define CFG_MEMTEST_END                0x3f000000 /* 4 ... < 1GB DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000 /* memtest works on          */
+#define CONFIG_SYS_MEMTEST_END         0x3f000000 /* 4 ... < 1GB DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000  /* default load address       */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000  /* default load address       */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
@@ -355,65 +355,65 @@ int du440_phy_addr(int devnum);
 #define CONFIG_PCI                     /* include pci support          */
 #define CONFIG_PCI_PNP                 /* do (not) pci plug-and-play   */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE       0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE*/
+#define CONFIG_SYS_PCI_TARGBASE       0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)     /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)     /* Initial Memory map for Linux */
 
 /*
  * External Bus Controller (EBC) Setup
  */
-#define CFG_FLASH              CFG_FLASH_BASE
+#define CONFIG_SYS_FLASH               CONFIG_SYS_FLASH_BASE
 
-#define CFG_CPLD_BASE          0xC0000000
-#define CFG_CPLD_RANGE         0x00000010
-#define CFG_DUMEM_BASE         0xC0100000
-#define CFG_DUMEM_RANGE                0x00100000
-#define CFG_DUIO_BASE          0xC0200000
-#define CFG_DUIO_RANGE         0x00010000
+#define CONFIG_SYS_CPLD_BASE           0xC0000000
+#define CONFIG_SYS_CPLD_RANGE          0x00000010
+#define CONFIG_SYS_DUMEM_BASE          0xC0100000
+#define CONFIG_SYS_DUMEM_RANGE         0x00100000
+#define CONFIG_SYS_DUIO_BASE           0xC0200000
+#define CONFIG_SYS_DUIO_RANGE          0x00010000
 
-#define CFG_NAND0_CS           2               /* NAND chip connected to CSx */
-#define CFG_NAND1_CS           3               /* NAND chip connected to CSx */
+#define CONFIG_SYS_NAND0_CS            2               /* NAND chip connected to CSx */
+#define CONFIG_SYS_NAND1_CS            3               /* NAND chip connected to CSx */
 /* Memory Bank 0 (NOR-FLASH) initialization */
-#define CFG_EBC_PB0AP          0x04017200
-#define CFG_EBC_PB0CR          (CFG_FLASH_BASE | 0xda000)
+#define CONFIG_SYS_EBC_PB0AP           0x04017200
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH_BASE | 0xda000)
 
 /* Memory Bank 1 (CPLD, 16 bytes needed, but 1MB is minimum) */
-#define CFG_EBC_PB1AP          0x018003c0
-#define CFG_EBC_PB1CR          (CFG_CPLD_BASE | 0x18000)
+#define CONFIG_SYS_EBC_PB1AP           0x018003c0
+#define CONFIG_SYS_EBC_PB1CR           (CONFIG_SYS_CPLD_BASE | 0x18000)
 
 /* Memory Bank 2 (NAND-FLASH) initialization */
-#define CFG_EBC_PB2AP          0x018003c0
-#define CFG_EBC_PB2CR          (CFG_NAND0_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB2AP           0x018003c0
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_NAND0_ADDR | 0x1c000)
 
 /* Memory Bank 3 (NAND-FLASH) initialization */
-#define CFG_EBC_PB3AP          0x018003c0
-#define CFG_EBC_PB3CR          (CFG_NAND1_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB3AP           0x018003c0
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_NAND1_ADDR | 0x1c000)
 
 /* Memory Bank 4 (DUMEM, 1MB) initialization */
-#define CFG_EBC_PB4AP          0x018053c0
-#define CFG_EBC_PB4CR          (CFG_DUMEM_BASE | 0x18000)
+#define CONFIG_SYS_EBC_PB4AP           0x018053c0
+#define CONFIG_SYS_EBC_PB4CR           (CONFIG_SYS_DUMEM_BASE | 0x18000)
 
 /* Memory Bank 5 (DUIO, 64KB needed, but 1MB is minimum) */
-#define CFG_EBC_PB5AP          0x018053c0
-#define CFG_EBC_PB5CR          (CFG_DUIO_BASE | 0x18000)
+#define CONFIG_SYS_EBC_PB5AP           0x018053c0
+#define CONFIG_SYS_EBC_PB5CR           (CONFIG_SYS_DUIO_BASE | 0x18000)
 
 /*
  * NAND FLASH
  */
-#define CFG_MAX_NAND_DEVICE    2
-#define NAND_MAX_CHIPS         CFG_MAX_NAND_DEVICE
-#define CFG_NAND_SELECT_DEVICE  1      /* nand driver supports mutipl. chips */
-#define CFG_NAND_BASE_LIST     {CFG_NAND0_ADDR + CFG_NAND0_CS, \
-                                CFG_NAND1_ADDR + CFG_NAND1_CS}
+#define CONFIG_SYS_MAX_NAND_DEVICE     2
+#define NAND_MAX_CHIPS         CONFIG_SYS_MAX_NAND_DEVICE
+#define CONFIG_SYS_NAND_SELECT_DEVICE  1       /* nand driver supports mutipl. chips */
+#define CONFIG_SYS_NAND_BASE_LIST      {CONFIG_SYS_NAND0_ADDR + CONFIG_SYS_NAND0_CS, \
+                                CONFIG_SYS_NAND1_ADDR + CONFIG_SYS_NAND1_CS}
 
 /*
  * Internal Definitions
index 72f7b3fe4fba7689b85a756b9556aaec094d0c7d..876ec20ad15a887afd6af162e06f6c40743a417f 100644 (file)
@@ -27,7 +27,7 @@
 
 #define  CONFIG_EB_MCF_EV123
 
-#undef CFG_HALT_BEFOR_RAM_JUMP
+#undef CONFIG_SYS_HALT_BEFOR_RAM_JUMP
 
 /*
  * High Level Configuration Options (easy to change)
@@ -39,9 +39,9 @@
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE 9600
-#define CFG_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_MONITOR_IS_IN_RAM        /* define if monitor is started from a pre-loader */
 
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 #ifdef CONFIG_MCFFEC
 #endif                         /* CONFIG_MCFFEC */
 
 #define CONFIG_BOOTDELAY       5
-#define CFG_PROMPT             "\nEV123 U-Boot> "
-#define        CFG_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "\nEV123 U-Boot> "
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          0x20000
+#define CONFIG_SYS_LOAD_ADDR           0x20000
 
-#define CFG_MEMTEST_START      0x100000
-#define CFG_MEMTEST_END                0x400000
-/*#define CFG_DRAM_TEST                1 */
-#undef CFG_DRAM_TEST
+#define CONFIG_SYS_MEMTEST_START       0x100000
+#define CONFIG_SYS_MEMTEST_END         0x400000
+/*#define CONFIG_SYS_DRAM_TEST         1 */
+#undef CONFIG_SYS_DRAM_TEST
 
 /* Clock and PLL Configuration */
-#define CFG_HZ                 10000000
-#define        CFG_CLK                 58982400       /* 9,8304MHz * 6 */
+#define CONFIG_SYS_HZ                  10000000
+#define        CONFIG_SYS_CLK                  58982400       /* 9,8304MHz * 6 */
 
 /* PLL Configuration: Ext Clock * 6 (see table 9-4 of MCF user manual) */
 
-#define CFG_MFD                        0x01    /* PLL Multiplication Factor Devider */
-#define CFG_RFD                        0x00    /* PLL Reduce Frecuency Devider */
+#define CONFIG_SYS_MFD                 0x01    /* PLL Multiplication Factor Devider */
+#define CONFIG_SYS_RFD                 0x00    /* PLL Reduce Frecuency Devider */
 
 /*
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
  * You should know what you are doing if you make changes here.
  */
-#define        CFG_MBAR                0x40000000
+#define        CONFIG_SYS_MBAR         0x40000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR       0x20000000
-#define CFG_INIT_RAM_END       0x10000         /* End of used area in internal SRAM    */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x10000         /* End of used area in internal SRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE1                0x00000000
-#define        CFG_SDRAM_SIZE1         16              /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_BASE1         0x00000000
+#define        CONFIG_SYS_SDRAM_SIZE1          16              /* SDRAM size in MB */
 
 /*
-#define CFG_SDRAM_BASE0                CFG_SDRAM_BASE1+CFG_SDRAM_SIZE1*1024*1024
-#define        CFG_SDRAM_SIZE0         16      */      /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_BASE0         CONFIG_SYS_SDRAM_BASE1+CONFIG_SYS_SDRAM_SIZE1*1024*1024
+#define        CONFIG_SYS_SDRAM_SIZE0          16      */      /* SDRAM size in MB */
 
-#define CFG_SDRAM_BASE         CFG_SDRAM_BASE1
-#define        CFG_SDRAM_SIZE          CFG_SDRAM_SIZE1
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_SDRAM_BASE1
+#define        CONFIG_SYS_SDRAM_SIZE           CONFIG_SYS_SDRAM_SIZE1
 
-#define CFG_FLASH_BASE         0xFFE00000
-#define        CFG_INT_FLASH_BASE      0xF0000000
-#define CFG_INT_FLASH_ENABLE   0x21
+#define CONFIG_SYS_FLASH_BASE          0xFFE00000
+#define        CONFIG_SYS_INT_FLASH_BASE       0xF0000000
+#define CONFIG_SYS_INT_FLASH_ENABLE    0x21
 
 /* If M5282 port is fully implemented the monitor base will be behind
  * the vector table. */
-#if (TEXT_BASE !=  CFG_INT_FLASH_BASE)
-#define CFG_MONITOR_BASE       (TEXT_BASE + 0x400)
+#if (TEXT_BASE !=  CONFIG_SYS_INT_FLASH_BASE)
+#define CONFIG_SYS_MONITOR_BASE        (TEXT_BASE + 0x400)
 #else
-#define CFG_MONITOR_BASE       (TEXT_BASE + 0x418) /* 24 Byte for CFM-Config */
+#define CONFIG_SYS_MONITOR_BASE        (TEXT_BASE + 0x418) /* 24 Byte for CFM-Config */
 #endif
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     64*1024
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define        CFG_MAX_FLASH_SECT      35
-#define        CFG_MAX_FLASH_BANKS     2
-#define        CFG_FLASH_ERASE_TOUT    10000000
-#define        CFG_FLASH_PROTECTION
+#define        CONFIG_SYS_MAX_FLASH_SECT       35
+#define        CONFIG_SYS_MAX_FLASH_BANKS      2
+#define        CONFIG_SYS_FLASH_ERASE_TOUT     10000000
+#define        CONFIG_SYS_FLASH_PROTECTION
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  */
 
-#define CFG_CS0_BASE           CFG_FLASH_BASE
-#define CFG_CS0_SIZE           2*1024*1024
-#define CFG_CS0_WIDTH          16
-#define CFG_CS0_RO             0
-#define CFG_CS0_WS             6
+#define CONFIG_SYS_CS0_BASE            CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            2*1024*1024
+#define CONFIG_SYS_CS0_WIDTH           16
+#define CONFIG_SYS_CS0_RO              0
+#define CONFIG_SYS_CS0_WS              6
 
-#define CFG_CS3_BASE           0xE0000000
-#define CFG_CS3_SIZE           1*1024*1024
-#define CFG_CS3_WIDTH          16
-#define CFG_CS3_RO             0
-#define CFG_CS3_WS             6
+#define CONFIG_SYS_CS3_BASE            0xE0000000
+#define CONFIG_SYS_CS3_SIZE            1*1024*1024
+#define CONFIG_SYS_CS3_WIDTH           16
+#define CONFIG_SYS_CS3_RO              0
+#define CONFIG_SYS_CS3_WS              6
 
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define CFG_PACNT              0x0000000       /* Port A D[31:24] */
-#define CFG_PADDR              0x0000000
-#define CFG_PADAT              0x0000000
+#define CONFIG_SYS_PACNT               0x0000000       /* Port A D[31:24] */
+#define CONFIG_SYS_PADDR               0x0000000
+#define CONFIG_SYS_PADAT               0x0000000
 
-#define CFG_PBCNT              0x0000000       /* Port B D[23:16] */
-#define CFG_PBDDR              0x0000000
-#define CFG_PBDAT              0x0000000
+#define CONFIG_SYS_PBCNT               0x0000000       /* Port B D[23:16] */
+#define CONFIG_SYS_PBDDR               0x0000000
+#define CONFIG_SYS_PBDAT               0x0000000
 
-#define CFG_PCCNT              0x0000000       /* Port C D[15:08] */
-#define CFG_PCDDR              0x0000000
-#define CFG_PCDAT              0x0000000
+#define CONFIG_SYS_PCCNT               0x0000000       /* Port C D[15:08] */
+#define CONFIG_SYS_PCDDR               0x0000000
+#define CONFIG_SYS_PCDAT               0x0000000
 
-#define CFG_PDCNT              0x0000000       /* Port D D[07:00] */
-#define CFG_PCDDR              0x0000000
-#define CFG_PCDAT              0x0000000
+#define CONFIG_SYS_PDCNT               0x0000000       /* Port D D[07:00] */
+#define CONFIG_SYS_PCDDR               0x0000000
+#define CONFIG_SYS_PCDAT               0x0000000
 
-#define CFG_PEHLPAR            0xC0
-#define CFG_PUAPAR             0x0F            /* UA0..UA3 = Uart 0 +1 */
-#define CFG_DDRUA              0x05
-#define CFG_PJPAR              0xFF
+#define CONFIG_SYS_PEHLPAR             0xC0
+#define CONFIG_SYS_PUAPAR              0x0F            /* UA0..UA3 = Uart 0 +1 */
+#define CONFIG_SYS_DDRUA               0x05
+#define CONFIG_SYS_PJPAR               0xFF
 
 /*-----------------------------------------------------------------------
  * CCM configuration
  */
 
-#define        CFG_CCM_SIZ             0
+#define        CONFIG_SYS_CCM_SIZ              0
 
 /*---------------------------------------------------------------------*/
 #endif /* _CONFIG_M5282EVB_H */
index 08e3d7113485dddff7de5723385d5daa1adcb83e..79392668e07fba8af3f409ea320dfde0128e2401 100644 (file)
@@ -63,7 +63,7 @@
     "bootm"
 
 #define CONFIG_LOADS_ECHO       0       /* echo off for serial download */
-#define CFG_LOADS_BAUD_CHANGE           /* allow baudrate changes */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate changes */
 
 /*
  * BOOTP options
@@ -88,8 +88,8 @@
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                    /* undef to save memory */
-#define CFG_PROMPT              "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 /*
  * choose between COM1 and COM2 as serial console
 #define CONFIG_CONS_INDEX       1
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE              1024        /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024        /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE              256         /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256         /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS             16          /* max number of command args    */
-#define CFG_BARGSIZE            CFG_CBSIZE  /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16          /* max number of command args    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START       0x00000000  /* memtest works on    */
-#define CFG_MEMTEST_END         0x04000000  /* 0 ... 64 MB in DRAM    */
+#define CONFIG_SYS_MEMTEST_START       0x00000000  /* memtest works on    */
+#define CONFIG_SYS_MEMTEST_END         0x04000000  /* 0 ... 64 MB in DRAM    */
 
-#define CFG_LOAD_ADDR           0x1000000   /* default load address    */
+#define CONFIG_SYS_LOAD_ADDR           0x1000000   /* default load address    */
 
-#define CFG_HZ                  1000        /* dec. freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000        /* dec. freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
  * You should know what you are doing if you make changes here.
  */
-#define CFG_BOARD_ASM_INIT
+#define CONFIG_SYS_BOARD_ASM_INIT
 #define CONFIG_MISC_INIT_R
 
 /*
  * Address mapping scheme for the MPC107 mem controller is mapping B (CHRP)
  */
-#undef  CFG_ADDRESS_MAP_A
+#undef  CONFIG_SYS_ADDRESS_MAP_A
 
-#define CFG_PCI_MEMORY_BUS      0x00000000
-#define CFG_PCI_MEMORY_PHYS     0x00000000
-#define CFG_PCI_MEMORY_SIZE     0x40000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x40000000
 
-#define CFG_PCI_MEM_BUS         0x80000000
-#define CFG_PCI_MEM_PHYS        0x80000000
-#define CFG_PCI_MEM_SIZE        0x7d000000
+#define CONFIG_SYS_PCI_MEM_BUS         0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        0x80000000
+#define CONFIG_SYS_PCI_MEM_SIZE        0x7d000000
 
-#define CFG_ISA_MEM_BUS         0x00000000
-#define CFG_ISA_MEM_PHYS        0xfd000000
-#define CFG_ISA_MEM_SIZE        0x01000000
+#define CONFIG_SYS_ISA_MEM_BUS         0x00000000
+#define CONFIG_SYS_ISA_MEM_PHYS        0xfd000000
+#define CONFIG_SYS_ISA_MEM_SIZE        0x01000000
 
-#define CFG_PCI_IO_BUS          0x00800000
-#define CFG_PCI_IO_PHYS         0xfe800000
-#define CFG_PCI_IO_SIZE         0x00400000
+#define CONFIG_SYS_PCI_IO_BUS          0x00800000
+#define CONFIG_SYS_PCI_IO_PHYS         0xfe800000
+#define CONFIG_SYS_PCI_IO_SIZE         0x00400000
 
-#define CFG_ISA_IO_BUS          0x00000000
-#define CFG_ISA_IO_PHYS         0xfe000000
-#define CFG_ISA_IO_SIZE         0x00800000
+#define CONFIG_SYS_ISA_IO_BUS          0x00000000
+#define CONFIG_SYS_ISA_IO_PHYS         0xfe000000
+#define CONFIG_SYS_ISA_IO_SIZE         0x00800000
 
 /* driver defines FDC,IDE,... */
-#define CFG_ISA_IO_BASE_ADDRESS CFG_ISA_IO_PHYS
-#define CFG_ISA_IO              CFG_ISA_IO_PHYS
-#define CFG_60X_PCI_IO_OFFSET   CFG_ISA_IO_PHYS
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_ISA_IO_PHYS
+#define CONFIG_SYS_ISA_IO              CONFIG_SYS_ISA_IO_PHYS
+#define CONFIG_SYS_60X_PCI_IO_OFFSET   CONFIG_SYS_ISA_IO_PHYS
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 
-#define CFG_USR_LED_BASE        0x78000000
-#define CFG_NVRAM_BASE          0xff000000
-#define CFG_UART_BASE           0xff400000
-#define CFG_FLASH_BASE          0xfff00000
+#define CONFIG_SYS_USR_LED_BASE        0x78000000
+#define CONFIG_SYS_NVRAM_BASE          0xff000000
+#define CONFIG_SYS_UART_BASE           0xff400000
+#define CONFIG_SYS_FLASH_BASE          0xfff00000
 
 #define MPC107_EUMB_ADDR        0xfce00000
 #define MPC107_EUMB_PI          0xfce41090
 /*
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR       0x00fd0000  /* above the memtest region */
-#define CFG_INIT_RAM_END        0x4000
-#define CFG_GBL_DATA_SIZE       64          /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET     (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x00fd0000  /* above the memtest region */
+#define CONFIG_SYS_INIT_RAM_END        0x4000
+#define CONFIG_SYS_GBL_DATA_SIZE       64          /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Flash mapping/organization on the MPC10x.
 #define FLASH_BASE0_PRELIM      0xff800000
 #define FLASH_BASE1_PRELIM      0xffc00000
 
-#define CFG_MAX_FLASH_BANKS     2           /* max number of memory banks    */
-#define CFG_MAX_FLASH_SECT      67          /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2           /* max number of memory banks    */
+#define CONFIG_SYS_MAX_FLASH_SECT      67          /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT    120000      /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT    500         /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000      /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500         /* Timeout for Flash Write (in ms) */
 
 /*
  * JFFS2 partitions
 #define MTDPARTS_DEFAULT       "mtdparts=elppc-0:-(jffs2),elppc-1:-(user)"
 */
 
-#define CFG_MONITOR_BASE        CFG_FLASH_BASE
-#define CFG_MONITOR_LEN         0x40000     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN          0x20000     /* Reserve 128 kB for malloc() */
-#undef  CFG_MEMTEST
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         0x40000     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          0x20000     /* Reserve 128 kB for malloc() */
+#undef  CONFIG_SYS_MEMTEST
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_ENV_IS_IN_NVRAM     1           /* use NVRAM for environment vars */
-#define CFG_NVRAM_SIZE          0x800       /* NVRAM size (2kB) */
+#define CONFIG_SYS_NVRAM_SIZE          0x800       /* NVRAM size (2kB) */
 #define CONFIG_ENV_SIZE            0x400       /* Size of Environment vars (1kB) */
 #define CONFIG_ENV_ADDR            0x0
 #define CONFIG_ENV_MAP_ADRS        0xff000000
-#define CFG_NV_SROM_COPY_ADDR   (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE)
-#define CFG_NVRAM_ACCESS_ROUTINE            /* only byte accsess alowed */
-#define CFG_SROM_SIZE           0x100       /* shadow of revision info is in nvram */
+#define CONFIG_SYS_NV_SROM_COPY_ADDR   (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE)
+#define CONFIG_SYS_NVRAM_ACCESS_ROUTINE            /* only byte accsess alowed */
+#define CONFIG_SYS_SROM_SIZE           0x100       /* shadow of revision info is in nvram */
 
 /*
  * Serial devices
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK         24000000
-#define CFG_NS16550_COM1        (CFG_UART_BASE + 0)
-#define CFG_NS16550_COM2        (CFG_UART_BASE + 8)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         24000000
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_UART_BASE + 0)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_UART_BASE + 8)
 
 /*
  * PCI stuff
  */
 #if 1
 
-#define CFG_IBAT0L 0
-#define CFG_IBAT0U 0
-#define CFG_DBAT0L CFG_IBAT1L
-#define CFG_DBAT0U CFG_IBAT1U
+#define CONFIG_SYS_IBAT0L 0
+#define CONFIG_SYS_IBAT0U 0
+#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT1U
 
-#define CFG_IBAT1L 0
-#define CFG_IBAT1U 0
-#define CFG_DBAT1L CFG_IBAT1L
-#define CFG_DBAT1U CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L 0
+#define CONFIG_SYS_IBAT1U 0
+#define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
 
-#define CFG_IBAT2L 0
-#define CFG_IBAT2U 0
-#define CFG_DBAT2L CFG_IBAT2L
-#define CFG_DBAT2U CFG_IBAT2U
+#define CONFIG_SYS_IBAT2L 0
+#define CONFIG_SYS_IBAT2U 0
+#define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
 
-#define CFG_IBAT3L 0
-#define CFG_IBAT3U 0
-#define CFG_DBAT3L CFG_IBAT3L
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L 0
+#define CONFIG_SYS_IBAT3U 0
+#define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 #else
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_RW)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L CFG_IBAT1L
-#define CFG_DBAT0U CFG_IBAT1U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_RW)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT1U
 
 /* address range for flashes */
-#define CFG_IBAT1L (CFG_FLASH_BASE | BATL_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U (CFG_FLASH_BASE | BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L CFG_IBAT1L
-#define CFG_DBAT1U CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L (CONFIG_SYS_FLASH_BASE | BATL_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U (CONFIG_SYS_FLASH_BASE | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
 
 /* ISA IO space */
-#define CFG_IBAT2L (CFG_ISA_IO | BATL_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U (CFG_ISA_IO | BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L CFG_IBAT2L
-#define CFG_DBAT2U CFG_IBAT2U
+#define CONFIG_SYS_IBAT2L (CONFIG_SYS_ISA_IO | BATL_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U (CONFIG_SYS_ISA_IO | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
 
 /* ISA memory space */
-#define CFG_IBAT3L (CFG_ISA_MEM | BATL_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U (CFG_ISA_MEM | BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_DBAT3L CFG_IBAT3L
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_ISA_MEM | BATL_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_ISA_MEM | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 #endif
 
 /*
  * Speed settings are board specific
  */
-#define CFG_BUS_HZ              100000000
-#define CFG_CPU_CLK             400000000
-#define CFG_BUS_CLK             CFG_BUS_HZ
+#define CONFIG_SYS_BUS_HZ              100000000
+#define CONFIG_SYS_CPU_CLK             400000000
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ           (8 << 20)           /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)           /* Initial Memory map for Linux */
 
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE        32    /* For all MPC74xx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE        32    /* For all MPC74xx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT        5    /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT        5    /* log base 2 of the above value */
 #endif
 
 /*
  * look in include/74xx_7xx.h for the defines used here
  */
 
-#define CFG_L2
+#define CONFIG_SYS_L2
 
 #if 1
 #define L2_INIT     0       /* cpu 750 CXe*/
 
 #define CONFIG_NET_MULTI        /* Multi ethernet cards support */
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #define CONFIG_EEPRO100_SROM_WRITE
 
 #endif    /* __CONFIG_H */
index c6a3b8b7000b782f387fabab143abae81d523eac..ff58ea92237a5e22f860bda1d1676d0b50ae5b33 100644 (file)
@@ -97,7 +97,7 @@
 #define CONFIG_RTC_DS164x      1       /* RTC is a Dallas DS1646       */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef   CFG_LOADS_BAUD_CHANGE         /* don't allow baudrate change  */
+#undef   CONFIG_SYS_LOADS_BAUD_CHANGE          /* don't allow baudrate change  */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "LEOX_elpt860: " /* Monitor Command Prompt      */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT     "LEOX_elpt860: " /* Monitor Command Prompt       */
 
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE   1024            /* Console I/O Buffer Size      */
+#  define CONFIG_SYS_CBSIZE    1024            /* Console I/O Buffer Size      */
 #else
-#  define CFG_CBSIZE    256            /* Console I/O Buffer Size      */
+#  define CONFIG_SYS_CBSIZE     256            /* Console I/O Buffer Size      */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS      16            /* max number of command args   */
-#define CFG_BARGSIZE     CFG_CBSIZE    /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS       16            /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE      CONFIG_SYS_CBSIZE     /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C00000      /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C00000      /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x00100000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*
  * Environment Variables and Storages
 #define CONFIG_ENV_IS_IN_FLASH 1      /* Environment is in FLASH       */
 
 #define CONFIG_BAUDRATE                9600   /* console baudrate = 9600 bps   */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_ETHADDR         00:01:77:00:60:40
 #define CONFIG_IPADDR          192.168.0.30
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x02000000
-#define CFG_NVRAM_BASE         0x03000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x02000000
+#define CONFIG_SYS_NVRAM_BASE          0x03000000
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 #  if defined(DEBUG)
-#    define CFG_MONITOR_LEN    (320 << 10)  /* Reserve 320 kB for Monitor  */
+#    define CONFIG_SYS_MONITOR_LEN     (320 << 10)  /* Reserve 320 kB for Monitor  */
 #  else
-#    define CFG_MONITOR_LEN    (256 << 10)  /* Reserve 256 kB for Monitor  */
+#    define CONFIG_SYS_MONITOR_LEN     (256 << 10)  /* Reserve 256 kB for Monitor  */
 #  endif
 #else
 #  if defined(DEBUG)
-#    define CFG_MONITOR_LEN    (256 << 10)  /* Reserve 256 kB for Monitor  */
+#    define CONFIG_SYS_MONITOR_LEN     (256 << 10)  /* Reserve 256 kB for Monitor  */
 #  else
-#    define CFG_MONITOR_LEN    (192 << 10)  /* Reserve 192 kB for Monitor  */
+#    define CONFIG_SYS_MONITOR_LEN     (192 << 10)  /* Reserve 192 kB for Monitor  */
 #  endif
 #endif
 
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)  /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)  /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)    /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)    /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks        */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks        */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)   */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)   */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)   */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)   */
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 #  define CONFIG_ENV_OFFSET    0x10000 /* Offset   of Environment Sector    */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
-#define CFG_NVRAM_BASE_ADDR    CFG_NVRAM_BASE /* Base address of NVRAM area */
-#define CFG_NVRAM_SIZE         ((128*1024)-8) /* clock regs resident in the */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     CONFIG_SYS_NVRAM_BASE /* Base address of NVRAM area */
+#define CONFIG_SYS_NVRAM_SIZE          ((128*1024)-8) /* clock regs resident in the */
                                               /*   8 top NVRAM locations    */
 
 #if defined(CONFIG_ENV_IS_IN_NVRAM)
-#  define CONFIG_ENV_ADDR              CFG_NVRAM_BASE /* Base address of NVRAM area */
+#  define CONFIG_ENV_ADDR              CONFIG_SYS_NVRAM_BASE /* Base address of NVRAM area */
 #  define CONFIG_ENV_SIZE              0x4000  /* Total Size of Environment Sector  */
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs               */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs               */
 
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT   4      /* log base 2 of the above value     */
+#  define CONFIG_SYS_CACHELINE_SHIFT    4      /* log base 2 of the above value     */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#  define CFG_SYPCR    (SYPCR_SWTC | SYPCR_BMT  | SYPCR_BME | SYPCR_SWF | \
+#  define CONFIG_SYS_SYPCR     (SYPCR_SWTC | SYPCR_BMT  | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI | SYPCR_SWP)
 #else
-#  define CFG_SYPCR    (SYPCR_SWTC | SYPCR_BMT  | SYPCR_BME | SYPCR_SWF | \
+#  define CONFIG_SYS_SYPCR     (SYPCR_SWTC | SYPCR_BMT  | SYPCR_BME | SYPCR_SWF | \
                                                   SYPCR_SWP)
 #endif
 
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC11)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  * Once-per-Second Interrupt, Alarm Interrupt, RTC freezing enabled, RTC
  *  enabled
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK       SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *
  */
 #ifdef DEBUG
-#  define CFG_DER              0xFFE7400F      /* Debug Enable Register */
+#  define CONFIG_SYS_DER               0xFFE7400F      /* Debug Enable Register */
 #else
-#  define CFG_DER              0
+#  define CONFIG_SYS_DER               0
 #endif
 
 /*
  * BR0 and OR0 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0          */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0          */
 
 /* used to re-map FLASH both when starting from SRAM or FLASH:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_PRELIM_OR_AM       0xFF000000      /* 16 MB between each CSx */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF000000      /* 16 MB between each CSx */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 0, SCY = 8, EHTR = 0         */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV2 | OR_BI | OR_SCY_8_CLK)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV2 | OR_BI | OR_SCY_8_CLK)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR1 and OR1 (SDRAM)
  *
  */
-#define SDRAM_BASE1_PRELIM     CFG_SDRAM_BASE  /* SDRAM bank #0        */
+#define SDRAM_BASE1_PRELIM     CONFIG_SYS_SDRAM_BASE   /* SDRAM bank #0        */
 #define SDRAM_MAX_SIZE         0x02000000      /* 32 MB MAX for CS1    */
 
 /* SDRAM timing:                                                       */
-#define CFG_OR_TIMING_SDRAM    0x00000000
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000000
 
-#define CFG_OR1_PRELIM ((2 * CFG_PRELIM_OR_AM) | CFG_OR_TIMING_SDRAM )
-#define CFG_BR1_PRELIM ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  ((2 * CONFIG_SYS_PRELIM_OR_AM) | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * BR2 and OR2 (NVRAM)
  *
  */
-#define NVRAM_BASE1_PRELIM     CFG_NVRAM_BASE  /* NVRAM bank #0        */
+#define NVRAM_BASE1_PRELIM     CONFIG_SYS_NVRAM_BASE   /* NVRAM bank #0        */
 #define NVRAM_MAX_SIZE         0x00020000      /* 128 KB MAX for CS2   */
 
-#define CFG_OR2_PRELIM         0xFFF80160
-#define CFG_BR2_PRELIM ((NVRAM_BASE1_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR2_PRELIM          0xFFF80160
+#define CONFIG_SYS_BR2_PRELIM  ((NVRAM_BASE1_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA           97     /* start with divider for 100 MHz */
+#define CONFIG_SYS_MAMR_PTA            97     /* start with divider for 100 MHz */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16   /* setting for 2 banks */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32   /* setting for 1 bank  */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16   /* setting for 2 banks */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32   /* setting for 1 bank  */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit         */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8    /* setting for 2 banks */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16   /* setting for 1 bank  */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8    /* setting for 2 banks */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16   /* setting for 1 bank  */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      | \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       | \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 | \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      | \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       | \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 | \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 90e3637533601df134fe096b5bafe93def186499..a0904d46431ea4d3a2d0efe1f8deada26ef1765e 100644 (file)
 #define CONFIG_EP1C20          1               /* EP1C20 board         */
 #define CONFIG_SYS_CLK_FREQ    50000000        /* 50 MHz core clk      */
 
-#define CFG_RESET_ADDR         0x00000000      /* Hard-reset address   */
-#define CFG_EXCEPTION_ADDR     0x01000020      /* Exception entry point*/
-#define CFG_NIOS_SYSID_BASE    0x021208b8      /* System id address    */
+#define CONFIG_SYS_RESET_ADDR          0x00000000      /* Hard-reset address   */
+#define CONFIG_SYS_EXCEPTION_ADDR      0x01000020      /* Exception entry point*/
+#define CONFIG_SYS_NIOS_SYSID_BASE     0x021208b8      /* System id address    */
 #define CONFIG_BOARD_EARLY_INIT_F 1    /* enable early board-spec. init*/
 
 /*------------------------------------------------------------------------
  * CACHE -- the following will support II/s and II/f. The II/s does not
  * have dcache, so the cache instructions will behave as NOPs.
  *----------------------------------------------------------------------*/
-#define CFG_ICACHE_SIZE                4096            /* 4 KByte total        */
-#define CFG_ICACHELINE_SIZE    32              /* 32 bytes/line        */
-#define CFG_DCACHE_SIZE                2048            /* 2 KByte (II/f)       */
-#define CFG_DCACHELINE_SIZE    4               /* 4 bytes/line (II/f)  */
+#define CONFIG_SYS_ICACHE_SIZE         4096            /* 4 KByte total        */
+#define CONFIG_SYS_ICACHELINE_SIZE     32              /* 32 bytes/line        */
+#define CONFIG_SYS_DCACHE_SIZE         2048            /* 2 KByte (II/f)       */
+#define CONFIG_SYS_DCACHELINE_SIZE     4               /* 4 bytes/line (II/f)  */
 
 /*------------------------------------------------------------------------
  * MEMORY BASE ADDRESSES
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0x00000000      /* FLASH base addr      */
-#define CFG_FLASH_SIZE         0x00800000      /* 8 MByte              */
-#define CFG_SDRAM_BASE         0x01000000      /* SDRAM base addr      */
-#define CFG_SDRAM_SIZE         0x01000000      /* 16 MByte             */
-#define CFG_SRAM_BASE          0x02000000      /* SRAM base addr       */
-#define CFG_SRAM_SIZE          0x00100000      /* 1 MB (only 1M mapped)*/
+#define CONFIG_SYS_FLASH_BASE          0x00000000      /* FLASH base addr      */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000      /* 8 MByte              */
+#define CONFIG_SYS_SDRAM_BASE          0x01000000      /* SDRAM base addr      */
+#define CONFIG_SYS_SDRAM_SIZE          0x01000000      /* 16 MByte             */
+#define CONFIG_SYS_SRAM_BASE           0x02000000      /* SRAM base addr       */
+#define CONFIG_SYS_SRAM_SIZE           0x00100000      /* 1 MB (only 1M mapped)*/
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 128k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 128k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size      */
 
 /*------------------------------------------------------------------------
- * ENVIRONMENT -- Put environment in sector CFG_MONITOR_LEN above
- * CFG_RESET_ADDR, since we assume the monitor is stored at the
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
  * reset address, no? This will keep the environment in user region
  * of flash. NOTE: the monitor length must be multiple of sector size
  * (which is common practice).
 #define CONFIG_ENV_IS_IN_FLASH 1               /* Environment in flash */
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
 #define CONFIG_ENV_OVERWRITE                   /* Serial change Ok     */
-#define CONFIG_ENV_ADDR        (CFG_RESET_ADDR + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_RESET_ADDR + CONFIG_SYS_MONITOR_LEN)
 
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CONSOLE_JTAG)
-#define CFG_NIOS_CONSOLE       0x021208b0      /* JTAG UART base addr  */
+#define CONFIG_SYS_NIOS_CONSOLE        0x021208b0      /* JTAG UART base addr  */
 #else
-#define CFG_NIOS_CONSOLE       0x02120840      /* UART base addr       */
+#define CONFIG_SYS_NIOS_CONSOLE        0x02120840      /* UART base addr       */
 #endif
 
-#define CFG_NIOS_FIXEDBAUD     1               /* Baudrate is fixed    */
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1               /* Baudrate is fixed    */
 #define CONFIG_BAUDRATE                115200          /* Initial baudrate     */
-#define CFG_BAUDRATE_TABLE     {115200}        /* It's fixed ;-)       */
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200}        /* It's fixed ;-)       */
 
-#define CFG_CONSOLE_INFO_QUIET 1               /* Suppress console info*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1               /* Suppress console info*/
 
 /*------------------------------------------------------------------------
- * EPCS Device -- wne CFG_NIOS_EPCSBASE is defined code/commands for
+ * EPCS Device -- wne CONFIG_SYS_NIOS_EPCSBASE is defined code/commands for
  * epcs device access is enabled. The base address is the epcs
  * _register_ base address, NOT THE ADDRESS OF THE MEMORY BLOCK.
  * The register base is currently at offset 0x600 from the memory base.
  *----------------------------------------------------------------------*/
-#define CFG_NIOS_EPCSBASE      0x02100200      /* EPCS register base   */
+#define CONFIG_SYS_NIOS_EPCSBASE       0x02100200      /* EPCS register base   */
 
 /*------------------------------------------------------------------------
  * DEBUG
  * registers, we can slow it down to 10 msec using TMRCNT. If the default
  * period is acceptable, TMRCNT can be left undefined.
  *----------------------------------------------------------------------*/
-#define CFG_NIOS_TMRBASE       0x02120820      /* Tick timer base addr */
-#define CFG_NIOS_TMRIRQ                3               /* Timer IRQ num        */
-#define CFG_NIOS_TMRMS         10              /* 10 msec per tick     */
-#define CFG_NIOS_TMRCNT (CFG_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
-#define CFG_HZ         (CONFIG_SYS_CLK_FREQ/(CFG_NIOS_TMRCNT + 1))
+#define CONFIG_SYS_NIOS_TMRBASE        0x02120820      /* Tick timer base addr */
+#define CONFIG_SYS_NIOS_TMRIRQ         3               /* Timer IRQ num        */
+#define CONFIG_SYS_NIOS_TMRMS          10              /* 10 msec per tick     */
+#define CONFIG_SYS_NIOS_TMRCNT (CONFIG_SYS_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
+#define CONFIG_SYS_HZ          (CONFIG_SYS_CLK_FREQ/(CONFIG_SYS_NIOS_TMRCNT + 1))
 
 /*------------------------------------------------------------------------
  * STATUS LED -- Provides a simple blinking led. For Nios2 each board
  * must implement its own led routines -- leds are, after all,
  * board-specific, no?
  *----------------------------------------------------------------------*/
-#define CFG_LEDPIO_ADDR                0x02120870      /* LED PIO base addr    */
+#define CONFIG_SYS_LEDPIO_ADDR         0x02120870      /* LED PIO base addr    */
 #define CONFIG_STATUS_LED                      /* Enable status driver */
 
 #define STATUS_LED_BIT         1               /* Bit-0 on PIO         */
 #define STATUS_LED_STATE       1               /* Blinking             */
-#define STATUS_LED_PERIOD      (500/CFG_NIOS_TMRMS) /* Every 500 msec  */
+#define STATUS_LED_PERIOD      (500/CONFIG_SYS_NIOS_TMRMS) /* Every 500 msec   */
 
 /*------------------------------------------------------------------------
  * ETHERNET -- The header file for the SMC91111 driver hurts my eyes ...
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                           /* Provide extended help*/
-#define CFG_PROMPT             "==> "          /* Command prompt       */
-#define CFG_CBSIZE             256             /* Console I/O buf size */
-#define CFG_MAXARGS            16              /* Max command args     */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot arg buf size    */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print buf size */
-#define CFG_LOAD_ADDR          CFG_SDRAM_BASE  /* Default load address */
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE  /* Start addr for test  */
-#define CFG_MEMTEST_END                CFG_INIT_SP - 0x00020000
-
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_LONGHELP                            /* Provide extended help*/
+#define CONFIG_SYS_PROMPT              "==> "          /* Command prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O buf size */
+#define CONFIG_SYS_MAXARGS             16              /* Max command args     */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot arg buf size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print buf size */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE   /* Default load address */
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE   /* Start addr for test  */
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_INIT_SP - 0x00020000
+
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #endif /* __CONFIG_H */
index ae9409f48416db56f0cf641489bb00e06f2d96c8..63a0d3d6a1a38003b101f4b6d8820dfa6b710c9d 100644 (file)
 #define CONFIG_EP1S10          1               /* EP1S10 board         */
 #define CONFIG_SYS_CLK_FREQ    50000000        /* 50 MHz core clk      */
 
-#define CFG_RESET_ADDR         0x00000000      /* Hard-reset address   */
-#define CFG_EXCEPTION_ADDR     0x01000020      /* Exception entry point*/
-#define CFG_NIOS_SYSID_BASE    0x021208b8      /* System id address    */
+#define CONFIG_SYS_RESET_ADDR          0x00000000      /* Hard-reset address   */
+#define CONFIG_SYS_EXCEPTION_ADDR      0x01000020      /* Exception entry point*/
+#define CONFIG_SYS_NIOS_SYSID_BASE     0x021208b8      /* System id address    */
 
 /*------------------------------------------------------------------------
  * CACHE -- the following will support II/s and II/f. The II/s does not
  * have dcache, so the cache instructions will behave as NOPs.
  *----------------------------------------------------------------------*/
-#define CFG_ICACHE_SIZE                4096            /* 4 KByte total        */
-#define CFG_ICACHELINE_SIZE    32              /* 32 bytes/line        */
-#define CFG_DCACHE_SIZE                2048            /* 2 KByte (II/f)       */
-#define CFG_DCACHELINE_SIZE    4               /* 4 bytes/line (II/f)  */
+#define CONFIG_SYS_ICACHE_SIZE         4096            /* 4 KByte total        */
+#define CONFIG_SYS_ICACHELINE_SIZE     32              /* 32 bytes/line        */
+#define CONFIG_SYS_DCACHE_SIZE         2048            /* 2 KByte (II/f)       */
+#define CONFIG_SYS_DCACHELINE_SIZE     4               /* 4 bytes/line (II/f)  */
 
 /*------------------------------------------------------------------------
  * MEMORY BASE ADDRESSES
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0x00000000      /* FLASH base addr      */
-#define CFG_FLASH_SIZE         0x00800000      /* 8 MByte              */
-#define CFG_SDRAM_BASE         0x01000000      /* SDRAM base addr      */
-#define CFG_SDRAM_SIZE         0x01000000      /* 16 MByte             */
-#define CFG_SRAM_BASE          0x02000000      /* SRAM base addr       */
-#define CFG_SRAM_SIZE          0x00100000      /* 1 MB                 */
+#define CONFIG_SYS_FLASH_BASE          0x00000000      /* FLASH base addr      */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000      /* 8 MByte              */
+#define CONFIG_SYS_SDRAM_BASE          0x01000000      /* SDRAM base addr      */
+#define CONFIG_SYS_SDRAM_SIZE          0x01000000      /* 16 MByte             */
+#define CONFIG_SYS_SRAM_BASE           0x02000000      /* SRAM base addr       */
+#define CONFIG_SYS_SRAM_SIZE           0x00100000      /* 1 MB                 */
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 256*1024) /* 256k heap */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 256*1024) /* 256k heap */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
 
 /*------------------------------------------------------------------------
- * ENVIRONMENT -- Put environment in sector CFG_MONITOR_LEN above
- * CFG_FLASH_BASE, since we assume that u-boot is stored at the bottom
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_FLASH_BASE, since we assume that u-boot is stored at the bottom
  * of flash memory. This will keep the environment in user region
  * of flash. NOTE: the monitor length must be multiple of sector size
  * (which is common practice).
 #define CONFIG_ENV_IS_IN_FLASH 1               /* Environment in flash */
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
 #define CONFIG_ENV_OVERWRITE                   /* Serial change Ok     */
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
 
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CONSOLE_JTAG)
-#define CFG_NIOS_CONSOLE       0x021208b0      /* JTAG UART base addr  */
+#define CONFIG_SYS_NIOS_CONSOLE        0x021208b0      /* JTAG UART base addr  */
 #else
-#define CFG_NIOS_CONSOLE       0x02120840      /* UART base addr       */
+#define CONFIG_SYS_NIOS_CONSOLE        0x02120840      /* UART base addr       */
 #endif
 
-#define CFG_NIOS_FIXEDBAUD     1               /* Baudrate is fixed    */
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1               /* Baudrate is fixed    */
 #define CONFIG_BAUDRATE                115200          /* Initial baudrate     */
-#define CFG_BAUDRATE_TABLE     {115200}        /* It's fixed ;-)       */
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200}        /* It's fixed ;-)       */
 
-#define CFG_CONSOLE_INFO_QUIET 1               /* Suppress console info*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1               /* Suppress console info*/
 
 /*------------------------------------------------------------------------
  * EPCS Device -- None for stratix.
  *----------------------------------------------------------------------*/
-#undef CFG_NIOS_EPCSBASE
+#undef CONFIG_SYS_NIOS_EPCSBASE
 
 /*------------------------------------------------------------------------
  * DEBUG
  * registers, we can slow it down to 10 msec using TMRCNT. If the default
  * period is acceptable, TMRCNT can be left undefined.
  *----------------------------------------------------------------------*/
-#define CFG_NIOS_TMRBASE       0x02120820      /* Tick timer base addr */
-#define CFG_NIOS_TMRIRQ                3               /* Timer IRQ num        */
-#define CFG_NIOS_TMRMS         10              /* 10 msec per tick     */
-#define CFG_NIOS_TMRCNT (CFG_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
-#define CFG_HZ         (CONFIG_SYS_CLK_FREQ/(CFG_NIOS_TMRCNT + 1))
+#define CONFIG_SYS_NIOS_TMRBASE        0x02120820      /* Tick timer base addr */
+#define CONFIG_SYS_NIOS_TMRIRQ         3               /* Timer IRQ num        */
+#define CONFIG_SYS_NIOS_TMRMS          10              /* 10 msec per tick     */
+#define CONFIG_SYS_NIOS_TMRCNT (CONFIG_SYS_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
+#define CONFIG_SYS_HZ          (CONFIG_SYS_CLK_FREQ/(CONFIG_SYS_NIOS_TMRCNT + 1))
 
 /*------------------------------------------------------------------------
  * STATUS LED -- Provides a simple blinking led. For Nios2 each board
  * must implement its own led routines -- since leds are board-specific.
  *----------------------------------------------------------------------*/
-#define CFG_LEDPIO_ADDR                0x02120870      /* LED PIO base addr    */
+#define CONFIG_SYS_LEDPIO_ADDR         0x02120870      /* LED PIO base addr    */
 #define CONFIG_STATUS_LED                      /* Enable status driver */
 
 #define STATUS_LED_BIT         1               /* Bit-0 on PIO         */
 #define STATUS_LED_STATE       1               /* Blinking             */
-#define STATUS_LED_PERIOD      (500/CFG_NIOS_TMRMS) /* Every 500 msec  */
+#define STATUS_LED_PERIOD      (500/CONFIG_SYS_NIOS_TMRMS) /* Every 500 msec   */
 
 /*------------------------------------------------------------------------
  * ETHERNET -- The header file for the SMC91111 driver hurts my eyes ...
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                           /* Provide extended help*/
-#define CFG_PROMPT             "==> "          /* Command prompt       */
-#define CFG_CBSIZE             256             /* Console I/O buf size */
-#define CFG_MAXARGS            16              /* Max command args     */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot arg buf size    */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print buf size */
-#define CFG_LOAD_ADDR          CFG_SDRAM_BASE  /* Default load address */
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE  /* Start addr for test  */
-#define CFG_MEMTEST_END                CFG_INIT_SP - 0x00020000
-
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_LONGHELP                            /* Provide extended help*/
+#define CONFIG_SYS_PROMPT              "==> "          /* Command prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O buf size */
+#define CONFIG_SYS_MAXARGS             16              /* Max command args     */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot arg buf size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print buf size */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE   /* Default load address */
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE   /* Start addr for test  */
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_INIT_SP - 0x00020000
+
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #endif /* __CONFIG_H */
index 95ae14772bf3caea6da2010af19f9bed1d2ac6b0..36e1f81739e6c8c3e71d2cd5f48c75d8ddc46589 100644 (file)
 #define CONFIG_EP1S40          1               /* EP1S40 board         */
 #define CONFIG_SYS_CLK_FREQ    50000000        /* 50 MHz core clk      */
 
-#define CFG_RESET_ADDR         0x00000000      /* Hard-reset address   */
-#define CFG_EXCEPTION_ADDR     0x01000020      /* Exception entry point*/
-#define CFG_NIOS_SYSID_BASE    0x021208b8      /* System id address    */
+#define CONFIG_SYS_RESET_ADDR          0x00000000      /* Hard-reset address   */
+#define CONFIG_SYS_EXCEPTION_ADDR      0x01000020      /* Exception entry point*/
+#define CONFIG_SYS_NIOS_SYSID_BASE     0x021208b8      /* System id address    */
 
 /*------------------------------------------------------------------------
  * CACHE -- the following will support II/s and II/f. The II/s does not
  * have dcache, so the cache instructions will behave as NOPs.
  *----------------------------------------------------------------------*/
-#define CFG_ICACHE_SIZE                4096            /* 4 KByte total        */
-#define CFG_ICACHELINE_SIZE    32              /* 32 bytes/line        */
-#define CFG_DCACHE_SIZE                2048            /* 2 KByte (II/f)       */
-#define CFG_DCACHELINE_SIZE    4               /* 4 bytes/line (II/f)  */
+#define CONFIG_SYS_ICACHE_SIZE         4096            /* 4 KByte total        */
+#define CONFIG_SYS_ICACHELINE_SIZE     32              /* 32 bytes/line        */
+#define CONFIG_SYS_DCACHE_SIZE         2048            /* 2 KByte (II/f)       */
+#define CONFIG_SYS_DCACHELINE_SIZE     4               /* 4 bytes/line (II/f)  */
 
 /*------------------------------------------------------------------------
  * MEMORY BASE ADDRESSES
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0x00000000      /* FLASH base addr      */
-#define CFG_FLASH_SIZE         0x00800000      /* 8 MByte              */
-#define CFG_SDRAM_BASE         0x01000000      /* SDRAM base addr      */
-#define CFG_SDRAM_SIZE         0x01000000      /* 16 MByte             */
-#define CFG_SRAM_BASE          0x02000000      /* SRAM base addr       */
-#define CFG_SRAM_SIZE          0x00100000      /* 1 MB                 */
+#define CONFIG_SYS_FLASH_BASE          0x00000000      /* FLASH base addr      */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000      /* 8 MByte              */
+#define CONFIG_SYS_SDRAM_BASE          0x01000000      /* SDRAM base addr      */
+#define CONFIG_SYS_SDRAM_SIZE          0x01000000      /* 16 MByte             */
+#define CONFIG_SYS_SRAM_BASE           0x02000000      /* SRAM base addr       */
+#define CONFIG_SYS_SRAM_SIZE           0x00100000      /* 1 MB                 */
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 256*1024) /* 256k heap */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 256*1024) /* 256k heap */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
 
 /*------------------------------------------------------------------------
- * ENVIRONMENT -- Put environment in sector CFG_MONITOR_LEN above
- * CFG_FLASH_BASE, since we assume that u-boot is stored at the bottom
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_FLASH_BASE, since we assume that u-boot is stored at the bottom
  * of flash memory. This will keep the environment in user region
  * of flash. NOTE: the monitor length must be multiple of sector size
  * (which is common practice).
 #define CONFIG_ENV_IS_IN_FLASH 1               /* Environment in flash */
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
 #define CONFIG_ENV_OVERWRITE                   /* Serial change Ok     */
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
 
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CONSOLE_JTAG)
-#define CFG_NIOS_CONSOLE       0x021208b0      /* JTAG UART base addr  */
+#define CONFIG_SYS_NIOS_CONSOLE        0x021208b0      /* JTAG UART base addr  */
 #else
-#define CFG_NIOS_CONSOLE       0x02120840      /* UART base addr       */
+#define CONFIG_SYS_NIOS_CONSOLE        0x02120840      /* UART base addr       */
 #endif
 
-#define CFG_NIOS_FIXEDBAUD     1               /* Baudrate is fixed    */
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1               /* Baudrate is fixed    */
 #define CONFIG_BAUDRATE                115200          /* Initial baudrate     */
-#define CFG_BAUDRATE_TABLE     {115200}        /* It's fixed ;-)       */
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200}        /* It's fixed ;-)       */
 
-#define CFG_CONSOLE_INFO_QUIET 1               /* Suppress console info*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1               /* Suppress console info*/
 
 /*------------------------------------------------------------------------
  * EPCS Device -- None for stratix.
  *----------------------------------------------------------------------*/
-#undef CFG_NIOS_EPCSBASE
+#undef CONFIG_SYS_NIOS_EPCSBASE
 
 /*------------------------------------------------------------------------
  * DEBUG
  * registers, we can slow it down to 10 msec using TMRCNT. If the default
  * period is acceptable, TMRCNT can be left undefined.
  *----------------------------------------------------------------------*/
-#define CFG_NIOS_TMRBASE       0x02120820      /* Tick timer base addr */
-#define CFG_NIOS_TMRIRQ                3               /* Timer IRQ num        */
-#define CFG_NIOS_TMRMS         10              /* 10 msec per tick     */
-#define CFG_NIOS_TMRCNT (CFG_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
-#define CFG_HZ         (CONFIG_SYS_CLK_FREQ/(CFG_NIOS_TMRCNT + 1))
+#define CONFIG_SYS_NIOS_TMRBASE        0x02120820      /* Tick timer base addr */
+#define CONFIG_SYS_NIOS_TMRIRQ         3               /* Timer IRQ num        */
+#define CONFIG_SYS_NIOS_TMRMS          10              /* 10 msec per tick     */
+#define CONFIG_SYS_NIOS_TMRCNT (CONFIG_SYS_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
+#define CONFIG_SYS_HZ          (CONFIG_SYS_CLK_FREQ/(CONFIG_SYS_NIOS_TMRCNT + 1))
 
 /*------------------------------------------------------------------------
  * STATUS LED -- Provides a simple blinking led. For Nios2 each board
  * must implement its own led routines -- since leds are board-specific.
  *----------------------------------------------------------------------*/
-#define CFG_LEDPIO_ADDR                0x02120870      /* LED PIO base addr    */
+#define CONFIG_SYS_LEDPIO_ADDR         0x02120870      /* LED PIO base addr    */
 #define CONFIG_STATUS_LED                      /* Enable status driver */
 
 #define STATUS_LED_BIT         1               /* Bit-0 on PIO         */
 #define STATUS_LED_STATE       1               /* Blinking             */
-#define STATUS_LED_PERIOD      (500/CFG_NIOS_TMRMS) /* Every 500 msec  */
+#define STATUS_LED_PERIOD      (500/CONFIG_SYS_NIOS_TMRMS) /* Every 500 msec   */
 
 /*------------------------------------------------------------------------
  * ETHERNET -- The header file for the SMC91111 driver hurts my eyes ...
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                           /* Provide extended help*/
-#define CFG_PROMPT             "==> "          /* Command prompt       */
-#define CFG_CBSIZE             256             /* Console I/O buf size */
-#define CFG_MAXARGS            16              /* Max command args     */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot arg buf size    */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print buf size */
-#define CFG_LOAD_ADDR          CFG_SDRAM_BASE  /* Default load address */
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE  /* Start addr for test  */
-#define CFG_MEMTEST_END                CFG_INIT_SP - 0x00020000
-
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_LONGHELP                            /* Provide extended help*/
+#define CONFIG_SYS_PROMPT              "==> "          /* Command prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O buf size */
+#define CONFIG_SYS_MAXARGS             16              /* Max command args     */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot arg buf size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print buf size */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE   /* Default load address */
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE   /* Start addr for test  */
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_INIT_SP - 0x00020000
+
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #endif /* __CONFIG_H */
index 106cc6fba525bd3b8785e2b5cab71124405a6b94..e1c6096eb796b8c46f784a49a1dece3c55d69b88 100644 (file)
 #define        CONFIG_ETHER_ON_FEC1                    /* Enable Ethernet on FEC1      */
 #define        CONFIG_ETHER_ON_FEC2                    /* Enable Ethernet on FEC2      */
 #if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII_INIT                1
 #define FEC_ENET
 #endif /* CONFIG_FEC_ENET */
 
 #define CONFIG_8xx_OSCLK               10000000 /* 10 MHz oscillator on EXTCLK */
 #define CONFIG_8xx_CPUCLK_DEFAULT      100000000
-#define CFG_8xx_CPUCLK_MIN             40000000
-#define CFG_8xx_CPUCLK_MAX             133000000
+#define CONFIG_SYS_8xx_CPUCLK_MIN              40000000
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000
 
 /*
  * BOOTP options
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                           /* #undef to save memory        */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* Max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                            /* #undef to save memory        */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)  /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          0x400000        /* Default load address         */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* Default load address         */
 
-#define CFG_HZ                 1000            /* Decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* Decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
- * RAM configuration (note that CFG_SDRAM_BASE must be zero)
+ * RAM configuration (note that CONFIG_SYS_SDRAM_BASE must be zero)
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_MAX_SIZE     0x08000000      /* Up to 128 Mbyte              */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_MAX_SIZE      0x08000000      /* Up to 128 Mbyte              */
 
-#define CFG_MAMR               0x00805000
+#define CONFIG_SYS_MAMR                0x00805000
 
 /*
  * 4096        Up to 4096 SDRAM rows
  * 4   Number of refresh cycles per period
  * 64  Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK                ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK         ((4096 * 32 * 1000) / (4 * 64))
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x00500000      /* 1 ... 5 MB in SDRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x00500000      /* 1 ... 5 MB in SDRAM          */
 
-#define CFG_RESET_ADDRESS      0x09900000
+#define CONFIG_SYS_RESET_ADDRESS       0x09900000
 
 /*-----------------------------------------------------------------------
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 KB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 KB for Monitor   */
 #ifdef CONFIG_BZIP2
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve ~4 MB for malloc()   */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve ~4 MB for malloc()   */
 #else
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 KB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 KB for malloc()  */
 #endif /* CONFIG_BZIP2 */
 
 /*-----------------------------------------------------------------------
  * Flash organisation
  */
-#define CFG_FLASH_BASE         0xFC000000
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_BASE          0xFC000000
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CFG_MAX_FLASH_BANKS    1               /* Max number of flash banks    */
-#define CFG_MAX_FLASH_SECT     512             /* Max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max number of flash banks    */
+#define CONFIG_SYS_MAX_FLASH_SECT      512             /* Max num of sects on one chip */
 
 /* Environment is in flash */
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000         /* We use one complete sector   */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 
-#define CFG_OR0_PRELIM         0xFC000160
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BR_PS_32 | BR_MS_GPCM | BR_V)
+#define CONFIG_SYS_OR0_PRELIM          0xFC000160
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BR_PS_32 | BR_MS_GPCM | BR_V)
 
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 /*-----------------------------------------------------------------------
  * BCSR
  */
-#define CFG_OR3_PRELIM         0xFF0005B0
-#define CFG_BR3_PRELIM         (0xFA000000 |BR_PS_16 | BR_MS_GPCM | BR_V)
+#define CONFIG_SYS_OR3_PRELIM          0xFF0005B0
+#define CONFIG_SYS_BR3_PRELIM          (0xFA000000 |BR_PS_16 | BR_MS_GPCM | BR_V)
 
-#define CFG_BCSR               0xFA400000
+#define CONFIG_SYS_BCSR                0xFA400000
 
 /*-----------------------------------------------------------------------
  * Internal Memory Map Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00          /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128  /* Size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00          /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* Size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Configuration registers
  */
 #ifdef CONFIG_WATCHDOG
-#define CFG_SYPCR              (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
+#define CONFIG_SYS_SYPCR               (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
                                 SYPCR_SWF  | SYPCR_SWE | SYPCR_SWRI | \
                                 SYPCR_SWP)
 #else
-#define CFG_SYPCR              (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
+#define CONFIG_SYS_SYPCR               (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME  | \
                                 SYPCR_SWF  | SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
-#define CFG_SIUMCR             (SIUMCR_MLRC01 | SIUMCR_DBGC11)
+#define CONFIG_SYS_SIUMCR              (SIUMCR_MLRC01 | SIUMCR_DBGC11)
 
 /* TBSCR - Time Base Status and Control Register */
-#define CFG_TBSCR              (TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR               (TBSCR_TBF | TBSCR_TBE)
 
 /* PISCR - Periodic Interrupt Status and Control */
-#define CFG_PISCR              PISCR_PS
+#define CONFIG_SYS_PISCR               PISCR_PS
 
 /* SCCR - System Clock and reset Control Register */
 #define SCCR_MASK              SCCR_EBDF11
-#define CFG_SCCR               SCCR_RTSEL
+#define CONFIG_SYS_SCCR                SCCR_RTSEL
 
-#define CFG_DER                        0
+#define CONFIG_SYS_DER                 0
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx chips                 */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx chips                 */
 
 /*-----------------------------------------------------------------------
  * Internal Definitions
index c3c7aa4f96ef9a4240c26203a621bb575f6f95b6..c05945a7267b0f5eddcd6f53961b14ae061a4c18 100644 (file)
 #endif                                 /* total size of a X1240 is 2048 bytes */
 
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x57    /* X1240 has two I2C slave addresses, one for EEPROM */
-#define CFG_I2C_EEPROM_ADDR_LEN        2       /* address length for the eeprom */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57    /* X1240 has two I2C slave addresses, one for EEPROM */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* address length for the eeprom */
 #define CONFIG_I2C_RTC         1       /* we have a Xicor X1240 RTC */
-#define CFG_I2C_RTC_ADDR       0x6F    /*                                and one for RTC */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x6F    /*                                and one for RTC */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #undef CONFIG_ENV_IS_IN_NVRAM
@@ -91,7 +91,7 @@
                                "ip=192.168.1.22:192.168.1.2"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                1       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                    /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#undef CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define         CFG_EXT_SERIAL_CLOCK    14318180
+#define         CONFIG_SYS_EXT_SERIAL_CLOCK     14318180
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #undef  CONFIG_PCI_PNP                 /* no pci plug-and-play         */
                                        /* resource configuration       */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x1743 /* PCI Vendor ID: Peppercon AG  */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: 405GP         */
-#define CFG_PCI_PTM1LA 0xFFFC0000      /* point to flash               */
-#define CFG_PCI_PTM1MS 0xFFFFF001      /* 4kB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1743  /* PCI Vendor ID: Peppercon AG  */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: 405GP         */
+#define CONFIG_SYS_PCI_PTM1LA  0xFFFC0000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM1MS  0xFFFFF001      /* 4kB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * External peripheral base address
 #define CS7_AP 0x02815480 /* WT=1, OEN=0x1,WBN=0x1,WBF=0x1,TH=0x2,RE=0, */
 #define CS7_CR 0xF0618000 /* BAS=0xF01,BS=(1MB),BU=0x3(R/W), BW=(8 bits) */
 
-#define CFG_NVRAM_REG_BASE_ADDR         0xF0000000
-#define CFG_RTC_REG_BASE_ADDR   (0xF0000000 + 0x7F8)
-#define CFG_ADC_REG_BASE_ADDR   0xF0100000
-#define CFG_PHYRES_REG_BASE_ADDR 0xF0200000
-#define CFG_PRSNT1_REG_BASE_ADDR 0xF0300000
-#define CFG_PRSNT2_REG_BASE_ADDR 0xF0400000
-#define CFG_LED0_REG_BASE_ADDR  0xF0500000
-#define CFG_LED1_REG_BASE_ADDR  0xF0600000
+#define CONFIG_SYS_NVRAM_REG_BASE_ADDR  0xF0000000
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    (0xF0000000 + 0x7F8)
+#define CONFIG_SYS_ADC_REG_BASE_ADDR    0xF0100000
+#define CONFIG_SYS_PHYRES_REG_BASE_ADDR 0xF0200000
+#define CONFIG_SYS_PRSNT1_REG_BASE_ADDR 0xF0300000
+#define CONFIG_SYS_PRSNT2_REG_BASE_ADDR 0xF0400000
+#define CONFIG_SYS_LED0_REG_BASE_ADDR   0xF0500000
+#define CONFIG_SYS_LED1_REG_BASE_ADDR   0xF0600000
 
 
 /*  SDRAM CONFIG */
-#define CFG_SDRAM_MANUALLY    1
-#define CFG_SDRAM_SINGLE_BANK 1
+#define CONFIG_SYS_SDRAM_MANUALLY    1
+#define CONFIG_SYS_SDRAM_SINGLE_BANK 1
 
-#ifdef CFG_SDRAM_MANUALLY
+#ifdef CONFIG_SYS_SDRAM_MANUALLY
 /*-----------------------------------------------------------------------
  * Set MB0CF for bank 0. (0-32MB) Address Mode 4 since 12x8(2)
  *----------------------------------------------------------------------*/
 /*-----------------------------------------------------------------------
  * Set MB1CF for bank 1. (32MB-64MB) Address Mode 4 since 12x8(2)
  *----------------------------------------------------------------------*/
-#ifdef CFG_SDRAM_SINGLE_BANK
+#ifdef CONFIG_SYS_SDRAM_SINGLE_BANK
 #define MB1CF  0x0 /*  0MB @ 32MB */
 #else
 #define MB1CF  0x02062001 /*  32MB @ 32MB */
 #define SDTR_66     0x00854006 /* orig U-Boot-wallnut says 0x00854006 */
 #define RTR_66      0x03f8
 
-#endif   /* CFG_SDRAM_MANUALLY */
+#endif   /* CONFIG_SYS_SDRAM_MANUALLY */
 
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         32
-#define CFG_FLASH_BASE         0xFF800000      /* 8 MByte Flash */
-#define CFG_MONITOR_BASE       0xFFFE0000      /* last 128kByte within Flash */
-/*#define CFG_MONITOR_LEN              (192 * 1024)*/  /* Reserve 196 kB for Monitor   */
-#define CFG_MONITOR_LEN                (128 * 1024)    /* Reserve 128 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          32
+#define CONFIG_SYS_FLASH_BASE          0xFF800000      /* 8 MByte Flash */
+#define CONFIG_SYS_MONITOR_BASE        0xFFFE0000      /* last 128kByte within Flash */
+/*#define CONFIG_SYS_MONITOR_LEN               (192 * 1024)*/  /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)    /* Reserve 128 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
-#define CFG_FLASH_16BIT                1       /* Rom 16 bit data bus                  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_16BIT         1       /* Rom 16 bit data bus                  */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /* BEG ENVIRONNEMENT FLASH */
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_ADDR            0xfffa0000
 #else  /* force ENV to be embedded */
 #define        CONFIG_ENV_SIZE         (2 * 1024) /* Total Size of Environment Sector 2k */
-#define CONFIG_ENV_ADDR            (CFG_MONITOR_BASE + CFG_MONITOR_LEN - CONFIG_ENV_SIZE - 0x10) /* let space for reset vector */
-/* #define CONFIG_ENV_ADDR            (CFG_MONITOR_BASE)*/
-#define CONFIG_ENV_OFFSET          (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#define CONFIG_ENV_ADDR            (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SIZE - 0x10) /* let space for reset vector */
+/* #define CONFIG_ENV_ADDR            (CONFIG_SYS_MONITOR_BASE)*/
+#define CONFIG_ENV_OFFSET          (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 #endif
 
 #endif
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
-#define CFG_NVRAM_BASE_ADDR    CFG_NVRAM_REG_BASE_ADDR /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         0x7F8           /* NVRAM size 2kByte - 8 Byte for RTC */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     CONFIG_SYS_NVRAM_REG_BASE_ADDR  /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          0x7F8           /* NVRAM size 2kByte - 8 Byte for RTC */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x7F8           /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
 #endif
 
 /*
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x00df0000  /* inside of SDRAM                 */
-#define CFG_INIT_RAM_END       0x0f00  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x00df0000  /* inside of SDRAM                 */
+#define CONFIG_SYS_INIT_RAM_END        0x0f00  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
index 02539e2630894a1b055ba78104567959297a8d6b..11a862e987661e8223df05232922fbe91afb1d6f 100644 (file)
@@ -44,7 +44,7 @@
 
 #define MPC8XX_FACT    10              /* Multiply by 10               */
 #define MPC8XX_XIN     4915200 /* 4.915200 MHz in      - ??? - XXX     */
-#define CFG_PLPRCR_MF  ((MPC8XX_FACT-1) << 20)
+#define CONFIG_SYS_PLPRCR_MF   ((MPC8XX_FACT-1) << 20)
 #define MPC8XX_HZ ((MPC8XX_XIN) * (MPC8XX_FACT)) /* 49,152,000 Hz      */
 
 #define CONFIG_8xx_GCLK_FREQ   MPC8XX_HZ       /* Force it - dont measure it */
@@ -66,7 +66,7 @@
  */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #include <config_cmd_default.h>
 
 
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "BOOT: "        /* Monitor Command Prompt       */
-#define        CFG_CBSIZE      256                     /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     8                       /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "BOOT: "        /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE       256                     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      8                       /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000            /* decrementer freq: 1 ms ticks */
 
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
   /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #ifdef DEBUG
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (128 << 10)     /* Reserve 128 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                           11-9
  *-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 
 /*-----------------------------------------------------------------------
  * SUMCR - SIU Module Configuration                            11-6
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01) /* DBGC00 */
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01) /* DBGC00 */
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
 
 /* (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF) */
 
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (CFG_PLPRCR_MF | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (CONFIG_SYS_PLPRCR_MF | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
-#define CFG_PCMCIA_INTERRUPT   SIU_LEVEL6
+#define CONFIG_SYS_PCMCIA_INTERRUPT    SIU_LEVEL6
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
-/*#define CFG_DER      0x02002000 */
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
+/*#define CONFIG_SYS_DER       0x02002000 */
 
 
 /*
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    0x00000160
+#define CONFIG_SYS_OR_TIMING_FLASH     0x00000160
                                /*(OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
                                 OR_SCY_5_CLK | OR_EHTR) */
 
-#define CFG_OR0_REMAP  0x80000160     /*(CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)*/
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ( FLASH_BASE0_PRELIM | 0x00000801 )
+#define CONFIG_SYS_OR0_REMAP   0x80000160     /*(CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)*/
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ( FLASH_BASE0_PRELIM | 0x00000801 )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ( FLASH_BASE1_PRELIM | 0x00000801 )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ( FLASH_BASE1_PRELIM | 0x00000801 )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x02000000      /* max 32 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM 0xFC000E00
-#define CFG_BR2_PRELIM (SDRAM_BASE2_PRELIM | 0x00000081)
+#define CONFIG_SYS_OR2_PRELIM  0xFC000E00
+#define CONFIG_SYS_BR2_PRELIM  (SDRAM_BASE2_PRELIM | 0x00000081)
 
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM (SDRAM_BASE3_PRELIM | 0x00000081)
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  (SDRAM_BASE3_PRELIM | 0x00000081)
 
 
 /*
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  0x18803112
-#define CFG_MAMR_9COL  0x18803112      /* same as 8 column because its just easier to port with*/
+#define CONFIG_SYS_MAMR_8COL   0x18803112
+#define CONFIG_SYS_MAMR_9COL   0x18803112      /* same as 8 column because its just easier to port with*/
 
 
 /*
index adf79c7376149597f86b886162086890c310bb97..c36f2bb18c9a3f675a2b9e752e2a50bc2356e37a 100644 (file)
@@ -76,7 +76,7 @@
 #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #define        CONFIG_WATCHDOG         1       /* watchdog enabled             */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0300000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0700000       /* 3 ... 7 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0300000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0700000       /* 3 ... 7 MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #ifdef DEBUG
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     35      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #ifdef CONFIG_FLASH_16BIT
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 1, CSNT = 0, SCY = 2, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH    (OR_ACS_DIV2 | OR_BI | \
                               OR_SCY_2_CLK | OR_TRLX )
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
 
 #ifdef CONFIG_FLASH_16BIT      /* 16 bit data port */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16)
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16)
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16)
 #else                          /* 32 bit data port */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_32)
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V | BR_PS_32)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_32)
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V | BR_PS_32)
 #endif /* CONFIG_FLASH_16BIT */
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   23              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    23              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_1X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_1X)
 
index f98831e7d8d1aa6e17b59bbbde0216bc7c0cebf7..bf41c13bdfbd268731fc590476a772d700c0798a 100644 (file)
@@ -40,7 +40,7 @@
  */
 
 #define CONFIG_EVB64260                1       /* this is an EVB64260 board    */
-#define CFG_GT_6426x        GT_64260 /* with a 64260 system controller */
+#define CONFIG_SYS_GT_6426x        GT_64260 /* with a 64260 system controller */
 
 #define CONFIG_BAUDRATE                38400   /* console baudrate = 38400     */
 
 #define CONFIG_BOARD_EARLY_INIT_F 1
 
 #ifndef CONFIG_EVB64260_750CX
-#define CFG_BOARD_NAME         "EVB64260"
+#define CONFIG_SYS_BOARD_NAME          "EVB64260"
 #else
-#define CFG_BOARD_NAME         "EVB64260-750CX"
+#define CONFIG_SYS_BOARD_NAME         "EVB64260-750CX"
 #endif
 
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 /*
  * The following defines let you select what serial you want to use
@@ -66,7 +66,7 @@
  *
  * what to do:
  * to use the DUART, undef CONFIG_MPSC.  If you have hacked a serial
- * cable onto the second DUART channel, change the CFG_DUART port from 1
+ * cable onto the second DUART channel, change the CONFIG_SYS_DUART port from 1
  * to 0 below.
  *
  * to use the MPSC, #define CONFIG_MPSC.  If you have wired up another
@@ -98,7 +98,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#define        CFG_LOADS_BAUD_CHANGE           /* allow baudrate changes       */
+#define        CONFIG_SYS_LOADS_BAUD_CHANGE            /* allow baudrate changes       */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #undef CONFIG_ALTIVEC                  /* undef to disable             */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C00000      /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C00000      /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x00300000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00300000      /* default load address */
 
-#define        CFG_HZ                  1000            /* decr freq: 1ms ticks */
-#define CFG_BUS_HZ             100000000       /* 100 MHz              */
-#define CFG_BUS_CLK            CFG_BUS_HZ
+#define        CONFIG_SYS_HZ                   1000            /* decr freq: 1ms ticks */
+#define CONFIG_SYS_BUS_HZ              100000000       /* 100 MHz              */
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #ifdef CONFIG_EVB64260_750CX
 #define CONFIG_750CX
-#define CFG_BROKEN_CL2
+#define CONFIG_SYS_BROKEN_CL2
 #endif
 
 /*
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define        CFG_INIT_RAM_END        0x1000
-#define        CFG_GBL_DATA_SIZE       128  /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define        CONFIG_SYS_INIT_RAM_END 0x1000
+#define        CONFIG_SYS_GBL_DATA_SIZE        128  /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK
 
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0xfff00000
-#define CFG_RESET_ADDRESS      0xfff00100
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xfff00000
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 256 kB for malloc */
 
 /* areas to map different things with the GT in physical space */
-#define CFG_DRAM_BANKS         4
-#define CFG_DFL_GT_REGS                0x14000000      /* boot time GT_REGS */
+#define CONFIG_SYS_DRAM_BANKS          4
+#define CONFIG_SYS_DFL_GT_REGS         0x14000000      /* boot time GT_REGS */
 
 /* What to put in the bats. */
-#define CFG_MISC_REGION_BASE   0xf0000000
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000
 
 /* Peripheral Device section */
-#define CFG_GT_REGS            0xf8000000
-#define CFG_DEV_BASE           0xfc000000
-
-#define CFG_DEV0_SPACE         CFG_DEV_BASE
-#define CFG_DEV1_SPACE         (CFG_DEV0_SPACE + CFG_DEV0_SIZE)
-#define CFG_DEV2_SPACE         (CFG_DEV1_SPACE + CFG_DEV1_SIZE)
-#define CFG_DEV3_SPACE         (CFG_DEV2_SPACE + CFG_DEV2_SIZE)
-
-#define CFG_DEV0_SIZE           _8M /* evb64260 sram  @ 0xfc00.0000 */
-#define CFG_DEV1_SIZE           _8M /* evb64260 rtc   @ 0xfc80.0000 */
-#define CFG_DEV2_SIZE          _16M /* evb64260 duart @ 0xfd00.0000 */
-#define CFG_DEV3_SIZE          _16M /* evb64260 flash @ 0xfe00.0000 */
-
-#define CFG_DEV0_PAR           0x20205093
-#define CFG_DEV1_PAR           0xcfcfffff
-#define CFG_DEV2_PAR           0xc0059bd4
-#define CFG_8BIT_BOOT_PAR      0xc00b5e7c
-#define CFG_32BIT_BOOT_PAR     0xc4a8241c
+#define CONFIG_SYS_GT_REGS             0xf8000000
+#define CONFIG_SYS_DEV_BASE            0xfc000000
+
+#define CONFIG_SYS_DEV0_SPACE          CONFIG_SYS_DEV_BASE
+#define CONFIG_SYS_DEV1_SPACE          (CONFIG_SYS_DEV0_SPACE + CONFIG_SYS_DEV0_SIZE)
+#define CONFIG_SYS_DEV2_SPACE          (CONFIG_SYS_DEV1_SPACE + CONFIG_SYS_DEV1_SIZE)
+#define CONFIG_SYS_DEV3_SPACE          (CONFIG_SYS_DEV2_SPACE + CONFIG_SYS_DEV2_SIZE)
+
+#define CONFIG_SYS_DEV0_SIZE            _8M /* evb64260 sram  @ 0xfc00.0000 */
+#define CONFIG_SYS_DEV1_SIZE            _8M /* evb64260 rtc   @ 0xfc80.0000 */
+#define CONFIG_SYS_DEV2_SIZE           _16M /* evb64260 duart @ 0xfd00.0000 */
+#define CONFIG_SYS_DEV3_SIZE           _16M /* evb64260 flash @ 0xfe00.0000 */
+
+#define CONFIG_SYS_DEV0_PAR            0x20205093
+#define CONFIG_SYS_DEV1_PAR            0xcfcfffff
+#define CONFIG_SYS_DEV2_PAR            0xc0059bd4
+#define CONFIG_SYS_8BIT_BOOT_PAR       0xc00b5e7c
+#define CONFIG_SYS_32BIT_BOOT_PAR      0xc4a8241c
        /*   c    4    a      8     2     4    1      c         */
        /* 33 22|2222|22 22|111 1|11 11|1 1  |    |             */
        /* 10 98|7654|32 10|987 6|54 32|1 098|7 654|3 210       */
        /*  3| 0|.... ..| 2| 4 |  0 |  4 |  8  |  3  | 4        */
 
 #if 0 /* Wrong?? NTL */
-#define CFG_MPP_CONTROL_0      0x53541717      /* InitAct EOT[4] DBurst TCEn[1] */
+#define CONFIG_SYS_MPP_CONTROL_0       0x53541717      /* InitAct EOT[4] DBurst TCEn[1] */
                                                /* DMAAck[1:0] GNT0[1:0] */
 #else
-#define CFG_MPP_CONTROL_0      0x53547777      /* InitAct EOT[4] DBurst TCEn[1] */
+#define CONFIG_SYS_MPP_CONTROL_0       0x53547777      /* InitAct EOT[4] DBurst TCEn[1] */
                                                /* REQ0[1:0] GNT0[1:0] */
 #endif
-#define CFG_MPP_CONTROL_1      0x44009911      /* TCEn[4] TCTcnt[4] GPP[13:12] */
+#define CONFIG_SYS_MPP_CONTROL_1       0x44009911      /* TCEn[4] TCTcnt[4] GPP[13:12] */
                                                /* DMAReq[4] DMAAck[4] WDNMI WDE */
 #if 0 /* Wrong?? NTL */
-#define CFG_MPP_CONTROL_2      0x40091818      /* TCTcnt[0] GPP[22:21] BClkIn */
+#define CONFIG_SYS_MPP_CONTROL_2       0x40091818      /* TCTcnt[0] GPP[22:21] BClkIn */
                                                /* DMAAck[1:0] GNT1[1:0] */
 #else
-#define CFG_MPP_CONTROL_2      0x40098888      /* TCTcnt[0] */
+#define CONFIG_SYS_MPP_CONTROL_2       0x40098888      /* TCTcnt[0] */
                                                /* GPP[22] (RS232IntB or PCI1Int) */
                                                /* GPP[21] (RS323IntA) */
                                                /* BClkIn */
 #endif
 
 #if 0 /* Wrong?? NTL */
-# define CFG_MPP_CONTROL_3     0x00090066      /* GPP[31:29] BClkOut0 */
+# define CONFIG_SYS_MPP_CONTROL_3      0x00090066      /* GPP[31:29] BClkOut0 */
                                                /* GPP[27:26] Int[1:0] */
 #else
-# define CFG_MPP_CONTROL_3     0x22090066      /* MREQ MGNT */
+# define CONFIG_SYS_MPP_CONTROL_3      0x22090066      /* MREQ MGNT */
                                                /* GPP[29]    (PCI1Int) */
                                                /* BClkOut0 */
                                                /* GPP[27]    (PCI0Int) */
                                                /* CPUInt[25:24] */
 #endif
 
-# define CFG_SERIAL_PORT_MUX   0x00000102      /* 0=hiZ  1=MPSC0 2=ETH 0 and 2 RMII */
+# define CONFIG_SYS_SERIAL_PORT_MUX    0x00000102      /* 0=hiZ  1=MPSC0 2=ETH 0 and 2 RMII */
 
 #if 0 /* Wrong?? - NTL */
-# define CFG_GPP_LEVEL_CONTROL 0x000002c6
+# define CONFIG_SYS_GPP_LEVEL_CONTROL  0x000002c6
 #else
-# define CFG_GPP_LEVEL_CONTROL 0x2c600000      /* 0010 1100 0110 0000 */
+# define CONFIG_SYS_GPP_LEVEL_CONTROL  0x2c600000      /* 0010 1100 0110 0000 */
                                                /* gpp[29] */
                                                /* gpp[27:26] */
                                                /* gpp[22:21] */
 
-# define CFG_SDRAM_CONFIG      0xd8e18200      /* 0x448 */
+# define CONFIG_SYS_SDRAM_CONFIG       0xd8e18200      /* 0x448 */
                                /* idmas use buffer 1,1
                                   comm use buffer 0
                                   pci use buffer 1,1
                                /* 1  0  0x200 */
 #endif
 
-#define CFG_DUART_IO           CFG_DEV2_SPACE
-#define CFG_DUART_CHAN         1               /* channel to use for console */
-#define CFG_INIT_CHAN1
-#define CFG_INIT_CHAN2
+#define CONFIG_SYS_DUART_IO            CONFIG_SYS_DEV2_SPACE
+#define CONFIG_SYS_DUART_CHAN          1               /* channel to use for console */
+#define CONFIG_SYS_INIT_CHAN1
+#define CONFIG_SYS_INIT_CHAN2
 
-#define SRAM_BASE              CFG_DEV0_SPACE
+#define SRAM_BASE              CONFIG_SYS_DEV0_SPACE
 #define SRAM_SIZE              0x00100000              /* 1 MB of sram */
 
 
 #define CONFIG_PCI_PNP                  /* do pci plug-and-play         */
 
 /* PCI MEMORY MAP section */
-#define CFG_PCI0_MEM_BASE      0x80000000
-#define CFG_PCI0_MEM_SIZE      _128M
-#define CFG_PCI1_MEM_BASE      0x88000000
-#define CFG_PCI1_MEM_SIZE      _128M
+#define CONFIG_SYS_PCI0_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI0_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI1_MEM_BASE       0x88000000
+#define CONFIG_SYS_PCI1_MEM_SIZE       _128M
 
-#define CFG_PCI0_0_MEM_SPACE   (CFG_PCI0_MEM_BASE)
-#define CFG_PCI1_0_MEM_SPACE   (CFG_PCI1_MEM_BASE)
+#define CONFIG_SYS_PCI0_0_MEM_SPACE    (CONFIG_SYS_PCI0_MEM_BASE)
+#define CONFIG_SYS_PCI1_0_MEM_SPACE    (CONFIG_SYS_PCI1_MEM_BASE)
 
 
 /* PCI I/O MAP section */
-#define CFG_PCI0_IO_BASE       0xfa000000
-#define CFG_PCI0_IO_SIZE       _16M
-#define CFG_PCI1_IO_BASE       0xfb000000
-#define CFG_PCI1_IO_SIZE       _16M
+#define CONFIG_SYS_PCI0_IO_BASE        0xfa000000
+#define CONFIG_SYS_PCI0_IO_SIZE        _16M
+#define CONFIG_SYS_PCI1_IO_BASE        0xfb000000
+#define CONFIG_SYS_PCI1_IO_SIZE        _16M
 
-#define CFG_PCI0_IO_SPACE      (CFG_PCI0_IO_BASE)
-#define CFG_PCI0_IO_SPACE_PCI  0x00000000
-#define CFG_PCI1_IO_SPACE      (CFG_PCI1_IO_BASE)
-#define CFG_PCI1_IO_SPACE_PCI  0x00000000
+#define CONFIG_SYS_PCI0_IO_SPACE       (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI0_IO_SPACE_PCI   0x00000000
+#define CONFIG_SYS_PCI1_IO_SPACE       (CONFIG_SYS_PCI1_IO_BASE)
+#define CONFIG_SYS_PCI1_IO_SPACE_PCI   0x00000000
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
+#define CONFIG_SYS_NS16550
 
-#define CFG_NS16550_REG_SIZE   -4
+#define CONFIG_SYS_NS16550_REG_SIZE    -4
 
-#define CFG_NS16550_CLK                3686400
+#define CONFIG_SYS_NS16550_CLK         3686400
 
-#define CFG_NS16550_COM1       (CFG_DUART_IO + 0)
-#define CFG_NS16550_COM2       (CFG_DUART_IO + 0x20)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_DUART_IO + 0)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_DUART_IO + 0x20)
 
 /*----------------------------------------------------------------------
  * Initial BAT mappings
  */
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
 /* init ram */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
 
 /* PCI0, PCI1 in one BAT */
-#define CFG_IBAT2L BATL_NO_ACCESS
-#define CFG_IBAT2U CFG_DBAT2U
-#define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L BATL_NO_ACCESS
+#define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_DBAT2L (CONFIG_SYS_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (CONFIG_SYS_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* GT regs, bootrom, all the devices, PCI I/O */
-#define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
-#define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
-#define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
+#define CONFIG_SYS_DBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 /* I2C speed and slave address (for compatability) defaults */
-#define CFG_I2C_SPEED  400000
-#define CFG_I2C_SLAVE  0x7F
+#define CONFIG_SYS_I2C_SPEED   400000
+#define CONFIG_SYS_I2C_SLAVE   0x7F
 
 /* I2C addresses for the two DIMM SPD chips */
 #ifndef CONFIG_EVB64260_750CX
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8<<20) /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8<<20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip */
 
-#define CFG_EXTRA_FLASH_DEVICE DEVICE3 /* extra flash at device 3 */
-#define CFG_EXTRA_FLASH_WIDTH  4       /* 32 bit */
+#define CONFIG_SYS_EXTRA_FLASH_DEVICE  DEVICE3 /* extra flash at device 3 */
+#define CONFIG_SYS_EXTRA_FLASH_WIDTH   4       /* 32 bit */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_CFI           1
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_SIZE         0x1000  /* Total Size of Environment Sector */
 #define CONFIG_ENV_SECT_SIZE   0x10000
-#define CONFIG_ENV_ADDR    (CFG_FLASH_BASE+CFG_MONITOR_LEN-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR    (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_MONITOR_LEN-CONFIG_ENV_SECT_SIZE)
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * look in include/74xx_7xx.h for the defines used here
  */
 
-#define CFG_L2
+#define CONFIG_SYS_L2
 
 #ifdef CONFIG_750CX
 #define L2_INIT                0
 #define        BOOTFLAG_COLD   0x01            /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM  0x02            /* Software reboot                  */
 
-#define CFG_BOARD_ASM_INIT      1
+#define CONFIG_SYS_BOARD_ASM_INIT      1
 
 
 #endif /* __CONFIG_H */
index 5ba1706b226c364416877a90b3eac954672addd4..9f5d3caa5fb24a245f1b58c5700b8b087b356f1c 100644 (file)
@@ -43,8 +43,8 @@
 
 /* I2C configuration */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
-#define CFG_I2C_SPEED          40000   /* I2C speed                    */
-#define CFG_I2C_SLAVE          0x7F    /* I2C slave address            */
+#define CONFIG_SYS_I2C_SPEED           40000   /* I2C speed                    */
+#define CONFIG_SYS_I2C_SLAVE           0x7F    /* I2C slave address            */
 
 /* environment is in EEPROM */
 #define CONFIG_ENV_IS_IN_EEPROM    1
 #undef CONFIG_ENV_IS_IN_NVRAM
 
 #ifdef CONFIG_ENV_IS_IN_EEPROM
-#define CFG_I2C_EEPROM_ADDR            0x56    /* 1010110 */
-#define CFG_I2C_EEPROM_ADDR_LEN                1       /* 8-bit internal addressing */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   1       /* ... and 1 bit in I2C address */
-#define CFG_EEPROM_PAGE_WRITE_BITS     3       /* 4 bytes per page */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 40      /* write takes up to 40 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x56    /* 1010110 */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1       /* 8-bit internal addressing */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    1       /* ... and 1 bit in I2C address */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3       /* 4 bytes per page */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  40      /* write takes up to 40 msec */
 #define CONFIG_ENV_OFFSET              4       /* Offset of Environment Sector */
 #define        CONFIG_ENV_SIZE         350     /* that is 350 bytes only!      */
 #endif
@@ -77,7 +77,7 @@
                                "ram=128M debug"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /* UART configuration */
-#define CFG_BASE_BAUD          691200
+#define CONFIG_SYS_BASE_BAUD           691200
 
 /* Default baud rate */
 #define CONFIG_BAUDRATE                115200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE      \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_CLKS_IN_HZ         1       /* everything, incl board info, in Hz */
+#define CONFIG_SYS_CLKS_IN_HZ          1       /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #undef  CONFIG_IDE_LED                  /* no led for ide supported     */
 #undef  CONFIG_IDE_RESET                /* no reset for ide supported   */
 
-#define        CFG_KEY_REG_BASE_ADDR   0xF0100000
-#define        CFG_IR_REG_BASE_ADDR    0xF0200000
-#define        CFG_FPGA_REG_BASE_ADDR  0xF0300000
+#define        CONFIG_SYS_KEY_REG_BASE_ADDR    0xF0100000
+#define        CONFIG_SYS_IR_REG_BASE_ADDR     0xF0200000
+#define        CONFIG_SYS_FPGA_REG_BASE_ADDR   0xF0300000
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH0_BASE                0xFFF80000
-#define CFG_FLASH0_SIZE                0x00080000
-#define CFG_FLASH1_BASE                0x20000000
-#define CFG_FLASH1_SIZE                0x02000000
-#define CFG_FLASH_BASE         CFG_FLASH0_BASE
-#define CFG_FLASH_SIZE         CFG_FLASH0_SIZE
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 196 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
-
-#if CFG_MONITOR_BASE < CFG_FLASH0_BASE
-#define CFG_RAMSTART
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH0_BASE         0xFFF80000
+#define CONFIG_SYS_FLASH0_SIZE         0x00080000
+#define CONFIG_SYS_FLASH1_BASE         0x20000000
+#define CONFIG_SYS_FLASH1_SIZE         0x02000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_FLASH_SIZE          CONFIG_SYS_FLASH0_SIZE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
+
+#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_RAMSTART
 #endif
 
 /*
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    5       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     5       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_OFFSET              0x00060000 /* Offset of Environment Sector      */
 #endif
 
 /* On Chip Memory location/size */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
 
 /* Global info and initial stack */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of on-chip SRAM     */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of on-chip SRAM      */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
index abf51ef0145d3f3e6cfc43656219df0fe62da7b2..cb759602b9a867b3b568ca5b3ccf296fd8c7483e 100644 (file)
  * 00000000 -> nnnnnnnn : sdram/dram setup by U-Boot
 */
 
-#define CFG_PCMCIA_IO_ADDR     0xff020000
-#define CFG_PCMCIA_IO_SIZE     0x10000
-#define CFG_PCMCIA_MEM_ADDR    0xe0000000
-#define CFG_PCMCIA_MEM_SIZE    0x10000
-#define CFG_IMMR               0xFF000000
-#define        CFG_SDRAM_SIZE          (4<<20) /* standard FADS has 4M */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x02800000
+#define CONFIG_SYS_PCMCIA_IO_ADDR      0xff020000
+#define CONFIG_SYS_PCMCIA_IO_SIZE      0x10000
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     0xe0000000
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     0x10000
+#define CONFIG_SYS_IMMR                0xFF000000
+#define        CONFIG_SYS_SDRAM_SIZE           (4<<20) /* standard FADS has 4M */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x02800000
 #define BCSR_ADDR              ((uint) 0xff010000)
 #define FLASH_BASE0_PRELIM     0x02800000      /* FLASH bank #0        */
 
@@ -43,8 +43,8 @@
 
 #define CONFIG_VIDEO           1       /* To enable video controller support */
 #define CONFIG_HARD_I2C                1       /* To I2C with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*#define CONFIG_PCMCIA                1       / * To enable PCMCIA support */
 
@@ -82,7 +82,7 @@
 #else
 #define MPC8XX_FACT    10                      /* Multiply by 10 */
 #define MPC8XX_XIN     5000000                 /* 5 MHz in */
-#define CFG_PLPRCR_MF  (MPC8XX_FACT-1) << 20   /* From 0 to 4095 */
+#define CONFIG_SYS_PLPRCR_MF   (MPC8XX_FACT-1) << 20   /* From 0 to 4095 */
 #endif
 #define MPC8XX_HZ ((MPC8XX_XIN) * (MPC8XX_FACT))
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              ":>"            /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               ":>"            /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00004000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01000000      /* 0 ... 16 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00004000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01000000      /* 0 ... 16 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x00100000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  * Also NOTE that it doesn't mean SDRAM - it means MEMORY.
  */
-#define CFG_FLASH_SIZE         ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
 #if 0
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (512 << 10)     /* Reserve 512 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_OFFSET              0x00040000      /* Offset of Environment Sector */
 #define        CONFIG_ENV_SIZE         0x40000 /* Total Size of Environment Sector     */
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer  *
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | CFG_PLPRCR_MF)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | CONFIG_SYS_PLPRCR_MF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR       (SCCR_TBS     | \
                                SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                                SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                                SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
 * entire address space, we have to set the memory controller
 
 #define FLASH_BASE1_PRELIM     0x00000000      /* FLASH bank #1        */
 
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFE00000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFE00000      /* OR addr mask */
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
 /* BCSRx - Board Control and Status Registers */
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM 0xffff8110                                                                      /* 64Kbyte address space */
-#define CFG_BR1_PRELIM ((BCSR_ADDR) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  0xffff8110                                                                      /* 64Kbyte address space */
+#define CONFIG_SYS_BR1_PRELIM  ((BCSR_ADDR) | BR_V )
 
 
 /*
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA           97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA            97              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
-#define CFG_MAMR               0x13a01114
+#define CONFIG_SYS_MAMR                0x13a01114
 /*
  * Internal Definitions
  *
 #define PCMCIA_SLOT_A 1
 #endif
 
-#define CFG_DAUGHTERBOARD
+#define CONFIG_SYS_DAUGHTERBOARD
 
 #endif /* __CONFIG_H */
index d6178689a6abdc71f81addd7e07fabbe9982eafb..84187fbb4d7c77c8d97fe404cf33012523631647 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              ":>"            /* Monitor Command Prompt       */
+#undef CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               ":>"            /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE      (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00004000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00800000      /* 0 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00004000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00800000      /* 0 ... 8 MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR                       0xFF000000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR                        0xFF000000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  * Also NOTE that it doesn't mean SDRAM - it means MEMORY.
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define        CFG_SDRAM_SIZE          (4<<20) /* standard FADS has 4M */
-#define CFG_FLASH_BASE         0x02800000
-#define CFG_FLASH_SIZE         ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define        CONFIG_SYS_SDRAM_SIZE           (4<<20) /* standard FADS has 4M */
+#define CONFIG_SYS_FLASH_BASE          0x02800000
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
 #if 0
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 128 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (512 << 10)     /* Reserve 512 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_OFFSET              0x00040000      /* Offset of Environment Sector */
 #define        CONFIG_ENV_SIZE         0x40000 /* Total Size of Environment Sector     */
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer  *
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << 20) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << 20) | \
                                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR       (SCCR_TBS     | \
                                SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                                SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                                SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
 * entire address space, we have to set the memory controller
 #define FLASH_BASE0_PRELIM     0x02800000      /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0x00000000      /* FLASH bank #1        */
 
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFE00000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFE00000      /* OR addr mask */
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
 /* BCSRx - Board Control and Status Registers */
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM 0xffff8110                                                                      /* 64Kbyte address space */
-#define CFG_BR1_PRELIM ((BCSR_ADDR) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  0xffff8110                                                                      /* 64Kbyte address space */
+#define CONFIG_SYS_BR1_PRELIM  ((BCSR_ADDR) | BR_V )
 
 
 /*
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA           97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA            97              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
-#define CFG_MAMR               0x13a01114
+#define CONFIG_SYS_MAMR                0x13a01114
 /*
  * Internal Definitions
  *
 #define PCMCIA_SLOT_A 1
 #endif
 
-#define CFG_DAUGHTERBOARD
+#define CONFIG_SYS_DAUGHTERBOARD
 
 #endif /* __CONFIG_H */
index 38295c4550b5b0b886191343740f930b762bba20..dcb0c394452852625e7f6652986c1e521edb75a3 100644 (file)
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
 
 #if 0 /* old FADS */
-# define CFG_8XX_FACT          12      /* 4 MHz oscillator on EXTCLK */
+# define CONFIG_SYS_8XX_FACT           12      /* 4 MHz oscillator on EXTCLK */
 #else /* new FADS */
-# define CFG_8XX_FACT          10      /* 5 MHz oscillator on EXTCLK */
+# define CONFIG_SYS_8XX_FACT           10      /* 5 MHz oscillator on EXTCLK */
 #endif
 
-#define CFG_PLPRCR  (((CFG_8XX_FACT-1) << PLPRCR_MF_SHIFT) |   \
+#define CONFIG_SYS_PLPRCR  (((CONFIG_SYS_8XX_FACT-1) << PLPRCR_MF_SHIFT) |     \
                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 #define CONFIG_DRAM_50MHZ              1
  * These values fit our FADS860T ...
  * The "default" behaviour with 1Mbyte initial doesn't work for us!
  */
-#undef CFG_OR0_PRELIM
-#undef CFG_BR0_PRELIM
-#define CFG_OR0_PRELIM 0x0FFC00D34 /* Real values for the board */
-#define CFG_BR0_PRELIM 0x02800001  /* Real values for the board */
+#undef CONFIG_SYS_OR0_PRELIM
+#undef CONFIG_SYS_BR0_PRELIM
+#define CONFIG_SYS_OR0_PRELIM  0x0FFC00D34 /* Real values for the board */
+#define CONFIG_SYS_BR0_PRELIM  0x02800001  /* Real values for the board */
 #endif
 
-#define CFG_DAUGHTERBOARD /* FADS has processor-specific daughterboard */
+#define CONFIG_SYS_DAUGHTERBOARD /* FADS has processor-specific daughterboard */
 
 #endif /* __CONFIG_H */
index 52b5ab467999443f279127bf8c7b6b7905d01526..1ef80679635fdfdf70ac225472c93a2ed1e39bec 100644 (file)
@@ -57,7 +57,7 @@
 #endif /* 0|1*/
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 /*#define      CONFIG_WATCHDOG*/       /* watchdog enabled             */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "EEG> "         /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "EEG> "         /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0f00000       /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0f00000       /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x40040000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x40040000      /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (128 << 10)     /* Reserve 128 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   8000    /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000    /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 /* This is a litlebit wasteful, but one sector is 128kb and we have to
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #ifdef CONFIG_WATCHDOG
-#define CFG_SYPCR (SYPCR_SWTC | SYPCR_SWF | SYPCR_SWE | SYPCR_SWRI | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR (SYPCR_SWTC | SYPCR_SWF | SYPCR_SWE | SYPCR_SWRI | SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_PRE_SIUMCR (SIUMCR_DBGC11 | SIUMCR_MPRE | \
+#define CONFIG_SYS_PRE_SIUMCR (SIUMCR_DBGC11 | SIUMCR_MPRE | \
                                                        SIUMCR_MLRC01 | SIUMCR_GB5E)
-#define CFG_SIUMCR (CFG_PRE_SIUMCR | SIUMCR_DLK)
+#define CONFIG_SYS_SIUMCR (CONFIG_SYS_PRE_SIUMCR | SIUMCR_DLK)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit miltiplier of 0x00b i.e. operation clock is
  * 4MHz * (0x00b+1) = 4MHz * 12 =  48MHz
  */
-#define CFG_PLPRCR     (0x00b00000 | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (0x00b00000 | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       ( SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        ( SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * In the Flaga DM we have:
  * untouched.
 */
 
-#define CFG_FLASH_PROTECTION 0
+#define CONFIG_SYS_FLASH_PROTECTION 0
 
 #define FLASH_BASE0            0x40000000      /* FLASH bank #0        */
 
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_OR_AM              0xff000000      /* OR addr mask */
-#define CFG_OR_ATM             0x00006000
+#define CONFIG_SYS_OR_AM               0xff000000      /* OR addr mask */
+#define CONFIG_SYS_OR_ATM              0x00006000
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | \
                                 OR_SCY_3_CLK | OR_TRLX | OR_EHTR )
 
-#define CFG_OR0_PRELIM (CFG_OR_AM | CFG_OR_ATM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0 & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_OR_AM | CONFIG_SYS_OR_ATM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0 & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 /*
  * BR2 and OR2 (SDRAM)
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    ( 0x00000800 )
+#define CONFIG_SYS_OR_TIMING_SDRAM     ( 0x00000800 )
 
-#define CFG_OR2_PRELIM (CFG_OR_AM | CFG_OR_TIMING_SDRAM)
-#define CFG_BR2_PRELIM ((SDRAM_BASE2 & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2 & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
-#define CFG_BR2                        CFG_BR2_PRELIM
-#define CFG_OR2                        CFG_OR2_PRELIM
+#define CONFIG_SYS_BR2                 CONFIG_SYS_BR2_PRELIM
+#define CONFIG_SYS_OR2                 CONFIG_SYS_OR2_PRELIM
 
 /*
  * MAMR settings for SDRAM
  */
-#define CFG_MAMR_48_SDR (CFG_MAMR_PTA |         MAMR_WLFA_1X | MAMR_RLFA_1X  \
+#define CONFIG_SYS_MAMR_48_SDR (CONFIG_SYS_MAMR_PTA |   MAMR_WLFA_1X | MAMR_RLFA_1X  \
                                        | MAMR_G0CLA_A11)
 
 /*
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   0x0F000000
+#define CONFIG_SYS_MAMR_PTA    0x0F000000
 
 /*
    * BR4 and OR4 (DSP1)
 */
 #define DSP_BASE 0x80000000
 
-#define CFG_OR4 ( OR_AM_MSK | OR_CSNT_SAM | OR_BI | OR_G5LS)
-#define CFG_BR4 ( (DSP_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_UPMB | BR_V )
+#define CONFIG_SYS_OR4 ( OR_AM_MSK | OR_CSNT_SAM | OR_BI | OR_G5LS)
+#define CONFIG_SYS_BR4 ( (DSP_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_UPMB | BR_V )
 
 /*
  * Internal Definitions
index c9d6c912919775f24cff41b76685137553760c20..08408e2c3128190ec733613265d0d83fb3c3823c 100644 (file)
@@ -80,7 +80,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index bf20a0d733f2cc5e1dc3d409e4fe7dbb8179b130..e5f3b606edf1b3a082aa95c046f79a9a265fb1d3 100644 (file)
@@ -80,7 +80,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index f43d0c59456b0d37e356c3bcc1e0fe63c86cc6eb..4341f02e6056d51a3d9d8c4c1a281a4a764a4159 100644 (file)
@@ -76,7 +76,7 @@
        ""
 #define CONFIG_BOOTCOMMAND     "run net_nfs"
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #undef CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 #define CONFIG_BOOTDELAY       3       /* autoboot after 3 seconds     */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*----------------------------------------------------------------------------*/
 /* adding Ethernet setting:  FTS OUI 00:11:0B */
  *-----------------------------------------------------------------------
  */
 #define CONFIG_RTC_DS1337
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 #if 0 /* test-only */
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
 #define SECTORSIZE 512
 
 #define ADDR_COLUMN 1
 #define NAND_MAX_FLOORS 1
 #define NAND_MAX_CHIPS 1
 
-#define CFG_NAND_CE  (0x80000000 >> 1) /* our CE is GPIO1 */
-#define CFG_NAND_CLE (0x80000000 >> 2) /* our CLE is GPIO2 */
-#define CFG_NAND_ALE (0x80000000 >> 3) /* our ALE is GPIO3 */
-#define CFG_NAND_RDY (0x80000000 >> 4) /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CE  (0x80000000 >> 1)  /* our CE is GPIO1 */
+#define CONFIG_SYS_NAND_CLE (0x80000000 >> 2)  /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE (0x80000000 >> 3)  /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_RDY (0x80000000 >> 4)  /* our RDY is GPIO4 */
 
-#define NAND_DISABLE_CE(nand) do { out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND_CE);} while(0)
-#define NAND_ENABLE_CE(nand) do { out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND_CE);} while(0)
-#define NAND_CTL_CLRALE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND_ALE);} while(0)
-#define NAND_CTL_SETALE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND_ALE);} while(0)
-#define NAND_CTL_CLRCLE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND_CLE);} while(0)
-#define NAND_CTL_SETCLE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND_CLE);} while(0)
-#define NAND_WAIT_READY(nand) while (!(in32(GPIO0_IR) & CFG_NAND_RDY))
+#define NAND_DISABLE_CE(nand) do { out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND_CE);} while(0)
+#define NAND_ENABLE_CE(nand) do { out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND_CE);} while(0)
+#define NAND_CTL_CLRALE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND_ALE);} while(0)
+#define NAND_CTL_SETALE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND_ALE);} while(0)
+#define NAND_CTL_CLRCLE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND_CLE);} while(0)
+#define NAND_CTL_SETCLE(nandptr) do { out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND_CLE);} while(0)
+#define NAND_WAIT_READY(nand) while (!(in32(GPIO0_IR) & CONFIG_SYS_NAND_RDY))
 
 #define WRITE_NAND_COMMAND(d, adr) do{ *(volatile __u8 *)((unsigned long)adr) = (__u8)(d); } while(0)
 #define WRITE_NAND_ADDRESS(d, adr) do{ *(volatile __u8 *)((unsigned long)adr) = (__u8)(d); } while(0)
 
 #define CONFIG_PCI_CONFIG_HOST_BRIDGE 1 /* don't skip host bridge config*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 #if 0 /* APC405 */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant              */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#undef CFG_FLASH_PROTECTION            /* don't use hardware protection        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_BASE         0xFE000000 /* test-only...*/
-#define CFG_FLASH_INCREMENT    0x01000000 /* test-only */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant              */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#undef CONFIG_SYS_FLASH_PROTECTION             /* don't use hardware protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000 /* test-only...*/
+#define CONFIG_SYS_FLASH_INCREMENT     0x01000000 /* test-only */
 #else /* G2000 */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant              */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#undef CFG_FLASH_PROTECTION            /* don't use hardware protection        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_BASE         0xFF800000 /* test-only...*/
-#define CFG_FLASH_INCREMENT    0x01000000 /* test-only */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant              */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#undef CONFIG_SYS_FLASH_PROTECTION             /* don't use hardware protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_BASE          0xFF800000 /* test-only...*/
+#define CONFIG_SYS_FLASH_INCREMENT     0x01000000 /* test-only */
 #endif
 
-#define CFG_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
-#define CFG_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS     1           /* ! second bank contains u-boot    */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains u-boot    */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MONITOR_BASE       0xFFFC0000
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MONITOR_BASE        0xFFFC0000
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
 
 /*-----------------------------------------------------------------------
  * Environment Variable setup
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT24WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT24WC08             */
 /* CAT24WC08/16... */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  */
 
 /* Memory Bank 0 (Intel Strata Flash) initialization                            */
-#define CFG_EBC_PB0AP   0x92015480
-#define CFG_EBC_PB0CR   0xFF87A000          /* BAS=0xFF8,BS=08MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB0AP   0x92015480
+#define CONFIG_SYS_EBC_PB0CR   0xFF87A000          /* BAS=0xFF8,BS=08MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 1 ( Power TAU) initialization               */
-/* #define CFG_EBC_PB1AP           0x04041000 */
-/* #define CFG_EBC_PB1CR           0xF0018000   */  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
-#define CFG_EBC_PB1AP           0x00000000
-#define CFG_EBC_PB1CR           0x00000000
+/* #define CONFIG_SYS_EBC_PB1AP           0x04041000 */
+/* #define CONFIG_SYS_EBC_PB1CR           0xF0018000   */  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x00000000
+#define CONFIG_SYS_EBC_PB1CR           0x00000000
 
 /* Memory Bank 2 (Intel Flash) initialization                 */
-#define CFG_EBC_PB2AP           0x00000000
-#define CFG_EBC_PB2CR           0x00000000
+#define CONFIG_SYS_EBC_PB2AP           0x00000000
+#define CONFIG_SYS_EBC_PB2CR           0x00000000
 
 /* Memory Bank 3 (NAND) initialization                        */
-#define CFG_EBC_PB3AP           0x92015480
-#define CFG_EBC_PB3CR           0xF40B8000  /*addr 0xF40, BS=32M,BU=R/W, BW=8bit */
+#define CONFIG_SYS_EBC_PB3AP           0x92015480
+#define CONFIG_SYS_EBC_PB3CR           0xF40B8000  /*addr 0xF40, BS=32M,BU=R/W, BW=8bit */
 
 /* Memory Bank 4 (FPGA regs) initialization                                     */
-#define CFG_EBC_PB4AP           0x00000000
-#define CFG_EBC_PB4CR           0x00000000  /* leave it blank  */
+#define CONFIG_SYS_EBC_PB4AP           0x00000000
+#define CONFIG_SYS_EBC_PB4CR           0x00000000  /* leave it blank  */
 
-#define CFG_NAND_BASE   0xF4000000
+#define CONFIG_SYS_NAND_BASE   0xF4000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  *
  * following GPIO setting changed for G20000, 080304
  */
-#define CFG_GPIO0_OSRH          0x40005555
-#define CFG_GPIO0_OSRL          0x40000110
-#define CFG_GPIO0_ISR1H         0x00000000
-#define CFG_GPIO0_ISR1L         0x15555445
-#define CFG_GPIO0_TSRH          0x00000000
-#define CFG_GPIO0_TSRL          0x00000000
-#define CFG_GPIO0_TCR           0xF7FF8014
+#define CONFIG_SYS_GPIO0_OSRH          0x40005555
+#define CONFIG_SYS_GPIO0_OSRL          0x40000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xF7FF8014
 
 /*
  * Internal Definitions
index 1627344458e4dbf6d15d4c6e096a5221230a7bf0..a399d22a7af12fc32bf736248e24bf6b5b8e4b41 100644 (file)
@@ -64,7 +64,7 @@
 /*
  * Set allowable console baud rates
  */
-#define CFG_BAUDRATE_TABLE             { 9600,         \
+#define CONFIG_SYS_BAUDRATE_TABLE              { 9600,         \
                                          19200,        \
                                          38400,        \
                                          57600,        \
@@ -74,7 +74,7 @@
 /*
  * Print console information
  */
-#undef  CFG_CONSOLE_INFO_QUIET
+#undef  CONFIG_SYS_CONSOLE_INFO_QUIET
 
 /*
  * Set the autoboot delay in seconds.  A delay of -1 disables autoboot
  * for downloads
  */
 #undef CONFIG_LOADS_ECHO
-#define        CFG_LOADS_BAUD_CHANGE
+#define        CONFIG_SYS_LOADS_BAUD_CHANGE
 
 /*
  * Set default load address for tftp network downloads
  */
-#define        CFG_TFTP_LOADADDR                               0x01000000
+#define        CONFIG_SYS_TFTP_LOADADDR                                0x01000000
 
 /*
  * Turn off the watchdog timer
  * Reset address. We pick an address such that when an instruction
  * is executed at that address, a machine check exception occurs
  */
-#define CFG_RESET_ADDRESS                              ((ulong) -1)
+#define CONFIG_SYS_RESET_ADDRESS                               ((ulong) -1)
 
 /*
  * BOOTP options
  * MII address is hardwired on the board to zero.
  */
 #define CONFIG_FEC_ENET
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII
 #define CONFIG_MII_INIT                        1
 #define CONFIG_PHY_ADDR                        0
  * This board has a 32 kibibyte EEPROM (Atmel AT24C256) connected to
  * the MPC860T I2C interface.
  */
-#define CFG_I2C_EEPROM_ADDR                            0x50
-#define CFG_EEPROM_PAGE_WRITE_BITS             6               /* 64 byte pages                */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 12              /* 10 mS w/ 20% margin  */
-#define        CFG_I2C_EEPROM_ADDR_LEN                 2               /* need 16 bit address  */
+#define CONFIG_SYS_I2C_EEPROM_ADDR                             0x50
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS              6               /* 64 byte pages                */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  12              /* 10 mS w/ 20% margin  */
+#define        CONFIG_SYS_I2C_EEPROM_ADDR_LEN                  2               /* need 16 bit address  */
 #define CONFIG_ENV_EEPROM_SIZE                         (32 * 1024)
 
 /*
 #undef CONFIG_SOFT_I2C                                         /* Bit-banged I2C                       */
 
 #ifdef CONFIG_HARD_I2C
-#define        CFG_I2C_SPEED           100000                  /* clock speed in Hz            */
-#define CFG_I2C_SLAVE          0xFE                    /* I2C slave address            */
+#define        CONFIG_SYS_I2C_SPEED            100000                  /* clock speed in Hz            */
+#define CONFIG_SYS_I2C_SLAVE           0xFE                    /* I2C slave address            */
 #endif
 
 #ifdef CONFIG_SOFT_I2C
  * length of time, so we use an external RTC on the I2C bus instead.
  */
 #define CONFIG_RTC_DS1337
-#define CFG_I2C_RTC_ADDR                               0x68
+#define CONFIG_SYS_I2C_RTC_ADDR                                0x68
 
 #else
 /*
 /*
  * Power On Self Test support
  */
-#define CONFIG_POST                      ( CFG_POST_CACHE              | \
-                                                               CFG_POST_MEMORY         | \
-                                                               CFG_POST_CPU            | \
-                                                               CFG_POST_UART           | \
-                                                               CFG_POST_SPR )
+#define CONFIG_POST                      ( CONFIG_SYS_POST_CACHE               | \
+                                                               CONFIG_SYS_POST_MEMORY          | \
+                                                               CONFIG_SYS_POST_CPU             | \
+                                                               CONFIG_SYS_POST_UART            | \
+                                                               CONFIG_SYS_POST_SPR )
 
 
 /*
 #define CONFIG_FPGA
 #define CONFIG_FPGA_XILINX
 #define CONFIG_FPGA_VIRTEX2
-#define CFG_FPGA_PROG_FEEDBACK
+#define CONFIG_SYS_FPGA_PROG_FEEDBACK
 
 
 #define CONFIG_NAND_LEGACY
 /*
  * Verbose help from command monitor.
  */
-#define        CFG_LONGHELP
+#define        CONFIG_SYS_LONGHELP
 #if !defined(CONFIG_SC)
-#define        CFG_PROMPT                      "B2> "
+#define        CONFIG_SYS_PROMPT                       "B2> "
 #else
-#define        CFG_PROMPT                      "SC> "
+#define        CONFIG_SYS_PROMPT                       "SC> "
 #endif
 
 
 /*
  * Use the "hush" command parser
  */
-#define        CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define        CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 
 /*
  * Set buffer size for console I/O
  */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE                      1024
+#define        CONFIG_SYS_CBSIZE                       1024
 #else
-#define        CFG_CBSIZE                      256
+#define        CONFIG_SYS_CBSIZE                       256
 #endif
 
 /*
  * Print buffer size
  */
-#define        CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
 /*
  * Maximum number of arguments that a command can accept
  */
-#define        CFG_MAXARGS                     16
+#define        CONFIG_SYS_MAXARGS                      16
 
 /*
  * Boot argument buffer size
  */
-#define CFG_BARGSIZE           CFG_CBSIZE
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
 
 /*
  * Default memory test range
  */
-#define CFG_MEMTEST_START      0x0100000
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START  + (128 * 1024))
+#define CONFIG_SYS_MEMTEST_START       0x0100000
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START  + (128 * 1024))
 
 /*
  * Select the more full-featured memory test
  */
-#define        CFG_ALT_MEMTEST
+#define        CONFIG_SYS_ALT_MEMTEST
 
 /*
  * Default load address
  */
-#define        CFG_LOAD_ADDR           0x01000000
+#define        CONFIG_SYS_LOAD_ADDR            0x01000000
 
 /*
  * Set decrementer frequency (1 ms ticks)
  */
-#define        CFG_HZ                          1000
+#define        CONFIG_SYS_HZ                           1000
 
 /*
  * Device memory map (after SDRAM remap to 0x0):
 /*
  * Base addresses and block sizes
  */
-#define CFG_IMMR                       0xFF000000
+#define CONFIG_SYS_IMMR                        0xFF000000
 
 #define SDRAM_BASE                     0x00000000
 #define SDRAM_SIZE                     (64 * 1024 * 1024)
 /*
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR              CFG_IMMR
-#define        CFG_INIT_RAM_END                0x2F00  /* End of used area in DPRAM            */
-#define        CFG_INIT_DATA_SIZE              64      /* # bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET            (CFG_INIT_RAM_END - CFG_INIT_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET              CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR               CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END         0x2F00  /* End of used area in DPRAM            */
+#define        CONFIG_SYS_INIT_DATA_SIZE               64      /* # bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET             (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_INIT_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET               CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE                  SDRAM_BASE
+#define        CONFIG_SYS_SDRAM_BASE                   SDRAM_BASE
 
 /*
  * FLASH organization
  */
-#define CFG_FLASH_BASE                 FLASH_BASE
-#define CFG_FLASH_SIZE                 FLASH_SIZE
-#define CFG_FLASH_SECT_SIZE            (128 * 1024)
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             128
+#define CONFIG_SYS_FLASH_BASE                  FLASH_BASE
+#define CONFIG_SYS_FLASH_SIZE                  FLASH_SIZE
+#define CONFIG_SYS_FLASH_SECT_SIZE             (128 * 1024)
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              128
 
 /*
  * The timeout values are for an entire chip and are in milliseconds.
  * case VCC and temp after 100K programming cycles.  It works out
  * to 280 minutes (might as well be forever).
  */
-#define CFG_FLASH_ERASE_TOUT   (CFG_MAX_FLASH_SECT * 5000)
-#define CFG_FLASH_WRITE_TOUT   (CFG_MAX_FLASH_SECT * 128 * 1024 * 1)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (CONFIG_SYS_MAX_FLASH_SECT * 5000)
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (CONFIG_SYS_MAX_FLASH_SECT * 128 * 1024 * 1)
 
 /*
  * Allow direct writes to FLASH from tftp transfers (** dangerous **)
  */
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 /*
  * Reserve memory for U-Boot.
  */
-#define CFG_MAX_UBOOT_SECTS            4
-#define        CFG_MONITOR_LEN                 (CFG_MAX_UBOOT_SECTS * CFG_FLASH_SECT_SIZE)
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MAX_UBOOT_SECTS             4
+#define        CONFIG_SYS_MONITOR_LEN                  (CONFIG_SYS_MAX_UBOOT_SECTS * CONFIG_SYS_FLASH_SECT_SIZE)
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
 /*
  * Select environment placement.  NOTE that u-boot.lds must
 #define CONFIG_ENV_OFFSET                      (CONFIG_ENV_EEPROM_SIZE - (8 * 1024))
 #else
 #define CONFIG_ENV_SIZE                        0x1000
-#define CONFIG_ENV_SECT_SIZE           CFG_FLASH_SECT_SIZE
+#define CONFIG_ENV_SECT_SIZE           CONFIG_SYS_FLASH_SECT_SIZE
 
 /*
  * This ultimately gets passed right into the linker script, so we have to
 /*
  * Reserve memory for malloc()
  */
-#define        CFG_MALLOC_LEN          (128 * 1024)
+#define        CONFIG_SYS_MALLOC_LEN           (128 * 1024)
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 * 1024 * 1024)
+#define        CONFIG_SYS_BOOTMAPSZ            (8 * 1024 * 1024)
 
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE             16      /* For all MPC8xx CPUs                          */
+#define CONFIG_SYS_CACHELINE_SIZE              16      /* For all MPC8xx CPUs                          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT            4       /* log base 2 of above value            */
+#define CONFIG_SYS_CACHELINE_SHIFT             4       /* log base 2 of above value            */
 #endif
 
 /*------------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      ( SYPCR_SWTC    | \
+#define CONFIG_SYS_SYPCR       ( SYPCR_SWTC    | \
                                          SYPCR_BMT     | \
                                          SYPCR_BME     | \
                                          SYPCR_SWF     | \
                                          SYPCR_SWP               \
                                        )
 #else
-#define CFG_SYPCR      ( SYPCR_SWTC    | \
+#define CONFIG_SYS_SYPCR       ( SYPCR_SWTC    | \
                                          SYPCR_BMT     | \
                                          SYPCR_BME     | \
                                          SYPCR_SWF     | \
  *-----------------------------------------------------------------------
  * Set debug pin mux, enable SPKROUT and GPLB5*.
  */
-#define CFG_SIUMCR     ( SIUMCR_DBGC11 | \
+#define CONFIG_SYS_SIUMCR      ( SIUMCR_DBGC11 | \
                                          SIUMCR_DBPC11 | \
                                          SIUMCR_MLRC11 | \
                                          SIUMCR_GB5E     \
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freeze enabled
  */
-#define CFG_TBSCR      ( TBSCR_REFA | \
+#define CONFIG_SYS_TBSCR       ( TBSCR_REFA | \
                                          TBSCR_REFB | \
                                          TBSCR_TBF        \
                                        )
  * RTCSC - Real-Time Clock Status and Control Register                 UM 11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      ( RTCSC_SEC     | \
+#define CONFIG_SYS_RTCSC       ( RTCSC_SEC     | \
                                          RTCSC_ALR | \
                                          RTCSC_RTF | \
                                          RTCSC_RTE       \
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      ( PISCR_PS              | \
+#define CONFIG_SYS_PISCR       ( PISCR_PS              | \
                                          PISCR_PITF      \
                                        )
 
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit. Set MF for 1:2:1 mode.
  */
-#define CFG_PLPRCR     ( ((0x1 << PLPRCR_MF_SHIFT) & PLPRCR_MF_MSK)    | \
+#define CONFIG_SYS_PLPRCR      ( ((0x1 << PLPRCR_MF_SHIFT) & PLPRCR_MF_MSK)    | \
                                          PLPRCR_SPLSS  | \
                                          PLPRCR_TEXPS  | \
                                          PLPRCR_TMIST    \
 #define SCCR_MASK   SCCR_EBDF11
 
 #if !defined(CONFIG_SC)
-#define CFG_SCCR       ( SCCR_TBS                      |       /* timebase = GCLK/2    */ \
+#define CONFIG_SYS_SCCR        ( SCCR_TBS                      |       /* timebase = GCLK/2    */ \
                                          SCCR_COM00            |       /* full strength CLKOUT */ \
                                          SCCR_DFSYNC00 |       /* SYNCLK / 1 (normal)  */ \
                                          SCCR_DFBRG00          |       /* BRGCLK / 1 (normal)  */ \
                                          SCCR_DFNH000            \
                                        )
 #else
-#define CFG_SCCR       ( SCCR_TBS                      |       /* timebase = GCLK/2    */ \
+#define CONFIG_SYS_SCCR        ( SCCR_TBS                      |       /* timebase = GCLK/2    */ \
                                          SCCR_COM00            |       /* full strength CLKOUT */ \
                                          SCCR_DFSYNC00 |       /* SYNCLK / 1 (normal)  */ \
                                          SCCR_DFBRG00          |       /* BRGCLK / 1 (normal)  */ \
  *-----------------------------------------------------------------------
  * Mask all events that can cause entry into debug mode
  */
-#define CFG_DER                                0
+#define CONFIG_SYS_DER                         0
 
 /*
  * Initialize Memory Controller:
 /*
  * Flash address mask
  */
-#define CFG_PRELIM_OR_AM       0xfe000000
+#define CONFIG_SYS_PRELIM_OR_AM        0xfe000000
 
 /*
  * FLASH timing:
  * 33 Mhz bus with ACS = 11, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 1
  */
-#define CFG_OR_TIMING_FLASH    ( OR_CSNT_SAM   | \
+#define CONFIG_SYS_OR_TIMING_FLASH     ( OR_CSNT_SAM   | \
                                                          OR_ACS_DIV2   | \
                                                          OR_BI                 | \
                                                          OR_SCY_2_CLK  | \
                                                          OR_EHTR                 \
                                                        )
 
-#define CFG_OR0_PRELIM ( CFG_PRELIM_OR_AM              | \
-                                                 CFG_OR_TIMING_FLASH     \
+#define CONFIG_SYS_OR0_PRELIM  ( CONFIG_SYS_PRELIM_OR_AM               | \
+                                                 CONFIG_SYS_OR_TIMING_FLASH      \
                                                )
 
-#define CFG_BR0_PRELIM ( (FLASH_BASE0_PRELIM & BR_BA_MSK)      | \
+#define CONFIG_SYS_BR0_PRELIM  ( (FLASH_BASE0_PRELIM & BR_BA_MSK)      | \
                                                  BR_MS_GPCM                                            | \
                                                  BR_PS_8                                                       | \
                                                  BR_V                                                            \
 /*
  * SDRAM configuration
  */
-#define CFG_OR1_AM     0xfc000000
-#define CFG_OR1                ( (CFG_OR1_AM & OR_AM_MSK)      | \
+#define CONFIG_SYS_OR1_AM      0xfc000000
+#define CONFIG_SYS_OR1         ( (CONFIG_SYS_OR1_AM & OR_AM_MSK)       | \
                                          OR_CSNT_SAM                             \
                                        )
 
-#define CFG_BR1                ( (SDRAM_BASE & BR_BA_MSK)      | \
+#define CONFIG_SYS_BR1         ( (SDRAM_BASE & BR_BA_MSK)      | \
                                          BR_MS_UPMA                            | \
                                          BR_PS_32                                      | \
                                          BR_V                                            \
  * Refresh rate 7.8 us (= 64 ms / 8K = 31.2 uS quad bursts) for one bank
  * of 256 MBit SDRAM
  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16
 
 /*
  * Periodic timer for refresh @ 33 MHz system clock
  */
-#define CFG_MAMR_PTA   64
+#define CONFIG_SYS_MAMR_PTA    64
 
 /*
  * MAMR settings for SDRAM
  */
-#define CFG_MAMR_8COL  ( (CFG_MAMR_PTA << MAMR_PTA_SHIFT)      | \
+#define CONFIG_SYS_MAMR_8COL   ( (CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)       | \
                                                  MAMR_PTAE                             | \
                                                  MAMR_AMA_TYPE_1                       | \
                                                  MAMR_DSA_1_CYCL                       | \
  * 33 MHz bus with TRLX=1, ACS=11, CSNT=1, EBDF=1, SCY=2, EHTR=1,
  * no burst.
  */
-#define CFG_OR2_PRELIM ( (0xffff0000 & OR_AM_MSK)      | \
+#define CONFIG_SYS_OR2_PRELIM  ( (0xffff0000 & OR_AM_MSK)      | \
                                                  OR_CSNT_SAM                           | \
                                                  OR_ACS_DIV2                           | \
                                                  OR_BI                                         | \
                                                  OR_EHTR                                         \
                                                )
 
-#define CFG_BR2_PRELIM ( (DOC_BASE & BR_BA_MSK)        | \
+#define CONFIG_SYS_BR2_PRELIM  ( (DOC_BASE & BR_BA_MSK)        | \
                                                  BR_PS_8                                       | \
                                                  BR_MS_GPCM                            | \
                                                  BR_V                                            \
  * the cycle will still complete even if there is a configuration
  * error that prevents TA from asserting on FPGA accesss.
  */
-#define CFG_OR3_PRELIM ( (0xfc000000 & OR_AM_MSK)  | \
+#define CONFIG_SYS_OR3_PRELIM  ( (0xfc000000 & OR_AM_MSK)  | \
                                                  OR_SCY_15_CLK                         | \
                                                  OR_BI                                   \
                                                )
 
-#define CFG_BR3_PRELIM ( (FPGA_BASE & BR_BA_MSK)       | \
+#define CONFIG_SYS_BR3_PRELIM  ( (FPGA_BASE & BR_BA_MSK)       | \
                                                  BR_PS_32                                      | \
                                                  BR_MS_GPCM                            | \
                                                  BR_V                                            \
  * 33 MHz bus, UPMB, no burst. Do not assert GPLB5 on falling edge
  * of GCLK1_50
  */
-#define CFG_OR4_PRELIM ( (0xffff0000 & OR_AM_MSK)      | \
+#define CONFIG_SYS_OR4_PRELIM  ( (0xffff0000 & OR_AM_MSK)      | \
                                                  OR_G5LS                                               | \
                                                  OR_BI                                                   \
                                                )
 
-#define CFG_BR4_PRELIM ( (SELECTMAP_BASE & BR_BA_MSK)  | \
+#define CONFIG_SYS_BR4_PRELIM  ( (SELECTMAP_BASE & BR_BA_MSK)  | \
                                                  BR_PS_8                                               | \
                                                  BR_MS_UPMB                                    | \
                                                  BR_V                                                    \
  * the cycle will still complete even if there is a configuration
  * error that prevents TA from asserting on FPGA accesss.
  */
-#define CFG_OR5_PRELIM ( (0xffff0000 & OR_AM_MSK)  | \
+#define CONFIG_SYS_OR5_PRELIM  ( (0xffff0000 & OR_AM_MSK)  | \
                                                  OR_SCY_15_CLK                         | \
                                                  OR_EHTR                                       | \
                                                  OR_TRLX                                       | \
                                                  OR_BI                                           \
                                                )
 
-#define CFG_BR5_PRELIM ( (M1553_BASE & BR_BA_MSK)      | \
+#define CONFIG_SYS_BR5_PRELIM  ( (M1553_BASE & BR_BA_MSK)      | \
                                                  BR_PS_16                                      | \
                                                  BR_MS_GPCM                            | \
                                                  BR_V                                            \
  * Disk On Chip (millenium) configuration
  */
 #if !defined(CONFIG_SC)
-#define CFG_MAX_DOC_DEVICE     1
-#undef CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
-#undef CFG_DOC_PASSIVE_PROBE
+#define CONFIG_SYS_MAX_DOC_DEVICE      1
+#undef CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
+#undef CONFIG_SYS_DOC_PASSIVE_PROBE
 #endif
 
 /*
index b6cc17b52dd6192c00d4152ee88e923f7bbc2b5d..fadd83027b471e665f67d0417e052435a548158c 100644 (file)
 #define        CONFIG_ETHADDR          08:00:22:50:70:63       /* Ethernet address */
 #define CONFIG_ENV_OVERWRITE   1       /* Overwrite the environment */
 
-#define CFG_ALLOC_DPRAM                        /* Use dynamic DPRAM allocation */
+#define CONFIG_SYS_ALLOC_DPRAM                 /* Use dynamic DPRAM allocation */
 
-#define CFG_AUTOLOAD           "n"     /* No autoload */
+#define CONFIG_SYS_AUTOLOAD            "n"     /* No autoload */
 
 /*#define CONFIG_VIDEO         1       /  To enable the video initialization */
 /*#define CONFIG_VIDEO_ADDR    0x00200000 */
 /*#define CONFIG_HARD_I2C      1       /  I2C with hardware support */
 /*#define CONFIG_PCMCIA                1       /  To enable the PCMCIA initialization */
 
-/*#define CFG_PCMCIA_IO_ADDR   0xff020000 */
-/*#define CFG_PCMCIA_IO_SIZE   0x10000 */
-/*#define CFG_PCMCIA_MEM_ADDR  0xe0000000 */
-/*#define CFG_PCMCIA_MEM_SIZE  0x10000 */
+/*#define CONFIG_SYS_PCMCIA_IO_ADDR    0xff020000 */
+/*#define CONFIG_SYS_PCMCIA_IO_SIZE    0x10000 */
+/*#define CONFIG_SYS_PCMCIA_MEM_ADDR   0xe0000000 */
+/*#define CONFIG_SYS_PCMCIA_MEM_SIZE   0x10000 */
 
 /* Video related */
 
@@ -84,7 +84,7 @@
 #define MPC8XX_XIN     5000000                 /* 4 MHz clock          */
 
 #define MPC8XX_HZ      ((MPC8XX_XIN) * (MPC8XX_FACT))
-#define CFG_PLPRCR_MF  ((MPC8XX_FACT-1) << 20)
+#define CONFIG_SYS_PLPRCR_MF   ((MPC8XX_FACT-1) << 20)
 #define CONFIG_8xx_GCLK_FREQ   MPC8XX_HZ       /* Force it - dont measure it */
 
 #define        CONFIG_CLOCKS_IN_MHZ    1       /* clocks passsed to Linux in MHz */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              ":>"            /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               ":>"            /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             8               /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              8               /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00004000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00800000      /* 0 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00004000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00800000      /* 0 ... 8 MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 4800, 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 4800, 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR                0xFF000000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  * Also NOTE that it doesn't mean SDRAM - it means MEMORY.
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x02800000
-#define CFG_FLASH_SIZE         ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x02800000
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
 #if 0
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 128 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (512 << 10)     /* Reserve 512 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_OFFSET              0x10000 /* Offset of Environment Sector         */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  *
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC10)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer  *
  * interrupt status bit - leave PLL multiplication factor unchanged !
  *
- * #define CFG_PLPRCR  (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+ * #define CONFIG_SYS_PLPRCR   (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | CFG_PLPRCR_MF)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | CONFIG_SYS_PLPRCR_MF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR       (SCCR_TBS     | \
                                SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                                SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                                SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
 * entire address space, we have to set the memory controller
 
 #define FLASH_BASE0_PRELIM     0x02800000      /* FLASH bank #0                */
 
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask         */
-#define CFG_PRELIM_OR_AM       0xFF800000      /* OR addr mask (512Kb) */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask         */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF800000      /* OR addr mask (512Kb) */
 
 /* FLASH timing */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
                                OR_SCY_15_CLK | OR_TRLX )
 
-/*#define CFG_OR0_REMAP        (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH) */
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)                /* 0xfff80ff4 */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_8)     /* 0x02800401 */
+/*#define CONFIG_SYS_OR0_REMAP (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH) */
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)          /* 0xfff80ff4 */
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_8)     /* 0x02800401 */
 
 /*
  * BR1/2 and OR1/2 (SDRAM)
 */
 
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
 #define SDRAM_MAX_SIZE         0x04000000      /* 64Mb bank */
 #define SDRAM_BASE1_PRELIM     0x00000000      /* First bank */
  */
 
 /* periodic timer for refresh */
-#define CFG_MBMR_PTB           0x5d            /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MBMR_PTB            0x5d            /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K        MPTPR_PTP_DIV32
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32
 /*
  * MBMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MBMR_8COL  ((CFG_MBMR_PTB << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
+#define CONFIG_SYS_MBMR_8COL   ((CONFIG_SYS_MBMR_PTB << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
                        MAMR_G0CLA_A11 | MAMR_RLFA_1X | MAMR_WLFA_1X \
                        | MAMR_TLFA_4X) /* 0x5d802114 */
 
index 18bbbc3f29225670d99f6b06d8cdb146588632e8..c2cf852d15bd927de8a8f9e3d61a30100332d127 100644 (file)
 #if 1
 #define        CONFIG_SCC1_ENET        1       /* use SCC1 ethernet */
 #undef CONFIG_FEC_ENET                 /* disable FEC ethernet  */
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #else
 #undef CONFIG_SCC1_ENET                /* disable SCC1 ethernet */
 #define        CONFIG_FEC_ENET         1       /* use FEC ethernet  */
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #endif
 #if defined(CONFIG_SCC1_ENET) && defined(CONFIG_FEC_ENET)
 #error Both CONFIG_SCC1_ENET and CONFIG_FEC_ENET configured
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_PROMPT              "=>"    /* Monitor Command Prompt       */
+#define        CONFIG_SYS_PROMPT               "=>"    /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0400000       /* 1 ... 4 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0400000       /* 1 ... 4 MB in DRAM   */
 
 /* Default location to load data from net */
-#define CFG_LOAD_ADDR          0x100000
+#define CONFIG_SYS_LOAD_ADDR           0x100000
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR                       0xFF000000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR                        0xFF000000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
 
-#define CFG_FLASH_BASE         0x80000000
+#define CONFIG_SYS_FLASH_BASE          0x80000000
 
-#define CFG_FLASH_SIZE         ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
 
-#define        CFG_MONITOR_LEN         (384 << 10)     /* Reserve 384 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (384 << 10)     /* Reserve 384 kB for Monitor   */
 
-#define CFG_MONITOR_BASE TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE TEXT_BASE
 
-#define        CFG_MALLOC_LEN          (384 << 10)     /* Reserve 384 kB for malloc()  */
+#define        CONFIG_SYS_MALLOC_LEN           (384 << 10)     /* Reserve 384 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH 1
 #undef CONFIG_ENV_IS_IN_EEPROM
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  */
 
 /*FIXME dont use for now */
-/*#define CFG_RTCSC    (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
-/*#define CFG_RTCSC    (RTCSC_RTF) */
+/*#define CONFIG_SYS_RTCSC     (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
+/*#define CONFIG_SYS_RTCSC     (RTCSC_RTF) */
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 /* PITE */
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  *-----------------------------------------------------------------------
  * set the PLL, the low-power modes and the reset control (15-29)
  */
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
                                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
 
 /* FIXME check values */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS|SCCR_RTSEL|SCCR_COM00|SCCR_DFSYNC00|SCCR_DFBRG00|SCCR_DFNL000|SCCR_DFNH000|SCCR_DFLCD000|SCCR_DFALCD00)
+#define CONFIG_SYS_SCCR        (SCCR_TBS|SCCR_RTSEL|SCCR_COM00|SCCR_DFSYNC00|SCCR_DFBRG00|SCCR_DFNL000|SCCR_DFNH000|SCCR_DFLCD000|SCCR_DFALCD00)
 
  /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
 * entire address space, we have to set the memory controller
  */
 /* the other CS:s are determined by looking at parameters in BCSRx */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 
-#define CFG_REMAP_OR_AM                0xFF800000      /* 4 MB OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFF800000      /* 4 MB OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF800000      /* OR addr mask */
 
 #define FPGA_2_BASE 0x90000000
 #define FPGA_3_BASE 0x98000000
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
 
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16 )
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16 )
 
 /*
  * Internal Definitions
 #define CONFIG_PCMCIA_SLOT_A 1
 #endif
 
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 #define CONFIG_IDE_8xx_PCCARD       1       /* Use IDE with PC Card Adapter */
 #undef  CONFIG_IDE_8xx_DIRECT               /* Direct IDE    not supported  */
 #undef  CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef  CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS          1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET     0x0000
-#define CFG_ATA_BASE_ADDR       CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 /* Offset for data I/O                  */
-#define CFG_ATA_DATA_OFFSET     (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 /* Offset for normal register accesses  */
-#define CFG_ATA_REG_OFFSET      (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 /* Offset for alternate registers       */
-#define CFG_ATA_ALT_OFFSET      0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 #define CONFIG_8xx_GCLK_FREQ   MPC8XX_HZ       /* Force it - dont measure it */
 
index 52baae08ca96a038c83d8a0b4e13db41171a0e7c..1e7cc124d37a117f0b6917c3b5503f814f0758a3 100644 (file)
@@ -62,7 +62,7 @@
        "pciconfighost=1\0"                                             \
        ""
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 #define CONFIG_CONSOLE_EXTRA_INFO
 #define CONFIG_VIDEO_SW_CURSOR
 #define CONFIG_SPLASH_SCREEN
-#define CFG_CONSOLE_IS_IN_ENV
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #define CONFIG_SPLASH_SCREEN
 #define CONFIG_VIDEO_BMP_GZIP          /* gzip compressed bmp images   */
-#define CFG_VIDEO_LOGO_MAX_SIZE        (2 << 20)       /* for decompressed img */
+#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (2 << 20)       /* for decompressed img */
 
 #endif /* CONFIG_VIDEO */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV      1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#undef  CFG_CONSOLE_INFO_QUIET          /* print console @ startup     */
+#undef  CONFIG_SYS_CONSOLE_INFO_QUIET          /* print console @ startup      */
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef  CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD       691200
+#undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #define CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE      \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE        1       /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * RTC stuff
  *-----------------------------------------------------------------------
  */
 #define CONFIG_RTC_DS1338
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE }
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE }
 #define NAND_MAX_CHIPS          1
-#define CFG_MAX_NAND_DEVICE    1         /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1         /* Max number of NAND devices */
 #define NAND_BIG_DELAY_US      25
 
-#define CFG_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
-#define CFG_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
-#define CFG_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
-#define CFG_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
+#define CONFIG_SYS_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
 
-#define CFG_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
-#define CFG_NAND_QUIET          1
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
+#define CONFIG_SYS_NAND_QUIET          1
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_CONFIG_HOST_BRIDGE 1 /* don't skip host bridge config*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef  CONFIG_IDE_LED                  /* no led for ide supported     */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define        CFG_IDE_MAXBUS          1               /* max. 1 IDE busses    */
-#define        CFG_IDE_MAXDEVICE       (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define        CONFIG_SYS_IDE_MAXBUS           1               /* max. 1 IDE busses    */
+#define        CONFIG_SYS_IDE_MAXDEVICE        (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define        CFG_ATA_BASE_ADDR       0xF0100000
-#define        CFG_ATA_IDE0_OFFSET     0x0000
+#define        CONFIG_SYS_ATA_BASE_ADDR        0xF0100000
+#define        CONFIG_SYS_ATA_IDE0_OFFSET      0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define        CFG_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define        CONFIG_SYS_ATA_REG_OFFSET       0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 #define FLASH_BASE0_PRELIM     0xFFC00000      /* FLASH bank #0        */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0         0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1         0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2         0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* test-only */
-#define CFG_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
 #endif
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFF80000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Monitor   */
-#define CFG_MALLOC_LEN         (4 << 20)       /* Reserve 4 MB for malloc()    */
-
-#if (CFG_MONITOR_BASE < FLASH_BASE0_PRELIM)
-# define CFG_RAMBOOT           1
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFF80000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (4 << 20)       /* Reserve 4 MB for malloc()    */
+
+#if (CONFIG_SYS_MONITOR_BASE < FLASH_BASE0_PRELIM)
+# define CONFIG_SYS_RAMBOOT            1
 #else
-# undef CFG_RAMBOOT
+# undef CONFIG_SYS_RAMBOOT
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_SIZE            0x700   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF4080000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         0x8000                  /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF4080000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          0x8000                  /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
 #if 0 /* test-only */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
 #else
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address */
 #endif
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT24WC08             */
-#define CFG_EEPROM_WREN         1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT24WC08             */
+#define CONFIG_SYS_EEPROM_WREN         1
 
 #if 1 /* test-only */
 /* CAT24WC08/16... */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
 #else
 /* CAT24WC32/64... */
-#define CFG_I2C_EEPROM_ADDR_LEN        2       /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x01
-#define CFG_EEPROM_PAGE_WRITE_BITS 5   /* The Catalyst CAT24WC32 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x01
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5    /* The Catalyst CAT24WC32 has   */
                                        /* 32 byte page write mode using*/
                                        /* last 5 bits of the address   */
 #endif
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
 
 #define CAN_BA          0xF0000000          /* CAN Base Address                 */
 #define LCD_BA          0xF1000000          /* Epson LCD Base Address           */
-#define CFG_NAND_BASE   0xF4000000          /* NAND FLASH Base Address          */
-#define CFG_NVRAM_BASE  0xF4080000          /* NVRAM Base Address               */
+#define CONFIG_SYS_NAND_BASE   0xF4000000          /* NAND FLASH Base Address          */
+#define CONFIG_SYS_NVRAM_BASE  0xF4080000          /* NVRAM Base Address               */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                       */
-#define CFG_EBC_PB0AP           0x92015480
-#define CFG_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH & NVRAM) initialization              */
-#define CFG_EBC_PB1AP           0x92015480
-#define CFG_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization              */
-#define CFG_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (16 Bit Peripheral: FPGA internal, dig. IO) initialization     */
-#define CFG_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 4 (Epson LCD) initialization                                     */
-#define CFG_EBC_PB4AP   0x03805380   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=0 */
-#define CFG_EBC_PB4CR   LCD_BA | 0x7A000    /* BAS=0xF10,BS=8MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB4AP   0x03805380   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=0 */
+#define CONFIG_SYS_EBC_PB4CR   LCD_BA | 0x7A000    /* BAS=0xF10,BS=8MB,BU=R/W,BW=16bit */
 
 /*-----------------------------------------------------------------------
  * LCD Setup
  */
 
-#define CFG_LCD_BIG_MEM         0xF1200000  /* Epson S1D13806 Mem Base Address  */
-#define CFG_LCD_BIG_REG         0xF1000000  /* Epson S1D13806 Reg Base Address  */
-#define CFG_LCD_SMALL_MEM       0xF1400000  /* Epson S1D13704 Mem Base Address  */
-#define CFG_LCD_SMALL_REG       0xF140FFE0  /* Epson S1D13704 Reg Base Address  */
+#define CONFIG_SYS_LCD_BIG_MEM         0xF1200000  /* Epson S1D13806 Mem Base Address  */
+#define CONFIG_SYS_LCD_BIG_REG         0xF1000000  /* Epson S1D13806 Reg Base Address  */
+#define CONFIG_SYS_LCD_SMALL_MEM       0xF1400000  /* Epson S1D13704 Mem Base Address  */
+#define CONFIG_SYS_LCD_SMALL_REG       0xF140FFE0  /* Epson S1D13704 Reg Base Address  */
 
 /*-----------------------------------------------------------------------
  * Universal Interrupt Controller (UIC) Setup
 /*
  * define UIC_EXT0 ... UIC_EXT6 if external interrupt is active high
  */
-#define CFG_UIC0_POLARITY       (0xFFFFFF80 | UIC_MASK(VECNUM_EIRQ6))
+#define CONFIG_SYS_UIC0_POLARITY       (0xFFFFFF80 | UIC_MASK(VECNUM_EIRQ6))
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 
-#define CFG_FPGA_BASE_ADDR 0xF0100100       /* FPGA internal Base Address       */
+#define CONFIG_SYS_FPGA_BASE_ADDR 0xF0100100       /* FPGA internal Base Address       */
 
 /* FPGA internal regs */
-#define CFG_FPGA_CTRL           0x000
+#define CONFIG_SYS_FPGA_CTRL           0x000
 
 /* FPGA Control Reg */
-#define CFG_FPGA_CTRL_REV0      0x0001
-#define CFG_FPGA_CTRL_REV1      0x0002
-#define CFG_FPGA_CTRL_VGA0_BL   0x0004
-#define CFG_FPGA_CTRL_VGA0_BL_MODE 0x0008
-#define CFG_FPGA_CTRL_CF_RESET  0x0040
-#define CFG_FPGA_CTRL_PS2_PWR   0x0080
-#define CFG_FPGA_CTRL_CF_PWRN   0x0100      /* low active                    */
-#define CFG_FPGA_CTRL_CF_BUS_EN 0x0200
-#define CFG_FPGA_CTRL_LCD_CLK   0x7000      /* Mask for lcd clock            */
-#define CFG_FPGA_CTRL_OW_ENABLE 0x8000
-
-#define CFG_FPGA_STATUS_CF_DETECT 0x8000
+#define CONFIG_SYS_FPGA_CTRL_REV0      0x0001
+#define CONFIG_SYS_FPGA_CTRL_REV1      0x0002
+#define CONFIG_SYS_FPGA_CTRL_VGA0_BL   0x0004
+#define CONFIG_SYS_FPGA_CTRL_VGA0_BL_MODE 0x0008
+#define CONFIG_SYS_FPGA_CTRL_CF_RESET  0x0040
+#define CONFIG_SYS_FPGA_CTRL_PS2_PWR   0x0080
+#define CONFIG_SYS_FPGA_CTRL_CF_PWRN   0x0100      /* low active                    */
+#define CONFIG_SYS_FPGA_CTRL_CF_BUS_EN 0x0200
+#define CONFIG_SYS_FPGA_CTRL_LCD_CLK   0x7000      /* Mask for lcd clock            */
+#define CONFIG_SYS_FPGA_CTRL_OW_ENABLE 0x8000
+
+#define CONFIG_SYS_FPGA_STATUS_CF_DETECT 0x8000
 
 #define LCD_CLK_OFF             0x0000      /* Off                           */
 #define LCD_CLK_02083           0x1000      /* 2.083 MHz                     */
 #define LCD_CLK_12500           0x6000      /* 12.50 MHz                     */
 #define LCD_CLK_25000           0x7000      /* 25.00 MHz                     */
 
-#define CFG_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM        1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs
  */
-#define CFG_GPIO0_OSRH         0x40000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-#define CFG_GPIO0_ISR1L                0x15555440
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xF7FE0017
-
-#define CFG_LCD_ENDIAN         (0x80000000 >> 7)
-#define CFG_EEPROM_WP          (0x80000000 >> 8)   /* GPIO8 */
-#define CFG_TOUCH_RST          (0x80000000 >> 9)   /* GPIO9 */
-#define CFG_LCD0_RST           (0x80000000 >> 30)
-#define CFG_LCD1_RST           (0x80000000 >> 31)
+#define CONFIG_SYS_GPIO0_OSRH          0x40000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555440
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xF7FE0017
+
+#define CONFIG_SYS_LCD_ENDIAN          (0x80000000 >> 7)
+#define CONFIG_SYS_EEPROM_WP           (0x80000000 >> 8)   /* GPIO8 */
+#define CONFIG_SYS_TOUCH_RST           (0x80000000 >> 9)   /* GPIO9 */
+#define CONFIG_SYS_LCD0_RST            (0x80000000 >> 30)
+#define CONFIG_SYS_LCD1_RST            (0x80000000 >> 31)
 
 /*
  * Internal Definitions
index c8c040930d8efdf97c907b56ba45416d5f0fa59a..f6777b9bbaf6cae3dcb383cbb611b012b143c812 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1               /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP            1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
@@ -95,7 +95,7 @@
 
 #define CONFIG_NET_MULTI                       /* Multi ethernet cards support */
 
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 
 #define PCI_ENET0_IOADDR       0x80000000
 #define PCI_ENET0_MEMADDR      0x80000000
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x02000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x02000000
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #if defined (USE_DINK32)
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       0x00090000
-#define CFG_RAMBOOT            1
-#define CFG_INIT_RAM_ADDR      (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_INIT_RAM_END       0x10000
-#define CFG_GBL_DATA_SIZE      256  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        0x00090000
+#define CONFIG_SYS_RAMBOOT             1
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_INIT_RAM_END        0x10000
+#define CONFIG_SYS_GBL_DATA_SIZE       256  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #else
-#undef CFG_RAMBOOT
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-#define CFG_GBL_DATA_SIZE      128
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #endif
 
-#define CFG_FLASH_BASE         0xFFE00000
-#define CFG_FLASH_SIZE         (2 * 1024 * 1024)       /* Unity has onboard 1MByte flash */
+#define CONFIG_SYS_FLASH_BASE          0xFFE00000
+#define CONFIG_SYS_FLASH_SIZE          (2 * 1024 * 1024)       /* Unity has onboard 1MByte flash */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x00004000      /* Offset of Environment Sector */
 #define CONFIG_ENV_SIZE                0x00002000      /* Total Size of Environment Sector */
 
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x02000000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x02000000      /* 0 ... 32 MB in DRAM          */
 
-#define CFG_EUMB_ADDR          0xFC000000
+#define CONFIG_SYS_EUMB_ADDR           0xFC000000
 
-#define CFG_ISA_MEM            0xFD000000
-#define CFG_ISA_IO             0xFE000000
+#define CONFIG_SYS_ISA_MEM             0xFD000000
+#define CONFIG_SYS_ISA_IO              0xFE000000
 
-#define CFG_FLASH_RANGE_BASE   0xFFE00000      /* flash memory address range   */
-#define CFG_FLASH_RANGE_SIZE   0x00200000
+#define CONFIG_SYS_FLASH_RANGE_BASE    0xFFE00000      /* flash memory address range   */
+#define CONFIG_SYS_FLASH_RANGE_SIZE    0x00200000
 #define FLASH_BASE0_PRELIM     0xFFE00000      /* processor board flash        */
 
 /*
  */
 #define CONFIG_HARD_I2C                1               /* To enable I2C support        */
 #undef CONFIG_SOFT_I2C                         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 #ifdef CONFIG_SOFT_I2C
 #error "Soft I2C is not configured properly.  Please review!"
 #define I2C_DELAY              udelay(5)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x57            /* EEPROM IS24C02               */
-#define CFG_I2C_EEPROM_ADDR_LEN 1              /* Bytes of address             */
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57            /* EEPROM IS24C02               */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_FLASH_BANKS                { FLASH_BASE0_PRELIM }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_FLASH_BANKS         { FLASH_BASE0_PRELIM }
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
 
 
 #define CONFIG_WINBOND_83C553  1       /*has a winbond bridge                  */
-#define CFG_USE_WINBOND_IDE    0       /*use winbond 83c553 internal IDE ctrlr */
-#define CFG_WINBOND_ISA_CFG_ADDR    0x80005800 /*pci-isa bridge config addr    */
-#define CFG_WINBOND_IDE_CFG_ADDR    0x80005900 /*ide config addr               */
+#define CONFIG_SYS_USE_WINBOND_IDE     0       /*use winbond 83c553 internal IDE ctrlr */
+#define CONFIG_SYS_WINBOND_ISA_CFG_ADDR    0x80005800  /*pci-isa bridge config addr    */
+#define CONFIG_SYS_WINBOND_IDE_CFG_ADDR    0x80005900  /*ide config addr               */
 
-#define CFG_IDE_MAXBUS         2   /* max. 2 IDE busses        */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          2   /* max. 2 IDE busses        */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
 /* TODO: Change this to VIA686A */
 
  */
 #define CONFIG_NS87308                 /* Nat Semi super-io controller on ISA bus */
 
-#define CFG_NS87308_BADDR_10   1
+#define CONFIG_SYS_NS87308_BADDR_10    1
 
-#define CFG_NS87308_DEVS       ( CFG_NS87308_UART1   | \
-                                 CFG_NS87308_UART2   | \
-                                 CFG_NS87308_POWRMAN | \
-                                 CFG_NS87308_RTC_APC )
+#define CONFIG_SYS_NS87308_DEVS        ( CONFIG_SYS_NS87308_UART1   | \
+                                 CONFIG_SYS_NS87308_UART2   | \
+                                 CONFIG_SYS_NS87308_POWRMAN | \
+                                 CONFIG_SYS_NS87308_RTC_APC )
 
-#undef CFG_NS87308_PS2MOD
+#undef CONFIG_SYS_NS87308_PS2MOD
 
-#define CFG_NS87308_CS0_BASE   0x0076
-#define CFG_NS87308_CS0_CONF   0x30
-#define CFG_NS87308_CS1_BASE   0x0075
-#define CFG_NS87308_CS1_CONF   0x30
-#define CFG_NS87308_CS2_BASE   0x0074
-#define CFG_NS87308_CS2_CONF   0x30
+#define CONFIG_SYS_NS87308_CS0_BASE    0x0076
+#define CONFIG_SYS_NS87308_CS0_CONF    0x30
+#define CONFIG_SYS_NS87308_CS1_BASE    0x0075
+#define CONFIG_SYS_NS87308_CS1_CONF    0x30
+#define CONFIG_SYS_NS87308_CS2_BASE    0x0074
+#define CONFIG_SYS_NS87308_CS2_CONF    0x30
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
 #if (CONFIG_CONS_INDEX > 2)
-#define CFG_NS16550_CLK                CONFIG_DRAM_SPEED*1000000
+#define CONFIG_SYS_NS16550_CLK         CONFIG_DRAM_SPEED*1000000
 #else
-#define CFG_NS16550_CLK                1843200
+#define CONFIG_SYS_NS16550_CLK         1843200
 #endif
 
-#define CFG_NS16550_COM1       (CFG_ISA_IO + CFG_NS87308_UART1_BASE)
-#define CFG_NS16550_COM2       (CFG_ISA_IO + CFG_NS87308_UART2_BASE)
-#define CFG_NS16550_COM3       (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM4       (CFG_EUMB_ADDR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART1_BASE)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART2_BASE)
+#define CONFIG_SYS_NS16550_COM3        (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM4        (CONFIG_SYS_EUMB_ADDR + 0x4600)
 
 /*
  * Low Level Configuration Settings
 
 #define CONFIG_SYS_CLK_FREQ  33333333  /* external frequency to pll */
 
-#define CFG_ROMNAL             7       /*rom/flash next access time            */
-#define CFG_ROMFAL             11      /*rom/flash access time                 */
+#define CONFIG_SYS_ROMNAL              7       /*rom/flash next access time            */
+#define CONFIG_SYS_ROMFAL              11      /*rom/flash access time                 */
 
-#define CFG_REFINT     430     /* no of clock cycles between CBR refresh cycles */
+#define CONFIG_SYS_REFINT      430     /* no of clock cycles between CBR refresh cycles */
 
 /* the following are for SDRAM only*/
-#define CFG_BSTOPRE    121     /* Burst To Precharge, sets open page interval */
-#define CFG_REFREC             8       /* Refresh to activate interval         */
-#define CFG_RDLAT              4       /* data latency from read command       */
-#define CFG_PRETOACT           3       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           5       /* Activate to Precharge interval       */
-#define CFG_ACTORW             3       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_BSTOPRE     121     /* Burst To Precharge, sets open page interval */
+#define CONFIG_SYS_REFREC              8       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT               4       /* data latency from read command       */
+#define CONFIG_SYS_PRETOACT            3       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              3       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
 #if 0
-#define CFG_SDMODE_BURSTLEN    2       /* OBSOLETE!  SDMODE Burst length 2=4, 3=8              */
+#define CONFIG_SYS_SDMODE_BURSTLEN     2       /* OBSOLETE!  SDMODE Burst length 2=4, 3=8              */
 #endif
 
-#define CFG_REGISTERD_TYPE_BUFFER   1
-#define CFG_EXTROM 1
-#define CFG_REGDIMM 0
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_EXTROM 1
+#define CONFIG_SYS_REGDIMM 0
 
 
 /* memory bank settings*/
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x3ff00000
-#define CFG_BANK1_END          0x3fffffff
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x3ff00000
-#define CFG_BANK2_END          0x3fffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x3ff00000
-#define CFG_BANK3_END          0x3fffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x3ff00000
+#define CONFIG_SYS_BANK1_END           0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x3ff00000
+#define CONFIG_SYS_BANK2_END           0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x3ff00000
+#define CONFIG_SYS_BANK3_END           0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
 /*
  * Memory bank enable bitmask, specifying which of the banks defined above
  are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
-#define CFG_ODCR               0xff    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0xff    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 1GB (no backing mem) */
 #if defined(USE_DINK32)
-#define CFG_IBAT1L     (0x40000000 | BATL_PP_00 )
-#define CFG_IBAT1U     (0x40000000 | BATU_BL_128K )
+#define CONFIG_SYS_IBAT1L      (0x40000000 | BATL_PP_00 )
+#define CONFIG_SYS_IBAT1U      (0x40000000 | BATU_BL_128K )
 #else
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 #endif
 
 /* PCI memory */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Flash, config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     36      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      36      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8240 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8240 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
index c58cb8c52a2cdae8538ad98031f8982b2faf690b..6c8e81f0521850b83d0c3a532bb39187f40daa18 100644 (file)
@@ -52,7 +52,7 @@
 #define CONFIG_PS2KBD                  /* AT-PS/2 Keyboard             */
 #define CONFIG_PS2MULT                 /* .. on PS/2 Multiplexer       */
 #define CONFIG_PS2SERIAL       2       /* .. on COM3                   */
-#define CONFIG_PS2MULT_DELAY   (CFG_HZ/2)      /* Initial delay        */
+#define CONFIG_PS2MULT_DELAY   (CONFIG_SYS_HZ/2)       /* Initial delay        */
 
 #define CONFIG_BOOTCOUNT_LIMIT
 
 #define CONFIG_MISC_INIT_R       1
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 /* enable I2C and select the hardware/software driver */
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          40000   /* 40 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           40000   /* 40 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 /* Software (bit-bang) I2C driver configuration */
 #define PB_SCL         0x00000020      /* PB 26 */
 #define CONFIG_DOS_PARTITION
 
 #define CONFIG_RTC_DS1337              /* Use ds1337 rtc via i2c       */
-#define CFG_I2C_RTC_ADDR 0x68          /* at address 0x68              */
+#define CONFIG_SYS_I2C_RTC_ADDR 0x68           /* at address 0x68              */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
 #if 0
-#define CFG_HUSH_PARSER                1       /* use "hush" command parser    */
+#define CONFIG_SYS_HUSH_PARSER         1       /* use "hush" command parser    */
 #endif
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x8000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  *
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0100000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4100000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8100000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC100000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0100000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4100000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8100000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC100000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 #define PCMCIA_MEM_WIN_NO      5
 #define NSCU_OE_INV            1               /* PCMCIA_GCRX_CXOE is inverted */
 
 #define CONFIG_IDE_LED         1       /* LED   for ide supported      */
 #endif
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_OR3_PRELIM CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define CFG_CAN_BASE           0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 2a61e779ef1c112ef4c0106337f0c2212581da8b..3e5842444d4b1fcaed10471d9dd34545636e5ca0 100644 (file)
@@ -52,7 +52,7 @@
 
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #undef CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /* Ethernet stuff */
 #define CONFIG_ENV_OVERWRITE /* Let the user to change the Ethernet MAC addresses */
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE }
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE }
 #define NAND_MAX_CHIPS          1
-#define CFG_MAX_NAND_DEVICE    1         /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1         /* Max number of NAND devices */
 #define NAND_BIG_DELAY_US      25
 
-#define CFG_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
-#define CFG_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
-#define CFG_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
-#define CFG_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
+#define CONFIG_SYS_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
 
-#define CFG_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
-#define CFG_NAND_QUIET          1
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
+#define CONFIG_SYS_NAND_QUIET          1
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #undef CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* test-only */
-#define CFG_JFFS2_FIRST_BANK   0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS    1           /* ! second bank contains U-Boot */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_SIZE                0x700   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-/*#define CFG_EBC_PB0AP                  0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+/*#define CONFIG_SYS_EBC_PB0AP           0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (8 Bit Peripheral: UART) initialization                       */
 #if 0
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 #else
-#define CFG_EBC_PB2AP          0x92015480
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x92015480
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 #endif
 
 #define DUART0_BA      0xF0000000          /* DUART Base Address               */
 #define DUART1_BA      0xF0000008          /* DUART Base Address               */
 #define DUART2_BA      0xF0000010          /* DUART Base Address               */
 #define DUART3_BA      0xF0000018          /* DUART Base Address               */
-#define CFG_NAND_BASE  0xF4000000
+#define CONFIG_SYS_NAND_BASE   0xF4000000
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      128*1024    /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs
  */
-#define CFG_GPIO0_OSRH         0x40000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-#define CFG_GPIO0_ISR1L                0x15555445
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xF7FE0014
-
-#define CFG_DUART_RST           (0x80000000 >> 14)
-#define CFG_UART2_RS232         (0x80000000 >> 5)
-#define CFG_UART3_RS232         (0x80000000 >> 6)
-#define CFG_UART4_RS232         (0x80000000 >> 7)
-#define CFG_UART5_RS232         (0x80000000 >> 8)
+#define CONFIG_SYS_GPIO0_OSRH          0x40000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xF7FE0014
+
+#define CONFIG_SYS_DUART_RST           (0x80000000 >> 14)
+#define CONFIG_SYS_UART2_RS232         (0x80000000 >> 5)
+#define CONFIG_SYS_UART3_RS232         (0x80000000 >> 6)
+#define CONFIG_SYS_UART4_RS232         (0x80000000 >> 7)
+#define CONFIG_SYS_UART5_RS232         (0x80000000 >> 8)
 
 /*
  * Internal Definitions
index a4944f160b3704ff3fd2335583357f761fdeebb2..ca488c6f8b42b76ab8ec2ea90fd689700e7c157e 100644 (file)
 # undef  CONFIG_SCC1_ENET              /* disable SCC1 ethernet */
 # define CONFIG_FEC_ENET    1  /* use FEC ethernet  */
 # define CONFIG_MII         1
-# define CFG_DISCOVER_PHY   1
+# define CONFIG_SYS_DISCOVER_PHY   1
 # define CONFIG_FEC_UTOPIA  1
 # define CONFIG_ETHADDR     08:00:06:26:A2:6D
 # define CONFIG_IPADDR      192.168.28.128
 # define CONFIG_SERVERIP    139.10.137.138
-# define CFG_DISCOVER_PHY   1
+# define CONFIG_SYS_DISCOVER_PHY   1
 
 #define CONFIG_MAC_PARTITION
 #define CONFIG_DOS_PARTITION
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xDD
-# define CFG_I2C_EEPROM_ADDR   0x50
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xDD
+# define CONFIG_SYS_I2C_EEPROM_ADDR    0x50
 /*
  * Software (bit-bang) I2C driver configuration
  */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0400000       /* 1 ... 4 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0400000       /* 1 ... 4 MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR                0xFFF00000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x08000000
-#define CFG_FLASH_SIZE         ((uint)(4 * 1024 * 1024))       /* max 16Mbyte */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x08000000
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(4 * 1024 * 1024))       /* max 16Mbyte */
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #if defined(DEBUG)
-# define       CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+# define       CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-# define       CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+# define       CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
 
-# define CFG_MONITOR_BASE      CFG_FLASH_BASE
-# define CFG_MALLOC_LEN                (128 << 10)     /* Reserve 128 kB for malloc()  */
+# define CONFIG_SYS_MONITOR_BASE       CONFIG_SYS_FLASH_BASE
+# define CONFIG_SYS_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_OFFSET              0x8000
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  *-----------------------------------------------------------------------
  * set the PLL, the low-power modes and the reset control (15-29)
  */
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
                                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  */
 #define SCCR_MASK      SCCR_EBDF11
 
-#define CFG_SCCR       (SCCR_TBS       | SCCR_COM00    | SCCR_DFSYNC00 | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS       | SCCR_COM00    | SCCR_DFSYNC00 | \
                         SCCR_DFBRG00   | SCCR_DFNL000  | SCCR_DFNH000  | \
                         SCCR_DFLCD000  |SCCR_DFALCD00  )
 
  *-----------------------------------------------------------------------
  */
 /* +0x09C4 => DRQP = 10 (IDMA requests have lowest priority) */
-#define CFG_RCCR 0x0020
+#define CONFIG_SYS_RCCR 0x0020
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
 * entire address space, we have to set the memory controller
  * BR0 and OR0 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 
 /* used to re-map FLASH both when starting from SRAM or FLASH:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0xF8000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xF8000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xF8000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xF8000000      /* OR addr mask */
 
 /* FLASH timing:
  TRLX = 0, CSNT = 1, SCY = 3, EHTR = 1 */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | \
                                 OR_SCY_3_CLK | OR_EHTR)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | OR_CSNT_SAM  | OR_BI | OR_ACS_DIV4)
-#define CFG_BR2_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
-#define CFG_BR1_PRELIM ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V)
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | OR_CSNT_SAM  | OR_BI | OR_ACS_DIV4)
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V)
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   124             /* start with divider for 64 MHz        */
+#define CONFIG_SYS_MAMR_PTA    124             /* start with divider for 64 MHz        */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR              MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR               MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
-#define CFG_MAMR       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR        ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_8X)
 
index 0ff7fa9e6b5d04527c2ed86bcf951b2b29f8c037..917135e58554d596a13767a748d9d073f9a9484f 100644 (file)
@@ -95,9 +95,9 @@
 #define        CONFIG_FEC_ENET         1       /* use FEC ethernet  */
 #define        CONFIG_MII              1
 #if 1
-#define CFG_DISCOVER_PHY       1
+#define CONFIG_SYS_DISCOVER_PHY        1
 #else
-#undef CFG_DISCOVER_PHY
+#undef CONFIG_SYS_DISCOVER_PHY
 #endif
 
 #define CONFIG_MAC_PARTITION
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xFE
-# define CFG_I2C_EEPROM_ADDR   0x50
-# define CFG_I2C_EEPROM_ADDR_LEN 1     /* Bytes of address             */
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xFE
+# define CONFIG_SYS_I2C_EEPROM_ADDR    0x50
+# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
 /*
  * Software (bit-bang) I2C driver configuration
  */
                        else    immr->im_cpm.cp_pbdat &= ~PB_SCL
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
-#define CFG_EEPROM_X40430              /* Use a Xicor X40430 EEPROM    */
-#define CFG_EEPROM_PAGE_WRITE_BITS  4  /* 16 bytes page write mode     */
+#define CONFIG_SYS_EEPROM_X40430               /* Use a Xicor X40430 EEPROM    */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS  4   /* 16 bytes page write mode     */
 
 #define        CONFIG_RTC_MPC8xx               /* use internal RTC of MPC8xx   */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0400000       /* 1 ... 4 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0400000       /* 1 ... 4 MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR                0xF0000000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_FLASH_SIZE         ((uint)(16 * 1024 * 1024))      /* max 16Mbyte */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(16 * 1024 * 1024))      /* max 16Mbyte */
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #if 0
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
 #else
-#define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
 #endif
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout for Flash Write (in ms)      */
 
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* Total Size of Environment sector     */
 #define        CONFIG_ENV_SIZE         0x4000  /* Used Size of Environment Sector      */
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  *-----------------------------------------------------------------------
  * set the PLL, the low-power modes and the reset control (15-29)
  */
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
                                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  */
 #ifdef CONFIG_100MHz   /* for 100 MHz, external bus is half CPU clock */
 #define SCCR_MASK      0
-#define CFG_SCCR       (SCCR_TBS       | SCCR_COM00    | SCCR_DFSYNC00 | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS       | SCCR_COM00    | SCCR_DFSYNC00 | \
                         SCCR_DFBRG00   | SCCR_DFNL000  | SCCR_DFNH000  | \
                         SCCR_DFLCD000  |SCCR_DFALCD00  | SCCR_EBDF01)
 #else                  /* up to 50 MHz we use a 1:1 clock */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS       | SCCR_COM00    | SCCR_DFSYNC00 | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS       | SCCR_COM00    | SCCR_DFSYNC00 | \
                         SCCR_DFBRG00   | SCCR_DFNL000  | SCCR_DFNH000  | \
                         SCCR_DFLCD000  |SCCR_DFALCD00  )
 #endif /* CONFIG_100MHz */
  *-----------------------------------------------------------------------
  */
 /* +0x09C4 => DRQP = 10 (IDMA requests have lowest priority) */
-#define CFG_RCCR 0x0020
+#define CONFIG_SYS_RCCR 0x0020
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * PCMCIA Power Switch
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 
  /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
 * entire address space, we have to set the memory controller
 #define FLASH_BASE0_PRELIM     0x40000000      /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0x0             /* FLASH bank #1        */
 
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
 
-#define CFG_OR0_PRELIM 0xFF000954              /* Real values for the board */
-#define CFG_BR0_PRELIM 0x40000001              /* Real values for the board */
+#define CONFIG_SYS_OR0_PRELIM  0xFF000954              /* Real values for the board */
+#define CONFIG_SYS_BR0_PRELIM  0x40000001              /* Real values for the board */
 
 /*
  * BR1 and OR1 (SDRAM)
 #define SDRAM_BASE1_PRELIM     0x00000000      /* SDRAM bank           */
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB per bank   */
 
-#define CFG_OR_TIMING_SDRAM    0x00000800      /* BIH is not set       */
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000800      /* BIH is not set       */
 
-#define CFG_OR1_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM)
-#define CFG_BR1_PRELIM ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V)
+#define CONFIG_SYS_OR1_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V)
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA           97      /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA            97      /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
-#define CFG_MAMR               0x13a01114
+#define CONFIG_SYS_MAMR                0x13a01114
 /*
  * Internal Definitions
  *
index 4d0397c457902a0570fe2b5eb180e549833bc421..a610ac9c23688ea8fc2ad6f79c799abe66c9d8df 100644 (file)
@@ -73,8 +73,8 @@
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
 #if 0
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 #define CONFIG_I2C_X
 #endif
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK         14745600
+#define CONFIG_SYS_NS16550_CLK         14745600
 
-#define        CFG_UART_BASE   0xE0000000
-#define CFG_UART_SIZE  0x10000
+#define        CONFIG_SYS_UART_BASE    0xE0000000
+#define CONFIG_SYS_UART_SIZE   0x10000
 
-#define CFG_NS16550_COM1        (CFG_UART_BASE + 0x8000)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_UART_BASE + 0x8000)
 
 
 /* pass open firmware flat tree */
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF1CS_CLK10|CMXFCR_TF1CS_CLK9)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK10|CMXFCR_TF1CS_CLK9)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 
 /* system clock rate (CLKIN) - equal to the 60x and local bus speed */
 #define CONFIG_8260_CLKIN      66666666        /* in Hz */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_BOOTP_BOOTFILESIZE
 
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 /*
  * Command line configuration.
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END        0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR   0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR    0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_RESET_ADDRESS 0xFDFFFFFC    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFDFFFFFC     /* "bad" address                */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CFG_FLASH_BANKS_LIST   { 0xFF800000 }
-#define CFG_MAX_FLASH_BANKS_DETECT     1
+#define CONFIG_SYS_FLASH_BANKS_LIST    { 0xFF800000 }
+#define CONFIG_SYS_MAX_FLASH_BANKS_DETECT      1
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/ids8247/config.mk
  * The main FLASH is whichever is connected to *CS0.
  */
-#define CFG_FLASH0_BASE 0xFFF00000
-#define CFG_FLASH0_SIZE 8
+#define CONFIG_SYS_FLASH0_BASE 0xFFF00000
+#define CONFIG_SYS_FLASH0_SIZE 8
 
 /* Flash bank size (for preliminary settings)
  */
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
+#define CONFIG_SYS_FLASH_SIZE CONFIG_SYS_FLASH0_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /* Environment in flash */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+0x60000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+0x60000)
 #define CONFIG_ENV_SIZE                0x20000
 #define CONFIG_ENV_SECT_SIZE   0x20000
 
 #if defined(CONFIG_CMD_NAND)
 
 #define CONFIG_NAND_LEGACY
-#define CFG_NAND0_BASE 0xE1000000
+#define CONFIG_SYS_NAND0_BASE 0xE1000000
 
-#define CFG_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
 #define SECTORSIZE 512
 #define NAND_NO_RB
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
-#define CFG_HRCW_MASTER        (HRCW_BPS01 | HRCW_BMS | HRCW_ISB100 | HRCW_APPC10 | HRCW_MODCK_H1000)
+#define CONFIG_SYS_HRCW_MASTER (HRCW_BPS01 | HRCW_BMS | HRCW_ISB100 | HRCW_APPC10 | HRCW_MODCK_H1000)
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         CFG_FLASH0_BASE
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
 /*
  * Internal Definitions
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * HID1 has only read-only information - nothing to set.
  */
 
-#define CFG_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI)
-#define CFG_HID0_FINAL  0
-#define CFG_HID2        0
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI)
+#define CONFIG_SYS_HID0_FINAL  0
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                0
+#define CONFIG_SYS_BCR         0
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                             4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10|SIUMCR_BCTLC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10|SIUMCR_BCTLC01)
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                             4-35
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR        (0x00000028 | SCCR_DFBRG01)
+#define CONFIG_SYS_SCCR        (0x00000028 | SCCR_DFBRG01)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
 /* Minimum mask to separate preliminary
  * address ranges for CS[0:2]
  */
-#define CFG_GLOBAL_SDRAM_LIMIT (32<<20)        /* less than 32 MB */
+#define CONFIG_SYS_GLOBAL_SDRAM_LIMIT  (32<<20)        /* less than 32 MB */
 
-#define CFG_MPTPR       0x6600
+#define CONFIG_SYS_MPTPR       0x6600
 
 /*-----------------------------------------------------------------------------
  * Address for Mode Register Set (MRS) command
  *-----------------------------------------------------------------------------
  */
-#define CFG_MRS_OFFS   0x00000110
+#define CONFIG_SYS_MRS_OFFS    0x00000110
 
 
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH_SIZE)      |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_SCY_6_CLK                 )
 
 #if defined(CONFIG_CMD_NAND)
 /* Bank 1 - NAND Flash
 */
-#define        CFG_NAND_BASE           CFG_NAND0_BASE
-#define        CFG_NAND_SIZE           0x8000
+#define        CONFIG_SYS_NAND_BASE            CONFIG_SYS_NAND0_BASE
+#define        CONFIG_SYS_NAND_SIZE            0x8000
 
-#define CFG_OR_TIMING_NAND     0x000036
+#define CONFIG_SYS_OR_TIMING_NAND      0x000036
 
-#define CFG_BR1_PRELIM  ((CFG_NAND_BASE & BRx_BA_MSK) | BRx_PS_8 | BRx_MS_GPCM_P | BRx_V  )
-#define CFG_OR1_PRELIM  (P2SZ_TO_AM(CFG_NAND_SIZE) | CFG_OR_TIMING_NAND )
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_NAND_BASE & BRx_BA_MSK) | BRx_PS_8 | BRx_MS_GPCM_P | BRx_V  )
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_NAND_SIZE) | CONFIG_SYS_OR_TIMING_NAND )
 #endif
 
 /* Bank 2 - 60x bus SDRAM
  */
-#define CFG_PSRT        0x20
-#define CFG_LSRT        0x20
+#define CONFIG_SYS_PSRT        0x20
+#define CONFIG_SYS_LSRT        0x20
 
-#define CFG_BR2_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_32                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR2_PRELIM CFG_OR2
+#define CONFIG_SYS_OR2_PRELIM  CONFIG_SYS_OR2
 
 
 /* SDRAM initialization values
 */
-#define CFG_OR2    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR2    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A9             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR  (PSDMR_SDAM_A14_IS_A5 |\
+#define CONFIG_SYS_PSDMR  (PSDMR_SDAM_A14_IS_A5 |\
                         PSDMR_BSMA_A15_A17           |\
                         PSDMR_SDA10_PBI0_A10           |\
                         PSDMR_RFRC_5_CLK               |\
 /* Bank 3 - UART
 */
 
-#define CFG_BR3_PRELIM  ((CFG_UART_BASE & BRx_BA_MSK) | BRx_PS_8 | BRx_MS_GPCM_P | BRx_V  )
-#define CFG_OR3_PRELIM  (((-CFG_UART_SIZE) & ORxG_AM_MSK) | ORxG_CSNT | ORxG_SCY_1_CLK | ORxG_TRLX )
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_UART_BASE & BRx_BA_MSK) | BRx_PS_8 | BRx_MS_GPCM_P | BRx_V  )
+#define CONFIG_SYS_OR3_PRELIM  (((-CONFIG_SYS_UART_SIZE) & ORxG_AM_MSK) | ORxG_CSNT | ORxG_SCY_1_CLK | ORxG_TRLX )
 
 #endif /* __CONFIG_H */
index c0bf3673028df2736d4d43d2829933bd4c90b12a..b9c57132d7ae898f2b4bbd82db40054b8d7fd81b 100644 (file)
@@ -52,7 +52,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
 
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xFE
-# define CFG_I2C_EEPROM_ADDR   0x50    /* EEPROM X24C16                */
-# define CFG_I2C_EEPROM_ADDR_LEN 1     /* bytes of address             */
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xFE
+# define CONFIG_SYS_I2C_EEPROM_ADDR    0x50    /* EEPROM X24C16                */
+# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1      /* bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* takes up to 10 msec */
 
 #define        CONFIG_TIMESTAMP                /* Print image info with timestamp */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x00100000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00100000      /* default load address */
 
-#define        CFG_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
+#define        CONFIG_SYS_PIO_MODE             0       /* IDE interface in PIO Mode 0  */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF1000000      /* Non-standard value!! */
+#define CONFIG_SYS_IMMR                0xF1000000      /* Non-standard value!! */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x10000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x10000000
 #ifdef DEBUG
-#define        CFG_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (512 << 10)     /* Reserve 512 kB for Monitor   */
 #else
 #if 0 /* need more space for I2C tests */
-#define        CFG_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (128 << 10)     /* Reserve 128 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (256 << 10)
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)
 #endif
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     124     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      124     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #undef CONFIG_ENV_IS_IN_FLASH
 #undef CONFIG_ENV_IS_IN_NVRAM
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * +0x0004
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * +0x0000 => 0x80600800
  */
-#define CFG_SIUMCR     (SIUMCR_EARB   | SIUMCR_EARP0 | \
+#define CONFIG_SYS_SIUMCR      (SIUMCR_EARB   | SIUMCR_EARP0 | \
                         SIUMCR_DBGC11 | SIUMCR_MLRC10)
 
 /*-----------------------------------------------------------------------
@@ -247,7 +247,7 @@ extern  unsigned long           ip860_get_clk_freq (void);
  * Clear Reference Interrupt Status, Timebase freezing enabled
  * +0x0200 => 0x00C2
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
@@ -255,7 +255,7 @@ extern  unsigned long           ip860_get_clk_freq (void);
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  * +0x0240 => 0x0082
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
@@ -264,7 +264,7 @@ extern  unsigned long           ip860_get_clk_freq (void);
  * interrupt status bit, set PLL multiplication factor !
  */
 /* +0x0286 => was: 0x0000D000 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                (       PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST |    \
                        /*PLPRCR_CSRC|*/ PLPRCR_LPM_NORMAL |            \
                        PLPRCR_CSR   | PLPRCR_LOLRE /*|PLPRCR_FIOPD*/   \
@@ -277,7 +277,7 @@ extern  unsigned long           ip860_get_clk_freq (void);
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00     |   SCCR_TBS      |     \
+#define CONFIG_SYS_SCCR        (SCCR_COM00     |   SCCR_TBS      |     \
                         SCCR_RTDIV     |   SCCR_RTSEL    |     \
                         /*SCCR_CRQEN|*/  /*SCCR_PRQEN|*/       \
                         SCCR_EBDF00    |   SCCR_DFSYNC00 |     \
@@ -289,7 +289,7 @@ extern  unsigned long           ip860_get_clk_freq (void);
  *-----------------------------------------------------------------------
  */
 /* +0x0220 => 0x00C3 */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 
 /*-----------------------------------------------------------------------
@@ -297,20 +297,20 @@ extern  unsigned long           ip860_get_clk_freq (void);
  *-----------------------------------------------------------------------
  */
 /* +0x09C4 => TIMEP=1 */
-#define CFG_RCCR 0x0100
+#define CONFIG_SYS_RCCR 0x0100
 
 /*-----------------------------------------------------------------------
  * RMDS - RISC Microcode Development Support Control Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMDS 0
+#define CONFIG_SYS_RMDS 0
 
 /*-----------------------------------------------------------------------
  * DER - Debug Event Register
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
@@ -322,9 +322,9 @@ extern  unsigned long           ip860_get_clk_freq (void);
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   0xC3
+#define CONFIG_SYS_MAMR_PTA    0xC3
 
-#define CFG_MAMR       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR        ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /*
@@ -337,18 +337,18 @@ extern  unsigned long           ip860_get_clk_freq (void);
  * but not too much to meddle with FLASH accesses
  */
 /* allow for max 8 MB of Flash */
-#define CFG_REMAP_OR_AM                0xFF800000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF800000      /* OR addr mask */
 
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | OR_SCY_6_CLK)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | OR_SCY_6_CLK)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
 /* 16 bit, bank valid */
-#define CFG_BR0_PRELIM ((FLASH_BASE & BR_BA_MSK) | BR_PS_32 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE & BR_BA_MSK) | BR_PS_32 | BR_V )
 
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM CFG_BR0_PRELIM
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  CONFIG_SYS_BR0_PRELIM
 
 /*
  * BR2/OR2 - SDRAM
@@ -359,46 +359,46 @@ extern  unsigned long           ip860_get_clk_freq (void);
 
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB SDRAM */
 
-#define CFG_OR2                (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
-#define CFG_BR2                ((SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2         (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
+#define CONFIG_SYS_BR2         ((SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * BR3/OR3 - SRAM (16 bit)
  */
 #define        SRAM_BASE       0x20000000
-#define CFG_OR3                0xFFF00130              /* BI/SCY = 5/TRLX (internal) */
-#define CFG_BR3                ((SRAM_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
-#define SRAM_SIZE      (1 + (~(CFG_OR3 & BR_BA_MSK)))
-#define CFG_OR3_PRELIM CFG_OR3                 /* Make sure to map early */
-#define CFG_BR3_PRELIM CFG_BR3                 /* in case it's used for ENV */
+#define CONFIG_SYS_OR3         0xFFF00130              /* BI/SCY = 5/TRLX (internal) */
+#define CONFIG_SYS_BR3         ((SRAM_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define SRAM_SIZE      (1 + (~(CONFIG_SYS_OR3 & BR_BA_MSK)))
+#define CONFIG_SYS_OR3_PRELIM  CONFIG_SYS_OR3                  /* Make sure to map early */
+#define CONFIG_SYS_BR3_PRELIM  CONFIG_SYS_BR3                  /* in case it's used for ENV */
 
 /*
  * BR4/OR4 - Board Control & Status (8 bit)
  */
 #define        BCSR_BASE       0xFC000000
-#define CFG_OR4                0xFFFF0120              /* BI (internal) */
-#define CFG_BR4                ((BCSR_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR4         0xFFFF0120              /* BI (internal) */
+#define CONFIG_SYS_BR4         ((BCSR_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
 
 /*
  * BR5/OR5 - IP Slot A/B (16 bit)
  */
 #define        IP_SLOT_BASE    0x40000000
-#define CFG_OR5                0xFE00010C              /* SETA/TRLX/BI/ SCY=0 (external) */
-#define CFG_BR5                ((IP_SLOT_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR5         0xFE00010C              /* SETA/TRLX/BI/ SCY=0 (external) */
+#define CONFIG_SYS_BR5         ((IP_SLOT_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
 
 /*
  * BR6/OR6 - VME STD  (16 bit)
  */
 #define        VME_STD_BASE    0xFE000000
-#define CFG_OR6                0xFF00010C              /* SETA/TRLX/BI/SCY=0  (external) */
-#define CFG_BR6                ((VME_STD_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR6         0xFF00010C              /* SETA/TRLX/BI/SCY=0  (external) */
+#define CONFIG_SYS_BR6         ((VME_STD_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
 
 /*
  * BR7/OR7 - SHORT I/O + RTC + IACK  (16 bit)
  */
 #define VME_SHORT_BASE 0xFF000000
-#define CFG_OR7                0xFF00010C              /* SETA/TRLX/BI/ SCY=0 (external) */
-#define CFG_BR7                ((VME_SHORT_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR7         0xFF00010C              /* SETA/TRLX/BI/ SCY=0 (external) */
+#define CONFIG_SYS_BR7         ((VME_SHORT_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
 
 /*-----------------------------------------------------------------------
  * Board Control and Status Region:
index 31fbf329222e7fc2010541e07cdd822e0118e37a..3cb6cf7ddb3d620a3b07a805ddf1bfd303572e07 100644 (file)
  * - Select bus for bd/buffers (see 28-13)
  * - Half duplex
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF3CS_CLK14 | CMXFCR_TF3CS_CLK16)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF3CS_CLK14 | CMXFCR_TF3CS_CLK16)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
  */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15 MB in DRAM  */
 
 #define CONFIG_CLOCKS_IN_MHZ   1       /* clocks passed to Linux in MHz */
                                        /* for versions < 2.4.5-pre5     */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_RESET_ADDRESS      0x04400000
+#define CONFIG_SYS_RESET_ADDRESS       0x04400000
 
 #define CONFIG_MISC_INIT_R     1       /* We need misc_init_r()        */
 
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration (Setup by the
- * startup code). Please note that CFG_SDRAM_BASE _must_ start at 0.
+ * startup code). Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF800000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF800000
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor  */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor  */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     64      /* max num of sects on one chip */
-#define CFG_MAX_FLASH_SIZE     (CFG_MAX_FLASH_SECT * 0x10000)  /* 4 MB */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SIZE      (CONFIG_SYS_MAX_FLASH_SECT * 0x10000)   /* 4 MB */
 
-#define CFG_FLASH_ERASE_TOUT   2400000 /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    2400000 /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /* Environment in FLASH, there is little space left in Serial EEPROM */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* We use one complete sector   */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x10000) /* 2. sector */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x10000) /* 2. sector */
 
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
-#define CFG_HRCW_MASTER ( ( HRCW_BPS01 | HRCW_EBM )            |\
+#define CONFIG_SYS_HRCW_MASTER ( ( HRCW_BPS01 | HRCW_EBM )             |\
                          ( HRCW_L2CPC10 | HRCW_ISB110 )        |\
                          ( HRCW_MMR11 | HRCW_APPC10 )          |\
                          ( HRCW_CS10PC01 | HRCW_MODCK_H0101 )   \
                        ) /* 0x14863245 */
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1 0
-#define CFG_HRCW_SLAVE2 0
-#define CFG_HRCW_SLAVE3 0
-#define CFG_HRCW_SLAVE4 0
-#define CFG_HRCW_SLAVE5 0
-#define CFG_HRCW_SLAVE6 0
-#define CFG_HRCW_SLAVE7 0
+#define CONFIG_SYS_HRCW_SLAVE1 0
+#define CONFIG_SYS_HRCW_SLAVE2 0
+#define CONFIG_SYS_HRCW_SLAVE3 0
+#define CONFIG_SYS_HRCW_SLAVE4 0
+#define CONFIG_SYS_HRCW_SLAVE5 0
+#define CONFIG_SYS_HRCW_SLAVE6 0
+#define CONFIG_SYS_HRCW_SLAVE7 0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000 /* We keep original value */
+#define CONFIG_SYS_IMMR                0xFF000000 /* We keep original value */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Internal Definitions
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32     /* For MPC8260 CPU               */
+#define CONFIG_SYS_CACHELINE_SIZE      32     /* For MPC8260 CPU               */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5      /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5      /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                         HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL (HID0_IFEM|HID0_ABE)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID0_FINAL  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                    5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR                RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                0xA01C0000
+#define CONFIG_SYS_BCR         0xA01C0000
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     0X4205C000
+#define CONFIG_SYS_SIUMCR      0X4205C000
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                            4-35
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined (CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * and enable Time Counter
  *-----------------------------------------------------------------------
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR       0
+#define CONFIG_SYS_SCCR        0
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 /*-----------------------------------------------------------------------
  * Init Memory Controller:
  *  1  60x     SDRAM   64 bit  SDRAM
  */
 
-#define CFG_BR0_PRELIM ((CFG_FLASH_BASE & BRx_BA_MSK) | 0x0801)
-#define CFG_OR0_PRELIM 0xFF800882
-#define CFG_BR1_PRELIM ((CFG_SDRAM_BASE & BRx_BA_MSK) | 0x0041)
-#define CFG_OR1_PRELIM 0xF8002CD0
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK) | 0x0801)
+#define CONFIG_SYS_OR0_PRELIM  0xFF800882
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK) | 0x0041)
+#define CONFIG_SYS_OR1_PRELIM  0xF8002CD0
 
-#define CFG_PSDMR      0x404A241A
-#define CFG_MPTPR      0x00007400
-#define CFG_PSRT       0x00000007
+#define CONFIG_SYS_PSDMR       0x404A241A
+#define CONFIG_SYS_MPTPR       0x00007400
+#define CONFIG_SYS_PSRT        0x00000007
 
 #endif /* __CONFIG_H */
index 8b6f3ce0523f0a3cd9ece088c0f5203324fc3d6d..6eb466a7252bd6058bb608a81353fb6afa621641 100644 (file)
 
 #if CONFIG_ETHER_INDEX == 3
 
-#define CFG_PHY_ADDR           0
-#define CFG_CMXFCR_VALUE       (CMXFCR_RF3CS_CLK14 | CMXFCR_TF3CS_CLK16)
-#define CFG_CMXFCR_MASK                (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
+#define CONFIG_SYS_PHY_ADDR            0
+#define CONFIG_SYS_CMXFCR_VALUE        (CMXFCR_RF3CS_CLK14 | CMXFCR_TF3CS_CLK16)
+#define CONFIG_SYS_CMXFCR_MASK         (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
 
 #endif /* CONFIG_ETHER_INDEX == 3 */
 
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #define CONFIG_MII                             /* MII PHY management           */
 #define CONFIG_BITBANGMII                      /* Bit-bang MII PHY management  */
  */
 #define MDIO_PORT              3               /* Port D */
 
-#define CFG_MDIO_PIN           0x00040000      /* PD13 */
-#define CFG_MDC_PIN            0x00080000      /* PD12 */
+#define CONFIG_SYS_MDIO_PIN            0x00040000      /* PD13 */
+#define CONFIG_SYS_MDC_PIN             0x00080000      /* PD12 */
 
-#define MDIO_ACTIVE            (iop->pdir |=  CFG_MDIO_PIN)
-#define MDIO_TRISTATE          (iop->pdir &= ~CFG_MDIO_PIN)
-#define MDIO_READ              ((iop->pdat &  CFG_MDIO_PIN) != 0)
+#define MDIO_ACTIVE            (iop->pdir |=  CONFIG_SYS_MDIO_PIN)
+#define MDIO_TRISTATE          (iop->pdir &= ~CONFIG_SYS_MDIO_PIN)
+#define MDIO_READ              ((iop->pdat &  CONFIG_SYS_MDIO_PIN) != 0)
 
-#define MDIO(bit)              if(bit) iop->pdat |=  CFG_MDIO_PIN; \
-                               else    iop->pdat &= ~CFG_MDIO_PIN
+#define MDIO(bit)              if(bit) iop->pdat |=  CONFIG_SYS_MDIO_PIN; \
+                               else    iop->pdat &= ~CONFIG_SYS_MDIO_PIN
 
-#define MDC(bit)               if(bit) iop->pdat |=  CFG_MDC_PIN; \
-                               else    iop->pdat &= ~CFG_MDC_PIN
+#define MDC(bit)               if(bit) iop->pdat |=  CONFIG_SYS_MDC_PIN; \
+                               else    iop->pdat &= ~CONFIG_SYS_MDC_PIN
 
 #define MIIDELAY               udelay(1)
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                           /* #undef to save memory        */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* Max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                            /* #undef to save memory        */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)  /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x03B00000      /* 1 ... 59 MB in SDRAM         */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x03B00000      /* 1 ... 59 MB in SDRAM         */
 
-#define CFG_LOAD_ADDR          0x100000        /* Default load address         */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* Default load address         */
 
-#define CFG_HZ                 1000            /* Decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* Decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_RESET_ADDRESS      0x09900000
+#define CONFIG_SYS_RESET_ADDRESS       0x09900000
 
 #define CONFIG_MISC_INIT_R                     /* We need misc_init_r()        */
 
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
 #ifdef CONFIG_BZIP2
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
 #else
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 KB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 KB for malloc()  */
 #endif /* CONFIG_BZIP2 */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CFG_MAX_FLASH_BANKS    1               /* Max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     142             /* Max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      142             /* Max num of sects on one chip */
 
 /* Environment is in flash, there is little space left in Serial EEPROM */
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000         /* We use one complete sector   */
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * If you change bits in the HRCW, you must also change the CFG_*
+ * If you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 /* 0x1686B245 */
-#define CFG_HRCW_MASTER (HRCW_EBM      | HRCW_BPS01       | HRCW_CIP    |\
+#define CONFIG_SYS_HRCW_MASTER (HRCW_EBM      | HRCW_BPS01       | HRCW_CIP    |\
                         HRCW_L2CPC10  | HRCW_ISB110                    |\
                         HRCW_BMS      | HRCW_MMR11       | HRCW_APPC10 |\
                         HRCW_CS10PC01 | HRCW_MODCK_H0101                \
                        )
 /* No slaves */
-#define CFG_HRCW_SLAVE1 0
-#define CFG_HRCW_SLAVE2 0
-#define CFG_HRCW_SLAVE3 0
-#define CFG_HRCW_SLAVE4 0
-#define CFG_HRCW_SLAVE5 0
-#define CFG_HRCW_SLAVE6 0
-#define CFG_HRCW_SLAVE7 0
+#define CONFIG_SYS_HRCW_SLAVE1 0
+#define CONFIG_SYS_HRCW_SLAVE2 0
+#define CONFIG_SYS_HRCW_SLAVE3 0
+#define CONFIG_SYS_HRCW_SLAVE4 0
+#define CONFIG_SYS_HRCW_SLAVE5 0
+#define CONFIG_SYS_HRCW_SLAVE6 0
+#define CONFIG_SYS_HRCW_SLAVE7 0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0F00000
-#ifdef CFG_REV_B
-#define CFG_DEFAULT_IMMR       0xFF000000
-#endif /* CFG_REV_B */
+#define CONFIG_SYS_IMMR                0xF0F00000
+#ifdef CONFIG_SYS_REV_B
+#define CONFIG_SYS_DEFAULT_IMMR        0xFF000000
+#endif /* CONFIG_SYS_REV_B */
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128  /* Size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* Size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Internal Definitions
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU                      */
 
 /*-----------------------------------------------------------------------
  * HIDx - Hardware Implementation-dependent Registers          2-11
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT          (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT           (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL         (HID0_ICE|HID0_IFEM|HID0_ABE)
-#define CFG_HID2               0
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE|HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2                0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                    5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR                        RMR_CSRE
+#define CONFIG_SYS_RMR                 RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                        0xA01C0000
+#define CONFIG_SYS_BCR                 0xA01C0000
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR             0x42250000/* 0x4205C000 */
+#define CONFIG_SYS_SIUMCR              0x42250000/* 0x4205C000 */
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                            4-35
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined (CONFIG_WATCHDOG)
-#define CFG_SYPCR              (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR               (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                                SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR              (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR               (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                                SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * and enable Time Counter
  *-----------------------------------------------------------------------
  */
-#define CFG_TMCNTSC            (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC             (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR              (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR               (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR               SCCR_DFBRG01
+#define CONFIG_SYS_SCCR                SCCR_DFBRG01
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR               0
+#define CONFIG_SYS_RCCR                0
 
 /*-----------------------------------------------------------------------
  * Init Memory Controller:
  *  1  60x     SDRAM   64 bit                          SDRAM
  *  2  Local   SDRAM   32 bit                          SDRAM
  */
-#define CFG_USE_FIRMWARE       /* If defined - do not initialise memory
+#define CONFIG_SYS_USE_FIRMWARE        /* If defined - do not initialise memory
                                   controller, rely on initialisation
                                   performed by the Interphase boot firmware.
                                 */
 
-#define CFG_OR0_PRELIM         0xFE000882
-#ifdef CFG_REV_B
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BRx_PS_8  | BRx_V)
+#define CONFIG_SYS_OR0_PRELIM          0xFE000882
+#ifdef CONFIG_SYS_REV_B
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BRx_PS_8  | BRx_V)
 #else  /* Rev. D */
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BRx_PS_16 | BRx_V)
-#endif /* CFG_REV_B */
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BRx_PS_16 | BRx_V)
+#endif /* CONFIG_SYS_REV_B */
 
-#define CFG_MPTPR              0x7F00
+#define CONFIG_SYS_MPTPR               0x7F00
 
 /* Please note that 60x SDRAM MUST start at 0 */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_60x_BR             0x00000041
-#define CFG_60x_OR             0xF0002CD0
-#define CFG_PSDMR              0x0049929A
-#define CFG_PSRT               0x07
-
-#define CFG_LSDRAM_BASE                0xF7000000
-#define CFG_LOC_BR             0x00001861
-#define CFG_LOC_OR             0xFF803280
-#define CFG_LSDMR              0x8285A552
-#define CFG_LSRT               0x07
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_60x_BR              0x00000041
+#define CONFIG_SYS_60x_OR              0xF0002CD0
+#define CONFIG_SYS_PSDMR               0x0049929A
+#define CONFIG_SYS_PSRT                0x07
+
+#define CONFIG_SYS_LSDRAM_BASE         0xF7000000
+#define CONFIG_SYS_LOC_BR              0x00001861
+#define CONFIG_SYS_LOC_OR              0xFF803280
+#define CONFIG_SYS_LSDMR               0x8285A552
+#define CONFIG_SYS_LSRT                0x07
 
 #endif /* __CONFIG_H */
index 6a422c8e2fd6b4183bbdf0a3fa9dd5f6b56e896e..cd100df05776e4159b17b49694c5d795d4ca447c 100644 (file)
@@ -66,7 +66,7 @@
                                "nfsaddrs=10.0.0.99:10.0.0.2"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x00100000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00100000      /* default load address */
 
-#define        CFG_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
+#define        CONFIG_SYS_PIO_MODE             0       /* IDE interface in PIO Mode 0  */
 
-#define CFG_PB_12V_ENABLE      0x00002000              /* PB 18        */
-#define CFG_PB_ILOCK_SWITCH    0x00004000              /* PB 17        */
-#define CFG_PB_SDRAM_CLKE      0x00008000              /* PB 16        */
-#define CFG_PB_ETH_POWERDOWN   0x00010000              /* PB 15        */
-#define CFG_PB_IDE_MOTOR       0x00020000              /* PB 14        */
+#define CONFIG_SYS_PB_12V_ENABLE       0x00002000              /* PB 18        */
+#define CONFIG_SYS_PB_ILOCK_SWITCH     0x00004000              /* PB 17        */
+#define CONFIG_SYS_PB_SDRAM_CLKE       0x00008000              /* PB 16        */
+#define CONFIG_SYS_PB_ETH_POWERDOWN    0x00010000              /* PB 15        */
+#define CONFIG_SYS_PB_IDE_MOTOR        0x00020000              /* PB 14        */
 
-#define CFG_PC_ETH_RESET       ((ushort)0x0010)        /* PC 11        */
-#define CFG_PC_IDE_RESET       ((ushort)0x0020)        /* PC 10        */
+#define CONFIG_SYS_PC_ETH_RESET        ((ushort)0x0010)        /* PC 11        */
+#define CONFIG_SYS_PC_IDE_RESET        ((ushort)0x0020)        /* PC 10        */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000 /* was: 0xFF000000 */
+#define CONFIG_SYS_IMMR                0xFFF00000 /* was: 0xFF000000 */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
 
 #if defined (CONFIG_IVML24_16M)
-# define       CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+# define       CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
 #elif defined (CONFIG_IVML24_32M)
-# define       CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
+# define       CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
 #elif defined (CONFIG_IVML24_64M)
-# define       CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
+# define       CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
 #endif
 
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0xFF000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
 #ifdef DEBUG
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x7A000 /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
 #if defined(CONFIG_WATCHDOG)
 
 # if defined (CONFIG_IVML24_16M)
-#  define CFG_SYPCR    (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#  define CONFIG_SYS_SYPCR     (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 # elif defined (CONFIG_IVML24_32M)
-#  define CFG_SYPCR    (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#  define CONFIG_SYS_SYPCR     (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWP)
 # elif defined (CONFIG_IVML24_64M)
-#  define CFG_SYPCR    (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#  define CONFIG_SYS_SYPCR     (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWP)
 # endif
 
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  */
 /* EARB, DBGC and DBPC are initialised by the HCW */
 /* => 0x000000C0 */
-#define CFG_SIUMCR     (SIUMCR_BSC | SIUMCR_GB5E)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_BSC | SIUMCR_GB5E)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit, set PLL multiplication factor !
  */
 /* 0x00B0C0C0 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                (       (11 << PLPRCR_MF_SHIFT) |                       \
                        PLPRCR_SPLSS | PLPRCR_TEXPS | /*PLPRCR_TMIST|*/ \
                        /*PLPRCR_CSRC|*/ PLPRCR_LPM_NORMAL |            \
  */
 #define SCCR_MASK      SCCR_EBDF11
 /* 0x01800014 */
-#define CFG_SCCR       (SCCR_COM01     | /*SCCR_TBS|*/         \
+#define CONFIG_SYS_SCCR        (SCCR_COM01     | /*SCCR_TBS|*/         \
                         SCCR_RTDIV     |   SCCR_RTSEL    |     \
                         /*SCCR_CRQEN|*/  /*SCCR_PRQEN|*/       \
                         SCCR_EBDF00    |   SCCR_DFSYNC00 |     \
  *-----------------------------------------------------------------------
  */
 /* 0x00C3 */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  */
 /* TIMEP=2 */
-#define CFG_RCCR 0x0200
+#define CONFIG_SYS_RCCR 0x0200
 
 /*-----------------------------------------------------------------------
  * RMDS - RISC Microcode Development Support Control Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMDS 0
+#define CONFIG_SYS_RMDS 0
 
 /*-----------------------------------------------------------------------
  *
  * Interrupt Levels
  *-----------------------------------------------------------------------
  */
-#define CFG_CPM_INTERRUPT      13      /* SIU_LEVEL6   */
+#define CONFIG_SYS_CPM_INTERRUPT       13      /* SIU_LEVEL6   */
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #define CONFIG_IDE_8xx_DIRECT  1       /* PCMCIA interface required    */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         1       /* The IVML24 has only 1 IDE bus*/
-#define CFG_IDE_MAXDEVICE      1       /*    ... and only 1 IDE device */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* The IVML24 has only 1 IDE bus*/
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /*    ... and only 1 IDE device */
 
-#define CFG_ATA_BASE_ADDR      0xFE100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#undef CFG_ATA_IDE1_OFFSET             /* only one IDE bus available   */
+#define CONFIG_SYS_ATA_BASE_ADDR       0xFE100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#undef CONFIG_SYS_ATA_IDE1_OFFSET              /* only one IDE bus available   */
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0080  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0100  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0080  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * but not too much to meddle with FLASH accesses
  */
 /* EPROMs are 512kb */
-#define CFG_REMAP_OR_AM                0xFFF80000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFF80000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFFF80000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFF80000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_SCY_5_CLK | OR_EHTR)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_SCY_5_CLK | OR_EHTR)
 
-#define CFG_OR0_REMAP  ( CFG_REMAP_OR_AM | OR_ACS_DIV4 | OR_BI | \
-                               CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | OR_ACS_DIV4 | OR_BI | \
-                               CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   ( CONFIG_SYS_REMAP_OR_AM | OR_ACS_DIV4 | OR_BI | \
+                               CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | OR_ACS_DIV4 | OR_BI | \
+                               CONFIG_SYS_OR_TIMING_FLASH)
 /* 16 bit, bank valid */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 /*
  * BR1/OR1 - ELIC SACCO bank  @ 0xFE000000
 #define ELIC_SACCO_OR_AM       0xFFFF8000
 #define ELIC_SACCO_TIMING      (OR_SCY_2_CLK | OR_TRLX | OR_EHTR)
 
-#define CFG_OR1        (ELIC_SACCO_OR_AM | OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR1 (ELIC_SACCO_OR_AM | OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | \
                        ELIC_SACCO_TIMING)
-#define CFG_BR1        ((ELIC_SACCO_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_BR1 ((ELIC_SACCO_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR2/OR2 - ELIC EPIC bank   @ 0xFE008000
 #define ELIC_EPIC_OR_AM                0xFFFF8000
 #define ELIC_EPIC_TIMING       (OR_SCY_2_CLK | OR_TRLX | OR_EHTR)
 
-#define CFG_OR2 (ELIC_EPIC_OR_AM | OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR2 (ELIC_EPIC_OR_AM | OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | \
                        ELIC_EPIC_TIMING)
-#define CFG_BR2        ((ELIC_EPIC_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_BR2 ((ELIC_EPIC_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR3/OR3: SDRAM
 
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB SDRAM */
 
-#define CFG_OR3_PRELIM (SDRAM_PRELIM_OR_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING )
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  (SDRAM_PRELIM_OR_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING )
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V )
 
 /*
  * BR4/OR4 - HDLC Address
 #define HDLC_ADDR_OR_AM                0xFFFF8000
 #define HDLC_ADDR_TIMING       OR_SCY_1_CLK
 
-#define CFG_OR4        (HDLC_ADDR_OR_AM | OR_BI | HDLC_ADDR_TIMING)
-#define CFG_BR4        ((HDLC_ADDR_BASE & BR_BA_MSK) | BR_PS_8 | BR_WP | BR_V )
+#define CONFIG_SYS_OR4 (HDLC_ADDR_OR_AM | OR_BI | HDLC_ADDR_TIMING)
+#define CONFIG_SYS_BR4 ((HDLC_ADDR_BASE & BR_BA_MSK) | BR_PS_8 | BR_WP | BR_V )
 
 /*
  * BR5/OR5: SHARC ADSP-2165L
 #define SHARC_OR_AM            0xFFC00000
 #define SHARC_TIMING           OR_SCY_0_CLK
 
-#define CFG_OR5        (SHARC_OR_AM | OR_ACS_DIV2 | OR_BI | SHARC_TIMING )
-#define CFG_BR5        ((SHARC_BASE & BR_BA_MSK) | BR_PS_32 | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR5 (SHARC_OR_AM | OR_ACS_DIV2 | OR_BI | SHARC_TIMING )
+#define CONFIG_SYS_BR5 ((SHARC_BASE & BR_BA_MSK) | BR_PS_32 | BR_MS_UPMA | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MBMR_PTB   204
+#define CONFIG_SYS_MBMR_PTB    204
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
 
 #if defined (CONFIG_IVML24_16M)
-# define CFG_MPTPR_1BK_8K      MPTPR_PTP_DIV16         /* setting for 1 bank   */
+# define CONFIG_SYS_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
 #elif defined (CONFIG_IVML24_32M)
-# define CFG_MPTPR_1BK_8K      MPTPR_PTP_DIV16         /* setting for 1 bank   */
+# define CONFIG_SYS_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
 #elif defined (CONFIG_IVML24_64M)
-# define CFG_MPTPR_1BK_8K      MPTPR_PTP_DIV8          /* setting for 1 bank   */
+# define CONFIG_SYS_MPTPR_1BK_8K       MPTPR_PTP_DIV8          /* setting for 1 bank   */
 #endif
 
 
 
 #if defined (CONFIG_IVML24_16M)
  /* 8 column SDRAM */
-# define CFG_MBMR_8COL ((CFG_MBMR_PTB << MBMR_PTB_SHIFT)  | \
+# define CONFIG_SYS_MBMR_8COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT)  | \
                         MBMR_AMB_TYPE_0 | MBMR_DSB_1_CYCL | MBMR_G0CLB_A11 |   \
                         MBMR_RLFB_1X    | MBMR_WLFB_1X    | MBMR_TLFB_4X)
 #elif defined (CONFIG_IVML24_32M)
 /* 128 MBit SDRAM */
-# define CFG_MBMR_8COL ((CFG_MBMR_PTB << MBMR_PTB_SHIFT)  | \
+# define CONFIG_SYS_MBMR_8COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT)  | \
                         MBMR_AMB_TYPE_1 | MBMR_DSB_1_CYCL | MBMR_G0CLB_A10 |   \
                         MBMR_RLFB_1X    | MBMR_WLFB_1X    | MBMR_TLFB_4X)
 #elif defined (CONFIG_IVML24_64M)
 /* 128 MBit SDRAM */
-# define CFG_MBMR_8COL ((CFG_MBMR_PTB << MBMR_PTB_SHIFT)  | \
+# define CONFIG_SYS_MBMR_8COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT)  | \
                         MBMR_AMB_TYPE_1 | MBMR_DSB_1_CYCL | MBMR_G0CLB_A10 |   \
                         MBMR_RLFB_1X    | MBMR_WLFB_1X    | MBMR_TLFB_4X)
 #endif
index 54477eec27b524d8ec69afde7065a89c4fa82640..125cb4b20379b470e66e48e277cfc30df2ee1290 100644 (file)
@@ -66,7 +66,7 @@
                                "nfsaddrs=10.0.0.99:10.0.0.2"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x00100000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00100000      /* default load address */
 
-#define        CFG_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
+#define        CONFIG_SYS_PIO_MODE             0       /* IDE interface in PIO Mode 0  */
 
-#define CFG_PB_SDRAM_CLKE      0x00008000              /* PB 16        */
-#define CFG_PB_ETH_POWERDOWN   0x00010000              /* PB 15        */
-#define CFG_PB_IDE_MOTOR       0x00020000              /* PB 14        */
+#define CONFIG_SYS_PB_SDRAM_CLKE       0x00008000              /* PB 16        */
+#define CONFIG_SYS_PB_ETH_POWERDOWN    0x00010000              /* PB 15        */
+#define CONFIG_SYS_PB_IDE_MOTOR        0x00020000              /* PB 14        */
 
-#define CFG_PC_ETH_RESET       ((ushort)0x0010)        /* PC 11        */
-#define CFG_PC_IDE_RESET       ((ushort)0x0020)        /* PC 10        */
+#define CONFIG_SYS_PC_ETH_RESET        ((ushort)0x0010)        /* PC 11        */
+#define CONFIG_SYS_PC_IDE_RESET        ((ushort)0x0020)        /* PC 10        */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000 /* was: 0xFF000000 */
+#define CONFIG_SYS_IMMR                0xFFF00000 /* was: 0xFF000000 */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
 #if defined (CONFIG_IVMS8_16M)
-# define       CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+# define       CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
 #elif defined (CONFIG_IVMS8_32M)
-# define       CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
+# define       CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
 #elif defined (CONFIG_IVMS8_64M)
-# define       CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
+# define       CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
 #endif
 
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0xFF000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
 #ifdef DEBUG
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x7A000 /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  */
 #if defined(CONFIG_WATCHDOG)
 # if defined (CONFIG_IVMS8_16M)
-#   define CFG_SYPCR   (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#   define CONFIG_SYS_SYPCR    (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #  elif defined (CONFIG_IVMS8_32M)
-#   define CFG_SYPCR   (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#   define CONFIG_SYS_SYPCR    (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWP)
 #  elif defined (CONFIG_IVMS8_64M)
-#   define CFG_SYPCR   (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#   define CONFIG_SYS_SYPCR    (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWP)
 #  endif
 #else
-# define CFG_SYPCR     (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+# define CONFIG_SYS_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  */
 /* EARB, DBGC and DBPC are initialised by the HCW */
 /* => 0x000000C0 */
-#define CFG_SIUMCR     (SIUMCR_BSC | SIUMCR_GB5E)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_BSC | SIUMCR_GB5E)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit, set PLL multiplication factor !
  */
 /* 0x00B0C0C0 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                (       (11 << PLPRCR_MF_SHIFT) |                       \
                        PLPRCR_SPLSS | PLPRCR_TEXPS | /*PLPRCR_TMIST|*/ \
                        /*PLPRCR_CSRC|*/ PLPRCR_LPM_NORMAL |            \
  */
 #define SCCR_MASK      SCCR_EBDF11
 /* 0x01800014 */
-#define CFG_SCCR       (SCCR_COM01     | /*SCCR_TBS|*/         \
+#define CONFIG_SYS_SCCR        (SCCR_COM01     | /*SCCR_TBS|*/         \
                         SCCR_RTDIV     |   SCCR_RTSEL    |     \
                         /*SCCR_CRQEN|*/  /*SCCR_PRQEN|*/       \
                         SCCR_EBDF00    |   SCCR_DFSYNC00 |     \
  *-----------------------------------------------------------------------
  */
 /* 0x00C3 */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  */
 /* TIMEP=2 */
-#define CFG_RCCR 0x0200
+#define CONFIG_SYS_RCCR 0x0200
 
 /*-----------------------------------------------------------------------
  * RMDS - RISC Microcode Development Support Control Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMDS 0
+#define CONFIG_SYS_RMDS 0
 
 /*-----------------------------------------------------------------------
  *
  * Interrupt Levels
  *-----------------------------------------------------------------------
  */
-#define CFG_CPM_INTERRUPT      13      /* SIU_LEVEL6   */
+#define CONFIG_SYS_CPM_INTERRUPT       13      /* SIU_LEVEL6   */
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #define CONFIG_IDE_8xx_DIRECT  1       /* PCMCIA interface required    */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         1       /* The IVMS8 has only 1 IDE bus */
-#define CFG_IDE_MAXDEVICE      1       /*    ... and only 1 IDE device */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* The IVMS8 has only 1 IDE bus */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /*    ... and only 1 IDE device */
 
-#define CFG_ATA_BASE_ADDR      0xFE100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#undef CFG_ATA_IDE1_OFFSET             /* only one IDE bus available   */
+#define CONFIG_SYS_ATA_BASE_ADDR       0xFE100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#undef CONFIG_SYS_ATA_IDE1_OFFSET              /* only one IDE bus available   */
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0080  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0100  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0080  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * but not too much to meddle with FLASH accesses
  */
 /* EPROMs are 512kb */
-#define CFG_REMAP_OR_AM                0xFFF80000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFF80000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFFF80000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFF80000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (/* OR_CSNT_SAM | */ OR_ACS_DIV4 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (/* OR_CSNT_SAM | */ OR_ACS_DIV4 | OR_BI | \
                                 OR_SCY_5_CLK | OR_EHTR)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
 /* 16 bit, bank valid */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 /*
  * BR1/OR1 - ELIC SACCO bank  @ 0xFE000000
 #define ELIC_SACCO_OR_AM       0xFFFF8000
 #define ELIC_SACCO_TIMING      0x00000F26
 
-#define CFG_OR1        (ELIC_SACCO_OR_AM | ELIC_SACCO_TIMING)
-#define CFG_BR1        ((ELIC_SACCO_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR1 (ELIC_SACCO_OR_AM | ELIC_SACCO_TIMING)
+#define CONFIG_SYS_BR1 ((ELIC_SACCO_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR2/OR2 - ELIC EPIC bank   @ 0xFE008000
 #define ELIC_EPIC_OR_AM                0xFFFF8000
 #define ELIC_EPIC_TIMING       0x00000F26
 
-#define CFG_OR2 (ELIC_EPIC_OR_AM | ELIC_EPIC_TIMING)
-#define CFG_BR2        ((ELIC_EPIC_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR2 (ELIC_EPIC_OR_AM | ELIC_EPIC_TIMING)
+#define CONFIG_SYS_BR2 ((ELIC_EPIC_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR3/OR3: SDRAM
 
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB SDRAM */
 
-#define CFG_OR3_PRELIM (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V )
 
 /*
  * BR4/OR4: not used
 #define SHARC_OR_AM            0xFFC00000
 #define SHARC_TIMING           0x00000700
 
-#define CFG_OR5        (SHARC_OR_AM | SHARC_TIMING )
-#define CFG_BR5        ((SHARC_BASE & BR_BA_MSK) | BR_PS_32 | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR5 (SHARC_OR_AM | SHARC_TIMING )
+#define CONFIG_SYS_BR5 ((SHARC_BASE & BR_BA_MSK) | BR_PS_32 | BR_MS_UPMA | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MBMR_PTB   204
+#define CONFIG_SYS_MBMR_PTB    204
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
 #if defined (CONFIG_IVMS8_16M)
- #define CFG_MPTPR_1BK_8K      MPTPR_PTP_DIV16         /* setting for 1 bank   */
+ #define CONFIG_SYS_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
 #elif defined (CONFIG_IVMS8_32M)
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 #elif defined (CONFIG_IVMS8_64M)
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV8          /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV8          /* setting for 1 bank   */
 #endif
 
 
 
 #if defined (CONFIG_IVMS8_16M)
  /* 8 column SDRAM */
-# define CFG_MBMR_8COL ((CFG_MBMR_PTB << MBMR_PTB_SHIFT)  | \
+# define CONFIG_SYS_MBMR_8COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT)  | \
                         MBMR_AMB_TYPE_0 | MBMR_DSB_1_CYCL | MBMR_G0CLB_A11 |   \
                         MBMR_RLFB_1X    | MBMR_WLFB_1X    | MBMR_TLFB_4X)
 #elif defined (CONFIG_IVMS8_32M)
 /* 128 MBit SDRAM */
-#define CFG_MBMR_8COL  ((CFG_MBMR_PTB << MBMR_PTB_SHIFT)  | \
+#define CONFIG_SYS_MBMR_8COL   ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT)  | \
                         MBMR_AMB_TYPE_1 | MBMR_DSB_1_CYCL | MBMR_G0CLB_A10 |   \
                         MBMR_RLFB_1X    | MBMR_WLFB_1X    | MBMR_TLFB_4X)
 #elif defined (CONFIG_IVMS8_64M)
 /* 128 MBit SDRAM */
-#define CFG_MBMR_8COL  ((CFG_MBMR_PTB << MBMR_PTB_SHIFT)  | \
+#define CONFIG_SYS_MBMR_8COL   ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT)  | \
                         MBMR_AMB_TYPE_1 | MBMR_DSB_1_CYCL | MBMR_G0CLB_A10 |   \
                         MBMR_RLFB_1X    | MBMR_WLFB_1X    | MBMR_TLFB_4X)
 
index a705ac1a8cf799d7de03567181e1402f556c2999..f8c94ec2c2cfa2e4f124ac94a99f2b72de4c607b 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_MPC5xxx         1       /* This is an MPC5xxx CPU */
 #define CONFIG_ICECUBE         1       /* ... on IceCube board */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -44,7 +44,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 
 #ifdef CONFIG_MPC5200  /* MPC5100 PCI is not supported yet. */
 #define CONFIG_PCI_IO_SIZE     0x01000000
 #endif
 
-#define CFG_XLB_PIPELINING     1
+#define CONFIG_SYS_XLB_PIPELINING      1
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_MII             1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 
 #else
 /* USB */
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_USB_STORAGE
-#define CFG_OHCI_BE_CONTROLLER
-#undef CFG_USB_OHCI_BOARD_INIT
-#define CFG_USB_OHCI_CPU_INIT  1
-#define CFG_USB_OHCI_REGS_BASE MPC5XXX_USB
-#define CFG_USB_OHCI_SLOT_NAME "mpc5200"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
+#define CONFIG_SYS_OHCI_BE_CONTROLLER
+#undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  MPC5XXX_USB
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "mpc5200"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
 
 #define        CONFIG_TIMESTAMP                /* Print image info with timestamp */
 
 
 
 #if (TEXT_BASE == 0xFF000000)          /* Boot low with 16 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT16       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT16        1
 #endif
 #if (TEXT_BASE == 0xFF800000)          /* Boot low with  8 MB Flash */
 #if defined(CONFIG_LITE5200B)
-#   error CFG_LOWBOOT08 is incompatible with the Lite5200B
+#   error CONFIG_SYS_LOWBOOT08 is incompatible with the Lite5200B
 #else
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT08       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT08        1
 #endif
 #endif
 
  * IPB Bus clocking configuration.
  */
 #if defined(CONFIG_LITE5200B)
-#define CFG_IPBCLK_EQUALS_XLBCLK       /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK        /* define for 133MHz speed */
 #else
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 #endif
 #endif /* CONFIG_MPC5200 */
 
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 
 /*
  * Flash configuration
  */
 #if defined(CONFIG_LITE5200B)
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_SIZE         0x01000000
-#if !defined(CFG_LOWBOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x01760000 + 0x00800000)
-#else  /* CFG_LOWBOOT */
-#if defined(CFG_LOWBOOT08)
-# error CFG_LOWBOOT08 is incompatible with the Lite5200B
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_SIZE          0x01000000
+#if !defined(CONFIG_SYS_LOWBOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x01760000 + 0x00800000)
+#else  /* CONFIG_SYS_LOWBOOT */
+#if defined(CONFIG_SYS_LOWBOOT08)
+# error CONFIG_SYS_LOWBOOT08 is incompatible with the Lite5200B
 #endif
-#if defined(CFG_LOWBOOT16)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x01060000)
+#if defined(CONFIG_SYS_LOWBOOT16)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x01060000)
 #endif
-#endif /* CFG_LOWBOOT */
+#endif /* CONFIG_SYS_LOWBOOT */
 #else /* !CONFIG_LITE5200B (IceCube)*/
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_SIZE         0x01000000
-#if !defined(CFG_LOWBOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00740000 + 0x00800000)
-#else  /* CFG_LOWBOOT */
-#if defined(CFG_LOWBOOT08)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00040000 + 0x00800000)
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_SIZE          0x01000000
+#if !defined(CONFIG_SYS_LOWBOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00740000 + 0x00800000)
+#else  /* CONFIG_SYS_LOWBOOT */
+#if defined(CONFIG_SYS_LOWBOOT08)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00040000 + 0x00800000)
 #endif
-#if defined(CFG_LOWBOOT16)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00040000)
+#if defined(CONFIG_SYS_LOWBOOT16)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00040000)
 #endif
-#endif /* CFG_LOWBOOT */
+#endif /* CONFIG_SYS_LOWBOOT */
 #endif /* CONFIG_LITE5200B */
-#define CFG_MAX_FLASH_BANKS    2       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of memory banks      */
 
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #undef CONFIG_FLASH_16BIT      /* Flash is 8-bit */
 
 #if defined(CONFIG_LITE5200B)
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_BANKS_LIST   {CFG_CS1_START,CFG_CS0_START}
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_CS1_START,CONFIG_SYS_CS0_START}
 #endif
 
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  * GPIO configuration
  */
 #ifdef CONFIG_MPC5200_DDR
-#define CFG_GPS_PORT_CONFIG    0x90000004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x90000004
 #else
-#define CFG_GPS_PORT_CONFIG    0x10000004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x10000004
 #endif
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
 #if defined(CONFIG_LITE5200B)
-#define CFG_CS1_START          CFG_FLASH_BASE
-#define CFG_CS1_SIZE           CFG_FLASH_SIZE
-#define CFG_CS1_CFG            0x00047800
-#define CFG_CS0_START          (CFG_FLASH_BASE + CFG_FLASH_SIZE)
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
-#define CFG_BOOTCS_START       CFG_CS0_START
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047800
+#define CONFIG_SYS_CS1_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS1_SIZE            CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_CS1_CFG             0x00047800
+#define CONFIG_SYS_CS0_START           (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE)
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_CS0_START
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047800
 #else /* IceCube aka Lite5200 */
 #ifdef CONFIG_MPC5200_DDR
 
-#define CFG_BOOTCS_START       (CFG_CS1_START + CFG_CS1_SIZE)
-#define CFG_BOOTCS_SIZE                0x00800000
-#define CFG_BOOTCS_CFG         0x00047801
-#define CFG_CS1_START          CFG_FLASH_BASE
-#define CFG_CS1_SIZE           0x00800000
-#define CFG_CS1_CFG            0x00047800
+#define CONFIG_SYS_BOOTCS_START        (CONFIG_SYS_CS1_START + CONFIG_SYS_CS1_SIZE)
+#define CONFIG_SYS_BOOTCS_SIZE         0x00800000
+#define CONFIG_SYS_BOOTCS_CFG          0x00047801
+#define CONFIG_SYS_CS1_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS1_SIZE            0x00800000
+#define CONFIG_SYS_CS1_CFG             0x00047800
 
 #else /* !CONFIG_MPC5200_DDR */
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047801
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047801
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 #endif /* CONFIG_MPC5200_DDR */
 #endif /*CONFIG_LITE5200B */
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define        CONFIG_IDE_RESET                /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                                */
-#define CFG_ATA_STRIDE          4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #define CONFIG_ATAPI            1
 
index b457272be3588db50342a910e43a8192215784b1..508b5c8dbe0ea1a6294946c8f2e5c0b74331e49b 100644 (file)
   /* ... with a 33MHz OSC. connected to the SysCLK input */
 #define CONFIG_SYS_CLK_FREQ    33333333
   /* ... with on-chip memory here (4KBytes) */
-#define CFG_OCM_DATA_ADDR 0xF4000000
-#define CFG_OCM_DATA_SIZE 0x00001000
+#define CONFIG_SYS_OCM_DATA_ADDR 0xF4000000
+#define CONFIG_SYS_OCM_DATA_SIZE 0x00001000
   /* Do not set up locked dcache as init ram. */
-#undef CFG_INIT_DCACHE_CS
+#undef CONFIG_SYS_INIT_DCACHE_CS
 
   /* Map the SystemACE chip (CS#1) here. (Must be a multiple of 1Meg) */
 #define CONFIG_SYSTEMACE 1
-#define CFG_SYSTEMACE_BASE 0xf0000000
-#define CFG_SYSTEMACE_WIDTH 8
+#define CONFIG_SYS_SYSTEMACE_BASE 0xf0000000
+#define CONFIG_SYS_SYSTEMACE_WIDTH 8
 #define CONFIG_DOS_PARTITION 1
 
   /* Use the On-Chip-Memory (OCM) as a temporary stack for the startup code. */
-#define CFG_TEMP_STACK_OCM 1
+#define CONFIG_SYS_TEMP_STACK_OCM 1
   /* ... place INIT RAM in the OCM address */
-# define CFG_INIT_RAM_ADDR     CFG_OCM_DATA_ADDR
+# define CONFIG_SYS_INIT_RAM_ADDR      CONFIG_SYS_OCM_DATA_ADDR
   /* ... give it the whole init ram */
-# define CFG_INIT_RAM_END      CFG_OCM_DATA_SIZE
+# define CONFIG_SYS_INIT_RAM_END       CONFIG_SYS_OCM_DATA_SIZE
   /* ... Shave a bit off the end for global data */
-# define CFG_GBL_DATA_SIZE     128
-# define CFG_GBL_DATA_OFFSET   (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+# define CONFIG_SYS_GBL_DATA_SIZE      128
+# define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
   /* ... and place the stack pointer at the top of what's left. */
-# define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
+# define CONFIG_SYS_INIT_SP_OFFSET     CONFIG_SYS_GBL_DATA_OFFSET
 
   /* Enable board_pre_init function */
 #define CONFIG_BOARD_PRE_INIT  1
@@ -72,7 +72,7 @@
   /* Disable call to post_init_f: late init function. */
 #undef CONFIG_POST
   /* Enable DRAM test. */
-#define CFG_DRAM_TEST 1
+#define CONFIG_SYS_DRAM_TEST 1
   /* Enable misc_init_r function. */
 #define CONFIG_MISC_INIT_R 1
 
 #undef CONFIG_ENV_IS_NOWHERE
 
   /* This is the 7bit address of the device, not including P. */
-#define CFG_I2C_EEPROM_ADDR 0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
   /* After the device address, need one more address byte. */
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
   /* The EEPROM is 512 bytes. */
-#define CFG_EEPROM_SIZE 512
+#define CONFIG_SYS_EEPROM_SIZE 512
   /* The EEPROM can do 16byte ( 1 << 4 ) page writes. */
-#define CFG_EEPROM_PAGE_WRITE_BITS 4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
   /* Put the environment in the second half. */
 #define CONFIG_ENV_OFFSET      0x00
 #define CONFIG_ENV_SIZE        512
 
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                1       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER                        /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
-#undef CFG_EXT_SERIAL_CLOCK           /* external serial clock */
-#undef CFG_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* external serial clock */
+#undef CONFIG_SYS_405_UART_ERRATA_59          /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 
 /*-----------------------------------------------------------------------
 #undef CONFIG_PCI_PNP                  /* do pci plug-and-play         */
                                        /* resource configuration       */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x0000 /* PCI Vendor ID: to-do!!!      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000 /* PCI Device ID: to-do!!!      */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * External peripheral base address
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #undef CONFIG_IDE_RESET                /* no reset for ide supported   */
 
-#define CFG_KEY_REG_BASE_ADDR  0xF0100000
-#define CFG_IR_REG_BASE_ADDR   0xF0200000
-#define CFG_FPGA_REG_BASE_ADDR 0xF0300000
+#define CONFIG_SYS_KEY_REG_BASE_ADDR   0xF0100000
+#define CONFIG_SYS_IR_REG_BASE_ADDR    0xF0200000
+#define CONFIG_SYS_FPGA_REG_BASE_ADDR  0xF0300000
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFF80000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFF80000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*
  * Init Memory Controller:
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0               /* FLASH bank #1        */
 
 
index eeb39241d7ee84371acc053645028a0ebeebd9ca..403081d0d2b981b4e62fa2e69099775f3fc61920 100644 (file)
@@ -43,7 +43,7 @@
 #define CONFIG_BOARD_EARLY_INIT_F 1         /* Call board_pre_init     */
 #define CONFIG_MISC_INIT_F       1          /* Call board misc_init_f  */
 #define CONFIG_MISC_INIT_R       1          /* Call board misc_init_r  */
-#undef CFG_DRAM_TEST                        /* Disable-takes long time!*/
+#undef CONFIG_SYS_DRAM_TEST                         /* Disable-takes long time!*/
 #define CONFIG_SYS_CLK_FREQ      66666666   /* external freq to pll    */
 
 #define CONFIG_VERY_BIG_RAM 1
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_SDRAM_BASE        0x00000000    /* _must_ be 0             */
-#define CFG_FLASH_BASE        0xfff80000    /* start of FLASH          */
-#define CFG_MONITOR_BASE       0xfff80000    /* start of monitor       */
-#define CFG_PCI_MEMBASE               0x80000000    /* mapped pci memory       */
-#define CFG_PERIPHERAL_BASE    0xe0000000    /* internal peripherals   */
-#define CFG_ISRAM_BASE        0xc0000000    /* internal SRAM           */
-#define CFG_PCI_BASE          0xd0000000    /* internal PCI regs       */
-
-#define CFG_NVRAM_BASE_ADDR   (CFG_PERIPHERAL_BASE + 0x08000000)
-#define CFG_KAREF_FPGA_BASE   (CFG_PERIPHERAL_BASE + 0x08200000)
-#define CFG_OFEM_FPGA_BASE    (CFG_PERIPHERAL_BASE + 0x08400000)
-#define CFG_BME32_BASE       (CFG_PERIPHERAL_BASE + 0x08500000)
-#define CFG_GPIO_BASE        (CFG_PERIPHERAL_BASE + 0x00000700)
+#define CONFIG_SYS_SDRAM_BASE         0x00000000    /* _must_ be 0             */
+#define CONFIG_SYS_FLASH_BASE         0xfff80000    /* start of FLASH          */
+#define CONFIG_SYS_MONITOR_BASE       0xfff80000    /* start of monitor        */
+#define CONFIG_SYS_PCI_MEMBASE        0x80000000    /* mapped pci memory       */
+#define CONFIG_SYS_PERIPHERAL_BASE    0xe0000000    /* internal peripherals    */
+#define CONFIG_SYS_ISRAM_BASE         0xc0000000    /* internal SRAM           */
+#define CONFIG_SYS_PCI_BASE           0xd0000000    /* internal PCI regs       */
+
+#define CONFIG_SYS_NVRAM_BASE_ADDR   (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
+#define CONFIG_SYS_KAREF_FPGA_BASE   (CONFIG_SYS_PERIPHERAL_BASE + 0x08200000)
+#define CONFIG_SYS_OFEM_FPGA_BASE    (CONFIG_SYS_PERIPHERAL_BASE + 0x08400000)
+#define CONFIG_SYS_BME32_BASE        (CONFIG_SYS_PERIPHERAL_BASE + 0x08500000)
+#define CONFIG_SYS_GPIO_BASE         (CONFIG_SYS_PERIPHERAL_BASE + 0x00000700)
 
 /* Here for completeness */
-#define CFG_OFEMAC_BASE              (CFG_PERIPHERAL_BASE + 0x08600000)
+#define CONFIG_SYS_OFEMAC_BASE       (CONFIG_SYS_PERIPHERAL_BASE + 0x08600000)
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM    1
-#define CFG_OCM_DATA_ADDR     CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR     CFG_ISRAM_BASE /* Initial RAM address    */
-#define CFG_INIT_RAM_END      0x2000        /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE     128           /* num bytes initial data  */
+#define CONFIG_SYS_TEMP_STACK_OCM    1
+#define CONFIG_SYS_OCM_DATA_ADDR     CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR     CONFIG_SYS_ISRAM_BASE /* Initial RAM address      */
+#define CONFIG_SYS_INIT_RAM_END      0x2000         /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE     128            /* num bytes initial data  */
 
-#define CFG_GBL_DATA_OFFSET   (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR    (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET    CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET   (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR    (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET    CONFIG_SYS_POST_WORD_ADDR
 
-#define CFG_MONITOR_LEN              (256 * 1024)   /* Rsrv 256kB for Mon      */
-#define CFG_MALLOC_LEN       (128 * 1024)   /* Rsrv 128kB for malloc   */
+#define CONFIG_SYS_MONITOR_LEN       (256 * 1024)   /* Rsrv 256kB for Mon      */
+#define CONFIG_SYS_MALLOC_LEN        (128 * 1024)   /* Rsrv 128kB for malloc   */
 
 /*-----------------------------------------------------------------------
  * Serial Port
@@ -95,7 +95,7 @@
 #define CONFIG_SERIAL_MULTI   1
 #define CONFIG_BAUDRATE              9600
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
  * The DS1743 code assumes this condition (i.e. -- it assumes the base
  * address for the RTC registers is:
  *
- *     CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE
+ *     CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE
  *
  *----------------------------------------------------------------------*/
-#define CFG_NVRAM_SIZE       (0x2000 - 8)   /* NVRAM size(8k)- RTC regs*/
+#define CONFIG_SYS_NVRAM_SIZE        (0x2000 - 8)   /* NVRAM size(8k)- RTC regs*/
 #define CONFIG_RTC_DS174x     1                     /* DS1743 RTC              */
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS   1                     /* number of banks         */
-#define CFG_MAX_FLASH_SECT    8                     /* sectors per device      */
+#define CONFIG_SYS_MAX_FLASH_BANKS   1              /* number of banks         */
+#define CONFIG_SYS_MAX_FLASH_SECT    8              /* sectors per device      */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT  120000        /* Flash Erase TO (in ms)   */
-#define CFG_FLASH_WRITE_TOUT  500           /* Flash Write TO(in ms)    */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT  120000         /* Flash Erase TO (in ms)   */
+#define CONFIG_SYS_FLASH_WRITE_TOUT  500            /* Flash Write TO(in ms)    */
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C              1              /* I2C hardware support    */
 #undef CONFIG_SOFT_I2C                      /* I2C !bit-banged         */
-#define CFG_I2C_SPEED        400000         /* I2C speed 400kHz        */
-#define CFG_I2C_SLAVE        0x7F           /* I2C slave address       */
-#define CFG_I2C_NOPROBES      {0x69}        /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_SPEED         400000         /* I2C speed 400kHz        */
+#define CONFIG_SYS_I2C_SLAVE         0x7F           /* I2C slave address       */
+#define CONFIG_SYS_I2C_NOPROBES      {0x69}         /* Don't probe these addrs */
 #define CONFIG_I2C_BUS1              1              /* Include i2c bus 1 supp  */
 
 
 #define CONFIG_ENV_OVERWRITE  1                     /* allow env overwrite     */
 
 #define CONFIG_ENV_SIZE              0x1000         /* Size of Env vars        */
-#define CONFIG_ENV_ADDR              (CFG_NVRAM_BASE_ADDR)
+#define CONFIG_ENV_ADDR              (CONFIG_SYS_NVRAM_BASE_ADDR)
 
 #define CONFIG_BOOTDELAY      5                    /* 5 second autoboot */
 
 #define CONFIG_LOADS_ECHO     1                     /* echo on for serial dnld */
-#define CFG_LOADS_BAUD_CHANGE 1                     /* allow baudrate change   */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE 1              /* allow baudrate change   */
 
 /*-----------------------------------------------------------------------
  * Networking
 #define CONFIG_NETMASK       255.255.0.0
 #define CONFIG_ETHADDR       00:00:00:00:00:00 /* No EMAC 0 support    */
 #define CONFIG_ETH1ADDR              00:00:00:00:00:00 /* No EMAC 1 support    */
-#define CFG_RX_ETH_BUFFER     32            /* #eth rx buff & descrs   */
+#define CONFIG_SYS_RX_ETH_BUFFER     32             /* #eth rx buff & descrs   */
 
 
 /*
 
 /* Include auto complete with tabs */
 #define CONFIG_AUTO_COMPLETE 1
-#define CFG_ALT_MEMTEST             1       /* use real memory test     */
+#define CONFIG_SYS_ALT_MEMTEST      1       /* use real memory test     */
 
-#define CFG_LONGHELP                        /* undef to save memory    */
-#define CFG_PROMPT           "KaRefDes=> "  /* Monitor Command Prompt  */
+#define CONFIG_SYS_LONGHELP                         /* undef to save memory    */
+#define CONFIG_SYS_PROMPT            "KaRefDes=> "  /* Monitor Command Prompt  */
 
-#define CFG_HUSH_PARSER               1             /* HUSH for ext'd cli      */
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER        1             /* HUSH for ext'd cli      */
+#define CONFIG_SYS_PROMPT_HUSH_PS2    "> "
 
 
 /*-----------------------------------------------------------------------
  * Console Buffer
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE           1024           /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE            1024           /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE           256            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE            256            /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
                                             /* Print Buffer Size       */
-#define CFG_MAXARGS          16             /* max number of cmd args  */
-#define CFG_BARGSIZE         CFG_CBSIZE     /* Boot Arg Buffer Size    */
+#define CONFIG_SYS_MAXARGS           16             /* max number of cmd args  */
+#define CONFIG_SYS_BARGSIZE          CONFIG_SYS_CBSIZE     /* Boot Arg Buffer Size     */
 
 /*-----------------------------------------------------------------------
  * Memory Test
  *----------------------------------------------------------------------*/
-#define CFG_MEMTEST_START     0x0400000             /* memtest works on        */
-#define CFG_MEMTEST_END              0x0C00000      /* 4 ... 12 MB in DRAM     */
+#define CONFIG_SYS_MEMTEST_START     0x0400000      /* memtest works on        */
+#define CONFIG_SYS_MEMTEST_END       0x0C00000      /* 4 ... 12 MB in DRAM     */
 
 /*-----------------------------------------------------------------------
  * Compact Flash (in true IDE mode)
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 
 #define CONFIG_IDE_RESET               /* reset for ide supported      */
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0000000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_DATA_OFFSET    0x0000   /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0000   /* Offset for normal register accesses*/
-#define CFG_ATA_ALT_OFFSET     0x100000 /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0000000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000   /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000   /* Offset for normal register accesses*/
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x100000 /* Offset for alternate registers */
 
-#define CFG_ATA_STRIDE         2        /* Directly connected CF, needs a stride
+#define CONFIG_SYS_ATA_STRIDE          2        /* Directly connected CF, needs a stride
                                            to get to the correct offset */
 #define CONFIG_DOS_PARTITION  1                     /* Include dos partition   */
 
 #define CONFIG_PCI                          /* include pci support     */
 #define CONFIG_PCI_PNP                      /* do pci plug-and-play    */
 #define CONFIG_PCI_SCAN_SHOW                /* show pci devices        */
-#define CFG_PCI_TARGBASE      (CFG_PCI_MEMBASE)
+#define CONFIG_SYS_PCI_TARGBASE      (CONFIG_SYS_PCI_MEMBASE)
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT                 /* let board init pci target*/
+#define CONFIG_SYS_PCI_TARGET_INIT                  /* let board init pci target*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x17BA      /* Sandburst */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe      /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x17BA       /* Sandburst */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe       /* Whatever */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
 #undef CONFIG_WATCHDOG                      /* watchdog disabled       */
-#define CFG_LOAD_ADDR        0x8000000      /* default load address    */
-#define CFG_EXTBDINFO        1              /* use extended board_info */
+#define CONFIG_SYS_LOAD_ADDR         0x8000000      /* default load address    */
+#define CONFIG_SYS_EXTBDINFO         1              /* use extended board_info */
 
-#define CFG_HZ               100            /* decr freq: 1 ms ticks   */
+#define CONFIG_SYS_HZ                100            /* decr freq: 1 ms ticks   */
 
 
 #endif /* __CONFIG_H */
index 6f99c1b318e71e0591a7fe02d94d01d366fec067..a8299846491e3063d3d5859fdc6db86ee5e5687b 100644 (file)
@@ -81,7 +81,7 @@
 #define CONFIG_MISC_INIT_F     1
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #define        CONFIG_WATCHDOG 1               /* watchdog enabled             */
 
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
  * I2C Configuration
  */
 
-#define CFG_I2C_PICIO_ADDR     0x21    /* PCF8574 IO Expander                  */
-#define CFG_I2C_RTC_ADDR       0x51    /* PCF8563 RTC                          */
+#define CONFIG_SYS_I2C_PICIO_ADDR      0x21    /* PCF8574 IO Expander                  */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51    /* PCF8563 RTC                          */
 
 
 /* List of I2C addresses to be verified by POST */
 
-#define I2C_ADDR_LIST  {CFG_I2C_PICIO_ADDR,    \
-                       CFG_I2C_RTC_ADDR,       \
+#define I2C_ADDR_LIST  {CONFIG_SYS_I2C_PICIO_ADDR,     \
+                       CONFIG_SYS_I2C_RTC_ADDR,        \
                        }
 
 
 #define CONFIG_RTC_PCF8563             /* use Philips PCF8563 RTC      */
 
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII
 
 #if 0
 #if 1
 /* POST support */
 
-#define CONFIG_POST            (CFG_POST_CPU      | \
-                                CFG_POST_RTC      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_RTC       | \
+                                CONFIG_SYS_POST_I2C)
 #endif
 
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x000400000     /* memtest works on     */
-#define CFG_MEMTEST_END                0x002C00000     /* 4 ... 44 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x000400000     /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x002C00000     /* 4 ... 44 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 115200 }
 
-#define CFG_CONSOLE_INFO_QUIET 1
+#define CONFIG_SYS_CONSOLE_INFO_QUIET 1
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     19      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      19      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x40000 /*   Offset   of Environment Sector     */
  * Hardware Information Block
  */
 #if 1
-#define CFG_HWINFO_OFFSET      0x000F0000      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000100      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x4B26500D      /* 'K&P<CR>' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x000F0000      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000100      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x4B26500D      /* 'K&P<CR>' */
 #endif
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if 0 && defined(CONFIG_WATCHDOG)       /* KUP uses external TPS3705 WD */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC00)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC00)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  *
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
-#define CFG_PLPRCR ( (5-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
+#define CONFIG_SYS_PLPRCR ( (5-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF00
-#define CFG_SCCR       (SCCR_TBS | SCCR_EBDF01 |  \
+#define CONFIG_SYS_SCCR        (SCCR_TBS | SCCR_EBDF01 |  \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 /* KUP4K use both slots, SLOT_A as "primary". */
 #define CONFIG_PCMCIA_SLOT_A 1
 
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 #define PCMCIA_SOCKETS_NO 2
 #define PCMCIA_MEM_WIN_NO 8
 #define CONFIG_IDE_LED         1       /* LED   for ide supported      */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         2
-#define CFG_IDE_MAXDEVICE      4
+#define CONFIG_SYS_IDE_MAXBUS          2
+#define CONFIG_SYS_IDE_MAXDEVICE       4
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_IDE1_OFFSET    (4 * CFG_PCMCIA_MEM_SIZE)
+#define CONFIG_SYS_ATA_IDE1_OFFSET     (4 * CONFIG_SYS_PCMCIA_MEM_SIZE)
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_2_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
 
 /*
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 #if   defined(CONFIG_80MHz)
-#define CFG_MAMR_PTA           156
+#define CONFIG_SYS_MAMR_PTA            156
 #elif defined(CONFIG_66MHz)
-#define CFG_MAMR_PTA           129
+#define CONFIG_SYS_MAMR_PTA            129
 #else          /*   50 MHz */
-#define CFG_MAMR_PTA            98
+#define CONFIG_SYS_MAMR_PTA             98
 #endif /*CONFIG_??MHz */
 
 /*
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR 0x400
+#define CONFIG_SYS_MPTPR 0x400
 
 /*
  * MAMR settings for SDRAM
  */
-#define CFG_MAMR 0x80802114
+#define CONFIG_SYS_MAMR 0x80802114
 
 /*
  * Internal Definitions
index a71be0f261baed12b3b161cb7075486ac48183fe..be6dfda6e754ef53fe5dae910bb5c9b5b0e823b9 100644 (file)
 
 #define CONFIG_BOARD_TYPES     1       /* support board types                  */
 
-#define CFG_8XX_FACT           8       /* Multiply by 8                        */
-#define CFG_8XX_XIN            16000000        /* 16 MHz in                    */
+#define CONFIG_SYS_8XX_FACT            8       /* Multiply by 8                        */
+#define CONFIG_SYS_8XX_XIN             16000000        /* 16 MHz in                    */
 
 
-#define MPC8XX_HZ ((CFG_8XX_XIN) * (CFG_8XX_FACT))
+#define MPC8XX_HZ ((CONFIG_SYS_8XX_XIN) * (CONFIG_SYS_8XX_FACT))
 
 /* should ALWAYS define this, measure_gclk in speed.c is unreliable */
 /* in general, we always know this for FADS+new ADS anyway */
@@ -91,7 +91,7 @@
 #define CONFIG_MISC_INIT_F     1
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #define        CONFIG_WATCHDOG         1       /* watchdog enabled             */
 
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
  * I2C Configuration
  */
 
-#define CFG_I2C_PICIO_ADDR     0x21    /* PCF8574 IO Expander                  */
-#define CFG_I2C_RTC_ADDR       0x51    /* PCF8563 RTC                          */
+#define CONFIG_SYS_I2C_PICIO_ADDR      0x21    /* PCF8574 IO Expander                  */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51    /* PCF8563 RTC                          */
 
 
 /* List of I2C addresses to be verified by POST */
 
-#define I2C_ADDR_LIST  {CFG_I2C_PICIO_ADDR,    \
-                       CFG_I2C_RTC_ADDR,       \
+#define I2C_ADDR_LIST  {CONFIG_SYS_I2C_PICIO_ADDR,     \
+                       CONFIG_SYS_I2C_RTC_ADDR,        \
                        }
 
 
 #define CONFIG_RTC_PCF8563             /* use Philips PCF8563 RTC      */
 
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII
 
 #if 0
 #if 1
 /* POST support */
 
-#define CONFIG_POST            (CFG_POST_CPU      | \
-                                CFG_POST_RTC      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_RTC       | \
+                                CONFIG_SYS_POST_I2C)
 #endif
 
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x000400000     /* memtest works on     */
-#define CFG_MEMTEST_END                0x003C00000     /* 4 ... 60 MB in DRAM  */
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
+#define CONFIG_SYS_MEMTEST_START       0x000400000     /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x003C00000     /* 4 ... 60 MB in DRAM  */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 115200 }
 
-#define CFG_CONSOLE_INFO_QUIET 1
+#define CONFIG_SYS_CONSOLE_INFO_QUIET 1
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     19      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      19      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x40000 /*   Offset   of Environment Sector     */
  * Hardware Information Block
  */
 #if 1
-#define CFG_HWINFO_OFFSET      0x000F0000      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000100      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x4B26500D      /* 'K&P<CR>' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x000F0000      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000100      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x4B26500D      /* 'K&P<CR>' */
 #endif
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if 0 && defined(CONFIG_WATCHDOG)       /* KUP uses external TPS3705 WD */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC00)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC00)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * set the PLL, the low-power modes and the reset control (15-29)
  */
-#define CFG_PLPRCR     ((CFG_8XX_FACT << PLPRCR_MFI_SHIFT) |   \
+#define CONFIG_SYS_PLPRCR      ((CONFIG_SYS_8XX_FACT << PLPRCR_MFI_SHIFT) |    \
                                PLPRCR_SPLSS | PLPRCR_TEXPS)
 
 
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF00
-#define CFG_SCCR       (SCCR_TBS | SCCR_EBDF01 |  \
+#define CONFIG_SYS_SCCR        (SCCR_TBS | SCCR_EBDF01 |  \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 /* KUP4K use both slots, SLOT_A as "primary". */
 #define CONFIG_PCMCIA_SLOT_A 1
 
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 #define PCMCIA_SOCKETS_NO 1
 #define PCMCIA_MEM_WIN_NO 8
 #define CONFIG_IDE_LED                 1   /* LED   for ide supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1
-#define CFG_IDE_MAXDEVICE      2
+#define CONFIG_SYS_IDE_MAXBUS          1
+#define CONFIG_SYS_IDE_MAXDEVICE       2
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_IDE1_OFFSET    (4 * CFG_PCMCIA_MEM_SIZE)
+#define CONFIG_SYS_ATA_IDE1_OFFSET     (4 * CONFIG_SYS_PCMCIA_MEM_SIZE)
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_2_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
 
-#define CFG_MPTPR 0x400
+#define CONFIG_SYS_MPTPR 0x400
 
 /*
  * MAMR settings for SDRAM
  */
-#define CFG_MAMR 0x80802114
+#define CONFIG_SYS_MAMR 0x80802114
 
 
 /*
index 8b7b1e1b929e05179055a62216caf15a5d8f1aca..f14d9455d72ca62724dd2588d10a74157fddbc56 100644 (file)
@@ -68,7 +68,7 @@
        "setenv bootargs root=/dev/ram panic=5;bootm 40040000 400A0000"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_DLK)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_DLK)
 
 /*-----------------------------------------------------------------------
  * Clock Setting - Has the Lantec board a 32kHz clock ??? [XXX]
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
                        /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF11
                        /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing */
-#define CFG_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | \
                                 OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR5_REMAP   CFG_OR0_REMAP
-#define CFG_OR5_PRELIM  CFG_OR0_PRELIM
-#define CFG_BR5_PRELIM  ((FLASH_BASE5_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR5_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR5_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR5_PRELIM  ((FLASH_BASE5_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses                                 */
-#define CFG_OR_TIMING_SDRAM     (OR_CSNT_SAM)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_CSNT_SAM)
 
-#define CFG_OR3_PRELIM  (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz       */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL \
-                       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL \
+                       ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |    \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 7f24c4e59f466cb81e0161b84813d880d19cafca..b6226c6fd95b540146c9b7955684d6b4c19eee69 100644 (file)
@@ -39,9 +39,9 @@
 #define CONFIG_M52277EVB       /* M52277EVB board */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG
 
@@ -75,8 +75,8 @@
 
 #define CONFIG_HOSTNAME                M52277EVB
 #define CONFIG_EXTRA_ENV_SETTINGS              \
-       "inpclk=" MK_STR(CFG_INPUT_CLKSRC) "\0" \
-       "loadaddr=" MK_STR(CFG_LOAD_ADDR) "\0"  \
+       "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0"  \
+       "loadaddr=" MK_STR(CONFIG_SYS_LOAD_ADDR) "\0"   \
        "u-boot=u-boot.bin\0"                   \
        "load=tftp ${loadaddr) ${u-boot}\0"     \
        "upd=run load; run prog\0"              \
 #define CONFIG_DOS_PARTITION
 #define CONFIG_MAC_PARTITION
 #define CONFIG_ISO_PARTITION
-#define CFG_USB_EHCI_REGS_BASE         0xFC0B0000
-#define CFG_USB_EHCI_CPU_INIT
+#define CONFIG_SYS_USB_EHCI_REGS_BASE          0xFC0B0000
+#define CONFIG_SYS_USB_EHCI_CPU_INIT
 #endif
 
 /* Realtime clock */
 #define CONFIG_MCFRTC
 #undef RTC_DEBUG
-#define CFG_RTC_OSCILLATOR     (32 * CFG_HZ)
+#define CONFIG_SYS_RTC_OSCILLATOR      (32 * CONFIG_SYS_HZ)
 
 /* Timer */
 #define CONFIG_MCFTMR
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          80000   /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x58000
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000   /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x58000
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 /* Input, PCI, Flexbus, and VCO */
 #define CONFIG_EXTRA_CLOCK
 
-#define CFG_INPUT_CLKSRC       16000000
+#define CONFIG_SYS_INPUT_CLKSRC        16000000
 
 #define CONFIG_PRAM            512     /* 512 KB */
 
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 0x10000)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 0x10000)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_MBAR               0xFC000000
+#define CONFIG_SYS_MBAR                0xFC000000
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x80000000
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x21
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) - 16)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x80000000
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x21
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) - 16)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         64      /* SDRAM size in MB */
-#define CFG_SDRAM_CFG1         0x43711630
-#define CFG_SDRAM_CFG2         0x56670000
-#define CFG_SDRAM_CTRL         0xE1092000
-#define CFG_SDRAM_EMOD         0x81810000
-#define CFG_SDRAM_MODE         0x00CD0000
-
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
-
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          64      /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_CFG1          0x43711630
+#define CONFIG_SYS_SDRAM_CFG2          0x56670000
+#define CONFIG_SYS_SDRAM_CTRL          0xE1092000
+#define CONFIG_SYS_SDRAM_EMOD          0x81810000
+#define CONFIG_SYS_SDRAM_MODE          0x00CD0000
+
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
+
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /* Initial Memory map for Linux */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /* Configuration for environment
  * Environment is embedded in u-boot in the second sector of the flash
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_BASE         CFG_CS0_BASE
-#define CFG_FLASH0_BASE                CFG_CS0_BASE
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x8000)
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_CS0_BASE
+#define CONFIG_SYS_FLASH0_BASE         CONFIG_SYS_CS0_BASE
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x8000)
 #define CONFIG_ENV_SECT_SIZE   0x8000
 
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x1000000       /* Max size that the board might have */
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
-#      define CFG_FLASH_CHECKSUM
+#      define CONFIG_SYS_FLASH_SIZE            0x1000000       /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_CHECKSUM
 #endif
 
 /*
 #ifdef CONFIG_CMD_JFFS2
 #      define CONFIG_JFFS2_DEV         "nor0"
 #      define CONFIG_JFFS2_PART_SIZE   (0x01000000 - 0x40000)
-#      define CONFIG_JFFS2_PART_OFFSET (CFG_FLASH0_BASE + 0x40000)
+#      define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH0_BASE + 0x40000)
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE             16
+#define CONFIG_SYS_CACHELINE_SIZE              16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  * CS5 - Available
  */
 
-#define CFG_CS0_BASE           0x00000000
-#define CFG_CS0_MASK           0x00FF0001
-#define CFG_CS0_CTRL           0x00001FA0
+#define CONFIG_SYS_CS0_BASE            0x00000000
+#define CONFIG_SYS_CS0_MASK            0x00FF0001
+#define CONFIG_SYS_CS0_CTRL            0x00001FA0
 
 #endif                         /* _M52277EVB_H */
index f352db123d2b689e3da5cd30419a4a13fc0de282..e6c87efef0308968cb9db55d318d2ee49a3e0763 100644 (file)
@@ -38,9 +38,9 @@
 #define CONFIG_M5235           /* define processor type */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG
 #define CONFIG_WATCHDOG_TIMEOUT        5000    /* timeout in milliseconds, max timeout is 6.71sec */
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 /* Timer */
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hw support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x00000300
-#define CFG_IMMR               CFG_MBAR
-#define CFG_I2C_PINMUX_REG     (gpio->par_qspi)
-#define CFG_I2C_PINMUX_CLR     ~(GPIO_PAR_FECI2C_SCL_MASK | GPIO_PAR_FECI2C_SDA_MASK)
-#define CFG_I2C_PINMUX_SET     (GPIO_PAR_FECI2C_SCL_I2CSCL | GPIO_PAR_FECI2C_SDA_I2CSDA)
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x00000300
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
+#define CONFIG_SYS_I2C_PINMUX_REG      (gpio->par_qspi)
+#define CONFIG_SYS_I2C_PINMUX_CLR      ~(GPIO_PAR_FECI2C_SCL_MASK | GPIO_PAR_FECI2C_SDA_MASK)
+#define CONFIG_SYS_I2C_PINMUX_SET      (GPIO_PAR_FECI2C_SCL_I2CSCL | GPIO_PAR_FECI2C_SDA_I2CSDA)
 
 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
 #define CONFIG_BOOTDELAY       1       /* autoboot after 5 seconds */
        ""
 
 #define CONFIG_PRAM            512     /* 512 KB */
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_KGDB)
-#      define CFG_CBSIZE               1024    /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE                1024    /* Console I/O Buffer Size */
 #else
-#      define CFG_CBSIZE               256     /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE                256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE+0x20000)
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE+0x20000)
 
-#define CFG_HZ                 1000
-#define CFG_CLK                        75000000
-#define CFG_CPU_CLK            CFG_CLK * 2
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 75000000
+#define CONFIG_SYS_CPU_CLK             CONFIG_SYS_CLK * 2
 
-#define CFG_MBAR               0x40000000
+#define CONFIG_SYS_MBAR                0x40000000
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x10000 /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x21
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE - 0x10)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x10000 /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x21
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE - 0x10)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         16      /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          16      /* SDRAM size in MB */
 
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
 
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
 
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * the maximum mapped by the Linux kernel during initialization ??
  */
 /* Initial Memory map for Linux */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x800000        /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_SIZE            0x800000        /* Max size that the board might have */
 #ifdef NORFLASH_PS32BIT
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_32BIT
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_32BIT
 #else
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
 #endif
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
 #endif
 
-#define CFG_FLASH_BASE         (CFG_CS0_BASE << 16)
+#define CONFIG_SYS_FLASH_BASE          (CONFIG_SYS_CS0_BASE << 16)
 
 /* Configuration for environment
  * Environment is embedded in u-boot in the second sector of the flash
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Chipselect bank definitions
  * CS7 - Available
  */
 #ifdef NORFLASH_PS32BIT
-#      define CFG_CS0_BASE     0xFFC0
-#      define CFG_CS0_MASK     0x003f0001
-#      define CFG_CS0_CTRL     0x1D00
+#      define CONFIG_SYS_CS0_BASE      0xFFC0
+#      define CONFIG_SYS_CS0_MASK      0x003f0001
+#      define CONFIG_SYS_CS0_CTRL      0x1D00
 #else
-#      define CFG_CS0_BASE     0xFFE0
-#      define CFG_CS0_MASK     0x001f0001
-#      define CFG_CS0_CTRL     0x1D80
+#      define CONFIG_SYS_CS0_BASE      0xFFE0
+#      define CONFIG_SYS_CS0_MASK      0x001f0001
+#      define CONFIG_SYS_CS0_CTRL      0x1D80
 #endif
 
 #endif                         /* _M5329EVB_H */
index 4525e2df2fd0b7ad372ab3664ba7eb69930eef0b..8699ef98ee12a96f2f5c52301dbbb4422fc61d2e 100644 (file)
@@ -40,9 +40,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef  CONFIG_WATCHDOG
 
 #include <config_cmd_default.h>
 #undef CONFIG_CMD_NET
 
-#define CFG_PROMPT             "=> "
-#define CFG_LONGHELP                           /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup        */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup        */
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 #define CONFIG_LOOPW           1       /* enable loopw command */
 #define CONFIG_MX_CYCLIC       1       /* enable mdc/mwc commands      */
 
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 /*
  * Clock configuration: enable only one of the following options
  */
 
-#undef  CFG_PLL_BYPASS                         /* bypass PLL for test purpose */
-#define CFG_FAST_CLK           1               /* MCF5249 can run at 140MHz   */
-#define        CFG_CLK                 132025600       /* MCF5249 can run at 140MHz   */
+#undef  CONFIG_SYS_PLL_BYPASS                          /* bypass PLL for test purpose */
+#define CONFIG_SYS_FAST_CLK            1               /* MCF5249 can run at 140MHz   */
+#define        CONFIG_SYS_CLK                  132025600       /* MCF5249 can run at 140MHz   */
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_MBAR               0x10000000      /* Register Base Addrs */
-#define        CFG_MBAR2               0x80000000
+#define CONFIG_SYS_MBAR                0x10000000      /* Register Base Addrs */
+#define        CONFIG_SYS_MBAR2                0x80000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x4000  /* Address of Environment Sector*/
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         16              /* SDRAM size in MB */
-#define CFG_FLASH_BASE         (CFG_CSAR0 << 16)
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          16              /* SDRAM size in MB */
+#define CONFIG_SYS_FLASH_BASE          (CONFIG_SYS_CSAR0 << 16)
 
 #if 0 /* test-only */
 #define CONFIG_PRAM            512 /* test-only for SDRAM problem!!!!!!!!!!!!!!!!!!!! */
 #endif
 
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (1 * 1024*1024) /* Reserve 1 MB for malloc()    */
-#define CFG_BOOTPARAMS_LEN     64*1024
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (1 * 1024*1024) /* Reserve 1 MB for malloc()    */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x1000000       /* Max size that the board might have */
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
-#      define CFG_FLASH_CHECKSUM
-#      define CFG_FLASH_BANKS_LIST     { CFG_FLASH_BASE }
+#      define CONFIG_SYS_FLASH_SIZE            0x1000000       /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_CHECKSUM
+#      define CONFIG_SYS_FLASH_BANKS_LIST      { CONFIG_SYS_FLASH_BASE }
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  */
 
 /* CS0 - AMD Flash, address 0xffc00000 */
-#define        CFG_CSAR0               0xffe0
-#define        CFG_CSCR0               0x1980          /* WS=0110, AA=1, PS=10         */
+#define        CONFIG_SYS_CSAR0                0xffe0
+#define        CONFIG_SYS_CSCR0                0x1980          /* WS=0110, AA=1, PS=10         */
 /** Note: There is a CSMR0/DRAM vector problem, need to disable C/I ***/
-#define        CFG_CSMR0               0x003f0021      /* 4MB, AA=0, WP=0, C/I=1, V=1  */
+#define        CONFIG_SYS_CSMR0                0x003f0021      /* 4MB, AA=0, WP=0, C/I=1, V=1  */
 
 /* CS1 - FPGA, address 0xe0000000 */
-#define        CFG_CSAR1               0xe000
-#define        CFG_CSCR1               0x0d80          /* WS=0011, AA=1, PS=10         */
-#define        CFG_CSMR1               0x00010001      /* 128kB, AA=0, WP=0, C/I=0, V=1*/
+#define        CONFIG_SYS_CSAR1                0xe000
+#define        CONFIG_SYS_CSCR1                0x0d80          /* WS=0011, AA=1, PS=10         */
+#define        CONFIG_SYS_CSMR1                0x00010001      /* 128kB, AA=0, WP=0, C/I=0, V=1*/
 
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define        CFG_GPIO_FUNC           0x00000008      /* Set gpio pins: none          */
-#define        CFG_GPIO1_FUNC          0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54*/
-#define        CFG_GPIO_EN             0x00000008      /* Set gpio output enable       */
-#define        CFG_GPIO1_EN            0x00c70000      /* Set gpio output enable       */
-#define        CFG_GPIO_OUT            0x00000008      /* Set outputs to default state */
-#define        CFG_GPIO1_OUT           0x00c70000      /* Set outputs to default state */
-#define CFG_GPIO1_LED          0x00400000      /* user led                     */
+#define        CONFIG_SYS_GPIO_FUNC            0x00000008      /* Set gpio pins: none          */
+#define        CONFIG_SYS_GPIO1_FUNC           0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54*/
+#define        CONFIG_SYS_GPIO_EN              0x00000008      /* Set gpio output enable       */
+#define        CONFIG_SYS_GPIO1_EN             0x00c70000      /* Set gpio output enable       */
+#define        CONFIG_SYS_GPIO_OUT             0x00000008      /* Set outputs to default state */
+#define        CONFIG_SYS_GPIO1_OUT            0x00c70000      /* Set outputs to default state */
+#define CONFIG_SYS_GPIO1_LED           0x00400000      /* user led                     */
 
 #endif /* M5249 */
index 8d9bfa3dd09beb6b5f81e010f2dc99f9981e5a30..3a5c12faa46f9988aeb24f47af989d502186191d 100644 (file)
@@ -31,9 +31,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG         /* disable watchdog */
 
@@ -47,7 +47,7 @@
 #      define CONFIG_ENV_SECT_SIZE     0x1000
 #      define CONFIG_ENV_IS_IN_FLASH   1
 #else
-#      define CONFIG_ENV_ADDR          (CFG_FLASH_BASE + 0x4000)
+#      define CONFIG_ENV_ADDR          (CONFIG_SYS_FLASH_BASE + 0x4000)
 #      define CONFIG_ENV_SECT_SIZE     0x1000
 #      define CONFIG_ENV_IS_IN_FLASH   1
 #endif
 #      define CONFIG_ATAPI
 #      undef CONFIG_LBA48
 
-#      define CFG_IDE_MAXBUS           1
-#      define CFG_IDE_MAXDEVICE        2
+#      define CONFIG_SYS_IDE_MAXBUS            1
+#      define CONFIG_SYS_IDE_MAXDEVICE 2
 
-#      define CFG_ATA_BASE_ADDR        (CFG_MBAR2 + 0x800)
-#      define CFG_ATA_IDE0_OFFSET      0
+#      define CONFIG_SYS_ATA_BASE_ADDR (CONFIG_SYS_MBAR2 + 0x800)
+#      define CONFIG_SYS_ATA_IDE0_OFFSET       0
 
-#      define CFG_ATA_DATA_OFFSET      0xA0    /* Offset for data I/O */
-#      define CFG_ATA_REG_OFFSET       0xA0    /* Offset for normal register accesses */
-#      define CFG_ATA_ALT_OFFSET       0xC0    /* Offset for alternate registers */
-#      define CFG_ATA_STRIDE           4       /* Interval between registers */
+#      define CONFIG_SYS_ATA_DATA_OFFSET       0xA0    /* Offset for data I/O */
+#      define CONFIG_SYS_ATA_REG_OFFSET        0xA0    /* Offset for normal register accesses */
+#      define CONFIG_SYS_ATA_ALT_OFFSET        0xC0    /* Offset for alternate registers */
+#      define CONFIG_SYS_ATA_STRIDE            4       /* Interval between registers */
 #      define _IO_BASE                 0
 #endif
 
 #define CONFIG_DRIVER_DM9000
 #ifdef CONFIG_DRIVER_DM9000
-#      define CONFIG_DM9000_BASE       ((CFG_CSAR1 << 16) | 0x300)
+#      define CONFIG_DM9000_BASE       ((CONFIG_SYS_CSAR1 << 16) | 0x300)
 #      define DM9000_IO                CONFIG_DM9000_BASE
 #      define DM9000_DATA              (CONFIG_DM9000_BASE + 4)
 #      undef CONFIG_DM9000_DEBUG
 
 #      define CONFIG_EXTRA_ENV_SETTINGS                \
                "netdev=eth0\0"                         \
-               "inpclk=" MK_STR(CFG_INPUT_CLKSRC) "\0" \
+               "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0"  \
                "loadaddr=10000\0"                      \
                "u-boot=u-boot.bin\0"                   \
                "load=tftp ${loadaddr) ${u-boot}\0"     \
 /* I2C */
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hw support */
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x00000280
-#define CFG_IMMR               CFG_MBAR
-#define CFG_I2C_PINMUX_REG     (*(u32 *) (CFG_MBAR+0x19C))
-#define CFG_I2C_PINMUX_CLR     (0xFFFFE7FF)
-#define CFG_I2C_PINMUX_SET     (0)
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x00000280
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
+#define CONFIG_SYS_I2C_PINMUX_REG      (*(u32 *) (CONFIG_SYS_MBAR+0x19C))
+#define CONFIG_SYS_I2C_PINMUX_CLR      (0xFFFFE7FF)
+#define CONFIG_SYS_I2C_PINMUX_SET      (0)
 
-#define CFG_PROMPT             "=> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#      define CFG_CBSIZE               1024    /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE                1024    /* Console I/O Buffer Size */
 #else
-#      define CFG_CBSIZE               256     /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE                256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#undef CFG_PLL_BYPASS          /* bypass PLL for test purpose */
-#define CFG_FAST_CLK
-#ifdef CFG_FAST_CLK
-#      define CFG_PLLCR        0x1243E054
-#      define CFG_CLK          140000000
+#undef CONFIG_SYS_PLL_BYPASS           /* bypass PLL for test purpose */
+#define CONFIG_SYS_FAST_CLK
+#ifdef CONFIG_SYS_FAST_CLK
+#      define CONFIG_SYS_PLLCR 0x1243E054
+#      define CONFIG_SYS_CLK           140000000
 #else
-#      define CFG_PLLCR        0x135a4140
-#      define CFG_CLK          70000000
+#      define CONFIG_SYS_PLLCR 0x135a4140
+#      define CONFIG_SYS_CLK           70000000
 #endif
 
 /*
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_MBAR               0x10000000      /* Register Base Addrs */
-#define CFG_MBAR2              0x80000000      /* Module Base Addrs 2 */
+#define CONFIG_SYS_MBAR                0x10000000      /* Register Base Addrs */
+#define CONFIG_SYS_MBAR2               0x80000000      /* Module Base Addrs 2 */
 
 /*
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x10000 /* End of used area in internal SRAM */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x10000 /* End of used area in internal SRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         16      /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          16      /* SDRAM size in MB */
 
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#      define CFG_MONITOR_BASE 0x20000
+#      define CONFIG_SYS_MONITOR_BASE  0x20000
 #else
-#      define CFG_MONITOR_BASE (CFG_FLASH_BASE + 0x400)
+#      define CONFIG_SYS_MONITOR_BASE  (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
 
-#define CFG_MONITOR_LEN                0x40000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     (64*1024)
+#define CONFIG_SYS_MONITOR_LEN         0x40000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      (64*1024)
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /* FLASH organization */
-#define CFG_FLASH_BASE         (CFG_CSAR0 << 16)
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     2048    /* max number of sectors on one chip */
-#define CFG_FLASH_ERASE_TOUT   1000
+#define CONFIG_SYS_FLASH_BASE          (CONFIG_SYS_CSAR0 << 16)
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      2048    /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    1000
 
 #define FLASH_SST6401B         0x200
 #define SST_ID_xF6401B         0x236D236D
 
-#undef CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#undef CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 /*
  * Unable to use CFI driver, due to incompatible sector erase command by SST.
  * Amd/Atmel use 0x30 for sector erase, SST use 0x50.
  * 0x30 is block erase in SST
  */
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x800000
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
+#      define CONFIG_SYS_FLASH_SIZE            0x800000
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
 #      define CONFIG_FLASH_CFI_LEGACY
 #else
-#      define CFG_SST_SECT             2048
-#      define CFG_SST_SECTSZ           0x1000
-#      define CFG_FLASH_WRITE_TOUT     500
+#      define CONFIG_SYS_SST_SECT              2048
+#      define CONFIG_SYS_SST_SECTSZ            0x1000
+#      define CONFIG_SYS_FLASH_WRITE_TOUT      500
 #endif
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /* Port configuration */
-#define CFG_FECI2C             0xF0
+#define CONFIG_SYS_FECI2C              0xF0
 
-#define CFG_CSAR0              0xFF80
-#define CFG_CSMR0              0x007F0021
-#define CFG_CSCR0              0x1D80
+#define CONFIG_SYS_CSAR0               0xFF80
+#define CONFIG_SYS_CSMR0               0x007F0021
+#define CONFIG_SYS_CSCR0               0x1D80
 
-#define CFG_CSAR1               0xE000
-#define CFG_CSMR1               0x00000001
-#define CFG_CSCR1               0x3DD8
+#define CONFIG_SYS_CSAR1               0xE000
+#define CONFIG_SYS_CSMR1               0x00000001
+#define CONFIG_SYS_CSCR1               0x3DD8
 
-#define CFG_CSAR2              0
-#define CFG_CSMR2              0
-#define CFG_CSCR2              0
+#define CONFIG_SYS_CSAR2               0
+#define CONFIG_SYS_CSMR2               0
+#define CONFIG_SYS_CSCR2               0
 
-#define CFG_CSAR3              0
-#define CFG_CSMR3              0
-#define CFG_CSCR3              0
+#define CONFIG_SYS_CSAR3               0
+#define CONFIG_SYS_CSMR3               0
+#define CONFIG_SYS_CSCR3               0
 
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define CFG_GPIO_FUNC          0x00000008      /* Set gpio pins: none */
-#define CFG_GPIO1_FUNC         0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54 */
-#define CFG_GPIO_EN            0x00000008      /* Set gpio output enable */
-#define CFG_GPIO1_EN           0x00c70000      /* Set gpio output enable */
-#define CFG_GPIO_OUT           0x00000008      /* Set outputs to default state */
-#define CFG_GPIO1_OUT          0x00c70000      /* Set outputs to default state */
-#define CFG_GPIO1_LED          0x00400000      /* user led */
+#define CONFIG_SYS_GPIO_FUNC           0x00000008      /* Set gpio pins: none */
+#define CONFIG_SYS_GPIO1_FUNC          0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54 */
+#define CONFIG_SYS_GPIO_EN             0x00000008      /* Set gpio output enable */
+#define CONFIG_SYS_GPIO1_EN            0x00c70000      /* Set gpio output enable */
+#define CONFIG_SYS_GPIO_OUT            0x00000008      /* Set outputs to default state */
+#define CONFIG_SYS_GPIO1_OUT           0x00c70000      /* Set outputs to default state */
+#define CONFIG_SYS_GPIO1_LED           0x00400000      /* user led */
 
 #endif                         /* _M5253DEMO_H */
index f58f89cfb211cf4eb138f8e744d27962007fc8e5..c2cd62ba702b6d5bdb85526c6e8ae950d6e9b6cc 100644 (file)
@@ -31,9 +31,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG         /* disable watchdog */
 
 #define CONFIG_ATAPI
 #undef CONFIG_LBA48
 
-#define CFG_IDE_MAXBUS         1
-#define CFG_IDE_MAXDEVICE      2
+#define CONFIG_SYS_IDE_MAXBUS          1
+#define CONFIG_SYS_IDE_MAXDEVICE       2
 
-#define CFG_ATA_BASE_ADDR      (CFG_MBAR2 + 0x800)
-#define CFG_ATA_IDE0_OFFSET    0
+#define CONFIG_SYS_ATA_BASE_ADDR       (CONFIG_SYS_MBAR2 + 0x800)
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0
 
-#define CFG_ATA_DATA_OFFSET    0xA0    /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0xA0    /* Offset for normal register accesses */
-#define CFG_ATA_ALT_OFFSET     0xC0    /* Offset for alternate registers */
-#define CFG_ATA_STRIDE         4       /* Interval between registers */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0xA0    /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0xA0    /* Offset for normal register accesses */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0xC0    /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_STRIDE          4       /* Interval between registers */
 #define _IO_BASE               0
 
-#define CFG_PROMPT             "=> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#undef CFG_PLL_BYPASS          /* bypass PLL for test purpose */
-#define CFG_FAST_CLK
-#ifdef CFG_FAST_CLK
-#      define CFG_PLLCR        0x1243E054
-#      define CFG_CLK          140000000
+#undef CONFIG_SYS_PLL_BYPASS           /* bypass PLL for test purpose */
+#define CONFIG_SYS_FAST_CLK
+#ifdef CONFIG_SYS_FAST_CLK
+#      define CONFIG_SYS_PLLCR 0x1243E054
+#      define CONFIG_SYS_CLK           140000000
 #else
-#      define CFG_PLLCR        0x135a4140
-#      define CFG_CLK          70000000
+#      define CONFIG_SYS_PLLCR 0x135a4140
+#      define CONFIG_SYS_CLK           70000000
 #endif
 
 /*
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_MBAR               0x10000000      /* Register Base Addrs */
-#define CFG_MBAR2              0x80000000      /* Module Base Addrs 2 */
+#define CONFIG_SYS_MBAR                0x10000000      /* Register Base Addrs */
+#define CONFIG_SYS_MBAR2               0x80000000      /* Module Base Addrs 2 */
 
 /*
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x10000 /* End of used area in internal SRAM */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x10000 /* End of used area in internal SRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         8       /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          8       /* SDRAM size in MB */
 
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#define CFG_MONITOR_BASE       0x20000
+#define CONFIG_SYS_MONITOR_BASE        0x20000
 #else
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
 
-#define CFG_MONITOR_LEN                0x40000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     (64*1024)
+#define CONFIG_SYS_MONITOR_LEN         0x40000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      (64*1024)
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /* FLASH organization */
-#define CFG_FLASH_BASE         0xffe00000
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     35      /* max number of sectors on one chip */
-#define CFG_FLASH_ERASE_TOUT   1000
+#define CONFIG_SYS_FLASH_BASE          0xffe00000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    1000
 
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_SIZE         0x200000
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_SIZE          0x200000
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /* Port configuration */
-#define CFG_FECI2C             0xF0
+#define CONFIG_SYS_FECI2C              0xF0
 
-#define CFG_CSAR0              0xFFE0
-#define CFG_CSMR0              0x001F0021
-#define CFG_CSCR0              0x1D80
+#define CONFIG_SYS_CSAR0               0xFFE0
+#define CONFIG_SYS_CSMR0               0x001F0021
+#define CONFIG_SYS_CSCR0               0x1D80
 
-#define CFG_CSAR1              0
-#define CFG_CSMR1              0
-#define CFG_CSCR1              0
+#define CONFIG_SYS_CSAR1               0
+#define CONFIG_SYS_CSMR1               0
+#define CONFIG_SYS_CSCR1               0
 
-#define CFG_CSAR2              0
-#define CFG_CSMR2              0
-#define CFG_CSCR2              0
+#define CONFIG_SYS_CSAR2               0
+#define CONFIG_SYS_CSMR2               0
+#define CONFIG_SYS_CSCR2               0
 
-#define CFG_CSAR3              0
-#define CFG_CSMR3              0
-#define CFG_CSCR3              0
+#define CONFIG_SYS_CSAR3               0
+#define CONFIG_SYS_CSMR3               0
+#define CONFIG_SYS_CSCR3               0
 
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define CFG_GPIO_FUNC          0x00000008      /* Set gpio pins: none */
-#define CFG_GPIO1_FUNC         0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54 */
-#define CFG_GPIO_EN            0x00000008      /* Set gpio output enable */
-#define CFG_GPIO1_EN           0x00c70000      /* Set gpio output enable */
-#define CFG_GPIO_OUT           0x00000008      /* Set outputs to default state */
-#define CFG_GPIO1_OUT          0x00c70000      /* Set outputs to default state */
-#define CFG_GPIO1_LED          0x00400000      /* user led */
+#define CONFIG_SYS_GPIO_FUNC           0x00000008      /* Set gpio pins: none */
+#define CONFIG_SYS_GPIO1_FUNC          0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54 */
+#define CONFIG_SYS_GPIO_EN             0x00000008      /* Set gpio output enable */
+#define CONFIG_SYS_GPIO1_EN            0x00c70000      /* Set gpio output enable */
+#define CONFIG_SYS_GPIO_OUT            0x00000008      /* Set outputs to default state */
+#define CONFIG_SYS_GPIO1_OUT           0x00c70000      /* Set outputs to default state */
+#define CONFIG_SYS_GPIO1_LED           0x00400000      /* user led */
 
 #endif                         /* _M5253EVB_H */
index 844b74fb606774f5fb70327a6c0ffce7b59023b1..7ddeb550b617357a797bd2825ff039b8a8a4f8ae 100644 (file)
@@ -41,9 +41,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG         /* disable watchdog */
 
@@ -57,7 +57,7 @@
 #endif
 #define CONFIG_ENV_SECT_SIZE   0x2000
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*
  * BOOTP options
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 /* I2C */
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hw support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x00000300
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x00000300
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 #define CONFIG_BOOTDELAY       1       /* autoboot after 5 seconds */
 #define CONFIG_BOOTFILE                "u-boot.bin"
        "save\0"                                \
        ""
 
-#define CFG_PROMPT             "=> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 1000000
-#define CFG_CLK                        100000000
+#define CONFIG_SYS_HZ                  1000000
+#define CONFIG_SYS_CLK                 100000000
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_MBAR               0x40000000      /* Register Base Addrs */
+#define CONFIG_SYS_MBAR                0x40000000      /* Register Base Addrs */
 
 /*
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         16      /* SDRAM size in MB */
-#define CFG_FLASH_BASE         0xffe00000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          16      /* SDRAM size in MB */
+#define CONFIG_SYS_FLASH_BASE          0xffe00000
 
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#define CFG_MONITOR_BASE       0x20000
+#define CONFIG_SYS_MONITOR_BASE        0x20000
 #else
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
 
-#define CFG_MONITOR_LEN                0x40000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     (64*1024)
+#define CONFIG_SYS_MONITOR_LEN         0x40000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      (64*1024)
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /* FLASH organization */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     11      /* max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT   1000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      11      /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    1000
 
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_SIZE         0x200000
+#define CONFIG_SYS_FLASH_SIZE          0x200000
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /* Port configuration */
-#define CFG_FECI2C             0xF0
+#define CONFIG_SYS_FECI2C              0xF0
 
 #endif                         /* _M5271EVB_H */
index 35f048e4e82bb83ad48880a016e49b5fd96fb468..779d373a5438261e94d50a649ce304dda4fef274 100644 (file)
@@ -39,9 +39,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG
 #define CONFIG_WATCHDOG_TIMEOUT 10000  /* timeout in milliseconds */
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 #ifdef CONFIG_MCFFEC
        "save\0"                                \
        ""
 
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
 
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x20000
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
-#define CFG_HZ                 1000
-#define CFG_CLK                        66000000
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x20000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 66000000
 
 /*
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
  * You should know what you are doing if you make changes here.
  */
-#define CFG_MBAR               0x10000000      /* Register Base Addrs */
-#define CFG_SCR                        0x0003
-#define CFG_SPR                        0xffff
+#define CONFIG_SYS_MBAR                0x10000000      /* Register Base Addrs */
+#define CONFIG_SYS_SCR                 0x0003
+#define CONFIG_SYS_SPR                 0xffff
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         4       /* SDRAM size in MB */
-#define CFG_FLASH_BASE         0xffe00000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          4       /* SDRAM size in MB */
+#define CONFIG_SYS_FLASH_BASE          0xffe00000
 
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#define CFG_MONITOR_BASE       0x20000
+#define CONFIG_SYS_MONITOR_BASE        0x20000
 #else
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     64*1024
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     11      /* max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT   1000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      11      /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    1000
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  */
-#define CFG_BR0_PRELIM         0xFFE00201
-#define CFG_OR0_PRELIM         0xFFE00014
-#define CFG_BR1_PRELIM         0
-#define CFG_OR1_PRELIM         0
-#define CFG_BR2_PRELIM         0x30000001
-#define CFG_OR2_PRELIM         0xFFF80000
-#define CFG_BR3_PRELIM         0
-#define CFG_OR3_PRELIM         0
-#define CFG_BR4_PRELIM         0
-#define CFG_OR4_PRELIM         0
-#define CFG_BR5_PRELIM         0
-#define CFG_OR5_PRELIM         0
-#define CFG_BR6_PRELIM         0
-#define CFG_OR6_PRELIM         0
-#define CFG_BR7_PRELIM         0x00000701
-#define CFG_OR7_PRELIM         0xFFC0007C
+#define CONFIG_SYS_BR0_PRELIM          0xFFE00201
+#define CONFIG_SYS_OR0_PRELIM          0xFFE00014
+#define CONFIG_SYS_BR1_PRELIM          0
+#define CONFIG_SYS_OR1_PRELIM          0
+#define CONFIG_SYS_BR2_PRELIM          0x30000001
+#define CONFIG_SYS_OR2_PRELIM          0xFFF80000
+#define CONFIG_SYS_BR3_PRELIM          0
+#define CONFIG_SYS_OR3_PRELIM          0
+#define CONFIG_SYS_BR4_PRELIM          0
+#define CONFIG_SYS_OR4_PRELIM          0
+#define CONFIG_SYS_BR5_PRELIM          0
+#define CONFIG_SYS_OR5_PRELIM          0
+#define CONFIG_SYS_BR6_PRELIM          0
+#define CONFIG_SYS_OR6_PRELIM          0
+#define CONFIG_SYS_BR7_PRELIM          0x00000701
+#define CONFIG_SYS_OR7_PRELIM          0xFFC0007C
 
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define CFG_PACNT              0x00000000
-#define CFG_PADDR              0x0000
-#define CFG_PADAT              0x0000
-#define CFG_PBCNT              0x55554155      /* Ethernet/UART configuration */
-#define CFG_PBDDR              0x0000
-#define CFG_PBDAT              0x0000
-#define CFG_PDCNT              0x00000000
+#define CONFIG_SYS_PACNT               0x00000000
+#define CONFIG_SYS_PADDR               0x0000
+#define CONFIG_SYS_PADAT               0x0000
+#define CONFIG_SYS_PBCNT               0x55554155      /* Ethernet/UART configuration */
+#define CONFIG_SYS_PBDDR               0x0000
+#define CONFIG_SYS_PBDAT               0x0000
+#define CONFIG_SYS_PDCNT               0x00000000
 #endif                         /* _M5272C3_H */
index b0ef41ec2c8b53a8704c9b166da10ce7066f35b6..1f3539e8343d0c3035b22736073c502e6eafee3d 100644 (file)
@@ -44,9 +44,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 /* Configuration for environment
  * Environment is embedded in u-boot in the second sector of the flash
 #define CONFIG_NET_MULTI       1
 #define CONFIG_MII             1
 #define CONFIG_MII_INIT                1
-#define CFG_DISCOVER_PHY
-#define CFG_RX_ETH_BUFFER      8
-#define CFG_FAULT_ECHO_LINK_DOWN
-#define CFG_FEC0_PINMUX                0
-#define CFG_FEC0_MIIBASE       CFG_FEC0_IOBASE
-#define CFG_FEC1_PINMUX                0
-#define CFG_FEC1_MIIBASE       CFG_FEC1_IOBASE
+#define CONFIG_SYS_DISCOVER_PHY
+#define CONFIG_SYS_RX_ETH_BUFFER       8
+#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#define CONFIG_SYS_FEC0_PINMUX         0
+#define CONFIG_SYS_FEC0_MIIBASE        CONFIG_SYS_FEC0_IOBASE
+#define CONFIG_SYS_FEC1_PINMUX         0
+#define CONFIG_SYS_FEC1_MIIBASE        CONFIG_SYS_FEC1_IOBASE
 #define MCFFEC_TOUT_LOOP       50000
 #define CONFIG_HAS_ETH1
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#ifndef CONFIG_SYS_DISCOVER_PHY
 #define FECDUPLEX              FULL
 #define FECSPEED               _100BASET
 #else
-#ifndef CFG_FAULT_ECHO_LINK_DOWN
-#define CFG_FAULT_ECHO_LINK_DOWN
+#ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #endif
 #endif
 #endif
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hw support */
 #undef CONFIG_SOFT_I2C
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x00000300
-#define CFG_IMMR               CFG_MBAR
-#define CFG_I2C_PINMUX_REG     (gpio_reg->par_feci2c)
-#define CFG_I2C_PINMUX_CLR     (0xFFF0)
-#define CFG_I2C_PINMUX_SET     (0x000F)
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x00000300
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
+#define CONFIG_SYS_I2C_PINMUX_REG      (gpio_reg->par_feci2c)
+#define CONFIG_SYS_I2C_PINMUX_CLR      (0xFFF0)
+#define CONFIG_SYS_I2C_PINMUX_SET      (0x000F)
 
 #ifdef CONFIG_MCFFEC
 #define CONFIG_ETHADDR         00:06:3b:01:41:55
 #define CONFIG_ETH1ADDR                00:0e:0c:bc:e5:60
 #endif
 
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if (CONFIG_CMD_KGDB)
-#      define CFG_CBSIZE       1024
+#      define CONFIG_SYS_CBSIZE        1024
 #else
-#      define CFG_CBSIZE       256
+#      define CONFIG_SYS_CBSIZE        256
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS            16
-#define CFG_BARGSIZE           CFG_CBSIZE
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
 
-#define CFG_LOAD_ADDR          0x800000
+#define CONFIG_SYS_LOAD_ADDR           0x800000
 
 #define CONFIG_BOOTDELAY       5
 #define CONFIG_BOOTCOMMAND     "bootm ffe40000"
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 1000
-#define CFG_CLK                        150000000
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 150000000
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_MBAR               0x40000000
+#define CONFIG_SYS_MBAR                0x40000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x10000 /* End of used area in internal SRAM */
-#define CFG_GBL_DATA_SIZE      1000    /* bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x10000 /* End of used area in internal SRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       1000    /* bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         16      /* SDRAM size in MB */
-#define CFG_FLASH_BASE         0xffe00000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          16      /* SDRAM size in MB */
+#define CONFIG_SYS_FLASH_BASE          0xffe00000
 
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#define CFG_MONITOR_BASE       0x20000
+#define CONFIG_SYS_MONITOR_BASE        0x20000
 #else
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     64*1024
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial mmap for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial mmap for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     11      /* max number of sectors on one chip */
-#define CFG_FLASH_ERASE_TOUT   1000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      11      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    1000
 
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_SIZE         0x200000
+#define CONFIG_SYS_FLASH_SIZE          0x200000
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  */
-#define CFG_AR0_PRELIM         (CFG_FLASH_BASE >> 16)
-#define CFG_CR0_PRELIM         0x1980
-#define CFG_MR0_PRELIM         0x001F0001
+#define CONFIG_SYS_AR0_PRELIM          (CONFIG_SYS_FLASH_BASE >> 16)
+#define CONFIG_SYS_CR0_PRELIM          0x1980
+#define CONFIG_SYS_MR0_PRELIM          0x001F0001
 
-#define CFG_AR1_PRELIM         0x3000
-#define CFG_CR1_PRELIM         0x1900
-#define CFG_MR1_PRELIM         0x00070001
+#define CONFIG_SYS_AR1_PRELIM          0x3000
+#define CONFIG_SYS_CR1_PRELIM          0x1900
+#define CONFIG_SYS_MR1_PRELIM          0x00070001
 
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define CFG_FECI2C             0x0FA0
+#define CONFIG_SYS_FECI2C              0x0FA0
 
 #endif /* _M5275EVB_H */
index 1bc877aa52dc3226bee209397422eae891289dd9..a8a265564d5e3ec0a9264e617d2425f302949f4d 100644 (file)
@@ -39,9 +39,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_MONITOR_IS_IN_RAM        /* define if monitor is started from a pre-loader */
 
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 #define CONFIG_BOOTDELAY       5
        "save\0"                                \
        ""
 
-#define CFG_PROMPT             "-> "
-#define        CFG_LONGHELP            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "-> "
+#define        CONFIG_SYS_LONGHELP             /* undef to save memory         */
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)   /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)      /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          0x20000
+#define CONFIG_SYS_LOAD_ADDR           0x20000
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 1000
-#define        CFG_CLK                 64000000
+#define CONFIG_SYS_HZ                  1000
+#define        CONFIG_SYS_CLK                  64000000
 
 /* PLL Configuration: Ext Clock * 6 (see table 9-4 of MCF user manual) */
 
-#define CFG_MFD                        0x02    /* PLL Multiplication Factor Devider */
-#define CFG_RFD                        0x00    /* PLL Reduce Frecuency Devider */
+#define CONFIG_SYS_MFD                 0x02    /* PLL Multiplication Factor Devider */
+#define CONFIG_SYS_RFD                 0x00    /* PLL Reduce Frecuency Devider */
 
 /*
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
  * You should know what you are doing if you make changes here.
  */
-#define        CFG_MBAR                0x40000000
+#define        CONFIG_SYS_MBAR         0x40000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x10000 /* End of used area in internal SRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x10000 /* End of used area in internal SRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define        CFG_SDRAM_SIZE          16      /* SDRAM size in MB */
-#define CFG_FLASH_BASE         0xffe00000
-#define        CFG_INT_FLASH_BASE      0xf0000000
-#define CFG_INT_FLASH_ENABLE   0x21
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define        CONFIG_SYS_SDRAM_SIZE           16      /* SDRAM size in MB */
+#define CONFIG_SYS_FLASH_BASE          0xffe00000
+#define        CONFIG_SYS_INT_FLASH_BASE       0xf0000000
+#define CONFIG_SYS_INT_FLASH_ENABLE    0x21
 
 /* If M5282 port is fully implemented the monitor base will be behind
  * the vector table. */
-#if (TEXT_BASE != CFG_INT_FLASH_BASE)
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#if (TEXT_BASE != CONFIG_SYS_INT_FLASH_BASE)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #else
-#define CFG_MONITOR_BASE       (TEXT_BASE + 0x418)     /* 24 Byte for CFM-Config */
+#define CONFIG_SYS_MONITOR_BASE        (TEXT_BASE + 0x418)     /* 24 Byte for CFM-Config */
 #endif
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     64*1024
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x1000000       /* Max size that the board might have */
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
-#      define CFG_FLASH_CHECKSUM
-#      define CFG_FLASH_BANKS_LIST     { CFG_FLASH_BASE }
+#      define CONFIG_SYS_FLASH_SIZE            0x1000000       /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_CHECKSUM
+#      define CONFIG_SYS_FLASH_BANKS_LIST      { CONFIG_SYS_FLASH_BASE }
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  */
-#define CFG_CS0_BASE           CFG_FLASH_BASE
-#define CFG_CS0_SIZE           2*1024*1024
-#define CFG_CS0_WIDTH          16
-#define CFG_CS0_RO             0
-#define CFG_CS0_WS             6
+#define CONFIG_SYS_CS0_BASE            CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            2*1024*1024
+#define CONFIG_SYS_CS0_WIDTH           16
+#define CONFIG_SYS_CS0_RO              0
+#define CONFIG_SYS_CS0_WS              6
 /*
-#define CFG_CS3_BASE           0xE0000000
-#define CFG_CS3_SIZE           1*1024*1024
-#define CFG_CS3_WIDTH          16
-#define CFG_CS3_RO             0
-#define CFG_CS3_WS             6
+#define CONFIG_SYS_CS3_BASE            0xE0000000
+#define CONFIG_SYS_CS3_SIZE            1*1024*1024
+#define CONFIG_SYS_CS3_WIDTH           16
+#define CONFIG_SYS_CS3_RO              0
+#define CONFIG_SYS_CS3_WS              6
 */
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define CFG_PACNT              0x0000000       /* Port A D[31:24] */
-#define CFG_PADDR              0x0000000
-#define CFG_PADAT              0x0000000
-
-#define CFG_PBCNT              0x0000000       /* Port B D[23:16] */
-#define CFG_PBDDR              0x0000000
-#define CFG_PBDAT              0x0000000
-
-#define CFG_PCCNT              0x0000000       /* Port C D[15:08] */
-#define CFG_PCDDR              0x0000000
-#define CFG_PCDAT              0x0000000
-
-#define CFG_PDCNT              0x0000000       /* Port D D[07:00] */
-#define CFG_PCDDR              0x0000000
-#define CFG_PCDAT              0x0000000
-
-#define CFG_PEHLPAR            0xC0
-#define CFG_PUAPAR             0x0F    /* UA0..UA3 = Uart 0 +1 */
-#define CFG_DDRUA              0x05
-#define CFG_PJPAR              0xFF
+#define CONFIG_SYS_PACNT               0x0000000       /* Port A D[31:24] */
+#define CONFIG_SYS_PADDR               0x0000000
+#define CONFIG_SYS_PADAT               0x0000000
+
+#define CONFIG_SYS_PBCNT               0x0000000       /* Port B D[23:16] */
+#define CONFIG_SYS_PBDDR               0x0000000
+#define CONFIG_SYS_PBDAT               0x0000000
+
+#define CONFIG_SYS_PCCNT               0x0000000       /* Port C D[15:08] */
+#define CONFIG_SYS_PCDDR               0x0000000
+#define CONFIG_SYS_PCDAT               0x0000000
+
+#define CONFIG_SYS_PDCNT               0x0000000       /* Port D D[07:00] */
+#define CONFIG_SYS_PCDDR               0x0000000
+#define CONFIG_SYS_PCDAT               0x0000000
+
+#define CONFIG_SYS_PEHLPAR             0xC0
+#define CONFIG_SYS_PUAPAR              0x0F    /* UA0..UA3 = Uart 0 +1 */
+#define CONFIG_SYS_DDRUA               0x05
+#define CONFIG_SYS_PJPAR               0xFF
 
 #endif                         /* _CONFIG_M5282EVB_H */
index 3a8e49a88913c141584b8c477a6c77db61c36634..c207947ff61f2c5558c5c48d13356a2fe4483762 100644 (file)
@@ -38,9 +38,9 @@
 #define CONFIG_M5329           /* define processor type */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG
 #define CONFIG_WATCHDOG_TIMEOUT        5000    /* timeout in milliseconds, max timeout is 6.71sec */
 #      define CONFIG_CMD_NAND
 #endif
 
-#define CFG_UNIFY_CACHE
+#define CONFIG_SYS_UNIFY_CACHE
 
 #define CONFIG_MCFFEC
 #ifdef CONFIG_MCFFEC
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 #define CONFIG_MCFRTC
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                        /* I2C with hw support */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x58000
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x58000
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 #define CONFIG_BOOTDELAY       1       /* autoboot after 5 seconds */
 #define CONFIG_UDP_CHECKSUM
        ""
 
 #define CONFIG_PRAM            512     /* 512 KB */
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #ifdef CONFIG_CMD_KGDB
-#      define CFG_CBSIZE       1024    /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        1024    /* Console I/O Buffer Size */
 #else
-#      define CFG_CBSIZE       256     /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x40010000
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x40010000
 
-#define CFG_HZ                 1000
-#define CFG_CLK                        80000000
-#define CFG_CPU_CLK            CFG_CLK * 3
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 80000000
+#define CONFIG_SYS_CPU_CLK             CONFIG_SYS_CLK * 3
 
-#define CFG_MBAR               0xFC000000
+#define CONFIG_SYS_MBAR                0xFC000000
 
-#define CFG_LATCH_ADDR         (CFG_CS1_BASE + 0x80000)
+#define CONFIG_SYS_LATCH_ADDR          (CONFIG_SYS_CS1_BASE + 0x80000)
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x80000000
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x221
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) - 0x10)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x80000000
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x221
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) - 0x10)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         32      /* SDRAM size in MB */
-#define CFG_SDRAM_CFG1         0x53722730
-#define CFG_SDRAM_CFG2         0x56670000
-#define CFG_SDRAM_CTRL         0xE1092000
-#define CFG_SDRAM_EMOD         0x40010000
-#define CFG_SDRAM_MODE         0x018D0000
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          32      /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_CFG1          0x53722730
+#define CONFIG_SYS_SDRAM_CFG2          0x56670000
+#define CONFIG_SYS_SDRAM_CTRL          0xE1092000
+#define CONFIG_SYS_SDRAM_EMOD          0x40010000
+#define CONFIG_SYS_SDRAM_MODE          0x018D0000
 
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
 
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
 
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x800000        /* Max size that the board might have */
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_SIZE            0x800000        /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
 #endif
 
 #ifdef NANDFLASH_SIZE
-#      define CFG_MAX_NAND_DEVICE      1
-#      define CFG_NAND_BASE            CFG_CS2_BASE
-#      define CFG_NAND_SIZE            1
-#      define CFG_NAND_BASE_LIST       { CFG_NAND_BASE }
+#      define CONFIG_SYS_MAX_NAND_DEVICE       1
+#      define CONFIG_SYS_NAND_BASE             CONFIG_SYS_CS2_BASE
+#      define CONFIG_SYS_NAND_SIZE             1
+#      define CONFIG_SYS_NAND_BASE_LIST        { CONFIG_SYS_NAND_BASE }
 #      define NAND_MAX_CHIPS           1
 #      define NAND_ALLOW_ERASE_ALL     1
 #      define CONFIG_JFFS2_NAND        1
 #      define CONFIG_JFFS2_DEV         "nand0"
-#      define CONFIG_JFFS2_PART_SIZE   (CFG_CS2_MASK & ~1)
+#      define CONFIG_JFFS2_PART_SIZE   (CONFIG_SYS_CS2_MASK & ~1)
 #      define CONFIG_JFFS2_PART_OFFSET 0x00000000
 #endif
 
-#define CFG_FLASH_BASE         CFG_CS0_BASE
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_CS0_BASE
 
 /* Configuration for environment
  * Environment is embedded in u-boot in the second sector of the flash
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Chipselect bank definitions
  * CS4 - Available
  * CS5 - Available
  */
-#define CFG_CS0_BASE           0
-#define CFG_CS0_MASK           0x007f0001
-#define CFG_CS0_CTRL           0x00001fa0
+#define CONFIG_SYS_CS0_BASE            0
+#define CONFIG_SYS_CS0_MASK            0x007f0001
+#define CONFIG_SYS_CS0_CTRL            0x00001fa0
 
-#define CFG_CS1_BASE           0x10000000
-#define CFG_CS1_MASK           0x001f0001
-#define CFG_CS1_CTRL           0x002A3780
+#define CONFIG_SYS_CS1_BASE            0x10000000
+#define CONFIG_SYS_CS1_MASK            0x001f0001
+#define CONFIG_SYS_CS1_CTRL            0x002A3780
 
 #ifdef NANDFLASH_SIZE
-#define CFG_CS2_BASE           0x20000000
-#define CFG_CS2_MASK           ((NANDFLASH_SIZE << 20) | 1)
-#define CFG_CS2_CTRL           0x00001f60
+#define CONFIG_SYS_CS2_BASE            0x20000000
+#define CONFIG_SYS_CS2_MASK            ((NANDFLASH_SIZE << 20) | 1)
+#define CONFIG_SYS_CS2_CTRL            0x00001f60
 #endif
 
 #endif                         /* _M5329EVB_H */
index 34698eee37d87c81cc97e997c98b44d04f8e576e..a1bc32a6d85526bd50ccf2d8fae69388b5eb30b3 100644 (file)
@@ -38,9 +38,9 @@
 #define CONFIG_M5373           /* define processor type */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG
 #define CONFIG_WATCHDOG_TIMEOUT        3360    /* timeout in ms, max is 3.36 sec */
 #      define CONFIG_CMD_NAND
 #endif
 
-#define CFG_UNIFY_CACHE
+#define CONFIG_SYS_UNIFY_CACHE
 
 #define CONFIG_MCFFEC
 #ifdef CONFIG_MCFFEC
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 #define CONFIG_MCFRTC
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hw support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x58000
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x58000
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 #define CONFIG_BOOTDELAY       1       /* autoboot after 5 seconds */
 #define CONFIG_UDP_CHECKSUM
 #define CONFIG_HOSTNAME                M5373EVB
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "netdev=eth0\0"                 \
-       "loadaddr=" MK_STR(CFG_LOAD_ADDR) "\0"  \
+       "loadaddr=" MK_STR(CONFIG_SYS_LOAD_ADDR) "\0"   \
        "u-boot=u-boot.bin\0"   \
        "load=tftp ${loadaddr) ${u-boot}\0"     \
        "upd=run load; run prog\0"      \
        ""
 
 #define CONFIG_PRAM            512     /* 512 KB */
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #ifdef CONFIG_CMD_KGDB
-#      define CFG_CBSIZE       1024    /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        1024    /* Console I/O Buffer Size */
 #else
-#      define CFG_CBSIZE       256     /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x40010000
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x40010000
 
-#define CFG_HZ                 1000
-#define CFG_CLK                        80000000
-#define CFG_CPU_CLK            CFG_CLK * 3
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 80000000
+#define CONFIG_SYS_CPU_CLK             CONFIG_SYS_CLK * 3
 
-#define CFG_MBAR               0xFC000000
+#define CONFIG_SYS_MBAR                0xFC000000
 
-#define CFG_LATCH_ADDR         (CFG_CS1_BASE + 0x80000)
+#define CONFIG_SYS_LATCH_ADDR          (CONFIG_SYS_CS1_BASE + 0x80000)
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x80000000
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x221
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) - 0x10)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x80000000
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x221
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) - 0x10)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         32      /* SDRAM size in MB */
-#define CFG_SDRAM_CFG1         0x53722730
-#define CFG_SDRAM_CFG2         0x56670000
-#define CFG_SDRAM_CTRL         0xE1092000
-#define CFG_SDRAM_EMOD         0x40010000
-#define CFG_SDRAM_MODE         0x018D0000
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          32      /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_CFG1          0x53722730
+#define CONFIG_SYS_SDRAM_CFG2          0x56670000
+#define CONFIG_SYS_SDRAM_CTRL          0xE1092000
+#define CONFIG_SYS_SDRAM_EMOD          0x40010000
+#define CONFIG_SYS_SDRAM_MODE          0x018D0000
 
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
 
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
 
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x800000        /* Max size that the board might have */
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_SIZE            0x800000        /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
 #endif
 
 #ifdef NANDFLASH_SIZE
-#      define CFG_MAX_NAND_DEVICE      1
-#      define CFG_NAND_BASE            CFG_CS2_BASE
-#      define CFG_NAND_SIZE            1
-#      define CFG_NAND_BASE_LIST       { CFG_NAND_BASE }
+#      define CONFIG_SYS_MAX_NAND_DEVICE       1
+#      define CONFIG_SYS_NAND_BASE             CONFIG_SYS_CS2_BASE
+#      define CONFIG_SYS_NAND_SIZE             1
+#      define CONFIG_SYS_NAND_BASE_LIST        { CONFIG_SYS_NAND_BASE }
 #      define NAND_MAX_CHIPS           1
 #      define NAND_ALLOW_ERASE_ALL     1
 #      define CONFIG_JFFS2_NAND        1
 #      define CONFIG_JFFS2_DEV         "nand0"
-#      define CONFIG_JFFS2_PART_SIZE   (CFG_CS2_MASK & ~1)
+#      define CONFIG_JFFS2_PART_SIZE   (CONFIG_SYS_CS2_MASK & ~1)
 #      define CONFIG_JFFS2_PART_OFFSET 0x00000000
 #endif
 
-#define CFG_FLASH_BASE         CFG_CS0_BASE
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_CS0_BASE
 
 /* Configuration for environment
  * Environment is embedded in u-boot in the second sector of the flash
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Chipselect bank definitions
  * CS4 - Available
  * CS5 - Available
  */
-#define CFG_CS0_BASE           0
-#define CFG_CS0_MASK           0x007f0001
-#define CFG_CS0_CTRL           0x00001fa0
+#define CONFIG_SYS_CS0_BASE            0
+#define CONFIG_SYS_CS0_MASK            0x007f0001
+#define CONFIG_SYS_CS0_CTRL            0x00001fa0
 
-#define CFG_CS1_BASE           0x10000000
-#define CFG_CS1_MASK           0x001f0001
-#define CFG_CS1_CTRL           0x002A3780
+#define CONFIG_SYS_CS1_BASE            0x10000000
+#define CONFIG_SYS_CS1_MASK            0x001f0001
+#define CONFIG_SYS_CS1_CTRL            0x002A3780
 
 #ifdef NANDFLASH_SIZE
-#define CFG_CS2_BASE           0x20000000
-#define CFG_CS2_MASK           ((NANDFLASH_SIZE << 20) | 1)
-#define CFG_CS2_CTRL           0x00001f60
+#define CONFIG_SYS_CS2_BASE            0x20000000
+#define CONFIG_SYS_CS2_MASK            ((NANDFLASH_SIZE << 20) | 1)
+#define CONFIG_SYS_CS2_CTRL            0x00001f60
 #endif
 
 #endif                         /* _M5373EVB_H */
index 03d21bec4dd9b2f8929ed9a6a5a9785f7d4fcba5..45f701652f16377efa1d5a47292d171302724da3 100644 (file)
@@ -39,9 +39,9 @@
 #define CONFIG_M54451EVB       /* M54451EVB board */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG
 
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX  0
-#      define CFG_FEC0_MIIBASE CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX   0
+#      define CONFIG_SYS_FEC0_MIIBASE  CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP 50000
 
 #      define CONFIG_BOOTDELAY 1       /* autoboot after 5 seconds */
 #      define CONFIG_GATEWAYIP         192.162.1.1
 #      define CONFIG_OVERWRITE_ETHADDR_ONCE
 
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 #define CONFIG_HOSTNAME                M54451EVB
-#ifdef CFG_STMICRO_BOOT
+#ifdef CONFIG_SYS_STMICRO_BOOT
 /* ST Micro serial flash */
-#define        CFG_LOAD_ADDR2          0x40010007
+#define        CONFIG_SYS_LOAD_ADDR2           0x40010007
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        "netdev=eth0\0"                         \
-       "inpclk=" MK_STR(CFG_INPUT_CLKSRC) "\0" \
+       "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0"  \
        "loadaddr=0x40010000\0"                 \
        "sbfhdr=sbfhdr.bin\0"                   \
        "uboot=u-boot.bin\0"                    \
        "load=tftp ${loadaddr} ${sbfhdr};"      \
-       "tftp " MK_STR(CFG_LOAD_ADDR2) " ${uboot} \0"   \
+       "tftp " MK_STR(CONFIG_SYS_LOAD_ADDR2) " ${uboot} \0"    \
        "upd=run load; run prog\0"              \
        "prog=sf probe 0:1 10000 1;"            \
        "sf erase 0 30000;"                     \
        "save\0"                                \
        ""
 #else
-#define CFG_UBOOT_END  0x3FFFF
+#define CONFIG_SYS_UBOOT_END   0x3FFFF
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        "netdev=eth0\0"                         \
-       "inpclk=" MK_STR(CFG_INPUT_CLKSRC) "\0" \
+       "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0"  \
        "loadaddr=40010000\0"                   \
        "u-boot=u-boot.bin\0"                   \
        "load=tftp ${loadaddr) ${u-boot}\0"     \
        "upd=run load; run prog\0"              \
-       "prog=prot off 0 " MK_STR(CFG_UBOOT_END)        \
-       "; era 0 " MK_STR(CFG_UBOOT_END) " ;"   \
+       "prog=prot off 0 " MK_STR(CONFIG_SYS_UBOOT_END) \
+       "; era 0 " MK_STR(CONFIG_SYS_UBOOT_END) " ;"    \
        "cp.b ${loadaddr} 0 ${filesize};"       \
        "save\0"                                \
        ""
 /* Realtime clock */
 #define CONFIG_MCFRTC
 #undef RTC_DEBUG
-#define CFG_RTC_OSCILLATOR     (32 * CFG_HZ)
+#define CONFIG_SYS_RTC_OSCILLATOR      (32 * CONFIG_SYS_HZ)
 
 /* Timer */
 #define CONFIG_MCFTMR
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          80000   /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x58000
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000   /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x58000
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 /* DSPI and Serial Flash */
 #define CONFIG_CF_DSPI
 #define CONFIG_SERIAL_FLASH
 #define CONFIG_HARD_SPI
-#define CFG_SER_FLASH_BASE     0x01000000
-#define CFG_SBFHDR_SIZE                0x7
+#define CONFIG_SYS_SER_FLASH_BASE      0x01000000
+#define CONFIG_SYS_SBFHDR_SIZE         0x7
 #ifdef CONFIG_CMD_SPI
 #      define CONFIG_SPI_FLASH
 #      define CONFIG_SPI_FLASH_STMICRO
 
-#      define CFG_DSPI_DCTAR0          (DSPI_DCTAR_TRSZ(7) | \
+#      define CONFIG_SYS_DSPI_DCTAR0           (DSPI_DCTAR_TRSZ(7) | \
                                         DSPI_DCTAR_CPOL | \
                                         DSPI_DCTAR_CPHA | \
                                         DSPI_DCTAR_PCSSCK_1CLK | \
 
 #define CONFIG_PRAM            2048    /* 2048 KB */
 
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE                     1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE                      1024    /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE                     256     /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE                      256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 0x10000)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 0x10000)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_MBAR               0xFC000000
+#define CONFIG_SYS_MBAR                0xFC000000
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x80000000
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x221
-#define CFG_GBL_DATA_SIZE      256     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) - 32)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
-#define CFG_SBFHDR_DATA_OFFSET (CFG_INIT_RAM_END - 32)
+#define CONFIG_SYS_INIT_RAM_ADDR       0x80000000
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x221
+#define CONFIG_SYS_GBL_DATA_SIZE       256     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) - 32)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
+#define CONFIG_SYS_SBFHDR_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - 32)
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         128     /* SDRAM size in MB */
-#define CFG_SDRAM_CFG1         0x33633F30
-#define CFG_SDRAM_CFG2         0x57670000
-#define CFG_SDRAM_CTRL         0xE20D2C00
-#define CFG_SDRAM_EMOD         0x80810000
-#define CFG_SDRAM_MODE         0x008D0000
-#define CFG_SDRAM_DRV_STRENGTH 0x44
-
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          128     /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_CFG1          0x33633F30
+#define CONFIG_SYS_SDRAM_CFG2          0x57670000
+#define CONFIG_SYS_SDRAM_CTRL          0xE20D2C00
+#define CONFIG_SYS_SDRAM_EMOD          0x80810000
+#define CONFIG_SYS_SDRAM_MODE          0x008D0000
+#define CONFIG_SYS_SDRAM_DRV_STRENGTH  0x44
+
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
 
 #ifdef CONFIG_CF_SBF
-#      define CFG_MONITOR_BASE (TEXT_BASE + 0x400)
+#      define CONFIG_SYS_MONITOR_BASE  (TEXT_BASE + 0x400)
 #else
-#      define CFG_MONITOR_BASE (CFG_FLASH_BASE + 0x400)
+#      define CONFIG_SYS_MONITOR_BASE  (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * the maximum mapped by the Linux kernel during initialization ??
  */
 /* Initial Memory map for Linux */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /* Configuration for environment
  * Environment is embedded in u-boot in the second sector of the flash
 #      define CONFIG_ENV_SECT_SIZE     0x10000
 #else
 #      define CONFIG_ENV_IS_IN_FLASH   1
-#      define CONFIG_ENV_ADDR          (CFG_FLASH_BASE + 0x4000)
+#      define CONFIG_ENV_ADDR          (CONFIG_SYS_FLASH_BASE + 0x4000)
 #      define CONFIG_ENV_SECT_SIZE     0x2000
 #endif
 #undef CONFIG_ENV_OVERWRITE
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#ifdef CFG_STMICRO_BOOT
-#      define CFG_FLASH_BASE           CFG_SER_FLASH_BASE
-#      define CFG_FLASH0_BASE          CFG_SER_FLASH_BASE
-#      define CFG_FLASH1_BASE          CFG_CS0_BASE
+#ifdef CONFIG_SYS_STMICRO_BOOT
+#      define CONFIG_SYS_FLASH_BASE            CONFIG_SYS_SER_FLASH_BASE
+#      define CONFIG_SYS_FLASH0_BASE           CONFIG_SYS_SER_FLASH_BASE
+#      define CONFIG_SYS_FLASH1_BASE           CONFIG_SYS_CS0_BASE
 #endif
-#ifdef CFG_SPANSION_BOOT
-#      define CFG_FLASH_BASE           CFG_CS0_BASE
-#      define CFG_FLASH0_BASE          CFG_CS0_BASE
-#      define CFG_FLASH1_BASE          CFG_SER_FLASH_BASE
+#ifdef CONFIG_SYS_SPANSION_BOOT
+#      define CONFIG_SYS_FLASH_BASE            CONFIG_SYS_CS0_BASE
+#      define CONFIG_SYS_FLASH0_BASE           CONFIG_SYS_CS0_BASE
+#      define CONFIG_SYS_FLASH1_BASE           CONFIG_SYS_SER_FLASH_BASE
 #endif
 
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x1000000       /* Max size that the board might have */
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
-#      define CFG_FLASH_CHECKSUM
-#      define CFG_FLASH_BANKS_LIST     { CFG_CS0_BASE }
+#      define CONFIG_SYS_FLASH_SIZE            0x1000000       /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_CHECKSUM
+#      define CONFIG_SYS_FLASH_BANKS_LIST      { CONFIG_SYS_CS0_BASE }
 
 #endif
 
  * This is setting for JFFS2 support in u-boot.
  * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support.
  */
-#ifdef CFG_SPANSION_BOOT
+#ifdef CONFIG_SYS_SPANSION_BOOT
 #      define CONFIG_JFFS2_DEV         "nor0"
 #      define CONFIG_JFFS2_PART_SIZE   0x01000000
-#      define CONFIG_JFFS2_PART_OFFSET (CFG_FLASH0_BASE + 0x500000)
+#      define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH0_BASE + 0x500000)
 #endif
-#ifdef CFG_STMICRO_BOOT
+#ifdef CONFIG_SYS_STMICRO_BOOT
 #      define CONFIG_JFFS2_DEV         "nor0"
 #      define CONFIG_JFFS2_PART_SIZE   0x01000000
-#      define CONFIG_JFFS2_PART_OFFSET (CFG_FLASH0_BASE + 0x500000)
+#      define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH0_BASE + 0x500000)
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE             16
+#define CONFIG_SYS_CACHELINE_SIZE              16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  */
 
  /* SPANSION Flash */
-#define CFG_CS0_BASE           0x00000000
-#define CFG_CS0_MASK           0x007F0001
-#define CFG_CS0_CTRL           0x00001180
+#define CONFIG_SYS_CS0_BASE            0x00000000
+#define CONFIG_SYS_CS0_MASK            0x007F0001
+#define CONFIG_SYS_CS0_CTRL            0x00001180
 
-#define CFG_SPANSION_BASE      CFG_CS0_BASE
+#define CONFIG_SYS_SPANSION_BASE       CONFIG_SYS_CS0_BASE
 
 #endif                         /* _M54451EVB_H */
index 9513279fed212ece52b0b1b0002f8f9b73acdf06..101dcedeed1cb95d596b120b6de95e5979ac17b3 100644 (file)
@@ -39,9 +39,9 @@
 #define CONFIG_M54455EVB       /* M54455EVB board */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef CONFIG_WATCHDOG
 
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
-
-#      define CFG_FEC0_PINMUX  0
-#      define CFG_FEC1_PINMUX  0
-#      define CFG_FEC0_MIIBASE CFG_FEC0_IOBASE
-#      define CFG_FEC1_MIIBASE CFG_FEC0_IOBASE
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+
+#      define CONFIG_SYS_FEC0_PINMUX   0
+#      define CONFIG_SYS_FEC1_PINMUX   0
+#      define CONFIG_SYS_FEC0_MIIBASE  CONFIG_SYS_FEC0_IOBASE
+#      define CONFIG_SYS_FEC1_MIIBASE  CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP 50000
 #      define CONFIG_HAS_ETH1
 
 #      define CONFIG_GATEWAYIP         192.162.1.1
 #      define CONFIG_OVERWRITE_ETHADDR_ONCE
 
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 #define CONFIG_HOSTNAME                M54455EVB
-#ifdef CFG_STMICRO_BOOT
+#ifdef CONFIG_SYS_STMICRO_BOOT
 /* ST Micro serial flash */
-#define        CFG_LOAD_ADDR2          0x40010013
+#define        CONFIG_SYS_LOAD_ADDR2           0x40010013
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        "netdev=eth0\0"                         \
-       "inpclk=" MK_STR(CFG_INPUT_CLKSRC) "\0" \
+       "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0"  \
        "loadaddr=0x40010000\0"                 \
        "sbfhdr=sbfhdr.bin\0"                   \
        "uboot=u-boot.bin\0"                    \
        "load=tftp ${loadaddr} ${sbfhdr};"      \
-       "tftp " MK_STR(CFG_LOAD_ADDR2) " ${uboot} \0"   \
+       "tftp " MK_STR(CONFIG_SYS_LOAD_ADDR2) " ${uboot} \0"    \
        "upd=run load; run prog\0"              \
        "prog=sf probe 0:1 10000 1;"            \
        "sf erase 0 30000;"                     \
        ""
 #else
 /* Atmel and Intel */
-#ifdef CFG_ATMEL_BOOT
-#      define CFG_UBOOT_END    0x0403FFFF
-#elif defined(CFG_INTEL_BOOT)
-#      define CFG_UBOOT_END    0x3FFFF
+#ifdef CONFIG_SYS_ATMEL_BOOT
+#      define CONFIG_SYS_UBOOT_END     0x0403FFFF
+#elif defined(CONFIG_SYS_INTEL_BOOT)
+#      define CONFIG_SYS_UBOOT_END     0x3FFFF
 #endif
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        "netdev=eth0\0"                         \
-       "inpclk=" MK_STR(CFG_INPUT_CLKSRC) "\0" \
+       "inpclk=" MK_STR(CONFIG_SYS_INPUT_CLKSRC) "\0"  \
        "loadaddr=0x40010000\0"                 \
        "uboot=u-boot.bin\0"                    \
        "load=tftp ${loadaddr} ${uboot}\0"      \
        "upd=run load; run prog\0"              \
-       "prog=prot off " MK_STR(CFG_FLASH_BASE) \
-       " " MK_STR(CFG_UBOOT_END) ";"           \
-       "era " MK_STR(CFG_FLASH_BASE) " "       \
-       MK_STR(CFG_UBOOT_END) ";"               \
-       "cp.b ${loadaddr} " MK_STR(CFG_FLASH_BASE)      \
+       "prog=prot off " MK_STR(CONFIG_SYS_FLASH_BASE)  \
+       " " MK_STR(CONFIG_SYS_UBOOT_END) ";"            \
+       "era " MK_STR(CONFIG_SYS_FLASH_BASE) " "        \
+       MK_STR(CONFIG_SYS_UBOOT_END) ";"                \
+       "cp.b ${loadaddr} " MK_STR(CONFIG_SYS_FLASH_BASE)       \
        " ${filesize}; save\0"                  \
        ""
 #endif
 #define CONFIG_ATAPI
 #undef CONFIG_LBA48
 
-#define CFG_IDE_MAXBUS         1
-#define CFG_IDE_MAXDEVICE      2
+#define CONFIG_SYS_IDE_MAXBUS          1
+#define CONFIG_SYS_IDE_MAXDEVICE       2
 
-#define CFG_ATA_BASE_ADDR      0x90000000
-#define CFG_ATA_IDE0_OFFSET    0
+#define CONFIG_SYS_ATA_BASE_ADDR       0x90000000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0
 
-#define CFG_ATA_DATA_OFFSET    0xA0    /* Offset for data I/O                            */
-#define CFG_ATA_REG_OFFSET     0xA0    /* Offset for normal register accesses */
-#define CFG_ATA_ALT_OFFSET     0xC0    /* Offset for alternate registers           */
-#define CFG_ATA_STRIDE         4       /* Interval between registers                 */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0xA0    /* Offset for data I/O                            */
+#define CONFIG_SYS_ATA_REG_OFFSET      0xA0    /* Offset for normal register accesses */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0xC0    /* Offset for alternate registers           */
+#define CONFIG_SYS_ATA_STRIDE          4       /* Interval between registers                 */
 #define _IO_BASE               0
 
 /* Realtime clock */
 #define CONFIG_MCFRTC
 #undef RTC_DEBUG
-#define CFG_RTC_OSCILLATOR     (32 * CFG_HZ)
+#define CONFIG_SYS_RTC_OSCILLATOR      (32 * CONFIG_SYS_HZ)
 
 /* Timer */
 #define CONFIG_MCFTMR
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          80000   /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x58000
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000   /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x58000
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 /* DSPI and Serial Flash */
 #define CONFIG_CF_DSPI
 #define CONFIG_HARD_SPI
-#define CFG_SER_FLASH_BASE     0x01000000
-#define CFG_SBFHDR_SIZE                0x13
+#define CONFIG_SYS_SER_FLASH_BASE      0x01000000
+#define CONFIG_SYS_SBFHDR_SIZE         0x13
 #ifdef CONFIG_CMD_SPI
 #      define CONFIG_SPI_FLASH
 #      define CONFIG_SPI_FLASH_STMICRO
 
-#      define CFG_DSPI_DCTAR0          (DSPI_DCTAR_TRSZ(7) | \
+#      define CONFIG_SYS_DSPI_DCTAR0           (DSPI_DCTAR_TRSZ(7) | \
                                         DSPI_DCTAR_CPOL | \
                                         DSPI_DCTAR_CPHA | \
                                         DSPI_DCTAR_PCSSCK_1CLK | \
 #define CONFIG_PCI_PNP         1
 #define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE        1
 
-#define CFG_PCI_CACHE_LINE_SIZE        4
+#define CONFIG_SYS_PCI_CACHE_LINE_SIZE 4
 
-#define CFG_PCI_MEM_BUS                0xA0000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BUS
-#define CFG_PCI_MEM_SIZE       0x10000000
+#define CONFIG_SYS_PCI_MEM_BUS         0xA0000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BUS
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000
 
-#define CFG_PCI_IO_BUS         0xB1000000
-#define CFG_PCI_IO_PHYS                CFG_PCI_IO_BUS
-#define CFG_PCI_IO_SIZE                0x01000000
+#define CONFIG_SYS_PCI_IO_BUS          0xB1000000
+#define CONFIG_SYS_PCI_IO_PHYS         CONFIG_SYS_PCI_IO_BUS
+#define CONFIG_SYS_PCI_IO_SIZE         0x01000000
 
-#define CFG_PCI_CFG_BUS                0xB0000000
-#define CFG_PCI_CFG_PHYS       CFG_PCI_CFG_BUS
-#define CFG_PCI_CFG_SIZE       0x01000000
+#define CONFIG_SYS_PCI_CFG_BUS         0xB0000000
+#define CONFIG_SYS_PCI_CFG_PHYS        CONFIG_SYS_PCI_CFG_BUS
+#define CONFIG_SYS_PCI_CFG_SIZE        0x01000000
 #endif
 
 /* FPGA - Spartan 2 */
 /* experiment
-#define CONFIG_FPGA            CFG_SPARTAN3
+#define CONFIG_FPGA            CONFIG_SYS_SPARTAN3
 #define CONFIG_FPGA_COUNT      1
-#define CFG_FPGA_PROG_FEEDBACK
-#define CFG_FPGA_CHECK_CTRLC
+#define CONFIG_SYS_FPGA_PROG_FEEDBACK
+#define CONFIG_SYS_FPGA_CHECK_CTRLC
 */
 
 /* Input, PCI, Flexbus, and VCO */
 
 #define CONFIG_PRAM            2048    /* 2048 KB */
 
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE                     1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE                      1024    /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE                     256     /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE                      256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 0x10000)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 0x10000)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_MBAR               0xFC000000
+#define CONFIG_SYS_MBAR                0xFC000000
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x80000000
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x221
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) - 32)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
-#define CFG_SBFHDR_DATA_OFFSET (CFG_INIT_RAM_END - 32)
+#define CONFIG_SYS_INIT_RAM_ADDR       0x80000000
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x221
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) - 32)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
+#define CONFIG_SYS_SBFHDR_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - 32)
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_BASE1                0x48000000
-#define CFG_SDRAM_SIZE         256     /* SDRAM size in MB */
-#define CFG_SDRAM_CFG1         0x65311610
-#define CFG_SDRAM_CFG2         0x59670000
-#define CFG_SDRAM_CTRL         0xEA0B2000
-#define CFG_SDRAM_EMOD         0x40010000
-#define CFG_SDRAM_MODE         0x00010033
-#define CFG_SDRAM_DRV_STRENGTH 0xAA
-
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_BASE1         0x48000000
+#define CONFIG_SYS_SDRAM_SIZE          256     /* SDRAM size in MB */
+#define CONFIG_SYS_SDRAM_CFG1          0x65311610
+#define CONFIG_SYS_SDRAM_CFG2          0x59670000
+#define CONFIG_SYS_SDRAM_CTRL          0xEA0B2000
+#define CONFIG_SYS_SDRAM_EMOD          0x40010000
+#define CONFIG_SYS_SDRAM_MODE          0x00010033
+#define CONFIG_SYS_SDRAM_DRV_STRENGTH  0xAA
+
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
 
 #ifdef CONFIG_CF_SBF
-#      define CFG_MONITOR_BASE (TEXT_BASE + 0x400)
+#      define CONFIG_SYS_MONITOR_BASE  (TEXT_BASE + 0x400)
 #else
-#      define CFG_MONITOR_BASE (CFG_FLASH_BASE + 0x400)
+#      define CONFIG_SYS_MONITOR_BASE  (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * the maximum mapped by the Linux kernel during initialization ??
  */
 /* Initial Memory map for Linux */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*
  * Configuration for environment
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#ifdef CFG_STMICRO_BOOT
-#      define CFG_FLASH_BASE           CFG_SER_FLASH_BASE
-#      define CFG_FLASH0_BASE          CFG_SER_FLASH_BASE
-#      define CFG_FLASH1_BASE          CFG_CS0_BASE
-#      define CFG_FLASH2_BASE          CFG_CS1_BASE
+#ifdef CONFIG_SYS_STMICRO_BOOT
+#      define CONFIG_SYS_FLASH_BASE            CONFIG_SYS_SER_FLASH_BASE
+#      define CONFIG_SYS_FLASH0_BASE           CONFIG_SYS_SER_FLASH_BASE
+#      define CONFIG_SYS_FLASH1_BASE           CONFIG_SYS_CS0_BASE
+#      define CONFIG_SYS_FLASH2_BASE           CONFIG_SYS_CS1_BASE
 #      define CONFIG_ENV_OFFSET                0x30000
 #      define CONFIG_ENV_SIZE          0x2000
 #      define CONFIG_ENV_SECT_SIZE     0x10000
 #endif
-#ifdef CFG_ATMEL_BOOT
-#      define CFG_FLASH_BASE           CFG_CS0_BASE
-#      define CFG_FLASH0_BASE          CFG_CS0_BASE
-#      define CFG_FLASH1_BASE          CFG_CS1_BASE
-#      define CONFIG_ENV_ADDR          (CFG_FLASH_BASE + 0x4000)
+#ifdef CONFIG_SYS_ATMEL_BOOT
+#      define CONFIG_SYS_FLASH_BASE            CONFIG_SYS_CS0_BASE
+#      define CONFIG_SYS_FLASH0_BASE           CONFIG_SYS_CS0_BASE
+#      define CONFIG_SYS_FLASH1_BASE           CONFIG_SYS_CS1_BASE
+#      define CONFIG_ENV_ADDR          (CONFIG_SYS_FLASH_BASE + 0x4000)
 #      define CONFIG_ENV_SECT_SIZE     0x2000
 #endif
-#ifdef CFG_INTEL_BOOT
-#      define CFG_FLASH_BASE           CFG_CS0_BASE
-#      define CFG_FLASH0_BASE          CFG_CS0_BASE
-#      define CFG_FLASH1_BASE          CFG_CS1_BASE
-#      define CONFIG_ENV_ADDR          (CFG_FLASH_BASE + 0x40000)
+#ifdef CONFIG_SYS_INTEL_BOOT
+#      define CONFIG_SYS_FLASH_BASE            CONFIG_SYS_CS0_BASE
+#      define CONFIG_SYS_FLASH0_BASE           CONFIG_SYS_CS0_BASE
+#      define CONFIG_SYS_FLASH1_BASE           CONFIG_SYS_CS1_BASE
+#      define CONFIG_ENV_ADDR          (CONFIG_SYS_FLASH_BASE + 0x40000)
 #      define CONFIG_ENV_SIZE          0x2000
 #      define CONFIG_ENV_SECT_SIZE     0x20000
 #endif
 
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
 
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_SIZE           0x1000000       /* Max size that the board might have */
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_8BIT
-#      define CFG_MAX_FLASH_BANKS      2       /* max number of memory banks */
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
-#      define CFG_FLASH_CHECKSUM
-#      define CFG_FLASH_BANKS_LIST     { CFG_CS0_BASE, CFG_CS1_BASE }
+#      define CONFIG_SYS_FLASH_SIZE            0x1000000       /* Max size that the board might have */
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_8BIT
+#      define CONFIG_SYS_MAX_FLASH_BANKS       2       /* max number of memory banks */
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_CHECKSUM
+#      define CONFIG_SYS_FLASH_BANKS_LIST      { CONFIG_SYS_CS0_BASE, CONFIG_SYS_CS1_BASE }
 #      define CONFIG_FLASH_CFI_LEGACY
 
 #ifdef CONFIG_FLASH_CFI_LEGACY
-#      define CFG_ATMEL_REGION         4
-#      define CFG_ATMEL_TOTALSECT      11
-#      define CFG_ATMEL_SECT           {1, 2, 1, 7}
-#      define CFG_ATMEL_SECTSZ         {0x4000, 0x2000, 0x8000, 0x10000}
+#      define CONFIG_SYS_ATMEL_REGION          4
+#      define CONFIG_SYS_ATMEL_TOTALSECT       11
+#      define CONFIG_SYS_ATMEL_SECT            {1, 2, 1, 7}
+#      define CONFIG_SYS_ATMEL_SECTSZ          {0x4000, 0x2000, 0x8000, 0x10000}
 #endif
 #endif
 
 #ifdef CF_STMICRO_BOOT
 #      define CONFIG_JFFS2_DEV         "nor1"
 #      define CONFIG_JFFS2_PART_SIZE   0x01000000
-#      define CONFIG_JFFS2_PART_OFFSET (CFG_FLASH2_BASE + 0x500000)
+#      define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH2_BASE + 0x500000)
 #endif
-#ifdef CFG_ATMEL_BOOT
+#ifdef CONFIG_SYS_ATMEL_BOOT
 #      define CONFIG_JFFS2_DEV         "nor1"
 #      define CONFIG_JFFS2_PART_SIZE   0x01000000
-#      define CONFIG_JFFS2_PART_OFFSET (CFG_FLASH1_BASE + 0x500000)
+#      define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH1_BASE + 0x500000)
 #endif
-#ifdef CFG_INTEL_BOOT
+#ifdef CONFIG_SYS_INTEL_BOOT
 #      define CONFIG_JFFS2_DEV         "nor0"
 #      define CONFIG_JFFS2_PART_SIZE   (0x01000000 - 0x500000)
-#      define CONFIG_JFFS2_PART_OFFSET (CFG_FLASH0_BASE + 0x500000)
+#      define CONFIG_JFFS2_PART_OFFSET (CONFIG_SYS_FLASH0_BASE + 0x500000)
 #endif
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE             16
+#define CONFIG_SYS_CACHELINE_SIZE              16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  * CS5 - Available
  */
 
-#if defined(CFG_ATMEL_BOOT) || defined(CFG_STMICRO_BOOT)
+#if defined(CONFIG_SYS_ATMEL_BOOT) || defined(CONFIG_SYS_STMICRO_BOOT)
  /* Atmel Flash */
-#define CFG_CS0_BASE           0x04000000
-#define CFG_CS0_MASK           0x00070001
-#define CFG_CS0_CTRL           0x00001140
+#define CONFIG_SYS_CS0_BASE            0x04000000
+#define CONFIG_SYS_CS0_MASK            0x00070001
+#define CONFIG_SYS_CS0_CTRL            0x00001140
 /* Intel Flash */
-#define CFG_CS1_BASE           0x00000000
-#define CFG_CS1_MASK           0x01FF0001
-#define CFG_CS1_CTRL           0x00000D60
+#define CONFIG_SYS_CS1_BASE            0x00000000
+#define CONFIG_SYS_CS1_MASK            0x01FF0001
+#define CONFIG_SYS_CS1_CTRL            0x00000D60
 
-#define CFG_ATMEL_BASE         CFG_CS0_BASE
+#define CONFIG_SYS_ATMEL_BASE          CONFIG_SYS_CS0_BASE
 #else
 /* Intel Flash */
-#define CFG_CS0_BASE           0x00000000
-#define CFG_CS0_MASK           0x01FF0001
-#define CFG_CS0_CTRL           0x00000D60
+#define CONFIG_SYS_CS0_BASE            0x00000000
+#define CONFIG_SYS_CS0_MASK            0x01FF0001
+#define CONFIG_SYS_CS0_CTRL            0x00000D60
  /* Atmel Flash */
-#define CFG_CS1_BASE           0x04000000
-#define CFG_CS1_MASK           0x00070001
-#define CFG_CS1_CTRL           0x00001140
+#define CONFIG_SYS_CS1_BASE            0x04000000
+#define CONFIG_SYS_CS1_MASK            0x00070001
+#define CONFIG_SYS_CS1_CTRL            0x00001140
 
-#define CFG_ATMEL_BASE         CFG_CS1_BASE
+#define CONFIG_SYS_ATMEL_BASE          CONFIG_SYS_CS1_BASE
 #endif
 
 /* CPLD */
-#define CFG_CS2_BASE           0x08000000
-#define CFG_CS2_MASK           0x00070001
-#define CFG_CS2_CTRL           0x003f1140
+#define CONFIG_SYS_CS2_BASE            0x08000000
+#define CONFIG_SYS_CS2_MASK            0x00070001
+#define CONFIG_SYS_CS2_CTRL            0x003f1140
 
 /* FPGA */
-#define CFG_CS3_BASE           0x09000000
-#define CFG_CS3_MASK           0x00070001
-#define CFG_CS3_CTRL           0x00000020
+#define CONFIG_SYS_CS3_BASE            0x09000000
+#define CONFIG_SYS_CS3_MASK            0x00070001
+#define CONFIG_SYS_CS3_CTRL            0x00000020
 
 #endif                         /* _M54455EVB_H */
index 37b1c603dca67dacf13f4a5f35350433a057911a..e48de15f79a48b3fdcc037f64516f5eefb06e740 100644 (file)
@@ -39,9 +39,9 @@
 #define CONFIG_M5475           /* define processor type */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #define CONFIG_HW_WATCHDOG
 #define CONFIG_WATCHDOG_TIMEOUT        5000    /* timeout in milliseconds, max timeout is 6.71sec */
 #      define CONFIG_MII_INIT          1
 #      define CONFIG_HAS_ETH1
 
-#      define CFG_DMA_USE_INTSRAM      1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        32
-#      define CFG_TX_ETH_BUFFER        48
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DMA_USE_INTSRAM       1
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 32
+#      define CONFIG_SYS_TX_ETH_BUFFER 48
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
-#      define CFG_FEC1_PINMUX          0
-#      define CFG_FEC1_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
+#      define CONFIG_SYS_FEC1_PINMUX           0
+#      define CONFIG_SYS_FEC1_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 
 #      define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 #      define CONFIG_ETH1ADDR  00:e0:0c:bc:e5:61
 #      define CONFIG_PCI_OHCI
 #      define CONFIG_DOS_PARTITION
 
-#      undef CFG_USB_OHCI_BOARD_INIT
-#      undef CFG_USB_OHCI_CPU_INIT
-#      define CFG_USB_OHCI_MAX_ROOT_PORTS      15
-#      define CFG_USB_OHCI_SLOT_NAME           "isp1561"
-#      define CFG_OHCI_SWAP_REG_ACCESS
+#      undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#      undef CONFIG_SYS_USB_OHCI_CPU_INIT
+#      define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS       15
+#      define CONFIG_SYS_USB_OHCI_SLOT_NAME            "isp1561"
+#      define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #endif
 
 /* I2C */
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hw support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x00008F00
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x00008F00
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 /* PCI */
 #ifdef CONFIG_CMD_PCI
 #define CONFIG_PCI_PNP         1
 #define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE        1
 
-#define CFG_PCI_CACHE_LINE_SIZE        8
+#define CONFIG_SYS_PCI_CACHE_LINE_SIZE 8
 
-#define CFG_PCI_MEM_BUS                0x80000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BUS
-#define CFG_PCI_MEM_SIZE       0x10000000
+#define CONFIG_SYS_PCI_MEM_BUS         0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BUS
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000
 
-#define CFG_PCI_IO_BUS         0x71000000
-#define CFG_PCI_IO_PHYS                CFG_PCI_IO_BUS
-#define CFG_PCI_IO_SIZE                0x01000000
+#define CONFIG_SYS_PCI_IO_BUS          0x71000000
+#define CONFIG_SYS_PCI_IO_PHYS         CONFIG_SYS_PCI_IO_BUS
+#define CONFIG_SYS_PCI_IO_SIZE         0x01000000
 
-#define CFG_PCI_CFG_BUS                0x70000000
-#define CFG_PCI_CFG_PHYS       CFG_PCI_CFG_BUS
-#define CFG_PCI_CFG_SIZE       0x01000000
+#define CONFIG_SYS_PCI_CFG_BUS         0x70000000
+#define CONFIG_SYS_PCI_CFG_PHYS        CONFIG_SYS_PCI_CFG_BUS
+#define CONFIG_SYS_PCI_CFG_SIZE        0x01000000
 #endif
 
 #define CONFIG_BOOTDELAY       1       /* autoboot after 5 seconds */
        ""
 
 #define CONFIG_PRAM            512     /* 512 KB */
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #ifdef CONFIG_CMD_KGDB
-#      define CFG_CBSIZE       1024    /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        1024    /* Console I/O Buffer Size */
 #else
-#      define CFG_CBSIZE       256     /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00010000
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00010000
 
-#define CFG_HZ                 1000
-#define CFG_CLK                        CFG_BUSCLK
-#define CFG_CPU_CLK            CFG_CLK * 2
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 CONFIG_SYS_BUSCLK
+#define CONFIG_SYS_CPU_CLK             CONFIG_SYS_CLK * 2
 
-#define CFG_MBAR               0xF0000000
-#define CFG_INTSRAM            (CFG_MBAR + 0x10000)
-#define CFG_INTSRAMSZ          0x8000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_INTSRAM             (CONFIG_SYS_MBAR + 0x10000)
+#define CONFIG_SYS_INTSRAMSZ           0x8000
 
-/*#define CFG_LATCH_ADDR               (CFG_CS1_BASE + 0x80000)*/
+/*#define CONFIG_SYS_LATCH_ADDR                (CONFIG_SYS_CS1_BASE + 0x80000)*/
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0xF2000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x21
-#define CFG_INIT_RAM1_ADDR     (CFG_INIT_RAM_ADDR + CFG_INIT_RAM_END)
-#define CFG_INIT_RAM1_END      0x1000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM1_CTRL     0x21
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) - 0x10)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0xF2000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x21
+#define CONFIG_SYS_INIT_RAM1_ADDR      (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_END)
+#define CONFIG_SYS_INIT_RAM1_END       0x1000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM1_CTRL      0x21
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) - 0x10)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_CFG1         0x73711630
-#define CFG_SDRAM_CFG2         0x46770000
-#define CFG_SDRAM_CTRL         0xE10B0000
-#define CFG_SDRAM_EMOD         0x40010000
-#define CFG_SDRAM_MODE         0x018D0000
-#define CFG_SDRAM_DRVSTRENGTH  0x000002AA
-#ifdef CFG_DRAMSZ1
-#      define CFG_SDRAM_SIZE   (CFG_DRAMSZ + CFG_DRAMSZ1)
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_CFG1          0x73711630
+#define CONFIG_SYS_SDRAM_CFG2          0x46770000
+#define CONFIG_SYS_SDRAM_CTRL          0xE10B0000
+#define CONFIG_SYS_SDRAM_EMOD          0x40010000
+#define CONFIG_SYS_SDRAM_MODE          0x018D0000
+#define CONFIG_SYS_SDRAM_DRVSTRENGTH   0x000002AA
+#ifdef CONFIG_SYS_DRAMSZ1
+#      define CONFIG_SYS_SDRAM_SIZE    (CONFIG_SYS_DRAMSZ + CONFIG_SYS_DRAMSZ1)
 #else
-#      define CFG_SDRAM_SIZE   CFG_DRAMSZ
+#      define CONFIG_SYS_SDRAM_SIZE    CONFIG_SYS_DRAMSZ
 #endif
 
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
 
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
 
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
-#      define CFG_FLASH_BASE           (CFG_CS0_BASE)
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
+#      define CONFIG_SYS_FLASH_BASE            (CONFIG_SYS_CS0_BASE)
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
-#      define CFG_FLASH_USE_BUFFER_WRITE
-#ifdef CFG_NOR1SZ
-#      define CFG_MAX_FLASH_BANKS      2       /* max number of memory banks */
-#      define CFG_FLASH_SIZE           ((CFG_NOR1SZ + CFG_BOOTSZ) << 20)
-#      define CFG_FLASH_BANKS_LIST     { CFG_CS0_BASE, CFG_CS1_BASE }
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_NOR1SZ
+#      define CONFIG_SYS_MAX_FLASH_BANKS       2       /* max number of memory banks */
+#      define CONFIG_SYS_FLASH_SIZE            ((CONFIG_SYS_NOR1SZ + CONFIG_SYS_BOOTSZ) << 20)
+#      define CONFIG_SYS_FLASH_BANKS_LIST      { CONFIG_SYS_CS0_BASE, CONFIG_SYS_CS1_BASE }
 #else
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_FLASH_SIZE           (CFG_BOOTSZ << 20)
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_FLASH_SIZE            (CONFIG_SYS_BOOTSZ << 20)
 #endif
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Chipselect bank definitions
  * CS4 - Available
  * CS5 - Available
  */
-#define CFG_CS0_BASE           0xFF800000
-#define CFG_CS0_MASK           (((CFG_BOOTSZ << 20) - 1) & 0xFFFF0001)
-#define CFG_CS0_CTRL           0x00101980
-
-#ifdef CFG_NOR1SZ
-#define CFG_CS1_BASE           0xE0000000
-#define CFG_CS1_MASK           (((CFG_NOR1SZ << 20) - 1) & 0xFFFF0001)
-#define CFG_CS1_CTRL           0x00101D80
+#define CONFIG_SYS_CS0_BASE            0xFF800000
+#define CONFIG_SYS_CS0_MASK            (((CONFIG_SYS_BOOTSZ << 20) - 1) & 0xFFFF0001)
+#define CONFIG_SYS_CS0_CTRL            0x00101980
+
+#ifdef CONFIG_SYS_NOR1SZ
+#define CONFIG_SYS_CS1_BASE            0xE0000000
+#define CONFIG_SYS_CS1_MASK            (((CONFIG_SYS_NOR1SZ << 20) - 1) & 0xFFFF0001)
+#define CONFIG_SYS_CS1_CTRL            0x00101D80
 #endif
 
 #endif                         /* _M5475EVB_H */
index 482136e1149d161b40f197e6bd2c583c8ba420c3..28bf0adcf3f9afd09f900b407284e50a72aef739 100644 (file)
@@ -39,9 +39,9 @@
 #define CONFIG_M5485           /* define processor type */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #define CONFIG_HW_WATCHDOG
 #define CONFIG_WATCHDOG_TIMEOUT        5000    /* timeout in milliseconds, max timeout is 6.71sec */
 #      define CONFIG_MII_INIT          1
 #      define CONFIG_HAS_ETH1
 
-#      define CFG_DMA_USE_INTSRAM      1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        32
-#      define CFG_TX_ETH_BUFFER        48
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DMA_USE_INTSRAM       1
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 32
+#      define CONFIG_SYS_TX_ETH_BUFFER 48
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
-#      define CFG_FEC1_PINMUX          0
-#      define CFG_FEC1_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
+#      define CONFIG_SYS_FEC1_PINMUX           0
+#      define CONFIG_SYS_FEC1_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 
 #      define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 #      define CONFIG_ETH1ADDR  00:e0:0c:bc:e5:61
 #              define CONFIG_CMD_PCI
 #      endif
 /*#    define CONFIG_PCI_OHCI*/
-#      define CFG_USB_OHCI_REGS_BASE           0x80041000
-#      define CFG_USB_OHCI_MAX_ROOT_PORTS      15
-#      define CFG_USB_OHCI_SLOT_NAME           "isp1561"
-#      define CFG_OHCI_SWAP_REG_ACCESS
+#      define CONFIG_SYS_USB_OHCI_REGS_BASE            0x80041000
+#      define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS       15
+#      define CONFIG_SYS_USB_OHCI_SLOT_NAME            "isp1561"
+#      define CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 #endif
 
 /* I2C */
 #define CONFIG_FSL_I2C
 #define CONFIG_HARD_I2C                /* I2C with hw support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          80000
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x00008F00
-#define CFG_IMMR               CFG_MBAR
+#define CONFIG_SYS_I2C_SPEED           80000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x00008F00
+#define CONFIG_SYS_IMMR                CONFIG_SYS_MBAR
 
 /* PCI */
 #ifdef CONFIG_CMD_PCI
 #define CONFIG_PCI_PNP         1
 #define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE        1
 
-#define CFG_PCI_MEM_BUS                0x80000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BUS
-#define CFG_PCI_MEM_SIZE       0x10000000
+#define CONFIG_SYS_PCI_MEM_BUS         0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BUS
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000
 
-#define CFG_PCI_IO_BUS         0x71000000
-#define CFG_PCI_IO_PHYS                CFG_PCI_IO_BUS
-#define CFG_PCI_IO_SIZE                0x01000000
+#define CONFIG_SYS_PCI_IO_BUS          0x71000000
+#define CONFIG_SYS_PCI_IO_PHYS         CONFIG_SYS_PCI_IO_BUS
+#define CONFIG_SYS_PCI_IO_SIZE         0x01000000
 
-#define CFG_PCI_CFG_BUS                0x70000000
-#define CFG_PCI_CFG_PHYS       CFG_PCI_CFG_BUS
-#define CFG_PCI_CFG_SIZE       0x01000000
+#define CONFIG_SYS_PCI_CFG_BUS         0x70000000
+#define CONFIG_SYS_PCI_CFG_PHYS        CONFIG_SYS_PCI_CFG_BUS
+#define CONFIG_SYS_PCI_CFG_SIZE        0x01000000
 #endif
 
 #define CONFIG_BOOTDELAY       1       /* autoboot after 5 seconds */
        ""
 
 #define CONFIG_PRAM            512     /* 512 KB */
-#define CFG_PROMPT             "-> "
-#define CFG_LONGHELP           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "-> "
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
 
 #ifdef CONFIG_CMD_KGDB
-#      define CFG_CBSIZE       1024    /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        1024    /* Console I/O Buffer Size */
 #else
-#      define CFG_CBSIZE       256     /* Console I/O Buffer Size */
+#      define CONFIG_SYS_CBSIZE        256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00010000
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00010000
 
-#define CFG_HZ                 1000
-#define CFG_CLK                        CFG_BUSCLK
-#define CFG_CPU_CLK            CFG_CLK * 2
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 CONFIG_SYS_BUSCLK
+#define CONFIG_SYS_CPU_CLK             CONFIG_SYS_CLK * 2
 
-#define CFG_MBAR               0xF0000000
-#define CFG_INTSRAM            (CFG_MBAR + 0x10000)
-#define CFG_INTSRAMSZ          0x8000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_INTSRAM             (CONFIG_SYS_MBAR + 0x10000)
+#define CONFIG_SYS_INTSRAMSZ           0x8000
 
-/*#define CFG_LATCH_ADDR               (CFG_CS1_BASE + 0x80000)*/
+/*#define CONFIG_SYS_LATCH_ADDR                (CONFIG_SYS_CS1_BASE + 0x80000)*/
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0xF2000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM_CTRL      0x21
-#define CFG_INIT_RAM1_ADDR     (CFG_INIT_RAM_ADDR + CFG_INIT_RAM_END)
-#define CFG_INIT_RAM1_END      0x1000  /* End of used area in internal SRAM */
-#define CFG_INIT_RAM1_CTRL     0x21
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) - 0x10)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0xF2000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM_CTRL       0x21
+#define CONFIG_SYS_INIT_RAM1_ADDR      (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_END)
+#define CONFIG_SYS_INIT_RAM1_END       0x1000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_INIT_RAM1_CTRL      0x21
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) - 0x10)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_CFG1         0x73711630
-#define CFG_SDRAM_CFG2         0x46770000
-#define CFG_SDRAM_CTRL         0xE10B0000
-#define CFG_SDRAM_EMOD         0x40010000
-#define CFG_SDRAM_MODE         0x018D0000
-#define CFG_SDRAM_DRVSTRENGTH  0x000002AA
-#ifdef CFG_DRAMSZ1
-#      define CFG_SDRAM_SIZE   (CFG_DRAMSZ + CFG_DRAMSZ1)
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_CFG1          0x73711630
+#define CONFIG_SYS_SDRAM_CFG2          0x46770000
+#define CONFIG_SYS_SDRAM_CTRL          0xE10B0000
+#define CONFIG_SYS_SDRAM_EMOD          0x40010000
+#define CONFIG_SYS_SDRAM_MODE          0x018D0000
+#define CONFIG_SYS_SDRAM_DRVSTRENGTH   0x000002AA
+#ifdef CONFIG_SYS_DRAMSZ1
+#      define CONFIG_SYS_SDRAM_SIZE    (CONFIG_SYS_DRAMSZ + CONFIG_SYS_DRAMSZ1)
 #else
-#      define CFG_SDRAM_SIZE   CFG_DRAMSZ
+#      define CONFIG_SYS_SDRAM_SIZE    CONFIG_SYS_DRAMSZ
 #endif
 
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE + 0x400
-#define CFG_MEMTEST_END                ((CFG_SDRAM_SIZE - 3) << 20)
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE + 0x400
+#define CONFIG_SYS_MEMTEST_END         ((CONFIG_SYS_SDRAM_SIZE - 3) << 20)
 
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
 
-#define CFG_BOOTPARAMS_LEN     64*1024
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI
-#ifdef CFG_FLASH_CFI
-#      define CFG_FLASH_BASE           (CFG_CS0_BASE)
+#define CONFIG_SYS_FLASH_CFI
+#ifdef CONFIG_SYS_FLASH_CFI
+#      define CONFIG_SYS_FLASH_BASE            (CONFIG_SYS_CS0_BASE)
 #      define CONFIG_FLASH_CFI_DRIVER  1
-#      define CFG_FLASH_CFI_WIDTH      FLASH_CFI_16BIT
-#      define CFG_MAX_FLASH_SECT       137     /* max number of sectors on one chip */
-#      define CFG_FLASH_PROTECTION     /* "Real" (hardware) sectors protection */
-#      define CFG_FLASH_USE_BUFFER_WRITE
-#ifdef CFG_NOR1SZ
-#      define CFG_MAX_FLASH_BANKS      2       /* max number of memory banks */
-#      define CFG_FLASH_SIZE           ((CFG_NOR1SZ + CFG_BOOTSZ) << 20)
-#      define CFG_FLASH_BANKS_LIST     { CFG_CS0_BASE, CFG_CS1_BASE }
+#      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
+#      define CONFIG_SYS_MAX_FLASH_SECT        137     /* max number of sectors on one chip */
+#      define CONFIG_SYS_FLASH_PROTECTION      /* "Real" (hardware) sectors protection */
+#      define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+#ifdef CONFIG_SYS_NOR1SZ
+#      define CONFIG_SYS_MAX_FLASH_BANKS       2       /* max number of memory banks */
+#      define CONFIG_SYS_FLASH_SIZE            ((CONFIG_SYS_NOR1SZ + CONFIG_SYS_BOOTSZ) << 20)
+#      define CONFIG_SYS_FLASH_BANKS_LIST      { CONFIG_SYS_CS0_BASE, CONFIG_SYS_CS1_BASE }
 #else
-#      define CFG_MAX_FLASH_BANKS      1       /* max number of memory banks */
-#      define CFG_FLASH_SIZE           (CFG_BOOTSZ << 20)
+#      define CONFIG_SYS_MAX_FLASH_BANKS       1       /* max number of memory banks */
+#      define CONFIG_SYS_FLASH_SIZE            (CONFIG_SYS_BOOTSZ << 20)
 #endif
 #endif
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Chipselect bank definitions
  * CS4 - Available
  * CS5 - Available
  */
-#define CFG_CS0_BASE           0xFF800000
-#define CFG_CS0_MASK           (((CFG_BOOTSZ << 20) - 1) & 0xFFFF0001)
-#define CFG_CS0_CTRL           0x00101980
-
-#ifdef CFG_NOR1SZ
-#define CFG_CS1_BASE           0xE0000000
-#define CFG_CS1_MASK           (((CFG_NOR1SZ << 20) - 1) & 0xFFFF0001)
-#define CFG_CS1_CTRL           0x00101D80
+#define CONFIG_SYS_CS0_BASE            0xFF800000
+#define CONFIG_SYS_CS0_MASK            (((CONFIG_SYS_BOOTSZ << 20) - 1) & 0xFFFF0001)
+#define CONFIG_SYS_CS0_CTRL            0x00101980
+
+#ifdef CONFIG_SYS_NOR1SZ
+#define CONFIG_SYS_CS1_BASE            0xE0000000
+#define CONFIG_SYS_CS1_MASK            (((CONFIG_SYS_NOR1SZ << 20) - 1) & 0xFFFF0001)
+#define CONFIG_SYS_CS1_CTRL            0x00101D80
 #endif
 
 #endif                         /* _M5485EVB_H */
index fed4d7399d27fd9a82060aedd7d50f58d43443f9..5f7c7a8e4f124f57a3631ee71bb6ceddcb66de54 100644 (file)
@@ -67,7 +67,7 @@
                                "nfsaddrs=10.0.0.99:10.0.0.2"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE   /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE   /* don't allow baudrate change   */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
-#undef CFG_HUSH_PARSER                 /* Hush parse for U-Boot        */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
+#undef CONFIG_SYS_HUSH_PARSER                  /* Hush parse for U-Boot        */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Physical memory map as defined by the MBX PGM
  */
-#define CFG_IMMR               0xFA200000 /* Internal Memory Mapped Register*/
-#define CFG_NVRAM_BASE         0xFA000000 /* NVRAM                          */
-#define CFG_NVRAM_OR           0xffe00000 /* w/o speed dependent flags!!    */
-#define CFG_CSR_BASE           0xFA100000 /* Control/Status Registers       */
-#define CFG_PCIMEM_BASE                0x80000000 /* PCI I/O and Memory Spaces      */
-#define CFG_PCIMEM_OR          0xA0000108
-#define CFG_PCIBRIDGE_BASE     0xFA210000 /* PCI-Bus Bridge Registers       */
-#define CFG_PCIBRIDGE_OR       0xFFFF0108
+#define CONFIG_SYS_IMMR                0xFA200000 /* Internal Memory Mapped Register*/
+#define CONFIG_SYS_NVRAM_BASE          0xFA000000 /* NVRAM                          */
+#define CONFIG_SYS_NVRAM_OR            0xffe00000 /* w/o speed dependent flags!!    */
+#define CONFIG_SYS_CSR_BASE            0xFA100000 /* Control/Status Registers       */
+#define CONFIG_SYS_PCIMEM_BASE         0x80000000 /* PCI I/O and Memory Spaces      */
+#define CONFIG_SYS_PCIMEM_OR           0xA0000108
+#define CONFIG_SYS_PCIBRIDGE_BASE      0xFA210000 /* PCI-Bus Bridge Registers       */
+#define CONFIG_SYS_PCIBRIDGE_OR        0xFFFF0108
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2f00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_VPD_SIZE      256 /* size in bytes reserved for vpd buffer */
-#define CFG_INIT_VPD_OFFSET    (CFG_GBL_DATA_OFFSET - CFG_INIT_VPD_SIZE)
-#define CFG_INIT_SP_OFFSET     (CFG_INIT_VPD_OFFSET-8)
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2f00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_VPD_SIZE       256 /* size in bytes reserved for vpd buffer */
+#define CONFIG_SYS_INIT_VPD_OFFSET     (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_INIT_VPD_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_INIT_VPD_OFFSET-8)
 
 /*-----------------------------------------------------------------------
  * Offset in DPMEM where we keep the VPD data
  */
-#define CFG_DPRAMVPD           (CFG_INIT_VPD_OFFSET - 0x2000)
+#define CONFIG_SYS_DPRAMVPD            (CONFIG_SYS_INIT_VPD_OFFSET - 0x2000)
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xfe000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xfe000000
 #ifdef DEBUG
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 #endif
-#undef CFG_MONITOR_BASE        /* 0x200000        to run U-Boot from RAM */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#undef CONFIG_SYS_MONITOR_BASE /* 0x200000        to run U-Boot from RAM */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     16      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      16      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * NVRAM Configuration
  * access the NVRAM at the offset 0x1000.
  */
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* turn on NVRAM env feature */
-#define CONFIG_ENV_ADDR                (CFG_NVRAM_BASE + 0x1000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_NVRAM_BASE + 0x1000)
 #define CONFIG_ENV_SIZE                0x1000
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-/* #define CFG_SIUMCR  (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC10 | SIUMCR_SEME) */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC11 | SIUMCR_SEME | SIUMCR_BSC )
+/* #define CONFIG_SYS_SIUMCR   (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC10 | SIUMCR_SEME) */
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC11 | SIUMCR_SEME | SIUMCR_BSC )
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF | PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF | PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      (SCCR_RTDIV | SCCR_RTSEL)
-#define CFG_SCCR       SCCR_TBS
+#define CONFIG_SYS_SCCR        SCCR_TBS
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
-#define CFG_PCMCIA_INTERRUPT   SIU_LEVEL6
+#define CONFIG_SYS_PCMCIA_INTERRUPT    SIU_LEVEL6
 
 #define CONFIG_PCMCIA_SLOT_A   1
 
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  * Debug Entry Mode
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Internal Definitions
index cc051115211cd8cee31ee642756cfdc6265c3904..4cb3a696cdea911221a0d647272e1240ed465580 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              ":>"            /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#undef CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               ":>"            /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0800000       /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0800000       /* 4 ... 8 MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR                       0xFFA00000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
-#define CFG_NVRAM_BASE         0xFA000000 /* NVRAM                          */
-#define CFG_NVRAM_OR           0xffe00000 /* w/o speed dependent flags!!    */
-#define CFG_CSR_BASE           0xFA100000 /* Control/Status Registers       */
-#define CFG_PCIMEM_BASE                0x80000000 /* PCI I/O and Memory Spaces      */
-#define CFG_PCIMEM_OR          0xA0000108
-#define CFG_PCIBRIDGE_BASE     0xFA210000 /* PCI-Bus Bridge Registers       */
-#define CFG_PCIBRIDGE_OR       0xFFFF0108
+#define CONFIG_SYS_IMMR                        0xFFA00000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
+#define CONFIG_SYS_NVRAM_BASE          0xFA000000 /* NVRAM                          */
+#define CONFIG_SYS_NVRAM_OR            0xffe00000 /* w/o speed dependent flags!!    */
+#define CONFIG_SYS_CSR_BASE            0xFA100000 /* Control/Status Registers       */
+#define CONFIG_SYS_PCIMEM_BASE         0x80000000 /* PCI I/O and Memory Spaces      */
+#define CONFIG_SYS_PCIMEM_OR           0xA0000108
+#define CONFIG_SYS_PCIBRIDGE_BASE      0xFA210000 /* PCI-Bus Bridge Registers       */
+#define CONFIG_SYS_PCIBRIDGE_OR        0xFFFF0108
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2f00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_VPD_SIZE       256 /* size in bytes reserved for vpd buffer */
-#define CFG_INIT_VPD_OFFSET    (CFG_GBL_DATA_OFFSET - CFG_INIT_VPD_SIZE)
-#define        CFG_INIT_SP_OFFSET      (CFG_INIT_VPD_OFFSET-8)
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2f00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_VPD_SIZE        256 /* size in bytes reserved for vpd buffer */
+#define CONFIG_SYS_INIT_VPD_OFFSET     (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_INIT_VPD_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       (CONFIG_SYS_INIT_VPD_OFFSET-8)
 
 /*-----------------------------------------------------------------------
  * Offset in DPMEM where we keep the VPD data
  */
-#define CFG_DPRAMVPD           (CFG_INIT_VPD_OFFSET - 0x2000)
+#define CONFIG_SYS_DPRAMVPD            (CONFIG_SYS_INIT_VPD_OFFSET - 0x2000)
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x00000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x00000000
 /*0xFE000000*/
-#define CFG_FLASH_SIZE         ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_HWINFO_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN - CFG_HWINFO_LEN)
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_HWINFO_ADDR         (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_SYS_HWINFO_LEN)
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    4       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     16      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     4       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      16      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * NVRAM Configuration
  * access the NVRAM at the offset 0x1000.
  */
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* turn on NVRAM env feature */
-#define CONFIG_ENV_ADDR                (CFG_NVRAM_BASE + 0x1000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_NVRAM_BASE + 0x1000)
 #define CONFIG_ENV_SIZE                0x1000
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC10 | SIUMCR_SEME)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC10 | SIUMCR_SEME)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF | PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF | PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      (SCCR_RTDIV | SCCR_RTSEL)
-#define CFG_SCCR       SCCR_TBS
+#define CONFIG_SYS_SCCR        SCCR_TBS
 
  /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
 * entire address space, we have to set the memory controller
 #define FLASH_BASE0_PRELIM     0xFE000000      /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0xFF010000      /* FLASH bank #0        */
 
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFF00000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFF00000      /* OR addr mask */
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (0xFF800000 | OR_CSNT_SAM | OR_BI | OR_SCY_3_CLK)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
-#define CFG_BR0_PRELIM (0xFE000000 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (0xFF800000 | OR_CSNT_SAM | OR_BI | OR_SCY_3_CLK)   /* 1 Mbyte until detected and only 1 Mbyte is needed*/
+#define CONFIG_SYS_BR0_PRELIM  (0xFE000000 | BR_V )
 
 /* BCSRx - Board Control and Status Registers */
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM 0xFFC00000 | OR_ACS_DIV4
-#define CFG_BR1_PRELIM (0x00000000 | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  0xFFC00000 | OR_ACS_DIV4
+#define CONFIG_SYS_BR1_PRELIM  (0x00000000 | BR_MS_UPMA | BR_V )
 
 
 /*
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA           97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA            97              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
-#define CFG_MAMR               0x13821000
+#define CONFIG_SYS_MAMR                0x13821000
 /*
  * Internal Definitions
  *
index 16d236388e48b6e062fdcab25717fca3f2fe13a4..c0ddd45c0e44ebbe2f48e0abb2e58a63037c18f3 100644 (file)
 #define CONFIG_BOARD_EARLY_INIT_F 1         /* Call board_pre_init     */
 #define CONFIG_MISC_INIT_F       1          /* Call board misc_init_f  */
 #define CONFIG_MISC_INIT_R       1          /* Call board misc_init_r  */
-#undef CFG_DRAM_TEST                        /* Disable-takes long time!*/
+#undef CONFIG_SYS_DRAM_TEST                         /* Disable-takes long time!*/
 #define CONFIG_SYS_CLK_FREQ      66666666   /* external freq to pll    */
 
 #define CONFIG_VERY_BIG_RAM 1
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_SDRAM_BASE        0x00000000    /* _must_ be 0             */
-#define CFG_FLASH_BASE        0xfff80000    /* start of FLASH          */
-#define CFG_MONITOR_BASE       0xfff80000    /* start of monitor       */
-#define CFG_PCI_MEMBASE               0x80000000    /* mapped pci memory       */
-#define CFG_PERIPHERAL_BASE    0xe0000000    /* internal peripherals   */
-#define CFG_ISRAM_BASE        0xc0000000    /* internal SRAM           */
-#define CFG_PCI_BASE          0xd0000000    /* internal PCI regs       */
-
-#define CFG_NVRAM_BASE_ADDR   (CFG_PERIPHERAL_BASE + 0x08000000)
-#define CFG_FPGA_BASE        (CFG_PERIPHERAL_BASE + 0x08200000)
-#define CFG_BME32_BASE       (CFG_PERIPHERAL_BASE + 0x08500000)
-#define CFG_GPIO_BASE        (CFG_PERIPHERAL_BASE + 0x00000700)
+#define CONFIG_SYS_SDRAM_BASE         0x00000000    /* _must_ be 0             */
+#define CONFIG_SYS_FLASH_BASE         0xfff80000    /* start of FLASH          */
+#define CONFIG_SYS_MONITOR_BASE       0xfff80000    /* start of monitor        */
+#define CONFIG_SYS_PCI_MEMBASE        0x80000000    /* mapped pci memory       */
+#define CONFIG_SYS_PERIPHERAL_BASE    0xe0000000    /* internal peripherals    */
+#define CONFIG_SYS_ISRAM_BASE         0xc0000000    /* internal SRAM           */
+#define CONFIG_SYS_PCI_BASE           0xd0000000    /* internal PCI regs       */
+
+#define CONFIG_SYS_NVRAM_BASE_ADDR   (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
+#define CONFIG_SYS_FPGA_BASE         (CONFIG_SYS_PERIPHERAL_BASE + 0x08200000)
+#define CONFIG_SYS_BME32_BASE        (CONFIG_SYS_PERIPHERAL_BASE + 0x08500000)
+#define CONFIG_SYS_GPIO_BASE         (CONFIG_SYS_PERIPHERAL_BASE + 0x00000700)
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM    1
-#define CFG_OCM_DATA_ADDR     CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR     CFG_ISRAM_BASE /* Initial RAM address    */
-#define CFG_INIT_RAM_END      0x2000        /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE     128           /* num bytes initial data  */
+#define CONFIG_SYS_TEMP_STACK_OCM    1
+#define CONFIG_SYS_OCM_DATA_ADDR     CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR     CONFIG_SYS_ISRAM_BASE /* Initial RAM address      */
+#define CONFIG_SYS_INIT_RAM_END      0x2000         /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE     128            /* num bytes initial data  */
 
-#define CFG_GBL_DATA_OFFSET   (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR    (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET    CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET   (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR    (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET    CONFIG_SYS_POST_WORD_ADDR
 
-#define CFG_MONITOR_LEN              (256 * 1024)   /* Rsrv 256kB for Mon      */
-#define CFG_MALLOC_LEN       (128 * 1024)   /* Rsrv 128kB for malloc   */
+#define CONFIG_SYS_MONITOR_LEN       (256 * 1024)   /* Rsrv 256kB for Mon      */
+#define CONFIG_SYS_MALLOC_LEN        (128 * 1024)   /* Rsrv 128kB for malloc   */
 
 /*-----------------------------------------------------------------------
  * Serial Port
 #define CONFIG_SERIAL_MULTI   1
 #define CONFIG_BAUDRATE              9600
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
  * The DS1743 code assumes this condition (i.e. -- it assumes the base
  * address for the RTC registers is:
  *
- *     CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE
+ *     CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE
  *
  *----------------------------------------------------------------------*/
-#define CFG_NVRAM_SIZE       (0x2000 - 8)   /* NVRAM size(8k)- RTC regs*/
+#define CONFIG_SYS_NVRAM_SIZE        (0x2000 - 8)   /* NVRAM size(8k)- RTC regs*/
 #define CONFIG_RTC_DS174x     1                     /* DS1743 RTC              */
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS   1                     /* number of banks         */
-#define CFG_MAX_FLASH_SECT    8                     /* sectors per device      */
+#define CONFIG_SYS_MAX_FLASH_BANKS   1              /* number of banks         */
+#define CONFIG_SYS_MAX_FLASH_SECT    8              /* sectors per device      */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT  120000        /* Flash Erase TO (in ms)   */
-#define CFG_FLASH_WRITE_TOUT  500           /* Flash Write TO(in ms)    */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT  120000         /* Flash Erase TO (in ms)   */
+#define CONFIG_SYS_FLASH_WRITE_TOUT  500            /* Flash Write TO(in ms)    */
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C              1              /* I2C hardware support    */
 #undef CONFIG_SOFT_I2C                      /* I2C !bit-banged         */
-#define CFG_I2C_SPEED        400000         /* I2C speed 400kHz        */
-#define CFG_I2C_SLAVE        0x7F           /* I2C slave address       */
-#define CFG_I2C_NOPROBES      {0x69}        /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_SPEED         400000         /* I2C speed 400kHz        */
+#define CONFIG_SYS_I2C_SLAVE         0x7F           /* I2C slave address       */
+#define CONFIG_SYS_I2C_NOPROBES      {0x69}         /* Don't probe these addrs */
 #define CONFIG_I2C_BUS1              1              /* Include i2c bus 1 supp  */
 
 
 #define CONFIG_ENV_OVERWRITE  1                     /* allow env overwrite     */
 
 #define CONFIG_ENV_SIZE              0x1000         /* Size of Env vars        */
-#define CONFIG_ENV_ADDR              (CFG_NVRAM_BASE_ADDR)
+#define CONFIG_ENV_ADDR              (CONFIG_SYS_NVRAM_BASE_ADDR)
 
 #define CONFIG_BOOTARGS              "console=ttyS0,9600 root=/dev/nfs rw nfsroot=$serverip:/home/metrobox0 nfsaddrs=$ipaddr:::::eth0:none "
 #define CONFIG_BOOTCOMMAND    "tftp 8000000 pImage.metrobox;bootm 8000000"
 #define CONFIG_BOOTDELAY      5                    /* disable autoboot */
 
 #define CONFIG_LOADS_ECHO     1                     /* echo on for serial dnld */
-#define CFG_LOADS_BAUD_CHANGE 1                     /* allow baudrate change   */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE 1              /* allow baudrate change   */
 
 /*-----------------------------------------------------------------------
  * Networking
 #define CONFIG_NETMASK       255.255.0.0
 #define CONFIG_ETHADDR       00:00:00:00:00:00 /* No EMAC 0 support    */
 #define CONFIG_ETH1ADDR              00:00:00:00:00:00 /* No EMAC 1 support    */
-#define CFG_RX_ETH_BUFFER     32            /* #eth rx buff & descrs   */
+#define CONFIG_SYS_RX_ETH_BUFFER     32             /* #eth rx buff & descrs   */
 
 
 /*
 /* Include auto complete with tabs */
 #define CONFIG_AUTO_COMPLETE 1
 #define CONFIG_AUTO_COMPLETE 1
-#define CFG_ALT_MEMTEST             1       /* use real memory test     */
+#define CONFIG_SYS_ALT_MEMTEST      1       /* use real memory test     */
 
-#define CFG_LONGHELP                        /* undef to save memory    */
-#define CFG_PROMPT           "MetroBox=> "  /* Monitor Command Prompt  */
+#define CONFIG_SYS_LONGHELP                         /* undef to save memory    */
+#define CONFIG_SYS_PROMPT            "MetroBox=> "  /* Monitor Command Prompt  */
 
-#define CFG_HUSH_PARSER               1             /* HUSH for ext'd cli      */
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER        1             /* HUSH for ext'd cli      */
+#define CONFIG_SYS_PROMPT_HUSH_PS2    "> "
 
 
 /*-----------------------------------------------------------------------
  * Console Buffer
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE           1024           /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE            1024           /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE           256            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE            256            /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
                                             /* Print Buffer Size       */
-#define CFG_MAXARGS          16             /* max number of cmd args  */
-#define CFG_BARGSIZE         CFG_CBSIZE     /* Boot Arg Buffer Size    */
+#define CONFIG_SYS_MAXARGS           16             /* max number of cmd args  */
+#define CONFIG_SYS_BARGSIZE          CONFIG_SYS_CBSIZE     /* Boot Arg Buffer Size     */
 
 /*-----------------------------------------------------------------------
  * Memory Test
  *----------------------------------------------------------------------*/
-#define CFG_MEMTEST_START     0x0400000             /* memtest works on        */
-#define CFG_MEMTEST_END              0x0C00000      /* 4 ... 12 MB in DRAM     */
+#define CONFIG_SYS_MEMTEST_START     0x0400000      /* memtest works on        */
+#define CONFIG_SYS_MEMTEST_END       0x0C00000      /* 4 ... 12 MB in DRAM     */
 
 /*-----------------------------------------------------------------------
  * Compact Flash (in true IDE mode)
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 
 #define CONFIG_IDE_RESET               /* reset for ide supported      */
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0000000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_DATA_OFFSET    0x0000   /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0000   /* Offset for normal register accesses*/
-#define CFG_ATA_ALT_OFFSET     0x100000 /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0000000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000   /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000   /* Offset for normal register accesses*/
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x100000 /* Offset for alternate registers */
 
-#define CFG_ATA_STRIDE         2        /* Directly connected CF, needs a stride
+#define CONFIG_SYS_ATA_STRIDE          2        /* Directly connected CF, needs a stride
                                            to get to the correct offset */
 #define CONFIG_DOS_PARTITION  1                     /* Include dos partition   */
 
 #define CONFIG_PCI                          /* include pci support     */
 #define CONFIG_PCI_PNP                      /* do pci plug-and-play    */
 #define CONFIG_PCI_SCAN_SHOW                /* show pci devices        */
-#define CFG_PCI_TARGBASE      (CFG_PCI_MEMBASE)
+#define CONFIG_SYS_PCI_TARGBASE      (CONFIG_SYS_PCI_MEMBASE)
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT                 /* let board init pci target*/
+#define CONFIG_SYS_PCI_TARGET_INIT                  /* let board init pci target*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x17BA      /* Sandburst */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe      /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x17BA       /* Sandburst */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe       /* Whatever */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
 #undef CONFIG_WATCHDOG                      /* watchdog disabled       */
-#define CFG_LOAD_ADDR        0x8000000      /* default load address    */
-#define CFG_EXTBDINFO        1              /* use extended board_info */
+#define CONFIG_SYS_LOAD_ADDR         0x8000000      /* default load address    */
+#define CONFIG_SYS_EXTBDINFO         1              /* use extended board_info */
 
-#define CFG_HZ               100            /* decr freq: 1 ms ticks   */
+#define CONFIG_SYS_HZ                100            /* decr freq: 1 ms ticks   */
 
 
 #endif /* __CONFIG_H */
index a7901e5655faee595939a8ffd8f2e6a7247c3e89..8e7f9cdc140291ae09860709869893006e795e64 100644 (file)
@@ -63,7 +63,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #define CONFIG_RTC_MPC8xx              /* use internal RTC of MPC8xx   */
                        else    immr->im_cpm.cp_pbdat &= ~PB_SCL
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
-#define CFG_I2C_SPEED                  50000
-#define CFG_I2C_SLAVE                  0xFE
-#define CFG_I2C_EEPROM_ADDR            0x50    /* EEPROM X24C04                */
-#define CFG_I2C_EEPROM_ADDR_LEN                1       /* bytes of address             */
+#define CONFIG_SYS_I2C_SPEED                   50000
+#define CONFIG_SYS_I2C_SLAVE                   0xFE
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* EEPROM X24C04                */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1       /* bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 #define LCD_VIDEO_ADDR         (SDRAM_MAX_SIZE-SDRAM_RES_SIZE)
 #define LCD_VIDEO_SIZE         SDRAM_RES_SIZE  /* 2MB */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x300000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x300000        /* default load address */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Physical memory map
  */
-#define CFG_IMMR               0xFFF00000 /* Internal Memory Mapped Register*/
+#define CONFIG_SYS_IMMR                0xFFF00000 /* Internal Memory Mapped Register*/
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xfe000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xfe000000
 
-#define CFG_MONITOR_LEN                0x40000         /* Reserve 256 kB for Monitor   */
-#undef CFG_MONITOR_BASE                    /* to run U-Boot from RAM */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         0x40000         /* Reserve 256 kB for Monitor   */
+#undef CONFIG_SYS_MONITOR_BASE             /* to run U-Boot from RAM */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * JFFS2 partitions
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map- for Linux        */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map- for Linux        */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_OFFSET              CFG_MONITOR_LEN /* Offset of Environment */
+#define CONFIG_ENV_OFFSET              CONFIG_SYS_MONITOR_LEN /* Offset of Environment */
 #define CONFIG_ENV_SIZE                0x20000 /* Total Size of Environment    */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWP)
 #endif
 
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_SEME)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_SEME)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF | PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF | PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         12-18
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
 #define MPC8XX_SPEED   50000000L
 #define MPC8XX_XIN     5000000L      /* ref clk */
 #define MPC8XX_FACT    (MPC8XX_SPEED/MPC8XX_XIN)
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
                        PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  */
 
 #define SCCR_MASK      (SCCR_RTDIV | SCCR_RTSEL)     /* SCCR_EBDF11 */
-#define CFG_SCCR       (SCCR_TBS | SCCR_DFLCD001)
+#define CONFIG_SYS_SCCR        (SCCR_TBS | SCCR_DFLCD001)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * periodic timer for refresh
  */
-#define CFG_MAMR_PTA   0xC0
-#define CFG_MAMR       ((CFG_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | MAMR_G0CLA_A11 | MAMR_TLFA_MSK)
+#define CONFIG_SYS_MAMR_PTA    0xC0
+#define CONFIG_SYS_MAMR        ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT) | MAMR_PTAE | MAMR_G0CLA_A11 | MAMR_TLFA_MSK)
 
 /*
  * BR0 and OR0 (FLASH) used to re-map FLASH
 /* allow for max 8 MB of Flash */
 #define FLASH_BASE             0xFE000000      /* FLASH bank #0*/
 #define FLASH_BASE0_PRELIM     0xFE000000      /* FLASH bank #0*/
-#define CFG_REMAP_OR_AM                0xFF800000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF800000      /* OR addr mask */
 
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM | OR_BI | OR_SCY_8_CLK) /* (OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | OR_SCY_6_CLK)*/
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM | OR_BI | OR_SCY_8_CLK) /* (OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | OR_SCY_6_CLK)*/
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_MS_GPCM | BR_V )
 
 /*
  * BR1 and OR1 (SDRAM)
 #define SDRAM_RES_SIZE         0x00200000      /* 2 MB for framebuffer */
 
 /* SDRAM timing: drive GPL5 high on first cycle */
-#define CFG_OR_TIMING_SDRAM    (OR_G5LS)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_G5LS)
 
-#define CFG_OR1_PRELIM ((~(SDRAM_MAX_SIZE)+1)| CFG_OR_TIMING_SDRAM )
-#define CFG_BR1_PRELIM ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  ((~(SDRAM_MAX_SIZE)+1)| CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * BR2/OR2 - DIMM
  */
-#define CFG_OR2                (OR_ACS_DIV4)
-#define CFG_BR2                (BR_MS_UPMA)
+#define CONFIG_SYS_OR2         (OR_ACS_DIV4)
+#define CONFIG_SYS_BR2         (BR_MS_UPMA)
 
 /*
  * BR3/OR3 - DIMM
  */
-#define CFG_OR3                (OR_ACS_DIV4)
-#define CFG_BR3                (BR_MS_UPMA)
+#define CONFIG_SYS_OR3         (OR_ACS_DIV4)
+#define CONFIG_SYS_BR3         (BR_MS_UPMA)
 
 /*
  * BR4/OR4
  */
-#define CFG_OR4                0
-#define CFG_BR4                0
+#define CONFIG_SYS_OR4         0
+#define CONFIG_SYS_BR4         0
 
 /*
  * BR5/OR5
  */
-#define CFG_OR5                0
-#define CFG_BR5                0
+#define CONFIG_SYS_OR5         0
+#define CONFIG_SYS_BR5         0
 
 /*
  * BR6/OR6
  */
-#define CFG_OR6                0
-#define CFG_BR6                0
+#define CONFIG_SYS_OR6         0
+#define CONFIG_SYS_BR6         0
 
 /*
  * BR7/OR7
  */
-#define CFG_OR7                0
-#define CFG_BR7                0
+#define CONFIG_SYS_OR7         0
+#define CONFIG_SYS_BR7         0
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Internal Definitions
index 28b3802604254b83f8a57a508965091fb43547a1..7dcf1855a2ca9b9cc6e3eb18e314c21d6e7e0ec0 100644 (file)
@@ -90,8 +90,8 @@
 
 #define CONFIG_NAND_LEGACY
 
-#define         CFG_HUSH_PARSER
-#define         CFG_PROMPT_HUSH_PS2 "> "
+#define         CONFIG_SYS_HUSH_PARSER
+#define         CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 /**************************************************************
  * I2C Stuff:
  * the MIP405 is equiped with an Atmel 24C128/256 EEPROM at address
  ***************************************************************/
 
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          50000   /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           50000   /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x53    /* EEPROM 24C128/256            */
-#define CFG_I2C_EEPROM_ADDR_LEN        2       /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x53    /* EEPROM 24C128/256            */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#undef CFG_I2C_EEPROM_ADDR_OVERFLOW
-#define CFG_EEPROM_PAGE_WRITE_BITS 6   /* The Atmel 24C128/256 has     */
+#undef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6    /* The Atmel 24C128/256 has     */
                                        /* 64 byte page write mode using*/
                                        /* last 6 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* use EEPROM for environment vars */
 /***************************************************************
  * defines if the console is stored in the environment
  ***************************************************************/
-#define CFG_CONSOLE_IS_IN_ENV  /* stdin, stdout and stderr are in evironment */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   /* stdin, stdout and stderr are in evironment */
 /***************************************************************
  * defines if an overwrite_console function exists
  *************************************************************/
-#define CFG_CONSOLE_OVERWRITE_ROUTINE
-#define CFG_CONSOLE_INFO_QUIET
+#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#define CONFIG_SYS_CONSOLE_INFO_QUIET
 /***************************************************************
  * defines if the overwrite_console should be stored in the
  * environment
  **************************************************************/
-#undef CFG_CONSOLE_ENV_OVERWRITE
+#undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 
 /**************************************************************
  * loads config
  *************************************************************/
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MISC_INIT_R
 /***********************************************************
  * Miscellaneous configurable options
  **********************************************************/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 1 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 1 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_BASE_BAUD       916667
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_BASE_BAUD       916667
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x400000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x400000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI_HOST PCI_HOST_FORCE /* configure as pci-host        */
 #define CONFIG_PCI_PNP                 /* pci plug-and-play            */
                                        /* resource configuration       */
-#define CFG_PCI_SUBSYS_VENDORID 0x0000 /* PCI Vendor ID: to-do!!!      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000 /* PCI Device ID: to-do!!!      */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFF80000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Monitor   */
-#define CFG_MALLOC_LEN         (1024 * 1024)   /* Reserve 1024 kB for malloc() */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFF80000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)   /* Reserve 1024 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*
  * JFFS2 partitions
  * POST Configuration
  */
 #if 0 /* enable this if POST is desired (is supported but not enabled) */
-#define CONFIG_POST            (CFG_POST_MEMORY        | \
-                                CFG_POST_CPU           | \
-                                CFG_POST_RTC           | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY | \
+                                CONFIG_SYS_POST_CPU            | \
+                                CONFIG_SYS_POST_RTC            | \
+                                CONFIG_SYS_POST_I2C)
 
 #endif
 /*
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in On Chip SRAM)
  */
-#define CFG_TEMP_STACK_OCM      1
-#define CFG_OCM_DATA_ADDR      0xF0000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR       /* inside of On Chip SRAM    */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE       /* End of On Chip SRAM         */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF0000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR        /* inside of On Chip SRAM    */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE        /* End of On Chip SRAM         */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 /* reserve some memory for POST and BOOT limit info */
-#define CFG_INIT_SP_OFFSET     (CFG_GBL_DATA_OFFSET - 32)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_GBL_DATA_OFFSET - 32)
 
 #ifdef  CONFIG_POST            /* reserve one word for POST Info */
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 4)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 4)
 #endif
 
 #ifdef CONFIG_BOOTCOUNT_LIMIT /* reserve 2 word for bootcount limit */
-#define CFG_BOOTCOUNT_ADDR (CFG_GBL_DATA_OFFSET - 12)
+#define CONFIG_SYS_BOOTCOUNT_ADDR (CONFIG_SYS_GBL_DATA_OFFSET - 12)
 #endif
 
 /*
 /***********************************************************************
  * External peripheral base address
  ***********************************************************************/
-#define CFG_ISA_IO_BASE_ADDRESS 0xE8000000
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0xE8000000
 
 /***********************************************************************
  * Last Stage Init
  * IDE/ATA stuff
  ************************************************************/
 #if defined(CONFIG_MIP405T)
-#define CFG_IDE_MAXBUS         1   /* MIP405T has only one IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1   /* MIP405T has only one IDE bus     */
 #else
-#define CFG_IDE_MAXBUS         2   /* max. 2 IDE busses        */
+#define CONFIG_SYS_IDE_MAXBUS          2   /* max. 2 IDE busses        */
 #endif
 
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      CFG_ISA_IO_BASE_ADDRESS /* base address */
-#define CFG_ATA_IDE0_OFFSET    0x01F0          /* ide0 offste */
-#define CFG_ATA_IDE1_OFFSET    0x0170          /* ide1 offset */
-#define CFG_ATA_DATA_OFFSET    0               /* data reg offset      */
-#define CFG_ATA_REG_OFFSET     0               /* reg offset */
-#define CFG_ATA_ALT_OFFSET     0x200           /* alternate register offset */
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_ISA_IO_BASE_ADDRESS /* base address */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x01F0          /* ide0 offste */
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0x0170          /* ide1 offset */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0               /* data reg offset      */
+#define CONFIG_SYS_ATA_REG_OFFSET      0               /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x200           /* alternate register offset */
 
 #undef CONFIG_IDE_8xx_DIRECT      /* no pcmcia interface required */
 #undef CONFIG_IDE_LED         /* no led for ide supported     */
 /************************************************************
  * Disk-On-Chip configuration
  ************************************************************/
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices            */
-#define CFG_DOC_SHORT_TIMEOUT
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices            */
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 /************************************************************
  * Keyboard support
  ************************************************************/
 #define CONFIG_USB_STORAGE
 
 /* Enable needed helper functions */
-#define CFG_DEVICE_DEREGISTER          /* needs device_deregister */
+#define CONFIG_SYS_DEVICE_DEREGISTER           /* needs device_deregister */
 #endif
 /************************************************************
  * Debug support
index 11323dbe84512807c710808bd4eede08316df38b..190239732531335f3a19dfcc5806ff7b011624a8 100644 (file)
@@ -73,7 +73,7 @@
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
-#undef  CFG_EXT_SERIAL_CLOCK           /* external serial clock */
-#undef  CFG_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
-
-#define CFG_BASE_BAUD       (3125000*16)
-#define CFG_NS16550_CLK CFG_BASE_BAUD
-#define CFG_DUART_CHAN         0
-#define CFG_NS16550_COM1       0xa0001003
-#define CFG_NS16550_COM2       0xa0011003
-#define CFG_NS16550_REG_SIZE -4
-#define CFG_NS16550 1
-#define CFG_INIT_CHAN1  1
-#define CFG_INIT_CHAN2  1
+#undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* external serial clock */
+#undef  CONFIG_SYS_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
+
+#define CONFIG_SYS_BASE_BAUD       (3125000*16)
+#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_BASE_BAUD
+#define CONFIG_SYS_DUART_CHAN          0
+#define CONFIG_SYS_NS16550_COM1        0xa0001003
+#define CONFIG_SYS_NS16550_COM2        0xa0011003
+#define CONFIG_SYS_NS16550_REG_SIZE -4
+#define CONFIG_SYS_NS16550 1
+#define CONFIG_SYS_INIT_CHAN1   1
+#define CONFIG_SYS_INIT_CHAN2   1
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x18000000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 196 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x18000000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /* BEG ENVIRONNEMENT FLASH */
 #ifdef CONFIG_ENV_IS_IN_FLASH
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
-#define CFG_NVRAM_BASE_ADDR    0xf0000000      /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         0x1ff8          /* NVRAM size   */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0000000      /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          0x1ff8          /* NVRAM size   */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
 #endif
 
 /*
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0               /* FLASH bank #1        */
 
 
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
 
-#define CFG_INIT_RAM_ADDR       0x800000  /* inside of SDRAM                     */
-#define CFG_INIT_RAM_END        0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x800000  /* inside of SDRAM                     */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
index b69ced66233600a0c3c730776c5d754938db2657..986590aaaf0fc4c466e6633dea6fb2abb52af7ef 100644 (file)
@@ -48,7 +48,7 @@
 #define CONFIG_MPC824X      1
 #define CONFIG_MPC8240      1
 #define CONFIG_MOUSSE       1
-#define CFG_ADDR_MAP_B      1
+#define CONFIG_SYS_ADDR_MAP_B      1
 #define CONFIG_CONS_INDEX   1
 #define CONFIG_BAUDRATE     9600
 #if 1
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                /* undef to save memory     */
-#define CFG_PROMPT      "=>"  /* Monitor Command Prompt   */
-#define CFG_CBSIZE      256        /* Console I/O Buffer Size  */
-#define CFG_PBSIZE      (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS     8           /* Max number of command args   */
+#undef CONFIG_SYS_LONGHELP                /* undef to save memory     */
+#define CONFIG_SYS_PROMPT      "=>"  /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE      256        /* Console I/O Buffer Size  */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS     8           /* Max number of command args   */
 
-#define CFG_BARGSIZE    CFG_CBSIZE  /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR   0x00100000  /* Default load address         */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000  /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
 
 #ifdef DEBUG
-#define CFG_MONITOR_BASE    CFG_SDRAM_BASE
+#define CONFIG_SYS_MONITOR_BASE    CONFIG_SYS_SDRAM_BASE
 #else
-#define CFG_MONITOR_BASE    CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE    CONFIG_SYS_FLASH_BASE
 #endif
 
 #ifdef DEBUG
-#define CFG_MONITOR_LEN     (4 << 20)  /* lots of mem ... */
+#define CONFIG_SYS_MONITOR_LEN     (4 << 20)   /* lots of mem ... */
 #else
-#define CFG_MONITOR_LEN     (512 << 10)        /* 512K PLCC bootrom */
+#define CONFIG_SYS_MONITOR_LEN     (512 << 10) /* 512K PLCC bootrom */
 #endif
-#define CFG_MALLOC_LEN      (2*(4096 << 10))    /* 2*4096kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN      (2*(4096 << 10))    /* 2*4096kB for malloc()  */
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on      */
-#define CFG_MEMTEST_END     0x02000000 /* 0 ... 32 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on      */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM   */
 
 
-#define CFG_EUMB_ADDR       0xFC000000
+#define CONFIG_SYS_EUMB_ADDR       0xFC000000
 
-#define CFG_ISA_MEM         0xFD000000
-#define CFG_ISA_IO          0xFE000000
+#define CONFIG_SYS_ISA_MEM         0xFD000000
+#define CONFIG_SYS_ISA_IO          0xFE000000
 
-#define CFG_FLASH_BASE      0xFFF00000
-#define CFG_FLASH_SIZE      ((uint)(512 * 1024))
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_FLASH_BASE      0xFFF00000
+#define CONFIG_SYS_FLASH_SIZE      ((uint)(512 * 1024))
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 #define FLASH_BASE0_PRELIM  0xFFF00000  /* 512K PLCC FLASH/AM29F040*/
 #define FLASH_BASE0_SIZE    0x80000     /* 512K */
 #define FLASH_BASE1_PRELIM  0xFFE10000  /* AMD 29LV160DB
                                           1MB - 64K FLASH0 SEG =960K
                                           (size=0xf0000)*/
 
-#define CFG_BAUDRATE_TABLE  { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE  { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                18432000
+#define CONFIG_SYS_NS16550_CLK         18432000
 
-#define CFG_NS16550_COM1       0xFFE08080
+#define CONFIG_SYS_NS16550_COM1        0xFFE08080
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR CFG_SDRAM_BASE + CFG_MONITOR_LEN
-#define CFG_INIT_RAM_END   0x2F00  /* End of used area in DPRAM  */
-#define CFG_GBL_DATA_SIZE  64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET  CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MONITOR_LEN
+#define CONFIG_SYS_INIT_RAM_END   0x2F00  /* End of used area in DPRAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE  64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET  CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Low Level Configuration Settings
 
 #define CONFIG_SYS_CLK_FREQ  33000000  /* external frequency to pll */
 #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER  2
-#define CFG_HZ               1000
+#define CONFIG_SYS_HZ               1000
 
-#define CFG_ETH_DEV_FN       0x00
-#define CFG_ETH_IOBASE       0x00104000
+#define CONFIG_SYS_ETH_DEV_FN       0x00
+#define CONFIG_SYS_ETH_IOBASE       0x00104000
 
 
        /* Bit-field values for MCCR1.
         */
-#define CFG_ROMNAL          8
-#define CFG_ROMFAL          8
+#define CONFIG_SYS_ROMNAL          8
+#define CONFIG_SYS_ROMFAL          8
 
        /* Bit-field values for MCCR2.
         */
-#define CFG_REFINT          0xf5     /* Refresh interval               */
+#define CONFIG_SYS_REFINT          0xf5     /* Refresh interval               */
 
        /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
         */
-#define CFG_BSTOPRE         0x79
+#define CONFIG_SYS_BSTOPRE         0x79
 
 #ifdef INCLUDE_ECC
 #define USE_ECC                                1
 
        /* Bit-field values for MCCR3.
         */
-#define CFG_REFREC          8       /* Refresh to activate interval   */
-#define CFG_RDLAT           (4+USE_ECC)   /* Data latancy from read command */
+#define CONFIG_SYS_REFREC          8       /* Refresh to activate interval   */
+#define CONFIG_SYS_RDLAT           (4+USE_ECC)   /* Data latancy from read command */
 
        /* Bit-field values for MCCR4.
         */
-#define CFG_PRETOACT        3       /* Precharge to activate interval */
-#define CFG_ACTTOPRE        5       /* Activate to Precharge interval */
-#define CFG_SDMODE_CAS_LAT  3       /* SDMODE CAS latancy             */
-#define CFG_SDMODE_WRAP     0       /* SDMODE wrap type               */
-#define CFG_SDMODE_BURSTLEN 2       /* SDMODE Burst length            */
-#define CFG_ACTORW          2
-#define CFG_REGISTERD_TYPE_BUFFER (1-USE_ECC)
+#define CONFIG_SYS_PRETOACT        3       /* Precharge to activate interval */
+#define CONFIG_SYS_ACTTOPRE        5       /* Activate to Precharge interval */
+#define CONFIG_SYS_SDMODE_CAS_LAT  3       /* SDMODE CAS latancy             */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type               */
+#define CONFIG_SYS_SDMODE_BURSTLEN 2       /* SDMODE Burst length            */
+#define CONFIG_SYS_ACTORW          2
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER (1-USE_ECC)
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * 20 bits will be 0x00000 for a start address, or 0xfffff for an end
  * address. Refer to the MPC8240 book.
  */
-#define CFG_RAM_SIZE        0x04000000  /* 64MB */
-
-
-#define CFG_BANK0_START     0x00000000
-#define CFG_BANK0_END       (CFG_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START     0x3ff00000
-#define CFG_BANK1_END       0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START     0x3ff00000
-#define CFG_BANK2_END       0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START     0x3ff00000
-#define CFG_BANK3_END       0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START     0x3ff00000
-#define CFG_BANK4_END       0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START     0x3ff00000
-#define CFG_BANK5_END       0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START     0x3ff00000
-#define CFG_BANK6_END       0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START     0x3ff00000
-#define CFG_BANK7_END       0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR            0x7f
-
-
-#define CFG_PGMAX           0x32 /* how long the 8240 reatins the currently accessed page in memory
+#define CONFIG_SYS_RAM_SIZE        0x04000000  /* 64MB */
+
+
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0x7f
+
+
+#define CONFIG_SYS_PGMAX           0x32 /* how long the 8240 reatins the currently accessed page in memory
                                    see 8240 book for details*/
 #define PCI_MEM_SPACE1_START   0x80000000
 #define PCI_MEM_SPACE2_START   0xfd000000
 
 /* IBAT/DBAT Configuration */
 /* Ram: 64MB, starts at address-0, r/w instruction/data */
-#define CFG_IBAT0U      (CFG_SDRAM_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
-#define CFG_IBAT0L      (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT0U      CFG_IBAT0U
-#define CFG_DBAT0L      CFG_IBAT0L
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
 
 /* MPLD/Port-X I/O Space : data and instruction read/write,  cache-inhibit */
-#define CFG_IBAT1U      (PORTX_DEV_BASE | BATU_BL_128M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1U      (PORTX_DEV_BASE | BATU_BL_128M | BATU_VS | BATU_VP)
 #if 0
-#define CFG_IBAT1L      (PORTX_DEV_BASE | BATL_PP_10  | BATL_MEMCOHERENCE |\
+#define CONFIG_SYS_IBAT1L      (PORTX_DEV_BASE | BATL_PP_10  | BATL_MEMCOHERENCE |\
                         BATL_WRITETHROUGH | BATL_CACHEINHIBIT)
 #else
-#define CFG_IBAT1L      (PORTX_DEV_BASE | BATL_PP_10 |BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1L      (PORTX_DEV_BASE | BATL_PP_10 |BATL_CACHEINHIBIT)
 #endif
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT1L     CFG_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
 
 /* PCI Memory region 1: 0x8XXX_XXXX PCI Mem space: EUMBAR, etc - 16MB */
-#define CFG_IBAT2U     (PCI_MEM_SPACE1_START|BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (PCI_MEM_SPACE1_START|BATL_PP_10 | BATL_GUARDEDSTORAGE|BATL_CACHEINHIBIT)
-#define CFG_DBAT2U      CFG_IBAT2U
-#define CFG_DBAT2L      CFG_IBAT2L
+#define CONFIG_SYS_IBAT2U      (PCI_MEM_SPACE1_START|BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (PCI_MEM_SPACE1_START|BATL_PP_10 | BATL_GUARDEDSTORAGE|BATL_CACHEINHIBIT)
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
 
 /* PCI Memory region 2: PCI Devices in 0xFD space */
-#define CFG_IBAT3U     (PCI_MEM_SPACE2_START|BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_IBAT3L     (PCI_MEM_SPACE2_START|BATL_PP_10 | BATL_GUARDEDSTORAGE | BATL_CACHEINHIBIT)
-#define CFG_DBAT3U      CFG_IBAT3U
-#define CFG_DBAT3L      CFG_IBAT3L
+#define CONFIG_SYS_IBAT3U      (PCI_MEM_SPACE2_START|BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (PCI_MEM_SPACE2_START|BATL_PP_10 | BATL_GUARDEDSTORAGE | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
 
 
 /*
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS     3       /* Max number of flash banks         */
-#define CFG_MAX_FLASH_SECT      64      /* Max number of sectors in one bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* Max number of flash banks         */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* Max number of sectors in one bank */
 
-#define CFG_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)   */
-#define CFG_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)   */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)   */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)   */
 
 #if 0
 #define        CONFIG_ENV_IS_IN_FLASH      1
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE  16
+#define CONFIG_SYS_CACHELINE_SIZE  16
 
 
 /*
index 763ad4ca2e7bef299ce0919c1c82dcfd5494d680..42fbe90a486c7c2b35ee0e29349a7e86b0fa2605 100644 (file)
  * Figure out if we are booting low via flash HRCW or high via the BCSR.
  */
 #if (TEXT_BASE != 0xFFF00000)          /* Boot low (flash HRCW) */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /* ADS flavours */
-#define CFG_8260ADS            1       /* MPC8260ADS */
-#define CFG_8266ADS            2       /* MPC8266ADS */
-#define CFG_PQ2FADS            3       /* PQ2FADS-ZU or PQ2FADS-VR */
-#define CFG_8272ADS            4       /* MPC8272ADS */
+#define CONFIG_SYS_8260ADS             1       /* MPC8260ADS */
+#define CONFIG_SYS_8266ADS             2       /* MPC8266ADS */
+#define CONFIG_SYS_PQ2FADS             3       /* PQ2FADS-ZU or PQ2FADS-VR */
+#define CONFIG_SYS_8272ADS             4       /* MPC8272ADS */
 
 #ifndef CONFIG_ADSTYPE
-#define CONFIG_ADSTYPE         CFG_8260ADS
+#define CONFIG_ADSTYPE         CONFIG_SYS_8260ADS
 #endif /* CONFIG_ADSTYPE */
 
-#if CONFIG_ADSTYPE == CFG_8272ADS
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
 #define CONFIG_MPC8272         1
 #else
 #define CONFIG_MPC8260         1
-#endif /* CONFIG_ADSTYPE == CFG_8272ADS */
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
 
 #define CONFIG_BOARD_EARLY_INIT_F 1    /* Call board_early_init_f      */
 
 
 #if   CONFIG_ETHER_INDEX == 1
 
-# define CFG_PHY_ADDR          0
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK10)
-# define CFG_CMXFCR_MASK       (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_PHY_ADDR           0
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK10)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
 
 #elif CONFIG_ETHER_INDEX == 2
 
-#if CONFIG_ADSTYPE == CFG_8272ADS      /* RxCLK is CLK15, TxCLK is CLK16 */
-# define CFG_PHY_ADDR          3
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK15 | CMXFCR_TF2CS_CLK16)
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS       /* RxCLK is CLK15, TxCLK is CLK16 */
+# define CONFIG_SYS_PHY_ADDR           3
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK15 | CMXFCR_TF2CS_CLK16)
 #else                                  /* RxCLK is CLK13, TxCLK is CLK14 */
-# define CFG_PHY_ADDR          0
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-#endif /* CONFIG_ADSTYPE == CFG_8272ADS */
+# define CONFIG_SYS_PHY_ADDR           0
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
 
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
 
 #endif /* CONFIG_ETHER_INDEX */
 
-#define CFG_CPMFCR_RAMTYPE     0               /* BDs and buffers on 60x bus */
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)  /* Full duplex */
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0               /* BDs and buffers on 60x bus */
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)  /* Full duplex */
 
 #define CONFIG_MII                     /* MII PHY management           */
 #define CONFIG_BITBANGMII              /* bit-bang MII PHY management  */
  */
 #define MDIO_PORT      2               /* Port C */
 
-#if CONFIG_ADSTYPE == CFG_8272ADS
-#define CFG_MDIO_PIN   0x00002000      /* PC18 */
-#define CFG_MDC_PIN    0x00001000      /* PC19 */
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
+#define CONFIG_SYS_MDIO_PIN    0x00002000      /* PC18 */
+#define CONFIG_SYS_MDC_PIN     0x00001000      /* PC19 */
 #else
-#define CFG_MDIO_PIN   0x00400000      /* PC9  */
-#define CFG_MDC_PIN    0x00200000      /* PC10 */
-#endif /* CONFIG_ADSTYPE == CFG_8272ADS */
+#define CONFIG_SYS_MDIO_PIN    0x00400000      /* PC9  */
+#define CONFIG_SYS_MDC_PIN     0x00200000      /* PC10 */
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8272ADS */
 
-#define MDIO_ACTIVE    (iop->pdir |=  CFG_MDIO_PIN)
-#define MDIO_TRISTATE  (iop->pdir &= ~CFG_MDIO_PIN)
-#define MDIO_READ      ((iop->pdat &  CFG_MDIO_PIN) != 0)
+#define MDIO_ACTIVE    (iop->pdir |=  CONFIG_SYS_MDIO_PIN)
+#define MDIO_TRISTATE  (iop->pdir &= ~CONFIG_SYS_MDIO_PIN)
+#define MDIO_READ      ((iop->pdat &  CONFIG_SYS_MDIO_PIN) != 0)
 
-#define MDIO(bit)      if(bit) iop->pdat |=  CFG_MDIO_PIN; \
-                       else    iop->pdat &= ~CFG_MDIO_PIN
+#define MDIO(bit)      if(bit) iop->pdat |=  CONFIG_SYS_MDIO_PIN; \
+                       else    iop->pdat &= ~CONFIG_SYS_MDIO_PIN
 
-#define MDC(bit)       if(bit) iop->pdat |=  CFG_MDC_PIN; \
-                       else    iop->pdat &= ~CFG_MDC_PIN
+#define MDC(bit)       if(bit) iop->pdat |=  CONFIG_SYS_MDC_PIN; \
+                       else    iop->pdat &= ~CONFIG_SYS_MDC_PIN
 
 #define MIIDELAY       udelay(1)
 
 #endif /* CONFIG_ETHER_ON_FCC */
 
-#if CONFIG_ADSTYPE >= CFG_PQ2FADS
+#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
 #undef CONFIG_SPD_EEPROM       /* On new boards, SDRAM is soldered */
 #else
 #define CONFIG_HARD_I2C                1       /* To enable I2C support        */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 #if defined(CONFIG_SPD_EEPROM) && !defined(CONFIG_SPD_ADDR)
 #define CONFIG_SPD_ADDR                0x50
 #endif
-#endif /* CONFIG_ADSTYPE >= CFG_PQ2FADS */
+#endif /* CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS */
 
 /*PCI*/
 #ifdef CONFIG_MPC8272
 #endif
 
 #ifndef CONFIG_8260_CLKIN
-#if CONFIG_ADSTYPE >= CFG_PQ2FADS
+#if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
 #define CONFIG_8260_CLKIN      100000000       /* in Hz */
 #else
 #define CONFIG_8260_CLKIN      66000000        /* in Hz */
 
 #undef CONFIG_CMD_XIMG
 
-#if CONFIG_ADSTYPE == CFG_8272ADS
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
     #undef CONFIG_CMD_SDRAM
     #undef CONFIG_CMD_I2C
 
-#elif CONFIG_ADSTYPE >= CFG_PQ2FADS
+#elif CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS
     #undef CONFIG_CMD_SDRAM
     #undef CONFIG_CMD_I2C
     #undef CONFIG_CMD_PCI
 #else
     #undef CONFIG_CMD_PCI
 
-#endif /* CONFIG_ADSTYPE >= CFG_PQ2FADS */
+#endif /* CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS */
 
 
 #define CONFIG_BOOTDELAY       5               /* autoboot after 5 seconds */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt   */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE     256                     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE      256                     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16                      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16                      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x400000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_FLASH_BASE         0xff800000
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     32      /* max num of sects on one chip */
-#define CFG_FLASH_SIZE         8
-#define CFG_FLASH_ERASE_TOUT   8000    /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT   5       /* Timeout for Flash Write (in ms)    */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION           /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_BASE          0xff800000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      32      /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_SIZE          8
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000    /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    5       /* Timeout for Flash Write (in ms)    */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION            /* "Real" (hardware) sectors protection */
 
 /*
  * JFFS2 partitions
  */
 #define MTDIDS_DEFAULT         "nor0=mpc8260ads-0"
 #define MTDPARTS_DEFAULT       "mtdparts=mpc8260ads-0:-@1m(jffs2)"
-#define CFG_JFFS2_SORT_FRAGMENTS
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
 
 /* this is stuff came out of the Motorola docs */
-#ifndef CFG_LOWBOOT
-#define CFG_DEFAULT_IMMR       0x0F010000
+#ifndef CONFIG_SYS_LOWBOOT
+#define CONFIG_SYS_DEFAULT_IMMR        0x0F010000
 #endif
 
-#define CFG_IMMR               0xF0000000
-#define CFG_BCSR               0xF4500000
-#if CONFIG_ADSTYPE == CFG_8272ADS
-#define CFG_PCI_INT            0xF8200000
+#define CONFIG_SYS_IMMR                0xF0000000
+#define CONFIG_SYS_BCSR                0xF4500000
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
+#define CONFIG_SYS_PCI_INT             0xF8200000
 #endif
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_LSDRAM_BASE                0xFD000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_LSDRAM_BASE         0xFD000000
 
 #define RS232EN_1              0x02000002
 #define RS232EN_2              0x01000001
 #define FETH2_RST              0x08000000
 #define BCSR_PCI_MODE          0x01000000
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#ifdef CFG_LOWBOOT
+#ifdef CONFIG_SYS_LOWBOOT
 /* PQ2FADS flash HRCW = 0x0EB4B645 */
-#define CFG_HRCW_MASTER (   ( HRCW_BPS11 | HRCW_CIP )                      |\
+#define CONFIG_SYS_HRCW_MASTER (   ( HRCW_BPS11 | HRCW_CIP )                       |\
                            ( HRCW_L2CPC10 | HRCW_DPPC11 | HRCW_ISB100 )    |\
                            ( HRCW_BMS | HRCW_MMR11 | HRCW_LBPC01 | HRCW_APPC10 ) |\
                            ( HRCW_CS10PC01 | HRCW_MODCK_H0101 )             \
                        )
 #else
 /* PQ2FADS BCSR HRCW = 0x0CB23645 */
-#define CFG_HRCW_MASTER (   ( HRCW_BPS11 | HRCW_CIP )                      |\
+#define CONFIG_SYS_HRCW_MASTER (   ( HRCW_BPS11 | HRCW_CIP )                       |\
                            ( HRCW_L2CPC10 | HRCW_DPPC10 | HRCW_ISB010 )    |\
                            ( HRCW_BMS | HRCW_APPC10 )                      |\
                            ( HRCW_MODCK_H0101 )                             \
                        )
 #endif
 /* no slaves */
-#define CFG_HRCW_SLAVE1 0
-#define CFG_HRCW_SLAVE2 0
-#define CFG_HRCW_SLAVE3 0
-#define CFG_HRCW_SLAVE4 0
-#define CFG_HRCW_SLAVE5 0
-#define CFG_HRCW_SLAVE6 0
-#define CFG_HRCW_SLAVE7 0
+#define CONFIG_SYS_HRCW_SLAVE1 0
+#define CONFIG_SYS_HRCW_SLAVE2 0
+#define CONFIG_SYS_HRCW_SLAVE3 0
+#define CONFIG_SYS_HRCW_SLAVE4 0
+#define CONFIG_SYS_HRCW_SLAVE5 0
+#define CONFIG_SYS_HRCW_SLAVE6 0
+#define CONFIG_SYS_HRCW_SLAVE7 0
 
 #define BOOTFLAG_COLD  0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM  0x02    /* Software reboot           */
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 #ifdef CONFIG_BZIP2
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
 #else
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 KB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 KB for malloc()  */
 #endif /* CONFIG_BZIP2 */
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #  define CONFIG_ENV_IS_IN_FLASH       1
 #  define CONFIG_ENV_SECT_SIZE 0x40000
-#  define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE + CONFIG_ENV_SECT_SIZE)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE + CONFIG_ENV_SECT_SIZE)
 #else
 #  define CONFIG_ENV_IS_IN_NVRAM       1
-#  define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #  define CONFIG_ENV_SIZE              0x200
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         (HID0_ICE | HID0_IFEM | HID0_ABE )
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE | HID0_IFEM | HID0_ABE )
 
-#define CFG_HID2               0
+#define CONFIG_SYS_HID2                0
 
-#define CFG_SYPCR              0xFFFFFFC3
-#define CFG_BCR                        0x100C0000
-#define CFG_SIUMCR             0x0A200000
-#define CFG_SCCR               SCCR_DFBRG01
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | 0x00001801)
-#define CFG_OR0_PRELIM         0xFF800876
-#define CFG_BR1_PRELIM         (CFG_BCSR | 0x00001801)
-#define CFG_OR1_PRELIM         0xFFFF8010
+#define CONFIG_SYS_SYPCR               0xFFFFFFC3
+#define CONFIG_SYS_BCR                 0x100C0000
+#define CONFIG_SYS_SIUMCR              0x0A200000
+#define CONFIG_SYS_SCCR                SCCR_DFBRG01
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | 0x00001801)
+#define CONFIG_SYS_OR0_PRELIM          0xFF800876
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_BCSR | 0x00001801)
+#define CONFIG_SYS_OR1_PRELIM          0xFFFF8010
 
 /*We need to configure chip select to use CPLD PCI IC on MPC8272ADS*/
 
-#if CONFIG_ADSTYPE == CFG_8272ADS
-#define CFG_BR3_PRELIM (CFG_PCI_INT | 0x1801)  /* PCI interrupt controller */
-#define CFG_OR3_PRELIM 0xFFFF8010
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
+#define CONFIG_SYS_BR3_PRELIM  (CONFIG_SYS_PCI_INT | 0x1801)   /* PCI interrupt controller */
+#define CONFIG_SYS_OR3_PRELIM  0xFFFF8010
 #endif
 
-#define CFG_RMR                        RMR_CSRE
-#define CFG_TMCNTSC            (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
-#define CFG_PISCR              (PISCR_PS|PISCR_PTF|PISCR_PTE)
-#define CFG_RCCR               0
-
-#if (CONFIG_ADSTYPE == CFG_8266ADS) || (CONFIG_ADSTYPE == CFG_8272ADS)
-#undef CFG_LSDRAM_BASE         /* No local bus SDRAM on these boards */
-#endif /* CONFIG_ADSTYPE == CFG_8266ADS */
-
-#if CONFIG_ADSTYPE == CFG_PQ2FADS
-#define CFG_OR2                        0xFE002EC0
-#define CFG_PSDMR              0x824B36A3
-#define CFG_PSRT               0x13
-#define CFG_LSDMR              0x828737A3
-#define CFG_LSRT               0x13
-#define CFG_MPTPR              0x2800
-#elif CONFIG_ADSTYPE == CFG_8272ADS
-#define CFG_OR2                        0xFC002CC0
-#define CFG_PSDMR              0x834E24A3
-#define CFG_PSRT               0x13
-#define CFG_MPTPR              0x2800
+#define CONFIG_SYS_RMR                 RMR_CSRE
+#define CONFIG_SYS_TMCNTSC             (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_PISCR               (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_RCCR                0
+
+#if (CONFIG_ADSTYPE == CONFIG_SYS_8266ADS) || (CONFIG_ADSTYPE == CONFIG_SYS_8272ADS)
+#undef CONFIG_SYS_LSDRAM_BASE          /* No local bus SDRAM on these boards */
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_8266ADS */
+
+#if CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS
+#define CONFIG_SYS_OR2                 0xFE002EC0
+#define CONFIG_SYS_PSDMR               0x824B36A3
+#define CONFIG_SYS_PSRT                0x13
+#define CONFIG_SYS_LSDMR               0x828737A3
+#define CONFIG_SYS_LSRT                0x13
+#define CONFIG_SYS_MPTPR               0x2800
+#elif CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
+#define CONFIG_SYS_OR2                 0xFC002CC0
+#define CONFIG_SYS_PSDMR               0x834E24A3
+#define CONFIG_SYS_PSRT                0x13
+#define CONFIG_SYS_MPTPR               0x2800
 #else
-#define CFG_OR2                        0xFF000CA0
-#define CFG_PSDMR              0x016EB452
-#define CFG_PSRT               0x21
-#define CFG_LSDMR              0x0086A522
-#define CFG_LSRT               0x21
-#define CFG_MPTPR              0x1900
-#endif /* CONFIG_ADSTYPE == CFG_PQ2FADS */
+#define CONFIG_SYS_OR2                 0xFF000CA0
+#define CONFIG_SYS_PSDMR               0x016EB452
+#define CONFIG_SYS_PSRT                0x21
+#define CONFIG_SYS_LSDMR               0x0086A522
+#define CONFIG_SYS_LSRT                0x21
+#define CONFIG_SYS_MPTPR               0x1900
+#endif /* CONFIG_ADSTYPE == CONFIG_SYS_PQ2FADS */
 
-#define CFG_RESET_ADDRESS      0x04400000
+#define CONFIG_SYS_RESET_ADDRESS       0x04400000
 
-#if CONFIG_ADSTYPE == CFG_8272ADS
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
 
 /* PCI Memory map (if different from default map */
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE          /* Local base */
-#define CFG_PCI_SLV_MEM_BUS            0x00000000              /* PCI base */
-#define CFG_PICMR0_MASK_ATTRIB (PICMR_MASK_512MB | PICMR_ENABLE | \
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE           /* Local base */
+#define CONFIG_SYS_PCI_SLV_MEM_BUS             0x00000000              /* PCI base */
+#define CONFIG_SYS_PICMR0_MASK_ATTRIB  (PICMR_MASK_512MB | PICMR_ENABLE | \
                                 PICMR_PREFETCH_EN)
 
 /*
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_MEM_LOCAL 0x80000000          /* Local base */
-#define CFG_PCI_MSTR_MEM_BUS   0x80000000          /* PCI base   */
-#define        CFG_CPU_PCI_MEM_START   PCI_MSTR_MEM_LOCAL
-#define CFG_PCI_MSTR_MEM_SIZE  0x20000000          /* 512MB */
-#define CFG_POCMR0_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
+#define CONFIG_SYS_PCI_MSTR_MEM_LOCAL  0x80000000          /* Local base */
+#define CONFIG_SYS_PCI_MSTR_MEM_BUS    0x80000000          /* PCI base   */
+#define        CONFIG_SYS_CPU_PCI_MEM_START    PCI_MSTR_MEM_LOCAL
+#define CONFIG_SYS_PCI_MSTR_MEM_SIZE   0x20000000          /* 512MB */
+#define CONFIG_SYS_POCMR0_MASK_ATTRIB  (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
 
 /*
  * Master window that allows the CPU to access PCI Memory (non-prefetch).
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_MEMIO_LOCAL    0xA0000000          /* Local base */
-#define CFG_PCI_MSTR_MEMIO_BUS      0xA0000000          /* PCI base   */
-#define CFG_CPU_PCI_MEMIO_START     PCI_MSTR_MEMIO_LOCAL
-#define CFG_PCI_MSTR_MEMIO_SIZE     0x20000000          /* 512MB */
-#define CFG_POCMR1_MASK_ATTRIB      (POCMR_MASK_512MB | POCMR_ENABLE)
+#define CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL    0xA0000000          /* Local base */
+#define CONFIG_SYS_PCI_MSTR_MEMIO_BUS      0xA0000000          /* PCI base   */
+#define CONFIG_SYS_CPU_PCI_MEMIO_START     PCI_MSTR_MEMIO_LOCAL
+#define CONFIG_SYS_PCI_MSTR_MEMIO_SIZE     0x20000000          /* 512MB */
+#define CONFIG_SYS_POCMR1_MASK_ATTRIB      (POCMR_MASK_512MB | POCMR_ENABLE)
 
 /*
  * Master window that allows the CPU to access PCI IO space.
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_IO_LOCAL       0xF6000000          /* Local base */
-#define CFG_PCI_MSTR_IO_BUS         0x00000000          /* PCI base   */
-#define CFG_CPU_PCI_IO_START        PCI_MSTR_IO_LOCAL
-#define CFG_PCI_MSTR_IO_SIZE        0x02000000          /* 64MB */
-#define CFG_POCMR2_MASK_ATTRIB      (POCMR_MASK_32MB | POCMR_ENABLE | POCMR_PCI_IO)
+#define CONFIG_SYS_PCI_MSTR_IO_LOCAL       0xF6000000          /* Local base */
+#define CONFIG_SYS_PCI_MSTR_IO_BUS         0x00000000          /* PCI base   */
+#define CONFIG_SYS_CPU_PCI_IO_START        PCI_MSTR_IO_LOCAL
+#define CONFIG_SYS_PCI_MSTR_IO_SIZE        0x02000000          /* 64MB */
+#define CONFIG_SYS_POCMR2_MASK_ATTRIB      (POCMR_MASK_32MB | POCMR_ENABLE | POCMR_PCI_IO)
 
 
 /* PCIBR0 - for PCI IO*/
-#define CFG_PCI_MSTR0_LOCAL            CFG_PCI_MSTR_IO_LOCAL           /* Local base */
-#define CFG_PCIMSK0_MASK               ~(CFG_PCI_MSTR_IO_SIZE - 1U)    /* Size of window */
+#define CONFIG_SYS_PCI_MSTR0_LOCAL             CONFIG_SYS_PCI_MSTR_IO_LOCAL            /* Local base */
+#define CONFIG_SYS_PCIMSK0_MASK                ~(CONFIG_SYS_PCI_MSTR_IO_SIZE - 1U)     /* Size of window */
 /* PCIBR1 - prefetch and non-prefetch regions joined together */
-#define CFG_PCI_MSTR1_LOCAL            CFG_PCI_MSTR_MEM_LOCAL
-#define CFG_PCIMSK1_MASK               ~(CFG_PCI_MSTR_MEM_SIZE + CFG_PCI_MSTR_MEMIO_SIZE - 1U)
+#define CONFIG_SYS_PCI_MSTR1_LOCAL             CONFIG_SYS_PCI_MSTR_MEM_LOCAL
+#define CONFIG_SYS_PCIMSK1_MASK                ~(CONFIG_SYS_PCI_MSTR_MEM_SIZE + CONFIG_SYS_PCI_MSTR_MEMIO_SIZE - 1U)
 
 #endif /* CONFIG_ADSTYPE == CONFIG_8272ADS*/
 
-#if CONFIG_ADSTYPE == CFG_8272ADS
+#if CONFIG_ADSTYPE == CONFIG_SYS_8272ADS
 #define CONFIG_HAS_ETH1
 #endif
 
index 26c6fbe502366ecc17dc6346e188d6f199d962d8..fe1cc17960aad7851734c8458919e7430b5dc41f 100644 (file)
@@ -36,7 +36,7 @@
    !!  To make it work for the default, the TEXT_BASE define in              !!
    !!  board/mpc8266ads/config.mk must be changed from 0xfe000000 to  !!
    !!  0xfff00000                                                    !!
-   !!  The CFG_HRCW_MASTER define below must also be changed to match !!
+   !!  The CONFIG_SYS_HRCW_MASTER define below must also be changed to match !!
    !!                                                                !!
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  */
  * - Select bus for bd/buffers (see 28-13)
  * - Half duplex
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE | FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_INDEX */
 
 /* other options */
 #define CONFIG_HARD_I2C                1       /* To enable I2C support        */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 
 /* PCI */
 #define CONFIG_PCI
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE     256                     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE      256                     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16                      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16                      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
 #undef CONFIG_CLOCKS_IN_MHZ            /* clocks passsed to Linux in MHz */
                                        /* for versions < 2.4.5-pre5    */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_FLASH_BASE         0xFE000000
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
 #define FLASH_BASE             0xFE000000
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     32      /* max num of sects on one chip */
-#define CFG_FLASH_SIZE         8
-#define CFG_FLASH_ERASE_TOUT   8000    /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT   5       /* Timeout for Flash Write (in ms)    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      32      /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_SIZE          8
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000    /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    5       /* Timeout for Flash Write (in ms)    */
 
-#undef CFG_FLASH_CHECKSUM
+#undef CONFIG_SYS_FLASH_CHECKSUM
 
 /* this is stuff came out of the Motorola docs */
 /* Only change this if you also change the Hardware configuration Word */
-#define CFG_DEFAULT_IMMR       0x0F010000
+#define CONFIG_SYS_DEFAULT_IMMR        0x0F010000
 
 /* Set IMMR to 0xF0000000 or above to boot Linux  */
-#define CFG_IMMR               0xF0000000
-#define CFG_BCSR               0xF8000000
-#define CFG_PCI_INT            0xF8200000      /* PCI interrupt controller */
+#define CONFIG_SYS_IMMR                0xF0000000
+#define CONFIG_SYS_BCSR                0xF8000000
+#define CONFIG_SYS_PCI_INT             0xF8200000      /* PCI interrupt controller */
 
 /* Define CONFIG_VERY_BIG_RAM to allow use of SDRAMs larger than 256MBytes
  */
 /* What should be the base address of SDRAM DIMM and how big is
  * it (in Mbytes)?  This will normally auto-configure via the SPD.
 */
-#define CFG_SDRAM_BASE 0x00000000
-#define CFG_SDRAM_SIZE 16
+#define CONFIG_SYS_SDRAM_BASE 0x00000000
+#define CONFIG_SYS_SDRAM_SIZE 16
 
 #define SDRAM_SPD_ADDR 0x50
 
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR2_PRELIM ((CFG_SDRAM_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_BR3_PRELIM ((CFG_SDRAM_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
  *     - Back-to-back page mode
  *     - Internal bank interleaving within save device enabled
  */
-#if (CFG_SDRAM_SIZE == 64)
-#define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM_SIZE)      |\
+#if (CONFIG_SYS_SDRAM_SIZE == 64)
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM_SIZE)       |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A8             |\
                         ORxS_NUMR_12)
-#elif (CFG_SDRAM_SIZE == 16)
-#define CFG_OR2_PRELIM (0xFF000C80)
+#elif (CONFIG_SYS_SDRAM_SIZE == 16)
+#define CONFIG_SYS_OR2_PRELIM  (0xFF000C80)
 #else
 #error "INVALID SDRAM CONFIGURATION"
 #endif
  *-----------------------------------------------------------------------
  */
 
-#if (CFG_SDRAM_SIZE == 64)
+#if (CONFIG_SYS_SDRAM_SIZE == 64)
 /* With a 64 MB DIMM, the PSDMR is configured as follows:
  *
  *     - Bank Based Interleaving,
  *     - earliest timing for PRECHARGE after last data was written is 1 clock,
  *     - CAS Latency is 2.
  */
-#define CFG_PSDMR      (PSDMR_RFEN           |\
+#define CONFIG_SYS_PSDMR       (PSDMR_RFEN           |\
                         PSDMR_SDAM_A14_IS_A5 |\
                         PSDMR_BSMA_A14_A16   |\
                         PSDMR_SDA10_PBI0_A9  |\
                         PSDMR_LDOTOPRE_1C    |\
                         PSDMR_WRC_1C         |\
                         PSDMR_CL_2)
-#elif (CFG_SDRAM_SIZE == 16)
+#elif (CONFIG_SYS_SDRAM_SIZE == 16)
 /* With a 16 MB DIMM, the PSDMR is configured as follows:
  *
  *   configuration parameters found in Motorola documentation
  */
-#define CFG_PSDMR      (0x016EB452)
+#define CONFIG_SYS_PSDMR       (0x016EB452)
 #else
 #error "INVALID SDRAM CONFIGURATION"
 #endif
 #define FETHIEN                        0x08000008
 #define FETH_RST               0x04000004
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /* Use this HRCW for booting from address 0xfe00000 (JP3 in setting 1-2)  */
 /* 0x0EB2B645 */
-#define CFG_HRCW_MASTER (( HRCW_BPS11 | HRCW_CIP )                             |\
+#define CONFIG_SYS_HRCW_MASTER (( HRCW_BPS11 | HRCW_CIP )                              |\
                         ( HRCW_L2CPC10 | HRCW_DPPC11 | HRCW_ISB010 )           |\
                         ( HRCW_BMS | HRCW_MMR11 | HRCW_LBPC01 | HRCW_APPC10 )  |\
                         ( HRCW_CS10PC01 | HRCW_MODCK_H0101 )                   \
                        )
 
 /* Use this HRCW for booting from address 0xfff0000 (JP3 in setting 2-3)  */
-/* #define CFG_HRCW_MASTER 0x0cb23645 */
+/* #define CONFIG_SYS_HRCW_MASTER 0x0cb23645 */
 
 /* This value should actually be situated in the first 256 bytes of the FLASH
        which on the standard MPC8266ADS board is at address 0xFF800000
 */
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1 0
-#define CFG_HRCW_SLAVE2 0
-#define CFG_HRCW_SLAVE3 0
-#define CFG_HRCW_SLAVE4 0
-#define CFG_HRCW_SLAVE5 0
-#define CFG_HRCW_SLAVE6 0
-#define CFG_HRCW_SLAVE7 0
+#define CONFIG_SYS_HRCW_SLAVE1 0
+#define CONFIG_SYS_HRCW_SLAVE2 0
+#define CONFIG_SYS_HRCW_SLAVE3 0
+#define CONFIG_SYS_HRCW_SLAVE4 0
+#define CONFIG_SYS_HRCW_SLAVE5 0
+#define CONFIG_SYS_HRCW_SLAVE6 0
+#define CONFIG_SYS_HRCW_SLAVE7 0
 
 #define BOOTFLAG_COLD  0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM  0x02    /* Software reboot           */
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #  define CONFIG_ENV_IS_IN_FLASH       1
-#    define CONFIG_ENV_ADDR    (CFG_MONITOR_BASE + 0x40000)
+#    define CONFIG_ENV_ADDR    (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #    define CONFIG_ENV_SECT_SIZE       0x40000
 #else
 #  define CONFIG_ENV_IS_IN_NVRAM       1
-#  define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #  define CONFIG_ENV_SIZE              0x200
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-/*#define CFG_HID0_INIT                0 */
-#define CFG_HID0_INIT  (HID0_ICE  |\
+/*#define CONFIG_SYS_HID0_INIT         0 */
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE  |\
                         HID0_DCE  |\
                         HID0_ICFI |\
                         HID0_DCI  |\
                         HID0_IFEM |\
                         HID0_ABE)
 
-#define CFG_HID0_FINAL         (HID0_ICE | HID0_IFEM | HID0_ABE )
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE | HID0_IFEM | HID0_ABE )
 
-#define CFG_HID2               0
+#define CONFIG_SYS_HID2                0
 
-#define CFG_SYPCR              0xFFFFFFC3
-#define CFG_BCR                        0x004C0000
-#define CFG_SIUMCR             0x4E64C000
-#define CFG_SCCR               0x00000000
+#define CONFIG_SYS_SYPCR               0xFFFFFFC3
+#define CONFIG_SYS_BCR                 0x004C0000
+#define CONFIG_SYS_SIUMCR              0x4E64C000
+#define CONFIG_SYS_SCCR                0x00000000
 
 /*     local bus memory map
  *
  *     0xF8300000-0xF8307FFF    32KB   EEPROM
  *     0xFE000000-0xFFFFFFFF    32MB   flash
  */
-#define CFG_BR0_PRELIM 0xFE001801              /* flash */
-#define CFG_OR0_PRELIM 0xFE000836
-#define CFG_BR1_PRELIM (CFG_BCSR | 0x1801)     /* BCSR */
-#define CFG_OR1_PRELIM 0xFFFF8010
-#define CFG_BR4_PRELIM 0xF8300801              /* EEPROM */
-#define CFG_OR4_PRELIM 0xFFFF8846
-#define CFG_BR5_PRELIM 0xF8100801              /* PM5350 ATM UNI */
-#define CFG_OR5_PRELIM 0xFFFF8E36
-#define CFG_BR8_PRELIM (CFG_PCI_INT | 0x1801)  /* PCI interrupt controller */
-#define CFG_OR8_PRELIM 0xFFFF8010
-
-#define CFG_RMR                        0x0001
-#define CFG_TMCNTSC            (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
-#define CFG_PISCR              (PISCR_PS|PISCR_PTF|PISCR_PTE)
-#define CFG_RCCR               0
-#define CFG_MPTPR              0x00001900
-#define CFG_PSRT               0x00000021
+#define CONFIG_SYS_BR0_PRELIM  0xFE001801              /* flash */
+#define CONFIG_SYS_OR0_PRELIM  0xFE000836
+#define CONFIG_SYS_BR1_PRELIM  (CONFIG_SYS_BCSR | 0x1801)      /* BCSR */
+#define CONFIG_SYS_OR1_PRELIM  0xFFFF8010
+#define CONFIG_SYS_BR4_PRELIM  0xF8300801              /* EEPROM */
+#define CONFIG_SYS_OR4_PRELIM  0xFFFF8846
+#define CONFIG_SYS_BR5_PRELIM  0xF8100801              /* PM5350 ATM UNI */
+#define CONFIG_SYS_OR5_PRELIM  0xFFFF8E36
+#define CONFIG_SYS_BR8_PRELIM  (CONFIG_SYS_PCI_INT | 0x1801)   /* PCI interrupt controller */
+#define CONFIG_SYS_OR8_PRELIM  0xFFFF8010
+
+#define CONFIG_SYS_RMR                 0x0001
+#define CONFIG_SYS_TMCNTSC             (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_PISCR               (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_RCCR                0
+#define CONFIG_SYS_MPTPR               0x00001900
+#define CONFIG_SYS_PSRT                0x00000021
 
 /* This address must not exist */
-#define CFG_RESET_ADDRESS      0xFCFFFF00
+#define CONFIG_SYS_RESET_ADDRESS       0xFCFFFF00
 
 /* PCI Memory map (if different from default map */
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE          /* Local base */
-#define CFG_PCI_SLV_MEM_BUS            0x00000000              /* PCI base */
-#define CFG_PICMR0_MASK_ATTRIB (PICMR_MASK_512MB | PICMR_ENABLE | \
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE           /* Local base */
+#define CONFIG_SYS_PCI_SLV_MEM_BUS             0x00000000              /* PCI base */
+#define CONFIG_SYS_PICMR0_MASK_ATTRIB  (PICMR_MASK_512MB | PICMR_ENABLE | \
                                 PICMR_PREFETCH_EN)
 
 /*
  */
 
 /* PCIBR0 */
-#define CFG_PCI_MSTR0_LOCAL            0x80000000              /* Local base */
-#define CFG_PCIMSK0_MASK               PCIMSK_1GB              /* Size of window */
+#define CONFIG_SYS_PCI_MSTR0_LOCAL             0x80000000              /* Local base */
+#define CONFIG_SYS_PCIMSK0_MASK                PCIMSK_1GB              /* Size of window */
 /* PCIBR1 */
-#define CFG_PCI_MSTR1_LOCAL            0xF4000000              /* Local base */
-#define CFG_PCIMSK1_MASK               PCIMSK_64MB             /* Size of window */
+#define CONFIG_SYS_PCI_MSTR1_LOCAL             0xF4000000              /* Local base */
+#define CONFIG_SYS_PCIMSK1_MASK                PCIMSK_64MB             /* Size of window */
 
 /*
  * Master window that allows the CPU to access PCI Memory (prefetch).
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_MEM_LOCAL 0x80000000                      /* Local base */
-#define CFG_PCI_MSTR_MEM_BUS   0x80000000                      /* PCI base   */
-#define CFG_CPU_PCI_MEM_START  PCI_MSTR_MEM_LOCAL
-#define CFG_PCI_MSTR_MEM_SIZE  0x20000000                      /* 512MB */
-#define CFG_POCMR0_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
+#define CONFIG_SYS_PCI_MSTR_MEM_LOCAL  0x80000000                      /* Local base */
+#define CONFIG_SYS_PCI_MSTR_MEM_BUS    0x80000000                      /* PCI base   */
+#define CONFIG_SYS_CPU_PCI_MEM_START   PCI_MSTR_MEM_LOCAL
+#define CONFIG_SYS_PCI_MSTR_MEM_SIZE   0x20000000                      /* 512MB */
+#define CONFIG_SYS_POCMR0_MASK_ATTRIB  (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
 
 /*
  * Master window that allows the CPU to access PCI Memory (non-prefetch).
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_MEMIO_LOCAL    0xA0000000                 /* Local base */
-#define CFG_PCI_MSTR_MEMIO_BUS     0xA0000000                  /* PCI base   */
-#define CFG_CPU_PCI_MEMIO_START            PCI_MSTR_MEMIO_LOCAL
-#define CFG_PCI_MSTR_MEMIO_SIZE            0x20000000                  /* 512MB */
-#define CFG_POCMR1_MASK_ATTRIB     (POCMR_MASK_512MB | POCMR_ENABLE)
+#define CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL    0xA0000000                  /* Local base */
+#define CONFIG_SYS_PCI_MSTR_MEMIO_BUS      0xA0000000                  /* PCI base   */
+#define CONFIG_SYS_CPU_PCI_MEMIO_START     PCI_MSTR_MEMIO_LOCAL
+#define CONFIG_SYS_PCI_MSTR_MEMIO_SIZE     0x20000000                  /* 512MB */
+#define CONFIG_SYS_POCMR1_MASK_ATTRIB      (POCMR_MASK_512MB | POCMR_ENABLE)
 
 /*
  * Master window that allows the CPU to access PCI IO space.
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_IO_LOCAL      0xF4000000                  /* Local base */
-#define CFG_PCI_MSTR_IO_BUS        0xF4000000                  /* PCI base   */
-#define CFG_CPU_PCI_IO_START       PCI_MSTR_IO_LOCAL
-#define CFG_PCI_MSTR_IO_SIZE       0x04000000                  /* 64MB */
-#define CFG_POCMR2_MASK_ATTRIB     (POCMR_MASK_64MB | POCMR_ENABLE | POCMR_PCI_IO)
+#define CONFIG_SYS_PCI_MSTR_IO_LOCAL       0xF4000000                  /* Local base */
+#define CONFIG_SYS_PCI_MSTR_IO_BUS         0xF4000000                  /* PCI base   */
+#define CONFIG_SYS_CPU_PCI_IO_START        PCI_MSTR_IO_LOCAL
+#define CONFIG_SYS_PCI_MSTR_IO_SIZE        0x04000000                  /* 64MB */
+#define CONFIG_SYS_POCMR2_MASK_ATTRIB      (POCMR_MASK_64MB | POCMR_ENABLE | POCMR_PCI_IO)
 
 /*
  * JFFS2 partitions
index 30c42432284ef3b50b69b110d78a2270cb7b7669..fc3fa13c7a3766cdf34a29896344c4eee587201c 100644 (file)
@@ -49,9 +49,9 @@
 #define CONFIG_VSC7385_ENET
 #define CONFIG_TSEC2
 
-#ifdef CFG_66MHZ
+#ifdef CONFIG_SYS_66MHZ
 #define CONFIG_83XX_CLKIN      66666667        /* in Hz */
-#elif defined(CFG_33MHZ)
+#elif defined(CONFIG_SYS_33MHZ)
 #define CONFIG_83XX_CLKIN      33333333        /* in Hz */
 #else
 #error Unknown oscillator frequency.
 
 #define CONFIG_BOARD_EARLY_INIT_F              /* call board_pre_init */
 
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 #if defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
-#define CONFIG_DEFAULT_IMMR    CFG_IMMR
+#define CONFIG_DEFAULT_IMMR    CONFIG_SYS_IMMR
 #endif
 
-#define CFG_MEMTEST_START      0x00001000
-#define CFG_MEMTEST_END                0x07f00000
+#define CONFIG_SYS_MEMTEST_START       0x00001000
+#define CONFIG_SYS_MEMTEST_END         0x07f00000
 
 /* Early revs of this board will lock up hard when attempting
  * to access the PMC registers, unless a JTAG debugger is
  * connected, or some resistor modifications are made.
  */
-#define CFG_8313ERDB_BROKEN_PMC 1
+#define CONFIG_SYS_8313ERDB_BROKEN_PMC 1
 
-#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth (0-3) */
-#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count (0-7) */
+#define CONFIG_SYS_ACR_PIPE_DEP        3       /* Arbiter pipeline depth (0-3) */
+#define CONFIG_SYS_ACR_RPTCNT          3       /* Arbiter repeat count (0-7) */
 
 /*
  * Device configurations
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
 
 /*
  * Manually set up DDR parameters, as this board does not
  * seem to have the SPD connected to I2C.
  */
-#define CFG_DDR_SIZE           128             /* MB */
-#define CFG_DDR_CONFIG         ( CSCONFIG_EN \
+#define CONFIG_SYS_DDR_SIZE            128             /* MB */
+#define CONFIG_SYS_DDR_CONFIG          ( CSCONFIG_EN \
                                | 0x00010000 /* TODO */ \
                                | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10 )
                                /* 0x80010102 */
 
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_RRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WWT_SHIFT ) \
                                | ( 8 << TIMING_CFG0_ODT_PD_EXIT_SHIFT ) \
                                | ( 2 << TIMING_CFG0_MRS_CYC_SHIFT ) )
                                /* 0x00220802 */
-#define CFG_DDR_TIMING_1       ( ( 3 << TIMING_CFG1_PRETOACT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_1        ( ( 3 << TIMING_CFG1_PRETOACT_SHIFT ) \
                                | ( 8 << TIMING_CFG1_ACTTOPRE_SHIFT ) \
                                | ( 3 << TIMING_CFG1_ACTTORW_SHIFT ) \
                                | ( 5 << TIMING_CFG1_CASLAT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_ACTTOACT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_WRTORD_SHIFT ) )
                                /* 0x3835a322 */
-#define CFG_DDR_TIMING_2       ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_2        ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
                                | ( 5 << TIMING_CFG2_CPO_SHIFT ) \
                                | ( 2 << TIMING_CFG2_WR_LAT_DELAY_SHIFT ) \
                                | ( 2 << TIMING_CFG2_RD_TO_PRE_SHIFT ) \
                                | ( 3 << TIMING_CFG2_CKE_PLS_SHIFT ) \
                                | ( 6 << TIMING_CFG2_FOUR_ACT_SHIFT) )
                                /* 0x129048c6 */ /* P9-45,may need tuning */
-#define CFG_DDR_INTERVAL       ( ( 1296 << SDRAM_INTERVAL_REFINT_SHIFT ) \
+#define CONFIG_SYS_DDR_INTERVAL        ( ( 1296 << SDRAM_INTERVAL_REFINT_SHIFT ) \
                                | ( 1280 << SDRAM_INTERVAL_BSTOPRE_SHIFT ) )
                                /* 0x05100500 */
 #if defined(CONFIG_DDR_2T_TIMING)
-#define CFG_SDRAM_CFG          ( SDRAM_CFG_SREN \
+#define CONFIG_SYS_SDRAM_CFG           ( SDRAM_CFG_SREN \
                                | SDRAM_CFG_SDRAM_TYPE_DDR2 \
                                | SDRAM_CFG_2T_EN \
                                | SDRAM_CFG_DBW_32 )
 #else
-#define CFG_SDRAM_CFG          ( SDRAM_CFG_SREN \
+#define CONFIG_SYS_SDRAM_CFG           ( SDRAM_CFG_SREN \
                                | SDRAM_CFG_SDRAM_TYPE_DDR2 \
                                | SDRAM_CFG_32_BE )
                                /* 0x43080000 */
 #endif
-#define CFG_SDRAM_CFG2         0x00401000
+#define CONFIG_SYS_SDRAM_CFG2          0x00401000
 /* set burst length to 8 for 32-bit data path */
-#define CFG_DDR_MODE           ( ( 0x4448 << SDRAM_MODE_ESD_SHIFT ) \
+#define CONFIG_SYS_DDR_MODE            ( ( 0x4448 << SDRAM_MODE_ESD_SHIFT ) \
                                | ( 0x0632 << SDRAM_MODE_SD_SHIFT ) )
                                /* 0x44480632 */
-#define CFG_DDR_MODE_2         0x8000C000
+#define CONFIG_SYS_DDR_MODE_2          0x8000C000
 
-#define CFG_DDR_CLK_CNTL       DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
+#define CONFIG_SYS_DDR_CLK_CNTL        DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
                                /*0x02000000*/
-#define CFG_DDRCDR_VALUE       ( DDRCDR_EN \
+#define CONFIG_SYS_DDRCDR_VALUE        ( DDRCDR_EN \
                                | DDRCDR_PZ_NOMZ \
                                | DDRCDR_NZ_NOMZ \
                                | DDRCDR_M_ODR )
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI                          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI                           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER                        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000      /* start of FLASH   */
-#define CFG_FLASH_SIZE         8               /* flash size in MB */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
-#define CFG_FLASH_EMPTY_INFO                   /* display empty sectors */
-#define CFG_FLASH_USE_BUFFER_WRITE             /* buffer up multiple bytes */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000      /* start of FLASH   */
+#define CONFIG_SYS_FLASH_SIZE          8               /* flash size in MB */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_EMPTY_INFO                    /* display empty sectors */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE              /* buffer up multiple bytes */
 
-#define CFG_NOR_BR_PRELIM      (CFG_FLASH_BASE |       /* flash Base address */ \
+#define CONFIG_SYS_NOR_BR_PRELIM       (CONFIG_SYS_FLASH_BASE |        /* flash Base address */ \
                                (2 << BR_PS_SHIFT) |    /* 16 bit port size */ \
                                BR_V)                   /* valid */
-#define CFG_NOR_OR_PRELIM      ( 0xFF800000            /* 8 MByte */ \
+#define CONFIG_SYS_NOR_OR_PRELIM       ( 0xFF800000            /* 8 MByte */ \
                                | OR_GPCM_XACS \
                                | OR_GPCM_SCY_9 \
                                | OR_GPCM_EHTR \
                                | OR_GPCM_EAD )
                                /* 0xFF006FF7   TODO SLOW 16 MB flash size */
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE  /* window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000017      /* 16 MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE   /* window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000017      /* 16 MB window size */
 
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     135             /* sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      135             /* sectors per device */
 
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE) && !defined(CONFIG_NAND_SPL)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) && !defined(CONFIG_NAND_SPL)
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xFD000000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000          /* End of used area in RAM*/
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xFD000000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000          /* End of used area in RAM*/
 
-#define CFG_GBL_DATA_SIZE      0x100           /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100           /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (512 * 1024)    /* Reserved for malloc */
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024)    /* Reserved for malloc */
 
 /*
  * Local Bus LCRR and LBCR regs
  */
-#define CFG_LCRR       LCRR_EADC_1 | LCRR_CLKDIV_4
-#define CFG_LBC_LBCR   ( 0x00040000 /* TODO */ \
+#define CONFIG_SYS_LCRR        LCRR_EADC_1 | LCRR_CLKDIV_4
+#define CONFIG_SYS_LBC_LBCR    ( 0x00040000 /* TODO */ \
                        | (0xFF << LBCR_BMT_SHIFT) \
                        | 0xF ) /* 0x0004ff0f */
 
-#define CFG_LBC_MRTPR  0x20000000  /*TODO */   /* LB refresh timer prescal, 266MHz/32 */
+#define CONFIG_SYS_LBC_MRTPR   0x20000000  /*TODO */   /* LB refresh timer prescal, 266MHz/32 */
 
 /* drivers/mtd/nand/nand.c */
 #ifdef CONFIG_NAND_SPL
-#define CFG_NAND_BASE          0xFFF00000
+#define CONFIG_SYS_NAND_BASE           0xFFF00000
 #else
-#define CFG_NAND_BASE          0xE2800000
+#define CONFIG_SYS_NAND_BASE           0xE2800000
 #endif
 
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 #define CONFIG_CMD_NAND 1
 #define CONFIG_NAND_FSL_ELBC 1
-#define CFG_NAND_BLOCK_SIZE 16384
+#define CONFIG_SYS_NAND_BLOCK_SIZE 16384
 
-#define CFG_NAND_U_BOOT_SIZE  (512 << 10)
-#define CFG_NAND_U_BOOT_DST   0x00100000
-#define CFG_NAND_U_BOOT_START 0x00100100
-#define CFG_NAND_U_BOOT_OFFS  16384
-#define CFG_NAND_U_BOOT_RELOC 0x00010000
+#define CONFIG_SYS_NAND_U_BOOT_SIZE  (512 << 10)
+#define CONFIG_SYS_NAND_U_BOOT_DST   0x00100000
+#define CONFIG_SYS_NAND_U_BOOT_START 0x00100100
+#define CONFIG_SYS_NAND_U_BOOT_OFFS  16384
+#define CONFIG_SYS_NAND_U_BOOT_RELOC 0x00010000
 
-#define CFG_NAND_BR_PRELIM     ( CFG_NAND_BASE \
+#define CONFIG_SYS_NAND_BR_PRELIM      ( CONFIG_SYS_NAND_BASE \
                                | (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
                                | BR_PS_8               /* Port Size = 8 bit */ \
                                | BR_MS_FCM             /* MSEL = FCM */ \
                                | BR_V )                /* valid */
-#define CFG_NAND_OR_PRELIM     ( 0xFFFF8000            /* length 32K */ \
+#define CONFIG_SYS_NAND_OR_PRELIM      ( 0xFFFF8000            /* length 32K */ \
                                | OR_FCM_CSCT \
                                | OR_FCM_CST \
                                | OR_FCM_CHT \
                                /* 0xFFFF8396 */
 
 #ifdef CONFIG_NAND_U_BOOT
-#define CFG_BR0_PRELIM CFG_NAND_BR_PRELIM
-#define CFG_OR0_PRELIM CFG_NAND_OR_PRELIM
-#define CFG_BR1_PRELIM CFG_NOR_BR_PRELIM
-#define CFG_OR1_PRELIM CFG_NOR_OR_PRELIM
+#define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_NAND_BR_PRELIM
+#define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_NAND_OR_PRELIM
+#define CONFIG_SYS_BR1_PRELIM CONFIG_SYS_NOR_BR_PRELIM
+#define CONFIG_SYS_OR1_PRELIM CONFIG_SYS_NOR_OR_PRELIM
 #else
-#define CFG_BR0_PRELIM CFG_NOR_BR_PRELIM
-#define CFG_OR0_PRELIM CFG_NOR_OR_PRELIM
-#define CFG_BR1_PRELIM CFG_NAND_BR_PRELIM
-#define CFG_OR1_PRELIM CFG_NAND_OR_PRELIM
+#define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_NOR_BR_PRELIM
+#define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_NOR_OR_PRELIM
+#define CONFIG_SYS_BR1_PRELIM CONFIG_SYS_NAND_BR_PRELIM
+#define CONFIG_SYS_OR1_PRELIM CONFIG_SYS_NAND_OR_PRELIM
 #endif
 
-#define CFG_LBLAWBAR1_PRELIM   CFG_NAND_BASE
-#define CFG_LBLAWAR1_PRELIM    0x8000000E      /* 32KB  */
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_NAND_BASE
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000000E      /* 32KB  */
 
-#define CFG_NAND_LBLAWBAR_PRELIM CFG_LBLAWBAR1_PRELIM
-#define CFG_NAND_LBLAWAR_PRELIM CFG_LBLAWAR1_PRELIM
+#define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR1_PRELIM
+#define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR1_PRELIM
 
 /* local bus read write buffer mapping */
-#define CFG_BR3_PRELIM         0xFA000801      /* map at 0xFA000000 */
-#define CFG_OR3_PRELIM         0xFFFF8FF7      /* 32kB */
-#define CFG_LBLAWBAR3_PRELIM   0xFA000000
-#define CFG_LBLAWAR3_PRELIM    0x8000000E      /* 32KB  */
+#define CONFIG_SYS_BR3_PRELIM          0xFA000801      /* map at 0xFA000000 */
+#define CONFIG_SYS_OR3_PRELIM          0xFFFF8FF7      /* 32kB */
+#define CONFIG_SYS_LBLAWBAR3_PRELIM    0xFA000000
+#define CONFIG_SYS_LBLAWAR3_PRELIM     0x8000000E      /* 32KB  */
 
 /* Vitesse 7385 */
 
-#define CFG_VSC7385_BASE       0xF0000000
+#define CONFIG_SYS_VSC7385_BASE        0xF0000000
 
 #ifdef CONFIG_VSC7385_ENET
 
-#define CFG_BR2_PRELIM         0xf0000801      /* VSC7385 Base address */
-#define CFG_OR2_PRELIM         0xfffe09ff      /* VSC7385, 128K bytes*/
-#define CFG_LBLAWBAR2_PRELIM   CFG_VSC7385_BASE/* Access window base at VSC7385 base */
-#define CFG_LBLAWAR2_PRELIM    0x80000010      /* Access window size 128K */
+#define CONFIG_SYS_BR2_PRELIM          0xf0000801      /* VSC7385 Base address */
+#define CONFIG_SYS_OR2_PRELIM          0xfffe09ff      /* VSC7385, 128K bytes*/
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    CONFIG_SYS_VSC7385_BASE/* Access window base at VSC7385 base */
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000010      /* Access window size 128K */
 
 #endif
 
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 
 /* I2C */
 #define CONFIG_HARD_I2C                        /* I2C with hardware support*/
 #define CONFIG_FSL_I2C
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {{0,0x69}} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {{0,0x69}} /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI1_MMIO_BASE     0x90000000
-#define CFG_PCI1_MMIO_PHYS     CFG_PCI1_MMIO_BASE
-#define CFG_PCI1_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xE2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_MMIO_BASE      0x90000000
+#define CONFIG_SYS_PCI1_MMIO_PHYS      CONFIG_SYS_PCI1_MMIO_BASE
+#define CONFIG_SYS_PCI1_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xE2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
 
 #define CONFIG_PCI_PNP         /* do pci plug-and-play */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 /*
  * TSEC
 #ifdef CONFIG_TSEC1
 #define CONFIG_HAS_ETH0
 #define CONFIG_TSEC1_NAME      "TSEC0"
-#define CFG_TSEC1_OFFSET       0x24000
+#define CONFIG_SYS_TSEC1_OFFSET        0x24000
 #define TSEC1_PHY_ADDR         0x1c
 #define TSEC1_FLAGS            TSEC_GIGABIT
 #define TSEC1_PHYIDX           0
 #ifdef CONFIG_TSEC2
 #define CONFIG_HAS_ETH1
 #define CONFIG_TSEC2_NAME      "TSEC1"
-#define CFG_TSEC2_OFFSET       0x25000
+#define CONFIG_SYS_TSEC2_OFFSET        0x25000
 #define TSEC2_PHY_ADDR         4
 #define TSEC2_FLAGS            TSEC_GIGABIT
 #define TSEC2_PHYIDX           0
  * Configure on-board RTC
  */
 #define CONFIG_RTC_DS1337
-#define CFG_I2C_RTC_ADDR               0x68
+#define CONFIG_SYS_I2C_RTC_ADDR                0x68
 
 /*
  * Environment
 #if defined(CONFIG_NAND_U_BOOT)
        #define CONFIG_ENV_IS_IN_NAND   1
        #define CONFIG_ENV_OFFSET               (512 * 1024)
-       #define CONFIG_ENV_SECT_SIZE    CFG_NAND_BLOCK_SIZE
+       #define CONFIG_ENV_SECT_SIZE    CONFIG_SYS_NAND_BLOCK_SIZE
        #define CONFIG_ENV_SIZE         CONFIG_ENV_SECT_SIZE
        #define CONFIG_ENV_SIZE_REDUND  CONFIG_ENV_SIZE
        #define CONFIG_ENV_RANGE                (CONFIG_ENV_SECT_SIZE * 4)
        #define CONFIG_ENV_OFFSET_REDUND        (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE)
-#elif !defined(CFG_RAMBOOT)
+#elif !defined(CONFIG_SYS_RAMBOOT)
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x10000 /* 64K(one sector) for env */
        #define CONFIG_ENV_SIZE         0x2000
 
 /* Address and size of Redundant Environment Sector */
 #else
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_PCI
 
-#if defined(CFG_RAMBOOT) && !defined(CONFIG_NAND_U_BOOT)
+#if defined(CONFIG_SYS_RAMBOOT) && !defined(CONFIG_NAND_U_BOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
-#define CFG_RCWH_PCIHOST 0x80000000    /* PCIHOST  */
+#define CONFIG_SYS_RCWH_PCIHOST 0x80000000     /* PCIHOST  */
 
-#ifdef CFG_66MHZ
+#ifdef CONFIG_SYS_66MHZ
 
 /* 66MHz IN, 133MHz CSB, 266 DDR, 266 CORE */
 /* 0x62040000 */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        0x20000000 /* reserved, must be set */ |\
        HRCWL_DDRCM |\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN_2X1 |\
        HRCWL_CORE_TO_CSB_2X1)
 
-#define CFG_NS16550_CLK (CONFIG_83XX_CLKIN * 2)
+#define CONFIG_SYS_NS16550_CLK (CONFIG_83XX_CLKIN * 2)
 
-#elif defined(CFG_33MHZ)
+#elif defined(CONFIG_SYS_33MHZ)
 
 /* 33MHz IN, 165MHz CSB, 330 DDR, 330 CORE */
 /* 0x65040000 */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        0x20000000 /* reserved, must be set */ |\
        HRCWL_DDRCM |\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN_5X1 |\
        HRCWL_CORE_TO_CSB_2X1)
 
-#define CFG_NS16550_CLK (CONFIG_83XX_CLKIN * 5)
+#define CONFIG_SYS_NS16550_CLK (CONFIG_83XX_CLKIN * 5)
 
 #endif
 
-#define CFG_HRCW_HIGH_BASE (\
+#define CONFIG_SYS_HRCW_HIGH_BASE (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_CORE_ENABLE |\
        HRCWH_BIG_ENDIAN)
 
 #ifdef CONFIG_NAND_SPL
-#define CFG_HRCW_HIGH (CFG_HRCW_HIGH_BASE |\
+#define CONFIG_SYS_HRCW_HIGH (CONFIG_SYS_HRCW_HIGH_BASE |\
                       HRCWH_FROM_0XFFF00100 |\
                       HRCWH_ROM_LOC_NAND_SP_8BIT |\
                       HRCWH_RL_EXT_NAND)
 #else
-#define CFG_HRCW_HIGH (CFG_HRCW_HIGH_BASE |\
+#define CONFIG_SYS_HRCW_HIGH (CONFIG_SYS_HRCW_HIGH_BASE |\
                       HRCWH_FROM_0X00000100 |\
                       HRCWH_ROM_LOC_LOCAL_16BIT |\
                       HRCWH_RL_EXT_LEGACY)
 #endif
 
 /* System IO Config */
-#define CFG_SICRH      (SICRH_TSOBI1 | SICRH_TSOBI2)   /* RGMII */
-#define CFG_SICRL      SICRL_USBDR                     /* Enable Internal USB Phy  */
+#define CONFIG_SYS_SICRH       (SICRH_TSOBI1 | SICRH_TSOBI2)   /* RGMII */
+#define CONFIG_SYS_SICRL       SICRL_USBDR                     /* Enable Internal USB Phy  */
 
-#define CFG_HID0_INIT  0x000000000
-#define CFG_HID0_FINAL (HID0_ENABLE_MACHINE_CHECK | \
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  (HID0_ENABLE_MACHINE_CHECK | \
                         HID0_ENABLE_DYNAMIC_POWER_MANAGMENT)
 
-#define CFG_HID2 HID2_HBE
+#define CONFIG_SYS_HID2 HID2_HBE
 
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR @ 0x00000000 */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* PCI @ 0x80000000 */
-#define CFG_IBAT1L     (CFG_PCI1_MEM_BASE | BATL_PP_10)
-#define CFG_IBAT1U     (CFG_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* PCI2 not supported on 8313 */
-#define CFG_IBAT3L     (0)
-#define CFG_IBAT3U     (0)
-#define CFG_IBAT4L     (0)
-#define CFG_IBAT4U     (0)
+#define CONFIG_SYS_IBAT3L      (0)
+#define CONFIG_SYS_IBAT3U      (0)
+#define CONFIG_SYS_IBAT4L      (0)
+#define CONFIG_SYS_IBAT4U      (0)
 
 /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 & BCSR @ 0xE2400000 */
-#define CFG_IBAT5L     (CFG_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* SDRAM @ 0xF0000000, stack in DCACHE 0xFDF00000 & FLASH @ 0xFE000000 */
-#define CFG_IBAT6L     (0xF0000000 | BATL_PP_10)
-#define CFG_IBAT6U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0xF0000000 | BATL_PP_10)
+#define CONFIG_SYS_IBAT6U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
index 83f64c6a53109a31b3ad776506c19d604b9fb207..1225270ffbeb938ef478f95b1c793d720869fa32 100644 (file)
  * if CLKIN is 66.66MHz, then
  * CSB = 133MHz, CORE = 400MHz, DDRC = 266MHz, LBC = 133MHz
  */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_2X1 |\
        HRCWL_SVCOD_DIV_2 |\
        HRCWL_CSB_TO_CLKIN_2X1 |\
        HRCWL_CORE_TO_CSB_3X1)
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_CORE_ENABLE |\
 /*
  * System IO Config
  */
-#define CFG_SICRH              0x00000000
-#define CFG_SICRL              0x00000000 /* 3.3V, no delay */
+#define CONFIG_SYS_SICRH               0x00000000
+#define CONFIG_SYS_SICRL               0x00000000 /* 3.3V, no delay */
 
 #define CONFIG_BOARD_EARLY_INIT_F /* call board_pre_init */
 
 /*
  * IMMR new address
  */
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 /*
  * Arbiter Setup
  */
-#define CFG_ACR_PIPE_DEP       3 /* Arbiter pipeline depth is 4 */
-#define CFG_ACR_RPTCNT         3 /* Arbiter repeat count is 4 */
-#define CFG_SPCR_TSECEP                3 /* eTSEC emergency priority is highest */
+#define CONFIG_SYS_ACR_PIPE_DEP        3 /* Arbiter pipeline depth is 4 */
+#define CONFIG_SYS_ACR_RPTCNT          3 /* Arbiter repeat count is 4 */
+#define CONFIG_SYS_SPCR_TSECEP         3 /* eTSEC emergency priority is highest */
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000 /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDR_SDRAM_CLK_CNTL DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
-#define CFG_DDRCDR_VALUE       ( DDRCDR_EN \
+#define CONFIG_SYS_DDR_BASE            0x00000000 /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
+#define CONFIG_SYS_DDRCDR_VALUE        ( DDRCDR_EN \
                                | DDRCDR_PZ_LOZ \
                                | DDRCDR_NZ_LOZ \
                                | DDRCDR_ODT \
  * Manually set up DDR parameters
  * consist of two chips HY5PS12621BFP-C4 from HYNIX
  */
-#define CFG_DDR_SIZE           128 /* MB */
-#define CFG_DDR_CS0_BNDS       0x00000007
-#define CFG_DDR_CS0_CONFIG     ( CSCONFIG_EN \
+#define CONFIG_SYS_DDR_SIZE            128 /* MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x00000007
+#define CONFIG_SYS_DDR_CS0_CONFIG      ( CSCONFIG_EN \
                                | 0x00010000  /* ODT_WR to CSn */ \
                                | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10 )
                                /* 0x80010102 */
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_RRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WWT_SHIFT ) \
                                | ( 8 << TIMING_CFG0_ODT_PD_EXIT_SHIFT ) \
                                | ( 2 << TIMING_CFG0_MRS_CYC_SHIFT ) )
                                /* 0x00220802 */
-#define CFG_DDR_TIMING_1       ( ( 3 << TIMING_CFG1_PRETOACT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_1        ( ( 3 << TIMING_CFG1_PRETOACT_SHIFT ) \
                                | ( 9 << TIMING_CFG1_ACTTOPRE_SHIFT ) \
                                | ( 3 << TIMING_CFG1_ACTTORW_SHIFT ) \
                                | ( 5 << TIMING_CFG1_CASLAT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_ACTTOACT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_WRTORD_SHIFT ) )
                                /* 0x39356222 */
-#define CFG_DDR_TIMING_2       ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_2        ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
                                | ( 4 << TIMING_CFG2_CPO_SHIFT ) \
                                | ( 2 << TIMING_CFG2_WR_LAT_DELAY_SHIFT ) \
                                | ( 2 << TIMING_CFG2_RD_TO_PRE_SHIFT ) \
                                | ( 3 << TIMING_CFG2_CKE_PLS_SHIFT ) \
                                | ( 7 << TIMING_CFG2_FOUR_ACT_SHIFT) )
                                /* 0x121048c7 */
-#define CFG_DDR_INTERVAL       ( ( 0x0360 << SDRAM_INTERVAL_REFINT_SHIFT ) \
+#define CONFIG_SYS_DDR_INTERVAL        ( ( 0x0360 << SDRAM_INTERVAL_REFINT_SHIFT ) \
                                | ( 0x0100 << SDRAM_INTERVAL_BSTOPRE_SHIFT ) )
                                /* 0x03600100 */
-#define CFG_DDR_SDRAM_CFG      ( SDRAM_CFG_SREN \
+#define CONFIG_SYS_DDR_SDRAM_CFG       ( SDRAM_CFG_SREN \
                                | SDRAM_CFG_SDRAM_TYPE_DDR2 \
                                | SDRAM_CFG_32_BE )
                                /* 0x43080000 */
-#define CFG_DDR_SDRAM_CFG2     0x00401000 /* 1 posted refresh */
-#define CFG_DDR_MODE           ( ( 0x0448 << SDRAM_MODE_ESD_SHIFT ) \
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00401000 /* 1 posted refresh */
+#define CONFIG_SYS_DDR_MODE            ( ( 0x0448 << SDRAM_MODE_ESD_SHIFT ) \
                                | ( 0x0232 << SDRAM_MODE_SD_SHIFT ) )
                                /* ODT 150ohm CL=3, AL=1 on SDRAM */
-#define CFG_DDR_MODE2          0x00000000
+#define CONFIG_SYS_DDR_MODE2           0x00000000
 
 /*
  * Memory test
  */
-#undef CFG_DRAM_TEST           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00040000 /* memtest region */
-#define CFG_MEMTEST_END                0x00140000
+#undef CONFIG_SYS_DRAM_TEST            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00040000 /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00140000
 
 /*
  * The reserved memory
  */
-#define CFG_MONITOR_BASE       TEXT_BASE /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (512 * 1024) /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024) /* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
  */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xE6000000 /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000 /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      0x100 /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xE6000000 /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000 /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100 /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Local Bus Configuration & Clock Setup
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_2)
-#define CFG_LBC_LBCR           0x00040000
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_2)
+#define CONFIG_SYS_LBC_LBCR            0x00040000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER        /* use the CFI driver */
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT
 
-#define CFG_FLASH_BASE         0xFE000000 /* FLASH base address */
-#define CFG_FLASH_SIZE         8 /* FLASH size is 8M */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000 /* FLASH base address */
+#define CONFIG_SYS_FLASH_SIZE          8 /* FLASH size is 8M */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE /* Window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000016 /* 8MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE /* Window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000016 /* 8MB window size */
 
-#define CFG_BR0_PRELIM         ( CFG_FLASH_BASE        /* Flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM          ( CONFIG_SYS_FLASH_BASE /* Flash Base address */ \
                                | (2 << BR_PS_SHIFT)    /* 16 bit port size */ \
                                | BR_V )                /* valid */
-#define CFG_OR0_PRELIM         ( (~(CFG_FLASH_SIZE - 1) << 20) \
+#define CONFIG_SYS_OR0_PRELIM          ( (~(CONFIG_SYS_FLASH_SIZE - 1) << 20) \
                                | OR_UPM_XAM \
                                | OR_GPCM_CSNT \
                                | OR_GPCM_ACS_DIV2 \
                                | OR_GPCM_EHTR \
                                | OR_GPCM_EAD )
 
-#define CFG_MAX_FLASH_BANKS    1 /* number of banks */
-#define CFG_MAX_FLASH_SECT     135 /* 127 64KB sectors and 8 8KB top sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1 /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      135 /* 127 64KB sectors and 8 8KB top sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000 /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500 /* Flash Write Timeout (ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000 /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500 /* Flash Write Timeout (ms) */
 
 /*
  * NAND Flash on the Local Bus
  */
-#define CFG_NAND_BASE          0xE0600000      /* 0xE0600000 */
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_NAND_BASE           0xE0600000      /* 0xE0600000 */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 
-#define CFG_BR1_PRELIM         ( CFG_NAND_BASE \
+#define CONFIG_SYS_BR1_PRELIM          ( CONFIG_SYS_NAND_BASE \
                                | (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
                                | BR_PS_8               /* Port Size = 8 bit */ \
                                | BR_MS_FCM             /* MSEL = FCM */ \
                                | BR_V )                /* valid */
-#define CFG_OR1_PRELIM         ( 0xFFFF8000            /* length 32K */ \
+#define CONFIG_SYS_OR1_PRELIM          ( 0xFFFF8000            /* length 32K */ \
                                | OR_FCM_CSCT \
                                | OR_FCM_CST \
                                | OR_FCM_CHT \
                                | OR_FCM_EHTR )
                                /* 0xFFFF8396 */
 
-#define CFG_LBLAWBAR1_PRELIM   CFG_NAND_BASE
-#define CFG_LBLAWAR1_PRELIM    0x8000000E      /* 32KB  */
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_NAND_BASE
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000000E      /* 32KB  */
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* Pass open firmware flat tree */
 /* I2C */
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #define CONFIG_FSL_I2C
-#define CFG_I2C_SPEED          400000 /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x51} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000 /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x51} /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /*
  * Board info - revision and where boot from
  */
-#define CFG_I2C_PCF8574A_ADDR  0x39
+#define CONFIG_SYS_I2C_PCF8574A_ADDR   0x39
 
 /*
  * Config on-board RTC
  */
 #define CONFIG_RTC_DS1337      /* ds1339 on board, use ds1337 rtc via i2c */
-#define CFG_I2C_RTC_ADDR       0x68 /* at address 0x68 */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68 /* at address 0x68 */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI_MEM_BASE       0x80000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BASE
-#define CFG_PCI_MEM_SIZE       0x10000000 /* 256M */
-#define CFG_PCI_MMIO_BASE      0x90000000
-#define CFG_PCI_MMIO_PHYS      CFG_PCI_MMIO_BASE
-#define CFG_PCI_MMIO_SIZE      0x10000000 /* 256M */
-#define CFG_PCI_IO_BASE                0x00000000
-#define CFG_PCI_IO_PHYS                0xE0300000
-#define CFG_PCI_IO_SIZE                0x100000 /* 1M */
-
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE
-#define CFG_PCI_SLV_MEM_BUS    0x00000000
-#define CFG_PCI_SLV_MEM_SIZE   0x80000000
+#define CONFIG_SYS_PCI_MEM_BASE        0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BASE
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_MMIO_BASE       0x90000000
+#define CONFIG_SYS_PCI_MMIO_PHYS       CONFIG_SYS_PCI_MMIO_BASE
+#define CONFIG_SYS_PCI_MMIO_SIZE       0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_IO_BASE         0x00000000
+#define CONFIG_SYS_PCI_IO_PHYS         0xE0300000
+#define CONFIG_SYS_PCI_IO_SIZE         0x100000 /* 1M */
+
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SLV_MEM_BUS     0x00000000
+#define CONFIG_SYS_PCI_SLV_MEM_SIZE    0x80000000
 
 #define CONFIG_PCI
 #define CONFIG_83XX_GENERIC_PCI        1 /* Use generic PCI setup */
 
 #define CONFIG_EEPRO100
 #undef CONFIG_PCI_SCAN_SHOW    /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1957 /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 
 #ifndef CONFIG_NET_MULTI
 #define CONFIG_NET_MULTI       1
  * TSEC
  */
 #define CONFIG_TSEC_ENET       /* TSEC ethernet support */
-#define CFG_TSEC1_OFFSET       0x24000
-#define CFG_TSEC1              (CFG_IMMR+CFG_TSEC1_OFFSET)
-#define CFG_TSEC2_OFFSET       0x25000
-#define CFG_TSEC2              (CFG_IMMR+CFG_TSEC2_OFFSET)
+#define CONFIG_SYS_TSEC1_OFFSET        0x24000
+#define CONFIG_SYS_TSEC1               (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC1_OFFSET)
+#define CONFIG_SYS_TSEC2_OFFSET        0x25000
+#define CONFIG_SYS_TSEC2               (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC2_OFFSET)
 
 /*
  * TSEC ethernet configuration
 #define CONFIG_LIBATA
 #define CONFIG_FSL_SATA
 
-#define CFG_SATA_MAX_DEVICE    2
+#define CONFIG_SYS_SATA_MAX_DEVICE     2
 #define CONFIG_SATA1
-#define CFG_SATA1_OFFSET       0x18000
-#define CFG_SATA1              (CFG_IMMR + CFG_SATA1_OFFSET)
-#define CFG_SATA1_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA1_OFFSET        0x18000
+#define CONFIG_SYS_SATA1               (CONFIG_SYS_IMMR + CONFIG_SYS_SATA1_OFFSET)
+#define CONFIG_SYS_SATA1_FLAGS         FLAGS_DMA
 #define CONFIG_SATA2
-#define CFG_SATA2_OFFSET       0x19000
-#define CFG_SATA2              (CFG_IMMR + CFG_SATA2_OFFSET)
-#define CFG_SATA2_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA2_OFFSET        0x19000
+#define CONFIG_SYS_SATA2               (CONFIG_SYS_IMMR + CONFIG_SYS_SATA2_OFFSET)
+#define CONFIG_SYS_SATA2_FLAGS         FLAGS_DMA
 
 #ifdef CONFIG_FSL_SATA
 #define CONFIG_LBA48
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x10000 /* 64K(one sector) for env */
        #define CONFIG_ENV_SIZE         0x2000
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_PCI
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000 /* default load address */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000 /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024 /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256 /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Core HID Setup
  */
-#define CFG_HID0_INIT          0x000000000
-#define CFG_HID0_FINAL         (HID0_ENABLE_MACHINE_CHECK | \
+#define CONFIG_SYS_HID0_INIT           0x000000000
+#define CONFIG_SYS_HID0_FINAL          (HID0_ENABLE_MACHINE_CHECK | \
                                 HID0_ENABLE_DYNAMIC_POWER_MANAGMENT)
-#define CFG_HID2               HID2_HBE
+#define CONFIG_SYS_HID2                HID2_HBE
 
 /*
  * MMU Setup
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR: cache cacheable */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_128M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_128M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
 /* IMMRBAR, PCI IO and NAND: cache-inhibit and guarded */
-#define CFG_IBAT1L     (CFG_IMMR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_IMMR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT1U     (CFG_IMMR | BATU_BL_8M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_IMMR | BATU_BL_8M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* FLASH: icache cacheable, but dcache-inhibit and guarded */
-#define CFG_IBAT2L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT2U     (CFG_FLASH_BASE | BATU_BL_8M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L     (CFG_FLASH_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_FLASH_BASE | BATU_BL_8M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
 /* Stack in dcache: cacheable, no memory coherence */
-#define CFG_IBAT3L     (CFG_INIT_RAM_ADDR | BATL_PP_10)
-#define CFG_IBAT3U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /* PCI MEM space: cacheable */
-#define CFG_IBAT4L     (CFG_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT4U     (CFG_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
 
 /* PCI MMIO space: cache-inhibit and guarded */
-#define CFG_IBAT5L     (CFG_PCI_MMIO_PHYS | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_PCI_MMIO_PHYS | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-
-#define CFG_IBAT6L     0
-#define CFG_IBAT6U     0
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-
-#define CFG_IBAT7L     0
-#define CFG_IBAT7U     0
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+
+#define CONFIG_SYS_IBAT6L      0
+#define CONFIG_SYS_IBAT6U      0
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+
+#define CONFIG_SYS_IBAT7L      0
+#define CONFIG_SYS_IBAT7U      0
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
index b95f54d9e8915dfd367dfb6375becffba50a25fd..c6ac91a536c37e3bf966e7564befb99ea2942fa7 100644 (file)
@@ -32,7 +32,7 @@
 /*
  * Hardware Reset Configuration Word
  */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_2X1 |\
        HRCWL_VCO_1X2 |\
@@ -42,7 +42,7 @@
        HRCWL_CE_PLL_DIV_1X1 |\
        HRCWL_CE_TO_PLL_1X3)
 
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_CORE_ENABLE |\
 /*
  * System IO Config
  */
-#define CFG_SICRL              0x00000000
+#define CONFIG_SYS_SICRL               0x00000000
 
 #define CONFIG_BOARD_EARLY_INIT_F      /* call board_pre_init */
 
 /*
  * IMMR new address
  */
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 /*
  * System performance
  */
-#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth (0-3) */
-#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count (0-7) */
-#define CFG_SPCR_OPT           1       /* (0-1) Optimize transactions between  CSB and the SEC and QUICC Engine block */
+#define CONFIG_SYS_ACR_PIPE_DEP        3       /* Arbiter pipeline depth (0-3) */
+#define CONFIG_SYS_ACR_RPTCNT          3       /* Arbiter repeat count (0-7) */
+#define CONFIG_SYS_SPCR_OPT            1       /* (0-1) Optimize transactions between  CSB and the SEC and QUICC Engine block */
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDRCDR             0x73000002      /* DDR II voltage is 1.8V */
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDRCDR              0x73000002      /* DDR II voltage is 1.8V */
 
 #undef CONFIG_SPD_EEPROM
 #if defined(CONFIG_SPD_EEPROM)
 #else
 /* Manually set up DDR parameters
  */
-#define CFG_DDR_SIZE           64      /* MB */
-#define CFG_DDR_CS0_CONFIG     ( CSCONFIG_EN \
+#define CONFIG_SYS_DDR_SIZE            64      /* MB */
+#define CONFIG_SYS_DDR_CS0_CONFIG      ( CSCONFIG_EN \
                                | CSCONFIG_ODT_WR_ACS \
                                | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_9 )
                                /* 0x80010101 */
-#define CFG_DDR_TIMING_0       ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_0        ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_RRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WWT_SHIFT ) \
                                | ( 8 << TIMING_CFG0_ODT_PD_EXIT_SHIFT ) \
                                | ( 2 << TIMING_CFG0_MRS_CYC_SHIFT ) )
                                /* 0x00220802 */
-#define CFG_DDR_TIMING_1       ( ( 2 << TIMING_CFG1_PRETOACT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_1        ( ( 2 << TIMING_CFG1_PRETOACT_SHIFT ) \
                                | ( 6 << TIMING_CFG1_ACTTOPRE_SHIFT ) \
                                | ( 2 << TIMING_CFG1_ACTTORW_SHIFT ) \
                                | ( 5 << TIMING_CFG1_CASLAT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_ACTTOACT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_WRTORD_SHIFT ) )
                                /* 0x26253222 */
-#define CFG_DDR_TIMING_2       ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_2        ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
                                | (31 << TIMING_CFG2_CPO_SHIFT ) \
                                | ( 2 << TIMING_CFG2_WR_LAT_DELAY_SHIFT ) \
                                | ( 2 << TIMING_CFG2_RD_TO_PRE_SHIFT ) \
                                | ( 3 << TIMING_CFG2_CKE_PLS_SHIFT ) \
                                | ( 7 << TIMING_CFG2_FOUR_ACT_SHIFT) )
                                /* 0x1f9048c7 */
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_CLK_CNTL       DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_CLK_CNTL        DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
                                /* 0x02000000 */
-#define CFG_DDR_MODE           ( ( 0x4448 << SDRAM_MODE_ESD_SHIFT ) \
+#define CONFIG_SYS_DDR_MODE            ( ( 0x4448 << SDRAM_MODE_ESD_SHIFT ) \
                                | ( 0x0232 << SDRAM_MODE_SD_SHIFT ) )
                                /* 0x44480232 */
-#define CFG_DDR_MODE2          0x8000c000
-#define CFG_DDR_INTERVAL       ( ( 800 << SDRAM_INTERVAL_REFINT_SHIFT ) \
+#define CONFIG_SYS_DDR_MODE2           0x8000c000
+#define CONFIG_SYS_DDR_INTERVAL        ( ( 800 << SDRAM_INTERVAL_REFINT_SHIFT ) \
                                | ( 100 << SDRAM_INTERVAL_BSTOPRE_SHIFT ) )
                                /* 0x03200064 */
-#define CFG_DDR_CS0_BNDS       0x00000003
-#define CFG_DDR_SDRAM_CFG      ( SDRAM_CFG_SREN \
+#define CONFIG_SYS_DDR_CS0_BNDS        0x00000003
+#define CONFIG_SYS_DDR_SDRAM_CFG       ( SDRAM_CFG_SREN \
                                | SDRAM_CFG_SDRAM_TYPE_DDR2 \
                                | SDRAM_CFG_32_BE )
                                /* 0x43080000 */
-#define CFG_DDR_SDRAM_CFG2     0x00401000
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00401000
 #endif
 
 /*
  * Memory test
  */
-#undef CFG_DRAM_TEST           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00030000      /* memtest region */
-#define CFG_MEMTEST_END                0x03f00000
+#undef CONFIG_SYS_DRAM_TEST            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00030000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x03f00000
 
 /*
  * The reserved memory
  */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
  */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xE6000000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000          /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      0x100           /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xE6000000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000          /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100           /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Local Bus Configuration & Clock Setup
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_2)
-#define CFG_LBC_LBCR           0x00000000
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_2)
+#define CONFIG_SYS_LBC_LBCR            0x00000000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000      /* FLASH base address */
-#define CFG_FLASH_SIZE         16      /* FLASH size is 16M */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000      /* FLASH base address */
+#define CONFIG_SYS_FLASH_SIZE          16      /* FLASH size is 16M */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE  /* Window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000018      /* 32MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE   /* Window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000018      /* 32MB window size */
 
-#define CFG_BR0_PRELIM (CFG_FLASH_BASE |       /* Flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM  (CONFIG_SYS_FLASH_BASE |        /* Flash Base address */ \
                        (2 << BR_PS_SHIFT) |    /* 16 bit port size */ \
                        BR_V)                   /* valid */
-#define CFG_OR0_PRELIM         0xfe006ff7      /* 16MB Flash size */
+#define CONFIG_SYS_OR0_PRELIM          0xfe006ff7      /* 16MB Flash size */
 
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
+#undef CONFIG_SYS_FLASH_CHECKSUM
 
 /*
  * SDRAM on the Local Bus
  */
-#undef CFG_LB_SDRAM            /* The board has not SRDAM on local bus */
+#undef CONFIG_SYS_LB_SDRAM             /* The board has not SRDAM on local bus */
 
-#ifdef CFG_LB_SDRAM
-#define CFG_LBC_SDRAM_BASE     0xF0000000      /* SDRAM base address */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#ifdef CONFIG_SYS_LB_SDRAM
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xF0000000      /* SDRAM base address */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
-#define CFG_LBLAWBAR2_PRELIM   CFG_LBC_SDRAM_BASE
-#define CFG_LBLAWAR2_PRELIM    0x80000019      /* 64MB */
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    CONFIG_SYS_LBC_SDRAM_BASE
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000019      /* 64MB */
 
 /*local bus BR2, OR2 definition for SDRAM if soldered on the EPB board */
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM 0xf0001861      /*Port size=32bit, MSEL=SDRAM */
+#define CONFIG_SYS_BR2_PRELIM  0xf0001861      /*Port size=32bit, MSEL=SDRAM */
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM 0xfc006901
+#define CONFIG_SYS_OR2_PRELIM  0xfc006901
 
-#define CFG_LBC_LSRT   0x32000000      /* LB sdram refresh timer, about 6us */
-#define CFG_LBC_MRTPR  0x20000000      /* LB refresh timer prescal, 266MHz/32 */
+#define CONFIG_SYS_LBC_LSRT    0x32000000      /* LB sdram refresh timer, about 6us */
+#define CONFIG_SYS_LBC_MRTPR   0x20000000      /* LB refresh timer prescal, 266MHz/32 */
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
-#define CFG_LBC_LSDMR_COMMON   0x0063b723
+#define CONFIG_SYS_LBC_LSDMR_COMMON    0x0063b723
 
 /*
  * SDRAM Controller configuration sequence.
  */
-#define CFG_LBC_LSDMR_1                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_PCHALL)
-#define CFG_LBC_LSDMR_2                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_3                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_4                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_MRW)
-#define CFG_LBC_LSDMR_5                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_NORMAL)
+#define CONFIG_SYS_LBC_LSDMR_1         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_PCHALL)
+#define CONFIG_SYS_LBC_LSDMR_2         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_3         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_4         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_MRW)
+#define CONFIG_SYS_LBC_LSDMR_5         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_NORMAL)
 
 #endif
 
 /*
  * Windows to access PIB via local bus
  */
-#define CFG_LBLAWBAR3_PRELIM   0xf8008000      /* windows base 0xf8008000 */
-#define CFG_LBLAWAR3_PRELIM    0x8000000f      /* windows size 64KB */
+#define CONFIG_SYS_LBLAWBAR3_PRELIM    0xf8008000      /* windows base 0xf8008000 */
+#define CONFIG_SYS_LBLAWAR3_PRELIM     0x8000000f      /* windows size 64KB */
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
 #define CONFIG_FSL_I2C
-#define CFG_I2C_SPEED  400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE  0x7F
-#define CFG_I2C_NOPROBES       {0x51}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET 0x3000
+#define CONFIG_SYS_I2C_SPEED   400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE   0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x51}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET  0x3000
 
 /*
  * Config on-board EEPROM
  */
-#define CFG_I2C_EEPROM_ADDR            0x50
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     6
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      6
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI1_MMIO_BASE     0x90000000
-#define CFG_PCI1_MMIO_PHYS     CFG_PCI1_MMIO_BASE
-#define CFG_PCI1_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI1_IO_BASE               0xd0000000
-#define CFG_PCI1_IO_PHYS               CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE               0x04000000      /* 64M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_MMIO_BASE      0x90000000
+#define CONFIG_SYS_PCI1_MMIO_PHYS      CONFIG_SYS_PCI1_MMIO_BASE
+#define CONFIG_SYS_PCI1_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE                0xd0000000
+#define CONFIG_SYS_PCI1_IO_PHYS                CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE                0x04000000      /* 64M */
 
 #ifdef CONFIG_PCI
 #define CONFIG_PCI_SKIP_HOST_BRIDGE
 
 #undef CONFIG_EEPRO100
 #undef CONFIG_PCI_SCAN_SHOW    /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID        0x1957  /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 
 #endif /* CONFIG_PCI */
 
 #define CONFIG_UEC_ETH1                /* ETH3 */
 
 #ifdef CONFIG_UEC_ETH1
-#define CFG_UEC1_UCC_NUM       2       /* UCC3 */
-#define CFG_UEC1_RX_CLK                QE_CLK9
-#define CFG_UEC1_TX_CLK                QE_CLK10
-#define CFG_UEC1_ETH_TYPE      FAST_ETH
-#define CFG_UEC1_PHY_ADDR      4
-#define CFG_UEC1_INTERFACE_MODE        ENET_100_MII
+#define CONFIG_SYS_UEC1_UCC_NUM        2       /* UCC3 */
+#define CONFIG_SYS_UEC1_RX_CLK         QE_CLK9
+#define CONFIG_SYS_UEC1_TX_CLK         QE_CLK10
+#define CONFIG_SYS_UEC1_ETH_TYPE       FAST_ETH
+#define CONFIG_SYS_UEC1_PHY_ADDR       4
+#define CONFIG_SYS_UEC1_INTERFACE_MODE ENET_100_MII
 #endif
 
 #define CONFIG_UEC_ETH2                /* ETH4 */
 
 #ifdef CONFIG_UEC_ETH2
-#define CFG_UEC2_UCC_NUM       1       /* UCC2 */
-#define CFG_UEC2_RX_CLK                QE_CLK16
-#define CFG_UEC2_TX_CLK                QE_CLK3
-#define CFG_UEC2_ETH_TYPE      FAST_ETH
-#define CFG_UEC2_PHY_ADDR      0
-#define CFG_UEC2_INTERFACE_MODE        ENET_100_MII
+#define CONFIG_SYS_UEC2_UCC_NUM        1       /* UCC2 */
+#define CONFIG_SYS_UEC2_RX_CLK         QE_CLK16
+#define CONFIG_SYS_UEC2_TX_CLK         QE_CLK3
+#define CONFIG_SYS_UEC2_ETH_TYPE       FAST_ETH
+#define CONFIG_SYS_UEC2_PHY_ADDR       0
+#define CONFIG_SYS_UEC2_INTERFACE_MODE ENET_100_MII
 #endif
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x20000
        #define CONFIG_ENV_SIZE         0x2000
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
 #if defined(CONFIG_PCI)
        #define CONFIG_CMD_PCI
 #endif
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
        #undef CONFIG_CMD_ENV
        #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000       /* default load address */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 #if (CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024    /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024    /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256     /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Core HID Setup
  */
-#define CFG_HID0_INIT          0x000000000
-#define CFG_HID0_FINAL         HID0_ENABLE_MACHINE_CHECK
-#define CFG_HID2               HID2_HBE
+#define CONFIG_SYS_HID0_INIT           0x000000000
+#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID2                HID2_HBE
 
 /*
  * MMU Setup
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR: cache cacheable */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
 /* IMMRBAR & PCI IO: cache-inhibit and guarded */
-#define CFG_IBAT1L     (CFG_IMMR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_IMMR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT1U     (CFG_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* FLASH: icache cacheable, but dcache-inhibit and guarded */
-#define CFG_IBAT2L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT2U     (CFG_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L     (CFG_FLASH_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
-#define CFG_IBAT3L     (0)
-#define CFG_IBAT3U     (0)
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0)
+#define CONFIG_SYS_IBAT3U      (0)
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /* Stack in dcache: cacheable, no memory coherence */
-#define CFG_IBAT4L     (CFG_INIT_RAM_ADDR | BATL_PP_10)
-#define CFG_IBAT4U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
 
 #ifdef CONFIG_PCI
 /* PCI MEM space: cacheable */
-#define CFG_IBAT5L     (CFG_PCI1_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT5U     (CFG_PCI1_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_PCI1_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
 /* PCI MMIO space: cache-inhibit and guarded */
-#define CFG_IBAT6L     (CFG_PCI1_MMIO_PHYS | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_PCI1_MMIO_PHYS | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT6U     (CFG_PCI1_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
+#define CONFIG_SYS_IBAT6U      (CONFIG_SYS_PCI1_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
 #else
-#define CFG_IBAT5L     (0)
-#define CFG_IBAT5U     (0)
-#define CFG_IBAT6L     (0)
-#define CFG_IBAT6U     (0)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
+#define CONFIG_SYS_IBAT5L      (0)
+#define CONFIG_SYS_IBAT5U      (0)
+#define CONFIG_SYS_IBAT6L      (0)
+#define CONFIG_SYS_IBAT6U      (0)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
 #endif
 
 /* Nothing in BAT7 */
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
 #define CONFIG_HAS_ETH1                                /* add support for "eth1addr" */
 #define CONFIG_ETH1ADDR        00:04:9f:ef:03:02
 
-/* use mac_read_from_eeprom() to read ethaddr from I2C EEPROM (see CFG_I2C_EEPROM) */
-#define CFG_I2C_MAC_OFFSET     0x7f00  /* MAC address offset in I2C EEPROM */
+/* use mac_read_from_eeprom() to read ethaddr from I2C EEPROM (see CONFIG_SYS_I2C_EEPROM) */
+#define CONFIG_SYS_I2C_MAC_OFFSET      0x7f00  /* MAC address offset in I2C EEPROM */
 
 #define CONFIG_IPADDR          10.0.0.2
 #define CONFIG_SERVERIP                10.0.0.1
index 9a9b500fa2d96ba585017b2c17df889dcf85f295..bc56e682a75619cdfbbfbc382781ab69b78d799d 100644 (file)
@@ -47,7 +47,7 @@
 /*
  * Hardware Reset Configuration Word
  */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_2X1 |\
        HRCWL_VCO_1X2 |\
@@ -58,7 +58,7 @@
        HRCWL_CE_TO_PLL_1X3)
 
 #ifdef CONFIG_PCISLAVE
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_AGENT |\
        HRCWH_PCI1_ARBITER_DISABLE |\
        HRCWH_CORE_ENABLE |\
@@ -69,7 +69,7 @@
        HRCWH_BIG_ENDIAN |\
        HRCWH_LALE_NORMAL)
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_CORE_ENABLE |\
@@ -84,7 +84,7 @@
 /*
  * System IO Config
  */
-#define CFG_SICRL              0x00000000
+#define CONFIG_SYS_SICRL               0x00000000
 
 #define CONFIG_BOARD_EARLY_INIT_F      /* call board_pre_init */
 #define CONFIG_BOARD_EARLY_INIT_R
 /*
  * IMMR new address
  */
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDRCDR             0x73000002      /* DDR II voltage is 1.8V */
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDRCDR              0x73000002      /* DDR II voltage is 1.8V */
 
 #undef CONFIG_SPD_EEPROM
 #if defined(CONFIG_SPD_EEPROM)
 #else
 /* Manually set up DDR parameters
  */
-#define CFG_DDR_SIZE           128     /* MB */
-#define CFG_DDR_CS0_CONFIG     0x80840102
-#define CFG_DDR_TIMING_0       0x00220802
-#define CFG_DDR_TIMING_1       0x3935d322
-#define CFG_DDR_TIMING_2       0x0f9048ca
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_CLK_CNTL       0x02000000
-#define CFG_DDR_MODE           0x44400232
-#define CFG_DDR_MODE2          0x8000c000
-#define CFG_DDR_INTERVAL       0x03200064
-#define CFG_DDR_CS0_BNDS       0x00000007
-#define CFG_DDR_SDRAM_CFG      0x43080000
-#define CFG_DDR_SDRAM_CFG2     0x00401000
+#define CONFIG_SYS_DDR_SIZE            128     /* MB */
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80840102
+#define CONFIG_SYS_DDR_TIMING_0        0x00220802
+#define CONFIG_SYS_DDR_TIMING_1        0x3935d322
+#define CONFIG_SYS_DDR_TIMING_2        0x0f9048ca
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_CLK_CNTL        0x02000000
+#define CONFIG_SYS_DDR_MODE            0x44400232
+#define CONFIG_SYS_DDR_MODE2           0x8000c000
+#define CONFIG_SYS_DDR_INTERVAL        0x03200064
+#define CONFIG_SYS_DDR_CS0_BNDS        0x00000007
+#define CONFIG_SYS_DDR_SDRAM_CFG       0x43080000
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00401000
 #endif
 
 /*
  * Memory test
  */
-#undef CFG_DRAM_TEST           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00000000      /* memtest region */
-#define CFG_MEMTEST_END                0x00100000
+#undef CONFIG_SYS_DRAM_TEST            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00100000
 
 /*
  * The reserved memory
  */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
  */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xE6000000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000          /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      0x100           /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xE6000000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000          /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100           /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Local Bus Configuration & Clock Setup
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_2)
-#define CFG_LBC_LBCR           0x00000000
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_2)
+#define CONFIG_SYS_LBC_LBCR            0x00000000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000      /* FLASH base address */
-#define CFG_FLASH_SIZE         16      /* FLASH size is 16M */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000      /* FLASH base address */
+#define CONFIG_SYS_FLASH_SIZE          16      /* FLASH size is 16M */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE  /* Window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000018      /* 32MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE   /* Window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000018      /* 32MB window size */
 
-#define CFG_BR0_PRELIM (CFG_FLASH_BASE |       /* Flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM  (CONFIG_SYS_FLASH_BASE |        /* Flash Base address */ \
                        (2 << BR_PS_SHIFT) |    /* 16 bit port size */ \
                        BR_V)                   /* valid */
-#define CFG_OR0_PRELIM         0xfe006ff7      /* 16MB Flash size */
+#define CONFIG_SYS_OR0_PRELIM          0xfe006ff7      /* 16MB Flash size */
 
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
+#undef CONFIG_SYS_FLASH_CHECKSUM
 
 /*
  * BCSR on the Local Bus
  */
-#define CFG_BCSR               0xF8000000
-#define CFG_LBLAWBAR1_PRELIM   CFG_BCSR        /* Access window base at BCSR base */
-#define CFG_LBLAWAR1_PRELIM    0x8000000E      /* Access window size 32K */
+#define CONFIG_SYS_BCSR                0xF8000000
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_BCSR /* Access window base at BCSR base */
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000000E      /* Access window size 32K */
 
-#define CFG_BR1_PRELIM         (CFG_BCSR|0x00000801)   /* Port size=8bit, MSEL=GPCM */
-#define CFG_OR1_PRELIM         0xFFFFE9f7      /* length 32K */
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_BCSR|0x00000801)    /* Port size=8bit, MSEL=GPCM */
+#define CONFIG_SYS_OR1_PRELIM          0xFFFFE9f7      /* length 32K */
 
 /*
  * SDRAM on the Local Bus
  */
-#undef CFG_LB_SDRAM            /* The board has not SRDAM on local bus */
+#undef CONFIG_SYS_LB_SDRAM             /* The board has not SRDAM on local bus */
 
-#ifdef CFG_LB_SDRAM
-#define CFG_LBC_SDRAM_BASE     0xF0000000      /* SDRAM base address */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#ifdef CONFIG_SYS_LB_SDRAM
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xF0000000      /* SDRAM base address */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
-#define CFG_LBLAWBAR2_PRELIM   CFG_LBC_SDRAM_BASE
-#define CFG_LBLAWAR2_PRELIM    0x80000019      /* 64MB */
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    CONFIG_SYS_LBC_SDRAM_BASE
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000019      /* 64MB */
 
 /*local bus BR2, OR2 definition for SDRAM if soldered on the EPB board */
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM 0xf0001861      /*Port size=32bit, MSEL=SDRAM */
+#define CONFIG_SYS_BR2_PRELIM  0xf0001861      /*Port size=32bit, MSEL=SDRAM */
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM 0xfc006901
+#define CONFIG_SYS_OR2_PRELIM  0xfc006901
 
-#define CFG_LBC_LSRT   0x32000000      /* LB sdram refresh timer, about 6us */
-#define CFG_LBC_MRTPR  0x20000000      /* LB refresh timer prescal, 266MHz/32 */
+#define CONFIG_SYS_LBC_LSRT    0x32000000      /* LB sdram refresh timer, about 6us */
+#define CONFIG_SYS_LBC_MRTPR   0x20000000      /* LB refresh timer prescal, 266MHz/32 */
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
-#define CFG_LBC_LSDMR_COMMON   0x0063b723
+#define CONFIG_SYS_LBC_LSDMR_COMMON    0x0063b723
 
 /*
  * SDRAM Controller configuration sequence.
  */
-#define CFG_LBC_LSDMR_1                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_PCHALL)
-#define CFG_LBC_LSDMR_2                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_3                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_4                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_MRW)
-#define CFG_LBC_LSDMR_5                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_NORMAL)
+#define CONFIG_SYS_LBC_LSDMR_1         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_PCHALL)
+#define CONFIG_SYS_LBC_LSDMR_2         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_3         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_4         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_MRW)
+#define CONFIG_SYS_LBC_LSDMR_5         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_NORMAL)
 
 #endif
 
 /*
  * Windows to access PIB via local bus
  */
-#define CFG_LBLAWBAR3_PRELIM   0xf8008000      /* windows base 0xf8008000 */
-#define CFG_LBLAWAR3_PRELIM    0x8000000f      /* windows size 64KB */
+#define CONFIG_SYS_LBLAWBAR3_PRELIM    0xf8008000      /* windows base 0xf8008000 */
+#define CONFIG_SYS_LBLAWAR3_PRELIM     0x8000000f      /* windows size 64KB */
 
 /*
  * CS2 on Local Bus, to PIB
  */
-#define CFG_BR2_PRELIM 0xf8008801      /* CS2 base address at 0xf8008000 */
-#define CFG_OR2_PRELIM 0xffffe9f7      /* size 32KB, port size 8bit, GPCM */
+#define CONFIG_SYS_BR2_PRELIM  0xf8008801      /* CS2 base address at 0xf8008000 */
+#define CONFIG_SYS_OR2_PRELIM  0xffffe9f7      /* size 32KB, port size 8bit, GPCM */
 
 /*
  * CS3 on Local Bus, to PIB
  */
-#define CFG_BR3_PRELIM 0xf8010801      /* CS3 base address at 0xf8010000 */
-#define CFG_OR3_PRELIM 0xffffe9f7      /* size 32KB, port size 8bit, GPCM */
+#define CONFIG_SYS_BR3_PRELIM  0xf8010801      /* CS3 base address at 0xf8010000 */
+#define CONFIG_SYS_OR3_PRELIM  0xffffe9f7      /* size 32KB, port size 8bit, GPCM */
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
 #define CONFIG_FSL_I2C
-#define CFG_I2C_SPEED  400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE  0x7F
-#define CFG_I2C_NOPROBES       {0x51}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET 0x3000
+#define CONFIG_SYS_I2C_SPEED   400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE   0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x51}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET  0x3000
 
 /*
  * Config on-board RTC
  */
 #define CONFIG_RTC_DS1374              /* use ds1374 rtc via i2c */
-#define CFG_I2C_RTC_ADDR       0x68    /* at address 0x68 */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68    /* at address 0x68 */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI_MEM_BASE       0x80000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BASE
-#define CFG_PCI_MEM_SIZE       0x10000000      /* 256M */
-#define CFG_PCI_MMIO_BASE      0x90000000
-#define CFG_PCI_MMIO_PHYS      CFG_PCI_MMIO_BASE
-#define CFG_PCI_MMIO_SIZE      0x10000000      /* 256M */
-#define CFG_PCI_IO_BASE                0x00000000
-#define CFG_PCI_IO_PHYS                0xE0300000
-#define CFG_PCI_IO_SIZE                0x100000        /* 1M */
+#define CONFIG_SYS_PCI_MEM_BASE        0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BASE
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000      /* 256M */
+#define CONFIG_SYS_PCI_MMIO_BASE       0x90000000
+#define CONFIG_SYS_PCI_MMIO_PHYS       CONFIG_SYS_PCI_MMIO_BASE
+#define CONFIG_SYS_PCI_MMIO_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI_IO_BASE         0x00000000
+#define CONFIG_SYS_PCI_IO_PHYS         0xE0300000
+#define CONFIG_SYS_PCI_IO_SIZE         0x100000        /* 1M */
 
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE
-#define CFG_PCI_SLV_MEM_BUS    0x00000000
-#define CFG_PCI_SLV_MEM_SIZE   0x80000000
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SLV_MEM_BUS     0x00000000
+#define CONFIG_SYS_PCI_SLV_MEM_SIZE    0x80000000
 
 
 #ifdef CONFIG_PCI
 
 #undef CONFIG_EEPRO100
 #undef CONFIG_PCI_SCAN_SHOW    /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID        0x1957  /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 
 #endif /* CONFIG_PCI */
 
 #define CONFIG_UEC_ETH1                /* ETH3 */
 
 #ifdef CONFIG_UEC_ETH1
-#define CFG_UEC1_UCC_NUM       2       /* UCC3 */
-#define CFG_UEC1_RX_CLK                QE_CLK9
-#define CFG_UEC1_TX_CLK                QE_CLK10
-#define CFG_UEC1_ETH_TYPE      FAST_ETH
-#define CFG_UEC1_PHY_ADDR      3
-#define CFG_UEC1_INTERFACE_MODE        ENET_100_MII
+#define CONFIG_SYS_UEC1_UCC_NUM        2       /* UCC3 */
+#define CONFIG_SYS_UEC1_RX_CLK         QE_CLK9
+#define CONFIG_SYS_UEC1_TX_CLK         QE_CLK10
+#define CONFIG_SYS_UEC1_ETH_TYPE       FAST_ETH
+#define CONFIG_SYS_UEC1_PHY_ADDR       3
+#define CONFIG_SYS_UEC1_INTERFACE_MODE ENET_100_MII
 #endif
 
 #define CONFIG_UEC_ETH2                /* ETH4 */
 
 #ifdef CONFIG_UEC_ETH2
-#define CFG_UEC2_UCC_NUM       3       /* UCC4 */
-#define CFG_UEC2_RX_CLK                QE_CLK7
-#define CFG_UEC2_TX_CLK                QE_CLK8
-#define CFG_UEC2_ETH_TYPE      FAST_ETH
-#define CFG_UEC2_PHY_ADDR      4
-#define CFG_UEC2_INTERFACE_MODE        ENET_100_MII
+#define CONFIG_SYS_UEC2_UCC_NUM        3       /* UCC4 */
+#define CONFIG_SYS_UEC2_RX_CLK         QE_CLK7
+#define CONFIG_SYS_UEC2_TX_CLK         QE_CLK8
+#define CONFIG_SYS_UEC2_ETH_TYPE       FAST_ETH
+#define CONFIG_SYS_UEC2_PHY_ADDR       4
+#define CONFIG_SYS_UEC2_INTERFACE_MODE ENET_100_MII
 #endif
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x20000
        #define CONFIG_ENV_SIZE         0x2000
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000       /* default load address */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024    /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024    /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256     /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Core HID Setup
  */
-#define CFG_HID0_INIT          0x000000000
-#define CFG_HID0_FINAL         HID0_ENABLE_MACHINE_CHECK
-#define CFG_HID2               HID2_HBE
+#define CONFIG_SYS_HID0_INIT           0x000000000
+#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID2                HID2_HBE
 
 /*
  * MMU Setup
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR: cache cacheable */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
 /* IMMRBAR & PCI IO: cache-inhibit and guarded */
-#define CFG_IBAT1L     (CFG_IMMR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_IMMR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT1U     (CFG_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* BCSR: cache-inhibit and guarded */
-#define CFG_IBAT2L     (CFG_BCSR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_BCSR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_BCSR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_BCSR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
 /* FLASH: icache cacheable, but dcache-inhibit and guarded */
-#define CFG_IBAT3L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT3U     (CFG_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_DBAT3L     (CFG_FLASH_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
-#define CFG_IBAT4L     (0)
-#define CFG_IBAT4U     (0)
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L      (0)
+#define CONFIG_SYS_IBAT4U      (0)
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
 
 /* Stack in dcache: cacheable, no memory coherence */
-#define CFG_IBAT5L     (CFG_INIT_RAM_ADDR | BATL_PP_10)
-#define CFG_IBAT5U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
 
 #ifdef CONFIG_PCI
 /* PCI MEM space: cacheable */
-#define CFG_IBAT6L     (CFG_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (CFG_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (CONFIG_SYS_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
 /* PCI MMIO space: cache-inhibit and guarded */
-#define CFG_IBAT7L     (CFG_PCI_MMIO_PHYS | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT7L      (CONFIG_SYS_PCI_MMIO_PHYS | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT7U     (CFG_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT7U      (CONFIG_SYS_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #else
-#define CFG_IBAT6L     (0)
-#define CFG_IBAT6U     (0)
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0)
+#define CONFIG_SYS_IBAT6U      (0)
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #endif
 
 /*
index 8135254a6acc912255962d1284df2ea96df60de2..bbdc211c06bd70cecdddd6e9bd16f69f95cc8819 100644 (file)
 
 #define CONFIG_BOARD_EARLY_INIT_F              /* call board_pre_init */
 
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
-#undef CFG_DRAM_TEST                           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00000000      /* memtest region */
-#define CFG_MEMTEST_END                0x00100000
+#undef CONFIG_SYS_DRAM_TEST                            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00100000
 
 /*
  * DDR Setup
  */
 #undef CONFIG_DDR_32BIT
 
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  (DDR_SDRAM_CLK_CNTL_SS_EN | \
                                DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
 #undef  CONFIG_DDR_2T_TIMING
 
 /*
  * DDRCDR - DDR Control Driver Register
  */
-#define CFG_DDRCDR_VALUE       0x80080001
+#define CONFIG_SYS_DDRCDR_VALUE        0x80080001
 
 #if defined(CONFIG_SPD_EEPROM)
 /*
 /*
  * Manually set up DDR parameters
  */
-#define CFG_DDR_SIZE           256             /* MB */
+#define CONFIG_SYS_DDR_SIZE            256             /* MB */
 #if defined(CONFIG_DDR_II)
-#define CFG_DDRCDR             0x80080001
-#define CFG_DDR_CS2_BNDS       0x0000000f
-#define CFG_DDR_CS2_CONFIG     0x80330102
-#define CFG_DDR_TIMING_0       0x00220802
-#define CFG_DDR_TIMING_1       0x38357322
-#define CFG_DDR_TIMING_2       0x2f9048c8
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_CLK_CNTL       0x02000000
-#define CFG_DDR_MODE           0x47d00432
-#define CFG_DDR_MODE2          0x8000c000
-#define CFG_DDR_INTERVAL       0x03cf0080
-#define CFG_DDR_SDRAM_CFG      0x43000000
-#define CFG_DDR_SDRAM_CFG2     0x00401000
+#define CONFIG_SYS_DDRCDR              0x80080001
+#define CONFIG_SYS_DDR_CS2_BNDS        0x0000000f
+#define CONFIG_SYS_DDR_CS2_CONFIG      0x80330102
+#define CONFIG_SYS_DDR_TIMING_0        0x00220802
+#define CONFIG_SYS_DDR_TIMING_1        0x38357322
+#define CONFIG_SYS_DDR_TIMING_2        0x2f9048c8
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_CLK_CNTL        0x02000000
+#define CONFIG_SYS_DDR_MODE            0x47d00432
+#define CONFIG_SYS_DDR_MODE2           0x8000c000
+#define CONFIG_SYS_DDR_INTERVAL        0x03cf0080
+#define CONFIG_SYS_DDR_SDRAM_CFG       0x43000000
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00401000
 #else
-#define CFG_DDR_CONFIG         (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10)
-#define CFG_DDR_TIMING_1       0x36332321
-#define CFG_DDR_TIMING_2       0x00000800      /* P9-45,may need tuning */
-#define CFG_DDR_CONTROL                0xc2000000      /* unbuffered,no DYN_PWR */
-#define CFG_DDR_INTERVAL       0x04060100      /* autocharge,no open page */
+#define CONFIG_SYS_DDR_CONFIG          (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10)
+#define CONFIG_SYS_DDR_TIMING_1        0x36332321
+#define CONFIG_SYS_DDR_TIMING_2        0x00000800      /* P9-45,may need tuning */
+#define CONFIG_SYS_DDR_CONTROL         0xc2000000      /* unbuffered,no DYN_PWR */
+#define CONFIG_SYS_DDR_INTERVAL        0x04060100      /* autocharge,no open page */
 
 #if defined(CONFIG_DDR_32BIT)
 /* set burst length to 8 for 32-bit data path */
-#define CFG_DDR_MODE           0x00000023      /* DLL,normal,seq,4/2.5, 8 burst len */
+#define CONFIG_SYS_DDR_MODE            0x00000023      /* DLL,normal,seq,4/2.5, 8 burst len */
 #else
 /* the default burst length is 4 - for 64-bit data path */
-#define CFG_DDR_MODE           0x00000022      /* DLL,normal,seq,4/2.5, 4 burst len */
+#define CONFIG_SYS_DDR_MODE            0x00000022      /* DLL,normal,seq,4/2.5, 4 burst len */
 #endif
 #endif
 #endif
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xF0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xF0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI                          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI                           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER                        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000      /* start of FLASH   */
-#define CFG_FLASH_SIZE         32              /* max flash size in MB */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
-/* #define CFG_FLASH_USE_BUFFER_WRITE */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000      /* start of FLASH   */
+#define CONFIG_SYS_FLASH_SIZE          32              /* max flash size in MB */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
+/* #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE |       /* flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE |        /* flash Base address */ \
                                (2 << BR_PS_SHIFT) |    /* 16 bit port size */   \
                                BR_V)                   /* valid */
-#define CFG_OR0_PRELIM         ((~(CFG_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
+#define CONFIG_SYS_OR0_PRELIM          ((~(CONFIG_SYS_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
                                OR_GPCM_CSNT | OR_GPCM_ACS_DIV2 | OR_GPCM_XACS | OR_GPCM_SCY_15 | \
                                OR_GPCM_TRLX | OR_GPCM_EHTR | OR_GPCM_EAD)
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE  /* window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000018      /* 32 MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE   /* window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000018      /* 32 MB window size */
 
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     256             /* max sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256             /* max sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MID_FLASH_JUMP     0x7F000000
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MID_FLASH_JUMP      0x7F000000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
 /*
  * BCSR register on local bus 32KB, 8-bit wide for MDS config reg
  */
-#define CFG_BCSR               0xE2400000
-#define CFG_LBLAWBAR1_PRELIM   CFG_BCSR                /* Access window base at BCSR base */
-#define CFG_LBLAWAR1_PRELIM    0x8000000E              /* Access window size 32K */
-#define CFG_BR1_PRELIM         (CFG_BCSR|0x00000801)   /* Port-size=8bit, MSEL=GPCM */
-#define CFG_OR1_PRELIM         0xFFFFE8F0              /* length 32K */
+#define CONFIG_SYS_BCSR                0xE2400000
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_BCSR         /* Access window base at BCSR base */
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000000E              /* Access window size 32K */
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_BCSR|0x00000801)    /* Port-size=8bit, MSEL=GPCM */
+#define CONFIG_SYS_OR1_PRELIM          0xFFFFE8F0              /* length 32K */
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xFD000000              /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000                  /* End of used area in RAM*/
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xFD000000              /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000                  /* End of used area in RAM*/
 
-#define CFG_GBL_DATA_SIZE      0x100                   /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100                   /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)            /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)            /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)            /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)            /* Reserved for malloc */
 
 /*
  * Local Bus LCRR and LBCR regs
  * External Local Bus rate is
  *    CLKIN * HRCWL_CSB_TO_CLKIN / HRCWL_LCL_BUS_TO_SCB_CLK / LCRR_CLKDIV
  */
-#define CFG_LCRR       (LCRR_DBYP | LCRR_CLKDIV_4)
-#define CFG_LBC_LBCR   0x00000000
+#define CONFIG_SYS_LCRR        (LCRR_DBYP | LCRR_CLKDIV_4)
+#define CONFIG_SYS_LBC_LBCR    0x00000000
 
 /*
  * The MPC834xEA MDS for 834xE rev3.1 may not be assembled SDRAM memory.
- * if board has SRDAM on local bus, you can define CFG_LB_SDRAM
+ * if board has SRDAM on local bus, you can define CONFIG_SYS_LB_SDRAM
  */
-#undef CFG_LB_SDRAM
+#undef CONFIG_SYS_LB_SDRAM
 
-#ifdef CFG_LB_SDRAM
+#ifdef CONFIG_SYS_LB_SDRAM
 /* Local bus BR2, OR2 definition for SDRAM if soldered on the MDS board */
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = F0001861
  *
- * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * FIXME: the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM         0xF0001861 /* Port-size=32bit, MSEL=SDRAM */
-#define CFG_LBLAWBAR2_PRELIM   0xF0000000
-#define CFG_LBLAWAR2_PRELIM    0x80000019 /* 64M */
+#define CONFIG_SYS_BR2_PRELIM          0xF0001861 /* Port-size=32bit, MSEL=SDRAM */
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    0xF0000000
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000019 /* 64M */
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1001 0000 0001 = FC006901
  */
 
-#define CFG_OR2_PRELIM 0xFC006901
+#define CONFIG_SYS_OR2_PRELIM  0xFC006901
 
-#define CFG_LBC_LSRT   0x32000000    /* LB sdram refresh timer, about 6us */
-#define CFG_LBC_MRTPR  0x20000000    /* LB refresh timer prescal, 266MHz/32 */
+#define CONFIG_SYS_LBC_LSRT    0x32000000    /* LB sdram refresh timer, about 6us */
+#define CONFIG_SYS_LBC_MRTPR   0x20000000    /* LB refresh timer prescal, 266MHz/32 */
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR5    (3 << (31 - 16))
-#define CFG_LBC_LSDMR_RFCR8    (5 << (31 - 16))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT3        (3 << (31 - 19))
-#define CFG_LBC_LSDMR_PRETOACT6        (5 << (31 - 19))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW3 (3 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC2     (2 << (31 - 27))
-#define CFG_LBC_LSDMR_WRC3     (3 << (31 - 27))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_BUFCMD   (1 << (31 - 29))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
-
-#define CFG_LBC_LSDMR_COMMON    ( CFG_LBC_LSDMR_RFEN            \
-                               | CFG_LBC_LSDMR_BSMA1516        \
-                               | CFG_LBC_LSDMR_RFCR8           \
-                               | CFG_LBC_LSDMR_PRETOACT6       \
-                               | CFG_LBC_LSDMR_ACTTORW3        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC3            \
-                               | CFG_LBC_LSDMR_CL3             \
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR5     (3 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_RFCR8     (5 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT3 (3 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT6 (5 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW3  (3 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC2      (2 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_WRC3      (3 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_BUFCMD    (1 << (31 - 29))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
+
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_RFEN            \
+                               | CONFIG_SYS_LBC_LSDMR_BSMA1516 \
+                               | CONFIG_SYS_LBC_LSDMR_RFCR8            \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT6        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW3 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC3             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
                                )
 
 /*
  * SDRAM Controller configuration sequence.
  */
-#define CFG_LBC_LSDMR_1                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_PCHALL)
-#define CFG_LBC_LSDMR_2                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_3                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_4                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_MRW)
-#define CFG_LBC_LSDMR_5                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_NORMAL)
+#define CONFIG_SYS_LBC_LSDMR_1         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_PCHALL)
+#define CONFIG_SYS_LBC_LSDMR_2         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_3         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_4         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_MRW)
+#define CONFIG_SYS_LBC_LSDMR_5         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_NORMAL)
 #endif
 
 /*
  */
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2        (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_FSL_I2C
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {{0,0x69}}      /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {{0,0x69}}      /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /* SPI */
 #define CONFIG_MPC8XXX_SPI
 #undef CONFIG_SOFT_SPI                 /* SPI bit-banged */
 
 /* GPIOs.  Used as SPI chip selects */
-#define CFG_GPIO1_PRELIM
-#define CFG_GPIO1_DIR          0xC0000000  /* SPI CS on 0, LED on 1 */
-#define CFG_GPIO1_DAT          0xC0000000  /* Both are active LOW */
+#define CONFIG_SYS_GPIO1_PRELIM
+#define CONFIG_SYS_GPIO1_DIR           0xC0000000  /* SPI CS on 0, LED on 1 */
+#define CONFIG_SYS_GPIO1_DAT           0xC0000000  /* Both are active LOW */
 
 /* TSEC */
-#define CFG_TSEC1_OFFSET 0x24000
-#define CFG_TSEC1 (CFG_IMMR+CFG_TSEC1_OFFSET)
-#define CFG_TSEC2_OFFSET 0x25000
-#define CFG_TSEC2 (CFG_IMMR+CFG_TSEC2_OFFSET)
+#define CONFIG_SYS_TSEC1_OFFSET 0x24000
+#define CONFIG_SYS_TSEC1 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC1_OFFSET)
+#define CONFIG_SYS_TSEC2_OFFSET 0x25000
+#define CONFIG_SYS_TSEC2 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC2_OFFSET)
 
 /* USB */
-#define CFG_USE_MPC834XSYS_USB_PHY     1 /* Use SYS board PHY */
+#define CONFIG_SYS_USE_MPC834XSYS_USB_PHY      1 /* Use SYS board PHY */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI1_MMIO_BASE     0x90000000
-#define CFG_PCI1_MMIO_PHYS     CFG_PCI1_MMIO_BASE
-#define CFG_PCI1_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xE2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
-
-#define CFG_PCI2_MEM_BASE      0xA0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI2_MMIO_BASE     0xB0000000
-#define CFG_PCI2_MMIO_PHYS     CFG_PCI2_MMIO_BASE
-#define CFG_PCI2_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xE2100000
-#define CFG_PCI2_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_MMIO_BASE      0x90000000
+#define CONFIG_SYS_PCI1_MMIO_PHYS      CONFIG_SYS_PCI1_MMIO_BASE
+#define CONFIG_SYS_PCI1_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xE2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
+
+#define CONFIG_SYS_PCI2_MEM_BASE       0xA0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI2_MMIO_BASE      0xB0000000
+#define CONFIG_SYS_PCI2_MMIO_PHYS      CONFIG_SYS_PCI2_MMIO_BASE
+#define CONFIG_SYS_PCI2_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xE2100000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x00100000      /* 1M */
 
 #if defined(CONFIG_PCI)
 
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 
 #endif /* CONFIG_PCI */
 
  * Configure on-board RTC
  */
 #define CONFIG_RTC_DS1374                      /* use ds1374 rtc via i2c       */
-#define CFG_I2C_RTC_ADDR               0x68    /* at address 0x68              */
+#define CONFIG_SYS_I2C_RTC_ADDR                0x68    /* at address 0x68              */
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x20000 /* 128K(one sector) for env */
        #define CONFIG_ENV_SIZE         0x2000
 
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024            /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256             /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
-#define CFG_RCWH_PCIHOST 0x80000000 /* PCIHOST  */
+#define CONFIG_SYS_RCWH_PCIHOST 0x80000000 /* PCIHOST  */
 
 #if 1 /*528/264*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X2 |\
        HRCWL_CORE_TO_CSB_2X1)
 #elif 0 /*396/132*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X4 |\
        HRCWL_CORE_TO_CSB_3X1)
 #elif 0 /*264/132*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X4 |\
        HRCWL_CORE_TO_CSB_2X1)
 #elif 0 /*132/132*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X4 |\
        HRCWL_CORE_TO_CSB_1X1)
 #elif 0 /*264/264 */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
 #endif
 
 #ifdef CONFIG_PCISLAVE
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_AGENT |\
        HRCWH_64_BIT_PCI |\
        HRCWH_PCI1_ARBITER_DISABLE |\
        HRCWH_TSEC2M_IN_GMII )
 #else
 #if defined(PCI_64BIT)
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_64_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_TSEC1M_IN_GMII |\
        HRCWH_TSEC2M_IN_GMII )
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_32_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
 /*
  * System performance
  */
-#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth (0-3) */
-#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count (0-7) */
-#define CFG_SPCR_TSEC1EP       3       /* TSEC1 emergency priority (0-3) */
-#define CFG_SPCR_TSEC2EP       3       /* TSEC2 emergency priority (0-3) */
-#define CFG_SCCR_TSEC1CM       1       /* TSEC1 clock mode (0-3) */
-#define CFG_SCCR_TSEC2CM       1       /* TSEC2 & I2C0 clock mode (0-3) */
+#define CONFIG_SYS_ACR_PIPE_DEP        3       /* Arbiter pipeline depth (0-3) */
+#define CONFIG_SYS_ACR_RPTCNT          3       /* Arbiter repeat count (0-7) */
+#define CONFIG_SYS_SPCR_TSEC1EP        3       /* TSEC1 emergency priority (0-3) */
+#define CONFIG_SYS_SPCR_TSEC2EP        3       /* TSEC2 emergency priority (0-3) */
+#define CONFIG_SYS_SCCR_TSEC1CM        1       /* TSEC1 clock mode (0-3) */
+#define CONFIG_SYS_SCCR_TSEC2CM        1       /* TSEC2 & I2C0 clock mode (0-3) */
 
 /* System IO Config */
-#define CFG_SICRH SICRH_TSOBI1
-#define CFG_SICRL SICRL_LDP_A
+#define CONFIG_SYS_SICRH SICRH_TSOBI1
+#define CONFIG_SYS_SICRL SICRL_LDP_A
 
-#define CFG_HID0_INIT  0x000000000
-#define CFG_HID0_FINAL HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  HID0_ENABLE_MACHINE_CHECK
 
-/* #define CFG_HID0_FINAL              (\
+/* #define CONFIG_SYS_HID0_FINAL               (\
        HID0_ENABLE_INSTRUCTION_CACHE |\
        HID0_ENABLE_M_BIT |\
        HID0_ENABLE_ADDRESS_BROADCAST ) */
 
 
-#define CFG_HID2 HID2_HBE
+#define CONFIG_SYS_HID2 HID2_HBE
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR @ 0x00000000 */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* PCI @ 0x80000000 */
 #ifdef CONFIG_PCI
-#define CFG_IBAT1L     (CFG_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 #else
-#define CFG_IBAT1L     (0)
-#define CFG_IBAT1U     (0)
-#define CFG_IBAT2L     (0)
-#define CFG_IBAT2U     (0)
+#define CONFIG_SYS_IBAT1L      (0)
+#define CONFIG_SYS_IBAT1U      (0)
+#define CONFIG_SYS_IBAT2L      (0)
+#define CONFIG_SYS_IBAT2U      (0)
 #endif
 
 #ifdef CONFIG_MPC83XX_PCI2
-#define CFG_IBAT3L     (CFG_PCI2_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT3U     (CFG_PCI2_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT4L     (CFG_PCI2_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT4U     (CFG_PCI2_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_PCI2_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_PCI2_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_PCI2_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_PCI2_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 #else
-#define CFG_IBAT3L     (0)
-#define CFG_IBAT3U     (0)
-#define CFG_IBAT4L     (0)
-#define CFG_IBAT4U     (0)
+#define CONFIG_SYS_IBAT3L      (0)
+#define CONFIG_SYS_IBAT3U      (0)
+#define CONFIG_SYS_IBAT4L      (0)
+#define CONFIG_SYS_IBAT4U      (0)
 #endif
 
 /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 & BCSR @ 0xE2400000 */
-#define CFG_IBAT5L     (CFG_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* SDRAM @ 0xF0000000, stack in DCACHE 0xFDF00000 & FLASH @ 0xFE000000 */
-#define CFG_IBAT6L     (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
index 81ea9f8ceceef71066217dea0f9680f5dc189c90..f633f24bd59fd4fc2c6a1f9df9740c0f3b397b38 100644 (file)
@@ -57,7 +57,7 @@
 #define __CONFIG_H
 
 #if (TEXT_BASE == 0xFE000000)
-#define CFG_LOWBOOT
+#define CONFIG_SYS_LOWBOOT
 #endif
 
 /*
@@ -66,7 +66,7 @@
 #define CONFIG_MPC834X         /* MPC834x family (8343, 8347, 8349) */
 #define CONFIG_MPC8349         /* MPC8349 specific */
 
-#define CFG_IMMR               0xE0000000      /* The IMMR is relocated to here */
+#define CONFIG_SYS_IMMR                0xE0000000      /* The IMMR is relocated to here */
 
 #define CONFIG_MISC_INIT_F
 #define CONFIG_MISC_INIT_R
 #define CONFIG_FSL_I2C
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
-#define CFG_SPD_BUS_NUM                1       /* The I2C bus for SPD */
-
-#define CFG_I2C_8574_ADDR1     0x20    /* I2C1, PCF8574 */
-#define CFG_I2C_8574_ADDR2     0x21    /* I2C1, PCF8574 */
-#define CFG_I2C_8574A_ADDR1    0x38    /* I2C1, PCF8574A */
-#define CFG_I2C_8574A_ADDR2    0x39    /* I2C1, PCF8574A */
-#define CFG_I2C_EEPROM_ADDR    0x50    /* I2C0, Board EEPROM */
-#define CFG_I2C_RTC_ADDR       0x68    /* I2C1, DS1339 RTC*/
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
+#define CONFIG_SYS_SPD_BUS_NUM         1       /* The I2C bus for SPD */
+
+#define CONFIG_SYS_I2C_8574_ADDR1      0x20    /* I2C1, PCF8574 */
+#define CONFIG_SYS_I2C_8574_ADDR2      0x21    /* I2C1, PCF8574 */
+#define CONFIG_SYS_I2C_8574A_ADDR1     0x38    /* I2C1, PCF8574A */
+#define CONFIG_SYS_I2C_8574A_ADDR2     0x39    /* I2C1, PCF8574A */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* I2C0, Board EEPROM */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68    /* I2C1, DS1339 RTC*/
 #define SPD_EEPROM_ADDRESS     0x51    /* I2C1, DDR */
 
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /* Don't probe these addresses: */
-#define CFG_I2C_NOPROBES       {{1, CFG_I2C_8574_ADDR1}, \
-                                {1, CFG_I2C_8574_ADDR2}, \
-                                {1, CFG_I2C_8574A_ADDR1}, \
-                                {1, CFG_I2C_8574A_ADDR2}}
+#define CONFIG_SYS_I2C_NOPROBES        {{1, CONFIG_SYS_I2C_8574_ADDR1}, \
+                                {1, CONFIG_SYS_I2C_8574_ADDR2}, \
+                                {1, CONFIG_SYS_I2C_8574A_ADDR1}, \
+                                {1, CONFIG_SYS_I2C_8574A_ADDR2}}
 /* Bit definitions for the 8574[A] I2C expander */
 #define I2C_8574_REVISION      0x03    /* Board revision, 00=0.0, 01=0.1, 10=1.0 */
 #define I2C_8574_CF            0x08    /* 1=Compact flash absent, 0=present */
 /* Compact Flash */
 #ifdef CONFIG_COMPACT_FLASH
 
-#define CFG_IDE_MAXBUS         1
-#define CFG_IDE_MAXDEVICE      1
+#define CONFIG_SYS_IDE_MAXBUS          1
+#define CONFIG_SYS_IDE_MAXDEVICE       1
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_BASE_ADDR      CFG_CF_BASE
-#define CFG_ATA_DATA_OFFSET    0x0000
-#define CFG_ATA_REG_OFFSET     0
-#define CFG_ATA_ALT_OFFSET     0x0200
-#define CFG_ATA_STRIDE         2
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_CF_BASE
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000
+#define CONFIG_SYS_ATA_REG_OFFSET      0
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0200
+#define CONFIG_SYS_ATA_STRIDE          2
 
 #define ATA_RESET_TIME 1       /* If a CF card is not inserted, time out quickly */
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_83XX_DDR_USES_CS0
-#define CFG_MEMTEST_START      0x1000          /* memtest region */
-#define CFG_MEMTEST_END                0x2000
-
-#define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_83XX_DDR_USES_CS0
+#define CONFIG_SYS_MEMTEST_START       0x1000          /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x2000
+
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  (DDR_SDRAM_CLK_CNTL_SS_EN | \
                                DDR_SDRAM_CLK_CNTL_CLK_ADJUST_075)
 
 #ifdef CONFIG_HARD_I2C
 #endif
 
 #ifndef CONFIG_SPD_EEPROM      /* No SPD? Then manually set up DDR parameters */
-    #define CFG_DDR_SIZE       256             /* Mb */
-    #define CFG_DDR_CONFIG     (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10)
+    #define CONFIG_SYS_DDR_SIZE        256             /* Mb */
+    #define CONFIG_SYS_DDR_CONFIG      (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10)
 
-    #define CFG_DDR_TIMING_1   0x26242321
-    #define CFG_DDR_TIMING_2   0x00000800  /* P9-45, may need tuning */
+    #define CONFIG_SYS_DDR_TIMING_1    0x26242321
+    #define CONFIG_SYS_DDR_TIMING_2    0x00000800  /* P9-45, may need tuning */
 #endif
 
 /*
  *Flash on the Local Bus
  */
 
-#define CFG_FLASH_CFI                          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI                           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER                        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000      /* start of FLASH   */
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_MAX_FLASH_SECT     135     /* 127 64KB sectors + 8 8KB sectors per device */
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_BASE          0xFE000000      /* start of FLASH   */
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_MAX_FLASH_SECT      135     /* 127 64KB sectors + 8 8KB sectors per device */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT
 
 /* The ITX has two flash chips, but the ITX-GP has only one.  To support both
 boards, we say we have two, but don't display a message if we find only one. */
-#define CFG_FLASH_QUIET_TEST
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_FLASH_BANKS_LIST   {CFG_FLASH_BASE, CFG_FLASH_BASE + 0x800000}
-#define CFG_FLASH_SIZE         16              /* FLASH size in MB */
-#define CFG_FLASH_SIZE_SHIFT   4               /* log2 of the above value */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + 0x800000}
+#define CONFIG_SYS_FLASH_SIZE          16              /* FLASH size in MB */
+#define CONFIG_SYS_FLASH_SIZE_SHIFT    4               /* log2 of the above value */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
 
 /* Vitesse 7385 */
 
@@ -210,34 +210,34 @@ boards, we say we have two, but don't display a message if we find only one. */
 
 /* Flash */
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BR_PS_16 | BR_V)
-#define CFG_OR0_PRELIM         ((~(CFG_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR0_PRELIM          ((~(CONFIG_SYS_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
                                OR_GPCM_CSNT | OR_GPCM_ACS_DIV2 | OR_GPCM_XACS | OR_GPCM_SCY_15 | \
                                OR_GPCM_TRLX | OR_GPCM_EHTR | OR_GPCM_EAD)
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE
-#define CFG_LBLAWAR0_PRELIM    (LBLAWAR_EN | (0x13 + CFG_FLASH_SIZE_SHIFT))
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_LBLAWAR0_PRELIM     (LBLAWAR_EN | (0x13 + CONFIG_SYS_FLASH_SIZE_SHIFT))
 
 /* Vitesse 7385 */
 
-#define CFG_VSC7385_BASE       0xF8000000
+#define CONFIG_SYS_VSC7385_BASE        0xF8000000
 
 #ifdef CONFIG_VSC7385_ENET
 
-#define CFG_BR1_PRELIM         (CFG_VSC7385_BASE | BR_PS_8 | BR_V)
-#define CFG_OR1_PRELIM         (OR_AM_128KB | OR_GPCM_CSNT | OR_GPCM_XACS | \
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_VSC7385_BASE | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR1_PRELIM          (OR_AM_128KB | OR_GPCM_CSNT | OR_GPCM_XACS | \
                                OR_GPCM_SCY_15 | OR_GPCM_SETA | OR_GPCM_TRLX | \
                                OR_GPCM_EHTR | OR_GPCM_EAD)
 
-#define CFG_LBLAWBAR1_PRELIM   CFG_VSC7385_BASE
-#define CFG_LBLAWAR1_PRELIM    (LBLAWAR_EN | LBLAWAR_128KB)
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_VSC7385_BASE
+#define CONFIG_SYS_LBLAWAR1_PRELIM     (LBLAWAR_EN | LBLAWAR_128KB)
 
 #endif
 
 /* LED */
 
-#define CFG_LED_BASE           0xF9000000
-#define CFG_BR2_PRELIM         (CFG_LED_BASE | BR_PS_8 | BR_V)
-#define CFG_OR2_PRELIM         (OR_AM_2MB | OR_GPCM_CSNT | OR_GPCM_ACS_DIV2 | \
+#define CONFIG_SYS_LED_BASE            0xF9000000
+#define CONFIG_SYS_BR2_PRELIM          (CONFIG_SYS_LED_BASE | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR2_PRELIM          (OR_AM_2MB | OR_GPCM_CSNT | OR_GPCM_ACS_DIV2 | \
                                OR_GPCM_XACS | OR_GPCM_SCY_9 | OR_GPCM_TRLX | \
                                OR_GPCM_EHTR | OR_GPCM_EAD)
 
@@ -245,39 +245,39 @@ boards, we say we have two, but don't display a message if we find only one. */
 
 #ifdef CONFIG_COMPACT_FLASH
 
-#define CFG_CF_BASE            0xF0000000
+#define CONFIG_SYS_CF_BASE             0xF0000000
 
-#define CFG_BR3_PRELIM         (CFG_CF_BASE | BR_PS_16 | BR_MS_UPMA | BR_V)
-#define CFG_OR3_PRELIM         (OR_UPM_AM | OR_UPM_BI)
+#define CONFIG_SYS_BR3_PRELIM          (CONFIG_SYS_CF_BASE | BR_PS_16 | BR_MS_UPMA | BR_V)
+#define CONFIG_SYS_OR3_PRELIM          (OR_UPM_AM | OR_UPM_BI)
 
-#define CFG_LBLAWBAR3_PRELIM   CFG_CF_BASE
-#define CFG_LBLAWAR3_PRELIM    (LBLAWAR_EN | LBLAWAR_64KB)
+#define CONFIG_SYS_LBLAWBAR3_PRELIM    CONFIG_SYS_CF_BASE
+#define CONFIG_SYS_LBLAWAR3_PRELIM     (LBLAWAR_EN | LBLAWAR_64KB)
 
 #endif
 
 /*
  * U-Boot memory configuration
  */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0xFD000000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000          /* End of used area in RAM*/
+#define CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0xFD000000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000          /* End of used area in RAM*/
 
-#define CFG_GBL_DATA_SIZE      0x100           /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100           /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024) /* Reserved for malloc */
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024) /* Reserved for malloc */
 
 /*
  * Local Bus LCRR and LBCR regs
@@ -285,30 +285,30 @@ boards, we say we have two, but don't display a message if we find only one. */
  * External Local Bus rate is
  *    CLKIN * HRCWL_CSB_TO_CLKIN / HRCWL_LCL_BUS_TO_SCB_CLK / LCRR_CLKDIV
  */
-#define CFG_LCRR       (LCRR_DBYP | LCRR_CLKDIV_4)
-#define CFG_LBC_LBCR   0x00000000
+#define CONFIG_SYS_LCRR        (LCRR_DBYP | LCRR_CLKDIV_4)
+#define CONFIG_SYS_LBC_LBCR    0x00000000
 
-#define CFG_LBC_LSRT   0x32000000    /* LB sdram refresh timer, about 6us */
-#define CFG_LBC_MRTPR  0x20000000    /* LB refresh timer prescal, 266MHz/32*/
+#define CONFIG_SYS_LBC_LSRT    0x32000000    /* LB sdram refresh timer, about 6us */
+#define CONFIG_SYS_LBC_MRTPR   0x20000000    /* LB refresh timer prescal, 266MHz/32*/
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
 #define CONFIG_CONSOLE         ttyS0
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_NS16550_COM1       (CFG_IMMR + 0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR + 0x4600)
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_LIBFDT       1
@@ -326,26 +326,26 @@ boards, we say we have two, but don't display a message if we find only one. */
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI1_MMIO_BASE     (CFG_PCI1_MEM_BASE + CFG_PCI1_MEM_SIZE)
-#define CFG_PCI1_MMIO_PHYS     CFG_PCI1_MMIO_BASE
-#define CFG_PCI1_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xE2000000
-#define CFG_PCI1_IO_SIZE       0x01000000      /* 16M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_MMIO_BASE      (CONFIG_SYS_PCI1_MEM_BASE + CONFIG_SYS_PCI1_MEM_SIZE)
+#define CONFIG_SYS_PCI1_MMIO_PHYS      CONFIG_SYS_PCI1_MMIO_BASE
+#define CONFIG_SYS_PCI1_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xE2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x01000000      /* 16M */
 
 #ifdef CONFIG_MPC83XX_PCI2
-#define CFG_PCI2_MEM_BASE      (CFG_PCI1_MMIO_BASE + CFG_PCI1_MMIO_SIZE)
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI2_MMIO_BASE     (CFG_PCI2_MEM_BASE + CFG_PCI2_MEM_SIZE)
-#define CFG_PCI2_MMIO_PHYS     CFG_PCI2_MMIO_BASE
-#define CFG_PCI2_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       (CFG_PCI1_IO_PHYS + CFG_PCI1_IO_SIZE)
-#define CFG_PCI2_IO_SIZE       0x01000000      /* 16M */
+#define CONFIG_SYS_PCI2_MEM_BASE       (CONFIG_SYS_PCI1_MMIO_BASE + CONFIG_SYS_PCI1_MMIO_SIZE)
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI2_MMIO_BASE      (CONFIG_SYS_PCI2_MEM_BASE + CONFIG_SYS_PCI2_MEM_SIZE)
+#define CONFIG_SYS_PCI2_MMIO_PHYS      CONFIG_SYS_PCI2_MMIO_BASE
+#define CONFIG_SYS_PCI2_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        (CONFIG_SYS_PCI1_IO_PHYS + CONFIG_SYS_PCI1_IO_SIZE)
+#define CONFIG_SYS_PCI2_IO_SIZE        0x01000000      /* 16M */
 #endif
 
 #define _IO_BASE               0x00000000      /* points to PCI I/O space */
@@ -360,7 +360,7 @@ boards, we say we have two, but don't display a message if we find only one. */
 
 #ifndef CONFIG_PCI_PNP
     #define PCI_ENET0_IOADDR   0x00000000
-    #define PCI_ENET0_MEMADDR  CFG_PCI2_MEM_BASE
+    #define PCI_ENET0_MEMADDR  CONFIG_SYS_PCI2_MEM_BASE
     #define PCI_IDSEL_NUMBER   0x0f    /* IDSEL = AD15 */
 #endif
 
@@ -388,7 +388,7 @@ boards, we say we have two, but don't display a message if we find only one. */
 #ifdef CONFIG_TSEC1
 #define CONFIG_HAS_ETH0
 #define CONFIG_TSEC1_NAME  "TSEC0"
-#define CFG_TSEC1_OFFSET       0x24000
+#define CONFIG_SYS_TSEC1_OFFSET        0x24000
 #define TSEC1_PHY_ADDR         0x1c    /* VSC8201 uses address 0x1c */
 #define TSEC1_PHYIDX           0
 #define TSEC1_FLAGS            TSEC_GIGABIT
@@ -397,7 +397,7 @@ boards, we say we have two, but don't display a message if we find only one. */
 #ifdef CONFIG_TSEC2
 #define CONFIG_HAS_ETH1
 #define CONFIG_TSEC2_NAME  "TSEC1"
-#define CFG_TSEC2_OFFSET       0x25000
+#define CONFIG_SYS_TSEC2_OFFSET        0x25000
 
 #define TSEC2_PHY_ADDR         4
 #define TSEC2_PHYIDX           0
@@ -413,21 +413,21 @@ boards, we say we have two, but don't display a message if we find only one. */
  */
 #define CONFIG_ENV_OVERWRITE
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
   #define CONFIG_ENV_IS_IN_FLASH
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
   #define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K (one sector) for environment */
   #define CONFIG_ENV_SIZE              0x2000
 #else
-  #define CFG_NO_FLASH         /* Flash is not usable now */
+  #define CONFIG_SYS_NO_FLASH          /* Flash is not usable now */
   #undef  CONFIG_FLASH_CFI_DRIVER
   #define CONFIG_ENV_IS_NOWHERE        /* Store ENV in memory only */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   /* allow baudrate change */
 
 /*
  * BOOTP options
@@ -469,47 +469,47 @@ boards, we say we have two, but don't display a message if we find only one. */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_HUSH_PARSER                        /* Use the HUSH parser */
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* Use the HUSH parser */
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
 #define CONFIG_LOADADDR        500000  /* default location for tftp and bootm */
 
 #ifdef CONFIG_MPC8349ITX
-#define CFG_PROMPT     "MPC8349E-mITX> "       /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT      "MPC8349E-mITX> "       /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT     "MPC8349E-mITX-GP> "    /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT      "MPC8349E-mITX-GP> "    /* Monitor Command Prompt */
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN_4X1 |\
        HRCWL_VCO_1X2 |\
        HRCWL_CORE_TO_CSB_2X1)
 
-#ifdef CFG_LOWBOOT
-#define CFG_HRCW_HIGH (\
+#ifdef CONFIG_SYS_LOWBOOT
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_32_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
@@ -522,7 +522,7 @@ boards, we say we have two, but don't display a message if we find only one. */
        HRCWH_TSEC1M_IN_GMII |\
        HRCWH_TSEC2M_IN_GMII )
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_32_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
@@ -539,81 +539,81 @@ boards, we say we have two, but don't display a message if we find only one. */
 /*
  * System performance
  */
-#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth (0-3) */
-#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count (0-7) */
-#define CFG_SPCR_TSEC1EP       3       /* TSEC1 emergency priority (0-3) */
-#define CFG_SPCR_TSEC2EP       3       /* TSEC2 emergency priority (0-3) */
-#define CFG_SCCR_TSEC1CM       1       /* TSEC1 clock mode (0-3) */
-#define CFG_SCCR_TSEC2CM       1       /* TSEC2 & I2C0 clock mode (0-3) */
+#define CONFIG_SYS_ACR_PIPE_DEP        3       /* Arbiter pipeline depth (0-3) */
+#define CONFIG_SYS_ACR_RPTCNT          3       /* Arbiter repeat count (0-7) */
+#define CONFIG_SYS_SPCR_TSEC1EP        3       /* TSEC1 emergency priority (0-3) */
+#define CONFIG_SYS_SPCR_TSEC2EP        3       /* TSEC2 emergency priority (0-3) */
+#define CONFIG_SYS_SCCR_TSEC1CM        1       /* TSEC1 clock mode (0-3) */
+#define CONFIG_SYS_SCCR_TSEC2CM        1       /* TSEC2 & I2C0 clock mode (0-3) */
 
 /*
  * System IO Config
  */
-#define CFG_SICRH SICRH_TSOBI1 /* Needed for gigabit to work on TSEC 1 */
-#define CFG_SICRL (SICRL_LDP_A | SICRL_USB1)
+#define CONFIG_SYS_SICRH SICRH_TSOBI1  /* Needed for gigabit to work on TSEC 1 */
+#define CONFIG_SYS_SICRL (SICRL_LDP_A | SICRL_USB1)
 
-#define CFG_HID0_INIT  0x000000000
-#define CFG_HID0_FINAL CFG_HID0_INIT
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  CONFIG_SYS_HID0_INIT
 
-#define CFG_HID2       HID2_HBE
+#define CONFIG_SYS_HID2        HID2_HBE
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR  */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* PCI  */
 #ifdef CONFIG_PCI
-#define CFG_IBAT1L     (CFG_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 #else
-#define CFG_IBAT1L     0
-#define CFG_IBAT1U     0
-#define CFG_IBAT2L     0
-#define CFG_IBAT2U     0
+#define CONFIG_SYS_IBAT1L      0
+#define CONFIG_SYS_IBAT1U      0
+#define CONFIG_SYS_IBAT2L      0
+#define CONFIG_SYS_IBAT2U      0
 #endif
 
 #ifdef CONFIG_MPC83XX_PCI2
-#define CFG_IBAT3L     (CFG_PCI2_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT3U     (CFG_PCI2_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT4L     (CFG_PCI2_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT4U     (CFG_PCI2_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_PCI2_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_PCI2_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_PCI2_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_PCI2_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 #else
-#define CFG_IBAT3L     0
-#define CFG_IBAT3U     0
-#define CFG_IBAT4L     0
-#define CFG_IBAT4U     0
+#define CONFIG_SYS_IBAT3L      0
+#define CONFIG_SYS_IBAT3U      0
+#define CONFIG_SYS_IBAT4L      0
+#define CONFIG_SYS_IBAT4U      0
 #endif
 
 /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 & BCSR @ 0xE2400000 */
-#define CFG_IBAT5L     (CFG_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* SDRAM @ 0xF0000000, stack in DCACHE 0xFDF00000 & FLASH @ 0xFE000000 */
-#define CFG_IBAT6L     (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT7L     0
-#define CFG_IBAT7U     0
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT7L      0
+#define CONFIG_SYS_IBAT7U      0
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
index baff03e67321412d6a1141377cd6a801a237320b..ee5164ae5fd577569ae2a028d9b55156c083045e 100644 (file)
@@ -49,7 +49,7 @@
 /*
  * Hardware Reset Configuration Word
  */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN_4X1 |\
@@ -60,7 +60,7 @@
        HRCWL_CORE_TO_CSB_2X1)
 
 #ifdef CONFIG_PCISLAVE
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_AGENT |\
        HRCWH_PCI1_ARBITER_DISABLE |\
        HRCWH_PCICKDRV_DISABLE |\
@@ -70,7 +70,7 @@
        HRCWH_SW_WATCHDOG_DISABLE |\
        HRCWH_ROM_LOC_LOCAL_16BIT)
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_PCICKDRV_ENABLE |\
@@ -84,8 +84,8 @@
 /*
  * System IO Config
  */
-#define CFG_SICRH              0x00000000
-#define CFG_SICRL              0x40000000
+#define CONFIG_SYS_SICRH               0x00000000
+#define CONFIG_SYS_SICRL               0x40000000
 
 #define CONFIG_BOARD_EARLY_INIT_F /* call board_pre_init */
 #define CONFIG_BOARD_EARLY_INIT_R
 /*
  * IMMR new address
  */
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000 /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
+#define CONFIG_SYS_DDR_BASE            0x00000000 /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  (DDR_SDRAM_CLK_CNTL_SS_EN | \
                                DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
 
-#define CFG_83XX_DDR_USES_CS0
+#define CONFIG_SYS_83XX_DDR_USES_CS0
 
 #define CONFIG_DDR_ECC         /* support DDR ECC function */
 #define CONFIG_DDR_ECC_CMD     /* Use DDR ECC user commands */
 /*
  * DDRCDR - DDR Control Driver Register
  */
-#define CFG_DDRCDR_VALUE       0x80080001
+#define CONFIG_SYS_DDRCDR_VALUE        0x80080001
 
 #define CONFIG_SPD_EEPROM      /* Use SPD EEPROM for DDR setup */
 #if defined(CONFIG_SPD_EEPROM)
 /*
  * Manually set up DDR parameters
  */
-#define CFG_DDR_SIZE           256 /* MB */
+#define CONFIG_SYS_DDR_SIZE            256 /* MB */
 #if defined(CONFIG_DDR_II)
-#define CFG_DDRCDR             0x80080001
-#define CFG_DDR_CS0_BNDS       0x0000000f
-#define CFG_DDR_CS0_CONFIG     0x80330102
-#define CFG_DDR_TIMING_0       0x00220802
-#define CFG_DDR_TIMING_1       0x38357322
-#define CFG_DDR_TIMING_2       0x2f9048c8
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_CLK_CNTL       0x02000000
-#define CFG_DDR_MODE           0x47d00432
-#define CFG_DDR_MODE2          0x8000c000
-#define CFG_DDR_INTERVAL       0x03cf0080
-#define CFG_DDR_SDRAM_CFG      0x43000000
-#define CFG_DDR_SDRAM_CFG2     0x00401000
+#define CONFIG_SYS_DDRCDR              0x80080001
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000f
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80330102
+#define CONFIG_SYS_DDR_TIMING_0        0x00220802
+#define CONFIG_SYS_DDR_TIMING_1        0x38357322
+#define CONFIG_SYS_DDR_TIMING_2        0x2f9048c8
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_CLK_CNTL        0x02000000
+#define CONFIG_SYS_DDR_MODE            0x47d00432
+#define CONFIG_SYS_DDR_MODE2           0x8000c000
+#define CONFIG_SYS_DDR_INTERVAL        0x03cf0080
+#define CONFIG_SYS_DDR_SDRAM_CFG       0x43000000
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00401000
 #else
-#define CFG_DDR_CONFIG (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_9)
-#define CFG_DDR_TIMING_1       0x37344321 /* tCL-tRCD-tRP-tRAS=2.5-3-3-7 */
-#define CFG_DDR_TIMING_2       0x00000800 /* may need tuning */
-#define CFG_DDR_CONTROL                0x42008000 /* Self refresh,2T timing */
-#define CFG_DDR_MODE           0x20000162 /* DLL,normal,seq,4/2.5 */
-#define CFG_DDR_INTERVAL       0x045b0100 /* page mode */
+#define CONFIG_SYS_DDR_CONFIG (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_9)
+#define CONFIG_SYS_DDR_TIMING_1        0x37344321 /* tCL-tRCD-tRP-tRAS=2.5-3-3-7 */
+#define CONFIG_SYS_DDR_TIMING_2        0x00000800 /* may need tuning */
+#define CONFIG_SYS_DDR_CONTROL         0x42008000 /* Self refresh,2T timing */
+#define CONFIG_SYS_DDR_MODE            0x20000162 /* DLL,normal,seq,4/2.5 */
+#define CONFIG_SYS_DDR_INTERVAL        0x045b0100 /* page mode */
 #endif
 #endif
 
 /*
  * Memory test
  */
-#undef CFG_DRAM_TEST           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00000000 /* memtest region */
-#define CFG_MEMTEST_END                0x00100000
+#undef CONFIG_SYS_DRAM_TEST            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00000000 /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00100000
 
 /*
  * The reserved memory
  */
 
-#define CFG_MONITOR_BASE       TEXT_BASE /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024) /* Reserved for malloc */
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024) /* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
  */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xE6000000 /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000 /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      0x100 /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xE6000000 /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000 /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100 /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Local Bus Configuration & Clock Setup
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_4)
-#define CFG_LBC_LBCR           0x00000000
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_4)
+#define CONFIG_SYS_LBC_LBCR            0x00000000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000 /* FLASH base address */
-#define CFG_FLASH_SIZE         32 /* max FLASH size is 32M */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000 /* FLASH base address */
+#define CONFIG_SYS_FLASH_SIZE          32 /* max FLASH size is 32M */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
 #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE /* Window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000018 /* 32MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE /* Window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000018 /* 32MB window size */
 
-#define CFG_BR0_PRELIM (CFG_FLASH_BASE | /* Flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM  (CONFIG_SYS_FLASH_BASE | /* Flash Base address */ \
                        (2 << BR_PS_SHIFT) | /* 16 bit port size */ \
                        BR_V)   /* valid */
-#define CFG_OR0_PRELIM         ((~(CFG_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
+#define CONFIG_SYS_OR0_PRELIM          ((~(CONFIG_SYS_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
                                OR_GPCM_CSNT | OR_GPCM_ACS_DIV2 | OR_GPCM_XACS | OR_GPCM_SCY_15 | \
                                OR_GPCM_TRLX | OR_GPCM_EHTR | OR_GPCM_EAD)
 
-#define CFG_MAX_FLASH_BANKS    1 /* number of banks */
-#define CFG_MAX_FLASH_SECT     256 /* max sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1 /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256 /* max sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
+#undef CONFIG_SYS_FLASH_CHECKSUM
 
 /*
  * BCSR on the Local Bus
  */
-#define CFG_BCSR               0xF8000000
-#define CFG_LBLAWBAR1_PRELIM   CFG_BCSR /* Access window base at BCSR base */
-#define CFG_LBLAWAR1_PRELIM    0x8000000F /* Access window size 64K */
+#define CONFIG_SYS_BCSR                0xF8000000
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_BCSR /* Access window base at BCSR base */
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000000F /* Access window size 64K */
 
-#define CFG_BR1_PRELIM         (CFG_BCSR|0x00000801) /* Port size=8bit, MSEL=GPCM */
-#define CFG_OR1_PRELIM         0xFFFFE9f7 /* length 32K */
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_BCSR|0x00000801) /* Port size=8bit, MSEL=GPCM */
+#define CONFIG_SYS_OR1_PRELIM          0xFFFFE9f7 /* length 32K */
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xF0000000      /* SDRAM base address */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xF0000000      /* SDRAM base address */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
-#define CFG_LB_SDRAM           /* if board has SRDAM on local bus */
+#define CONFIG_SYS_LB_SDRAM            /* if board has SRDAM on local bus */
 
-#ifdef CFG_LB_SDRAM
-#define CFG_LBLAWBAR2_PRELIM   CFG_LBC_SDRAM_BASE
-#define CFG_LBLAWAR2_PRELIM    0x80000019 /* 64MB */
+#ifdef CONFIG_SYS_LB_SDRAM
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    CONFIG_SYS_LBC_SDRAM_BASE
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000019 /* 64MB */
 
 /*local bus BR2, OR2 definition for SDRAM if soldered on the EPB board */
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  * 0   4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM 0xf0001861 /*Port size=32bit, MSEL=SDRAM */
+#define CONFIG_SYS_BR2_PRELIM  0xf0001861 /*Port size=32bit, MSEL=SDRAM */
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM 0xfc006901
+#define CONFIG_SYS_OR2_PRELIM  0xfc006901
 
-#define CFG_LBC_LSRT   0x32000000 /* LB sdram refresh timer, about 6us */
-#define CFG_LBC_MRTPR  0x20000000 /* LB refresh timer prescal, 266MHz/32 */
+#define CONFIG_SYS_LBC_LSRT    0x32000000 /* LB sdram refresh timer, about 6us */
+#define CONFIG_SYS_LBC_MRTPR   0x20000000 /* LB refresh timer prescal, 266MHz/32 */
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
-#define CFG_LBC_LSDMR_COMMON   0x0063b723
+#define CONFIG_SYS_LBC_LSDMR_COMMON    0x0063b723
 
 /*
  * SDRAM Controller configuration sequence.
  */
-#define CFG_LBC_LSDMR_1                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_PCHALL)
-#define CFG_LBC_LSDMR_2                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_3                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_4                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_MRW)
-#define CFG_LBC_LSDMR_5                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_NORMAL)
+#define CONFIG_SYS_LBC_LSDMR_1         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_PCHALL)
+#define CONFIG_SYS_LBC_LSDMR_2         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_3         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_4         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_MRW)
+#define CONFIG_SYS_LBC_LSDMR_5         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_NORMAL)
 
 #endif
 
 /*
  * Windows to access PIB via local bus
  */
-#define CFG_LBLAWBAR3_PRELIM   0xf8010000 /* windows base 0xf8010000 */
-#define CFG_LBLAWAR3_PRELIM    0x8000000e /* windows size 32KB */
+#define CONFIG_SYS_LBLAWBAR3_PRELIM    0xf8010000 /* windows base 0xf8010000 */
+#define CONFIG_SYS_LBLAWAR3_PRELIM     0x8000000e /* windows size 32KB */
 
 /*
  * CS4 on Local Bus, to PIB
  */
-#define CFG_BR4_PRELIM 0xf8010801 /* CS4 base address at 0xf8010000 */
-#define CFG_OR4_PRELIM 0xffffe9f7 /* size 32KB, port size 8bit, GPCM */
+#define CONFIG_SYS_BR4_PRELIM  0xf8010801 /* CS4 base address at 0xf8010000 */
+#define CONFIG_SYS_OR4_PRELIM  0xffffe9f7 /* size 32KB, port size 8bit, GPCM */
 
 /*
  * CS5 on Local Bus, to PIB
  */
-#define CFG_BR5_PRELIM 0xf8008801 /* CS5 base address at 0xf8008000 */
-#define CFG_OR5_PRELIM 0xffffe9f7 /* size 32KB, port size 8bit, GPCM */
+#define CONFIG_SYS_BR5_PRELIM  0xf8008801 /* CS5 base address at 0xf8008000 */
+#define CONFIG_SYS_OR5_PRELIM  0xffffe9f7 /* size 32KB, port size 8bit, GPCM */
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
 #define CONFIG_FSL_I2C
-#define CFG_I2C_SPEED  400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE  0x7F
-#define CFG_I2C_NOPROBES       {0x52} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET 0x3000
-#define CFG_I2C2_OFFSET 0x3100
+#define CONFIG_SYS_I2C_SPEED   400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE   0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x52} /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET  0x3000
+#define CONFIG_SYS_I2C2_OFFSET 0x3100
 
 /*
  * Config on-board RTC
  */
 #define CONFIG_RTC_DS1374              /* use ds1374 rtc via i2c */
-#define CFG_I2C_RTC_ADDR       0x68    /* at address 0x68 */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68    /* at address 0x68 */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI_MEM_BASE       0x80000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BASE
-#define CFG_PCI_MEM_SIZE       0x10000000 /* 256M */
-#define CFG_PCI_MMIO_BASE      0x90000000
-#define CFG_PCI_MMIO_PHYS      CFG_PCI_MMIO_BASE
-#define CFG_PCI_MMIO_SIZE      0x10000000 /* 256M */
-#define CFG_PCI_IO_BASE                0x00000000
-#define CFG_PCI_IO_PHYS                0xE0300000
-#define CFG_PCI_IO_SIZE                0x100000 /* 1M */
+#define CONFIG_SYS_PCI_MEM_BASE        0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BASE
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_MMIO_BASE       0x90000000
+#define CONFIG_SYS_PCI_MMIO_PHYS       CONFIG_SYS_PCI_MMIO_BASE
+#define CONFIG_SYS_PCI_MMIO_SIZE       0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_IO_BASE         0x00000000
+#define CONFIG_SYS_PCI_IO_PHYS         0xE0300000
+#define CONFIG_SYS_PCI_IO_SIZE         0x100000 /* 1M */
 
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE
-#define CFG_PCI_SLV_MEM_BUS    0x00000000
-#define CFG_PCI_SLV_MEM_SIZE   0x80000000
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SLV_MEM_BUS     0x00000000
+#define CONFIG_SYS_PCI_SLV_MEM_SIZE    0x80000000
 
 
 #ifdef CONFIG_PCI
 
 #undef CONFIG_EEPRO100
 #undef CONFIG_PCI_SCAN_SHOW    /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1957 /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 
 #endif /* CONFIG_PCI */
 
 #define CONFIG_UEC_ETH1                /* GETH1 */
 
 #ifdef CONFIG_UEC_ETH1
-#define CFG_UEC1_UCC_NUM       0       /* UCC1 */
-#define CFG_UEC1_RX_CLK                QE_CLK_NONE
-#define CFG_UEC1_TX_CLK                QE_CLK9
-#define CFG_UEC1_ETH_TYPE      GIGA_ETH
-#define CFG_UEC1_PHY_ADDR      0
-#define CFG_UEC1_INTERFACE_MODE ENET_1000_GMII
+#define CONFIG_SYS_UEC1_UCC_NUM        0       /* UCC1 */
+#define CONFIG_SYS_UEC1_RX_CLK         QE_CLK_NONE
+#define CONFIG_SYS_UEC1_TX_CLK         QE_CLK9
+#define CONFIG_SYS_UEC1_ETH_TYPE       GIGA_ETH
+#define CONFIG_SYS_UEC1_PHY_ADDR       0
+#define CONFIG_SYS_UEC1_INTERFACE_MODE ENET_1000_GMII
 #endif
 
 #define CONFIG_UEC_ETH2                /* GETH2 */
 
 #ifdef CONFIG_UEC_ETH2
-#define CFG_UEC2_UCC_NUM       1       /* UCC2 */
-#define CFG_UEC2_RX_CLK                QE_CLK_NONE
-#define CFG_UEC2_TX_CLK                QE_CLK4
-#define CFG_UEC2_ETH_TYPE      GIGA_ETH
-#define CFG_UEC2_PHY_ADDR      1
-#define CFG_UEC2_INTERFACE_MODE ENET_1000_GMII
+#define CONFIG_SYS_UEC2_UCC_NUM        1       /* UCC2 */
+#define CONFIG_SYS_UEC2_RX_CLK         QE_CLK_NONE
+#define CONFIG_SYS_UEC2_TX_CLK         QE_CLK4
+#define CONFIG_SYS_UEC2_ETH_TYPE       GIGA_ETH
+#define CONFIG_SYS_UEC2_PHY_ADDR       1
+#define CONFIG_SYS_UEC2_INTERFACE_MODE ENET_1000_GMII
 #endif
 
 /*
  * Environment
  */
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x20000
        #define CONFIG_ENV_SIZE         0x2000
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000 /* default load address */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000 /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024 /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256 /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Core HID Setup
  */
-#define CFG_HID0_INIT          0x000000000
-#define CFG_HID0_FINAL         HID0_ENABLE_MACHINE_CHECK
-#define CFG_HID2               HID2_HBE
+#define CONFIG_SYS_HID0_INIT           0x000000000
+#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID2                HID2_HBE
 
 /*
  * MMU Setup
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR: cache cacheable */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
 /* IMMRBAR & PCI IO: cache-inhibit and guarded */
-#define CFG_IBAT1L     (CFG_IMMR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_IMMR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT1U     (CFG_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* BCSR: cache-inhibit and guarded */
-#define CFG_IBAT2L     (CFG_BCSR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_BCSR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_BCSR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_BCSR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
 /* FLASH: icache cacheable, but dcache-inhibit and guarded */
-#define CFG_IBAT3L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT3U     (CFG_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_DBAT3L     (CFG_FLASH_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /* Local bus SDRAM: cacheable */
-#define CFG_IBAT4L     (CFG_LBC_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT4U     (CFG_LBC_SDRAM_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_LBC_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_LBC_SDRAM_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
 
 /* Stack in dcache: cacheable, no memory coherence */
-#define CFG_IBAT5L     (CFG_INIT_RAM_ADDR | BATL_PP_10)
-#define CFG_IBAT5U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
 
 #ifdef CONFIG_PCI
 /* PCI MEM space: cacheable */
-#define CFG_IBAT6L     (CFG_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (CFG_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (CONFIG_SYS_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
 /* PCI MMIO space: cache-inhibit and guarded */
-#define CFG_IBAT7L     (CFG_PCI_MMIO_PHYS | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT7L      (CONFIG_SYS_PCI_MMIO_PHYS | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT7U     (CFG_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT7U      (CONFIG_SYS_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #else
-#define CFG_IBAT6L     (0)
-#define CFG_IBAT6U     (0)
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0)
+#define CONFIG_SYS_IBAT6U      (0)
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #endif
 
 /*
index b2e6b3b84df166f92f7f348e6eed57b4a3927dd8..a4f2862c4dde8072e1f42c4d01a38d02cb2e549c 100644 (file)
 /*
  * Hardware Reset Configuration Word
  */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN_MPC8360ERDK |\
        HRCWL_CORE_TO_CSB_2X1 |\
        HRCWL_CE_TO_PLL_1X15)
 
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_PCICKDRV_ENABLE |\
@@ -67,8 +67,8 @@
 /*
  * System IO Config
  */
-#define CFG_SICRH              0x00000000
-#define CFG_SICRL              0x40000000
+#define CONFIG_SYS_SICRH               0x00000000
+#define CONFIG_SYS_SICRL               0x40000000
 
 #define CONFIG_BOARD_EARLY_INIT_F /* call board_pre_init */
 #define CONFIG_BOARD_EARLY_INIT_R
 /*
  * IMMR new address
  */
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000 /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
+#define CONFIG_SYS_DDR_BASE            0x00000000 /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  (DDR_SDRAM_CLK_CNTL_SS_EN | \
                                DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
 
-#define CFG_83XX_DDR_USES_CS0
+#define CONFIG_SYS_83XX_DDR_USES_CS0
 
 #define CONFIG_DDR_ECC         /* support DDR ECC function */
 #define CONFIG_DDR_ECC_CMD     /* Use DDR ECC user commands */
@@ -95,7 +95,7 @@
 /*
  * DDRCDR - DDR Control Driver Register
  */
-#define CFG_DDRCDR_VALUE       0x80080001
+#define CONFIG_SYS_DDRCDR_VALUE        0x80080001
 
 #undef CONFIG_SPD_EEPROM       /* Do not use SPD EEPROM for DDR setup */
 
  * Manually set up DDR parameters
  */
 #define CONFIG_DDR_II
-#define CFG_DDR_SIZE           256 /* MB */
-#define CFG_DDR_CS0_BNDS       0x0000000f
-#define CFG_DDR_CS0_CONFIG     (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | \
+#define CONFIG_SYS_DDR_SIZE            256 /* MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000f
+#define CONFIG_SYS_DDR_CS0_CONFIG      (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | \
                                 CSCONFIG_COL_BIT_10 | CSCONFIG_ODT_WR_ACS)
-#define CFG_DDR_SDRAM_CFG      (SDRAM_CFG_SDRAM_TYPE_DDR2 | SDRAM_CFG_ECC_EN)
-#define CFG_DDR_SDRAM_CFG2     0x00001000
-#define CFG_DDR_CLK_CNTL       (DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
-#define CFG_DDR_INTERVAL       ((256 << SDRAM_INTERVAL_BSTOPRE_SHIFT) | \
+#define CONFIG_SYS_DDR_SDRAM_CFG       (SDRAM_CFG_SDRAM_TYPE_DDR2 | SDRAM_CFG_ECC_EN)
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00001000
+#define CONFIG_SYS_DDR_CLK_CNTL        (DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05)
+#define CONFIG_SYS_DDR_INTERVAL        ((256 << SDRAM_INTERVAL_BSTOPRE_SHIFT) | \
                                 (1115 << SDRAM_INTERVAL_REFINT_SHIFT))
-#define CFG_DDR_MODE           0x47800432
-#define CFG_DDR_MODE2          0x8000c000
+#define CONFIG_SYS_DDR_MODE            0x47800432
+#define CONFIG_SYS_DDR_MODE2           0x8000c000
 
-#define CFG_DDR_TIMING_0       ((2 << TIMING_CFG0_MRS_CYC_SHIFT) | \
+#define CONFIG_SYS_DDR_TIMING_0        ((2 << TIMING_CFG0_MRS_CYC_SHIFT) | \
                                 (9 << TIMING_CFG0_ODT_PD_EXIT_SHIFT) | \
                                 (3 << TIMING_CFG0_PRE_PD_EXIT_SHIFT) | \
                                 (3 << TIMING_CFG0_ACT_PD_EXIT_SHIFT) | \
                                 (0 << TIMING_CFG0_WRT_SHIFT) | \
                                 (0 << TIMING_CFG0_RWT_SHIFT))
 
-#define CFG_DDR_TIMING_1       ((      TIMING_CFG1_CASLAT_30) | \
+#define CONFIG_SYS_DDR_TIMING_1        ((      TIMING_CFG1_CASLAT_30) | \
                                 ( 2 << TIMING_CFG1_WRTORD_SHIFT) | \
                                 ( 2 << TIMING_CFG1_ACTTOACT_SHIFT) | \
                                 ( 3 << TIMING_CFG1_WRREC_SHIFT) | \
                                 ( 8 << TIMING_CFG1_ACTTOPRE_SHIFT) | \
                                 ( 3 << TIMING_CFG1_PRETOACT_SHIFT))
 
-#define CFG_DDR_TIMING_2       ((9 << TIMING_CFG2_FOUR_ACT_SHIFT) | \
+#define CONFIG_SYS_DDR_TIMING_2        ((9 << TIMING_CFG2_FOUR_ACT_SHIFT) | \
                                 (4 << TIMING_CFG2_CKE_PLS_SHIFT) | \
                                 (2 << TIMING_CFG2_WR_DATA_DELAY_SHIFT) | \
                                 (2 << TIMING_CFG2_RD_TO_PRE_SHIFT) | \
                                 (0 << TIMING_CFG2_ADD_LAT_SHIFT) | \
                                 (0 << TIMING_CFG2_CPO_SHIFT))
 
-#define CFG_DDR_TIMING_3       0x00000000
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
 
 /*
  * Memory test
  */
-#undef CFG_DRAM_TEST           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00000000 /* memtest region */
-#define CFG_MEMTEST_END                0x00100000
+#undef CONFIG_SYS_DRAM_TEST            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00000000 /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00100000
 
 /*
  * The reserved memory
  */
-#define CFG_MONITOR_BASE       TEXT_BASE /* start of monitor */
-#define CFG_FLASH_BASE         0xFF800000 /* FLASH base address */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE /* start of monitor */
+#define CONFIG_SYS_FLASH_BASE          0xFF800000 /* FLASH base address */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024) /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024) /* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
  */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xE6000000 /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000 /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      0x100 /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xE6000000 /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000 /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100 /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Local Bus Configuration & Clock Setup
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_4)
-#define CFG_LBC_LBCR           0x00000000
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_4)
+#define CONFIG_SYS_LBC_LBCR            0x00000000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER        /* use the CFI driver */
-#define CFG_FLASH_SIZE         8 /* max FLASH size is 32M */
-#define CFG_FLASH_PROTECTION   1 /* Use intel Flash protection. */
+#define CONFIG_SYS_FLASH_SIZE          8 /* max FLASH size is 32M */
+#define CONFIG_SYS_FLASH_PROTECTION    1 /* Use intel Flash protection. */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE /* Window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000018 /* 32MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE /* Window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000018 /* 32MB window size */
 
-#define CFG_BR0_PRELIM (CFG_FLASH_BASE | /* Flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM  (CONFIG_SYS_FLASH_BASE | /* Flash Base address */ \
                        (2 << BR_PS_SHIFT) | /* 16 bit port size */ \
                        BR_V)   /* valid */
-#define CFG_OR0_PRELIM         ((~(CFG_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
+#define CONFIG_SYS_OR0_PRELIM          ((~(CONFIG_SYS_FLASH_SIZE - 1) << 20) | OR_UPM_XAM | \
                                OR_GPCM_CSNT | OR_GPCM_ACS_DIV2 | \
                                OR_GPCM_XACS | OR_GPCM_SCY_15 | \
                                OR_GPCM_TRLX | OR_GPCM_EHTR | OR_GPCM_EAD)
 
-#define CFG_MAX_FLASH_BANKS    1 /* number of banks */
-#define CFG_MAX_FLASH_SECT     256 /* max sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1 /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256 /* max sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
+#undef CONFIG_SYS_FLASH_CHECKSUM
 
 /*
  * NAND flash on the local bus
  */
-#define CFG_NAND_BASE          0x60000000
+#define CONFIG_SYS_NAND_BASE           0x60000000
 #define CONFIG_CMD_NAND                1
 #define CONFIG_NAND_FSL_UPM    1
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 
-#define CFG_LBLAWBAR1_PRELIM   CFG_NAND_BASE
-#define CFG_LBLAWAR1_PRELIM    0x8000001b /* Access window size 4K */
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_NAND_BASE
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000001b /* Access window size 4K */
 
 /* Port size 8 bit, UPMA */
-#define CFG_BR1_PRELIM         (CFG_NAND_BASE | 0x00000881)
-#define CFG_OR1_PRELIM         0xfc000001
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_NAND_BASE | 0x00000881)
+#define CONFIG_SYS_OR1_PRELIM          0xfc000001
 
 /*
  * Fujitsu MB86277 (MINT) graphics controller
  */
-#define CFG_VIDEO_BASE         0x70000000
+#define CONFIG_SYS_VIDEO_BASE          0x70000000
 
-#define CFG_LBLAWBAR2_PRELIM   CFG_VIDEO_BASE
-#define CFG_LBLAWAR2_PRELIM    0x80000019 /* Access window size 64MB */
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    CONFIG_SYS_VIDEO_BASE
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000019 /* Access window size 64MB */
 
 /* Port size 32 bit, UPMB */
-#define CFG_BR2_PRELIM         (CFG_VIDEO_BASE | 0x000018a1) /* PS=11, UPMB */
-#define CFG_OR2_PRELIM         0xfc000001 /* (64MB, EAD=1) */
+#define CONFIG_SYS_BR2_PRELIM          (CONFIG_SYS_VIDEO_BASE | 0x000018a1) /* PS=11, UPMB */
+#define CONFIG_SYS_OR2_PRELIM          0xfc000001 /* (64MB, EAD=1) */
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200,}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* Pass open firmware flat tree */
 #define CONFIG_FSL_I2C
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED  400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE  0x7F
-#define CFG_I2C_NOPROBES       {{0x52}} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET 0x3000
-#define CFG_I2C2_OFFSET 0x3100
+#define CONFIG_SYS_I2C_SPEED   400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE   0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {{0x52}} /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET  0x3000
+#define CONFIG_SYS_I2C2_OFFSET 0x3100
 
 /*
  * General PCI
 #define CONFIG_PCI
 #define CONFIG_83XX_GENERIC_PCI        1
 
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000 /* 256M */
-#define CFG_PCI1_MMIO_BASE     0x90000000
-#define CFG_PCI1_MMIO_PHYS     CFG_PCI1_MMIO_BASE
-#define CFG_PCI1_MMIO_SIZE     0x10000000 /* 256M */
-#define CFG_PCI1_IO_BASE       0xE0300000
-#define CFG_PCI1_IO_PHYS       0xE0300000
-#define CFG_PCI1_IO_SIZE       0x100000 /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000 /* 256M */
+#define CONFIG_SYS_PCI1_MMIO_BASE      0x90000000
+#define CONFIG_SYS_PCI1_MMIO_PHYS      CONFIG_SYS_PCI1_MMIO_BASE
+#define CONFIG_SYS_PCI1_MMIO_SIZE      0x10000000 /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE        0xE0300000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xE0300000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x100000 /* 1M */
 
 #ifdef CONFIG_PCI
 
 
 #undef CONFIG_EEPRO100
 #undef CONFIG_PCI_SCAN_SHOW    /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1957 /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 
 #endif /* CONFIG_PCI */
 
 #define CONFIG_UEC_ETH1                /* GETH1 */
 
 #ifdef CONFIG_UEC_ETH1
-#define CFG_UEC1_UCC_NUM       0       /* UCC1 */
-#define CFG_UEC1_RX_CLK                QE_CLK_NONE
-#define CFG_UEC1_TX_CLK                QE_CLK9
-#define CFG_UEC1_ETH_TYPE      GIGA_ETH
-#define CFG_UEC1_PHY_ADDR      2
-#define CFG_UEC1_INTERFACE_MODE ENET_1000_RGMII_RXID
+#define CONFIG_SYS_UEC1_UCC_NUM        0       /* UCC1 */
+#define CONFIG_SYS_UEC1_RX_CLK         QE_CLK_NONE
+#define CONFIG_SYS_UEC1_TX_CLK         QE_CLK9
+#define CONFIG_SYS_UEC1_ETH_TYPE       GIGA_ETH
+#define CONFIG_SYS_UEC1_PHY_ADDR       2
+#define CONFIG_SYS_UEC1_INTERFACE_MODE ENET_1000_RGMII_RXID
 #endif
 
 #define CONFIG_UEC_ETH2                /* GETH2 */
 
 #ifdef CONFIG_UEC_ETH2
-#define CFG_UEC2_UCC_NUM       1       /* UCC2 */
-#define CFG_UEC2_RX_CLK                QE_CLK_NONE
-#define CFG_UEC2_TX_CLK                QE_CLK4
-#define CFG_UEC2_ETH_TYPE      GIGA_ETH
-#define CFG_UEC2_PHY_ADDR      4
-#define CFG_UEC2_INTERFACE_MODE ENET_1000_RGMII_RXID
+#define CONFIG_SYS_UEC2_UCC_NUM        1       /* UCC2 */
+#define CONFIG_SYS_UEC2_RX_CLK         QE_CLK_NONE
+#define CONFIG_SYS_UEC2_TX_CLK         QE_CLK4
+#define CONFIG_SYS_UEC2_ETH_TYPE       GIGA_ETH
+#define CONFIG_SYS_UEC2_PHY_ADDR       4
+#define CONFIG_SYS_UEC2_INTERFACE_MODE ENET_1000_RGMII_RXID
 #endif
 
 /*
  * Environment
  */
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* 128K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x20000
-#else /* CFG_RAMBOOT */
-#define CFG_NO_FLASH           1       /* Flash is not usable now */
+#else /* CONFIG_SYS_RAMBOOT */
+#define CONFIG_SYS_NO_FLASH            1       /* Flash is not usable now */
 #define CONFIG_ENV_IS_NOWHERE  1       /* Store ENV in memory only */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE - 0x1000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #define CONFIG_ENV_SIZE                0x2000
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
 #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
 #undef CONFIG_CMD_ENV
 #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000 /* default load address */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000 /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024 /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256 /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Core HID Setup
  */
-#define CFG_HID0_INIT          0x000000000
-#define CFG_HID0_FINAL         HID0_ENABLE_MACHINE_CHECK
-#define CFG_HID2               HID2_HBE
+#define CONFIG_SYS_HID0_INIT           0x000000000
+#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID2                HID2_HBE
 
 /*
  * MMU Setup
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR: cache cacheable */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
 /* IMMRBAR & PCI IO: cache-inhibit and guarded */
-#define CFG_IBAT1L     (CFG_IMMR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_IMMR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT1U     (CFG_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_IMMR | BATU_BL_4M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* NAND: cache-inhibit and guarded */
-#define CFG_IBAT2L     (CFG_NAND_BASE | BATL_PP_10 | BATL_CACHEINHIBIT |\
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_NAND_BASE | BATL_PP_10 | BATL_CACHEINHIBIT |\
                         BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_NAND_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_NAND_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
 /* FLASH: icache cacheable, but dcache-inhibit and guarded */
-#define CFG_IBAT3L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT3U     (CFG_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_DBAT3L     (CFG_FLASH_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | \
                         BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /* Stack in dcache: cacheable, no memory coherence */
-#define CFG_IBAT4L     (CFG_INIT_RAM_ADDR | BATL_PP_10)
-#define CFG_IBAT4U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
 
-#define CFG_IBAT5L     (CFG_VIDEO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | \
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_VIDEO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | \
                         BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_VIDEO_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_VIDEO_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
 
 #ifdef CONFIG_PCI
 /* PCI MEM space: cacheable */
-#define CFG_IBAT6L     (CFG_PCI1_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (CFG_PCI1_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (CONFIG_SYS_PCI1_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
 /* PCI MMIO space: cache-inhibit and guarded */
-#define CFG_IBAT7L     (CFG_PCI1_MMIO_PHYS | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT7L      (CONFIG_SYS_PCI1_MMIO_PHYS | BATL_PP_10 | \
                         BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT7U     (CFG_PCI1_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT7U      (CONFIG_SYS_PCI1_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #else /* CONFIG_PCI */
-#define CFG_IBAT6L     (0)
-#define CFG_IBAT6U     (0)
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0)
+#define CONFIG_SYS_IBAT6U      (0)
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #endif /* CONFIG_PCI */
 
 /*
index 256f15665a34b974b3b7d143067f53558650080b..aeb61a9d53cdcb0ef8e071cfc3797000d645bda3 100644 (file)
@@ -47,7 +47,7 @@
  * if CLKIN is 66MHz, then
  * CSB = 396MHz, CORE = 594MHz, DDRC = 396MHz, LBC = 396MHz
  */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_SVCOD_DIV_2 |\
@@ -55,7 +55,7 @@
        HRCWL_CORE_TO_CSB_1_5X1)
 
 #ifdef CONFIG_PCISLAVE
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_AGENT |\
        HRCWH_PCI1_ARBITER_DISABLE |\
        HRCWH_CORE_ENABLE |\
@@ -69,7 +69,7 @@
        HRCWH_BIG_ENDIAN |\
        HRCWH_LDP_CLEAR)
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_CORE_ENABLE |\
 #endif
 
 /* Arbiter Configuration Register */
-#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth is 4 */
-#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count is 4 */
+#define CONFIG_SYS_ACR_PIPE_DEP        3       /* Arbiter pipeline depth is 4 */
+#define CONFIG_SYS_ACR_RPTCNT          3       /* Arbiter repeat count is 4 */
 
 /* System Priority Control Register */
-#define CFG_SPCR_TSECEP                3       /* eTSEC1/2 emergency has highest priority */
+#define CONFIG_SYS_SPCR_TSECEP         3       /* eTSEC1/2 emergency has highest priority */
 
 /*
  * IP blocks clock configuration
  */
-#define CFG_SCCR_TSEC1CM       1       /* CSB:eTSEC1 = 1:1 */
-#define CFG_SCCR_TSEC2CM       1       /* CSB:eTSEC2 = 1:1 */
-#define CFG_SCCR_SATACM                SCCR_SATACM_2   /* CSB:SATA[0:3] = 2:1 */
+#define CONFIG_SYS_SCCR_TSEC1CM        1       /* CSB:eTSEC1 = 1:1 */
+#define CONFIG_SYS_SCCR_TSEC2CM        1       /* CSB:eTSEC2 = 1:1 */
+#define CONFIG_SYS_SCCR_SATACM         SCCR_SATACM_2   /* CSB:SATA[0:3] = 2:1 */
 
 /*
  * System IO Config
  */
-#define CFG_SICRH              0x00000000
-#define CFG_SICRL              0x00000000
+#define CONFIG_SYS_SICRH               0x00000000
+#define CONFIG_SYS_SICRL               0x00000000
 
 /*
  * Output Buffer Impedance
  */
-#define CFG_OBIR               0x31100000
+#define CONFIG_SYS_OBIR                0x31100000
 
 #define CONFIG_BOARD_EARLY_INIT_F /* call board_pre_init */
 #define CONFIG_BOARD_EARLY_INIT_R
 /*
  * IMMR new address
  */
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000 /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDR_SDRAM_CLK_CNTL DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
-#define CFG_83XX_DDR_USES_CS0
-#define CFG_DDRCDR_VALUE       0x80080001 /* ODT 150ohm on SoC */
+#define CONFIG_SYS_DDR_BASE            0x00000000 /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
+#define CONFIG_SYS_83XX_DDR_USES_CS0
+#define CONFIG_SYS_DDRCDR_VALUE        0x80080001 /* ODT 150ohm on SoC */
 
 #undef CONFIG_DDR_ECC          /* support DDR ECC function */
 #undef CONFIG_DDR_ECC_CMD      /* Use DDR ECC user commands */
  * WHITE ELECTRONIC DESIGNS - W3HG64M72EEU403PD4 SO-DIMM
  * consist of nine chips from SAMSUNG K4T51083QE-ZC(L)D5
  */
-#define CFG_DDR_SIZE           512 /* MB */
-#define CFG_DDR_CS0_BNDS       0x0000001f
-#define CFG_DDR_CS0_CONFIG     ( CSCONFIG_EN \
+#define CONFIG_SYS_DDR_SIZE            512 /* MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000001f
+#define CONFIG_SYS_DDR_CS0_CONFIG      ( CSCONFIG_EN \
                                | 0x00010000  /* ODT_WR to CSn */ \
                                | CSCONFIG_ROW_BIT_14 | CSCONFIG_COL_BIT_10 )
                                /* 0x80010202 */
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        ( ( 0 << TIMING_CFG0_RWT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_RRT_SHIFT ) \
                                | ( 0 << TIMING_CFG0_WWT_SHIFT ) \
                                | ( 8 << TIMING_CFG0_ODT_PD_EXIT_SHIFT ) \
                                | ( 2 << TIMING_CFG0_MRS_CYC_SHIFT ) )
                                /* 0x00620802 */
-#define CFG_DDR_TIMING_1       ( ( 3 << TIMING_CFG1_PRETOACT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_1        ( ( 3 << TIMING_CFG1_PRETOACT_SHIFT ) \
                                | ( 9 << TIMING_CFG1_ACTTOPRE_SHIFT ) \
                                | ( 3 << TIMING_CFG1_ACTTORW_SHIFT ) \
                                | ( 5 << TIMING_CFG1_CASLAT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_ACTTOACT_SHIFT ) \
                                | ( 2 << TIMING_CFG1_WRTORD_SHIFT ) )
                                /* 0x3935d322 */
-#define CFG_DDR_TIMING_2       ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
+#define CONFIG_SYS_DDR_TIMING_2        ( ( 1 << TIMING_CFG2_ADD_LAT_SHIFT ) \
                                | ( 6 << TIMING_CFG2_CPO_SHIFT ) \
                                | ( 2 << TIMING_CFG2_WR_LAT_DELAY_SHIFT ) \
                                | ( 4 << TIMING_CFG2_RD_TO_PRE_SHIFT ) \
                                | ( 3 << TIMING_CFG2_CKE_PLS_SHIFT ) \
                                | ( 8 << TIMING_CFG2_FOUR_ACT_SHIFT) )
                                /* 0x131088c8 */
-#define CFG_DDR_INTERVAL       ( ( 0x03E0 << SDRAM_INTERVAL_REFINT_SHIFT ) \
+#define CONFIG_SYS_DDR_INTERVAL        ( ( 0x03E0 << SDRAM_INTERVAL_REFINT_SHIFT ) \
                                | ( 0x0100 << SDRAM_INTERVAL_BSTOPRE_SHIFT ) )
                                /* 0x03E00100 */
-#define CFG_DDR_SDRAM_CFG      0x43000000
-#define CFG_DDR_SDRAM_CFG2     0x00001000 /* 1 posted refresh */
-#define CFG_DDR_MODE           ( ( 0x0448 << SDRAM_MODE_ESD_SHIFT ) \
+#define CONFIG_SYS_DDR_SDRAM_CFG       0x43000000
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00001000 /* 1 posted refresh */
+#define CONFIG_SYS_DDR_MODE            ( ( 0x0448 << SDRAM_MODE_ESD_SHIFT ) \
                                | ( 0x1432 << SDRAM_MODE_SD_SHIFT ) )
                                /* ODT 150ohm CL=3, AL=1 on SDRAM */
-#define CFG_DDR_MODE2          0x00000000
+#define CONFIG_SYS_DDR_MODE2           0x00000000
 #endif
 
 /*
  * Memory test
  */
-#undef CFG_DRAM_TEST           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00040000 /* memtest region */
-#define CFG_MEMTEST_END                0x00140000
+#undef CONFIG_SYS_DRAM_TEST            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00040000 /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00140000
 
 /*
  * The reserved memory
  */
-#define CFG_MONITOR_BASE       TEXT_BASE /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (512 * 1024) /* Reserved for malloc */
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024) /* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
  */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xE6000000 /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000 /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      0x100 /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xE6000000 /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000 /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100 /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Local Bus Configuration & Clock Setup
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_8)
-#define CFG_LBC_LBCR           0x00000000
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_8)
+#define CONFIG_SYS_LBC_LBCR            0x00000000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000 /* FLASH base address */
-#define CFG_FLASH_SIZE         32 /* max FLASH size is 32M */
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000 /* FLASH base address */
+#define CONFIG_SYS_FLASH_SIZE          32 /* max FLASH size is 32M */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE /* Window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000018 /* 32MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE /* Window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000018 /* 32MB window size */
 
-#define CFG_BR0_PRELIM         ( CFG_FLASH_BASE        /* Flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM          ( CONFIG_SYS_FLASH_BASE /* Flash Base address */ \
                                | (2 << BR_PS_SHIFT)    /* 16 bit port size */ \
                                | BR_V )                /* valid */
-#define CFG_OR0_PRELIM         ( (~(CFG_FLASH_SIZE - 1) << 20) \
+#define CONFIG_SYS_OR0_PRELIM          ( (~(CONFIG_SYS_FLASH_SIZE - 1) << 20) \
                                | OR_UPM_XAM \
                                | OR_GPCM_CSNT \
                                | OR_GPCM_ACS_DIV2 \
                                | OR_GPCM_EAD )
                                /* 0xFE000FF7 */
 
-#define CFG_MAX_FLASH_BANKS    1 /* number of banks */
-#define CFG_MAX_FLASH_SECT     256 /* max sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1 /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256 /* max sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000 /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500 /* Flash Write Timeout (ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000 /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500 /* Flash Write Timeout (ms) */
 
 /*
  * BCSR on the Local Bus
  */
-#define CFG_BCSR               0xF8000000
-#define CFG_LBLAWBAR1_PRELIM   CFG_BCSR /* Access window base at BCSR base */
-#define CFG_LBLAWAR1_PRELIM    0x8000000E /* Access window size 32K */
+#define CONFIG_SYS_BCSR                0xF8000000
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_BCSR /* Access window base at BCSR base */
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000000E /* Access window size 32K */
 
-#define CFG_BR1_PRELIM         (CFG_BCSR | 0x00000801) /* Port size=8bit, MSEL=GPCM */
-#define CFG_OR1_PRELIM         0xFFFFE9f7 /* length 32K */
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_BCSR | 0x00000801) /* Port size=8bit, MSEL=GPCM */
+#define CONFIG_SYS_OR1_PRELIM          0xFFFFE9f7 /* length 32K */
 
 /*
  * NAND Flash on the Local Bus
  */
-#define CFG_NAND_BASE          0xE0600000      /* 0xE0600000 */
-#define CFG_BR3_PRELIM         ( CFG_NAND_BASE \
+#define CONFIG_SYS_NAND_BASE           0xE0600000      /* 0xE0600000 */
+#define CONFIG_SYS_BR3_PRELIM          ( CONFIG_SYS_NAND_BASE \
                                | (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
                                | BR_PS_8               /* Port Size = 8 bit */ \
                                | BR_MS_FCM             /* MSEL = FCM */ \
                                | BR_V )                /* valid */
-#define CFG_OR3_PRELIM         ( 0xFFFF8000            /* length 32K */ \
+#define CONFIG_SYS_OR3_PRELIM          ( 0xFFFF8000            /* length 32K */ \
                                | OR_FCM_CSCT \
                                | OR_FCM_CST \
                                | OR_FCM_CHT \
                                | OR_FCM_EHTR )
                                /* 0xFFFF8396 */
 
-#define CFG_LBLAWBAR3_PRELIM   CFG_NAND_BASE
-#define CFG_LBLAWAR3_PRELIM    0x8000000E      /* 32KB  */
+#define CONFIG_SYS_LBLAWBAR3_PRELIM    CONFIG_SYS_NAND_BASE
+#define CONFIG_SYS_LBLAWAR3_PRELIM     0x8000000E      /* 32KB  */
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* Pass open firmware flat tree */
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
 #define CONFIG_FSL_I2C
-#define CFG_I2C_SPEED          400000 /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x51} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000 /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x51} /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /*
  * Config on-board RTC
  */
 #define CONFIG_RTC_DS1374      /* use ds1374 rtc via i2c */
-#define CFG_I2C_RTC_ADDR       0x68 /* at address 0x68 */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68 /* at address 0x68 */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI_MEM_BASE       0x80000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BASE
-#define CFG_PCI_MEM_SIZE       0x10000000 /* 256M */
-#define CFG_PCI_MMIO_BASE      0x90000000
-#define CFG_PCI_MMIO_PHYS      CFG_PCI_MMIO_BASE
-#define CFG_PCI_MMIO_SIZE      0x10000000 /* 256M */
-#define CFG_PCI_IO_BASE                0x00000000
-#define CFG_PCI_IO_PHYS                0xE0300000
-#define CFG_PCI_IO_SIZE                0x100000 /* 1M */
+#define CONFIG_SYS_PCI_MEM_BASE        0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BASE
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_MMIO_BASE       0x90000000
+#define CONFIG_SYS_PCI_MMIO_PHYS       CONFIG_SYS_PCI_MMIO_BASE
+#define CONFIG_SYS_PCI_MMIO_SIZE       0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_IO_BASE         0x00000000
+#define CONFIG_SYS_PCI_IO_PHYS         0xE0300000
+#define CONFIG_SYS_PCI_IO_SIZE         0x100000 /* 1M */
 
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE
-#define CFG_PCI_SLV_MEM_BUS    0x00000000
-#define CFG_PCI_SLV_MEM_SIZE   0x80000000
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SLV_MEM_BUS     0x00000000
+#define CONFIG_SYS_PCI_SLV_MEM_SIZE    0x80000000
 
 #ifdef CONFIG_PCI
 #define CONFIG_83XX_GENERIC_PCI        1 /* Use generic PCI setup */
 
 #undef CONFIG_EEPRO100
 #undef CONFIG_PCI_SCAN_SHOW    /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1957 /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 #endif /* CONFIG_PCI */
 
 #ifndef CONFIG_NET_MULTI
  * TSEC
  */
 #define CONFIG_TSEC_ENET       /* TSEC ethernet support */
-#define CFG_TSEC1_OFFSET       0x24000
-#define CFG_TSEC1              (CFG_IMMR+CFG_TSEC1_OFFSET)
-#define CFG_TSEC2_OFFSET       0x25000
-#define CFG_TSEC2              (CFG_IMMR+CFG_TSEC2_OFFSET)
+#define CONFIG_SYS_TSEC1_OFFSET        0x24000
+#define CONFIG_SYS_TSEC1               (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC1_OFFSET)
+#define CONFIG_SYS_TSEC2_OFFSET        0x25000
+#define CONFIG_SYS_TSEC2               (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC2_OFFSET)
 
 /*
  * TSEC ethernet configuration
 #define CONFIG_LIBATA
 #define CONFIG_FSL_SATA
 
-#define CFG_SATA_MAX_DEVICE    2
+#define CONFIG_SYS_SATA_MAX_DEVICE     2
 #define CONFIG_SATA1
-#define CFG_SATA1_OFFSET       0x18000
-#define CFG_SATA1              (CFG_IMMR + CFG_SATA1_OFFSET)
-#define CFG_SATA1_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA1_OFFSET        0x18000
+#define CONFIG_SYS_SATA1               (CONFIG_SYS_IMMR + CONFIG_SYS_SATA1_OFFSET)
+#define CONFIG_SYS_SATA1_FLAGS         FLAGS_DMA
 #define CONFIG_SATA2
-#define CFG_SATA2_OFFSET       0x19000
-#define CFG_SATA2              (CFG_IMMR + CFG_SATA2_OFFSET)
-#define CFG_SATA2_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA2_OFFSET        0x19000
+#define CONFIG_SYS_SATA2               (CONFIG_SYS_IMMR + CONFIG_SYS_SATA2_OFFSET)
+#define CONFIG_SYS_SATA2_FLAGS         FLAGS_DMA
 
 #ifdef CONFIG_FSL_SATA
 #define CONFIG_LBA48
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x20000 /* 128K(one sector) for env */
        #define CONFIG_ENV_SIZE         0x2000
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000 /* default load address */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000 /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024 /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256 /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Core HID Setup
  */
-#define CFG_HID0_INIT          0x000000000
-#define CFG_HID0_FINAL         HID0_ENABLE_MACHINE_CHECK
-#define CFG_HID2               HID2_HBE
+#define CONFIG_SYS_HID0_INIT           0x000000000
+#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID2                HID2_HBE
 
 /*
  * MMU Setup
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR: cache cacheable */
-#define CFG_SDRAM_LOWER                CFG_SDRAM_BASE
-#define CFG_SDRAM_UPPER                (CFG_SDRAM_BASE + 0x10000000)
+#define CONFIG_SYS_SDRAM_LOWER         CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_UPPER         (CONFIG_SYS_SDRAM_BASE + 0x10000000)
 
-#define CFG_IBAT0L     (CFG_SDRAM_LOWER | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_LOWER | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_LOWER | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_LOWER | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
-#define CFG_IBAT1L     (CFG_SDRAM_UPPER | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_SDRAM_UPPER | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_SDRAM_UPPER | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_SDRAM_UPPER | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* IMMRBAR, PCI IO and NAND: cache-inhibit and guarded */
-#define CFG_IBAT2L     (CFG_IMMR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_IMMR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_IMMR | BATU_BL_8M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_IMMR | BATU_BL_8M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
 /* BCSR: cache-inhibit and guarded */
-#define CFG_IBAT3L     (CFG_BCSR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_BCSR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT3U     (CFG_BCSR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_BCSR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /* FLASH: icache cacheable, but dcache-inhibit and guarded */
-#define CFG_IBAT4L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT4U     (CFG_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_DBAT4L     (CFG_FLASH_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U     CFG_IBAT4U
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
 
 /* Stack in dcache: cacheable, no memory coherence */
-#define CFG_IBAT5L     (CFG_INIT_RAM_ADDR | BATL_PP_10)
-#define CFG_IBAT5U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
 
 #ifdef CONFIG_PCI
 /* PCI MEM space: cacheable */
-#define CFG_IBAT6L     (CFG_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (CFG_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (CONFIG_SYS_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
 /* PCI MMIO space: cache-inhibit and guarded */
-#define CFG_IBAT7L     (CFG_PCI_MMIO_PHYS | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT7L      (CONFIG_SYS_PCI_MMIO_PHYS | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT7U     (CFG_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT7U      (CONFIG_SYS_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #else
-#define CFG_IBAT6L     (0)
-#define CFG_IBAT6U     (0)
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0)
+#define CONFIG_SYS_IBAT6U      (0)
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #endif
 
 /*
index 4650b8d9b44a63674691f6266a3ef70f6a9a72fa..f281c59d3c3b5fec1556e7d919179877c0d51d4d 100644 (file)
@@ -58,7 +58,7 @@
 /*
  * Hardware Reset Configuration Word
  */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_SVCOD_DIV_2 |\
@@ -66,7 +66,7 @@
        HRCWL_CORE_TO_CSB_2X1)
 
 #ifdef CONFIG_PCISLAVE
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_AGENT |\
        HRCWH_PCI1_ARBITER_DISABLE |\
        HRCWH_CORE_ENABLE |\
@@ -80,7 +80,7 @@
        HRCWH_BIG_ENDIAN |\
        HRCWH_LDP_CLEAR)
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_CORE_ENABLE |\
        HRCWH_LDP_CLEAR)
 #endif
 
-/* System performance - define the value i.e. CFG_XXX
+/* System performance - define the value i.e. CONFIG_SYS_XXX
 */
 
 /* Arbiter Configuration Register */
-#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth (0-3) */
-#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count (0-7) */
+#define CONFIG_SYS_ACR_PIPE_DEP        3       /* Arbiter pipeline depth (0-3) */
+#define CONFIG_SYS_ACR_RPTCNT          3       /* Arbiter repeat count (0-7) */
 
 /* System Priority Control Regsiter */
-#define CFG_SPCR_TSECEP                3       /* eTSEC1&2 emergency priority (0-3) */
+#define CONFIG_SYS_SPCR_TSECEP         3       /* eTSEC1&2 emergency priority (0-3) */
 
 /* System Clock Configuration Register */
-#define CFG_SCCR_TSEC1CM       1               /* eTSEC1 clock mode (0-3) */
-#define CFG_SCCR_TSEC2CM       1               /* eTSEC2 clock mode (0-3) */
-#define CFG_SCCR_SATACM                SCCR_SATACM_2   /* SATA1-4 clock mode (0-3) */
+#define CONFIG_SYS_SCCR_TSEC1CM        1               /* eTSEC1 clock mode (0-3) */
+#define CONFIG_SYS_SCCR_TSEC2CM        1               /* eTSEC2 clock mode (0-3) */
+#define CONFIG_SYS_SCCR_SATACM         SCCR_SATACM_2   /* SATA1-4 clock mode (0-3) */
 
 /*
  * System IO Config
  */
-#define CFG_SICRH              0x08200000
-#define CFG_SICRL              0x00000000
+#define CONFIG_SYS_SICRH               0x08200000
+#define CONFIG_SYS_SICRL               0x00000000
 
 /*
  * Output Buffer Impedance
  */
-#define CFG_OBIR               0x30100000
+#define CONFIG_SYS_OBIR                0x30100000
 
 /*
  * IMMR new address
  */
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 /*
  * Device configurations
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000 /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDR_SDRAM_CLK_CNTL 0x03000000
-#define CFG_83XX_DDR_USES_CS0
+#define CONFIG_SYS_DDR_BASE            0x00000000 /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  0x03000000
+#define CONFIG_SYS_83XX_DDR_USES_CS0
 
-#define CFG_DDRCDR_VALUE       (DDRCDR_DHC_EN | DDRCDR_ODT | DDRCDR_Q_DRN)
+#define CONFIG_SYS_DDRCDR_VALUE        (DDRCDR_DHC_EN | DDRCDR_ODT | DDRCDR_Q_DRN)
 
 #undef CONFIG_DDR_ECC          /* support DDR ECC function */
 #undef CONFIG_DDR_ECC_CMD      /* Use DDR ECC user commands */
 /*
  * Manually set up DDR parameters
  */
-#define CFG_DDR_SIZE           256             /* MB */
-#define CFG_DDR_CS0_BNDS       0x0000000f
-#define CFG_DDR_CS0_CONFIG     (CSCONFIG_EN | CSCONFIG_ODT_WR_ACS \
+#define CONFIG_SYS_DDR_SIZE            256             /* MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000f
+#define CONFIG_SYS_DDR_CS0_CONFIG      (CSCONFIG_EN | CSCONFIG_ODT_WR_ACS \
                                | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10)
 
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       ((0 << TIMING_CFG0_RWT_SHIFT) \
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        ((0 << TIMING_CFG0_RWT_SHIFT) \
                                | (0 << TIMING_CFG0_WRT_SHIFT) \
                                | (0 << TIMING_CFG0_RRT_SHIFT) \
                                | (0 << TIMING_CFG0_WWT_SHIFT) \
                                | (2 << TIMING_CFG0_MRS_CYC_SHIFT))
                                /* 0x00220802 */
                                /* 0x00260802 */ /* DDR400 */
-#define CFG_DDR_TIMING_1       ((3 << TIMING_CFG1_PRETOACT_SHIFT) \
+#define CONFIG_SYS_DDR_TIMING_1        ((3 << TIMING_CFG1_PRETOACT_SHIFT) \
                                | (9 << TIMING_CFG1_ACTTOPRE_SHIFT) \
                                | (3 << TIMING_CFG1_ACTTORW_SHIFT) \
                                | (7 << TIMING_CFG1_CASLAT_SHIFT) \
                                | (2 << TIMING_CFG1_WRTORD_SHIFT))
                                /* 0x3935d322 */
                                /* 0x3937d322 */
-#define CFG_DDR_TIMING_2       0x02984cc8
+#define CONFIG_SYS_DDR_TIMING_2        0x02984cc8
 
-#define CFG_DDR_INTERVAL       ((1545 << SDRAM_INTERVAL_REFINT_SHIFT) \
+#define CONFIG_SYS_DDR_INTERVAL        ((1545 << SDRAM_INTERVAL_REFINT_SHIFT) \
                                | (256 << SDRAM_INTERVAL_BSTOPRE_SHIFT))
                                /* 0x06090100 */
 
 #if defined(CONFIG_DDR_2T_TIMING)
-#define CFG_DDR_SDRAM_CFG              (SDRAM_CFG_SREN \
+#define CONFIG_SYS_DDR_SDRAM_CFG               (SDRAM_CFG_SREN \
                                | 3 << SDRAM_CFG_SDRAM_TYPE_SHIFT \
                                | SDRAM_CFG_2T_EN \
                                | SDRAM_CFG_DBW_32)
 #else
-#define CFG_DDR_SDRAM_CFG              (SDRAM_CFG_SREN \
+#define CONFIG_SYS_DDR_SDRAM_CFG               (SDRAM_CFG_SREN \
                                | 3 << SDRAM_CFG_SDRAM_TYPE_SHIFT)
                                /* 0x43000000 */
 #endif
-#define CFG_DDR_SDRAM_CFG2     0x00001000 /* 1 posted refresh */
-#define CFG_DDR_MODE           ((0x0440 << SDRAM_MODE_ESD_SHIFT) \
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00001000 /* 1 posted refresh */
+#define CONFIG_SYS_DDR_MODE            ((0x0440 << SDRAM_MODE_ESD_SHIFT) \
                                | (0x0442 << SDRAM_MODE_SD_SHIFT))
                                /* 0x04400442 */ /* DDR400 */
-#define CFG_DDR_MODE2          0x00000000
+#define CONFIG_SYS_DDR_MODE2           0x00000000
 
 /*
  * Memory test
  */
-#undef CFG_DRAM_TEST           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00040000 /* memtest region */
-#define CFG_MEMTEST_END                0x0ef70010
+#undef CONFIG_SYS_DRAM_TEST            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00040000 /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x0ef70010
 
 /*
  * The reserved memory
  */
-#define CFG_MONITOR_BASE       TEXT_BASE /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (512 * 1024) /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024) /* Reserved for malloc */
 
 /*
  * Initial RAM Base Address Setup
  */
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xE6000000 /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000 /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      0x100 /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xE6000000 /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000 /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100 /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Local Bus Configuration & Clock Setup
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_8)
-#define CFG_LBC_LBCR           0x00000000
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_8)
+#define CONFIG_SYS_LBC_LBCR            0x00000000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFE000000 /* FLASH base address */
-#define CFG_FLASH_SIZE         8 /* max FLASH size is 32M */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000 /* FLASH base address */
+#define CONFIG_SYS_FLASH_SIZE          8 /* max FLASH size is 32M */
 
-#define CFG_FLASH_PROTECTION   1               /* Use h/w Flash protection. */
-#define CFG_FLASH_EMPTY_INFO                   /* display empty sectors */
-#define CFG_FLASH_USE_BUFFER_WRITE             /* buffer up multiple bytes */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use h/w Flash protection. */
+#define CONFIG_SYS_FLASH_EMPTY_INFO                    /* display empty sectors */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE              /* buffer up multiple bytes */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE /* Window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000016      /* 8 MB window size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE /* Window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000016      /* 8 MB window size */
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | /* Flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | /* Flash Base address */ \
                                (2 << BR_PS_SHIFT) | /* 16 bit port size */ \
                                BR_V) /* valid */
-#define CFG_OR0_PRELIM         (0xFF800000             /* 8 MByte */ \
+#define CONFIG_SYS_OR0_PRELIM          (0xFF800000             /* 8 MByte */ \
                                | OR_GPCM_XACS \
                                | OR_GPCM_SCY_9 \
                                | OR_GPCM_EHTR \
                                | OR_GPCM_EAD)
                                /* 0xFF806FF7   TODO SLOW 8 MB flash size */
 
-#define CFG_MAX_FLASH_BANKS    1 /* number of banks */
-#define CFG_MAX_FLASH_SECT     256 /* max sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1 /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256 /* max sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
 /*
  * NAND Flash on the Local Bus
  */
-#define CFG_NAND_BASE          0xE0600000      /* 0xE0600000 */
-#define CFG_BR1_PRELIM         (CFG_NAND_BASE | \
+#define CONFIG_SYS_NAND_BASE           0xE0600000      /* 0xE0600000 */
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_NAND_BASE | \
                                 (2 << BR_DECC_SHIFT) | /* Use HW ECC */ \
                                 BR_PS_8 |              /* Port Size = 8 bit */ \
                                 BR_MS_FCM |            /* MSEL = FCM */ \
                                 BR_V)                  /* valid */
-#define CFG_OR1_PRELIM         (0xFFFF8000 |           /* length 32K */ \
+#define CONFIG_SYS_OR1_PRELIM          (0xFFFF8000 |           /* length 32K */ \
                                 OR_FCM_CSCT | \
                                 OR_FCM_CST | \
                                 OR_FCM_CHT | \
                                 OR_FCM_SCY_1 | \
                                 OR_FCM_TRLX | \
                                 OR_FCM_EHTR)
-#define CFG_LBLAWBAR1_PRELIM   CFG_NAND_BASE
-#define CFG_LBLAWAR1_PRELIM    0x8000000E      /* 32KB  */
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    CONFIG_SYS_NAND_BASE
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x8000000E      /* 32KB  */
 
 /* Vitesse 7385 */
 
-#define CFG_VSC7385_BASE       0xF0000000
+#define CONFIG_SYS_VSC7385_BASE        0xF0000000
 
 #ifdef CONFIG_VSC7385_ENET
 
-#define CFG_BR2_PRELIM         0xf0000801              /* Base address */
-#define CFG_OR2_PRELIM         0xfffe09ff              /* 128K bytes*/
-#define CFG_LBLAWBAR2_PRELIM   CFG_VSC7385_BASE        /* Access Base */
-#define CFG_LBLAWAR2_PRELIM    0x80000010              /* Access Size 128K */
+#define CONFIG_SYS_BR2_PRELIM          0xf0000801              /* Base address */
+#define CONFIG_SYS_OR2_PRELIM          0xfffe09ff              /* 128K bytes*/
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    CONFIG_SYS_VSC7385_BASE /* Access Base */
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000010              /* Access Size 128K */
 
 #endif
 
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE \
+#define CONFIG_SYS_BAUDRATE_TABLE \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 /* SERDES */
 #define CONFIG_FSL_SERDES
 #define CONFIG_FSL_SERDES2     0xe3100
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* Pass open firmware flat tree */
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
 #define CONFIG_FSL_I2C
-#define CFG_I2C_SPEED          400000 /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x51} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000 /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x51} /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /*
  * Config on-board RTC
  */
 #define CONFIG_RTC_DS1374      /* use ds1374 rtc via i2c */
-#define CFG_I2C_RTC_ADDR       0x68 /* at address 0x68 */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68 /* at address 0x68 */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI_MEM_BASE       0x80000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BASE
-#define CFG_PCI_MEM_SIZE       0x10000000 /* 256M */
-#define CFG_PCI_MMIO_BASE      0x90000000
-#define CFG_PCI_MMIO_PHYS      CFG_PCI_MMIO_BASE
-#define CFG_PCI_MMIO_SIZE      0x10000000 /* 256M */
-#define CFG_PCI_IO_BASE                0x00000000
-#define CFG_PCI_IO_PHYS                0xE0300000
-#define CFG_PCI_IO_SIZE                0x100000 /* 1M */
-
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE
-#define CFG_PCI_SLV_MEM_BUS    0x00000000
-#define CFG_PCI_SLV_MEM_SIZE   0x80000000
+#define CONFIG_SYS_PCI_MEM_BASE        0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BASE
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_MMIO_BASE       0x90000000
+#define CONFIG_SYS_PCI_MMIO_PHYS       CONFIG_SYS_PCI_MMIO_BASE
+#define CONFIG_SYS_PCI_MMIO_SIZE       0x10000000 /* 256M */
+#define CONFIG_SYS_PCI_IO_BASE         0x00000000
+#define CONFIG_SYS_PCI_IO_PHYS         0xE0300000
+#define CONFIG_SYS_PCI_IO_SIZE         0x100000 /* 1M */
+
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_PCI_SLV_MEM_BUS     0x00000000
+#define CONFIG_SYS_PCI_SLV_MEM_SIZE    0x80000000
 
 #ifdef CONFIG_PCI
 #define CONFIG_NET_MULTI
 #define CONFIG_PCI_PNP         /* do pci plug-and-play */
 
 #undef CONFIG_PCI_SCAN_SHOW    /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1957 /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957  /* Freescale */
 #endif /* CONFIG_PCI */
 
 /*
 #ifdef CONFIG_TSEC1
 #define CONFIG_HAS_ETH0
 #define CONFIG_TSEC1_NAME              "TSEC0"
-#define CFG_TSEC1_OFFSET               0x24000
+#define CONFIG_SYS_TSEC1_OFFSET                0x24000
 #define TSEC1_PHY_ADDR                 2
 #define TSEC1_FLAGS                    (TSEC_GIGABIT | TSEC_REDUCED)
 #define TSEC1_PHYIDX                   0
 #ifdef CONFIG_TSEC2
 #define CONFIG_HAS_ETH1
 #define CONFIG_TSEC2_NAME              "TSEC1"
-#define CFG_TSEC2_OFFSET               0x25000
+#define CONFIG_SYS_TSEC2_OFFSET                0x25000
 #define TSEC2_PHY_ADDR                 0x1c
 #define TSEC2_FLAGS                    (TSEC_GIGABIT | TSEC_REDUCED)
 #define TSEC2_PHYIDX                   0
 #define CONFIG_LIBATA
 #define CONFIG_FSL_SATA
 
-#define CFG_SATA_MAX_DEVICE    2
+#define CONFIG_SYS_SATA_MAX_DEVICE     2
 #define CONFIG_SATA1
-#define CFG_SATA1_OFFSET       0x18000
-#define CFG_SATA1              (CFG_IMMR + CFG_SATA1_OFFSET)
-#define CFG_SATA1_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA1_OFFSET        0x18000
+#define CONFIG_SYS_SATA1               (CONFIG_SYS_IMMR + CONFIG_SYS_SATA1_OFFSET)
+#define CONFIG_SYS_SATA1_FLAGS         FLAGS_DMA
 #define CONFIG_SATA2
-#define CFG_SATA2_OFFSET       0x19000
-#define CFG_SATA2              (CFG_IMMR + CFG_SATA2_OFFSET)
-#define CFG_SATA2_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA2_OFFSET        0x19000
+#define CONFIG_SYS_SATA2               (CONFIG_SYS_IMMR + CONFIG_SYS_SATA2_OFFSET)
+#define CONFIG_SYS_SATA2_FLAGS         FLAGS_DMA
 
 #ifdef CONFIG_FSL_SATA
 #define CONFIG_LBA48
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE+CFG_MONITOR_LEN)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN)
        #define CONFIG_ENV_SECT_SIZE    0x10000 /* 64K (one sector) for env */
        #define CONFIG_ENV_SIZE         0x4000
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE-0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE-0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
 #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
 #undef CONFIG_CMD_ENV
 #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000 /* default load address */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000 /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024 /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256 /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256 /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Core HID Setup
  */
-#define CFG_HID0_INIT          0x000000000
-#define CFG_HID0_FINAL         HID0_ENABLE_MACHINE_CHECK
-#define CFG_HID2               HID2_HBE
+#define CONFIG_SYS_HID0_INIT           0x000000000
+#define CONFIG_SYS_HID0_FINAL          HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID2                HID2_HBE
 
 /*
  * MMU Setup
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR: cache cacheable */
-#define CFG_SDRAM_LOWER                CFG_SDRAM_BASE
-#define CFG_SDRAM_UPPER                (CFG_SDRAM_BASE + 0x10000000)
+#define CONFIG_SYS_SDRAM_LOWER         CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_UPPER         (CONFIG_SYS_SDRAM_BASE + 0x10000000)
 
-#define CFG_IBAT0L     (CFG_SDRAM_LOWER | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_LOWER | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_LOWER | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_LOWER | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
-#define CFG_IBAT1L     (CFG_SDRAM_UPPER | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_SDRAM_UPPER | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_SDRAM_UPPER | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_SDRAM_UPPER | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* IMMRBAR, PCI IO and NAND: cache-inhibit and guarded */
-#define CFG_IBAT2L     (CFG_IMMR | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_IMMR | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_IMMR | BATU_BL_8M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_IMMR | BATU_BL_8M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
 /* L2 Switch: cache-inhibit and guarded */
-#define CFG_IBAT3L     (CFG_VSC7385_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_VSC7385_BASE | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT3U     (CFG_VSC7385_BASE | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_VSC7385_BASE | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /* FLASH: icache cacheable, but dcache-inhibit and guarded */
-#define CFG_IBAT4L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT4U     (CFG_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_DBAT4L     (CFG_FLASH_BASE | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_FLASH_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U     CFG_IBAT4U
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
 
 /* Stack in dcache: cacheable, no memory coherence */
-#define CFG_IBAT5L     (CFG_INIT_RAM_ADDR | BATL_PP_10)
-#define CFG_IBAT5U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
 
 #ifdef CONFIG_PCI
 /* PCI MEM space: cacheable */
-#define CFG_IBAT6L     (CFG_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (CFG_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_PCI_MEM_PHYS | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (CONFIG_SYS_PCI_MEM_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
 /* PCI MMIO space: cache-inhibit and guarded */
-#define CFG_IBAT7L     (CFG_PCI_MMIO_PHYS | BATL_PP_10 | \
+#define CONFIG_SYS_IBAT7L      (CONFIG_SYS_PCI_MMIO_PHYS | BATL_PP_10 | \
                        BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT7U     (CFG_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT7U      (CONFIG_SYS_PCI_MMIO_PHYS | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #else
-#define CFG_IBAT6L     (0)
-#define CFG_IBAT6U     (0)
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0)
+#define CONFIG_SYS_IBAT6U      (0)
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 #endif
 
 /*
index b504add7aabf5ac812fd367ec910fc6892df18a1..91a5d8b1d947eee31544e9cb98a18e21d47b3829 100644 (file)
@@ -73,23 +73,23 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 
 #define CONFIG_ENABLE_36BIT_PHYS       1
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on */
-#define CFG_MEMTEST_END                0x7fffffff
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x7fffffff
 #define CONFIG_PANIC_HANG      /* do not reset board on panic */
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xffe00000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xffe00000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR          (CFG_CCSRBAR+0x8000)
-#define CFG_PCIE1_ADDR         (CFG_CCSRBAR+0xa000)
-#define CFG_PCIE2_ADDR         (CFG_CCSRBAR+0x9000)
-#define CFG_PCIE3_ADDR         (CFG_CCSRBAR+0xb000)
+#define CONFIG_SYS_PCI1_ADDR           (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCIE1_ADDR          (CONFIG_SYS_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCIE2_ADDR          (CONFIG_SYS_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCIE3_ADDR          (CONFIG_SYS_CCSRBAR+0xb000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
@@ -101,8 +101,8 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER       /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
@@ -110,37 +110,37 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 
 /* I2C addresses of SPD EEPROMs */
 #define SPD_EEPROM_ADDRESS     0x51    /* CTLR 0 DIMM 0 */
-#define CFG_SPD_BUS_NUM                1
+#define CONFIG_SYS_SPD_BUS_NUM         1
 
 /* These are used when DDR doesn't use SPD. */
-#define CFG_SDRAM_SIZE         256             /* DDR is 256MB */
-#define CFG_DDR_CS0_BNDS       0x0000001F
-#define CFG_DDR_CS0_CONFIG     0x80010102      /* Enable, no interleaving */
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       0x00260802
-#define CFG_DDR_TIMING_1       0x3935d322
-#define CFG_DDR_TIMING_2       0x14904cc8
-#define CFG_DDR_MODE_1         0x00480432
-#define CFG_DDR_MODE_2         0x00000000
-#define CFG_DDR_INTERVAL       0x06180100
-#define CFG_DDR_DATA_INIT      0xdeadbeef
-#define CFG_DDR_CLK_CTRL       0x03800000
-#define CFG_DDR_OCD_CTRL       0x00000000
-#define CFG_DDR_OCD_STATUS     0x00000000
-#define CFG_DDR_CONTROL                0xC3008000      /* Type = DDR2 */
-#define CFG_DDR_CONTROL2       0x04400010
-
-#define CFG_DDR_ERR_INT_EN     0x0000000d
-#define CFG_DDR_ERR_DIS                0x00000000
-#define CFG_DDR_SBE            0x00010000
+#define CONFIG_SYS_SDRAM_SIZE          256             /* DDR is 256MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000001F
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80010102      /* Enable, no interleaving */
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        0x00260802
+#define CONFIG_SYS_DDR_TIMING_1        0x3935d322
+#define CONFIG_SYS_DDR_TIMING_2        0x14904cc8
+#define CONFIG_SYS_DDR_MODE_1          0x00480432
+#define CONFIG_SYS_DDR_MODE_2          0x00000000
+#define CONFIG_SYS_DDR_INTERVAL        0x06180100
+#define CONFIG_SYS_DDR_DATA_INIT       0xdeadbeef
+#define CONFIG_SYS_DDR_CLK_CTRL        0x03800000
+#define CONFIG_SYS_DDR_OCD_CTRL        0x00000000
+#define CONFIG_SYS_DDR_OCD_STATUS      0x00000000
+#define CONFIG_SYS_DDR_CONTROL         0xC3008000      /* Type = DDR2 */
+#define CONFIG_SYS_DDR_CONTROL2        0x04400010
+
+#define CONFIG_SYS_DDR_ERR_INT_EN      0x0000000d
+#define CONFIG_SYS_DDR_ERR_DIS         0x00000000
+#define CONFIG_SYS_DDR_SBE             0x00010000
 
 /* FIXME: Not used in fixed_sdram function */
-#define CFG_DDR_MODE           0x00000022
-#define CFG_DDR_CS1_BNDS       0x00000000
-#define CFG_DDR_CS2_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS3_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS4_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS5_BNDS       0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_MODE            0x00000022
+#define CONFIG_SYS_DDR_CS1_BNDS        0x00000000
+#define CONFIG_SYS_DDR_CS2_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS3_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS4_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS5_BNDS        0x00000FFF      /* Not done */
 
 /* Make sure required options are set */
 #ifndef CONFIG_SPD_EEPROM
@@ -172,38 +172,38 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /*
  * Local Bus Definitions
  */
-#define CFG_FLASH_BASE         0xe0000000      /* start of FLASH 128M */
+#define CONFIG_SYS_FLASH_BASE          0xe0000000      /* start of FLASH 128M */
 
-#define CFG_BR0_PRELIM         0xe8001001
-#define CFG_OR0_PRELIM         0xf8000ff7
+#define CONFIG_SYS_BR0_PRELIM          0xe8001001
+#define CONFIG_SYS_OR0_PRELIM          0xf8000ff7
 
-#define CFG_BR1_PRELIM         0xe0001001
-#define CFG_OR1_PRELIM         0xf8000ff7
+#define CONFIG_SYS_BR1_PRELIM          0xe0001001
+#define CONFIG_SYS_OR1_PRELIM          0xf8000ff7
 
-#define CFG_FLASH_BANKS_LIST   {CFG_FLASH_BASE + 0x8000000, CFG_FLASH_BASE}
-#define CFG_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE + 0x8000000, CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_FLASH_QUIET_TEST
 #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */
 
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_MAX_FLASH_SECT     1024            /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000           /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500             /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024            /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000           /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_AMD_CHECK_DQ7
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_AMD_CHECK_DQ7
 
 #define CONFIG_BOARD_EARLY_INIT_R      /* call board_early_init_r function */
 
 #define CONFIG_FSL_PIXIS       1       /* use common PIXIS code */
 #define PIXIS_BASE     0xffdf0000      /* PIXIS registers */
 
-#define CFG_BR3_PRELIM (PIXIS_BASE | 0x0801)   /* port size 8bit */
-#define CFG_OR3_PRELIM         0xffffeff7      /* 32KB but only 4k mapped */
+#define CONFIG_SYS_BR3_PRELIM  (PIXIS_BASE | 0x0801)   /* port size 8bit */
+#define CONFIG_SYS_OR3_PRELIM          0xffffeff7      /* 32KB but only 4k mapped */
 
 #define PIXIS_ID               0x0     /* Board ID at offset 0 */
 #define PIXIS_VER              0x1     /* Board version at offset 1 */
@@ -235,20 +235,20 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /* old pixis referenced names */
 #define PIXIS_VCLKH            0x19    /* VELA VCLKH register */
 #define PIXIS_VCLKL            0x1A    /* VELA VCLKL register */
-#define CFG_PIXIS_VBOOT_MASK   0xc0
+#define CONFIG_SYS_PIXIS_VBOOT_MASK    0xc0
 
 /* define to use L1 as initial stack */
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xffd00000      /* Initial L1 address */
-#define CFG_INIT_RAM_END       0x00004000      /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xffd00000      /* Initial L1 address */
+#define CONFIG_SYS_INIT_RAM_END        0x00004000      /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (1024 * 1024)   /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)   /* Reserved for malloc */
 
 /* Serial Port - controlled on board with jumper J8
  * open - index 2
@@ -256,21 +256,21 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
@@ -280,8 +280,8 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_STRTOUL              1
-#define CFG_64BIT_VSPRINTF             1
+#define CONFIG_SYS_64BIT_STRTOUL               1
+#define CONFIG_SYS_64BIT_VSPRINTF              1
 
 
 /*
@@ -292,22 +292,22 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {{0, 0x29}}     /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {{0, 0x29}}     /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /*
  * I2C2 EEPROM
  */
 #define CONFIG_ID_EEPROM
 #ifdef CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_NXID
+#define CONFIG_SYS_I2C_EEPROM_NXID
 #endif
-#define CFG_I2C_EEPROM_ADDR    0x57
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_EEPROM_BUS_NUM     1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_BUS_NUM      1
 
 /*
  * General PCI
@@ -315,40 +315,40 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xffc00000
-#define CFG_PCI1_IO_SIZE       0x00010000      /* 64k */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xffc00000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00010000      /* 64k */
 
 /* controller 1, Slot 1, tgtid 1, Base address a000 */
-#define CFG_PCIE1_MEM_BASE     0x90000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x08000000      /* 128M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xffc10000
-#define CFG_PCIE1_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE1_MEM_BASE      0x90000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x08000000      /* 128M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xffc10000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00010000      /* 64k */
 
 /* controller 2, Slot 2, tgtid 2, Base address 9000 */
-#define CFG_PCIE2_MEM_BASE     0x98000000
-#define CFG_PCIE2_MEM_PHYS     CFG_PCIE2_MEM_BASE
-#define CFG_PCIE2_MEM_SIZE     0x08000000      /* 128M */
-#define CFG_PCIE2_IO_BASE      0x00000000
-#define CFG_PCIE2_IO_PHYS      0xffc20000
-#define CFG_PCIE2_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE2_MEM_BASE      0x98000000
+#define CONFIG_SYS_PCIE2_MEM_PHYS      CONFIG_SYS_PCIE2_MEM_BASE
+#define CONFIG_SYS_PCIE2_MEM_SIZE      0x08000000      /* 128M */
+#define CONFIG_SYS_PCIE2_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE2_IO_PHYS       0xffc20000
+#define CONFIG_SYS_PCIE2_IO_SIZE       0x00010000      /* 64k */
 
 /* controller 3, direct to uli, tgtid 3, Base address 8000 */
-#define CFG_PCIE3_MEM_BASE     0xa0000000
-#define CFG_PCIE3_MEM_PHYS     CFG_PCIE3_MEM_BASE
-#define CFG_PCIE3_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE3_IO_BASE      0x00000000
-#define CFG_PCIE3_IO_PHYS      0xffc30000
-#define CFG_PCIE3_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE3_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE3_MEM_PHYS      CONFIG_SYS_PCIE3_MEM_BASE
+#define CONFIG_SYS_PCIE3_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE3_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE3_IO_PHYS       0xffc30000
+#define CONFIG_SYS_PCIE3_IO_SIZE       0x00010000      /* 64k */
 
 #if defined(CONFIG_PCI)
 
@@ -356,10 +356,10 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play */
 
 /*PCIE video card used*/
-#define VIDEO_IO_OFFSET                CFG_PCIE3_IO_PHYS
+#define VIDEO_IO_OFFSET                CONFIG_SYS_PCIE3_IO_PHYS
 
 /*PCI video card used*/
-/*#define VIDEO_IO_OFFSET      CFG_PCI1_IO_PHYS*/
+/*#define VIDEO_IO_OFFSET      CONFIG_SYS_PCI1_IO_PHYS*/
 
 /* video */
 #define CONFIG_VIDEO
@@ -372,7 +372,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_ATI_RADEON_FB
 #define CONFIG_VIDEO_LOGO
 /*#define CONFIG_CONSOLE_CURSOR*/
-#define CFG_ISA_IO_BASE_ADDRESS CFG_PCIE3_IO_PHYS
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_PCIE3_IO_PHYS
 #endif
 
 #undef CONFIG_EEPRO100
@@ -386,8 +386,8 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #endif
 
 #ifndef CONFIG_PCI_PNP
-       #define PCI_ENET0_IOADDR        CFG_PCI1_IO_BASE
-       #define PCI_ENET0_MEMADDR       CFG_PCI1_IO_BASE
+       #define PCI_ENET0_IOADDR        CONFIG_SYS_PCI1_IO_BASE
+       #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCI1_IO_BASE
        #define PCI_IDSEL_NUMBER        0x11    /* IDSEL = AD11 */
 #endif
 
@@ -399,13 +399,13 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_LIBATA
 #define CONFIG_FSL_SATA
 
-#define CFG_SATA_MAX_DEVICE    2
+#define CONFIG_SYS_SATA_MAX_DEVICE     2
 #define CONFIG_SATA1
-#define CFG_SATA1              CFG_MPC85xx_SATA1_ADDR
-#define CFG_SATA1_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA1               CONFIG_SYS_MPC85xx_SATA1_ADDR
+#define CONFIG_SYS_SATA1_FLAGS         FLAGS_DMA
 #define CONFIG_SATA2
-#define CFG_SATA2              CFG_MPC85xx_SATA2_ADDR
-#define CFG_SATA2_FLAGS                FLAGS_DMA
+#define CONFIG_SYS_SATA2               CONFIG_SYS_MPC85xx_SATA2_ADDR
+#define CONFIG_SYS_SATA2_FLAGS         FLAGS_DMA
 
 #ifdef CONFIG_FSL_SATA
 #define CONFIG_LBA48
@@ -446,16 +446,16 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#if CFG_MONITOR_BASE > 0xfff80000
+#if CONFIG_SYS_MONITOR_BASE > 0xfff80000
 #define CONFIG_ENV_ADDR                0xfff80000
 #else
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x60000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x60000)
 #endif
 #define CONFIG_ENV_SIZE                0x2000
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* 128K (one sector) */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * Command line configuration.
@@ -479,26 +479,26 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 0f5f8348581ff589691c5a4f22235fd66e6a84b1..a249f6d016f3988b1a888648861942233f0a24c5 100644 (file)
 #define CONFIG_BTB                     /* toggle branch predition */
 #define CONFIG_ADDR_STREAMING          /* toggle addr streaming */
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
 
 #define CONFIG_MEM_INIT_VALUE          0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
 #define SPD_EEPROM_ADDRESS     0x51    /* CTLR 0 DIMM 0 */
 
 /* These are used when DDR doesn't use SPD. */
-#define CFG_SDRAM_SIZE 128             /* DDR is 128MB */
-#define CFG_DDR_CS0_BNDS       0x00000007      /* 0-128MB */
-#define CFG_DDR_CS0_CONFIG     0x80000002
-#define CFG_DDR_TIMING_1       0x37344321
-#define CFG_DDR_TIMING_2       0x00000800      /* P9-45,may need tuning */
-#define CFG_DDR_CONTROL                0xc2000000      /* unbuffered,no DYN_PWR */
-#define CFG_DDR_MODE           0x00000062      /* DLL,normal,seq,4/2.5 */
-#define CFG_DDR_INTERVAL       0x05200100      /* autocharge,no open page */
+#define CONFIG_SYS_SDRAM_SIZE  128             /* DDR is 128MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x00000007      /* 0-128MB */
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80000002
+#define CONFIG_SYS_DDR_TIMING_1        0x37344321
+#define CONFIG_SYS_DDR_TIMING_2        0x00000800      /* P9-45,may need tuning */
+#define CONFIG_SYS_DDR_CONTROL         0xc2000000      /* unbuffered,no DYN_PWR */
+#define CONFIG_SYS_DDR_MODE            0x00000062      /* DLL,normal,seq,4/2.5 */
+#define CONFIG_SYS_DDR_INTERVAL        0x05200100      /* autocharge,no open page */
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
-#define CFG_FLASH_BASE         0xff000000      /* start of FLASH 16M */
-#define CFG_BR0_PRELIM         0xff001801      /* port size 32bit */
+#define CONFIG_SYS_FLASH_BASE          0xff000000      /* start of FLASH 16M */
+#define CONFIG_SYS_BR0_PRELIM          0xff001801      /* port size 32bit */
 
-#define CFG_OR0_PRELIM         0xff006ff7      /* 16MB Flash */
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     64              /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_OR0_PRELIM          0xff006ff7      /* 16MB Flash */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      64              /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 #undef CONFIG_CLOCKS_IN_MHZ
 
 
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * FIXME: the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM         0xf0001861
+#define CONFIG_SYS_BR2_PRELIM          0xf0001861
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM         0xfc006901
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
 
-#define CFG_LBC_LCRR           0x00030004    /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000    /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x20000000    /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004    /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000    /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x20000000    /* LB refresh timer prescal*/
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR5    (3 << (31 - 16))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT3        (3 << (31 - 19))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW3 (3 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC2     (2 << (31 - 27))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_BUFCMD   (1 << (31 - 29))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
-
-#define CFG_LBC_LSDMR_COMMON   ( CFG_LBC_LSDMR_BSMA1516        \
-                               | CFG_LBC_LSDMR_RFCR5           \
-                               | CFG_LBC_LSDMR_PRETOACT3       \
-                               | CFG_LBC_LSDMR_ACTTORW3        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC2            \
-                               | CFG_LBC_LSDMR_CL3             \
-                               | CFG_LBC_LSDMR_RFEN            \
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR5     (3 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT3 (3 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW3  (3 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC2      (2 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_BUFCMD    (1 << (31 - 29))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
+
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_BSMA1516 \
+                               | CONFIG_SYS_LBC_LSDMR_RFCR5            \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT3        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW3 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC2             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
+                               | CONFIG_SYS_LBC_LSDMR_RFEN             \
                                )
 
 /*
  * SDRAM Controller configuration sequence.
  */
-#define CFG_LBC_LSDMR_1                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_PCHALL)
-#define CFG_LBC_LSDMR_2                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_3                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_4                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_MRW)
-#define CFG_LBC_LSDMR_5                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_NORMAL)
+#define CONFIG_SYS_LBC_LSDMR_1         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_PCHALL)
+#define CONFIG_SYS_LBC_LSDMR_2         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_3         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_4         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_MRW)
+#define CONFIG_SYS_LBC_LSDMR_5         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_NORMAL)
 
 
 /*
  * 32KB, 8-bit wide for ADS config reg
  */
-#define CFG_BR4_PRELIM          0xf8000801
-#define CFG_OR4_PRELIM         0xffffe1f1
-#define CFG_BCSR               (CFG_BR4_PRELIM & 0xffff8000)
+#define CONFIG_SYS_BR4_PRELIM          0xf8000801
+#define CONFIG_SYS_OR4_PRELIM          0xffffe1f1
+#define CONFIG_SYS_BCSR                (CONFIG_SYS_BR4_PRELIM & 0xffff8000)
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2        (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {0x69} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* RapidIO MMU */
-#define CFG_RIO_MEM_BASE       0xc0000000      /* base address */
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 128M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000      /* base address */
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 128M */
 
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x100000        /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x100000        /* 1M */
 
 #if defined(CONFIG_PCI)
 
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
   #define CONFIG_ENV_IS_IN_FLASH       1
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE + 0x40000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE + 0x40000)
   #define CONFIG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */
   #define CONFIG_ENV_SIZE              0x2000
 #else
-  #define CFG_NO_FLASH         1       /* Flash is not usable now */
+  #define CONFIG_SYS_NO_FLASH          1       /* Flash is not usable now */
   #define CONFIG_ENV_IS_NOWHERE        1       /* Store ENV in memory only */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index ee4f41f8efaf904b084a3e4706cee2d333d5b346..46a141a2c077c32ea58b9d89c013c3a98c3f0df4 100644 (file)
@@ -66,9 +66,9 @@
 
 #define CONFIG_BOARD_PRE_INIT  1           /* Call board_pre_init      */
 
-#undef CFG_DRAM_TEST                       /* memory test, takes time  */
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                        /* memory test, takes time  */
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 #if defined(CONFIG_PCI) && defined(CONFIG_TSEC_ENET)
 #error "You can only use either PCI Ethernet Card or TSEC Ethernet, not both."
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default      */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR    */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default      */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR    */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR    */
 
-#define CFG_SDRAM_SIZE         256             /* DDR is now 256MB     */
+#define CONFIG_SYS_SDRAM_SIZE          256             /* DDR is now 256MB     */
 
 #if defined(CONFIG_RAM_AS_FLASH)
-#define CFG_LBC_SDRAM_BASE     0xfc000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xfc000000      /* Localbus SDRAM */
 #else
-#define CFG_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
 #endif
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 0MB     */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 0MB     */
 
 #if defined(CONFIG_RAM_AS_FLASH)
-#define CFG_FLASH_BASE          0xf8000000      /* start of FLASH  16M  */
-#define CFG_BR0_PRELIM          0xf8001801      /* port size 32bit */
+#define CONFIG_SYS_FLASH_BASE          0xf8000000      /* start of FLASH  16M  */
+#define CONFIG_SYS_BR0_PRELIM          0xf8001801      /* port size 32bit */
 #else /* Boot from real Flash */
-#define CFG_FLASH_BASE         0xff800000      /* start of FLASH 8M    */
-#define CFG_BR0_PRELIM         0xff801001      /* port size 16bit      */
+#define CONFIG_SYS_FLASH_BASE          0xff800000      /* start of FLASH 8M    */
+#define CONFIG_SYS_BR0_PRELIM          0xff801001      /* port size 16bit      */
 #endif
 
-#define        CFG_OR0_PRELIM          0xff806f67      /* 8MB Flash            */
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks      */
-#define CFG_MAX_FLASH_SECT     64              /* sectors per device   */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Timeout for Flash Erase (in ms)*/
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)*/
-#define CFG_FLASH_CFI          1
+#define        CONFIG_SYS_OR0_PRELIM           0xff806f67      /* 8MB Flash            */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      64              /* sectors per device   */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Timeout for Flash Erase (in ms)*/
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)*/
+#define CONFIG_SYS_FLASH_CFI           1
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
 /* DDR Setup */
 #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER       /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #undef CONFIG_CLOCKS_IN_MHZ
 
 /* local bus definitions */
-#define CFG_BR2_PRELIM         0xf0001861      /* 64MB localbus SDRAM  */
-#define CFG_OR2_PRELIM         0xfc006901
-#define CFG_LBC_LCRR           0x00030004      /* local bus freq divider*/
-#define CFG_LBC_LBCR           0x00000000
-#define CFG_LBC_LSRT           0x20000000
-#define CFG_LBC_MRTPR          0x20000000
-#define CFG_LBC_LSDMR_1                0x2861b723
-#define CFG_LBC_LSDMR_2                0x0861b723
-#define CFG_LBC_LSDMR_3                0x0861b723
-#define CFG_LBC_LSDMR_4                0x1861b723
-#define CFG_LBC_LSDMR_5                0x4061b723
+#define CONFIG_SYS_BR2_PRELIM          0xf0001861      /* 64MB localbus SDRAM  */
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
+#define CONFIG_SYS_LBC_LCRR            0x00030004      /* local bus freq divider*/
+#define CONFIG_SYS_LBC_LBCR            0x00000000
+#define CONFIG_SYS_LBC_LSRT            0x20000000
+#define CONFIG_SYS_LBC_MRTPR           0x20000000
+#define CONFIG_SYS_LBC_LSDMR_1         0x2861b723
+#define CONFIG_SYS_LBC_LSDMR_2         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_3         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_4         0x1861b723
+#define CONFIG_SYS_LBC_LSDMR_5         0x4061b723
 
 #if defined(CONFIG_RAM_AS_FLASH)
-#define CFG_BR4_PRELIM          0xf8000801      /* 32KB, 8-bit wide for ADS config reg */
+#define CONFIG_SYS_BR4_PRELIM          0xf8000801      /* 32KB, 8-bit wide for ADS config reg */
 #else
-#define CFG_BR4_PRELIM          0xf8000801      /* 32KB, 8-bit wide for ADS config reg */
+#define CONFIG_SYS_BR4_PRELIM          0xf8000801      /* 32KB, 8-bit wide for ADS config reg */
 #endif
-#define CFG_OR4_PRELIM          0xffffe1f1
-#define CFG_BCSR                (CFG_BR4_PRELIM & 0xffff8000)
+#define CONFIG_SYS_OR4_PRELIM          0xffffe1f1
+#define CONFIG_SYS_BCSR                (CONFIG_SYS_BR4_PRELIM & 0xffff8000)
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0x40000000      /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000      /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2        (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {0x69} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* General PCI */
-#define CFG_PCI_MEM_BASE       0x80000000
-#define CFG_PCI_MEM_PHYS       0x80000000
-#define CFG_PCI_MEM_SIZE       0x20000000
-#define CFG_PCI_IO_BASE         0xe2000000
+#define CONFIG_SYS_PCI_MEM_BASE        0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        0x80000000
+#define CONFIG_SYS_PCI_MEM_SIZE        0x20000000
+#define CONFIG_SYS_PCI_IO_BASE         0xe2000000
 
 #if defined(CONFIG_PCI)
 #define CONFIG_NET_MULTI
 #define PCI_IDSEL_NUMBER      0x0c     /*slot0->3(IDSEL)=12->15*/
 #endif
 #define CONFIG_PCI_SCAN_SHOW    1       /* show pci devices on startup  */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0008
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0008
 #elif defined(CONFIG_TSEC_ENET)
 #define CONFIG_NET_MULTI       1
 #define CONFIG_MII             1       /* MII PHY management   */
 #endif
 
 /* Environment */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #if defined(CONFIG_RAM_AS_FLASH)
 #define CONFIG_ENV_IS_NOWHERE
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x100000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x100000)
 #define CONFIG_ENV_SIZE                0x2000
 #else
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #endif
 #define CONFIG_ENV_SIZE                0x2000
 #else
-/* #define CFG_NO_FLASH                1 */    /* Flash is not usable now      */
+/* #define CONFIG_SYS_NO_FLASH         1 */    /* Flash is not usable now      */
 #define CONFIG_ENV_IS_NOWHERE  1       /* Store ENV in memory only     */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE - 0x1000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #define CONFIG_ENV_SIZE                0x2000
 #endif
 
 #define CONFIG_BOOTDELAY       3       /* -1 disable autoboot */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 
 /*
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT) || defined(CONFIG_RAM_AS_FLASH)
+#if defined(CONFIG_SYS_RAMBOOT) || defined(CONFIG_RAM_AS_FLASH)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_LOAD_ADDR   0x2000000       /* default load address */
-#define CFG_PROMPT     "MPC8540EVAL=> "/* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "MPC8540EVAL=> "/* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index 6a400f577e05119c7a6fe259ff0ce72e3f7860c7..45eddb833e38890178c5ed6618fff51a87e38feb 100644 (file)
@@ -64,17 +64,17 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_BTB                         /* toggle branch predition */
 #define CONFIG_ADDR_STREAMING              /* toggle addr streaming   */
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
@@ -84,8 +84,8 @@ extern unsigned long get_clock_freq(void);
 
 #define CONFIG_MEM_INIT_VALUE          0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
@@ -137,37 +137,37 @@ extern unsigned long get_clock_freq(void);
  * 1111 1111 1000 0000 0110 1110 0110 0101 = ff806e65    ORx
  */
 
-#define CFG_FLASH_BASE         0xff000000      /* start of FLASH 8M */
+#define CONFIG_SYS_FLASH_BASE          0xff000000      /* start of FLASH 8M */
 
-#define CFG_BR0_PRELIM         0xff801001
-#define CFG_BR1_PRELIM         0xff001001
+#define CONFIG_SYS_BR0_PRELIM          0xff801001
+#define CONFIG_SYS_BR1_PRELIM          0xff001001
 
-#define        CFG_OR0_PRELIM          0xff806e65
-#define        CFG_OR1_PRELIM          0xff806e65
+#define        CONFIG_SYS_OR0_PRELIM           0xff806e65
+#define        CONFIG_SYS_OR1_PRELIM           0xff806e65
 
-#define CFG_FLASH_BANKS_LIST   {0xff800000, CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {0xff800000, CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
@@ -179,14 +179,14 @@ extern unsigned long get_clock_freq(void);
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * FIXME: the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM          0xf0001861
+#define CONFIG_SYS_BR2_PRELIM          0xf0001861
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
@@ -199,35 +199,35 @@ extern unsigned long get_clock_freq(void);
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM         0xfc006901
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
 
-#define CFG_LBC_LCRR           0x00030004    /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000  /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x00000000  /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004    /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000  /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x00000000  /* LB refresh timer prescal*/
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
 /*
  * Common settings for all Local Bus SDRAM commands.
@@ -235,13 +235,13 @@ extern unsigned long get_clock_freq(void);
  *                  or BSMA1617 (for CPU 1.0) (old)
  * is OR'ed in too.
  */
-#define CFG_LBC_LSDMR_COMMON   ( CFG_LBC_LSDMR_RFCR16          \
-                               | CFG_LBC_LSDMR_PRETOACT7       \
-                               | CFG_LBC_LSDMR_ACTTORW7        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC4            \
-                               | CFG_LBC_LSDMR_CL3             \
-                               | CFG_LBC_LSDMR_RFEN            \
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_RFCR16           \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT7        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW7 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC4             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
+                               | CONFIG_SYS_LBC_LSDMR_RFEN             \
                                )
 
 /*
@@ -277,39 +277,39 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_FSL_CADMUS
 
 #define CADMUS_BASE_ADDR 0xf8000000
-#define CFG_BR3_PRELIM   0xf8000801
-#define CFG_OR3_PRELIM   0xfff00ff7
+#define CONFIG_SYS_BR3_PRELIM   0xf8000801
+#define CONFIG_SYS_OR3_PRELIM   0xfff00ff7
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000      /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000      /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128         /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128         /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     2
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2        (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
@@ -317,8 +317,8 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
@@ -326,35 +326,35 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {0x69} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* EEPROM */
 #define CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_CCID
-#define CFG_ID_EEPROM
-#define CFG_I2C_EEPROM_ADDR     0x57
-#define CFG_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_I2C_EEPROM_CCID
+#define CONFIG_SYS_ID_EEPROM
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x100000        /* 1M */
-
-#define CFG_PCI2_MEM_BASE      0xa0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xe2100000
-#define CFG_PCI2_IO_SIZE       0x100000        /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x100000        /* 1M */
+
+#define CONFIG_SYS_PCI2_MEM_BASE       0xa0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xe2100000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x100000        /* 1M */
 
 #ifdef CONFIG_LEGACY
 #define BRIDGE_ID 17
@@ -374,7 +374,7 @@ extern unsigned long get_clock_freq(void);
 #undef CONFIG_TULIP
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
@@ -406,12 +406,12 @@ extern unsigned long get_clock_freq(void);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
@@ -442,26 +442,26 @@ extern unsigned long get_clock_freq(void);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index b650874225425733a14d7f78e9b9565a42288630..fb4d172687b00a47c22e556f1c18cfa9c2ebf193 100644 (file)
@@ -72,23 +72,23 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  */
 #define CONFIG_ENABLE_36BIT_PHYS       1
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 #define CONFIG_PANIC_HANG      /* do not reset board on panic */
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR          (CFG_CCSRBAR+0x8000)
-#define CFG_PCIE1_ADDR         (CFG_CCSRBAR+0xa000)
-#define CFG_PCIE2_ADDR         (CFG_CCSRBAR+0x9000)
-#define CFG_PCIE3_ADDR         (CFG_CCSRBAR+0xb000)
+#define CONFIG_SYS_PCI1_ADDR           (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCIE1_ADDR          (CONFIG_SYS_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCIE2_ADDR          (CONFIG_SYS_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCIE3_ADDR          (CONFIG_SYS_CCSRBAR+0xb000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
@@ -99,8 +99,8 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER       /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
@@ -145,39 +145,39 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 /*
  * Local Bus Definitions
  */
-#define CFG_BOOT_BLOCK         0xfc000000      /* boot TLB */
+#define CONFIG_SYS_BOOT_BLOCK          0xfc000000      /* boot TLB */
 
-#define CFG_FLASH_BASE         0xff800000      /* start of FLASH 8M */
+#define CONFIG_SYS_FLASH_BASE          0xff800000      /* start of FLASH 8M */
 
-#define CFG_BR0_PRELIM         0xff801001
-#define CFG_BR1_PRELIM         0xfe801001
+#define CONFIG_SYS_BR0_PRELIM          0xff801001
+#define CONFIG_SYS_BR1_PRELIM          0xfe801001
 
-#define CFG_OR0_PRELIM         0xff806e65
-#define CFG_OR1_PRELIM         0xff806e65
+#define CONFIG_SYS_OR0_PRELIM          0xff806e65
+#define CONFIG_SYS_OR1_PRELIM          0xff806e65
 
-#define CFG_FLASH_BANKS_LIST   {CFG_FLASH_BASE}
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
 
-#define CFG_FLASH_QUIET_TEST
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000           /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500             /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000           /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Flash Write Timeout (ms) */
 #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
-#define CFG_LBC_NONCACHE_BASE  0xf8000000
+#define CONFIG_SYS_LBC_NONCACHE_BASE   0xf8000000
 
-#define CFG_BR2_PRELIM         0xf8201001      /* port size 16bit */
-#define CFG_OR2_PRELIM         0xfff06ff7      /* 1MB Compact Flash area*/
+#define CONFIG_SYS_BR2_PRELIM          0xf8201001      /* port size 16bit */
+#define CONFIG_SYS_OR2_PRELIM          0xfff06ff7      /* 1MB Compact Flash area*/
 
-#define CFG_BR3_PRELIM         0xf8100801      /* port size 8bit */
-#define CFG_OR3_PRELIM         0xfff06ff7      /* 1MB PIXIS area*/
+#define CONFIG_SYS_BR3_PRELIM          0xf8100801      /* port size 8bit */
+#define CONFIG_SYS_OR3_PRELIM          0xfff06ff7      /* 1MB PIXIS area*/
 
 #define CONFIG_FSL_PIXIS       1       /* use common PIXIS code */
 #define PIXIS_BASE     0xf8100000      /* PIXIS registers */
@@ -197,7 +197,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define PIXIS_VCLKH            0x19    /* VELA VCLKH register */
 #define PIXIS_VCLKL            0x1A    /* VELA VCLKL register */
 #define PIXIS_VSPEED2          0x1d    /* VELA VSpeed 2 */
-#define CFG_PIXIS_VBOOT_MASK   0x40    /* Reset altbank mask*/
+#define CONFIG_SYS_PIXIS_VBOOT_MASK    0x40    /* Reset altbank mask*/
 #define PIXIS_VSPEED2_TSEC1SER 0x2
 #define PIXIS_VSPEED2_TSEC3SER 0x1
 #define PIXIS_VCFGEN1_TSEC1SER 0x20
@@ -206,17 +206,17 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 
 /* define to use L1 as initial stack */
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xf4010000      /* Initial L1 address */
-#define CFG_INIT_RAM_END       0x00004000      /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK      1
+#define CONFIG_SYS_INIT_RAM_ADDR      0xf4010000      /* Initial L1 address */
+#define CONFIG_SYS_INIT_RAM_END       0x00004000      /* End of used area in RAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (1024 * 1024)   /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)   /* Reserved for malloc */
 
 /* Serial Port - controlled on board with jumper J8
  * open - index 2
@@ -224,21 +224,21 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
@@ -246,72 +246,72 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_STRTOUL              1
-#define CFG_64BIT_VSPRINTF             1
+#define CONFIG_SYS_64BIT_STRTOUL               1
+#define CONFIG_SYS_64BIT_VSPRINTF              1
 
 /* I2C */
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_EEPROM_ADDR    0x57
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3100
 
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CFG_PCIE_PHYS          0x80000000      /* 1G PCIE TLB */
-#define CFG_PCI_PHYS           0xc0000000      /* 512M PCI TLB */
+#define CONFIG_SYS_PCIE_PHYS           0x80000000      /* 1G PCIE TLB */
+#define CONFIG_SYS_PCI_PHYS            0xc0000000      /* 512M PCI TLB */
 
-#define CFG_PCI1_MEM_BASE      0xc0000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe1000000
-#define CFG_PCI1_IO_SIZE       0x00010000      /* 64k */
+#define CONFIG_SYS_PCI1_MEM_BASE       0xc0000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe1000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00010000      /* 64k */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 /* controller 2, Slot 1, tgtid 1, Base address 9000 */
-#define CFG_PCIE2_MEM_BASE     0x80000000
-#define CFG_PCIE2_MEM_PHYS     CFG_PCIE2_MEM_BASE
-#define CFG_PCIE2_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE2_IO_BASE      0x00000000
-#define CFG_PCIE2_IO_PHYS      0xe1010000
-#define CFG_PCIE2_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE2_MEM_BASE      0x80000000
+#define CONFIG_SYS_PCIE2_MEM_PHYS      CONFIG_SYS_PCIE2_MEM_BASE
+#define CONFIG_SYS_PCIE2_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE2_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE2_IO_PHYS       0xe1010000
+#define CONFIG_SYS_PCIE2_IO_SIZE       0x00010000      /* 64k */
 
 /* controller 1, Slot 2,tgtid 2, Base address a000 */
-#define CFG_PCIE1_MEM_BASE     0xa0000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x10000000      /* 256M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xe1020000
-#define CFG_PCIE1_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xe1020000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00010000      /* 64k */
 
 /* controller 3, direct to uli, tgtid 3, Base address b000 */
-#define CFG_PCIE3_MEM_BASE     0xb0000000
-#define CFG_PCIE3_MEM_PHYS     CFG_PCIE3_MEM_BASE
-#define CFG_PCIE3_MEM_SIZE     0x00100000      /* 1M */
-#define CFG_PCIE3_IO_BASE      0x00000000
-#define CFG_PCIE3_IO_PHYS      0xb0100000      /* reuse mem LAW */
-#define CFG_PCIE3_IO_SIZE      0x00100000      /* 1M */
-#define CFG_PCIE3_MEM_BASE2    0xb0200000
-#define CFG_PCIE3_MEM_PHYS2    CFG_PCIE3_MEM_BASE2
-#define CFG_PCIE3_MEM_SIZE2    0x00200000      /* 1M */
+#define CONFIG_SYS_PCIE3_MEM_BASE      0xb0000000
+#define CONFIG_SYS_PCIE3_MEM_PHYS      CONFIG_SYS_PCIE3_MEM_BASE
+#define CONFIG_SYS_PCIE3_MEM_SIZE      0x00100000      /* 1M */
+#define CONFIG_SYS_PCIE3_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE3_IO_PHYS       0xb0100000      /* reuse mem LAW */
+#define CONFIG_SYS_PCIE3_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCIE3_MEM_BASE2     0xb0200000
+#define CONFIG_SYS_PCIE3_MEM_PHYS2     CONFIG_SYS_PCIE3_MEM_BASE2
+#define CONFIG_SYS_PCIE3_MEM_SIZE2     0x00200000      /* 1M */
 
 #if defined(CONFIG_PCI)
 
 /*PCIE video card used*/
-#define VIDEO_IO_OFFSET                CFG_PCIE2_IO_PHYS
+#define VIDEO_IO_OFFSET                CONFIG_SYS_PCIE2_IO_PHYS
 
 /*PCI video card used*/
-/*#define VIDEO_IO_OFFSET      CFG_PCI1_IO_PHYS*/
+/*#define VIDEO_IO_OFFSET      CONFIG_SYS_PCI1_IO_PHYS*/
 
 /* video */
 #define CONFIG_VIDEO
@@ -324,7 +324,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_ATI_RADEON_FB
 #define CONFIG_VIDEO_LOGO
 /*#define CONFIG_CONSOLE_CURSOR*/
-#define CFG_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
 #endif
 
 #define CONFIG_NET_MULTI
@@ -341,8 +341,8 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #endif
 
 #ifndef CONFIG_PCI_PNP
-       #define PCI_ENET0_IOADDR        CFG_PCI1_IO_BASE
-       #define PCI_ENET0_MEMADDR       CFG_PCI1_IO_BASE
+       #define PCI_ENET0_IOADDR        CONFIG_SYS_PCI1_IO_BASE
+       #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCI1_IO_BASE
        #define PCI_IDSEL_NUMBER        0x11    /* IDSEL = AD11 */
 #endif
 
@@ -352,10 +352,10 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 
 #ifdef CONFIG_SCSI_AHCI
 #define CONFIG_SATA_ULI5288
-#define CFG_SCSI_MAX_SCSI_ID   4
-#define CFG_SCSI_MAX_LUN       1
-#define CFG_SCSI_MAX_DEVICE    (CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN)
-#define CFG_SCSI_MAXDEVICE     CFG_SCSI_MAX_DEVICE
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    4
+#define CONFIG_SYS_SCSI_MAX_LUN        1
+#define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_SYS_SCSI_MAXDEVICE      CONFIG_SYS_SCSI_MAX_DEVICE
 #endif /* SCSCI */
 
 #endif /* CONFIG_PCI */
@@ -395,16 +395,16 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#if CFG_MONITOR_BASE > 0xfff80000
+#if CONFIG_SYS_MONITOR_BASE > 0xfff80000
 #define CONFIG_ENV_ADDR                0xfff80000
 #else
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x70000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x70000)
 #endif
 #define CONFIG_ENV_SIZE                0x2000
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* 64K (one sector) */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
@@ -439,26 +439,26 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 68bc10607badeb974f43f6367a0beb2a339bd229..dd447d34e8d05e4583abec0df39a7d894ea9782e 100644 (file)
@@ -76,21 +76,21 @@ extern unsigned long get_clock_freq(void);
  */
 #define CONFIG_ENABLE_36BIT_PHYS       1
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR  (CFG_CCSRBAR+0x8000)
-#define CFG_PCI2_ADDR  (CFG_CCSRBAR+0x9000)
-#define CFG_PCIE1_ADDR (CFG_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCI1_ADDR   (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCI2_ADDR   (CONFIG_SYS_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCIE1_ADDR  (CONFIG_SYS_CCSRBAR+0xa000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
@@ -102,8 +102,8 @@ extern unsigned long get_clock_freq(void);
 #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER       /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
@@ -153,43 +153,43 @@ extern unsigned long get_clock_freq(void);
  * 1111 1111 1000 0000 0110 1110 0110 0101 = ff806e65   ORx
  */
 
-#define CFG_BOOT_BLOCK         0xff000000      /* boot TLB block */
-#define CFG_FLASH_BASE         CFG_BOOT_BLOCK  /* start of FLASH 16M */
+#define CONFIG_SYS_BOOT_BLOCK          0xff000000      /* boot TLB block */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_BOOT_BLOCK   /* start of FLASH 16M */
 
-#define CFG_BR0_PRELIM         0xff801001
-#define CFG_BR1_PRELIM         0xff001001
+#define CONFIG_SYS_BR0_PRELIM          0xff801001
+#define CONFIG_SYS_BR1_PRELIM          0xff001001
 
-#define        CFG_OR0_PRELIM          0xff806e65
-#define        CFG_OR1_PRELIM          0xff806e65
+#define        CONFIG_SYS_OR0_PRELIM           0xff806e65
+#define        CONFIG_SYS_OR1_PRELIM           0xff806e65
 
-#define CFG_FLASH_BANKS_LIST   {0xff800000, CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {0xff800000, CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_CACHE_BASE     0xf0000000      /* Localbus cacheable */
-#define CFG_LBC_CACHE_SIZE     64
-#define CFG_LBC_NONCACHE_BASE  0xf8000000      /* Localbus non-cacheable */
-#define CFG_LBC_NONCACHE_SIZE  64
+#define CONFIG_SYS_LBC_CACHE_BASE      0xf0000000      /* Localbus cacheable */
+#define CONFIG_SYS_LBC_CACHE_SIZE      64
+#define CONFIG_SYS_LBC_NONCACHE_BASE   0xf8000000      /* Localbus non-cacheable */
+#define CONFIG_SYS_LBC_NONCACHE_SIZE   64
 
-#define CFG_LBC_SDRAM_BASE     CFG_LBC_CACHE_BASE      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      CONFIG_SYS_LBC_CACHE_BASE       /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
@@ -201,14 +201,14 @@ extern unsigned long get_clock_freq(void);
  * 0   4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * FIXME: the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM         0xf0001861
+#define CONFIG_SYS_BR2_PRELIM          0xf0001861
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
@@ -221,35 +221,35 @@ extern unsigned long get_clock_freq(void);
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM         0xfc006901
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
 
-#define CFG_LBC_LCRR           0x00030004      /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000      /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000      /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x00000000      /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004      /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000      /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000      /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x00000000      /* LB refresh timer prescal*/
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
 /*
  * Common settings for all Local Bus SDRAM commands.
@@ -257,13 +257,13 @@ extern unsigned long get_clock_freq(void);
  *                 or BSMA1617 (for CPU 1.0) (old)
  * is OR'ed in too.
  */
-#define CFG_LBC_LSDMR_COMMON   ( CFG_LBC_LSDMR_RFCR16          \
-                               | CFG_LBC_LSDMR_PRETOACT7       \
-                               | CFG_LBC_LSDMR_ACTTORW7        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC4            \
-                               | CFG_LBC_LSDMR_CL3             \
-                               | CFG_LBC_LSDMR_RFEN            \
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_RFCR16           \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT7        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW7 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC4             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
+                               | CONFIG_SYS_LBC_LSDMR_RFEN             \
                                )
 
 /*
@@ -299,41 +299,41 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_FSL_CADMUS
 
 #define CADMUS_BASE_ADDR 0xf8000000
-#define CFG_BR3_PRELIM  0xf8000801
-#define CFG_OR3_PRELIM  0xfff00ff7
+#define CONFIG_SYS_BR3_PRELIM   0xf8000801
+#define CONFIG_SYS_OR3_PRELIM   0xfff00ff7
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_INIT_L2_ADDR       0xf8f80000      /* relocate boot L2SRAM */
+#define CONFIG_SYS_INIT_L2_ADDR        0xf8f80000      /* relocate boot L2SRAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX      2
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE \
+#define CONFIG_SYS_BAUDRATE_TABLE \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
@@ -341,8 +341,8 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
@@ -350,55 +350,55 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* EEPROM */
 #define CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_CCID
-#define CFG_ID_EEPROM
-#define CFG_I2C_EEPROM_ADDR     0x57
-#define CFG_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_I2C_EEPROM_CCID
+#define CONFIG_SYS_ID_EEPROM
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CFG_PCI_PHYS           0x80000000      /* 1G PCI TLB */
+#define CONFIG_SYS_PCI_PHYS            0x80000000      /* 1G PCI TLB */
 
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
 
 #ifdef CONFIG_PCI2
-#define CFG_PCI2_MEM_BASE      0xa0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xe2800000
-#define CFG_PCI2_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI2_MEM_BASE       0xa0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xe2800000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x00100000      /* 1M */
 #endif
 
 #ifdef CONFIG_PCIE1
-#define CFG_PCIE1_MEM_BASE     0xa0000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xe3000000
-#define CFG_PCIE1_IO_SIZE      0x00100000      /*   1M */
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xe3000000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00100000      /*   1M */
 #endif
 
 #ifdef CONFIG_RIO
 /*
  * RapidIO MMU
  */
-#define CFG_RIO_MEM_BASE       0xC0000000
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xC0000000
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 512M */
 #endif
 
 #ifdef CONFIG_LEGACY
@@ -420,9 +420,9 @@ extern unsigned long get_clock_freq(void);
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 #endif /* CONFIG_PCI */
 
@@ -467,12 +467,12 @@ extern unsigned long get_clock_freq(void);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
@@ -503,26 +503,26 @@ extern unsigned long get_clock_freq(void);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index ab4bc8641fbf04b4ca06712c6dfc9bb2dcb7d6d1..6b7f338c153ba5651911b6df48dc9b32b007ed0a 100644 (file)
@@ -64,17 +64,17 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_BTB                         /* toggle branch predition */
 #define CONFIG_ADDR_STREAMING              /* toggle addr streaming   */
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
@@ -84,8 +84,8 @@ extern unsigned long get_clock_freq(void);
 
 #define CONFIG_MEM_INIT_VALUE          0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
@@ -135,37 +135,37 @@ extern unsigned long get_clock_freq(void);
  * 1111 1111 1000 0000 0110 1110 0110 0101 = ff806e65    ORx
  */
 
-#define CFG_FLASH_BASE         0xff000000      /* start of FLASH 8M */
+#define CONFIG_SYS_FLASH_BASE          0xff000000      /* start of FLASH 8M */
 
-#define CFG_BR0_PRELIM         0xff801001
-#define CFG_BR1_PRELIM         0xff001001
+#define CONFIG_SYS_BR0_PRELIM          0xff801001
+#define CONFIG_SYS_BR1_PRELIM          0xff001001
 
-#define        CFG_OR0_PRELIM          0xff806e65
-#define        CFG_OR1_PRELIM          0xff806e65
+#define        CONFIG_SYS_OR0_PRELIM           0xff806e65
+#define        CONFIG_SYS_OR1_PRELIM           0xff806e65
 
-#define CFG_FLASH_BANKS_LIST   {0xff800000, CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {0xff800000, CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
@@ -177,14 +177,14 @@ extern unsigned long get_clock_freq(void);
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * FIXME: the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM          0xf0001861
+#define CONFIG_SYS_BR2_PRELIM          0xf0001861
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
@@ -197,35 +197,35 @@ extern unsigned long get_clock_freq(void);
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM         0xfc006901
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
 
-#define CFG_LBC_LCRR           0x00030004    /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000  /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x00000000  /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004    /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000  /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x00000000  /* LB refresh timer prescal*/
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
 /*
  * Common settings for all Local Bus SDRAM commands.
@@ -233,13 +233,13 @@ extern unsigned long get_clock_freq(void);
  *                  or BSMA1617 (for CPU 1.0) (old)
  * is OR'ed in too.
  */
-#define CFG_LBC_LSDMR_COMMON   ( CFG_LBC_LSDMR_RFCR16          \
-                               | CFG_LBC_LSDMR_PRETOACT7       \
-                               | CFG_LBC_LSDMR_ACTTORW7        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC4            \
-                               | CFG_LBC_LSDMR_CL3             \
-                               | CFG_LBC_LSDMR_RFEN            \
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_RFCR16           \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT7        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW7 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC4             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
+                               | CONFIG_SYS_LBC_LSDMR_RFEN             \
                                )
 
 /*
@@ -275,39 +275,39 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_FSL_CADMUS
 
 #define CADMUS_BASE_ADDR 0xf8000000
-#define CFG_BR3_PRELIM   0xf8000801
-#define CFG_OR3_PRELIM   0xfff00ff7
+#define CONFIG_SYS_BR3_PRELIM   0xf8000801
+#define CONFIG_SYS_OR3_PRELIM   0xfff00ff7
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000      /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000      /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128         /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128         /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     2
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2        (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
@@ -315,8 +315,8 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
@@ -324,35 +324,35 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {0x69} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* EEPROM */
 #define CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_CCID
-#define CFG_ID_EEPROM
-#define CFG_I2C_EEPROM_ADDR     0x57
-#define CFG_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_I2C_EEPROM_CCID
+#define CONFIG_SYS_ID_EEPROM
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
-
-#define CFG_PCI2_MEM_BASE      0xa0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xe2100000
-#define CFG_PCI2_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
+
+#define CONFIG_SYS_PCI2_MEM_BASE       0xa0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xe2100000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x00100000      /* 1M */
 
 #ifdef CONFIG_LEGACY
 #define BRIDGE_ID 17
@@ -372,7 +372,7 @@ extern unsigned long get_clock_freq(void);
 #undef CONFIG_TULIP
 
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
@@ -404,12 +404,12 @@ extern unsigned long get_clock_freq(void);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
@@ -440,26 +440,26 @@ extern unsigned long get_clock_freq(void);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 2bd8724895ed8090ae72131a91698a128fad78a3..59d020cd27032fd80c095977864465ddc90758bb 100644 (file)
 #define CONFIG_BTB                     /* toggle branch predition */
 #define CONFIG_ADDR_STREAMING          /* toggle addr streaming */
 
-#define CFG_INIT_DBCR DBCR_IDM         /* Enable Debug Exceptions */
+#define CONFIG_SYS_INIT_DBCR DBCR_IDM          /* Enable Debug Exceptions */
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
@@ -97,8 +97,8 @@
 
 #define CONFIG_MEM_INIT_VALUE          0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
 #define SPD_EEPROM_ADDRESS     0x51    /* CTLR 0 DIMM 0 */
 
 /* These are used when DDR doesn't use SPD.  */
-#define CFG_SDRAM_SIZE 128             /* DDR is 128MB */
-#define CFG_DDR_CS0_BNDS       0x00000007      /* 0-128MB */
-#define CFG_DDR_CS0_CONFIG     0x80000002
-#define CFG_DDR_TIMING_1       0x37344321
-#define CFG_DDR_TIMING_2       0x00000800      /* P9-45,may need tuning */
-#define CFG_DDR_CONTROL                0xc2000000      /* unbuffered,no DYN_PWR */
-#define CFG_DDR_MODE           0x00000062      /* DLL,normal,seq,4/2.5 */
-#define CFG_DDR_INTERVAL       0x05200100      /* autocharge,no open page */
+#define CONFIG_SYS_SDRAM_SIZE  128             /* DDR is 128MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x00000007      /* 0-128MB */
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80000002
+#define CONFIG_SYS_DDR_TIMING_1        0x37344321
+#define CONFIG_SYS_DDR_TIMING_2        0x00000800      /* P9-45,may need tuning */
+#define CONFIG_SYS_DDR_CONTROL         0xc2000000      /* unbuffered,no DYN_PWR */
+#define CONFIG_SYS_DDR_MODE            0x00000062      /* DLL,normal,seq,4/2.5 */
+#define CONFIG_SYS_DDR_INTERVAL        0x05200100      /* autocharge,no open page */
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
-#define CFG_FLASH_BASE         0xff000000      /* start of FLASH 16M */
-#define CFG_BR0_PRELIM         0xff001801      /* port size 32bit */
+#define CONFIG_SYS_FLASH_BASE          0xff000000      /* start of FLASH 16M */
+#define CONFIG_SYS_BR0_PRELIM          0xff001801      /* port size 32bit */
 
-#define CFG_OR0_PRELIM         0xff006ff7      /* 16MB Flash */
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     64              /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_OR0_PRELIM          0xff006ff7      /* 16MB Flash */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      64              /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 #undef CONFIG_CLOCKS_IN_MHZ
 
 
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861
  *
- * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * FIXME: the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM         0xf0001861
+#define CONFIG_SYS_BR2_PRELIM          0xf0001861
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901
  */
 
-#define CFG_OR2_PRELIM         0xfc006901
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
 
-#define CFG_LBC_LCRR           0x00030004    /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000    /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x20000000    /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004    /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000    /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x20000000    /* LB refresh timer prescal*/
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR5    (3 << (31 - 16))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT3        (3 << (31 - 19))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW3 (3 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC2     (2 << (31 - 27))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_BUFCMD   (1 << (31 - 29))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
-
-#define CFG_LBC_LSDMR_COMMON   ( CFG_LBC_LSDMR_BSMA1516        \
-                               | CFG_LBC_LSDMR_RFCR5           \
-                               | CFG_LBC_LSDMR_PRETOACT3       \
-                               | CFG_LBC_LSDMR_ACTTORW3        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC2            \
-                               | CFG_LBC_LSDMR_CL3             \
-                               | CFG_LBC_LSDMR_RFEN            \
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR5     (3 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT3 (3 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW3  (3 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC2      (2 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_BUFCMD    (1 << (31 - 29))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
+
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_BSMA1516 \
+                               | CONFIG_SYS_LBC_LSDMR_RFCR5            \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT3        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW3 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC2             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
+                               | CONFIG_SYS_LBC_LSDMR_RFEN             \
                                )
 
 /*
  * SDRAM Controller configuration sequence.
  */
-#define CFG_LBC_LSDMR_1                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_PCHALL)
-#define CFG_LBC_LSDMR_2                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_3                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_4                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_MRW)
-#define CFG_LBC_LSDMR_5                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_NORMAL)
+#define CONFIG_SYS_LBC_LSDMR_1         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_PCHALL)
+#define CONFIG_SYS_LBC_LSDMR_2         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_3         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_4         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_MRW)
+#define CONFIG_SYS_LBC_LSDMR_5         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_NORMAL)
 
 
 /*
  * 32KB, 8-bit wide for ADS config reg
  */
-#define CFG_BR4_PRELIM          0xf8000801
-#define CFG_OR4_PRELIM         0xffffe1f1
-#define CFG_BCSR               (CFG_BR4_PRELIM & 0xffff8000)
+#define CONFIG_SYS_BR4_PRELIM          0xf8000801
+#define CONFIG_SYS_OR4_PRELIM          0xffffe1f1
+#define CONFIG_SYS_BCSR                (CONFIG_SYS_BR4_PRELIM & 0xffff8000)
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_ON_SCC     /* define if console on SCC */
 
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {0x69} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* RapidIO MMU */
-#define CFG_RIO_MEM_BASE       0xc0000000      /* base address */
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 128M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000      /* base address */
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 128M */
 
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x100000        /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x100000        /* 1M */
 
 #if defined(CONFIG_PCI)
 
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
    * - Select bus for bd/buffers
    * - Full duplex
    */
-  #define CFG_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-  #define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-  #define CFG_CPMFCR_RAMTYPE    0
-  #define CFG_FCC_PSMR          (FCC_PSMR_FDE)
+  #define CONFIG_SYS_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+  #define CONFIG_SYS_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+  #define CONFIG_SYS_CPMFCR_RAMTYPE    0
+  #define CONFIG_SYS_FCC_PSMR          (FCC_PSMR_FDE)
   #define FETH2_RST            0x01
 #elif (CONFIG_ETHER_INDEX == 3)
   /* need more definitions here for FE3 */
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
   #define CONFIG_ENV_IS_IN_FLASH       1
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE + 0x40000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE + 0x40000)
   #define CONFIG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */
   #define CONFIG_ENV_SIZE              0x2000
 #else
-  #define CFG_NO_FLASH         1       /* Flash is not usable now */
+  #define CONFIG_SYS_NO_FLASH          1       /* Flash is not usable now */
   #define CONFIG_ENV_IS_NOWHERE        1       /* Store ENV in memory only */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
     #define CONFIG_CMD_MII
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x1000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x1000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 076137a350bf8ce251f458d9f67c187bcc5c6b31..5c14ae375f33a339b6aad9dc93c7da0a83c112ea 100644 (file)
@@ -70,20 +70,20 @@ extern unsigned long get_clock_freq(void);
 
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* Call board_pre_init */
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR           (CFG_CCSRBAR+0x8000)
-#define CFG_PCIE1_ADDR          (CFG_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCI1_ADDR           (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCIE1_ADDR          (CONFIG_SYS_CCSRBAR+0xa000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
@@ -95,8 +95,8 @@ extern unsigned long get_clock_freq(void);
 
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
@@ -145,70 +145,70 @@ extern unsigned long get_clock_freq(void);
  * 0    4    8    12   16   20   24   28
  * 1111 1111 1000 0000 0110 1110 0110 0101 = ff806e65    ORx
  */
-#define CFG_BCSR_BASE          0xf8000000
+#define CONFIG_SYS_BCSR_BASE           0xf8000000
 
-#define CFG_FLASH_BASE         0xfe000000      /* start of FLASH 32M */
+#define CONFIG_SYS_FLASH_BASE          0xfe000000      /* start of FLASH 32M */
 
 /*Chip select 0 - Flash*/
-#define CFG_BR0_PRELIM         0xfe001001
-#define        CFG_OR0_PRELIM          0xfe006ff7
+#define CONFIG_SYS_BR0_PRELIM          0xfe001001
+#define        CONFIG_SYS_OR0_PRELIM           0xfe006ff7
 
 /*Chip slelect 1 - BCSR*/
-#define CFG_BR1_PRELIM         0xf8000801
-#define        CFG_OR1_PRELIM          0xffffe9f7
+#define CONFIG_SYS_BR1_PRELIM          0xf8000801
+#define        CONFIG_SYS_OR1_PRELIM           0xffffe9f7
 
-/*#define CFG_FLASH_BANKS_LIST {0xff800000, CFG_FLASH_BASE} */
-#define CFG_MAX_FLASH_BANKS            1               /* number of banks */
-#define CFG_MAX_FLASH_SECT             512             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500             /* Flash Write Timeout (ms) */
+/*#define CONFIG_SYS_FLASH_BANKS_LIST  {0xff800000, CONFIG_SYS_FLASH_BASE} */
+#define CONFIG_SYS_MAX_FLASH_BANKS             1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT              512             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 
 /*
  * SDRAM on the LocalBus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM        */
-#define CFG_LBC_SDRAM_SIZE     64                      /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM        */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64                      /* LBC SDRAM is 64MB */
 
 
 /*Chip select 2 - SDRAM*/
-#define CFG_BR2_PRELIM      0xf0001861
-#define CFG_OR2_PRELIM         0xfc006901
+#define CONFIG_SYS_BR2_PRELIM      0xf0001861
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
 
-#define CFG_LBC_LCRR           0x00030004      /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000      /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000      /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x00000000      /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004      /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000      /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000      /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x00000000      /* LB refresh timer prescal*/
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
 /*
  * Common settings for all Local Bus SDRAM commands.
@@ -216,13 +216,13 @@ extern unsigned long get_clock_freq(void);
  *                  or BSMA1617 (for CPU 1.0) (old)
  * is OR'ed in too.
  */
-#define CFG_LBC_LSDMR_COMMON   ( CFG_LBC_LSDMR_RFCR16          \
-                               | CFG_LBC_LSDMR_PRETOACT7       \
-                               | CFG_LBC_LSDMR_ACTTORW7        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC4            \
-                               | CFG_LBC_LSDMR_CL3             \
-                               | CFG_LBC_LSDMR_RFEN            \
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_RFCR16           \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT7        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW7 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC4             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
+                               | CONFIG_SYS_LBC_LSDMR_RFEN             \
                                )
 
 /*
@@ -254,46 +254,46 @@ extern unsigned long get_clock_freq(void);
  * 0    4    8    12   16   20   24   28
  * 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7
  */
-#define CFG_BCSR (0xf8000000)
+#define CONFIG_SYS_BCSR (0xf8000000)
 
 /*Chip slelect 4 - PIB*/
-#define CFG_BR4_PRELIM   0xf8008801
-#define CFG_OR4_PRELIM   0xffffe9f7
+#define CONFIG_SYS_BR4_PRELIM   0xf8008801
+#define CONFIG_SYS_OR4_PRELIM   0xffffe9f7
 
 /*Chip select 5 - PIB*/
-#define CFG_BR5_PRELIM  0xf8010801
-#define CFG_OR5_PRELIM  0xffff69f7
+#define CONFIG_SYS_BR5_PRELIM   0xf8010801
+#define CONFIG_SYS_OR5_PRELIM   0xffff69f7
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000      /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000      /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128         /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128         /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX              1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2        (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser*/
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
@@ -301,8 +301,8 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
@@ -312,32 +312,32 @@ extern unsigned long get_clock_freq(void);
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_EEPROM_ADDR    0x52
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {{0,0x69}}     /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x52
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {{0,0x69}}      /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /*
  * General PCI
  * Memory Addresses are mapped 1-1. I/O is mapped from 0
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x00800000      /* 8M */
-
-#define CFG_PCIE1_MEM_BASE     0xa0000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xe2800000
-#define CFG_PCIE1_IO_SIZE      0x00800000      /* 8M */
-
-#define CFG_SRIO_MEM_BASE      0xc0000000
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00800000      /* 8M */
+
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xe2800000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00800000      /* 8M */
+
+#define CONFIG_SYS_SRIO_MEM_BASE       0xc0000000
 
 #ifdef CONFIG_QE
 /*
@@ -357,23 +357,23 @@ extern unsigned long get_clock_freq(void);
 #define CONFIG_UEC_ETH1         /* GETH1 */
 
 #ifdef CONFIG_UEC_ETH1
-#define CFG_UEC1_UCC_NUM        0       /* UCC1 */
-#define CFG_UEC1_RX_CLK         QE_CLK_NONE
-#define CFG_UEC1_TX_CLK         QE_CLK16
-#define CFG_UEC1_ETH_TYPE       GIGA_ETH
-#define CFG_UEC1_PHY_ADDR       7
-#define CFG_UEC1_INTERFACE_MODE ENET_1000_RGMII_ID
+#define CONFIG_SYS_UEC1_UCC_NUM        0       /* UCC1 */
+#define CONFIG_SYS_UEC1_RX_CLK         QE_CLK_NONE
+#define CONFIG_SYS_UEC1_TX_CLK         QE_CLK16
+#define CONFIG_SYS_UEC1_ETH_TYPE       GIGA_ETH
+#define CONFIG_SYS_UEC1_PHY_ADDR       7
+#define CONFIG_SYS_UEC1_INTERFACE_MODE ENET_1000_RGMII_ID
 #endif
 
 #define CONFIG_UEC_ETH2         /* GETH2 */
 
 #ifdef CONFIG_UEC_ETH2
-#define CFG_UEC2_UCC_NUM        1       /* UCC2 */
-#define CFG_UEC2_RX_CLK         QE_CLK_NONE
-#define CFG_UEC2_TX_CLK         QE_CLK16
-#define CFG_UEC2_ETH_TYPE       GIGA_ETH
-#define CFG_UEC2_PHY_ADDR       1
-#define CFG_UEC2_INTERFACE_MODE ENET_1000_RGMII_ID
+#define CONFIG_SYS_UEC2_UCC_NUM        1       /* UCC2 */
+#define CONFIG_SYS_UEC2_RX_CLK         QE_CLK_NONE
+#define CONFIG_SYS_UEC2_TX_CLK         QE_CLK16
+#define CONFIG_SYS_UEC2_ETH_TYPE       GIGA_ETH
+#define CONFIG_SYS_UEC2_PHY_ADDR       1
+#define CONFIG_SYS_UEC2_INTERFACE_MODE ENET_1000_RGMII_ID
 #endif
 #endif /* CONFIG_QE */
 
@@ -386,12 +386,12 @@ extern unsigned long get_clock_freq(void);
 #undef CONFIG_TULIP
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS      0x00000000
-#define CFG_PCI_MEMORY_PHYS     0x00000000
-#define CFG_PCI_MEMORY_SIZE     0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 #endif /* CONFIG_PCI */
 
@@ -425,12 +425,12 @@ extern unsigned long get_clock_freq(void);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
@@ -462,26 +462,26 @@ extern unsigned long get_clock_freq(void);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256                     /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256                     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 4114a42de1f237a3b435b44ac94497e0a50f9956..2d046aaf170ab787440c9a6b519a7292c9bf168c 100644 (file)
@@ -74,22 +74,22 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 
 #define CONFIG_ENABLE_36BIT_PHYS       1
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on */
-#define CFG_MEMTEST_END                0x7fffffff
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x7fffffff
 #define CONFIG_PANIC_HANG      /* do not reset board on panic */
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xffe00000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xffe00000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCIE3_ADDR         (CFG_CCSRBAR+0x8000)
-#define CFG_PCIE2_ADDR         (CFG_CCSRBAR+0x9000)
-#define CFG_PCIE1_ADDR         (CFG_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCIE3_ADDR          (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCIE2_ADDR          (CONFIG_SYS_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCIE1_ADDR          (CONFIG_SYS_CCSRBAR+0xa000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
@@ -100,49 +100,49 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     2
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
 #define CONFIG_CHIP_SELECTS_PER_CTRL   2
 
 /* I2C addresses of SPD EEPROMs */
-#define CFG_SPD_BUS_NUM                1       /* SPD EEPROMS locate on I2C bus 1 */
+#define CONFIG_SYS_SPD_BUS_NUM         1       /* SPD EEPROMS locate on I2C bus 1 */
 #define SPD_EEPROM_ADDRESS1    0x51    /* CTLR 0 DIMM 0 */
 #define SPD_EEPROM_ADDRESS2    0x52    /* CTLR 1 DIMM 0 */
 
 /* These are used when DDR doesn't use SPD.  */
-#define CFG_SDRAM_SIZE         256             /* DDR is 256MB */
-#define CFG_DDR_CS0_BNDS       0x0000001F
-#define CFG_DDR_CS0_CONFIG     0x80010102      /* Enable, no interleaving */
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       0x00260802
-#define CFG_DDR_TIMING_1       0x3935d322
-#define CFG_DDR_TIMING_2       0x14904cc8
-#define CFG_DDR_MODE_1         0x00480432
-#define CFG_DDR_MODE_2         0x00000000
-#define CFG_DDR_INTERVAL       0x06180100
-#define CFG_DDR_DATA_INIT      0xdeadbeef
-#define CFG_DDR_CLK_CTRL       0x03800000
-#define CFG_DDR_OCD_CTRL       0x00000000
-#define CFG_DDR_OCD_STATUS     0x00000000
-#define CFG_DDR_CONTROL                0xC3008000      /* Type = DDR2 */
-#define CFG_DDR_CONTROL2       0x04400010
-
-#define CFG_DDR_ERR_INT_EN     0x0000000d
-#define CFG_DDR_ERR_DIS                0x00000000
-#define CFG_DDR_SBE            0x00010000
+#define CONFIG_SYS_SDRAM_SIZE          256             /* DDR is 256MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000001F
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80010102      /* Enable, no interleaving */
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        0x00260802
+#define CONFIG_SYS_DDR_TIMING_1        0x3935d322
+#define CONFIG_SYS_DDR_TIMING_2        0x14904cc8
+#define CONFIG_SYS_DDR_MODE_1          0x00480432
+#define CONFIG_SYS_DDR_MODE_2          0x00000000
+#define CONFIG_SYS_DDR_INTERVAL        0x06180100
+#define CONFIG_SYS_DDR_DATA_INIT       0xdeadbeef
+#define CONFIG_SYS_DDR_CLK_CTRL        0x03800000
+#define CONFIG_SYS_DDR_OCD_CTRL        0x00000000
+#define CONFIG_SYS_DDR_OCD_STATUS      0x00000000
+#define CONFIG_SYS_DDR_CONTROL         0xC3008000      /* Type = DDR2 */
+#define CONFIG_SYS_DDR_CONTROL2        0x04400010
+
+#define CONFIG_SYS_DDR_ERR_INT_EN      0x0000000d
+#define CONFIG_SYS_DDR_ERR_DIS         0x00000000
+#define CONFIG_SYS_DDR_SBE             0x00010000
 
 /*
  * FIXME: Not used in fixed_sdram function
  */
-#define CFG_DDR_MODE           0x00000022
-#define CFG_DDR_CS1_BNDS       0x00000000
-#define CFG_DDR_CS2_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS3_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS4_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS5_BNDS       0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_MODE            0x00000022
+#define CONFIG_SYS_DDR_CS1_BNDS        0x00000000
+#define CONFIG_SYS_DDR_CS2_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS3_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS4_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS5_BNDS        0x00000FFF      /* Not done */
 
 /*
  * Make sure required options are set
@@ -175,38 +175,38 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /*
  * Local Bus Definitions
  */
-#define CFG_FLASH_BASE         0xe0000000      /* start of FLASH 128M */
+#define CONFIG_SYS_FLASH_BASE          0xe0000000      /* start of FLASH 128M */
 
-#define CFG_BR0_PRELIM         0xe8001001
-#define CFG_OR0_PRELIM         0xf8000ff7
+#define CONFIG_SYS_BR0_PRELIM          0xe8001001
+#define CONFIG_SYS_OR0_PRELIM          0xf8000ff7
 
-#define CFG_BR1_PRELIM         0xe0001001
-#define CFG_OR1_PRELIM         0xf8000ff7
+#define CONFIG_SYS_BR1_PRELIM          0xe0001001
+#define CONFIG_SYS_OR1_PRELIM          0xf8000ff7
 
-#define CFG_FLASH_BANKS_LIST   {CFG_FLASH_BASE + 0x8000000, CFG_FLASH_BASE}
-#define CFG_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE + 0x8000000, CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_FLASH_QUIET_TEST
 #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */
 
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_MAX_FLASH_SECT     1024            /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000           /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500             /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024            /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000           /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_AMD_CHECK_DQ7
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_AMD_CHECK_DQ7
 
 #define CONFIG_BOARD_EARLY_INIT_R      /* call board_early_init_r function */
 
 #define CONFIG_FSL_PIXIS       1       /* use common PIXIS code */
 #define PIXIS_BASE     0xffdf0000      /* PIXIS registers */
 
-#define CFG_BR3_PRELIM (PIXIS_BASE | 0x0801)   /* port size 8bit */
-#define CFG_OR3_PRELIM         0xffffeff7      /* 32KB but only 4k mapped */
+#define CONFIG_SYS_BR3_PRELIM  (PIXIS_BASE | 0x0801)   /* port size 8bit */
+#define CONFIG_SYS_OR3_PRELIM          0xffffeff7      /* 32KB but only 4k mapped */
 
 #define PIXIS_ID               0x0     /* Board ID at offset 0 */
 #define PIXIS_VER              0x1     /* Board version at offset 1 */
@@ -238,20 +238,20 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /* old pixis referenced names */
 #define PIXIS_VCLKH            0x19    /* VELA VCLKH register */
 #define PIXIS_VCLKL            0x1A    /* VELA VCLKL register */
-#define CFG_PIXIS_VBOOT_MASK   0xc0
+#define CONFIG_SYS_PIXIS_VBOOT_MASK    0xc0
 
 /* define to use L1 as initial stack */
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xffd00000      /* Initial L1 address */
-#define CFG_INIT_RAM_END       0x00004000      /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xffd00000      /* Initial L1 address */
+#define CONFIG_SYS_INIT_RAM_END        0x00004000      /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (1024 * 1024)   /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)   /* Reserved for malloc */
 
 /* Serial Port - controlled on board with jumper J8
  * open - index 2
@@ -259,21 +259,21 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
@@ -283,8 +283,8 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /* new uImage format support */
 #define CONFIG_FIT             1
@@ -296,23 +296,23 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_EEPROM_ADDR    0x57
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {{0,0x29}}/* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {{0,0x29}}/* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /*
  * I2C2 EEPROM
  */
 #define CONFIG_ID_EEPROM
 #ifdef CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_NXID
+#define CONFIG_SYS_I2C_EEPROM_NXID
 #endif
-#define CFG_I2C_EEPROM_ADDR    0x57
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_BUS_NUM     1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_BUS_NUM      1
 
 /*
  * General PCI
@@ -320,38 +320,38 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 /* controller 3, direct to uli, tgtid 3, Base address 8000 */
-#define CFG_PCIE3_MEM_BASE     0x80000000
-#define CFG_PCIE3_MEM_PHYS     CFG_PCIE3_MEM_BASE
-#define CFG_PCIE3_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE3_IO_BASE      0x00000000
-#define CFG_PCIE3_IO_PHYS      0xffc00000
-#define CFG_PCIE3_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE3_MEM_BASE      0x80000000
+#define CONFIG_SYS_PCIE3_MEM_PHYS      CONFIG_SYS_PCIE3_MEM_BASE
+#define CONFIG_SYS_PCIE3_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE3_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE3_IO_PHYS       0xffc00000
+#define CONFIG_SYS_PCIE3_IO_SIZE       0x00010000      /* 64k */
 
 /* controller 2, Slot 2, tgtid 2, Base address 9000 */
-#define CFG_PCIE2_MEM_BASE     0xa0000000
-#define CFG_PCIE2_MEM_PHYS     CFG_PCIE2_MEM_BASE
-#define CFG_PCIE2_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE2_IO_BASE      0x00000000
-#define CFG_PCIE2_IO_PHYS      0xffc10000
-#define CFG_PCIE2_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE2_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE2_MEM_PHYS      CONFIG_SYS_PCIE2_MEM_BASE
+#define CONFIG_SYS_PCIE2_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE2_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE2_IO_PHYS       0xffc10000
+#define CONFIG_SYS_PCIE2_IO_SIZE       0x00010000      /* 64k */
 
 /* controller 1, Slot 1, tgtid 1, Base address a000 */
-#define CFG_PCIE1_MEM_BASE     0xc0000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xffc20000
-#define CFG_PCIE1_IO_SIZE      0x00010000      /* 64k */
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xc0000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xffc20000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00010000      /* 64k */
 
 #if defined(CONFIG_PCI)
 
 /*PCIE video card used*/
-#define VIDEO_IO_OFFSET                CFG_PCIE1_IO_PHYS
+#define VIDEO_IO_OFFSET                CONFIG_SYS_PCIE1_IO_PHYS
 
 /* video */
 #define CONFIG_VIDEO
@@ -364,7 +364,7 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_ATI_RADEON_FB
 #define CONFIG_VIDEO_LOGO
 /*#define CONFIG_CONSOLE_CURSOR*/
-#define CFG_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
 #endif
 
 #define CONFIG_NET_MULTI
@@ -381,8 +381,8 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #endif
 
 #ifndef CONFIG_PCI_PNP
-       #define PCI_ENET0_IOADDR        CFG_PCIE3_IO_BASE
-       #define PCI_ENET0_MEMADDR       CFG_PCIE3_IO_BASE
+       #define PCI_ENET0_IOADDR        CONFIG_SYS_PCIE3_IO_BASE
+       #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCIE3_IO_BASE
        #define PCI_IDSEL_NUMBER        0x11    /* IDSEL = AD11 */
 #endif
 
@@ -392,10 +392,10 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 
 #ifdef CONFIG_SCSI_AHCI
 #define CONFIG_SATA_ULI5288
-#define CFG_SCSI_MAX_SCSI_ID   4
-#define CFG_SCSI_MAX_LUN       1
-#define CFG_SCSI_MAX_DEVICE    (CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN)
-#define CFG_SCSI_MAXDEVICE     CFG_SCSI_MAX_DEVICE
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    4
+#define CONFIG_SYS_SCSI_MAX_LUN        1
+#define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_SYS_SCSI_MAXDEVICE      CONFIG_SYS_SCSI_MAX_DEVICE
 #endif /* SCSI */
 
 #endif /* CONFIG_PCI */
@@ -442,16 +442,16 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#if CFG_MONITOR_BASE > 0xfff80000
+#if CONFIG_SYS_MONITOR_BASE > 0xfff80000
 #define CONFIG_ENV_ADDR                0xfff80000
 #else
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x70000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x70000)
 #endif
 #define CONFIG_ENV_SIZE                0x2000
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* 128K (one sector) */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * Command line configuration.
@@ -477,26 +477,26 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 4eee21ca8561988ac29cf36b2b5a30be86445551..678e1e151af6e4f95dc50fcbf013e62132b57f43 100644 (file)
 #endif
 
 #ifdef RUN_DIAG
-#define CFG_DIAG_ADDR          0xff800000
+#define CONFIG_SYS_DIAG_ADDR           0xff800000
 #endif
 
-#define CFG_RESET_ADDRESS      0xfff00100
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
 
 #define CONFIG_PCI             1       /* Enable PCI/PCIE*/
 #define CONFIG_PCI1            1       /* PCI controler 1 */
@@ -52,7 +52,7 @@
 /*
  * L2CR setup -- make sure this is right for your board!
  */
-#define CFG_L2
+#define CONFIG_SYS_L2
 #define L2_INIT                0
 #define L2_ENABLE      (L2CR_L2E |0x00100000 )
 
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* Call board_pre_init */
 #define CONFIG_MISC_INIT_R             1
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR          (CFG_CCSRBAR+0x8000)
-#define CFG_PCIE1_ADDR         (CFG_CCSRBAR+0xa000)
-#define CFG_PCIE2_ADDR         (CFG_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCI1_ADDR           (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCIE1_ADDR          (CONFIG_SYS_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCIE2_ADDR          (CONFIG_SYS_CCSRBAR+0x9000)
 
-#define CFG_DIU_ADDR           (CFG_CCSRBAR+0x2c000)
+#define CONFIG_SYS_DIU_ADDR            (CONFIG_SYS_CCSRBAR+0x2c000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
@@ -89,8 +89,8 @@
 #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER      /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define MPC86xx_DDR_SDRAM_CLK_CNTL
 #define SPD_EEPROM_ADDRESS1    0x51    /* CTLR 0 DIMM 0 */
 
 /* These are used when DDR doesn't use SPD.  */
-#define CFG_SDRAM_SIZE 256             /* DDR is 256MB */
+#define CONFIG_SYS_SDRAM_SIZE  256             /* DDR is 256MB */
 
 #if 0 /* TODO */
-#define CFG_DDR_CS0_BNDS       0x0000000F
-#define CFG_DDR_CS0_CONFIG     0x80010202      /* Enable, no interleaving */
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       0x00260802
-#define CFG_DDR_TIMING_1       0x3935d322
-#define CFG_DDR_TIMING_2       0x14904cc8
-#define CFG_DDR_MODE_1         0x00480432
-#define CFG_DDR_MODE_2         0x00000000
-#define CFG_DDR_INTERVAL       0x06180100
-#define CFG_DDR_DATA_INIT      0xdeadbeef
-#define CFG_DDR_CLK_CTRL       0x03800000
-#define CFG_DDR_OCD_CTRL       0x00000000
-#define CFG_DDR_OCD_STATUS     0x00000000
-#define CFG_DDR_CONTROL                0xe3008000      /* Type = DDR2 */
-#define CFG_DDR_CONTROL2       0x04400010
-
-#define CFG_DDR_ERR_INT_EN     0x00000000
-#define CFG_DDR_ERR_DIS                0x00000000
-#define CFG_DDR_SBE            0x000f0000
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000F
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80010202      /* Enable, no interleaving */
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        0x00260802
+#define CONFIG_SYS_DDR_TIMING_1        0x3935d322
+#define CONFIG_SYS_DDR_TIMING_2        0x14904cc8
+#define CONFIG_SYS_DDR_MODE_1          0x00480432
+#define CONFIG_SYS_DDR_MODE_2          0x00000000
+#define CONFIG_SYS_DDR_INTERVAL        0x06180100
+#define CONFIG_SYS_DDR_DATA_INIT       0xdeadbeef
+#define CONFIG_SYS_DDR_CLK_CTRL        0x03800000
+#define CONFIG_SYS_DDR_OCD_CTRL        0x00000000
+#define CONFIG_SYS_DDR_OCD_STATUS      0x00000000
+#define CONFIG_SYS_DDR_CONTROL         0xe3008000      /* Type = DDR2 */
+#define CONFIG_SYS_DDR_CONTROL2        0x04400010
+
+#define CONFIG_SYS_DDR_ERR_INT_EN      0x00000000
+#define CONFIG_SYS_DDR_ERR_DIS         0x00000000
+#define CONFIG_SYS_DDR_SBE             0x000f0000
 
 /*
  * FIXME: Not used in fixed_sdram function
  */
-#define CFG_DDR_MODE           0x00000022
-#define CFG_DDR_CS1_BNDS       0x00000000
-#define CFG_DDR_CS2_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS3_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS4_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS5_BNDS       0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_MODE            0x00000022
+#define CONFIG_SYS_DDR_CS1_BNDS        0x00000000
+#define CONFIG_SYS_DDR_CS2_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS3_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS4_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS5_BNDS        0x00000FFF      /* Not done */
 #endif
 
 
 #define CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_NXID
+#define CONFIG_SYS_I2C_EEPROM_NXID
 #define CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_ADDR     0x57
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 
 
-#define CFG_FLASH_BASE         0xf0000000 /* start of FLASH 128M */
-#define CFG_FLASH_BASE2                0xf8000000
+#define CONFIG_SYS_FLASH_BASE          0xf0000000 /* start of FLASH 128M */
+#define CONFIG_SYS_FLASH_BASE2         0xf8000000
 
-#define CFG_FLASH_BANKS_LIST {CFG_FLASH_BASE, CFG_FLASH_BASE2}
+#define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE2}
 
-#define CFG_BR0_PRELIM         0xf8001001 /* port size 16bit */
-#define CFG_OR0_PRELIM         0xf8006e65 /* 128MB NOR Flash*/
+#define CONFIG_SYS_BR0_PRELIM          0xf8001001 /* port size 16bit */
+#define CONFIG_SYS_OR0_PRELIM          0xf8006e65 /* 128MB NOR Flash*/
 
-#define CFG_BR1_PRELIM         0xf0001001 /* port size 16bit */
-#define CFG_OR1_PRELIM         0xf8006e65 /* 128MB Promjet */
+#define CONFIG_SYS_BR1_PRELIM          0xf0001001 /* port size 16bit */
+#define CONFIG_SYS_OR1_PRELIM          0xf8006e65 /* 128MB Promjet */
 #if 0 /* TODO */
-#define CFG_BR2_PRELIM         0xf0000000
-#define CFG_OR2_PRELIM         0xf0000000 /* 256MB NAND Flash - bank 1 */
+#define CONFIG_SYS_BR2_PRELIM          0xf0000000
+#define CONFIG_SYS_OR2_PRELIM          0xf0000000 /* 256MB NAND Flash - bank 1 */
 #endif
-#define CFG_BR3_PRELIM         0xe8000801 /* port size 8bit */
-#define CFG_OR3_PRELIM         0xfff06ff7 /* 1MB PIXIS area*/
+#define CONFIG_SYS_BR3_PRELIM          0xe8000801 /* port size 8bit */
+#define CONFIG_SYS_OR3_PRELIM          0xfff06ff7 /* 1MB PIXIS area*/
 
 
 #define CONFIG_FSL_PIXIS       1       /* use common PIXIS code */
 #define PIXIS_VSPEED1          0x18    /* VELA VSpeed 1 */
 #define PIXIS_VCLKH            0x19    /* VELA VCLKH register */
 #define PIXIS_VCLKL            0x1A    /* VELA VCLKL register */
-#define CFG_PIXIS_VBOOT_MASK   0x0C    /* Reset altbank mask*/
+#define CONFIG_SYS_PIXIS_VBOOT_MASK    0x0C    /* Reset altbank mask*/
 
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_MAX_FLASH_SECT     1024            /* sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024            /* sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
 #undef CONFIG_SPD_EEPROM
-#define CFG_SDRAM_SIZE 256
+#define CONFIG_SYS_SDRAM_SIZE  256
 #endif
 
 #undef CONFIG_CLOCKS_IN_MHZ
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#ifndef CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#ifndef CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
 #else
-#define CFG_INIT_RAM_ADDR      0xe4000000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4000000      /* Initial RAM address */
 #endif
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 KB for Mon */
-#define CFG_MALLOC_LEN         (6 * 1024 * 1024)       /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 KB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (6 * 1024 * 1024)       /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE \
+#define CONFIG_SYS_BAUDRATE_TABLE \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 /* maximum size of the flat tree (8K) */
 #define OF_FLAT_TREE_MAX_SIZE  8192
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe1000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe1000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 /* For RTL8139 */
 #define KSEG1ADDR(x)   ({u32 _x = le32_to_cpu(*(u32 *)(x)); (&_x); })
 #define _IO_BASE               0x00000000
 
 /* controller 1, Base address 0xa000 */
-#define CFG_PCIE1_MEM_BASE     0xa0000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x10000000      /* 256M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xe3000000
-#define CFG_PCIE1_IO_SIZE      0x00100000      /* 1M */
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xe3000000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00100000      /* 1M */
 
 /* controller 2, Base Address 0x9000 */
-#define CFG_PCIE2_MEM_BASE     0x90000000
-#define CFG_PCIE2_MEM_PHYS     CFG_PCIE2_MEM_BASE
-#define CFG_PCIE2_MEM_SIZE     0x10000000      /* 256M */
-#define CFG_PCIE2_IO_BASE      0x00000000      /* reuse mem LAW */
-#define CFG_PCIE2_IO_PHYS      0xe2000000
-#define CFG_PCIE2_IO_SIZE      0x00100000      /* 1M */
+#define CONFIG_SYS_PCIE2_MEM_BASE      0x90000000
+#define CONFIG_SYS_PCIE2_MEM_PHYS      CONFIG_SYS_PCIE2_MEM_BASE
+#define CONFIG_SYS_PCIE2_MEM_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCIE2_IO_BASE       0x00000000      /* reuse mem LAW */
+#define CONFIG_SYS_PCIE2_IO_PHYS       0xe2000000
+#define CONFIG_SYS_PCIE2_IO_SIZE       0x00100000      /* 1M */
 
 
 #if defined(CONFIG_PCI)
 #define CONFIG_PCI_OHCI                1
 #define CONFIG_USB_OHCI_NEW            1
 #define CONFIG_USB_KEYBOARD    1
-#define CFG_DEVICE_DEREGISTER
-#define CFG_USB_EVENT_POLL     1
-#define CFG_USB_OHCI_SLOT_NAME "ohci_pci"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS 15
-#define CFG_OHCI_SWAP_REG_ACCESS       1
+#define CONFIG_SYS_DEVICE_DEREGISTER
+#define CONFIG_SYS_USB_EVENT_POLL      1
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "ohci_pci"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 15
+#define CONFIG_SYS_OHCI_SWAP_REG_ACCESS        1
 
 #if !defined(CONFIG_PCI_PNP)
 #define PCI_ENET0_IOADDR       0xe0000000
 
 #ifdef CONFIG_SCSI_AHCI
 #define CONFIG_SATA_ULI5288
-#define CFG_SCSI_MAX_SCSI_ID   4
-#define CFG_SCSI_MAX_LUN       1
-#define CFG_SCSI_MAX_DEVICE    (CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN)
-#define CFG_SCSI_MAXDEVICE     CFG_SCSI_MAX_DEVICE
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    4
+#define CONFIG_SYS_SCSI_MAX_LUN        1
+#define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_SYS_SCSI_MAXDEVICE      CONFIG_SYS_SCSI_MAX_DEVICE
 #endif
 
 #endif /* CONFIG_PCI */
  * BAT0                2G      Cacheable, non-guarded
  * 0x0000_0000 2G      DDR
  */
-#define CFG_DBAT0L     (BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_DBAT0U     (BATU_BL_2G | BATU_VS | BATU_VP)
-#define CFG_IBAT0L     (BATL_PP_RW | BATL_MEMCOHERENCE )
-#define CFG_IBAT0U     CFG_DBAT0U
+#define CONFIG_SYS_DBAT0L      (BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT0U      (BATU_BL_2G | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (BATL_PP_RW | BATL_MEMCOHERENCE )
+#define CONFIG_SYS_IBAT0U      CONFIG_SYS_DBAT0U
 
 /*
  * BAT1                1G      Cache-inhibited, guarded
  * 0x9000_0000 256M    PCI-Express 2 Memory
  */
 
-#define CFG_DBAT1L     (CFG_PCI1_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
+#define CONFIG_SYS_DBAT1L      (CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
                        | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT1U     (CFG_PCI1_MEM_PHYS | BATU_BL_1G | BATU_VS | BATU_VP)
-#define CFG_IBAT1L     (CFG_PCI1_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U     CFG_DBAT1U
+#define CONFIG_SYS_DBAT1U      (CONFIG_SYS_PCI1_MEM_PHYS | BATU_BL_1G | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U      CONFIG_SYS_DBAT1U
 
 /*
  * BAT2                16M     Cache-inhibited, guarded
  * 0xe100_0000 1M      PCI-1 I/O
  */
 
-#define CFG_DBAT2L     (CFG_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
+#define CONFIG_SYS_DBAT2L      (CONFIG_SYS_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
                        | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U     (CFG_PCI1_IO_PHYS | BATU_BL_16M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     CFG_DBAT2U
+#define CONFIG_SYS_DBAT2U      (CONFIG_SYS_PCI1_IO_PHYS | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      CONFIG_SYS_DBAT2U
 
 /*
  * BAT3                32M     Cache-inhibited, guarded
  * 0xe300_0000 1M      PCI-Express 1 I/O
  */
 
-#define CFG_DBAT3L     (CFG_PCIE2_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
+#define CONFIG_SYS_DBAT3L      (CONFIG_SYS_PCIE2_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT \
                        | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     (CFG_PCIE2_IO_PHYS | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_IBAT3L     (CFG_PCIE2_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     CFG_DBAT3U
+#define CONFIG_SYS_DBAT3U      (CONFIG_SYS_PCIE2_IO_PHYS | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_PCIE2_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      CONFIG_SYS_DBAT3U
 
 /*
  * BAT4                4M      Cache-inhibited, guarded
  * 0xe000_0000 4M      CCSR
  */
-#define CFG_DBAT4L     (CFG_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT \
+#define CONFIG_SYS_DBAT4L      (CONFIG_SYS_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT \
                        | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U     (CFG_CCSRBAR | BATU_BL_1M | BATU_VS | BATU_VP)
-#define CFG_IBAT4L     (CFG_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT4U     CFG_DBAT4U
+#define CONFIG_SYS_DBAT4U      (CONFIG_SYS_CCSRBAR | BATU_BL_1M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT4U      CONFIG_SYS_DBAT4U
 
 /*
  * BAT5                128K    Cacheable, non-guarded
  * 0xe400_0000 128K    Init RAM for stack in the CPU DCache (no backing memory)
  */
-#define CFG_DBAT5L     (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_DBAT5U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_IBAT5L     CFG_DBAT5L
-#define CFG_IBAT5U     CFG_DBAT5U
+#define CONFIG_SYS_DBAT5L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT5U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      CONFIG_SYS_DBAT5L
+#define CONFIG_SYS_IBAT5U      CONFIG_SYS_DBAT5U
 
 /*
  * BAT6                256M    Cache-inhibited, guarded
  * 0xf000_0000 256M    FLASH
  */
-#define CFG_DBAT6L     (CFG_FLASH_BASE  | BATL_PP_RW | BATL_CACHEINHIBIT \
+#define CONFIG_SYS_DBAT6L      (CONFIG_SYS_FLASH_BASE   | BATL_PP_RW | BATL_CACHEINHIBIT \
                        | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT6U     (CFG_FLASH_BASE  | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT6L     (CFG_FLASH_BASE | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     CFG_DBAT6U
+#define CONFIG_SYS_DBAT6U      (CONFIG_SYS_FLASH_BASE   | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_FLASH_BASE | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      CONFIG_SYS_DBAT6U
 
 /*
  * BAT7                4M      Cache-inhibited, guarded
  * 0xe800_0000 4M      PIXIS
  */
-#define CFG_DBAT7L     (PIXIS_BASE | BATL_PP_RW | BATL_CACHEINHIBIT \
+#define CONFIG_SYS_DBAT7L      (PIXIS_BASE | BATL_PP_RW | BATL_CACHEINHIBIT \
                        | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT7U     (PIXIS_BASE | BATU_BL_1M | BATU_VS | BATU_VP)
-#define CFG_IBAT7L     (PIXIS_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT7U     CFG_DBAT7U
+#define CONFIG_SYS_DBAT7U      (PIXIS_BASE | BATU_BL_1M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT7L      (PIXIS_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT7U      CONFIG_SYS_DBAT7U
 
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* 126k (one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 #else
 #define CONFIG_ENV_IS_NOWHERE  1       /* Store ENV in memory only */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE - 0x1000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #define CONFIG_ENV_SIZE                0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_MII
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
 #undef CONFIG_CMD_ENV
 #endif
 
 
 
 #define CONFIG_WATCHDOG                        /* watchdog enabled */
-#define CFG_WATCHDOG_FREQ      5000    /* Feed interval, 5s */
+#define CONFIG_SYS_WATCHDOG_FREQ       5000    /* Feed interval, 5s */
 
 /*DIU Configuration*/
 #define DIU_CONNECT_TO_DVI             /* DIU controller connects to DVI encoder*/
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING          /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index fc55febeeec9cc9a59a3fd475e72cf93e3bece6d..e5710c0073cd25e3a51e2a0da091a684411adca8 100644 (file)
 #define CONFIG_LINUX_RESET_VEC 0x100   /* Reset vector used by Linux */
 
 #ifdef RUN_DIAG
-#define CFG_DIAG_ADDR       0xff800000
+#define CONFIG_SYS_DIAG_ADDR        0xff800000
 #endif
 
-#define CFG_RESET_ADDRESS    0xfff00100
+#define CONFIG_SYS_RESET_ADDRESS    0xfff00100
 
 #define CONFIG_PCI             1       /* Enable PCI/PCIE */
 #define CONFIG_PCI1            1       /* PCIE controler 1 (ULI bridge) */
@@ -61,7 +61,7 @@
 /*
  * L2CR setup -- make sure this is right for your board!
  */
-#define CFG_L2
+#define CONFIG_SYS_L2
 #define L2_INIT                0
 #define L2_ENABLE      (L2CR_L2E)
 
@@ -74,19 +74,19 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* Call board_pre_init */
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xf8000000      /* relocated CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xf8000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR          (CFG_CCSRBAR+0x8000)
-#define CFG_PCI2_ADDR          (CFG_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCI1_ADDR           (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCI2_ADDR           (CONFIG_SYS_CCSRBAR+0x9000)
 
 /*
  * DDR Setup
@@ -99,8 +99,8 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER      /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define MPC86xx_DDR_SDRAM_CLK_CNTL
@@ -121,39 +121,39 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 /*
  * These are used when DDR doesn't use SPD.
  */
-#define CFG_SDRAM_SIZE         256             /* DDR is 256MB */
-#define CFG_DDR_CS0_BNDS       0x0000000F
-#define CFG_DDR_CS0_CONFIG     0x80010102      /* Enable, no interleaving */
-#define CFG_DDR_TIMING_3       0x00000000
-#define CFG_DDR_TIMING_0       0x00260802
-#define CFG_DDR_TIMING_1       0x39357322
-#define CFG_DDR_TIMING_2       0x14904cc8
-#define CFG_DDR_MODE_1         0x00480432
-#define CFG_DDR_MODE_2         0x00000000
-#define CFG_DDR_INTERVAL       0x06090100
-#define CFG_DDR_DATA_INIT      0xdeadbeef
-#define CFG_DDR_CLK_CTRL       0x03800000
-#define CFG_DDR_OCD_CTRL       0x00000000
-#define CFG_DDR_OCD_STATUS     0x00000000
-#define CFG_DDR_CONTROL                0xe3008000      /* Type = DDR2 */
-#define CFG_DDR_CONTROL2       0x04400000
+#define CONFIG_SYS_SDRAM_SIZE          256             /* DDR is 256MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000F
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80010102      /* Enable, no interleaving */
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        0x00260802
+#define CONFIG_SYS_DDR_TIMING_1        0x39357322
+#define CONFIG_SYS_DDR_TIMING_2        0x14904cc8
+#define CONFIG_SYS_DDR_MODE_1          0x00480432
+#define CONFIG_SYS_DDR_MODE_2          0x00000000
+#define CONFIG_SYS_DDR_INTERVAL        0x06090100
+#define CONFIG_SYS_DDR_DATA_INIT       0xdeadbeef
+#define CONFIG_SYS_DDR_CLK_CTRL        0x03800000
+#define CONFIG_SYS_DDR_OCD_CTRL        0x00000000
+#define CONFIG_SYS_DDR_OCD_STATUS      0x00000000
+#define CONFIG_SYS_DDR_CONTROL         0xe3008000      /* Type = DDR2 */
+#define CONFIG_SYS_DDR_CONTROL2        0x04400000
 
 /*
  * FIXME: Not used in fixed_sdram function
  */
-#define CFG_DDR_MODE           0x00000022
-#define CFG_DDR_CS1_BNDS       0x00000000
-#define CFG_DDR_CS2_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS3_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS4_BNDS       0x00000FFF      /* Not done */
-#define CFG_DDR_CS5_BNDS       0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_MODE            0x00000022
+#define CONFIG_SYS_DDR_CS1_BNDS        0x00000000
+#define CONFIG_SYS_DDR_CS2_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS3_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS4_BNDS        0x00000FFF      /* Not done */
+#define CONFIG_SYS_DDR_CS5_BNDS        0x00000FFF      /* Not done */
 
 
 #define CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_NXID
+#define CONFIG_SYS_I2C_EEPROM_NXID
 #define CONFIG_ID_EEPROM
-#define CFG_I2C_EEPROM_ADDR     0x57
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 
 /*
  * In MPC8641HPCN, allocate 16MB flash spaces at fe000000 and ff000000.
@@ -167,22 +167,22 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  *
  * Note that, on switching the boot location, fef00000 becomes fff00000.
  */
-#define CFG_FLASH_BASE         0xfe800000     /* start of FLASH 32M */
-#define CFG_FLASH_BASE2                0xff800000
+#define CONFIG_SYS_FLASH_BASE          0xfe800000     /* start of FLASH 32M */
+#define CONFIG_SYS_FLASH_BASE2         0xff800000
 
-#define CFG_FLASH_BANKS_LIST {CFG_FLASH_BASE, CFG_FLASH_BASE2}
+#define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE2}
 
-#define CFG_BR0_PRELIM         0xff001001      /* port size 16bit */
-#define CFG_OR0_PRELIM         0xff006ff7      /* 16MB Boot Flash area*/
+#define CONFIG_SYS_BR0_PRELIM          0xff001001      /* port size 16bit */
+#define CONFIG_SYS_OR0_PRELIM          0xff006ff7      /* 16MB Boot Flash area*/
 
-#define CFG_BR1_PRELIM         0xfe001001      /* port size 16bit */
-#define CFG_OR1_PRELIM         0xff006ff7      /* 16MB Alternate Boot Flash area*/
+#define CONFIG_SYS_BR1_PRELIM          0xfe001001      /* port size 16bit */
+#define CONFIG_SYS_OR1_PRELIM          0xff006ff7      /* 16MB Alternate Boot Flash area*/
 
-#define CFG_BR2_PRELIM         0xf8201001      /* port size 16bit */
-#define CFG_OR2_PRELIM         0xfff06ff7      /* 1MB Compact Flash area*/
+#define CONFIG_SYS_BR2_PRELIM          0xf8201001      /* port size 16bit */
+#define CONFIG_SYS_OR2_PRELIM          0xfff06ff7      /* 1MB Compact Flash area*/
 
-#define CFG_BR3_PRELIM         0xf8100801      /* port size 8bit */
-#define CFG_OR3_PRELIM         0xfff06ff7      /* 1MB PIXIS area*/
+#define CONFIG_SYS_BR3_PRELIM          0xf8100801      /* port size 8bit */
+#define CONFIG_SYS_OR3_PRELIM          0xfff06ff7      /* 1MB PIXIS area*/
 
 
 #define CONFIG_FSL_PIXIS       1       /* use common PIXIS code */
@@ -201,67 +201,67 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define PIXIS_VSPEED1          0x18    /* VELA VSpeed 1 */
 #define PIXIS_VCLKH            0x19    /* VELA VCLKH register */
 #define PIXIS_VCLKL            0x1A    /* VELA VCLKL register */
-#define CFG_PIXIS_VBOOT_MASK   0x40    /* Reset altbank mask*/
+#define CONFIG_SYS_PIXIS_VBOOT_MASK    0x40    /* Reset altbank mask*/
 
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
 #undef CONFIG_SPD_EEPROM
-#define CFG_SDRAM_SIZE 256
+#define CONFIG_SYS_SDRAM_SIZE  256
 #endif
 
 #undef CONFIG_CLOCKS_IN_MHZ
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#ifndef CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0x0fd00000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#ifndef CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x0fd00000      /* Initial RAM address */
 #else
-#define CFG_INIT_RAM_ADDR      0xf8400000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_ADDR       0xf8400000      /* Initial RAM address */
 #endif
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (1024 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
@@ -272,8 +272,8 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
@@ -281,50 +281,50 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3100
 
 /*
  * RapidIO MMU
  */
-#define CFG_RIO_MEM_BASE       0xc0000000      /* base address */
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 128M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000      /* base address */
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 128M */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 /* For RTL8139 */
 #define KSEG1ADDR(x)           ({u32 _x=le32_to_cpu(*(u32 *)(x)); (&_x);})
 #define _IO_BASE               0x00000000
 
-#define CFG_PCI2_MEM_BASE      0xa0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xe3000000
-#define CFG_PCI2_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI2_MEM_BASE       0xa0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xe3000000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x00100000      /* 1M */
 
 #if defined(CONFIG_PCI)
 
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup */
 
-#undef CFG_SCSI_SCAN_BUS_REVERSE
+#undef CONFIG_SYS_SCSI_SCAN_BUS_REVERSE
 
 #define CONFIG_NET_MULTI
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play */
@@ -340,11 +340,11 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_PCI_OHCI                        1
 #define CONFIG_USB_OHCI_NEW            1
 #define CONFIG_USB_KEYBOARD            1
-#define CFG_DEVICE_DEREGISTER
-#define CFG_USB_EVENT_POLL             1
-#define CFG_USB_OHCI_SLOT_NAME         "ohci_pci"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
-#define CFG_OHCI_SWAP_REG_ACCESS       1
+#define CONFIG_SYS_DEVICE_DEREGISTER
+#define CONFIG_SYS_USB_EVENT_POLL              1
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "ohci_pci"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
+#define CONFIG_SYS_OHCI_SWAP_REG_ACCESS        1
 
 #if !defined(CONFIG_PCI_PNP)
     #define PCI_ENET0_IOADDR   0xe0000000
@@ -353,10 +353,10 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #endif
 
 /*PCIE video card used*/
-#define VIDEO_IO_OFFSET                CFG_PCI2_IO_PHYS
+#define VIDEO_IO_OFFSET                CONFIG_SYS_PCI2_IO_PHYS
 
 /*PCI video card used*/
-/*#define VIDEO_IO_OFFSET      CFG_PCI1_IO_PHYS*/
+/*#define VIDEO_IO_OFFSET      CONFIG_SYS_PCI1_IO_PHYS*/
 
 /* video */
 #define CONFIG_VIDEO
@@ -369,7 +369,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_ATI_RADEON_FB
 #define CONFIG_VIDEO_LOGO
 /*#define CONFIG_CONSOLE_CURSOR*/
-#define CFG_ISA_IO_BASE_ADDRESS CFG_PCI2_IO_PHYS
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_PCI2_IO_PHYS
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
@@ -379,10 +379,10 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 
 #ifdef CONFIG_SCSI_AHCI
 #define CONFIG_SATA_ULI5288
-#define CFG_SCSI_MAX_SCSI_ID   4
-#define CFG_SCSI_MAX_LUN       1
-#define CFG_SCSI_MAX_DEVICE    (CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN)
-#define CFG_SCSI_MAXDEVICE     CFG_SCSI_MAX_DEVICE
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    4
+#define CONFIG_SYS_SCSI_MAX_LUN        1
+#define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_SYS_SCSI_MAXDEVICE      CONFIG_SYS_SCSI_MAX_DEVICE
 #endif
 
 #define CONFIG_MPC86XX_PCI2
@@ -427,10 +427,10 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * BAT0                2G     Cacheable, non-guarded
  * 0x0000_0000 2G     DDR
  */
-#define CFG_DBAT0L     (BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_DBAT0U     (BATU_BL_2G | BATU_VS | BATU_VP)
-#define CFG_IBAT0L     (BATL_PP_RW | BATL_MEMCOHERENCE )
-#define CFG_IBAT0U     CFG_DBAT0U
+#define CONFIG_SYS_DBAT0L      (BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT0U      (BATU_BL_2G | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (BATL_PP_RW | BATL_MEMCOHERENCE )
+#define CONFIG_SYS_IBAT0U      CONFIG_SYS_DBAT0U
 
 /*
  * BAT1                1G     Cache-inhibited, guarded
@@ -438,31 +438,31 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * 0xa000_0000 512M   PCI-Express 2 Memory
  *     Changed it for operating from 0xd0000000
  */
-#define CFG_DBAT1L     ( CFG_PCI1_MEM_PHYS | BATL_PP_RW \
+#define CONFIG_SYS_DBAT1L      ( CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT1U     (CFG_PCI1_MEM_PHYS | BATU_BL_1G | BATU_VS | BATU_VP)
-#define CFG_IBAT1L     (CFG_PCI1_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U     CFG_DBAT1U
+#define CONFIG_SYS_DBAT1U      (CONFIG_SYS_PCI1_MEM_PHYS | BATU_BL_1G | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U      CONFIG_SYS_DBAT1U
 
 /*
  * BAT2                512M   Cache-inhibited, guarded
  * 0xc000_0000 512M   RapidIO Memory
  */
-#define CFG_DBAT2L     (CFG_RIO_MEM_PHYS | BATL_PP_RW \
+#define CONFIG_SYS_DBAT2L      (CONFIG_SYS_RIO_MEM_PHYS | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U     (CFG_RIO_MEM_PHYS | BATU_BL_512M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_RIO_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     CFG_DBAT2U
+#define CONFIG_SYS_DBAT2U      (CONFIG_SYS_RIO_MEM_PHYS | BATU_BL_512M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_RIO_MEM_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      CONFIG_SYS_DBAT2U
 
 /*
  * BAT3                4M     Cache-inhibited, guarded
  * 0xf800_0000 4M     CCSR
  */
-#define CFG_DBAT3L     ( CFG_CCSRBAR | BATL_PP_RW \
+#define CONFIG_SYS_DBAT3L      ( CONFIG_SYS_CCSRBAR | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     (CFG_CCSRBAR | BATU_BL_4M | BATU_VS | BATU_VP)
-#define CFG_IBAT3L     (CFG_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     CFG_DBAT3U
+#define CONFIG_SYS_DBAT3U      (CONFIG_SYS_CCSRBAR | BATU_BL_4M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      CONFIG_SYS_DBAT3U
 
 /*
  * BAT4                32M    Cache-inhibited, guarded
@@ -470,52 +470,52 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * 0xe300_0000 16M    PCI-Express 2 I/0
  *    Note that this is at 0xe0000000
  */
-#define CFG_DBAT4L     ( CFG_PCI1_IO_PHYS | BATL_PP_RW \
+#define CONFIG_SYS_DBAT4L      ( CONFIG_SYS_PCI1_IO_PHYS | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U     (CFG_PCI1_IO_PHYS | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_IBAT4L     (CFG_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT4U     CFG_DBAT4U
+#define CONFIG_SYS_DBAT4U      (CONFIG_SYS_PCI1_IO_PHYS | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_PCI1_IO_PHYS | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT4U      CONFIG_SYS_DBAT4U
 
 /*
  * BAT5                128K   Cacheable, non-guarded
  * 0xe401_0000 128K   Init RAM for stack in the CPU DCache (no backing memory)
  */
-#define CFG_DBAT5L     (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_DBAT5U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_IBAT5L     CFG_DBAT5L
-#define CFG_IBAT5U     CFG_DBAT5U
+#define CONFIG_SYS_DBAT5L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT5U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      CONFIG_SYS_DBAT5L
+#define CONFIG_SYS_IBAT5U      CONFIG_SYS_DBAT5U
 
 /*
  * BAT6                32M    Cache-inhibited, guarded
  * 0xfe00_0000 32M    FLASH
  */
-#define CFG_DBAT6L     ((CFG_FLASH_BASE & 0xfe000000) | BATL_PP_RW \
+#define CONFIG_SYS_DBAT6L      ((CONFIG_SYS_FLASH_BASE & 0xfe000000) | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT6U     ((CFG_FLASH_BASE & 0xfe000000) | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_IBAT6L     ((CFG_FLASH_BASE & 0xfe000000) | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     CFG_DBAT6U
+#define CONFIG_SYS_DBAT6U      ((CONFIG_SYS_FLASH_BASE & 0xfe000000) | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT6L      ((CONFIG_SYS_FLASH_BASE & 0xfe000000) | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      CONFIG_SYS_DBAT6U
 
-#define CFG_DBAT7L 0x00000000
-#define CFG_DBAT7U 0x00000000
-#define CFG_IBAT7L 0x00000000
-#define CFG_IBAT7U 0x00000000
+#define CONFIG_SYS_DBAT7L 0x00000000
+#define CONFIG_SYS_DBAT7U 0x00000000
+#define CONFIG_SYS_IBAT7L 0x00000000
+#define CONFIG_SYS_IBAT7U 0x00000000
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
     #define CONFIG_ENV_IS_IN_FLASH     1
-    #define CONFIG_ENV_ADDR            (CFG_MONITOR_BASE + 0x60000)
+    #define CONFIG_ENV_ADDR            (CONFIG_SYS_MONITOR_BASE + 0x60000)
     #define CONFIG_ENV_SECT_SIZE               0x10000 /* 64K(one sector) for env */
     #define CONFIG_ENV_SIZE            0x2000
 #else
     #define CONFIG_ENV_IS_NOWHERE      1       /* Store ENV in memory only */
-    #define CONFIG_ENV_ADDR            (CFG_MONITOR_BASE - 0x1000)
+    #define CONFIG_ENV_ADDR            (CONFIG_SYS_MONITOR_BASE - 0x1000)
     #define CONFIG_ENV_SIZE            0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
@@ -536,7 +536,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_REGINFO
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
 #endif
 
@@ -553,28 +553,28 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
 #define CONFIG_CMDLINE_EDITING         /* Command-line editing */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 233a8d19fa9db0d3600b66a9e9ed672d2aadf296..85c68900cecc5f7ca71733ffe7d4e5c2e9297847 100644 (file)
 
 #define CONFIG_8xx_OSCLK               10000000 /* 10MHz oscillator on EXTCLK  */
 #define CONFIG_8xx_CPUCLK_DEFAULT      50000000
-#define CFG_8xx_CPUCLK_MIN             40000000
-#define CFG_8xx_CPUCLK_MAX             80000000
+#define CONFIG_SYS_8xx_CPUCLK_MIN              40000000
+#define CONFIG_SYS_8xx_CPUCLK_MAX              80000000
 
 #define CONFIG_DRAM_50MHZ       1
 #define CONFIG_SDRAM_50MHZ      1
 
 #include "../../board/fads/fads.h"
 
-#define CFG_OR5_PRELIM         0xFFFF8110      /* 64Kbyte address space */
-#define CFG_BR5_PRELIM         (CFG_PHYDEV_ADDR | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR5_PRELIM          0xFFFF8110      /* 64Kbyte address space */
+#define CONFIG_SYS_BR5_PRELIM          (CONFIG_SYS_PHYDEV_ADDR | BR_PS_8 | BR_V)
 
 #endif /* __CONFIG_H */
index f4d1842771076e2f0d2bea2b8b17e6d1743f1906..8ffc1b2b15385225c14a0cff59fc3fedd3fb0ffd 100644 (file)
 
 #define CONFIG_8xx_OSCLK               10000000 /* 10 MHz oscillator on EXTCLK  */
 #define CONFIG_8xx_CPUCLK_DEFAULT      50000000
-#define CFG_8xx_CPUCLK_MIN             40000000
-#define CFG_8xx_CPUCLK_MAX             133000000
+#define CONFIG_SYS_8xx_CPUCLK_MIN              40000000
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000
 
 #define CONFIG_SDRAM_50MHZ      1
 
 #include "../../board/fads/fads.h"
 
-#define CFG_OR5_PRELIM         0xFFFF8110      /* 64Kbyte address space */
-#define CFG_BR5_PRELIM         (CFG_PHYDEV_ADDR | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR5_PRELIM          0xFFFF8110      /* 64Kbyte address space */
+#define CONFIG_SYS_BR5_PRELIM          (CONFIG_SYS_PHYDEV_ADDR | BR_PS_8 | BR_V)
 
 #define CONFIG_HAS_ETH1
 
index 88d807218213e11b578551d5b76c194a327658b7..ec9e1ec2f59f996ec843e2896bd39769ebac8f2d 100644 (file)
@@ -48,7 +48,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_BOOTDELAY       5
 
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                    /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#undef CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS    8               /* Max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS     8               /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
 
-#define CFG_FLASH_BASE0_PRELIM      0xFF800000      /* FLASH bank on RCS#0 */
-#define CFG_FLASH_BASE1_PRELIM      0xFF000000      /* FLASH bank on RCS#1 */
-#define CFG_FLASH_BASE  CFG_FLASH_BASE0_PRELIM
+#define CONFIG_SYS_FLASH_BASE0_PRELIM      0xFF800000      /* FLASH bank on RCS#0 */
+#define CONFIG_SYS_FLASH_BASE1_PRELIM      0xFF000000      /* FLASH bank on RCS#1 */
+#define CONFIG_SYS_FLASH_BASE  CONFIG_SYS_FLASH_BASE0_PRELIM
 
 /* even though FLASHP_BASE is FF800000, with 4MB is RCS0, the
  * reset vector is actually located at FFB00100, but the 8245
  * takes care of us.
  */
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_EUMB_ADDR      0xFC000000
+#define CONFIG_SYS_EUMB_ADDR       0xFC000000
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x02000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM          */
 
        /* Maximum amount of RAM.
         */
-#define CFG_MAX_RAM_SIZE    0x08000000 /* 0 .. 128 MB of (S)DRAM */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x08000000  /* 0 .. 128 MB of (S)DRAM */
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_NS16550_COM1       (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM2       (CFG_EUMB_ADDR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_EUMB_ADDR + 0x4600)
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
 
-/* #define CFG_MONITOR_BASE        TEXT_BASE */
-/*#define CFG_GBL_DATA_SIZE    256*/
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+/* #define CONFIG_SYS_MONITOR_BASE        TEXT_BASE */
+/*#define CONFIG_SYS_GBL_DATA_SIZE    256*/
+#define CONFIG_SYS_GBL_DATA_SIZE      128
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 
 /*
  */
 
 #define CONFIG_SYS_CLK_FREQ  33333333  /* external frequency to pll */
-#define CFG_HZ              1000
+#define CONFIG_SYS_HZ               1000
 
        /* Bit-field values for MCCR1.
         */
-#define CFG_ROMNAL         7
-#define CFG_ROMFAL         11
-#define CFG_DBUS_SIZE       0x3
+#define CONFIG_SYS_ROMNAL          7
+#define CONFIG_SYS_ROMFAL          11
+#define CONFIG_SYS_DBUS_SIZE       0x3
 
        /* Bit-field values for MCCR2.
         */
-#define CFG_TSWAIT         0x5             /* Transaction Start Wait States timer */
-#define CFG_REFINT         0x400           /* Refresh interval FIXME: was 0t430                */
+#define CONFIG_SYS_TSWAIT          0x5             /* Transaction Start Wait States timer */
+#define CONFIG_SYS_REFINT          0x400           /* Refresh interval FIXME: was 0t430                */
 
        /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
         */
-#define CFG_BSTOPRE        121
+#define CONFIG_SYS_BSTOPRE         121
 
        /* Bit-field values for MCCR3.
         */
-#define CFG_REFREC         8       /* Refresh to activate interval */
+#define CONFIG_SYS_REFREC          8       /* Refresh to activate interval */
 
        /* Bit-field values for MCCR4.
         */
-#define CFG_PRETOACT       3       /* Precharge to activate interval FIXME: was 2      */
-#define CFG_ACTTOPRE       5       /* Activate to Precharge interval FIXME: was 5      */
-#define CFG_ACTORW         3           /* FIXME was 2 */
-#define CFG_SDMODE_CAS_LAT  3      /* SDMODE CAS latancy */
-#define CFG_SDMODE_WRAP            0       /* SDMODE wrap type */
-#define CFG_REGISTERD_TYPE_BUFFER 1
-#define CFG_EXTROM         1
-#define CFG_REGDIMM        0
+#define CONFIG_SYS_PRETOACT        3       /* Precharge to activate interval FIXME: was 2      */
+#define CONFIG_SYS_ACTTOPRE        5       /* Activate to Precharge interval FIXME: was 5      */
+#define CONFIG_SYS_ACTORW          3           /* FIXME was 2 */
+#define CONFIG_SYS_SDMODE_CAS_LAT  3       /* SDMODE CAS latancy */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type */
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_EXTROM          1
+#define CONFIG_SYS_REGDIMM         0
 
-#define CFG_PGMAX           0x32 /* how long the 8240 reatins the currently accessed page in memory FIXME: was 0x32*/
+#define CONFIG_SYS_PGMAX           0x32 /* how long the 8240 reatins the currently accessed page in memory FIXME: was 0x32*/
 
-#define CFG_SDRAM_DSCD 0x20    /* SDRAM data in sample clock delay - note bottom 3 bits MUST be 0 */
+#define CONFIG_SYS_SDRAM_DSCD  0x20    /* SDRAM data in sample clock delay - note bottom 3 bits MUST be 0 */
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START            0x3ff00000
-#define CFG_BANK1_END      0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START            0x3ff00000
-#define CFG_BANK2_END      0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START            0x3ff00000
-#define CFG_BANK3_END      0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START            0x3ff00000
-#define CFG_BANK4_END      0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START            0x3ff00000
-#define CFG_BANK5_END      0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START            0x3ff00000
-#define CFG_BANK6_END      0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START            0x3ff00000
-#define CFG_BANK7_END      0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR           0xff
-
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0xff
+
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     64      /* Max number of sectors per flash      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* Max number of sectors per flash      */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
 
        /* Warining: environment is not EMBEDDED in the U-Boot code.
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
index 21475fb665b73ae4dba7d73056da4b6e150ebcbe..cd910ea051a3f5d86bfd67734d987104a07cf4b4 100644 (file)
 #define CONFIG_MPC5xxx 1
 #define CONFIG_MPC5200         1
 
-#define CFG_MPC5XXX_CLKIN      33000000
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000
 
 #define BOOTFLAG_COLD          0x01
 #define BOOTFLAG_WARM          0x02
 
 #define CONFIG_MISC_INIT_R     1
 
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #ifdef CONFIG_CMD_KGDB
-#define CFG_CACHELINE_SHIFT    5
+#define CONFIG_SYS_CACHELINE_SHIFT     5
 #endif
 
 #define CONFIG_PSC_CONSOLE     1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {9600, 19200, 38400, 57600, 115200, 230400}
+#define CONFIG_SYS_BAUDRATE_TABLE      {9600, 19200, 38400, 57600, 115200, 230400}
 
 #define CONFIG_PCI             1
 #define CONFIG_PCI_PNP         1
@@ -61,7 +61,7 @@
 #define CONFIG_PCI_IO_PHYS     CONFIG_PCI_IO_BUS
 #define CONFIG_PCI_IO_SIZE     0x01000000
 
-#define CFG_XLB_PIPELINING     1
+#define CONFIG_SYS_XLB_PIPELINING      1
 #define CONFIG_HIGH_BATS       1
 
 #define MV_CI                  mvBlueCOUGAR-P
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK
-#define CFG_PCICLK_EQUALS_IPBCLK_DIV2
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK
+#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
 
 /*
  * Flash configuration
  */
 #undef         CONFIG_FLASH_16BIT
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI_AMD_RESET 1
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
-#define CFG_FLASH_ERASE_TOUT   50000
-#define CFG_FLASH_WRITE_TOUT   1000
+#define CONFIG_SYS_FLASH_ERASE_TOUT    50000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000
 
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_MAX_FLASH_SECT     256
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      256
 
-#define CFG_LOWBOOT
-#define CFG_FLASH_BASE         TEXT_BASE
-#define CFG_FLASH_SIZE         0x00800000
+#define CONFIG_SYS_LOWBOOT
+#define CONFIG_SYS_FLASH_BASE          TEXT_BASE
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_FLASH
-#undef CFG_FLASH_PROTECTION
+#undef CONFIG_SYS_FLASH_PROTECTION
 
 #define CONFIG_ENV_ADDR                0xFFFE0000
 #define CONFIG_ENV_SIZE                0x10000
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT            1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT             1
 #endif
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (512 << 10)
-#define CFG_MALLOC_LEN         (512 << 10)
-#define CFG_BOOTMAPSZ          (8 << 20)
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (512 << 10)
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)
 
 /*
  * Ethernet configuration
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
+#define CONFIG_SYS_HUSH_PARSER
 #define CONFIG_CMDLINE_EDITING
-#define CFG_PROMPT_HUSH_PS2    "> "
-#undef         CFG_LONGHELP
-#define CFG_PROMPT             "=> "
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#undef         CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT              "=> "
 #ifdef CONFIG_CMD_KGDB
-#define CFG_CBSIZE             1024
+#define CONFIG_SYS_CBSIZE              1024
 #else
-#define CFG_CBSIZE             256
+#define CONFIG_SYS_CBSIZE              256
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16
-#define CFG_BARGSIZE           CFG_CBSIZE
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
 
-#define CFG_MEMTEST_START      0x00800000
-#define CFG_MEMTEST_END                0x02f00000
+#define CONFIG_SYS_MEMTEST_START       0x00800000
+#define CONFIG_SYS_MEMTEST_END         0x02f00000
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 /* default load address */
-#define CFG_LOAD_ADDR          0x02000000
+#define CONFIG_SYS_LOAD_ADDR           0x02000000
 /* default location for tftp and bootm */
 #define CONFIG_LOADADDR        0x00200000
 
 /*
  * Various low-level settings
  */
-#define CFG_GPS_PORT_CONFIG    0x20000004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x20000004
 
-#define CFG_HID0_INIT          (HID0_ICE | HID0_ICFI)
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           (HID0_ICE | HID0_ICFI)
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047800
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047800
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS_BURST           0x000000f0
-#define CFG_CS_DEADCYCLE       0x33333303
+#define CONFIG_SYS_CS_BURST            0x000000f0
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333303
 
-#define CFG_RESET_ADDRESS      0x00000100
+#define CONFIG_SYS_RESET_ADDRESS       0x00000100
 
 #undef FPGA_DEBUG
-#undef CFG_FPGA_PROG_FEEDBACK
-#define CONFIG_FPGA            CFG_ALTERA_CYCLON2
+#undef CONFIG_SYS_FPGA_PROG_FEEDBACK
+#define CONFIG_FPGA            CONFIG_SYS_ALTERA_CYCLON2
 #define CONFIG_FPGA_ALTERA     1
 #define CONFIG_FPGA_CYCLON2    1
 #define CONFIG_FPGA_COUNT      1
index ec36f55420cb762004b212827190e5d51ba5c9ed..bc2d8253b0f87c5d340676ec78589643dfe7f250 100644 (file)
@@ -37,7 +37,7 @@
 #define CONFIG_MPC834X 1
 #define CONFIG_MPC8343 1
 
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
 #define CONFIG_PCI
 #define CONFIG_83XX_GENERIC_PCI
 #define CONFIG_FSL_I2C
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_OFFSET         0x3000
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C_OFFSET          0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
-#define CFG_I2C_SPEED          100000
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_83XX_DDR_USES_CS0  1
-#define CFG_MEMTEST_START      (60<<20)
-#define CFG_MEMTEST_END                (70<<20)
-
-#define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
+#define CONFIG_SYS_DDR_BASE            0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_83XX_DDR_USES_CS0   1
+#define CONFIG_SYS_MEMTEST_START       (60<<20)
+#define CONFIG_SYS_MEMTEST_END         (70<<20)
+
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  (DDR_SDRAM_CLK_CNTL_SS_EN | \
                                DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
 
-#define CFG_DDR_SIZE           256
+#define CONFIG_SYS_DDR_SIZE            256
 
 /* HC, 75Ohm, DDR-II, DRQ */
-#define CFG_DDRCDR             0x80000001
+#define CONFIG_SYS_DDRCDR              0x80000001
 /* EN, ODT_WR, 3BA, 14row, 10col */
-#define CFG_DDR_CS0_CONFIG     0x80014102
-#define CFG_DDR_CS1_CONFIG     0x0
-#define CFG_DDR_CS2_CONFIG     0x0
-#define CFG_DDR_CS3_CONFIG     0x0
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80014102
+#define CONFIG_SYS_DDR_CS1_CONFIG      0x0
+#define CONFIG_SYS_DDR_CS2_CONFIG      0x0
+#define CONFIG_SYS_DDR_CS3_CONFIG      0x0
 
-#define CFG_DDR_CS0_BNDS       0x0000000f
-#define CFG_DDR_CS1_BNDS       0x0
-#define CFG_DDR_CS2_BNDS       0x0
-#define CFG_DDR_CS3_BNDS       0x0
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000f
+#define CONFIG_SYS_DDR_CS1_BNDS        0x0
+#define CONFIG_SYS_DDR_CS2_BNDS        0x0
+#define CONFIG_SYS_DDR_CS3_BNDS        0x0
 
-#define CFG_DDR_CLK_CNTL       0x02000000
+#define CONFIG_SYS_DDR_CLK_CNTL        0x02000000
 
-#define CFG_DDR_TIMING_0       0x00260802
-#define CFG_DDR_TIMING_1       0x2625b221
-#define CFG_DDR_TIMING_2       0x1f9820c7
-#define CFG_DDR_TIMING_3       0x00000000
+#define CONFIG_SYS_DDR_TIMING_0        0x00260802
+#define CONFIG_SYS_DDR_TIMING_1        0x2625b221
+#define CONFIG_SYS_DDR_TIMING_2        0x1f9820c7
+#define CONFIG_SYS_DDR_TIMING_3        0x00000000
 
 /* ~MEM_EN, SREN, DDR-II, 32_BE */
-#define CFG_DDR_SDRAM_CFG      0x43080000
-#define CFG_DDR_SDRAM_CFG2     0x00401000
-#define CFG_DDR_INTERVAL       0x04060100
+#define CONFIG_SYS_DDR_SDRAM_CFG       0x43080000
+#define CONFIG_SYS_DDR_SDRAM_CFG2      0x00401000
+#define CONFIG_SYS_DDR_INTERVAL        0x04060100
 
-#define CFG_DDR_MODE           0x078e0232
+#define CONFIG_SYS_DDR_MODE            0x078e0232
 
 /* Flash */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT
-
-#define CFG_FLASH_BASE         0xFF800000
-#define CFG_FLASH_SIZE         8
-#define CFG_FLASH_SIZE_SHIFT   3
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_ERASE_TOUT   60000
-#define CFG_FLASH_WRITE_TOUT   500
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_MAX_FLASH_SECT     256
-
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BR_PS_16 | BR_V)
-#define CFG_OR0_PRELIM         ((~(CFG_FLASH_SIZE - 1) << 20) | OR_UPM_XAM |  \
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT
+
+#define CONFIG_SYS_FLASH_BASE          0xFF800000
+#define CONFIG_SYS_FLASH_SIZE          8
+#define CONFIG_SYS_FLASH_SIZE_SHIFT    3
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      256
+
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR0_PRELIM          ((~(CONFIG_SYS_FLASH_SIZE - 1) << 20) | OR_UPM_XAM |  \
                                OR_GPCM_CSNT | OR_GPCM_ACS_DIV2 | OR_GPCM_XACS|\
                                OR_GPCM_SCY_15 | OR_GPCM_TRLX | OR_GPCM_EHTR | \
                                OR_GPCM_EAD)
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE
-#define CFG_LBLAWAR0_PRELIM    (LBLAWAR_EN | (0x13 + CFG_FLASH_SIZE_SHIFT))
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_LBLAWAR0_PRELIM     (LBLAWAR_EN | (0x13 + CONFIG_SYS_FLASH_SIZE_SHIFT))
 
 /*
  * U-Boot memory configuration
  */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#undef CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0xFD000000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000          /* End of used area in RAM*/
+#define CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0xFD000000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000          /* End of used area in RAM*/
 
-#define CFG_GBL_DATA_SIZE      0x100           /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100           /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-/* CFG_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
-#define CFG_MONITOR_LEN                (512 * 1024)
-#define CFG_MALLOC_LEN         (512 * 1024)
+/* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024)
 
 /*
  * Local Bus LCRR and LBCR regs
  * External Local Bus rate is
  *  CLKIN * HRCWL_CSB_TO_CLKIN / HRCWL_LCL_BUS_TO_SCB_CLK / LCRR_CLKDIV
  */
-#define CFG_LCRR       (LCRR_DBYP | LCRR_CLKDIV_4)
-#define CFG_LBC_LBCR   0x00000000
+#define CONFIG_SYS_LCRR        (LCRR_DBYP | LCRR_CLKDIV_4)
+#define CONFIG_SYS_LBC_LBCR    0x00000000
 
 /* LB sdram refresh timer, about 6us */
-#define CFG_LBC_LSRT   0x32000000
+#define CONFIG_SYS_LBC_LSRT    0x32000000
 /* LB refresh timer prescal, 266MHz/32*/
-#define CFG_LBC_MRTPR  0x20000000
+#define CONFIG_SYS_LBC_MRTPR   0x20000000
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
 #define CONFIG_CONSOLE         ttyS0
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_NS16550_COM1       (CFG_IMMR + 0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR + 0x4600)
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_LIBFDT               1
 /*
  * PCI
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000
-#define CFG_PCI1_MMIO_BASE     (CFG_PCI1_MEM_BASE + CFG_PCI1_MEM_SIZE)
-#define CFG_PCI1_MMIO_PHYS     CFG_PCI1_MMIO_BASE
-#define CFG_PCI1_MMIO_SIZE     0x10000000
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xE2000000
-#define CFG_PCI1_IO_SIZE       0x01000000
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000
+#define CONFIG_SYS_PCI1_MMIO_BASE      (CONFIG_SYS_PCI1_MEM_BASE + CONFIG_SYS_PCI1_MEM_SIZE)
+#define CONFIG_SYS_PCI1_MMIO_PHYS      CONFIG_SYS_PCI1_MMIO_BASE
+#define CONFIG_SYS_PCI1_MMIO_SIZE      0x10000000
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xE2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x01000000
 
 #define _IO_BASE               0x00000000
 
 
 /* TSEC */
 #define CONFIG_GMII
-#define CFG_VSC8601_SKEWFIX
-#define        CFG_VSC8601_SKEW_TX     3
-#define        CFG_VSC8601_SKEW_RX     3
+#define CONFIG_SYS_VSC8601_SKEWFIX
+#define        CONFIG_SYS_VSC8601_SKEW_TX      3
+#define        CONFIG_SYS_VSC8601_SKEW_RX      3
 
 #define CONFIG_TSEC1
 #define CONFIG_TSEC2
 #define CONFIG_HAS_ETH0
 #define CONFIG_TSEC1_NAME      "TSEC0"
 #define CONFIG_FEC1_PHY_NORXERR
-#define CFG_TSEC1_OFFSET       0x24000
-#define CFG_TSEC1              (CFG_IMMR+CFG_TSEC1_OFFSET)
+#define CONFIG_SYS_TSEC1_OFFSET        0x24000
+#define CONFIG_SYS_TSEC1               (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC1_OFFSET)
 #define TSEC1_PHY_ADDR         0x10
 #define TSEC1_PHYIDX           0
 #define TSEC1_FLAGS            (TSEC_GIGABIT|TSEC_REDUCED)
 #define CONFIG_HAS_ETH1
 #define CONFIG_TSEC2_NAME      "TSEC1"
 #define CONFIG_FEC2_PHY_NORXERR
-#define CFG_TSEC2_OFFSET       0x25000
-#define CFG_TSEC2              (CFG_IMMR+CFG_TSEC2_OFFSET)
+#define CONFIG_SYS_TSEC2_OFFSET        0x25000
+#define CONFIG_SYS_TSEC2               (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC2_OFFSET)
 #define TSEC2_PHY_ADDR         0x11
 #define TSEC2_PHYIDX           0
 #define TSEC2_FLAGS            (TSEC_GIGABIT|TSEC_REDUCED)
 /*
  * Environment
  */
-#undef  CFG_FLASH_PROTECTION
+#undef  CONFIG_SYS_FLASH_PROTECTION
 #define CONFIG_ENV_OVERWRITE
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE_REDUND         CONFIG_ENV_SIZE
 
 #define CONFIG_LOADS_ECHO
-#define CFG_LOADS_BAUD_CHANGE
+#define CONFIG_SYS_LOADS_BAUD_CHANGE
 
 /*
  * Command line configuration.
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 #define CONFIG_CMDLINE_EDITING
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 
 /* default load address */
-#define CFG_LOAD_ADDR  0x2000000
+#define CONFIG_SYS_LOAD_ADDR   0x2000000
 /* default location for tftp and bootm */
 #define CONFIG_LOADADDR        0x200000
 
-#define CFG_PROMPT     "mvBL-M7> "
-#define CFG_CBSIZE     256
+#define CONFIG_SYS_PROMPT      "mvBL-M7> "
+#define CONFIG_SYS_CBSIZE      256
 
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS    16
-#define CFG_BARGSIZE   CFG_CBSIZE
-#define CFG_HZ         1000
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS     16
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE
+#define CONFIG_SYS_HZ          1000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
-#define CFG_HRCW_LOW   0x0
-#define CFG_HRCW_HIGH  0x0
+#define CONFIG_SYS_HRCW_LOW    0x0
+#define CONFIG_SYS_HRCW_HIGH   0x0
 
 /*
  * System performance
  */
-#define CFG_ACR_PIPE_DEP       3       /* Arbiter pipeline depth (0-3) */
-#define CFG_ACR_RPTCNT         3       /* Arbiter repeat count (0-7) */
-#define CFG_SPCR_TSEC1EP       3       /* TSEC1 emergency priority (0-3) */
-#define CFG_SPCR_TSEC2EP       3       /* TSEC2 emergency priority (0-3) */
+#define CONFIG_SYS_ACR_PIPE_DEP        3       /* Arbiter pipeline depth (0-3) */
+#define CONFIG_SYS_ACR_RPTCNT          3       /* Arbiter repeat count (0-7) */
+#define CONFIG_SYS_SPCR_TSEC1EP        3       /* TSEC1 emergency priority (0-3) */
+#define CONFIG_SYS_SPCR_TSEC2EP        3       /* TSEC2 emergency priority (0-3) */
 
 /* clocking */
-#define CFG_SCCR_ENCCM         0
-#define CFG_SCCR_USBMPHCM      0
-#define        CFG_SCCR_USBDRCM        2
-#define CFG_SCCR_TSEC1CM       1
-#define CFG_SCCR_TSEC2CM       1
+#define CONFIG_SYS_SCCR_ENCCM          0
+#define CONFIG_SYS_SCCR_USBMPHCM       0
+#define        CONFIG_SYS_SCCR_USBDRCM 2
+#define CONFIG_SYS_SCCR_TSEC1CM        1
+#define CONFIG_SYS_SCCR_TSEC2CM        1
 
-#define CFG_SICRH      0x1fff8003
-#define CFG_SICRL      (SICRL_LDP_A | SICRL_USB1 | SICRL_USB0)
+#define CONFIG_SYS_SICRH       0x1fff8003
+#define CONFIG_SYS_SICRL       (SICRL_LDP_A | SICRL_USB1 | SICRL_USB0)
 
-#define CFG_HID0_INIT  0x000000000
-#define CFG_HID0_FINAL CFG_HID0_INIT
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  CONFIG_SYS_HID0_INIT
 
-#define CFG_HID2       HID2_HBE
+#define CONFIG_SYS_HID2        HID2_HBE
 #define CONFIG_HIGH_BATS       1
 
 /* DDR  */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* PCI  */
-#define CFG_IBAT1L     (CFG_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT |\
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT |\
                                BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* no PCI2 */
-#define CFG_IBAT3L     0
-#define CFG_IBAT3U     0
-#define CFG_IBAT4L     0
-#define CFG_IBAT4U     0
+#define CONFIG_SYS_IBAT3L      0
+#define CONFIG_SYS_IBAT3U      0
+#define CONFIG_SYS_IBAT4L      0
+#define CONFIG_SYS_IBAT4U      0
 
 /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 & BCSR @ 0xE2400000 */
-#define CFG_IBAT5L     (CFG_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | \
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | \
                                BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE 0xFDF00000 & FLASH @ 0xFF800000 */
-#define CFG_IBAT6L     (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT7L     0
-#define CFG_IBAT7U     0
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT7L      0
+#define CONFIG_SYS_IBAT7U      0
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
        ""
 
 #define CONFIG_FPGA_COUNT      1
-#define CONFIG_FPGA            CFG_ALTERA_CYCLON2
+#define CONFIG_FPGA            CONFIG_SYS_ALTERA_CYCLON2
 #define CONFIG_FPGA_ALTERA
 #define CONFIG_FPGA_CYCLON2
 
index 2518dbe30e9b928a87a491f4ef0d18a2c2e00fb5..31b9f038b52379db2241b472deba48bd778a8553 100644 (file)
@@ -63,7 +63,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_BOOT_RETRY_TIME -1
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS    16              /* Max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address                 */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS     16              /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address                 */
 
 #define CONFIG_BOOTCOMMAND     "run nfsboot"
 #define CONFIG_BOOTARGS                        "root=/dev/mtdblock5 ro rootfstype=jffs2"
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
 
-#define CFG_FLASH_BASE      0xFFF00000
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_FLASH_BASE      0xFFF00000
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_RESET_ADDRESS   0xFFF00100
-#define CFG_EUMB_ADDR      0xFC000000
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_EUMB_ADDR       0xFC000000
 
-#define CFG_MONITOR_LEN     0x00100000
-#define CFG_MALLOC_LEN      (512 << 10) /* Reserve some kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN     0x00100000
+#define CONFIG_SYS_MALLOC_LEN      (512 << 10) /* Reserve some kB for malloc()  */
 
-#define CFG_MEMTEST_START   0x00100000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x00800000  /* 1M ... 8M in DRAM            */
+#define CONFIG_SYS_MEMTEST_START   0x00100000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x00800000  /* 1M ... 8M in DRAM            */
 
 /* Maximum amount of RAM.  */
-#define CFG_MAX_RAM_SIZE    0x10000000 /* 0 .. 256MB of (S)DRAM */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x10000000  /* 0 .. 256MB of (S)DRAM */
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_ISA_IO      0xFE000000
+#define CONFIG_SYS_ISA_IO      0xFE000000
 
 /*
  * serial configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK     get_bus_freq(0)
+#define CONFIG_SYS_NS16550_CLK     get_bus_freq(0)
 
-#define CFG_NS16550_COM1    (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM2    (CFG_EUMB_ADDR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1    (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2    (CONFIG_SYS_EUMB_ADDR + 0x4600)
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_SIZE     128
-#define CFG_GBL_DATA_OFFSET   (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE     128
+#define CONFIG_SYS_GBL_DATA_OFFSET   (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Low Level Configuration Settings
  */
 
 #define CONFIG_SYS_CLK_FREQ  33000000
-#define CFG_HZ                  10000
+#define CONFIG_SYS_HZ                   10000
 
 /* Bit-field values for MCCR1.  */
-#define CFG_ROMNAL      7
-#define CFG_ROMFAL      11
+#define CONFIG_SYS_ROMNAL      7
+#define CONFIG_SYS_ROMFAL      11
 
 /* Bit-field values for MCCR2.  */
-#define CFG_TSWAIT      0x5
-#define CFG_REFINT      430
+#define CONFIG_SYS_TSWAIT      0x5
+#define CONFIG_SYS_REFINT      430
 
 /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.  */
-#define CFG_BSTOPRE     121
+#define CONFIG_SYS_BSTOPRE     121
 
 /* Bit-field values for MCCR3.  */
-#define CFG_REFREC      8
+#define CONFIG_SYS_REFREC      8
 
 /* Bit-field values for MCCR4.  */
-#define CFG_PRETOACT    3
-#define CFG_ACTTOPRE    5
-#define CFG_ACTORW      3
-#define CFG_SDMODE_CAS_LAT  3
-#define CFG_REGISTERD_TYPE_BUFFER 1
-#define CFG_EXTROM      1
-#define CFG_REGDIMM     0
-#define CFG_DBUS_SIZE2  1
-#define CFG_SDMODE_WRAP 0
-
-#define CFG_PGMAX       0x32
-#define CFG_SDRAM_DSCD  0x20
+#define CONFIG_SYS_PRETOACT    3
+#define CONFIG_SYS_ACTTOPRE    5
+#define CONFIG_SYS_ACTORW      3
+#define CONFIG_SYS_SDMODE_CAS_LAT  3
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_EXTROM      1
+#define CONFIG_SYS_REGDIMM     0
+#define CONFIG_SYS_DBUS_SIZE2  1
+#define CONFIG_SYS_SDMODE_WRAP 0
+
+#define CONFIG_SYS_PGMAX       0x32
+#define CONFIG_SYS_SDRAM_DSCD  0x20
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START     0x3ff00000
-#define CFG_BANK1_END       0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START     0x3ff00000
-#define CFG_BANK2_END       0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START     0x3ff00000
-#define CFG_BANK3_END       0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START     0x3ff00000
-#define CFG_BANK4_END       0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START     0x3ff00000
-#define CFG_BANK5_END       0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START     0x3ff00000
-#define CFG_BANK6_END       0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START     0x3ff00000
-#define CFG_BANK7_END       0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR           0xff
-
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0xff
+
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#undef  CFG_FLASH_PROTECTION
-#define CFG_MAX_FLASH_BANKS            1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT             63      /* Max number of sectors per flash      */
+#undef  CONFIG_SYS_FLASH_PROTECTION
+#define CONFIG_SYS_MAX_FLASH_BANKS             1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT              63      /* Max number of sectors per flash      */
 
-#define CFG_FLASH_ERASE_TOUT   12000
-#define CFG_FLASH_WRITE_TOUT   1000
+#define CONFIG_SYS_FLASH_ERASE_TOUT    12000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000
 
 
 #define CONFIG_ENV_IS_IN_FLASH
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value        */
 #endif
 
 /*
index da8231c2bffbd6b2203f290fcd9ac7d88e6c3b88..b0361279788978b82dcf3d8e15da0cce208845bc 100644 (file)
@@ -58,7 +58,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #define        CONFIG_WATCHDOG                 /* watchdog disabled/enabled    */
 
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#undef CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* Hush parse for U-Boot ?? */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* Hush parse for U-Boot ?? */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 
-#define        CFG_MONITOR_LEN         (128 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (128 << 10)     /* Reserve 192 kB for Monitor   */
 
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip (for AMD320DB chip)        */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip (for AMD320DB chip)        */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR   (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR   (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
             SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR   (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR   (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR  (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR  (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit
  *
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         0       /* max. no. of IDE buses                        */
-#define CFG_IDE_MAXDEVICE      0       /* max. no. of drives per IDE bus       */
+#define CONFIG_SYS_IDE_MAXBUS          0       /* max. no. of IDE buses                        */
+#define CONFIG_SYS_IDE_MAXDEVICE       0       /* max. no. of drives per IDE bus       */
 
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 
 /*
  * FLASH timing:
  */
 /* 50 MHz CPU - 50 MHz bus: ACS = 00, TRLX = 1, CSNT = 1, SCY = 2, EHTR = 1 */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_2_CLK | OR_EHTR | OR_BI)
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
 /*
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
                                 OR_SCY_5_CLK | OR_EHTR)
 */
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
 #ifdef CONFIG_MVS_16BIT_FLASH
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 #else
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V )
 #endif
 
-#undef CFG_OR1_REMAP
-#undef CFG_OR1_PRELIM
-#undef CFG_BR1_PRELIM
+#undef CONFIG_SYS_OR1_REMAP
+#undef CONFIG_SYS_OR1_PRELIM
+#undef CONFIG_SYS_BR1_PRELIM
 /*
  * BR2/3 and OR2/3 (SDRAM)
  *
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
-#undef CFG_OR3_PRELIM
-#undef CFG_BR3_PRELIM
+#undef CONFIG_SYS_OR3_PRELIM
+#undef CONFIG_SYS_BR3_PRELIM
 
 
 /*
  * 66 Mhz => 66.000.000 / Divider = 129
  * 80 Mhz => 80.000.000 / Divider = 156
  */
-#define CFG_MAMR_PTA            98
+#define CONFIG_SYS_MAMR_PTA             98
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A7 |    \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 7d90e1674a626321017987b1f88cb15cae6f0806..e171f76b5a9835431e7cc56b70f5a3bb20cac12f 100644 (file)
 #define MIGO_R_FLASH_BASE_1    (0xA0000000)
 #define MIGO_R_FLASH_BANK_SIZE (64 * 1024 * 1024)
 
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Buffer size for input from the Console */
-#define CFG_PBSIZE             256             /* Buffer size for Console output */
-#define CFG_MAXARGS            16              /* max args accepted for monitor commands */
-#define CFG_BARGSIZE   512             /* Buffer size for Boot Arguments passed to kernel */
-#define CFG_BAUDRATE_TABLE     { 115200 }      /* List of legal baudrate settings for this board */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Buffer size for input from the Console */
+#define CONFIG_SYS_PBSIZE              256             /* Buffer size for Console output */
+#define CONFIG_SYS_MAXARGS             16              /* max args accepted for monitor commands */
+#define CONFIG_SYS_BARGSIZE    512             /* Buffer size for Boot Arguments passed to kernel */
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }      /* List of legal baudrate settings for this board */
 
 /* SCIF */
 #define CONFIG_SCIF_CONSOLE    1
 #define CONFIG_CONS_SCIF0      1
-#undef  CFG_CONSOLE_INFO_QUIET /* Suppress display of console
+#undef  CONFIG_SYS_CONSOLE_INFO_QUIET  /* Suppress display of console
                                                                   information at boot */
-#undef  CFG_CONSOLE_OVERWRITE_ROUTINE
-#undef  CFG_CONSOLE_ENV_OVERWRITE
+#undef  CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#undef  CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 
-#define CFG_MEMTEST_START      (MIGO_R_SDRAM_BASE)
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + (60 * 1024 * 1024))
+#define CONFIG_SYS_MEMTEST_START       (MIGO_R_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
 
 /* Enable alternate, more extensive, memory test */
-#undef  CFG_ALT_MEMTEST
+#undef  CONFIG_SYS_ALT_MEMTEST
 /* Scratch address used by the alternate memory test */
-#undef  CFG_MEMTEST_SCRATCH
+#undef  CONFIG_SYS_MEMTEST_SCRATCH
 
 /* Enable temporary baudrate change while serial download */
-#undef  CFG_LOADS_BAUD_CHANGE
+#undef  CONFIG_SYS_LOADS_BAUD_CHANGE
 
-#define CFG_SDRAM_BASE (MIGO_R_SDRAM_BASE)
+#define CONFIG_SYS_SDRAM_BASE  (MIGO_R_SDRAM_BASE)
 /* maybe more, but if so u-boot doesn't know about it... */
-#define CFG_SDRAM_SIZE (64 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_SIZE  (64 * 1024 * 1024)
 /* default load address for scripts ?!? */
-#define CFG_LOAD_ADDR  (CFG_SDRAM_BASE + 16 * 1024 * 1024)
+#define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024)
 
 /* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */
-#define CFG_MONITOR_BASE       (MIGO_R_FLASH_BASE_1)
+#define CONFIG_SYS_MONITOR_BASE        (MIGO_R_FLASH_BASE_1)
 /* Monitor size */
-#define CFG_MONITOR_LEN        (128 * 1024)
+#define CONFIG_SYS_MONITOR_LEN (128 * 1024)
 /* Size of DRAM reserved for malloc() use */
-#define CFG_MALLOC_LEN (256 * 1024)
+#define CONFIG_SYS_MALLOC_LEN  (256 * 1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE      (256)
-#define CFG_BOOTMAPSZ  (8 * 1024 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)
+#define CONFIG_SYS_BOOTMAPSZ   (8 * 1024 * 1024)
 
 /* FLASH */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#undef  CFG_FLASH_QUIET_TEST
+#undef  CONFIG_SYS_FLASH_QUIET_TEST
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 /* Physical start address of Flash memory */
-#define CFG_FLASH_BASE (MIGO_R_FLASH_BASE_1)
+#define CONFIG_SYS_FLASH_BASE  (MIGO_R_FLASH_BASE_1)
 /* Max number of sectors on each Flash chip */
-#define CFG_MAX_FLASH_SECT     512
+#define CONFIG_SYS_MAX_FLASH_SECT      512
 
 /* if you use all NOR Flash , you change dip-switch. Please see MIGO_R01 Manual. */
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE + (0 * MIGO_R_FLASH_BANK_SIZE) }
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE + (0 * MIGO_R_FLASH_BANK_SIZE) }
 
 /* Timeout for Flash erase operations (in ms) */
-#define CFG_FLASH_ERASE_TOUT   (3 * 1000)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (3 * 1000)
 /* Timeout for Flash write operations (in ms) */
-#define CFG_FLASH_WRITE_TOUT   (3 * 1000)
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (3 * 1000)
 /* Timeout for Flash set sector lock bit operations (in ms) */
-#define CFG_FLASH_LOCK_TOUT    (3 * 1000)
+#define CONFIG_SYS_FLASH_LOCK_TOUT     (3 * 1000)
 /* Timeout for Flash clear lock bit operations (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  (3 * 1000)
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   (3 * 1000)
 
 /* Use hardware flash sectors protection instead of U-Boot software protection */
-#undef  CFG_FLASH_PROTECTION
-#undef  CFG_DIRECT_FLASH_TFTP
+#undef  CONFIG_SYS_FLASH_PROTECTION
+#undef  CONFIG_SYS_DIRECT_FLASH_TFTP
 
 /* ENV setting */
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_OVERWRITE   1
 #define CONFIG_ENV_SECT_SIZE   (128 * 1024)
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN)
-/* Offset of env Flash sector relative to CFG_FLASH_BASE */
-#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
+/* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
+#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
 
 /* Board Clock */
 #define CONFIG_SYS_CLK_FREQ    33333333
 #define TMU_CLK_DIVIDER                (4)     /* 4 (default), 16, 64, 256 or 1024 */
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 #endif /* __MIGO_R_H */
index 3e64a7ef8e51e46822a7a8861259707cad1994f8..423ca71c814c6c2d65e3639b1eb209f87342a818 100644 (file)
 /*
  * 15 MHz - CPU minimum clock
  */
-#define CFG_8xx_CPUCLK_MIN             15000000
+#define CONFIG_SYS_8xx_CPUCLK_MIN              15000000
 
 /*
  * 133 MHz - CPU maximum clock
  */
-#define CFG_8xx_CPUCLK_MAX             133000000
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000
 
-#define CFG_MEASURE_CPUCLK
-#define CFG_8XX_XIN                    CONFIG_8xx_OSCLK
+#define CONFIG_SYS_MEASURE_CPUCLK
+#define CONFIG_SYS_8XX_XIN                     CONFIG_8xx_OSCLK
 
 #define CONFIG_BOOTDELAY               5       /* autoboot after 5 seconds     */
 #define CONFIG_AUTOBOOT_KEYED
 #define        CONFIG_FEC_ENET         1       /* use FEC ethernet  */
 #define FEC_ENET
 #define CONFIG_MII
-#define CFG_DISCOVER_PHY       1
+#define CONFIG_SYS_DISCOVER_PHY        1
 
 
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          100000  /* 100 kHz                      */
-#define CFG_I2C_SLAVE          0x7f
+#define CONFIG_SYS_I2C_SPEED           100000  /* 100 kHz                      */
+#define CONFIG_SYS_I2C_SLAVE           0x7f
 
 /*
  * Software (bit-bang) I2C driver configuration
 #define        I2C_TRISTATE    { __I2C_DIR &= ~SDA; }
 
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0400000       /* 1 ... 4 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0400000       /* 1 ... 4 MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR                0xF0000000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*
  * NAND flash support
  */
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                                   11-6
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00     | SCCR_DFSYNC00 | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00     | SCCR_DFSYNC00 | \
                         SCCR_DFBRG00   | SCCR_DFNL000  | SCCR_DFNH000  | \
                         SCCR_DFLCD000  | SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /*
  * Init Memory Controller:
 
 #define FLASH_BASE0_PRELIM     0x40000000      /* FLASH bank #0        */
 
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: Default value of OR0 after reset */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_MSK | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_MSK | OR_BI | \
                                 OR_SCY_15_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V)
 
 /*
  * BR2 and OR2 (NAND Flash) - addressed through UPMB on rev 1
  * rev2 only uses the chipselect
  */
-#define CFG_NAND_BASE          0x50000000
-#define CFG_NAND_SIZE          0x04000000
+#define CONFIG_SYS_NAND_BASE           0x50000000
+#define CONFIG_SYS_NAND_SIZE           0x04000000
 
-#define CFG_OR_TIMING_NAND     (OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_NAND      (OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
                                 OR_SCY_15_CLK | OR_EHTR | OR_TRLX)
 
-#define CFG_BR2_PRELIM  ((CFG_NAND_BASE & BR_BA_MSK) | BR_PS_8 | BR_MS_UPMB | BR_V  )
-#define CFG_OR2_PRELIM  (((-CFG_NAND_SIZE) & OR_AM_MSK) | OR_BI )
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_NAND_BASE & BR_BA_MSK) | BR_PS_8 | BR_MS_UPMB | BR_V  )
+#define CONFIG_SYS_OR2_PRELIM  (((-CONFIG_SYS_NAND_SIZE) & OR_AM_MSK) | OR_BI )
 
 /*
  * BR3 and OR3 (SDRAM)
  /*
   * SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)
   */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR3_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM)
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V)
+#define CONFIG_SYS_OR3_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V)
 
 /*
  * BR4 and OR4 (CPLD)
  */
-#define CFG_CPLD_BASE           0x80000000      /* CPLD                 */
-#define CFG_CPLD_SIZE           0x10000         /* only 16 used         */
+#define CONFIG_SYS_CPLD_BASE           0x80000000      /* CPLD                 */
+#define CONFIG_SYS_CPLD_SIZE           0x10000         /* only 16 used         */
 
-#define CFG_OR_TIMING_CPLD     (OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_CPLD      (OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
                                 OR_SCY_1_CLK)
 
-#define CFG_BR4_PRELIM  ((CFG_CPLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
-#define CFG_OR4_PRELIM  (((-CFG_CPLD_SIZE) & OR_AM_MSK) | CFG_OR_TIMING_CPLD)
+#define CONFIG_SYS_BR4_PRELIM  ((CONFIG_SYS_CPLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR4_PRELIM  (((-CONFIG_SYS_CPLD_SIZE) & OR_AM_MSK) | CONFIG_SYS_OR_TIMING_CPLD)
 
 /*
  * BR5 and OR5 (SRAM)
  */
-#define CFG_SRAM_BASE          0x60000000
-#define CFG_SRAM_SIZE          0x00080000
+#define CONFIG_SYS_SRAM_BASE           0x60000000
+#define CONFIG_SYS_SRAM_SIZE           0x00080000
 
-#define CFG_OR_TIMING_SRAM     (OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_SRAM      (OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
                                 OR_SCY_15_CLK | OR_EHTR | OR_TRLX)
 
-#define CFG_BR5_PRELIM  ((CFG_SRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
-#define CFG_OR5_PRELIM  (((-CFG_SRAM_SIZE) & OR_AM_MSK) | CFG_OR_TIMING_SRAM)
+#define CONFIG_SYS_BR5_PRELIM  ((CONFIG_SYS_SRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR5_PRELIM  (((-CONFIG_SYS_SRAM_SIZE) & OR_AM_MSK) | CONFIG_SYS_OR_TIMING_SRAM)
 
 #if defined(CONFIG_CP850)
 /*
  *  BR6 and OR6 (DPRAM) - only on CP850
  */
-#define CFG_OR6_PRELIM          0xffff8170
-#define CFG_BR6_PRELIM          0xa0000401
+#define CONFIG_SYS_OR6_PRELIM          0xffff8170
+#define CONFIG_SYS_BR6_PRELIM          0xa0000401
 #define DPRAM_BASE_ADDR         0xa0000000
 
 #define CONFIG_MISC_INIT_R      1
  * 4    Number of refresh cycles per period
  * 64   Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK                ((4096 * 64 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK         ((4096 * 64 * 1000) / (4 * 64))
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA           39
+#define CONFIG_SYS_MAMR_PTA            39
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 | \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 | \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
  * MBMR settings for NAND flash
  */
 
-#define CFG_MBMR_NAND ( MBMR_WLFB_5X )
+#define CONFIG_SYS_MBMR_NAND ( MBMR_WLFB_5X )
 
 /*
  * Internal Definitions
index 7cc6364bda2999c55ff3c7ec53db42e1905e9d1e..a147aff40714a658c2bad6f2e7b5c51ff1bda7ef 100644 (file)
@@ -73,7 +73,7 @@
 
 #define CONFIG_AUTOSCRIPT
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
@@ -99,7 +99,7 @@
 
 #define        CONFIG_NET_MULTI        1       /* the only way to get the FEC in */
 #define        FEC_ENET                1       /* eth.c needs it that way... */
-#undef CFG_DISCOVER_PHY
+#undef CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII             1
 #define CONFIG_MII_INIT                1
 #define CONFIG_RMII            1       /* use RMII interface */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER        1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER 1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0300000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0700000       /* 3 ... 7 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0300000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0700000       /* 3 ... 7 MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 #if CONFIG_NETPHONE_VERSION == 2
-#define CFG_FLASH_BASE4                0x40080000
+#define CONFIG_SYS_FLASH_BASE4         0x40080000
 #endif
 
-#define CFG_RESET_ADDRESS   0x80000000
+#define CONFIG_SYS_RESET_ADDRESS   0x80000000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 #if CONFIG_NETPHONE_VERSION == 1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
 #elif CONFIG_NETPHONE_VERSION == 2
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
 #endif
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   0x10000
 
-#define        CONFIG_ENV_ADDR         (CFG_FLASH_BASE + 0x60000)
+#define        CONFIG_ENV_ADDR         (CONFIG_SYS_FLASH_BASE + 0x60000)
 #define CONFIG_ENV_OFFSET              0
 #define        CONFIG_ENV_SIZE         0x4000
 
-#define CONFIG_ENV_ADDR_REDUND (CFG_FLASH_BASE + 0x70000)
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + 0x70000)
 #define CONFIG_ENV_OFFSET_REDUND       0
 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
 #if CONFIG_XIN == 10000000
 
 #if MPC8XX_HZ == 120000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (12 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 100000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (10 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 50000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (3 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 25000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (2 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (3 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 40000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (4 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 75000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (15 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #else
 #elif CONFIG_XIN == 50000000
 
 #if MPC8XX_HZ == 120000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (12 << PLPRCR_MFI_SHIFT) | (4 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 100000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (6 << PLPRCR_MFI_SHIFT) | (2 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ ==  66666666
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (2 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #else
 
 #define SCCR_MASK      SCCR_EBDF11
 #if MPC8XX_HZ > 66666666
-#define CFG_SCCR       (/* SCCR_TBS    | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS    | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00 | SCCR_EBDF01)
 #else
-#define CFG_SCCR       (/* SCCR_TBS    | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS    | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 #if CONFIG_NETPHONE_VERSION == 2
 
 #define FLASH_BASE4_PRELIM     0x40080000      /* FLASH bank #1        */
 
-#define CFG_OR4_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR4_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR4_PRELIM ((FLASH_BASE4_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR4_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR4_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR4_PRELIM  ((FLASH_BASE4_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 #endif
 
 #define        SDRAM_MAX_SIZE          (256 << 20)     /* max 256MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    (OR_CSNT_SAM | OR_G5LS)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_CSNT_SAM | OR_G5LS)
 
-#define CFG_OR3_PRELIM ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CFG_OR_TIMING_SDRAM)
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_PS_32 | BR_V)
+#define CONFIG_SYS_OR3_PRELIM  ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_PS_32 | BR_V)
 
 /*
  * Memory Periodic Timer Prescaler
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_MAMR_PTA            234
+#define CONFIG_SYS_MAMR_PTA             234
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 
 /* NAND */
 #define CONFIG_NAND_LEGACY
-#define CFG_NAND_BASE          NAND_BASE
+#define CONFIG_SYS_NAND_BASE           NAND_BASE
 #define CONFIG_MTD_NAND_ECC_JFFS2
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 #define CONFIG_MTD_NAND_UNSAFE
 
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 
 #define SECTORSIZE             512
 #define ADDR_COLUMN            1
 /* ALE = PD17, CLE = PE18, CE = PE20, F_RY_BY = PE31 */
 #define NAND_DISABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 20)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 20)); \
        } while(0)
 
 #define NAND_ENABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 20)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 20)); \
        } while(0)
 
 #define NAND_CTL_CLRALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 17)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 17)); \
        } while(0)
 
 #define NAND_CTL_SETALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 17)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 17)); \
        } while(0)
 
 #define NAND_CTL_CLRCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 18)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 18)); \
        } while(0)
 
 #define NAND_CTL_SETCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 18)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 18)); \
        } while(0)
 
 #if CONFIG_NETPHONE_VERSION == 1
 #define NAND_WAIT_READY(nand) \
        do { \
                int _tries = 0; \
-               while ((((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat & (1 << (31 - 31))) == 0) \
+               while ((((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat & (1 << (31 - 31))) == 0) \
                        if (++_tries > 100000) \
                                break; \
        } while (0)
 #define NAND_WAIT_READY(nand) \
        do { \
                int _tries = 0; \
-               while ((((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat & (1 << (15 - 15))) == 0) \
+               while ((((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat & (1 << (15 - 15))) == 0) \
                        if (++_tries > 100000) \
                                break; \
        } while (0)
 
 /*****************************************************************************/
 
-#define CFG_DIRECT_FLASH_TFTP
-#define CFG_DIRECT_NAND_TFTP
+#define CONFIG_SYS_DIRECT_FLASH_TFTP
+#define CONFIG_SYS_DIRECT_NAND_TFTP
 
 /*****************************************************************************/
 
 #define STATUS_LED_BIT         0x00000080              /* bit 24 */
 #endif
 
-#define STATUS_LED_PERIOD      (CFG_HZ / 2)
+#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
 #define STATUS_LED_STATE       STATUS_LED_BLINKING
 
 #define STATUS_LED_ACTIVE      0               /* LED on for bit == 0  */
@@ -611,15 +611,15 @@ typedef unsigned int led_id_t;
 
 #define __led_toggle(_msk) \
        do { \
-               ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat ^= (_msk); \
+               ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat ^= (_msk); \
        } while(0)
 
 #define __led_set(_msk, _st) \
        do { \
                if ((_st)) \
-                       ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat |= (_msk); \
+                       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat |= (_msk); \
                else \
-                       ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat &= ~(_msk); \
+                       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat &= ~(_msk); \
        } while(0)
 
 #define __led_init(msk, st) __led_set(msk, st)
@@ -759,26 +759,26 @@ typedef unsigned int led_id_t;
 
 /* serial interfacing macros */
 
-#define SED156X_SPI_RXD_PORT   (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define SED156X_SPI_RXD_PORT   (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define SED156X_SPI_RXD_MASK   0x00000008
 
-#define SED156X_SPI_TXD_PORT   (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define SED156X_SPI_TXD_PORT   (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define SED156X_SPI_TXD_MASK   0x00000004
 
-#define SED156X_SPI_CLK_PORT   (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define SED156X_SPI_CLK_PORT   (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define SED156X_SPI_CLK_MASK   0x00000002
 
-#define SED156X_CS_PORT                (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define SED156X_CS_PORT                (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define SED156X_CS_MASK                0x00000010
 
-#define SED156X_A0_PORT                (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat)
+#define SED156X_A0_PORT                (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat)
 #define SED156X_A0_MASK                0x0020
 
 /*************************************************************************************************/
 
-#define CFG_CONSOLE_IS_IN_ENV          1
-#define CFG_CONSOLE_OVERWRITE_ROUTINE  1
-#define CFG_CONSOLE_ENV_OVERWRITE      1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
+#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE   1
+#define CONFIG_SYS_CONSOLE_ENV_OVERWRITE       1
 
 /*************************************************************************************************/
 
@@ -791,7 +791,7 @@ typedef unsigned int led_id_t;
 
 /* phone console configuration */
 
-#define PHONE_CONSOLE_POLL_HZ          (CFG_HZ/200)    /* poll every 5ms */
+#define PHONE_CONSOLE_POLL_HZ          (CONFIG_SYS_HZ/200)     /* poll every 5ms */
 
 /*************************************************************************************************/
 
index 805b82a5a7f0706cbf71f82b394c0a42799f0341..63810b3305fcef82750a903cd38a317abb142cf1 100644 (file)
@@ -70,7 +70,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #define CONFIG_HW_WATCHDOG
@@ -95,7 +95,7 @@
 
 #define        CONFIG_NET_MULTI        1       /* the only way to get the FEC in */
 #define        FEC_ENET                1       /* eth.c needs it that way... */
-#undef  CFG_DISCOVER_PHY               /* do not discover phys */
+#undef  CONFIG_SYS_DISCOVER_PHY                /* do not discover phys */
 #define CONFIG_MII             1
 #define CONFIG_MII_INIT                1
 #define CONFIG_RMII            1       /* use RMII interface */
 #define CONFIG_ENV_OVERWRITE   1       /* allow modification of vendor params */
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CODEC    | \
-                                CFG_POST_DSP      )
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CODEC     | \
+                                CONFIG_SYS_POST_DSP       )
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER        1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER 1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0300000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0700000       /* 3 ... 7 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0300000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0700000       /* 3 ... 7 MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   0x10000
 
-#define        CONFIG_ENV_ADDR         (CFG_FLASH_BASE + 0x60000)
+#define        CONFIG_ENV_ADDR         (CONFIG_SYS_FLASH_BASE + 0x60000)
 #define CONFIG_ENV_OFFSET              0
 #define        CONFIG_ENV_SIZE         0x4000
 
-#define CONFIG_ENV_ADDR_REDUND (CFG_FLASH_BASE + 0x70000)
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + 0x70000)
 #define CONFIG_ENV_OFFSET_REDUND       0
 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
 #if CONFIG_XIN == 10000000
 
 #if MPC8XX_HZ == 120000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (12 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 100000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (10 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 50000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (3 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 25000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (2 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (3 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 40000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (4 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 75000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (15 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #else
 #elif CONFIG_XIN == 50000000
 
 #if MPC8XX_HZ == 120000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (12 << PLPRCR_MFI_SHIFT) | (4 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 100000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (6 << PLPRCR_MFI_SHIFT) | (2 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ ==  80000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (4 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ ==  50000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (6 << PLPRCR_MFI_SHIFT) | (2 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #else
 
 #define SCCR_MASK      SCCR_EBDF11
 #if MPC8XX_HZ > 66666666
-#define CFG_SCCR       (/* SCCR_TBS    | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS    | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL111 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00 | SCCR_EBDF01)
 #else
-#define CFG_SCCR       (/* SCCR_TBS    | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS    | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL111 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR3 and OR3 (SDRAM)
 #define        SDRAM_MAX_SIZE          (256 << 20)     /* max 256MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    (OR_CSNT_SAM | OR_G5LS)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_CSNT_SAM | OR_G5LS)
 
-#define CFG_OR3_PRELIM ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CFG_OR_TIMING_SDRAM)
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_PS_32 | BR_V)
+#define CONFIG_SYS_OR3_PRELIM  ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_PS_32 | BR_V)
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 #if   MPC8XX_HZ == 120000000
-#define CFG_MAMR_PTA            234
+#define CONFIG_SYS_MAMR_PTA             234
 #elif MPC8XX_HZ == 100000000
-#define CFG_MAMR_PTA            195
+#define CONFIG_SYS_MAMR_PTA             195
 #elif MPC8XX_HZ ==  80000000
-#define CFG_MAMR_PTA            156
+#define CONFIG_SYS_MAMR_PTA             156
 #elif MPC8XX_HZ ==  50000000
-#define CFG_MAMR_PTA             98
+#define CONFIG_SYS_MAMR_PTA              98
 #else
 #error Unknown frequency
 #endif
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 
 /* NAND */
 #define CONFIG_NAND_LEGACY
-#define CFG_NAND_BASE                  NAND_BASE
+#define CONFIG_SYS_NAND_BASE                   NAND_BASE
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 #define CONFIG_MTD_NAND_UNSAFE
 
-#define CFG_MAX_NAND_DEVICE            1
+#define CONFIG_SYS_MAX_NAND_DEVICE             1
 /* #define NAND_NO_RB */
 
 #define SECTORSIZE             512
 /* ALE = PD3, CLE = PD4, CE = PD5, F_RY_BY = PC13 */
 #define NAND_DISABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) |=  (1 << (15 - 5)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) |=  (1 << (15 - 5)); \
        } while(0)
 
 #define NAND_ENABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) &= ~(1 << (15 - 5)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) &= ~(1 << (15 - 5)); \
        } while(0)
 
 #define NAND_CTL_CLRALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) &= ~(1 << (15 - 3)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) &= ~(1 << (15 - 3)); \
        } while(0)
 
 #define NAND_CTL_SETALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) |=  (1 << (15 - 3)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) |=  (1 << (15 - 3)); \
        } while(0)
 
 #define NAND_CTL_CLRCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) &= ~(1 << (15 - 4)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) &= ~(1 << (15 - 4)); \
        } while(0)
 
 #define NAND_CTL_SETCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) |=  (1 << (15 - 4)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) |=  (1 << (15 - 4)); \
        } while(0)
 
 #ifndef NAND_NO_RB
 #define NAND_WAIT_READY(nand) \
        do { \
-               while ((((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat & (1 << (15 - 13))) == 0) { \
+               while ((((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat & (1 << (15 - 13))) == 0) { \
                        WATCHDOG_RESET(); \
                } \
        } while (0)
 
 /*****************************************************************************/
 
-#define CFG_DIRECT_FLASH_TFTP
-#define CFG_DIRECT_NAND_TFTP
+#define CONFIG_SYS_DIRECT_FLASH_TFTP
+#define CONFIG_SYS_DIRECT_NAND_TFTP
 
 /*****************************************************************************/
 
  *-----------------------------------------------------------------------
  */
 
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 #define CONFIG_MAC_PARTITION
 #define CONFIG_DOS_PARTITION
index 687db1d2e974406314f3b89892130a17a852d38f..61c5547c55c7232906a6d68b5d6ca24b1b1722bd 100644 (file)
@@ -73,7 +73,7 @@
 
 #define CONFIG_AUTOSCRIPT
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 
 #define        CONFIG_NET_MULTI        1       /* the only way to get the FEC in */
 #define        FEC_ENET                1       /* eth.c needs it that way... */
-#undef CFG_DISCOVER_PHY
+#undef CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII             1
 #define CONFIG_MII_INIT                1
 #define CONFIG_RMII            1       /* use RMII interface */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER        1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER 1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0300000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0700000       /* 3 ... 7 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0300000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0700000       /* 3 ... 7 MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 #if CONFIG_NETTA2_VERSION == 2
-#define CFG_FLASH_BASE4                0x40080000
+#define CONFIG_SYS_FLASH_BASE4         0x40080000
 #endif
 
-#define CFG_RESET_ADDRESS   0x80000000
+#define CONFIG_SYS_RESET_ADDRESS   0x80000000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 #if CONFIG_NETTA2_VERSION == 1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
 #elif CONFIG_NETTA2_VERSION == 2
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
 #endif
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   0x10000
 
-#define        CONFIG_ENV_ADDR         (CFG_FLASH_BASE + 0x60000)
+#define        CONFIG_ENV_ADDR         (CONFIG_SYS_FLASH_BASE + 0x60000)
 #define CONFIG_ENV_OFFSET              0
 #define        CONFIG_ENV_SIZE         0x4000
 
-#define CONFIG_ENV_ADDR_REDUND (CFG_FLASH_BASE + 0x70000)
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + 0x70000)
 #define CONFIG_ENV_OFFSET_REDUND       0
 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
 #if CONFIG_XIN == 10000000
 
 #if MPC8XX_HZ == 120000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (12 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 100000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (10 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 50000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (3 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 25000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (2 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (3 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 40000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (4 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 75000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (15 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #else
 #elif CONFIG_XIN == 50000000
 
 #if MPC8XX_HZ == 120000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (12 << PLPRCR_MFI_SHIFT) | (4 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 100000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (0 << PLPRCR_S_SHIFT) | (6 << PLPRCR_MFI_SHIFT) | (2 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ ==  66666666
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (8 << PLPRCR_MFI_SHIFT) | (2 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #else
 
 #define SCCR_MASK      SCCR_EBDF11
 #if MPC8XX_HZ > 66666666
-#define CFG_SCCR       (/* SCCR_TBS     | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS     | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00 | SCCR_EBDF01)
 #else
-#define CFG_SCCR       (/* SCCR_TBS     | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS     | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 #if CONFIG_NETTA2_VERSION == 2
 
 #define FLASH_BASE4_PRELIM     0x40080000      /* FLASH bank #1        */
 
-#define CFG_OR4_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR4_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR4_PRELIM ((FLASH_BASE4_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR4_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR4_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR4_PRELIM  ((FLASH_BASE4_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 #endif
 
 #define        SDRAM_MAX_SIZE          (256 << 20)     /* max 256MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    (OR_CSNT_SAM | OR_G5LS)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_CSNT_SAM | OR_G5LS)
 
-#define CFG_OR3_PRELIM ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CFG_OR_TIMING_SDRAM)
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_PS_32 | BR_V)
+#define CONFIG_SYS_OR3_PRELIM  ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_PS_32 | BR_V)
 
 /*
  * Memory Periodic Timer Prescaler
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_MAMR_PTA            234
+#define CONFIG_SYS_MAMR_PTA             234
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 
 /* NAND */
 #define CONFIG_NAND_LEGACY
-#define CFG_NAND_BASE          NAND_BASE
+#define CONFIG_SYS_NAND_BASE           NAND_BASE
 #define CONFIG_MTD_NAND_ECC_JFFS2
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 #define CONFIG_MTD_NAND_UNSAFE
 
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 
 #define SECTORSIZE             512
 #define ADDR_COLUMN            1
 /* ALE = PD17, CLE = PE18, CE = PE20, F_RY_BY = PE31 */
 #define NAND_DISABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 20)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 20)); \
        } while(0)
 
 #define NAND_ENABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 20)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 20)); \
        } while(0)
 
 #define NAND_CTL_CLRALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 17)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 17)); \
        } while(0)
 
 #define NAND_CTL_SETALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 17)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 17)); \
        } while(0)
 
 #define NAND_CTL_CLRCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 18)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) &= ~(1 << (31 - 18)); \
        } while(0)
 
 #define NAND_CTL_SETCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 18)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat) |=  (1 << (31 - 18)); \
        } while(0)
 
 #if CONFIG_NETTA2_VERSION == 1
 #define NAND_WAIT_READY(nand) \
        do { \
                int _tries = 0; \
-               while ((((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat & (1 << (31 - 31))) == 0) \
+               while ((((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat & (1 << (31 - 31))) == 0) \
                        if (++_tries > 100000) \
                                break; \
        } while (0)
 #define NAND_WAIT_READY(nand) \
        do { \
                int _tries = 0; \
-               while ((((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat & (1 << (15 - 15))) == 0) \
+               while ((((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat & (1 << (15 - 15))) == 0) \
                        if (++_tries > 100000) \
                                break; \
        } while (0)
 
 /*****************************************************************************/
 
-#define CFG_DIRECT_FLASH_TFTP
-#define CFG_DIRECT_NAND_TFTP
+#define CONFIG_SYS_DIRECT_FLASH_TFTP
+#define CONFIG_SYS_DIRECT_NAND_TFTP
 
 /*****************************************************************************/
 
 #define STATUS_LED_BIT         0x00000080              /* bit 24 */
 #endif
 
-#define STATUS_LED_PERIOD      (CFG_HZ / 2)
+#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
 #define STATUS_LED_STATE       STATUS_LED_BLINKING
 
 #define STATUS_LED_ACTIVE      0               /* LED on for bit == 0  */
@@ -612,15 +612,15 @@ typedef unsigned int led_id_t;
 
 #define __led_toggle(_msk) \
        do { \
-               ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat ^= (_msk); \
+               ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat ^= (_msk); \
        } while(0)
 
 #define __led_set(_msk, _st) \
        do { \
                if ((_st)) \
-                       ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat |= (_msk); \
+                       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat |= (_msk); \
                else \
-                       ((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pedat &= ~(_msk); \
+                       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pedat &= ~(_msk); \
        } while(0)
 
 #define __led_init(msk, st) __led_set(msk, st)
@@ -734,9 +734,9 @@ typedef unsigned int led_id_t;
 
 **************************************************************************************************/
 
-#define CFG_CONSOLE_IS_IN_ENV          1
-#define CFG_CONSOLE_OVERWRITE_ROUTINE  1
-#define CFG_CONSOLE_ENV_OVERWRITE      1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
+#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE   1
+#define CONFIG_SYS_CONSOLE_ENV_OVERWRITE       1
 
 /*************************************************************************************************/
 
index e55003028d9df4c57741ffa44b94b0577d19b35b..87c920f421a32984bcf25e3dae06187c5c1e861c 100644 (file)
@@ -69,7 +69,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0300000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0700000       /* 3 ... 7 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0300000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0700000       /* 3 ... 7 MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   0x10000
 
-#define        CONFIG_ENV_ADDR         (CFG_FLASH_BASE + 0x60000)
+#define        CONFIG_ENV_ADDR         (CONFIG_SYS_FLASH_BASE + 0x60000)
 #define CONFIG_ENV_OFFSET              0
 #define        CONFIG_ENV_SIZE         0x4000
 
-#define CONFIG_ENV_ADDR_REDUND (CFG_FLASH_BASE + 0x70000)
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + 0x70000)
 #define CONFIG_ENV_OFFSET_REDUND       0
 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
 
 #if CONFIG_8xx_GCLK_FREQ == 50000000
 
-#define CFG_PLPRCR     ( ((5 - 1) << PLPRCR_MF_SHIFT) | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_PLPRCR      ( ((5 - 1) << PLPRCR_MF_SHIFT) | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
 #elif CONFIG_8xx_GCLK_FREQ == 80000000
 
-#define CFG_PLPRCR     ( ((8 - 1) << PLPRCR_MF_SHIFT) | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_PLPRCR      ( ((8 - 1) << PLPRCR_MF_SHIFT) | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00 | SCCR_EBDF01)
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR3 and OR3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    (OR_CSNT_SAM | OR_G5LS)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_CSNT_SAM | OR_G5LS)
 
-#define CFG_OR3_PRELIM ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CFG_OR_TIMING_SDRAM)
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_PS_32 | BR_V)
+#define CONFIG_SYS_OR3_PRELIM  ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_PS_32 | BR_V)
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   208
+#define CONFIG_SYS_MAMR_PTA    208
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 #if defined(CONFIG_NETVIA_VERSION) && CONFIG_NETVIA_VERSION >= 2
 
 #define STATUS_LED_BIT         0x00000001              /* bit 31 */
-#define STATUS_LED_PERIOD      (CFG_HZ / 2)
+#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
 #define STATUS_LED_STATE       STATUS_LED_BLINKING
 
 #define STATUS_LED_BIT1                0x00000002              /* bit 30 */
-#define STATUS_LED_PERIOD1     (CFG_HZ / 2)
+#define STATUS_LED_PERIOD1     (CONFIG_SYS_HZ / 2)
 #define STATUS_LED_STATE1      STATUS_LED_OFF
 
 #define STATUS_LED_ACTIVE      0               /* LED on for bit == 0  */
 #if defined(CONFIG_NETVIA_VERSION) && CONFIG_NETVIA_VERSION >= 2
 
 /* NAND */
-#define CFG_NAND_BASE                  NAND_BASE
+#define CONFIG_SYS_NAND_BASE                   NAND_BASE
 #define CONFIG_MTD_NAND_ECC_JFFS2
 
-#define CFG_MAX_NAND_DEVICE            1
+#define CONFIG_SYS_MAX_NAND_DEVICE             1
 
 #define SECTORSIZE             512
 #define ADDR_COLUMN            1
 
 #define NAND_DISABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) |=  0x0040; \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) |=  0x0040; \
        } while(0)
 
 #define NAND_ENABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) &= ~0x0040; \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) &= ~0x0040; \
        } while(0)
 
 #define NAND_CTL_CLRALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) &= ~0x0100; \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) &= ~0x0100; \
        } while(0)
 
 #define NAND_CTL_SETALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) |=  0x0100; \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) |=  0x0100; \
        } while(0)
 
 #define NAND_CTL_CLRCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) &= ~0x0080; \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) &= ~0x0080; \
        } while(0)
 
 #define NAND_CTL_SETCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat) |=  0x0080; \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat) |=  0x0080; \
        } while(0)
 
 #define NAND_WAIT_READY(nand) \
        do { \
-               while ((((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat & 0x100) == 0) \
+               while ((((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat & 0x100) == 0) \
                        ; \
        } while (0)
 
@@ -519,16 +519,16 @@ static inline void __led_set(led_id_t mask, int state)
 }
 
 /* MAX3100 console */
-#define MAX3100_SPI_RXD_PORT   (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define MAX3100_SPI_RXD_PORT   (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define MAX3100_SPI_RXD_BIT    0x00000008
 
-#define MAX3100_SPI_TXD_PORT   (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define MAX3100_SPI_TXD_PORT   (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define MAX3100_SPI_TXD_BIT    0x00000004
 
-#define MAX3100_SPI_CLK_PORT   (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat)
+#define MAX3100_SPI_CLK_PORT   (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat)
 #define MAX3100_SPI_CLK_BIT    0x00000002
 
-#define MAX3100_CS_PORT                (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pddat)
+#define MAX3100_CS_PORT                (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pddat)
 #define MAX3100_CS_BIT         0x0010
 
 #endif
index e297c84abcc7c8c1cfe6cee200d7bf14e69f0606..6abd3f1d9467df6bcb1a051fab5a6f743be75c31 100644 (file)
@@ -83,7 +83,7 @@
 #define CONFIG_MISC_INIT_R       1
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history
 */
-#define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define        CONFIG_SYS_HUSH_PARSER          1       /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
 /* NSCU use both slots, SLOT_A as "primary". */
 #define        CONFIG_PCMCIA_SLOT_A 1
 
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 #define PCMCIA_MEM_WIN_NO      8 /* override default 4 in pcmcia.h */
 #define        PCMCIA_SOCKETS_NO       2 /* we have two sockets */
 #undef NSCU_OE_INV             /* PCMCIA_GCRX_CXOE was inverted on early boards */
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         2       /* max. 2 IDE buses             */
-#define CFG_IDE_MAXDEVICE      4       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          2       /* max. 2 IDE buses             */
+#define CONFIG_SYS_IDE_MAXDEVICE       4       /* max. 2 drives per IDE bus    */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_IDE1_OFFSET    (4 * CFG_PCMCIA_MEM_SIZE) /* starts @ 4th window */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_IDE1_OFFSET     (4 * CONFIG_SYS_PCMCIA_MEM_SIZE) /* starts @ 4th window */
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
 #ifdef CONFIG_ISP1362_USB
-#define        CFG_ISP1362_BASE        0xD0000000      /* ISP1362 mapped at 0xD0000000 */
-#define CFG_ISP1362_OR_AM      0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR5_ISP1362                (CFG_ISP1362_OR_AM | OR_CSNT_SAM | \
+#define        CONFIG_SYS_ISP1362_BASE 0xD0000000      /* ISP1362 mapped at 0xD0000000 */
+#define CONFIG_SYS_ISP1362_OR_AM       0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR5_ISP1362         (CONFIG_SYS_ISP1362_OR_AM | OR_CSNT_SAM | \
                                 OR_ACS_DIV2       | OR_BI       | OR_SCY_5_CLK)
-#define CFG_BR5_ISP1362                ((CFG_ISP1362_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_BR5_ISP1362         ((CONFIG_SYS_ISP1362_BASE & BR_BA_MSK) | \
                                 BR_PS_16          | BR_MS_GPCM | BR_V )
 #endif /* CONFIG_ISP1362_USB */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 1f4c329f8282157fb668b73354fa173af246ca35..9182223c632b402f53ce2ffd7144f2a3fbe57d37 100644 (file)
@@ -53,7 +53,7 @@
 #define CONFIG_BOOTCOMMAND     "bootm 400e0000"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled, for now       */
 #define CONFIG_AUTOSCRIPT
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (128 << 10)     /* Reserve 128 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks       */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)  */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define xEMBED
 #ifdef EMBED
 #define CONFIG_ENV_SIZE                0x200   /* FIXME How big when embedded?? */
-#define CONFIG_ENV_ADDR                CFG_MONITOR_BASE
+#define CONFIG_ENV_ADDR                CONFIG_SYS_MONITOR_BASE
 #else
 #define CONFIG_ENV_ADDR                0x40020000      /* absolute address for now   */
 #define CONFIG_ENV_SIZE                0x20000 /* 8K ouch, this may later be */
 #endif
 
-#define CFG_FLASH_SN_BASE      0x4001fff0      /* programmer automagically puts    */
-#define CFG_FLASH_SN_SECTOR    0x40000000      /* a serial number here             */
-#define CFG_FLASH_SN_BYTES     8
+#define CONFIG_SYS_FLASH_SN_BASE       0x4001fff0      /* programmer automagically puts    */
+#define CONFIG_SYS_FLASH_SN_SECTOR     0x40000000      /* a serial number here             */
+#define CONFIG_SYS_FLASH_SN_BYTES      8
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value    */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value    */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                12-16
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         12-18
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               12-23
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         5-7
 #define MPC8XX_SPEED   66666666L
 #define MPC8XX_XIN     32768   /* 32.768 kHz crystal */
 #define MPC8XX_FACT            (MPC8XX_SPEED/MPC8XX_XIN)
-#define CFG_PLPRCR_MF  ((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT)
-#define CFG_PLPRCR             (CFG_PLPRCR_MF | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR_MF  ((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT)
+#define CONFIG_SYS_PLPRCR              (CONFIG_SYS_PLPRCR_MF | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              5-3
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 00, TRLX = 0, CSNT = 1, SCY = 8, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV1 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV1 | OR_BI | \
                                 OR_SCY_8_CLK )
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 /*
  * BR1/2 and OR1/2 (SDRAM)
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, drive GPL5 high on first cycle */
-#define CFG_OR_TIMING_SDRAM    (OR_G5LS | OR_CSNT_SAM)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_G5LS | OR_CSNT_SAM)
 
-#define CFG_OR1_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR1_PRELIM ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
-#define CFG_OR2_PRELIM CFG_OR1_PRELIM
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  CONFIG_SYS_OR1_PRELIM
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /* IO and memory mapped stuff */
 #define NX823_IO_OR_AM         0xFFFF0000      /* mask for IO addresses */
  */
 #define GPOUT_BASE     (NX823_IO_BASE + GPOUT_OFFSET)
 #define GPOUT_TIMING   (OR_CSNT_SAM | OR_TRLX | OR_BI)
-#define CFG_OR3_PRELIM (NX823_IO_OR_AM | GPOUT_TIMING)
-#define CFG_BR3_PRELIM (GPOUT_BASE | BR_V)
+#define CONFIG_SYS_OR3_PRELIM  (NX823_IO_OR_AM | GPOUT_TIMING)
+#define CONFIG_SYS_BR3_PRELIM  (GPOUT_BASE | BR_V)
 
 /*
  * BR4 and OR4 (QUART)
  */
 #define QUART_BASE     (NX823_IO_BASE + QUART_OFFSET)
 #define QUART_TIMING   (OR_ACS_DIV4 | OR_SCY_3_CLK | OR_CSNT_SAM | OR_TRLX)
-#define CFG_OR4_PRELIM (NX823_IO_OR_AM | QUART_TIMING | OR_BI)
-#define CFG_BR4_PRELIM (QUART_BASE | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR4_PRELIM  (NX823_IO_OR_AM | QUART_TIMING | OR_BI)
+#define CONFIG_SYS_BR4_PRELIM  (QUART_BASE | BR_PS_8 | BR_V)
 
 /*
  * BR5 and OR5 (Video DAC)
  */
 #define VIDAC_BASE     (NX823_IO_BASE + VIDAC_OFFSET)
 #define VIDAC_TIMING   (OR_ACS_DIV4 | OR_SCY_3_CLK | OR_CSNT_SAM | OR_EHTR)
-#define CFG_OR5_PRELIM (NX823_IO_OR_AM | VIDAC_TIMING | OR_BI)
-#define CFG_BR5_PRELIM (VIDAC_BASE | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR5_PRELIM  (NX823_IO_OR_AM | VIDAC_TIMING | OR_BI)
+#define CONFIG_SYS_BR5_PRELIM  (VIDAC_BASE | BR_PS_8 | BR_V)
 
 /*
  * BR6 and OR6 (CPLD)
  */
 #define CPLD_BASE      (NX823_IO_BASE + CPLD_OFFSET)
 #define CPLD_TIMING    (OR_ACS_DIV4 | OR_SCY_3_CLK | OR_CSNT_SAM | OR_EHTR)
-#define CFG_OR6_PRELIM (NX823_IO_OR_AM | CPLD_TIMING | OR_BI)
-#define CFG_BR6_PRELIM (CPLD_BASE | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR6_PRELIM  (NX823_IO_OR_AM | CPLD_TIMING | OR_BI)
+#define CONFIG_SYS_BR6_PRELIM  (CPLD_BASE | BR_PS_8 | BR_V )
 
 /*
  * BR7 and OR7 (SED1386)
  * FIXME timing not verified for SED controller
  */
 #define SED1386_BASE   0xF7000000
-#define CFG_OR7_PRELIM (0xFF000000 | OR_BI | OR_SETA)
-#define CFG_BR7_PRELIM (SED1386_BASE | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR7_PRELIM  (0xFF000000 | OR_BI | OR_SETA)
+#define CONFIG_SYS_BR7_PRELIM  (SED1386_BASE | BR_PS_16 | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz   */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz   */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16 /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32 /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16 /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32 /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8  /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16 /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8  /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16 /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 14dabdcd7435bd1815731b20deb91515a042309c..ff11df92edfc436d264f013b8bd2a5ce8b76f1b9 100644 (file)
@@ -48,7 +48,7 @@
 #define CONFIG_BOOTCOMMAND "go fff00100"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 
 #define CONFIG_PCI_BOOTDELAY   1       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0410 /* PCI Device ID: OCRTC         */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0410  /* PCI Device ID: OCRTC         */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFD0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFD0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* use NVRAM for environment vars       */
-#define CFG_NVRAM_BASE_ADDR    0xf0200000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0200000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
-#define CFG_NVRAM_VXWORKS_OFFS 0x6900          /* Offset for VxWorks eth-addr  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
+#define CONFIG_SYS_NVRAM_VXWORKS_OFFS  0x6900          /* Offset for VxWorks eth-addr  */
 
 #else /* Use EEPROM for environment variables */
 
  * I2C EEPROM (CAT24WC08) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (PLD - FPGA-boot) initialization                              */
-#define CFG_EBC_PB2AP          0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB2AP           0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x0,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (PLD - OSL) initialization                                    */
-#define CFG_EBC_PB3AP          0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB3AP           0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x0,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB3CR          0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB3CR           0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 4 (Spartan2 1) initialization                                   */
-#define CFG_EBC_PB4AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB4AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB4CR          0xF209C000  /* BAS=0xF20,BS=16MB,BU=R/W,BW=32bit*/
+#define CONFIG_SYS_EBC_PB4CR           0xF209C000  /* BAS=0xF20,BS=16MB,BU=R/W,BW=32bit*/
 
 /* Memory Bank 5 (Spartan2 2) initialization                                   */
-#define CFG_EBC_PB5AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB5AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB5CR          0xF309C000  /* BAS=0xF30,BS=16MB,BU=R/W,BW=32bit*/
+#define CONFIG_SYS_EBC_PB5CR           0xF309C000  /* BAS=0xF30,BS=16MB,BU=R/W,BW=32bit*/
 
 /* Memory Bank 6 (Virtex 1) initialization                                     */
-#define CFG_EBC_PB6AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB6AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB6CR          0xF409A000  /* BAS=0xF40,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB6CR           0xF409A000  /* BAS=0xF40,BS=16MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 7 (Virtex 2) initialization                                     */
-#define CFG_EBC_PB7AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB7AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB7CR          0xF509A000  /* BAS=0xF50,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB7CR           0xF509A000  /* BAS=0xF50,BS=16MB,BU=R/W,BW=16bit*/
 
 
-#define CFG_VXWORKS_MAC_PTR    0x00000000      /* Pass Ethernet MAC to VxWorks */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     0x00000000      /* Pass Ethernet MAC to VxWorks */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
index 289bba547ca1a7ceabefd0896ab83a93909cb19b..a635fca192ab63d7d9b25627060c5b0e3cfcc20a 100644 (file)
@@ -48,7 +48,7 @@
 #define CONFIG_BOOTCOMMAND "go fff00100"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 
 #undef CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0411 /* PCI Device ID: ORSG          */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0411  /* PCI Device ID: ORSG          */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFD0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFD0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* use NVRAM for environment vars       */
-#define CFG_NVRAM_BASE_ADDR    0xf0200000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0200000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
-#define CFG_NVRAM_VXWORKS_OFFS 0x6900          /* Offset for VxWorks eth-addr  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
+#define CONFIG_SYS_NVRAM_VXWORKS_OFFS  0x6900          /* Offset for VxWorks eth-addr  */
 
 #else /* Use EEPROM for environment variables */
 
  * I2C EEPROM (CAT24WC08) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (PLD - FPGA-boot) initialization                              */
-#define CFG_EBC_PB2AP          0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB2AP           0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x0,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (PLD - OSL) initialization                                    */
-#define CFG_EBC_PB3AP          0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB3AP           0x02015480  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x0,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB3CR          0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB3CR           0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 4 (Spartan2 1) initialization                                   */
-#define CFG_EBC_PB4AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB4AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB4CR          0xF209C000  /* BAS=0xF20,BS=16MB,BU=R/W,BW=32bit*/
+#define CONFIG_SYS_EBC_PB4CR           0xF209C000  /* BAS=0xF20,BS=16MB,BU=R/W,BW=32bit*/
 
 /* Memory Bank 5 (Spartan2 2) initialization                                   */
-#define CFG_EBC_PB5AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB5AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB5CR          0xF309C000  /* BAS=0xF30,BS=16MB,BU=R/W,BW=32bit*/
+#define CONFIG_SYS_EBC_PB5CR           0xF309C000  /* BAS=0xF30,BS=16MB,BU=R/W,BW=32bit*/
 
 /* Memory Bank 6 (Virtex 1) initialization                                     */
-#define CFG_EBC_PB6AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB6AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB6CR          0xF409A000  /* BAS=0xF40,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB6CR           0xF409A000  /* BAS=0xF40,BS=16MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 7 (Virtex 2) initialization                                     */
-#define CFG_EBC_PB7AP          0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
+#define CONFIG_SYS_EBC_PB7AP           0x02015580  /* BME=0x0,TWT=0x04,CSN=0x0,OEN=0x1 */
                                            /* WBN=0x1,WBF=0x1,TH=0x2,RE=0x1,SOR=0x1,BEM=0x0,PEN=0x0*/
-#define CFG_EBC_PB7CR          0xF509A000  /* BAS=0xF50,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB7CR           0xF509A000  /* BAS=0xF50,BS=16MB,BU=R/W,BW=16bit*/
 
 
-#define CFG_VXWORKS_MAC_PTR    0x00000000      /* Pass Ethernet MAC to VxWorks */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     0x00000000      /* Pass Ethernet MAC to VxWorks */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
index 2ccaf47411cfa387a253039b93227fda6797c559..104c23f9284f8813912446b7c7b9f71890a644b4 100644 (file)
@@ -49,7 +49,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1               /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP            1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_MISC_INIT_R     1               /* call misc_init_r() on init   */
 
@@ -95,8 +95,8 @@
 #define CONFIG_BOOTCOMMAND     "tftp 0x10000 ; bootelf 0x10000"
 #define CONFIG_BOOTDELAY       10
 
-#define CFG_OXC_GENERATE_IP    1               /* Generate IP automatically    */
-#define CFG_OXC_IPMASK         0x0A000000      /* 10.0.0.x                     */
+#define CONFIG_SYS_OXC_GENERATE_IP     1               /* Generate IP automatically    */
+#define CONFIG_SYS_OXC_IPMASK          0x0A000000      /* 10.0.0.x                     */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_NET_MULTI                       /* Multi ethernet cards support */
 
 #define CONFIG_EEPRO100                                /* Ethernet Express PRO 100     */
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 
 #define PCI_ENET0_IOADDR       0x80000000
 #define PCI_ENET0_MEMADDR      0x80000000
  * FLASH
  */
 
-#define CFG_FLASH_PRELIMBASE   0xFF800000
-#define CFG_FLASH_BASE         (0-flash_info[0].size)
+#define CONFIG_SYS_FLASH_PRELIMBASE    0xFF800000
+#define CONFIG_SYS_FLASH_BASE          (0-flash_info[0].size)
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     32      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      32      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * RAM
  */
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x10000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x10000000
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                0x00030000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_PRELIMBASE)
-# define CFG_RAMBOOT           1
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_PRELIMBASE)
+# define CONFIG_SYS_RAMBOOT            1
 #else
-# undef CFG_RAMBOOT
+# undef CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
 
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x04000000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x04000000      /* 0 ... 32 MB in DRAM          */
 
 /*-----------------------------------------------------------------------
  * Memory mapping
  */
 
-#define CFG_CPLD_BASE          0xff000000      /* CPLD registers */
-#define CFG_CPLD_WATCHDOG      (CFG_CPLD_BASE)                 /* Watchdog */
-#define CFG_CPLD_RESET         (CFG_CPLD_BASE + 0x040000)      /* Minor resets */
-#define CFG_UART_BASE          (CFG_CPLD_BASE + 0x700000)      /* debug UART */
+#define CONFIG_SYS_CPLD_BASE           0xff000000      /* CPLD registers */
+#define CONFIG_SYS_CPLD_WATCHDOG       (CONFIG_SYS_CPLD_BASE)                  /* Watchdog */
+#define CONFIG_SYS_CPLD_RESET          (CONFIG_SYS_CPLD_BASE + 0x040000)       /* Minor resets */
+#define CONFIG_SYS_UART_BASE           (CONFIG_SYS_CPLD_BASE + 0x700000)       /* debug UART */
 
 /*-----------------------------------------------------------------------
  * NS16550 Configuration
  */
 
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   -4
-#define CFG_NS16550_CLK                1843200
-#define CFG_NS16550_COM1       CFG_UART_BASE
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    -4
+#define CONFIG_SYS_NS16550_CLK         1843200
+#define CONFIG_SYS_NS16550_COM1        CONFIG_SYS_UART_BASE
 
 /*-----------------------------------------------------------------------
  * I2C Bus
 
 #define CONFIG_I2C             1               /* I2C support on ... */
 #define CONFIG_HARD_I2C                1               /* ... hardware one */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F            /* I2C slave address */
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F            /* I2C slave address */
 
-#define CFG_I2C_EXPANDER0_ADDR 0x20            /* PCF8574 expander 0 addrerr */
-#define CFG_I2C_EXPANDER1_ADDR 0x21            /* PCF8574 expander 1 addrerr */
-#define CFG_I2C_EXPANDER2_ADDR 0x26            /* PCF8574 expander 2 addrerr */
+#define CONFIG_SYS_I2C_EXPANDER0_ADDR  0x20            /* PCF8574 expander 0 addrerr */
+#define CONFIG_SYS_I2C_EXPANDER1_ADDR  0x21            /* PCF8574 expander 1 addrerr */
+#define CONFIG_SYS_I2C_EXPANDER2_ADDR  0x26            /* PCF8574 expander 2 addrerr */
 
 /*-----------------------------------------------------------------------
  * Environment
 #define CONFIG_SYS_CLK_FREQ  33000000  /* external frequency to pll */
 #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER  2
 
-#define CFG_EUMB_ADDR          0xFC000000
+#define CONFIG_SYS_EUMB_ADDR           0xFC000000
 
 /* MCCR1 */
-#define CFG_ROMNAL             0       /* rom/flash next access time           */
-#define CFG_ROMFAL             19      /* rom/flash access time                */
+#define CONFIG_SYS_ROMNAL              0       /* rom/flash next access time           */
+#define CONFIG_SYS_ROMFAL              19      /* rom/flash access time                */
 
 /* MCCR2 */
-#define CFG_ASRISE             15      /* ASRISE=15 clocks                     */
-#define CFG_ASFALL             3       /* ASFALL=3 clocks                      */
-#define CFG_REFINT             1000    /* REFINT=1000 clocks                   */
+#define CONFIG_SYS_ASRISE              15      /* ASRISE=15 clocks                     */
+#define CONFIG_SYS_ASFALL              3       /* ASFALL=3 clocks                      */
+#define CONFIG_SYS_REFINT              1000    /* REFINT=1000 clocks                   */
 
 /* MCCR3 */
-#define CFG_BSTOPRE            0x35c   /* Burst To Precharge                   */
-#define CFG_REFREC             7       /* Refresh to activate interval         */
-#define CFG_RDLAT              4       /* data latency from read command       */
+#define CONFIG_SYS_BSTOPRE             0x35c   /* Burst To Precharge                   */
+#define CONFIG_SYS_REFREC              7       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT               4       /* data latency from read command       */
 
 /* MCCR4 */
-#define CFG_PRETOACT           2       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           5       /* Activate to Precharge interval       */
-#define CFG_ACTORW             2       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
-#define CFG_SDMODE_BURSTLEN    3       /* SDMODE Burst length 2=4, 3=8         */
-#define CFG_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_PRETOACT            2       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              2       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_SDMODE_BURSTLEN     3       /* SDMODE Burst length 2=4, 3=8         */
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
 
 /* memory bank settings*/
 /*
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x00000000
-#define CFG_BANK1_END          0x00000000
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x00000000
-#define CFG_BANK2_END          0x00000000
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x00000000
-#define CFG_BANK3_END          0x00000000
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x00000000
+#define CONFIG_SYS_BANK1_END           0x00000000
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x00000000
+#define CONFIG_SYS_BANK2_END           0x00000000
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x00000000
+#define CONFIG_SYS_BANK3_END           0x00000000
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
 /*
  * Memory bank enable bitmask, specifying which of the banks defined above
  are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
-#define CFG_ODCR               0xff    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0xff    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 1GB (no backing mem) */
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 
 /* PCI memory */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Flash, config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8240 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8240 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
index 815009182d50782ebc4ab72a0bb300e46779d222..971338a466aca72b78feb8e13cc0d0186bc0e666 100644 (file)
@@ -40,7 +40,7 @@
  */
 
 #define CONFIG_P3G4            1       /* this is a P3G4  board        */
-#define CFG_GT_6426x        GT_64260 /* with a 64260 system controller */
+#define CONFIG_SYS_GT_6426x        GT_64260 /* with a 64260 system controller */
 
 #define CONFIG_BAUDRATE                115200  /* console baudrate = 115200    */
 
 #define CONFIG_MISC_INIT_R     1
 #define CONFIG_BOARD_EARLY_INIT_F 1
 
-#define CFG_BOARD_NAME         "P3G4"
+#define CONFIG_SYS_BOARD_NAME          "P3G4"
 
-#undef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 /*
  * The following defines let you select what serial you want to use
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#define        CFG_LOADS_BAUD_CHANGE           /* allow baudrate changes       */
+#define        CONFIG_SYS_LOADS_BAUD_CHANGE            /* allow baudrate changes       */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #undef CONFIG_ALTIVEC                  /* undef to disable             */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C00000      /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C00000      /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x00300000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00300000      /* default load address */
 
-#define        CFG_HZ                  1000            /* decr freq: 1ms ticks */
-#define CFG_BUS_HZ             133000000       /* 133 MHz              */
-#define CFG_BUS_CLK            CFG_BUS_HZ
+#define        CONFIG_SYS_HZ                   1000            /* decr freq: 1ms ticks */
+#define CONFIG_SYS_BUS_HZ              133000000       /* 133 MHz              */
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 
 /*
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define        CFG_INIT_RAM_END        0x1000
-#define        CFG_GBL_DATA_SIZE       128  /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define        CONFIG_SYS_INIT_RAM_END 0x1000
+#define        CONFIG_SYS_GBL_DATA_SIZE        128  /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK
 
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0xff000000
-#define CFG_RESET_ADDRESS      0xfff00100
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 256 kB for malloc */
 
 /* areas to map different things with the GT in physical space */
-#define CFG_DRAM_BANKS         1
-#define CFG_DFL_GT_REGS                0x14000000      /* boot time GT_REGS */
+#define CONFIG_SYS_DRAM_BANKS          1
+#define CONFIG_SYS_DFL_GT_REGS         0x14000000      /* boot time GT_REGS */
 
 /* What to put in the bats. */
-#define CFG_MISC_REGION_BASE   0xf0000000
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000
 
 /* Peripheral Device section */
-#define CFG_GT_REGS            0xf8000000
-#define CFG_DEV_BASE           0xff000000
+#define CONFIG_SYS_GT_REGS             0xf8000000
+#define CONFIG_SYS_DEV_BASE            0xff000000
 
-#define CFG_DEV0_SPACE         CFG_DEV_BASE
-#define CFG_DEV1_SPACE         (CFG_DEV0_SPACE + CFG_DEV0_SIZE)
-#define CFG_DEV2_SPACE         (CFG_DEV1_SPACE + CFG_DEV1_SIZE)
-#define CFG_DEV3_SPACE         (CFG_DEV2_SPACE + CFG_DEV2_SIZE)
+#define CONFIG_SYS_DEV0_SPACE          CONFIG_SYS_DEV_BASE
+#define CONFIG_SYS_DEV1_SPACE          (CONFIG_SYS_DEV0_SPACE + CONFIG_SYS_DEV0_SIZE)
+#define CONFIG_SYS_DEV2_SPACE          (CONFIG_SYS_DEV1_SPACE + CONFIG_SYS_DEV1_SIZE)
+#define CONFIG_SYS_DEV3_SPACE          (CONFIG_SYS_DEV2_SPACE + CONFIG_SYS_DEV2_SIZE)
 
-#define CFG_DEV0_SIZE           _8M /* Flash bank */
-#define CFG_DEV1_SIZE           0   /* unused */
-#define CFG_DEV2_SIZE           0   /* unused */
-#define CFG_DEV3_SIZE           0   /* unused */
+#define CONFIG_SYS_DEV0_SIZE            _8M /* Flash bank */
+#define CONFIG_SYS_DEV1_SIZE            0   /* unused */
+#define CONFIG_SYS_DEV2_SIZE            0   /* unused */
+#define CONFIG_SYS_DEV3_SIZE            0   /* unused */
 
-#define CFG_16BIT_BOOT_PAR     0xc01b5e7c
-#define CFG_DEV0_PAR           CFG_16BIT_BOOT_PAR
+#define CONFIG_SYS_16BIT_BOOT_PAR      0xc01b5e7c
+#define CONFIG_SYS_DEV0_PAR            CONFIG_SYS_16BIT_BOOT_PAR
 
 #if 0 /* Wrong?? NTL */
-#define CFG_MPP_CONTROL_0      0x53541717      /* InitAct EOT[4] DBurst TCEn[1] */
+#define CONFIG_SYS_MPP_CONTROL_0       0x53541717      /* InitAct EOT[4] DBurst TCEn[1] */
                                                /* DMAAck[1:0] GNT0[1:0] */
 #else
-#define CFG_MPP_CONTROL_0      0x53547777      /* InitAct EOT[4] DBurst TCEn[1] */
+#define CONFIG_SYS_MPP_CONTROL_0       0x53547777      /* InitAct EOT[4] DBurst TCEn[1] */
                                                /* REQ0[1:0] GNT0[1:0] */
 #endif
-#define CFG_MPP_CONTROL_1      0x44009911      /* TCEn[4] TCTcnt[4] GPP[13:12] */
+#define CONFIG_SYS_MPP_CONTROL_1       0x44009911      /* TCEn[4] TCTcnt[4] GPP[13:12] */
                                                /* DMAReq[4] DMAAck[4] WDNMI WDE */
 #if 0 /* Wrong?? NTL */
-#define CFG_MPP_CONTROL_2      0x40091818      /* TCTcnt[0] GPP[22:21] BClkIn */
+#define CONFIG_SYS_MPP_CONTROL_2       0x40091818      /* TCTcnt[0] GPP[22:21] BClkIn */
                                                /* DMAAck[1:0] GNT1[1:0] */
 #else
-#define CFG_MPP_CONTROL_2      0x40098888      /* TCTcnt[0] */
+#define CONFIG_SYS_MPP_CONTROL_2       0x40098888      /* TCTcnt[0] */
                                                /* GPP[22] (RS232IntB or PCI1Int) */
                                                /* GPP[21] (RS323IntA) */
                                                /* BClkIn */
 #endif
 
 #if 0 /* Wrong?? NTL */
-# define CFG_MPP_CONTROL_3     0x00090066      /* GPP[31:29] BClkOut0 */
+# define CONFIG_SYS_MPP_CONTROL_3      0x00090066      /* GPP[31:29] BClkOut0 */
                                                /* GPP[27:26] Int[1:0] */
 #else
-# define CFG_MPP_CONTROL_3     0x22090066      /* MREQ MGNT */
+# define CONFIG_SYS_MPP_CONTROL_3      0x22090066      /* MREQ MGNT */
                                                /* GPP[29]    (PCI1Int) */
                                                /* BClkOut0 */
                                                /* GPP[27]    (PCI0Int) */
                                                /* CPUInt[25:24] */
 #endif
 
-#define CFG_SERIAL_PORT_MUX    0x00001102      /* 11=MPSC1/MPSC0 02=ETH 0 and 2 RMII */
+#define CONFIG_SYS_SERIAL_PORT_MUX     0x00001102      /* 11=MPSC1/MPSC0 02=ETH 0 and 2 RMII */
 
 #if 0 /* Wrong?? - NTL */
-# define CFG_GPP_LEVEL_CONTROL 0x000002c6
+# define CONFIG_SYS_GPP_LEVEL_CONTROL  0x000002c6
 #else
-# define CFG_GPP_LEVEL_CONTROL 0x2c600000      /* 0010 1100 0110 0000 */
+# define CONFIG_SYS_GPP_LEVEL_CONTROL  0x2c600000      /* 0010 1100 0110 0000 */
                                                /* gpp[29] */
                                                /* gpp[27:26] */
                                                /* gpp[22:21] */
 
-# define CFG_SDRAM_CONFIG      0xd8e18200      /* 0x448 */
+# define CONFIG_SYS_SDRAM_CONFIG       0xd8e18200      /* 0x448 */
                                /* idmas use buffer 1,1
                                   comm use buffer 0
                                   pci use buffer 1,1
 #endif
 
 #if 0
-#define CFG_DUART_IO           CFG_DEV2_SPACE
-#define CFG_DUART_CHAN         1               /* channel to use for console */
+#define CONFIG_SYS_DUART_IO            CONFIG_SYS_DEV2_SPACE
+#define CONFIG_SYS_DUART_CHAN          1               /* channel to use for console */
 #endif
-#undef CFG_INIT_CHAN1
-#undef CFG_INIT_CHAN2
+#undef CONFIG_SYS_INIT_CHAN1
+#undef CONFIG_SYS_INIT_CHAN2
 #if 0
-#define SRAM_BASE              CFG_DEV0_SPACE
+#define SRAM_BASE              CONFIG_SYS_DEV0_SPACE
 #define SRAM_SIZE              0x00100000              /* 1 MB of sram */
 #endif
 
 #define CONFIG_PCI_PNP                  /* do pci plug-and-play         */
 
 /* PCI MEMORY MAP section */
-#define CFG_PCI0_MEM_BASE      0x80000000
-#define CFG_PCI0_MEM_SIZE      _128M
-#define CFG_PCI0_0_MEM_SPACE   (CFG_PCI0_MEM_BASE)
+#define CONFIG_SYS_PCI0_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI0_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI0_0_MEM_SPACE    (CONFIG_SYS_PCI0_MEM_BASE)
 
-#define CFG_PCI1_MEM_BASE      0x88000000
-#define CFG_PCI1_MEM_SIZE      _128M
-#define CFG_PCI1_0_MEM_SPACE   (CFG_PCI1_MEM_BASE)
+#define CONFIG_SYS_PCI1_MEM_BASE       0x88000000
+#define CONFIG_SYS_PCI1_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI1_0_MEM_SPACE    (CONFIG_SYS_PCI1_MEM_BASE)
 
 /* PCI I/O MAP section */
-#define CFG_PCI0_IO_BASE       0xfa000000
-#define CFG_PCI0_IO_SIZE       _16M
-#define CFG_PCI0_IO_SPACE      (CFG_PCI0_IO_BASE)
-#define CFG_PCI0_IO_SPACE_PCI  0x00000000
+#define CONFIG_SYS_PCI0_IO_BASE        0xfa000000
+#define CONFIG_SYS_PCI0_IO_SIZE        _16M
+#define CONFIG_SYS_PCI0_IO_SPACE       (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI0_IO_SPACE_PCI   0x00000000
 
-#define CFG_PCI1_IO_BASE       0xfb000000
-#define CFG_PCI1_IO_SIZE       _16M
-#define CFG_PCI1_IO_SPACE      (CFG_PCI1_IO_BASE)
-#define CFG_PCI1_IO_SPACE_PCI  0x00000000
+#define CONFIG_SYS_PCI1_IO_BASE        0xfb000000
+#define CONFIG_SYS_PCI1_IO_SIZE        _16M
+#define CONFIG_SYS_PCI1_IO_SPACE       (CONFIG_SYS_PCI1_IO_BASE)
+#define CONFIG_SYS_PCI1_IO_SPACE_PCI   0x00000000
 
 /*----------------------------------------------------------------------
  * Initial BAT mappings
  */
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
 /* init ram */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
 
 /* PCI0, PCI1 in one BAT */
-#define CFG_IBAT2L BATL_NO_ACCESS
-#define CFG_IBAT2U CFG_DBAT2U
-#define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L BATL_NO_ACCESS
+#define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_DBAT2L (CONFIG_SYS_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (CONFIG_SYS_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* GT regs, bootrom, all the devices, PCI I/O */
-#define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
-#define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
-#define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
+#define CONFIG_SYS_DBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 /* I2C speed and slave address (for compatability) defaults */
-#define CFG_I2C_SPEED  400000
-#define CFG_I2C_SLAVE  0x7F
+#define CONFIG_SYS_I2C_SPEED   400000
+#define CONFIG_SYS_I2C_SLAVE   0x7F
 
 /* I2C addresses for the two DIMM SPD chips */
 #ifndef CONFIG_EVB64260_750CX
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8<<20) /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8<<20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip */
 
-#define CFG_EXTRA_FLASH_DEVICE BOOT_DEVICE
-#define CFG_EXTRA_FLASH_WIDTH  2       /* 16 bit */
-#define CFG_BOOT_FLASH_WIDTH   2       /* 16 bit */
+#define CONFIG_SYS_EXTRA_FLASH_DEVICE  BOOT_DEVICE
+#define CONFIG_SYS_EXTRA_FLASH_WIDTH   2       /* 16 bit */
+#define CONFIG_SYS_BOOT_FLASH_WIDTH    2       /* 16 bit */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_CFI           1
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_SIZE         0x1000  /* Total Size of Environment Sector */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * look in include/74xx_7xx.h for the defines used here
  */
 
-#define CFG_L2
+#define CONFIG_SYS_L2
 
 #define L2_INIT                (L2CR_L2SIZ_2M | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \
                         L2CR_L2OH_5 | L2CR_L2CTL | L2CR_L2WT)
 #define        BOOTFLAG_COLD   0x01            /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM  0x02            /* Software reboot                  */
 
-#define CFG_BOARD_ASM_INIT      1
+#define CONFIG_SYS_BOARD_ASM_INIT      1
 
 
 #endif /* __CONFIG_H */
index 42b155e513471d23ef3b43ff035a2d3637e72c3a..9d80ce41324fbda6a9f7c74d3fe31b7f343dca5d 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_CONSOLE_IS_IN_ENV  /* stdin, stdout and stderr are in evironment */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   /* stdin, stdout and stderr are in evironment */
 #define CONFIG_PREBOOT
 
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "pati=> "               /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "pati=> "               /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16             /* max number of command args    */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16             /* max number of command args    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00010000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x00A00000      /* 10 MB in SRAM                        */
+#define CONFIG_SYS_MEMTEST_START       0x00010000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x00A00000      /* 10 MB in SRAM                        */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address         */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address         */
 
-#define        CFG_HZ                  1000            /* Decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000            /* Decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 1250000 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 1250000 }
 
 
 /***********************************************************************
 /*
  * Internal Memory Mapped (This is not the IMMR content)
  */
-#define CFG_IMMR               0x01C00000              /* Physical start adress of internal memory map */
+#define CONFIG_SYS_IMMR                0x01C00000              /* Physical start adress of internal memory map */
 
 /*
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR      (CFG_IMMR + 0x003f9800) /* Physical start adress of internal MPC555 writable RAM */
-#define        CFG_INIT_RAM_END        (CFG_IMMR + 0x003fffff) /* Physical end adress of internal MPC555 used RAM area */
-#define        CFG_GBL_DATA_SIZE       128                     /* Size in bytes reserved for initial global data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_INIT_RAM_ADDR) - CFG_GBL_DATA_SIZE) /* Offset from the beginning of ram */
-#define        CFG_INIT_SP_ADDR        (CFG_IMMR + 0x03fa000)  /* Physical start adress of inital stack */
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_IMMR + 0x003f9800)  /* Physical start adress of internal MPC555 writable RAM */
+#define        CONFIG_SYS_INIT_RAM_END (CONFIG_SYS_IMMR + 0x003fffff)  /* Physical end adress of internal MPC555 used RAM area */
+#define        CONFIG_SYS_GBL_DATA_SIZE        128                     /* Size in bytes reserved for initial global data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_INIT_RAM_ADDR) - CONFIG_SYS_GBL_DATA_SIZE) /* Offset from the beginning of ram */
+#define        CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_IMMR + 0x03fa000)   /* Physical start adress of inital stack */
 /*
  * Start addresses for the final memory configuration
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000      /* Monitor won't change memory map                      */
-#define CFG_FLASH_BASE         0xffC00000      /* External flash */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000      /* Monitor won't change memory map                      */
+#define CONFIG_SYS_FLASH_BASE          0xffC00000      /* External flash */
 #define PCI_BASE               0x03000000      /* PCI Base (CS2) */
 #define PCI_CONFIG_BASE                0x04000000      /* PCI & PLD  (CS3) */
 #define PLD_CONFIG_BASE                0x04001000      /* PLD  (CS3) */
 
-#define        CFG_MONITOR_BASE        0xFFF00000
-/* CFG_FLASH_BASE      */ /* TEXT_BASE is defined in the board config.mk file. */
+#define        CONFIG_SYS_MONITOR_BASE 0xFFF00000
+/* CONFIG_SYS_FLASH_BASE       */ /* TEXT_BASE is defined in the board config.mk file. */
                                                /* This adress is given to the linker with -Ttext to    */
                                                /* locate the text section at this adress.              */
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 192 kB for Monitor                           */
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()                          */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 192 kB for Monitor                           */
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()                          */
 
-#define CFG_RESET_ADDRESS      (PLD_CONFIG_BASE + 0x10)         /* Adress which causes reset */
+#define CONFIG_SYS_RESET_ADDRESS       (PLD_CONFIG_BASE + 0x10)         /* Adress which causes reset */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux         */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux         */
 
 
 /*-----------------------------------------------------------------------
  *
  */
 
-#define CFG_MAX_FLASH_BANKS            1               /* Max number of memory banks           */
-#define CFG_MAX_FLASH_SECT             128             /* Max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT   180000          /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   600             /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_MAX_FLASH_BANKS             1               /* Max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT              128             /* Max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    180000          /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    600             /* Timeout for Flash Write (in ms)      */
 
 
 #define        CONFIG_ENV_IS_IN_EEPROM
 #undef  CONFIG_ENV_IS_IN_FLASH
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define        CONFIG_ENV_SIZE         0x00002000              /* Set whole sector as env              */
-#define CONFIG_ENV_OFFSET              ((0 - CFG_FLASH_BASE) - CONFIG_ENV_SIZE)                /* Environment starts at this adress    */
+#define CONFIG_ENV_OFFSET              ((0 - CONFIG_SYS_FLASH_BASE) - CONFIG_ENV_SIZE)         /* Environment starts at this adress    */
 #endif
 
 
 #define CONFIG_SPI             1
-#define CFG_SPI_CS_USED        0x09 /* CS0 and CS3 are used */
-#define CFG_SPI_CS_BASE        0x08 /* CS3 is active low */
-#define CFG_SPI_CS_ACT 0x00 /* CS3 is active low */
+#define CONFIG_SYS_SPI_CS_USED 0x09 /* CS0 and CS3 are used */
+#define CONFIG_SYS_SPI_CS_BASE 0x08 /* CS3 is active low */
+#define CONFIG_SYS_SPI_CS_ACT  0x00 /* CS3 is active low */
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control
  * SYPCR can only be written once after reset!
  */
 #undef CONFIG_WATCHDOG
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF00
-#define CFG_SCCR       (SCCR_TBS     | SCCR_RTDIV    | SCCR_RTSEL    | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | SCCR_RTDIV    | SCCR_RTSEL    | \
                         SCCR_COM01   | SCCR_DFNL000 | SCCR_DFNH000)
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Data show cycle
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_EARB | SIUMCR_GPC01 | SIUMCR_MLRC11) /* Disable data show cycle */
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_EARB | SIUMCR_GPC01 | SIUMCR_MLRC11) /* Disable data show cycle */
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register
  * Set all bits to 40 Mhz
  *
  */
-#define CFG_OSC_CLK    ((uint)4000000)         /* Oscillator clock is 4MHz     */
+#define CONFIG_SYS_OSC_CLK     ((uint)4000000)         /* Oscillator clock is 4MHz     */
 
 
-#define CFG_PLPRCR     (PLPRCR_MF_9 | PLPRCR_DIVF_0)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_MF_9 | PLPRCR_DIVF_0)
 
 /*-----------------------------------------------------------------------
  * UMCR - UIMB Module Configuration Register
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_UMCR       (UMCR_FSPEED)           /* IMB clock same as U-bus      */
+#define CONFIG_SYS_UMCR        (UMCR_FSPEED)           /* IMB clock same as U-bus      */
 
 /*-----------------------------------------------------------------------
  * ICTRL - I-Bus Support Control Register
  */
-#define CFG_ICTRL      (ICTRL_ISCT_SER_7)      /* Take out of serialized mode  */
+#define CONFIG_SYS_ICTRL       (ICTRL_ISCT_SER_7)      /* Take out of serialized mode  */
 
 /*-----------------------------------------------------------------------
  * USIU - Memory Controller Register
  *-----------------------------------------------------------------------
  */
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BR_V | BR_BI | BR_PS_16 | BR_SETA)
-#define CFG_OR0_PRELIM         (0xffc00000) /* SCY is not used if external TA is set */
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BR_V | BR_BI | BR_PS_16 | BR_SETA)
+#define CONFIG_SYS_OR0_PRELIM          (0xffc00000) /* SCY is not used if external TA is set */
 /* SDRAM */
-#define CFG_BR1_PRELIM         (CFG_SDRAM_BASE | BR_V | BR_BI | BR_PS_32 | BR_SETA)
-#define CFG_OR1_PRELIM         (OR_ADDR_MK_FF) /* SCY is not used if external TA is set */
+#define CONFIG_SYS_BR1_PRELIM          (CONFIG_SYS_SDRAM_BASE | BR_V | BR_BI | BR_PS_32 | BR_SETA)
+#define CONFIG_SYS_OR1_PRELIM          (OR_ADDR_MK_FF) /* SCY is not used if external TA is set */
 /* PCI */
-#define CFG_BR2_PRELIM         (PCI_BASE | BR_V | BR_PS_32 | BR_SETA)
-#define CFG_OR2_PRELIM         (OR_ADDR_MK_FF)
+#define CONFIG_SYS_BR2_PRELIM          (PCI_BASE | BR_V | BR_PS_32 | BR_SETA)
+#define CONFIG_SYS_OR2_PRELIM          (OR_ADDR_MK_FF)
 /* config registers: */
-#define CFG_BR3_PRELIM         (PCI_CONFIG_BASE | BR_V | BR_BI | BR_PS_32 | BR_SETA)
-#define CFG_OR3_PRELIM         (0xffff0000)
+#define CONFIG_SYS_BR3_PRELIM          (PCI_CONFIG_BASE | BR_V | BR_BI | BR_PS_32 | BR_SETA)
+#define CONFIG_SYS_OR3_PRELIM          (0xffff0000)
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* We don't realign the flash   */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* We don't realign the flash   */
 
 /*-----------------------------------------------------------------------
  * DER - Timer Decrementer
  *-----------------------------------------------------------------------
  * Initialise to zero
  */
-#define CFG_DER                        0x00000000
+#define CONFIG_SYS_DER                 0x00000000
 
 
 /*
index b0ca5a85e4599fbe1544ce65192706e52f572a6f..b55e383b2b1010e9d68f1e1aec6b2a523efd4841 100644 (file)
@@ -61,7 +61,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER                        /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #undef CONFIG_ZERO_BOOTDELAY_CHECK     /* check for keypress on bootdelay==0 */
 
 
 #define CONFIG_PCI_SCAN_SHOW           /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0407 /* PCI Device ID: PCI-405       */
-#define CFG_PCI_CLASSCODE      0x0280  /* PCI Class Code: Network/Other*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xff000001      /* 16MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0407  /* PCI Device ID: PCI-405       */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0280  /* PCI Class Code: Network/Other*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xff000001      /* 16MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
 
 #if 0 /* test-only */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 #else
-#define CFG_PCI_PTM2LA 0xef600000      /* point to internal regs       */
-#define CFG_PCI_PTM2MS 0xffe00001      /* 2MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x00000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xef600000      /* point to internal regs       */
+#define CONFIG_SYS_PCI_PTM2MS  0xffe00001      /* 2MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
 #endif
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFD0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 196 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFD0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_IS_IN_NVRAM 1       /* use NVRAM for environment vars       */
 #define CONFIG_ENV_SIZE                0x0ff8          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-(CONFIG_ENV_SIZE+8))        /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-(CONFIG_ENV_SIZE+8))  /* Env  */
 
 #else /* Use EEPROM for environment variables */
 
                                   /* total size of a CAT24WC08 is 1024 bytes */
 #endif
 
-#define CFG_NVRAM_BASE_ADDR    0xf0200000              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         (32*1024)               /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0200000              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)               /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (NVRAM/RTC) initialization                                    */
-#define CFG_EBC_PB1AP          0x01005280  /* TWT=2,WBN=1,WBF=1,TH=1,SOR=1     */
-#define CFG_EBC_PB1CR          0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x01005280  /* TWT=2,WBN=1,WBF=1,TH=1,SOR=1     */
+#define CONFIG_SYS_EBC_PB1CR           0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (CAN0, 1) initialization                                      */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-/*#define CFG_EBC_PB2AP                  0x038056C0  / * BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+/*#define CONFIG_SYS_EBC_PB2AP           0x038056C0  / * BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (FPGA internal) initialization                                        */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF041C000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=32bit */
-#define CFG_FPGA_BASE_ADDR     0xF0400000
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF041C000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=32bit */
+#define CONFIG_SYS_FPGA_BASE_ADDR      0xF0400000
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 /* FPGA internal regs */
-#define CFG_FPGA_MODE          0x00
-#define CFG_FPGA_STATUS                0x02
-#define CFG_FPGA_TS            0x04
-#define CFG_FPGA_TS_LOW                0x06
-#define CFG_FPGA_TS_CAP0       0x10
-#define CFG_FPGA_TS_CAP0_LOW   0x12
-#define CFG_FPGA_TS_CAP1       0x14
-#define CFG_FPGA_TS_CAP1_LOW   0x16
-#define CFG_FPGA_TS_CAP2       0x18
-#define CFG_FPGA_TS_CAP2_LOW   0x1a
-#define CFG_FPGA_TS_CAP3       0x1c
-#define CFG_FPGA_TS_CAP3_LOW   0x1e
+#define CONFIG_SYS_FPGA_MODE           0x00
+#define CONFIG_SYS_FPGA_STATUS         0x02
+#define CONFIG_SYS_FPGA_TS             0x04
+#define CONFIG_SYS_FPGA_TS_LOW         0x06
+#define CONFIG_SYS_FPGA_TS_CAP0        0x10
+#define CONFIG_SYS_FPGA_TS_CAP0_LOW    0x12
+#define CONFIG_SYS_FPGA_TS_CAP1        0x14
+#define CONFIG_SYS_FPGA_TS_CAP1_LOW    0x16
+#define CONFIG_SYS_FPGA_TS_CAP2        0x18
+#define CONFIG_SYS_FPGA_TS_CAP2_LOW    0x1a
+#define CONFIG_SYS_FPGA_TS_CAP3        0x1c
+#define CONFIG_SYS_FPGA_TS_CAP3_LOW    0x1e
 
 /* FPGA Mode Reg */
-#define CFG_FPGA_MODE_CF_RESET 0x0001
-#define CFG_FPGA_MODE_TS_IRQ_ENABLE 0x0100
-#define CFG_FPGA_MODE_TS_IRQ_CLEAR  0x1000
-#define CFG_FPGA_MODE_TS_CLEAR 0x2000
+#define CONFIG_SYS_FPGA_MODE_CF_RESET  0x0001
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_ENABLE 0x0100
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_CLEAR  0x1000
+#define CONFIG_SYS_FPGA_MODE_TS_CLEAR  0x2000
 
 /* FPGA Status Reg */
-#define CFG_FPGA_STATUS_DIP0   0x0001
-#define CFG_FPGA_STATUS_DIP1   0x0002
-#define CFG_FPGA_STATUS_DIP2   0x0004
-#define CFG_FPGA_STATUS_FLASH  0x0008
-#define CFG_FPGA_STATUS_TS_IRQ 0x1000
+#define CONFIG_SYS_FPGA_STATUS_DIP0    0x0001
+#define CONFIG_SYS_FPGA_STATUS_DIP1    0x0002
+#define CONFIG_SYS_FPGA_STATUS_DIP2    0x0004
+#define CONFIG_SYS_FPGA_STATUS_FLASH   0x0008
+#define CONFIG_SYS_FPGA_STATUS_TS_IRQ  0x1000
 
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      32*1024     /* 32kByte is enough for XC2S15  */
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024     /* 32kByte is enough for XC2S15  */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00400000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00800000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00400000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00800000  /* FPGA done pin (ppc input)     */
 /* new INIT and DONE pins since board revision 1.2 (for PPC405GPr support)   */
-#define CFG_FPGA_INIT_V12      0x00008000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE_V12      0x00010000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_INIT_V12       0x00008000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE_V12       0x00010000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 #if 0 /* test-only */
-#define CFG_INIT_DCACHE_CS     7       /* use cs # 7 for data cache memory    */
-#define CFG_INIT_RAM_ADDR      0x40000000  /* use data cache                  */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_DCACHE_CS      7       /* use cs # 7 for data cache memory    */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* use data cache                  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #else
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #endif
 
 /*
index b88a17344b884a9380975029f90528cfd21ef7d9..481e3354be4d1d0dd78617f3bb5cc9b0737246fd 100644 (file)
 #define        CONFIG_PCI5441          1               /* PCI-5441 board       */
 #define CONFIG_SYS_CLK_FREQ    50000000        /* 50 MHz core clk      */
 
-#define CFG_RESET_ADDR         0x00000000      /* Hard-reset address   */
-#define CFG_EXCEPTION_ADDR     0x01000020      /* Exception entry point*/
-#define CFG_NIOS_SYSID_BASE    0x00920828      /* System id address    */
+#define CONFIG_SYS_RESET_ADDR          0x00000000      /* Hard-reset address   */
+#define CONFIG_SYS_EXCEPTION_ADDR      0x01000020      /* Exception entry point*/
+#define CONFIG_SYS_NIOS_SYSID_BASE     0x00920828      /* System id address    */
 #define        CONFIG_BOARD_EARLY_INIT_F 1     /* enable early board-spec. init*/
 
 /*------------------------------------------------------------------------
  * CACHE -- the following will support II/s and II/f. The II/s does not
  * have dcache, so the cache instructions will behave as NOPs.
  *----------------------------------------------------------------------*/
-#define CFG_ICACHE_SIZE                4096            /* 4 KByte total        */
-#define CFG_ICACHELINE_SIZE    32              /* 32 bytes/line        */
-#define CFG_DCACHE_SIZE                2048            /* 2 KByte (II/f)       */
-#define CFG_DCACHELINE_SIZE    4               /* 4 bytes/line (II/f)  */
+#define CONFIG_SYS_ICACHE_SIZE         4096            /* 4 KByte total        */
+#define CONFIG_SYS_ICACHELINE_SIZE     32              /* 32 bytes/line        */
+#define CONFIG_SYS_DCACHE_SIZE         2048            /* 2 KByte (II/f)       */
+#define CONFIG_SYS_DCACHELINE_SIZE     4               /* 4 bytes/line (II/f)  */
 
 /*------------------------------------------------------------------------
  * MEMORY BASE ADDRESSES
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0x00000000      /* FLASH base addr      */
-#define CFG_FLASH_SIZE         0x00800000      /* 8 MByte              */
-#define CFG_SDRAM_BASE         0x01000000      /* SDRAM base addr      */
-#define CFG_SDRAM_SIZE         0x01000000      /* 16 MByte             */
+#define CONFIG_SYS_FLASH_BASE          0x00000000      /* FLASH base addr      */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000      /* 8 MByte              */
+#define CONFIG_SYS_SDRAM_BASE          0x01000000      /* SDRAM base addr      */
+#define CONFIG_SYS_SDRAM_SIZE          0x01000000      /* 16 MByte             */
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (128 * 1024)    /* Reserve 128k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)    /* Reserve 128k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size      */
 
 /*------------------------------------------------------------------------
- * ENVIRONMENT -- Put environment in sector CFG_MONITOR_LEN above
- * CFG_RESET_ADDR, since we assume the monitor is stored at the
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
  * reset address, no? This will keep the environment in user region
  * of flash. NOTE: the monitor length must be multiple of sector size
  * (which is common practice).
 #define        CONFIG_ENV_IS_IN_FLASH  1               /* Environment in flash */
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
 #define CONFIG_ENV_OVERWRITE                   /* Serial change Ok     */
-#define CONFIG_ENV_ADDR        (CFG_RESET_ADDR + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_RESET_ADDR + CONFIG_SYS_MONITOR_LEN)
 
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CONSOLE_JTAG)
-#define CFG_NIOS_CONSOLE       0x00920820      /* JTAG UART base addr  */
+#define CONFIG_SYS_NIOS_CONSOLE        0x00920820      /* JTAG UART base addr  */
 #else
-#define CFG_NIOS_CONSOLE       0x009208a0      /* UART base addr       */
+#define CONFIG_SYS_NIOS_CONSOLE        0x009208a0      /* UART base addr       */
 #endif
 
-#define CFG_NIOS_FIXEDBAUD     1               /* Baudrate is fixed    */
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1               /* Baudrate is fixed    */
 #define CONFIG_BAUDRATE                115200          /* Initial baudrate     */
-#define CFG_BAUDRATE_TABLE     {115200}        /* It's fixed ;-)       */
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200}        /* It's fixed ;-)       */
 
-#define CFG_CONSOLE_INFO_QUIET 1               /* Suppress console info*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1               /* Suppress console info*/
 
 /*------------------------------------------------------------------------
  * DEBUG
  * registers, we can slow it down to 10 msec using TMRCNT. If the default
  * period is acceptable, TMRCNT can be left undefined.
  *----------------------------------------------------------------------*/
-#define CFG_NIOS_TMRBASE       0x00920860      /* Tick timer base addr */
-#define CFG_NIOS_TMRIRQ                3               /* Timer IRQ num        */
-#define CFG_NIOS_TMRMS         10              /* 10 msec per tick     */
-#define CFG_NIOS_TMRCNT        (CFG_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
-#define        CFG_HZ          (CONFIG_SYS_CLK_FREQ/(CFG_NIOS_TMRCNT + 1))
+#define CONFIG_SYS_NIOS_TMRBASE        0x00920860      /* Tick timer base addr */
+#define CONFIG_SYS_NIOS_TMRIRQ         3               /* Timer IRQ num        */
+#define CONFIG_SYS_NIOS_TMRMS          10              /* 10 msec per tick     */
+#define CONFIG_SYS_NIOS_TMRCNT (CONFIG_SYS_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
+#define        CONFIG_SYS_HZ           (CONFIG_SYS_CLK_FREQ/(CONFIG_SYS_NIOS_TMRCNT + 1))
 
 
 /*
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define        CFG_LONGHELP                            /* Provide extended help*/
-#define        CFG_PROMPT              "==> "          /* Command prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O buf size */
-#define        CFG_MAXARGS             16              /* Max command args     */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot arg buf size    */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print buf size */
-#define        CFG_LOAD_ADDR           CFG_SDRAM_BASE  /* Default load address */
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE  /* Start addr for test  */
-#define CFG_MEMTEST_END                CFG_INIT_SP - 0x00020000
+#define        CONFIG_SYS_LONGHELP                             /* Provide extended help*/
+#define        CONFIG_SYS_PROMPT               "==> "          /* Command prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O buf size */
+#define        CONFIG_SYS_MAXARGS              16              /* Max command args     */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot arg buf size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print buf size    */
+#define        CONFIG_SYS_LOAD_ADDR            CONFIG_SYS_SDRAM_BASE   /* Default load address */
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE   /* Start addr for test  */
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_INIT_SP - 0x00020000
 
 #endif /* __CONFIG_H */
index 048e8964d6b67799436bdc6281cb9faf45e2fd1c..5951d007d5151039ffb050e262b5a750d8cb50ef 100644 (file)
@@ -48,7 +48,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_PREBOOT         ""
 #define CONFIG_BOOTDELAY       5
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define        CONFIG_SYS_HUSH_PARSER          1       /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define        CFG_MAXARGS     64              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define        CONFIG_SYS_MAXARGS      64              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
-#define CFG_FLASH_BASE     0xFFF00000
-#define CFG_FLASH_MAX_SIZE  0x00100000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_FLASH_BASE      0xFFF00000
+#define CONFIG_SYS_FLASH_MAX_SIZE  0x00100000
 /* Maximum amount of RAM.
  */
-#define CFG_MAX_RAM_SIZE    0x20000000  /* 512Mb                       */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x20000000  /* 512Mb                        */
 
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-#if CFG_MONITOR_BASE >= CFG_SDRAM_BASE && \
-    CFG_MONITOR_BASE < CFG_SDRAM_BASE + CFG_MAX_RAM_SIZE
-#define CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_SDRAM_BASE && \
+    CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MAX_RAM_SIZE
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x02000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM          */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
 
 /* Size in bytes reserved for initial data
  */
-#define CFG_GBL_DATA_SIZE    128
+#define CONFIG_SYS_GBL_DATA_SIZE    128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x8000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x8000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET    CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_LOCK
 
 /*
  * Temporary buffer for serial data until the real serial driver
  * is initialised (memtest will destroy this buffer)
  */
-#define CFG_SCONSOLE_ADDR     CFG_INIT_RAM_ADDR
-#define CFG_SCONSOLE_SIZE     0x0002000
+#define CONFIG_SYS_SCONSOLE_ADDR     CONFIG_SYS_INIT_RAM_ADDR
+#define CONFIG_SYS_SCONSOLE_SIZE     0x0002000
 
 /* SDRAM 0 - 256MB
  */
-#define CFG_DBAT0L           (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT0U           (CFG_SDRAM_BASE | \
+#define CONFIG_SYS_DBAT0L            (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT0U            (CONFIG_SYS_SDRAM_BASE | \
                               BATU_BL_256M | BATU_VS | BATU_VP)
 /* SDRAM 1 - 256MB
  */
-#define CFG_DBAT1L           ((CFG_SDRAM_BASE + 0x10000000) | \
+#define CONFIG_SYS_DBAT1L            ((CONFIG_SYS_SDRAM_BASE + 0x10000000) | \
                               BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT1U           ((CFG_SDRAM_BASE + 0x10000000) | \
+#define CONFIG_SYS_DBAT1U            ((CONFIG_SYS_SDRAM_BASE + 0x10000000) | \
                               BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Init RAM in the CPU DCache (no backing memory)
  */
-#define CFG_DBAT2L           (CFG_INIT_RAM_ADDR | \
+#define CONFIG_SYS_DBAT2L            (CONFIG_SYS_INIT_RAM_ADDR | \
                               BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT2U           (CFG_INIT_RAM_ADDR | \
+#define CONFIG_SYS_DBAT2U            (CONFIG_SYS_INIT_RAM_ADDR | \
                               BATU_BL_128K | BATU_VS | BATU_VP)
 
 /* I/O and PCI memory at 0xf0000000
  */
-#define CFG_DBAT3L           (0xf0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_DBAT3U           (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT0L           CFG_DBAT0L
-#define CFG_IBAT0U           CFG_DBAT0U
-#define CFG_IBAT1L           CFG_DBAT1L
-#define CFG_IBAT1U           CFG_DBAT1U
-#define CFG_IBAT2L           CFG_DBAT2L
-#define CFG_IBAT2U           CFG_DBAT2U
-#define CFG_IBAT3L           CFG_DBAT3L
-#define CFG_IBAT3U           CFG_DBAT3U
+#define CONFIG_SYS_DBAT3L            (0xf0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_DBAT3U            (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT0L            CONFIG_SYS_DBAT0L
+#define CONFIG_SYS_IBAT0U            CONFIG_SYS_DBAT0U
+#define CONFIG_SYS_IBAT1L            CONFIG_SYS_DBAT1L
+#define CONFIG_SYS_IBAT1U            CONFIG_SYS_DBAT1U
+#define CONFIG_SYS_IBAT2L            CONFIG_SYS_DBAT2L
+#define CONFIG_SYS_IBAT2U            CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_IBAT3L            CONFIG_SYS_DBAT3L
+#define CONFIG_SYS_IBAT3U            CONFIG_SYS_DBAT3U
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  * For the detail description refer to the PCIPPC2 user's manual.
  */
-#define CFG_HZ               1000
-#define CFG_BUS_HZ            100000000 /* bus speed - 100 mhz          */
-#define CFG_CPU_CLK          300000000
-#define CFG_BUS_CLK          100000000
+#define CONFIG_SYS_HZ                1000
+#define CONFIG_SYS_BUS_HZ            100000000 /* bus speed - 100 mhz          */
+#define CONFIG_SYS_CPU_CLK           300000000
+#define CONFIG_SYS_BUS_CLK           100000000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ         (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     16      /* Max number of sectors in one bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      16      /* Max number of sectors in one bank    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
 /*
  * Note: environment is not EMBEDDED in the U-Boot code.
  * It's stored in flash separately.
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x70000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x70000)
 #define CONFIG_ENV_SIZE                0x1000  /* Size of the Environment              */
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* Size of the Environment Sector       */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
  * L2 cache
  */
-#undef CFG_L2
+#undef CONFIG_SYS_L2
 #define L2_INIT   (L2CR_L2SIZ_2M | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \
                   L2CR_L2OH_5 | L2CR_L2CTL | L2CR_L2WT)
 #define L2_ENABLE (L2_INIT | L2CR_L2E)
  * Disk-On-Chip configuration
  */
 
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices            */
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices            */
 
-#define CFG_DOC_SUPPORT_2000
-#undef CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#undef CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*-----------------------------------------------------------------------
   RTC m48t59
 #define CONFIG_NET_MULTI                       /* Multi ethernet cards support */
 
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #define CONFIG_TULIP
 
 #endif /* __CONFIG_H */
index acaab7fbf69e4e2a3b52dcfcf45624eccf86b5c4..a683a8fbb0a3e3d8470a190bb4aee959a459bce6 100644 (file)
@@ -48,7 +48,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_PREBOOT         ""
 #define CONFIG_BOOTDELAY       5
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER                1       /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define CFG_MAXARGS    64              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define CONFIG_SYS_MAXARGS     64              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
-#define CFG_FLASH_BASE     0xFFF00000
-#define CFG_FLASH_MAX_SIZE  0x00100000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_FLASH_BASE      0xFFF00000
+#define CONFIG_SYS_FLASH_MAX_SIZE  0x00100000
 /* Maximum amount of RAM.
  */
-#define CFG_MAX_RAM_SIZE    0x20000000 /* 512Mb                        */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x20000000  /* 512Mb                        */
 
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-#if CFG_MONITOR_BASE >= CFG_SDRAM_BASE && \
-    CFG_MONITOR_BASE < CFG_SDRAM_BASE + CFG_MAX_RAM_SIZE
-#define CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_SDRAM_BASE && \
+    CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MAX_RAM_SIZE
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x02000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM          */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
 
 /* Size in bytes reserved for initial data
  */
-#define CFG_GBL_DATA_SIZE    128
+#define CONFIG_SYS_GBL_DATA_SIZE    128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x8000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x8000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET    CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_LOCK
 
 /*
  * Temporary buffer for serial data until the real serial driver
  * is initialised (memtest will destroy this buffer)
  */
-#define CFG_SCONSOLE_ADDR     CFG_INIT_RAM_ADDR
-#define CFG_SCONSOLE_SIZE     0x0002000
+#define CONFIG_SYS_SCONSOLE_ADDR     CONFIG_SYS_INIT_RAM_ADDR
+#define CONFIG_SYS_SCONSOLE_SIZE     0x0002000
 
 /* SDRAM 0 - 256MB
  */
-#define CFG_DBAT0L           (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT0U           (CFG_SDRAM_BASE | \
+#define CONFIG_SYS_DBAT0L            (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT0U            (CONFIG_SYS_SDRAM_BASE | \
                               BATU_BL_256M | BATU_VS | BATU_VP)
 /* SDRAM 1 - 256MB
  */
-#define CFG_DBAT1L           ((CFG_SDRAM_BASE + 0x10000000) | \
+#define CONFIG_SYS_DBAT1L            ((CONFIG_SYS_SDRAM_BASE + 0x10000000) | \
                               BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT1U           ((CFG_SDRAM_BASE + 0x10000000) | \
+#define CONFIG_SYS_DBAT1U            ((CONFIG_SYS_SDRAM_BASE + 0x10000000) | \
                               BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Init RAM in the CPU DCache (no backing memory)
  */
-#define CFG_DBAT2L           (CFG_INIT_RAM_ADDR | \
+#define CONFIG_SYS_DBAT2L            (CONFIG_SYS_INIT_RAM_ADDR | \
                               BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_DBAT2U           (CFG_INIT_RAM_ADDR | \
+#define CONFIG_SYS_DBAT2U            (CONFIG_SYS_INIT_RAM_ADDR | \
                               BATU_BL_128K | BATU_VS | BATU_VP)
 
 /* I/O and PCI memory at 0xf0000000
  */
-#define CFG_DBAT3L           (0xf0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_DBAT3U           (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT0L           CFG_DBAT0L
-#define CFG_IBAT0U           CFG_DBAT0U
-#define CFG_IBAT1L           CFG_DBAT1L
-#define CFG_IBAT1U           CFG_DBAT1U
-#define CFG_IBAT2L           CFG_DBAT2L
-#define CFG_IBAT2U           CFG_DBAT2U
-#define CFG_IBAT3L           CFG_DBAT3L
-#define CFG_IBAT3U           CFG_DBAT3U
+#define CONFIG_SYS_DBAT3L            (0xf0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_DBAT3U            (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT0L            CONFIG_SYS_DBAT0L
+#define CONFIG_SYS_IBAT0U            CONFIG_SYS_DBAT0U
+#define CONFIG_SYS_IBAT1L            CONFIG_SYS_DBAT1L
+#define CONFIG_SYS_IBAT1U            CONFIG_SYS_DBAT1U
+#define CONFIG_SYS_IBAT2L            CONFIG_SYS_DBAT2L
+#define CONFIG_SYS_IBAT2U            CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_IBAT3L            CONFIG_SYS_DBAT3L
+#define CONFIG_SYS_IBAT3U            CONFIG_SYS_DBAT3U
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  * For the detail description refer to the PCIPPC2 user's manual.
  */
-#define CFG_HZ               1000
-#define CFG_BUS_HZ           100000000 /* bus speed - 100 mhz          */
-#define CFG_CPU_CLK          300000000
-#define CFG_BUS_CLK          100000000
+#define CONFIG_SYS_HZ                1000
+#define CONFIG_SYS_BUS_HZ            100000000 /* bus speed - 100 mhz          */
+#define CONFIG_SYS_CPU_CLK           300000000
+#define CONFIG_SYS_BUS_CLK           100000000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ         (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     16      /* Max number of sectors in one bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      16      /* Max number of sectors in one bank    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
 /*
  * Note: environment is not EMBEDDED in the U-Boot code.
  * It's stored in flash separately.
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x70000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x70000)
 #define CONFIG_ENV_SIZE                0x1000  /* Size of the Environment              */
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* Size of the Environment Sector       */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
  * L2 cache
  */
-#undef CFG_L2
+#undef CONFIG_SYS_L2
 #define L2_INIT          (L2CR_L2SIZ_2M | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \
                   L2CR_L2OH_5 | L2CR_L2CTL | L2CR_L2WT)
 #define L2_ENABLE (L2_INIT | L2CR_L2E)
  * Disk-On-Chip configuration
  */
 
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices            */
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices            */
 
-#define CFG_DOC_SUPPORT_2000
-#undef CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#undef CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*-----------------------------------------------------------------------
   RTC m48t59
 #define CONFIG_NET_MULTI               /* Multi ethernet cards support */
 
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #define CONFIG_TULIP
 
 
 #define CONFIG_SCSI_SYM53C8XX
 #define CONFIG_SCSI_DEV_ID     0x000B  /* 53c896 */
-#define CFG_SCSI_MAX_LUN       8       /* number of supported LUNs */
-#define CFG_SCSI_MAX_SCSI_ID   15      /* maximum SCSI ID (0..6) */
-#define CFG_SCSI_MAX_DEVICE    CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN /* maximum Target devices */
-#define CFG_SCSI_SPIN_UP_TIME  2
-#define CFG_SCSI_SCAN_BUS_REVERSE 0
+#define CONFIG_SYS_SCSI_MAX_LUN        8       /* number of supported LUNs */
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    15      /* maximum SCSI ID (0..6) */
+#define CONFIG_SYS_SCSI_MAX_DEVICE     CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN /* maximum Target devices */
+#define CONFIG_SYS_SCSI_SPIN_UP_TIME   2
+#define CONFIG_SYS_SCSI_SCAN_BUS_REVERSE 0
 #define CONFIG_DOS_PARTITION
 #define CONFIG_MAC_PARTITION
 #define CONFIG_ISO_PARTITION
index 6e8d7ada192909eb16ea97ce4350daec9401abd8..2966979cb8550d6d297f924a147d3daeadfb5788 100644 (file)
@@ -79,8 +79,8 @@
 
 #define CONFIG_NAND_LEGACY
 
-#define         CFG_HUSH_PARSER
-#define         CFG_PROMPT_HUSH_PS2 "> "
+#define         CONFIG_SYS_HUSH_PARSER
+#define         CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 /**************************************************************
  * I2C Stuff:
  * the PIP405 is equiped with an Atmel 24C128/256 EEPROM at address
  * The Atmel EEPROM uses 16Bit addressing.
  ***************************************************************/
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          50000   /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           50000   /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x53
-#define CFG_I2C_EEPROM_ADDR_LEN        2
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x53
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 #define CONFIG_ENV_IS_IN_EEPROM    1       /* use EEPROM for environment vars */
 #define CONFIG_ENV_OFFSET          0x000   /* environment starts at the beginning of the EEPROM */
 #define CONFIG_ENV_SIZE            0x800   /* 2 kBytes may be used for env vars */
 
-#undef CFG_I2C_EEPROM_ADDR_OVERFLOW
-#define CFG_EEPROM_PAGE_WRITE_BITS 6   /* The Atmel 24C128/256 has     */
+#undef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6    /* The Atmel 24C128/256 has     */
                                        /* 64 byte page write mode using*/
                                        /* last 6 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 
 /***************************************************************
 /***************************************************************
  * defines if the console is stored in the environment
  ***************************************************************/
-#define CFG_CONSOLE_IS_IN_ENV  /* stdin, stdout and stderr are in evironment */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   /* stdin, stdout and stderr are in evironment */
 /***************************************************************
  * defines if an overwrite_console function exists
  *************************************************************/
-#define CFG_CONSOLE_OVERWRITE_ROUTINE
-#define CFG_CONSOLE_INFO_QUIET
+#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#define CONFIG_SYS_CONSOLE_INFO_QUIET
 /***************************************************************
  * defines if the overwrite_console should be stored in the
  * environment
  **************************************************************/
-#undef CFG_CONSOLE_ENV_OVERWRITE
+#undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 
 /**************************************************************
  * loads config
  *************************************************************/
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MISC_INIT_R
 /***********************************************************
  * Miscellaneous configurable options
  **********************************************************/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 1 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 1 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_BASE_BAUD       691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR          0x400000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI_HOST PCI_HOST_FORCE /* configure as pci-host        */
 #define CONFIG_PCI_PNP                 /* pci plug-and-play            */
                                        /* resource configuration       */
-#define CFG_PCI_SUBSYS_VENDORID 0x0000 /* PCI Vendor ID: to-do!!!      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000 /* PCI Device ID: to-do!!!      */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFF80000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Monitor   */
-#define CFG_MALLOC_LEN         (1024 * 1024)   /* Reserve 1024 kB for malloc() */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFF80000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)   /* Reserve 1024 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*
  * Init Memory Controller:
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in On Chip SRAM)
  */
-#define CFG_TEMP_STACK_OCM     1
-#define CFG_OCM_DATA_ADDR      0xF0000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR       /* inside of On Chip SRAM    */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE       /* End of On Chip SRAM         */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF0000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR        /* inside of On Chip SRAM    */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE        /* End of On Chip SRAM         */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
 /***********************************************************************
  * External peripheral base address
  ***********************************************************************/
-#define CFG_ISA_IO_BASE_ADDRESS 0xE8000000
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0xE8000000
 
 /***********************************************************************
  * Last Stage Init
 /************************************************************
  * IDE/ATA stuff
  ************************************************************/
-#define CFG_IDE_MAXBUS         2   /* max. 2 IDE busses        */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          2   /* max. 2 IDE busses        */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      CFG_ISA_IO_BASE_ADDRESS /* base address */
-#define CFG_ATA_IDE0_OFFSET    0x01F0  /* ide0 offste */
-#define CFG_ATA_IDE1_OFFSET    0x0170  /* ide1 offset */
-#define CFG_ATA_DATA_OFFSET    0       /* data reg offset      */
-#define CFG_ATA_REG_OFFSET     0       /* reg offset */
-#define CFG_ATA_ALT_OFFSET     0x200   /* alternate register offset */
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_ISA_IO_BASE_ADDRESS /* base address */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x01F0  /* ide0 offste */
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0x0170  /* ide1 offset */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0       /* data reg offset      */
+#define CONFIG_SYS_ATA_REG_OFFSET      0       /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x200   /* alternate register offset */
 
 #undef CONFIG_IDE_8xx_DIRECT           /* no pcmcia interface required */
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
  * SCSI support (experimental) only SYM53C8xx supported
  ************************************************************/
 #define CONFIG_SCSI_SYM53C8XX
-#define CFG_SCSI_MAX_LUN       8       /* number of supported LUNs */
-#define CFG_SCSI_MAX_SCSI_ID   7       /* maximum SCSI ID (0..6) */
-#define CFG_SCSI_MAX_DEVICE    CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN /* maximum Target devices */
-#define CFG_SCSI_SPIN_UP_TIME  2
+#define CONFIG_SYS_SCSI_MAX_LUN        8       /* number of supported LUNs */
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    7       /* maximum SCSI ID (0..6) */
+#define CONFIG_SYS_SCSI_MAX_DEVICE     CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN /* maximum Target devices */
+#define CONFIG_SYS_SCSI_SPIN_UP_TIME   2
 
 /************************************************************
  * Disk-On-Chip configuration
  ************************************************************/
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices            */
-#define CFG_DOC_SHORT_TIMEOUT
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices            */
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /************************************************************
  * DISK Partition support
 #define CONFIG_USB_STORAGE
 
 /* Enable needed helper functions */
-#define CFG_DEVICE_DEREGISTER          /* needs device_deregister */
+#define CONFIG_SYS_DEVICE_DEREGISTER           /* needs device_deregister */
 
 /************************************************************
  * Debug support
index 5d2bc2f9249559afb6188b6c7ba621daec490c96..5b1fcff9c2c6171740386d234d1882710f67c13b 100644 (file)
 #define CONFIG_PK1C20          1               /* PK1C20 board         */
 #define CONFIG_SYS_CLK_FREQ    50000000        /* 50 MHz core clk      */
 
-#define CFG_RESET_ADDR         0x00000000      /* Hard-reset address   */
-#define CFG_EXCEPTION_ADDR     0x01000020      /* Exception entry point*/
-#define CFG_NIOS_SYSID_BASE    0x021208b8      /* System id address    */
+#define CONFIG_SYS_RESET_ADDR          0x00000000      /* Hard-reset address   */
+#define CONFIG_SYS_EXCEPTION_ADDR      0x01000020      /* Exception entry point*/
+#define CONFIG_SYS_NIOS_SYSID_BASE     0x021208b8      /* System id address    */
 #define CONFIG_BOARD_EARLY_INIT_F 1    /* enable early board-spec. init*/
 
 /*------------------------------------------------------------------------
  * CACHE -- the following will support II/s and II/f. The II/s does not
  * have dcache, so the cache instructions will behave as NOPs.
  *----------------------------------------------------------------------*/
-#define CFG_ICACHE_SIZE                4096            /* 4 KByte total        */
-#define CFG_ICACHELINE_SIZE    32              /* 32 bytes/line        */
-#define CFG_DCACHE_SIZE                2048            /* 2 KByte (II/f)       */
-#define CFG_DCACHELINE_SIZE    4               /* 4 bytes/line (II/f)  */
+#define CONFIG_SYS_ICACHE_SIZE         4096            /* 4 KByte total        */
+#define CONFIG_SYS_ICACHELINE_SIZE     32              /* 32 bytes/line        */
+#define CONFIG_SYS_DCACHE_SIZE         2048            /* 2 KByte (II/f)       */
+#define CONFIG_SYS_DCACHELINE_SIZE     4               /* 4 bytes/line (II/f)  */
 
 /*------------------------------------------------------------------------
  * MEMORY BASE ADDRESSES
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0x00000000      /* FLASH base addr      */
-#define CFG_FLASH_SIZE         0x00800000      /* 8 MByte              */
-#define CFG_SDRAM_BASE         0x01000000      /* SDRAM base addr      */
-#define CFG_SDRAM_SIZE         0x01000000      /* 16 MByte             */
-#define CFG_SRAM_BASE          0x02000000      /* SRAM base addr       */
-#define CFG_SRAM_SIZE          0x00100000      /* 1 MB (only 1M mapped)*/
+#define CONFIG_SYS_FLASH_BASE          0x00000000      /* FLASH base addr      */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000      /* 8 MByte              */
+#define CONFIG_SYS_SDRAM_BASE          0x01000000      /* SDRAM base addr      */
+#define CONFIG_SYS_SDRAM_SIZE          0x01000000      /* 16 MByte             */
+#define CONFIG_SYS_SRAM_BASE           0x02000000      /* SRAM base addr       */
+#define CONFIG_SYS_SRAM_SIZE           0x00100000      /* 1 MB (only 1M mapped)*/
 
 /*------------------------------------------------------------------------
  * MEMORY ORGANIZATION
  *     -Global data is placed below the heap.
  *     -The stack is placed below global data (&grows down).
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 128k         */
-#define CFG_GBL_DATA_SIZE      128             /* Global data size rsvd*/
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 128k         */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* Global data size rsvd*/
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_OFFSET    (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP            CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP             CONFIG_SYS_GBL_DATA_OFFSET
 
 /*------------------------------------------------------------------------
  * FLASH (AM29LV065D)
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_SECT     128             /* Max # sects per bank */
-#define CFG_MAX_FLASH_BANKS    1               /* Max # of flash banks */
-#define CFG_FLASH_ERASE_TOUT   8000            /* Erase timeout (msec) */
-#define CFG_FLASH_WRITE_TOUT   100             /* Write timeout (msec) */
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max # sects per bank */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max # of flash banks */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000            /* Erase timeout (msec) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    100             /* Write timeout (msec) */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size      */
 
 /*------------------------------------------------------------------------
- * ENVIRONMENT -- Put environment in sector CFG_MONITOR_LEN above
- * CFG_RESET_ADDR, since we assume the monitor is stored at the
+ * ENVIRONMENT -- Put environment in sector CONFIG_SYS_MONITOR_LEN above
+ * CONFIG_SYS_RESET_ADDR, since we assume the monitor is stored at the
  * reset address, no? This will keep the environment in user region
  * of flash. NOTE: the monitor length must be multiple of sector size
  * (which is common practice).
 #define CONFIG_ENV_IS_IN_FLASH 1               /* Environment in flash */
 #define CONFIG_ENV_SIZE                (64 * 1024)     /* 64 KByte (1 sector)  */
 #define CONFIG_ENV_OVERWRITE                   /* Serial change Ok     */
-#define CONFIG_ENV_ADDR        (CFG_RESET_ADDR + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_RESET_ADDR + CONFIG_SYS_MONITOR_LEN)
 
 /*------------------------------------------------------------------------
  * CONSOLE
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CONSOLE_JTAG)
-#define CFG_NIOS_CONSOLE       0x021208b0      /* JTAG UART base addr  */
+#define CONFIG_SYS_NIOS_CONSOLE        0x021208b0      /* JTAG UART base addr  */
 #else
-#define CFG_NIOS_CONSOLE       0x02120840      /* UART base addr       */
+#define CONFIG_SYS_NIOS_CONSOLE        0x02120840      /* UART base addr       */
 #endif
 
-#define CFG_NIOS_FIXEDBAUD     1               /* Baudrate is fixed    */
+#define CONFIG_SYS_NIOS_FIXEDBAUD      1               /* Baudrate is fixed    */
 #define CONFIG_BAUDRATE                115200          /* Initial baudrate     */
-#define CFG_BAUDRATE_TABLE     {115200}        /* It's fixed ;-)       */
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200}        /* It's fixed ;-)       */
 
-#define CFG_CONSOLE_INFO_QUIET 1               /* Suppress console info*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1               /* Suppress console info*/
 
 /*------------------------------------------------------------------------
- * EPCS Device -- wne CFG_NIOS_EPCSBASE is defined code/commands for
+ * EPCS Device -- wne CONFIG_SYS_NIOS_EPCSBASE is defined code/commands for
  * epcs device access is enabled. The base address is the epcs
  * _register_ base address, NOT THE ADDRESS OF THE MEMORY BLOCK.
  * The register base is currently at offset 0x600 from the memory base.
  *----------------------------------------------------------------------*/
-#define CFG_NIOS_EPCSBASE      0x02100200      /* EPCS register base   */
+#define CONFIG_SYS_NIOS_EPCSBASE       0x02100200      /* EPCS register base   */
 
 /*------------------------------------------------------------------------
  * DEBUG
  * registers, we can slow it down to 10 msec using TMRCNT. If the default
  * period is acceptable, TMRCNT can be left undefined.
  *----------------------------------------------------------------------*/
-#define CFG_NIOS_TMRBASE       0x02120820      /* Tick timer base addr */
-#define CFG_NIOS_TMRIRQ                3               /* Timer IRQ num        */
-#define CFG_NIOS_TMRMS         10              /* 10 msec per tick     */
-#define CFG_NIOS_TMRCNT (CFG_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
-#define CFG_HZ         (CONFIG_SYS_CLK_FREQ/(CFG_NIOS_TMRCNT + 1))
+#define CONFIG_SYS_NIOS_TMRBASE        0x02120820      /* Tick timer base addr */
+#define CONFIG_SYS_NIOS_TMRIRQ         3               /* Timer IRQ num        */
+#define CONFIG_SYS_NIOS_TMRMS          10              /* 10 msec per tick     */
+#define CONFIG_SYS_NIOS_TMRCNT (CONFIG_SYS_NIOS_TMRMS * (CONFIG_SYS_CLK_FREQ/1000))
+#define CONFIG_SYS_HZ          (CONFIG_SYS_CLK_FREQ/(CONFIG_SYS_NIOS_TMRCNT + 1))
 
 /*------------------------------------------------------------------------
  * STATUS LED -- Provides a simple blinking led. For Nios2 each board
  * must implement its own led routines -- leds are, after all,
  * board-specific, no?
  *----------------------------------------------------------------------*/
-#define CFG_LEDPIO_ADDR                0x02120870      /* LED PIO base addr    */
+#define CONFIG_SYS_LEDPIO_ADDR         0x02120870      /* LED PIO base addr    */
 #define CONFIG_STATUS_LED                      /* Enable status driver */
 
 #define STATUS_LED_BIT         1               /* Bit-0 on PIO         */
 #define STATUS_LED_STATE       1               /* Blinking             */
-#define STATUS_LED_PERIOD      (500/CFG_NIOS_TMRMS) /* Every 500 msec  */
+#define STATUS_LED_PERIOD      (500/CONFIG_SYS_NIOS_TMRMS) /* Every 500 msec   */
 
 /*------------------------------------------------------------------------
  * ETHERNET -- The header file for the SMC91111 driver hurts my eyes ...
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CMD_IDE)
 #define CONFIG_IDE_PREINIT                     /* Implement id_preinit */
-#define CFG_IDE_MAXBUS         1               /* 1 IDE bus            */
-#define CFG_IDE_MAXDEVICE      1               /* 1 drive per IDE bus  */
-
-#define CFG_ATA_BASE_ADDR      0x00900800      /* ATA base addr        */
-#define CFG_ATA_IDE0_OFFSET    0x0000          /* IDE0 offset          */
-#define CFG_ATA_DATA_OFFSET    0x0040          /* Data IO offset       */
-#define CFG_ATA_REG_OFFSET     0x0040          /* Register offset      */
-#define CFG_ATA_ALT_OFFSET     0x0100          /* Alternate reg offset */
-#define CFG_ATA_STRIDE          4              /* Width betwix addrs   */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* 1 IDE bus            */
+#define CONFIG_SYS_IDE_MAXDEVICE       1               /* 1 drive per IDE bus  */
+
+#define CONFIG_SYS_ATA_BASE_ADDR       0x00900800      /* ATA base addr        */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000          /* IDE0 offset          */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0040          /* Data IO offset       */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0040          /* Register offset      */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100          /* Alternate reg offset */
+#define CONFIG_SYS_ATA_STRIDE          4               /* Width betwix addrs   */
 #define CONFIG_DOS_PARTITION
 
 /* Board-specific cf regs */
-#define CFG_CF_PRESENT         0x00900880      /* CF Present PIO base  */
-#define CFG_CF_POWER           0x00900890      /* CF Power FET PIO base*/
-#define CFG_CF_ATASEL          0x009008a0      /* CF ATASEL PIO base   */
+#define CONFIG_SYS_CF_PRESENT          0x00900880      /* CF Present PIO base  */
+#define CONFIG_SYS_CF_POWER            0x00900890      /* CF Power FET PIO base*/
+#define CONFIG_SYS_CF_ATASEL           0x009008a0      /* CF ATASEL PIO base   */
 
 #endif
 
  * JFFS2
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_CMD_JFFS2)
-#define CFG_JFFS_CUSTOM_PART                   /* board defined part   */
+#define CONFIG_SYS_JFFS_CUSTOM_PART                    /* board defined part   */
 #endif
 
 /*------------------------------------------------------------------------
  * MISC
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                           /* Provide extended help*/
-#define CFG_PROMPT             "==> "          /* Command prompt       */
-#define CFG_CBSIZE             256             /* Console I/O buf size */
-#define CFG_MAXARGS            16              /* Max command args     */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot arg buf size    */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print buf size */
-#define CFG_LOAD_ADDR          CFG_SDRAM_BASE  /* Default load address */
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE  /* Start addr for test  */
-#define CFG_MEMTEST_END                CFG_INIT_SP - 0x00020000
-
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_LONGHELP                            /* Provide extended help*/
+#define CONFIG_SYS_PROMPT              "==> "          /* Command prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O buf size */
+#define CONFIG_SYS_MAXARGS             16              /* Max command args     */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot arg buf size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print buf size */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE   /* Default load address */
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE   /* Start addr for test  */
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_INIT_SP - 0x00020000
+
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #endif /* __CONFIG_H */
index 337cbfb1e2329512f3c1bc66c30999f337809002..675dbe66769eb4add7ef7e51494268fdc6c7cdbc 100644 (file)
@@ -49,7 +49,7 @@
 
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818            /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000500 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000500 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #undef CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*
  * NAND-FLASH stuff
  */
-#define CFG_NAND_BASE_LIST     {CFG_NAND_BASE}
+#define CONFIG_SYS_NAND_BASE_LIST      {CONFIG_SYS_NAND_BASE}
 #define NAND_MAX_CHIPS          1
-#define CFG_MAX_NAND_DEVICE    1         /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1         /* Max number of NAND devices */
 #define NAND_BIG_DELAY_US      25
 
-#define CFG_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
-#define CFG_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
-#define CFG_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
-#define CFG_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
+#define CONFIG_SYS_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
 
-#define CFG_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
-#define CFG_NAND_QUIET          1
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
+#define CONFIG_SYS_NAND_QUIET          1
 
 /*
  * PCI stuff
 
 #define CONFIG_PCI_CONFIG_HOST_BRIDGE 1 /* don't skip host bridge config*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0xf8000001      /* 128MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x08000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xf8000001      /* 128MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x08000000      /* Host: use this pci address   */
 
 /*
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         1               /* max. 1 IDE busses    */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* max. 1 IDE busses    */
 /* max. 1 drives per IDE bus */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1)
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1)
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register access */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register access */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * FLASH organization
  */
 #define FLASH_BASE0_PRELIM     0xFFC00000 /* FLASH bank #0 */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms) */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width) */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st addr for flash config cycles */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd addr for flash config cycles */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width) */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st addr for flash config cycles */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd addr for flash config cycles */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector */
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFA0000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (384 * 1024)    /* Reserve 384kB for Monitor */
-#define CFG_MALLOC_LEN         (384 * 1024)    /* Reserve 384kB for malloc() */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFA0000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (384 * 1024)    /* Reserve 384kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (384 * 1024)    /* Reserve 384kB for malloc() */
 
 /*
  * Environment Variable setup
  * I2C EEPROM (24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM 24WC16 */
-#define CFG_EEPROM_WREN         1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM 24WC16 */
+#define CONFIG_SYS_EEPROM_WREN         1
 
 /* 24WC16 */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The 24WC16 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The 24WC16 has   */
                                        /* 16 byte page write mode using */
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * External Bus Controller (EBC) Setup
 #define DUART1_BA      0xF0000408          /* DUART Base Address       */
 #define RTC_BA         0xF0000500          /* RTC Base Address         */
 #define VGA_BA         0xF1000000          /* Epson VGA Base Address   */
-#define CFG_NAND_BASE  0xF4000000          /* NAND FLASH Base Address  */
+#define CONFIG_SYS_NAND_BASE   0xF4000000          /* NAND FLASH Base Address  */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization */
 /* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
-#define CFG_EBC_PB0AP          0x92015480
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
 /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
-#define CFG_EBC_PB0CR          0xFFC5A000
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000
 
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH) initialization */
-#define CFG_EBC_PB1AP          0x92015480
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
 /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit */
-#define CFG_EBC_PB1CR          0xF4018000
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization */
 /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2AP          0x010053C0
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0
 /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit */
-#define CFG_EBC_PB2CR          0xF0018000
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000
 
 /* Memory Bank 3 (16 Bit Peripheral: FPGA internal, dig. IO) initialization */
 /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3AP          0x010053C0
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0
 /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
-#define CFG_EBC_PB3CR          0xF011A000
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000
 
 /*
  * FPGA stuff
  */
-#define CFG_FPGA_BASE_ADDR 0xF0100100      /* FPGA internal Base Address */
+#define CONFIG_SYS_FPGA_BASE_ADDR 0xF0100100       /* FPGA internal Base Address */
 
 /* FPGA internal regs */
-#define CFG_FPGA_CTRL          0x000
+#define CONFIG_SYS_FPGA_CTRL           0x000
 
 /* FPGA Control Reg */
-#define CFG_FPGA_CTRL_CF_RESET 0x0001
-#define CFG_FPGA_CTRL_WDI      0x0002
-#define CFG_FPGA_CTRL_PS2_RESET 0x0020
+#define CONFIG_SYS_FPGA_CTRL_CF_RESET  0x0001
+#define CONFIG_SYS_FPGA_CTRL_WDI       0x0002
+#define CONFIG_SYS_FPGA_CTRL_PS2_RESET 0x0020
 
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now */
-#define CFG_FPGA_MAX_SIZE      128*1024    /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output) */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output) */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input) */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input) */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output) */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output) */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input) */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input) */
 
 /*
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM  */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM  */
 
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs
  */
-#define CFG_GPIO0_OSRH         0x00000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-#define CFG_GPIO0_ISR1L                0x15555445
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0x77FE0014
+#define CONFIG_SYS_GPIO0_OSRH          0x00000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0x77FE0014
 
-#define CFG_DUART_RST          (0x80000000 >> 14)
-#define CFG_EEPROM_WP          (0x80000000 >> 0)
+#define CONFIG_SYS_DUART_RST           (0x80000000 >> 14)
+#define CONFIG_SYS_EEPROM_WP           (0x80000000 >> 0)
 
 /*
  * Internal Definitions
  */
 #define CONFIG_USB_OHCI_NEW    1
 #define CONFIG_PCI_OHCI                1
-#define CFG_OHCI_SWAP_REG_ACCESS 1
-#define CFG_USB_OHCI_MAX_ROOT_PORTS 15
-#define CFG_USB_OHCI_SLOT_NAME "ohci_pci"
+#define CONFIG_SYS_OHCI_SWAP_REG_ACCESS 1
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 15
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "ohci_pci"
 #define CONFIG_USB_STORAGE     1
 
 #endif /* __CONFIG_H */
index 2676d7d357f704b0bd9e69646915f474e21a3514..e250e0338d5c873e1f87ca072d2582db75d576ac 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MPC5xxx         1       /* This is an MPC5xxx CPU */
 #define CONFIG_PM520           1       /* ... on PM520 board */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33MHz */
 
 #define CONFIG_MISC_INIT_R
 
@@ -47,7 +47,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                9600    /* ... at 9600 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 
 #ifdef CONFIG_MPC5200  /* MPC5100 PCI is not supported yet. */
@@ -72,7 +72,7 @@
 #define CONFIG_NET_MULTI       1
 #define CONFIG_MII             1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #undef  CONFIG_NS8382X
 
 #endif
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 #endif
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x58
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 /*
  * Disk-On-Chip configuration
  */
 
-#define CFG_DOC_SHORT_TIMEOUT
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices    */
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices    */
 
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
-#define CFG_DOC_BASE           0xE0000000
-#define CFG_DOC_SIZE           0x00100000
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_BASE            0xE0000000
+#define CONFIG_SYS_DOC_SIZE            0x00100000
 
 #if defined(CONFIG_BOOT_ROM)
 /*
  *               0xFD000000 for 16 MB
  *               0xFD800000 for  8 MB
  */
-#define CFG_FLASH_BASE         0xFA000000
-#define CFG_FLASH_SIZE         0x04000000
-#define CFG_BOOTROM_BASE       0xFFF00000
-#define CFG_BOOTROM_SIZE       0x00080000
+#define CONFIG_SYS_FLASH_BASE          0xFA000000
+#define CONFIG_SYS_FLASH_SIZE          0x04000000
+#define CONFIG_SYS_BOOTROM_BASE        0xFFF00000
+#define CONFIG_SYS_BOOTROM_SIZE        0x00080000
 #define CONFIG_ENV_ADDR                (0xFDF00000 + 0x40000)
 #else
 /*
  *               0xFF000000 for 16 MB
  *               0xFF800000 for  8 MB
  */
-#define CFG_FLASH_BASE         0xFC000000
-#define CFG_FLASH_SIZE         0x04000000
+#define CONFIG_SYS_FLASH_BASE          0xFC000000
+#define CONFIG_SYS_FLASH_SIZE          0x04000000
 #define CONFIG_ENV_ADDR                (0xFFF00000 + 0x40000)
 #endif
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
 
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION           /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION            /* "Real" (hardware) sectors protection */
 
 #define PHYS_FLASH_SECT_SIZE   0x00040000 /* 256 KB sectors (x2) */
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xf0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xf0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x10000004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x10000004
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
 #if defined(CONFIG_BOOT_ROM)
-#define CFG_BOOTCS_START       CFG_BOOTROM_BASE
-#define CFG_BOOTCS_SIZE                CFG_BOOTROM_SIZE
-#define CFG_BOOTCS_CFG         0x00047800
-#define CFG_CS0_START          CFG_BOOTROM_BASE
-#define CFG_CS0_SIZE           CFG_BOOTROM_SIZE
-#define CFG_CS1_START          CFG_FLASH_BASE
-#define CFG_CS1_SIZE           CFG_FLASH_SIZE
-#define CFG_CS1_CFG            0x0004FF00
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_BOOTROM_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_BOOTROM_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047800
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_BOOTROM_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_BOOTROM_SIZE
+#define CONFIG_SYS_CS1_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS1_SIZE            CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_CS1_CFG             0x0004FF00
 #else
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x0004FF00
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
-#define CFG_CS1_START          CFG_DOC_BASE
-#define CFG_CS1_SIZE           CFG_DOC_SIZE
-#define CFG_CS1_CFG            0x00047800
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x0004FF00
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_CS1_START           CONFIG_SYS_DOC_BASE
+#define CONFIG_SYS_CS1_SIZE            CONFIG_SYS_DOC_SIZE
+#define CONFIG_SYS_CS1_CFG             0x00047800
 #endif
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #undef CONFIG_IDE_RESET                /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 2 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 2 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                                */
-#define CFG_ATA_STRIDE          4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #endif /* __CONFIG_H */
index f6253613f19f9ec6ead4219d51ce6a1e991eb68b..b58f529b964a4de91d01941e6cb75a355b9aec0a 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 
 /*
  * High Level Configuration Options
@@ -55,8 +55,8 @@
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xFE
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xFE
 /*
  * Software (bit-bang) I2C driver configuration
  */
@@ -72,7 +72,7 @@
 
 
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR       0x51
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51
 
 /*
  * select serial console configuration
  * - Tx-CLK is CLK10
  */
 #define        CONFIG_ETHER_ON_FCC1
-# define CFG_CMXFCR_MASK1      (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_MASK1       (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
 #ifndef CONFIG_DB_CR826_J30x_ON
-# define CFG_CMXFCR_VALUE1     (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK10)
+# define CONFIG_SYS_CMXFCR_VALUE1      (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK10)
 #else
-# define CFG_CMXFCR_VALUE1     (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
+# define CONFIG_SYS_CMXFCR_VALUE1      (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
 #endif
 /*
  * - Rx-CLK is CLK15
  * - Tx-CLK is CLK14
  */
 #define        CONFIG_ETHER_ON_FCC2
-# define CFG_CMXFCR_MASK2      (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE2     (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CMXFCR_MASK2       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE2      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
 /*
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 /* system clock rate (CLKIN) - equal to the 60x and local bus speed */
 #define CONFIG_8260_CLKIN      64000000        /* in Hz */
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
  * Disk-On-Chip configuration
  */
 
-#define CFG_DOC_SHORT_TIMEOUT
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices    */
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices    */
 
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END        0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR   0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR    0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_RESET_ADDRESS 0xFDFFFFFC    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFDFFFFFC     /* "bad" address                */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Flash and Boot ROM mapping
  */
 #ifdef CONFIG_FLASH_32MB
-#define        CFG_FLASH0_BASE         0x40000000
-#define        CFG_FLASH0_SIZE         0x02000000
+#define        CONFIG_SYS_FLASH0_BASE          0x40000000
+#define        CONFIG_SYS_FLASH0_SIZE          0x02000000
 #else
-#define        CFG_FLASH0_BASE         0xFF000000
-#define        CFG_FLASH0_SIZE         0x00800000
+#define        CONFIG_SYS_FLASH0_BASE          0xFF000000
+#define        CONFIG_SYS_FLASH0_SIZE          0x00800000
 #endif
-#define        CFG_BOOTROM_BASE        0xFF800000
-#define        CFG_BOOTROM_SIZE        0x00080000
-#define CFG_DOC_BASE           0xFF800000
-#define CFG_DOC_SIZE           0x00100000
+#define        CONFIG_SYS_BOOTROM_BASE 0xFF800000
+#define        CONFIG_SYS_BOOTROM_SIZE 0x00080000
+#define CONFIG_SYS_DOC_BASE            0xFF800000
+#define CONFIG_SYS_DOC_SIZE            0x00100000
 
 /* Flash bank size (for preliminary settings)
  */
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
+#define CONFIG_SYS_FLASH_SIZE CONFIG_SYS_FLASH0_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
 #ifdef CONFIG_FLASH_32MB
-#define CFG_MAX_FLASH_SECT     135     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      135     /* max num of sects on one chip */
 #else
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 #endif
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #if 0
 /* Start port with environment in flash; switch to EEPROM later */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+0x40000)
 #define CONFIG_ENV_SIZE                0x40000
 #define CONFIG_ENV_SECT_SIZE   0x40000
 #else
 /* Final version: environment in EEPROM */
 #define CONFIG_ENV_IS_IN_EEPROM        1
-#define CFG_I2C_EEPROM_ADDR    0x58
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 #define CONFIG_ENV_OFFSET              512
 #define CONFIG_ENV_SIZE                (2048 - 512)
 #endif
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #if defined(CONFIG_BOOT_ROM)
-#define CFG_HRCW_MASTER                (HRCW_BPS01 | HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_BPS01 | HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
 #else
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
 #endif
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE, local SDRAM
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE, local SDRAM
  * is mapped at SDRAM_BASE2_PRELIM.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         CFG_FLASH0_BASE
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-# define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+# define CONFIG_SYS_RAMBOOT
 #endif
 
 #ifdef CONFIG_PCI
 #define CONFIG_PCI_PNP
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #endif
 
 /*
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL  (HID0_ICE|HID0_IFEM|HID0_ABE)
-#define CFG_HID2        0
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE|HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  */
 
 #define BCR_APD01       0x10000000
-#define CFG_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
+#define CONFIG_SYS_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                             4-31
  *-----------------------------------------------------------------------
  */
 #if 0
-#define CFG_SIUMCR     (SIUMCR_DPPC00|SIUMCR_APPC10|SIUMCR_CS10PC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10|SIUMCR_CS10PC01)
 #else
-#define CFG_SIUMCR     (SIUMCR_DPPC10|SIUMCR_APPC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC10|SIUMCR_APPC10)
 #endif
 
 
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR        (SCCR_DFBRG00)
+#define CONFIG_SYS_SCCR        (SCCR_DFBRG00)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
 
        /* Initialize SDRAM on local bus
         */
-#define CFG_INIT_LOCAL_SDRAM
+#define CONFIG_SYS_INIT_LOCAL_SDRAM
 
 
 /* Minimum mask to separate preliminary
  * address ranges for CS[0:2]
  */
-#define CFG_MIN_AM_MASK        0xC0000000
+#define CONFIG_SYS_MIN_AM_MASK 0xC0000000
 
 /*
  * we use the same values for 32 MB and 128 MB SDRAM
  * refresh rate = 7.73 uS (64 MHz Bus Clock)
  */
-#define CFG_MPTPR       0x2000
-#define CFG_PSRT        0x0E
+#define CONFIG_SYS_MPTPR       0x2000
+#define CONFIG_SYS_PSRT        0x0E
 
-#define CFG_MRS_OFFS   0x00000000
+#define CONFIG_SYS_MRS_OFFS    0x00000000
 
 
 #if defined(CONFIG_BOOT_ROM)
 /*
  * Bank 0 - Boot ROM (8 bit wide)
  */
-#define CFG_BR0_PRELIM ((CFG_BOOTROM_BASE & BRx_BA_MSK)|\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_BOOTROM_BASE & BRx_BA_MSK)|\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM (P2SZ_TO_AM(CFG_BOOTROM_SIZE)   |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BOOTROM_SIZE)    |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 /*
  * Bank 1 - Flash (64 bit wide)
  */
-#define CFG_BR1_PRELIM ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)   |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 /*
  * Bank 0 - Flash (64 bit wide)
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (P2SZ_TO_AM(CFG_FLASH_SIZE)    |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 /*
  * Bank 1 - Disk-On-Chip
  */
-#define CFG_BR1_PRELIM ((CFG_DOC_BASE & BRx_BA_MSK)    |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_DOC_BASE & BRx_BA_MSK)     |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM (P2SZ_TO_AM(CFG_DOC_SIZE)       |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_DOC_SIZE)        |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 /* Bank 2 - SDRAM
  */
 
-#ifndef CFG_RAMBOOT
-#define CFG_BR2_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR2_8COL    (CFG_MIN_AM_MASK               |\
+#define CONFIG_SYS_OR2_8COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A9             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL  (PSDMR_SDAM_A13_IS_A5           |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_SDAM_A13_IS_A5           |\
                         PSDMR_BSMA_A14_A16             |\
                         PSDMR_SDA10_PBI0_A10           |\
                         PSDMR_RFRC_7_CLK               |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR2_9COL    (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_9COL    (CONFIG_SYS_MIN_AM_MASK                |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A7             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_9COL  (PSDMR_SDAM_A14_IS_A5           |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_SDAM_A14_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI0_A9            |\
                         PSDMR_RFRC_7_CLK               |\
                         PSDMR_WRC_1C                   |\
                         PSDMR_CL_2)
 
-#define CFG_OR2_PRELIM   CFG_OR2_9COL
-#define CFG_PSDMR        CFG_PSDMR_9COL
+#define CONFIG_SYS_OR2_PRELIM   CONFIG_SYS_OR2_9COL
+#define CONFIG_SYS_PSDMR        CONFIG_SYS_PSDMR_9COL
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 #endif /* __CONFIG_H */
index f437d21c69b1128551d343f71e18485daf411c9f..96c86f7e90130f9657bc08543e2a0088bf594c32 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 
 /*
  * High Level Configuration Options
@@ -55,8 +55,8 @@
 /* enable I2C and select the hardware/software driver */
 #undef CONFIG_HARD_I2C
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xFE
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xFE
 /*
  * Software (bit-bang) I2C driver configuration
  */
@@ -72,7 +72,7 @@
 
 
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR       0x51
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51
 
 /*
  * select serial console configuration
  * - Tx-CLK is CLK10
  */
 #define CONFIG_ETHER_ON_FCC1
-# define CFG_CMXFCR_MASK1      (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_MASK1       (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
 #ifndef CONFIG_DB_CR826_J30x_ON
-# define CFG_CMXFCR_VALUE1     (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK10)
+# define CONFIG_SYS_CMXFCR_VALUE1      (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK10)
 #else
-# define CFG_CMXFCR_VALUE1     (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
+# define CONFIG_SYS_CMXFCR_VALUE1      (CMXFCR_RF1CS_CLK11|CMXFCR_TF1CS_CLK12)
 #endif
 /*
  * - Rx-CLK is CLK15
  * - Tx-CLK is CLK14
  */
 #define CONFIG_ETHER_ON_FCC2
-# define CFG_CMXFCR_MASK2      (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE2     (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CMXFCR_MASK2       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE2      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
 /*
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 /* system clock rate (CLKIN) - equal to the 60x and local bus speed */
 #define CONFIG_8260_CLKIN      100000000       /* in Hz */
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
  */
 #define CONFIG_NAND_LEGACY
 
-#define CFG_DOC_SHORT_TIMEOUT
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices    */
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices    */
 
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END 0x0C00000      /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_RESET_ADDRESS 0xFDFFFFFC   /* "bad" address                */
+#define CONFIG_SYS_RESET_ADDRESS 0xFDFFFFFC    /* "bad" address                */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ       (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Flash and Boot ROM mapping
  */
 
-#define CFG_BOOTROM_BASE       0xFF800000
-#define CFG_BOOTROM_SIZE       0x00080000
-#define CFG_FLASH0_BASE                0x40000000
-#define CFG_FLASH0_SIZE                0x02000000
-#define CFG_DOC_BASE           0xFF800000
-#define CFG_DOC_SIZE           0x00100000
+#define CONFIG_SYS_BOOTROM_BASE        0xFF800000
+#define CONFIG_SYS_BOOTROM_SIZE        0x00080000
+#define CONFIG_SYS_FLASH0_BASE         0x40000000
+#define CONFIG_SYS_FLASH0_SIZE         0x02000000
+#define CONFIG_SYS_DOC_BASE            0xFF800000
+#define CONFIG_SYS_DOC_SIZE            0x00100000
 
 
 /* Flash bank size (for preliminary settings)
  */
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
+#define CONFIG_SYS_FLASH_SIZE CONFIG_SYS_FLASH0_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     135     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      135     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #if 0
 /* Start port with environment in flash; switch to EEPROM later */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+0x40000)
 #define CONFIG_ENV_SIZE                0x40000
 #define CONFIG_ENV_SECT_SIZE   0x40000
 #else
 /* Final version: environment in EEPROM */
 #define CONFIG_ENV_IS_IN_EEPROM        1
-#define CFG_I2C_EEPROM_ADDR    0x58
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 #define CONFIG_ENV_OFFSET              512
 #define CONFIG_ENV_SIZE                (2048 - 512)
 #endif
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #if defined(CONFIG_BOOT_ROM)
-#define CFG_HRCW_MASTER                (HRCW_BPS01 | HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_BPS01 | HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
 #else
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB100 | HRCW_BMS)
 #endif
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE, local SDRAM
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE, local SDRAM
  * is mapped at SDRAM_BASE2_PRELIM.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         CFG_FLASH0_BASE
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-# define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+# define CONFIG_SYS_RAMBOOT
 #endif
 
 #ifdef CONFIG_PCI
 #define CONFIG_PCI_PNP
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #endif
 
 /*
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL (HID0_ICE|HID0_IFEM|HID0_ABE)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE|HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                    5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR                RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  */
 
 #define BCR_APD01      0x10000000
-#define CFG_BCR                (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
+#define CONFIG_SYS_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
 #if 0
-#define CFG_SIUMCR     (SIUMCR_DPPC00|SIUMCR_APPC10|SIUMCR_CS10PC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10|SIUMCR_CS10PC01)
 #else
-#define CFG_SIUMCR     (SIUMCR_DPPC10|SIUMCR_APPC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC10|SIUMCR_APPC10)
 #endif
 
 
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR       (SCCR_DFBRG00)
+#define CONFIG_SYS_SCCR        (SCCR_DFBRG00)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
 
        /* Initialize SDRAM on local bus
         */
-#define CFG_INIT_LOCAL_SDRAM
+#define CONFIG_SYS_INIT_LOCAL_SDRAM
 
 
 /* Minimum mask to separate preliminary
  * address ranges for CS[0:2]
  */
-#define CFG_MIN_AM_MASK 0xC0000000
+#define CONFIG_SYS_MIN_AM_MASK 0xC0000000
 
 /*
  * we use the same values for 32 MB and 128 MB SDRAM
  * refresh rate = 7.68 uS (100 MHz Bus Clock)
  */
-#define CFG_MPTPR      0x2000
-#define CFG_PSRT       0x16
+#define CONFIG_SYS_MPTPR       0x2000
+#define CONFIG_SYS_PSRT        0x16
 
-#define CFG_MRS_OFFS   0x00000000
+#define CONFIG_SYS_MRS_OFFS    0x00000000
 
 
 #if defined(CONFIG_BOOT_ROM)
 /*
  * Bank 0 - Boot ROM (8 bit wide)
  */
-#define CFG_BR0_PRELIM ((CFG_BOOTROM_BASE & BRx_BA_MSK)|\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_BOOTROM_BASE & BRx_BA_MSK)|\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM (P2SZ_TO_AM(CFG_BOOTROM_SIZE)   |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_BOOTROM_SIZE)    |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 /*
  * Bank 1 - Flash (64 bit wide)
  */
-#define CFG_BR1_PRELIM ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)   |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 /*
  * Bank 0 - Flash (64 bit wide)
  */
-#define CFG_BR0_PRELIM ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)   |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 /*
  * Bank 1 - Disk-On-Chip
  */
-#define CFG_BR1_PRELIM ((CFG_DOC_BASE & BRx_BA_MSK)    |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_DOC_BASE & BRx_BA_MSK)     |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM (P2SZ_TO_AM(CFG_DOC_SIZE)       |\
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_DOC_SIZE)        |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
 /* Bank 2 - SDRAM
  */
 
-#ifndef CFG_RAMBOOT
-#define CFG_BR2_PRELIM ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)   |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR2_8COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_8COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A9             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL (PSDMR_SDAM_A13_IS_A5           |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_SDAM_A13_IS_A5           |\
                         PSDMR_BSMA_A14_A16             |\
                         PSDMR_SDA10_PBI0_A10           |\
                         PSDMR_RFRC_7_CLK               |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR2_9COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_9COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A7             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_9COL (PSDMR_SDAM_A14_IS_A5           |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_SDAM_A14_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI0_A9            |\
                         PSDMR_RFRC_7_CLK               |\
                         PSDMR_WRC_1C                   |\
                         PSDMR_CL_2)
 
-#define CFG_OR2_PRELIM  CFG_OR2_9COL
-#define CFG_PSDMR       CFG_PSDMR_9COL
+#define CONFIG_SYS_OR2_PRELIM   CONFIG_SYS_OR2_9COL
+#define CONFIG_SYS_PSDMR        CONFIG_SYS_PSDMR_9COL
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 #endif /* __CONFIG_H */
index 1beee0fb4c67d76987eb9e5f83bec2ed9d048b66..c3a7f816f929ae40fb3886dd592254da770d3eb3 100644 (file)
 
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* Call board_pre_init */
 
-#undef CFG_DRAM_TEST                   /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                    /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
 
 /* DDR Setup */
 
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define SPD_EEPROM_ADDRESS     0x58    /* CTLR 0 DIMM 0 */
 
 /* Manually set up DDR parameters */
-#define CFG_SDRAM_SIZE 256             /* DDR is 256 MB */
-#define CFG_DDR_CS0_BNDS       0x0000000f      /* 0-256MB */
-#define CFG_DDR_CS0_CONFIG     0x80000102
-#define CFG_DDR_TIMING_1       0x47444321
-#define CFG_DDR_TIMING_2       0x00000800      /* P9-45,may need tuning */
-#define CFG_DDR_CONTROL        0xc2008000      /* unbuffered,no DYN_PWR */
-#define CFG_DDR_MODE   0x00000062      /* DLL,normal,seq,4/2.5 */
-#define CFG_DDR_INTERVAL       0x045b0100      /* autocharge,no open page */
+#define CONFIG_SYS_SDRAM_SIZE  256             /* DDR is 256 MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000f      /* 0-256MB */
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80000102
+#define CONFIG_SYS_DDR_TIMING_1        0x47444321
+#define CONFIG_SYS_DDR_TIMING_2        0x00000800      /* P9-45,may need tuning */
+#define CONFIG_SYS_DDR_CONTROL 0xc2008000      /* unbuffered,no DYN_PWR */
+#define CONFIG_SYS_DDR_MODE    0x00000062      /* DLL,normal,seq,4/2.5 */
+#define CONFIG_SYS_DDR_INTERVAL        0x045b0100      /* autocharge,no open page */
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     0               /* LBC SDRAM is 0 MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      0               /* LBC SDRAM is 0 MB */
 
-#define CFG_FLASH_BASE         0xfe000000      /* start of 32 MB FLASH */
-#define CFG_BR0_PRELIM         0xfe001801      /* port size 32bit */
+#define CONFIG_SYS_FLASH_BASE          0xfe000000      /* start of 32 MB FLASH */
+#define CONFIG_SYS_BR0_PRELIM          0xfe001801      /* port size 32bit */
 
-#define CFG_OR0_PRELIM         0xfe006f67      /* 32 MB Flash */
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_OR0_PRELIM          0xfe006f67      /* 32 MB Flash */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 #undef CONFIG_CLOCKS_IN_MHZ
 
 /*
  * Local Bus Definitions
  */
-#define CFG_LBC_LCRR           0x00030004    /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000    /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x20000000    /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004    /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000    /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x20000000    /* LB refresh timer prescal*/
 
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x58
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 /* RapidIO MMU */
-#define CFG_RIO_MEM_BASE       0xc0000000      /* base address */
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 128M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000      /* base address */
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 128M */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0xe2000000
-#define CFG_PCI1_IO_PHYS       CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE       0x1000000       /* 16M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0xe2000000
+#define CONFIG_SYS_PCI1_IO_PHYS        CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE        0x1000000       /* 16M */
 
 #if defined(CONFIG_PCI)
 
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
   #define CONFIG_ENV_IS_IN_FLASH       1
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x80000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x80000)
   #define CONFIG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */
   #define CONFIG_ENV_SIZE              0x2000
 #else
-  #define CFG_NO_FLASH         1       /* Flash is not usable now */
+  #define CONFIG_SYS_NO_FLASH          1       /* Flash is not usable now */
   #define CONFIG_ENV_IS_NOWHERE        1       /* Store ENV in memory only */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 #define CONFIG_LOOPW
 
 /*
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 9d535b6bb47eafd971f67118e2408cd17ef35aa0..b3bcf23c5cd721e8a856c57f9d9f576eec5fd238 100644 (file)
 
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* Call board_pre_init */
 
-#define CFG_INIT_DBCR DBCR_IDM         /* Enable Debug Exceptions */
+#define CONFIG_SYS_INIT_DBCR DBCR_IDM          /* Enable Debug Exceptions */
 
-#undef CFG_DRAM_TEST                   /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                    /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
 
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define SPD_EEPROM_ADDRESS     0x58    /* CTLR 0 DIMM 0 */
 
 /* Manually set up DDR parameters */
-#define CFG_SDRAM_SIZE 256             /* DDR is 256 MB */
-#define CFG_DDR_CS0_BNDS       0x0000000f      /* 0-256MB */
-#define CFG_DDR_CS0_CONFIG     0x80000102
-#define CFG_DDR_TIMING_1       0x47444321
-#define CFG_DDR_TIMING_2       0x00000800      /* P9-45,may need tuning */
-#define CFG_DDR_CONTROL        0xc2008000      /* unbuffered,no DYN_PWR */
-#define CFG_DDR_MODE   0x00000062      /* DLL,normal,seq,4/2.5 */
-#define CFG_DDR_INTERVAL       0x045b0100      /* autocharge,no open page */
+#define CONFIG_SYS_SDRAM_SIZE  256             /* DDR is 256 MB */
+#define CONFIG_SYS_DDR_CS0_BNDS        0x0000000f      /* 0-256MB */
+#define CONFIG_SYS_DDR_CS0_CONFIG      0x80000102
+#define CONFIG_SYS_DDR_TIMING_1        0x47444321
+#define CONFIG_SYS_DDR_TIMING_2        0x00000800      /* P9-45,may need tuning */
+#define CONFIG_SYS_DDR_CONTROL 0xc2008000      /* unbuffered,no DYN_PWR */
+#define CONFIG_SYS_DDR_MODE    0x00000062      /* DLL,normal,seq,4/2.5 */
+#define CONFIG_SYS_DDR_INTERVAL        0x045b0100      /* autocharge,no open page */
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     0               /* LBC SDRAM is 0 MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      0               /* LBC SDRAM is 0 MB */
 
-#define CFG_FLASH_BASE         0xfe000000      /* start of FLASH 32M */
-#define CFG_BR0_PRELIM         0xfe001801      /* port size 32bit */
+#define CONFIG_SYS_FLASH_BASE          0xfe000000      /* start of FLASH 32M */
+#define CONFIG_SYS_BR0_PRELIM          0xfe001801      /* port size 32bit */
 
-#define CFG_OR0_PRELIM         0xfe006f67      /* 32MB Flash */
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_OR0_PRELIM          0xfe006f67      /* 32MB Flash */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 #undef CONFIG_CLOCKS_IN_MHZ
 
  * Local Bus Definitions
  */
 
-#define CFG_LBC_LCRR           0x00030004    /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000    /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x20000000    /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004    /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000    /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x20000000    /* LB refresh timer prescal*/
 
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_ON_SCC     /* define if console on SCC */
 #undef  CONFIG_CONS_NONE       /* define if console on something else */
 #define CONFIG_CONS_INDEX       1  /* which serial channel for console */
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {0x69} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x58
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 /* RapidIO MMU */
-#define CFG_RIO_MEM_BASE       0xc0000000      /* base address */
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 128M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000      /* base address */
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 128M */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0xe2000000
-#define CFG_PCI1_IO_PHYS       CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE       0x1000000       /* 16M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0xe2000000
+#define CONFIG_SYS_PCI1_IO_PHYS        CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE        0x1000000       /* 16M */
 
 #if defined(CONFIG_PCI)
 
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
    * - Full duplex
  */
 #define CONFIG_ETHER_ON_FCC3
-#define CFG_CMXFCR_MASK3       (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
-#define CFG_CMXFCR_VALUE3      (CMXFCR_RF3CS_CLK15 | CMXFCR_TF3CS_CLK14)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE)
+#define CONFIG_SYS_CMXFCR_MASK3        (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE3       (CMXFCR_RF3CS_CLK15 | CMXFCR_TF3CS_CLK14)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE)
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
   #define CONFIG_ENV_IS_IN_FLASH       1
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x80000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x80000)
   #define CONFIG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */
   #define CONFIG_ENV_SIZE              0x2000
 #else
-  #define CFG_NO_FLASH         1       /* Flash is not usable now */
+  #define CONFIG_SYS_NO_FLASH          1       /* Flash is not usable now */
   #define CONFIG_ENV_IS_NOWHERE        1       /* Store ENV in memory only */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x1000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x1000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 #define CONFIG_LOOPW
 
 /*
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 4a425737091f0026df89b8061ba205fa83b0e578..12e63b717eb20369cc1b661616f450628fd03441 100644 (file)
@@ -51,7 +51,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818             /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000500 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000500 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_BOOTDELAY    0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID_NONMONARCH 0x0408  /* PCI Device ID: Non-Monarch */
-#define CFG_PCI_SUBSYS_DEVICEID_MONARCH 0x0409     /* PCI Device ID: Monarch */
-#define CFG_PCI_SUBSYS_DEVICEID pmc405_pci_subsys_deviceid()
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID_NONMONARCH 0x0408  /* PCI Device ID: Non-Monarch */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID_MONARCH 0x0409     /* PCI Device ID: Monarch */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID pmc405_pci_subsys_deviceid()
 
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
 
-#define CFG_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
-#define CFG_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM1LA  (bd->bi_memstart) /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  (~(bd->bi_memsize - 1) | 1) /* memsize, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
 #if 1
-#define CFG_PCI_PTM2LA 0xef000000      /* point to internal regs       */
-#define CFG_PCI_PTM2MS  0xff000001      /* 16MB, enable                 */
-#define CFG_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xef000000      /* point to internal regs       */
+#define CONFIG_SYS_PCI_PTM2MS  0xff000001      /* 16MB, enable                 */
+#define CONFIG_SYS_PCI_PTM2PCI 0x00000000      /* Host: use this pci address   */
 #else /* old mapping */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 #endif
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MONITOR_BASE       0xFFFC0000
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MONITOR_BASE        0xFFFC0000
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_INCREMENT    0x01000000
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_INCREMENT     0x01000000
 
-#define CFG_FLASH_CFI         1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI         1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER  1       /* Use the common driver */
-#define CFG_FLASH_PROTECTION  1       /* don't use hardware protection        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1  /* use buffered writes (20x faster)     */
-#define CFG_MAX_FLASH_BANKS   2       /* max num of flash banks */
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE + CFG_FLASH_INCREMENT }
-#define CFG_MAX_FLASH_SECT    128     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_PROTECTION  1       /* don't use hardware protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1  /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_MAX_FLASH_BANKS   2       /* max num of flash banks */
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_INCREMENT }
+#define CONFIG_SYS_MAX_FLASH_SECT    128     /* max num of sects on one chip */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*
  * JFFS2 partitions - second bank contains u-boot
 #define CONFIG_ENV_SIZE                0x800   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
 #define NVRAM_BA        0xF0200000          /* NVRAM Base Address               */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP  0x92015480
-#define CFG_EBC_PB0CR  FLASH0_BA | 0x9A000 /* BAS=0xFF0,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB0AP   0x92015480
+#define CONFIG_SYS_EBC_PB0CR   FLASH0_BA | 0x9A000 /* BAS=0xFF0,BS=16MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 1 (Flash Bank 1) initialization                                 */
-#define CFG_EBC_PB1AP  0x92015480
-#define CFG_EBC_PB1CR  FLASH1_BA | 0x9A000 /* BAS=0xFE0,BS=16MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB1AP   0x92015480
+#define CONFIG_SYS_EBC_PB1CR   FLASH1_BA | 0x9A000 /* BAS=0xFE0,BS=16MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 2 (CAN0, 1, RTC) initialization                                 */
-#define CFG_EBC_PB2AP  0x03000440   /* TWT=5,TH=2,CSN=0,OEN=0,WBN=0,WBF=0      */
-#define CFG_EBC_PB2CR  CAN_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP   0x03000440   /* TWT=5,TH=2,CSN=0,OEN=0,WBN=0,WBF=0      */
+#define CONFIG_SYS_EBC_PB2CR   CAN_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 -> unused */
 
 /* Memory Bank 4 (NVRAM) initialization                                        */
-#define CFG_EBC_PB4AP  0x03000440   /* TWT=5,TH=2,CSN=0,OEN=0,WBN=0,WBF=0      */
-#define CFG_EBC_PB4CR  NVRAM_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit        */
+#define CONFIG_SYS_EBC_PB4AP   0x03000440   /* TWT=5,TH=2,CSN=0,OEN=0,WBN=0,WBF=0      */
+#define CONFIG_SYS_EBC_PB4CR   NVRAM_BA | 0x18000    /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit        */
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
-#define CFG_FPGA_XC95XL                1           /* using Xilinx XC95XL CPLD      */
-#define CFG_FPGA_MAX_SIZE      32*1024     /* 32kByte is enough for CPLD    */
+#define CONFIG_SYS_FPGA_XC95XL         1           /* using Xilinx XC95XL CPLD      */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024     /* 32kByte is enough for CPLD    */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* JTAG TMS pin (ppc output)     */
-#define CFG_FPGA_CLK           0x02000000  /* JTAG TCK pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
-#define CFG_FPGA_INIT          0x00010000  /* unused (ppc input)            */
-#define CFG_FPGA_DONE          0x00008000  /* JTAG TDI->TDO pin (ppc input) */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* JTAG TMS pin (ppc output)     */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* JTAG TCK pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* unused (ppc input)            */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* JTAG TDI->TDO pin (ppc input) */
 
-#define CFG_VXWORKS_MAC_PTR    0x00000000      /* Pass Ethernet MAC to VxWorks */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     0x00000000      /* Pass Ethernet MAC to VxWorks */
 
 /*-----------------------------------------------------------------------
  * GPIOs
  */
-#define CFG_NONMONARCH         (0x80000000 >> 14)   /* GPIO24 */
-#define CFG_XEREADY            (0x80000000 >> 15)   /* GPIO15 */
-#define CFG_INTA_FAKE          (0x80000000 >> 19)   /* GPIO19 */
-#define CFG_SELF_RST           (0x80000000 >> 21)   /* GPIO21 */
-#define CFG_REV1_2             (0x80000000 >> 23)   /* GPIO23 */
+#define CONFIG_SYS_NONMONARCH          (0x80000000 >> 14)   /* GPIO24 */
+#define CONFIG_SYS_XEREADY             (0x80000000 >> 15)   /* GPIO15 */
+#define CONFIG_SYS_INTA_FAKE           (0x80000000 >> 19)   /* GPIO19 */
+#define CONFIG_SYS_SELF_RST            (0x80000000 >> 21)   /* GPIO21 */
+#define CONFIG_SYS_REV1_2              (0x80000000 >> 23)   /* GPIO23 */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
index 963987e1e34e702e1d68d7f34dd00a4daa61f3b5..85342a60c31128ddafe27aba50dcff32766b673f 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (384  * 1024)   /* Reserve 384 kB for Monitor   */
-#define CFG_MALLOC_LEN         (1024 * 1024)   /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         (384  * 1024)   /* Reserve 384 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)   /* Reserve 256 kB for malloc()  */
 
 #define CONFIG_PRAM            0       /* use pram variable to overwrite */
 
-#define CFG_BOOT_BASE_ADDR     0xf0000000
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_FLASH_BASE         0xfc000000      /* start of FLASH       */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_NAND_ADDR          0xd0000000      /* NAND Flash           */
-#define CFG_OCM_BASE           0xe0010000      /* ocm                  */
-#define CFG_OCM_DATA_ADDR      CFG_OCM_BASE
-#define CFG_PCI_BASE           0xe0000000      /* Internal PCI regs    */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory    */
-#define CFG_PCI_MEMBASE1       CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2       CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3       CFG_PCI_MEMBASE2 + 0x10000000
-#define CFG_PCI_MEMSIZE                0x80000000      /* 2GB! */
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xf0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_FLASH_BASE          0xfc000000      /* start of FLASH       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_NAND_ADDR           0xd0000000      /* NAND Flash           */
+#define CONFIG_SYS_OCM_BASE            0xe0010000      /* ocm                  */
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_OCM_BASE
+#define CONFIG_SYS_PCI_BASE            0xe0000000      /* Internal PCI regs    */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory    */
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_PCI_MEMSIZE         0x80000000      /* 2GB! */
 
 /* Don't change either of these */
-#define CFG_PERIPHERAL_BASE    0xef600000      /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000      /* internal peripherals */
 
-#define CFG_USB2D0_BASE                0xe0000100
-#define CFG_USB_DEVICE         0xe0000000
-#define CFG_USB_HOST           0xe0000400
-#define CFG_FPGA_BASE0         0xef000000      /* 32 bit */
-#define CFG_FPGA_BASE1         0xef100000      /* 16 bit */
+#define CONFIG_SYS_USB2D0_BASE         0xe0000100
+#define CONFIG_SYS_USB_DEVICE          0xe0000000
+#define CONFIG_SYS_USB_HOST            0xe0000400
+#define CONFIG_SYS_FPGA_BASE0          0xef000000      /* 32 bit */
+#define CONFIG_SYS_FPGA_BASE1          0xef100000      /* 16 bit */
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer
  *----------------------------------------------------------------------*/
 /* 440EPx/440GRx have 16KB of internal SRAM, so no need for D-Cache    */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_BASE    /* OCM                  */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256     /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_BASE     /* OCM                  */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256     /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI    1
 #undef CONFIG_UART1_CONSOLE    /* console on front panel */
 
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER        /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection        */
 
-#define CFG_FLASH_EMPTY_INFO   /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash        */
+#define CONFIG_SYS_FLASH_EMPTY_INFO    /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash        */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  * the NAND controller.        sr - 2006-08-25
  */
 #if defined (CONFIG_NAND_U_BOOT)
-#define CFG_NAND_BOOT_SPL_SRC  0xfffff000      /* SPL location                 */
-#define CFG_NAND_BOOT_SPL_SIZE (4 << 10)       /* SPL size                     */
-#define CFG_NAND_BOOT_SPL_DST  (CFG_OCM_BASE + (12 << 10)) /* Copy SPL here    */
-#define CFG_NAND_U_BOOT_DST    0x01000000      /* Load NUB to this addr        */
-#define CFG_NAND_U_BOOT_START  CFG_NAND_U_BOOT_DST /* Start NUB from this addr */
-#define CFG_NAND_BOOT_SPL_DELTA        (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
+#define CONFIG_SYS_NAND_BOOT_SPL_SRC   0xfffff000      /* SPL location                 */
+#define CONFIG_SYS_NAND_BOOT_SPL_SIZE  (4 << 10)       /* SPL size                     */
+#define CONFIG_SYS_NAND_BOOT_SPL_DST   (CONFIG_SYS_OCM_BASE + (12 << 10)) /* Copy SPL here    */
+#define CONFIG_SYS_NAND_U_BOOT_DST     0x01000000      /* Load NUB to this addr        */
+#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr */
+#define CONFIG_SYS_NAND_BOOT_SPL_DELTA (CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST)
 
 /*
  * Define the partitioning of the NAND chip (only RAM U-Boot is needed here)
  */
-#define CFG_NAND_U_BOOT_OFFS   (16 << 10)      /* Offset to RAM U-Boot image   */
-#define CFG_NAND_U_BOOT_SIZE   (384 << 10)     /* Size of RAM U-Boot image     */
+#define CONFIG_SYS_NAND_U_BOOT_OFFS    (16 << 10)      /* Offset to RAM U-Boot image   */
+#define CONFIG_SYS_NAND_U_BOOT_SIZE    (384 << 10)     /* Size of RAM U-Boot image     */
 
 /*
  * Now the NAND chip has to be defined (no autodetection used!)
  */
-#define CFG_NAND_PAGE_SIZE     512     /* NAND chip page size          */
-#define CFG_NAND_BLOCK_SIZE    (16 << 10) /* NAND chip block size      */
-#define CFG_NAND_PAGE_COUNT    32      /* NAND chip page count         */
-#define CFG_NAND_BAD_BLOCK_POS 5       /* Location of bad block marker */
-#undef CFG_NAND_4_ADDR_CYCLE           /* No fourth addr used (<=32MB) */
-
-#define CFG_NAND_ECCSIZE       256
-#define CFG_NAND_ECCBYTES      3
-#define CFG_NAND_ECCSTEPS      (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
-#define CFG_NAND_OOBSIZE       16
-#define CFG_NAND_ECCTOTAL      (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
-#define CFG_NAND_ECCPOS                {0, 1, 2, 3, 6, 7}
+#define CONFIG_SYS_NAND_PAGE_SIZE      512     /* NAND chip page size          */
+#define CONFIG_SYS_NAND_BLOCK_SIZE     (16 << 10) /* NAND chip block size      */
+#define CONFIG_SYS_NAND_PAGE_COUNT     32      /* NAND chip page count         */
+#define CONFIG_SYS_NAND_BAD_BLOCK_POS  5       /* Location of bad block marker */
+#undef CONFIG_SYS_NAND_4_ADDR_CYCLE            /* No fourth addr used (<=32MB) */
+
+#define CONFIG_SYS_NAND_ECCSIZE        256
+#define CONFIG_SYS_NAND_ECCBYTES       3
+#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
+#define CONFIG_SYS_NAND_OOBSIZE        16
+#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
+#define CONFIG_SYS_NAND_ECCPOS         {0, 1, 2, 3, 6, 7}
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_NAND
  * For NAND booting the environment is embedded in the U-Boot image. Please take
  * look at the file board/amcc/sequoia/u-boot-nand.lds for details.
  */
-#define CONFIG_ENV_SIZE                CFG_NAND_BLOCK_SIZE
-#define CONFIG_ENV_OFFSET              (CFG_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
+#define CONFIG_ENV_SIZE                CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #endif
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
-#define CFG_MBYTES_SDRAM       (256)   /* 256MB                        */
+#define CONFIG_SYS_MBYTES_SDRAM        (256)   /* 256MB                        */
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
 #define CONFIG_DDR_DATA_EYE    /* use DDR2 optimization        */
 #endif
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 #define CONFIG_I2C_CMD_TREE    1
 #define CONFIG_I2C_MULTI_BUS   1
 
-#define CFG_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
 
-#define CFG_I2C_EEPROM_ADDR            0x54
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x01
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x54
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x01
 
-#define CFG_EEPROM_WREN                        1
-#define CFG_I2C_BOOT_EEPROM_ADDR       0x52
+#define CONFIG_SYS_EEPROM_WREN                 1
+#define CONFIG_SYS_I2C_BOOT_EEPROM_ADDR        0x52
 
 /*
  * standard dtt sensor configuration - bottom bit will determine local or
  * - remote temp sensor enabled, min set to 0 deg, max set to 70 deg
  */
 #define CONFIG_DTT_ADM1021
-#define CFG_DTT_ADM1021                { { 0x4c, 0x02, 0, 1, 70, 0, 1, 70, 0} }
+#define CONFIG_SYS_DTT_ADM1021         { { 0x4c, 0x02, 0, 1, 70, 0, 1, 70, 0} }
 
 #define CONFIG_PREBOOT         /* enable preboot variable */
 
 
 /* Setup some board specific values for the default environment variables */
 #define CONFIG_HOSTNAME                pmc440
-#define CFG_BOOTFILE           "bootfile=/tftpboot/pmc440/uImage\0"
-#define CFG_ROOTPATH           "rootpath=/opt/eldk_410/ppc_4xx\0"
+#define CONFIG_SYS_BOOTFILE            "bootfile=/tftpboot/pmc440/uImage\0"
+#define CONFIG_SYS_ROOTPATH            "rootpath=/opt/eldk_410/ppc_4xx\0"
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
-       CFG_BOOTFILE                                                    \
-       CFG_ROOTPATH                                                    \
+       CONFIG_SYS_BOOTFILE                                                     \
+       CONFIG_SYS_ROOTPATH                                                     \
        "netdev=eth0\0"                                                 \
        "ethrotate=no\0"                                                \
        "nfsargs=setenv bootargs root=/dev/nfs rw "                     \
 #define CONFIG_BOOTDELAY       3       /* autoboot after 3 seconds     */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_IBM_EMAC4_V4    1
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_GIGE                1       /* Include GbE speed/duplex detection */
 
 #define CONFIG_HAS_ETH0
-#define CFG_RX_ETH_BUFFER      32      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       32      /* Number of ethernet rx buffers & descriptors */
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_HAS_ETH1                1       /* add support for "eth1addr"   */
 /* USB */
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_USB_STORAGE
-#define CFG_OHCI_BE_CONTROLLER
+#define CONFIG_SYS_OHCI_BE_CONTROLLER
 
-#define CFG_USB_OHCI_BOARD_INIT 1
-#define CFG_USB_OHCI_CPU_INIT  1
-#define CFG_USB_OHCI_REGS_BASE CFG_USB_HOST
-#define CFG_USB_OHCI_SLOT_NAME "ppc440"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
+#define CONFIG_SYS_USB_OHCI_BOARD_INIT 1
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  CONFIG_SYS_USB_HOST
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "ppc440"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
 
 /* Comment this out to enable USB 1.1 device */
 #define USB_2_0_DEVICE
 #define CONFIG_CMD_SDRAM
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY |      \
-                                CFG_POST_CPU    |      \
-                                CFG_POST_UART   |      \
-                                CFG_POST_I2C    |      \
-                                CFG_POST_CACHE  |      \
-                                CFG_POST_FPU    |      \
-                                CFG_POST_ETHER  |      \
-                                CFG_POST_SPR)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY |       \
+                                CONFIG_SYS_POST_CPU    |       \
+                                CONFIG_SYS_POST_UART   |       \
+                                CONFIG_SYS_POST_I2C    |       \
+                                CONFIG_SYS_POST_CACHE  |       \
+                                CONFIG_SYS_POST_FPU    |       \
+                                CONFIG_SYS_POST_ETHER  |       \
+                                CONFIG_SYS_POST_SPR)
 
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
 
 /* esd expects pram at end of physical memory.
  * So no logbuffer at the moment.
 #if 0
 #define CONFIG_LOGBUFFER
 #endif
-#define CFG_POST_CACHE_ADDR    0x10000000      /* free virtual address     */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x10000000      /* free virtual address     */
 
-#define CFG_CONSOLE_IS_IN_ENV  /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   /* Otherwise it catches logbuffer as output */
 
 #define CONFIG_SUPPORT_VFAT
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on          */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM       */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on          */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM       */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address      */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address      */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW           1       /* enable loopw command         */
 /* General PCI */
 #define CONFIG_PCI             /* include pci support          */
 #define CONFIG_PCI_PNP         /* do (not) pci plug-and-play   */
-#define CFG_PCI_CACHE_LINE_SIZE        0       /* to avoid problems with PNP   */
+#define CONFIG_SYS_PCI_CACHE_LINE_SIZE 0       /* to avoid problems with PNP   */
 #define CONFIG_PCI_SCAN_SHOW   /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE       0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
 /* PCI identification */
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_ID_NONMONARCH 0x0441    /* PCI Device ID: Non-Monarch */
-#define CFG_PCI_SUBSYS_ID_MONARCH 0x0440       /* PCI Device ID: Monarch */
-#define CFG_PCI_CLASSCODE_NONMONARCH   PCI_CLASS_PROCESSOR_POWERPC
-#define CFG_PCI_CLASSCODE_MONARCH      PCI_CLASS_BRIDGE_HOST
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_ID_NONMONARCH 0x0441     /* PCI Device ID: Non-Monarch */
+#define CONFIG_SYS_PCI_SUBSYS_ID_MONARCH 0x0440        /* PCI Device ID: Monarch */
+#define CONFIG_SYS_PCI_CLASSCODE_NONMONARCH    PCI_CLASS_PROCESSOR_POWERPC
+#define CONFIG_SYS_PCI_CLASSCODE_MONARCH       PCI_CLASS_BRIDGE_HOST
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  * On Sequoia CS0 and CS3 are switched when configuring for NAND booting
  */
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
-#define CFG_NAND_CS            2       /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             2       /* NAND chip connected to CSx   */
 
 /* Memory Bank 0 (NOR-FLASH) initialization */
-#define CFG_EBC_PB0AP          0x03017200
-#define CFG_EBC_PB0CR          (CFG_FLASH_BASE | 0xda000)
+#define CONFIG_SYS_EBC_PB0AP           0x03017200
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH_BASE | 0xda000)
 
 /* Memory Bank 2 (NAND-FLASH) initialization */
-#define CFG_EBC_PB2AP          0x018003c0
-#define CFG_EBC_PB2CR          (CFG_NAND_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB2AP           0x018003c0
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_NAND_ADDR | 0x1c000)
 #else
-#define CFG_NAND_CS            0       /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             0       /* NAND chip connected to CSx   */
 /* Memory Bank 2 (NOR-FLASH) initialization */
-#define CFG_EBC_PB2AP          0x03017200
-#define CFG_EBC_PB2CR          (CFG_FLASH_BASE | 0xda000)
+#define CONFIG_SYS_EBC_PB2AP           0x03017200
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_FLASH_BASE | 0xda000)
 
 /* Memory Bank 0 (NAND-FLASH) initialization */
-#define CFG_EBC_PB0AP          0x018003c0
-#define CFG_EBC_PB0CR          (CFG_NAND_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB0AP           0x018003c0
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_NAND_ADDR | 0x1c000)
 #endif
 
 /* Memory Bank 4 (FPGA / 32Bit) initialization */
-#define CFG_EBC_PB4AP          0x03840f40      /* BME=0,TWT=7,CSN=1,TH=7,RE=1,SOR=0,BEM=1 */
-#define CFG_EBC_PB4CR          (CFG_FPGA_BASE0 | 0x1c000)      /* BS=1M,BU=R/W,BW=32bit */
+#define CONFIG_SYS_EBC_PB4AP           0x03840f40      /* BME=0,TWT=7,CSN=1,TH=7,RE=1,SOR=0,BEM=1 */
+#define CONFIG_SYS_EBC_PB4CR           (CONFIG_SYS_FPGA_BASE0 | 0x1c000)       /* BS=1M,BU=R/W,BW=32bit */
 
 /* Memory Bank 5 (FPGA / 16Bit) initialization */
-#define CFG_EBC_PB5AP          0x03840f40      /* BME=0,TWT=3,CSN=1,TH=0,RE=1,SOR=0,BEM=1 */
-#define CFG_EBC_PB5CR          (CFG_FPGA_BASE1 | 0x1a000)      /* BS=1M,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB5AP           0x03840f40      /* BME=0,TWT=3,CSN=1,TH=0,RE=1,SOR=0,BEM=1 */
+#define CONFIG_SYS_EBC_PB5CR           (CONFIG_SYS_FPGA_BASE1 | 0x1a000)       /* BS=1M,BU=R/W,BW=16bit */
 
 /*-----------------------------------------------------------------------
  * NAND FLASH
  *----------------------------------------------------------------------*/
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE          (CFG_NAND_ADDR + CFG_NAND_CS)
-#define CFG_NAND_SELECT_DEVICE 1 /* nand driver supports mutipl. chips */
-#define CFG_NAND_QUIET_TEST    1
+#define CONFIG_SYS_NAND_BASE           (CONFIG_SYS_NAND_ADDR + CONFIG_SYS_NAND_CS)
+#define CONFIG_SYS_NAND_SELECT_DEVICE  1 /* nand driver supports mutipl. chips */
+#define CONFIG_SYS_NAND_QUIET_TEST     1
 
 /*
  * Internal Definitions
index 192cbd411f87d830c7b7920bc62bcf781e3a45ca..2c0774fea03ee6606834f161dbf252161a9a2e77 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1               /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP            1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_PRAM            1024            /* reserve 1 MB protected RAM   */
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x10000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x10000000
 
-#define CFG_RESET_ADDRESS      0xfff00100
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
 
-#undef CFG_RAMBOOT
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-/*#define CFG_GBL_DATA_SIZE    256*/
-#define CFG_GBL_DATA_SIZE      128
+/*#define CONFIG_SYS_GBL_DATA_SIZE    256*/
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 
-#define CFG_NO_FLASH           1               /* There is no FLASH memory     */
+#define CONFIG_SYS_NO_FLASH            1               /* There is no FLASH memory     */
 
 #define CONFIG_ENV_IS_NOWHERE  1               /* Store ENV in memory only     */
 #define CONFIG_ENV_OFFSET              0x00004000      /* Offset of Environment Sector */
 #define CONFIG_ENV_SIZE                0x00002000      /* Total Size of Environment Sector */
 
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00004000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x01f00000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00004000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x01f00000      /* 0 ... 32 MB in DRAM          */
 
 /*
  * Serial port configuration
  */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                1843200
+#define CONFIG_SYS_NS16550_CLK         1843200
 
-#define CFG_NS16550_COM1       0xff800008
-#define CFG_NS16550_COM2       0xff800000
+#define CONFIG_SYS_NS16550_COM1        0xff800008
+#define CONFIG_SYS_NS16550_COM2        0xff800000
 
 /*
  * Low Level Configuration Settings
 #define CONFIG_SYS_CLK_FREQ  33333333  /* external frequency to pll */
 #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER  3
 
-#define CFG_EUMB_ADDR          0xFCE00000
+#define CONFIG_SYS_EUMB_ADDR           0xFCE00000
 
 /* MCCR1 */
-#define CFG_ROMNAL             3       /* rom/flash next access time           */
-#define CFG_ROMFAL             7       /* rom/flash access time                */
+#define CONFIG_SYS_ROMNAL              3       /* rom/flash next access time           */
+#define CONFIG_SYS_ROMFAL              7       /* rom/flash access time                */
 
 /* MCCR2 */
-#define CFG_ASRISE             6       /* ASRISE in clocks                     */
-#define CFG_ASFALL             12      /* ASFALL in clocks                     */
-#define CFG_REFINT             5600    /* REFINT in clocks                     */
+#define CONFIG_SYS_ASRISE              6       /* ASRISE in clocks                     */
+#define CONFIG_SYS_ASFALL              12      /* ASFALL in clocks                     */
+#define CONFIG_SYS_REFINT              5600    /* REFINT in clocks                     */
 
 /* MCCR3 */
-#define CFG_BSTOPRE            0x3cf   /* Burst To Precharge                   */
-#define CFG_REFREC             2       /* Refresh to activate interval         */
-#define CFG_RDLAT              3       /* data latency from read command       */
+#define CONFIG_SYS_BSTOPRE             0x3cf   /* Burst To Precharge                   */
+#define CONFIG_SYS_REFREC              2       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT               3       /* data latency from read command       */
 
 /* MCCR4 */
-#define CFG_PRETOACT           1       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           3       /* Activate to Precharge interval       */
-#define CFG_ACTORW             2       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     2       /* SDMODE CAS latency                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE Wrap type                     */
-#define CFG_SDMODE_BURSTLEN    2       /* SDMODE Burst length 2=4, 3=8         */
-#define CFG_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_PRETOACT            1       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            3       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              2       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      2       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE Wrap type                     */
+#define CONFIG_SYS_SDMODE_BURSTLEN     2       /* SDMODE Burst length 2=4, 3=8         */
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
 
 /* Memory bank settings:
  *
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x00000000
-#define CFG_BANK1_END          0x00000000
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x00000000
-#define CFG_BANK2_END          0x00000000
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x00000000
-#define CFG_BANK3_END          0x00000000
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x00000000
+#define CONFIG_SYS_BANK1_END           0x00000000
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x00000000
+#define CONFIG_SYS_BANK2_END           0x00000000
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x00000000
+#define CONFIG_SYS_BANK3_END           0x00000000
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
 
 /*
  * Memory bank enable bitmask, specifying which of the banks defined above
  * are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
-#define CFG_ODCR               0xff    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0xff    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 
 /* PCI memory space */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8240 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8240 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
index d9d87060baf98096041398692ac4bac9fe59c868..e66f8efead30fae8a2e7a230dd75e5b3dadc505e 100644 (file)
@@ -63,7 +63,7 @@
 #define __DISABLE_MACHINE_EXCEPTION__
 
 #ifdef __DEBUG_START_FROM_SRAM__
-#define CFG_DUMMY_FLASH_SIZE           1024*1024*4
+#define CONFIG_SYS_DUMMY_FLASH_SIZE            1024*1024*4
 #endif
 
 /*
@@ -99,7 +99,7 @@
 #define CONFIG_ETH1ADDR 00:50:c2:1e:af:fd
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #undef CONFIG_EXT_PHY
 #define CONFIG_NET_MULTI       1
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_M41T11      1       /* uses a M41T00 RTC            */
-#define CFG_I2C_RTC_ADDR       0x68
-#define CFG_M41T11_BASE_YEAR   1900
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
+#define CONFIG_SYS_M41T11_BASE_YEAR    1900
 
 /*
  * SDRAM configuration (please see cpu/ppc/sdram.[ch])
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /* SDRAM timings used in datasheet */
-#define CFG_SDRAM_CL            2
-#define CFG_SDRAM_tRP           20
-#define CFG_SDRAM_tRC           65
-#define CFG_SDRAM_tRCD          20
-#undef  CFG_SDRAM_tRFC
+#define CONFIG_SYS_SDRAM_CL            2
+#define CONFIG_SYS_SDRAM_tRP           20
+#define CONFIG_SYS_SDRAM_tRC           65
+#define CONFIG_SYS_SDRAM_tRCD          20
+#undef  CONFIG_SYS_SDRAM_tRFC
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK            /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD          691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD           691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
  */
 #define PPCHAMELON_NAND_TIMER_HACK
 
-#define CFG_NAND0_BASE 0xFF400000
-#define CFG_NAND1_BASE 0xFF000000
-#define CFG_NAND_BASE_LIST     { CFG_NAND0_BASE, CFG_NAND1_BASE }
+#define CONFIG_SYS_NAND0_BASE 0xFF400000
+#define CONFIG_SYS_NAND1_BASE 0xFF000000
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND0_BASE, CONFIG_SYS_NAND1_BASE }
 #define NAND_BIG_DELAY_US      25
-#define CFG_MAX_NAND_DEVICE    2       /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     2       /* Max number of NAND devices */
 
 #define NAND_MAX_CHIPS 1
 
-#define CFG_NAND0_CE  (0x80000000 >> 1)         /* our CE is GPIO1 */
-#define CFG_NAND0_RDY (0x80000000 >> 4)         /* our RDY is GPIO4 */
-#define CFG_NAND0_CLE (0x80000000 >> 2)         /* our CLE is GPIO2 */
-#define CFG_NAND0_ALE (0x80000000 >> 3)         /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND0_CE  (0x80000000 >> 1)  /* our CE is GPIO1 */
+#define CONFIG_SYS_NAND0_RDY (0x80000000 >> 4)  /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND0_CLE (0x80000000 >> 2)  /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND0_ALE (0x80000000 >> 3)  /* our ALE is GPIO3 */
 
-#define CFG_NAND1_CE  (0x80000000 >> 14)  /* our CE is GPIO14 */
-#define CFG_NAND1_RDY (0x80000000 >> 31)  /* our RDY is GPIO31 */
-#define CFG_NAND1_CLE (0x80000000 >> 15)  /* our CLE is GPIO15 */
-#define CFG_NAND1_ALE (0x80000000 >> 16)  /* our ALE is GPIO16 */
+#define CONFIG_SYS_NAND1_CE  (0x80000000 >> 14)  /* our CE is GPIO14 */
+#define CONFIG_SYS_NAND1_RDY (0x80000000 >> 31)  /* our RDY is GPIO31 */
+#define CONFIG_SYS_NAND1_CLE (0x80000000 >> 15)  /* our CLE is GPIO15 */
+#define CONFIG_SYS_NAND1_ALE (0x80000000 >> 16)  /* our ALE is GPIO16 */
 
 #define MACRO_NAND_DISABLE_CE(nandptr) do \
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND0_CE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND0_CE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND1_CE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND1_CE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND0_CE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND0_CE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND1_CE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND1_CE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND0_ALE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND0_ALE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND1_ALE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND1_ALE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND0_ALE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND0_ALE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND1_ALE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND1_ALE); \
                break; \
        } \
 } while(0)
 { \
        switch((unsigned long)nandptr) \
        { \
-           case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND0_CLE); \
+           case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND0_CLE); \
                break; \
-           case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) & ~CFG_NAND1_CLE); \
+           case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) & ~CONFIG_SYS_NAND1_CLE); \
                break; \
        } \
 } while(0)
 
 #define MACRO_NAND_CTL_SETCLE(nandptr) do { \
        switch((unsigned long)nandptr) { \
-       case CFG_NAND0_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND0_CLE); \
+       case CONFIG_SYS_NAND0_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND0_CLE); \
                break; \
-       case CFG_NAND1_BASE: \
-               out32(GPIO0_OR, in32(GPIO0_OR) | CFG_NAND1_CLE); \
+       case CONFIG_SYS_NAND1_BASE: \
+               out32(GPIO0_OR, in32(GPIO0_OR) | CONFIG_SYS_NAND1_CLE); \
                break; \
        } \
 } while(0)
 
 #define CONFIG_PCI_SCAN_SHOW           /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x1014 /* PCI Vendor ID: IBM   */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000 /* PCI Device ID: ---   */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014  /* PCI Vendor ID: IBM   */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: ---   */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
 
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 
 /* Reserve 256 kB for Monitor  */
 /*
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)
 */
 
 /* Reserve 320 kB for Monitor  */
-#define CFG_FLASH_BASE         0xFFFB0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (320 * 1024)
+#define CONFIG_SYS_FLASH_BASE          0xFFFB0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (320 * 1024)
 
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * Environment Variable setup
 #define CONFIG_ENV_ADDR_REDUND 0xFFFFA000
 #define CONFIG_ENV_SIZE_REDUND 0x2000
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #endif /* ENVIRONMENT_IN_EEPROM */
 
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-/*#define CFG_I2C_EEPROM_ADDR_OVERFLOW 0x07*/
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+/*#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW  0x07*/
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (External SRAM) initialization                                        */
 /* Since this must replace NOR Flash, we use the same settings for CS0         */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xFF85A000  /* BAS=0xFF8,BS=4MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB2AP          0x92015480
-#define CFG_EBC_PB2CR          0xFF458000  /* BAS=0xFF4,BS=4MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x92015480
+#define CONFIG_SYS_EBC_PB2CR           0xFF458000  /* BAS=0xFF4,BS=4MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (Flash Bank 2, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB3AP          0x92015480
-#define CFG_EBC_PB3CR          0xFF058000  /* BAS=0xFF0,BS=4MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB3AP           0x92015480
+#define CONFIG_SYS_EBC_PB3CR           0xFF058000  /* BAS=0xFF0,BS=4MB,BU=R/W,BW=8bit  */
 
 #ifdef CONFIG_PPCHAMELEON_SMI712
 /*
 #define CONFIG_CONSOLE_EXTRA_INFO
 #define CONFIG_VGA_AS_SINGLE_DEVICE
 /* This is the base address (on 405EP-side) used to generate I/O accesses on PCI bus */
-#define CFG_ISA_IO 0xE8000000
+#define CONFIG_SYS_ISA_IO 0xE8000000
 /* see also drivers/video/videomodes.c */
-#define CFG_DEFAULT_VIDEO_MODE 0x303
+#define CONFIG_SYS_DEFAULT_VIDEO_MODE 0x303
 #endif
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 /* FPGA internal regs */
-#define CFG_FPGA_MODE          0x00
-#define CFG_FPGA_STATUS                0x02
-#define CFG_FPGA_TS            0x04
-#define CFG_FPGA_TS_LOW                0x06
-#define CFG_FPGA_TS_CAP0       0x10
-#define CFG_FPGA_TS_CAP0_LOW   0x12
-#define CFG_FPGA_TS_CAP1       0x14
-#define CFG_FPGA_TS_CAP1_LOW   0x16
-#define CFG_FPGA_TS_CAP2       0x18
-#define CFG_FPGA_TS_CAP2_LOW   0x1a
-#define CFG_FPGA_TS_CAP3       0x1c
-#define CFG_FPGA_TS_CAP3_LOW   0x1e
+#define CONFIG_SYS_FPGA_MODE           0x00
+#define CONFIG_SYS_FPGA_STATUS         0x02
+#define CONFIG_SYS_FPGA_TS             0x04
+#define CONFIG_SYS_FPGA_TS_LOW         0x06
+#define CONFIG_SYS_FPGA_TS_CAP0        0x10
+#define CONFIG_SYS_FPGA_TS_CAP0_LOW    0x12
+#define CONFIG_SYS_FPGA_TS_CAP1        0x14
+#define CONFIG_SYS_FPGA_TS_CAP1_LOW    0x16
+#define CONFIG_SYS_FPGA_TS_CAP2        0x18
+#define CONFIG_SYS_FPGA_TS_CAP2_LOW    0x1a
+#define CONFIG_SYS_FPGA_TS_CAP3        0x1c
+#define CONFIG_SYS_FPGA_TS_CAP3_LOW    0x1e
 
 /* FPGA Mode Reg */
-#define CFG_FPGA_MODE_CF_RESET 0x0001
-#define CFG_FPGA_MODE_TS_IRQ_ENABLE 0x0100
-#define CFG_FPGA_MODE_TS_IRQ_CLEAR  0x1000
-#define CFG_FPGA_MODE_TS_CLEAR 0x2000
+#define CONFIG_SYS_FPGA_MODE_CF_RESET  0x0001
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_ENABLE 0x0100
+#define CONFIG_SYS_FPGA_MODE_TS_IRQ_CLEAR  0x1000
+#define CONFIG_SYS_FPGA_MODE_TS_CLEAR  0x2000
 
 /* FPGA Status Reg */
-#define CFG_FPGA_STATUS_DIP0   0x0001
-#define CFG_FPGA_STATUS_DIP1   0x0002
-#define CFG_FPGA_STATUS_DIP2   0x0004
-#define CFG_FPGA_STATUS_FLASH  0x0008
-#define CFG_FPGA_STATUS_TS_IRQ 0x1000
+#define CONFIG_SYS_FPGA_STATUS_DIP0    0x0001
+#define CONFIG_SYS_FPGA_STATUS_DIP1    0x0002
+#define CONFIG_SYS_FPGA_STATUS_DIP2    0x0004
+#define CONFIG_SYS_FPGA_STATUS_FLASH   0x0008
+#define CONFIG_SYS_FPGA_STATUS_TS_IRQ  0x1000
 
-#define CFG_FPGA_SPARTAN2      1               /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      128*1024        /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1               /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024        /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000      /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000      /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000      /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000      /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000      /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000      /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000      /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000      /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000      /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000      /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[30]   - EMAC0 input
  * GPIO0[31]   - EMAC1 reject packet as output
  */
-#define CFG_GPIO0_OSRH         0x40000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-/*#define CFG_GPIO0_ISR1L      0x15555445*/
-#define CFG_GPIO0_ISR1L                0x15555444
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xF7FF8014
+#define CONFIG_SYS_GPIO0_OSRH          0x40000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+/*#define CONFIG_SYS_GPIO0_ISR1L       0x15555445*/
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555444
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xF7FF8014
 
 /*
  * Internal Definitions
 /* Model HI */
 #define PLLMR0_DEFAULT PPCHAMELEON_PLLMR0_333_111_37_55_55
 #define PLLMR1_DEFAULT PPCHAMELEON_PLLMR1_333_111_37_55_55
-#define CFG_OPB_FREQ   55555555
+#define CONFIG_SYS_OPB_FREQ    55555555
 /* Model ME */
 #elif (CONFIG_PPCHAMELEON_MODULE_MODEL == CONFIG_PPCHAMELEON_MODULE_ME)
 #define PLLMR0_DEFAULT PPCHAMELEON_PLLMR0_266_133_33_66_33
 #define PLLMR1_DEFAULT PPCHAMELEON_PLLMR1_266_133_33_66_33
-#define CFG_OPB_FREQ   66666666
+#define CONFIG_SYS_OPB_FREQ    66666666
 #else
 /* Model BA (default) */
 #define PLLMR0_DEFAULT PPCHAMELEON_PLLMR0_133_133_33_66_33
 #define PLLMR1_DEFAULT PPCHAMELEON_PLLMR1_133_133_33_66_33
-#define CFG_OPB_FREQ   66666666
+#define CONFIG_SYS_OPB_FREQ    66666666
 #endif
 
 #endif /* CONFIG_NO_SERIAL_EEPROM */
index 258605806e12cef1e954df46170fa7bb04bd7b06..4ac31b1c0a192608a8f28962fc9776740b46ce89 100644 (file)
 #define __CONFIG_H
 
 /* various debug settings */
-#undef CFG_DEVICE_NULLDEV              /* null device */
+#undef CONFIG_SYS_DEVICE_NULLDEV               /* null device */
 #undef CONFIG_SILENT_CONSOLE           /* silent console */
-#undef CFG_CONSOLE_INFO_QUIET          /* silent console ? */
+#undef CONFIG_SYS_CONSOLE_INFO_QUIET           /* silent console ? */
 #undef DEBUG_FLASH                     /* debug flash code */
 #undef FLASH_DEBUG                     /* debug fash code */
 #undef DEBUG_ENV                       /* debug environment code */
 
-#define CFG_DIRECT_FLASH_TFTP  1       /* allow direct tftp to flash */
+#define CONFIG_SYS_DIRECT_FLASH_TFTP   1       /* allow direct tftp to flash */
 #define CONFIG_ENV_OVERWRITE   1       /* allow overwrite MAC address */
 
 /*
 #endif /* CONFIG_FLASH_8MB */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled */
 #undef CONFIG_STATUS_LED               /* Status LED disabled */
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled */
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 
-#define CFG_HUSH_PARSER                1               /* use "hush" command parser */
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1               /* use "hush" command parser */
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM */
 
-#define CFG_LOAD_ADDR          0x400000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* default load address */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00          /* End of used area in DPRAM */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00          /* End of used area in DPRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF800000      /* Allow an 8Mbyte window */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF800000      /* Allow an 8Mbyte window */
 
 #define FLASH_BASE0_4M_PRELIM  0xFFC00000      /* Base for 4M Flash */
 #define FLASH_BASE0_8M_PRELIM  0xFF800000      /* Base for 8M Flash */
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor */
-#define CFG_MONITOR_BASE       0xFFF00000      /* U-boot location */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        0xFFF00000      /* U-boot location */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * TODO flash parameters
  * FLASH organization for Intel Strataflash
  */
-#undef  CFG_FLASH_16BIT                                /* 32-bit wide flash memory */
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71              /* max number of sectors on one chip */
+#undef  CONFIG_SYS_FLASH_16BIT                         /* 32-bit wide flash memory */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71              /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000          /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000          /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout for Flash Write (in ms) */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16              /* For all MPC8xx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      16              /* For all MPC8xx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4               /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     4               /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  */
 
 #ifdef CONFIG_WATCHDOG
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWE | SYPCR_SWRI | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWE | SYPCR_SWRI | SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWRI | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWRI | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration 11-6
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     (SIUMCR_DLK | SIUMCR_DPC | SIUMCR_MPRE | SIUMCR_MLRC01 | SIUMCR_GB5E)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DLK | SIUMCR_DPC | SIUMCR_MPRE | SIUMCR_MLRC01 | SIUMCR_GB5E)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control 11-26
  *-----------------------------------------------------------------------
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register 11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control 11-31
  *-----------------------------------------------------------------------
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
 /* MF (Multiplication Factor of SPLL) */
 /* Sets the QS823 to specified clock from 32KHz clock at EXTAL. */
 #define vPLPRCR_MF     ((CONFIG_CLOCK_MULT+1) << 20)
-#define CFG_PLPRCR     (vPLPRCR_MF | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | PLPRCR_LOLRE)
+#define CONFIG_SYS_PLPRCR      (vPLPRCR_MF | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | PLPRCR_LOLRE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  *-----------------------------------------------------------------------
  */
 #if defined(CONFIG_CLOCK_16MHZ) || defined(CONFIG_CLOCK_33MHZ) || defined(CONFIG_CLOCK_50MHZ)
-#define CFG_SCCR               (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG00)
-#define CFG_BRGCLK_PRESCALE    1
+#define CONFIG_SYS_SCCR                (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG00)
+#define CONFIG_SYS_BRGCLK_PRESCALE     1
 #endif
 
 #if defined(CONFIG_CLOCK_66MHZ)
-#define CFG_SCCR               (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG01)
-#define CFG_BRGCLK_PRESCALE    4
+#define CONFIG_SYS_SCCR                (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG01)
+#define CONFIG_SYS_BRGCLK_PRESCALE     4
 #endif
 
 #if defined(CONFIG_CLOCK_80MHZ)
-#define CFG_SCCR               (SCCR_TBS | SCCR_EBDF01 | SCCR_DFBRG01)
-#define CFG_BRGCLK_PRESCALE    4
+#define CONFIG_SYS_SCCR                (SCCR_TBS | SCCR_EBDF01 | SCCR_DFBRG01)
+#define CONFIG_SYS_BRGCLK_PRESCALE     4
 #endif
 
-#define SCCR_MASK              CFG_SCCR
+#define SCCR_MASK              CONFIG_SYS_SCCR
 
 /*-----------------------------------------------------------------------
  * Debug Enable Register
  * 0x73E67C0F - All interrupts handled by BDM
  * 0x00824001 - Only interrupts needed by MWDebug.exe handled by BDM
  *-----------------------------------------------------------------------
-#define CFG_DER                        0x73E67C0F
-#define CFG_DER                        0x0082400F
+#define CONFIG_SYS_DER                 0x73E67C0F
+#define CONFIG_SYS_DER                 0x0082400F
 
  #-------------------------------------------------------------------------
  # Program the Debug Enable Register (DER). This register provides the user
  # MPC860 User Manual for a description of this register.
  #-------------------------------------------------------------------------
 */
-#define CFG_DER                        0
+#define CONFIG_SYS_DER                 0
 
 /*-----------------------------------------------------------------------
  * Memory Controller Initialization Constants
  * BR0 and OR0 (AMD dual FLASH devices)
  * Base address = 0xFFF0_0000 - 0xFFF7_FFFF (After relocation)
  */
-#define CFG_PRELIM_OR_AM
-#define CFG_OR_TIMING_FLASH
+#define CONFIG_SYS_PRELIM_OR_AM
+#define CONFIG_SYS_OR_TIMING_FLASH
 
 /*
  *-----------------------------------------------------------------------
 /* BA (Base Address) = 0xFF80+0b for a total of 17 bits. 17 bit base addr */
 /*                     represents a minumum 32K block size. */
 #define vBR0_BA                        ((0xFF80 << 16) + (0 << 15))
-#define CFG_BR0_PRELIM         (vBR0_BA | BR_V)
+#define CONFIG_SYS_BR0_PRELIM          (vBR0_BA | BR_V)
 
 /* AM (Address Mask) = 0xFF80+0b = We've masked the upper 9 bits        */
 /*                                 which defines a 8 Mbyte memory block. */
 
 #if defined(CONFIG_CLOCK_50MHZ) || defined(CONFIG_CLOCK_80MHZ)
 /*  0101 = Add a 5 clock cycle wait state */
-#define CFG_OR0_PRELIM         (vOR0_AM | OR_CSNT_SAM | 0R_ACS_DIV4 | OR_BI | OR_SCY_5_CLK)
+#define CONFIG_SYS_OR0_PRELIM          (vOR0_AM | OR_CSNT_SAM | 0R_ACS_DIV4 | OR_BI | OR_SCY_5_CLK)
 #endif
 
 #if defined(CONFIG_CLOCK_33MHZ) || defined(CONFIG_CLOCK_66MHZ)
 /*  0011 = Add a 3 clock cycle wait state */
 /*  29.8ns clock * (3 + 2) = 149ns cycle time */
-#define CFG_OR0_PRELIM         (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK)
+#define CONFIG_SYS_OR0_PRELIM          (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK)
 #endif
 
 #if defined(CONFIG_CLOCK_16MHZ)
 /*  0010 = Add a 2 clock cycle wait state */
-#define CFG_OR0_PRELIM         (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_2_CLK)
+#define CONFIG_SYS_OR0_PRELIM          (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_2_CLK)
 #endif
 
 /*
  */
 #define vOR1_AM                        ((0xF800 << 16) + (0 << 15))
 #define vBR1_BA                        ((0x0000 << 16) + (0 << 15))
-#define CFG_OR1                        (vOR1_AM | OR_CSNT_SAM | OR_BI)
-#define CFG_BR1                        (vBR1_BA | BR_MS_UPMA | BR_V)
+#define CONFIG_SYS_OR1                 (vOR1_AM | OR_CSNT_SAM | OR_BI)
+#define CONFIG_SYS_BR1                 (vBR1_BA | BR_MS_UPMA | BR_V)
 
 /* Machine A Mode Register */
 
 
 /* For boards with 16M of SDRAM */
 #define SDRAM_16M_MAX_SIZE     0x01000000      /* max 16MB SDRAM */
-#define CFG_16M_MAMR           (vMAMR_PTA | MAMR_AMA_TYPE_0 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A11 |\
+#define CONFIG_SYS_16M_MAMR            (vMAMR_PTA | MAMR_AMA_TYPE_0 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A11 |\
 MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
 
 /* For boards with 32M of SDRAM */
 #define SDRAM_32M_MAX_SIZE     0x02000000      /* max 32MB SDRAM */
-#define CFG_32M_MAMR           (vMAMR_PTA | MAMR_AMA_TYPE_1 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A10 |\
+#define CONFIG_SYS_32M_MAMR            (vMAMR_PTA | MAMR_AMA_TYPE_1 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A10 |\
 MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
 
 
@@ -505,12 +505,12 @@ MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
 
 #if defined(CONFIG_CLOCK_66MHZ) || defined(CONFIG_CLOCK_80MHZ)
 /* Divide by 32 */
-#define CFG_MPTPR              0x02
+#define CONFIG_SYS_MPTPR               0x02
 #endif
 
 #if defined(CONFIG_CLOCK_16MHZ) || defined(CONFIG_CLOCK_33MHZ) || defined(CONFIG_CLOCK_50MHZ)
 /* Divide by 16 */
-#define CFG_MPTPR              0x04
+#define CONFIG_SYS_MPTPR               0x04
 #endif
 
 /*
@@ -518,24 +518,24 @@ MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
  * Base address = 0xF020_0000 - 0xF020_0FFF
  *
  */
-#define CFG_OR2_PRELIM         0xFFF00000
-#define CFG_BR2_PRELIM         0xF0200000
+#define CONFIG_SYS_OR2_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR2_PRELIM          0xF0200000
 
 /*
  * BR3 and OR3 (External Bus CS3)
  * Base address = 0xF030_0000 - 0xF030_0FFF
  *
  */
-#define CFG_OR3_PRELIM         0xFFF00000
-#define CFG_BR3_PRELIM         0xF0300000
+#define CONFIG_SYS_OR3_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR3_PRELIM          0xF0300000
 
 /*
  * BR4 and OR4 (External Bus CS3)
  * Base address = 0xF040_0000 - 0xF040_0FFF
  *
  */
-#define CFG_OR4_PRELIM         0xFFF00000
-#define CFG_BR4_PRELIM         0xF0400000
+#define CONFIG_SYS_OR4_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR4_PRELIM          0xF0400000
 
 
 /*
@@ -543,24 +543,24 @@ MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
  * Base address = 0xF050_0000 - 0xF050_0FFF
  *
  */
-#define CFG_OR5_PRELIM         0xFFF00000
-#define CFG_BR5_PRELIM         0xF0500000
+#define CONFIG_SYS_OR5_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR5_PRELIM          0xF0500000
 
 /*
  * BR6 and OR6 (Unused)
  * Base address = 0xF060_0000 - 0xF060_0FFF
  *
  */
-#define CFG_OR6_PRELIM         0xFFF00000
-#define CFG_BR6_PRELIM         0xF0600000
+#define CONFIG_SYS_OR6_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR6_PRELIM          0xF0600000
 
 /*
  * BR7 and OR7 (Unused)
  * Base address = 0xF070_0000 - 0xF070_0FFF
  *
  */
-#define CFG_OR7_PRELIM         0xFFF00000
-#define CFG_BR7_PRELIM         0xF0700000
+#define CONFIG_SYS_OR7_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR7_PRELIM          0xF0700000
 
 /*
  * Internal Definitions
index 87a184b0ba80e7e1116bb98a9c555cd6b8a906af..65f41e6a70f0c62e6f807d3a8cfa1942eb6cefab 100644 (file)
 #define __CONFIG_H
 
 /* various debug settings */
-#undef CFG_DEVICE_NULLDEV              /* null device */
+#undef CONFIG_SYS_DEVICE_NULLDEV               /* null device */
 #undef CONFIG_SILENT_CONSOLE           /* silent console */
-#undef CFG_CONSOLE_INFO_QUIET          /* silent console ? */
+#undef CONFIG_SYS_CONSOLE_INFO_QUIET           /* silent console ? */
 #undef DEBUG_FLASH                     /* debug flash code */
 #undef FLASH_DEBUG                     /* debug fash code */
 #undef DEBUG_ENV                       /* debug environment code */
 
-#define CFG_DIRECT_FLASH_TFTP  1       /* allow direct tftp to flash */
+#define CONFIG_SYS_DIRECT_FLASH_TFTP   1       /* allow direct tftp to flash */
 #define CONFIG_ENV_OVERWRITE   1       /* allow overwrite MAC address */
 
 /*
 #endif /* CONFIG_FLASH_8MB */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled */
 #undef CONFIG_STATUS_LED               /* Status LED disabled */
 #undef CONFIG_CAN_DRIVER               /* CAN Driver support disabled */
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 
-#define CFG_HUSH_PARSER                1               /* use "hush" command parser */
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1               /* use "hush" command parser */
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM */
 
-#define CFG_LOAD_ADDR          0x400000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* default load address */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00          /* End of used area in DPRAM */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00          /* End of used area in DPRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF800000      /* Allow an 8Mbyte window */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF800000      /* Allow an 8Mbyte window */
 
 #define FLASH_BASE0_4M_PRELIM  0xFFC00000      /* Base for 4M Flash */
 #define FLASH_BASE0_8M_PRELIM  0xFF800000      /* Base for 8M Flash */
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor */
-#define CFG_MONITOR_BASE       0xFFF00000      /* U-boot location */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        0xFFF00000      /* U-boot location */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * TODO flash parameters
  * FLASH organization for Intel Strataflash
  */
-#undef  CFG_FLASH_16BIT                                /* 32-bit wide flash memory */
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71              /* max number of sectors on one chip */
+#undef  CONFIG_SYS_FLASH_16BIT                         /* 32-bit wide flash memory */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71              /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000          /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000          /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout for Flash Write (in ms) */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16              /* For all MPC8xx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      16              /* For all MPC8xx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4               /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     4               /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  */
 
 #ifdef CONFIG_WATCHDOG
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWE | SYPCR_SWRI | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWE | SYPCR_SWRI | SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWRI | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWRI | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration 11-6
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     (SIUMCR_DLK | SIUMCR_DPC | SIUMCR_MPRE | SIUMCR_MLRC01 | SIUMCR_GB5E)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DLK | SIUMCR_DPC | SIUMCR_MPRE | SIUMCR_MLRC01 | SIUMCR_GB5E)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control 11-26
  *-----------------------------------------------------------------------
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register 11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control 11-31
  *-----------------------------------------------------------------------
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
 /* MF (Multiplication Factor of SPLL) */
 /* Sets the QS850 to specified clock from 32KHz clock at EXTAL. */
 #define vPLPRCR_MF     ((CONFIG_CLOCK_MULT+1) << 20)
-#define CFG_PLPRCR     (vPLPRCR_MF | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | PLPRCR_LOLRE)
+#define CONFIG_SYS_PLPRCR      (vPLPRCR_MF | PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST | PLPRCR_LOLRE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  *-----------------------------------------------------------------------
  */
 #if defined(CONFIG_CLOCK_16MHZ) || defined(CONFIG_CLOCK_33MHZ) || defined(CONFIG_CLOCK_50MHZ)
-#define CFG_SCCR               (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG00)
-#define CFG_BRGCLK_PRESCALE    1
+#define CONFIG_SYS_SCCR                (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG00)
+#define CONFIG_SYS_BRGCLK_PRESCALE     1
 #endif
 
 #if defined(CONFIG_CLOCK_66MHZ)
-#define CFG_SCCR               (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG01)
-#define CFG_BRGCLK_PRESCALE    4
+#define CONFIG_SYS_SCCR                (SCCR_TBS | SCCR_EBDF00 | SCCR_DFBRG01)
+#define CONFIG_SYS_BRGCLK_PRESCALE     4
 #endif
 
 #if defined(CONFIG_CLOCK_80MHZ)
-#define CFG_SCCR               (SCCR_TBS | SCCR_EBDF01 | SCCR_DFBRG01)
-#define CFG_BRGCLK_PRESCALE    4
+#define CONFIG_SYS_SCCR                (SCCR_TBS | SCCR_EBDF01 | SCCR_DFBRG01)
+#define CONFIG_SYS_BRGCLK_PRESCALE     4
 #endif
 
-#define SCCR_MASK              CFG_SCCR
+#define SCCR_MASK              CONFIG_SYS_SCCR
 
 /*-----------------------------------------------------------------------
  * Debug Enable Register
  * 0x73E67C0F - All interrupts handled by BDM
  * 0x00824001 - Only interrupts needed by MWDebug.exe handled by BDM
  *-----------------------------------------------------------------------
-#define CFG_DER                        0x73E67C0F
-#define CFG_DER                        0x0082400F
+#define CONFIG_SYS_DER                 0x73E67C0F
+#define CONFIG_SYS_DER                 0x0082400F
 
  #-------------------------------------------------------------------------
  # Program the Debug Enable Register (DER). This register provides the user
  # MPC860 User Manual for a description of this register.
  #-------------------------------------------------------------------------
 */
-#define CFG_DER                        0
+#define CONFIG_SYS_DER                 0
 
 /*-----------------------------------------------------------------------
  * Memory Controller Initialization Constants
  * BR0 and OR0 (AMD dual FLASH devices)
  * Base address = 0xFFF0_0000 - 0xFFF7_FFFF (After relocation)
  */
-#define CFG_PRELIM_OR_AM
-#define CFG_OR_TIMING_FLASH
+#define CONFIG_SYS_PRELIM_OR_AM
+#define CONFIG_SYS_OR_TIMING_FLASH
 
 /*
  *-----------------------------------------------------------------------
 /* BA (Base Address) = 0xFF80+0b for a total of 17 bits. 17 bit base addr */
 /*                     represents a minumum 32K block size. */
 #define vBR0_BA                        ((0xFF80 << 16) + (0 << 15))
-#define CFG_BR0_PRELIM         (vBR0_BA | BR_V)
+#define CONFIG_SYS_BR0_PRELIM          (vBR0_BA | BR_V)
 
 /* AM (Address Mask) = 0xFF80+0b = We've masked the upper 9 bits        */
 /*                                 which defines a 8 Mbyte memory block. */
 
 #if defined(CONFIG_CLOCK_50MHZ) || defined(CONFIG_CLOCK_80MHZ)
 /*  0101 = Add a 5 clock cycle wait state */
-#define CFG_OR0_PRELIM         (vOR0_AM | OR_CSNT_SAM | 0R_ACS_DIV4 | OR_BI | OR_SCY_5_CLK)
+#define CONFIG_SYS_OR0_PRELIM          (vOR0_AM | OR_CSNT_SAM | 0R_ACS_DIV4 | OR_BI | OR_SCY_5_CLK)
 #endif
 
 #if defined(CONFIG_CLOCK_33MHZ) || defined(CONFIG_CLOCK_66MHZ)
 /*  0011 = Add a 3 clock cycle wait state */
 /*  29.8ns clock * (3 + 2) = 149ns cycle time */
-#define CFG_OR0_PRELIM         (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK)
+#define CONFIG_SYS_OR0_PRELIM          (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK)
 #endif
 
 #if defined(CONFIG_CLOCK_16MHZ)
 /*  0010 = Add a 2 clock cycle wait state */
-#define CFG_OR0_PRELIM         (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_2_CLK)
+#define CONFIG_SYS_OR0_PRELIM          (vOR0_AM | OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_2_CLK)
 #endif
 
 /*
  */
 #define vOR1_AM                        ((0xF800 << 16) + (0 << 15))
 #define vBR1_BA                        ((0x0000 << 16) + (0 << 15))
-#define CFG_OR1                        (vOR1_AM | OR_CSNT_SAM | OR_BI)
-#define CFG_BR1                        (vBR1_BA | BR_MS_UPMA | BR_V)
+#define CONFIG_SYS_OR1                 (vOR1_AM | OR_CSNT_SAM | OR_BI)
+#define CONFIG_SYS_BR1                 (vBR1_BA | BR_MS_UPMA | BR_V)
 
 /* Machine A Mode Register */
 
 
 /* For boards with 16M of SDRAM */
 #define SDRAM_16M_MAX_SIZE     0x01000000      /* max 16MB SDRAM */
-#define CFG_16M_MAMR           (vMAMR_PTA | MAMR_AMA_TYPE_0 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A11 |\
+#define CONFIG_SYS_16M_MAMR            (vMAMR_PTA | MAMR_AMA_TYPE_0 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A11 |\
 MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
 
 /* For boards with 32M of SDRAM */
 #define SDRAM_32M_MAX_SIZE     0x02000000      /* max 32MB SDRAM */
-#define CFG_32M_MAMR           (vMAMR_PTA | MAMR_AMA_TYPE_1 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A10 |\
+#define CONFIG_SYS_32M_MAMR            (vMAMR_PTA | MAMR_AMA_TYPE_1 | MAMR_DSA_2_CYCL | MAMR_G0CLA_A10 |\
 MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
 
 
@@ -505,12 +505,12 @@ MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
 
 #if defined(CONFIG_CLOCK_66MHZ) || defined(CONFIG_CLOCK_80MHZ)
 /* Divide by 32 */
-#define CFG_MPTPR              0x02
+#define CONFIG_SYS_MPTPR               0x02
 #endif
 
 #if defined(CONFIG_CLOCK_16MHZ) || defined(CONFIG_CLOCK_33MHZ) || defined(CONFIG_CLOCK_50MHZ)
 /* Divide by 16 */
-#define CFG_MPTPR              0x04
+#define CONFIG_SYS_MPTPR               0x04
 #endif
 
 /*
@@ -518,24 +518,24 @@ MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
  * Base address = 0xF020_0000 - 0xF020_0FFF
  *
  */
-#define CFG_OR2_PRELIM         0xFFF00000
-#define CFG_BR2_PRELIM         0xF0200000
+#define CONFIG_SYS_OR2_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR2_PRELIM          0xF0200000
 
 /*
  * BR3 and OR3 (External Bus CS3)
  * Base address = 0xF030_0000 - 0xF030_0FFF
  *
  */
-#define CFG_OR3_PRELIM         0xFFF00000
-#define CFG_BR3_PRELIM         0xF0300000
+#define CONFIG_SYS_OR3_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR3_PRELIM          0xF0300000
 
 /*
  * BR4 and OR4 (External Bus CS3)
  * Base address = 0xF040_0000 - 0xF040_0FFF
  *
  */
-#define CFG_OR4_PRELIM         0xFFF00000
-#define CFG_BR4_PRELIM         0xF0400000
+#define CONFIG_SYS_OR4_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR4_PRELIM          0xF0400000
 
 
 /*
@@ -543,24 +543,24 @@ MAMR_RLFA_1X | MAMR_WLFA_1X | MAMR_TLFA_4X)
  * Base address = 0xF050_0000 - 0xF050_0FFF
  *
  */
-#define CFG_OR5_PRELIM         0xFFF00000
-#define CFG_BR5_PRELIM         0xF0500000
+#define CONFIG_SYS_OR5_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR5_PRELIM          0xF0500000
 
 /*
  * BR6 and OR6 (Unused)
  * Base address = 0xF060_0000 - 0xF060_0FFF
  *
  */
-#define CFG_OR6_PRELIM         0xFFF00000
-#define CFG_BR6_PRELIM         0xF0600000
+#define CONFIG_SYS_OR6_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR6_PRELIM          0xF0600000
 
 /*
  * BR7 and OR7 (Unused)
  * Base address = 0xF070_0000 - 0xF070_0FFF
  *
  */
-#define CFG_OR7_PRELIM         0xFFF00000
-#define CFG_BR7_PRELIM         0xF0700000
+#define CONFIG_SYS_OR7_PRELIM          0xFFF00000
+#define CONFIG_SYS_BR7_PRELIM          0xF0700000
 
 /*
  * Internal Definitions
index 54dbc308baf6bed7e3caf79543b113f9df1b1f2c..705d37524de728462ede007be48c4a74e9d2c070 100644 (file)
 #define __CONFIG_H
 
 /* various debug settings */
-#undef CFG_DEVICE_NULLDEV              /* null device */
+#undef CONFIG_SYS_DEVICE_NULLDEV               /* null device */
 #undef CONFIG_SILENT_CONSOLE           /* silent console */
-#undef CFG_CONSOLE_INFO_QUIET          /* silent console ? */
+#undef CONFIG_SYS_CONSOLE_INFO_QUIET           /* silent console ? */
 #undef DEBUG_FLASH                     /* debug flash code */
 #undef FLASH_DEBUG                     /* debug fash code */
 #undef DEBUG_ENV                       /* debug environment code */
 
-#define CFG_DIRECT_FLASH_TFTP  1       /* allow direct tftp to flash */
+#define CONFIG_SYS_DIRECT_FLASH_TFTP   1       /* allow direct tftp to flash */
 #define CONFIG_ENV_OVERWRITE   1       /* allow overwrite MAC address */
 
 
@@ -58,7 +58,7 @@
 #define CONFIG_MII
 #define FEC_INTERRUPT          SIU_LEVEL1
 #undef CONFIG_SCC1_ENET                        /* SCC1 10BaseT ethernet */
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 
 #undef CONFIG_8xx_CONS_SMC1
 #define CONFIG_8xx_CONS_SMC2   1       /* Console is on SMC */
@@ -83,7 +83,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled */
 
@@ -139,30 +139,30 @@ CONFIG_SPI
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 
-#define CFG_HUSH_PARSER                1               /* use "hush" command parser */
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1               /* use "hush" command parser */
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
 /* TODO - size? */
-#define CFG_MEMTEST_START      0x0400000       /* memtest works */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Low Level Configuration Settings
@@ -172,55 +172,55 @@ CONFIG_SPI
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00          /* End of used area in DPRAM */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00          /* End of used area in DPRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFF00000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFF00000
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc() */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /* TODO flash parameters */
 /*-----------------------------------------------------------------------
  * FLASH organization for Intel Strataflash
  */
-#define CFG_FLASH_16BIT                1               /* 16-bit wide flash memory */
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     64              /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_16BIT         1               /* 16-bit wide flash memory */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      64              /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000          /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000          /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout for Flash Write (in ms) */
 
 #undef CONFIG_ENV_IS_IN_FLASH
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16              /* For all MPC8xx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      16              /* For all MPC8xx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4               /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     4               /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
@@ -230,47 +230,47 @@ CONFIG_SPI
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (0xFFFFFF88 | SYPCR_SWE | SYPCR_SWRI)
+#define CONFIG_SYS_SYPCR       (0xFFFFFF88 | SYPCR_SWE | SYPCR_SWRI)
 #else
-#define CFG_SYPCR      0xFFFFFF88
+#define CONFIG_SYS_SYPCR       0xFFFFFF88
 #endif
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration 11-6
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     0x00620000
+#define CONFIG_SYS_SIUMCR      0x00620000
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control 11-26
  *-----------------------------------------------------------------------
  */
-#define CFG_TBSCR      0x00C3
+#define CONFIG_SYS_TBSCR       0x00C3
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register 11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control 11-31
  *-----------------------------------------------------------------------
  */
-#define CFG_PISCR      0x0082
+#define CONFIG_SYS_PISCR       0x0082
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  *-----------------------------------------------------------------------
  */
-#define CFG_PLPRCR     0x0090D000
+#define CONFIG_SYS_PLPRCR      0x0090D000
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  *-----------------------------------------------------------------------
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       0x02000000
+#define CONFIG_SYS_SCCR        0x02000000
 
 
 /*-----------------------------------------------------------------------
@@ -278,9 +278,9 @@ CONFIG_SPI
  * 0x73E67C0F - All interrupts handled by BDM
  * 0x00824001 - Only interrupts needed by MWDebug.exe handled by BDM
  *-----------------------------------------------------------------------
-#define CFG_DER                        0x73E67C0F
+#define CONFIG_SYS_DER                 0x73E67C0F
 */
-#define CFG_DER                        0x0082400F
+#define CONFIG_SYS_DER                 0x0082400F
 
 
 /*-----------------------------------------------------------------------
@@ -292,12 +292,12 @@ CONFIG_SPI
  * BR0 and OR0 (AMD 512K Socketed FLASH)
  * Base address = 0xFFF0_0000 - 0xFFF7_FFFF (After relocation)
  */
-#define CFG_PRELIM_OR_AM
-#define CFG_OR_TIMING_FLASH
+#define CONFIG_SYS_PRELIM_OR_AM
+#define CONFIG_SYS_OR_TIMING_FLASH
 
 #define FLASH_BASE0_PRELIM     0xFFF00001
-#define CFG_OR0_PRELIM         0xFFF80D42
-#define CFG_BR0_PRELIM         0xFFF00401
+#define CONFIG_SYS_OR0_PRELIM          0xFFF80D42
+#define CONFIG_SYS_BR0_PRELIM          0xFFF00401
 
 
 /*
@@ -306,10 +306,10 @@ CONFIG_SPI
  */
 
 #define FLASH_BASE1_PRELIM     0xD0000000
-#define CFG_OR1_PRELIM         0xFF800D42
-#define CFG_BR1_PRELIM         0xD0000801
-/* #define CFG_OR1             0xFF800D42 */
-/* #define CFG_BR1             0xD0000801 */
+#define CONFIG_SYS_OR1_PRELIM          0xFF800D42
+#define CONFIG_SYS_BR1_PRELIM          0xD0000801
+/* #define CONFIG_SYS_OR1              0xFF800D42 */
+/* #define CONFIG_SYS_BR1              0xD0000801 */
 
 
 /*
@@ -327,15 +327,15 @@ CONFIG_SPI
 
 /* For boards with 16M of SDRAM */
 #define SDRAM_16M_MAX_SIZE     0x01000000      /* max 16MB SDRAM */
-#define CFG_16M_MBMR           0x18802114      /* Mem Periodic Timer Prescaler */
+#define CONFIG_SYS_16M_MBMR            0x18802114      /* Mem Periodic Timer Prescaler */
 
 /* For boards with 64M of SDRAM */
 #define SDRAM_64M_MAX_SIZE     0x04000000      /* max 64MB SDRAM */
 /* TODO - determine real value */
-#define CFG_64M_MBMR           0x18802114      /* Mem Period Timer Prescaler */
+#define CONFIG_SYS_64M_MBMR            0x18802114      /* Mem Period Timer Prescaler */
 
-#define CFG_OR2                        (SDRAM_PRELIM_OR_AM | SDRAM_TIMING)
-#define CFG_BR2                        (SDRAM_BASE | 0x000000C1)
+#define CONFIG_SYS_OR2                 (SDRAM_PRELIM_OR_AM | SDRAM_TIMING)
+#define CONFIG_SYS_BR2                 (SDRAM_BASE | 0x000000C1)
 
 
 /*
@@ -347,10 +347,10 @@ CONFIG_SPI
  *
  */
 
-#define CFG_OR3_PRELIM         0xFFC00DF6
-#define CFG_BR3_PRELIM         0xD1000401
-/* #define CFG_OR3             0xFFC00DF6 */
-/* #define CFG_BR3             0xD1000401 */
+#define CONFIG_SYS_OR3_PRELIM          0xFFC00DF6
+#define CONFIG_SYS_BR3_PRELIM          0xD1000401
+/* #define CONFIG_SYS_OR3              0xFFC00DF6 */
+/* #define CONFIG_SYS_BR3              0xD1000401 */
 
 
 /*
@@ -359,10 +359,10 @@ CONFIG_SPI
  *
  */
 
-#define CFG_OR4_PRELIM         0xFF000000
-#define CFG_BR4_PRELIM         0xE0000000
-/* #define CFG_OR4             0xFF000000 */
-/* #define CFG_BR4             0xE0000000 */
+#define CONFIG_SYS_OR4_PRELIM          0xFF000000
+#define CONFIG_SYS_BR4_PRELIM          0xE0000000
+/* #define CONFIG_SYS_OR4              0xFF000000 */
+/* #define CONFIG_SYS_BR4              0xE0000000 */
 
 
 /*
@@ -371,10 +371,10 @@ CONFIG_SPI
  *
  */
 
-#define CFG_OR5_PRELIM         0xFF000000
-#define CFG_BR5_PRELIM         0xE4000000
-/* #define CFG_OR5             0xFF000000 */
-/* #define CFG_BR5             0xE4000000 */
+#define CONFIG_SYS_OR5_PRELIM          0xFF000000
+#define CONFIG_SYS_BR5_PRELIM          0xE4000000
+/* #define CONFIG_SYS_OR5              0xFF000000 */
+/* #define CONFIG_SYS_BR5              0xE4000000 */
 
 
 /*
@@ -383,10 +383,10 @@ CONFIG_SPI
  *
  */
 
-#define CFG_OR6_PRELIM         0xFF000000
-#define CFG_BR6_PRELIM         0xE8000000
-/* #define CFG_OR6             0xFF000000 */
-/* #define CFG_BR6             0xE8000000 */
+#define CONFIG_SYS_OR6_PRELIM          0xFF000000
+#define CONFIG_SYS_BR6_PRELIM          0xE8000000
+/* #define CONFIG_SYS_OR6              0xFF000000 */
+/* #define CONFIG_SYS_BR6              0xE8000000 */
 
 
 /*
@@ -395,10 +395,10 @@ CONFIG_SPI
  *
  */
 
-#define CFG_OR7_PRELIM         0xFF000000
-#define CFG_BR7_PRELIM         0xE8000000
-/* #define CFG_OR7             0xFF000000 */
-/* #define CFG_BR7             0xE8000000 */
+#define CONFIG_SYS_OR7_PRELIM          0xFF000000
+#define CONFIG_SYS_BR7_PRELIM          0xE8000000
+/* #define CONFIG_SYS_OR7              0xFF000000 */
+/* #define CONFIG_SYS_BR7              0xE8000000 */
 
 
 /*
index 001ac1cf0f608fab72758ea3059e83d5f3c89fee..bab44606da642b3217418372c66d61b960bc03de 100644 (file)
@@ -71,7 +71,7 @@
 #define        CONFIG_SCC2_ENET
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #define        CONFIG_MISC_INIT_R              /* have misc_init_r() function  */
 
@@ -95,8 +95,8 @@
 
 #define CONFIG_HARD_I2C                1       /* To I2C with hardware support */
 #undef CONFIG_SORT_I2C                 /* To I2C with software support */
-#define CFG_I2C_SPEED          4700    /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           4700    /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
                                else    immr->im_cpm.cp_pbdat &= ~PB_SCL
 #define I2C_DELAY              udelay(50)
 
-#define CFG_I2C_LCD_ADDR       0x8     /* LCD Control */
-#define CFG_I2C_KEY_ADDR       0x9     /* Keyboard coprocessor */
-#define CFG_I2C_TEM_ADDR       0x49    /* Temperature Sensors */
+#define CONFIG_SYS_I2C_LCD_ADDR        0x8     /* LCD Control */
+#define CONFIG_SYS_I2C_KEY_ADDR        0x9     /* Keyboard coprocessor */
+#define CONFIG_SYS_I2C_TEM_ADDR        0x49    /* Temperature Sensors */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_DEVICE_NULLDEV     1       /* we need the null device      */
-#define CFG_CONSOLE_IS_IN_ENV  1       /* must set console from env    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* we need the null device      */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   1       /* must set console from env    */
 
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * JFFS2 partitions
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x40000 /* Offset of Environment                */
 #define        CONFIG_ENV_SECT_SIZE    0x20000 /* Total Size of Environment sector     */
 #define        CONFIG_ENV_SIZE         0x4000  /* Used Size of Environment sector      */
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 #ifdef CONFIG_80MHz    /* for 80 MHz, we use a 16 MHz clock * 5 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                ( (5-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
 #else                  /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 #endif /* CONFIG_80MHz */
 
 /*-----------------------------------------------------------------------
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFF000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1 | OR_SCY_7_CLK | OR_BI)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1 | OR_SCY_7_CLK | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 
 /*
 #define SDRAM_BASE2_PRELIM     0x00000000      /* SDRAM bank #0        */
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
-#define CFG_PRELIM_OR2_AM      0xF8000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR2_AM       0xF8000000      /* OR addr mask */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    (OR_ACS_DIV1  | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_ACS_DIV1  | OR_CSNT_SAM | \
                                 OR_SCY_0_CLK | OR_G5LS)
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR2_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR2_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * BR3 and OR3 (CAN Controller)
  */
 #ifdef CONFIG_CAN_DRIVER
-#define CFG_CAN_BASE           0xC0000000      /* CAN base address   */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA |OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_CAN_BASE            0xC0000000      /* CAN base address   */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA |OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                 BR_PS_8 | BR_MS_UPMB | BR_V)
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 #if   defined(CONFIG_80MHz)
-#define CFG_MAMR_PTA           156
+#define CONFIG_SYS_MAMR_PTA            156
 #elif defined(CONFIG_66MHz)
-#define CFG_MAMR_PTA           129
+#define CONFIG_SYS_MAMR_PTA            129
 #else          /*   50 MHz */
-#define CFG_MAMR_PTA            98
+#define CONFIG_SYS_MAMR_PTA             98
 #endif /*CONFIG_??MHz */
 
 /*
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index aec204b8d51aa3ec27f8c6d9bbc39fd17ea7cf3b..280175af1a464cc8076d87ce411edf1512263107 100644 (file)
@@ -71,7 +71,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #undef CONFIG_RTC_MPC8xx               /* don't use internal RTC of MPC8xx (no battery)        */
 
 #define CONFIG_HARD_I2C
-#define CFG_I2C_SPEED 40000
-#define CFG_I2C_SLAVE 0xfe
-#define CFG_I2C_EEPROM_ADDR            0x50
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_WRITE_BITS          4
-#define CFG_EEPROM_WRITE_DELAY_MS      10
+#define CONFIG_SYS_I2C_SPEED 40000
+#define CONFIG_SYS_I2C_SLAVE 0xfe
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_WRITE_BITS           4
+#define CONFIG_SYS_EEPROM_WRITE_DELAY_MS       10
 
 /*
  * Command line configuration.
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x0100000       /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x0100000       /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0xFFF00000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFF00000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (384 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (384 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (384 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (384 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x10000 /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
 /*
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWRI | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWRI | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC00 | SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC00 | SIUMCR_FRC)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
 /*
  * for 48 MHz, we use a 4 MHz clock * 12
  */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                ( (12-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_LOLRE )
 
 /*-----------------------------------------------------------------------
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_RTDIV   | SCCR_RTSEL    | SCCR_CRQEN    | \
+#define CONFIG_SYS_SCCR        (SCCR_RTDIV   | SCCR_RTSEL    | SCCR_CRQEN    | \
                         SCCR_PRQEN   | SCCR_EBDF00   | \
                         SCCR_COM01   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD001 | \
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 #endif
 
 /************************************************************
  * Disk-On-Chip configuration
  ************************************************************/
-#define CFG_MAX_DOC_DEVICE     1       /* Max number of DOC devices            */
-#define CFG_DOC_SHORT_TIMEOUT
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices            */
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_PRELIM_OR_AM       0xFFF80000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFF80000      /* OR addr mask */
 
 /* FLASH timing: ACS = 00, TRLX = 0, CSNT = 1, SCY = 7, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH  (OR_ACS_DIV1 | OR_BI | OR_SCY_7_CLK | OR_EHTR)
+#define CONFIG_SYS_OR_TIMING_FLASH  (OR_ACS_DIV1 | OR_BI | OR_SCY_7_CLK | OR_EHTR)
 
-#define CFG_OR_TIMING_MSYS   (OR_ACS_DIV1 | OR_BI)
+#define CONFIG_SYS_OR_TIMING_MSYS   (OR_ACS_DIV1 | OR_BI)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V)
 
-#define CFG_OR1_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_MSYS)
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMB | \
+#define CONFIG_SYS_OR1_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_MSYS)
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMB | \
                          BR_PS_8 | BR_V)
 
 /*
 /*
  * SDRAM timing:
  */
-#define CFG_OR_TIMING_SDRAM    (OR_CSNT_SAM)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_CSNT_SAM)
 
-#define CFG_OR4_PRELIM (~(SDRAM_MAX_SIZE-1) | CFG_OR_TIMING_SDRAM )
-#define CFG_BR4_PRELIM ((SDRAM_BASE4_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR4_PRELIM  (~(SDRAM_MAX_SIZE-1) | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR4_PRELIM  ((SDRAM_BASE4_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   187             /* start with divider for 48 MHz        */
+#define CONFIG_SYS_MAMR_PTA    187             /* start with divider for 48 MHz        */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 4fa21b8fe38561689365f5ef66d90ff6fdd3afa8..162ef09e01305f09bb04c8ca2883958f3dc2686a 100644 (file)
@@ -50,7 +50,7 @@
 /* Define CONFIG_FEC_ENET to use Fast ethernet instead of ethernet on SCC1   */
 #define CONFIG_FEC_ENET
 #ifdef CONFIG_FEC_ENET
-#define CFG_DISCOVER_PHY        1
+#define CONFIG_SYS_DISCOVER_PHY        1
 #define CONFIG_MII              1
 #endif /* CONFIG_FEC_ENET */
 
@@ -84,7 +84,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_RESET_ADDRESS      0x80000000
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_RESET_ADDRESS       0x80000000
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0040000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C0000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0040000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C0000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFA200000
+#define CONFIG_SYS_IMMR                0xFA200000
 
 /*-----------------------------------------------------------------------------
  * I2C Configuration
  *-----------------------------------------------------------------------------
  */
 #define CONFIG_I2C              1
-#define CFG_I2C_SPEED           50000
-#define CFG_I2C_SLAVE           0x34
+#define CONFIG_SYS_I2C_SPEED           50000
+#define CONFIG_SYS_I2C_SLAVE           0x34
 
 
 /* enable I2C and select the hardware/software driver */
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
 
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0x34
-# define CFG_I2C_EEPROM_ADDR   0x50    /* EEPROM X24C16                */
-# define CFG_I2C_EEPROM_ADDR_LEN 1     /* bytes of address             */
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0x34
+# define CONFIG_SYS_I2C_EEPROM_ADDR    0x50    /* EEPROM X24C16                */
+# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1      /* bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE 0xFF000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE  0xFF000000
 
 #if defined(DEBUG) || defined (CONFIG_VIDEO_SED13806) || defined(CONFIG_CMD_IDE)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (128 << 10)     /* Reserve 128 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       0xFF000000
-/*%%% #define CFG_MONITOR_BASE CFG_FLASH_BASE */
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        0xFF000000
+/*%%% #define CONFIG_SYS_MONITOR_BASE  CONFIG_SYS_FLASH_BASE */
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #if 0
 #define        CONFIG_ENV_IS_IN_FLASH  1
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWP)
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_MLRC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_MLRC10)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-/*%%%#define CFG_RTCSC (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
-#define CFG_RTCSC      (RTCSC_SEC |  RTCSC_ALR | RTCSC_RTE)
+/*%%%#define CONFIG_SYS_RTCSC  (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC |  RTCSC_ALR | RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR (PISCR_PS | PISCR_PITF | PISCR_PTE)
+#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF | PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     ( (4 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS | PLPRCR_SPLSS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      ( (4 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS | PLPRCR_SPLSS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF00
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_COM00 | SCCR_TBS)
+#define CONFIG_SYS_SCCR        (SCCR_COM00 | SCCR_TBS)
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/* #define     CFG_DER 0x2002000F */
-#define CFG_DER        0
+/* #define     CONFIG_SYS_DER  0x2002000F */
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  */
 
 #define FLASH_BASE_PRELIM      0xFE000000      /* FLASH base */
-#define CFG_PRELIM_OR_AM       0xFE000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFE000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 0, TRLX = 0, CSNT = 0, SCY = 4, ETHR = 0, BIH = 1 */
-#define CFG_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
+#define CONFIG_SYS_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
 
 /*
  * BR1 and OR1 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x01000000      /* max 16 MB */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000E00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000E00
 
-#define CFG_OR1_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR1_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /* RPXLITE mem setting */
-#define        CFG_BR3_PRELIM  0xFA400001              /* BCSR */
-#define CFG_OR3_PRELIM 0xff7f8970
-#define        CFG_BR4_PRELIM  0xFA000401              /* NVRAM&SRAM */
-#define CFG_OR4_PRELIM 0xFFF80970
+#define        CONFIG_SYS_BR3_PRELIM   0xFA400001              /* BCSR */
+#define CONFIG_SYS_OR3_PRELIM  0xff7f8970
+#define        CONFIG_SYS_BR4_PRELIM   0xFA000401              /* NVRAM&SRAM */
+#define CONFIG_SYS_OR4_PRELIM  0xFFF80970
 
 /* ECCX CS settings                                                          */
 #define SED13806_OR             0xFFC00108     /* - 4 Mo
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   58
+#define CONFIG_SYS_MAMR_PTA    58
 
 /*
  * Refresh clock Prescalar
  */
-#define CFG_MPTPR      MPTPR_PTP_DIV8
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV8
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 10 column SDRAM */
-#define CFG_MAMR_10COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_10COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_2 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A12 |   \
                         MAMR_GPL_A4DIS | MAMR_RLFA_4X | MAMR_WLFA_3X | MAMR_TLFA_16X)
 
index 2870659c67f43ac7c8b2e703f0e2453a801b9244..dd9134da1c62c9721b1965bfb9f73a087144961f 100644 (file)
@@ -57,7 +57,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #define CONFIG_BZIP2           /* Include support for bzip2 compressed images  */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C00000      /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C00000      /* 4 ... 12 MB in DRAM  */
 
-#define CFG_RESET_ADDRESS      0x09900000
+#define CONFIG_SYS_RESET_ADDRESS       0x09900000
 
-#define        CFG_LOAD_ADDR           0x400000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x400000        /* default load address */
 
-#define        CFG_HZ                  1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFA200000
+#define CONFIG_SYS_IMMR                0xFA200000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0xFFC00000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFC00000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #ifdef CONFIG_BZIP2
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve ~4 MB for malloc()   */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve ~4 MB for malloc()   */
 #else
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 KB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 KB for malloc()  */
 #endif /* CONFIG_BZIP2 */
 
 /*
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     19      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      19      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* We use one complete sector           */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 
 #define CONFIG_ENV_OVERWRITE
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_MLRC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_MLRC10)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-/*%%%#define CFG_RTCSC (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_RTE)
+/*%%%#define CONFIG_SYS_RTCSC  (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
+#define CONFIG_SYS_PLPRCR      ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF00
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_COM11 | SCCR_TBS)
+#define CONFIG_SYS_SCCR        (SCCR_COM11 | SCCR_TBS)
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  */
 
 #define FLASH_BASE_PRELIM      0xFE000000      /* FLASH base */
-#define CFG_PRELIM_OR_AM       0xFE000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFE000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 0, TRLX = 0, CSNT = 0, SCY = 4, ETHR = 0, BIH = 1 */
-#define CFG_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
+#define CONFIG_SYS_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
 
 /*
  * BR1 and OR1 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x01000000      /* max 16 MB */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000E00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000E00
 
-#define CFG_OR1_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR1_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /* RPXLITE mem setting */
-#define        CFG_BR3_PRELIM  0xFA400001              /* BCSR */
-#define CFG_OR3_PRELIM 0xFFFF8910
-#define        CFG_BR4_PRELIM  0xFA000401              /* NVRAM&SRAM */
-#define CFG_OR4_PRELIM 0xFFFE0970
+#define        CONFIG_SYS_BR3_PRELIM   0xFA400001              /* BCSR */
+#define CONFIG_SYS_OR3_PRELIM  0xFFFF8910
+#define        CONFIG_SYS_BR4_PRELIM   0xFA000401              /* NVRAM&SRAM */
+#define CONFIG_SYS_OR4_PRELIM  0xFFFE0970
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   58
+#define CONFIG_SYS_MAMR_PTA    58
 
 /*
  * Refresh clock Prescalar
  */
-#define CFG_MPTPR      MPTPR_PTP_DIV8
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV8
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 10 column SDRAM */
-#define CFG_MAMR_10COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_10COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_2 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A12 |   \
                         MAMR_GPL_A4DIS | MAMR_RLFA_4X | MAMR_WLFA_3X | MAMR_TLFA_16X)
 
index 6e72e9668e0960efc38185b1edea1261b39653bf..a59053c0eb8c7f3de865ef5bfd0b8bdcfd8ba0ab 100644 (file)
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #undef CONFIG_STATUS_LED               /* disturbs display. Status LED disabled. */
 
 
 
 /* test-only */
-#define CFG_JFFS2_FIRST_BANK   0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS    1           /* ! second bank contains U-Boot */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
 
 #define CONFIG_NETCONSOLE
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "u-boot>"       /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "u-boot>"       /* Monitor Command Prompt   */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0040000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C0000       /* 4 ... 12 MB in DRAM  */
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_MEMTEST_START       0x0040000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C0000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFA200000
+#define CONFIG_SYS_IMMR                0xFA200000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00          /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00          /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
 
 #if defined(DEBUG) || defined(CONFIG_CMD_IDE)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define CFG_MONITOR_LEN                (128 << 10)     /* Reserve 128 kB for Monitor */
+#define CONFIG_SYS_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor */
 #endif
 
-#define CFG_MONITOR_BASE       0xFF000000
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        0xFF000000
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_ADDR                0xFA000100
 #define CONFIG_ENV_SIZE                0x8000  /* Total Size of Environment Sector     */
 #endif /* CONFIG_ENV_IS_IN_NVRAM */
 
-#define CFG_RESET_ADDRESS      ((ulong)((((immap_t *)CFG_IMMR)->im_clkrst.res)))
+#define CONFIG_SYS_RESET_ADDRESS       ((ulong)((((immap_t *)CONFIG_SYS_IMMR)->im_clkrst.res)))
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif /* We can get SYPCR: 0xFFFF0689. */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_MLRC10)        /* SIUMCR:0x00000800 */
+#define CONFIG_SYS_SIUMCR      (SIUMCR_MLRC10)        /* SIUMCR:0x00000800 */
 
 /*---------------------------------------------------------------------
  * TBSCR - Time Base Status and Control         16-bit                  12-16
  *---------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
 /* TBSCR: 0x00C3 [SAM] */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * [RTC enabled but not stopped on FRZ]
  */
-#define CFG_RTCSC    (RTCSC_SEC | RTCSC_ALR | RTCSC_RTE) /* RTCSC:0x00C1       */
+#define CONFIG_SYS_RTCSC    (RTCSC_SEC | RTCSC_ALR | RTCSC_RTE) /* RTCSC:0x00C1        */
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control 16-bit                 12-23
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  * [Periodic timer enabled,Periodic timer interrupt disable. ]
  */
-#define CFG_PISCR (PISCR_PS | PISCR_PITF | PISCR_PTE)  /* PISCR:0x0083         */
+#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF | PISCR_PTE)  /* PISCR:0x0083          */
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 32-bit   5-7
  */
 /* up to 64 MHz we use a 1:2 clock */
 #if defined(RPXlite_64MHz)
-#define CFG_PLPRCR     ( (7 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )   /*PLPRCR: 0x00700000. */
+#define CONFIG_SYS_PLPRCR      ( (7 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )   /*PLPRCR: 0x00700000. */
 #else
-#define CFG_PLPRCR     ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
+#define CONFIG_SYS_PLPRCR      ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
 #endif
 
 /*-----------------------------------------------------------------------
 #define SCCR_MASK      SCCR_EBDF00
 /* Up to 48MHz system clock, we use 1:1 SYSTEM/BUS ratio */
 #if defined(RPXlite_64MHz)
-#define CFG_SCCR       ( SCCR_TBS | SCCR_EBDF01 )  /* %%%SCCR:0x02020000 */
+#define CONFIG_SYS_SCCR        ( SCCR_TBS | SCCR_EBDF01 )  /* %%%SCCR:0x02020000 */
 #else
-#define CFG_SCCR       ( SCCR_TBS | SCCR_EBDF00 )  /* %%%SCCR:0x02000000 */
+#define CONFIG_SYS_SCCR        ( SCCR_TBS | SCCR_EBDF00 )  /* %%%SCCR:0x02000000 */
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
-#define                CFG_DER         0
+#define                CONFIG_SYS_DER          0
 
 /*
  * Init Memory Controller:
  * BR0 and OR0 (FLASH)
  */
 #define FLASH_BASE_PRELIM      0xFC000000      /* FLASH base   */
-#define CFG_PRELIM_OR_AM       0xFC000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFC000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 0, TRLX = 0, CSNT = 0, SCY = 8, ETHR = 0, BIH = 1 */
-#define CFG_OR_TIMING_FLASH (OR_SCY_8_CLK | OR_BI)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
+#define CONFIG_SYS_OR_TIMING_FLASH (OR_SCY_8_CLK | OR_BI)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
 
 /*
  * BR1 and OR1 (SDRAM)
 #define SDRAM_MAX_SIZE         0x08000000      /* max 128 MB in system */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000E00
-#define CFG_OR_AM_SDRAM                (-(SDRAM_MAX_SIZE & OR_AM_MSK))
-#define CFG_OR1_PRELIM ( CFG_OR_AM_SDRAM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR1_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000E00
+#define CONFIG_SYS_OR_AM_SDRAM         (-(SDRAM_MAX_SIZE & OR_AM_MSK))
+#define CONFIG_SYS_OR1_PRELIM  ( CONFIG_SYS_OR_AM_SDRAM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /* RPXlite mem setting */
-#define CFG_BR3_PRELIM 0xFA400001              /* BCSR */
-#define CFG_OR3_PRELIM 0xFF7F8900
-#define CFG_BR4_PRELIM 0xFA000401              /* NVRAM&SRAM */
-#define CFG_OR4_PRELIM 0xFFFE0040
+#define CONFIG_SYS_BR3_PRELIM  0xFA400001              /* BCSR */
+#define CONFIG_SYS_OR3_PRELIM  0xFF7F8900
+#define CONFIG_SYS_BR4_PRELIM  0xFA000401              /* NVRAM&SRAM */
+#define CONFIG_SYS_OR4_PRELIM  0xFFFE0040
 
 /*
  * Memory Periodic Timer Prescaler
  */
 /* periodic timer for refresh */
 #if defined(RPXlite_64MHz)
-#define CFG_MAMR_PTA   32
+#define CONFIG_SYS_MAMR_PTA    32
 #else
-#define CFG_MAMR_PTA   20
+#define CONFIG_SYS_MAMR_PTA    20
 #endif
 
 /*
  * Refresh clock Prescalar
  */
-#define CFG_MPTPR      MPTPR_PTP_DIV2
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV2
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
+#define CONFIG_SYS_MAMR_9COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE | \
                        MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10)
-/* CFG_MAMR_9COL:0x20904000 @ 64MHz */
+/* CONFIG_SYS_MAMR_9COL:0x20904000 @ 64MHz */
 
 /*
  * Internal Definitions
index e805213bd25b4ed19d7d5c8a7cb90b23ed64716d..e97ef9565adb3ded31482362bbed1fc372b60545 100644 (file)
@@ -8,7 +8,7 @@
  *
  *****************************************************************************/
 /* for the AY-Revision which does not use the HRCW */
-#define CFG_DEFAULT_IMMR       0x00010000
+#define CONFIG_SYS_DEFAULT_IMMR        0x00010000
 
 /* What is the oscillator's (UX2) frequency in Hz? */
 #define CONFIG_8260_CLKIN  (66 * 1000 * 1000)
@@ -16,7 +16,7 @@
 /* How is switch S2 set? We really only want the MODCK[1-3] bits, so
  * only the 3 least significant bits are important.
 */
-#define CFG_SBC_S2  0x04
+#define CONFIG_SYS_SBC_S2  0x04
 
 /* What should MODCK_H be? It is dependent on the oscillator
  * frequency, MODCK[1-3], and desired CPM and core frequencies.
  * 0x5       0x5         66     133    133
  * 0x5       0x7         66     133    200
  */
-#define CFG_SBC_MODCK_H 0x06
+#define CONFIG_SYS_SBC_MODCK_H 0x06
 
-#define CFG_SBC_BOOT_LOW 1     /* only for HRCW */
-#undef CFG_SBC_BOOT_LOW
+#define CONFIG_SYS_SBC_BOOT_LOW 1      /* only for HRCW */
+#undef CONFIG_SYS_SBC_BOOT_LOW
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/sbc8260/config.mk
  * The main FLASH is whichever is connected to *CS0. U-Boot expects
  * this to be the SIMM.
  */
-#define CFG_FLASH0_BASE 0x80000000
-#define CFG_FLASH0_SIZE 16
+#define CONFIG_SYS_FLASH0_BASE 0x80000000
+#define CONFIG_SYS_FLASH0_SIZE 16
 
 /* What should the base address of the secondary FLASH be and how big
  * is it (in Mbytes)? The secondary FLASH is whichever is connected
  * to *CS6. U-Boot expects this to be the on board FLASH. If you don't
  * want it enabled, don't define these constants.
  */
-#define CFG_FLASH1_BASE 0
-#define CFG_FLASH1_SIZE 0
-#undef CFG_FLASH1_BASE
-#undef CFG_FLASH1_SIZE
+#define CONFIG_SYS_FLASH1_BASE 0
+#define CONFIG_SYS_FLASH1_SIZE 0
+#undef CONFIG_SYS_FLASH1_BASE
+#undef CONFIG_SYS_FLASH1_SIZE
 
 /* What should be the base address of SDRAM DIMM and how big is
  * it (in Mbytes)?
 */
-#define CFG_SDRAM0_BASE 0x00000000
-#define CFG_SDRAM0_SIZE 64
+#define CONFIG_SYS_SDRAM0_BASE 0x00000000
+#define CONFIG_SYS_SDRAM0_SIZE 64
 
 /* What should be the base address of SDRAM DIMM and how big is
  * it (in Mbytes)?
 */
-#define CFG_SDRAM1_BASE 0x04000000
-#define CFG_SDRAM1_SIZE 32
+#define CONFIG_SYS_SDRAM1_BASE 0x04000000
+#define CONFIG_SYS_SDRAM1_SIZE 32
 
 /* What should be the base address of the LEDs and switch S0?
  * If you don't want them enabled, don't define this.
  */
-#define CFG_LED_BASE 0x00000000
+#define CONFIG_SYS_LED_BASE 0x00000000
 
 /*
  * select serial console configuration
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Half Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
-# define CFG_CPMFCR_RAMTYPE    0
-/*#define CFG_FCC_PSMR         (FCC_PSMR_FDE|FCC_PSMR_LPB) */
-# define CFG_FCC_PSMR          0
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+/*#define CONFIG_SYS_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB) */
+# define CONFIG_SYS_FCC_PSMR           0
 
 #else /* CONFIG_ETHER_INDEX */
 # error "on RPX Super ethernet must be FCC3"
 #endif /* CONFIG_ETHER_INDEX */
 
 #define CONFIG_HARD_I2C         1      /* I2C with hardware support    */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 
 /* Define this to reserve an entire FLASH sector (256 KB) for
 #define CONFIG_BOOTDELAY        -1
 
 /* undef this to save memory */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 /* Monitor Command Prompt       */
-#define CFG_PROMPT              "=> "
+#define CONFIG_SYS_PROMPT              "=> "
 
 
 /*
 
 
 /* Where do the internal registers live? */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR               0xF0000000
 
 /* Where do the on board registers (CS4) live? */
-#define CFG_REGS_BASE          0xFA000000
+#define CONFIG_SYS_REGS_BASE          0xFA000000
 
 /*****************************************************************************
  *
  * Miscellaneous configurable options
  */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE              1024       /* Console I/O Buffer Size      */
+#  define CONFIG_SYS_CBSIZE              1024       /* Console I/O Buffer Size      */
 #else
-#  define CFG_CBSIZE              256        /* Console I/O Buffer Size      */
+#  define CONFIG_SYS_CBSIZE              256        /* Console I/O Buffer Size      */
 #endif
 
 /* Print Buffer Size */
-#define CFG_PBSIZE        (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE        (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16)
 
-#define CFG_MAXARGS       8            /* max number of command args   */
+#define CONFIG_SYS_MAXARGS       8            /* max number of command args   */
 
-#define CFG_BARGSIZE      CFG_CBSIZE   /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_BARGSIZE      CONFIG_SYS_CBSIZE   /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START 0x04000000   /* memtest works on  */
-#define CFG_MEMTEST_END   0x06000000   /* 64-96 MB in SDRAM */
+#define CONFIG_SYS_MEMTEST_START 0x04000000   /* memtest works on  */
+#define CONFIG_SYS_MEMTEST_END   0x06000000   /* 64-96 MB in SDRAM */
 
 #define        CONFIG_CLOCKS_IN_MHZ    1       /* clocks passsed to Linux in MHz */
 
-#define CFG_LOAD_ADDR     0x100000     /* default load address */
-#define CFG_HZ            1000         /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LOAD_ADDR     0x100000     /* default load address */
+#define CONFIG_SYS_HZ            1000         /* decrementer freq: 1 ms ticks */
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_FLASH_BASE    CFG_FLASH0_BASE
-#define CFG_SDRAM_BASE    CFG_SDRAM0_BASE
+#define CONFIG_SYS_FLASH_BASE    CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_SDRAM_BASE    CONFIG_SYS_SDRAM0_BASE
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  */
-#if defined(CFG_SBC_BOOT_LOW)
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
+#if defined(CONFIG_SYS_SBC_BOOT_LOW)
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
 #else
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (0)
-#endif /* defined(CFG_SBC_BOOT_LOW) */
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (0)
+#endif /* defined(CONFIG_SYS_SBC_BOOT_LOW) */
 
-/* get the HRCW ISB field from CFG_IMMR */
-#define CFG_SBC_HRCW_IMMR ( ((CFG_IMMR & 0x10000000) >> 10) |\
-                           ((CFG_IMMR & 0x01000000) >> 7)  |\
-                           ((CFG_IMMR & 0x00100000) >> 4) )
+/* get the HRCW ISB field from CONFIG_SYS_IMMR */
+#define CONFIG_SYS_SBC_HRCW_IMMR ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) |\
+                           ((CONFIG_SYS_IMMR & 0x01000000) >> 7)  |\
+                           ((CONFIG_SYS_IMMR & 0x00100000) >> 4) )
 
-#define CFG_HRCW_MASTER (HRCW_BPS11                           |\
+#define CONFIG_SYS_HRCW_MASTER (HRCW_BPS11                           |\
                         HRCW_DPPC11                          |\
-                        CFG_SBC_HRCW_IMMR                    |\
+                        CONFIG_SYS_SBC_HRCW_IMMR                    |\
                         HRCW_MMR00                           |\
                         HRCW_LBPC11                          |\
                         HRCW_APPC10                          |\
                         HRCW_CS10PC00                        |\
-                        (CFG_SBC_MODCK_H & HRCW_MODCK_H1111) |\
-                        CFG_SBC_HRCW_BOOT_FLAGS)
+                        (CONFIG_SYS_SBC_MODCK_H & HRCW_MODCK_H1111) |\
+                        CONFIG_SYS_SBC_HRCW_BOOT_FLAGS)
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1 0
-#define CFG_HRCW_SLAVE2 0
-#define CFG_HRCW_SLAVE3 0
-#define CFG_HRCW_SLAVE4 0
-#define CFG_HRCW_SLAVE5 0
-#define CFG_HRCW_SLAVE6 0
-#define CFG_HRCW_SLAVE7 0
+#define CONFIG_SYS_HRCW_SLAVE1 0
+#define CONFIG_SYS_HRCW_SLAVE2 0
+#define CONFIG_SYS_HRCW_SLAVE3 0
+#define CONFIG_SYS_HRCW_SLAVE4 0
+#define CONFIG_SYS_HRCW_SLAVE5 0
+#define CONFIG_SYS_HRCW_SLAVE6 0
+#define CONFIG_SYS_HRCW_SLAVE7 0
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR       CFG_IMMR
-#define CFG_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE      128     /* bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
- * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependent.
  */
-#define CFG_MONITOR_BASE        (CFG_FLASH0_BASE + 0x00F00000)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH0_BASE + 0x00F00000)
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#  define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#  define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN      (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN       (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN      (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN       (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS   1       /* max number of memory banks         */
-#define CFG_MAX_FLASH_SECT    71      /* max number of sectors on one chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS   1       /* max number of memory banks         */
+#define CONFIG_SYS_MAX_FLASH_SECT    71      /* max number of sectors on one chip  */
 
-#define CFG_FLASH_ERASE_TOUT  8000    /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT  1       /* Timeout for Flash Write (in ms)    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT  8000    /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT  1       /* Timeout for Flash Write (in ms)    */
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #  define CONFIG_ENV_IS_IN_FLASH  1
 
 #  ifdef CONFIG_ENV_IN_OWN_SECT
-#    define CONFIG_ENV_ADDR       (CFG_MONITOR_BASE + 0x40000)
+#    define CONFIG_ENV_ADDR       (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #    define CONFIG_ENV_SECT_SIZE  0x40000
 #  else
-#    define CONFIG_ENV_ADDR (CFG_FLASH_BASE + CFG_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
+#    define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
 #    define CONFIG_ENV_SIZE       0x1000  /* Total Size of Environment Sector */
 #    define CONFIG_ENV_SECT_SIZE  0x10000 /* see README - env sect real size */
 #  endif /* CONFIG_ENV_IN_OWN_SECT */
 #else
 #  define CONFIG_ENV_IS_IN_NVRAM  1
-#  define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+#  define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #  define CONFIG_ENV_SIZE         0x200
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT     5     /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT     5     /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (/*HID0_ICE  |*/\
+#define CONFIG_SYS_HID0_INIT   (/*HID0_ICE  |*/\
                         /*HID0_DCE  |*/\
                         HID0_ICFI |\
                         HID0_DCI  |\
                         HID0_IFEM |\
                         HID0_ABE)
 
-#define CFG_HID0_FINAL  (/*HID0_ICE  |*/\
+#define CONFIG_SYS_HID0_FINAL  (/*HID0_ICE  |*/\
                         HID0_IFEM |\
                         HID0_ABE  |\
                         HID0_EMCP)
-#define CFG_HID2        0
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMR         0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR         (BCR_EBM   |\
+#define CONFIG_SYS_BCR         (BCR_EBM   |\
                         BCR_PLDP  |\
                         BCR_EAV   |\
                         BCR_NPQM0)
  *-----------------------------------------------------------------------
  */
 
-#define CFG_SIUMCR      (SIUMCR_L2CPC01 |\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_L2CPC01 |\
                         SIUMCR_APPC10  |\
                         SIUMCR_CS10PC01)
 
  *-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
-#define CFG_SYPCR       (SYPCR_SWTC |\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
                         SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_LBME |\
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC |\
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC |\
                         TMCNTSC_ALR |\
                         TMCNTSC_TCF |\
                         TMCNTSC_TCE)
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS  |\
+#define CONFIG_SYS_PISCR       (PISCR_PS  |\
                         PISCR_PTF |\
                         PISCR_PTE)
 
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR        (SCCR_DFBRG01)
+#define CONFIG_SYS_SCCR        (SCCR_DFBRG01)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
 /* Bank 0 - FLASH
  *
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_DECC_NONE                  |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH0_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH0_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_6_CLK                 |\
 /* Bank 1 - SDRAM
  *
  */
-#define CFG_BR1_PRELIM  ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM  (MEG_TO_AM(CFG_SDRAM0_SIZE)     |\
+#define CONFIG_SYS_OR1_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE)     |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A8             |\
                         ORxS_NUMR_12                   |\
                         ORxS_IBID)
 
-#define CFG_PSDMR       0x014DA412
-#define CFG_PSRT       0x79
+#define CONFIG_SYS_PSDMR       0x014DA412
+#define CONFIG_SYS_PSRT        0x79
 
 
 /* Bank 2 - SDRAM
  *
  */
-#define CFG_BR2_PRELIM  ((CFG_SDRAM1_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM1_BASE & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_MS_SDRAM_L                 |\
                         BRx_V)
 
-#define CFG_OR2_PRELIM  (MEG_TO_AM(CFG_SDRAM1_SIZE)     |\
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM1_SIZE)     |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A9             |\
                         ORxS_NUMR_12)
 
-#define CFG_LSDMR       0x0169A512
-#define CFG_LSRT       0x79
+#define CONFIG_SYS_LSDMR       0x0169A512
+#define CONFIG_SYS_LSRT        0x79
 
-#define CFG_MPTPR      (0x0800 & MPTPR_PTP_MSK)
+#define CONFIG_SYS_MPTPR       (0x0800 & MPTPR_PTP_MSK)
 
 /* Bank 4 - On board registers
  *
  */
-#define CFG_BR4_PRELIM   ((CFG_REGS_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR4_PRELIM   ((CONFIG_SYS_REGS_BASE & BRx_BA_MSK)  |\
                           BRx_PS_8                     |\
                           BRx_MS_GPCM_P                |\
                           BRx_V)
 
-#define CFG_OR4_PRELIM    (ORxG_AM_MSK                 |\
+#define CONFIG_SYS_OR4_PRELIM    (ORxG_AM_MSK                 |\
                           ORxG_CSNT                   |\
                           ORxG_ACS_DIV1               |\
                           ORxG_SCY_5_CLK              |\
index 541d58690fb03fe8c9bdc2a582dfcce9b036be40..6ec5be01c7a34279e81082abf4c8a0165a6b866d 100644 (file)
@@ -84,7 +84,7 @@
 
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C                 /* I2C bit-banged               */
 
-# define CFG_I2C_SPEED         50000   /* 50 kHz is supposed to work   */
-# define CFG_I2C_SLAVE         0xFE
+# define CONFIG_SYS_I2C_SPEED          50000   /* 50 kHz is supposed to work   */
+# define CONFIG_SYS_I2C_SLAVE          0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip    */
 
 /* timeout values are in ticks = ms */
-#define CFG_FLASH_ERASE_TOUT   (120*CFG_HZ)    /* Timeout for Flash Erase      */
-#define CFG_FLASH_WRITE_TOUT   (1 * CFG_HZ)    /* Timeout for Flash Write      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (120*CONFIG_SYS_HZ)     /* Timeout for Flash Erase      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (1 * CONFIG_SYS_HZ)     /* Timeout for Flash Write      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF | PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF | PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  */
 
 /* for 64 MHz, we use a 16 MHz clock * 4 */
-#define CFG_PLPRCR ( (4-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
+#define CONFIG_SYS_PLPRCR ( (4-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (/* SCCR_TBS  | */ SCCR_RTSEL | SCCR_RTDIV    | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS  | */ SCCR_RTSEL | SCCR_RTDIV    | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
 /* 66 MHz CPU - 66 MHz bus: ACS = 00, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 1 */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 66 Mhz => 66.000.000 / Divider = 129
  * 80 Mhz => 80.000.000 / Divider = 156
  */
-#define CFG_MAMR_PTA           129
+#define CONFIG_SYS_MAMR_PTA            129
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 6ec52e69f7c42d9decc5335380fcd102699d4185..01d0d5fc3bdbb97129d1a337db1dcfa9e312030f 100644 (file)
  * - BDs/buffers on 60x bus
  * - Full duplex
  */
-#define CFG_CMXFCR_MASK        (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
-#define CFG_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK10)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_MASK (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE        (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK10)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #elif (CONFIG_ETHER_INDEX == 2)
 
  * - BDs/buffers on 60x bus
  * - Full duplex
  */
-#define CFG_CMXFCR_MASK        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-#define CFG_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK15 | CMXFCR_TF2CS_CLK14)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_MASK (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE        (CMXFCR_RF2CS_CLK15 | CMXFCR_TF2CS_CLK14)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_INDEX */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size  */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size  */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks       */
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
 
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 #if defined(CONFIG_CMD_JFFS2)
-#define CFG_JFFS2_NUM_BANKS    CFG_MAX_FLASH_BANKS
-#define CFG_JFFS2_SORT_FRAGMENTS
+#define CONFIG_SYS_JFFS2_NUM_BANKS     CONFIG_SYS_MAX_FLASH_BANKS
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
 
 /*
  * JFFS2 partitions
 */
 #endif /* CONFIG_CMD_JFFS2 */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 
 #define CONFIG_ENV_IS_IN_FLASH
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 
-#define CFG_DEFAULT_IMMR       0xFF010000
+#define CONFIG_SYS_DEFAULT_IMMR        0xFF010000
 
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         32
-#define CFG_SDRAM_BR           (CFG_SDRAM_BASE | 0x00000041)
-#define CFG_SDRAM_OR           0xFE002EC0
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          32
+#define CONFIG_SYS_SDRAM_BR            (CONFIG_SYS_SDRAM_BASE | 0x00000041)
+#define CONFIG_SYS_SDRAM_OR            0xFE002EC0
 
-#define CFG_BCSR               0xFC000000
+#define CONFIG_SYS_BCSR                0xFC000000
 
 /* Hard reset configuration word */
-#define CFG_HRCW_MASTER                0x0A06875A /* Not used - provided by FPGA */
+#define CONFIG_SYS_HRCW_MASTER         0x0A06875A /* Not used - provided by FPGA */
 /* No slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                  */
 
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         (HID0_ICE | HID0_IFEM | HID0_ABE)
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE | HID0_IFEM | HID0_ABE)
 
-#define CFG_HID2               0
+#define CONFIG_SYS_HID2                0
 
-#define CFG_SIUMCR             0x0E04C000
-#define CFG_SYPCR              0xFFFFFFC3
-#define CFG_BCR                        0x00000000
-#define CFG_SCCR               SCCR_DFBRG01
+#define CONFIG_SYS_SIUMCR              0x0E04C000
+#define CONFIG_SYS_SYPCR               0xFFFFFFC3
+#define CONFIG_SYS_BCR                 0x00000000
+#define CONFIG_SYS_SCCR                SCCR_DFBRG01
 
-#define CFG_RMR                        RMR_CSRE
-#define CFG_TMCNTSC            (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
-#define CFG_PISCR              (PISCR_PS|PISCR_PTF|PISCR_PTE)
-#define CFG_RCCR               0
+#define CONFIG_SYS_RMR                 RMR_CSRE
+#define CONFIG_SYS_TMCNTSC             (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_PISCR               (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_RCCR                0
 
-#define CFG_PSDMR              0x8249A452
-#define CFG_PSRT               0x1F
-#define CFG_MPTPR              0x2000
+#define CONFIG_SYS_PSDMR               0x8249A452
+#define CONFIG_SYS_PSRT                0x1F
+#define CONFIG_SYS_MPTPR               0x2000
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | 0x00001001)
-#define CFG_OR0_PRELIM         0xFF001ED6
-#define CFG_BR7_PRELIM         (CFG_BCSR | 0x00000801)
-#define CFG_OR7_PRELIM         0xFFFF87F6
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | 0x00001001)
+#define CONFIG_SYS_OR0_PRELIM          0xFF001ED6
+#define CONFIG_SYS_BR7_PRELIM          (CONFIG_SYS_BCSR | 0x00000801)
+#define CONFIG_SYS_OR7_PRELIM          0xFFFF87F6
 
-#define CFG_RESET_ADDRESS      0xC0000000
+#define CONFIG_SYS_RESET_ADDRESS       0xC0000000
 
 #endif /* __CONFIG_H */
index 2cf75e3d0be4615d9d77addcd5baa799b67c2bd2..48c9339802bc3948d026068ce495bfcd252f402f 100644 (file)
@@ -79,9 +79,9 @@
 
 #define CONFIG_BOARD_EARLY_INIT_F 1        /* Call board_early_init_f  */
 
-#undef CFG_DRAM_TEST                       /* memory test, takes time  */
-#define CFG_MEMTEST_START      0x00200000  /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                        /* memory test, takes time  */
+#define CONFIG_SYS_MEMTEST_START       0x00200000  /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 #if (defined(CONFIG_PCI) && defined(CONFIG_TSEC_ENET) || \
      defined(CONFIG_PCI) && defined(CONFIG_ETHER_ON_FCC) || \
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default      */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default      */
 
 #if XXX
-  #define CFG_CCSRBAR          0xfdf00000      /* relocated CCSRBAR    */
+  #define CONFIG_SYS_CCSRBAR           0xfdf00000      /* relocated CCSRBAR    */
 #else
-  #define CFG_CCSRBAR          0xff700000      /* default CCSRBAR      */
+  #define CONFIG_SYS_CCSRBAR           0xff700000      /* default CCSRBAR      */
 #endif
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR    */
 
-#define CFG_SDRAM_SIZE         512             /* DDR is 512MB */
+#define CONFIG_SYS_SDRAM_SIZE          512             /* DDR is 512MB */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
 #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER       /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #undef CONFIG_CLOCKS_IN_MHZ
 
 #if defined(CONFIG_RAM_AS_FLASH)
-  #define CFG_LBC_SDRAM_BASE   0xfc000000      /* Localbus SDRAM */
-  #define CFG_FLASH_BASE       0xf8000000      /* start of FLASH 8M  */
-  #define CFG_BR0_PRELIM       0xf8000801      /* port size 8bit */
-  #define CFG_OR0_PRELIM       0xf8000ff7      /* 8MB Flash            */
+  #define CONFIG_SYS_LBC_SDRAM_BASE    0xfc000000      /* Localbus SDRAM */
+  #define CONFIG_SYS_FLASH_BASE        0xf8000000      /* start of FLASH 8M  */
+  #define CONFIG_SYS_BR0_PRELIM        0xf8000801      /* port size 8bit */
+  #define CONFIG_SYS_OR0_PRELIM        0xf8000ff7      /* 8MB Flash            */
 #else /* Boot from real Flash */
-  #define CFG_LBC_SDRAM_BASE   0xf8000000      /* Localbus SDRAM */
-  #define CFG_FLASH_BASE       0xff800000      /* start of FLASH 8M    */
-  #define CFG_BR0_PRELIM       0xff800801      /* port size 8bit      */
-  #define CFG_OR0_PRELIM       0xff800ff7      /* 8MB Flash            */
+  #define CONFIG_SYS_LBC_SDRAM_BASE    0xf8000000      /* Localbus SDRAM */
+  #define CONFIG_SYS_FLASH_BASE        0xff800000      /* start of FLASH 8M    */
+  #define CONFIG_SYS_BR0_PRELIM        0xff800801      /* port size 8bit      */
+  #define CONFIG_SYS_OR0_PRELIM        0xff800ff7      /* 8MB Flash            */
 #endif
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB    */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB    */
 
 /* local bus definitions */
-#define CFG_BR1_PRELIM         0xe4001801      /* 64M, 32-bit flash */
-#define CFG_OR1_PRELIM         0xfc000ff7
+#define CONFIG_SYS_BR1_PRELIM          0xe4001801      /* 64M, 32-bit flash */
+#define CONFIG_SYS_OR1_PRELIM          0xfc000ff7
 
-#define CFG_BR2_PRELIM         0x00000000      /* CS2 not used */
-#define CFG_OR2_PRELIM         0x00000000
+#define CONFIG_SYS_BR2_PRELIM          0x00000000      /* CS2 not used */
+#define CONFIG_SYS_OR2_PRELIM          0x00000000
 
-#define CFG_BR3_PRELIM         0xf0001861      /* 64MB localbus SDRAM  */
-#define CFG_OR3_PRELIM         0xfc000cc1
+#define CONFIG_SYS_BR3_PRELIM          0xf0001861      /* 64MB localbus SDRAM  */
+#define CONFIG_SYS_OR3_PRELIM          0xfc000cc1
 
 #if defined(CONFIG_RAM_AS_FLASH)
-  #define CFG_BR4_PRELIM       0xf4001861      /* 64M localbus SDRAM */
+  #define CONFIG_SYS_BR4_PRELIM        0xf4001861      /* 64M localbus SDRAM */
 #else
-  #define CFG_BR4_PRELIM       0xf8001861      /* 64M localbus SDRAM */
+  #define CONFIG_SYS_BR4_PRELIM        0xf8001861      /* 64M localbus SDRAM */
 #endif
-#define CFG_OR4_PRELIM         0xfc000cc1
+#define CONFIG_SYS_OR4_PRELIM          0xfc000cc1
 
-#define CFG_BR5_PRELIM         0xfc000801      /* 16M CS5 misc devices */
+#define CONFIG_SYS_BR5_PRELIM          0xfc000801      /* 16M CS5 misc devices */
 #if 1
-  #define CFG_OR5_PRELIM       0xff000ff7
+  #define CONFIG_SYS_OR5_PRELIM        0xff000ff7
 #else
-  #define CFG_OR5_PRELIM       0xff0000f0
+  #define CONFIG_SYS_OR5_PRELIM        0xff0000f0
 #endif
 
-#define CFG_BR6_PRELIM         0xe0001801      /* 64M, 32-bit flash */
-#define CFG_OR6_PRELIM         0xfc000ff7
-#define CFG_LBC_LCRR           0x00030002      /* local bus freq       */
-#define CFG_LBC_LBCR           0x00000000
-#define CFG_LBC_LSRT           0x20000000
-#define CFG_LBC_MRTPR          0x20000000
-#define CFG_LBC_LSDMR_1                0x2861b723
-#define CFG_LBC_LSDMR_2                0x0861b723
-#define CFG_LBC_LSDMR_3                0x0861b723
-#define CFG_LBC_LSDMR_4                0x1861b723
-#define CFG_LBC_LSDMR_5                0x4061b723
+#define CONFIG_SYS_BR6_PRELIM          0xe0001801      /* 64M, 32-bit flash */
+#define CONFIG_SYS_OR6_PRELIM          0xfc000ff7
+#define CONFIG_SYS_LBC_LCRR            0x00030002      /* local bus freq       */
+#define CONFIG_SYS_LBC_LBCR            0x00000000
+#define CONFIG_SYS_LBC_LSRT            0x20000000
+#define CONFIG_SYS_LBC_MRTPR           0x20000000
+#define CONFIG_SYS_LBC_LSDMR_1         0x2861b723
+#define CONFIG_SYS_LBC_LSDMR_2         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_3         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_4         0x1861b723
+#define CONFIG_SYS_LBC_LSDMR_5         0x4061b723
 
 /* just hijack the MOT BCSR def for SBC8560 misc devices */
-#define CFG_BCSR               ((CFG_BR5_PRELIM & 0xff000000)|0x00400000)
+#define CONFIG_SYS_BCSR                ((CONFIG_SYS_BR5_PRELIM & 0xff000000)|0x00400000)
 /* the size of CS5 needs to be >= 16M for TLB and LAW setups */
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0x70000000      /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0x70000000      /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #undef  CONFIG_CONS_ON_SCC                     /* define if console on SCC */
 
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 #if 0
-#define CFG_NS16550_CLK                1843200 /* get_bus_freq(0) */
+#define CONFIG_SYS_NS16550_CLK         1843200 /* get_bus_freq(0) */
 #else
-#define CFG_NS16550_CLK                264000000 /* get_bus_freq(0) */
+#define CONFIG_SYS_NS16550_CLK         264000000 /* get_bus_freq(0) */
 #endif
 
 #define CONFIG_BAUDRATE                9600
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
 #if 0
-#define CFG_NS16550_COM1       ((CFG_BR5_PRELIM & 0xff000000)+0x00700000)
-#define CFG_NS16550_COM2       ((CFG_BR5_PRELIM & 0xff000000)+0x00800000)
+#define CONFIG_SYS_NS16550_COM1        ((CONFIG_SYS_BR5_PRELIM & 0xff000000)+0x00700000)
+#define CONFIG_SYS_NS16550_COM2        ((CONFIG_SYS_BR5_PRELIM & 0xff000000)+0x00800000)
 #else
 /* SBC8540 uses internal COMM controller */
-#define CFG_NS16550_COM1       ((CFG_CCSRBAR & 0xfff00000)+0x00004500)
-#define CFG_NS16550_COM2       ((CFG_CCSRBAR & 0xfff00000)+0x00004600)
+#define CONFIG_SYS_NS16550_COM1        ((CONFIG_SYS_CCSRBAR & 0xfff00000)+0x00004500)
+#define CONFIG_SYS_NS16550_COM2        ((CONFIG_SYS_CCSRBAR & 0xfff00000)+0x00004600)
 #endif
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
-#define CFG_PCI_MEM_BASE       0xC0000000
-#define CFG_PCI_MEM_PHYS       0xC0000000
-#define CFG_PCI_MEM_SIZE       0x10000000
+#define CONFIG_SYS_PCI_MEM_BASE        0xC0000000
+#define CONFIG_SYS_PCI_MEM_PHYS        0xC0000000
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000
 
 #if defined(CONFIG_TSEC_ENET)          /* TSEC Ethernet port */
 
      * - Select bus for bd/buffers
      * - Full duplex
      */
-    #define CFG_CMXFCR_MASK    (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-    #define CFG_CMXFCR_VALUE   (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-    #define CFG_CPMFCR_RAMTYPE 0
-    #define CFG_FCC_PSMR       (FCC_PSMR_FDE)
+    #define CONFIG_SYS_CMXFCR_MASK     (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+    #define CONFIG_SYS_CMXFCR_VALUE    (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+    #define CONFIG_SYS_CPMFCR_RAMTYPE  0
+    #define CONFIG_SYS_FCC_PSMR        (FCC_PSMR_FDE)
 
   #elif (CONFIG_ETHER_INDEX == 3)
     /* need more definitions here for FE3 */
  * FLASH and environment organization
  */
 
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant              */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant              */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver                */
 #if 0
-#define CFG_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION           /* use hardware protection              */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION            /* use hardware protection              */
 #endif
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   200000          /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   50000           /* Timeout for Flash Write (in ms)      */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    200000          /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    50000           /* Timeout for Flash Write (in ms)      */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor     */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor     */
 
 #if 0
 /* XXX This doesn't work and I don't want to fix it */
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-  #define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+  #define CONFIG_SYS_RAMBOOT
 #else
-  #undef  CFG_RAMBOOT
+  #undef  CONFIG_SYS_RAMBOOT
 #endif
 #endif
 
 /* Environment */
-#if !defined(CFG_RAMBOOT)
+#if !defined(CONFIG_SYS_RAMBOOT)
   #if defined(CONFIG_RAM_AS_FLASH)
     #define CONFIG_ENV_IS_NOWHERE
-    #define CONFIG_ENV_ADDR    (CFG_FLASH_BASE + 0x100000)
+    #define CONFIG_ENV_ADDR    (CONFIG_SYS_FLASH_BASE + 0x100000)
     #define CONFIG_ENV_SIZE    0x2000
   #else
     #define CONFIG_ENV_IS_IN_FLASH     1
     #define CONFIG_ENV_SECT_SIZE       0x20000 /* 128K(one sector) for env */
-    #define CONFIG_ENV_ADDR    (CFG_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
+    #define CONFIG_ENV_ADDR    (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
     #define CONFIG_ENV_SIZE    0x2000 /* CONFIG_ENV_SECT_SIZE */
   #endif
 #else
-  #define CFG_NO_FLASH         1       /* Flash is not usable now      */
+  #define CONFIG_SYS_NO_FLASH          1       /* Flash is not usable now      */
   #define CONFIG_ENV_IS_NOWHERE        1       /* Store ENV in memory only     */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_BOOTDELAY       5       /* -1 disable autoboot */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 
 /*
     #define CONFIG_CMD_MII
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "SBC8540=> " /* Monitor Command Prompt  */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "SBC8540=> " /* Monitor Command Prompt  */
 #if defined(CONFIG_CMD_KGDB)
-  #define CFG_CBSIZE   1024            /* Console I/O Buffer Size      */
+  #define CONFIG_SYS_CBSIZE    1024            /* Console I/O Buffer Size      */
 #else
-  #define CFG_CBSIZE   256             /* Console I/O Buffer Size      */
+  #define CONFIG_SYS_CBSIZE    256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x1000000       /* default load address */
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x1000000       /* default load address */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index 50cf499b76b4687e3ee98127aef3b174a2b157d6..c6fb0749921fed221cc0b06c1e7c7a5c93f92f12 100644 (file)
@@ -75,8 +75,8 @@
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
                        else    iop->pdat &= ~0x00020000
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 #define CONFIG_I2C_X
 
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF1CS_CLK12|CMXFCR_TF1CS_CLK11)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK12|CMXFCR_TF1CS_CLK11)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 3)
 
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START 0x0400000    /* memtest works on             */
-#define CFG_MEMTEST_END        0x0C00000       /* 4 ... 12 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START 0x0400000     /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM          */
 
-#define        CFG_LOAD_ADDR   0x100000        /* default load address         */
+#define        CONFIG_SYS_LOAD_ADDR    0x100000        /* default load address         */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_RESET_ADDRESS 0xFFFFFFFC    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFFFFFFFC     /* "bad" address                */
 
 #define CONFIG_MISC_INIT_R             /* have misc_init_r() function  */
 
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/tqm8260/config.mk
  * The main FLASH is whichever is connected to *CS0.
  */
-#define CFG_FLASH0_BASE 0x40000000
-#define CFG_FLASH1_BASE 0x60000000
-#define CFG_FLASH0_SIZE 32
-#define CFG_FLASH1_SIZE 32
+#define CONFIG_SYS_FLASH0_BASE 0x40000000
+#define CONFIG_SYS_FLASH1_BASE 0x60000000
+#define CONFIG_SYS_FLASH0_SIZE 32
+#define CONFIG_SYS_FLASH1_SIZE 32
 
 /* Flash bank size (for preliminary settings)
  */
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
+#define CONFIG_SYS_FLASH_SIZE CONFIG_SYS_FLASH0_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #if 0
 /* Start port with environment in flash; switch to EEPROM later */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+0x40000)
 #define CONFIG_ENV_SIZE                0x40000
 #define CONFIG_ENV_SECT_SIZE   0x40000
 #else
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #if defined(CONFIG_266MHz)
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB111 | HRCW_BMS | \
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB111 | HRCW_BMS | \
                                                              HRCW_MODCK_H0111)
 #elif defined(CONFIG_300MHz)
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB111 | HRCW_BMS | \
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB111 | HRCW_BMS | \
                                                              HRCW_MODCK_H0110)
 #else
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB111 | HRCW_BMS)
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB111 | HRCW_BMS)
 #endif
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE, local SDRAM
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE, local SDRAM
  * is mapped at SDRAM_BASE2_PRELIM.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         CFG_FLASH0_BASE
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
 /*
  * Internal Definitions
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL  (HID0_IFEM|HID0_ABE)
-#define CFG_HID2        0
+#define CONFIG_SYS_HID0_FINAL  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
 #ifdef CONFIG_BUSMODE_60x
-#define CFG_BCR         (BCR_EBM|BCR_L2C|BCR_LETM|\
+#define CONFIG_SYS_BCR         (BCR_EBM|BCR_L2C|BCR_LETM|\
                         BCR_NPQM0|BCR_NPQM1|BCR_NPQM2) /* 60x mode  */
 #else
 #define BCR_APD01      0x10000000
-#define CFG_BCR                (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
+#define CONFIG_SYS_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  */
 #if 0
-#define CFG_SIUMCR      (SIUMCR_DPPC10|SIUMCR_APPC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC10|SIUMCR_APPC10)
 #else
-#define CFG_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10)
 #endif
 
 
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR        0
+#define CONFIG_SYS_SCCR        0
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
 
        /* Initialize SDRAM on local bus
         */
-#define CFG_INIT_LOCAL_SDRAM
+#define CONFIG_SYS_INIT_LOCAL_SDRAM
 
 #define SDRAM_MAX_SIZE 0x08000000      /* max. 128 MB          */
 
 /* Minimum mask to separate preliminary
  * address ranges for CS[0:2]
  */
-#define CFG_GLOBAL_SDRAM_LIMIT (512<<20)       /* less than 512 MB */
-#define CFG_LOCAL_SDRAM_LIMIT  (128<<20)       /* less than 128 MB */
+#define CONFIG_SYS_GLOBAL_SDRAM_LIMIT  (512<<20)       /* less than 512 MB */
+#define CONFIG_SYS_LOCAL_SDRAM_LIMIT   (128<<20)       /* less than 128 MB */
 
-#define CFG_MPTPR       0x4000
+#define CONFIG_SYS_MPTPR       0x4000
 
 /*-----------------------------------------------------------------------------
  * Address for Mode Register Set (MRS) command
  *  Settings:              |  0  |  0    0  |  0  1  0  |  0  |   0  1  0    |
  *-----------------------------------------------------------------------------
  */
-#define CFG_MRS_OFFS   0x00000110
+#define CONFIG_SYS_MRS_OFFS    0x00000110
 
 
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH_SIZE)      |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 
 /* Bank 1 - 60x bus SDRAM
  */
-#define CFG_PSRT        0x20
-#define CFG_LSRT        0x20
-#ifndef CFG_RAMBOOT
-#define CFG_BR1_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_PSRT        0x20
+#define CONFIG_SYS_LSRT        0x20
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM CFG_OR1_8COL
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR1_8COL
 
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR1_8COL    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_8COL    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A7             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A15_IS_A5           |\
                         PSDMR_BSMA_A12_A14             |\
                         PSDMR_SDA10_PBI1_A8            |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR1_9COL    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_9COL    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A5             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_9COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A16_IS_A5           |\
                         PSDMR_BSMA_A12_A14             |\
                         PSDMR_SDA10_PBI1_A7            |\
 
 /* Bank 2 - Local bus SDRAM
  */
-#ifdef CFG_INIT_LOCAL_SDRAM
-#define CFG_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BRx_BA_MSK) |\
+#ifdef CONFIG_SYS_INIT_LOCAL_SDRAM
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_MS_SDRAM_L                 |\
                         BRx_V)
 
-#define CFG_OR2_PRELIM CFG_OR2_8COL
+#define CONFIG_SYS_OR2_PRELIM  CONFIG_SYS_OR2_8COL
 
 #define SDRAM_BASE2_PRELIM     0x80000000
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR2_8COL    ((~(CFG_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR2_8COL    ((~(CONFIG_SYS_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A8             |\
                         ORxS_NUMR_12)
 
-#define CFG_LSDMR_8COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_LSDMR_8COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A15_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI1_A9            |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR2_9COL    ((~(CFG_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR2_9COL    ((~(CONFIG_SYS_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A6             |\
                         ORxS_NUMR_13)
 
-#define CFG_LSDMR_9COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_LSDMR_9COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A16_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI1_A8            |\
                         PSDMR_WRC_2C                   |\
                         PSDMR_CL_2)
 
-#endif /* CFG_INIT_LOCAL_SDRAM */
+#endif /* CONFIG_SYS_INIT_LOCAL_SDRAM */
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
-#define CFG_CAN0_BASE          0xc0000000
-#define CFG_CAN1_BASE          0xc0008000
-#define CFG_FIOX_BASE          0xc0010000
-#define CFG_FDOHM_BASE         0xc0018000
-#define CFG_EXTPROM_BASE       0xc2000000
+#define CONFIG_SYS_CAN0_BASE           0xc0000000
+#define CONFIG_SYS_CAN1_BASE           0xc0008000
+#define CONFIG_SYS_FIOX_BASE           0xc0010000
+#define CONFIG_SYS_FDOHM_BASE          0xc0018000
+#define CONFIG_SYS_EXTPROM_BASE        0xc2000000
 
-#define CFG_CAN_SIZE           0x00000100
-#define CFG_FIOX_SIZE          0x00000020
-#define CFG_FDOHM_SIZE         0x00002000
-#define CFG_EXTPROM_BANK_SIZE  0x01000000
+#define CONFIG_SYS_CAN_SIZE            0x00000100
+#define CONFIG_SYS_FIOX_SIZE           0x00000020
+#define CONFIG_SYS_FDOHM_SIZE          0x00002000
+#define CONFIG_SYS_EXTPROM_BANK_SIZE   0x01000000
 
 #define EXT_EEPROM_MAX_FLASH_BANKS     0x02
 
 /* CS3 - CAN 0
  */
-#define CFG_CAN0_BR3   ((CFG_CAN0_BASE & BRx_BA_MSK)   |\
+#define CONFIG_SYS_CAN0_BR3   ((CONFIG_SYS_CAN0_BASE & BRx_BA_MSK)     |\
                        BRx_PS_8                        |\
                        BRx_MS_UPMA                     |\
                        BRx_V)
 
-#define CFG_CAN0_OR3   (P2SZ_TO_AM(CFG_CAN_SIZE)       |\
+#define CONFIG_SYS_CAN0_OR3   (P2SZ_TO_AM(CONFIG_SYS_CAN_SIZE) |\
                        ORxU_BI                         |\
                        ORxU_EHTR_4IDLE)
 
 /* CS4 - CAN 1
  */
-#define CFG_CAN1_BR4   ((CFG_CAN1_BASE & BRx_BA_MSK)   |\
+#define CONFIG_SYS_CAN1_BR4   ((CONFIG_SYS_CAN1_BASE & BRx_BA_MSK)     |\
                        BRx_PS_8                        |\
                        BRx_MS_UPMA                     |\
                        BRx_V)
 
-#define CFG_CAN1_OR4   (P2SZ_TO_AM(CFG_CAN_SIZE)       |\
+#define CONFIG_SYS_CAN1_OR4   (P2SZ_TO_AM(CONFIG_SYS_CAN_SIZE) |\
                        ORxU_BI                         |\
                        ORxU_EHTR_4IDLE)
 
 /* CS5 - Extended PROM (16MB optional)
  */
-#define CFG_EXTPROM_BR5 ((CFG_EXTPROM_BASE & BRx_BA_MSK)|\
+#define CONFIG_SYS_EXTPROM_BR5 ((CONFIG_SYS_EXTPROM_BASE & BRx_BA_MSK)|\
                        BRx_PS_32                       |\
                        BRx_MS_GPCM_P                   |\
                        BRx_V)
 
-#define CFG_EXTPROM_OR5 (P2SZ_TO_AM(CFG_EXTPROM_BANK_SIZE)|\
+#define CONFIG_SYS_EXTPROM_OR5 (P2SZ_TO_AM(CONFIG_SYS_EXTPROM_BANK_SIZE)|\
                        ORxG_CSNT                       |\
                        ORxG_ACS_DIV4                   |\
                        ORxG_SCY_5_CLK                  |\
 
 /* CS6 - Extended PROM (16MB optional)
  */
-#define CFG_EXTPROM_BR6 (((CFG_EXTPROM_BASE + \
-                       CFG_EXTPROM_BANK_SIZE) & BRx_BA_MSK)|\
+#define CONFIG_SYS_EXTPROM_BR6 (((CONFIG_SYS_EXTPROM_BASE + \
+                       CONFIG_SYS_EXTPROM_BANK_SIZE) & BRx_BA_MSK)|\
                        BRx_PS_32                       |\
                        BRx_MS_GPCM_P                   |\
                        BRx_V)
 
-#define CFG_EXTPROM_OR6 (P2SZ_TO_AM(CFG_EXTPROM_BANK_SIZE)|\
+#define CONFIG_SYS_EXTPROM_OR6 (P2SZ_TO_AM(CONFIG_SYS_EXTPROM_BANK_SIZE)|\
                        ORxG_CSNT                       |\
                        ORxG_ACS_DIV4                   |\
                        ORxG_SCY_5_CLK                  |\
 
 /* CS7 - FPGA FIOX: Glue Logic
  */
-#define CFG_FIOX_BR7   ((CFG_FIOX_BASE & BRx_BA_MSK)   |\
+#define CONFIG_SYS_FIOX_BR7   ((CONFIG_SYS_FIOX_BASE & BRx_BA_MSK)     |\
                        BRx_PS_32                       |\
                        BRx_MS_GPCM_P                   |\
                        BRx_V)
 
-#define CFG_FIOX_OR7   (P2SZ_TO_AM(CFG_FIOX_SIZE)      |\
+#define CONFIG_SYS_FIOX_OR7   (P2SZ_TO_AM(CONFIG_SYS_FIOX_SIZE)        |\
                        ORxG_ACS_DIV4                   |\
                        ORxG_SCY_5_CLK                  |\
                        ORxG_TRLX)
 
 /* CS8 - FPGA DOH Master
  */
-#define CFG_FDOHM_BR8  ((CFG_FDOHM_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_FDOHM_BR8  ((CONFIG_SYS_FDOHM_BASE & BRx_BA_MSK)    |\
                        BRx_PS_16                       |\
                        BRx_MS_GPCM_P                   |\
                        BRx_V)
 
-#define CFG_FDOHM_OR8  (P2SZ_TO_AM(CFG_FDOHM_SIZE)     |\
+#define CONFIG_SYS_FDOHM_OR8  (P2SZ_TO_AM(CONFIG_SYS_FDOHM_SIZE)       |\
                        ORxG_ACS_DIV4                   |\
                        ORxG_SCY_5_CLK                  |\
                        ORxG_TRLX)
 
 
 /* FPGA configuration */
-#define CFG_PD_FIOX_PROG       (1 << (31- 5))  /* PD  5 */
-#define CFG_PD_FIOX_DONE       (1 << (31-28))  /* PD 28 */
-#define CFG_PD_FIOX_INIT       (1 << (31-29))  /* PD 29 */
+#define CONFIG_SYS_PD_FIOX_PROG        (1 << (31- 5))  /* PD  5 */
+#define CONFIG_SYS_PD_FIOX_DONE        (1 << (31-28))  /* PD 28 */
+#define CONFIG_SYS_PD_FIOX_INIT        (1 << (31-29))  /* PD 29 */
 
-#define CFG_PD_FDOHM_PROG      (1 << (31- 4))  /* PD  4 */
-#define CFG_PD_FDOHM_DONE      (1 << (31-26))  /* PD 26 */
-#define CFG_PD_FDOHM_INIT      (1 << (31-27))  /* PD 27 */
+#define CONFIG_SYS_PD_FDOHM_PROG       (1 << (31- 4))  /* PD  4 */
+#define CONFIG_SYS_PD_FDOHM_DONE       (1 << (31-26))  /* PD 26 */
+#define CONFIG_SYS_PD_FDOHM_INIT       (1 << (31-27))  /* PD 27 */
 
 
 #endif /* __CONFIG_H */
index 89d1461066cfe3008cb9ccbebadd9d201a547dc1..876d8828a21568c4416182c78d431e91fef5ad0c 100644 (file)
@@ -47,7 +47,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_BOOTDELAY       5
 
 /*
  * Miscellaneous configurable options
  */
-#undef CFG_LONGHELP                    /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#undef CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS    32              /* Max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00400000      /* Default load address         */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS     32              /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00400000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 
-#define CFG_FLASH_BASE0_PRELIM 0xFF800000      /* FLASH bank on RCS#0 */
-#define CFG_FLASH_BASE         CFG_FLASH_BASE0_PRELIM
-#define CFG_FLASH_BANKS                { CFG_FLASH_BASE0_PRELIM }
+#define CONFIG_SYS_FLASH_BASE0_PRELIM  0xFF800000      /* FLASH bank on RCS#0 */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH_BASE0_PRELIM
+#define CONFIG_SYS_FLASH_BANKS         { CONFIG_SYS_FLASH_BASE0_PRELIM }
 
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_EUMB_ADDR      0xFC000000
+#define CONFIG_SYS_EUMB_ADDR       0xFC000000
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x02000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM          */
 
        /* Maximum amount of RAM.
         */
-#define CFG_MAX_RAM_SIZE    0x10000000 /* 0 .. 256 MB of (S)DRAM */
+#define CONFIG_SYS_MAX_RAM_SIZE    0x10000000  /* 0 .. 256 MB of (S)DRAM */
 
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_NS16550_COM1       (CFG_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_EUMB_ADDR + 0x4500)
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
 
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE      128
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * Low Level Configuration Settings
  */
 
 #define CONFIG_SYS_CLK_FREQ  66666666  /* external frequency to pll */
-#define CFG_HZ              1000
+#define CONFIG_SYS_HZ               1000
 
        /* Bit-field values for MCCR1.
         */
-#define CFG_ROMNAL         0
-#define CFG_ROMFAL         7
-#define CFG_BANK0_ROW       2
+#define CONFIG_SYS_ROMNAL          0
+#define CONFIG_SYS_ROMFAL          7
+#define CONFIG_SYS_BANK0_ROW       2
 
        /* Bit-field values for MCCR2.
         */
-#define CFG_REFINT         0x400           /* Refresh interval FIXME: was 0t430                */
+#define CONFIG_SYS_REFINT          0x400           /* Refresh interval FIXME: was 0t430                */
 
        /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
         */
-#define CFG_BSTOPRE        192
+#define CONFIG_SYS_BSTOPRE         192
 
        /* Bit-field values for MCCR3.
         */
-#define CFG_REFREC         2       /* Refresh to activate interval */
+#define CONFIG_SYS_REFREC          2       /* Refresh to activate interval */
 
        /* Bit-field values for MCCR4.
         */
-#define CFG_PRETOACT       2       /* Precharge to activate interval */
-#define CFG_ACTTOPRE       5       /* Activate to Precharge interval */
-#define CFG_ACTORW         3       /* FIXME was 2 */
-#define CFG_SDMODE_CAS_LAT  3      /* SDMODE CAS latancy */
-#define CFG_SDMODE_WRAP            0       /* SDMODE wrap type */
-#define CFG_REGISTERD_TYPE_BUFFER 1
-#define CFG_EXTROM         1
-#define CFG_REGDIMM        0
-
-#define CFG_ODCR               0xff    /* configures line driver impedances,   */
+#define CONFIG_SYS_PRETOACT        2       /* Precharge to activate interval */
+#define CONFIG_SYS_ACTTOPRE        5       /* Activate to Precharge interval */
+#define CONFIG_SYS_ACTORW          3       /* FIXME was 2 */
+#define CONFIG_SYS_SDMODE_CAS_LAT  3       /* SDMODE CAS latancy */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type */
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_EXTROM          1
+#define CONFIG_SYS_REGDIMM         0
+
+#define CONFIG_SYS_ODCR                0xff    /* configures line driver impedances,   */
                                        /* see 8245 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8245 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8245 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8245 book for details            */
 
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START            0x3ff00000
-#define CFG_BANK1_END      0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START            0x3ff00000
-#define CFG_BANK2_END      0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START            0x3ff00000
-#define CFG_BANK3_END      0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START            0x3ff00000
-#define CFG_BANK4_END      0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START            0x3ff00000
-#define CFG_BANK5_END      0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START            0x3ff00000
-#define CFG_BANK6_END      0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START            0x3ff00000
-#define CFG_BANK7_END      0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     35      /* Max number of sectors per flash      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* Max number of sectors per flash      */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
 
        /* Warining: environment is not EMBEDDED in the U-Boot code.
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
index c896b586382ecc8967b266fc8b0f0d14a8c845d4..4c469e3ba88100b8b60219341f91c8dae3c154de 100644 (file)
@@ -60,7 +60,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB) && defined(KGDB_DEBUG)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET       0x8000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 #ifdef TQM8xxL_80MHz   /* for 80 MHz, we use a 16 MHz clock * 5 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                ( (5-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
 #else
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 #endif /* TQM8xxL_80MHz */
 
 /*-----------------------------------------------------------------------
  */
 #define SCCR_MASK      SCCR_EBDF11
 #ifdef TQM8xxL_80MHz   /* for 80 MHz, we use a 16 MHz clock * 5 */
-#define CFG_SCCR       (/* SCCR_TBS  | */ \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS  | */ \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 #else                  /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
                                 OR_SCY_5_CLK | OR_EHTR)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define CFG_CAN_BASE           0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 45fe14b419a563ea68755006fe1f44945aa4ed02..45e6a58d990367fa8013a535bf8e9d78895d1b15 100644 (file)
@@ -49,8 +49,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
 /* this would be 0xAE if E0, E1 and E2 were pulled high */
-#define CFG_I2C_SLAVE          0xA0
-#define CFG_I2C_EEPROM_ADDR    (0xA0 >> 1)
-#define CFG_I2C_EEPROM_ADDR_LEN 2 /* 16 bit address */
-#define CFG_EEPROM_PAGE_WRITE_BITS 6 /* 64 bytes per write */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_SLAVE           0xA0
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xA0 >> 1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /* 16 bit address */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6 /* 64 bytes per write */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 20
 /* not used but required by devices.c */
-#define CFG_I2C_SPEED 10000
+#define CONFIG_SYS_I2C_SPEED 10000
 
 #ifdef CONFIG_SOFT_I2C
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "SMN42 # " /* Monitor Command Prompt    */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "SMN42 # " /* Monitor Command Prompt    */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x81800000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x83000000      /* 24 MB in SRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x81800000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x83000000      /* 24 MB in SRAM        */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x81000000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x81000000      /* default load address */
                                                /* for uClinux img is here*/
 
-#define CFG_SYS_CLK_FREQ       58982400        /* Hz */
-#define        CFG_HZ                  2048            /* decrementer freq in Hz */
+#define CONFIG_SYS_SYS_CLK_FREQ        58982400        /* Hz */
+#define        CONFIG_SYS_HZ                   2048            /* decrementer freq in Hz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
  */
 
 /*
- * The first entry in CFG_FLASH_BANKS_LIST is a dummy, but it must be present.
+ * The first entry in CONFIG_SYS_FLASH_BANKS_LIST is a dummy, but it must be present.
  */
-#define CFG_FLASH_BANKS_LIST   { 0, PHYS_FLASH_1 }
-#define CFG_FLASH_ADDR0                        0x555
-#define CFG_FLASH_ADDR1                        0x2AA
-#define CFG_FLASH_ERASE_TOUT   16384   /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   5       /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { 0, PHYS_FLASH_1 }
+#define CONFIG_SYS_FLASH_ADDR0                 0x555
+#define CONFIG_SYS_FLASH_ADDR1                 0x2AA
+#define CONFIG_SYS_FLASH_ERASE_TOUT    16384   /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    5       /* Timeout for Flash Write (in ms) */
 
-#define CFG_MAX_FLASH_SECT     128  /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_SECT      128  /* max number of sectors on one chip    */
 
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 /* The Environment Sector is in the CPU-internal flash */
-#define CFG_FLASH_BASE         0
+#define CONFIG_SYS_FLASH_BASE          0
 #define CONFIG_ENV_OFFSET              0x3C000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x2000 /* Total Size of Environment Sector      */
 
 #define CONFIG_CMDLINE_TAG
index 929a4b6aaf2064746acea016d28cfb7aeabf977f..92013469970673ad7b0c805eb22eeb8b324c3258 100644 (file)
@@ -55,7 +55,7 @@
                                "nfsaddrs=10.0.0.99:10.0.0.2"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address */
 
-#define CFG_PIO_MODE           0       /* IDE interface in PIO Mode 0  */
+#define CONFIG_SYS_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
 
-#define CFG_PC_IDE_RESET       ((ushort)0x0008)        /* PC 12        */
+#define CONFIG_SYS_PC_IDE_RESET        ((ushort)0x0008)        /* PC 12        */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000 /* was: 0xFF000000 */
+#define CONFIG_SYS_IMMR                0xFFF00000 /* was: 0xFF000000 */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
 #ifdef DEBUG
-#define CFG_MONITOR_LEN                (512 << 10)     /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor   */
 #else
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    0       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     0       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     0       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      0       /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   0       /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   0       /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    0       /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    0       /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_OFFSET              0x8000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 /* 0x00000040 */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC00 | SIUMCR_GB5E)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC00 | SIUMCR_GB5E)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit, set PLL multiplication factor !
  */
 /* 0x00b0c0c0 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                (       (11 << PLPRCR_MF_SHIFT) |                       \
                        PLPRCR_SPLSS | PLPRCR_TEXPS | /*PLPRCR_TMIST|*/ \
                        /*PLPRCR_CSRC|*/ PLPRCR_LPM_NORMAL |            \
  */
 #define SCCR_MASK      SCCR_EBDF11
 /* 0x01800014 */
-#define CFG_SCCR       (SCCR_COM00     | /*SCCR_TBS|*/         \
+#define CONFIG_SYS_SCCR        (SCCR_COM00     | /*SCCR_TBS|*/         \
                         SCCR_RTDIV     |   SCCR_RTSEL    |     \
                         /*SCCR_CRQEN|*/  /*SCCR_PRQEN|*/       \
                         SCCR_EBDF00    |   SCCR_DFSYNC00 |     \
  *-----------------------------------------------------------------------
  */
 /* 0x00C3 */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  */
 /* TIMEP=2 */
-#define CFG_RCCR 0x0200
+#define CONFIG_SYS_RCCR 0x0200
 
 /*-----------------------------------------------------------------------
  * RMDS - RISC Microcode Development Support Control Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMDS 0
+#define CONFIG_SYS_RMDS 0
 
 /*-----------------------------------------------------------------------
  * SDSR - SDMA Status Register
  *-----------------------------------------------------------------------
  */
-#define CFG_SDSR ((u_char)0x83)
+#define CONFIG_SYS_SDSR ((u_char)0x83)
 
 /*-----------------------------------------------------------------------
  * SDMR - SDMA Mask Register
  *-----------------------------------------------------------------------
  */
-#define CFG_SDMR ((u_char)0x00)
+#define CONFIG_SYS_SDMR ((u_char)0x00)
 
 /*-----------------------------------------------------------------------
  *
  * Interrupt Levels
  *-----------------------------------------------------------------------
  */
-#define CFG_CPM_INTERRUPT      13      /* SIU_LEVEL6   */
+#define CONFIG_SYS_CPM_INTERRUPT       13      /* SIU_LEVEL6   */
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #define CONFIG_IDE_LED         1       /* LED   for ide supported      */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         2       /* max. 2 IDE busses            */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          2       /* max. 2 IDE busses            */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xFE100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_IDE1_OFFSET    0x0C00
+#define CONFIG_SYS_ATA_BASE_ADDR       0xFE100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0x0C00
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0080  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0100  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0080  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100  /* Offset for alternate registers       */
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * but not too much to meddle with FLASH accesses
  */
 /* EPROMs are 512kb */
-#define CFG_REMAP_OR_AM                0xFFF80000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFF80000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFFF80000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFF80000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (/* OR_CSNT_SAM | */ OR_ACS_DIV4 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (/* OR_CSNT_SAM | */ OR_ACS_DIV4 | OR_BI | \
                                 OR_SCY_5_CLK | OR_EHTR)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
 /* 16 bit, bank valid */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
 /* 16 bit, bank valid */
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 /*
  * BR2-5 and OR2-5 (SRAM/SDRAM/PER8/SHARC)
 
 /* SRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)      */
 
-#define CFG_OR_TIMING_SRAM     0x00000D42      /* SRAM-Timing */
-#define CFG_OR2 (SRAM_OR_AM | CFG_OR_TIMING_SRAM )
-#define CFG_BR2 ((SRAM_BASE & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR_TIMING_SRAM      0x00000D42      /* SRAM-Timing */
+#define CONFIG_SYS_OR2 (SRAM_OR_AM | CONFIG_SYS_OR_TIMING_SRAM )
+#define CONFIG_SYS_BR2 ((SRAM_BASE & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
 
-#define CFG_OR_TIMING_SDRAM    0x00000A00      /* SDRAM-Timing */
-#define CFG_OR3_PRELIM (SDRAM_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V )
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00      /* SDRAM-Timing */
+#define CONFIG_SYS_OR3_PRELIM  (SDRAM_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V )
 
-#define CFG_OR_TIMING_PER8     0x00000F32      /* PER8-Timing */
-#define CFG_OR4 (PER8_OR_AM | CFG_OR_TIMING_PER8 )
-#define CFG_BR4 ((PER8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR_TIMING_PER8      0x00000F32      /* PER8-Timing */
+#define CONFIG_SYS_OR4 (PER8_OR_AM | CONFIG_SYS_OR_TIMING_PER8 )
+#define CONFIG_SYS_BR4 ((PER8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
 
-#define CFG_OR_TIMING_SHARC    0x00000700      /* SHARC-Timing */
-#define CFG_OR5 (SHARC_OR_AM | CFG_OR_TIMING_SHARC )
-#define CFG_BR5 ((SHARC_BASE & BR_BA_MSK) | BR_PS_32 | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR_TIMING_SHARC     0x00000700      /* SHARC-Timing */
+#define CONFIG_SYS_OR5 (SHARC_OR_AM | CONFIG_SYS_OR_TIMING_SHARC )
+#define CONFIG_SYS_BR5 ((SHARC_BASE & BR_BA_MSK) | BR_PS_32 | BR_MS_UPMA | BR_V )
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MBMR_PTB   204
+#define CONFIG_SYS_MBMR_PTB    204
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MBMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MBMR_8COL  ((CFG_MBMR_PTB << MBMR_PTB_SHIFT)  | \
+#define CONFIG_SYS_MBMR_8COL   ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT)  | \
                         MBMR_AMB_TYPE_0 | MBMR_DSB_1_CYCL | MBMR_G0CLB_A11 |   \
                         MBMR_RLFB_1X    | MBMR_WLFB_1X    | MBMR_TLFB_4X)
 
index ff4e1a01f7fb69b34272ffb76b6b73b1cdb506b0..fd1a3bdd5360a163c3f2a9656e8ca02dca707938 100644 (file)
@@ -46,8 +46,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   (-4)
-#define CFG_NS16550_CLK                (CONFIG_SYS_CLK_FREQ)   /* can be 12M/32Khz or 48Mhz  */
-#define CFG_NS16550_COM1       0xfffb0000              /* uart1, bluetooth uart on helen */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
+#define CONFIG_SYS_NS16550_CLK         (CONFIG_SYS_CLK_FREQ)   /* can be 12M/32Khz or 48Mhz  */
+#define CONFIG_SYS_NS16550_COM1        0xfffb0000              /* uart1, bluetooth uart on helen */
 
 /*
  * select serial console configuration
@@ -82,8 +82,8 @@
  * I2C configuration
  */
 #define CONFIG_HARD_I2C
-#define CFG_I2C_SPEED          100000
-#define CFG_I2C_SLAVE          1
+#define CONFIG_SYS_I2C_SPEED           100000
+#define CONFIG_SYS_I2C_SLAVE           1
 #define CONFIG_DRIVER_OMAP1510_I2C
 
 #define CONFIG_ENV_OVERWRITE
@@ -91,7 +91,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "SX1# " /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "SX1# " /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x10000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x12000000      /* 32 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x10000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x12000000      /* 32 MB in DRAM        */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x10000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x10000000      /* default load address */
 
 /* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1.
  * This time is further subdivided by a local divisor.
  */
-#define CFG_TIMERBASE  0xFFFEC500          /* use timer 1 */
-#define CFG_PVT                7                   /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ                 ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE   0xFFFEC500          /* use timer 1 */
+#define CONFIG_SYS_PVT         7                   /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ                  ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 #define PHYS_FLASH_2           0x04000000 /* Flash Bank #2 */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
 #define PHYS_FLASH_SIZE                (16 << 10) /* 16 MB */
 #define PHYS_FLASH_SECT_SIZE   (128*1024) /* Size of a sector (128kB) */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + PHYS_FLASH_SECT_SIZE) /* addr of environment */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE  /* Monitor at beginning of flash */
-#define CFG_MONITOR_LEN                PHYS_FLASH_SECT_SIZE    /* Reserve 1 sector */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE + PHYS_FLASH_SIZE }
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SECT_SIZE) /* addr of environment */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE   /* Monitor at beginning of flash */
+#define CONFIG_SYS_MONITOR_LEN         PHYS_FLASH_SECT_SIZE    /* Reserve 1 sector */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SIZE }
 
 /*-----------------------------------------------------------------------
  * FLASH driver setup
  */
-#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use drivers/mtd/cfi_flash.c */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* Use buffered writes (~10x faster) */
-#define CFG_FLASH_PROTECTION   1       /* Use hardware sector protection */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* Use buffered writes (~10x faster) */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* Use hardware sector protection */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SECT_SIZE   PHYS_FLASH_SECT_SIZE
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE /* Total Size of Environment Sector */
-#define CONFIG_ENV_OFFSET      ( CFG_MONITOR_BASE + CFG_MONITOR_LEN ) /* Environment after Monitor */
+#define CONFIG_ENV_OFFSET      ( CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN ) /* Environment after Monitor */
 
 /* Address and size of Redundant Environment Sector    */
 #define CONFIG_ENV_SIZE_REDUND 0x20000
index 0cc4fe431cd632defe67566ae65a241ea6a18076..7fc455b8c918558d95c557673bcb231fc5355d70 100644 (file)
@@ -94,7 +94,7 @@
 # define STATUS_LED_DAT                im_ioport.iop_padat
 
 # define STATUS_LED_BIT                0x8000          /* LED 0 is on PA.0 */
-# define STATUS_LED_PERIOD     ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
+# define STATUS_LED_PERIOD     ((CONFIG_SYS_HZ / 2) / 5)       /* blink at 5 Hz */
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     0               /* LED on for bit == 0  */
                        else    immr->im_cpm.cp_pbdat &= ~PB_SCL
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
-# define CFG_I2C_SPEED         50000
-# define CFG_I2C_SLAVE         0xFE
-# define CFG_I2C_EEPROM_ADDR   0x50    /* Atmel 24C64                  */
-# define CFG_I2C_EEPROM_ADDR_LEN 2     /* two byte address             */
+# define CONFIG_SYS_I2C_SPEED          50000
+# define CONFIG_SYS_I2C_SLAVE          0xFE
+# define CONFIG_SYS_I2C_EEPROM_ADDR    0x50    /* Atmel 24C64                  */
+# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2      /* two byte address             */
 
 #define        CONFIG_FEC_ENET         1       /* use FEC ethernet  */
 #define        CONFIG_MII              1
 
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 
 
 /*
 #define CONFIG_CMD_DATE
 
 
-#define CFG_JFFS2_SORT_FRAGMENTS
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
 
 /*
  * JFFS2 partitions
 /* NAND flash support */
 #define CONFIG_NAND_LEGACY
 #define CONFIG_MTD_NAND_ECC_JFFS2
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices   */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices   */
 #define SECTORSIZE 512
 
 #define ADDR_COLUMN 1
 
 /* DFBUSY is available on Port C, bit 12; 0 if busy */
 #define NAND_WAIT_READY(nand)  \
-       while (!(((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat & 0x0008));
+       while (!(((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat & 0x0008));
 #define WRITE_NAND_COMMAND(d, adr) WRITE_NAND((d), (adr))
 #define WRITE_NAND_ADDRESS(d, adr) WRITE_NAND((d), (adr))
 #define WRITE_NAND(d, adr)     \
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save a little memory */
-#define        CFG_PROMPT              "=>"    /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save a little memory */
+#define        CONFIG_SYS_PROMPT               "=>"    /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0400000       /* 1 ... 4 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0400000       /* 1 ... 4 MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
-#define CFG_IMMR_SIZE          ((uint)(64 * 1024))
+#define CONFIG_SYS_IMMR                0xFF000000
+#define CONFIG_SYS_IMMR_SIZE           ((uint)(64 * 1024))
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define        CFG_SRAM_BASE           0xF4000000
-#define        CFG_SRAM_SIZE           0x04000000      /* autosize up to 64Mbyte */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define        CONFIG_SYS_SRAM_BASE            0xF4000000
+#define        CONFIG_SYS_SRAM_SIZE            0x04000000      /* autosize up to 64Mbyte */
 
-#define CFG_FLASH_BASE         0xF8000000
-#define CFG_FLASH_SIZE         ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
+#define CONFIG_SYS_FLASH_BASE          0xF8000000
+#define CONFIG_SYS_FLASH_SIZE          ((uint)(8 * 1024 * 1024))       /* max 8Mbyte */
 
-#define CFG_DFLASH_BASE                0xff020000 /* DiskOnChip or NAND FLASH */
-#define CFG_DFLASH_SIZE                0x00010000
+#define CONFIG_SYS_DFLASH_BASE         0xff020000 /* DiskOnChip or NAND FLASH */
+#define CONFIG_SYS_DFLASH_SIZE         0x00010000
 
-#define CFG_FPGA_BASE          0xFF100000      /* Xilinx FPGA */
-#define CFG_FPGA_PROG          0xFF130000      /* Programming address */
-#define CFG_FPGA_SIZE          0x00040000      /* 256KiB usable */
+#define CONFIG_SYS_FPGA_BASE           0xFF100000      /* Xilinx FPGA */
+#define CONFIG_SYS_FPGA_PROG           0xFF130000      /* Programming address */
+#define CONFIG_SYS_FPGA_SIZE           0x00040000      /* 256KiB usable */
 
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
 /* Intel 28F640 has 135, 127 64K sectors in 8MB, + 8 more for 8K boot blocks.
  * AMD 29LV641 has 128 64K sectors in 8MB
  */
-#define CFG_MAX_FLASH_SECT     135     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_SECT      135     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                        11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30
  *-----------------------------------------------------------------------
  * set the PLL, the low-power modes and the reset control (15-29)
  */
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
                                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS|SCCR_COM00|SCCR_DFSYNC00|SCCR_DFBRG00|SCCR_DFNL000|SCCR_DFNH000|SCCR_DFLCD000|SCCR_DFALCD00)
+#define CONFIG_SYS_SCCR        (SCCR_TBS|SCCR_COM00|SCCR_DFSYNC00|SCCR_DFBRG00|SCCR_DFNL000|SCCR_DFNH000|SCCR_DFLCD000|SCCR_DFALCD00)
 
  /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER                0
+#define CONFIG_SYS_DER         0
 
 /* Because of the way the 860 starts up and assigns CS0 the
  * entire address space, we have to set the memory controller
  * BR0 and OR0 (FLASH)
  */
 
-#define CFG_PRELIM_OR0_AM      0xFC000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR0_AM       0xFC000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 10, TRLX = 1, CSNT = 1, SCY = 3, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_3_CLK | OR_TRLX)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR0_AM | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR0_AM | CONFIG_SYS_OR_TIMING_FLASH)
 
 #define CONFIG_FLASH_16BIT
-#define CFG_BR0_PRELIM ((CFG_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_V )
-#define CFG_FLASH_PROTECTION   /* need to lock/unlock sectors in hardware */
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_FLASH_PROTECTION    /* need to lock/unlock sectors in hardware */
 
 /**********************************************************
  * BR1 and OR1 (FPGA)
  * These preliminary values are also the final values.
  */
-#define CFG_OR_TIMING_FPGA \
+#define CONFIG_SYS_OR_TIMING_FPGA \
        (OR_CSNT_SAM | OR_ACS_DIV2 | OR_BI | OR_SCY_4_CLK | OR_EHTR | OR_TRLX)
-#define CFG_BR1_PRELIM ((CFG_FPGA_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
-#define CFG_OR1_PRELIM (((-CFG_FPGA_SIZE) & OR_AM_MSK) | CFG_OR_TIMING_FPGA)
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_FPGA_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  (((-CONFIG_SYS_FPGA_SIZE) & OR_AM_MSK) | CONFIG_SYS_OR_TIMING_FPGA)
 
 /**********************************************************
  * BR4 and OR4 (data flash)
  * These preliminary values are also the final values.
  */
-#define CFG_OR_TIMING_DFLASH \
+#define CONFIG_SYS_OR_TIMING_DFLASH \
        (OR_CSNT_SAM | OR_ACS_DIV4 | OR_BI | OR_SCY_2_CLK | OR_EHTR | OR_TRLX)
-#define CFG_BR4_PRELIM ((CFG_DFLASH_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
-#define CFG_OR4_PRELIM (((-CFG_DFLASH_SIZE) & OR_AM_MSK) | CFG_OR_TIMING_DFLASH)
+#define CONFIG_SYS_BR4_PRELIM  ((CONFIG_SYS_DFLASH_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR4_PRELIM  (((-CONFIG_SYS_DFLASH_SIZE) & OR_AM_MSK) | CONFIG_SYS_OR_TIMING_DFLASH)
 
 /**********************************************************
  * BR5/6 and OR5/6 (Dual UART)
  */
-#define CFG_DUART_SIZE 0x8000  /* 32K window, only uses 8 bytes */
-#define CFG_DUARTA_BASE        0xff010000
-#define CFG_DUARTB_BASE        0xff018000
+#define CONFIG_SYS_DUART_SIZE  0x8000  /* 32K window, only uses 8 bytes */
+#define CONFIG_SYS_DUARTA_BASE 0xff010000
+#define CONFIG_SYS_DUARTB_BASE 0xff018000
 
 #define DUART_MBMR     0
-#define DUART_OR_VALUE (ORMASK(CFG_DUART_SIZE) | OR_G5LS| OR_BI)
+#define DUART_OR_VALUE (ORMASK(CONFIG_SYS_DUART_SIZE) | OR_G5LS| OR_BI)
 #define DUART_BR_VALUE (BR_MS_UPMB | BR_PS_8 | BR_V)
-#define DUART_BR5_VALUE ((CFG_DUARTA_BASE & BR_BA_MSK ) | DUART_BR_VALUE)
-#define DUART_BR6_VALUE ((CFG_DUARTB_BASE & BR_BA_MSK ) | DUART_BR_VALUE)
+#define DUART_BR5_VALUE ((CONFIG_SYS_DUARTA_BASE & BR_BA_MSK ) | DUART_BR_VALUE)
+#define DUART_BR6_VALUE ((CONFIG_SYS_DUARTB_BASE & BR_BA_MSK ) | DUART_BR_VALUE)
 
 /**********************************************************
  *
index 9898a8b8b627832281f3c0750766ffd8e8c8abaa..125b9a25720c8fbc4cf5b958b767faeedc4b261f 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1               /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP            1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_NET_MULTI                       /* Multi ethernet cards support */
 
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 
 #define PCI_ENET0_IOADDR       0x80000000
 #define PCI_ENET0_MEMADDR      0x80000000
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x10000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x10000000
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #if defined (USE_DINK32)
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       0x00090000
-#define CFG_RAMBOOT            1
-#define CFG_INIT_RAM_ADDR      (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_INIT_RAM_END       0x10000
-#define CFG_GBL_DATA_SIZE      256  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        0x00090000
+#define CONFIG_SYS_RAMBOOT             1
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_INIT_RAM_END        0x10000
+#define CONFIG_SYS_GBL_DATA_SIZE       256  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #else
-#undef CFG_RAMBOOT
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-/*#define CFG_GBL_DATA_SIZE    256*/
-#define CFG_GBL_DATA_SIZE      128
+/*#define CONFIG_SYS_GBL_DATA_SIZE    256*/
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #endif
 
-#define CFG_FLASH_BASE         0xFFF00000
+#define CONFIG_SYS_FLASH_BASE          0xFFF00000
 #if 0
-#define CFG_FLASH_SIZE         (512 * 1024)    /* sandpoint has tiny eeprom    */
+#define CONFIG_SYS_FLASH_SIZE          (512 * 1024)    /* sandpoint has tiny eeprom    */
 #else
-#define CFG_FLASH_SIZE         (1024 * 1024)   /* Unity has onboard 1MByte flash */
+#define CONFIG_SYS_FLASH_SIZE          (1024 * 1024)   /* Unity has onboard 1MByte flash */
 #endif
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x00004000      /* Offset of Environment Sector */
 #define CONFIG_ENV_SIZE                0x00002000      /* Total Size of Environment Sector */
 
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x04000000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x04000000      /* 0 ... 32 MB in DRAM          */
 
-#define CFG_EUMB_ADDR          0xFC000000
+#define CONFIG_SYS_EUMB_ADDR           0xFC000000
 
-#define CFG_ISA_MEM            0xFD000000
-#define CFG_ISA_IO             0xFE000000
+#define CONFIG_SYS_ISA_MEM             0xFD000000
+#define CONFIG_SYS_ISA_IO              0xFE000000
 
-#define CFG_FLASH_RANGE_BASE   0xFF000000      /* flash memory address range   */
-#define CFG_FLASH_RANGE_SIZE   0x01000000
+#define CONFIG_SYS_FLASH_RANGE_BASE    0xFF000000      /* flash memory address range   */
+#define CONFIG_SYS_FLASH_RANGE_SIZE    0x01000000
 #define FLASH_BASE0_PRELIM     0xFFF00000      /* sandpoint flash              */
 #define FLASH_BASE1_PRELIM     0xFF000000      /* PMC onboard flash            */
 
  */
 #define CONFIG_HARD_I2C                1               /* To enable I2C support        */
 #undef  CONFIG_SOFT_I2C                                /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 #ifdef CONFIG_SOFT_I2C
 #error "Soft I2C is not configured properly.  Please review!"
 #endif /* CONFIG_SOFT_I2C */
 
 
-#define CFG_I2C_EEPROM_ADDR    0x57            /* EEPROM IS24C02               */
-#define CFG_I2C_EEPROM_ADDR_LEN        1               /* Bytes of address             */
-#define CFG_EEPROM_PAGE_WRITE_BITS     3       /* write page size              */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* takes up to 10 msec          */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57            /* EEPROM IS24C02               */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3       /* write page size              */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* takes up to 10 msec          */
 
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_FLASH_BANKS                { FLASH_BASE0_PRELIM , FLASH_BASE1_PRELIM }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_FLASH_BANKS         { FLASH_BASE0_PRELIM , FLASH_BASE1_PRELIM }
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
 
 
 #define CONFIG_WINBOND_83C553  1       /*has a winbond bridge                  */
-#define CFG_USE_WINBOND_IDE    0       /*use winbond 83c553 internal IDE ctrlr */
-#define CFG_WINBOND_ISA_CFG_ADDR    0x80005800 /*pci-isa bridge config addr    */
-#define CFG_WINBOND_IDE_CFG_ADDR    0x80005900 /*ide config addr               */
+#define CONFIG_SYS_USE_WINBOND_IDE     0       /*use winbond 83c553 internal IDE ctrlr */
+#define CONFIG_SYS_WINBOND_ISA_CFG_ADDR    0x80005800  /*pci-isa bridge config addr    */
+#define CONFIG_SYS_WINBOND_IDE_CFG_ADDR    0x80005900  /*ide config addr               */
 
-#define CFG_IDE_MAXBUS         2   /* max. 2 IDE busses        */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          2   /* max. 2 IDE busses        */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
 /*
  * NS87308 Configuration
  */
 #define CONFIG_NS87308                 /* Nat Semi super-io controller on ISA bus */
 
-#define CFG_NS87308_BADDR_10   1
+#define CONFIG_SYS_NS87308_BADDR_10    1
 
-#define CFG_NS87308_DEVS       ( CFG_NS87308_UART1   | \
-                                 CFG_NS87308_UART2   | \
-                                 CFG_NS87308_POWRMAN | \
-                                 CFG_NS87308_RTC_APC )
+#define CONFIG_SYS_NS87308_DEVS        ( CONFIG_SYS_NS87308_UART1   | \
+                                 CONFIG_SYS_NS87308_UART2   | \
+                                 CONFIG_SYS_NS87308_POWRMAN | \
+                                 CONFIG_SYS_NS87308_RTC_APC )
 
-#undef  CFG_NS87308_PS2MOD
+#undef  CONFIG_SYS_NS87308_PS2MOD
 
-#define CFG_NS87308_CS0_BASE   0x0076
-#define CFG_NS87308_CS0_CONF   0x30
-#define CFG_NS87308_CS1_BASE   0x0075
-#define CFG_NS87308_CS1_CONF   0x30
-#define CFG_NS87308_CS2_BASE   0x0074
-#define CFG_NS87308_CS2_CONF   0x30
+#define CONFIG_SYS_NS87308_CS0_BASE    0x0076
+#define CONFIG_SYS_NS87308_CS0_CONF    0x30
+#define CONFIG_SYS_NS87308_CS1_BASE    0x0075
+#define CONFIG_SYS_NS87308_CS1_CONF    0x30
+#define CONFIG_SYS_NS87308_CS2_BASE    0x0074
+#define CONFIG_SYS_NS87308_CS2_CONF    0x30
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                1843200
+#define CONFIG_SYS_NS16550_CLK         1843200
 
-#define CFG_NS16550_COM1       (CFG_ISA_IO + CFG_NS87308_UART1_BASE)
-#define CFG_NS16550_COM2       (CFG_ISA_IO + CFG_NS87308_UART2_BASE)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART1_BASE)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART2_BASE)
 
 /*
  * Low Level Configuration Settings
 #define CONFIG_SYS_CLK_FREQ  33000000  /* external frequency to pll */
 #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER  1
 
-#define CFG_ROMNAL             7       /*rom/flash next access time            */
-#define CFG_ROMFAL             11      /*rom/flash access time                 */
+#define CONFIG_SYS_ROMNAL              7       /*rom/flash next access time            */
+#define CONFIG_SYS_ROMFAL              11      /*rom/flash access time                 */
 
-#define CFG_REFINT     430     /* no of clock cycles between CBR refresh cycles */
+#define CONFIG_SYS_REFINT      430     /* no of clock cycles between CBR refresh cycles */
 
 /* the following are for SDRAM only*/
-#define CFG_BSTOPRE    121     /* Burst To Precharge, sets open page interval */
-#define CFG_REFREC             8       /* Refresh to activate interval         */
-#define CFG_RDLAT              4       /* data latency from read command       */
-#define CFG_PRETOACT           3       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           5       /* Activate to Precharge interval       */
-#define CFG_ACTORW             3       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
-#define CFG_SDMODE_BURSTLEN    2       /* SDMODE Burst length 2=4, 3=8         */
-
-#define CFG_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_BSTOPRE     121     /* Burst To Precharge, sets open page interval */
+#define CONFIG_SYS_REFREC              8       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT               4       /* data latency from read command       */
+#define CONFIG_SYS_PRETOACT            3       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              3       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_SDMODE_BURSTLEN     2       /* SDMODE Burst length 2=4, 3=8         */
+
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
 
 /* memory bank settings*/
 /*
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x3ff00000
-#define CFG_BANK1_END          0x3fffffff
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x3ff00000
-#define CFG_BANK2_END          0x3fffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x3ff00000
-#define CFG_BANK3_END          0x3fffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x3ff00000
+#define CONFIG_SYS_BANK1_END           0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x3ff00000
+#define CONFIG_SYS_BANK2_END           0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x3ff00000
+#define CONFIG_SYS_BANK3_END           0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
 /*
  * Memory bank enable bitmask, specifying which of the banks defined above
  are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
-#define CFG_ODCR               0xff    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0xff    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 1GB (no backing mem) */
 #if defined(USE_DINK32)
-#define CFG_IBAT1L     (0x40000000 | BATL_PP_00 )
-#define CFG_IBAT1U     (0x40000000 | BATU_BL_128K )
+#define CONFIG_SYS_IBAT1L      (0x40000000 | BATL_PP_00 )
+#define CONFIG_SYS_IBAT1U      (0x40000000 | BATU_BL_128K )
 #else
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 #endif
 
 /* PCI memory */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Flash, config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     20      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      20      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8240 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8240 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
index 41835f01e018c889183eadf61b11f0c59864d26d..8cb920e0a101aaacad77036386552853ec81e76d 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1               /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP            1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
@@ -97,7 +97,7 @@
 #define CONFIG_NET_MULTI                       /* Multi ethernet cards support */
 
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #define CONFIG_NATSEMI
 #define CONFIG_NS8382X
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x10000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x10000000
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #if defined (USE_DINK32)
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       0x00090000
-#define CFG_RAMBOOT            1
-#define CFG_INIT_RAM_ADDR      (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_INIT_RAM_END       0x10000
-#define CFG_GBL_DATA_SIZE      256  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        0x00090000
+#define CONFIG_SYS_RAMBOOT             1
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_INIT_RAM_END        0x10000
+#define CONFIG_SYS_GBL_DATA_SIZE       256  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #else
-#undef CFG_RAMBOOT
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-/*#define CFG_GBL_DATA_SIZE    256*/
-#define CFG_GBL_DATA_SIZE      128
+/*#define CONFIG_SYS_GBL_DATA_SIZE    256*/
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #endif
 
-#define CFG_FLASH_BASE         0xFFF00000
+#define CONFIG_SYS_FLASH_BASE          0xFFF00000
 #if 0
-#define CFG_FLASH_SIZE         (512 * 1024)    /* sandpoint has tiny eeprom    */
+#define CONFIG_SYS_FLASH_SIZE          (512 * 1024)    /* sandpoint has tiny eeprom    */
 #else
-#define CFG_FLASH_SIZE         (1024 * 1024)   /* Unity has onboard 1MByte flash */
+#define CONFIG_SYS_FLASH_SIZE          (1024 * 1024)   /* Unity has onboard 1MByte flash */
 #endif
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x00004000      /* Offset of Environment Sector */
 #define CONFIG_ENV_SIZE                0x00002000      /* Total Size of Environment Sector */
 
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x04000000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x04000000      /* 0 ... 32 MB in DRAM          */
 
-#define CFG_EUMB_ADDR          0xFC000000
+#define CONFIG_SYS_EUMB_ADDR           0xFC000000
 
-#define CFG_ISA_MEM            0xFD000000
-#define CFG_ISA_IO             0xFE000000
+#define CONFIG_SYS_ISA_MEM             0xFD000000
+#define CONFIG_SYS_ISA_IO              0xFE000000
 
-#define CFG_FLASH_RANGE_BASE   0xFF000000      /* flash memory address range   */
-#define CFG_FLASH_RANGE_SIZE   0x01000000
+#define CONFIG_SYS_FLASH_RANGE_BASE    0xFF000000      /* flash memory address range   */
+#define CONFIG_SYS_FLASH_RANGE_SIZE    0x01000000
 #define FLASH_BASE0_PRELIM     0xFFF00000      /* sandpoint flash              */
 #define FLASH_BASE1_PRELIM     0xFF000000      /* PMC onboard flash            */
 
  */
 #define CONFIG_HARD_I2C                1               /* To enable I2C support        */
 #undef  CONFIG_SOFT_I2C                                /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 #ifdef CONFIG_SOFT_I2C
 #error "Soft I2C is not configured properly.  Please review!"
 #define I2C_DELAY              udelay(5)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x57            /* EEPROM IS24C02               */
-#define CFG_I2C_EEPROM_ADDR_LEN        1               /* Bytes of address             */
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57            /* EEPROM IS24C02               */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_FLASH_BANKS                { FLASH_BASE0_PRELIM , FLASH_BASE1_PRELIM }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_FLASH_BANKS         { FLASH_BASE0_PRELIM , FLASH_BASE1_PRELIM }
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
 
 
 #define CONFIG_WINBOND_83C553  1       /*has a winbond bridge                  */
-#define CFG_USE_WINBOND_IDE    0       /*use winbond 83c553 internal IDE ctrlr */
-#define CFG_WINBOND_ISA_CFG_ADDR    0x80005800 /*pci-isa bridge config addr    */
-#define CFG_WINBOND_IDE_CFG_ADDR    0x80005900 /*ide config addr               */
+#define CONFIG_SYS_USE_WINBOND_IDE     0       /*use winbond 83c553 internal IDE ctrlr */
+#define CONFIG_SYS_WINBOND_ISA_CFG_ADDR    0x80005800  /*pci-isa bridge config addr    */
+#define CONFIG_SYS_WINBOND_IDE_CFG_ADDR    0x80005900  /*ide config addr               */
 
-#define CFG_IDE_MAXBUS         2   /* max. 2 IDE busses        */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          2   /* max. 2 IDE busses        */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
 /*
  * NS87308 Configuration
  */
 #define CONFIG_NS87308                 /* Nat Semi super-io controller on ISA bus */
 
-#define CFG_NS87308_BADDR_10   1
+#define CONFIG_SYS_NS87308_BADDR_10    1
 
-#define CFG_NS87308_DEVS       ( CFG_NS87308_UART1   | \
-                                 CFG_NS87308_UART2   | \
-                                 CFG_NS87308_POWRMAN | \
-                                 CFG_NS87308_RTC_APC )
+#define CONFIG_SYS_NS87308_DEVS        ( CONFIG_SYS_NS87308_UART1   | \
+                                 CONFIG_SYS_NS87308_UART2   | \
+                                 CONFIG_SYS_NS87308_POWRMAN | \
+                                 CONFIG_SYS_NS87308_RTC_APC )
 
-#undef  CFG_NS87308_PS2MOD
+#undef  CONFIG_SYS_NS87308_PS2MOD
 
-#define CFG_NS87308_CS0_BASE   0x0076
-#define CFG_NS87308_CS0_CONF   0x30
-#define CFG_NS87308_CS1_BASE   0x0075
-#define CFG_NS87308_CS1_CONF   0x30
-#define CFG_NS87308_CS2_BASE   0x0074
-#define CFG_NS87308_CS2_CONF   0x30
+#define CONFIG_SYS_NS87308_CS0_BASE    0x0076
+#define CONFIG_SYS_NS87308_CS0_CONF    0x30
+#define CONFIG_SYS_NS87308_CS1_BASE    0x0075
+#define CONFIG_SYS_NS87308_CS1_CONF    0x30
+#define CONFIG_SYS_NS87308_CS2_BASE    0x0074
+#define CONFIG_SYS_NS87308_CS2_CONF    0x30
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
 #if (CONFIG_CONS_INDEX > 2)
-#define CFG_NS16550_CLK         CONFIG_DRAM_SPEED*1000000
+#define CONFIG_SYS_NS16550_CLK         CONFIG_DRAM_SPEED*1000000
 #else
-#define CFG_NS16550_CLK         1843200
+#define CONFIG_SYS_NS16550_CLK         1843200
 #endif
 
-#define CFG_NS16550_COM1       (CFG_ISA_IO + CFG_NS87308_UART1_BASE)
-#define CFG_NS16550_COM2       (CFG_ISA_IO + CFG_NS87308_UART2_BASE)
-#define CFG_NS16550_COM3       (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM4       (CFG_EUMB_ADDR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART1_BASE)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_ISA_IO + CONFIG_SYS_NS87308_UART2_BASE)
+#define CONFIG_SYS_NS16550_COM3        (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM4        (CONFIG_SYS_EUMB_ADDR + 0x4600)
 
 /*
  * Low Level Configuration Settings
 
 #define CONFIG_SYS_CLK_FREQ  33333333  /* external frequency to pll */
 
-#define CFG_ROMNAL             7       /*rom/flash next access time            */
-#define CFG_ROMFAL             11      /*rom/flash access time                 */
+#define CONFIG_SYS_ROMNAL              7       /*rom/flash next access time            */
+#define CONFIG_SYS_ROMFAL              11      /*rom/flash access time                 */
 
-#define CFG_REFINT     430     /* no of clock cycles between CBR refresh cycles */
+#define CONFIG_SYS_REFINT      430     /* no of clock cycles between CBR refresh cycles */
 
 /* the following are for SDRAM only*/
-#define CFG_BSTOPRE    121     /* Burst To Precharge, sets open page interval */
-#define CFG_REFREC             8       /* Refresh to activate interval         */
-#define CFG_RDLAT              4       /* data latency from read command       */
-#define CFG_PRETOACT           3       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           5       /* Activate to Precharge interval       */
-#define CFG_ACTORW             3       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_BSTOPRE     121     /* Burst To Precharge, sets open page interval */
+#define CONFIG_SYS_REFREC              8       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT               4       /* data latency from read command       */
+#define CONFIG_SYS_PRETOACT            3       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              3       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
 #if 0
-#define CFG_SDMODE_BURSTLEN    2       /* OBSOLETE!  SDMODE Burst length 2=4, 3=8              */
+#define CONFIG_SYS_SDMODE_BURSTLEN     2       /* OBSOLETE!  SDMODE Burst length 2=4, 3=8              */
 #endif
 
-#define CFG_REGISTERD_TYPE_BUFFER   1
-#define CFG_EXTROM 1
-#define CFG_REGDIMM 0
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_EXTROM 1
+#define CONFIG_SYS_REGDIMM 0
 
 
 /* memory bank settings*/
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x3ff00000
-#define CFG_BANK1_END          0x3fffffff
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x3ff00000
-#define CFG_BANK2_END          0x3fffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x3ff00000
-#define CFG_BANK3_END          0x3fffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x3ff00000
+#define CONFIG_SYS_BANK1_END           0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x3ff00000
+#define CONFIG_SYS_BANK2_END           0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x3ff00000
+#define CONFIG_SYS_BANK3_END           0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
 /*
  * Memory bank enable bitmask, specifying which of the banks defined above
  are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
-#define CFG_ODCR               0xff    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0xff    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 1GB (no backing mem) */
 #if defined(USE_DINK32)
-#define CFG_IBAT1L     (0x40000000 | BATL_PP_00 )
-#define CFG_IBAT1U     (0x40000000 | BATU_BL_128K )
+#define CONFIG_SYS_IBAT1L      (0x40000000 | BATL_PP_00 )
+#define CONFIG_SYS_IBAT1U      (0x40000000 | BATU_BL_128K )
 #else
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 #endif
 
 /* PCI memory */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Flash, config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     20      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      20      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8240 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8240 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
index d27a54ed29c924a9ae4931a9fdc227dfcb25b13e..18ffbfd72f09477c22a1a3d290bb712afd375ca2 100644 (file)
@@ -46,9 +46,9 @@
 #define CONFIG_MCFTMR
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                19200
-#define CFG_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
 
 #undef  CONFIG_WATCHDOG
 
 
 #define CONFIG_BOOTDELAY       3
 
-#define CFG_PROMPT             "=> "
-#define CFG_LONGHELP                           /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 #define CONFIG_MX_CYCLIC        1       /* enable mdc/mwc commands      */
 
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 /*
  * Clock configuration: enable only one of the following options
  */
 
 #if 0 /* this setting will run the cpu at 11MHz */
-#define CFG_PLL_BYPASS          1                /* bypass PLL for test purpose */
-#undef  CFG_FAST_CLK                             /* MCF5249 can run at 140MHz   */
-#define CFG_CLK                        11289600         /* PLL bypass                  */
+#define CONFIG_SYS_PLL_BYPASS          1                /* bypass PLL for test purpose */
+#undef  CONFIG_SYS_FAST_CLK                             /* MCF5249 can run at 140MHz   */
+#define CONFIG_SYS_CLK                 11289600         /* PLL bypass                  */
 #endif
 
 #if 0 /* this setting will run the cpu at 70MHz */
-#undef  CFG_PLL_BYPASS                           /* bypass PLL for test purpose */
-#undef  CFG_FAST_CLK                             /* MCF5249 can run at 140MHz   */
-#define CFG_CLK                        72185018         /* The next lower speed        */
+#undef  CONFIG_SYS_PLL_BYPASS                           /* bypass PLL for test purpose */
+#undef  CONFIG_SYS_FAST_CLK                             /* MCF5249 can run at 140MHz   */
+#define CONFIG_SYS_CLK                 72185018         /* The next lower speed        */
 #endif
 
 #if 1 /* this setting will run the cpu at 140MHz */
-#undef  CFG_PLL_BYPASS                           /* bypass PLL for test purpose */
-#define CFG_FAST_CLK            1                /* MCF5249 can run at 140MHz   */
-#define        CFG_CLK                 132025600        /* MCF5249 can run at 140MHz   */
+#undef  CONFIG_SYS_PLL_BYPASS                           /* bypass PLL for test purpose */
+#define CONFIG_SYS_FAST_CLK            1                /* MCF5249 can run at 140MHz   */
+#define        CONFIG_SYS_CLK                  132025600        /* MCF5249 can run at 140MHz   */
 #endif
 
 /*
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_MBAR               0x10000000      /* Register Base Addrs */
-#define        CFG_MBAR2               0x80000000
+#define CONFIG_SYS_MBAR                0x10000000      /* Register Base Addrs */
+#define        CONFIG_SYS_MBAR2                0x80000000
 
 /*-----------------------------------------------------------------------
  * I2C
  */
 #define        CONFIG_SOFT_I2C
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC32             */
-#define CFG_I2C_EEPROM_ADDR_LEN 2      /* Bytes of address             */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC32             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x01
-#define CFG_EEPROM_PAGE_WRITE_BITS 5   /* The Catalyst CAT24WC32 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x01
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5    /* The Catalyst CAT24WC32 has   */
                                        /* 32 byte page write mode using*/
                                        /* last 5 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 #if defined (CONFIG_SOFT_I2C)
 #if 0 /* push-pull */
 #define        SDA             0x00800000
 #define        SCL             0x00000008
-#define DIR0            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO_EN))
-#define DIR1            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO1_EN))
-#define OUT0           *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO_OUT))
-#define OUT1           *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO1_OUT))
-#define IN0            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO_READ))
-#define IN1            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO1_READ))
+#define DIR0            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO_EN))
+#define DIR1            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO1_EN))
+#define OUT0           *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO_OUT))
+#define OUT1           *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO1_OUT))
+#define IN0            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO_READ))
+#define IN1            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO1_READ))
 #define        I2C_INIT        {OUT1|=SDA;OUT0|=SCL;}
 #define        I2C_READ        ((IN1&SDA)?1:0)
 #define        I2C_SDA(x)      {if(x)OUT1|=SDA;else OUT1&=~SDA;}
 #else /* open-collector */
 #define        SDA             0x00800000
 #define        SCL             0x00000008
-#define DIR0            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO_EN))
-#define DIR1            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO1_EN))
-#define OUT0           *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO_OUT))
-#define OUT1           *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO1_OUT))
-#define IN0            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO_READ))
-#define IN1            *((volatile ulong*)(CFG_MBAR2+MCFSIM_GPIO1_READ))
+#define DIR0            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO_EN))
+#define DIR1            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO1_EN))
+#define OUT0           *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO_OUT))
+#define OUT1           *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO1_OUT))
+#define IN0            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO_READ))
+#define IN1            *((volatile ulong*)(CONFIG_SYS_MBAR2+MCFSIM_GPIO1_READ))
 #define        I2C_INIT        {DIR1&=~SDA;DIR0&=~SCL;OUT1&=~SDA;OUT0&=~SCL;}
 #define        I2C_READ        ((IN1&SDA)?1:0)
 #define        I2C_SDA(x)      {if(x)DIR1&=~SDA;else DIR1|=SDA;}
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                0xFFC40000      /* Address of Environment Sector*/
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         16              /* SDRAM size in MB */
-#define CFG_FLASH_BASE         0xffc00000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          16              /* SDRAM size in MB */
+#define CONFIG_SYS_FLASH_BASE          0xffc00000
 
 #if 0 /* test-only */
 #define CONFIG_PRAM             512 /* test-only for SDRAM problem!!!!!!!!!!!!!!!!!!!! */
 #endif
 
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (1 * 1024*1024) /* Reserve 1 MB for malloc()    */
-#define CFG_BOOTPARAMS_LEN     64*1024
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (1 * 1024*1024) /* Reserve 1 MB for malloc()    */
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
  */
 
 /* CS0 - AMD Flash, address 0xffc00000 */
-#define        CFG_CSAR0               0xffc0
-#define        CFG_CSCR0               0x1980          /* WS=0110, AA=1, PS=10         */
+#define        CONFIG_SYS_CSAR0               0xffc0
+#define        CONFIG_SYS_CSCR0               0x1980          /* WS=0110, AA=1, PS=10         */
 /** Note: There is a CSMR0/DRAM vector problem, need to disable C/I ***/
-#define        CFG_CSMR0               0x003f0021      /* 4MB, AA=0, WP=0, C/I=1, V=1  */
+#define        CONFIG_SYS_CSMR0               0x003f0021      /* 4MB, AA=0, WP=0, C/I=1, V=1  */
 
 /* CS1 - FPGA, address 0xe0000000 */
-#define        CFG_CSAR1               0xe000
-#define        CFG_CSCR1               0x0d80          /* WS=0011, AA=1, PS=10         */
-#define        CFG_CSMR1               0x00010001      /* 128kB, AA=0, WP=0, C/I=0, V=1*/
+#define        CONFIG_SYS_CSAR1               0xe000
+#define        CONFIG_SYS_CSCR1               0x0d80          /* WS=0011, AA=1, PS=10         */
+#define        CONFIG_SYS_CSMR1               0x00010001      /* 128kB, AA=0, WP=0, C/I=0, V=1*/
 
 /*-----------------------------------------------------------------------
  * Port configuration
  */
-#define        CFG_GPIO_FUNC           0x00000008      /* Set gpio pins: none          */
-#define        CFG_GPIO1_FUNC          0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54*/
-#define        CFG_GPIO_EN             0x00000008      /* Set gpio output enable       */
-#define        CFG_GPIO1_EN            0x00c70000      /* Set gpio output enable       */
-#define        CFG_GPIO_OUT            0x00000008      /* Set outputs to default state */
-#define        CFG_GPIO1_OUT           0x00c70000      /* Set outputs to default state */
+#define        CONFIG_SYS_GPIO_FUNC           0x00000008      /* Set gpio pins: none          */
+#define        CONFIG_SYS_GPIO1_FUNC          0x00df00f0      /* 36-39(SWITCH),48-52(FPGAs),54*/
+#define        CONFIG_SYS_GPIO_EN             0x00000008      /* Set gpio output enable       */
+#define        CONFIG_SYS_GPIO1_EN            0x00c70000      /* Set gpio output enable       */
+#define        CONFIG_SYS_GPIO_OUT            0x00000008      /* Set outputs to default state */
+#define        CONFIG_SYS_GPIO1_OUT           0x00c70000      /* Set outputs to default state */
 
-#define CFG_GPIO1_LED           0x00400000      /* user led                     */
+#define CONFIG_SYS_GPIO1_LED           0x00400000      /* user led                     */
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      512*1024    /* 512kByte is enough for XC2S200*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       512*1024    /* 512kByte is enough for XC2S200*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x00010000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x00040000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x00020000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00080000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00100000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x00010000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x00040000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x00020000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00080000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00100000  /* FPGA done pin (ppc input)     */
 
 #endif /* _TASREG_H */
index e4e1367079076440517b09ff2a562ddecc65ad5d..60102469c52d99458f351ccb42f62616cfecbade 100644 (file)
@@ -37,7 +37,7 @@
 #define CONFIG_TQM5200         1       /* ... on TQM5200 module */
 #define CONFIG_TB5200          1       /* ... on a TB5200 base board */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -51,7 +51,7 @@
 #define CONFIG_SERIAL_MULTI    1       /* support multiple consoles */
 #define CONFIG_PSC_CONSOLE2    6       /* second console is on PSC6 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * Video console
@@ -66,7 +66,7 @@
 #define CONFIG_CONSOLE_EXTRA_INFO
 #define CONFIG_VIDEO_SW_CURSOR
 #define CONFIG_SPLASH_SCREEN
-#define CFG_CONSOLE_IS_IN_ENV
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #endif
 
 /* Partitions */
@@ -79,9 +79,9 @@
 #define CONFIG_USB_STORAGE
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_I2C)
 
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
 #define        CONFIG_TIMESTAMP                /* display image timestamps */
 
 #if (TEXT_BASE == 0xFC000000)          /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
-#if defined(CFG_IPBCLK_EQUALS_XLBCLK)
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
+ * CONFIG_SYS_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
  * of 66 MHz yet hasn't been tested with a IPB Bus Clock of 66 MHz.
  */
-#define CFG_PCICLK_EQUALS_IPBCLK_DIV2          /* define for 66MHz speed */
+#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2           /* define for 66MHz speed */
 #endif
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #2 */
 
 /*
  * I2C clock frequency
  * Please notice, that the resulting clock frequency could differ from the
  * configured value. This is because the I2C clock is derived from system
  * clock over a frequency divider with only a few divider values. U-boot
- * calculates the best approximation for CFG_I2C_SPEED. However the calculated
+ * calculates the best approximation for CONFIG_SYS_I2C_SPEED. However the calculated
  * approximation allways lies below the configured value, never above.
  */
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration for onboard EEPROM M24C32 (M24C64 should work
  * EEPROM (24C64) is on the same I2C address (but on other I2C bus), so the
  * same configuration could be used.
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 
 /* List of I2C addresses to be verified by POST */
 #undef I2C_ADDR_LIST
-#define I2C_ADDR_LIST  {       CFG_I2C_EEPROM_ADDR,    \
-                               CFG_I2C_RTC_ADDR,       \
-                               CFG_I2C_SLAVE }
+#define I2C_ADDR_LIST  {       CONFIG_SYS_I2C_EEPROM_ADDR,     \
+                               CONFIG_SYS_I2C_RTC_ADDR,        \
+                               CONFIG_SYS_I2C_SLAVE }
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         TEXT_BASE /* 0xFC000000 */
+#define CONFIG_SYS_FLASH_BASE          TEXT_BASE /* 0xFC000000 */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_BOOTCS_START }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_SIZE         0x04000000 /* 64 MByte */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-
-#if !defined(CFG_LOWBOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00760000 + 0x00800000)
-#else  /* CFG_LOWBOOT */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_BOOTCS_START }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_SIZE          0x04000000 /* 64 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+
+#if !defined(CONFIG_SYS_LOWBOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00760000 + 0x00800000)
+#else  /* CONFIG_SYS_LOWBOOT */
 #if defined(CONFIG_TQM5200_B)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00080000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00080000)
 #else
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00060000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00060000)
 #endif /* CONFIG_TQM5200_B */
-#endif /* CFG_LOWBOOT */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#endif /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
 
 /* Dynamic MTD partition support */
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
 #if defined(CONFIG_TQM5200_B)
-#define CFG_MONITOR_LEN                (512 << 10)     /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor   */
 #else
-#define CFG_MONITOR_LEN                (384 << 10)     /* Reserve 384 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (384 << 10)     /* Reserve 384 kB for Monitor   */
 #endif /* CONFIG_TQM5200_B */
-#define CFG_MALLOC_LEN         (1024 << 10)    /* Reserve 1024 kB for malloc() */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MALLOC_LEN          (1024 << 10)    /* Reserve 1024 kB for malloc() */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  *   GPIO on PSC6_3 is used in post_hotkeys_pressed() to enable extended POST
  *   tests.
  */
-#define CFG_GPS_PORT_CONFIG    0x81500114
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x81500114
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_M41T11      1
-#define CFG_I2C_RTC_ADDR       0x68
-#define CFG_M41T11_BASE_YEAR   1900    /* because Linux uses the same base
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
+#define CONFIG_SYS_M41T11_BASE_YEAR    1900    /* because Linux uses the same base
                                           year */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * Enable loopw command.
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#ifdef CFG_PCICLK_EQUALS_IPBCLK_DIV2
-#define CFG_BOOTCS_CFG         0x0008DF30 /* for pci_clk  = 66 MHz */
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
+#define CONFIG_SYS_BOOTCS_CFG          0x0008DF30 /* for pci_clk  = 66 MHz */
 #else
-#define CFG_BOOTCS_CFG         0x0004DF30 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_BOOTCS_CFG          0x0004DF30 /* for pci_clk = 33 MHz */
 #endif
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 #define CONFIG_LAST_STAGE_INIT
 
  * SRAM - Do not map below 2 GB in address space, because this area is used
  * for SDRAM autosizing.
  */
-#define CFG_CS2_START          0xE5000000
-#define CFG_CS2_SIZE           0x100000        /* 1 MByte */
-#define CFG_CS2_CFG            0x0004D930
+#define CONFIG_SYS_CS2_START           0xE5000000
+#define CONFIG_SYS_CS2_SIZE            0x100000        /* 1 MByte */
+#define CONFIG_SYS_CS2_CFG             0x0004D930
 
 /*
  * Grafic controller - Do not map below 2 GB in address space, because this
  * area is used for SDRAM autosizing.
  */
 #define SM501_FB_BASE          0xE0000000
-#define CFG_CS1_START          (SM501_FB_BASE)
-#define CFG_CS1_SIZE           0x4000000       /* 64 MByte */
-#define CFG_CS1_CFG            0x8F48FF70
-#define SM501_MMIO_BASE                CFG_CS1_START + 0x03E00000
+#define CONFIG_SYS_CS1_START           (SM501_FB_BASE)
+#define CONFIG_SYS_CS1_SIZE            0x4000000       /* 64 MByte */
+#define CONFIG_SYS_CS1_CFG             0x8F48FF70
+#define SM501_MMIO_BASE                CONFIG_SYS_CS1_START + 0x03E00000
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333311      /* 1 dead cycle for flash and SM501 */
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333311      /* 1 dead cycle for flash and SM501 */
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define CONFIG_IDE_RESET               /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 2 drives per IDE bus    */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                               */
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #endif /* __CONFIG_H */
index 2efc10a6cf9dea28576b416fec261783e1b00a5e..14ff62c52f4228e6378b16d5b5fe7fcc387758b7 100644 (file)
@@ -41,8 +41,8 @@
 #define CONFIG_TK885D          1       /* ...in a TK885D base board    */
 
 #define CONFIG_8xx_OSCLK               10000000        /*  10 MHz - PLL input clock    */
-#define CFG_8xx_CPUCLK_MIN             15000000        /*  15 MHz - CPU minimum clock  */
-#define CFG_8xx_CPUCLK_MAX             133000000       /* 133 MHz - CPU maximum clock  */
+#define CONFIG_SYS_8xx_CPUCLK_MIN              15000000        /*  15 MHz - CPU minimum clock  */
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000       /* 133 MHz - CPU maximum clock  */
 #define CONFIG_8xx_CPUCLK_DEFAULT      66000000        /*  66 MHz - CPU default clock  */
                                                /* (it will be used if there is no      */
                                                /* 'cpuclk' variable with valid value)  */
@@ -92,7 +92,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
 #define I2C_DELAY      udelay(2)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x50            /* EEPROM AT24C??       */
-#define CFG_I2C_EEPROM_ADDR_LEN 2              /* two byte address     */
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* EEPROM AT24C??       */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2               /* two byte address     */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 # define CONFIG_RTC_DS1337 1
-# define CFG_I2C_RTC_ADDR 0x68
+# define CONFIG_SYS_I2C_RTC_ADDR 0x68
 
 /*
  * BOOTP options
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0300000       /* 1 ... 3 MB in DRAM   */
-#define CFG_ALT_MEMTEST                                /* alternate, more extensive
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0300000       /* 1 ... 3 MB in DRAM   */
+#define CONFIG_SYS_ALT_MEMTEST                         /* alternate, more extensive
                                                   memory test.*/
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Enable loopw command.
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x40000 /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing: Default value of OR0 after reset
  */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM | OR_ACS_MSK | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM | OR_ACS_MSK | OR_BI | \
                                 OR_SCY_6_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define SDRAM_MAX_SIZE         (256 << 20)     /* max 256 MB per bank  */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_OR3_PRELIM CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define CFG_CAN_BASE           0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 4   Number of refresh cycles per period
  * 64  Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK        ((4096 * 64 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 64 * 1000) / (4 * 64))
 
 /*
  * Periodic timer (MAMR[PTx]) for 4 * 7.8 us refresh (= 31.2 us per quad)
  *
  *                        CPUclock(MHz) * 31.2
- * CFG_MAMR_PTA = -----------------------------------     with DFBRG = 0
+ * CONFIG_SYS_MAMR_PTA = -----------------------------------     with DFBRG = 0
  *                2^(2*SCCR[DFBRG]) * MPTPR_PTP_DIV16
  *
- * CPU clock =  15 MHz:  CFG_MAMR_PTA =  29   ->  4 * 7.73 us
- * CPU clock =  50 MHz:  CFG_MAMR_PTA =  97   ->  4 * 7.76 us
- * CPU clock =  66 MHz:  CFG_MAMR_PTA = 128   ->  4 * 7.75 us
- * CPU clock = 133 MHz:  CFG_MAMR_PTA = 255   ->  4 * 7.67 us
+ * CPU clock =  15 MHz:  CONFIG_SYS_MAMR_PTA =  29   ->  4 * 7.73 us
+ * CPU clock =  50 MHz:  CONFIG_SYS_MAMR_PTA =  97   ->  4 * 7.76 us
+ * CPU clock =  66 MHz:  CONFIG_SYS_MAMR_PTA = 128   ->  4 * 7.75 us
+ * CPU clock = 133 MHz:  CONFIG_SYS_MAMR_PTA = 255   ->  4 * 7.67 us
  *
  * Value 97 is for 4 * 7.8 us at 50 MHz. So the refresh cycle requirement will
  * be met also in the default configuration, i.e. if environment variable
  * 'cpuclk' is not set.
  */
-#define CFG_MAMR_PTA           128
+#define CONFIG_SYS_MAMR_PTA            128
 
 /*
  * Memory Periodic Timer Prescaler Register (MPTPR) values.
  */
 /* 4 * 7.8 us refresh (= 31.2 us per quad) at 50 MHz and PTA = 97 */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16
 /* 4 * 3.9 us refresh (= 15.6 us per quad) at 50 MHz and PTA = 97 */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 10 column SDRAM */
-#define CFG_MAMR_10COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_10COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_2 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A9  |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 
 #define CONFIG_LAST_STAGE_INIT         1 /* Have to configure PHYs for Linux */
 
-/* CFG_DISCOVER_PHY only works with FEC if only one interface is enabled */
+/* CONFIG_SYS_DISCOVER_PHY only works with FEC if only one interface is enabled */
 #if (!defined(CONFIG_ETHER_ON_FEC1) || !defined(CONFIG_ETHER_ON_FEC2))
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #endif
 
-#ifndef CFG_DISCOVER_PHY
+#ifndef CONFIG_SYS_DISCOVER_PHY
 /* PHY addresses - hard wired in hardware */
 #define CONFIG_FEC1_PHY        1
 #define CONFIG_FEC2_PHY        2
index 38183686a94a1f2766407bab5f06dd68ff40f1af..046948e74600c5a265f407c4e68bb711b2328388 100644 (file)
@@ -45,7 +45,7 @@
 #define CONFIG_MPC5200         1       /* More exactly a MPC5200 */
 #define CONFIG_TOP5200         1       /* ... on TOP5200 board - we need this for FEC.C */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -57,7 +57,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                9600    /* ... at 9600 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 
 #if defined (CONFIG_EVAL5200) || defined (CONFIG_LITE5200)
  * MUST be low boot - HIGHBOOT is not supported anymore
  */
 #if (TEXT_BASE == 0xFF000000)          /* Boot low with 16 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT16       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT16        1
 #else
 #   error "TEXT_BASE must be 0xff000000"
 #endif
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 
 /*
  * I2C configuration
 /*
  * EEPROM configuration
  */
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_EEPROM_SIZE 0x2000
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_EEPROM_SIZE 0x2000
 
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_MISC_INIT_R
 #if defined (CONFIG_SOFT_I2C)
 #  define SDA0                 0x40
 #  define SCL0                 0x80
-#  define GPIOE0               *((volatile uchar*)(CFG_MBAR+0x0c00))
-#  define DDR0                 *((volatile uchar*)(CFG_MBAR+0x0c08))
-#  define DVO0                 *((volatile uchar*)(CFG_MBAR+0x0c0c))
-#  define DVI0                 *((volatile uchar*)(CFG_MBAR+0x0c20))
-#  define ODE0                 *((volatile uchar*)(CFG_MBAR+0x0c04))
+#  define GPIOE0               *((volatile uchar*)(CONFIG_SYS_MBAR+0x0c00))
+#  define DDR0                 *((volatile uchar*)(CONFIG_SYS_MBAR+0x0c08))
+#  define DVO0                 *((volatile uchar*)(CONFIG_SYS_MBAR+0x0c0c))
+#  define DVI0                 *((volatile uchar*)(CONFIG_SYS_MBAR+0x0c20))
+#  define ODE0                 *((volatile uchar*)(CONFIG_SYS_MBAR+0x0c04))
 #  define I2C_INIT             {GPIOE0|=(SDA0|SCL0);ODE0|=(SDA0|SCL0);DVO0|=(SDA0|SCL0);DDR0|=(SDA0|SCL0);}
 #  define I2C_READ             ((DVI0&SDA0)?1:0)
 #  define I2C_SDA(x)   {if(x)DVO0|=SDA0;else DVO0&=~SDA0;}
 #  define I2C_DELAY            {udelay(5);}
 #  define I2C_ACTIVE   {DDR0|=SDA0;}
 #  define I2C_TRISTATE {DDR0&=~SDA0;}
-#  define CFG_I2C_SPEED                100000
-#  define CFG_I2C_SLAVE                0x7F
-#define CFG_I2C_EEPROM_ADDR 0x57
-#define CFG_I2C_FACT_ADDR      0x57
+#  define CONFIG_SYS_I2C_SPEED         100000
+#  define CONFIG_SYS_I2C_SLAVE         0x7F
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x57
+#define CONFIG_SYS_I2C_FACT_ADDR       0x57
 #endif
 
 #if defined (CONFIG_HARD_I2C)
-#  define CFG_I2C_MODULE       2               /* Select I2C module #1 or #2 */
-#  define CFG_I2C_SPEED                100000  /* 100 kHz */
-#  define CFG_I2C_SLAVE                0x7F
-#define CFG_I2C_EEPROM_ADDR 0x54
-#define CFG_I2C_FACT_ADDR      0x54
+#  define CONFIG_SYS_I2C_MODULE        2               /* Select I2C module #1 or #2 */
+#  define CONFIG_SYS_I2C_SPEED         100000  /* 100 kHz */
+#  define CONFIG_SYS_I2C_SLAVE         0x7F
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x54
+#define CONFIG_SYS_I2C_FACT_ADDR       0x54
 #endif
 
 /*
  * Flash configuration, expect one 16 Megabyte Bank at most
  */
-#define CFG_FLASH_BASE         0xff000000
-#define CFG_FLASH_SIZE         0x01000000
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0)
+#define CONFIG_SYS_FLASH_BASE          0xff000000
+#define CONFIG_SYS_FLASH_SIZE          0x01000000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0)
 
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #undef CONFIG_FLASH_16BIT      /* Flash is 8-bit */
 
  */
 #if 0
 /* 2x MT48LC16M16A2 - 7.0 ns SDRAMS = 64 MegaBytes Total */
-#define        CFG_DRAM_DDR            0
-#define CFG_DRAM_EMODE         0
-#define CFG_DRAM_MODE          0x008D
-#define CFG_DRAM_CONTROL       0x514F0000
-#define CFG_DRAM_CONFIG1       0xC2233A00
-#define CFG_DRAM_CONFIG2       0x88B70004
-#define        CFG_DRAM_TAP_DEL        0x08
-#define CFG_DRAM_RAM_SIZE      0x19
+#define        CONFIG_SYS_DRAM_DDR             0
+#define CONFIG_SYS_DRAM_EMODE          0
+#define CONFIG_SYS_DRAM_MODE           0x008D
+#define CONFIG_SYS_DRAM_CONTROL        0x514F0000
+#define CONFIG_SYS_DRAM_CONFIG1        0xC2233A00
+#define CONFIG_SYS_DRAM_CONFIG2        0x88B70004
+#define        CONFIG_SYS_DRAM_TAP_DEL 0x08
+#define CONFIG_SYS_DRAM_RAM_SIZE       0x19
 #endif
 #if 1
 /* 2x MT48LC16M16A2 - 7.5 ns SDRAMS = 64 MegaBytes Total */
-#define        CFG_DRAM_DDR            0
-#define CFG_DRAM_EMODE         0
-#define CFG_DRAM_MODE          0x00CD
-#define CFG_DRAM_CONTROL       0x514F0000
-#define CFG_DRAM_CONFIG1       0xD2333A00
-#define CFG_DRAM_CONFIG2       0x8AD70004
-#define        CFG_DRAM_TAP_DEL        0x08
-#define CFG_DRAM_RAM_SIZE      0x19
+#define        CONFIG_SYS_DRAM_DDR             0
+#define CONFIG_SYS_DRAM_EMODE          0
+#define CONFIG_SYS_DRAM_MODE           0x00CD
+#define CONFIG_SYS_DRAM_CONTROL        0x514F0000
+#define CONFIG_SYS_DRAM_CONFIG1        0xD2333A00
+#define CONFIG_SYS_DRAM_CONFIG2        0x8AD70004
+#define        CONFIG_SYS_DRAM_TAP_DEL 0x08
+#define CONFIG_SYS_DRAM_RAM_SIZE       0x19
 #endif
 
 /*
 /*
  * VPD settings
  */
-#define CFG_FACT_OFFSET                0x1800
-#define CFG_FACT_SIZE          0x0800
+#define CONFIG_SYS_FACT_OFFSET         0x1800
+#define CONFIG_SYS_FACT_SIZE           0x0800
 
 /*
  * Memory map
  *
  * Warning!!! with the current BestComm Task, MBAR MUST BE set to 0xf0000000
  */
-#define CFG_MBAR                       0xf0000000      /* DO NOT CHANGE this */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                        0xf0000000      /* DO NOT CHANGE this */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  * PCI disabled
  * Ethernet 100 with MD
  */
-#define CFG_GPS_PORT_CONFIG    0x00058044
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x00058044
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE           1024    /* Console I/O Buffer Size  */
+#  define CONFIG_SYS_CBSIZE            1024    /* Console I/O Buffer Size  */
 #else
-#  define CFG_CBSIZE           256     /* Console I/O Buffer Size  */
+#  define CONFIG_SYS_CBSIZE            256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x01f00000      /* 1 ... 31 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x01f00000      /* 1 ... 31 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
   #define CONFIG_RTC_MK48T59   1       /* use M48T08 on EVAL5200 */
   #define RTC(reg)             (0xf0010000+reg)
   /* setup CS2 for M48T08. Must MAP 64kB */
-  #define CFG_CS2_START        RTC(0)
-  #define CFG_CS2_SIZE 0x10000
+  #define CONFIG_SYS_CS2_START RTC(0)
+  #define CONFIG_SYS_CS2_SIZE  0x10000
   /* setup CS2 configuration register: */
   /* WaitP = 0, WaitX = 4, MX=0, AL=1, AA=1, CE=1 */
   /* AS=2, DS=0, Bank=0, WTyp=0, WS=0, RS=0, WO=0, RO=0 */
-  #define CFG_CS2_CFG  0x00047800
+  #define CONFIG_SYS_CS2_CFG   0x00047800
 #else
   #define CONFIG_RTC_MPC5200   1       /* use internal MPC5200 RTC */
 #endif
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047801
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047801
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0x7f000000
+#define CONFIG_SYS_RESET_ADDRESS       0x7f000000
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff Supports IDE harddisk
 #define CONFIG_IDE_RESET       1
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005c)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005c)
 
 /* Interval between registers                                                */
-#define CFG_ATA_STRIDE          4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #endif /* __CONFIG_H */
index b2708321705985faea7905a8654ad935e5bf3890..8c2befbf00cd04f1e9f4736e5409e9a7e8364ed5 100644 (file)
@@ -60,7 +60,7 @@
  * CLOCK settings
  */
 #define        CONFIG_SYSCLK   49152000
-#define        CFG_XTAL                32768
+#define        CONFIG_SYS_XTAL         32768
 #define        CONFIG_EBDF             1
 #define        CONFIG_COM              3
 #define        CONFIG_RTC_MPC8xx
 /*-----------------------------------------------------------------------
  * Physical memory map as defined by EMK
  */
-#define CFG_IMMR               0xFFF00000      /* Internal Memory Mapped Register */
-#define        CFG_FLASH_BASE  0x80000000      /* FLASH in final mapping */
-#define        CFG_DRAM_BASE   0x00000000      /* DRAM in final mapping */
-#define        CFG_FLASH_MAX   0x00400000      /* max FLASH to expect */
-#define        CFG_DRAM_MAX    0x01000000      /* max DRAM to expect */
+#define CONFIG_SYS_IMMR                0xFFF00000      /* Internal Memory Mapped Register */
+#define        CONFIG_SYS_FLASH_BASE   0x80000000      /* FLASH in final mapping */
+#define        CONFIG_SYS_DRAM_BASE    0x00000000      /* DRAM in final mapping */
+#define        CONFIG_SYS_FLASH_MAX    0x00400000      /* max FLASH to expect */
+#define        CONFIG_SYS_DRAM_MAX     0x01000000      /* max DRAM to expect */
 
 /*-----------------------------------------------------------------------
  * derived values
  */
-#define        CFG_MF                  (CONFIG_SYSCLK/CFG_XTAL)
-#define        CFG_CPUCLOCK    CONFIG_SYSCLK
-#define        CFG_BRGCLOCK    CONFIG_SYSCLK
-#define        CFG_BUSCLOCK    (CONFIG_SYSCLK >> CONFIG_EBDF)
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_MF                   (CONFIG_SYSCLK/CONFIG_SYS_XTAL)
+#define        CONFIG_SYS_CPUCLOCK     CONFIG_SYSCLK
+#define        CONFIG_SYS_BRGCLOCK     CONFIG_SYSCLK
+#define        CONFIG_SYS_BUSCLOCK     (CONFIG_SYSCLK >> CONFIG_EBDF)
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 #define        CONFIG_8xx_GCLK_FREQ    CONFIG_SYSCLK
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define        CFG_FLASH_CFI
+#define        CONFIG_SYS_FLASH_CFI
 
 /*-----------------------------------------------------------------------
  * Command interpreter
 /*
  * Allow partial commands to be matched to uniqueness.
  */
-#define CFG_MATCH_PARTIAL_CMD
+#define CONFIG_SYS_MATCH_PARTIAL_CMD
 
 
 /*
 
 
 #define        CONFIG_AUTOSCRIPT               1
-#define        CFG_LOADS_BAUD_CHANGE   1
+#define        CONFIG_SYS_LOADS_BAUD_CHANGE    1
 #undef CONFIG_LOADS_ECHO                       /* NO echo on for serial download       */
 
 
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* Hush parse for U-Boot        */
+#undef CONFIG_SYS_HUSH_PARSER                  /* Hush parse for U-Boot        */
 
-#ifdef CFG_HUSH_PARSER
- #define CFG_PROMPT_HUSH_PS2   "> "
+#ifdef CONFIG_SYS_HUSH_PARSER
+ #define CONFIG_SYS_PROMPT_HUSH_PS2    "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
- #define CFG_CBSIZE    1024            /* Console I/O Buffer Size      */
+ #define CONFIG_SYS_CBSIZE     1024            /* Console I/O Buffer Size      */
 #else
- #define CFG_CBSIZE    256             /* Console I/O Buffer Size      */
+ #define CONFIG_SYS_CBSIZE     256             /* Console I/O Buffer Size      */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /*-----------------------------------------------------------------------
  * Memory Test Command
  */
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /*-----------------------------------------------------------------------
  * Environment handler
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* turn on EEPROM env feature */
 #define CONFIG_ENV_OFFSET              0x1000
 #define CONFIG_ENV_SIZE                0x0700
-#define CFG_I2C_EEPROM_ADDR 0x57
-#define CFG_FACT_OFFSET                0x1800
-#define CFG_FACT_SIZE          0x0800
-#define CFG_I2C_FACT_ADDR      0x57
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_EEPROM_SIZE 0x2000
-#define        CFG_I2C_SPEED   100000
-#define        CFG_I2C_SLAVE   0xFE
-#define        CFG_EEPROM_PAGE_WRITE_DELAY_MS 12
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x57
+#define CONFIG_SYS_FACT_OFFSET         0x1800
+#define CONFIG_SYS_FACT_SIZE           0x0800
+#define CONFIG_SYS_I2C_FACT_ADDR       0x57
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_EEPROM_SIZE 0x2000
+#define        CONFIG_SYS_I2C_SPEED    100000
+#define        CONFIG_SYS_I2C_SLAVE    0xFE
+#define        CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 12
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_MISC_INIT_R
 
 #define        I2C_TRISTATE    { __I2C_DIR &= ~SDA; }
 #endif
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*-----------------------------------------------------------------------
  * defines we need to get FEC running
 #define        CONFIG_NET_MULTI        1       /* the only way to get the FEC in */
 #define CONFIG_FEC_ENET                1       /* Ethernet only via FEC        */
 #define        FEC_ENET                1       /* eth.c needs it that way... */
-#define CFG_DISCOVER_PHY       1
+#define CONFIG_SYS_DISCOVER_PHY        1
 #define CONFIG_MII             1
 #define CONFIG_MII_INIT                1
 #define CONFIG_PHY_ADDR                31
 /*-----------------------------------------------------------------------
  * adresses
  */
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x80000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x80000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2f00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_VPD_SIZE      256 /* size in bytes reserved for vpd buffer */
-#define CFG_INIT_VPD_OFFSET    (CFG_GBL_DATA_OFFSET - CFG_INIT_VPD_SIZE)
-#define CFG_INIT_SP_OFFSET     (CFG_INIT_VPD_OFFSET-8)
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2f00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_VPD_SIZE       256 /* size in bytes reserved for vpd buffer */
+#define CONFIG_SYS_INIT_VPD_OFFSET     (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_INIT_VPD_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_INIT_VPD_OFFSET-8)
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /* Interrupt level assignments.
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0                                      /* used in start.S */
+#define CONFIG_SYS_DER 0                                       /* used in start.S */
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  *     1       FIOPD   0                       Force I/O pull down
  *     5       0               00000
  */
-#define CFG_PLPRCR     (PLPRCR_TEXPS | ((CFG_MF-1)<<20))
+#define CONFIG_SYS_PLPRCR      (PLPRCR_TEXPS | ((CONFIG_SYS_MF-1)<<20))
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                           11-9
  *     1       SWP             0/1                     Software watchdog prescale (1=/2048)
  */
 #if defined (CONFIG_WATCHDOG)
- #define CFG_SYPCR     (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+ #define CONFIG_SYS_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
- #define CFG_SYPCR     (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
+ #define CONFIG_SYS_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF)
 #endif
 
 /*-----------------------------------------------------------------------
  *     1       B3DD    0                       Bank 3 double drive
  *     4       0               0000
  */
-#define CFG_SIUMCR     (SIUMCR_MLRC11)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_MLRC11)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF | PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF | PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      0
 #ifdef CONFIG_EBDF
- #define CFG_SCCR      (SCCR_COM11 | SCCR_TBS | SCCR_EBDF01)
+ #define CONFIG_SYS_SCCR       (SCCR_COM11 | SCCR_TBS | SCCR_EBDF01)
 #else
- #define CFG_SCCR      (SCCR_COM11 | SCCR_TBS)
+ #define CONFIG_SYS_SCCR       (SCCR_COM11 | SCCR_TBS)
 #endif
 
 /*-----------------------------------------------------------------------
  * Preliminary Values
  */
 /* FLASH timing: CSNT=1 ACS=10 BIH=1 SCY=4 SETA=0 TLRX=1 EHTR=1        */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_4_CLK | OR_TRLX | OR_EHTR)
-#define CFG_OR0_PRELIM (-CFG_FLASH_MAX | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM (CFG_FLASH_BASE | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV4 | OR_BI | OR_SCY_4_CLK | OR_TRLX | OR_EHTR)
+#define CONFIG_SYS_OR0_PRELIM  (-CONFIG_SYS_FLASH_MAX | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  (CONFIG_SYS_FLASH_BASE | BR_PS_16 | BR_V )
 
 /*-----------------------------------------------------------------------
  * misc
 /*-----------------------------------------------------------------------
  * Defaults for Autoscript
  */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address */
-#define        CFG_TFTP_LOADADDR       0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address */
+#define        CONFIG_SYS_TFTP_LOADADDR        0x00100000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 
 #endif /* __CONFIG_H */
index 2cc215ab0103fe1853ba7d48ae22150cc86df4a2..db7f51d4e7a76233cae5865105610993f4ca1740 100644 (file)
@@ -42,7 +42,7 @@
 #define CONFIG_STK52XX         1       /* ... on a STK52XX board               */
 #endif
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz         */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz         */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH     */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                      */
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1                   */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps                    */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 #define CONFIG_BOOTCOUNT_LIMIT 1
 
 #ifdef CONFIG_FO300
-#define CFG_DEVICE_NULLDEV             1       /* enable null device */
+#define CONFIG_SYS_DEVICE_NULLDEV              1       /* enable null device */
 #define CONFIG_SILENT_CONSOLE          1       /* enable silent startup */
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* used to detect S1 switch position */
 #define CONFIG_USB_BIN_FIXUP           1       /* for a buggy USB device */
@@ -75,7 +75,7 @@
 #define CONFIG_PS2KBD                  /* AT-PS/2 Keyboard             */
 #define CONFIG_PS2MULT                 /* .. on PS/2 Multiplexer       */
 #define CONFIG_PS2SERIAL       6       /* .. on PSC6                   */
-#define CONFIG_PS2MULT_DELAY   (CFG_HZ/2)      /* Initial delay        */
+#define CONFIG_PS2MULT_DELAY   (CONFIG_SYS_HZ/2)       /* Initial delay        */
 #define CONFIG_BOARD_EARLY_INIT_R
 #endif /* CONFIG_STK52XX */
 
@@ -99,7 +99,7 @@
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 #endif /* CONFIG_STK52XX */
 
 #define CONFIG_VGA_AS_SINGLE_DEVICE
 #define CONFIG_VIDEO_SW_CURSOR
 #define CONFIG_SPLASH_SCREEN
-#define CFG_CONSOLE_IS_IN_ENV
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #endif /* #ifndef CONFIG_TQM5200S */
 
 
 /* USB */
 #if defined(CONFIG_STK52XX) || defined(CONFIG_FO300)
 #define CONFIG_USB_OHCI_NEW
-#define CFG_OHCI_BE_CONTROLLER
+#define CONFIG_SYS_OHCI_BE_CONTROLLER
 #define CONFIG_USB_STORAGE
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_USB
 
-#undef CFG_USB_OHCI_BOARD_INIT
-#define CFG_USB_OHCI_CPU_INIT
-#define CFG_USB_OHCI_REGS_BASE MPC5XXX_USB
-#define CFG_USB_OHCI_SLOT_NAME "mpc5200"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
+#undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#define CONFIG_SYS_USB_OHCI_CPU_INIT
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  MPC5XXX_USB
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "mpc5200"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
 
 #endif
 
 #ifndef CONFIG_CAM5200
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_I2C)
 #endif
 
 #ifdef CONFIG_POST
 #define        CONFIG_TIMESTAMP                /* display image timestamps */
 
 #if (TEXT_BASE != 0xFFF00000)
-#   define CFG_LOWBOOT         1       /* Boot low */
+#   define CONFIG_SYS_LOWBOOT          1       /* Boot low */
 #endif
 
 /*
 
 #undef CONFIG_BOOTARGS
 
-#if defined(CONFIG_TQM5200_B) && !defined(CFG_LOWBOOT)
+#if defined(CONFIG_TQM5200_B) && !defined(CONFIG_SYS_LOWBOOT)
 # define ENV_UPDT                                                      \
        "update=protect off FFF00000 +${filesize};"                     \
                "erase FFF00000 +${filesize};"                          \
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
-#if defined(CFG_IPBCLK_EQUALS_XLBCLK) && !defined(CONFIG_CAM5200)
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK) && !defined(CONFIG_CAM5200)
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock of
+ * CONFIG_SYS_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock of
  * 66 MHz yet hasn't been tested with a IPB Bus Clock of 66 MHz.
  */
-#define CFG_PCICLK_EQUALS_IPBCLK_DIV2  /* define for 66MHz speed */
+#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2   /* define for 66MHz speed */
 #endif
 
 /*
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
 #ifdef CONFIG_TQM5200_REV100
-#define CFG_I2C_MODULE         1       /* Select I2C module #1 for rev. 100 board */
+#define CONFIG_SYS_I2C_MODULE          1       /* Select I2C module #1 for rev. 100 board */
 #else
-#define CFG_I2C_MODULE         2       /* Select I2C module #2 for all other revs */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #2 for all other revs */
 #endif
 
 /*
  * Please notice, that the resulting clock frequency could differ from the
  * configured value. This is because the I2C clock is derived from system
  * clock over a frequency divider with only a few divider values. U-boot
- * calculates the best approximation for CFG_I2C_SPEED. However the calculated
+ * calculates the best approximation for CONFIG_SYS_I2C_SPEED. However the calculated
  * approximation allways lies below the configured value, never above.
  */
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration for onboard EEPROM M24C32 (M24C64 should work
  * EEPROM (24C64) is on the same I2C address (but on other I2C bus), so the
  * same configuration could be used.
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 
 /*
  * HW-Monitor configuration on Mini-FAP
  */
 #if defined (CONFIG_MINIFAP)
-#define CFG_I2C_HWMON_ADDR             0x2C
+#define CONFIG_SYS_I2C_HWMON_ADDR              0x2C
 #endif
 
 /* List of I2C addresses to be verified by POST */
 #if defined (CONFIG_MINIFAP)
 #undef I2C_ADDR_LIST
-#define I2C_ADDR_LIST  {       CFG_I2C_EEPROM_ADDR,    \
-                               CFG_I2C_HWMON_ADDR,     \
-                               CFG_I2C_SLAVE }
+#define I2C_ADDR_LIST  {       CONFIG_SYS_I2C_EEPROM_ADDR,     \
+                               CONFIG_SYS_I2C_HWMON_ADDR,      \
+                               CONFIG_SYS_I2C_SLAVE }
 #endif
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFC000000
+#define CONFIG_SYS_FLASH_BASE          0xFC000000
 
 #if defined(CONFIG_CAM5200) && defined(CONFIG_CAM5200_NIOSFLASH)
-#define CFG_MAX_FLASH_BANKS    2       /* max num of flash banks
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_FLASH_WORD_SIZE    unsigned int /* main flash device with */
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
-
-#define CFG_FLASH_ADDR0                0x555
-#define CFG_FLASH_ADDR1                0x2AA
-#define CFG_FLASH_2ND_16BIT_DEV        1       /* NIOS flash is a 16bit device */
-#define CFG_MAX_FLASH_SECT     128
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned int /* main flash device with */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
+
+#define CONFIG_SYS_FLASH_ADDR0         0x555
+#define CONFIG_SYS_FLASH_ADDR1         0x2AA
+#define CONFIG_SYS_FLASH_2ND_16BIT_DEV 1       /* NIOS flash is a 16bit device */
+#define CONFIG_SYS_MAX_FLASH_SECT      128
 #else
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_BOOTCS_START }
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_BOOTCS_START }
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
 #endif
 
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_SIZE         0x04000000 /* 64 MByte */
-#define CFG_FLASH_USE_BUFFER_WRITE     1
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_SIZE          0x04000000 /* 64 MByte */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
 
 #if defined (CONFIG_CAM5200)
-# define CONFIG_ENV_ADDR               (CFG_FLASH_BASE + 0x00040000)
+# define CONFIG_ENV_ADDR               (CONFIG_SYS_FLASH_BASE + 0x00040000)
 #elif defined(CONFIG_TQM5200_B)
-# define CONFIG_ENV_ADDR               (CFG_FLASH_BASE + 0x00080000)
+# define CONFIG_ENV_ADDR               (CONFIG_SYS_FLASH_BASE + 0x00080000)
 #else
-# define CONFIG_ENV_ADDR               (CFG_FLASH_BASE + 0x00060000)
+# define CONFIG_ENV_ADDR               (CONFIG_SYS_FLASH_BASE + 0x00060000)
 #endif
 
 /* Dynamic MTD partition support */
 
 #ifdef CONFIG_STK52XX
 # if defined(CONFIG_TQM5200_B)
-#  if defined(CFG_LOWBOOT)
+#  if defined(CONFIG_SYS_LOWBOOT)
 #   define MTDPARTS_DEFAULT    "mtdparts=TQM5200-0:1m(firmware),"      \
                                                "256k(dtb),"            \
                                                "2304k(kernel),"        \
                                                "8m(misc),"             \
                                                "15m(big-fs),"          \
                                                "1m(firmware)"
-#  endif /* CFG_LOWBOOT */
+#  endif /* CONFIG_SYS_LOWBOOT */
 # else /* !CONFIG_TQM5200_B */
 #   define MTDPARTS_DEFAULT    "mtdparts=TQM5200-0:640k(firmware),"    \
                                                "128k(dtb),"            \
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
 #if defined (CONFIG_CAM5200)
-# define CFG_MONITOR_LEN       (256 << 10)     /* Reserve 256 kB for Monitor   */
+# define CONFIG_SYS_MONITOR_LEN        (256 << 10)     /* Reserve 256 kB for Monitor   */
 #elif defined(CONFIG_TQM5200_B)
-# define CFG_MONITOR_LEN       (512 << 10)     /* Reserve 512 kB for Monitor   */
+# define CONFIG_SYS_MONITOR_LEN        (512 << 10)     /* Reserve 512 kB for Monitor   */
 #else
-# define CFG_MONITOR_LEN       (384 << 10)     /* Reserve 384 kB for Monitor   */
+# define CONFIG_SYS_MONITOR_LEN        (384 << 10)     /* Reserve 384 kB for Monitor   */
 #endif
 
-#define CFG_MALLOC_LEN         (1024 << 10)    /* Reserve 1024 kB for malloc() */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MALLOC_LEN          (1024 << 10)    /* Reserve 1024 kB for malloc() */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  *      100 -> UART (on all boards).
  */
 #if defined (CONFIG_MINIFAP)
-# define CFG_GPS_PORT_CONFIG   0x91000004
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x91000004
 #elif defined (CONFIG_STK52XX)
 # if defined (CONFIG_STK52XX_REV100)
-#  define CFG_GPS_PORT_CONFIG  0x81500014
+#  define CONFIG_SYS_GPS_PORT_CONFIG   0x81500014
 # else /* STK52xx REV200 and above */
 #  if defined (CONFIG_TQM5200_REV100)
 #   error TQM5200 REV100 not supported on STK52XX REV200 or above
 #  else/* TQM5200 REV200 and above */
-#   define CFG_GPS_PORT_CONFIG 0x91500404
+#   define CONFIG_SYS_GPS_PORT_CONFIG  0x91500404
 #  endif
 # endif
 #elif defined (CONFIG_FO300)
-# define CFG_GPS_PORT_CONFIG   0x91502c24
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x91502c24
 #elif defined (CONFIG_CAM5200)
-# define CFG_GPS_PORT_CONFIG   0x8050A444
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x8050A444
 #else  /* TMQ5200 Inbetriebnahme-Board */
-# define CFG_GPS_PORT_CONFIG   0x81000004
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x81000004
 #endif
 
 /*
  */
 #if defined (CONFIG_STK52XX) && !defined (CONFIG_STK52XX_REV100)
 # define CONFIG_RTC_M41T11 1
-# define CFG_I2C_RTC_ADDR 0x68
-# define CFG_M41T11_BASE_YEAR  1900    /* because Linux uses the same base
+# define CONFIG_SYS_I2C_RTC_ADDR 0x68
+# define CONFIG_SYS_M41T11_BASE_YEAR   1900    /* because Linux uses the same base
                                           year */
 #else
 # define CONFIG_RTC_MPC5200    1       /* use internal MPC5200 RTC */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define        CONFIG_SYS_HUSH_PARSER          1       /* use "hush" command parser    */
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * Enable loopw command.
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#ifdef CFG_PCICLK_EQUALS_IPBCLK_DIV2
-#define CFG_BOOTCS_CFG         0x0008DF30 /* for pci_clk  = 66 MHz */
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
+#define CONFIG_SYS_BOOTCS_CFG          0x0008DF30 /* for pci_clk  = 66 MHz */
 #else
-#define CFG_BOOTCS_CFG         0x0004DF30 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_BOOTCS_CFG          0x0004DF30 /* for pci_clk = 33 MHz */
 #endif
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 #define CONFIG_LAST_STAGE_INIT
 
  * SRAM - Do not map below 2 GB in address space, because this area is used
  * for SDRAM autosizing.
  */
-#define CFG_CS2_START          0xE5000000
-#define CFG_CS2_SIZE           0x100000        /* 1 MByte */
-#define CFG_CS2_CFG            0x0004D930
+#define CONFIG_SYS_CS2_START           0xE5000000
+#define CONFIG_SYS_CS2_SIZE            0x100000        /* 1 MByte */
+#define CONFIG_SYS_CS2_CFG             0x0004D930
 
 /*
  * Grafic controller - Do not map below 2 GB in address space, because this
  * area is used for SDRAM autosizing.
  */
 #define SM501_FB_BASE          0xE0000000
-#define CFG_CS1_START          (SM501_FB_BASE)
-#define CFG_CS1_SIZE           0x4000000       /* 64 MByte */
-#define CFG_CS1_CFG            0x8F48FF70
-#define SM501_MMIO_BASE                CFG_CS1_START + 0x03E00000
+#define CONFIG_SYS_CS1_START           (SM501_FB_BASE)
+#define CONFIG_SYS_CS1_SIZE            0x4000000       /* 64 MByte */
+#define CONFIG_SYS_CS1_CFG             0x8F48FF70
+#define SM501_MMIO_BASE                CONFIG_SYS_CS1_START + 0x03E00000
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333311      /* 1 dead cycle for flash and SM501 */
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333311      /* 1 dead cycle for flash and SM501 */
 
 #if defined(CONFIG_CAM5200)
-#define CFG_CS4_START          0xB0000000
-#define CFG_CS4_SIZE           0x00010000
-#define CFG_CS4_CFG            0x01019C10
+#define CONFIG_SYS_CS4_START           0xB0000000
+#define CONFIG_SYS_CS4_SIZE            0x00010000
+#define CONFIG_SYS_CS4_CFG             0x01019C10
 
-#define CFG_CS5_START          0xD0000000
-#define CFG_CS5_SIZE           0x01208000
-#define CFG_CS5_CFG            0x1414BF10
+#define CONFIG_SYS_CS5_START           0xD0000000
+#define CONFIG_SYS_CS5_SIZE            0x01208000
+#define CONFIG_SYS_CS5_CFG             0x1414BF10
 #endif
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define CONFIG_IDE_RESET               /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 2 drives per IDE bus    */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                               */
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 /* Support ATAPI devices */
 #define CONFIG_ATAPI            1
index dc4582ff5b5def651d62d5bfa4aaa6c2e22a05bb..223269ff084f153be4fda6f148ef8acba024c6e2 100644 (file)
@@ -86,7 +86,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 7ea73427b9379af5b090491d1c243ee0ee627d04..aed5d5babe65d9c6f28535bfe7991e923e2b3a2a 100644 (file)
@@ -84,7 +84,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x40000 /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 2d54d2399f04a2aa03f8c7508f524513f73e9e26..54f4b3106abdf20058e58854b49eb0eefcdb2423 100644 (file)
@@ -93,8 +93,8 @@
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 #endif
 
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 #define CONFIG_I2C_X
 
  *  - RX clk is CLK11
  *  - TX clk is CLK12
  */
-# define CFG_CMXSCR_VALUE      (CMXSCR_RS1CS_CLK11 | CMXSCR_TS1CS_CLK12)
+# define CONFIG_SYS_CMXSCR_VALUE       (CMXSCR_RS1CS_CLK11 | CMXSCR_TS1CS_CLK12)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
 
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
 #endif /* CONFIG_MPC8255 */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END        0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR   0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR    0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_RESET_ADDRESS 0xFFFFFFFC    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFFFFFFFC     /* "bad" address                */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/tqm8260/config.mk
  * The main FLASH is whichever is connected to *CS0.
  */
-#define CFG_FLASH0_BASE 0x40000000
-#define CFG_FLASH1_BASE 0x60000000
-#define CFG_FLASH0_SIZE 32
-#define CFG_FLASH1_SIZE 32
+#define CONFIG_SYS_FLASH0_BASE 0x40000000
+#define CONFIG_SYS_FLASH1_BASE 0x60000000
+#define CONFIG_SYS_FLASH0_SIZE 32
+#define CONFIG_SYS_FLASH1_SIZE 32
 
 /* Flash bank size (for preliminary settings)
  */
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
+#define CONFIG_SYS_FLASH_SIZE CONFIG_SYS_FLASH0_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #if 0
 /* Start port with environment in flash; switch to EEPROM later */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+0x40000)
 #define CONFIG_ENV_SIZE                0x40000
 #define CONFIG_ENV_SECT_SIZE   0x40000
 #else
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #define        __HRCW__ALL__           (HRCW_CIP | HRCW_ISB111 | HRCW_BMS)
 
 #if defined(CONFIG_MPC8255) || defined(CONFIG_MPC8265)
-#  define CFG_HRCW_MASTER      (__HRCW__ALL__ | HRCW_MODCK_H0111)
+#  define CONFIG_SYS_HRCW_MASTER       (__HRCW__ALL__ | HRCW_MODCK_H0111)
 #else  /* ! MPC8255 && !MPC8265 */
 # if defined(CONFIG_266MHz)
-#  define CFG_HRCW_MASTER      (__HRCW__ALL__ | HRCW_MODCK_H0111)
+#  define CONFIG_SYS_HRCW_MASTER       (__HRCW__ALL__ | HRCW_MODCK_H0111)
 # elif defined(CONFIG_300MHz)
-#  define CFG_HRCW_MASTER      (__HRCW__ALL__ | HRCW_MODCK_H0110)
+#  define CONFIG_SYS_HRCW_MASTER       (__HRCW__ALL__ | HRCW_MODCK_H0110)
 # else
-#  define CFG_HRCW_MASTER      (__HRCW__ALL__)
+#  define CONFIG_SYS_HRCW_MASTER       (__HRCW__ALL__)
 # endif
 #endif /* CONFIG_MPC8255 */
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE, local SDRAM
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE, local SDRAM
  * is mapped at SDRAM_BASE2_PRELIM.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         CFG_FLASH0_BASE
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
 /*
  * Internal Definitions
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL  (HID0_IFEM|HID0_ABE)
-#define CFG_HID2        0
+#define CONFIG_SYS_HID0_FINAL  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
 #ifdef CONFIG_BUSMODE_60x
-#define CFG_BCR         (BCR_EBM|BCR_L2C|BCR_LETM|\
+#define CONFIG_SYS_BCR         (BCR_EBM|BCR_L2C|BCR_LETM|\
                         BCR_NPQM0|BCR_NPQM1|BCR_NPQM2) /* 60x mode  */
 #else
 #define BCR_APD01      0x10000000
-#define CFG_BCR                (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
+#define CONFIG_SYS_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  */
 #if 0
-#define CFG_SIUMCR      (SIUMCR_DPPC10|SIUMCR_APPC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC10|SIUMCR_APPC10)
 #else
-#define CFG_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC00|SIUMCR_APPC10)
 #endif
 
 
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR        0
+#define CONFIG_SYS_SCCR        0
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
 
        /* Initialize SDRAM on local bus
         */
-#define CFG_INIT_LOCAL_SDRAM
+#define CONFIG_SYS_INIT_LOCAL_SDRAM
 
 #define SDRAM_MAX_SIZE 0x08000000      /* max. 128 MB          */
 
 /* Minimum mask to separate preliminary
  * address ranges for CS[0:2]
  */
-#define CFG_GLOBAL_SDRAM_LIMIT (512<<20)       /* less than 512 MB */
-#define CFG_LOCAL_SDRAM_LIMIT  (128<<20)       /* less than 128 MB */
+#define CONFIG_SYS_GLOBAL_SDRAM_LIMIT  (512<<20)       /* less than 512 MB */
+#define CONFIG_SYS_LOCAL_SDRAM_LIMIT   (128<<20)       /* less than 128 MB */
 
-#define CFG_MPTPR       0x4000
+#define CONFIG_SYS_MPTPR       0x4000
 
 /*-----------------------------------------------------------------------------
  * Address for Mode Register Set (MRS) command
  *  Settings:              |  0  |  0    0  |  0  1  0  |  0  |   0  1  0    |
  *-----------------------------------------------------------------------------
  */
-#define CFG_MRS_OFFS   0x00000110
+#define CONFIG_SYS_MRS_OFFS    0x00000110
 
 
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH_SIZE)      |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 
 /* Bank 1 - 60x bus SDRAM
  */
-#define CFG_PSRT        0x20
-#define CFG_LSRT        0x20
-#ifndef CFG_RAMBOOT
-#define CFG_BR1_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_PSRT        0x20
+#define CONFIG_SYS_LSRT        0x20
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM CFG_OR1_8COL
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR1_8COL
 
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR1_8COL    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_8COL    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A7             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A15_IS_A5           |\
                         PSDMR_BSMA_A12_A14             |\
                         PSDMR_SDA10_PBI1_A8            |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR1_9COL    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_9COL    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A5             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_9COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A16_IS_A5           |\
                         PSDMR_BSMA_A12_A14             |\
                         PSDMR_SDA10_PBI1_A7            |\
 
 /* Bank 2 - Local bus SDRAM
  */
-#ifdef CFG_INIT_LOCAL_SDRAM
-#define CFG_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BRx_BA_MSK) |\
+#ifdef CONFIG_SYS_INIT_LOCAL_SDRAM
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_MS_SDRAM_L                 |\
                         BRx_V)
 
-#define CFG_OR2_PRELIM CFG_OR2_8COL
+#define CONFIG_SYS_OR2_PRELIM  CONFIG_SYS_OR2_8COL
 
 #define SDRAM_BASE2_PRELIM     0x80000000
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR2_8COL    ((~(CFG_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR2_8COL    ((~(CONFIG_SYS_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A8             |\
                         ORxS_NUMR_12)
 
-#define CFG_LSDMR_8COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_LSDMR_8COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A15_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI1_A9            |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR2_9COL    ((~(CFG_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR2_9COL    ((~(CONFIG_SYS_LOCAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A6             |\
                         ORxS_NUMR_13)
 
-#define CFG_LSDMR_9COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_LSDMR_9COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A16_IS_A5           |\
                         PSDMR_BSMA_A13_A15             |\
                         PSDMR_SDA10_PBI1_A8            |\
                         PSDMR_WRC_2C                   |\
                         PSDMR_CL_2)
 
-#endif /* CFG_INIT_LOCAL_SDRAM */
+#endif /* CONFIG_SYS_INIT_LOCAL_SDRAM */
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 #endif /* __CONFIG_H */
index 072608c735b7f0b5e475337d1d9832680913ce24..1915a73a609910381396bd6631cd8573fc71f79d 100644 (file)
@@ -97,8 +97,8 @@
 /* enable I2C and select the hardware/software driver */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 #define CONFIG_I2C_X
 
 /* EEPROM */
-#define CFG_I2C_EEPROM_ADDR_LEN 2
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
-#define CFG_I2C_MULTI_EEPROMS          1       /* more than one eeprom */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_MULTI_EEPROMS           1       /* more than one eeprom */
 
 /* I2C RTC */
 #define CONFIG_RTC_DS1337              /* Use ds1337 rtc via i2c       */
-#define CFG_I2C_RTC_ADDR       0x68    /* at address 0x68              */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68    /* at address 0x68              */
 
 /* I2C SYSMON (LM75) */
 #define CONFIG_DTT_LM75                1               /* ON Semi's LM75       */
 #define CONFIG_DTT_SENSORS     {0}             /* Sensor addresses     */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 #else
 #undef CONFIG_HARD_I2C
  * (On TQM8272 either SCC1 or FCC2 may be chosen: SCC1 is hardwired to the
  * X.29 connector, and FCC2 is hardwired to the X.1 connector)
  */
-#define CFG_FCC_ETHERNET
+#define CONFIG_SYS_FCC_ETHERNET
 
-#if defined(CFG_FCC_ETHERNET)
+#if defined(CONFIG_SYS_FCC_ETHERNET)
 #undef CONFIG_ETHER_ON_SCC             /* define if ether on SCC       */
 #define        CONFIG_ETHER_ON_FCC             /* define if ether on FCC       */
 #undef CONFIG_ETHER_NONE               /* define if ether on something else */
  *  - RX clk is CLK11
  *  - TX clk is CLK12
  */
-# define CFG_CMXSCR_VALUE      (CMXSCR_RS1CS_CLK11 | CMXSCR_TS1CS_CLK12)
+# define CONFIG_SYS_CMXSCR_VALUE       (CMXSCR_RS1CS_CLK11 | CMXSCR_TS1CS_CLK12)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
 
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
 #define MDIO_PORT      2               /* Port C */
 
 #if STK82xx_150
-#define CFG_MDIO_PIN   0x00008000      /* PC16 */
-#define CFG_MDC_PIN    0x00004000      /* PC17 */
+#define CONFIG_SYS_MDIO_PIN    0x00008000      /* PC16 */
+#define CONFIG_SYS_MDC_PIN     0x00004000      /* PC17 */
 #endif
 
 #if STK82xx_100
-#define CFG_MDIO_PIN   0x00000002      /* PC30 */
-#define CFG_MDC_PIN    0x00000001      /* PC31 */
+#define CONFIG_SYS_MDIO_PIN    0x00000002      /* PC30 */
+#define CONFIG_SYS_MDC_PIN     0x00000001      /* PC31 */
 #endif
 
 #if 1
-#define MDIO_ACTIVE    (iop->pdir |=  CFG_MDIO_PIN)
-#define MDIO_TRISTATE  (iop->pdir &= ~CFG_MDIO_PIN)
-#define MDIO_READ      ((iop->pdat &  CFG_MDIO_PIN) != 0)
+#define MDIO_ACTIVE    (iop->pdir |=  CONFIG_SYS_MDIO_PIN)
+#define MDIO_TRISTATE  (iop->pdir &= ~CONFIG_SYS_MDIO_PIN)
+#define MDIO_READ      ((iop->pdat &  CONFIG_SYS_MDIO_PIN) != 0)
 
-#define MDIO(bit)      if(bit) iop->pdat |=  CFG_MDIO_PIN; \
-                       else    iop->pdat &= ~CFG_MDIO_PIN
+#define MDIO(bit)      if(bit) iop->pdat |=  CONFIG_SYS_MDIO_PIN; \
+                       else    iop->pdat &= ~CONFIG_SYS_MDIO_PIN
 
-#define MDC(bit)       if(bit) iop->pdat |=  CFG_MDC_PIN; \
-                       else    iop->pdat &= ~CFG_MDC_PIN
+#define MDC(bit)       if(bit) iop->pdat |=  CONFIG_SYS_MDC_PIN; \
+                       else    iop->pdat &= ~CONFIG_SYS_MDC_PIN
 #else
-#define MDIO_ACTIVE    ({unsigned long tmp; tmp = iop->pdir; tmp |=  CFG_MDIO_PIN; iop->pdir = tmp;})
-#define MDIO_TRISTATE  ({unsigned long tmp; tmp = iop->pdir; tmp &= ~CFG_MDIO_PIN; iop->pdir = tmp;})
-#define MDIO_READ      ((iop->pdat &  CFG_MDIO_PIN) != 0)
+#define MDIO_ACTIVE    ({unsigned long tmp; tmp = iop->pdir; tmp |=  CONFIG_SYS_MDIO_PIN; iop->pdir = tmp;})
+#define MDIO_TRISTATE  ({unsigned long tmp; tmp = iop->pdir; tmp &= ~CONFIG_SYS_MDIO_PIN; iop->pdir = tmp;})
+#define MDIO_READ      ((iop->pdat &  CONFIG_SYS_MDIO_PIN) != 0)
 
-#define MDIO(bit)      if(bit) {unsigned long tmp; tmp = iop->pdat; tmp |=  CFG_MDIO_PIN; iop->pdat = tmp;}\
-                       else    {unsigned long tmp; tmp = iop->pdat; tmp &= ~CFG_MDIO_PIN; iop->pdat = tmp;}
+#define MDIO(bit)      if(bit) {unsigned long tmp; tmp = iop->pdat; tmp |=  CONFIG_SYS_MDIO_PIN; iop->pdat = tmp;}\
+                       else    {unsigned long tmp; tmp = iop->pdat; tmp &= ~CONFIG_SYS_MDIO_PIN; iop->pdat = tmp;}
 
-#define MDC(bit)       if(bit) {unsigned long tmp; tmp = iop->pdat; tmp |=  CFG_MDC_PIN; iop->pdat = tmp;}\
-                       else    {unsigned long tmp; tmp = iop->pdat; tmp &= ~CFG_MDC_PIN; iop->pdat = tmp;}
+#define MDC(bit)       if(bit) {unsigned long tmp; tmp = iop->pdat; tmp |=  CONFIG_SYS_MDC_PIN; iop->pdat = tmp;}\
+                       else    {unsigned long tmp; tmp = iop->pdat; tmp &= ~CONFIG_SYS_MDC_PIN; iop->pdat = tmp;}
 #endif
 
 #define MIIDELAY       udelay(1)
 #define CONFIG_8260_CLKIN      66666666        /* in Hz */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 
 #if 0
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END        0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR   0x300000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR    0x300000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_RESET_ADDRESS 0x40000104    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0x40000104     /* "bad" address                */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * CAN stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_CAN_BASE   0x51000000
-#define        CFG_CAN_SIZE    1
-#define CFG_CAN_BR     ((CFG_CAN_BASE & BRx_BA_MSK)    |\
+#define CONFIG_SYS_CAN_BASE    0x51000000
+#define        CONFIG_SYS_CAN_SIZE     1
+#define CONFIG_SYS_CAN_BR      ((CONFIG_SYS_CAN_BASE & BRx_BA_MSK)     |\
                         BRx_PS_8                       |\
                         BRx_MS_UPMC                    |\
                         BRx_V)
 
-#define CFG_CAN_OR     (MEG_TO_AM(CFG_CAN_SIZE)        |\
+#define CONFIG_SYS_CAN_OR      (MEG_TO_AM(CONFIG_SYS_CAN_SIZE) |\
                         ORxU_BI)
 
 
  * it (in MBytes)? This must contain TEXT_BASE from board/tqm8272/config.mk
  * The main FLASH is whichever is connected to *CS0.
  */
-#define CFG_FLASH0_BASE 0x40000000
-#define CFG_FLASH0_SIZE 32     /* 32 MB */
+#define CONFIG_SYS_FLASH0_BASE 0x40000000
+#define CONFIG_SYS_FLASH0_SIZE 32      /* 32 MB */
 
 /* Flash bank size (for preliminary settings)
  */
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
+#define CONFIG_SYS_FLASH_SIZE CONFIG_SYS_FLASH0_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_CFI                          /* flash is CFI compat. */
+#define CONFIG_SYS_FLASH_CFI                           /* flash is CFI compat. */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver*/
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector   */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash*/
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector   */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash*/
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
-#define CFG_UPDATE_FLASH_SIZE
+#define CONFIG_SYS_UPDATE_FLASH_SIZE
 
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x40000)
 #define CONFIG_ENV_SIZE                0x20000
 #define CONFIG_ENV_SECT_SIZE   0x20000
 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SIZE)
 
 /* Where is the Hardwareinformation Block (from Monitor Sources) */
 #define MON_RES_LENGTH         (0x0003FC00)
-#define HWIB_INFO_START_ADDR    (CFG_FLASH_BASE + MON_RES_LENGTH)
+#define HWIB_INFO_START_ADDR    (CONFIG_SYS_FLASH_BASE + MON_RES_LENGTH)
 #define HWIB_INFO_LEN           512
-#define CIB_INFO_START_ADDR     (CFG_FLASH_BASE + MON_RES_LENGTH + HWIB_INFO_LEN)
+#define CIB_INFO_START_ADDR     (CONFIG_SYS_FLASH_BASE + MON_RES_LENGTH + HWIB_INFO_LEN)
 #define CIB_INFO_LEN            512
 
-#define CFG_HWINFO_OFFSET      0x3fc00 /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000060      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x3fc00 /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000060      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  */
 #if defined(CONFIG_CMD_NAND)
 
-#define CFG_NAND_CS_DIST               0x80
-#define CFG_NAND_UPM_WRITE_CMD_OFS     0x20
-#define CFG_NAND_UPM_WRITE_ADDR_OFS    0x40
+#define CONFIG_SYS_NAND_CS_DIST                0x80
+#define CONFIG_SYS_NAND_UPM_WRITE_CMD_OFS      0x20
+#define CONFIG_SYS_NAND_UPM_WRITE_ADDR_OFS     0x40
 
-#define CFG_NAND_BR    ((CFG_NAND0_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_NAND_BR     ((CONFIG_SYS_NAND0_BASE & BRx_BA_MSK)   |\
                         BRx_PS_8                       |\
                         BRx_MS_UPMB                    |\
                         BRx_V)
 
-#define CFG_NAND_OR    (MEG_TO_AM(CFG_NAND_SIZE)       |\
+#define CONFIG_SYS_NAND_OR     (MEG_TO_AM(CONFIG_SYS_NAND_SIZE)        |\
                         ORxU_BI                        |\
                         ORxU_EHTR_8IDLE)
 
-#define CFG_NAND_SIZE  1
-#define CFG_NAND0_BASE 0x50000000
-#define CFG_NAND1_BASE (CFG_NAND0_BASE + CFG_NAND_CS_DIST)
-#define CFG_NAND2_BASE (CFG_NAND1_BASE + CFG_NAND_CS_DIST)
-#define CFG_NAND3_BASE (CFG_NAND2_BASE + CFG_NAND_CS_DIST)
+#define CONFIG_SYS_NAND_SIZE   1
+#define CONFIG_SYS_NAND0_BASE 0x50000000
+#define CONFIG_SYS_NAND1_BASE (CONFIG_SYS_NAND0_BASE + CONFIG_SYS_NAND_CS_DIST)
+#define CONFIG_SYS_NAND2_BASE (CONFIG_SYS_NAND1_BASE + CONFIG_SYS_NAND_CS_DIST)
+#define CONFIG_SYS_NAND3_BASE (CONFIG_SYS_NAND2_BASE + CONFIG_SYS_NAND_CS_DIST)
 
-#define CFG_MAX_NAND_DEVICE     4       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     4       /* Max number of NAND devices           */
 #define NAND_MAX_CHIPS 1
 
-#define CFG_NAND_BASE_LIST { CFG_NAND0_BASE, \
-                            CFG_NAND1_BASE, \
-                            CFG_NAND2_BASE, \
-                            CFG_NAND3_BASE, \
+#define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND0_BASE, \
+                            CONFIG_SYS_NAND1_BASE, \
+                            CONFIG_SYS_NAND2_BASE, \
+                            CONFIG_SYS_NAND3_BASE, \
                           }
 
 #define WRITE_NAND(d, adr) do{ *(volatile __u8 *)((unsigned long)(adr)) = (__u8)d; } while(0)
 #define CONFIG_BOARD_EARLY_INIT_F 1    /* Call board_early_init_f      */
 #define CONFIG_PCI_PNP
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #define CONFIG_PCI_SCAN_SHOW
 #endif
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #if 0
 #define        __HRCW__ALL__           (HRCW_CIP | HRCW_ISB111 | HRCW_BMS)
 
-#  define CFG_HRCW_MASTER      (__HRCW__ALL__ | HRCW_MODCK_H0111)
+#  define CONFIG_SYS_HRCW_MASTER       (__HRCW__ALL__ | HRCW_MODCK_H0111)
 #else
-#define CFG_HRCW_MASTER        (HRCW_BPS11 | HRCW_ISB111 | HRCW_BMS | HRCW_MODCK_H0111)
+#define CONFIG_SYS_HRCW_MASTER (HRCW_BPS11 | HRCW_ISB111 | HRCW_BMS | HRCW_MODCK_H0111)
 #endif
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         CFG_FLASH0_BASE
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
 /*
  * Internal Definitions
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL  (HID0_IFEM|HID0_ABE)
-#define CFG_HID2        0
+#define CONFIG_SYS_HID0_FINAL  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR_60x         (BCR_EBM|BCR_NPQM0|BCR_NPQM2)      /* 60x mode  */
+#define CONFIG_SYS_BCR_60x         (BCR_EBM|BCR_NPQM0|BCR_NPQM2)       /* 60x mode  */
 #define BCR_APD01      0x10000000
-#define CFG_BCR_SINGLE         (BCR_APD01|BCR_ETM)     /* 8260 mode */
+#define CONFIG_SYS_BCR_SINGLE          (BCR_APD01|BCR_ETM)     /* 8260 mode */
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                             4-31
  *-----------------------------------------------------------------------
  */
 #if defined(CONFIG_BOARD_GET_CPU_CLK_F)
-#define CFG_SIUMCR_LOW         (SIUMCR_DPPC00)
-#define CFG_SIUMCR_HIGH                (SIUMCR_DPPC00 | SIUMCR_ABE)
+#define CONFIG_SYS_SIUMCR_LOW          (SIUMCR_DPPC00)
+#define CONFIG_SYS_SIUMCR_HIGH         (SIUMCR_DPPC00 | SIUMCR_ABE)
 #else
-#define CFG_SIUMCR             (SIUMCR_DPPC00)
+#define CONFIG_SYS_SIUMCR              (SIUMCR_DPPC00)
 #endif
 
 /*-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR        SCCR_DFBRG01
+#define CONFIG_SYS_SCCR        SCCR_DFBRG01
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
 
 /* Initialize SDRAM
         */
-#undef CFG_INIT_LOCAL_SDRAM            /* No SDRAM on Local Bus */
+#undef CONFIG_SYS_INIT_LOCAL_SDRAM             /* No SDRAM on Local Bus */
 
 #define SDRAM_MAX_SIZE 0x20000000      /* max. 512 MB          */
 
 /* Minimum mask to separate preliminary
  * address ranges for CS[0:2]
  */
-#define CFG_GLOBAL_SDRAM_LIMIT (512<<20)       /* less than 512 MB */
+#define CONFIG_SYS_GLOBAL_SDRAM_LIMIT  (512<<20)       /* less than 512 MB */
 
-#define CFG_MPTPR       0x4000
+#define CONFIG_SYS_MPTPR       0x4000
 
 /*-----------------------------------------------------------------------------
  * Address for Mode Register Set (MRS) command
  *  Settings:              |  0  |  0    0  |  0  1  0  |  0  |   0  1  0    |
  *-----------------------------------------------------------------------------
  */
-#define CFG_MRS_OFFS   0x00000110
+#define CONFIG_SYS_MRS_OFFS    0x00000110
 
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_32                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH_SIZE)      |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV4                  |\
                         ORxG_SCY_8_CLK                 |\
 
 /* Bank 1 - 60x bus SDRAM
  */
-#define CFG_PSRT        0x20   /* Low Value */
-/* #define CFG_PSRT        0x10         Fast Value */
-#define CFG_LSRT        0x20   /* Local Bus */
-#ifndef CFG_RAMBOOT
-#define CFG_BR1_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_PSRT        0x20    /* Low Value */
+/* #define CONFIG_SYS_PSRT        0x10  Fast Value */
+#define CONFIG_SYS_LSRT        0x20    /* Local Bus */
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM CFG_OR1_8COL
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR1_8COL
 
 /* SDRAM initialization values for 8-column chips
  */
-#define CFG_OR1_8COL    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_8COL    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A7             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A15_IS_A5           |\
                         PSDMR_BSMA_A12_A14             |\
                         PSDMR_SDA10_PBI1_A8            |\
 
 /* SDRAM initialization values for 9-column chips
  */
-#define CFG_OR1_9COL    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_9COL    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A5             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_9COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A16_IS_A5           |\
                         PSDMR_BSMA_A12_A14             |\
                         PSDMR_SDA10_PBI1_A7            |\
                         PSDMR_BUFCMD                   |\
                         PSDMR_CL_2)
 
-#define CFG_OR1_10COL    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_10COL    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A4             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR_10COL  (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_10COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A17_IS_A5           |\
                         PSDMR_BSMA_A12_A14             |\
                         PSDMR_SDA10_PBI1_A4            |\
 #define PSDMR_BUFCMD_100MHZ_60X         0x00000000  /* PSDMR[BUFCMD] at 100 MHz 60x mode */
 #define PSDMR_BUFCMD_DEFAULT            PSDMR_BUFCMD_133MHZ_SINGLE  /* PSDMR[BUFCMD] default value */
 
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 #endif /* __CONFIG_H */
index 7b062f41acedd18f3b8c3ab13666f91def71911f..2961a1b2a0f67910a9af699beec0ff664b975be1 100644 (file)
@@ -38,7 +38,7 @@
 #define CONFIG_TQM834X         1       /* TQM834X board specific */
 
 /* IMMR Base Addres Register, use Freescale default: 0xff400000 */
-#define CFG_IMMR               0xff400000
+#define CONFIG_SYS_IMMR                0xff400000
 
 /* System clock. Primary input clock when in PCI host mode */
 #define CONFIG_83XX_CLKIN      66666000        /* 66,666 MHz */
@@ -52,7 +52,7 @@
  * External Local Bus rate is
  *    CLKIN * HRCWL_CSB_TO_CLKIN / HRCWL_LCL_BUS_TO_SCB_CLK / LCRR_CLKDIV
  */
-#define CFG_LCRR               (LCRR_DBYP | LCRR_CLKDIV_8)
+#define CONFIG_SYS_LCRR                (LCRR_DBYP | LCRR_CLKDIV_8)
 
 /* board pre init: do not call, nothing to do */
 #undef CONFIG_BOARD_EARLY_INIT_F
 /*
  * DDR Setup
  */
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
 #define DDR_CASLAT_25                          /* CASLAT set to 2.5 */
 #undef CONFIG_DDR_ECC                          /* only for ECC DDR module */
 #undef CONFIG_SPD_EEPROM                       /* do not use SPD EEPROM for DDR setup */
 
-#undef CFG_DRAM_TEST                           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00000000      /* memtest region */
-#define CFG_MEMTEST_END                0x00100000
+#undef CONFIG_SYS_DRAM_TEST                            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00100000
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI                          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI                           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER                        /* use the CFI driver */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_BASE         0x80000000      /* start of FLASH   */
-#define CFG_FLASH_SIZE         8               /* FLASH size in MB */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_BASE          0x80000000      /* start of FLASH   */
+#define CONFIG_SYS_FLASH_SIZE          8               /* FLASH size in MB */
 
 /* buffered writes in the AMD chip set is not supported yet */
-#undef CFG_FLASH_USE_BUFFER_WRITE
+#undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /*
  * FLASH bank number detection
  */
 
 /*
- * When CFG_MAX_FLASH_BANKS_DETECT is defined, the actual number of Flash
+ * When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is defined, the actual number of Flash
  * banks has to be determined at runtime and stored in a gloabl variable
- * tqm834x_num_flash_banks. The value of CFG_MAX_FLASH_BANKS_DETECT is only
- * used instead of CFG_MAX_FLASH_BANKS to allocate the array flash_info, and
+ * tqm834x_num_flash_banks. The value of CONFIG_SYS_MAX_FLASH_BANKS_DETECT is only
+ * used instead of CONFIG_SYS_MAX_FLASH_BANKS to allocate the array flash_info, and
  * should be made sufficiently large to accomodate the number of banks that
  * might actually be detected.  Since most (all?) Flash related functions use
- * CFG_MAX_FLASH_BANKS as the number of actual banks on the board, it is
+ * CONFIG_SYS_MAX_FLASH_BANKS as the number of actual banks on the board, it is
  * defined as tqm834x_num_flash_banks.
  */
-#define CFG_MAX_FLASH_BANKS_DETECT     2
+#define CONFIG_SYS_MAX_FLASH_BANKS_DETECT      2
 #ifndef __ASSEMBLY__
 extern int tqm834x_num_flash_banks;
 #endif
-#define CFG_MAX_FLASH_BANKS (tqm834x_num_flash_banks)
+#define CONFIG_SYS_MAX_FLASH_BANKS (tqm834x_num_flash_banks)
 
-#define CFG_MAX_FLASH_SECT             512     /* max sectors per device */
+#define CONFIG_SYS_MAX_FLASH_SECT              512     /* max sectors per device */
 
 /* 32 bit device at 0x80000000 via GPCM (0x8000_1801) */
-#define CFG_BR0_PRELIM         ((CFG_FLASH_BASE & BR_BA) | \
+#define CONFIG_SYS_BR0_PRELIM          ((CONFIG_SYS_FLASH_BASE & BR_BA) | \
                                        BR_MS_GPCM | BR_PS_32 | BR_V)
 
 /* FLASH timing (0x0000_0c54) */
-#define CFG_OR_TIMING_FLASH    (OR_GPCM_CSNT | OR_GPCM_ACS_DIV4 | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_GPCM_CSNT | OR_GPCM_ACS_DIV4 | \
                                        OR_GPCM_SCY_5 | OR_GPCM_TRLX)
 
-#define CFG_PRELIM_OR_AM       0xc0000000      /* OR addr mask: 1 GiB */
+#define CONFIG_SYS_PRELIM_OR_AM        0xc0000000      /* OR addr mask: 1 GiB */
 
-#define CFG_OR0_PRELIM         (CFG_PRELIM_OR_AM  | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM          (CONFIG_SYS_PRELIM_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
 
-#define CFG_LBLAWAR0_PRELIM    0x8000001D      /* 1 GiB window size (2^(size + 1)) */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x8000001D      /* 1 GiB window size (2^(size + 1)) */
 
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE  /* Window base at flash base */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE   /* Window base at flash base */
 
 /* disable remaining mappings */
-#define CFG_BR1_PRELIM         0x00000000
-#define CFG_OR1_PRELIM         0x00000000
-#define CFG_LBLAWBAR1_PRELIM   0x00000000
-#define CFG_LBLAWAR1_PRELIM    0x00000000
-
-#define CFG_BR2_PRELIM         0x00000000
-#define CFG_OR2_PRELIM         0x00000000
-#define CFG_LBLAWBAR2_PRELIM   0x00000000
-#define CFG_LBLAWAR2_PRELIM    0x00000000
-
-#define CFG_BR3_PRELIM         0x00000000
-#define CFG_OR3_PRELIM         0x00000000
-#define CFG_LBLAWBAR3_PRELIM   0x00000000
-#define CFG_LBLAWAR3_PRELIM    0x00000000
-
-#define CFG_BR4_PRELIM         0x00000000
-#define CFG_OR4_PRELIM         0x00000000
-#define CFG_LBLAWBAR4_PRELIM   0x00000000
-#define CFG_LBLAWAR4_PRELIM    0x00000000
-
-#define CFG_BR5_PRELIM         0x00000000
-#define CFG_OR5_PRELIM         0x00000000
-#define CFG_LBLAWBAR5_PRELIM   0x00000000
-#define CFG_LBLAWAR5_PRELIM    0x00000000
-
-#define CFG_BR6_PRELIM         0x00000000
-#define CFG_OR6_PRELIM         0x00000000
-#define CFG_LBLAWBAR6_PRELIM   0x00000000
-#define CFG_LBLAWAR6_PRELIM    0x00000000
-
-#define CFG_BR7_PRELIM         0x00000000
-#define CFG_OR7_PRELIM         0x00000000
-#define CFG_LBLAWBAR7_PRELIM   0x00000000
-#define CFG_LBLAWAR7_PRELIM    0x00000000
+#define CONFIG_SYS_BR1_PRELIM          0x00000000
+#define CONFIG_SYS_OR1_PRELIM          0x00000000
+#define CONFIG_SYS_LBLAWBAR1_PRELIM    0x00000000
+#define CONFIG_SYS_LBLAWAR1_PRELIM     0x00000000
+
+#define CONFIG_SYS_BR2_PRELIM          0x00000000
+#define CONFIG_SYS_OR2_PRELIM          0x00000000
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    0x00000000
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x00000000
+
+#define CONFIG_SYS_BR3_PRELIM          0x00000000
+#define CONFIG_SYS_OR3_PRELIM          0x00000000
+#define CONFIG_SYS_LBLAWBAR3_PRELIM    0x00000000
+#define CONFIG_SYS_LBLAWAR3_PRELIM     0x00000000
+
+#define CONFIG_SYS_BR4_PRELIM          0x00000000
+#define CONFIG_SYS_OR4_PRELIM          0x00000000
+#define CONFIG_SYS_LBLAWBAR4_PRELIM    0x00000000
+#define CONFIG_SYS_LBLAWAR4_PRELIM     0x00000000
+
+#define CONFIG_SYS_BR5_PRELIM          0x00000000
+#define CONFIG_SYS_OR5_PRELIM          0x00000000
+#define CONFIG_SYS_LBLAWBAR5_PRELIM    0x00000000
+#define CONFIG_SYS_LBLAWAR5_PRELIM     0x00000000
+
+#define CONFIG_SYS_BR6_PRELIM          0x00000000
+#define CONFIG_SYS_OR6_PRELIM          0x00000000
+#define CONFIG_SYS_LBLAWBAR6_PRELIM    0x00000000
+#define CONFIG_SYS_LBLAWAR6_PRELIM     0x00000000
+
+#define CONFIG_SYS_BR7_PRELIM          0x00000000
+#define CONFIG_SYS_OR7_PRELIM          0x00000000
+#define CONFIG_SYS_LBLAWBAR7_PRELIM    0x00000000
+#define CONFIG_SYS_LBLAWAR7_PRELIM     0x00000000
 
 /*
  * Monitor config
  */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0x20000000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000          /* End of used area in RAM*/
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000          /* End of used area in RAM*/
 
-#define CFG_GBL_DATA_SIZE      0x100           /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100           /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (256 * 1024) /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024) /* Reserve 256 kB for malloc */
 
 /*
  * Serial Port
  */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_IMMR + 0x4500)
-#define CFG_NS16550_COM2       (CFG_IMMR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR + 0x4600)
 
 /*
  * I2C
@@ -205,27 +205,27 @@ extern int tqm834x_num_flash_banks;
 #define CONFIG_HARD_I2C                                /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                         /* I2C bit-banged               */
 #define CONFIG_FSL_I2C
-#define CFG_I2C_SPEED                  400000  /* I2C speed: 400KHz            */
-#define CFG_I2C_SLAVE                  0x7F    /* slave address                */
-#define CFG_I2C_OFFSET                 0x3000
+#define CONFIG_SYS_I2C_SPEED                   400000  /* I2C speed: 400KHz            */
+#define CONFIG_SYS_I2C_SLAVE                   0x7F    /* slave address                */
+#define CONFIG_SYS_I2C_OFFSET                  0x3000
 
 /* I2C EEPROM, configuration for onboard EEPROMs 24C256 and 24C32 */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x                     */
-#define CFG_I2C_EEPROM_ADDR_LEN                2       /* 16 bit                       */
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* 32 bytes per write           */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 12      /* 10ms +/- 20%                 */
-#define CFG_I2C_MULTI_EEPROMS          1       /* more than one eeprom         */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x                     */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2       /* 16 bit                       */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* 32 bytes per write           */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  12      /* 10ms +/- 20%                 */
+#define CONFIG_SYS_I2C_MULTI_EEPROMS           1       /* more than one eeprom         */
 
 /* I2C RTC */
 #define CONFIG_RTC_DS1337                      /* use ds1337 rtc via i2c       */
-#define CFG_I2C_RTC_ADDR               0x68    /* at address 0x68              */
+#define CONFIG_SYS_I2C_RTC_ADDR                0x68    /* at address 0x68              */
 
 /* I2C SYSMON (LM75) */
 #define CONFIG_DTT_LM75                        1       /* ON Semi's LM75               */
 #define CONFIG_DTT_SENSORS             {0}     /* Sensor addresses             */
-#define CFG_DTT_MAX_TEMP               70
-#define CFG_DTT_LOW_TEMP               -30
-#define CFG_DTT_HYSTERESIS             3
+#define CONFIG_SYS_DTT_MAX_TEMP                70
+#define CONFIG_SYS_DTT_LOW_TEMP                -30
+#define CONFIG_SYS_DTT_HYSTERESIS              3
 
 /*
  * TSEC
@@ -233,10 +233,10 @@ extern int tqm834x_num_flash_banks;
 #define CONFIG_TSEC_ENET               /* tsec ethernet support */
 #define CONFIG_MII
 
-#define CFG_TSEC1_OFFSET       0x24000
-#define CFG_TSEC1              (CFG_IMMR + CFG_TSEC1_OFFSET)
-#define CFG_TSEC2_OFFSET       0x25000
-#define CFG_TSEC2              (CFG_IMMR + CFG_TSEC2_OFFSET)
+#define CONFIG_SYS_TSEC1_OFFSET        0x24000
+#define CONFIG_SYS_TSEC1               (CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET)
+#define CONFIG_SYS_TSEC2_OFFSET        0x25000
+#define CONFIG_SYS_TSEC2               (CONFIG_SYS_IMMR + CONFIG_SYS_TSEC2_OFFSET)
 
 #if defined(CONFIG_TSEC_ENET)
 
@@ -272,24 +272,24 @@ extern int tqm834x_num_flash_banks;
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
 
 /* PCI1 host bridge */
-#define CFG_PCI1_MEM_BASE       0xc0000000
-#define CFG_PCI1_MEM_PHYS       CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE       0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE        0xe2000000
-#define CFG_PCI1_IO_PHYS        CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE        0x1000000       /* 16M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0xc0000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0xe2000000
+#define CONFIG_SYS_PCI1_IO_PHYS        CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE        0x1000000       /* 16M */
 
 #undef CONFIG_EEPRO100
 #define CONFIG_EEPRO100
 #undef CONFIG_TULIP
 
 #if !defined(CONFIG_PCI_PNP)
-       #define PCI_ENET0_IOADDR        CFG_PCI1_IO_BASE
-       #define PCI_ENET0_MEMADDR       CFG_PCI1_MEM_BASE
+       #define PCI_ENET0_IOADDR        CONFIG_SYS_PCI1_IO_BASE
+       #define PCI_ENET0_MEMADDR       CONFIG_SYS_PCI1_MEM_BASE
        #define PCI_IDSEL_NUMBER        0x1c    /* slot0 (IDSEL) = 28 */
 #endif
 
-#define CFG_PCI_SUBSYS_VENDORID                0x1957  /* Freescale */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID         0x1957  /* Freescale */
 
 #endif /* CONFIG_PCI */
 
@@ -298,20 +298,20 @@ extern int tqm834x_num_flash_banks;
  */
 #define CONFIG_ENV_OVERWRITE
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + 0x40000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + 0x40000)
        #define CONFIG_ENV_SECT_SIZE    0x40000 /* 256K(one sector) for env */
        #define CONFIG_ENV_SIZE         0x2000
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO              1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE          1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           1       /* allow baudrate change */
 
 /*
  * BOOTP options
@@ -340,7 +340,7 @@ extern int tqm834x_num_flash_banks;
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
@@ -348,26 +348,26 @@ extern int tqm834x_num_flash_banks;
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_LOAD_ADDR          0x2000000       /* default load address */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR           0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024            /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256             /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ                 1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1ms ticks */
 
 #undef CONFIG_WATCHDOG                         /* watchdog disabled */
 
@@ -376,9 +376,9 @@ extern int tqm834x_num_flash_banks;
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN_4X1 |\
@@ -386,7 +386,7 @@ extern int tqm834x_num_flash_banks;
        HRCWL_CORE_TO_CSB_2X1)
 
 #if defined(PCI_64BIT)
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_64_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
@@ -399,7 +399,7 @@ extern int tqm834x_num_flash_banks;
        HRCWH_TSEC1M_IN_GMII |\
        HRCWH_TSEC2M_IN_GMII )
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_32_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
@@ -414,67 +414,67 @@ extern int tqm834x_num_flash_banks;
 #endif
 
 /* System IO Config */
-#define CFG_SICRH      SICRH_TSOBI1
-#define CFG_SICRL      SICRL_LDP_A
+#define CONFIG_SYS_SICRH       SICRH_TSOBI1
+#define CONFIG_SYS_SICRL       SICRL_LDP_A
 
 /* i-cache and d-cache disabled */
-#define CFG_HID0_INIT  0x000000000
-#define CFG_HID0_FINAL CFG_HID0_INIT
-#define CFG_HID2       HID2_HBE
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  CONFIG_SYS_HID0_INIT
+#define CONFIG_SYS_HID2        HID2_HBE
 
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR 0 - 512M */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT1L     (CFG_SDRAM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_SDRAM_BASE + 0x10000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_SDRAM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_SDRAM_BASE + 0x10000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 512M (no backing mem) */
-#define CFG_IBAT2L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT2U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 
 /* PCI */
 #ifdef CONFIG_PCI
-#define CFG_IBAT3L     (CFG_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT3U     (CFG_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT4L     (CFG_PCI1_MEM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT4U     (CFG_PCI1_MEM_BASE + 0x10000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT5L     (CFG_PCI1_IO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_PCI1_IO_BASE + 0x10000000 | BATU_BL_16M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_PCI1_MEM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_PCI1_MEM_BASE + 0x10000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_PCI1_IO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_PCI1_IO_BASE + 0x10000000 | BATU_BL_16M | BATU_VS | BATU_VP)
 #else
-#define CFG_IBAT3L     (0)
-#define CFG_IBAT3U     (0)
-#define CFG_IBAT4L     (0)
-#define CFG_IBAT4U     (0)
-#define CFG_IBAT5L     (0)
-#define CFG_IBAT5U     (0)
+#define CONFIG_SYS_IBAT3L      (0)
+#define CONFIG_SYS_IBAT3U      (0)
+#define CONFIG_SYS_IBAT4L      (0)
+#define CONFIG_SYS_IBAT4U      (0)
+#define CONFIG_SYS_IBAT5L      (0)
+#define CONFIG_SYS_IBAT5U      (0)
 #endif
 
 /* IMMRBAR */
-#define CFG_IBAT6L     (CFG_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT6U     (CFG_IMMR | BATU_BL_1M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT6L      (CONFIG_SYS_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT6U      (CONFIG_SYS_IMMR | BATU_BL_1M | BATU_VS | BATU_VP)
 
 /* FLASH */
-#define CFG_IBAT7L     (CFG_FLASH_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT7U     (CFG_FLASH_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT7L      (CONFIG_SYS_FLASH_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT7U      (CONFIG_SYS_FLASH_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
index 473c390066534a147165f2203b5d227c96776613..4aa8db824488785ad0a105a2a0908818bb0ce922 100644 (file)
@@ -80,7 +80,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 4de5a33aa4f37cde6452b9ff6aec067f17883e35..ce5dcc19050c127ae4a9c6a44cd4cdcfd5cdc25b 100644 (file)
@@ -78,7 +78,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x40000 /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 2ba94c8cc3b64f8040899e998cd94add72226f3c..012e20396d98b33f51da6f8a6faf6d1512dd6795 100644 (file)
@@ -83,7 +83,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 7699d51c0754dd57b4a419122988652eb2aceb06..84889ea170dea12cfd925069da247cf83c60e023 100644 (file)
@@ -83,7 +83,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
@@ -95,8 +95,8 @@
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
 #define I2C_DELAY      udelay(2)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x50            /* EEPROM AT24C64       */
-#define CFG_I2C_EEPROM_ADDR_LEN        2               /* two byte address     */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* EEPROM AT24C64       */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2               /* two byte address     */
 #if 0
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* takes up to 10 msec  */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW 0x01
-#define CFG_EEPROM_PAGE_WRITE_BITS     5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* takes up to 10 msec  */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x01
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5
 #endif
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x40000 /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 7ecbb7ebc9f3ceda93115241284cd81726bc5965..b05f43d5600da947dd0005a6e6bc3615330457ea 100644 (file)
 #define CONFIG_BTB                     /* toggle branch predition      */
 #define CONFIG_ADDR_STREAMING          /* toggle addr streaming        */
 
-#define CFG_INIT_DBCR DBCR_IDM         /* Enable Debug Exceptions      */
+#define CONFIG_SYS_INIT_DBCR DBCR_IDM          /* Enable Debug Exceptions      */
 
-#undef CFG_DRAM_TEST                   /* memory test, takes time      */
-#define CFG_MEMTEST_START      0x00000000
-#define CFG_MEMTEST_END                0x10000000
+#undef CONFIG_SYS_DRAM_TEST                    /* memory test, takes time      */
+#define CONFIG_SYS_MEMTEST_START       0x00000000
+#define CONFIG_SYS_MEMTEST_END         0x10000000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xFF700000      /* CCSRBAR Default      */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xFF700000      /* CCSRBAR Default      */
 #ifdef CONFIG_TQM_BIGFLASH
-#define CFG_CCSRBAR            0xA0000000      /* relocated CCSRBAR    */
+#define CONFIG_SYS_CCSRBAR             0xA0000000      /* relocated CCSRBAR    */
 #else /* !CONFIG_TQM_BIGFLASH */
-#define CFG_CCSRBAR            0xE0000000      /* relocated CCSRBAR    */
+#define CONFIG_SYS_CCSRBAR             0xE0000000      /* relocated CCSRBAR    */
 #endif /* CONFIG_TQM_BIGFLASH */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR    */
 
-#define CFG_PCI1_ADDR          (CFG_CCSRBAR + 0x8000)
-#define CFG_PCI2_ADDR          (CFG_CCSRBAR + 0x9000)
-#define CFG_PCIE1_ADDR         (CFG_CCSRBAR + 0xa000)
+#define CONFIG_SYS_PCI1_ADDR           (CONFIG_SYS_CCSRBAR + 0x8000)
+#define CONFIG_SYS_PCI2_ADDR           (CONFIG_SYS_CCSRBAR + 0x9000)
+#define CONFIG_SYS_PCIE1_ADDR          (CONFIG_SYS_CCSRBAR + 0xa000)
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory */
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
  * Flash on the Local Bus
  */
 #ifdef CONFIG_TQM_BIGFLASH
-#define CFG_FLASH0             0xE0000000
-#define CFG_FLASH1             0xC0000000
+#define CONFIG_SYS_FLASH0              0xE0000000
+#define CONFIG_SYS_FLASH1              0xC0000000
 #else /* !CONFIG_TQM_BIGFLASH */
-#define CFG_FLASH0             0xFC000000
-#define CFG_FLASH1             0xF8000000
+#define CONFIG_SYS_FLASH0              0xFC000000
+#define CONFIG_SYS_FLASH1              0xF8000000
 #endif /* CONFIG_TQM_BIGFLASH */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH1, CFG_FLASH0 }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH1, CONFIG_SYS_FLASH0 }
 
-#define CFG_LBC_FLASH_BASE     CFG_FLASH1      /* Localbus flash start */
-#define CFG_FLASH_BASE         CFG_LBC_FLASH_BASE  /* start of FLASH   */
+#define CONFIG_SYS_LBC_FLASH_BASE      CONFIG_SYS_FLASH1       /* Localbus flash start */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_LBC_FLASH_BASE  /* start of FLASH    */
 
 /* Default ORx timings are for <= 41.7 MHz Local Bus Clock.
  *
  *
  * For other Local Bus Clocks see following table:
  *
- * Clock/MHz   CFG_ORx_PRELIM
+ * Clock/MHz   CONFIG_SYS_ORx_PRELIM
  * 166         0x.....CA5
  * 133         0x.....C85
  * 100         0x.....C65
  *
  */
 #ifdef CONFIG_TQM_BIGFLASH
-#define CFG_BR0_PRELIM         0xE0001801      /* port size 32bit      */
-#define CFG_OR0_PRELIM         0xE0000040      /* 512MB Flash          */
-#define CFG_BR1_PRELIM         0xC0001801      /* port size 32bit      */
-#define CFG_OR1_PRELIM         0xE0000040      /* 512MB Flash          */
+#define CONFIG_SYS_BR0_PRELIM          0xE0001801      /* port size 32bit      */
+#define CONFIG_SYS_OR0_PRELIM          0xE0000040      /* 512MB Flash          */
+#define CONFIG_SYS_BR1_PRELIM          0xC0001801      /* port size 32bit      */
+#define CONFIG_SYS_OR1_PRELIM          0xE0000040      /* 512MB Flash          */
 #else /* !CONFIG_TQM_BIGFLASH */
-#define CFG_BR0_PRELIM         0xfc001801      /* port size 32bit      */
-#define CFG_OR0_PRELIM         0xfc000040      /* 64MB Flash           */
-#define CFG_BR1_PRELIM         0xf8001801      /* port size 32bit      */
-#define CFG_OR1_PRELIM         0xfc000040      /* 64MB Flash           */
+#define CONFIG_SYS_BR0_PRELIM          0xfc001801      /* port size 32bit      */
+#define CONFIG_SYS_OR0_PRELIM          0xfc000040      /* 64MB Flash           */
+#define CONFIG_SYS_BR1_PRELIM          0xf8001801      /* port size 32bit      */
+#define CONFIG_SYS_OR1_PRELIM          0xfc000040      /* 64MB Flash           */
 #endif /* CONFIG_TQM_BIGFLASH */
 
-#define CFG_FLASH_CFI                  /* flash is CFI compat.         */
+#define CONFIG_SYS_FLASH_CFI                   /* flash is CFI compat.         */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector   */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash*/
-#define CFG_FLASH_USE_BUFFER_WRITE     1 /* speed up output to Flash   */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector   */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash*/
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1 /* speed up output to Flash   */
 
-#define CFG_MAX_FLASH_BANKS    2       /* number of banks              */
-#define CFG_MAX_FLASH_SECT     512     /* sectors per device           */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms)     */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms)     */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* number of banks              */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* sectors per device           */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms)     */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms)     */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor     */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor     */
 
 /*
  * Note: when changing the Local Bus clock divider you have to
- * change the timing values in CFG_ORx_PRELIM.
+ * change the timing values in CONFIG_SYS_ORx_PRELIM.
  *
  * LCRR[00:03] CLKDIV: System (CCB) clock divider. Valid values are 2, 4, 8.
  * LCRR[16:17] EADC  : External address delay cycles. It should be set to 2
  *                     for Local Bus Clock > 83.3 MHz.
  */
-#define CFG_LBC_LCRR           0x00030008      /* LB clock ratio reg   */
-#define CFG_LBC_LBCR           0x00000000      /* LB config reg        */
-#define CFG_LBC_LSRT           0x20000000      /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x20000000      /* LB refresh timer presc.*/
+#define CONFIG_SYS_LBC_LCRR            0x00030008      /* LB clock ratio reg   */
+#define CONFIG_SYS_LBC_LBCR            0x00000000      /* LB config reg        */
+#define CONFIG_SYS_LBC_LSRT            0x20000000      /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x20000000      /* LB refresh timer presc.*/
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      (CFG_CCSRBAR \
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_CCSRBAR \
                                 + 0x04010000)  /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x4000          /* End used area in RAM */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* num bytes initial data       */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* num bytes initial data       */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (~TEXT_BASE + 1)/* Reserved for Monitor */
-#define CFG_MALLOC_LEN         (384 * 1024)    /* Reserved for malloc  */
+#define CONFIG_SYS_MONITOR_LEN         (~TEXT_BASE + 1)/* Reserved for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (384 * 1024)    /* Reserved for malloc  */
 
 /* Serial Port */
 #if defined(CONFIG_TQM8560)
 
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* PS/2 Keyboard */
 #define CONFIG_PS2KBD                  /* AT-PS/2 Keyboard             */
 #define CONFIG_PS2MULT                 /* .. on PS/2 Multiplexer       */
 #define CONFIG_PS2SERIAL       2       /* .. on DUART2                 */
-#define CONFIG_PS2MULT_DELAY   (CFG_HZ/2)      /* Initial delay        */
+#define CONFIG_PS2MULT_DELAY   (CONFIG_SYS_HZ/2)       /* Initial delay        */
 #define CONFIG_BOARD_EARLY_INIT_R      1
 
 #endif /* CONFIG_TQM8560 */
 
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
 /* CAN */
-#define CFG_CAN_BASE           (CFG_CCSRBAR \
+#define CONFIG_SYS_CAN_BASE            (CONFIG_SYS_CCSRBAR \
                                 + 0x03000000)  /* CAN base address     */
 #ifdef CONFIG_CAN_DRIVER
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 KiB address mask  */
-#define CFG_OR2_CAN            (CFG_CAN_OR_AM | OR_UPM_BI)
-#define CFG_BR2_CAN            ((CFG_CAN_BASE & BR_BA) | \
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 KiB address mask  */
+#define CONFIG_SYS_OR2_CAN             (CONFIG_SYS_CAN_OR_AM | OR_UPM_BI)
+#define CONFIG_SYS_BR2_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA) | \
                                 BR_PS_8 | BR_MS_UPMC | BR_V)
 #endif /* CONFIG_CAN_DRIVER */
 
 #define CONFIG_FSL_I2C                 /* Use FSL common I2C driver    */
 #define CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x48}  /* Don't probe these addrs      */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x48}  /* Don't probe these addrs      */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* I2C RTC */
 #define CONFIG_RTC_DS1337              /* Use ds1337 rtc via i2c       */
-#define CFG_I2C_RTC_ADDR       0x68    /* at address 0x68              */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68    /* at address 0x68              */
 
 /* I2C EEPROM */
 /*
  * EEPROM configuration for onboard EEPROM M24C32 (M24C64 should work also).
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x             */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write  */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
-#define CFG_I2C_MULTI_EEPROMS          1       /* more than one eeprom */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write  */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
+#define CONFIG_SYS_I2C_MULTI_EEPROMS           1       /* more than one eeprom */
 
 /* I2C SYSMON (LM75) */
 #define CONFIG_DTT_LM75                1               /* ON Semi's LM75       */
 #define CONFIG_DTT_SENSORS     {0}             /* Sensor addresses     */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 #ifndef CONFIG_PCIE1
 /* RapidIO MMU */
 #ifdef CONFIG_TQM_BIGFLASH
-#define CFG_RIO_MEM_BASE       0xb0000000      /* base address         */
-#define CFG_RIO_MEM_SIZE       0x10000000      /* 256M                 */
+#define CONFIG_SYS_RIO_MEM_BASE        0xb0000000      /* base address         */
+#define CONFIG_SYS_RIO_MEM_SIZE        0x10000000      /* 256M                 */
 #else /* !CONFIG_TQM_BIGFLASH */
-#define CFG_RIO_MEM_BASE       0xc0000000      /* base address         */
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 512M                 */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000      /* base address         */
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 512M                 */
 #endif /* CONFIG_TQM_BIGFLASH */
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
 #endif /* CONFIG_PCIE1 */
 
 /* NAND FLASH */
 #define        CONFIG_MTD_NAND_ECC_JFFS2       1       /* use JFFS2 ECC        */
 
 /* address distance between chip selects */
-#define        CFG_NAND_SELECT_DEVICE  1
-#define        CFG_NAND_CS_DIST        0x200
+#define        CONFIG_SYS_NAND_SELECT_DEVICE   1
+#define        CONFIG_SYS_NAND_CS_DIST 0x200
 
-#define CFG_NAND_SIZE          0x8000
-#define CFG_NAND0_BASE         (CFG_CCSRBAR + 0x03010000)
-#define CFG_NAND1_BASE         (CFG_NAND0_BASE + CFG_NAND_CS_DIST)
-#define CFG_NAND2_BASE         (CFG_NAND1_BASE + CFG_NAND_CS_DIST)
-#define CFG_NAND3_BASE         (CFG_NAND2_BASE + CFG_NAND_CS_DIST)
+#define CONFIG_SYS_NAND_SIZE           0x8000
+#define CONFIG_SYS_NAND0_BASE          (CONFIG_SYS_CCSRBAR + 0x03010000)
+#define CONFIG_SYS_NAND1_BASE          (CONFIG_SYS_NAND0_BASE + CONFIG_SYS_NAND_CS_DIST)
+#define CONFIG_SYS_NAND2_BASE          (CONFIG_SYS_NAND1_BASE + CONFIG_SYS_NAND_CS_DIST)
+#define CONFIG_SYS_NAND3_BASE          (CONFIG_SYS_NAND2_BASE + CONFIG_SYS_NAND_CS_DIST)
 
-#define CFG_MAX_NAND_DEVICE     2      /* Max number of NAND devices   */
+#define CONFIG_SYS_MAX_NAND_DEVICE     2       /* Max number of NAND devices   */
 #define NAND_MAX_CHIPS         1
 
-#if (CFG_MAX_NAND_DEVICE == 1)
-#define CFG_NAND_BASE_LIST { CFG_NAND0_BASE }
-#elif (CFG_MAX_NAND_DEVICE == 2)
-#define        CFG_NAND_QUIET_TEST     1
-#define CFG_NAND_BASE_LIST { CFG_NAND0_BASE, \
-                            CFG_NAND1_BASE, \
+#if (CONFIG_SYS_MAX_NAND_DEVICE == 1)
+#define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND0_BASE }
+#elif (CONFIG_SYS_MAX_NAND_DEVICE == 2)
+#define        CONFIG_SYS_NAND_QUIET_TEST      1
+#define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND0_BASE, \
+                            CONFIG_SYS_NAND1_BASE, \
 }
-#elif (CFG_MAX_NAND_DEVICE == 4)
-#define        CFG_NAND_QUIET_TEST     1
-#define CFG_NAND_BASE_LIST { CFG_NAND0_BASE, \
-                            CFG_NAND1_BASE, \
-                            CFG_NAND2_BASE, \
-                            CFG_NAND3_BASE, \
+#elif (CONFIG_SYS_MAX_NAND_DEVICE == 4)
+#define        CONFIG_SYS_NAND_QUIET_TEST      1
+#define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND0_BASE, \
+                            CONFIG_SYS_NAND1_BASE, \
+                            CONFIG_SYS_NAND2_BASE, \
+                            CONFIG_SYS_NAND3_BASE, \
 }
 #endif
 
 /* CS3 for NAND Flash */
-#define CFG_BR3_PRELIM         ((CFG_NAND0_BASE & BR_BA) | BR_PS_8 | \
+#define CONFIG_SYS_BR3_PRELIM          ((CONFIG_SYS_NAND0_BASE & BR_BA) | BR_PS_8 | \
                                 BR_MS_UPMB | BR_V)
-#define CFG_OR3_PRELIM         (P2SZ_TO_AM(CFG_NAND_SIZE) | OR_UPM_BI)
+#define CONFIG_SYS_OR3_PRELIM          (P2SZ_TO_AM(CONFIG_SYS_NAND_SIZE) | OR_UPM_BI)
 
 #define NAND_BIG_DELAY_US       25     /* max tR for Samsung devices   */
 
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M                 */
-#define CFG_PCI1_IO_BASE       (CFG_CCSRBAR + 0x02000000)
-#define CFG_PCI1_IO_PHYS       CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE       0x1000000       /*  16M                 */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M                 */
+#define CONFIG_SYS_PCI1_IO_BASE        (CONFIG_SYS_CCSRBAR + 0x02000000)
+#define CONFIG_SYS_PCI1_IO_PHYS        CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE        0x1000000       /*  16M                 */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 #ifdef CONFIG_PCIE1
 /*
  * Addresses are mapped 1-1.
  */
 #ifdef CONFIG_TQM_BIGFLASH
-#define CFG_PCIE1_MEM_BASE     0xb0000000
-#define CFG_PCIE1_MEM_SIZE     0x10000000      /* 512M                 */
-#define CFG_PCIE1_IO_BASE      0xaf000000
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xb0000000
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x10000000      /* 512M                 */
+#define CONFIG_SYS_PCIE1_IO_BASE       0xaf000000
 #else /* !CONFIG_TQM_BIGFLASH */
-#define CFG_PCIE1_MEM_BASE     0xc0000000
-#define CFG_PCIE1_MEM_SIZE     0x20000000      /* 512M                 */
-#define CFG_PCIE1_IO_BASE      0xef000000
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xc0000000
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x20000000      /* 512M                 */
+#define CONFIG_SYS_PCIE1_IO_BASE       0xef000000
 #endif /* CONFIG_TQM_BIGFLASH */
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_IO_PHYS      CFG_PCIE1_IO_BASE
-#define CFG_PCIE1_IO_SIZE      0x1000000       /* 16M                  */
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_IO_PHYS       CONFIG_SYS_PCIE1_IO_BASE
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x1000000       /* 16M                  */
 #endif /* CONFIG_PCIE1 */
 
 #if defined(CONFIG_PCI)
 #undef CONFIG_TULIP
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057 /* Motorola                     */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola                     */
 
 #endif /* CONFIG_PCI */
 
 
 #if defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 1)
 #define CONFIG_ETHER_ON_FCC1
-#define CFG_CMXFCR_MASK1       (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | \
+#define CONFIG_SYS_CMXFCR_MASK1        (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | \
                                 CMXFCR_TF1CS_MSK)
-#define CFG_CMXFCR_VALUE1      (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK12)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_VALUE1       (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK12)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 #endif
 
 #if defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
 #define CONFIG_ETHER_ON_FCC2
-#define CFG_CMXFCR_MASK2       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | \
+#define CONFIG_SYS_CMXFCR_MASK2        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | \
                                 CMXFCR_TF2CS_MSK)
-#define CFG_CMXFCR_VALUE2      (CMXFCR_RF2CS_CLK16 | CMXFCR_TF2CS_CLK13)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_VALUE2       (CMXFCR_RF2CS_CLK16 | CMXFCR_TF2CS_CLK13)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 #endif
 
 #if defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 3)
 #define CONFIG_ETHER_ON_FCC3
-#define CFG_CMXFCR_MASK3       (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | \
+#define CONFIG_SYS_CMXFCR_MASK3        (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | \
                                 CMXFCR_TF3CS_MSK)
-#define CFG_CMXFCR_VALUE3      (CMXFCR_RF3CS_CLK15 | CMXFCR_TF3CS_CLK14)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_VALUE3       (CMXFCR_RF3CS_CLK15 | CMXFCR_TF3CS_CLK14)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 #endif
 
 /*
 #else /* !CONFIG_TQM_FLASH_N_TYPE */
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* 128K (one sector) for env    */
 #endif /* CONFIG_TQM_FLASH_N_TYPE */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                0x2000
 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR - CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define        CONFIG_TIMESTAMP        /* Print image info with ts     */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
 
-#define CFG_PBSIZE     (CFG_CBSIZE + \
-                        sizeof(CFG_PROMPT) + 16)   /* Print Buf Size   */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks  */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + \
+                        sizeof(CONFIG_SYS_PROMPT) + 16)   /* Print Buf Size    */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index 23d0dd6c8976b0dcdaf381db46d67655c55e4d80..b67cdcd8918bb1fdee663a11e63679a5285cca07 100644 (file)
@@ -83,7 +83,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index e8d2ec43d70b76a0d9953173fe74cd7ff696c9a0..46852dd11402718258336ffaa839d61e89fc8f48 100644 (file)
@@ -83,7 +83,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (256 << 10)     /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x40000 /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x08000000      /* max 128 MB per bank  */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 10 column SDRAM */
-#define CFG_MAMR_10COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_10COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_2 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A9  |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 74c815b88a6e039ed95a7cf3cff52ff5403ebf00..a7fcb1aaf76bb1da196dd97100b1fb825dbf4c64 100644 (file)
@@ -86,7 +86,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 100 Mhz => 100.000.000 / Divider = 195
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index a5fc38db03bd213873e8484bf917bea82000df7a..bcf37d911c230d884a2d12ab359285e9b0a0b461 100644 (file)
@@ -86,7 +86,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x40000 /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 100 Mhz => 100.000.000 / Divider = 195
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 9e14d995ab9254526e17604bd98271b7d3511f28..87dc2649f7745e2011d37856b10f276608142a18 100644 (file)
 #define CONFIG_TQM866M         1       /* ...on a TQM8xxM module       */
 
 #define CONFIG_8xx_OSCLK               10000000        /*  10 MHz - PLL input clock    */
-#define CFG_8xx_CPUCLK_MIN             15000000        /*  15 MHz - CPU minimum clock  */
-#define CFG_8xx_CPUCLK_MAX             133000000       /* 133 MHz - CPU maximum clock  */
+#define CONFIG_SYS_8xx_CPUCLK_MIN              15000000        /*  15 MHz - CPU minimum clock  */
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000       /* 133 MHz - CPU maximum clock  */
 #define CONFIG_8xx_CPUCLK_DEFAULT      50000000        /*  50 MHz - CPU default clock  */
                                                /* (it will be used if there is no      */
                                                /* 'cpuclk' variable with valid value)  */
 
-#undef CFG_MEASURE_CPUCLK                      /* Measure real cpu clock       */
+#undef CONFIG_SYS_MEASURE_CPUCLK                       /* Measure real cpu clock       */
                                                /* (function measure_gclk()     */
                                                /* will be called)              */
-#ifdef CFG_MEASURE_CPUCLK
-#define CFG_8XX_XIN            10000000        /* measure_gclk() needs this    */
+#ifdef CONFIG_SYS_MEASURE_CPUCLK
+#define CONFIG_SYS_8XX_XIN             10000000        /* measure_gclk() needs this    */
 #endif
 
 #define CONFIG_8xx_CONS_SMC1   1       /* Console is on SMC1           */
@@ -95,7 +95,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
 #define I2C_DELAY      udelay(2)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x50            /* EEPROM AT24C256      */
-#define CFG_I2C_EEPROM_ADDR_LEN 2              /* two byte address     */
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* EEPROM AT24C256      */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2               /* two byte address     */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 /*
  * BOOTP options
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x40000 /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing: Default value of OR0 after reset
  */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM | OR_ACS_MSK | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM | OR_ACS_MSK | OR_BI | \
                                 OR_SCY_15_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define SDRAM_MAX_SIZE         (256 << 20)     /* max 256 MB per bank  */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_OR3_PRELIM CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define CFG_CAN_BASE           0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 4   Number of refresh cycles per period
  * 64  Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK        ((4096 * 64 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 64 * 1000) / (4 * 64))
 
 /*
  * Periodic timer (MAMR[PTx]) for 4 * 7.8 us refresh (= 31.2 us per quad)
  *
  *                        CPUclock(MHz) * 31.2
- * CFG_MAMR_PTA = -----------------------------------     with DFBRG = 0
+ * CONFIG_SYS_MAMR_PTA = -----------------------------------     with DFBRG = 0
  *                2^(2*SCCR[DFBRG]) * MPTPR_PTP_DIV16
  *
- * CPU clock =  15 MHz:  CFG_MAMR_PTA =  29   ->  4 * 7.73 us
- * CPU clock =  50 MHz:  CFG_MAMR_PTA =  97   ->  4 * 7.76 us
- * CPU clock =  66 MHz:  CFG_MAMR_PTA = 128   ->  4 * 7.75 us
- * CPU clock = 133 MHz:  CFG_MAMR_PTA = 255   ->  4 * 7.67 us
+ * CPU clock =  15 MHz:  CONFIG_SYS_MAMR_PTA =  29   ->  4 * 7.73 us
+ * CPU clock =  50 MHz:  CONFIG_SYS_MAMR_PTA =  97   ->  4 * 7.76 us
+ * CPU clock =  66 MHz:  CONFIG_SYS_MAMR_PTA = 128   ->  4 * 7.75 us
+ * CPU clock = 133 MHz:  CONFIG_SYS_MAMR_PTA = 255   ->  4 * 7.67 us
  *
  * Value 97 is for 4 * 7.8 us at 50 MHz. So the refresh cycle requirement will
  * be met also in the default configuration, i.e. if environment variable
  * 'cpuclk' is not set.
  */
-#define CFG_MAMR_PTA           97
+#define CONFIG_SYS_MAMR_PTA            97
 
 /*
  * Memory Periodic Timer Prescaler Register (MPTPR) values.
  */
 /* 4 * 7.8 us refresh (= 31.2 us per quad) at 50 MHz and PTA = 97 */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16
 /* 4 * 3.9 us refresh (= 15.6 us per quad) at 50 MHz and PTA = 97 */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 10 column SDRAM */
-#define CFG_MAMR_10COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_10COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_2 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A9  |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 66f4a982ddb34ca58d39c84fbcdc8c7999f599b0..942bbf604bcbdb9e17cbb71fa74e54a2d24a0983 100644 (file)
@@ -40,8 +40,8 @@
 #define CONFIG_TQM885D         1       /* ...on a TQM88D module        */
 
 #define CONFIG_8xx_OSCLK               10000000        /*  10 MHz - PLL input clock    */
-#define CFG_8xx_CPUCLK_MIN             15000000        /*  15 MHz - CPU minimum clock  */
-#define CFG_8xx_CPUCLK_MAX             133000000       /* 133 MHz - CPU maximum clock  */
+#define CONFIG_SYS_8xx_CPUCLK_MIN              15000000        /*  15 MHz - CPU minimum clock  */
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000       /* 133 MHz - CPU maximum clock  */
 #define CONFIG_8xx_CPUCLK_DEFAULT      66000000        /*  66 MHz - CPU default clock  */
                                                /* (it will be used if there is no      */
                                                /* 'cpuclk' variable with valid value)  */
@@ -89,7 +89,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
 #define I2C_DELAY      udelay(2)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x50            /* EEPROM AT24C??       */
-#define CFG_I2C_EEPROM_ADDR_LEN 2              /* two byte address     */
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* EEPROM AT24C??       */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2               /* two byte address     */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 # define CONFIG_RTC_DS1337 1
-# define CFG_I2C_RTC_ADDR 0x68
+# define CONFIG_SYS_I2C_RTC_ADDR 0x68
 
 /*
  * BOOTP options
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0100000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0300000       /* 1 ... 3 MB in DRAM   */
-#define CFG_ALT_MEMTEST                                /* alternate, more extensive
+#define CONFIG_SYS_MEMTEST_START       0x0100000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0300000       /* 1 ... 3 MB in DRAM   */
+#define CONFIG_SYS_ALT_MEMTEST                         /* alternate, more extensive
                                                   memory test.*/
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Enable loopw command.
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x40000 /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing: Default value of OR0 after reset
  */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM | OR_ACS_MSK | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM | OR_ACS_MSK | OR_BI | \
                                 OR_SCY_6_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define SDRAM_MAX_SIZE         (256 << 20)     /* max 256 MB per bank  */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef CONFIG_CAN_DRIVER
-#define CFG_OR3_PRELIM CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define CFG_CAN_BASE           0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 4   Number of refresh cycles per period
  * 64  Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK        ((4096 * 64 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 64 * 1000) / (4 * 64))
 
 /*
  * Periodic timer (MAMR[PTx]) for 4 * 7.8 us refresh (= 31.2 us per quad)
  *
  *                        CPUclock(MHz) * 31.2
- * CFG_MAMR_PTA = -----------------------------------     with DFBRG = 0
+ * CONFIG_SYS_MAMR_PTA = -----------------------------------     with DFBRG = 0
  *                2^(2*SCCR[DFBRG]) * MPTPR_PTP_DIV16
  *
- * CPU clock =  15 MHz:  CFG_MAMR_PTA =  29   ->  4 * 7.73 us
- * CPU clock =  50 MHz:  CFG_MAMR_PTA =  97   ->  4 * 7.76 us
- * CPU clock =  66 MHz:  CFG_MAMR_PTA = 128   ->  4 * 7.75 us
- * CPU clock = 133 MHz:  CFG_MAMR_PTA = 255   ->  4 * 7.67 us
+ * CPU clock =  15 MHz:  CONFIG_SYS_MAMR_PTA =  29   ->  4 * 7.73 us
+ * CPU clock =  50 MHz:  CONFIG_SYS_MAMR_PTA =  97   ->  4 * 7.76 us
+ * CPU clock =  66 MHz:  CONFIG_SYS_MAMR_PTA = 128   ->  4 * 7.75 us
+ * CPU clock = 133 MHz:  CONFIG_SYS_MAMR_PTA = 255   ->  4 * 7.67 us
  *
  * Value 97 is for 4 * 7.8 us at 50 MHz. So the refresh cycle requirement will
  * be met also in the default configuration, i.e. if environment variable
  * 'cpuclk' is not set.
  */
-#define CFG_MAMR_PTA           128
+#define CONFIG_SYS_MAMR_PTA            128
 
 /*
  * Memory Periodic Timer Prescaler Register (MPTPR) values.
  */
 /* 4 * 7.8 us refresh (= 31.2 us per quad) at 50 MHz and PTA = 97 */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16
 /* 4 * 3.9 us refresh (= 15.6 us per quad) at 50 MHz and PTA = 97 */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 10 column SDRAM */
-#define CFG_MAMR_10COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_10COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_2 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A9  |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 #define CONFIG_ETHER_ON_FEC2           /* ... for FEC2 */
 
 #if defined(CONFIG_CMD_MII)
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII_INIT        1
 #endif
 
index 19b3be7dba814b18074109b3a867ecf5bcf76170..75d1985ff3c8279ce0066b3d1e0ead3897a47a2b 100644 (file)
@@ -43,7 +43,7 @@
 #define CONFIG_MPC5xxx         1       /* This is an MPC5xxx CPU */
 #define CONFIG_TOTAL5200       1       /* ... on Total5200 board */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -55,7 +55,7 @@
  */
 #define CONFIG_PSC_CONSOLE     3       /* console is on PSC3 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * Video console
@@ -95,7 +95,7 @@
 #define CONFIG_NET_MULTI       1
 #define CONFIG_MII             1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 
 #else  /* MGT5100 */
 
 
 #if (TEXT_BASE == 0xFE000000)          /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 #endif
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         1       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          1       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
 #if CONFIG_TOTAL5200_REV==2
-#   define CFG_MAX_FLASH_BANKS 3       /* max num of flash banks */
-#   define CFG_FLASH_BANKS_LIST { CFG_CS5_START, CFG_CS4_START, CFG_BOOTCS_START }
+#   define CONFIG_SYS_MAX_FLASH_BANKS  3       /* max num of flash banks */
+#   define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_CS5_START, CONFIG_SYS_CS4_START, CONFIG_SYS_BOOTCS_START }
 #else
-#   define CFG_MAX_FLASH_BANKS 1       /* max num of flash banks  */
-#   define CFG_FLASH_BANKS_LIST { CFG_BOOTCS_START }
+#   define CONFIG_SYS_MAX_FLASH_BANKS  1       /* max num of flash banks  */
+#   define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_BOOTCS_START }
 #endif
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
 #if CONFIG_TOTAL5200_REV==1
-#   define CFG_FLASH_BASE      0xFE000000
-#   define CFG_FLASH_SIZE      0x02000000
+#   define CONFIG_SYS_FLASH_BASE       0xFE000000
+#   define CONFIG_SYS_FLASH_SIZE       0x02000000
 #elif CONFIG_TOTAL5200_REV==2
-#   define CFG_FLASH_BASE      0xFA000000
-#   define CFG_FLASH_SIZE      0x06000000
+#   define CONFIG_SYS_FLASH_BASE       0xFA000000
+#   define CONFIG_SYS_FLASH_SIZE       0x06000000
 #endif /* CONFIG_TOTAL5200_REV */
 
-#if defined(CFG_LOWBOOT)
+#if defined(CONFIG_SYS_LOWBOOT)
 #   define CONFIG_ENV_ADDR             0xFE040000
-#else  /* CFG_LOWBOOT */
+#else  /* CONFIG_SYS_LOWBOOT */
 #   define CONFIG_ENV_ADDR             0xFFF40000
-#endif /* CFG_LOWBOOT */
+#endif /* CONFIG_SYS_LOWBOOT */
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
-#define CFG_MBAR               0xF0000000      /*   64 kB */
-#define CFG_FPGA_BASE          0xF0010000      /*   64 kB */
-#define CFG_CPLD_BASE          0xF0020000      /*   64 kB */
-#define CFG_LCD_BASE           0xF1000000      /* 4096 kB */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000      /*   64 kB */
+#define CONFIG_SYS_FPGA_BASE           0xF0010000      /*   64 kB */
+#define CONFIG_SYS_CPLD_BASE           0xF0020000      /*   64 kB */
+#define CONFIG_SYS_LCD_BASE            0xF1000000      /* 4096 kB */
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  * PSC1:  reset default, changed in AC'97 driver                 000
  *
  */
-#define CFG_GPS_PORT_CONFIG    0x00000C10
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x00000C10
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
 #if defined (CONFIG_MGT5100)
 #endif
 
 #if CONFIG_TOTAL5200_REV==1
-#   define CFG_BOOTCS_START    CFG_FLASH_BASE
-#   define CFG_BOOTCS_SIZE     0x02000000      /* 32 MB */
-#   define CFG_BOOTCS_CFG      0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
-#   define CFG_CS0_START       CFG_FLASH_BASE
-#   define CFG_CS0_SIZE                0x02000000      /* 32 MB */
+#   define CONFIG_SYS_BOOTCS_START     CONFIG_SYS_FLASH_BASE
+#   define CONFIG_SYS_BOOTCS_SIZE      0x02000000      /* 32 MB */
+#   define CONFIG_SYS_BOOTCS_CFG       0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
+#   define CONFIG_SYS_CS0_START        CONFIG_SYS_FLASH_BASE
+#   define CONFIG_SYS_CS0_SIZE         0x02000000      /* 32 MB */
 #else
-#   define CFG_BOOTCS_START    (CFG_CS4_START + CFG_CS4_SIZE)
-#   define CFG_BOOTCS_SIZE     0x02000000      /* 32 MB */
-#   define CFG_BOOTCS_CFG      0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
-#   define CFG_CS4_START       (CFG_CS5_START + CFG_CS5_SIZE)
-#   define CFG_CS4_SIZE                0x02000000      /* 32 MB */
-#   define CFG_CS4_CFG         0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
-#   define CFG_CS5_START       CFG_FLASH_BASE
-#   define CFG_CS5_SIZE                0x02000000      /* 32 MB */
-#   define CFG_CS5_CFG         0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
+#   define CONFIG_SYS_BOOTCS_START     (CONFIG_SYS_CS4_START + CONFIG_SYS_CS4_SIZE)
+#   define CONFIG_SYS_BOOTCS_SIZE      0x02000000      /* 32 MB */
+#   define CONFIG_SYS_BOOTCS_CFG       0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
+#   define CONFIG_SYS_CS4_START        (CONFIG_SYS_CS5_START + CONFIG_SYS_CS5_SIZE)
+#   define CONFIG_SYS_CS4_SIZE         0x02000000      /* 32 MB */
+#   define CONFIG_SYS_CS4_CFG          0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
+#   define CONFIG_SYS_CS5_START        CONFIG_SYS_FLASH_BASE
+#   define CONFIG_SYS_CS5_SIZE         0x02000000      /* 32 MB */
+#   define CONFIG_SYS_CS5_CFG          0x0004DF00      /* 4WS, MX, AL, CE, AS_25, DS_32 */
 #endif
 
-#define CFG_CS1_START          CFG_FPGA_BASE
-#define CFG_CS1_SIZE           0x00010000      /* 64 kB */
-#define CFG_CS1_CFG            0x0019FF00      /* 25WS, MX, AL, AA, CE, AS_25, DS_32 */
+#define CONFIG_SYS_CS1_START           CONFIG_SYS_FPGA_BASE
+#define CONFIG_SYS_CS1_SIZE            0x00010000      /* 64 kB */
+#define CONFIG_SYS_CS1_CFG             0x0019FF00      /* 25WS, MX, AL, AA, CE, AS_25, DS_32 */
 
-#define CFG_CS2_START          CFG_LCD_BASE
-#define CFG_CS2_SIZE           0x00400000      /* 4096 kB */
-#define CFG_CS2_CFG            0x0032FD0C      /* 50WS, MX, AL, AA, CE, AS_25, DS_16, endian swapping */
+#define CONFIG_SYS_CS2_START           CONFIG_SYS_LCD_BASE
+#define CONFIG_SYS_CS2_SIZE            0x00400000      /* 4096 kB */
+#define CONFIG_SYS_CS2_CFG             0x0032FD0C      /* 50WS, MX, AL, AA, CE, AS_25, DS_16, endian swapping */
 
 #if CONFIG_TOTAL5200_REV==1
-#   define CFG_CS3_START       CFG_CPLD_BASE
-#   define CFG_CS3_SIZE                0x00010000      /* 64 kB */
-#   define CFG_CS3_CFG         0x000ADF00      /* 10WS, MX, AL, CE, AS_25, DS_32 */
+#   define CONFIG_SYS_CS3_START        CONFIG_SYS_CPLD_BASE
+#   define CONFIG_SYS_CS3_SIZE         0x00010000      /* 64 kB */
+#   define CONFIG_SYS_CS3_CFG          0x000ADF00      /* 10WS, MX, AL, CE, AS_25, DS_32 */
 #else
-#   define CFG_CS3_START       CFG_CPLD_BASE
-#   define CFG_CS3_SIZE                0x00010000      /* 64 kB */
-#   define CFG_CS3_CFG         0x000AD800      /* 10WS, MX, AL, CE, AS_24, DS_8 */
+#   define CONFIG_SYS_CS3_START        CONFIG_SYS_CPLD_BASE
+#   define CONFIG_SYS_CS3_SIZE         0x00010000      /* 64 kB */
+#   define CONFIG_SYS_CS3_CFG          0x000AD800      /* 10WS, MX, AL, CE, AS_24, DS_8 */
 #endif
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define        CONFIG_IDE_RESET                /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                                */
-#define CFG_ATA_STRIDE          4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #endif /* __CONFIG_H */
index aeb649e190f1313252f201027b0a23fac3b6f19e..0bc2f6889956f6df750f899a589a6d36d40c7a29 100644 (file)
 #define CONFIG_CMD_BSP
 
 
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 /***********************************************************
  * I2C stuff:
  * the MPL VCMA9 is equipped with an ATMEL 24C256 EEPROM at
  * address 0x50 with 16bit addressing
  ***********************************************************/
 #define CONFIG_HARD_I2C                        /* I2C with hardware support */
-#define CFG_I2C_SPEED          100000  /* I2C speed */
-#define CFG_I2C_SLAVE          0x7F    /* I2C slave addr */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed */
+#define CONFIG_SYS_I2C_SLAVE           0x7F    /* I2C slave addr */
 
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN        2
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* use EEPROM for environment vars */
 #define CONFIG_ENV_OFFSET              0x000   /* environment starts at offset 0 */
 #define CONFIG_ENV_SIZE                0x800   /* 2KB should be more than enough */
 
-#undef CFG_I2C_EEPROM_ADDR_OVERFLOW
-#define CFG_EEPROM_PAGE_WRITE_BITS 6   /* 64 bytes page write mode on 24C256 */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#undef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6    /* 64 bytes page write mode on 24C256 */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /*
  * Size of malloc() pool
  */
 /*#define CONFIG_MALLOC_SIZE   (CONFIG_ENV_SIZE + 128*1024)*/
-#define CFG_GBL_DATA_SIZE      128             /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* size in bytes reserved for initial data */
 
-#define CFG_MONITOR_LEN                (256 * 1024)
-#define CFG_MALLOC_LEN         (1024 * 1024)   /* BUNZIP2 needs a lot of RAM */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)   /* BUNZIP2 needs a lot of RAM */
 
 /*
  * Hardware drivers
 #define CONFIG_DOS_PARTITION   1
 
 /* Enable needed helper functions */
-#define CFG_DEVICE_DEREGISTER          /* needs device_deregister */
+#define CONFIG_SYS_DEVICE_DEREGISTER           /* needs device_deregister */
 
 /************************************************************
  * RTC
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "VCMA9 # "      /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "VCMA9 # "      /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x30000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x30F80000      /* 15.5 MB in DRAM      */
+#define CONFIG_SYS_MEMTEST_START       0x30000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x30F80000      /* 15.5 MB in DRAM      */
 
-#define CFG_ALT_MEMTEST
-#define        CFG_LOAD_ADDR           0x30800000      /* default load address */
+#define CONFIG_SYS_ALT_MEMTEST
+#define        CONFIG_SYS_LOAD_ADDR            0x30800000      /* default load address */
 
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
 /* we configure PWM Timer 4 to 1us ~ 1MHz */
-/*#define      CFG_HZ                  1000000 */
-#define        CFG_HZ                  1562500
+/*#define      CONFIG_SYS_HZ                   1000000 */
+#define        CONFIG_SYS_HZ                   1562500
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /* support BZIP2 compression */
 #define CONFIG_BZIP2           1
 #define PHYS_SDRAM_1           0x30000000 /* SDRAM Bank #1 */
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
 #define CONFIG_AMD_LV800       1       /* uncomment this if you have a LV800 flash */
 #endif
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
 #ifdef CONFIG_AMD_LV800
 #define PHYS_FLASH_SIZE                0x00100000 /* 1MB */
-#define CFG_MAX_FLASH_SECT     (19)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x0F0000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (19)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x0F0000) /* addr of environment */
 #endif
 #ifdef CONFIG_AMD_LV400
 #define PHYS_FLASH_SIZE                0x00080000 /* 512KB */
-#define CFG_MAX_FLASH_SECT     (11)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x070000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (11)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x070000) /* addr of environment */
 #endif
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #if 0
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #endif
 
 
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #define MULTI_PURPOSE_SOCKET_ADDR 0x08000000
 
 #if defined(CONFIG_CMD_NAND)
 
 #define CONFIG_NAND_LEGACY
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
 #define SECTORSIZE 512
 
 #define ADDR_COLUMN 1
index 93d049f4064f501cd618ffe03f77f9b83978c00b..fb1febc5c9540c8b8342ff0d9bf11973814fcaaf 100644 (file)
@@ -50,7 +50,7 @@
 
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818            /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000500 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000500 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef  CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD       691200
+#undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #define CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE }
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE }
 #define NAND_MAX_CHIPS          1
-#define CFG_MAX_NAND_DEVICE    1         /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1         /* Max number of NAND devices */
 #define NAND_BIG_DELAY_US      25
 
-#define CFG_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
-#define CFG_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
-#define CFG_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
-#define CFG_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
+#define CONFIG_SYS_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
 
-#define CFG_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
-#define CFG_NAND_QUIET          1
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1       /* ".i" read skips bad blocks   */
+#define CONFIG_SYS_NAND_QUIET          1
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_CONFIG_HOST_BRIDGE 1 /* don't skip host bridge config*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #define CONFIG_IDE_RESET       1       /* reset for ide supported      */
 
-#define CFG_IDE_MAXBUS         2               /* max. 2 IDE busses    */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          2               /* max. 2 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0xF0100000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_IDE1_OFFSET    0x0010
+#define CONFIG_SYS_ATA_BASE_ADDR       0xF0100000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0x0010
 
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O                  */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses  */
-#define CFG_ATA_ALT_OFFSET     0x0000  /* Offset for alternate registers       */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O                  */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0000  /* Offset for alternate registers       */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 #define FLASH_BASE0_PRELIM     0xFFC00000      /* FLASH bank #0        */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFF80000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Monitor   */
-#define CFG_MALLOC_LEN         (2 * 1024*1024) /* Reserve 2 MB for malloc()    */
-
-#if (CFG_MONITOR_BASE < FLASH_BASE0_PRELIM)
-# define CFG_RAMBOOT           1
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFF80000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (2 * 1024*1024) /* Reserve 2 MB for malloc()    */
+
+#if (CONFIG_SYS_MONITOR_BASE < FLASH_BASE0_PRELIM)
+# define CONFIG_SYS_RAMBOOT            1
 #else
-# undef CFG_RAMBOOT
+# undef CONFIG_SYS_RAMBOOT
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_SIZE                0x700   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT24WC08             */
-#define CFG_EEPROM_WREN         1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT24WC08             */
+#define CONFIG_SYS_EEPROM_WREN         1
 
 /* CAT24WC32/64... */
-#define CFG_I2C_EEPROM_ADDR_LEN 2      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x01
-#define CFG_EEPROM_PAGE_WRITE_BITS 5   /* The Catalyst CAT24WC32 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x01
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5    /* The Catalyst CAT24WC32 has   */
                                        /* 32 byte page write mode using*/
                                        /* last 5 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
 #define DUART1_BA      0xF0000408          /* DUART Base Address               */
 #define RTC_BA         0xF0000500          /* RTC Base Address                 */
 #define VGA_BA         0xF1000000          /* Epson VGA Base Address           */
-#define CFG_NAND_BASE  0xF4000000          /* NAND FLASH Base Address          */
+#define CONFIG_SYS_NAND_BASE   0xF4000000          /* NAND FLASH Base Address          */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-/*#define CFG_EBC_PB0AP                  0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+/*#define CONFIG_SYS_EBC_PB0AP           0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization             */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (16 Bit Peripheral: FPGA internal, dig. IO) initialization    */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 4 (Epson VGA) initialization                                    */
-#define CFG_EBC_PB4AP  0x03805380   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=0 */
-#define CFG_EBC_PB4CR  VGA_BA | 0x7A000    /* BAS=0xF10,BS=8MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB4AP   0x03805380   /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=0 */
+#define CONFIG_SYS_EBC_PB4CR   VGA_BA | 0x7A000    /* BAS=0xF10,BS=8MB,BU=R/W,BW=16bit */
 
 /*-----------------------------------------------------------------------
  * LCD Setup
  */
 
-#define CFG_LCD_BIG_MEM         0xF1200000  /* Epson S1D13806 Mem Base Address  */
-#define CFG_LCD_BIG_REG         0xF1000000  /* Epson S1D13806 Reg Base Address  */
-#define CFG_LCD_SMALL_MEM       0xF1400000  /* Epson S1D13704 Mem Base Address  */
-#define CFG_LCD_SMALL_REG       0xF140FFE0  /* Epson S1D13704 Reg Base Address  */
+#define CONFIG_SYS_LCD_BIG_MEM         0xF1200000  /* Epson S1D13806 Mem Base Address  */
+#define CONFIG_SYS_LCD_BIG_REG         0xF1000000  /* Epson S1D13806 Reg Base Address  */
+#define CONFIG_SYS_LCD_SMALL_MEM       0xF1400000  /* Epson S1D13704 Mem Base Address  */
+#define CONFIG_SYS_LCD_SMALL_REG       0xF140FFE0  /* Epson S1D13704 Reg Base Address  */
 
-#define CFG_VIDEO_LOGO_MAX_SIZE (1 << 20)
+#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (1 << 20)
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
 
-#define CFG_FPGA_BASE_ADDR 0xF0100100      /* FPGA internal Base Address       */
+#define CONFIG_SYS_FPGA_BASE_ADDR 0xF0100100       /* FPGA internal Base Address       */
 
 /* FPGA internal regs */
-#define CFG_FPGA_CTRL          0x000
+#define CONFIG_SYS_FPGA_CTRL           0x000
 
 /* FPGA Control Reg */
-#define CFG_FPGA_CTRL_CF_RESET 0x0001
-#define CFG_FPGA_CTRL_WDI      0x0002
-#define CFG_FPGA_CTRL_PS2_RESET 0x0020
+#define CONFIG_SYS_FPGA_CTRL_CF_RESET  0x0001
+#define CONFIG_SYS_FPGA_CTRL_WDI       0x0002
+#define CONFIG_SYS_FPGA_CTRL_PS2_RESET 0x0020
 
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      128*1024    /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs -> GPIO
  */
-#define CFG_GPIO0_OSRH         0x00000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-#define CFG_GPIO0_ISR1L                0x15555440
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0x777E0017
-
-#define CFG_DUART_RST          (0x80000000 >> 14)
-#define CFG_LCD_ENDIAN         (0x80000000 >> 7)
-#define CFG_IIC_ON             (0x80000000 >> 8)
-#define CFG_LCD0_RST           (0x80000000 >> 30)
-#define CFG_LCD1_RST           (0x80000000 >> 31)
-#define CFG_EEPROM_WP          (0x80000000 >> 0)
+#define CONFIG_SYS_GPIO0_OSRH          0x00000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555440
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0x777E0017
+
+#define CONFIG_SYS_DUART_RST           (0x80000000 >> 14)
+#define CONFIG_SYS_LCD_ENDIAN          (0x80000000 >> 7)
+#define CONFIG_SYS_IIC_ON              (0x80000000 >> 8)
+#define CONFIG_SYS_LCD0_RST            (0x80000000 >> 30)
+#define CONFIG_SYS_LCD1_RST            (0x80000000 >> 31)
+#define CONFIG_SYS_EEPROM_WP           (0x80000000 >> 0)
 
 /*
  * Internal Definitions
index 5c147306c6d8227acdb70cee925d4251c8f0a017..b6e35888110486cc4a86630e696a91975a695876 100644 (file)
@@ -48,7 +48,7 @@
 
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI       1
 #undef  CONFIG_HAS_ETH1
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #undef CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*
  * FLASH organization
  */
 #define FLASH_BASE0_PRELIM     0xFFC00000      /* FLASH bank #0        */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
-
-#if (CFG_MONITOR_BASE < FLASH_BASE0_PRELIM)
-# define CFG_RAMBOOT           1
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
+
+#if (CONFIG_SYS_MONITOR_BASE < FLASH_BASE0_PRELIM)
+# define CONFIG_SYS_RAMBOOT            1
 #else
-# undef CFG_RAMBOOT
+# undef CONFIG_SYS_RAMBOOT
 #endif
 
 /*
 #define CONFIG_ENV_SIZE                0x700   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * External Bus Controller (EBC) Setup
 #define CAN_BA         0xF0000000          /* CAN Base Address                 */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization             */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /*
  * FPGA stuff
  */
-#define CFG_FPGA_XC95XL                1           /* using Xilinx XC95XL CPLD      */
-#define CFG_FPGA_MAX_SIZE      32*1024     /* 32kByte is enough for CPLD    */
+#define CONFIG_SYS_FPGA_XC95XL         1           /* using Xilinx XC95XL CPLD      */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024     /* 32kByte is enough for CPLD    */
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* JTAG TMS pin (ppc output)     */
-#define CFG_FPGA_CLK           0x02000000  /* JTAG TCK pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
-#define CFG_FPGA_INIT          0x00010000  /* unused (ppc input)            */
-#define CFG_FPGA_DONE          0x00008000  /* JTAG TDI->TDO pin (ppc input) */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* JTAG TMS pin (ppc output)     */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* JTAG TCK pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* JTAG TDO->TDI data pin (ppc output) */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* unused (ppc input)            */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* JTAG TDI->TDO pin (ppc input) */
 
 /*
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Definitions for GPIO setup (PPC405EP specific)
 /* GPIO Output:                OSR=00, ISR=00, TSR=00, TCR=1 */
 /* Alt. Funtion Input: OSR=00, ISR=01, TSR=00, TCR=0 */
 /* Alt. Funtion Output: OSR=01, ISR=00, TSR=00, TCR=1 */
-#define CFG_GPIO0_OSRH         0x40000500  /*  0 ... 15 */
-#define CFG_GPIO0_OSRL         0x00000110  /* 16 ... 31 */
-#define CFG_GPIO0_ISR1H                0x00000000  /*  0 ... 15 */
-#define CFG_GPIO0_ISR1L                0x14000045  /* 16 ... 31 */
-#define CFG_GPIO0_TSRH         0x00000000  /*  0 ... 15 */
-#define CFG_GPIO0_TSRL         0x00000000  /* 16 ... 31 */
-#define CFG_GPIO0_TCR          0xF7FE0014  /*  0 ... 31 */
+#define CONFIG_SYS_GPIO0_OSRH          0x40000500  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_ISR1L         0x14000045  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000  /*  0 ... 15 */
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000  /* 16 ... 31 */
+#define CONFIG_SYS_GPIO0_TCR           0xF7FE0014  /*  0 ... 31 */
 
 /*
  * Internal Definitions
index f72da78dcc44c23c338572661ff4f0f3af1a6d9b..982f8d8010d96f55dda51e4b57d0a7cc3fffb723 100644 (file)
 #define CONFIG_LOADS_ECHO              1
 
 /* don't allow baudrate change */
-#undef CFG_LOADS_BAUD_CHANGE
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE
 
 /* supported baudrates */
-#define CFG_BAUDRATE_TABLE             { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE              { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * select ethernet configuration
 #define        CONFIG_ETHER_INDEX              1
 
 /* Marvell Switch SMI base addr */
-#define CFG_PHY_ADDR                   0x10
+#define CONFIG_SYS_PHY_ADDR                    0x10
 
 /* FCC1 RMII REFCLK is CLK10 */
-#define CFG_CMXFCR_VALUE               CMXFCR_TF1CS_CLK10
-#define CFG_CMXFCR_MASK                        (CMXFCR_FC1|CMXFCR_TF1CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE                CMXFCR_TF1CS_CLK10
+#define CONFIG_SYS_CMXFCR_MASK                 (CMXFCR_FC1|CMXFCR_TF1CS_MSK)
 
 /* BDs and buffers on 60x bus */
-#define CFG_CPMFCR_RAMTYPE             0
+#define CONFIG_SYS_CPMFCR_RAMTYPE              0
 
 /* Local Protect, Full duplex, Flowcontrol, RMII */
-#define CFG_FCC_PSMR                   (FCC_PSMR_LPB|FCC_PSMR_FDE|\
+#define CONFIG_SYS_FCC_PSMR                    (FCC_PSMR_LPB|FCC_PSMR_FDE|\
                                         FCC_PSMR_FCE|FCC_PSMR_RMII)
 
 /* bit-bang MII PHY management */
 #define CONFIG_BITBANGMII
 
 #define MDIO_PORT                      1               /* Port B */
-#define CFG_MDIO_PIN                   0x00002000      /* PB18 */
-#define CFG_MDC_PIN                    0x00001000      /* PB19 */
-#define MDIO_ACTIVE                    (iop->pdir |=  CFG_MDIO_PIN)
-#define MDIO_TRISTATE                  (iop->pdir &= ~CFG_MDIO_PIN)
-#define MDIO_READ                      ((iop->pdat &  CFG_MDIO_PIN) != 0)
-#define MDIO(bit)                      if(bit) iop->pdat |=  CFG_MDIO_PIN; \
-                                       else    iop->pdat &= ~CFG_MDIO_PIN
-#define MDC(bit)                       if(bit) iop->pdat |=  CFG_MDC_PIN; \
-                                       else    iop->pdat &= ~CFG_MDC_PIN
+#define CONFIG_SYS_MDIO_PIN                    0x00002000      /* PB18 */
+#define CONFIG_SYS_MDC_PIN                     0x00001000      /* PB19 */
+#define MDIO_ACTIVE                    (iop->pdir |=  CONFIG_SYS_MDIO_PIN)
+#define MDIO_TRISTATE                  (iop->pdir &= ~CONFIG_SYS_MDIO_PIN)
+#define MDIO_READ                      ((iop->pdat &  CONFIG_SYS_MDIO_PIN) != 0)
+#define MDIO(bit)                      if(bit) iop->pdat |=  CONFIG_SYS_MDIO_PIN; \
+                                       else    iop->pdat &= ~CONFIG_SYS_MDIO_PIN
+#define MDC(bit)                       if(bit) iop->pdat |=  CONFIG_SYS_MDC_PIN; \
+                                       else    iop->pdat &= ~CONFIG_SYS_MDC_PIN
 #define MIIDELAY                       udelay(1)
 
 #endif
  */
 
 /* undef to save memory */
-#define        CFG_LONGHELP
+#define        CONFIG_SYS_LONGHELP
 
 /* monitor command prompt */
-#define        CFG_PROMPT                      "=> "
+#define        CONFIG_SYS_PROMPT                       "=> "
 
 /* console i/o buffer size */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE                      1024
+#define        CONFIG_SYS_CBSIZE                       1024
 #else
-#define        CFG_CBSIZE                      256
+#define        CONFIG_SYS_CBSIZE                       256
 #endif
 
 /* print buffer size */
-#define        CFG_PBSIZE                      (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define        CONFIG_SYS_PBSIZE                       (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
 /* max number of command args */
-#define        CFG_MAXARGS                     16
+#define        CONFIG_SYS_MAXARGS                      16
 
 /* boot argument buffer size */
-#define CFG_BARGSIZE                   CFG_CBSIZE
+#define CONFIG_SYS_BARGSIZE                    CONFIG_SYS_CBSIZE
 
 /* memtest works on */
-#define CFG_MEMTEST_START              0x00100000
+#define CONFIG_SYS_MEMTEST_START               0x00100000
 /* 1 ... 15 MB in DRAM */
-#define CFG_MEMTEST_END                        0x00f00000
+#define CONFIG_SYS_MEMTEST_END                 0x00f00000
 /* full featured memtest */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
 /* default load address */
-#define        CFG_LOAD_ADDR                   0x00100000
+#define        CONFIG_SYS_LOAD_ADDR                    0x00100000
 
 /* decrementer freq: 1 ms ticks        */
-#define        CFG_HZ                          1000
+#define        CONFIG_SYS_HZ                           1000
 
 /* configure flash */
-#define CFG_FLASH_BASE                 0xff800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             64
-#define CFG_FLASH_SIZE                 8
-#undef CFG_FLASH_16BIT
-#define CFG_FLASH_ERASE_TOUT           240000
-#define CFG_FLASH_WRITE_TOUT           500
-#define CFG_FLASH_LOCK_TOUT            500
-#define CFG_FLASH_UNLOCK_TOUT          10000
-#define CFG_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_BASE                  0xff800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              64
+#define CONFIG_SYS_FLASH_SIZE                  8
+#undef CONFIG_SYS_FLASH_16BIT
+#define CONFIG_SYS_FLASH_ERASE_TOUT            240000
+#define CONFIG_SYS_FLASH_WRITE_TOUT            500
+#define CONFIG_SYS_FLASH_LOCK_TOUT             500
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT           10000
+#define CONFIG_SYS_FLASH_PROTECTION
 
 /* monitor in flash */
-#define CFG_MONITOR_OFFSET             0x00700000
+#define CONFIG_SYS_MONITOR_OFFSET              0x00700000
 
 /* environment in flash */
 #define CONFIG_ENV_IS_IN_FLASH         1
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + 0x00020000)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + 0x00020000)
 #define CONFIG_ENV_SIZE                        0x00020000
 #define CONFIG_ENV_SECT_SIZE           0x00020000
 
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ                  (8 << 20)
+#define CONFIG_SYS_BOOTMAPSZ                   (8 << 20)
 
 /* hard reset configuration words */
 #ifdef CONFIG_CLKIN_66MHz
-#define CFG_HRCW_MASTER                        0x04643050
+#define CONFIG_SYS_HRCW_MASTER                 0x04643050
 #else
 #error NO HRCW FOR 100MHZ SPECIFIED !!!
 #endif
-#define CFG_HRCW_SLAVE1                        0x00000000
-#define CFG_HRCW_SLAVE2                        0x00000000
-#define CFG_HRCW_SLAVE3                        0x00000000
-#define CFG_HRCW_SLAVE4                        0x00000000
-#define CFG_HRCW_SLAVE5                        0x00000000
-#define CFG_HRCW_SLAVE6                        0x00000000
-#define CFG_HRCW_SLAVE7                        0x00000000
+#define CONFIG_SYS_HRCW_SLAVE1                 0x00000000
+#define CONFIG_SYS_HRCW_SLAVE2                 0x00000000
+#define CONFIG_SYS_HRCW_SLAVE3                 0x00000000
+#define CONFIG_SYS_HRCW_SLAVE4                 0x00000000
+#define CONFIG_SYS_HRCW_SLAVE5                 0x00000000
+#define CONFIG_SYS_HRCW_SLAVE6                 0x00000000
+#define CONFIG_SYS_HRCW_SLAVE7                 0x00000000
 
 /* internal memory mapped register */
-#define CFG_IMMR                       0xF0000000
+#define CONFIG_SYS_IMMR                        0xF0000000
 
 /* definitions for initial stack pointer and data area (in DPRAM) */
-#define CFG_INIT_RAM_ADDR              CFG_IMMR
-#define CFG_INIT_RAM_END               0x2000
-#define CFG_GBL_DATA_SIZE              128
-#define CFG_GBL_DATA_OFFSET            (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET             CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR               CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END                0x2000
+#define CONFIG_SYS_GBL_DATA_SIZE               128
+#define CONFIG_SYS_GBL_DATA_OFFSET             (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET              CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE                 0x00000000
-#define CFG_SDRAM_SIZE                 (32*1024*1024)
-#define CFG_MONITOR_BASE               TEXT_BASE
-#define CFG_MONITOR_FLASH              (CFG_FLASH_BASE + CFG_MONITOR_OFFSET)
-#define CFG_MONITOR_LEN                        0x00020000
-#define CFG_MALLOC_LEN                 0x00020000
+#define CONFIG_SYS_SDRAM_BASE                  0x00000000
+#define CONFIG_SYS_SDRAM_SIZE                  (32*1024*1024)
+#define CONFIG_SYS_MONITOR_BASE                TEXT_BASE
+#define CONFIG_SYS_MONITOR_FLASH               (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_OFFSET)
+#define CONFIG_SYS_MONITOR_LEN                 0x00020000
+#define CONFIG_SYS_MALLOC_LEN                  0x00020000
 
 /* boot flags */
 #define BOOTFLAG_COLD                  0x01    /* normal power-on */
 #define BOOTFLAG_WARM                  0x02    /* software reboot */
 
 /* cache configuration */
-#define CFG_CACHELINE_SIZE             32      /* for MPC8260 */
+#define CONFIG_SYS_CACHELINE_SIZE              32      /* for MPC8260 */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT            5       /* log base 2 of above */
+#define CONFIG_SYS_CACHELINE_SHIFT             5       /* log base 2 of above */
 #endif
 
 /*
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT                  (HID0_ICE|HID0_DCE|\
+#define CONFIG_SYS_HID0_INIT                   (HID0_ICE|HID0_DCE|\
                                         HID0_ICFI|HID0_DCI|HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL                 (HID0_IFEM|HID0_ABE)
-#define CFG_HID2                       0
+#define CONFIG_SYS_HID0_FINAL                  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2                        0
 
 /* RMR - reset mode register - turn on checkstop reset enable */
-#define CFG_RMR                                RMR_CSRE
+#define CONFIG_SYS_RMR                         RMR_CSRE
 
 /* BCR - bus configuration */
-#define CFG_BCR                                0x00000000
+#define CONFIG_SYS_BCR                         0x00000000
 
 /* SIUMCR - siu module configuration */
-#define CFG_SIUMCR                     0x4905c000
+#define CONFIG_SYS_SIUMCR                      0x4905c000
 
 /* SYPCR - system protection control */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR                      0xffffff87
+#define CONFIG_SYS_SYPCR                       0xffffff87
 #else
-#define CFG_SYPCR                      0xffffff83
+#define CONFIG_SYS_SYPCR                       0xffffff83
 #endif
 
 /* TMCNTSC - time counter status and control */
 /* clear interrupts XXX jse */
-/*#define CFG_TMCNTSC                  (TMCNTSC_SEC|TMCNTSC_ALR) */
-#define CFG_TMCNTSC                    (TMCNTSC_SEC|TMCNTSC_ALR|\
+/*#define CONFIG_SYS_TMCNTSC                   (TMCNTSC_SEC|TMCNTSC_ALR) */
+#define CONFIG_SYS_TMCNTSC                     (TMCNTSC_SEC|TMCNTSC_ALR|\
                                         TMCNTSC_TCF|TMCNTSC_TCE)
 
 /* PISCR - periodic interrupt status and control */
 /* clear interrupts XXX jse */
-/*#define CFG_PISCR                    (PISCR_PS) */
-#define CFG_PISCR                      (PISCR_PS|PISCR_PTF|PISCR_PTE)
+/*#define CONFIG_SYS_PISCR                     (PISCR_PS) */
+#define CONFIG_SYS_PISCR                       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /* SCCR - system clock control */
-#define CFG_SCCR                       0x000001a9
+#define CONFIG_SYS_SCCR                        0x000001a9
 
 /* RCCR - risc controller configuration */
-#define CFG_RCCR                       0
+#define CONFIG_SYS_RCCR                        0
 
 /*
  * MEMORY MAP
  *  x  - IMMR     384KB                base=0xf0000000
  */
 /* XXX jse 100MHz TODO */
-#define CFG_BR0_PRELIM                 0xff800801
-#define CFG_OR0_PRELIM                 0xff801e44
-#define CFG_BR1_PRELIM                 0x00000041
-#define CFG_OR1_PRELIM                 0xfe002ec0
+#define CONFIG_SYS_BR0_PRELIM                  0xff800801
+#define CONFIG_SYS_OR0_PRELIM                  0xff801e44
+#define CONFIG_SYS_BR1_PRELIM                  0x00000041
+#define CONFIG_SYS_OR1_PRELIM                  0xfe002ec0
 #if 1
-#define CFG_BR2_PRELIM                 0xf0101001
-#define CFG_OR2_PRELIM                 0xfff00ef4
-#define CFG_BR3_PRELIM                 0xf0201001
-#define CFG_OR3_PRELIM                 0xfff00ef4
-#define CFG_BR4_PRELIM                 0xf0301001
-#define CFG_OR4_PRELIM                 0xfff00ef4
-#define CFG_BR5_PRELIM                 0xf0401001
-#define CFG_OR5_PRELIM                 0xfff00ef4
+#define CONFIG_SYS_BR2_PRELIM                  0xf0101001
+#define CONFIG_SYS_OR2_PRELIM                  0xfff00ef4
+#define CONFIG_SYS_BR3_PRELIM                  0xf0201001
+#define CONFIG_SYS_OR3_PRELIM                  0xfff00ef4
+#define CONFIG_SYS_BR4_PRELIM                  0xf0301001
+#define CONFIG_SYS_OR4_PRELIM                  0xfff00ef4
+#define CONFIG_SYS_BR5_PRELIM                  0xf0401001
+#define CONFIG_SYS_OR5_PRELIM                  0xfff00ef4
 #else
-#define CFG_BR2_PRELIM                 0xf0101081
-#define CFG_OR2_PRELIM                 0xfff00104
-#define CFG_BR3_PRELIM                 0xf0201081
-#define CFG_OR3_PRELIM                 0xfff00104
-#define CFG_BR4_PRELIM                 0xf0301081
-#define CFG_OR4_PRELIM                 0xfff00104
-#define CFG_BR5_PRELIM                 0xf0401081
-#define CFG_OR5_PRELIM                 0xfff00104
+#define CONFIG_SYS_BR2_PRELIM                  0xf0101081
+#define CONFIG_SYS_OR2_PRELIM                  0xfff00104
+#define CONFIG_SYS_BR3_PRELIM                  0xf0201081
+#define CONFIG_SYS_OR3_PRELIM                  0xfff00104
+#define CONFIG_SYS_BR4_PRELIM                  0xf0301081
+#define CONFIG_SYS_OR4_PRELIM                  0xfff00104
+#define CONFIG_SYS_BR5_PRELIM                  0xf0401081
+#define CONFIG_SYS_OR5_PRELIM                  0xfff00104
 #endif
-#define CFG_BR7_PRELIM                 0xf0500881
-#define CFG_OR7_PRELIM                 0xffff8104
-#define CFG_MPTPR                      0x2700
-#define CFG_PSDMR                      0x822a2452      /* optimal */
-/*#define CFG_PSDMR                    0x822a48a3 */   /* relaxed */
-#define CFG_PSRT                       0x1a
+#define CONFIG_SYS_BR7_PRELIM                  0xf0500881
+#define CONFIG_SYS_OR7_PRELIM                  0xffff8104
+#define CONFIG_SYS_MPTPR                       0x2700
+#define CONFIG_SYS_PSDMR                       0x822a2452      /* optimal */
+/*#define CONFIG_SYS_PSDMR                     0x822a48a3 */   /* relaxed */
+#define CONFIG_SYS_PSRT                        0x1a
 
 /* "bad" address */
-#define        CFG_RESET_ADDRESS               0x40000000
+#define        CONFIG_SYS_RESET_ADDRESS                0x40000000
 
 #endif /* __CONFIG_H */
index 6a51880a8a38269668b2dabde6fc6ca48eaa0bee..e546369c994777c3f4330f814669014fceca14fe 100644 (file)
@@ -63,7 +63,7 @@
 #define CONFIG_SERVERIP                192.168.1.2
 
 #define CONFIG_LOADS_ECHO      1               /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE                   /* disallow baudrate change     */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE                    /* disallow baudrate change     */
 
 #define CONFIG_MII             1               /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0               /* PHY address                  */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "Wave7Optics> " /* Monitor Command Prompt       */
-#undef  CFG_HUSH_PARSER                                /* No hush parse for U-Boot       */
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "Wave7Optics> " /* Monitor Command Prompt       */
+#undef  CONFIG_SYS_HUSH_PARSER                         /* No hush parse for U-Boot       */
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size     */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size        */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on             */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM          */
 
-#undef  CFG_EXT_SERIAL_CLOCK                   /* external serial clock */
-#define CFG_405_UART_ERRATA_59                 /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD          384000
+#undef  CONFIG_SYS_EXT_SERIAL_CLOCK                    /* external serial clock */
+#define CONFIG_SYS_405_UART_ERRATA_59                  /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD           384000
 
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     {9600}
+#define CONFIG_SYS_BAUDRATE_TABLE      {9600}
 
-#define CFG_CLKS_IN_HZ         1               /* everything, incl board info, in Hz */
+#define CONFIG_SYS_CLKS_IN_HZ          1               /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address         */
-#define CFG_EXTBDINFO          1               /* use extended board_info (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address         */
+#define CONFIG_SYS_EXTBDINFO           1               /* use extended board_info (bd_t) */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI_HOST                PCI_HOST_AUTO   /* select pci host function     */
 #define CONFIG_PCI_PNP                         /* pci plug-and-play            */
 /* resource configuration      */
-#define CFG_PCI_SUBSYS_VENDORID 0x1014         /* PCI Vendor ID: IBM           */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0156         /* PCI Device ID: 405GP         */
-#define CFG_PCI_PTM1LA         0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS         0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI                0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA         0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS         0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI                0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014          /* PCI Vendor ID: IBM           */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0156          /* PCI Device ID: 405GP         */
+#define CONFIG_SYS_PCI_PTM1LA          0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS          0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI         0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA          0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS          0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI         0x00000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Set up values for external bus controller
 #undef CONFIG_USE_PERWE
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM        1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* bank 0 is boot flash */
 /* BME=0,TWT=6,CSN=1,OEN=1,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_W7O_EBC_PB0AP   0x03050440
+#define CONFIG_SYS_W7O_EBC_PB0AP   0x03050440
 /* BAS=0xFFE,BS=0x1(2MB),BU=0x3(R/W),BW=0x0(8 bits) */
-#define CFG_W7O_EBC_PB0CR   0xFFE38000
+#define CONFIG_SYS_W7O_EBC_PB0CR   0xFFE38000
 
 /* bank 1 is main flash */
 /* BME=0,TWT=11,CSN=1,OEN=1,WBN=0,WBF=0,TH=1,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_EBC_PB1AP   0x05850240
+#define CONFIG_SYS_EBC_PB1AP   0x05850240
 /* BAS=0xF00,BS=0x7(128MB),BU=0x3(R/W),BW=0x10(32 bits) */
-#define CFG_EBC_PB1CR   0xF00FC000
+#define CONFIG_SYS_EBC_PB1CR   0xF00FC000
 
 /* bank 2 is RTC/NVRAM */
 /* BME=0,TWT=6,CSN=0,OEN=0,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_EBC_PB2AP   0x03000440
+#define CONFIG_SYS_EBC_PB2AP   0x03000440
 /* BAS=0xFC0,BS=0x0(1MB),BU=0x3(R/W),BW=0x0(8 bits) */
-#define CFG_EBC_PB2CR   0xFC018000
+#define CONFIG_SYS_EBC_PB2CR   0xFC018000
 
 /* bank 3 is FPGA 0 */
 /* BME=0,TWT=4,CSN=0,OEN=0,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=0,PEN=0 */
-#define CFG_EBC_PB3AP   0x02000400
+#define CONFIG_SYS_EBC_PB3AP   0x02000400
 /* BAS=0xFD0,BS=0x0(1MB),BU=0x3(R/W),BW=0x1(16 bits) */
-#define CFG_EBC_PB3CR   0xFD01A000
+#define CONFIG_SYS_EBC_PB3CR   0xFD01A000
 
 /* bank 4 is FPGA 1 */
 /* BME=,TWT=,CSN=,OEN=,WBN=,WBF=,TH=,RE=,SOR=,BEM=,PEN= */
-#define CFG_EBC_PB4AP   0x02000400
+#define CONFIG_SYS_EBC_PB4AP   0x02000400
 /* BAS=,BS=,BU=0x3(R/W),BW=0x0(8 bits) */
-#define CFG_EBC_PB4CR   0xFD11A000
+#define CONFIG_SYS_EBC_PB4CR   0xFD11A000
 
 /* bank 5 is FPGA 2 */
 /* BME=,TWT=,CSN=,OEN=,WBN=,WBF=,TH=,RE=,SOR=,BEM=,PEN= */
-#define CFG_EBC_PB5AP   0x02000400
+#define CONFIG_SYS_EBC_PB5AP   0x02000400
 /* BAS=,BS=,BU=0x3(R/W),BW=0x1(16 bits) */
-#define CFG_EBC_PB5CR   0xFD21A000
+#define CONFIG_SYS_EBC_PB5CR   0xFD21A000
 
 /* bank 6 is unused */
 /* pb6ap = 0 */
-#define CFG_EBC_PB6AP   0x00000000
+#define CONFIG_SYS_EBC_PB6AP   0x00000000
 /* pb6cr = 0 */
-#define CFG_EBC_PB6CR   0x00000000
+#define CONFIG_SYS_EBC_PB6CR   0x00000000
 
 /* bank 7 is LED register */
 /* BME=0,TWT=6,CSN=1,OEN=1,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_W7O_EBC_PB7AP   0x03050440
+#define CONFIG_SYS_W7O_EBC_PB7AP   0x03050440
 /* BAS=0xFE0,BS=0x0(1MB),BU=0x3(R/W),BW=0x2(32 bits) */
-#define CFG_W7O_EBC_PB7CR   0xFE01C000
+#define CONFIG_SYS_W7O_EBC_PB7CR   0xFE01C000
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2               /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     256             /* max number of sec on 1 chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      256             /* max number of sec on 1 chip  */
 
-#define CFG_FLASH_ERASE_TOUT   120000          /* Timeout, Flash Erase, in ms  */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout, Flash Write, in ms  */
-#define CFG_FLASH_PROTECTION   1               /* Use real Flash protection    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000          /* Timeout, Flash Erase, in ms  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout, Flash Write, in ms  */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use real Flash protection    */
 
 #if 1 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
 #define CONFIG_ENV_IS_IN_NVRAM 1               /* use NVRAM for env vars       */
-#define CFG_NVRAM_BASE_ADDR    0xfc000000      /* NVRAM base address           */
-#define CFG_NVRAM_SIZE         (32*1024)       /* NVRAM size                   */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xfc000000      /* NVRAM base address           */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)       /* NVRAM size                   */
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars     */
 /*define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE) Env  */
-#define CONFIG_ENV_ADDR                CFG_NVRAM_BASE_ADDR
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE) Env  */
+#define CONFIG_ENV_ADDR                CONFIG_SYS_NVRAM_BASE_ADDR
 
 #else /* Use Boot Flash for environment variables */
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC08) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
  * (to get SDRAM settings)
 #define FLASH_BASE1_PRELIM     0xF0000000      /* FLASH bank #1                */
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in RAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
 /*
  * FPGA(s) configuration
  */
-#define CFG_FPGA_IMAGE_LEN     0x80000         /* 512KB FPGA image             */
+#define CONFIG_SYS_FPGA_IMAGE_LEN      0x80000         /* 512KB FPGA image             */
 #define CONFIG_NUM_FPGAS       3               /* Number of FPGAs on board     */
 #define CONFIG_MAX_FPGAS       6               /* Maximum number of FPGAs      */
 #define CONFIG_FPGAS_BASE      0xFD000000L     /* Base address of FPGAs        */
index c3b39f2186168ce4f31392f3fd83a4b5a4e340fd..226033831bde744746a2e0e29ce3cfb629350cb9 100644 (file)
@@ -63,7 +63,7 @@
 #define CONFIG_SERVERIP                192.168.1.2
 
 #define CONFIG_LOADS_ECHO      1               /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE                   /* disallow baudrate change     */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE                    /* disallow baudrate change     */
 
 #define CONFIG_MII             1               /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0               /* PHY address                  */
@@ -71,9 +71,9 @@
 #define CONFIG_RTC_M48T35A     1               /* ST Electronics M48 timekeeper */
 #define CONFIG_DTT_LM75     1                /* ON Semi's LM75 */
 #define CONFIG_DTT_SENSORS  {2, 4}           /* Sensor addresses */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "Wave7Optics> " /* Monitor Command Prompt       */
-#undef  CFG_HUSH_PARSER                                /* No hush parse for U-Boot       */
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "Wave7Optics> " /* Monitor Command Prompt       */
+#undef  CONFIG_SYS_HUSH_PARSER                         /* No hush parse for U-Boot       */
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size     */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size        */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on             */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM          */
 
-#undef  CFG_EXT_SERIAL_CLOCK                   /* external serial clock */
-#define CFG_405_UART_ERRATA_59                 /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD          384000
+#undef  CONFIG_SYS_EXT_SERIAL_CLOCK                    /* external serial clock */
+#define CONFIG_SYS_405_UART_ERRATA_59                  /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD           384000
 
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     {9600}
+#define CONFIG_SYS_BAUDRATE_TABLE      {9600}
 
-#define CFG_CLKS_IN_HZ         1               /* everything, incl board info, in Hz */
+#define CONFIG_SYS_CLKS_IN_HZ          1               /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address         */
-#define CFG_EXTBDINFO          1               /* use extended board_info (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address         */
+#define CONFIG_SYS_EXTBDINFO           1               /* use extended board_info (bd_t) */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI_HOST                PCI_HOST_AUTO   /* select pci host function     */
 #define CONFIG_PCI_PNP                         /* pci plug-and-play            */
 /* resource configuration      */
-#define CFG_PCI_SUBSYS_VENDORID 0x1014         /* PCI Vendor ID: IBM           */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0156         /* PCI Device ID: 405GP         */
-#define CFG_PCI_PTM1LA         0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS         0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI                0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA         0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS         0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI                0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014          /* PCI Vendor ID: IBM           */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0156          /* PCI Device ID: 405GP         */
+#define CONFIG_SYS_PCI_PTM1LA          0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS          0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI         0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA          0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS          0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI         0x00000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Set up values for external bus controller
 #define CONFIG_USE_PERWE 1
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM        1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* bank 0 is boot flash */
 /* BME=0,TWT=6,CSN=1,OEN=1,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_W7O_EBC_PB0AP   0x03050440
+#define CONFIG_SYS_W7O_EBC_PB0AP   0x03050440
 /* BAS=0xFFE,BS=0x1(2MB),BU=0x3(R/W),BW=0x0(8 bits) */
-#define CFG_W7O_EBC_PB0CR   0xFFE38000
+#define CONFIG_SYS_W7O_EBC_PB0CR   0xFFE38000
 
 /* bank 1 is main flash */
 /* BME=0,TWT=9,CSN=1,OEN=1,WBN=0,WBF=0,TH=1,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_EBC_PB1AP   0x04850240
+#define CONFIG_SYS_EBC_PB1AP   0x04850240
 /* BAS=0xF00,BS=0x7(128MB),BU=0x3(R/W),BW=0x10(32 bits) */
-#define CFG_EBC_PB1CR   0xF00FC000
+#define CONFIG_SYS_EBC_PB1CR   0xF00FC000
 
 /* bank 2 is RTC/NVRAM */
 /* BME=0,TWT=6,CSN=0,OEN=0,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_EBC_PB2AP   0x03000440
+#define CONFIG_SYS_EBC_PB2AP   0x03000440
 /* BAS=0xFC0,BS=0x0(1MB),BU=0x3(R/W),BW=0x0(8 bits) */
-#define CFG_EBC_PB2CR   0xFC018000
+#define CONFIG_SYS_EBC_PB2CR   0xFC018000
 
 /* bank 3 is FPGA 0 */
 /* BME=0,TWT=4,CSN=0,OEN=0,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=0,PEN=0 */
-#define CFG_EBC_PB3AP   0x02000400
+#define CONFIG_SYS_EBC_PB3AP   0x02000400
 /* BAS=0xFD0,BS=0x0(1MB),BU=0x3(R/W),BW=0x1(16 bits) */
-#define CFG_EBC_PB3CR   0xFD01A000
+#define CONFIG_SYS_EBC_PB3CR   0xFD01A000
 
 /* bank 4 is SAM 8 bit range */
 /* BME=,TWT=,CSN=,OEN=,WBN=,WBF=,TH=,RE=,SOR=,BEM=,PEN= */
-#define CFG_EBC_PB4AP   0x02840380
+#define CONFIG_SYS_EBC_PB4AP   0x02840380
 /* BAS=,BS=,BU=0x3(R/W),BW=0x0(8 bits) */
-#define CFG_EBC_PB4CR   0xFE878000
+#define CONFIG_SYS_EBC_PB4CR   0xFE878000
 
 /* bank 5 is SAM 16 bit range */
 /* BME=0,TWT=10,CSN=2,OEN=0,WBN=0,WBF=0,TH=6,RE=1,SOR=1,BEM=0,PEN=0 */
-#define CFG_EBC_PB5AP   0x05040d80
+#define CONFIG_SYS_EBC_PB5AP   0x05040d80
 /* BAS=,BS=,BU=0x3(R/W),BW=0x1(16 bits) */
-#define CFG_EBC_PB5CR   0xFD87A000
+#define CONFIG_SYS_EBC_PB5CR   0xFD87A000
 
 /* bank 6 is unused */
 /* pb6ap = 0 */
-#define CFG_EBC_PB6AP   0x00000000
+#define CONFIG_SYS_EBC_PB6AP   0x00000000
 /* pb6cr = 0 */
-#define CFG_EBC_PB6CR   0x00000000
+#define CONFIG_SYS_EBC_PB6CR   0x00000000
 
 /* bank 7 is LED register */
 /* BME=0,TWT=6,CSN=1,OEN=1,WBN=0,WBF=0,TH=2,RE=0,SOR=0,BEM=1,PEN=0 */
-#define CFG_W7O_EBC_PB7AP   0x03050440
+#define CONFIG_SYS_W7O_EBC_PB7AP   0x03050440
 /* BAS=0xFE0,BS=0x0(1MB),BU=0x3(R/W),BW=0x2(32 bits) */
-#define CFG_W7O_EBC_PB7CR   0xFE01C000
+#define CONFIG_SYS_W7O_EBC_PB7CR   0xFE01C000
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 196 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2               /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     256             /* max number of sec on 1 chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      256             /* max number of sec on 1 chip  */
 
-#define CFG_FLASH_ERASE_TOUT   120000          /* Timeout, Flash Erase, in ms  */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout, Flash Write, in ms  */
-#define CFG_FLASH_PROTECTION   1               /* Use real Flash protection    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000          /* Timeout, Flash Erase, in ms  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout, Flash Write, in ms  */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Use real Flash protection    */
 
 #if 1 /* Use NVRAM for environment variables */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
 #define CONFIG_ENV_IS_IN_NVRAM 1               /* use NVRAM for env vars       */
-#define CFG_NVRAM_BASE_ADDR    0xfc000000      /* NVRAM base address           */
-#define CFG_NVRAM_SIZE         (32*1024)       /* NVRAM size                   */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xfc000000      /* NVRAM base address           */
+#define CONFIG_SYS_NVRAM_SIZE          (32*1024)       /* NVRAM size                   */
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars     */
 /*define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE) Env  */
-#define CONFIG_ENV_ADDR                CFG_NVRAM_BASE_ADDR
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE) Env  */
+#define CONFIG_ENV_ADDR                CONFIG_SYS_NVRAM_BASE_ADDR
 
 #else /* Use Boot Flash for environment variables */
 /*-----------------------------------------------------------------------
  * I2C EEPROM (ATMEL 24C04N)
  */
 #define CONFIG_HARD_I2C                1               /* Hardware assisted I2C        */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50            /* EEPROM ATMEL 24C04N          */
-#define CFG_I2C_EEPROM_ADDR_LEN        1               /* Bytes of address             */
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* EEPROM ATMEL 24C04N          */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
  * (to get SDRAM settings)
 #define FLASH_BASE1_PRELIM     0xF0000000      /* FLASH bank #1                */
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in RAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      64              /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE       64              /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /*
 /*
  * FPGA(s) configuration
  */
-#define CFG_FPGA_IMAGE_LEN     0x80000         /* 512KB FPGA image             */
+#define CONFIG_SYS_FPGA_IMAGE_LEN      0x80000         /* 512KB FPGA image             */
 #define CONFIG_NUM_FPGAS       1               /* Number of FPGAs on board     */
 #define CONFIG_MAX_FPGAS       6               /* Maximum number of FPGAs      */
 #define CONFIG_FPGAS_BASE      0xFD000000L     /* Base address of FPGAs        */
index afe1da9954da398138fd7d94076e9f29c09d9b56..ec8156406885e4bb6c4421f91c6f4bc1756dd31d 100644 (file)
@@ -52,7 +52,7 @@
 #define CONFIG_PREBOOT                  /* enable preboot variable      */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address                  */
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_RTC_MC146818            /* DS1685 is MC146818 compatible*/
-#define CFG_RTC_REG_BASE_ADDR   0xF0000500 /* RTC Base Address         */
+#define CONFIG_SYS_RTC_REG_BASE_ADDR    0xF0000500 /* RTC Base Address         */
 
 #define CONFIG_SDRAM_BANK0     1       /* init onboard SDRAM bank 0    */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
-#define CFG_CONSOLE_INFO_QUIET 1       /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET  1       /* don't print console @ startup*/
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK           /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD       691200
 #define        CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,     \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 
 #define CONFIG_VERSION_VARIABLE 1      /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE }
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE }
 #define NAND_MAX_CHIPS          1
-#define CFG_MAX_NAND_DEVICE    1         /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1         /* Max number of NAND devices */
 #define NAND_BIG_DELAY_US      25
 
-#define CFG_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
-#define CFG_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
-#define CFG_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
-#define CFG_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
+#define CONFIG_SYS_NAND_CE             (0x80000000 >> 1)   /* our CE is GPIO1  */
+#define CONFIG_SYS_NAND_RDY            (0x80000000 >> 4)   /* our RDY is GPIO4 */
+#define CONFIG_SYS_NAND_CLE            (0x80000000 >> 2)   /* our CLE is GPIO2 */
+#define CONFIG_SYS_NAND_ALE            (0x80000000 >> 3)   /* our ALE is GPIO3 */
 
-#define CFG_NAND_SKIP_BAD_DOT_I      1  /* ".i" read skips bad blocks   */
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I      1  /* ".i" read skips bad blocks   */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #undef CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x12FE /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0405 /* PCI Device ID: CPCI-405      */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0405  /* PCI Device ID: CPCI-405      */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFFC0000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFFC0000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned short  /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short  /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #if 0 /* test-only */
-#define CFG_JFFS2_FIRST_BANK   0           /* use for JFFS2 */
-#define CFG_JFFS2_NUM_BANKS    1           /* ! second bank contains U-Boot */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0           /* use for JFFS2 */
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1           /* ! second bank contains U-Boot */
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_ENV_SIZE                0x700   /* 2048 bytes may be used for env vars*/
                                   /* total size of a CAT24WC16 is 2048 bytes */
 
-#define CFG_NVRAM_BASE_ADDR    0xF0000500              /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         242                     /* NVRAM size           */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xF0000500              /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          242                     /* NVRAM size           */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (CAT24WC16) for environment
  */
 #define CONFIG_HARD_I2C                        /* I2c with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* EEPROM CAT28WC08             */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM CAT28WC08             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4   /* The Catalyst CAT24WC08 has   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4    /* The Catalyst CAT24WC08 has   */
                                        /* 16 byte page write mode using*/
                                        /* last 4 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 /*
  * Init Memory Controller:
  */
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-/*#define CFG_EBC_PB0AP                  0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
-#define CFG_EBC_PB0CR          0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+/*#define CONFIG_SYS_EBC_PB0AP           0x08055880  /XXX* TWT=16,CSN=1,OEN=1,WBN=1,WBF=1,TH=4,SOR=1 */
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000  /* BAS=0xFFC,BS=4MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1, NAND-FLASH) initialization                     */
-#define CFG_EBC_PB1AP          0x92015480
-#define CFG_EBC_PB1CR          0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x92015480
+#define CONFIG_SYS_EBC_PB1CR           0xF4018000  /* BAS=0xF40,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (8 Bit Peripheral: CAN, UART, RTC) initialization             */
-#define CFG_EBC_PB2AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB2CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 3 (16 Bit Peripheral: FPGA internal, dig. IO) initialization    */
-#define CFG_EBC_PB3AP          0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
-#define CFG_EBC_PB3CR          0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x010053C0  /* BWT=2,WBN=1,WBF=1,TH=1,RE=1,SOR=1,BEM=1 */
+#define CONFIG_SYS_EBC_PB3CR           0xF011A000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=16bit */
 
 #define CAN_BA         0xF0000000          /* CAN Base Address                 */
 #define DUART0_BA      0xF0000400          /* DUART Base Address               */
 #define DUART2_BA      0xF0000410          /* DUART Base Address               */
 #define DUART3_BA      0xF0000418          /* DUART Base Address               */
 #define RTC_BA         0xF0000500          /* RTC Base Address                 */
-#define CFG_NAND_BASE  0xF4000000
+#define CONFIG_SYS_NAND_BASE   0xF4000000
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
  */
-#define CFG_FPGA_SPARTAN2      1           /* using Xilinx Spartan 2 now    */
-#define CFG_FPGA_MAX_SIZE      128*1024    /* 128kByte is enough for XC2S50E*/
+#define CONFIG_SYS_FPGA_SPARTAN2       1           /* using Xilinx Spartan 2 now    */
+#define CONFIG_SYS_FPGA_MAX_SIZE       128*1024    /* 128kByte is enough for XC2S50E*/
 
 /* FPGA program pin configuration */
-#define CFG_FPGA_PRG           0x04000000  /* FPGA program pin (ppc output) */
-#define CFG_FPGA_CLK           0x02000000  /* FPGA clk pin (ppc output)     */
-#define CFG_FPGA_DATA          0x01000000  /* FPGA data pin (ppc output)    */
-#define CFG_FPGA_INIT          0x00010000  /* FPGA init pin (ppc input)     */
-#define CFG_FPGA_DONE          0x00008000  /* FPGA done pin (ppc input)     */
+#define CONFIG_SYS_FPGA_PRG            0x04000000  /* FPGA program pin (ppc output) */
+#define CONFIG_SYS_FPGA_CLK            0x02000000  /* FPGA clk pin (ppc output)     */
+#define CONFIG_SYS_FPGA_DATA           0x01000000  /* FPGA data pin (ppc output)    */
+#define CONFIG_SYS_FPGA_INIT           0x00010000  /* FPGA init pin (ppc input)     */
+#define CONFIG_SYS_FPGA_DONE           0x00008000  /* FPGA done pin (ppc input)     */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM       1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs
  */
-#define CFG_GPIO0_OSRH         0x40000550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-#define CFG_GPIO0_ISR1L                0x15555445
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xF7FE0014
-
-#define CFG_DUART_RST          (0x80000000 >> 14)
+#define CONFIG_SYS_GPIO0_OSRH          0x40000550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xF7FE0014
+
+#define CONFIG_SYS_DUART_RST           (0x80000000 >> 14)
 
 /*
  * Internal Definitions
index d533b17afd0e30fd9615870ebbf6ae6e903b0bb7..569bb9052e6d685ab0eb8e90b0b8a52f3192af49 100644 (file)
 #define CONFIG_440             1
 #define CONFIG_440GX           1               /* 440 GX */
 #define CONFIG_BOARD_EARLY_INIT_F 1            /* Call board_pre_init  */
-#undef CFG_DRAM_TEST                           /* Disable-takes long time! */
+#undef CONFIG_SYS_DRAM_TEST                            /* Disable-takes long time! */
 #define CONFIG_SYS_CLK_FREQ    33333333        /* external freq to pll */
 
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_RTC      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_RTC       | \
+                                CONFIG_SYS_POST_I2C)
 
 /*-----------------------------------------------------------------------
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_SDRAM_BASE     0x00000000          /* _must_ be 0          */
-#define CFG_FLASH_BASE     0xfff80000          /* start of FLASH       */
+#define CONFIG_SYS_SDRAM_BASE      0x00000000          /* _must_ be 0          */
+#define CONFIG_SYS_FLASH_BASE      0xfff80000          /* start of FLASH       */
 
-#define CFG_MONITOR_BASE    CFG_FLASH_BASE     /* start of monitor     */
-#define CFG_PCI_MEMBASE            0x80000000          /* mapped pci memory    */
-#define CFG_PERIPHERAL_BASE 0xe0000000         /* internal peripherals */
-#define CFG_ISRAM_BASE     0xc0000000          /* internal SRAM        */
-#define CFG_PCI_BASE       0xd0000000          /* internal PCI regs    */
+#define CONFIG_SYS_MONITOR_BASE    CONFIG_SYS_FLASH_BASE       /* start of monitor     */
+#define CONFIG_SYS_PCI_MEMBASE     0x80000000          /* mapped pci memory    */
+#define CONFIG_SYS_PERIPHERAL_BASE 0xe0000000          /* internal peripherals */
+#define CONFIG_SYS_ISRAM_BASE      0xc0000000          /* internal SRAM        */
+#define CONFIG_SYS_PCI_BASE        0xd0000000          /* internal PCI regs    */
 
-#define CFG_NVRAM_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x08000000)
-#define CFG_GPIO_BASE      (CFG_PERIPHERAL_BASE + 0x00000700)
+#define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
+#define CONFIG_SYS_GPIO_BASE       (CONFIG_SYS_PERIPHERAL_BASE + 0x00000700)
 
 #define USR_LED0           0x00000080
 #define USR_LED1           0x00000100
 extern unsigned long in32(unsigned int);
 extern void out32(unsigned int, unsigned long);
 
-#define LED0_ON() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) & ~USR_LED0))
-#define LED1_ON() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) & ~USR_LED1))
-#define LED2_ON() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) & ~USR_LED2))
-#define LED3_ON() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) & ~USR_LED3))
+#define LED0_ON() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) & ~USR_LED0))
+#define LED1_ON() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) & ~USR_LED1))
+#define LED2_ON() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) & ~USR_LED2))
+#define LED3_ON() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) & ~USR_LED3))
 
-#define LED0_OFF() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) | USR_LED0))
-#define LED1_OFF() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) | USR_LED1))
-#define LED2_OFF() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) | USR_LED2))
-#define LED3_OFF() out32(CFG_GPIO_BASE, (in32(CFG_GPIO_BASE) | USR_LED3))
+#define LED0_OFF() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) | USR_LED0))
+#define LED1_OFF() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) | USR_LED1))
+#define LED2_OFF() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) | USR_LED2))
+#define LED3_OFF() out32(CONFIG_SYS_GPIO_BASE, (in32(CONFIG_SYS_GPIO_BASE) | USR_LED3))
 #endif
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM  1
-#define CFG_OCM_DATA_ADDR   CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR   CFG_ISRAM_BASE  /* Initial RAM address     */
-#define CFG_INIT_RAM_END    0x2000         /* End of used area in RAM  */
-#define CFG_GBL_DATA_SIZE   128                    /* num bytes initial data   */
+#define CONFIG_SYS_TEMP_STACK_OCM  1
+#define CONFIG_SYS_OCM_DATA_ADDR   CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR   CONFIG_SYS_ISRAM_BASE  /* Initial RAM address       */
+#define CONFIG_SYS_INIT_RAM_END    0x2000          /* End of used area in RAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE   128             /* num bytes initial data   */
 
 
-#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR  (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET  CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR  (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET  CONFIG_SYS_POST_WORD_ADDR
 
-#define CFG_MONITOR_LEN            (256 * 1024)    /* Reserve 256 kB for Mon   */
-#define CFG_MALLOC_LEN     (128 * 1024)    /* Reserve 128 kB for malloc*/
+#define CONFIG_SYS_MONITOR_LEN     (256 * 1024)    /* Reserve 256 kB for Mon   */
+#define CONFIG_SYS_MALLOC_LEN      (128 * 1024)    /* Reserve 128 kB for malloc*/
 
 /*-----------------------------------------------------------------------
  * Serial Port
@@ -105,7 +105,7 @@ extern void out32(unsigned int, unsigned long);
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
 #define CONFIG_BAUDRATE                9600
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400}
 
 /*-----------------------------------------------------------------------
@@ -115,23 +115,23 @@ extern void out32(unsigned int, unsigned long);
  * The DS1743 code assumes this condition (i.e. -- it assumes the base
  * address for the RTC registers is:
  *
- *     CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE
+ *     CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE
  *
  *----------------------------------------------------------------------*/
 /* TBS:         Xpedite 1000 has STMicro M41T00 via IIC */
 #define CONFIG_RTC_M41T11 1
-#define CFG_I2C_RTC_ADDR 0x68
-#define CFG_M41T11_BASE_YEAR 2000
+#define CONFIG_SYS_I2C_RTC_ADDR 0x68
+#define CONFIG_SYS_M41T11_BASE_YEAR 2000
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS    1                   /* number of banks      */
-#define CFG_MAX_FLASH_SECT     8                   /* sectors per device   */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1                   /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      8                   /* sectors per device   */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500         /* Timeout for Flash Write (in ms)  */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500         /* Timeout for Flash Write (in ms)  */
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
@@ -144,9 +144,9 @@ extern void out32(unsigned int, unsigned long);
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1           /* I2C with hardware support        */
 #undef CONFIG_SOFT_I2C                     /* I2C bit-banged           */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7f
-#define CFG_I2C_NOPROBES       {0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7f
+#define CONFIG_SYS_I2C_NOPROBES        {0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x69}  /* Don't probe these addrs */
 
 /*-----------------------------------------------------------------------
  * Environment
@@ -154,10 +154,10 @@ extern void out32(unsigned int, unsigned long);
 #define CONFIG_ENV_IS_IN_EEPROM 1
 #define CONFIG_ENV_SIZE                0x100       /* Size of Environment vars */
 #define CONFIG_ENV_OFFSET              0x100
-#define CFG_I2C_EEPROM_ADDR    0x50            /* this is actually the second page of the eeprom */
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* this is actually the second page of the eeprom */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 #define CONFIG_BOOTARGS                "root=/dev/hda1 "
 #define CONFIG_BOOTCOMMAND     "bootm ffc00000"    /* autoboot command */
@@ -165,7 +165,7 @@ extern void out32(unsigned int, unsigned long);
 #define CONFIG_BAUDRATE                9600
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII                     1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0       /* PHY address phy0 not populated */
@@ -175,7 +175,7 @@ extern void out32(unsigned int, unsigned long);
 #define CONFIG_NET_MULTI       1
 #define CONFIG_PHY_GIGE                1       /* Include GbE speed/duplex detection */
 #define CONFIG_PHY_RESET        1       /* reset phy upon startup         */
-#define CFG_RX_ETH_BUFFER   32 /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER   32  /* Number of ethernet rx buffers & descriptors */
 
 #define CONFIG_HAS_ETH1                1       /* add support for "eth1addr"   */
 #define CONFIG_HAS_ETH2                1       /* add support for "eth2addr"   */
@@ -214,24 +214,24 @@ extern void out32(unsigned int, unsigned long);
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 
 /*-----------------------------------------------------------------------
@@ -242,20 +242,20 @@ extern void out32(unsigned int, unsigned long);
 #define CONFIG_PCI                                 /* include pci support              */
 #define CONFIG_PCI_PNP                         /* do pci plug-and-play         */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE    0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT                /* let board init pci target    */
+#define CONFIG_SYS_PCI_TARGET_INIT                 /* let board init pci target    */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x1014 /* IBM */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
-#define CFG_PCI_FORCE_PCI_CONV          /* Force PCI Conventional Mode */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014  /* IBM */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
+#define CONFIG_SYS_PCI_FORCE_PCI_CONV          /* Force PCI Conventional Mode */
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index cbc1ed688a74a07fae91e16782be13069e831df6..c439068f533fc07bc32f264d98514748d92ce1bb 100644 (file)
@@ -35,8 +35,8 @@
 
 /* Input clock running at 30Mhz, read Hid1 for the CPU multiplier to
    determine the CPU speed. */
-#define CFG_MPC8220_CLKIN      30000000/* ... running at 30MHz */
-#define CFG_MPC8220_SYSPLL_VCO_MULTIPLIER 16 /* VCO multiplier can't be read from any register */
+#define CONFIG_SYS_MPC8220_CLKIN       30000000/* ... running at 30MHz */
+#define CONFIG_SYS_MPC8220_SYSPLL_VCO_MULTIPLIER 16 /* VCO multiplier can't be read from any register */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot      */
 
 #ifdef CONFIG_EXTUART_CONSOLE
 #   define CONFIG_CONS_INDEX   1
-#   define CFG_NS16550_SERIAL
-#   define CFG_NS16550
-#   define CFG_NS16550_REG_SIZE 1
-#   define CFG_NS16550_COM1    (CFG_CPLD_BASE + 0x1008)
-#   define CFG_NS16550_CLK     18432000
+#   define CONFIG_SYS_NS16550_SERIAL
+#   define CONFIG_SYS_NS16550
+#   define CONFIG_SYS_NS16550_REG_SIZE 1
+#   define CONFIG_SYS_NS16550_COM1     (CONFIG_SYS_CPLD_BASE + 0x1008)
+#   define CONFIG_SYS_NS16550_CLK      18432000
 #endif
 
 #define CONFIG_BAUDRATE                115200      /* ... at 115200 bps */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #define CONFIG_TIMESTAMP                       /* Print image info with timestamp */
 
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1
-#define CFG_I2C_MODULE         1
+#define CONFIG_SYS_I2C_MODULE          1
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x52    /* 1011000xb */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x52    /* 1011000xb */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 /*
 #define CONFIG_ENV_IS_IN_EEPROM        1
 #define CONFIG_ENV_OFFSET              0
 #define CONFIG_ENV_SIZE                256
 */
 
-/* If CFG_AMD_BOOT is defined, the the system will boot from AMD.
+/* If CONFIG_SYS_AMD_BOOT is defined, the the system will boot from AMD.
    else undefined it will boot from Intel Strata flash */
-#define CFG_AMD_BOOT           1
+#define CONFIG_SYS_AMD_BOOT            1
 
 /*
  * Flexbus Chipselect configuration
  */
-#if defined (CFG_AMD_BOOT)
-#define CFG_CS0_BASE           0xfff0
-#define CFG_CS0_MASK           0x00080000  /* 512 KB */
-#define CFG_CS0_CTRL           0x003f0d40
-
-#define CFG_CS1_BASE           0xfe00
-#define CFG_CS1_MASK           0x01000000  /* 16 MB */
-#define CFG_CS1_CTRL           0x003f1540
+#if defined (CONFIG_SYS_AMD_BOOT)
+#define CONFIG_SYS_CS0_BASE            0xfff0
+#define CONFIG_SYS_CS0_MASK            0x00080000  /* 512 KB */
+#define CONFIG_SYS_CS0_CTRL            0x003f0d40
+
+#define CONFIG_SYS_CS1_BASE            0xfe00
+#define CONFIG_SYS_CS1_MASK            0x01000000  /* 16 MB */
+#define CONFIG_SYS_CS1_CTRL            0x003f1540
 #else
-#define CFG_CS0_BASE           0xff00
-#define CFG_CS0_MASK           0x01000000  /* 16 MB */
-#define CFG_CS0_CTRL           0x003f1540
+#define CONFIG_SYS_CS0_BASE            0xff00
+#define CONFIG_SYS_CS0_MASK            0x01000000  /* 16 MB */
+#define CONFIG_SYS_CS0_CTRL            0x003f1540
 
-#define CFG_CS1_BASE           0xfe08
-#define CFG_CS1_MASK           0x00080000  /* 512 KB */
-#define CFG_CS1_CTRL           0x003f0d40
+#define CONFIG_SYS_CS1_BASE            0xfe08
+#define CONFIG_SYS_CS1_MASK            0x00080000  /* 512 KB */
+#define CONFIG_SYS_CS1_CTRL            0x003f0d40
 #endif
 
-#define CFG_CS2_BASE           0xf100
-#define CFG_CS2_MASK           0x00040000
-#define CFG_CS2_CTRL           0x003f1140
+#define CONFIG_SYS_CS2_BASE            0xf100
+#define CONFIG_SYS_CS2_MASK            0x00040000
+#define CONFIG_SYS_CS2_CTRL            0x003f1140
 
-#define CFG_CS3_BASE           0xf200
-#define CFG_CS3_MASK           0x00040000
-#define CFG_CS3_CTRL           0x003f1100
+#define CONFIG_SYS_CS3_BASE            0xf200
+#define CONFIG_SYS_CS3_MASK            0x00040000
+#define CONFIG_SYS_CS3_CTRL            0x003f1100
 
 
-#define CFG_FLASH0_BASE                (CFG_CS0_BASE << 16)
-#define CFG_FLASH1_BASE                (CFG_CS1_BASE << 16)
+#define CONFIG_SYS_FLASH0_BASE         (CONFIG_SYS_CS0_BASE << 16)
+#define CONFIG_SYS_FLASH1_BASE         (CONFIG_SYS_CS1_BASE << 16)
 
-#if defined (CFG_AMD_BOOT)
-#define CFG_AMD_BASE           CFG_FLASH0_BASE
-#define CFG_INTEL_BASE         CFG_FLASH1_BASE + 0xf00000
-#define CFG_FLASH_BASE         CFG_AMD_BASE
+#if defined (CONFIG_SYS_AMD_BOOT)
+#define CONFIG_SYS_AMD_BASE            CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_INTEL_BASE          CONFIG_SYS_FLASH1_BASE + 0xf00000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_AMD_BASE
 #else
-#define CFG_INTEL_BASE         CFG_FLASH0_BASE + 0xf00000
-#define CFG_AMD_BASE           CFG_FLASH1_BASE
-#define CFG_FLASH_BASE         CFG_INTEL_BASE
+#define CONFIG_SYS_INTEL_BASE          CONFIG_SYS_FLASH0_BASE + 0xf00000
+#define CONFIG_SYS_AMD_BASE            CONFIG_SYS_FLASH1_BASE
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_INTEL_BASE
 #endif
 
-#define CFG_CPLD_BASE          (CFG_CS2_BASE << 16)
-#define CFG_FPGA_BASE          (CFG_CS3_BASE << 16)
+#define CONFIG_SYS_CPLD_BASE           (CONFIG_SYS_CS2_BASE << 16)
+#define CONFIG_SYS_FPGA_BASE           (CONFIG_SYS_CS3_BASE << 16)
 
 
-#define CFG_MAX_FLASH_BANKS    4       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     4       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION           /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION            /* "Real" (hardware) sectors protection */
 
 #define PHYS_AMD_SECT_SIZE     0x00010000 /*  64 KB sectors (x2) */
 #define PHYS_INTEL_SECT_SIZE   0x00020000 /* 128 KB sectors (x2) */
 
-#define CFG_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_CHECKSUM
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#if defined (CFG_AMD_BOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH0_BASE + CFG_CS0_MASK - PHYS_AMD_SECT_SIZE)
+#if defined (CONFIG_SYS_AMD_BOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH0_BASE + CONFIG_SYS_CS0_MASK - PHYS_AMD_SECT_SIZE)
 #define CONFIG_ENV_SIZE                PHYS_AMD_SECT_SIZE
 #define CONFIG_ENV_SECT_SIZE   PHYS_AMD_SECT_SIZE
-#define CONFIG_ENV1_ADDR               (CFG_FLASH1_BASE + CFG_CS1_MASK - PHYS_INTEL_SECT_SIZE)
+#define CONFIG_ENV1_ADDR               (CONFIG_SYS_FLASH1_BASE + CONFIG_SYS_CS1_MASK - PHYS_INTEL_SECT_SIZE)
 #define CONFIG_ENV1_SIZE               PHYS_INTEL_SECT_SIZE
 #define CONFIG_ENV1_SECT_SIZE  PHYS_INTEL_SECT_SIZE
 #else
-#define CONFIG_ENV_ADDR                (CFG_FLASH0_BASE + CFG_CS0_MASK - PHYS_INTEL_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH0_BASE + CONFIG_SYS_CS0_MASK - PHYS_INTEL_SECT_SIZE)
 #define CONFIG_ENV_SIZE                PHYS_INTEL_SECT_SIZE
 #define CONFIG_ENV_SECT_SIZE   PHYS_INTEL_SECT_SIZE
-#define CONFIG_ENV1_ADDR               (CFG_FLASH1_BASE + CFG_CS1_MASK - PHYS_AMD_SECT_SIZE)
+#define CONFIG_ENV1_ADDR               (CONFIG_SYS_FLASH1_BASE + CONFIG_SYS_CS1_MASK - PHYS_AMD_SECT_SIZE)
 #define CONFIG_ENV1_SIZE               PHYS_AMD_SECT_SIZE
 #define CONFIG_ENV1_SECT_SIZE  PHYS_AMD_SECT_SIZE
 #endif
 #undef CONFIG_ENV_IS_IN_FLASH
 #endif
 
-#ifndef CFG_JFFS2_FIRST_SECTOR
-#define CFG_JFFS2_FIRST_SECTOR 0
+#ifndef CONFIG_SYS_JFFS2_FIRST_SECTOR
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  0
 #endif
-#ifndef CFG_JFFS2_FIRST_BANK
-#define CFG_JFFS2_FIRST_BANK   0
+#ifndef CONFIG_SYS_JFFS2_FIRST_BANK
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
 #endif
-#ifndef CFG_JFFS2_NUM_BANKS
-#define CFG_JFFS2_NUM_BANKS    1
+#ifndef CONFIG_SYS_JFFS2_NUM_BANKS
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 #endif
-#define CFG_JFFS2_LAST_BANK (CFG_JFFS2_FIRST_BANK + CFG_JFFS2_NUM_BANKS - 1)
+#define CONFIG_SYS_JFFS2_LAST_BANK (CONFIG_SYS_JFFS2_FIRST_BANK + CONFIG_SYS_JFFS2_NUM_BANKS - 1)
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
-#define CFG_SRAM_BASE          (CFG_MBAR + 0x20000)
-#define CFG_SRAM_SIZE          0x8000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
+#define CONFIG_SYS_SRAM_BASE           (CONFIG_SYS_MBAR + 0x20000)
+#define CONFIG_SYS_SRAM_SIZE           0x8000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      (CFG_MBAR + 0x20000)
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MBAR + 0x20000)
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in DPRAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10) /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)   /* Initial Memory map for Linux */
 
 /* SDRAM configuration */
-#define CFG_SDRAM_TOTAL_BANKS          2
-#define CFG_SDRAM_SPD_I2C_ADDR         0x51            /* 7bit */
-#define CFG_SDRAM_SPD_SIZE             0x40
-#define CFG_SDRAM_CAS_LATENCY          4               /* (CL=2)x2 */
+#define CONFIG_SYS_SDRAM_TOTAL_BANKS           2
+#define CONFIG_SYS_SDRAM_SPD_I2C_ADDR          0x51            /* 7bit */
+#define CONFIG_SYS_SDRAM_SPD_SIZE              0x40
+#define CONFIG_SYS_SDRAM_CAS_LATENCY           4               /* (CL=2)x2 */
 
 /* SDRAM drive strength register */
-#define CFG_SDRAM_DRIVE_STRENGTH       ((DRIVE_STRENGTH_LOW  << SDRAMDS_SBE_SHIFT) | \
+#define CONFIG_SYS_SDRAM_DRIVE_STRENGTH        ((DRIVE_STRENGTH_LOW  << SDRAMDS_SBE_SHIFT) | \
                                         (DRIVE_STRENGTH_HIGH << SDRAMDS_SBC_SHIFT) | \
                                         (DRIVE_STRENGTH_LOW  << SDRAMDS_SBA_SHIFT) | \
                                         (DRIVE_STRENGTH_OFF  << SDRAMDS_SBS_SHIFT) | \
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                       /* undef to save memory     */
-#define CFG_PROMPT             "=> "       /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                        /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "       /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024        /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024        /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256         /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256         /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16          /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16          /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000  /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000  /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000  /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000  /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000    /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000    /* default load address */
 
-#define CFG_HZ                 1000        /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000        /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8220 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8220 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5   /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5   /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
 #endif /* __CONFIG_H */
index 59cca0b60744543a8eb54fc9d87699fe5b7eaa90..9cda3f9bdf438ccd737321c96a1bf5685ccca221 100644 (file)
  * - Select bus for bd/buffers (see 28-13)
  * - Full duplex
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE | FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_INDEX */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size  */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size  */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x03800000      /* 1 ... 56 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x03800000      /* 1 ... 56 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x400000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         64
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          64
 
-#define CFG_IMMR               0xF0000000
-#define CFG_LSDRAM_BASE                0xFC000000
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_BCSR               0xFEA00000
-#define CFG_EEPROM             0xFEB00000
-#define CFG_FLSIMM_BASE                0xFF000000
+#define CONFIG_SYS_IMMR                0xF0000000
+#define CONFIG_SYS_LSDRAM_BASE         0xFC000000
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_BCSR                0xFEA00000
+#define CONFIG_SYS_EEPROM              0xFEB00000
+#define CONFIG_SYS_FLSIMM_BASE         0xFF000000
 
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_MAX_FLASH_BANKS    2       /* max num of flash banks       */
-#define CFG_MAX_FLASH_SECT     32      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of flash banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      32      /* max num of sects on one chip */
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLSIMM_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLSIMM_BASE }
 
 #define BCSR_PCI_MODE          0x01
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /* Hard reset configuration word */
-#define CFG_HRCW_MASTER                (HRCW_EBM | HRCW_BPS01| HRCW_CIP          |\
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_EBM | HRCW_BPS01| HRCW_CIP          |\
                                 HRCW_L2CPC10 | HRCW_DPPC00 | HRCW_ISB100 |\
                                 HRCW_BMS | HRCW_LBPC00 | HRCW_APPC10     |\
                                 HRCW_MODCK_H0111                          \
                                ) /* 0x16848207 */
 /* No slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                  */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 #if !defined(CONFIG_ENV_IS_IN_FLASH) && !defined(CONFIG_ENV_IS_IN_NVRAM)
 #define CONFIG_ENV_IS_IN_NVRAM 1
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #  define CONFIG_ENV_SECT_SIZE 0x10000
-#  define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #else
-#  define CONFIG_ENV_ADDR              (CFG_EEPROM + 0x400)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_EEPROM + 0x400)
 #  define CONFIG_ENV_SIZE              0x1000
-#  define CFG_NVRAM_ACCESS_ROUTINE
+#  define CONFIG_SYS_NVRAM_ACCESS_ROUTINE
 #endif
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
-#define CFG_HID0_INIT          (HID0_ICFI)
-#define CFG_HID0_FINAL         (HID0_ICE | HID0_IFEM | HID0_ABE)
-
-#define CFG_HID2               0
-
-#define CFG_SIUMCR             0x42200000
-#define CFG_SYPCR              0xFFFFFFC3
-#define CFG_BCR                        0x90000000
-#define CFG_SCCR               SCCR_DFBRG01
-
-#define CFG_RMR                        RMR_CSRE
-#define CFG_TMCNTSC            (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
-#define CFG_PISCR              (PISCR_PS|PISCR_PTF|PISCR_PTE)
-#define CFG_RCCR               0
-
-#define CFG_PSDMR              /* 0x834DA43B */0x014DA43A
-#define CFG_PSRT               0x0F/* 0x0C */
-#define CFG_LSDMR              0x0085A562
-#define CFG_LSRT               0x0F
-#define CFG_MPTPR              0x4000
-
-#define CFG_PSDRAM_BR          (CFG_SDRAM_BASE | 0x00000041)
-#define CFG_PSDRAM_OR          0xFC0028C0
-#define CFG_LSDRAM_BR          (CFG_LSDRAM_BASE | 0x00001861)
-#define CFG_LSDRAM_OR          0xFF803480
-
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | 0x00000801)
-#define CFG_OR0_PRELIM         0xFFE00856
-#define CFG_BR5_PRELIM         (CFG_EEPROM | 0x00000801)
-#define CFG_OR5_PRELIM         0xFFFF03F6
-#define CFG_BR6_PRELIM         (CFG_FLSIMM_BASE | 0x00001801)
-#define CFG_OR6_PRELIM         0xFF000856
-#define CFG_BR7_PRELIM         (CFG_BCSR | 0x00000801)
-#define CFG_OR7_PRELIM         0xFFFF83F6
-
-#define CFG_RESET_ADDRESS      0xC0000000
+#define CONFIG_SYS_HID0_INIT           (HID0_ICFI)
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE | HID0_IFEM | HID0_ABE)
+
+#define CONFIG_SYS_HID2                0
+
+#define CONFIG_SYS_SIUMCR              0x42200000
+#define CONFIG_SYS_SYPCR               0xFFFFFFC3
+#define CONFIG_SYS_BCR                 0x90000000
+#define CONFIG_SYS_SCCR                SCCR_DFBRG01
+
+#define CONFIG_SYS_RMR                 RMR_CSRE
+#define CONFIG_SYS_TMCNTSC             (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_PISCR               (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_RCCR                0
+
+#define CONFIG_SYS_PSDMR               /* 0x834DA43B */0x014DA43A
+#define CONFIG_SYS_PSRT                0x0F/* 0x0C */
+#define CONFIG_SYS_LSDMR               0x0085A562
+#define CONFIG_SYS_LSRT                0x0F
+#define CONFIG_SYS_MPTPR               0x4000
+
+#define CONFIG_SYS_PSDRAM_BR           (CONFIG_SYS_SDRAM_BASE | 0x00000041)
+#define CONFIG_SYS_PSDRAM_OR           0xFC0028C0
+#define CONFIG_SYS_LSDRAM_BR           (CONFIG_SYS_LSDRAM_BASE | 0x00001861)
+#define CONFIG_SYS_LSDRAM_OR           0xFF803480
+
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | 0x00000801)
+#define CONFIG_SYS_OR0_PRELIM          0xFFE00856
+#define CONFIG_SYS_BR5_PRELIM          (CONFIG_SYS_EEPROM | 0x00000801)
+#define CONFIG_SYS_OR5_PRELIM          0xFFFF03F6
+#define CONFIG_SYS_BR6_PRELIM          (CONFIG_SYS_FLSIMM_BASE | 0x00001801)
+#define CONFIG_SYS_OR6_PRELIM          0xFF000856
+#define CONFIG_SYS_BR7_PRELIM          (CONFIG_SYS_BCSR | 0x00000801)
+#define CONFIG_SYS_OR7_PRELIM          0xFFFF83F6
+
+#define CONFIG_SYS_RESET_ADDRESS       0xC0000000
 
 #endif /* __CONFIG_H */
index 170553ceb9d01c52916bd20bd5ce6d6c3948f4cd..08c4ced1c9879ff0094397943988eb84a3d7434b 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CFG_GT_6426x        GT_64260 /* with a 64260 system controller */
+#define CONFIG_SYS_GT_6426x        GT_64260 /* with a 64260 system controller */
 #define CONFIG_ETHER_PORT_MII  /* use two MII ports */
 #define CONFIG_INTEL_LXT97X    /* Intel LXT97X phy */
 
 /* which initialization functions to call for this board */
 #define CONFIG_MISC_INIT_R
 #define CONFIG_BOARD_EARLY_INIT_F
-#define CFG_BOARD_ASM_INIT
+#define CONFIG_SYS_BOARD_ASM_INIT
 
-#define CFG_BOARD_NAME         "Zuma APv2"
+#define CONFIG_SYS_BOARD_NAME          "Zuma APv2"
 
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 /*
  * The following defines let you select what serial you want to use
@@ -65,7 +65,7 @@
  *
  * what to do:
  * to use the DUART, undef CONFIG_MPSC.         If you have hacked a serial
- * cable onto the second DUART channel, change the CFG_DUART port from 1
+ * cable onto the second DUART channel, change the CONFIG_SYS_DUART port from 1
  * to 0 below.
  *
  * to use the MPSC, #define CONFIG_MPSC.  If you have wired up another
@@ -96,7 +96,7 @@
        "$netmask:$hostname:eth0:none panic=5 && bootm"
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#define CFG_LOADS_BAUD_CHANGE          /* allow baudrate changes       */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate changes       */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 #undef CONFIG_ALTIVEC                  /* undef to disable             */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C00000      /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C00000      /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x00300000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00300000      /* default load address */
 
-#define CFG_HZ                 1000            /* decr freq: 1ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decr freq: 1ms ticks */
 
-#define CFG_BUS_HZ             133000000       /* 133 MHz              */
+#define CONFIG_SYS_BUS_HZ              133000000       /* 133 MHz              */
 
-#define CFG_BUS_CLK            CFG_BUS_HZ
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_LOCK
 
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xfff00000
-#define CFG_RESET_ADDRESS      0xfff00100
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xfff00000
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
 
 /* areas to map different things with the GT in physical space */
-#define CFG_DRAM_BANKS         4
-#define CFG_DFL_GT_REGS                0x14000000      /* boot time GT_REGS */
+#define CONFIG_SYS_DRAM_BANKS          4
+#define CONFIG_SYS_DFL_GT_REGS         0x14000000      /* boot time GT_REGS */
 
 /* What to put in the bats. */
-#define CFG_MISC_REGION_BASE   0xf0000000
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000
 
 /* Peripheral Device section */
-#define CFG_GT_REGS            0xf8000000      /* later mapped GT_REGS */
-#define CFG_DEV_BASE           0xf0000000
-#define CFG_DEV0_SIZE          _64M /* zuma flash @ 0xf000.0000*/
-#define CFG_DEV1_SIZE           _8M /* zuma IDE   @ 0xf400.0000 */
-#define CFG_DEV2_SIZE           _8M /* unused */
-#define CFG_DEV3_SIZE           _8M /* unused */
-
-#define CFG_DEV0_PAR           0xc498243c
+#define CONFIG_SYS_GT_REGS             0xf8000000      /* later mapped GT_REGS */
+#define CONFIG_SYS_DEV_BASE            0xf0000000
+#define CONFIG_SYS_DEV0_SIZE           _64M /* zuma flash @ 0xf000.0000*/
+#define CONFIG_SYS_DEV1_SIZE            _8M /* zuma IDE   @ 0xf400.0000 */
+#define CONFIG_SYS_DEV2_SIZE            _8M /* unused */
+#define CONFIG_SYS_DEV3_SIZE            _8M /* unused */
+
+#define CONFIG_SYS_DEV0_PAR            0xc498243c
        /*     c    4     9     8     2     4     3     c */
        /* 33 22|2222|22 22|111 1|11 11|1 1  |     |      */
        /* 10 98|7654|32 10|987 6|54 32|1 098|7 654|3 210 */
        /* 11|00|0100|10 01|100|0 00|10 0|100 0|011 1|100 */
        /*  3| 0|.... ..| 1| 4 |  0 |  4 |   8 |   7 | 4  */
 
-#define CFG_DEV1_PAR           0xc01b6ac5
+#define CONFIG_SYS_DEV1_PAR            0xc01b6ac5
        /*     c    0     1     b     6     a     c     5 */
        /* 33 22|2222|22 22|111 1|11 11|1 1  |     |      */
        /* 10 98|7654|32 10|987 6|54 32|1 098|7 654|3 210 */
        /*  3| 0|.... ..| 1| 5 |  5 |  5 |   5 |   8 | 5  */
 
 
-#define CFG_8BIT_BOOT_PAR      0xc00b5e7c
+#define CONFIG_SYS_8BIT_BOOT_PAR       0xc00b5e7c
 
-#define CFG_MPP_CONTROL_0      0x00007777 /* GPP[7:4] : REQ0[1:0] GNT0[1:0] */
-#define CFG_MPP_CONTROL_1      0x00000000 /* GPP[15:12] : GPP[11:8] */
-#define CFG_MPP_CONTROL_2      0x00008888 /* GPP[23:20] : REQ1[1:0] GNT1[1:0] */
-#define CFG_MPP_CONTROL_3      0x00000000 /* GPP[31:28] (int[3:0]) */
+#define CONFIG_SYS_MPP_CONTROL_0       0x00007777 /* GPP[7:4] : REQ0[1:0] GNT0[1:0] */
+#define CONFIG_SYS_MPP_CONTROL_1       0x00000000 /* GPP[15:12] : GPP[11:8] */
+#define CONFIG_SYS_MPP_CONTROL_2       0x00008888 /* GPP[23:20] : REQ1[1:0] GNT1[1:0] */
+#define CONFIG_SYS_MPP_CONTROL_3       0x00000000 /* GPP[31:28] (int[3:0]) */
                                           /* GPP[27:24] (27 is int4, rest are GPP) */
 
-#define CFG_SERIAL_PORT_MUX    0x00001101 /* 11=MPSC1/MPSC0 01=ETH,  0=only MII */
-#define CFG_GPP_LEVEL_CONTROL  0xf8000000 /* interrupt inputs: GPP[31:27] */
+#define CONFIG_SYS_SERIAL_PORT_MUX     0x00001101 /* 11=MPSC1/MPSC0 01=ETH,  0=only MII */
+#define CONFIG_SYS_GPP_LEVEL_CONTROL   0xf8000000 /* interrupt inputs: GPP[31:27] */
 
-#define CFG_SDRAM_CONFIG       0xe4e18200      /* 0x448 */
+#define CONFIG_SYS_SDRAM_CONFIG        0xe4e18200      /* 0x448 */
                                /* idmas use buffer 1,1
                                   comm use buffer 1
                                   pci use buffer 0,0 (pci1->0 pci0->0)
                                /* 15 14 13:0 */
                                /* 1  0  0x200 */
 
-#define CFG_DEV0_SPACE         CFG_DEV_BASE
-#define CFG_DEV1_SPACE         (CFG_DEV0_SPACE + CFG_DEV0_SIZE)
-#define CFG_DEV2_SPACE         (CFG_DEV1_SPACE + CFG_DEV1_SIZE)
-#define CFG_DEV3_SPACE         (CFG_DEV2_SPACE + CFG_DEV2_SIZE)
+#define CONFIG_SYS_DEV0_SPACE          CONFIG_SYS_DEV_BASE
+#define CONFIG_SYS_DEV1_SPACE          (CONFIG_SYS_DEV0_SPACE + CONFIG_SYS_DEV0_SIZE)
+#define CONFIG_SYS_DEV2_SPACE          (CONFIG_SYS_DEV1_SPACE + CONFIG_SYS_DEV1_SIZE)
+#define CONFIG_SYS_DEV3_SPACE          (CONFIG_SYS_DEV2_SPACE + CONFIG_SYS_DEV2_SIZE)
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
 
 /* PCI MEMORY MAP section */
-#define CFG_PCI0_MEM_BASE      0x80000000
-#define CFG_PCI0_MEM_SIZE      _128M
-#define CFG_PCI1_MEM_BASE      0x88000000
-#define CFG_PCI1_MEM_SIZE      _128M
+#define CONFIG_SYS_PCI0_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI0_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI1_MEM_BASE       0x88000000
+#define CONFIG_SYS_PCI1_MEM_SIZE       _128M
 
-#define CFG_PCI0_0_MEM_SPACE   (CFG_PCI0_MEM_BASE)
-#define CFG_PCI1_0_MEM_SPACE   (CFG_PCI1_MEM_BASE)
+#define CONFIG_SYS_PCI0_0_MEM_SPACE    (CONFIG_SYS_PCI0_MEM_BASE)
+#define CONFIG_SYS_PCI1_0_MEM_SPACE    (CONFIG_SYS_PCI1_MEM_BASE)
 
 /* PCI I/O MAP section */
-#define CFG_PCI0_IO_BASE       0xfa000000
-#define CFG_PCI0_IO_SIZE       _16M
-#define CFG_PCI1_IO_BASE       0xfb000000
-#define CFG_PCI1_IO_SIZE       _16M
+#define CONFIG_SYS_PCI0_IO_BASE        0xfa000000
+#define CONFIG_SYS_PCI0_IO_SIZE        _16M
+#define CONFIG_SYS_PCI1_IO_BASE        0xfb000000
+#define CONFIG_SYS_PCI1_IO_SIZE        _16M
 
-#define CFG_PCI0_IO_SPACE      (CFG_PCI0_IO_BASE)
-#define CFG_PCI0_IO_SPACE_PCI  0x00000000
-#define CFG_PCI1_IO_SPACE      (CFG_PCI1_IO_BASE)
-#define CFG_PCI1_IO_SPACE_PCI  0x00000000
+#define CONFIG_SYS_PCI0_IO_SPACE       (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI0_IO_SPACE_PCI   0x00000000
+#define CONFIG_SYS_PCI1_IO_SPACE       (CONFIG_SYS_PCI1_IO_BASE)
+#define CONFIG_SYS_PCI1_IO_SPACE_PCI   0x00000000
 
 
 /*----------------------------------------------------------------------
  */
 
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
 /* init ram */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
 
 /* PCI0, PCI1 memory space (starting at PCI0 base, mapped in one BAT) */
-#define CFG_IBAT2L BATL_NO_ACCESS
-#define CFG_IBAT2U CFG_DBAT2U
-#define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L BATL_NO_ACCESS
+#define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_DBAT2L (CONFIG_SYS_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (CONFIG_SYS_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* GT regs, bootrom, all the devices, PCI I/O */
-#define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
-#define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
-#define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
+#define CONFIG_SYS_DBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8<<20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8<<20) /* Initial Memory map for Linux */
 
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    3       /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     130     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      130     /* max number of sectors on one chip */
 
-#define CFG_EXTRA_FLASH_DEVICE DEVICE0 /* extra flash at device 0 */
-#define CFG_EXTRA_FLASH_WIDTH  2       /* 16 bit */
+#define CONFIG_SYS_EXTRA_FLASH_DEVICE  DEVICE0 /* extra flash at device 0 */
+#define CONFIG_SYS_EXTRA_FLASH_WIDTH   2       /* 16 bit */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_CFI           1
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE                0x1000  /* Total Size of Environment Sector */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * look in include/74xx_7xx.h for the defines used here
  */
 
-#define CFG_L2
+#define CONFIG_SYS_L2
 
 #ifdef CONFIG_750CX
 #define L2_INIT                0
index 29a8eb693a5d9df324e1ec738b9b52f4fc02857a..52ccdb5b9d3277052a278da2336408aa07c11599 100644 (file)
@@ -42,7 +42,7 @@
 #include "amcc-common.h"
 
 /* Detect Acadia PLL input clock automatically via CPLD bit            */
-#define CONFIG_SYS_CLK_FREQ    ((in8(CFG_CPLD_BASE + 0) == 0x0c) ? \
+#define CONFIG_SYS_CLK_FREQ    ((in8(CONFIG_SYS_CPLD_BASE + 0) == 0x0c) ? \
                                66666666 : 33333000)
 
 #define CONFIG_BOARD_EARLY_INIT_F 1            /* Call board_early_init_f */
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xfe000000
-#define CFG_CPLD_BASE          0x80000000
-#define CFG_NAND_ADDR          0xd0000000
-#define CFG_USB_HOST           0xef603000      /* USB OHCI 1.1 controller      */
+#define CONFIG_SYS_FLASH_BASE          0xfe000000
+#define CONFIG_SYS_CPLD_BASE           0x80000000
+#define CONFIG_SYS_NAND_ADDR           0xd0000000
+#define CONFIG_SYS_USB_HOST            0xef603000      /* USB OHCI 1.1 controller      */
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM     1               /* OCM as init ram      */
+#define CONFIG_SYS_TEMP_STACK_OCM      1               /* OCM as init ram      */
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xf8000000
-#define CFG_OCM_DATA_SIZE      0x4000                  /* 16K of onchip SRAM           */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR       /* inside of SRAM               */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE       /* End of used area in RAM      */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xf8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x4000                  /* 16K of onchip SRAM           */
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR        /* inside of SRAM               */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE        /* End of used area in RAM      */
 
-#define CFG_GBL_DATA_SIZE      128                     /* size for initial data        */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128                     /* size for initial data        */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK                    /* external serial clock */
-#define CFG_BASE_BAUD          691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK                     /* external serial clock */
+#define CONFIG_SYS_BASE_BAUD           691200
 
 /*-----------------------------------------------------------------------
  * Environment
  * FLASH related
  *----------------------------------------------------------------------*/
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST    {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #else
-#define        CFG_NO_FLASH            1       /* No NOR on Acadia when NAND-booting   */
+#define        CONFIG_SYS_NO_FLASH             1       /* No NOR on Acadia when NAND-booting   */
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  * set up. While still running from cache, I experienced problems accessing
  * the NAND controller.        sr - 2006-08-25
  */
-#define CFG_NAND_BOOT_SPL_SRC  0xfffff000      /* SPL location                 */
-#define CFG_NAND_BOOT_SPL_SIZE (4 << 10)       /* SPL size                     */
-#define CFG_NAND_BOOT_SPL_DST  (CFG_OCM_DATA_ADDR + (16 << 10)) /* Copy SPL here*/
-#define CFG_NAND_U_BOOT_DST    0x01000000      /* Load NUB to this addr        */
-#define CFG_NAND_U_BOOT_START  CFG_NAND_U_BOOT_DST /* Start NUB from this addr */
-#define CFG_NAND_BOOT_SPL_DELTA        (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
+#define CONFIG_SYS_NAND_BOOT_SPL_SRC   0xfffff000      /* SPL location                 */
+#define CONFIG_SYS_NAND_BOOT_SPL_SIZE  (4 << 10)       /* SPL size                     */
+#define CONFIG_SYS_NAND_BOOT_SPL_DST   (CONFIG_SYS_OCM_DATA_ADDR + (16 << 10)) /* Copy SPL here*/
+#define CONFIG_SYS_NAND_U_BOOT_DST     0x01000000      /* Load NUB to this addr        */
+#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr  */
+#define CONFIG_SYS_NAND_BOOT_SPL_DELTA (CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST)
 
 /*
  * Define the partitioning of the NAND chip (only RAM U-Boot is needed here)
  */
-#define CFG_NAND_U_BOOT_OFFS   (16 << 10)      /* Offset to RAM U-Boot image   */
-#define CFG_NAND_U_BOOT_SIZE   (384 << 10)     /* Size of RAM U-Boot image     */
+#define CONFIG_SYS_NAND_U_BOOT_OFFS    (16 << 10)      /* Offset to RAM U-Boot image   */
+#define CONFIG_SYS_NAND_U_BOOT_SIZE    (384 << 10)     /* Size of RAM U-Boot image     */
 
 /*
  * Now the NAND chip has to be defined (no autodetection used!)
  */
-#define CFG_NAND_PAGE_SIZE     512             /* NAND chip page size          */
-#define CFG_NAND_BLOCK_SIZE    (16 << 10)      /* NAND chip block size         */
-#define CFG_NAND_PAGE_COUNT    32              /* NAND chip page count         */
-#define CFG_NAND_BAD_BLOCK_POS 5               /* Location of bad block marker */
-#undef CFG_NAND_4_ADDR_CYCLE                   /* No fourth addr used (<=32MB) */
-
-#define CFG_NAND_ECCSIZE       256
-#define CFG_NAND_ECCBYTES      3
-#define CFG_NAND_ECCSTEPS      (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
-#define CFG_NAND_OOBSIZE       16
-#define CFG_NAND_ECCTOTAL      (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
-#define CFG_NAND_ECCPOS                {0, 1, 2, 3, 6, 7}
+#define CONFIG_SYS_NAND_PAGE_SIZE      512             /* NAND chip page size          */
+#define CONFIG_SYS_NAND_BLOCK_SIZE     (16 << 10)      /* NAND chip block size         */
+#define CONFIG_SYS_NAND_PAGE_COUNT     32              /* NAND chip page count         */
+#define CONFIG_SYS_NAND_BAD_BLOCK_POS  5               /* Location of bad block marker */
+#undef CONFIG_SYS_NAND_4_ADDR_CYCLE                    /* No fourth addr used (<=32MB) */
+
+#define CONFIG_SYS_NAND_ECCSIZE        256
+#define CONFIG_SYS_NAND_ECCBYTES       3
+#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
+#define CONFIG_SYS_NAND_OOBSIZE        16
+#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
+#define CONFIG_SYS_NAND_ECCPOS         {0, 1, 2, 3, 6, 7}
 
 #ifdef CONFIG_ENV_IS_IN_NAND
 /*
  * For NAND booting the environment is embedded in the U-Boot image. Please take
  * look at the file board/amcc/sequoia/u-boot-nand.lds for details.
  */
-#define CONFIG_ENV_SIZE                CFG_NAND_BLOCK_SIZE
-#define CONFIG_ENV_OFFSET              (CFG_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
+#define CONFIG_ENV_SIZE                CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #endif
 
 /*-----------------------------------------------------------------------
  * RAM (CRAM)
  *----------------------------------------------------------------------*/
-#define CFG_MBYTES_RAM         64              /* 64MB                 */
+#define CONFIG_SYS_MBYTES_RAM          64              /* 64MB                 */
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /* I2C SYSMON (LM75, AD7414 is almost compatible)                      */
 #define CONFIG_DTT_LM75                1               /* ON Semi's LM75       */
 #define CONFIG_DTT_AD7414      1               /* use AD7414           */
 #define CONFIG_DTT_SENSORS     {0}             /* Sensor addresses     */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 /*-----------------------------------------------------------------------
  * Ethernet
 /*-----------------------------------------------------------------------
  * NAND FLASH
  *----------------------------------------------------------------------*/
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE          (CFG_NAND_ADDR + CFG_NAND_CS)
-#define CFG_NAND_SELECT_DEVICE  1      /* nand driver supports mutipl. chips   */
+#define CONFIG_SYS_NAND_BASE           (CONFIG_SYS_NAND_ADDR + CONFIG_SYS_NAND_CS)
+#define CONFIG_SYS_NAND_SELECT_DEVICE  1       /* nand driver supports mutipl. chips   */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
-#define CFG_NAND_CS            3
+#define CONFIG_SYS_NAND_CS             3
 /* Memory Bank 0 (Flash) initialization                                                */
-#define CFG_EBC_PB0AP          0x03337200
-#define CFG_EBC_PB0CR          0xfe0bc000
+#define CONFIG_SYS_EBC_PB0AP           0x03337200
+#define CONFIG_SYS_EBC_PB0CR           0xfe0bc000
 
 /* Memory Bank 3 (NAND-FLASH) initialization                                   */
-#define CFG_EBC_PB3AP          0x018003c0
-#define CFG_EBC_PB3CR          (CFG_NAND_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB3AP           0x018003c0
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_NAND_ADDR | 0x1c000)
 
 /* Just initial configuration for CRAM. Will be changed in memory.c to sync mode*/
 /* Memory Bank 1 (CRAM) initialization                                         */
-#define CFG_EBC_PB1AP          0x030400c0
-#define CFG_EBC_PB1CR          0x000bc000
+#define CONFIG_SYS_EBC_PB1AP           0x030400c0
+#define CONFIG_SYS_EBC_PB1CR           0x000bc000
 
 /* Memory Bank 2 (CRAM) initialization                                         */
-#define CFG_EBC_PB2AP          0x030400c0
-#define CFG_EBC_PB2CR          0x020bc000
+#define CONFIG_SYS_EBC_PB2AP           0x030400c0
+#define CONFIG_SYS_EBC_PB2CR           0x020bc000
 #else
-#define CFG_NAND_CS            0               /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             0               /* NAND chip connected to CSx   */
 /* Memory Bank 0 (NAND-FLASH) initialization                                   */
-#define CFG_EBC_PB0AP          0x018003c0
-#define CFG_EBC_PB0CR          (CFG_NAND_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB0AP           0x018003c0
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_NAND_ADDR | 0x1c000)
 
 /*
  * When NAND-booting the CRAM EBC setup must be done in sync mode, since the
  * NAND-SPL already initialized the CRAM and EBC to sync mode.
  */
 /* Memory Bank 1 (CRAM) initialization                                         */
-#define CFG_EBC_PB1AP          0x9C0201C0
-#define CFG_EBC_PB1CR          0x000bc000
+#define CONFIG_SYS_EBC_PB1AP           0x9C0201C0
+#define CONFIG_SYS_EBC_PB1CR           0x000bc000
 
 /* Memory Bank 2 (CRAM) initialization                                         */
-#define CFG_EBC_PB2AP          0x9C0201C0
-#define CFG_EBC_PB2CR          0x020bc000
+#define CONFIG_SYS_EBC_PB2AP           0x9C0201C0
+#define CONFIG_SYS_EBC_PB2CR           0x020bc000
 #endif
 
 /* Memory Bank 4 (CPLD) initialization                                         */
-#define CFG_EBC_PB4AP          0x04006000
-#define CFG_EBC_PB4CR          (CFG_CPLD_BASE | 0x18000)
+#define CONFIG_SYS_EBC_PB4AP           0x04006000
+#define CONFIG_SYS_EBC_PB4CR           (CONFIG_SYS_CPLD_BASE | 0x18000)
 
-#define CFG_EBC_CFG            0xf8400000
+#define CONFIG_SYS_EBC_CFG             0xf8400000
 
 /*-----------------------------------------------------------------------
  * GPIO Setup
  *----------------------------------------------------------------------*/
-#define CFG_GPIO_CRAM_CLK      8
-#define CFG_GPIO_CRAM_WAIT     9               /* GPIO-In              */
-#define CFG_GPIO_CRAM_ADV      10
-#define CFG_GPIO_CRAM_CRE      (32 + 21)       /* GPIO-Out             */
+#define CONFIG_SYS_GPIO_CRAM_CLK       8
+#define CONFIG_SYS_GPIO_CRAM_WAIT      9               /* GPIO-In              */
+#define CONFIG_SYS_GPIO_CRAM_ADV       10
+#define CONFIG_SYS_GPIO_CRAM_CRE       (32 + 21)       /* GPIO-Out             */
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO_0 setup (PPC405EZ specific)
  * GPIO0[28-30]        - Trace Outputs / PWM Inputs
  * GPIO0[31]   - PWM_8 I/O
  */
-#define CFG_GPIO0_TCR          0xC0A00000
-#define CFG_GPIO0_OSRL         0x50004400
-#define CFG_GPIO0_OSRH         0x02000055
-#define CFG_GPIO0_ISR1L                0x00001000
-#define CFG_GPIO0_ISR1H                0x00000055
-#define CFG_GPIO0_TSRL         0x02000000
-#define CFG_GPIO0_TSRH         0x00000055
+#define CONFIG_SYS_GPIO0_TCR           0xC0A00000
+#define CONFIG_SYS_GPIO0_OSRL          0x50004400
+#define CONFIG_SYS_GPIO0_OSRH          0x02000055
+#define CONFIG_SYS_GPIO0_ISR1L         0x00001000
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000055
+#define CONFIG_SYS_GPIO0_TSRL          0x02000000
+#define CONFIG_SYS_GPIO0_TSRH          0x00000055
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO_1 setup (PPC405EZ specific)
  * GPIO1[16]   - SPI_SS_1_N Output
  * GPIO1[17-20]        - Trace Output/External Interrupts IRQ0 - IRQ3 inputs
  */
-#define CFG_GPIO1_TCR          0xFFFF8414
-#define CFG_GPIO1_OSRL         0x40000110
-#define CFG_GPIO1_OSRH         0x55455555
-#define CFG_GPIO1_ISR1L                0x15555445
-#define CFG_GPIO1_ISR1H                0x00000000
-#define CFG_GPIO1_TSRL         0x00000000
-#define CFG_GPIO1_TSRH         0x00000000
+#define CONFIG_SYS_GPIO1_TCR           0xFFFF8414
+#define CONFIG_SYS_GPIO1_OSRL          0x40000110
+#define CONFIG_SYS_GPIO1_OSRH          0x55455555
+#define CONFIG_SYS_GPIO1_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO1_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO1_TSRL          0x00000000
+#define CONFIG_SYS_GPIO1_TSRH          0x00000000
 
 #endif /* __CONFIG_H */
index ec1d4693c8cb166d1fc79b466408c7318d7ac64b..a3b04b1affbf18276b819dee0b84b6dbb771c308 100644 (file)
@@ -39,7 +39,7 @@
 #define CONFIG_DISPLAY_CPUINFO         1
 #define CONFIG_DISPLAY_BOARDINFO       1
 
-#define CFG_IXP425_CONSOLE             IXP425_UART2
+#define CONFIG_SYS_IXP425_CONSOLE              IXP425_UART2
 #define CONFIG_BAUDRATE                        115200
 #define CONFIG_BOOTDELAY               3
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
@@ -52,9 +52,9 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN                 (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MALLOC_LEN                  (CONFIG_ENV_SIZE + 128*1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE              128
+#define CONFIG_SYS_GBL_DATA_SIZE               128
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 #endif
 
 /* Miscellaneous configurable options */
-#define CFG_LONGHELP
-#define CFG_PROMPT                     "=> "
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT                      "=> "
 /* Console I/O Buffer Size */
-#define CFG_CBSIZE                     256
+#define CONFIG_SYS_CBSIZE                      256
 /* Print Buffer Size */
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
 /* max number of command args */
-#define CFG_MAXARGS                    16
+#define CONFIG_SYS_MAXARGS                     16
 /* Boot Argument Buffer Size */
-#define CFG_BARGSIZE                   CFG_CBSIZE
+#define CONFIG_SYS_BARGSIZE                    CONFIG_SYS_CBSIZE
 
-#define CFG_MEMTEST_START              0x00400000
-#define CFG_MEMTEST_END                        0x00800000
+#define CONFIG_SYS_MEMTEST_START               0x00400000
+#define CONFIG_SYS_MEMTEST_END                 0x00800000
 
 /* everything, incl board info, in Hz */
-#undef  CFG_CLKS_IN_HZ
+#undef  CONFIG_SYS_CLKS_IN_HZ
 /* spec says 66.666 MHz, but it appears to be 33 */
-#define CFG_HZ                         3333333
+#define CONFIG_SYS_HZ                          3333333
 
 /* default load address */
-#define CFG_LOAD_ADDR                  0x00010000
+#define CONFIG_SYS_LOAD_ADDR                   0x00010000
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE             { 9600, 19200, 38400, 57600,    \
+#define CONFIG_SYS_BAUDRATE_TABLE              { 9600, 19200, 38400, 57600,    \
                                          115200, 230400 }
 #define CONFIG_SERIAL_RTS_ACTIVE       1
 
 #endif
 
 /* Expansion bus settings */
-#define CFG_EXP_CS0                    0xbd113842
+#define CONFIG_SYS_EXP_CS0                     0xbd113842
 
 /* SDRAM settings */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM_1                   0x00000000
-#define CFG_DRAM_BASE                  0x00000000
+#define CONFIG_SYS_DRAM_BASE                   0x00000000
 
 #if CONFIG_ACTUX1_32MB
-# define CFG_SDR_CONFIG                        0x18
+# define CONFIG_SYS_SDR_CONFIG                 0x18
 # define PHYS_SDRAM_1_SIZE             0x02000000
-# define CFG_SDRAM_REFRESH_CNT         0x81a
-# define CFG_SDR_MODE_CONFIG           0x1
-# define CFG_DRAM_SIZE                 0x02000000
+# define CONFIG_SYS_SDRAM_REFRESH_CNT          0x81a
+# define CONFIG_SYS_SDR_MODE_CONFIG            0x1
+# define CONFIG_SYS_DRAM_SIZE                  0x02000000
 #else /* 16MB SDRAM */
-# define CFG_SDR_CONFIG                        0x3A
+# define CONFIG_SYS_SDR_CONFIG                 0x3A
 # define PHYS_SDRAM_1_SIZE             0x01000000
-# define CFG_SDRAM_REFRESH_CNT         0x81a
-# define CFG_SDR_MODE_CONFIG           0x1
-# define CFG_DRAM_SIZE                 0x01000000
+# define CONFIG_SYS_SDRAM_REFRESH_CNT          0x81a
+# define CONFIG_SYS_SDR_MODE_CONFIG            0x1
+# define CONFIG_SYS_DRAM_SIZE                  0x01000000
 #endif
 
 /* FLASH organization */
 #if CONFIG_ACTUX1_FLASH2X2
-# define CFG_MAX_FLASH_BANKS           2
+# define CONFIG_SYS_MAX_FLASH_BANKS            2
 /* max number of sectors on one chip */
-# define CFG_MAX_FLASH_SECT            40
+# define CONFIG_SYS_MAX_FLASH_SECT             40
 # define PHYS_FLASH_1                  0x50000000
 # define PHYS_FLASH_2                  0x50200000
-# define CFG_FLASH_BANKS_LIST          { PHYS_FLASH_1, PHYS_FLASH_2 }
+# define CONFIG_SYS_FLASH_BANKS_LIST           { PHYS_FLASH_1, PHYS_FLASH_2 }
 #endif
 #if CONFIG_ACTUX1_FLASH1X8
-# define CFG_MAX_FLASH_BANKS           1
+# define CONFIG_SYS_MAX_FLASH_BANKS            1
 /* max number of sectors on one chip */
-# define CFG_MAX_FLASH_SECT            140
+# define CONFIG_SYS_MAX_FLASH_SECT             140
 # define PHYS_FLASH_1                  0x50000000
-# define CFG_FLASH_BANKS_LIST          { PHYS_FLASH_1 }
+# define CONFIG_SYS_FLASH_BANKS_LIST           { PHYS_FLASH_1 }
 #endif
 
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MONITOR_BASE               PHYS_FLASH_1
-#define CFG_MONITOR_LEN                        (256 << 10)
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE                PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_LEN                 (256 << 10)
 
 /* Use common CFI driver */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
 /* no byte writes on IXP4xx */
-#define CFG_FLASH_CFI_WIDTH            FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH             FLASH_CFI_16BIT
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 /* Ethernet */
 
 /* MII PHY management */
 #define CONFIG_MII                     1
 /* Number of ethernet rx buffers & descriptors */
-#define CFG_RX_ETH_BUFFER              16
+#define CONFIG_SYS_RX_ETH_BUFFER               16
 #define CONFIG_RESET_PHY_R             1
 
 #define CONFIG_CMD_DHCP
 #define CONFIG_BOOTP_HOSTNAME
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE             32
+#define CONFIG_SYS_CACHELINE_SIZE              32
 
 /*
  * environment organization:
 #define        CONFIG_ENV_IS_IN_FLASH          1
 #define CONFIG_ENV_SIZE                        0x2000
 #define CONFIG_ENV_ADDR                        (PHYS_FLASH_1 + 0x4000)
-#define CFG_USE_PPCENV                 1
+#define CONFIG_SYS_USE_PPCENV                  1
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "mtd=IXP4XX-Flash.0:256k(uboot),64k(ucode),1152k(linux),-(root)\0" \
index a3f5a4a43cb7b8b39ab82ac56a5ab99c2559418c..7e6e8f28248768d3b1aabf63a94b830ea9cfa5a4 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_DISPLAY_CPUINFO         1
 #define CONFIG_DISPLAY_BOARDINFO       1
 
-#define CFG_IXP425_CONSOLE             IXP425_UART2
+#define CONFIG_SYS_IXP425_CONSOLE              IXP425_UART2
 #define CONFIG_BAUDRATE                        115200
 #define CONFIG_BOOTDELAY               5
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
@@ -43,9 +43,9 @@
 #undef CONFIG_USE_IRQ
 
 /* Size of malloc() pool */
-#define CFG_MALLOC_LEN                 (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MALLOC_LEN                  (CONFIG_ENV_SIZE + 128*1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE              128
+#define CONFIG_SYS_GBL_DATA_SIZE               128
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 #endif
 
 /* Miscellaneous configurable options */
-#define CFG_LONGHELP
-#define CFG_PROMPT                     "=> "
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT                      "=> "
 /* Console I/O Buffer Size */
-#define CFG_CBSIZE                     256
+#define CONFIG_SYS_CBSIZE                      256
 /* Print Buffer Size */
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
 /* max number of command args */
-#define CFG_MAXARGS                    16
+#define CONFIG_SYS_MAXARGS                     16
 /* Boot Argument Buffer Size */
-#define CFG_BARGSIZE                   CFG_CBSIZE
+#define CONFIG_SYS_BARGSIZE                    CONFIG_SYS_CBSIZE
 
-#define CFG_MEMTEST_START              0x00400000
-#define CFG_MEMTEST_END                        0x00800000
+#define CONFIG_SYS_MEMTEST_START               0x00400000
+#define CONFIG_SYS_MEMTEST_END                 0x00800000
 
 /* everything, incl board info, in Hz */
-#undef  CFG_CLKS_IN_HZ
+#undef  CONFIG_SYS_CLKS_IN_HZ
 /* spec says 66.666 MHz, but it appears to be 33 */
-#define CFG_HZ                         3333333
+#define CONFIG_SYS_HZ                          3333333
 
 /* default load address */
-#define CFG_LOAD_ADDR                  0x00010000
+#define CONFIG_SYS_LOAD_ADDR                   0x00010000
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE             { 9600, 19200, 38400, 57600, \
+#define CONFIG_SYS_BAUDRATE_TABLE              { 9600, 19200, 38400, 57600, \
                                          115200, 230400 }
 #define CONFIG_SERIAL_RTS_ACTIVE       1
 
 #endif
 
 /* Expansion bus settings */
-#define CFG_EXP_CS0                    0xbd113042
+#define CONFIG_SYS_EXP_CS0                     0xbd113042
 
 /* SDRAM settings */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM_1                   0x00000000
-#define CFG_DRAM_BASE                  0x00000000
+#define CONFIG_SYS_DRAM_BASE                   0x00000000
 
 /* 16MB SDRAM */
-#define CFG_SDR_CONFIG                 0x3A
+#define CONFIG_SYS_SDR_CONFIG                  0x3A
 #define PHYS_SDRAM_1_SIZE              0x01000000
-#define CFG_SDRAM_REFRESH_CNT          0x81a
-#define CFG_SDR_MODE_CONFIG            0x1
-#define CFG_DRAM_SIZE                  0x01000000
+#define CONFIG_SYS_SDRAM_REFRESH_CNT           0x81a
+#define CONFIG_SYS_SDR_MODE_CONFIG             0x1
+#define CONFIG_SYS_DRAM_SIZE                   0x01000000
 
 /* FLASH organization */
-#define CFG_MAX_FLASH_BANKS            1
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
 /* max number of sectors on one chip */
-#define CFG_MAX_FLASH_SECT             140
+#define CONFIG_SYS_MAX_FLASH_SECT              140
 #define PHYS_FLASH_1                   0x50000000
-#define CFG_FLASH_BANKS_LIST           { PHYS_FLASH_1 }
+#define CONFIG_SYS_FLASH_BANKS_LIST            { PHYS_FLASH_1 }
 
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MONITOR_BASE               PHYS_FLASH_1
-#define CFG_MONITOR_LEN                        (256 << 10)
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE                PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_LEN                 (256 << 10)
 
 /* Use common CFI driver */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
 /* no byte writes on IXP4xx */
-#define CFG_FLASH_CFI_WIDTH            FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH             FLASH_CFI_16BIT
 
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 /* Ethernet */
 
 /* MII PHY management */
 #define CONFIG_MII                     1
 /* Number of ethernet rx buffers & descriptors */
-#define CFG_RX_ETH_BUFFER              16
+#define CONFIG_SYS_RX_ETH_BUFFER               16
 #define CONFIG_RESET_PHY_R             1
 /* ethernet switch connected to MII port */
 #define CONFIG_MII_ETHSWITCH           1
 #define CONFIG_BOOTP_HOSTNAME
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE             32
+#define CONFIG_SYS_CACHELINE_SIZE              32
 
 /*
  * environment organization:
 #define        CONFIG_ENV_IS_IN_FLASH          1
 #define CONFIG_ENV_SIZE                        0x2000
 #define CONFIG_ENV_ADDR                        (PHYS_FLASH_1 + 0x4000)
-#define CFG_USE_PPCENV                 1
+#define CONFIG_SYS_USE_PPCENV                  1
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "mtd=IXP4XX-Flash.0:256k(uboot),64k(ucode),1152k(linux),-(root)\0" \
index fc2d02fc39bdc58d9c767006643fba6621dc26fa..3f42ed497cdb158ecaf611e302e39a58bb8d47fb 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_DISPLAY_CPUINFO         1
 #define CONFIG_DISPLAY_BOARDINFO       1
 
-#define CFG_IXP425_CONSOLE             IXP425_UART2
+#define CONFIG_SYS_IXP425_CONSOLE              IXP425_UART2
 #define CONFIG_BAUDRATE                        115200
 #define CONFIG_BOOTDELAY               3
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
@@ -43,9 +43,9 @@
 #undef CONFIG_USE_IRQ
 
 /* Size of malloc() pool */
-#define CFG_MALLOC_LEN                 (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MALLOC_LEN                  (CONFIG_ENV_SIZE + 128*1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE              128
+#define CONFIG_SYS_GBL_DATA_SIZE               128
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 #endif
 
 /* Miscellaneous configurable options */
-#define CFG_LONGHELP
-#define CFG_PROMPT                     "=> "
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT                      "=> "
 /* Console I/O Buffer Size */
-#define CFG_CBSIZE                     256
+#define CONFIG_SYS_CBSIZE                      256
 /* Print Buffer Size */
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
 /* max number of command args */
-#define CFG_MAXARGS                    16
+#define CONFIG_SYS_MAXARGS                     16
 /* Boot Argument Buffer Size */
-#define CFG_BARGSIZE                   CFG_CBSIZE
+#define CONFIG_SYS_BARGSIZE                    CONFIG_SYS_CBSIZE
 
-#define CFG_MEMTEST_START              0x00400000
-#define CFG_MEMTEST_END                        0x00800000
+#define CONFIG_SYS_MEMTEST_START               0x00400000
+#define CONFIG_SYS_MEMTEST_END                 0x00800000
 
 /* everything, incl board info, in Hz */
-#undef  CFG_CLKS_IN_HZ
+#undef  CONFIG_SYS_CLKS_IN_HZ
 /* spec says 66.666 MHz, but it appears to be 33 */
-#define CFG_HZ                         3333333
+#define CONFIG_SYS_HZ                          3333333
 
 /* default load address */
-#define CFG_LOAD_ADDR                  0x00010000
+#define CONFIG_SYS_LOAD_ADDR                   0x00010000
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE             { 9600, 19200, 38400, 57600, \
+#define CONFIG_SYS_BAUDRATE_TABLE              { 9600, 19200, 38400, 57600, \
                                          115200, 230400 }
 #define CONFIG_SERIAL_RTS_ACTIVE       1
 
 #endif
 
 /* Expansion bus settings */
-#define CFG_EXP_CS0                    0xbd113442
+#define CONFIG_SYS_EXP_CS0                     0xbd113442
 
 /* SDRAM settings */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM_1                   0x00000000
-#define CFG_DRAM_BASE                  0x00000000
+#define CONFIG_SYS_DRAM_BASE                   0x00000000
 
 /* 16MB SDRAM */
-#define CFG_SDR_CONFIG                 0x3A
+#define CONFIG_SYS_SDR_CONFIG                  0x3A
 #define PHYS_SDRAM_1_SIZE              0x01000000
-#define CFG_SDRAM_REFRESH_CNT          0x81a
-#define CFG_SDR_MODE_CONFIG            0x1
-#define CFG_DRAM_SIZE                  0x01000000
+#define CONFIG_SYS_SDRAM_REFRESH_CNT           0x81a
+#define CONFIG_SYS_SDR_MODE_CONFIG             0x1
+#define CONFIG_SYS_DRAM_SIZE                   0x01000000
 
 /* FLASH organization */
-#define CFG_MAX_FLASH_BANKS            1
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
 /* max number of sectors on one chip */
-#define CFG_MAX_FLASH_SECT             140
+#define CONFIG_SYS_MAX_FLASH_SECT              140
 #define PHYS_FLASH_1                   0x50000000
-#define CFG_FLASH_BANKS_LIST           { PHYS_FLASH_1 }
+#define CONFIG_SYS_FLASH_BANKS_LIST            { PHYS_FLASH_1 }
 
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MONITOR_BASE               PHYS_FLASH_1
-#define CFG_MONITOR_LEN                        (256 << 10)
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE                PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_LEN                 (256 << 10)
 
 /* Use common CFI driver */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
 /* no byte writes on IXP4xx */
-#define CFG_FLASH_CFI_WIDTH            FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH             FLASH_CFI_16BIT
 
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 /* Ethernet */
 
 /* MII PHY management */
 #define CONFIG_MII                     1
 /* Number of ethernet rx buffers & descriptors */
-#define CFG_RX_ETH_BUFFER              16
+#define CONFIG_SYS_RX_ETH_BUFFER               16
 #define CONFIG_RESET_PHY_R             1
 /* ethernet switch connected to MII port */
 #define CONFIG_MII_ETHSWITCH           1
 #define CONFIG_BOOTP_HOSTNAME
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE             32
+#define CONFIG_SYS_CACHELINE_SIZE              32
 
 /*
  * environment organization:
 #define        CONFIG_ENV_IS_IN_FLASH          1
 #define CONFIG_ENV_SIZE                        0x2000
 #define CONFIG_ENV_ADDR                        (PHYS_FLASH_1 + 0x4000)
-#define CFG_USE_PPCENV                 1
+#define CONFIG_SYS_USE_PPCENV                  1
 
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "mtd=IXP4XX-Flash.0:256k(uboot),64k(ucode),1152k(linux),-(root)\0" \
index 83bd7f569a2714f6a1cdfc6e24f640440f3c82f5..3cf1b2058b25de00bac2ff1a1d75d33be9dc23dd 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_DISPLAY_CPUINFO         1
 #define CONFIG_DISPLAY_BOARDINFO       1
 
-#define CFG_IXP425_CONSOLE             IXP425_UART1
+#define CONFIG_SYS_IXP425_CONSOLE              IXP425_UART1
 #define CONFIG_BAUDRATE                        115200
 #define CONFIG_BOOTDELAY               3
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
@@ -43,9 +43,9 @@
 #undef CONFIG_USE_IRQ
 
 /* Size of malloc() pool */
-#define CFG_MALLOC_LEN                 (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MALLOC_LEN                  (CONFIG_ENV_SIZE + 128*1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE              128
+#define CONFIG_SYS_GBL_DATA_SIZE               128
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 #endif
 
 /* Miscellaneous configurable options */
-#define CFG_LONGHELP
-#define CFG_PROMPT                     "=> "
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT                      "=> "
 /* Console I/O Buffer Size */
-#define CFG_CBSIZE                     256
+#define CONFIG_SYS_CBSIZE                      256
 /* Print Buffer Size */
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
 /* max number of command args */
-#define CFG_MAXARGS                    16
+#define CONFIG_SYS_MAXARGS                     16
 /* Boot Argument Buffer Size */
-#define CFG_BARGSIZE                   CFG_CBSIZE
+#define CONFIG_SYS_BARGSIZE                    CONFIG_SYS_CBSIZE
 
-#define CFG_MEMTEST_START              0x00400000
-#define CFG_MEMTEST_END                        0x00800000
+#define CONFIG_SYS_MEMTEST_START               0x00400000
+#define CONFIG_SYS_MEMTEST_END                 0x00800000
 
 /* everything, incl board info, in Hz */
-#undef  CFG_CLKS_IN_HZ
+#undef  CONFIG_SYS_CLKS_IN_HZ
 /* spec says 66.666 MHz, but it appears to be 33 */
-#define CFG_HZ                         3333333
+#define CONFIG_SYS_HZ                          3333333
 
 /* default load address */
-#define CFG_LOAD_ADDR                  0x00010000
+#define CONFIG_SYS_LOAD_ADDR                   0x00010000
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE             { 9600, 19200, 38400, 57600, \
+#define CONFIG_SYS_BAUDRATE_TABLE              { 9600, 19200, 38400, 57600, \
                                          115200, 230400 }
 #define CONFIG_SERIAL_RTS_ACTIVE       1
 
 #endif
 
 /* Expansion bus settings */
-#define CFG_EXP_CS0                    0xbd113003
+#define CONFIG_SYS_EXP_CS0                     0xbd113003
 
 /* SDRAM settings */
 #define CONFIG_NR_DRAM_BANKS           1
 #define PHYS_SDRAM_1                   0x00000000
-#define CFG_DRAM_BASE                  0x00000000
+#define CONFIG_SYS_DRAM_BASE                   0x00000000
 
 /* 32MB SDRAM */
-#define CFG_SDR_CONFIG                 0x18
+#define CONFIG_SYS_SDR_CONFIG                  0x18
 #define PHYS_SDRAM_1_SIZE              0x02000000
-#define CFG_SDRAM_REFRESH_CNT          0x81a
-#define CFG_SDR_MODE_CONFIG            0x1
-#define CFG_DRAM_SIZE                  0x02000000
+#define CONFIG_SYS_SDRAM_REFRESH_CNT           0x81a
+#define CONFIG_SYS_SDR_MODE_CONFIG             0x1
+#define CONFIG_SYS_DRAM_SIZE                   0x02000000
 
 /* FLASH organization */
-#define CFG_MAX_FLASH_BANKS            2
+#define CONFIG_SYS_MAX_FLASH_BANKS             2
 /* max # of sectors per chip */
-#define CFG_MAX_FLASH_SECT             70
+#define CONFIG_SYS_MAX_FLASH_SECT              70
 #define PHYS_FLASH_1                   0x50000000
 #define PHYS_FLASH_2                   0x51000000
-#define CFG_FLASH_BANKS_LIST           { PHYS_FLASH_1, PHYS_FLASH_2 }
+#define CONFIG_SYS_FLASH_BANKS_LIST            { PHYS_FLASH_1, PHYS_FLASH_2 }
 
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MONITOR_BASE               PHYS_FLASH_1
-#define CFG_MONITOR_LEN                        (252 << 10)
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE                PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_LEN                 (252 << 10)
 
 /* Use common CFI driver */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
 /* board provides its own flash_init code */
 #define CONFIG_FLASH_CFI_LEGACY                1
 /* no byte writes on IXP4xx */
-#define CFG_FLASH_CFI_WIDTH            FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH             FLASH_CFI_16BIT
 /* SST 39VF020 etc. support */
-#define CFG_FLASH_LEGACY_256Kx8        1
+#define CONFIG_SYS_FLASH_LEGACY_256Kx8 1
 
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 /* Ethernet */
 
 /* MII PHY management */
 #define CONFIG_MII                     1
 /* Number of ethernet rx buffers & descriptors */
-#define CFG_RX_ETH_BUFFER              16
+#define CONFIG_SYS_RX_ETH_BUFFER               16
 
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_NET
 #define CONFIG_BOOTP_HOSTNAME
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE             32
+#define CONFIG_SYS_CACHELINE_SIZE              32
 
 /* environment organization: one complete 4k flash sector */
 #define        CONFIG_ENV_IS_IN_FLASH          1
index d6f7e02bc86f7b4a16aca1e10a27e495f7f65230..bb3525f1751822226ab75be0f31b35d5894f4198 100644 (file)
 /* CONFIG_PCI is defined at config time */
 
 #ifdef CONFIG_ADS5121_REV2
-#define CFG_MPC512X_CLKIN      66000000        /* in Hz */
+#define CONFIG_SYS_MPC512X_CLKIN       66000000        /* in Hz */
 #else
-#define CFG_MPC512X_CLKIN      33333333        /* in Hz */
+#define CONFIG_SYS_MPC512X_CLKIN       33333333        /* in Hz */
 #define CONFIG_PCI
 #endif
 
 #define CONFIG_BOARD_EARLY_INIT_F              /* call board_early_init_f() */
 #define CONFIG_MISC_INIT_R
 
-#define CFG_IMMR               0x80000000
-#define CFG_DIU_ADDR           (CFG_IMMR+0x2100)
+#define CONFIG_SYS_IMMR                0x80000000
+#define CONFIG_SYS_DIU_ADDR            (CONFIG_SYS_IMMR+0x2100)
 
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * DDR Setup - manually set all parameters as there's no SPD etc.
  */
 #ifdef CONFIG_ADS5121_REV2
-#define CFG_DDR_SIZE           256             /* MB */
+#define CONFIG_SYS_DDR_SIZE            256             /* MB */
 #else
-#define CFG_DDR_SIZE           512             /* MB */
+#define CONFIG_SYS_DDR_SIZE            512             /* MB */
 #endif
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
 
 /* DDR Controller Configuration
  *
  *     [04:00] DRAM tRPA
  */
 #ifdef CONFIG_ADS5121_REV2
-#define CFG_MDDRC_SYS_CFG      0xF8604A00
-#define CFG_MDDRC_SYS_CFG_RUN  0xE8604A00
-#define CFG_MDDRC_TIME_CFG1    0x54EC1168
-#define CFG_MDDRC_TIME_CFG2    0x35210864
+#define CONFIG_SYS_MDDRC_SYS_CFG       0xF8604A00
+#define CONFIG_SYS_MDDRC_SYS_CFG_RUN   0xE8604A00
+#define CONFIG_SYS_MDDRC_TIME_CFG1     0x54EC1168
+#define CONFIG_SYS_MDDRC_TIME_CFG2     0x35210864
 #else
-#define CFG_MDDRC_SYS_CFG       0xFA804A00
-#define CFG_MDDRC_SYS_CFG_RUN   0xEA804A00
-#define CFG_MDDRC_TIME_CFG1     0x68EC1168
-#define CFG_MDDRC_TIME_CFG2     0x34310864
+#define CONFIG_SYS_MDDRC_SYS_CFG        0xFA804A00
+#define CONFIG_SYS_MDDRC_SYS_CFG_RUN    0xEA804A00
+#define CONFIG_SYS_MDDRC_TIME_CFG1      0x68EC1168
+#define CONFIG_SYS_MDDRC_TIME_CFG2      0x34310864
 #endif
-#define CFG_MDDRC_SYS_CFG_EN   0xF0000000
-#define CFG_MDDRC_TIME_CFG0    0x00003D2E
-#define CFG_MDDRC_TIME_CFG0_RUN        0x06183D2E
-
-#define CFG_MICRON_NOP         0x01380000
-#define CFG_MICRON_PCHG_ALL    0x01100400
-#define CFG_MICRON_EM2         0x01020000
-#define CFG_MICRON_EM3         0x01030000
-#define CFG_MICRON_EN_DLL      0x01010000
-#define CFG_MICRON_RFSH                0x01080000
-#define CFG_MICRON_INIT_DEV_OP 0x01000432
-#define CFG_MICRON_OCD_DEFAULT 0x01010780
+#define CONFIG_SYS_MDDRC_SYS_CFG_EN    0xF0000000
+#define CONFIG_SYS_MDDRC_TIME_CFG0     0x00003D2E
+#define CONFIG_SYS_MDDRC_TIME_CFG0_RUN 0x06183D2E
+
+#define CONFIG_SYS_MICRON_NOP          0x01380000
+#define CONFIG_SYS_MICRON_PCHG_ALL     0x01100400
+#define CONFIG_SYS_MICRON_EM2          0x01020000
+#define CONFIG_SYS_MICRON_EM3          0x01030000
+#define CONFIG_SYS_MICRON_EN_DLL       0x01010000
+#define CONFIG_SYS_MICRON_RFSH         0x01080000
+#define CONFIG_SYS_MICRON_INIT_DEV_OP  0x01000432
+#define CONFIG_SYS_MICRON_OCD_DEFAULT  0x01010780
 
 /* DDR Priority Manager Configuration */
-#define CFG_MDDRCGRP_PM_CFG1   0x00077777
-#define CFG_MDDRCGRP_PM_CFG2   0x00000000
-#define CFG_MDDRCGRP_HIPRIO_CFG        0x00000001
-#define CFG_MDDRCGRP_LUT0_MU   0xFFEEDDCC
-#define CFG_MDDRCGRP_LUT0_ML   0xBBAAAAAA
-#define CFG_MDDRCGRP_LUT1_MU   0x66666666
-#define CFG_MDDRCGRP_LUT1_ML   0x55555555
-#define CFG_MDDRCGRP_LUT2_MU   0x44444444
-#define CFG_MDDRCGRP_LUT2_ML   0x44444444
-#define CFG_MDDRCGRP_LUT3_MU   0x55555555
-#define CFG_MDDRCGRP_LUT3_ML   0x55555558
-#define CFG_MDDRCGRP_LUT4_MU   0x11111111
-#define CFG_MDDRCGRP_LUT4_ML   0x11111122
-#define CFG_MDDRCGRP_LUT0_AU   0xaaaaaaaa
-#define CFG_MDDRCGRP_LUT0_AL   0xaaaaaaaa
-#define CFG_MDDRCGRP_LUT1_AU   0x66666666
-#define CFG_MDDRCGRP_LUT1_AL   0x66666666
-#define CFG_MDDRCGRP_LUT2_AU   0x11111111
-#define CFG_MDDRCGRP_LUT2_AL   0x11111111
-#define CFG_MDDRCGRP_LUT3_AU   0x11111111
-#define CFG_MDDRCGRP_LUT3_AL   0x11111111
-#define CFG_MDDRCGRP_LUT4_AU   0x11111111
-#define CFG_MDDRCGRP_LUT4_AL   0x11111111
+#define CONFIG_SYS_MDDRCGRP_PM_CFG1    0x00077777
+#define CONFIG_SYS_MDDRCGRP_PM_CFG2    0x00000000
+#define CONFIG_SYS_MDDRCGRP_HIPRIO_CFG 0x00000001
+#define CONFIG_SYS_MDDRCGRP_LUT0_MU    0xFFEEDDCC
+#define CONFIG_SYS_MDDRCGRP_LUT0_ML    0xBBAAAAAA
+#define CONFIG_SYS_MDDRCGRP_LUT1_MU    0x66666666
+#define CONFIG_SYS_MDDRCGRP_LUT1_ML    0x55555555
+#define CONFIG_SYS_MDDRCGRP_LUT2_MU    0x44444444
+#define CONFIG_SYS_MDDRCGRP_LUT2_ML    0x44444444
+#define CONFIG_SYS_MDDRCGRP_LUT3_MU    0x55555555
+#define CONFIG_SYS_MDDRCGRP_LUT3_ML    0x55555558
+#define CONFIG_SYS_MDDRCGRP_LUT4_MU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT4_ML    0x11111122
+#define CONFIG_SYS_MDDRCGRP_LUT0_AU    0xaaaaaaaa
+#define CONFIG_SYS_MDDRCGRP_LUT0_AL    0xaaaaaaaa
+#define CONFIG_SYS_MDDRCGRP_LUT1_AU    0x66666666
+#define CONFIG_SYS_MDDRCGRP_LUT1_AL    0x66666666
+#define CONFIG_SYS_MDDRCGRP_LUT2_AU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT2_AL    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT3_AU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT3_AL    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT4_AU    0x11111111
+#define CONFIG_SYS_MDDRCGRP_LUT4_AL    0x11111111
 
 /*
  * NOR FLASH on the Local Bus
  */
 #undef CONFIG_BKUP_FLASH
-#define CFG_FLASH_CFI                          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI                           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER                        /* use the CFI driver */
 #ifdef CONFIG_BKUP_FLASH
-#define CFG_FLASH_BASE         0xFF800000      /* start of FLASH   */
-#define CFG_FLASH_SIZE         0x00800000      /* max flash size in bytes */
+#define CONFIG_SYS_FLASH_BASE          0xFF800000      /* start of FLASH   */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000      /* max flash size in bytes */
 #else
-#define CFG_FLASH_BASE         0xFC000000      /* start of FLASH   */
-#define CFG_FLASH_SIZE         0x04000000      /* max flash size in bytes */
+#define CONFIG_SYS_FLASH_BASE          0xFC000000      /* start of FLASH   */
+#define CONFIG_SYS_FLASH_SIZE          0x04000000      /* max flash size in bytes */
 #endif
-#define CFG_FLASH_USE_BUFFER_WRITE
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_FLASH_BANKS_LIST   {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_SECT     256             /* max sectors per device */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_SECT      256             /* max sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
+#undef CONFIG_SYS_FLASH_CHECKSUM
 
 /*
  * CPLD registers area is really only 32 bytes in size, but the smallest possible LP
  * window is 64KB
  */
-#define CFG_CPLD_BASE          0x82000000
-#define CFG_CPLD_SIZE          0x00010000      /* 64 KB */
+#define CONFIG_SYS_CPLD_BASE           0x82000000
+#define CONFIG_SYS_CPLD_SIZE           0x00010000      /* 64 KB */
 
-#define CFG_SRAM_BASE          0x30000000
-#define CFG_SRAM_SIZE          0x00020000      /* 128 KB */
+#define CONFIG_SYS_SRAM_BASE           0x30000000
+#define CONFIG_SYS_SRAM_SIZE           0x00020000      /* 128 KB */
 
-#define CFG_CS0_CFG            0x05059310      /* ALE active low, data size 4bytes */
-#define CFG_CS2_CFG            0x05059010      /* ALE active low, data size 1byte */
-#define CFG_CS_ALETIMING       0x00000005      /* Use alternative CS timing for CS0 and CS2 */
+#define CONFIG_SYS_CS0_CFG             0x05059310      /* ALE active low, data size 4bytes */
+#define CONFIG_SYS_CS2_CFG             0x05059010      /* ALE active low, data size 1byte */
+#define CONFIG_SYS_CS_ALETIMING        0x00000005      /* Use alternative CS timing for CS0 and CS2 */
 
 /* Use SRAM for initial stack */
-#define CFG_INIT_RAM_ADDR      CFG_SRAM_BASE           /* Initial RAM address */
-#define CFG_INIT_RAM_END       CFG_SRAM_SIZE           /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_SRAM_BASE            /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_SRAM_SIZE            /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      0x100                   /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100                   /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE               /* Start of monitor */
-#define CFG_MONITOR_LEN                (256 * 1024)            /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE               /* Start of monitor */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)            /* Reserve 256 kB for Mon */
 #ifdef CONFIG_FSL_DIU_FB
-#define CFG_MALLOC_LEN         (6 * 1024 * 1024)       /* Reserved for malloc */
+#define CONFIG_SYS_MALLOC_LEN          (6 * 1024 * 1024)       /* Reserved for malloc */
 #else
-#define CFG_MALLOC_LEN         (512 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024)
 #endif
 
 /*
 #error CONFIG_PSC_CONSOLE must be 3
 #endif
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
 #define CONSOLE_FIFO_TX_SIZE   FIFOC_PSC3_TX_SIZE
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 /*
  * General PCI
  */
-#define CFG_PCI_MEM_BASE       0xA0000000
-#define CFG_PCI_MEM_PHYS       CFG_PCI_MEM_BASE
-#define CFG_PCI_MEM_SIZE       0x10000000      /* 256M */
-#define CFG_PCI_MMIO_BASE      (CFG_PCI_MEM_BASE + CFG_PCI_MEM_SIZE)
-#define CFG_PCI_MMIO_PHYS      CFG_PCI_MMIO_BASE
-#define CFG_PCI_MMIO_SIZE      0x10000000      /* 256M */
-#define CFG_PCI_IO_BASE                0x00000000
-#define CFG_PCI_IO_PHYS                0x84000000
-#define CFG_PCI_IO_SIZE                0x01000000      /* 16M */
+#define CONFIG_SYS_PCI_MEM_BASE        0xA0000000
+#define CONFIG_SYS_PCI_MEM_PHYS        CONFIG_SYS_PCI_MEM_BASE
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000      /* 256M */
+#define CONFIG_SYS_PCI_MMIO_BASE       (CONFIG_SYS_PCI_MEM_BASE + CONFIG_SYS_PCI_MEM_SIZE)
+#define CONFIG_SYS_PCI_MMIO_PHYS       CONFIG_SYS_PCI_MMIO_BASE
+#define CONFIG_SYS_PCI_MMIO_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI_IO_BASE         0x00000000
+#define CONFIG_SYS_PCI_IO_PHYS         0x84000000
+#define CONFIG_SYS_PCI_IO_SIZE         0x01000000      /* 16M */
 
 
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play */
 #undef CONFIG_SOFT_I2C                 /* so disable bit-banged I2C */
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 #if 0
-#define CFG_I2C_NOPROBES       {{0,0x69}}      /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_NOPROBES        {{0,0x69}}      /* Don't probe these addrs */
 #endif
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR_LEN                2       /* 16-bit EEPROM address */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* Atmel: AT24C32A-10TQ-2.7 */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* 10ms of delay */
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* 32-Byte Page Write Mode */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2       /* 16-bit EEPROM address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* Atmel: AT24C32A-10TQ-2.7 */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* 10ms of delay */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* 32-Byte Page Write Mode */
 
 /*
  * Ethernet configuration
  * Configure on-board RTC
  */
 #define CONFIG_RTC_M41T62                      /* use M41T62 rtc via i2 */
-#define CFG_I2C_RTC_ADDR               0x68    /* at address 0x68              */
+#define CONFIG_SYS_I2C_RTC_ADDR                0x68    /* at address 0x68              */
 
 /*
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
 /* This has to be a multiple of the Flash sector size */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_ENV_SIZE                0x2000
 #ifdef CONFIG_BKUP_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* one sector (256K) for env */
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 #include <config_cmd_default.h>
 
 #endif
 
 /*
- * Watchdog timeout = CFG_WATCHDOG_VALUE * 65536 / IPS clock.
- * For example, when IPS is set to 66MHz and CFG_WATCHDOG_VALUE is set
+ * Watchdog timeout = CONFIG_SYS_WATCHDOG_VALUE * 65536 / IPS clock.
+ * For example, when IPS is set to 66MHz and CONFIG_SYS_WATCHDOG_VALUE is set
  * to 0xFFFF, watchdog timeouts after about 64s. For details refer
  * to chapter 36 of the MPC5121e Reference Manual.
  */
 /* #define CONFIG_WATCHDOG */          /* enable watchdog */
-#define CFG_WATCHDOG_VALUE 0xFFFF
+#define CONFIG_SYS_WATCHDOG_VALUE 0xFFFF
 
  /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #ifdef CONFIG_CMD_KGDB
-       #define CFG_CBSIZE      1024    /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024    /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256     /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256     /* Console I/O Buffer Size */
 #endif
 
 
-#define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /* Cache Configuration */
-#define CFG_DCACHE_SIZE                32768
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_DCACHE_SIZE         32768
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #ifdef CONFIG_CMD_KGDB
-#define CFG_CACHELINE_SHIFT    5       /*log base 2 of the above value*/
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /*log base 2 of the above value*/
 #endif
 
-#define CFG_HID0_INIT  0x000000000
-#define CFG_HID0_FINAL HID0_ENABLE_MACHINE_CHECK
-#define CFG_HID2       HID2_HBE
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID2        HID2_HBE
 
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
index 2dcaa581e5a35a901f9bbe5a8240a2455db2190e..2b4826d90ea6371d7da3c6221b5449e3c93c59ce 100644 (file)
@@ -39,7 +39,7 @@
 #define CONFIG_STK52XX         1       /* ... on a STK52XX base board */
 #define CONFIG_STK52XX_REV100  1       /*  define for revision 100 baseboards */
 #define CONFIG_AEVFIFO         1
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
@@ -51,7 +51,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * PCI Mapping:
@@ -74,7 +74,7 @@
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 #endif /* CONFIG_AEVFIFO */
 
@@ -84,9 +84,9 @@
 #define CONFIG_ISO_PARTITION
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_I2C)
 
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
 #define        CONFIG_TIMESTAMP                /* display image timestamps */
 
 #if (TEXT_BASE == 0xFC000000)          /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
-#if defined(CFG_IPBCLK_EQUALS_XLBCLK)
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
+ * CONFIG_SYS_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
  * of 66 MHz yet hasn't been tested with a IPB Bus Clock of 66 MHz.
  */
-#define CFG_PCICLK_EQUALS_IPBCLK_DIV2  /* define for 66MHz speed */
+#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2   /* define for 66MHz speed */
 #endif
 
 /*
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
 #ifdef CONFIG_TQM5200_REV100
-#define CFG_I2C_MODULE         1       /* Select I2C module #1 for rev. 100 board */
+#define CONFIG_SYS_I2C_MODULE          1       /* Select I2C module #1 for rev. 100 board */
 #else
-#define CFG_I2C_MODULE         2       /* Select I2C module #2 for all other revs */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #2 for all other revs */
 #endif
 
 /*
  * Please notice, that the resulting clock frequency could differ from the
  * configured value. This is because the I2C clock is derived from system
  * clock over a frequency divider with only a few divider values. U-boot
- * calculates the best approximation for CFG_I2C_SPEED. However the calculated
+ * calculates the best approximation for CONFIG_SYS_I2C_SPEED. However the calculated
  * approximation allways lies below the configured value, never above.
  */
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration for onboard EEPROM M24C32 (M24C64 should work
  * EEPROM (24C64) is on the same I2C address (but on other I2C bus), so the
  * same configuration could be used.
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         TEXT_BASE /* 0xFC000000 */
+#define CONFIG_SYS_FLASH_BASE          TEXT_BASE /* 0xFC000000 */
 
 /* use CFI flash driver if no module variant is spezified */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_BOOTCS_START }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_SIZE         0x04000000 /* 64 MByte */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
-#undef CFG_FLASH_USE_BUFFER_WRITE      /* not supported yet for AMD */
-
-#if !defined(CFG_LOWBOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00760000 + 0x00800000)
-#else  /* CFG_LOWBOOT */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00060000)
-#endif /* CFG_LOWBOOT */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_BOOTCS_START }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_SIZE          0x04000000 /* 64 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
+#undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE       /* not supported yet for AMD */
+
+#if !defined(CONFIG_SYS_LOWBOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00760000 + 0x00800000)
+#else  /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00060000)
+#endif /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 
 /*
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (384 << 10)     /* Reserve 384 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (384 << 10)     /* Reserve 384 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  *   GPIO on PSC6_3 is used in post_hotkeys_pressed() to enable extended POST
  *   tests.
  */
-#define CFG_GPS_PORT_CONFIG    0x81500014
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x81500014
 
 /*
  * RTC configuration
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#ifdef CFG_PCICLK_EQUALS_IPBCLK_DIV2
-#define CFG_BOOTCS_CFG         0x0008DF30 /* for pci_clk  = 66 MHz */
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
+#define CONFIG_SYS_BOOTCS_CFG          0x0008DF30 /* for pci_clk  = 66 MHz */
 #else
-#define CFG_BOOTCS_CFG         0x0004DF30 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_BOOTCS_CFG          0x0004DF30 /* for pci_clk = 33 MHz */
 #endif
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 #define CONFIG_LAST_STAGE_INIT
 
  * SRAM - Do not map below 2 GB in address space, because this area is used
  * for SDRAM autosizing.
  */
-#define CFG_CS2_START          0xE5000000
-#define CFG_CS2_SIZE           0x80000         /* 512 kByte */
-#define CFG_CS2_CFG            0x0004D930
+#define CONFIG_SYS_CS2_START           0xE5000000
+#define CONFIG_SYS_CS2_SIZE            0x80000         /* 512 kByte */
+#define CONFIG_SYS_CS2_CFG             0x0004D930
 
 /*
  * Grafic controller - Do not map below 2 GB in address space, because this
  * area is used for SDRAM autosizing.
  */
 #define SM501_FB_BASE           0xE0000000
-#define CFG_CS1_START           (SM501_FB_BASE)
-#define CFG_CS1_SIZE            0x4000000       /* 64 MByte */
-#define CFG_CS1_CFG             0x8F48FF70
-#define SM501_MMIO_BASE         CFG_CS1_START + 0x03E00000
+#define CONFIG_SYS_CS1_START           (SM501_FB_BASE)
+#define CONFIG_SYS_CS1_SIZE            0x4000000       /* 64 MByte */
+#define CONFIG_SYS_CS1_CFG             0x8F48FF70
+#define SM501_MMIO_BASE         CONFIG_SYS_CS1_START + 0x03E00000
 
-#define CFG_CS_BURST            0x00000000
-#define CFG_CS_DEADCYCLE        0x33333311      /* 1 dead cycle for flash and SM501 */
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333311      /* 1 dead cycle for flash and SM501 */
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 #endif /* __CONFIG_H */
index 8c4eb59fa35a51e0635820fe15a852ba86672506..315841257dc6d1e708d9bada82992c006c1e9a3c 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0                  */
-#define CFG_FLASH_BASE         0xffe00000      /* start of FLASH               */
-#define CFG_MONITOR_BASE       0xfffc0000      /* start of monitor             */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory            */
-#define        CFG_PCI_MEMSIZE         0x40000000      /* size of mapped pci memory    */
-#define CFG_PERIPHERAL_BASE    0xe0000000      /* internal peripherals         */
-#define CFG_ISRAM_BASE         0xc0000000      /* internal SRAM                */
-#define CFG_PCI_BASE           0xd0000000      /* internal PCI regs            */
-#define CFG_PCI_MEMBASE1       CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2       CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3       CFG_PCI_MEMBASE2 + 0x10000000
-
-
-#define CFG_FPGA_BASE      (CFG_PERIPHERAL_BASE + 0x08300000)
-#define CFG_NVRAM_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x08000000)
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0                  */
+#define CONFIG_SYS_FLASH_BASE          0xffe00000      /* start of FLASH               */
+#define CONFIG_SYS_MONITOR_BASE        0xfffc0000      /* start of monitor             */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory            */
+#define        CONFIG_SYS_PCI_MEMSIZE          0x40000000      /* size of mapped pci memory    */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xe0000000      /* internal peripherals         */
+#define CONFIG_SYS_ISRAM_BASE          0xc0000000      /* internal SRAM                */
+#define CONFIG_SYS_PCI_BASE            0xd0000000      /* internal PCI regs            */
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
+
+
+#define CONFIG_SYS_FPGA_BASE       (CONFIG_SYS_PERIPHERAL_BASE + 0x08300000)
+#define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM  1
-#define CFG_OCM_DATA_ADDR   CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR   CFG_ISRAM_BASE  /* Initial RAM address     */
-#define CFG_INIT_RAM_END    0x2000         /* End of used area in RAM  */
-#define CFG_GBL_DATA_SIZE   128                    /* num bytes initial data   */
+#define CONFIG_SYS_TEMP_STACK_OCM  1
+#define CONFIG_SYS_OCM_DATA_ADDR   CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR   CONFIG_SYS_ISRAM_BASE  /* Initial RAM address       */
+#define CONFIG_SYS_INIT_RAM_END    0x2000          /* End of used area in RAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE   128             /* num bytes initial data   */
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
-#define CFG_MONITOR_LEN            (256 * 1024)    /* Reserve 256 kB for Mon   */
-#define CFG_MALLOC_LEN     (128 * 1024)    /* Reserve 128 kB for malloc*/
+#define CONFIG_SYS_MONITOR_LEN     (256 * 1024)    /* Reserve 256 kB for Mon   */
+#define CONFIG_SYS_MALLOC_LEN      (128 * 1024)    /* Reserve 128 kB for malloc*/
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK
 #define CONFIG_BAUDRATE                115200
 #define        CONFIG_UART1_CONSOLE            /* define for uart1 as console  */
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI          1       /* The flash is CFI compatible          */
+#define CONFIG_SYS_FLASH_CFI           1       /* The flash is CFI compatible          */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use common CFI driver                */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash        */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash        */
 
 #define CONFIG_ENV_IS_IN_FLASH     1   /* use FLASH for environment vars       */
 
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 #undef CONFIG_SPD_EEPROM               /* Don't use SPD EEPROM for setup       */
 #define CONFIG_SDRAM_BANK0     1       /* init onboard DDR SDRAM bank 0        */
 #undef CONFIG_SDRAM_ECC                        /* enable ECC support                   */
-#define CFG_SDRAM_TABLE        { \
+#define CONFIG_SYS_SDRAM_TABLE { \
                {(256 << 20), 13, 0x000C4001}, /* 256MB mode 3, 13x10(4)*/ \
                {(64 << 20),  12, 0x00082001}} /* 64MB mode 2, 12x9(4)  */
 
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs      */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs      */
 
 /*-----------------------------------------------------------------------
  * I2C EEPROM (PCF8594C)
  *----------------------------------------------------------------------*/
-#define CFG_I2C_EEPROM_ADDR    0x54    /* EEPROM PCF8594C              */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x54    /* EEPROM PCF8594C              */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 3   /* The Philips PCF8594C has     */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3    /* The Philips PCF8594C has     */
                                        /* 8 byte page write mode using */
                                        /* last 3 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 40   /* and takes up to 40 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  40   /* and takes up to 40 msec */
 
 #define CONFIG_PREBOOT "echo;" \
        "echo Type \"run kernelx\" to boot the system;"                 \
 #define CONFIG_BAUDRATE                115200
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_NET_MULTI       1
 #define CONFIG_PHY_RESET       1       /* reset phy upon startup       */
 #define CONFIG_M88E1111_PHY    1       /* needed for PHY specific setup*/
 #define CONFIG_PHY_GIGE                1       /* Include GbE speed/duplex detection */
-#define CFG_RX_ETH_BUFFER      32      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       32      /* Number of ethernet rx buffers & descriptors */
 
 #define CONFIG_NETCONSOLE              /* include NetConsole support   */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_ALT_MEMTEST                1       /* Enable more extensive memtest*/
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_ALT_MEMTEST         1       /* Enable more extensive memtest*/
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 #define CONFIG_VERSION_VARIABLE        1       /* include version env variable */
 
-#define CFG_4xx_RESET_TYPE     0x2     /* use chip reset on this board */
+#define CONFIG_SYS_4xx_RESET_TYPE      0x2     /* use chip reset on this board */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI                     /* include pci support          */
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE    0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 #define CONFIG_PCI_BOOTDELAY   1       /* enable pci bootdelay variable*/
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT            /* let board init pci target    */
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT             /* let board init pci target    */
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
 
 /*-----------------------------------------------------------------------
  * FPGA stuff
 #define CONFIG_FPGA
 #define CONFIG_FPGA_ALTERA
 #define CONFIG_FPGA_CYCLON2
-#define CFG_FPGA_CHECK_CTRLC
-#define CFG_FPGA_PROG_FEEDBACK
+#define CONFIG_SYS_FPGA_CHECK_CTRLC
+#define CONFIG_SYS_FPGA_PROG_FEEDBACK
 #define CONFIG_FPGA_COUNT       1              /* Ich habe 2 ... aber in
                                        Reihe geschaltet -> sollte gehen,
                                        aufpassen mit Datasize ist jetzt
                                        Mode erklaert ...*/
 
 /* FPGA program pin configuration */
-#define CFG_GPIO_CLK           18      /* FPGA clk pin (cpu output)            */
-#define CFG_GPIO_DATA          19      /* FPGA data pin (cpu output)           */
-#define CFG_GPIO_STATUS                20      /* FPGA status pin (cpu input)          */
-#define CFG_GPIO_CONFIG                21      /* FPGA CONFIG pin (cpu output)         */
-#define CFG_GPIO_CON_DON       22      /* FPGA CONFIG_DONE pin (cpu input)     */
+#define CONFIG_SYS_GPIO_CLK            18      /* FPGA clk pin (cpu output)            */
+#define CONFIG_SYS_GPIO_DATA           19      /* FPGA data pin (cpu output)           */
+#define CONFIG_SYS_GPIO_STATUS         20      /* FPGA status pin (cpu input)          */
+#define CONFIG_SYS_GPIO_CONFIG         21      /* FPGA CONFIG pin (cpu output)         */
+#define CONFIG_SYS_GPIO_CON_DON        22      /* FPGA CONFIG_DONE pin (cpu input)     */
 
-#define CFG_GPIO_SEL_DPR       14      /* cpu output */
-#define CFG_GPIO_SEL_AVR       15      /* cpu output */
-#define CFG_GPIO_PROG_EN       23      /* cpu output */
+#define CONFIG_SYS_GPIO_SEL_DPR        14      /* cpu output */
+#define CONFIG_SYS_GPIO_SEL_AVR        15      /* cpu output */
+#define CONFIG_SYS_GPIO_PROG_EN        23      /* cpu output */
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup
  *-----------------------------------------------------------------------*/
-#define CFG_GPIO_SHUTDOWN      (0x80000000 >> 6)
-#define CFG_GPIO_SSD_EMPTY     (0x80000000 >> 9)
-#define CFG_GPIO_EREADY                (0x80000000 >> 26)
-#define CFG_GPIO_REV0          (0x80000000 >> 14)
-#define CFG_GPIO_REV1          (0x80000000 >> 15)
+#define CONFIG_SYS_GPIO_SHUTDOWN       (0x80000000 >> 6)
+#define CONFIG_SYS_GPIO_SSD_EMPTY      (0x80000000 >> 9)
+#define CONFIG_SYS_GPIO_EREADY         (0x80000000 >> 26)
+#define CONFIG_SYS_GPIO_REV0           (0x80000000 >> 14)
+#define CONFIG_SYS_GPIO_REV1           (0x80000000 >> 15)
 
 /*-----------------------------------------------------------------------
  * NAND-FLASH stuff
  *-----------------------------------------------------------------------*/
-#define CFG_MAX_NAND_DEVICE    4
-#define NAND_MAX_CHIPS         CFG_MAX_NAND_DEVICE
-#define CFG_NAND_BASE          0xF0000000      /* NAND FLASH Base Address      */
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE + 0, CFG_NAND_BASE + 2, \
-                                 CFG_NAND_BASE + 4, CFG_NAND_BASE + 6 }
-#define CFG_NAND_QUIET_TEST    1       /* don't warn upon unknown NAND flash   */
+#define CONFIG_SYS_MAX_NAND_DEVICE     4
+#define NAND_MAX_CHIPS         CONFIG_SYS_MAX_NAND_DEVICE
+#define CONFIG_SYS_NAND_BASE           0xF0000000      /* NAND FLASH Base Address      */
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE + 0, CONFIG_SYS_NAND_BASE + 2,   \
+                                 CONFIG_SYS_NAND_BASE + 4, CONFIG_SYS_NAND_BASE + 6 }
+#define CONFIG_SYS_NAND_QUIET_TEST     1       /* don't warn upon unknown NAND flash   */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
-#define CFG_FLASH              CFG_FLASH_BASE
+#define CONFIG_SYS_FLASH               CONFIG_SYS_FLASH_BASE
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x92015480
-#define CFG_EBC_PB0CR          (CFG_FLASH | 0x3A000) /* BS=2MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x92015480
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH | 0x3A000) /* BS=2MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (NAND-FLASH) initialization                                   */
-#define CFG_EBC_PB1AP          0x01840380      /* TWT=3                        */
-#define CFG_EBC_PB1CR          (CFG_NAND_BASE | 0x18000) /* BS=1MB,BU=R/W,BW=8bit */
+#define CONFIG_SYS_EBC_PB1AP           0x01840380      /* TWT=3                        */
+#define CONFIG_SYS_EBC_PB1CR           (CONFIG_SYS_NAND_BASE | 0x18000) /* BS=1MB,BU=R/W,BW=8bit */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index 1f27d785b8e9e391208e079469a1df486924fb32..fba96e18c174973435de475bba3be96403098b06 100644 (file)
 #ifndef __AMCC_COMMON_H
 #define __AMCC_COMMON_H
 
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* Start of U-Boot      */
-#define CFG_MONITOR_LEN                (0xFFFFFFFF - CFG_MONITOR_BASE + 1)
-#define CFG_MALLOC_LEN         (1 << 20)       /* Reserved for malloc  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* Start of U-Boot      */
+#define CONFIG_SYS_MONITOR_LEN         (0xFFFFFFFF - CONFIG_SYS_MONITOR_BASE + 1)
+#define CONFIG_SYS_MALLOC_LEN          (1 << 20)       /* Reserved for malloc  */
 
 /*
  * UART
  */
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
 /*
  * I2C
  */
 #define CONFIG_HARD_I2C                        /* I2C with hardware support    */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Ethernet/EMAC/PHY
@@ -49,9 +49,9 @@
 #define CONFIG_NET_MULTI
 #define CONFIG_NETCONSOLE              /* include NetConsole support   */
 #if defined(CONFIG_440)
-#define CFG_RX_ETH_BUFFER      32      /* number of eth rx buffers     */
+#define CONFIG_SYS_RX_ETH_BUFFER       32      /* number of eth rx buffers     */
 #else
-#define CFG_RX_ETH_BUFFER      16      /* number of eth rx buffers     */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* number of eth rx buffers     */
 #endif
 
 /*
  * Miscellaneous configurable options
  */
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x100000  /* default load address       */
-#define CFG_EXTBDINFO                  /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000  /* default load address       */
+#define CONFIG_SYS_EXTBDINFO                   /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING         /* add command line history     */
 #define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 #define CONFIG_MX_CYCLIC               /* enable mdc/mwc commands      */
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 #define CONFIG_VERSION_VARIABLE        /* include version env variable */
-#define CFG_CONSOLE_INFO_QUIET         /* don't print console @ startup*/
+#define CONFIG_SYS_CONSOLE_INFO_QUIET          /* don't print console @ startup*/
 
-#define CFG_HUSH_PARSER                        /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #define CONFIG_LOADS_ECHO              /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE          /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate change        */
 
 /*
  * BOOTP options
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
 
 #define CONFIG_AMCC_DEF_ENV_NOR_UPD                                    \
        "load=tftp 200000 " xstr(CONFIG_HOSTNAME) "/u-boot.bin\0"       \
-       "update=protect off " xstr(CFG_MONITOR_BASE) " FFFFFFFF;"       \
-               "era " xstr(CFG_MONITOR_BASE) " FFFFFFFF;"              \
-               "cp.b ${fileaddr} " xstr(CFG_MONITOR_BASE) " ${filesize};" \
+       "update=protect off " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;"        \
+               "era " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;"               \
+               "cp.b ${fileaddr} " xstr(CONFIG_SYS_MONITOR_BASE) " ${filesize};" \
                "setenv filesize;saveenv\0"                             \
        "upd=run load update\0"                                         \
 
index a6312b59eaa5f75d46409e87624a31f696485c4a..9134ad1dc4037e030f565fc85c05e5963d6bf252 100644 (file)
 #define AP325RXA_FLASH_BANK_SIZE       (128 * 1024 * 1024)
 
 /* undef to save memory        */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 /* Monitor Command Prompt */
-#define CFG_PROMPT             "=> "
+#define CONFIG_SYS_PROMPT              "=> "
 /* Buffer size for input from the Console */
-#define CFG_CBSIZE             256
+#define CONFIG_SYS_CBSIZE              256
 /* Buffer size for Console output */
-#define CFG_PBSIZE             256
+#define CONFIG_SYS_PBSIZE              256
 /* max args accepted for monitor commands */
-#define CFG_MAXARGS            16
+#define CONFIG_SYS_MAXARGS             16
 /* Buffer size for Boot Arguments passed to kernel */
-#define CFG_BARGSIZE   512
+#define CONFIG_SYS_BARGSIZE    512
 /* List of legal baudrate settings for this board */
-#define CFG_BAUDRATE_TABLE     { 38400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 38400 }
 
 /* SCIF */
 #define CONFIG_SCIF_CONSOLE 1
 #define CONFIG_CONS_SCIF5      1
 
 /* Suppress display of console information at boot */
-#undef  CFG_CONSOLE_INFO_QUIET
-#undef  CFG_CONSOLE_OVERWRITE_ROUTINE
-#undef  CFG_CONSOLE_ENV_OVERWRITE
+#undef  CONFIG_SYS_CONSOLE_INFO_QUIET
+#undef  CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#undef  CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 
-#define CFG_MEMTEST_START      (AP325RXA_SDRAM_BASE)
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + (60 * 1024 * 1024))
+#define CONFIG_SYS_MEMTEST_START       (AP325RXA_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
 
 /* Enable alternate, more extensive, memory test */
-#undef  CFG_ALT_MEMTEST
+#undef  CONFIG_SYS_ALT_MEMTEST
 /* Scratch address used by the alternate memory test */
-#undef  CFG_MEMTEST_SCRATCH
+#undef  CONFIG_SYS_MEMTEST_SCRATCH
 
 /* Enable temporary baudrate change while serial download */
-#undef  CFG_LOADS_BAUD_CHANGE
+#undef  CONFIG_SYS_LOADS_BAUD_CHANGE
 
-#define CFG_SDRAM_BASE (AP325RXA_SDRAM_BASE)
+#define CONFIG_SYS_SDRAM_BASE  (AP325RXA_SDRAM_BASE)
 /* maybe more, but if so u-boot doesn't know about it... */
-#define CFG_SDRAM_SIZE (128 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_SIZE  (128 * 1024 * 1024)
 /* default load address for scripts ?!? */
-#define CFG_LOAD_ADDR  (CFG_SDRAM_BASE + 16 * 1024 * 1024)
+#define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024)
 
 /* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */
-#define CFG_MONITOR_BASE       (AP325RXA_FLASH_BASE_1)
+#define CONFIG_SYS_MONITOR_BASE        (AP325RXA_FLASH_BASE_1)
 /* Monitor size */
-#define CFG_MONITOR_LEN        (128 * 1024)
+#define CONFIG_SYS_MONITOR_LEN (128 * 1024)
 /* Size of DRAM reserved for malloc() use */
-#define CFG_MALLOC_LEN (256 * 1024)
+#define CONFIG_SYS_MALLOC_LEN  (256 * 1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE      (256)
-#define CFG_BOOTMAPSZ  (8 * 1024 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)
+#define CONFIG_SYS_BOOTMAPSZ   (8 * 1024 * 1024)
 
 /* FLASH */
 #define CONFIG_FLASH_CFI_DRIVER 1
-#define CFG_FLASH_CFI
-#undef  CFG_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_CFI
+#undef  CONFIG_SYS_FLASH_QUIET_TEST
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 /* Physical start address of Flash memory */
-#define CFG_FLASH_BASE (AP325RXA_FLASH_BASE_1)
+#define CONFIG_SYS_FLASH_BASE  (AP325RXA_FLASH_BASE_1)
 /* Max number of sectors on each Flash chip */
-#define CFG_MAX_FLASH_SECT     512
+#define CONFIG_SYS_MAX_FLASH_SECT      512
 
 /*
  * IDE support
  */
 #define CONFIG_IDE_RESET       1
-#define CFG_PIO_MODE           1
-#define CFG_IDE_MAXBUS         1       /* IDE bus */
-#define CFG_IDE_MAXDEVICE      1
-#define CFG_ATA_BASE_ADDR      0xB4180000
-#define CFG_ATA_STRIDE         2       /* 1bit shift */
-#define CFG_ATA_DATA_OFFSET    0x200   /* data reg offset */
-#define CFG_ATA_REG_OFFSET     0x200   /* reg offset */
-#define CFG_ATA_ALT_OFFSET     0x210   /* alternate register offset */
+#define CONFIG_SYS_PIO_MODE            1
+#define CONFIG_SYS_IDE_MAXBUS          1       /* IDE bus */
+#define CONFIG_SYS_IDE_MAXDEVICE       1
+#define CONFIG_SYS_ATA_BASE_ADDR       0xB4180000
+#define CONFIG_SYS_ATA_STRIDE          2       /* 1bit shift */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x200   /* data reg offset */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x200   /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x210   /* alternate register offset */
 
 /* if you use all NOR Flash , you change dip-switch. Please see Manual. */
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE + (0 * AP325RXA_FLASH_BANK_SIZE)}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE + (0 * AP325RXA_FLASH_BANK_SIZE)}
 
 /* Timeout for Flash erase operations (in ms) */
-#define CFG_FLASH_ERASE_TOUT   (3 * 1000)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (3 * 1000)
 /* Timeout for Flash write operations (in ms) */
-#define CFG_FLASH_WRITE_TOUT   (3 * 1000)
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (3 * 1000)
 /* Timeout for Flash set sector lock bit operations (in ms) */
-#define CFG_FLASH_LOCK_TOUT    (3 * 1000)
+#define CONFIG_SYS_FLASH_LOCK_TOUT     (3 * 1000)
 /* Timeout for Flash clear lock bit operations (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  (3 * 1000)
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   (3 * 1000)
 
 /*
  * Use hardware flash sectors protection instead
  * of U-Boot software protection
  */
-#undef  CFG_FLASH_PROTECTION
-#undef  CFG_DIRECT_FLASH_TFTP
+#undef  CONFIG_SYS_FLASH_PROTECTION
+#undef  CONFIG_SYS_DIRECT_FLASH_TFTP
 
 /* ENV setting */
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_OVERWRITE   1
 #define CONFIG_ENV_SECT_SIZE   (128 * 1024)
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN)
-/* Offset of env Flash sector relative to CFG_FLASH_BASE */
-#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
+/* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
+#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
 
 /* Board Clock */
 #define CONFIG_SYS_CLK_FREQ    33333333
 #define TMU_CLK_DIVIDER                (4)     /* 4 (default), 16, 64, 256 or 1024 */
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 #endif /* __AP325RXA_H */
index edfae2743f31526f4ff45a088364d2b6cece90a9..d71ed44fcdf196a288c33309d72633bcd444060a 100644 (file)
 
 /* Boot method */
 /* uncomment if you use NOR boot */
-/* #define CFG_NOR_BOOT                1 */
+/* #define CONFIG_SYS_NOR_BOOT         1 */
 
 /* uncomment if you use NOR on CS3 */
-/* #define CFG_USE_NOR         1 */
+/* #define CONFIG_SYS_USE_NOR          1 */
 
-#ifdef CFG_NOR_BOOT
-#undef CFG_USE_NOR
-#define CFG_USE_NOR            1
+#ifdef CONFIG_SYS_NOR_BOOT
+#undef CONFIG_SYS_USE_NOR
+#define CONFIG_SYS_USE_NOR             1
 #endif
 
 #include <asm/arch/omap2420.h> /* get chip and board defs */
@@ -73,8 +73,8 @@
  * Size of malloc() pool
  */
 #define        CONFIG_ENV_SIZE SZ_128K /* Total Size of Environment Sector */
-#define        CFG_MALLOC_LEN  (CONFIG_ENV_SIZE + SZ_128K)
-#define        CFG_GBL_DATA_SIZE       128     /* bytes reserved for initial data */
+#define        CONFIG_SYS_MALLOC_LEN   (CONFIG_ENV_SIZE + SZ_128K)
+#define        CONFIG_SYS_GBL_DATA_SIZE        128     /* bytes reserved for initial data */
 
 /*
  * Hardware drivers
  */
 #define        V_NS16550_CLK   (48000000)      /* 48MHz (APLL96/2) */
 
-#define        CFG_NS16550
-#define        CFG_NS16550_SERIAL
-#define        CFG_NS16550_REG_SIZE    (-4)
-#define        CFG_NS16550_CLK V_NS16550_CLK   /* 3MHz (1.5MHz*2) */
-#define        CFG_NS16550_COM1        OMAP2420_UART1
+#define        CONFIG_SYS_NS16550
+#define        CONFIG_SYS_NS16550_SERIAL
+#define        CONFIG_SYS_NS16550_REG_SIZE     (-4)
+#define        CONFIG_SYS_NS16550_CLK  V_NS16550_CLK   /* 3MHz (1.5MHz*2) */
+#define        CONFIG_SYS_NS16550_COM1 OMAP2420_UART1
 
 /*
  * select serial console configuration
 #define        CONFIG_ENV_OVERWRITE
 #define        CONFIG_CONS_INDEX       1
 #define        CONFIG_BAUDRATE         115200
-#define        CFG_BAUDRATE_TABLE      {9600, 19200, 38400, 57600, 115200}
+#define        CONFIG_SYS_BAUDRATE_TABLE       {9600, 19200, 38400, 57600, 115200}
 
 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
 #include       <config_cmd_default.h>
 
 #undef CONFIG_CMD_AUTOSCRIPT
 
-#ifndef        CFG_USE_NOR
+#ifndef        CONFIG_SYS_USE_NOR
 # undef        CONFIG_CMD_FLASH
 # undef        CONFIG_CMD_IMLS
 #endif
  */
 #define        V_PROMPT        "Apollon # "
 
-#define        CFG_LONGHELP    /* undef to save memory */
-#define        CFG_PROMPT      V_PROMPT
-#define        CFG_CBSIZE      256     /* Console I/O Buffer Size */
+#define        CONFIG_SYS_LONGHELP     /* undef to save memory */
+#define        CONFIG_SYS_PROMPT       V_PROMPT
+#define        CONFIG_SYS_CBSIZE       256     /* Console I/O Buffer Size */
 /* Print Buffer Size */
-#define        CFG_PBSIZE      (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define        CFG_MAXARGS     16      /* max number of command args */
-#define        CFG_BARGSIZE    CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define        CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define        CONFIG_SYS_MAXARGS      16      /* max number of command args */
+#define        CONFIG_SYS_BARGSIZE     CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define        CFG_MEMTEST_START       (OMAP2420_SDRC_CS0)     /* memtest works on */
-#define        CFG_MEMTEST_END         (OMAP2420_SDRC_CS0+SZ_31M)
+#define        CONFIG_SYS_MEMTEST_START        (OMAP2420_SDRC_CS0)     /* memtest works on */
+#define        CONFIG_SYS_MEMTEST_END          (OMAP2420_SDRC_CS0+SZ_31M)
 
-#undef CFG_CLKS_IN_HZ  /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ   /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR   (OMAP2420_SDRC_CS0)     /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR    (OMAP2420_SDRC_CS0)     /* default load address */
 
 /* The 2420 has 12 GP timers, they can be driven by the SysClk (12/13/19.2)
  * or by 32KHz clk, or from external sig. This rate is divided by a local
  */
 #define        V_PVT   7       /* use with 12MHz/128 */
 
-#define        CFG_TIMERBASE   OMAP2420_GPT2
-#define        CFG_PVT V_PVT   /* 2^(pvt+1) */
-#define        CFG_HZ          ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define        CONFIG_SYS_TIMERBASE    OMAP2420_GPT2
+#define        CONFIG_SYS_PVT  V_PVT   /* 2^(pvt+1) */
+#define        CONFIG_SYS_HZ           ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#ifdef CFG_USE_NOR
+#ifdef CONFIG_SYS_USE_NOR
 /* OneNAND boot, NOR has CS3, But NOR has CS0 when NOR boot */
-# define       CFG_FLASH_BASE          0x18000000
-# define       CFG_MAX_FLASH_BANKS     1
-# define       CFG_MAX_FLASH_SECT      1024
+# define       CONFIG_SYS_FLASH_BASE           0x18000000
+# define       CONFIG_SYS_MAX_FLASH_BANKS      1
+# define       CONFIG_SYS_MAX_FLASH_SECT       1024
 /*-----------------------------------------------------------------------
 
  * CFI FLASH driver setup
  */
-# define       CFG_FLASH_CFI   1       /* Flash memory is CFI compliant */
+# define       CONFIG_SYS_FLASH_CFI    1       /* Flash memory is CFI compliant */
 # define       CONFIG_FLASH_CFI_DRIVER 1       /* Use drivers/cfi_flash.c */
-/* #define CFG_FLASH_USE_BUFFER_WRITE 1 */ /* Use buffered writes (~10x faster) */
-# define       CFG_FLASH_PROTECTION    1       /* Use h/w sector protection*/
+/* #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 */ /* Use buffered writes (~10x faster) */
+# define       CONFIG_SYS_FLASH_PROTECTION     1       /* Use h/w sector protection*/
 
-#else  /* !CFG_USE_NOR */
-# define       CFG_NO_FLASH    1
-#endif /* CFG_USE_NOR */
+#else  /* !CONFIG_SYS_USE_NOR */
+# define       CONFIG_SYS_NO_FLASH     1
+#endif /* CONFIG_SYS_USE_NOR */
 
 /* OneNAND boot, OneNAND has CS0, NOR boot ONeNAND has CS2 */
-#define        CFG_ONENAND_BASE        0x00000000
+#define        CONFIG_SYS_ONENAND_BASE 0x00000000
 #define        CONFIG_ENV_IS_IN_ONENAND        1
 #define CONFIG_ENV_ADDR                0x00020000
 
index 668c2c10a169b302d9ff181714b7e69010da0e10..5a4ceaf69f586b39fc92e073a9d1a1be0b69e994 100644 (file)
@@ -50,8 +50,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "ARMADILLO # "  /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "ARMADILLO # "  /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x00040000      /* default load address for armadillo: kernel img is here*/
+#define        CONFIG_SYS_LOAD_ADDR            0x00040000      /* default load address for armadillo: kernel img is here*/
 
-#define        CFG_HZ                  2000            /* decrementer freq: 2 kHz */
+#define        CONFIG_SYS_HZ                   2000            /* decrementer freq: 2 kHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SIZE                0x00400000 /* 4 MB */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + 0x20000)        /* Addr of Environment Sector   */
index 28864ea16ff3092068b426aae803f10bbf5b973b..024fa207e2cb28439837c0d2dad5512266546f0c 100644 (file)
@@ -45,8 +45,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE       128    /* size rsrvd for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size rsrvd for initial data */
 
 /*
  * Hardware drivers
@@ -85,7 +85,7 @@
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_BOOTARGS                "console=ttySA0,115200n8 root=/dev/nfs ip=bootp"
 #define CONFIG_BOOTCOMMAND     "bootp;tftp;bootm"
-#define CFG_AUTOLOAD            "n"    /* No autoload */
+#define CONFIG_SYS_AUTOLOAD            "n"     /* No autoload */
 
 #if defined(CONFIG_CMD_KGDB)
 #define CONFIG_KGDB_BAUDRATE   115200  /* speed to run kgdb serial port */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory         */
-#define CFG_PROMPT             "Intel Assabet # "      /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "Intel Assabet # "      /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ
+#undef  CONFIG_SYS_CLKS_IN_HZ
 
-#define CFG_LOAD_ADDR          0xc0000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xc0000000      /* default load address */
 
-#define CFG_HZ                 3686400 /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x0a    /* set core clock to 206MHz */
+#define CONFIG_SYS_HZ                  3686400 /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x0a    /* set core clock to 206MHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_BANK_SIZE    0x01000000     /* 16 MB Banks */
 #define PHYS_FLASH_SECT_SIZE    0x00040000     /* 256 KB sectors (x2) */
 
-#define CFG_MONITOR_BASE        TEXT_BASE
-#define CFG_MONITOR_LEN         (256 * 1024)   /* Reserve 256 KB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 KB for Monitor */
 
-#if CFG_MONITOR_BASE < CFG_FLASH_BASE
-#define CFG_RAMSTART
+#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_RAMSTART
 #endif
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
-#define CFG_FLASH_SIZE          PHYS_FLASH_SIZE
-#define CFG_FLASH_CFI           1      /* flash is CFI conformant      */
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_SIZE          PHYS_FLASH_SIZE
+#define CONFIG_SYS_FLASH_CFI           1       /* flash is CFI conformant      */
 #define CONFIG_FLASH_CFI_DRIVER    1   /* use common cfi driver        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_BANKS     1      /* max # of memory banks        */
-#define CFG_FLASH_INCREMENT     0      /* there is only one bank       */
-#define CFG_MAX_FLASH_SECT      128    /* max # of sectors on one chip */
-#undef CFG_FLASH_PROTECTION
-#define CFG_FLASH_BANKS_LIST    { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max # of memory banks        */
+#define CONFIG_SYS_FLASH_INCREMENT     0       /* there is only one bank       */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max # of sectors on one chip */
+#undef CONFIG_SYS_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 
index fd06245f4cd9b93a250e1742e9f7ab8a8a792b3c..30a7cb41f9b0c2fc666dc859f6f7b0bd898f2461 100644 (file)
@@ -31,7 +31,7 @@
 #define AT91_CPU_NAME          "AT91CAP9"
 #define AT91_MAIN_CLOCK                200000000       /* from 12 MHz crystal */
 #define AT91_MASTER_CLOCK      100000000       /* peripheral = main / 2 */
-#define CFG_HZ                 1000000         /* 1us resolution */
+#define CONFIG_SYS_HZ                  1000000         /* 1us resolution */
 
 #define AT91_SLOW_CLOCK                32768   /* slow clock */
 
 #undef LCD_TEST_PATTERN
 #define CONFIG_LCD_INFO                        1
 #define CONFIG_LCD_INFO_BELOW_LOGO     1
-#define CFG_WHITE_ON_BLACK             1
+#define CONFIG_SYS_WHITE_ON_BLACK              1
 #define CONFIG_ATMEL_LCD               1
 #define CONFIG_ATMEL_LCD_BGR555                1
-#define CFG_CONSOLE_IS_IN_ENV          1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
 
 #define CONFIG_BOOTDELAY       3
 
 
 /* DataFlash */
 #define CONFIG_HAS_DATAFLASH           1
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                1
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* CS0 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         1
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* CS0 */
 #define AT91_SPI_CLK                   15000000
 #define DATAFLASH_TCSS                 (0x1a << 16)
 #define DATAFLASH_TCHS                 (0x1 << 24)
 
 /* NOR flash */
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 #define PHYS_FLASH_1                   0x10000000
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MAX_FLASH_SECT             256
-#define CFG_MAX_FLASH_BANKS            1
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_SECT              256
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
 
 /* NAND flash */
 #define NAND_MAX_CHIPS                 1
-#define CFG_MAX_NAND_DEVICE            1
-#define CFG_NAND_BASE                  0x40000000
-#define CFG_NAND_DBW_8                 1
+#define CONFIG_SYS_MAX_NAND_DEVICE             1
+#define CONFIG_SYS_NAND_BASE                   0x40000000
+#define CONFIG_SYS_NAND_DBW_8                  1
 
 /* Ethernet */
 #define CONFIG_MACB                    1
 #define CONFIG_USB_OHCI_NEW            1
 #define LITTLEENDIAN                   1
 #define CONFIG_DOS_PARTITION           1
-#define CFG_USB_OHCI_CPU_INIT          1
-#define CFG_USB_OHCI_REGS_BASE         0x00700000      /* AT91_BASE_UHP */
-#define CFG_USB_OHCI_SLOT_NAME         "at91cap9"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    2
+#define CONFIG_SYS_USB_OHCI_CPU_INIT           1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE          0x00700000      /* AT91_BASE_UHP */
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "at91cap9"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
 
-#define CFG_LOAD_ADDR                  0x72000000      /* load address */
+#define CONFIG_SYS_LOAD_ADDR                   0x72000000      /* load address */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        0x73e00000
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 0x73e00000
 
-#define CFG_USE_DATAFLASH              1
-#undef CFG_USE_NORFLASH
+#define CONFIG_SYS_USE_DATAFLASH               1
+#undef CONFIG_SYS_USE_NORFLASH
 
-#ifdef CFG_USE_DATAFLASH
+#ifdef CONFIG_SYS_USE_DATAFLASH
 
 /* bootstrap + u-boot + env + linux in dataflash */
 #define CONFIG_ENV_IS_IN_DATAFLASH     1
-#define CFG_MONITOR_BASE       (CFG_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
 #define CONFIG_ENV_OFFSET              0x4200
-#define CONFIG_ENV_ADDR                (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x4200
 #define CONFIG_BOOTCOMMAND     "cp.b 0xC0042000 0x72000000 0x210000; bootm"
 #define CONFIG_BOOTARGS                "console=ttyS0,115200 "                 \
 
 /* bootstrap + u-boot + env + linux in norflash */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CFG_MONITOR_BASE       (PHYS_FLASH_1 + 0x8000)
+#define CONFIG_SYS_MONITOR_BASE        (PHYS_FLASH_1 + 0x8000)
 #define CONFIG_ENV_OFFSET              0x4000
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x4000
 #endif
 
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {115200 , 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200 , 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "
-#define CFG_CBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_PROMPT              "U-Boot> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 
 #define ROUND(A, B)            (((A) + (B)) & ~((B) - 1))
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         ROUND(CONFIG_ENV_SIZE + 128*1024, 0x1000)
-#define CFG_GBL_DATA_SIZE      128     /* 128 bytes for initial data */
+#define CONFIG_SYS_MALLOC_LEN          ROUND(CONFIG_ENV_SIZE + 128*1024, 0x1000)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* 128 bytes for initial data */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
 
index 000eb0edf7324b8b3eaa22849252a6192857418f..633a053000117a0b3fd980ed984d85c70a6f3ec3 100644 (file)
@@ -43,7 +43,7 @@
 #define CONFIG_INITRD_TAG      1
 
 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
-#define CFG_USE_MAIN_OSCILLATOR                1
+#define CONFIG_SYS_USE_MAIN_OSCILLATOR         1
 /* flash */
 #define MC_PUIA_VAL    0x00000000
 #define MC_PUP_VAL     0x00000000
@@ -76,8 +76,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_BAUDRATE 115200
 
 
 #define CONFIG_NAND_LEGACY
 
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
 #define SECTORSIZE 512
 
 #define ADDR_COLUMN 1
 #define PHYS_SDRAM 0x20000000
 #define PHYS_SDRAM_SIZE 0x2000000  /* 32 megs */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
 
 #define CONFIG_DRIVER_ETHER
 #define CONFIG_NET_RETRY_COUNT         20
 #define DATAFLASH_TCHS (0x1 << 24)
 
 #define CONFIG_HAS_DATAFLASH           1
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                2
-#define CFG_MAX_DATAFLASH_PAGES                16384
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* Logical adress for CS0 */
-#define CFG_DATAFLASH_LOGIC_ADDR_CS3   0xD0000000      /* Logical adress for CS3 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         2
+#define CONFIG_SYS_MAX_DATAFLASH_PAGES         16384
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* Logical adress for CS0 */
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3    0xD0000000      /* Logical adress for CS3 */
 
 #define PHYS_FLASH_1                   0x10000000
 #define PHYS_FLASH_SIZE                        0x200000  /* 2 megs main flash */
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             256
-#define CFG_FLASH_ERASE_TOUT           (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT           (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              256
+#define CONFIG_SYS_FLASH_ERASE_TOUT            (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT            (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #undef CONFIG_ENV_IS_IN_DATAFLASH
 
 #ifdef CONFIG_ENV_IS_IN_DATAFLASH
 #define CONFIG_ENV_OFFSET                      0x20000
-#define CONFIG_ENV_ADDR                        (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                        0x2000  /* 0x8000 */
 #else
 #define CONFIG_ENV_IS_IN_FLASH         1
 #endif /* CONFIG_ENV_IS_IN_DATAFLASH */
 
 
-#define CFG_LOAD_ADDR          0x21000000  /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x21000000  /* default load address */
 
 #ifdef CONFIG_SKIP_LOWLEVEL_INIT
-#define CFG_BOOT_SIZE          0x6000 /* 24 KBytes */
-#define CFG_U_BOOT_BASE                (PHYS_FLASH_1 + 0x10000)
-#define CFG_U_BOOT_SIZE                0x10000 /* 64 KBytes */
+#define CONFIG_SYS_BOOT_SIZE           0x6000 /* 24 KBytes */
+#define CONFIG_SYS_U_BOOT_BASE         (PHYS_FLASH_1 + 0x10000)
+#define CONFIG_SYS_U_BOOT_SIZE         0x10000 /* 64 KBytes */
 #else
-#define CFG_BOOT_SIZE          0x00 /* 0 KBytes */
-#define CFG_U_BOOT_BASE                PHYS_FLASH_1
-#define CFG_U_BOOT_SIZE                0x60000 /* 384 KBytes */
+#define CONFIG_SYS_BOOT_SIZE           0x00 /* 0 KBytes */
+#define CONFIG_SYS_U_BOOT_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_U_BOOT_SIZE         0x60000 /* 384 KBytes */
 #endif /* CONFIG_SKIP_LOWLEVEL_INIT */
 
-#define CFG_BAUDRATE_TABLE     { 115200, 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "      /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_PROMPT              "U-Boot> "      /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
 
-#define CFG_HZ 1000
-#define CFG_HZ_CLOCK AT91C_MASTER_CLOCK/2      /* AT91C_TC0_CMR is implicitly set to */
+#define CONFIG_SYS_HZ 1000
+#define CONFIG_SYS_HZ_CLOCK AT91C_MASTER_CLOCK/2       /* AT91C_TC0_CMR is implicitly set to */
                                                /* AT91C_TC_TIMER_DIV1_CLOCK */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
index 41d1da32c34cbb293b08fd416b7cb3154b86b8bd..be9a8eb51e3c89cdd0dd59161ee18ba90cd7bf75 100644 (file)
@@ -30,7 +30,7 @@
 /* ARM asynchronous clock */
 #define AT91_MAIN_CLOCK                198656000       /* from 18.432 MHz crystal */
 #define AT91_MASTER_CLOCK      99328000        /* peripheral = main / 2 */
-#define CFG_HZ                 1000000         /* 1us resolution */
+#define CONFIG_SYS_HZ                  1000000         /* 1us resolution */
 
 #define AT91_SLOW_CLOCK                32768   /* slow clock */
 
 
 /* DataFlash */
 #define CONFIG_HAS_DATAFLASH           1
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                2
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* CS0 */
-#define CFG_DATAFLASH_LOGIC_ADDR_CS1   0xD0000000      /* CS1 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         2
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* CS0 */
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1    0xD0000000      /* CS1 */
 #define AT91_SPI_CLK                   15000000
 #define DATAFLASH_TCSS                 (0x1a << 16)
 #define DATAFLASH_TCHS                 (0x1 << 24)
 
 /* NAND flash */
 #define NAND_MAX_CHIPS                 1
-#define CFG_MAX_NAND_DEVICE            1
-#define CFG_NAND_BASE                  0x40000000
-#define CFG_NAND_DBW_8                 1
+#define CONFIG_SYS_MAX_NAND_DEVICE             1
+#define CONFIG_SYS_NAND_BASE                   0x40000000
+#define CONFIG_SYS_NAND_DBW_8                  1
 
 /* NOR flash - no real flash on this board */
-#define CFG_NO_FLASH                   1
+#define CONFIG_SYS_NO_FLASH                    1
 
 /* Ethernet */
 #define CONFIG_MACB                    1
 #define CONFIG_USB_OHCI_NEW            1
 #define LITTLEENDIAN                   1
 #define CONFIG_DOS_PARTITION           1
-#define CFG_USB_OHCI_CPU_INIT          1
-#define CFG_USB_OHCI_REGS_BASE         0x00500000      /* AT91SAM9260_UHP_BASE */
-#define CFG_USB_OHCI_SLOT_NAME         "at91sam9260"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    2
+#define CONFIG_SYS_USB_OHCI_CPU_INIT           1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE          0x00500000      /* AT91SAM9260_UHP_BASE */
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "at91sam9260"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
 #define CONFIG_USB_STORAGE             1
 
-#define CFG_LOAD_ADDR                  0x22000000      /* load address */
+#define CONFIG_SYS_LOAD_ADDR                   0x22000000      /* load address */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        0x23e00000
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 0x23e00000
 
-#undef CFG_USE_DATAFLASH_CS0
-#define CFG_USE_DATAFLASH_CS1          1
-#undef CFG_USE_NANDFLASH
+#undef CONFIG_SYS_USE_DATAFLASH_CS0
+#define CONFIG_SYS_USE_DATAFLASH_CS1           1
+#undef CONFIG_SYS_USE_NANDFLASH
 
-#ifdef CFG_USE_DATAFLASH_CS0
+#ifdef CONFIG_SYS_USE_DATAFLASH_CS0
 
 /* bootstrap + u-boot + env + linux in dataflash on CS0 */
 #define CONFIG_ENV_IS_IN_DATAFLASH     1
-#define CFG_MONITOR_BASE       (CFG_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
 #define CONFIG_ENV_OFFSET              0x4200
-#define CONFIG_ENV_ADDR                (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x4200
 #define CONFIG_BOOTCOMMAND     "cp.b 0xC0042000 0x22000000 0x210000; bootm"
 #define CONFIG_BOOTARGS                "console=ttyS0,115200 "                 \
                                "mtdparts=at91_nand:-(root) "           \
                                "rw rootfstype=jffs2"
 
-#elif CFG_USE_DATAFLASH_CS1
+#elif CONFIG_SYS_USE_DATAFLASH_CS1
 
 /* bootstrap + u-boot + env + linux in dataflash on CS1 */
 #define CONFIG_ENV_IS_IN_DATAFLASH     1
-#define CFG_MONITOR_BASE       (CFG_DATAFLASH_LOGIC_ADDR_CS1 + 0x8400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 + 0x8400)
 #define CONFIG_ENV_OFFSET              0x4200
-#define CONFIG_ENV_ADDR                (CFG_DATAFLASH_LOGIC_ADDR_CS1 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x4200
 #define CONFIG_BOOTCOMMAND     "cp.b 0xD0042000 0x22000000 0x210000; bootm"
 #define CONFIG_BOOTARGS                "console=ttyS0,115200 "                 \
                                "mtdparts=at91_nand:-(root) "           \
                                "rw rootfstype=jffs2"
 
-#else /* CFG_USE_NANDFLASH */
+#else /* CONFIG_SYS_USE_NANDFLASH */
 
 /* bootstrap + u-boot + env + linux in nandflash */
 #define CONFIG_ENV_IS_IN_NAND  1
 #endif
 
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {115200 , 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200 , 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "
-#define CFG_CBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_PROMPT              "U-Boot> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 
 #define ROUND(A, B)            (((A) + (B)) & ~((B) - 1))
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
-#define CFG_GBL_DATA_SIZE      128     /* 128 bytes for initial data */
+#define CONFIG_SYS_MALLOC_LEN          ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* 128 bytes for initial data */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
 
index 80c3b034e269b59623db2442efc94139fc845370..add31c95a9719e638f059cc07b1aa3389a4ab345 100644 (file)
@@ -31,7 +31,7 @@
 #define AT91_CPU_NAME          "AT91SAM9261"
 #define AT91_MAIN_CLOCK                198656000       /* from 18.432 MHz crystal */
 #define AT91_MASTER_CLOCK      99328000        /* peripheral = main / 2 */
-#define CFG_HZ                 1000000         /* 1us resolution */
+#define CONFIG_SYS_HZ                  1000000         /* 1us resolution */
 
 #define AT91_SLOW_CLOCK                32768   /* slow clock */
 
 #undef LCD_TEST_PATTERN
 #define CONFIG_LCD_INFO                        1
 #define CONFIG_LCD_INFO_BELOW_LOGO     1
-#define CFG_WHITE_ON_BLACK             1
+#define CONFIG_SYS_WHITE_ON_BLACK              1
 #define CONFIG_ATMEL_LCD               1
 #define CONFIG_ATMEL_LCD_BGR555                1
-#define CFG_CONSOLE_IS_IN_ENV          1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
 
 #define CONFIG_BOOTDELAY       3
 
 
 /* DataFlash */
 #define CONFIG_HAS_DATAFLASH           1
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                2
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* CS0 */
-#define CFG_DATAFLASH_LOGIC_ADDR_CS3   0xD0000000      /* CS3 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         2
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* CS0 */
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3    0xD0000000      /* CS3 */
 #define AT91_SPI_CLK                   15000000
 #define DATAFLASH_TCSS                 (0x1a << 16)
 #define DATAFLASH_TCHS                 (0x1 << 24)
 
 /* NAND flash */
 #define NAND_MAX_CHIPS                 1
-#define CFG_MAX_NAND_DEVICE            1
-#define CFG_NAND_BASE                  0x40000000
-#define CFG_NAND_DBW_8                 1
+#define CONFIG_SYS_MAX_NAND_DEVICE             1
+#define CONFIG_SYS_NAND_BASE                   0x40000000
+#define CONFIG_SYS_NAND_DBW_8                  1
 
 /* NOR flash - no real flash on this board */
-#define CFG_NO_FLASH                   1
+#define CONFIG_SYS_NO_FLASH                    1
 
 /* Ethernet */
 #define CONFIG_DRIVER_DM9000           1
 #define CONFIG_USB_OHCI_NEW            1
 #define LITTLEENDIAN                   1
 #define CONFIG_DOS_PARTITION           1
-#define CFG_USB_OHCI_CPU_INIT          1
-#define CFG_USB_OHCI_REGS_BASE         0x00500000      /* AT91SAM9261_UHP_BASE */
-#define CFG_USB_OHCI_SLOT_NAME         "at91sam9261"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    2
+#define CONFIG_SYS_USB_OHCI_CPU_INIT           1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE          0x00500000      /* AT91SAM9261_UHP_BASE */
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "at91sam9261"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
 #define CONFIG_USB_STORAGE             1
 
-#define CFG_LOAD_ADDR                  0x22000000      /* load address */
+#define CONFIG_SYS_LOAD_ADDR                   0x22000000      /* load address */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        0x23e00000
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 0x23e00000
 
-#define CFG_USE_DATAFLASH_CS0          1
-#undef CFG_USE_NANDFLASH
+#define CONFIG_SYS_USE_DATAFLASH_CS0           1
+#undef CONFIG_SYS_USE_NANDFLASH
 
-#ifdef CFG_USE_DATAFLASH_CS0
+#ifdef CONFIG_SYS_USE_DATAFLASH_CS0
 
 /* bootstrap + u-boot + env + linux in dataflash on CS0 */
 #define CONFIG_ENV_IS_IN_DATAFLASH     1
-#define CFG_MONITOR_BASE       (CFG_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
 #define CONFIG_ENV_OFFSET              0x4200
-#define CONFIG_ENV_ADDR                (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x4200
 #define CONFIG_BOOTCOMMAND     "cp.b 0xC0042000 0x22000000 0x210000; bootm"
 #define CONFIG_BOOTARGS                "console=ttyS0,115200 "                 \
                                "mtdparts=at91_nand:-(root) "           \
                                "rw rootfstype=jffs2"
 
-#else /* CFG_USE_NANDFLASH */
+#else /* CONFIG_SYS_USE_NANDFLASH */
 
 /* bootstrap + u-boot + env + linux in nandflash */
 #define CONFIG_ENV_IS_IN_NAND  1
 #endif
 
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {115200 , 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200 , 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "
-#define CFG_CBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_PROMPT              "U-Boot> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 
 #define ROUND(A, B)            (((A) + (B)) & ~((B) - 1))
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
-#define CFG_GBL_DATA_SIZE      128     /* 128 bytes for initial data */
+#define CONFIG_SYS_MALLOC_LEN          ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* 128 bytes for initial data */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
 
index b4368effa18c57cb86a85ff53ea5f8354de5b680..555cb7f2ea06fedb32e89f09aed0aa27da716404 100644 (file)
@@ -31,7 +31,7 @@
 #define AT91_CPU_NAME          "AT91SAM9263"
 #define AT91_MAIN_CLOCK                199919000       /* from 16.367 MHz crystal */
 #define AT91_MASTER_CLOCK      99959500        /* peripheral = main / 2 */
-#define CFG_HZ                 1000000         /* 1us resolution */
+#define CONFIG_SYS_HZ                  1000000         /* 1us resolution */
 
 #define AT91_SLOW_CLOCK                32768   /* slow clock */
 
 #undef LCD_TEST_PATTERN
 #define CONFIG_LCD_INFO                        1
 #define CONFIG_LCD_INFO_BELOW_LOGO     1
-#define CFG_WHITE_ON_BLACK             1
+#define CONFIG_SYS_WHITE_ON_BLACK              1
 #define CONFIG_ATMEL_LCD               1
 #define CONFIG_ATMEL_LCD_BGR555                1
-#define CFG_CONSOLE_IS_IN_ENV          1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
 
 #define CONFIG_BOOTDELAY       3
 
 
 /* DataFlash */
 #define CONFIG_HAS_DATAFLASH           1
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                1
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* CS0 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         1
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* CS0 */
 #define AT91_SPI_CLK                   15000000
 #define DATAFLASH_TCSS                 (0x1a << 16)
 #define DATAFLASH_TCHS                 (0x1 << 24)
 
 /* NOR flash, if populated */
 #if 1
-#define CFG_NO_FLASH                   1
+#define CONFIG_SYS_NO_FLASH                    1
 #else
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 #define PHYS_FLASH_1                   0x10000000
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MAX_FLASH_SECT             256
-#define CFG_MAX_FLASH_BANKS            1
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_SECT              256
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
 #endif
 
 /* NAND flash */
 #define NAND_MAX_CHIPS                 1
-#define CFG_MAX_NAND_DEVICE            1
-#define CFG_NAND_BASE                  0x40000000
-#define CFG_NAND_DBW_8                 1
+#define CONFIG_SYS_MAX_NAND_DEVICE             1
+#define CONFIG_SYS_NAND_BASE                   0x40000000
+#define CONFIG_SYS_NAND_DBW_8                  1
 
 /* Ethernet */
 #define CONFIG_MACB                    1
 #define CONFIG_USB_OHCI_NEW            1
 #define LITTLEENDIAN                   1
 #define CONFIG_DOS_PARTITION           1
-#define CFG_USB_OHCI_CPU_INIT          1
-#define CFG_USB_OHCI_REGS_BASE         0x00a00000      /* AT91SAM9263_UHP_BASE */
-#define CFG_USB_OHCI_SLOT_NAME         "at91sam9263"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    2
+#define CONFIG_SYS_USB_OHCI_CPU_INIT           1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE          0x00a00000      /* AT91SAM9263_UHP_BASE */
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "at91sam9263"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     2
 #define CONFIG_USB_STORAGE             1
 
-#define CFG_LOAD_ADDR                  0x22000000      /* load address */
+#define CONFIG_SYS_LOAD_ADDR                   0x22000000      /* load address */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        0x23e00000
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 0x23e00000
 
-#define CFG_USE_DATAFLASH              1
-#undef CFG_USE_NANDFLASH
+#define CONFIG_SYS_USE_DATAFLASH               1
+#undef CONFIG_SYS_USE_NANDFLASH
 
-#ifdef CFG_USE_DATAFLASH
+#ifdef CONFIG_SYS_USE_DATAFLASH
 
 /* bootstrap + u-boot + env + linux in dataflash on CS0 */
 #define CONFIG_ENV_IS_IN_DATAFLASH     1
-#define CFG_MONITOR_BASE       (CFG_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
 #define CONFIG_ENV_OFFSET              0x4200
-#define CONFIG_ENV_ADDR                (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x4200
 #define CONFIG_BOOTCOMMAND     "cp.b 0xC0042000 0x22000000 0x210000; bootm"
 #define CONFIG_BOOTARGS                "console=ttyS0,115200 " \
                                "mtdparts=at91_nand:-(root) "\
                                "rw rootfstype=jffs2"
 
-#else /* CFG_USE_NANDFLASH */
+#else /* CONFIG_SYS_USE_NANDFLASH */
 
 /* bootstrap + u-boot + env + linux in nandflash */
 #define CONFIG_ENV_IS_IN_NAND  1
 #endif
 
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {115200 , 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200 , 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "
-#define CFG_CBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_PROMPT              "U-Boot> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 
 #define ROUND(A, B)            (((A) + (B)) & ~((B) - 1))
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
-#define CFG_GBL_DATA_SIZE      128     /* 128 bytes for initial data */
+#define CONFIG_SYS_MALLOC_LEN          ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* 128 bytes for initial data */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
 
index 32168dc4329322e034a75f9ee737a45fe8e0574c..648d60ef1d30749b79e73eab2813211d6a80b894 100644 (file)
@@ -31,7 +31,7 @@
 #define AT91_CPU_NAME          "AT91SAM9RL"
 #define AT91_MAIN_CLOCK                200000000       /* from 12.000 MHz crystal */
 #define AT91_MASTER_CLOCK      100000000       /* peripheral = main / 2 */
-#define CFG_HZ                 1000000         /* 1us resolution */
+#define CONFIG_SYS_HZ                  1000000         /* 1us resolution */
 
 #define AT91_SLOW_CLOCK                32768   /* slow clock */
 
 #undef LCD_TEST_PATTERN
 #define CONFIG_LCD_INFO                        1
 #define CONFIG_LCD_INFO_BELOW_LOGO     1
-#define CFG_WHITE_ON_BLACK             1
+#define CONFIG_SYS_WHITE_ON_BLACK              1
 #define CONFIG_ATMEL_LCD               1
 #define CONFIG_ATMEL_LCD_RGB565                1
-#define CFG_CONSOLE_IS_IN_ENV          1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
 
 #define CONFIG_BOOTDELAY       3
 
 
 /* DataFlash */
 #define CONFIG_HAS_DATAFLASH           1
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                1
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* CS0 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         1
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* CS0 */
 #define AT91_SPI_CLK                   15000000
 #define DATAFLASH_TCSS                 (0x1a << 16)
 #define DATAFLASH_TCHS                 (0x1 << 24)
 
 /* NOR flash - not present */
-#define CFG_NO_FLASH                   1
+#define CONFIG_SYS_NO_FLASH                    1
 
 /* NAND flash */
 #define NAND_MAX_CHIPS                 1
-#define CFG_MAX_NAND_DEVICE            1
-#define CFG_NAND_BASE                  0x40000000
-#define CFG_NAND_DBW_8                 1
+#define CONFIG_SYS_MAX_NAND_DEVICE             1
+#define CONFIG_SYS_NAND_BASE                   0x40000000
+#define CONFIG_SYS_NAND_DBW_8                  1
 
 /* Ethernet - not present */
 
 /* USB - not supported */
 
-#define CFG_LOAD_ADDR                  0x22000000      /* load address */
+#define CONFIG_SYS_LOAD_ADDR                   0x22000000      /* load address */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        0x23e00000
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 0x23e00000
 
-#define CFG_USE_DATAFLASH              1
-#undef CFG_USE_NANDFLASH
+#define CONFIG_SYS_USE_DATAFLASH               1
+#undef CONFIG_SYS_USE_NANDFLASH
 
-#ifdef CFG_USE_DATAFLASH
+#ifdef CONFIG_SYS_USE_DATAFLASH
 
 /* bootstrap + u-boot + env + linux in dataflash on CS0 */
 #define CONFIG_ENV_IS_IN_DATAFLASH     1
-#define CFG_MONITOR_BASE       (CFG_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + 0x8400)
 #define CONFIG_ENV_OFFSET              0x4200
-#define CONFIG_ENV_ADDR                (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x4200
 #define CONFIG_BOOTCOMMAND     "cp.b 0xC0042000 0x22000000 0x210000; bootm"
 #define CONFIG_BOOTARGS                "console=ttyS0,115200 " \
                                "mtdparts=at91_nand:-(root) "\
                                "rw rootfstype=jffs2"
 
-#else /* CFG_USE_NANDFLASH */
+#else /* CONFIG_SYS_USE_NANDFLASH */
 
 /* bootstrap + u-boot + env + linux in nandflash */
 #define CONFIG_ENV_IS_IN_NAND  1
 #endif
 
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {115200 , 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200 , 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "
-#define CFG_CBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_PROMPT              "U-Boot> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 
 #define ROUND(A, B)            (((A) + (B)) & ~((B) - 1))
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
-#define CFG_GBL_DATA_SIZE      128     /* 128 bytes for initial data */
+#define CONFIG_SYS_MALLOC_LEN          ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* 128 bytes for initial data */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
 
index 02ec2392160cbc073efc6139c804e1ef95eb6e21..24015b79e66ecc79f8ee0e17fa89524cf1e49d22 100644 (file)
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK2      (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE2     (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK2       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE2      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #define CONFIG_ETHER_ON_FCC3
 
@@ -92,8 +92,8 @@
  * - RAM for BD/Buffers is on the local Bus (see 28-13)
  * - Enable Half Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK3      (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
-# define CFG_CMXFCR_VALUE3     (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
+# define CONFIG_SYS_CMXFCR_MASK3       (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE3      (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
 
 /* system clock rate (CLKIN) - equal to the 60x and local bus speed */
 #define CONFIG_8260_CLKIN      64000000        /* in Hz */
  */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END        0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR   0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR    0x100000        /* default load address */
 
-#define CFG_PIO_MODE           0       /* IDE interface in PIO Mode 0  */
+#define CONFIG_SYS_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_RESET_ADDRESS 0xFFF00100    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFFF00100     /* "bad" address                */
 
-#define CFG_ALLOC_DPRAM
+#define CONFIG_SYS_ALLOC_DPRAM
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Flash configuration
  */
 
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_SIZE         0x00800000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #define CONFIG_FLASH_16BIT
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
-#define CFG_HRCW_MASTER                (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | \
+#define CONFIG_SYS_HRCW_MASTER         (HRCW_CIP | HRCW_ISB100 | HRCW_BMS | \
                                 HRCW_BPS10 |\
                                 HRCW_APPC10)
 
 /* no slaves so just fill with zeros */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128 /* size in bytes reserved for initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* size in bytes reserved for initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * 60x SDRAM is mapped at CFG_SDRAM_BASE.
+ * 60x SDRAM is mapped at CONFIG_SYS_SDRAM_BASE.
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_MAX_SIZE     0x08000000      /* max. 128 MB          */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_MAX_SIZE      0x08000000      /* max. 128 MB          */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-# define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+# define CONFIG_SYS_RAMBOOT
 #endif
 
 #define        CONFIG_PCI
 #define        CONFIG_PCI_PNP
-#define        CFG_PCI_MSTR_IO_BUS     0x00000000      /* PCI base   */
+#define        CONFIG_SYS_PCI_MSTR_IO_BUS      0x00000000      /* PCI base   */
 
 #if 1
 /* environment is in Flash */
 #define CONFIG_ENV_IS_IN_FLASH 1
-# define CONFIG_ENV_ADDR               (CFG_FLASH_BASE+0x30000)
+# define CONFIG_ENV_ADDR               (CONFIG_SYS_FLASH_BASE+0x30000)
 # define CONFIG_ENV_SIZE               0x10000
 # define CONFIG_ENV_SECT_SIZE  0x10000
 #else
 #define CONFIG_ENV_IS_IN_EEPROM        1
 #define CONFIG_ENV_OFFSET              0
 #define CONFIG_ENV_SIZE                2048
-#define CFG_EEPROM_PAGE_WRITE_BITS     4       /* 16-byte page size    */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4       /* 16-byte page size    */
 #endif
 /*
  * Internal Definitions
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|\
                         HID0_DCI|HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL  (HID0_IFEM|HID0_ABE)
-#define CFG_HID2        0
+#define CONFIG_SYS_HID0_FINAL  (HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
 #define BCR_APD01      0x10000000
-#define CFG_BCR                (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
+#define CONFIG_SYS_BCR         (BCR_APD01|BCR_ETM|BCR_LETM)    /* 8260 mode */
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                             4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR      (SIUMCR_BBD|SIUMCR_APPC10|\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_BBD|SIUMCR_APPC10|\
                         SIUMCR_CS10PC00|SIUMCR_BCTLC10)
 
 /*-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR        SCCR_DFBRG01
+#define CONFIG_SYS_SCCR        SCCR_DFBRG01
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
-#define CFG_MIN_AM_MASK        0xC0000000
+#define CONFIG_SYS_MIN_AM_MASK 0xC0000000
 /*-----------------------------------------------------------------------
  * MPTPR - Memory Refresh Timer Prescaler Register              10-18
  *-----------------------------------------------------------------------
  */
-#define CFG_MPTPR       0x1F00
+#define CONFIG_SYS_MPTPR       0x1F00
 
 /*-----------------------------------------------------------------------
  * PSRT - Refresh Timer Register                                10-16
  *-----------------------------------------------------------------------
  */
-#define CFG_PSRT        0x0f
+#define CONFIG_SYS_PSRT        0x0f
 
 /*-----------------------------------------------------------------------
  * PSRT - SDRAM Mode Register                                   10-10
 
        /* SDRAM initialization values for 8-column chips
         */
-#define CFG_OR2_8COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_8COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A7             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_8COL (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_8COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A15_IS_A5           |\
                         PSDMR_BSMA_A15_A17             |\
                         PSDMR_SDA10_PBI1_A7            |\
 
        /* SDRAM initialization values for 9-column chips
         */
-#define CFG_OR2_9COL   (CFG_MIN_AM_MASK                |\
+#define CONFIG_SYS_OR2_9COL    (CONFIG_SYS_MIN_AM_MASK         |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A6             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_9COL (PSDMR_PBI                      |\
+#define CONFIG_SYS_PSDMR_9COL  (PSDMR_PBI                      |\
                         PSDMR_SDAM_A16_IS_A5           |\
                         PSDMR_BSMA_A15_A17             |\
                         PSDMR_SDA10_PBI1_A6            |\
  *
  */
 
-#define CFG_MRS_OFFS   0x00000000
+#define CONFIG_SYS_MRS_OFFS    0x00000000
 
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)  |\
                         BRx_PS_16                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (P2SZ_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_FLASH_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_3_CLK                 |\
 
 /* Bank 2 - 60x bus SDRAM
  */
-#ifndef CFG_RAMBOOT
-#define CFG_BR2_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#ifndef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR2_PRELIM  CFG_OR2_8COL
+#define CONFIG_SYS_OR2_PRELIM   CONFIG_SYS_OR2_8COL
 
-#define CFG_PSDMR       CFG_PSDMR_8COL
-#endif /* CFG_RAMBOOT */
+#define CONFIG_SYS_PSDMR        CONFIG_SYS_PSDMR_8COL
+#endif /* CONFIG_SYS_RAMBOOT */
 
-#define CFG_BR4_PRELIM  ((RTC_BASE_ADDR & BRx_BA_MSK)   |\
+#define CONFIG_SYS_BR4_PRELIM  ((RTC_BASE_ADDR & BRx_BA_MSK)   |\
                         BRx_PS_8                       |\
                         BRx_MS_UPMA                    |\
                         BRx_V)
 
-#define CFG_OR4_PRELIM  (ORxU_AM_MSK | ORxU_BI)
+#define CONFIG_SYS_OR4_PRELIM  (ORxU_AM_MSK | ORxU_BI)
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  */
 #define CONFIG_I82365
 
-#define CFG_PCMCIA_MEM_ADDR    0x81000000
-#define CFG_PCMCIA_MEM_SIZE    0x1000
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     0x81000000
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     0x1000
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      0xa0000000
+#define CONFIG_SYS_ATA_BASE_ADDR       0xa0000000
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    0x100
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x100
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     0x100
+#define CONFIG_SYS_ATA_REG_OFFSET      0x100
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x108
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x108
 
 #endif /* __CONFIG_H */
index 5c286380953b39eafd4c6c95ab798726ea9689f5..9e97624765c51ceb29505ec5e82570a7ef9c4e2f 100644 (file)
@@ -31,7 +31,7 @@
 #define CONFIG_AT32AP7000              1
 #define CONFIG_ATNGW100                        1
 
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
  * and the PBA bus to run at 1/4 the PLL frequency.
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    20000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   7
-#define CFG_PLL0_SUPPRESS_CYCLES       16
-#define CFG_CLKDIV_CPU                 0
-#define CFG_CLKDIV_HSB                 1
-#define CFG_CLKDIV_PBA                 2
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     20000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    7
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
+#define CONFIG_SYS_CLKDIV_CPU                  0
+#define CONFIG_SYS_CLKDIV_HSB                  1
+#define CONFIG_SYS_CLKDIV_PBA                  2
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -56,7 +56,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #define CONFIG_USART1                  1
 
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_MACB                    1
 #define CONFIG_PIO2                    1
-#define CFG_NR_PIOS                    5
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_NR_PIOS                     5
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 #define CONFIG_ATMEL_SPI               1
 #define CONFIG_SPI_FLASH               1
 #define CONFIG_SPI_FLASH_ATMEL         1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        INTERNAL_SRAM_BASE
-#define CFG_INTRAM_SIZE                        INTERNAL_SRAM_SIZE
-#define CFG_SDRAM_BASE                 EBI_SDRAM_BASE
+#define CONFIG_SYS_INTRAM_BASE                 INTERNAL_SRAM_BASE
+#define CONFIG_SYS_INTRAM_SIZE                 INTERNAL_SRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE                  EBI_SDRAM_BASE
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (256*1024)
-#define CFG_DMA_ALLOC_LEN              (16384)
+#define CONFIG_SYS_MALLOC_LEN                  (256*1024)
+#define CONFIG_SYS_DMA_ALLOC_LEN               (16384)
 
 /* Allow 4MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (EBI_SDRAM_BASE + 0x00400000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (EBI_SDRAM_BASE + 0x00400000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "U-Boot> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
+#define CONFIG_SYS_PROMPT                      "U-Boot> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
 
-#define CFG_MEMTEST_START              EBI_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x1f00000)
+#define CONFIG_SYS_MEMTEST_START               EBI_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x1f00000)
 
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index faa7a01b6fe74e8d582da608f51475c986265370..2870adef0f651e19b76eef1df3bd9f386cbbaf43 100644 (file)
  * Timer clock frequency. We're using the CPU-internal COUNT register
  * for this, so this is equivalent to the CPU core clock frequency
  */
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
  * frequency, the HSB and PBB at 1/2, and the PBA to run at 1/4 the
  * PLL frequency.
- * (CFG_OSC0_HZ * CFG_PLL0_MUL) / CFG_PLL0_DIV = PLL MHz
+ * (CONFIG_SYS_OSC0_HZ * CONFIG_SYS_PLL0_MUL) / CONFIG_SYS_PLL0_DIV = PLL MHz
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    20000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   7
-#define CFG_PLL0_SUPPRESS_CYCLES       16
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     20000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    7
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
 /*
  * Set the CPU running at:
- * PLL / (2^CFG_CLKDIV_CPU) = CPU MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_CPU) = CPU MHz
  */
-#define CFG_CLKDIV_CPU                 0
+#define CONFIG_SYS_CLKDIV_CPU                  0
 /*
  * Set the HSB running at:
- * PLL / (2^CFG_CLKDIV_HSB) = HSB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_HSB) = HSB MHz
  */
-#define CFG_CLKDIV_HSB                 1
+#define CONFIG_SYS_CLKDIV_HSB                  1
 /*
  * Set the PBA running at:
- * PLL / (2^CFG_CLKDIV_PBA) = PBA MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBA) = PBA MHz
  */
-#define CFG_CLKDIV_PBA                 2
+#define CONFIG_SYS_CLKDIV_PBA                  2
 /*
  * Set the PBB running at:
- * PLL / (2^CFG_CLKDIV_PBB) = PBB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBB) = PBB MHz
  */
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -80,7 +80,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #undef CONFIG_USART0
 #define CONFIG_USART1                  1
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_MACB                    1
 #define CONFIG_PIO2                    1
-#define CFG_NR_PIOS                    5
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_NR_PIOS                     5
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
 /* External flash on STK1000 */
 #if 0
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 #endif
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        INTERNAL_SRAM_BASE
-#define CFG_INTRAM_SIZE                        INTERNAL_SRAM_SIZE
-#define CFG_SDRAM_BASE                 EBI_SDRAM_BASE
+#define CONFIG_SYS_INTRAM_BASE                 INTERNAL_SRAM_BASE
+#define CONFIG_SYS_INTRAM_SIZE                 INTERNAL_SRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE                  EBI_SDRAM_BASE
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (256*1024)
-#define CFG_DMA_ALLOC_LEN              (16384)
+#define CONFIG_SYS_MALLOC_LEN                  (256*1024)
+#define CONFIG_SYS_DMA_ALLOC_LEN               (16384)
 
 /* Allow 4MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (EBI_SDRAM_BASE + 0x00400000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (EBI_SDRAM_BASE + 0x00400000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "U-Boot> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
-
-#define CFG_MEMTEST_START              EBI_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x700000)
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_PROMPT                      "U-Boot> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
+
+#define CONFIG_SYS_MEMTEST_START               EBI_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x700000)
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index e3084d49910f95a1c48356afdc96823ab6ae0293..1e80dc856e98dd2d3a86888cbcaefc0e5895ef53 100644 (file)
  * Timer clock frequency. We're using the CPU-internal COUNT register
  * for this, so this is equivalent to the CPU core clock frequency
  */
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
  * frequency, the HSB and PBB at 1/2, and the PBA to run at 1/4 the
  * PLL frequency.
- * (CFG_OSC0_HZ * CFG_PLL0_MUL) / CFG_PLL0_DIV = PLL MHz
+ * (CONFIG_SYS_OSC0_HZ * CONFIG_SYS_PLL0_MUL) / CONFIG_SYS_PLL0_DIV = PLL MHz
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    20000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   7
-#define CFG_PLL0_SUPPRESS_CYCLES       16
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     20000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    7
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
 /*
  * Set the CPU running at:
- * PLL / (2^CFG_CLKDIV_CPU) = CPU MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_CPU) = CPU MHz
  */
-#define CFG_CLKDIV_CPU                 0
+#define CONFIG_SYS_CLKDIV_CPU                  0
 /*
  * Set the HSB running at:
- * PLL / (2^CFG_CLKDIV_HSB) = HSB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_HSB) = HSB MHz
  */
-#define CFG_CLKDIV_HSB                 1
+#define CONFIG_SYS_CLKDIV_HSB                  1
 /*
  * Set the PBA running at:
- * PLL / (2^CFG_CLKDIV_PBA) = PBA MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBA) = PBA MHz
  */
-#define CFG_CLKDIV_PBA                 2
+#define CONFIG_SYS_CLKDIV_PBA                  2
 /*
  * Set the PBB running at:
- * PLL / (2^CFG_CLKDIV_PBB) = PBB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBB) = PBB MHz
  */
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -80,7 +80,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #undef CONFIG_USART0
 #define CONFIG_USART1                  1
 
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_PIO2                    1
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
 /* External flash on STK1000 */
 #if 0
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 #endif
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        INTERNAL_SRAM_BASE
-#define CFG_INTRAM_SIZE                        INTERNAL_SRAM_SIZE
-#define CFG_SDRAM_BASE                 EBI_SDRAM_BASE
+#define CONFIG_SYS_INTRAM_BASE                 INTERNAL_SRAM_BASE
+#define CONFIG_SYS_INTRAM_SIZE                 INTERNAL_SRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE                  EBI_SDRAM_BASE
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (256*1024)
+#define CONFIG_SYS_MALLOC_LEN                  (256*1024)
 
 /* Allow 4MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (EBI_SDRAM_BASE + 0x00400000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (EBI_SDRAM_BASE + 0x00400000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "U-Boot> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
-
-#define CFG_MEMTEST_START              EBI_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x700000)
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_PROMPT                      "U-Boot> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
+
+#define CONFIG_SYS_MEMTEST_START               EBI_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x700000)
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index c87c5b7afc197e309af2336e100cd7d7d4dd028f..0e4f4103b212207f215c03ed77afeeaa2ca34a52 100644 (file)
  * Timer clock frequency. We're using the CPU-internal COUNT register
  * for this, so this is equivalent to the CPU core clock frequency
  */
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
  * frequency, the HSB and PBB at 1/2, and the PBA to run at 1/4 the
  * PLL frequency.
- * (CFG_OSC0_HZ * CFG_PLL0_MUL) / CFG_PLL0_DIV = PLL MHz
+ * (CONFIG_SYS_OSC0_HZ * CONFIG_SYS_PLL0_MUL) / CONFIG_SYS_PLL0_DIV = PLL MHz
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    20000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   7
-#define CFG_PLL0_SUPPRESS_CYCLES       16
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     20000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    7
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
 /*
  * Set the CPU running at:
- * PLL / (2^CFG_CLKDIV_CPU) = CPU MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_CPU) = CPU MHz
  */
-#define CFG_CLKDIV_CPU                 0
+#define CONFIG_SYS_CLKDIV_CPU                  0
 /*
  * Set the HSB running at:
- * PLL / (2^CFG_CLKDIV_HSB) = HSB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_HSB) = HSB MHz
  */
-#define CFG_CLKDIV_HSB                 1
+#define CONFIG_SYS_CLKDIV_HSB                  1
 /*
  * Set the PBA running at:
- * PLL / (2^CFG_CLKDIV_PBA) = PBA MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBA) = PBA MHz
  */
-#define CFG_CLKDIV_PBA                 2
+#define CONFIG_SYS_CLKDIV_PBA                  2
 /*
  * Set the PBB running at:
- * PLL / (2^CFG_CLKDIV_PBB) = PBB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBB) = PBB MHz
  */
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -80,7 +80,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #undef CONFIG_USART0
 #define CONFIG_USART1                  1
 
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_PIO2                    1
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
 /* External flash on STK1000 */
 #if 0
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 #endif
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        INTERNAL_SRAM_BASE
-#define CFG_INTRAM_SIZE                        INTERNAL_SRAM_SIZE
-#define CFG_SDRAM_BASE                 EBI_SDRAM_BASE
+#define CONFIG_SYS_INTRAM_BASE                 INTERNAL_SRAM_BASE
+#define CONFIG_SYS_INTRAM_SIZE                 INTERNAL_SRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE                  EBI_SDRAM_BASE
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (256*1024)
+#define CONFIG_SYS_MALLOC_LEN                  (256*1024)
 
 /* Allow 2MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (EBI_SDRAM_BASE + 0x00200000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (EBI_SDRAM_BASE + 0x00200000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "U-Boot> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
-
-#define CFG_MEMTEST_START              EBI_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x700000)
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_PROMPT                      "U-Boot> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
+
+#define CONFIG_SYS_MEMTEST_START               EBI_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x700000)
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index fe7a99bec09358c17f80eb8af9790e664021025c..c53459664b0f7353374900f4048878f0d6177a20 100644 (file)
  * Timer clock frequency. We're using the CPU-internal COUNT register
  * for this, so this is equivalent to the CPU core clock frequency
  */
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
  * frequency, the HSB and PBB at 1/2, and the PBA to run at 1/4 the
  * PLL frequency.
- * (CFG_OSC0_HZ * CFG_PLL0_MUL) / CFG_PLL0_DIV = PLL MHz
+ * (CONFIG_SYS_OSC0_HZ * CONFIG_SYS_PLL0_MUL) / CONFIG_SYS_PLL0_DIV = PLL MHz
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    20000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   7
-#define CFG_PLL0_SUPPRESS_CYCLES       16
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     20000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    7
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
 /*
  * Set the CPU running at:
- * PLL / (2^CFG_CLKDIV_CPU) = CPU MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_CPU) = CPU MHz
  */
-#define CFG_CLKDIV_CPU                 0
+#define CONFIG_SYS_CLKDIV_CPU                  0
 /*
  * Set the HSB running at:
- * PLL / (2^CFG_CLKDIV_HSB) = HSB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_HSB) = HSB MHz
  */
-#define CFG_CLKDIV_HSB                 1
+#define CONFIG_SYS_CLKDIV_HSB                  1
 /*
  * Set the PBA running at:
- * PLL / (2^CFG_CLKDIV_PBA) = PBA MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBA) = PBA MHz
  */
-#define CFG_CLKDIV_PBA                 2
+#define CONFIG_SYS_CLKDIV_PBA                  2
 /*
  * Set the PBB running at:
- * PLL / (2^CFG_CLKDIV_PBB) = PBB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBB) = PBB MHz
  */
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -80,7 +80,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #undef CONFIG_USART0
 #define CONFIG_USART1                  1
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_MACB                    1
 #define CONFIG_PIO2                    1
-#define CFG_NR_PIOS                    5
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_NR_PIOS                     5
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
 /* External flash on STK1000 */
 #if 0
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 #endif
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        INTERNAL_SRAM_BASE
-#define CFG_INTRAM_SIZE                        INTERNAL_SRAM_SIZE
-#define CFG_SDRAM_BASE                 EBI_SDRAM_BASE
+#define CONFIG_SYS_INTRAM_BASE                 INTERNAL_SRAM_BASE
+#define CONFIG_SYS_INTRAM_SIZE                 INTERNAL_SRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE                  EBI_SDRAM_BASE
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (256*1024)
-#define CFG_DMA_ALLOC_LEN              (16384)
+#define CONFIG_SYS_MALLOC_LEN                  (256*1024)
+#define CONFIG_SYS_DMA_ALLOC_LEN               (16384)
 
 /* Allow 4MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (EBI_SDRAM_BASE + 0x00400000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (EBI_SDRAM_BASE + 0x00400000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "U-Boot> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
-
-#define CFG_MEMTEST_START              EBI_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x3f00000)
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_PROMPT                      "U-Boot> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
+
+#define CONFIG_SYS_MEMTEST_START               EBI_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x3f00000)
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index 773b15a5e646647e73d3c0317f6c39b2cbe28618..f3ffe1ccac4859b4eee67c3c44e8af44ee24b25e 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xfff00000          /* start of FLASH   */
-#define CFG_PCI_MEMBASE                0xa0000000          /* mapped pci memory*/
-#define CFG_PCI_MEMBASE1        CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2        CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3        CFG_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_FLASH_BASE          0xfff00000          /* start of FLASH   */
+#define CONFIG_SYS_PCI_MEMBASE         0xa0000000          /* mapped pci memory*/
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
 
 /*Don't change either of these*/
-#define CFG_PERIPHERAL_BASE     0xef600000         /* internal peripherals*/
-#define CFG_PCI_BASE           0xe0000000          /* internal PCI regs*/
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000          /* internal peripherals*/
+#define CONFIG_SYS_PCI_BASE            0xe0000000          /* internal PCI regs*/
 /*Don't change either of these*/
 
-#define CFG_USB_DEVICE          0x50000000
-#define CFG_NVRAM_BASE_ADDR     0x80000000
-#define CFG_BOOT_BASE_ADDR      0xf0000000
-#define CFG_NAND_ADDR           0x90000000
-#define CFG_NAND2_ADDR          0x94000000
+#define CONFIG_SYS_USB_DEVICE          0x50000000
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0x80000000
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xf0000000
+#define CONFIG_SYS_NAND_ADDR           0x90000000
+#define CONFIG_SYS_NAND2_ADDR          0x94000000
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in SDRAM)
  *----------------------------------------------------------------------*/
-#define CFG_INIT_RAM_DCACHE    1               /* d-cache as init ram  */
-#define CFG_INIT_RAM_ADDR      0x70000000      /* DCache       */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data       */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_DCACHE     1               /* d-cache as init ram  */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x70000000      /* DCache       */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data       */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#define CFG_EXT_SERIAL_CLOCK   11059200 /* use external 11.059MHz clk  */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    11059200 /* use external 11.059MHz clk  */
 /* define this if you want console on UART1 */
 #undef CONFIG_UART1_CONSOLE
 
@@ -96,7 +96,7 @@
  * The DS1558 code assumes this condition
  *
  *----------------------------------------------------------------------*/
-#define CFG_NVRAM_SIZE         (0x2000 - 0x10) /* NVRAM size(8k)- RTC regs     */
+#define CONFIG_SYS_NVRAM_SIZE          (0x2000 - 0x10) /* NVRAM size(8k)- RTC regs     */
 #define CONFIG_RTC_DS1556      1                        /* DS1556 RTC          */
 
 /*-----------------------------------------------------------------------
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS    3       /* number of banks                      */
-#define CFG_MAX_FLASH_SECT     256     /* sectors per device                   */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* number of banks                      */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* sectors per device                   */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_ADDR0         0x555
-#define CFG_FLASH_ADDR1         0x2aa
-#define CFG_FLASH_WORD_SIZE     unsigned char
+#define CONFIG_SYS_FLASH_ADDR0         0x555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char
 
-#define CFG_FLASH_2ND_16BIT_DEV 1      /* bamboo has 8 and 16bit device        */
-#define CFG_FLASH_2ND_ADDR      0x87800000  /* bamboo has 8 and 16bit device   */
+#define CONFIG_SYS_FLASH_2ND_16BIT_DEV 1       /* bamboo has 8 and 16bit device        */
+#define CONFIG_SYS_FLASH_2ND_ADDR      0x87800000  /* bamboo has 8 and 16bit device    */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  * set up. While still running from cache, I experienced problems accessing
  * the NAND controller.        sr - 2006-08-25
  */
-#define CFG_NAND_BOOT_SPL_SRC  0xfffff000      /* SPL location                 */
-#define CFG_NAND_BOOT_SPL_SIZE (4 << 10)       /* SPL size                     */
-#define CFG_NAND_BOOT_SPL_DST  0x00800000      /* Copy SPL here                */
-#define CFG_NAND_U_BOOT_DST    0x01000000      /* Load NUB to this addr        */
-#define CFG_NAND_U_BOOT_START  CFG_NAND_U_BOOT_DST /* Start NUB from this addr */
-#define CFG_NAND_BOOT_SPL_DELTA        (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
+#define CONFIG_SYS_NAND_BOOT_SPL_SRC   0xfffff000      /* SPL location                 */
+#define CONFIG_SYS_NAND_BOOT_SPL_SIZE  (4 << 10)       /* SPL size                     */
+#define CONFIG_SYS_NAND_BOOT_SPL_DST   0x00800000      /* Copy SPL here                */
+#define CONFIG_SYS_NAND_U_BOOT_DST     0x01000000      /* Load NUB to this addr        */
+#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr  */
+#define CONFIG_SYS_NAND_BOOT_SPL_DELTA (CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST)
 
 /*
  * Define the partitioning of the NAND chip (only RAM U-Boot is needed here)
  */
-#define CFG_NAND_U_BOOT_OFFS   (16 << 10)      /* Offset to RAM U-Boot image   */
-#define CFG_NAND_U_BOOT_SIZE   (384 << 10)     /* Size of RAM U-Boot image     */
+#define CONFIG_SYS_NAND_U_BOOT_OFFS    (16 << 10)      /* Offset to RAM U-Boot image   */
+#define CONFIG_SYS_NAND_U_BOOT_SIZE    (384 << 10)     /* Size of RAM U-Boot image     */
 
 /*
  * Now the NAND chip has to be defined (no autodetection used!)
  */
-#define CFG_NAND_PAGE_SIZE     512             /* NAND chip page size          */
-#define CFG_NAND_BLOCK_SIZE    (16 << 10)      /* NAND chip block size         */
-#define CFG_NAND_PAGE_COUNT    32              /* NAND chip page count         */
-#define CFG_NAND_BAD_BLOCK_POS 5               /* Location of bad block marker */
-#define CFG_NAND_4_ADDR_CYCLE  1               /* Fourth addr used (>32MB)     */
-
-#define CFG_NAND_ECCSIZE       256
-#define CFG_NAND_ECCBYTES      3
-#define CFG_NAND_ECCSTEPS      (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
-#define CFG_NAND_OOBSIZE       16
-#define CFG_NAND_ECCTOTAL      (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
-#define CFG_NAND_ECCPOS                {0, 1, 2, 3, 6, 7}
+#define CONFIG_SYS_NAND_PAGE_SIZE      512             /* NAND chip page size          */
+#define CONFIG_SYS_NAND_BLOCK_SIZE     (16 << 10)      /* NAND chip block size         */
+#define CONFIG_SYS_NAND_PAGE_COUNT     32              /* NAND chip page count         */
+#define CONFIG_SYS_NAND_BAD_BLOCK_POS  5               /* Location of bad block marker */
+#define CONFIG_SYS_NAND_4_ADDR_CYCLE   1               /* Fourth addr used (>32MB)     */
+
+#define CONFIG_SYS_NAND_ECCSIZE        256
+#define CONFIG_SYS_NAND_ECCBYTES       3
+#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
+#define CONFIG_SYS_NAND_OOBSIZE        16
+#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
+#define CONFIG_SYS_NAND_ECCPOS         {0, 1, 2, 3, 6, 7}
 
 #ifdef CONFIG_ENV_IS_IN_NAND
 /*
  * For NAND booting the environment is embedded in the U-Boot image. Please take
  * look at the file board/amcc/sequoia/u-boot-nand.lds for details.
  */
-#define CONFIG_ENV_SIZE                CFG_NAND_BLOCK_SIZE
-#define CONFIG_ENV_OFFSET              (CFG_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
+#define CONFIG_ENV_SIZE                CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #endif
 
 /*-----------------------------------------------------------------------
  * NAND FLASH
  *----------------------------------------------------------------------*/
-#define CFG_MAX_NAND_DEVICE    2
-#define NAND_MAX_CHIPS         CFG_MAX_NAND_DEVICE
-#define CFG_NAND_BASE          (CFG_NAND_ADDR + CFG_NAND_CS)
-#define CFG_NAND_BASE_LIST     { CFG_NAND_BASE, CFG_NAND_ADDR + 2 }
-#define CFG_NAND_SELECT_DEVICE  1      /* nand driver supports mutipl. chips   */
+#define CONFIG_SYS_MAX_NAND_DEVICE     2
+#define NAND_MAX_CHIPS         CONFIG_SYS_MAX_NAND_DEVICE
+#define CONFIG_SYS_NAND_BASE           (CONFIG_SYS_NAND_ADDR + CONFIG_SYS_NAND_CS)
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND_BASE, CONFIG_SYS_NAND_ADDR + 2 }
+#define CONFIG_SYS_NAND_SELECT_DEVICE  1       /* nand driver supports mutipl. chips   */
 
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
-#define CFG_NAND_CS            1
+#define CONFIG_SYS_NAND_CS             1
 #else
-#define CFG_NAND_CS            0               /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             0               /* NAND chip connected to CSx   */
 /* Memory Bank 0 (NAND-FLASH) initialization                                   */
-#define CFG_EBC_PB0AP          0x018003c0
-#define CFG_EBC_PB0CR          (CFG_NAND_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB0AP           0x018003c0
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_NAND_ADDR | 0x1c000)
 #endif
 
 /*-----------------------------------------------------------------------
  *----------------------------------------------------------------------------- */
 #define CONFIG_SPD_EEPROM               /* Use SPD EEPROM for setup             */
 #undef CONFIG_DDR_ECC                  /* don't use ECC                        */
-#define CFG_SIMULATE_SPD_EEPROM        0xff    /* simulate spd eeprom on this address  */
-#define SPD_EEPROM_ADDRESS     {CFG_SIMULATE_SPD_EEPROM, 0x50, 0x51}
-#define CFG_MBYTES_SDRAM       (64)    /* 64MB fixed size for early-sdram-init */
+#define CONFIG_SYS_SIMULATE_SPD_EEPROM 0xff    /* simulate spd eeprom on this address  */
+#define SPD_EEPROM_ADDRESS     {CONFIG_SYS_SIMULATE_SPD_EEPROM, 0x50, 0x51}
+#define CONFIG_SYS_MBYTES_SDRAM        (64)    /* 64MB fixed size for early-sdram-init */
 #define CONFIG_PROG_SDRAM_TLB
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 #ifdef CONFIG_ENV_IS_IN_EEPROM
 #define CONFIG_ENV_SIZE                0x200       /* Size of Environment vars */
 #define CONFIG_PCI                     /* include pci support          */
 #undef  CONFIG_PCI_PNP                 /* do (not) pci plug-and-play   */
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE*/
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_ID       0xcafe /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe  /* Whatever */
 
 #endif /* __CONFIG_H */
index 9afb10edc6f8d4ac5e5ff863a90794767889d0c7..e00f84aab4ce36dbb442b353c7947c130ad1051d 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1               /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP            1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 
 /*-----------------------------------------------------------------------
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x02000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x02000000
 
 #define CONFIG_LOGBUFFER
 #ifdef CONFIG_LOGBUFFER
-#define CFG_STDOUT_ADDR                0x1FFC000
+#define CONFIG_SYS_STDOUT_ADDR         0x1FFC000
 #else
-#define CFG_STDOUT_ADDR                0x2B9000
+#define CONFIG_SYS_STDOUT_ADDR         0x2B9000
 #endif
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #if defined (USE_DINK32)
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       0x00090000
-#define CFG_RAMBOOT            1
-#define CFG_INIT_RAM_ADDR      (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_INIT_RAM_END       0x10000
-#define CFG_GBL_DATA_SIZE      256  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        0x00090000
+#define CONFIG_SYS_RAMBOOT             1
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_INIT_RAM_END        0x10000
+#define CONFIG_SYS_GBL_DATA_SIZE       256  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #else
-#undef CFG_RAMBOOT
-#define CFG_MONITOR_LEN                0x00030000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_MONITOR_LEN         0x00030000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-#define CFG_GBL_DATA_SIZE      128
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #endif
 
-#define CFG_FLASH_BASE         0xFFF00000
-#define CFG_FLASH_SIZE         (8 * 1024 * 1024)       /* Unity has onboard 1MByte flash */
+#define CONFIG_SYS_FLASH_BASE          0xFFF00000
+#define CONFIG_SYS_FLASH_SIZE          (8 * 1024 * 1024)       /* Unity has onboard 1MByte flash */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x000047A4      /* Offset of Environment Sector */
 #define CONFIG_ENV_SIZE                0x00002000      /* Total Size of Environment Sector */
 /* #define ENV_CRC             0x8BF6F24B      XXX - FIXME: gets defined automatically */
 
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x04000000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x04000000      /* 0 ... 32 MB in DRAM          */
 
-#define CFG_EUMB_ADDR          0xFDF00000
+#define CONFIG_SYS_EUMB_ADDR           0xFDF00000
 
-#define CFG_FLASH_RANGE_BASE   0xFFC00000      /* flash memory address range   */
-#define CFG_FLASH_RANGE_SIZE   0x00400000
+#define CONFIG_SYS_FLASH_RANGE_BASE    0xFFC00000      /* flash memory address range   */
+#define CONFIG_SYS_FLASH_RANGE_SIZE    0x00400000
 #define FLASH_BASE0_PRELIM     0xFFF00000      /* sandpoint flash              */
 #define FLASH_BASE1_PRELIM     0xFF000000      /* PMC onboard flash            */
 
  */
 #define CONFIG_HARD_I2C                1               /* To enable I2C support        */
 #undef  CONFIG_SOFT_I2C                                /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 #ifdef CONFIG_SOFT_I2C
 #error "Soft I2C is not configured properly.  Please review!"
 #define I2C_DELAY              udelay(5)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x57            /* EEPROM IS24C02               */
-#define CFG_I2C_EEPROM_ADDR_LEN        1               /* Bytes of address             */
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57            /* EEPROM IS24C02               */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_FLASH_BANKS                { FLASH_BASE0_PRELIM , FLASH_BASE1_PRELIM }
-#define CFG_DBUS_SIZE2         1
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_FLASH_BANKS         { FLASH_BASE0_PRELIM , FLASH_BASE1_PRELIM }
+#define CONFIG_SYS_DBUS_SIZE2          1
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
 
 #define CONFIG_SYS_CLK_FREQ  33333333  /* external frequency to pll */
 
-#define CFG_ROMNAL             0x0F    /*rom/flash next access time            */
-#define CFG_ROMFAL             0x1E    /*rom/flash access time                 */
+#define CONFIG_SYS_ROMNAL              0x0F    /*rom/flash next access time            */
+#define CONFIG_SYS_ROMFAL              0x1E    /*rom/flash access time                 */
 
-#define CFG_REFINT     0x8F    /* no of clock cycles between CBR refresh cycles */
+#define CONFIG_SYS_REFINT      0x8F    /* no of clock cycles between CBR refresh cycles */
 
 /* the following are for SDRAM only*/
-#define CFG_BSTOPRE    0x25C   /* Burst To Precharge, sets open page interval */
-#define CFG_REFREC             8       /* Refresh to activate interval         */
-#define CFG_RDLAT              4       /* data latency from read command       */
-#define CFG_PRETOACT           3       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           5       /* Activate to Precharge interval       */
-#define CFG_ACTORW             2       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_BSTOPRE     0x25C   /* Burst To Precharge, sets open page interval */
+#define CONFIG_SYS_REFREC              8       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT               4       /* data latency from read command       */
+#define CONFIG_SYS_PRETOACT            3       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              2       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
 
-#define CFG_REGISTERD_TYPE_BUFFER   1
-#define CFG_EXTROM 0
-#define CFG_REGDIMM 0
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_EXTROM 0
+#define CONFIG_SYS_REGDIMM 0
 
 
 /* memory bank settings*/
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          0x01FFFFFF
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x02000000
-#define CFG_BANK1_END          0x02ffffff
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x03f00000
-#define CFG_BANK2_END          0x03ffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x04000000
-#define CFG_BANK3_END          0x04ffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x05000000
-#define CFG_BANK4_END          0x05FFFFFF
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x06000000
-#define CFG_BANK5_END          0x06FFFFFF
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x07000000
-#define CFG_BANK6_END          0x07FFFFFF
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x08000000
-#define CFG_BANK7_END          0x08FFFFFF
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           0x01FFFFFF
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x02000000
+#define CONFIG_SYS_BANK1_END           0x02ffffff
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x03f00000
+#define CONFIG_SYS_BANK2_END           0x03ffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x04000000
+#define CONFIG_SYS_BANK3_END           0x04ffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x05000000
+#define CONFIG_SYS_BANK4_END           0x05FFFFFF
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x06000000
+#define CONFIG_SYS_BANK5_END           0x06FFFFFF
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x07000000
+#define CONFIG_SYS_BANK6_END           0x07FFFFFF
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x08000000
+#define CONFIG_SYS_BANK7_END           0x08FFFFFF
+#define CONFIG_SYS_BANK7_ENABLE        0
 /*
  * Memory bank enable bitmask, specifying which of the banks defined above
  are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
-#define CFG_ODCR               0xff    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0xff    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 1GB (no backing mem) */
 #if defined(USE_DINK32)
-#define CFG_IBAT1L     (0x40000000 | BATL_PP_00 )
-#define CFG_IBAT1U     (0x40000000 | BATU_BL_128K )
+#define CONFIG_SYS_IBAT1L      (0x40000000 | BATL_PP_00 )
+#define CONFIG_SYS_IBAT1U      (0x40000000 | BATU_BL_128K )
 #else
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 #endif
 
 /* PCI memory */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Flash, config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     20      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      20      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_CHECKSUM
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8240 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8240 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
index b35e362d8d747c1f2d26db27457b80f72f74992b..e871737177ac410f20f9efcd831759c6c2daa065 100644 (file)
@@ -10,9 +10,9 @@
 #define CONFIG_BAUDRATE                57600
 
 #define CONFIG_BOOTDELAY       5
-#define CFG_AUTOLOAD           "no"    /*rarpb, bootp or dhcp commands will perform only a */
+#define CONFIG_SYS_AUTOLOAD            "no"    /*rarpb, bootp or dhcp commands will perform only a */
 
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 #define CONFIG_LOADADDR                0x01000000      /* default load address */
 #define CONFIG_BOOTCOMMAND     "tftp $(loadaddr) linux"
@@ -23,7 +23,7 @@
 
 #if 0
 #define        CONFIG_MII
-#define CFG_DISCOVER_PHY
+#define CONFIG_SYS_DISCOVER_PHY
 #endif
 
 #define CONFIG_RTC_BFIN                1
 
 #define CONFIG_BOOTARGS "root=/dev/mtdblock0 ip=192.168.0.15:192.168.0.2:192.168.0.1:255.255.255.0:ezkit:eth0:off console=ttyBF0,57600"
 
-#define        CFG_PROMPT              "bfin> "        /* Monitor Command Prompt */
+#define        CONFIG_SYS_PROMPT               "bfin> "        /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
 #endif
-#define        CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on */
-#define CFG_MEMTEST_END                ( (CONFIG_MEM_SIZE - 1) * 1024 * 1024)  /* 1 ... 31 MB in DRAM */
-#define        CFG_LOAD_ADDR           0x01000000      /* default load address */
-#define        CFG_HZ                  1000    /* decrementer freq: 10 ms ticks */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_MAX_RAM_SIZE       (CONFIG_MEM_SIZE * 1024 * 1024)
-#define CFG_FLASH_BASE         0x20000000
-
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       (CFG_MAX_RAM_SIZE - CFG_MONITOR_LEN)
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_SIZE      0x4000
-#define CFG_GBL_DATA_ADDR      (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CONFIG_STACKBASE       (CFG_GBL_DATA_ADDR  - 4)
-
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
-#define CFG_FLASH0_BASE                0x20000000
-#define CFG_FLASH1_BASE                0x20200000
-#define CFG_FLASH2_BASE                0x20280000
-#define CFG_MAX_FLASH_BANKS    3       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     40      /* max number of sectors on one chip */
+#define        CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         ( (CONFIG_MEM_SIZE - 1) * 1024 * 1024)  /* 1 ... 31 MB in DRAM */
+#define        CONFIG_SYS_LOAD_ADDR            0x01000000      /* default load address */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 10 ms ticks */
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        (CONFIG_MEM_SIZE * 1024 * 1024)
+#define CONFIG_SYS_FLASH_BASE          0x20000000
+
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_MAX_RAM_SIZE - CONFIG_SYS_MONITOR_LEN)
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_SIZE       0x4000
+#define CONFIG_SYS_GBL_DATA_ADDR       (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_STACKBASE       (CONFIG_SYS_GBL_DATA_ADDR  - 4)
+
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_FLASH0_BASE         0x20000000
+#define CONFIG_SYS_FLASH1_BASE         0x20200000
+#define CONFIG_SYS_FLASH2_BASE         0x20280000
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      40      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                0x20020000
 #define        CONFIG_ENV_SECT_SIZE    0x10000 /* Total Size of Environment Sector */
 
 /* JFFS Partition offset set  */
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 /* 512k reserved for u-boot */
-#define CFG_JFFS2_FIRST_SECTOR 11
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  11
 
 
 /*
 #define POLL_MODE              1
 #define FLASH_TOT_SECT         40
 #define FLASH_SIZE             0x220000
-#define CFG_FLASH_SIZE         0x220000
+#define CONFIG_SYS_FLASH_SIZE          0x220000
 
 /*
  * Initialize PSD4256 registers for using I2C
                                }
 #define I2C_DELAY      udelay(5)       /* 1/4 I2C clock duration */
 
-#define CFG_I2C_SPEED          50000
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           50000
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
-#define CFG_BOOTM_LEN          0x4000000       /* Large Image Length, set to 64 Meg */
+#define CONFIG_SYS_BOOTM_LEN           0x4000000       /* Large Image Length, set to 64 Meg */
 
 #define CONFIG_EBIU_SDRRC_VAL  0x398
 #define CONFIG_EBIU_SDGCTL_VAL 0x91118d
index 6e138b8620092de6f2d3f777b5076f1f0ca4df69..5ad99a2fd49b93f065c4213c275ebeedcbd4090c 100644 (file)
  * Flash settings
  */
 
-#define CFG_FLASH_CFI          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER        /* Use common CFI driver        */
-#define        CFG_FLASH_CFI_AMD_RESET
+#define        CONFIG_SYS_FLASH_CFI_AMD_RESET
 
-#define CFG_FLASH_BASE         0x20000000
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BASE          0x20000000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip */
 
 #if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)
 #define CONFIG_ENV_IS_IN_EEPROM        1
 #else
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                0x20004000
-#define        CONFIG_ENV_OFFSET               (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#define        CONFIG_ENV_OFFSET               (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 #endif
 
 #define        CONFIG_ENV_SIZE         0x2000
 #define CONFIG_ENV_SECT_SIZE   0x2000  /* Total Size of Environment Sector */
 #define        ENV_IS_EMBEDDED
 
-#define CFG_FLASH_ERASE_TOUT   30000   /* Timeout for Chip Erase (in ms) */
-#define CFG_FLASH_ERASEBLOCK_TOUT      5000    /* Timeout for Block Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   1       /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    30000   /* Timeout for Chip Erase (in ms) */
+#define CONFIG_SYS_FLASH_ERASEBLOCK_TOUT       5000    /* Timeout for Block Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1       /* Timeout for Flash Write (in ms) */
 
 /* JFFS Partition offset set  */
-#define CFG_JFFS2_FIRST_BANK 0
-#define CFG_JFFS2_NUM_BANKS  1
+#define CONFIG_SYS_JFFS2_FIRST_BANK 0
+#define CONFIG_SYS_JFFS2_NUM_BANKS  1
 /* 512k reserved for u-boot */
-#define CFG_JFFS2_FIRST_SECTOR 11
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  11
 
 /*
  * following timeouts shall be used once the
  * Flash real protection is enabled
  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
 
 /*
  * SDRAM settings & memory map
 #define CONFIG_MEM_ADD_WDTH     11     /* 8, 9, 10, 11    */
 #define CONFIG_MEM_MT48LC64M4A2FB_7E   1
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on */
 
-#define        CFG_SDRAM_BASE          0x00000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
 
-#define CFG_MAX_RAM_SIZE       (CONFIG_MEM_SIZE * 1024 *1024)
-#define CFG_MEMTEST_END                (CFG_MAX_RAM_SIZE - 0x80000 - 1)
+#define CONFIG_SYS_MAX_RAM_SIZE        (CONFIG_MEM_SIZE * 1024 *1024)
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MAX_RAM_SIZE - 0x80000 - 1)
 #define CONFIG_LOADADDR                0x01000000
 
-#define CFG_LOAD_ADDR          CONFIG_LOADADDR
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_GBL_DATA_SIZE      0x4000          /* Reserve 16k for Global Data  */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_GBL_DATA_SIZE       0x4000          /* Reserve 16k for Global Data  */
 #define CONFIG_STACKSIZE       (128*1024)      /* regular stack */
 
-#define CFG_MONITOR_BASE               (CFG_MAX_RAM_SIZE - 0x40000)
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_ADDR      (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CONFIG_STACKBASE       (CFG_GBL_DATA_ADDR  - 4)
+#define CONFIG_SYS_MONITOR_BASE                (CONFIG_SYS_MAX_RAM_SIZE - 0x40000)
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_ADDR       (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_STACKBASE       (CONFIG_SYS_GBL_DATA_ADDR  - 4)
 
 /* Check to make sure everything fits in SDRAM */
-#if ((CFG_MONITOR_BASE + CFG_MONITOR_LEN) > CFG_MAX_RAM_SIZE)
+#if ((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) > CONFIG_SYS_MAX_RAM_SIZE)
        #error Memory Map does not fit into configuration
 #endif
 
  * Command settings
  */
 
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 
-#define CFG_AUTOLOAD           "no"    /*rarpb, bootp or dhcp commands will perform only a */
+#define CONFIG_SYS_AUTOLOAD            "no"    /*rarpb, bootp or dhcp commands will perform only a */
 
 /* configuration lookup from the BOOTP/DHCP server, */
 /* but not try to load any image using TFTP        */
  */
 
 #define CONFIG_BAUDRATE                57600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_PROMPT              "bfin> "        /* Monitor Command Prompt */
+#define        CONFIG_SYS_PROMPT               "bfin> "        /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
 #define CONFIG_LOADS_ECHO      1
 
                                }
 #define I2C_DELAY              udelay(5)       /* 1/4 I2C clock duration */
 
-#define CFG_I2C_SPEED          50000
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           50000
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 #endif /* CONFIG_SOFT_I2C */
 
 /*
 #undef  CONFIG_IDE_LED                 /* no led for ide supported */
 #undef  CONFIG_IDE_RESET               /* no reset for ide supported */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE busses */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE busses */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR      0x20200000
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       0x20200000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_DATA_OFFSET    0x0020  /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0020  /* Offset for normal register accesses */
-#define CFG_ATA_ALT_OFFSET     0x0007  /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0020  /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0020  /* Offset for normal register accesses */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0007  /* Offset for alternate registers */
 
-#define CFG_ATA_STRIDE         2
+#define CONFIG_SYS_ATA_STRIDE          2
 #endif
 
 /*
  * Miscellaneous configurable options
  */
 
-#define        CFG_HZ                  1000    /* 1ms time tick */
+#define        CONFIG_SYS_HZ                   1000    /* 1ms time tick */
 
-#define CFG_BOOTM_LEN          0x4000000/* Large Image Length, set to 64 Meg */
+#define CONFIG_SYS_BOOTM_LEN           0x4000000/* Large Image Length, set to 64 Meg */
 
 #define CONFIG_SHOW_BOOT_PROGRESS 1    /* Show boot progress on LEDs */
 
index 01e185a9f3e0e4c7fe5668c5d1d8042926f2ec07..1b54d3b881d0e7ea5fbb32b52ecd535c874340c6 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <asm/blackfin-config-pre.h>
 
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 #define CONFIG_BAUDRATE                57600
 /* Set default serial console for bf537 */
@@ -81,7 +81,7 @@
  * configuration lookup from the BOOTP/DHCP server
  * but not try to load any image using TFTP
  */
-#define CFG_AUTOLOAD                   "no"
+#define CONFIG_SYS_AUTOLOAD                    "no"
 
 /*
  * Network Settings
 /* #define CONFIG_ETHADDR      02:80:ad:20:31:e8 */
 /* This is the routine that copies the MAC in Flash to the 'ethaddr' setting */
 
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_BOOTDELAY       5
 #define CONFIG_BOOT_RETRY_TIME -1      /* Enable this if bootretry required, currently its disabled */
 #define CONFIG_BOOTCOMMAND     "run ramboot"
 
 #if defined(CONFIG_POST_TEST)
 /* POST support */
-#define CONFIG_POST            ( CFG_POST_MEMORY | \
-                                 CFG_POST_UART   | \
-                                 CFG_POST_FLASH  | \
-                                 CFG_POST_ETHER  | \
-                                 CFG_POST_LED    | \
-                                 CFG_POST_BUTTON)
+#define CONFIG_POST            ( CONFIG_SYS_POST_MEMORY | \
+                                 CONFIG_SYS_POST_UART    | \
+                                 CONFIG_SYS_POST_FLASH  | \
+                                 CONFIG_SYS_POST_ETHER  | \
+                                 CONFIG_SYS_POST_LED     | \
+                                 CONFIG_SYS_POST_BUTTON)
 #else
 #undef CONFIG_POST
 #endif
        "erase 0x20000000 0x2007FFFF;cp.b 0x1000000 0x20000000 $(filesize)\0"   \
        ""
 
-#define        CFG_PROMPT              "bfin> "        /* Monitor Command Prompt */
+#define        CONFIG_SYS_PROMPT               "bfin> "        /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
 #endif
-#define CFG_MAX_RAM_SIZE       (CONFIG_MEM_SIZE * 1024*1024)
-#define        CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_MEMTEST_START      0x0     /* memtest works on */
-#define CFG_MEMTEST_END                ( (CONFIG_MEM_SIZE - 1) * 1024*1024)    /* 1 ... 63 MB in DRAM */
-#define        CFG_LOAD_ADDR           CONFIG_LOADADDR /* default load address */
-#define        CFG_HZ                  1000    /* decrementer freq: 10 ms ticks */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define        CFG_SDRAM_BASE          0x00000000
-
-#define CFG_FLASH_BASE         0x20000000
-#define CFG_FLASH_CFI          /* The flash is CFI compatible */
+#define CONFIG_SYS_MAX_RAM_SIZE        (CONFIG_MEM_SIZE * 1024*1024)
+#define        CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_MEMTEST_START       0x0     /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         ( (CONFIG_MEM_SIZE - 1) * 1024*1024)    /* 1 ... 63 MB in DRAM */
+#define        CONFIG_SYS_LOAD_ADDR            CONFIG_LOADADDR /* default load address */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 10 ms ticks */
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+
+#define CONFIG_SYS_FLASH_BASE          0x20000000
+#define CONFIG_SYS_FLASH_CFI           /* The flash is CFI compatible */
 #define CONFIG_FLASH_CFI_DRIVER        /* Use common CFI driver */
-#define CFG_FLASH_PROTECTION
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_MAX_FLASH_SECT     71      /* some have 67 sectors (M29W320DB), but newer have 71 (M29W320EB) */
-
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       (CFG_MAX_RAM_SIZE - CFG_MONITOR_LEN)
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
-#define CFG_GBL_DATA_SIZE      0x4000
-#define CFG_GBL_DATA_ADDR      (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CONFIG_STACKBASE       (CFG_GBL_DATA_ADDR  - 4)
+#define CONFIG_SYS_FLASH_PROTECTION
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* some have 67 sectors (M29W320DB), but newer have 71 (M29W320EB) */
+
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_MAX_RAM_SIZE - CONFIG_SYS_MONITOR_LEN)
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
+#define CONFIG_SYS_GBL_DATA_SIZE       0x4000
+#define CONFIG_SYS_GBL_DATA_ADDR       (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_STACKBASE       (CONFIG_SYS_GBL_DATA_ADDR  - 4)
 
 #if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)
 #define CONFIG_ENV_IS_IN_EEPROM        1
 #else
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                0x20004000
-#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 #endif
 #define CONFIG_ENV_SIZE                0x2000
 #define        CONFIG_ENV_SECT_SIZE    0x2000  /* Total Size of Environment Sector */
 #define ENV_IS_EMBEDDED
 
 /* JFFS Partition offset set  */
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 /* 512k reserved for u-boot */
-#define CFG_JFFS2_FIRST_SECTOR 15
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  15
 
 #define CONFIG_SPI
 
 #define POLL_MODE              1
 #define FLASH_TOT_SECT         71
 #define FLASH_SIZE             0x400000
-#define CFG_FLASH_SIZE         0x400000
+#define CONFIG_SYS_FLASH_SIZE          0x400000
 
 /*
  * Board NAND Infomation
  */
 
-#define CFG_NAND_ADDR          0x20212000
-#define CFG_NAND_BASE          CFG_NAND_ADDR
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_NAND_ADDR           0x20212000
+#define CONFIG_SYS_NAND_BASE           CONFIG_SYS_NAND_ADDR
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define SECTORSIZE             512
 #define ADDR_COLUMN            1
 #define ADDR_PAGE              2
  */
 #define CONFIG_MISC_INIT_R
 
-#define CFG_BOOTM_LEN          0x4000000       /* Large Image Length, set to 64 Meg */
+#define CONFIG_SYS_BOOTM_LEN           0x4000000       /* Large Image Length, set to 64 Meg */
 
 /*
  * I2C settings
 #define I2C_DELAY              udelay(5)       /* 1/4 I2C clock duration */
 #endif
 
-#define CFG_I2C_SPEED          50000
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           50000
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 /* 0xFF, 0x7BB07BB0, 0x22547BB0 */
 /* #define AMGCTLVAL           (AMBEN_P0 | AMBEN_P1 | AMBEN_P2 | AMCKEN)
 #undef  CONFIG_IDE_LED         /* no led for ide supported */
 #undef  CONFIG_IDE_RESET       /* no reset for ide supported */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE busses */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*1)      /* max. 1 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE busses */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*1)       /* max. 1 drives per IDE bus */
 
 #undef  AMBCTL1VAL
 #define AMBCTL1VAL             0xFFC3FFC3
  * Note that these settings aren't for the most part used in include/ata.h
  * when all of the ATA registers are setup
  */
-#define CFG_ATA_BASE_ADDR      0x2031C000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_DATA_OFFSET    0x0020  /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0020  /* Offset for normal register accesses */
-#define CFG_ATA_ALT_OFFSET     0x001C  /* Offset for alternate registers */
-#define CFG_ATA_STRIDE         2       /* CF.A0 --> Blackfin.Ax */
+#define CONFIG_SYS_ATA_BASE_ADDR       0x2031C000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0020  /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0020  /* Offset for normal register accesses */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x001C  /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_STRIDE          2       /* CF.A0 --> Blackfin.Ax */
 #endif                         /* CONFIG_BFIN_TRUE_IDE */
 
 #if defined(CONFIG_BFIN_CF_IDE)        /* USE CompactFlash Storage Card in the common memory space */
-#define CFG_ATA_BASE_ADDR      0x20211800
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0000  /* Offset for normal register accesses */
-#define CFG_ATA_ALT_OFFSET     0x000E  /* Offset for alternate registers */
-#define CFG_ATA_STRIDE         1       /* CF.A0 --> Blackfin.Ax */
+#define CONFIG_SYS_ATA_BASE_ADDR       0x20211800
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x000E  /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_STRIDE          1       /* CF.A0 --> Blackfin.Ax */
 #endif                         /* CONFIG_BFIN_CF_IDE */
 
 #if defined(CONFIG_BFIN_HDD_IDE)       /* USE TRUE IDE */
-#define CFG_ATA_BASE_ADDR      0x20314000
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_DATA_OFFSET    0x0020  /* Offset for data I/O */
-#define CFG_ATA_REG_OFFSET     0x0020  /* Offset for normal register accesses */
-#define CFG_ATA_ALT_OFFSET     0x001C  /* Offset for alternate registers */
-#define CFG_ATA_STRIDE         2       /* CF.A0 --> Blackfin.A1 */
+#define CONFIG_SYS_ATA_BASE_ADDR       0x20314000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0020  /* Offset for data I/O */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0020  /* Offset for normal register accesses */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x001C  /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_STRIDE          2       /* CF.A0 --> Blackfin.A1 */
 
 #undef  CONFIG_SCLK_DIV
 #define CONFIG_SCLK_DIV                8
index 59a0f3f6c21271f6c77e3c35d33a7f5a00d99090..320a8c69a6ea7581e0345d098f43d8f819f9680e 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <asm/blackfin-config-pre.h>
 
-#define CFG_LONGHELP           1
+#define CONFIG_SYS_LONGHELP            1
 #define CONFIG_CMDLINE_EDITING 1
 #define CONFIG_BAUDRATE                57600
 /* Set default serial console for bf537 */
  * Flash settings
  */
 
-#define CFG_FLASH_CFI          /* The flash is CFI compatible */
+#define CONFIG_SYS_FLASH_CFI           /* The flash is CFI compatible */
 #define CONFIG_FLASH_CFI_DRIVER        /* Use common CFI driver */
-#define CFG_FLASH_CFI_AMD_RESET
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET
 #define        CONFIG_ENV_IS_IN_FLASH  1
-#define CFG_FLASH_BASE         0x20000000
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     135     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BASE          0x20000000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      135     /* max number of sectors on one chip */
 #define CONFIG_ENV_ADDR                0x20020000
 #define        CONFIG_ENV_SECT_SIZE    0x10000 /* Total Size of Environment Sector */
 /* JFFS Partition offset set  */
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 /* 512k reserved for u-boot */
-#define CFG_JFFS2_FIRST_SECTOR 8
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  8
 
 /*
  * SDRAM settings & memory map
 #define CONFIG_MEM_ADD_WDTH            9       /* 8, 9, 10, 11    */
 #define CONFIG_MEM_MT48LC16M16A2TG_75  1
 
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_MAX_RAM_SIZE       (CONFIG_MEM_SIZE * 1024 * 1024)
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        (CONFIG_MEM_SIZE * 1024 * 1024)
 
-#define CFG_MEMTEST_START      0x0     /* memtest works on */
-#define CFG_MEMTEST_END                ( (CONFIG_MEM_SIZE - 1) * 1024*1024)    /* 1 ... 63 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x0     /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         ( (CONFIG_MEM_SIZE - 1) * 1024*1024)    /* 1 ... 63 MB in DRAM */
 
 #define        CONFIG_LOADADDR         0x01000000      /* default load address */
-#define CFG_LOAD_ADDR          CONFIG_LOADADDR
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       (CFG_MAX_RAM_SIZE - CFG_MONITOR_LEN)
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_MAX_RAM_SIZE - CONFIG_SYS_MONITOR_LEN)
 
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
 
-#define CFG_GBL_DATA_SIZE      0x4000
-#define CFG_GBL_DATA_ADDR      (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)
-#define CONFIG_STACKBASE       (CFG_GBL_DATA_ADDR  - 4)
+#define CONFIG_SYS_GBL_DATA_SIZE       0x4000
+#define CONFIG_SYS_GBL_DATA_ADDR       (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_STACKBASE       (CONFIG_SYS_GBL_DATA_ADDR  - 4)
 #define CONFIG_STACKSIZE       (128*1024)      /* regular stack */
 
 #if ( CONFIG_CLKIN_HALF == 0 )
  * Command settings
  */
 
-#define CFG_AUTOLOAD   "no"    /* rarpb, bootp, dhcp commands will     */
+#define CONFIG_SYS_AUTOLOAD    "no"    /* rarpb, bootp, dhcp commands will     */
                                /* only perform a configuration         */
                                /* lookup from the BOOTP/DHCP server    */
                                /* but not try to load any image        */
 /*
  * Console settings
  */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_PROMPT              "bfin> "        /* Monitor Command Prompt */
+#define        CONFIG_SYS_PROMPT               "bfin> "        /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size */
 #endif
-#define        CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define        CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
 #define CONFIG_LOADS_ECHO      1
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_HZ                  1000            /* decrementer freq: 10 ms ticks */
-#define CFG_BOOTM_LEN          0x4000000       /* Large Image Length, set to 64 Meg */
+#define        CONFIG_SYS_HZ                   1000            /* decrementer freq: 10 ms ticks */
+#define CONFIG_SYS_BOOTM_LEN           0x4000000       /* Large Image Length, set to 64 Meg */
 
 /*
  * FLASH organization and environment definitions
index 49abcc6204d9a7dea6c1ef8fec536bbd89247828..dcf5b6de05c831cd6ed2658475f12ee991bdc827 100644 (file)
 #define CONFIG_SPD_EEPROM      1       /* use SPD EEPROM for setup    */
 
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#undef  CFG_EXT_SERIAL_CLOCK           /* external serial clock */
-#undef  CFG_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD       691200
+#undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* external serial clock */
+#undef  CONFIG_SYS_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /*-----------------------------------------------------------------------
  * I2C stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_NOPROBES       { 0x69 }        /* avoid iprobe hangup (why?) */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 6       /* 24C02 requires 5ms delay */
+#define CONFIG_SYS_I2C_NOPROBES        { 0x69 }        /* avoid iprobe hangup (why?) */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  6       /* 24C02 requires 5ms delay */
 
 #if defined(CONFIG_CMD_EEPROM)
-#define CFG_I2C_EEPROM_ADDR    0x50    /* I2C boot EEPROM (24C02W)     */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* I2C boot EEPROM (24C02W)     */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 #endif
 
 /*-----------------------------------------------------------------------
                                        /* resource configuration       */
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
-#define CFG_PCI_CLASSCODE       0x0600  /* PCI Class Code: bridge/host  */
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS  0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0600  /* PCI Class Code: bridge/host  */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * External peripheral base address
  *-----------------------------------------------------------------------
  */
-#define        CFG_KEY_REG_BASE_ADDR   0xF0100000
-#define        CFG_IR_REG_BASE_ADDR    0xF0200000
-#define        CFG_FPGA_REG_BASE_ADDR  0xF0300000
+#define        CONFIG_SYS_KEY_REG_BASE_ADDR    0xF0100000
+#define        CONFIG_SYS_IR_REG_BASE_ADDR     0xF0200000
+#define        CONFIG_SYS_FPGA_REG_BASE_ADDR   0xF0300000
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
  */
-#define CFG_SRAM_BASE          0xFFF00000
-#define CFG_FLASH_BASE         0xFFF80000
+#define CONFIG_SYS_SRAM_BASE           0xFFF00000
+#define CONFIG_SYS_FLASH_BASE          0xFFF80000
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_ADDR0         0x5555
-#define CFG_FLASH_ADDR1         0x2aaa
-#define CFG_FLASH_WORD_SIZE     unsigned char
+#define CONFIG_SYS_FLASH_ADDR0         0x5555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aaa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
-#define CFG_NVRAM_BASE_ADDR    0xf0000000      /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         0x1ff8          /* NVRAM size   */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0000000      /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          0x1ff8          /* NVRAM size   */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x0ff8          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
 #endif
 
 /*
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0               /* FLASH bank #1        */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM        1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  */
 
 /* Memory Bank 0 (Flash/SRAM) initialization                                    */
-#define CFG_EBC_PB0AP           0x04006000
-#define CFG_EBC_PB0CR           0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB0AP           0x04006000
+#define CONFIG_SYS_EBC_PB0CR           0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 1 (NVRAM/RTC) initialization                                     */
-#define CFG_EBC_PB1AP           0x04041000
-#define CFG_EBC_PB1CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x04041000
+#define CONFIG_SYS_EBC_PB1CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
 /* Memory Bank 2 (not used) initialization                                      */
-#define CFG_EBC_PB2AP           0x00000000
-#define CFG_EBC_PB2CR           0x00000000
+#define CONFIG_SYS_EBC_PB2AP           0x00000000
+#define CONFIG_SYS_EBC_PB2CR           0x00000000
 
 /* Memory Bank 2 (not used) initialization                                      */
-#define CFG_EBC_PB3AP           0x00000000
-#define CFG_EBC_PB3CR           0x00000000
+#define CONFIG_SYS_EBC_PB3AP           0x00000000
+#define CONFIG_SYS_EBC_PB3CR           0x00000000
 
 /* Memory Bank 4 (FPGA regs) initialization                                     */
-#define CFG_EBC_PB4AP           0x01815000
-#define CFG_EBC_PB4CR           0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB4AP           0x01815000
+#define CONFIG_SYS_EBC_PB4CR           0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
 
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs
  */
-#define CFG_GPIO0_OSRH          0x55555555
-#define CFG_GPIO0_OSRL          0x40000110
-#define CFG_GPIO0_ISR1H         0x00000000
-#define CFG_GPIO0_ISR1L         0x15555445
-#define CFG_GPIO0_TSRH          0x00000000
-#define CFG_GPIO0_TSRL          0x00000000
-#define CFG_GPIO0_TCR           0xFFFF8014
+#define CONFIG_SYS_GPIO0_OSRH          0x55555555
+#define CONFIG_SYS_GPIO0_OSRL          0x40000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xFFFF8014
 
 /*-----------------------------------------------------------------------
  * Some BUBINGA stuff...
index dca7b477c67dfb724291631f077b878281915ac3..4508d757ac5d36a2fe4edb9898dad1e2bd71d104 100644 (file)
@@ -60,7 +60,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 #ifdef CONFIG_80MHz    /* for 80 MHz, we use a 16 MHz clock * 5 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                ( (5-1)<<PLPRCR_MF_SHIFT | PLPRCR_TEXPS | PLPRCR_TMIST )
 #else                  /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 #endif /* CONFIG_80MHz */
 
 /*-----------------------------------------------------------------------
  */
 #define SCCR_MASK      SCCR_EBDF11
 #ifdef CONFIG_80MHz    /* for 80 MHz, we use a 16 MHz clock * 5 */
-#define CFG_SCCR       (/* SCCR_TBS  | */ \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS  | */ \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 #else                  /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_TBS     | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * PCMCIA Power Switch
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_ACS_DIV2 | OR_BI | \
                                 OR_SCY_5_CLK | OR_EHTR)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz       */
 
 /* refresh rate 15.6 us (= 64 ms / 4K = 62.4 / quad bursts) for <= 128 MBit    */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index 59e4cb397c59099ec9072b349717a45cbe9748fd..ff7b6e5ca1af7d649e8eb23a19e23f833f331d2a 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MPC5200         1       /* More exactly a MPC5200 */
 #define CONFIG_CANMB           1       /* ... on canmb board - we need this for FEC.C */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -47,7 +47,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 
 /*
@@ -78,8 +78,8 @@
  * MUST be low boot - HIGHBOOT is not supported anymore
  */
 #if (TEXT_BASE == 0xFE000000)          /* Boot low with 32 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT16       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT16        1
 #else
 #   error "TEXT_BASE must be 0xFE000000"
 #endif
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 
 /*
  * Flash configuration, expect one 16 Megabyte Bank at most
  */
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_SIZE         0x02000000
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_SIZE          0x02000000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 /*
  * Environment settings
  *
  * Warning!!! with the current BestComm Task, MBAR MUST BE set to 0xf0000000
  */
-#define CFG_MBAR                       0xf0000000      /* DO NOT CHANGE this */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                        0xf0000000      /* DO NOT CHANGE this */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  * PCI disabled
  * Ethernet 100 with MD
  */
-#define CFG_GPS_PORT_CONFIG    0x00058444
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x00058444
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE           1024    /* Console I/O Buffer Size  */
+#  define CONFIG_SYS_CBSIZE            1024    /* Console I/O Buffer Size  */
 #else
-#  define CFG_CBSIZE           256     /* Console I/O Buffer Size  */
+#  define CONFIG_SYS_CBSIZE            256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x01f00000      /* 1 ... 31 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x01f00000      /* 1 ... 31 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_RTC_MPC5200     1       /* use internal MPC5200 RTC */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047D01
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047D01
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0x7f000000
+#define CONFIG_SYS_RESET_ADDRESS       0x7f000000
 
 #endif /* __CONFIG_H */
index cd3e6a311f8ad1cbf8564c8945303b2843ceb4b4..771ee69ab7fc25fba41c3e993c7d581c6010e8a4 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped PCI memory    */
-#define CFG_PCI_BASE           0xd0000000      /* internal PCI regs    */
-#define CFG_PCI_TARGBASE       CFG_PCI_MEMBASE
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped PCI memory    */
+#define CONFIG_SYS_PCI_BASE            0xd0000000      /* internal PCI regs    */
+#define CONFIG_SYS_PCI_TARGBASE        CONFIG_SYS_PCI_MEMBASE
 
-#define CFG_PCIE_MEMBASE       0xb0000000      /* mapped PCIe memory   */
-#define CFG_PCIE_MEMSIZE       0x08000000      /* smallest incr for PCIe port */
-#define CFG_PCIE_BASE          0xc4000000      /* PCIe UTL regs */
+#define CONFIG_SYS_PCIE_MEMBASE        0xb0000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE_MEMSIZE        0x08000000      /* smallest incr for PCIe port */
+#define CONFIG_SYS_PCIE_BASE           0xc4000000      /* PCIe UTL regs */
 
-#define CFG_PCIE0_CFGBASE      0xc0000000
-#define CFG_PCIE1_CFGBASE      0xc1000000
-#define CFG_PCIE0_XCFGBASE     0xc3000000
-#define CFG_PCIE1_XCFGBASE     0xc3001000
+#define CONFIG_SYS_PCIE0_CFGBASE       0xc0000000
+#define CONFIG_SYS_PCIE1_CFGBASE       0xc1000000
+#define CONFIG_SYS_PCIE0_XCFGBASE      0xc3000000
+#define CONFIG_SYS_PCIE1_XCFGBASE      0xc3001000
 
-#define        CFG_PCIE0_UTLBASE       0xc08010000ULL  /* 36bit physical addr  */
+#define        CONFIG_SYS_PCIE0_UTLBASE        0xc08010000ULL  /* 36bit physical addr  */
 
 /* base address of inbound PCIe window */
-#define CFG_PCIE_INBOUND_BASE  0x000000000ULL  /* 36bit physical addr  */
+#define CONFIG_SYS_PCIE_INBOUND_BASE   0x000000000ULL  /* 36bit physical addr  */
 
 /* EBC stuff */
-#define CFG_NAND_ADDR          0xE0000000
-#define CFG_BCSR_BASE          0xE1000000
-#define CFG_BOOT_BASE_ADDR     0xFF000000      /* EBC Boot Space: 0xFF000000   */
-#define CFG_FLASH_BASE         0xFC000000      /* later mapped to this addr    */
-#define CFG_FLASH_BASE_PHYS_H  0x4
-#define CFG_FLASH_BASE_PHYS_L  0xCC000000
-#define CFG_FLASH_BASE_PHYS    (((u64)CFG_FLASH_BASE_PHYS_H << 32) | \
-                                (u64)CFG_FLASH_BASE_PHYS_L)
-#define CFG_FLASH_SIZE         (64 << 20)
+#define CONFIG_SYS_NAND_ADDR           0xE0000000
+#define CONFIG_SYS_BCSR_BASE           0xE1000000
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xFF000000      /* EBC Boot Space: 0xFF000000   */
+#define CONFIG_SYS_FLASH_BASE          0xFC000000      /* later mapped to this addr    */
+#define CONFIG_SYS_FLASH_BASE_PHYS_H   0x4
+#define CONFIG_SYS_FLASH_BASE_PHYS_L   0xCC000000
+#define CONFIG_SYS_FLASH_BASE_PHYS     (((u64)CONFIG_SYS_FLASH_BASE_PHYS_H << 32) | \
+                                (u64)CONFIG_SYS_FLASH_BASE_PHYS_L)
+#define CONFIG_SYS_FLASH_SIZE          (64 << 20)
 
-#define CFG_OCM_BASE           0xE3000000      /* OCM: 16k             */
-#define CFG_SRAM_BASE          0xE8000000      /* SRAM: 256k           */
-#define CFG_LOCAL_CONF_REGS    0xEF000000
+#define CONFIG_SYS_OCM_BASE            0xE3000000      /* OCM: 16k             */
+#define CONFIG_SYS_SRAM_BASE           0xE8000000      /* SRAM: 256k           */
+#define CONFIG_SYS_LOCAL_CONF_REGS     0xEF000000
 
-#define CFG_PERIPHERAL_BASE    0xEF600000      /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xEF600000      /* internal peripherals */
 
-#define CFG_AHB_BASE           0xE2000000      /* internal AHB peripherals     */
+#define CONFIG_SYS_AHB_BASE            0xE2000000      /* internal AHB peripherals     */
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in OCM)
  *----------------------------------------------------------------------*/
-#define CFG_INIT_RAM_ADDR      CFG_OCM_BASE    /* OCM                  */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_BASE     /* OCM                  */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Serial Port
  */
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
 #define        CONFIG_ENV_IS_IN_FLASH  1       /* use FLASH for environment vars */
-#define CFG_NAND_CS            3       /* NAND chip connected to CSx */
+#define CONFIG_SYS_NAND_CS             3       /* NAND chip connected to CSx */
 #else
 #define        CONFIG_ENV_IS_IN_NAND   1       /* use NAND for environment vars  */
-#define CFG_NAND_CS            0       /* NAND chip connected to CSx */
+#define CONFIG_SYS_NAND_CS             0       /* NAND chip connected to CSx */
 #define CONFIG_ENV_IS_EMBEDDED 1       /* use embedded environment */
 #endif
 
  * This is the first official implementation of booting from 2k page sized
  * NAND devices (e.g. Micron 29F2G08AA 256Mbit * 8)
  */
-#define CFG_NAND_BOOT_SPL_SRC  0xfffff000      /* SPL location               */
-#define CFG_NAND_BOOT_SPL_SIZE (4 << 10)       /* SPL size                   */
-#define CFG_NAND_BOOT_SPL_DST  (CFG_OCM_BASE + (12 << 10)) /* Copy SPL here  */
-#define CFG_NAND_U_BOOT_DST    0x01000000      /* Load NUB to this addr      */
-#define CFG_NAND_U_BOOT_START  CFG_NAND_U_BOOT_DST     /* Start NUB from     */
+#define CONFIG_SYS_NAND_BOOT_SPL_SRC   0xfffff000      /* SPL location               */
+#define CONFIG_SYS_NAND_BOOT_SPL_SIZE  (4 << 10)       /* SPL size                   */
+#define CONFIG_SYS_NAND_BOOT_SPL_DST   (CONFIG_SYS_OCM_BASE + (12 << 10)) /* Copy SPL here  */
+#define CONFIG_SYS_NAND_U_BOOT_DST     0x01000000      /* Load NUB to this addr      */
+#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST      /* Start NUB from     */
                                                        /*   this addr        */
-#define CFG_NAND_BOOT_SPL_DELTA        (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
+#define CONFIG_SYS_NAND_BOOT_SPL_DELTA (CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST)
 
 /*
  * Define the partitioning of the NAND chip (only RAM U-Boot is needed here)
  */
-#define CFG_NAND_U_BOOT_OFFS   (128 << 10)     /* Offset to RAM U-Boot image */
-#define CFG_NAND_U_BOOT_SIZE   (1 << 20)       /* Size of RAM U-Boot image   */
+#define CONFIG_SYS_NAND_U_BOOT_OFFS    (128 << 10)     /* Offset to RAM U-Boot image */
+#define CONFIG_SYS_NAND_U_BOOT_SIZE    (1 << 20)       /* Size of RAM U-Boot image   */
 
 /*
  * Now the NAND chip has to be defined (no autodetection used!)
  */
-#define CFG_NAND_PAGE_SIZE     (2 << 10)       /* NAND chip page size        */
-#define CFG_NAND_BLOCK_SIZE    (128 << 10)     /* NAND chip block size       */
-#define CFG_NAND_PAGE_COUNT    (CFG_NAND_BLOCK_SIZE / CFG_NAND_PAGE_SIZE)
+#define CONFIG_SYS_NAND_PAGE_SIZE      (2 << 10)       /* NAND chip page size        */
+#define CONFIG_SYS_NAND_BLOCK_SIZE     (128 << 10)     /* NAND chip block size       */
+#define CONFIG_SYS_NAND_PAGE_COUNT     (CONFIG_SYS_NAND_BLOCK_SIZE / CONFIG_SYS_NAND_PAGE_SIZE)
                                                /* NAND chip page count       */
-#define CFG_NAND_BAD_BLOCK_POS 0               /* Location of bad block marker*/
-#define CFG_NAND_5_ADDR_CYCLE                  /* Fifth addr used (<=128MB)  */
-
-#define CFG_NAND_ECCSIZE       256
-#define CFG_NAND_ECCBYTES      3
-#define CFG_NAND_ECCSTEPS      (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
-#define CFG_NAND_OOBSIZE       64
-#define CFG_NAND_ECCTOTAL      (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
-#define CFG_NAND_ECCPOS                {40, 41, 42, 43, 44, 45, 46, 47, \
+#define CONFIG_SYS_NAND_BAD_BLOCK_POS  0               /* Location of bad block marker*/
+#define CONFIG_SYS_NAND_5_ADDR_CYCLE                   /* Fifth addr used (<=128MB)  */
+
+#define CONFIG_SYS_NAND_ECCSIZE        256
+#define CONFIG_SYS_NAND_ECCBYTES       3
+#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
+#define CONFIG_SYS_NAND_OOBSIZE        64
+#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
+#define CONFIG_SYS_NAND_ECCPOS         {40, 41, 42, 43, 44, 45, 46, 47, \
                                 48, 49, 50, 51, 52, 53, 54, 55, \
                                 56, 57, 58, 59, 60, 61, 62, 63}
 
  * For NAND booting the environment is embedded in the U-Boot image. Please take
  * look at the file board/amcc/canyonlands/u-boot-nand.lds for details.
  */
-#define CONFIG_ENV_SIZE                CFG_NAND_BLOCK_SIZE
-#define CONFIG_ENV_OFFSET              (CFG_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
+#define CONFIG_ENV_SIZE                CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #endif
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
-#define CFG_FLASH_CFI_AMD_RESET        1       /* Use AMD (Spansion) reset cmd */
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1       /* Use AMD (Spansion) reset cmd */
 
-#define CFG_FLASH_BANKS_LIST    {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000         /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * NAND-FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE          (CFG_NAND_ADDR + CFG_NAND_CS)
-#define CFG_NAND_SELECT_DEVICE  1      /* nand driver supports mutipl. chips   */
+#define CONFIG_SYS_NAND_BASE           (CONFIG_SYS_NAND_ADDR + CONFIG_SYS_NAND_CS)
+#define CONFIG_SYS_NAND_SELECT_DEVICE  1       /* nand driver supports mutipl. chips   */
 
 /*------------------------------------------------------------------------------
  * DDR SDRAM
 #define CONFIG_DDR_ECC         1       /* with ECC support             */
 #define CONFIG_DDR_RQDC_FIXED  0x80000038 /* fixed value for RQDC      */
 #endif
-#define CFG_MBYTES_SDRAM       512     /* 512MB                        */
+#define CONFIG_SYS_MBYTES_SDRAM        512     /* 512MB                        */
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed                    */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed                    */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR            (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR             (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /* I2C SYSMON (LM75, AD7414 is almost compatible)                      */
 #define CONFIG_DTT_LM75                1               /* ON Semi's LM75       */
 #define CONFIG_DTT_AD7414      1               /* use AD7414           */
 #define CONFIG_DTT_SENSORS     {0}             /* Sensor addresses     */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 /* RTC configuration */
 #define CONFIG_RTC_M41T62      1
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 /*-----------------------------------------------------------------------
  * Ethernet
 #ifdef CONFIG_460EX
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_USB_STORAGE
-#undef CFG_OHCI_BE_CONTROLLER          /* 460EX has little endian descriptors  */
-#define CFG_OHCI_SWAP_REG_ACCESS       /* 460EX has little endian register     */
-#define CFG_OHCI_USE_NPS               /* force NoPowerSwitching mode          */
-#define CFG_USB_OHCI_REGS_BASE (CFG_AHB_BASE | 0xd0000)
-#define CFG_USB_OHCI_SLOT_NAME "ppc440"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS 15
+#undef CONFIG_SYS_OHCI_BE_CONTROLLER           /* 460EX has little endian descriptors  */
+#define CONFIG_SYS_OHCI_SWAP_REG_ACCESS        /* 460EX has little endian register     */
+#define CONFIG_SYS_OHCI_USE_NPS                /* force NoPowerSwitching mode          */
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  (CONFIG_SYS_AHB_BASE | 0xd0000)
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "ppc440"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 15
 #endif
 
 /*
 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT            /* let board init pci target    */
-#undef CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT             /* let board init pci target    */
+#undef CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x1014 /* IBM                          */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever                     */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014  /* IBM                          */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever                     */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
 
 #if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
 /* Memory Bank 3 (NOR-FLASH) initialization                                    */
-#define CFG_EBC_PB3AP          0x10055e00
-#define CFG_EBC_PB3CR          (CFG_BOOT_BASE_ADDR | 0x9a000)
+#define CONFIG_SYS_EBC_PB3AP           0x10055e00
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_BOOT_BASE_ADDR | 0x9a000)
 
 /* Memory Bank 0 (NAND-FLASH) initialization                                           */
-#define CFG_EBC_PB0AP          0x018003c0
-#define CFG_EBC_PB0CR          (CFG_NAND_ADDR | 0x1E000) /* BAS=NAND,BS=1MB,BU=R/W,BW=32bit*/
+#define CONFIG_SYS_EBC_PB0AP           0x018003c0
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_NAND_ADDR | 0x1E000) /* BAS=NAND,BS=1MB,BU=R/W,BW=32bit*/
 #else
 /* Memory Bank 0 (NOR-FLASH) initialization                                    */
-#define CFG_EBC_PB0AP          0x10055e00
-#define CFG_EBC_PB0CR          (CFG_BOOT_BASE_ADDR | 0x9a000)
+#define CONFIG_SYS_EBC_PB0AP           0x10055e00
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_BOOT_BASE_ADDR | 0x9a000)
 
 /* Memory Bank 3 (NAND-FLASH) initialization                                           */
-#define CFG_EBC_PB3AP          0x018003c0
-#define CFG_EBC_PB3CR          (CFG_NAND_ADDR | 0x1E000) /* BAS=NAND,BS=1MB,BU=R/W,BW=32bit*/
+#define CONFIG_SYS_EBC_PB3AP           0x018003c0
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_NAND_ADDR | 0x1E000) /* BAS=NAND,BS=1MB,BU=R/W,BW=32bit*/
 #endif
 
 /* Memory Bank 2 (CPLD) initialization                                         */
-#define CFG_EBC_PB2AP          0x00804240
-#define CFG_EBC_PB2CR          (CFG_BCSR_BASE | 0x18000) /* BAS=CPLD,BS=1M,BU=RW,BW=32bit */
+#define CONFIG_SYS_EBC_PB2AP           0x00804240
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_BCSR_BASE | 0x18000) /* BAS=CPLD,BS=1M,BU=RW,BW=32bit */
 
-#define CFG_EBC_CFG            0xB8400000              /*  EBC0_CFG */
+#define CONFIG_SYS_EBC_CFG             0xB8400000              /*  EBC0_CFG */
 
 /*
  * PPC4xx GPIO Configuration
  */
 #ifdef CONFIG_460EX
 /* 460EX: Use USB configuration */
-#define CFG_4xx_GPIO_TABLE { /*          Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_BI , GPIO_ALT1, GPIO_OUT_0}, /* GPIO0        GMC1TxD(0)      USB2HostD(0)    */      \
 }
 #else
 /* 460GT: Use EMAC2+3 configuration */
-#define CFG_4xx_GPIO_TABLE { /*          Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_0}, /* GPIO0        GMC1TxD(0)      USB2HostD(0)    */      \
index 96184257b42f8925456bd55e932dfef17e943d21..71e5b58ddba7ea0f71e5fa45d1c4449fff096cd8 100644 (file)
@@ -44,8 +44,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                                   /* undef to save memory         */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT                     "uboot$ "       /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                                    /* undef to save memory         */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT                      "uboot$ "       /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT                     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT                      "=> "           /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE                     256                     /* Console I/O Buffer Size      */
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_CBSIZE                      256                     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
                                                                                /* Print Buffer Size */
-#define CFG_MAXARGS                    16                      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_MAXARGS                     16                      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ
+#undef CONFIG_SYS_CLKS_IN_HZ
 
-#define CFG_LOAD_ADDR          0xa2000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa2000000      /* default load address */
 
-#define CFG_HZ                         3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x141           /* set core clock to 400/200/100 MHz */
+#define CONFIG_SYS_HZ                          3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141           /* set core clock to 400/200/100 MHz */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 #define PHYS_FLASH_BANK_SIZE           0x02000000      /* 32 MB Banks */
 #define PHYS_FLASH_SECT_SIZE           0x00040000      /* 256 KB sectors (x2) */
 
-#define CFG_DRAM_BASE                  0xa0000000
-#define CFG_DRAM_SIZE                  0x04000000
+#define CONFIG_SYS_DRAM_BASE                   0xa0000000
+#define CONFIG_SYS_DRAM_SIZE                   0x04000000
 
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
 
 /*
  * GPIO settings
  */
 
 
-#define CFG_GPSR0_VAL          0x00408030
-#define CFG_GPSR1_VAL          0x00BFA882
-#define CFG_GPSR2_VAL          0x0001C000
-#define CFG_GPCR0_VAL          0xC0031100
-#define CFG_GPCR1_VAL          0xFC400300
-#define CFG_GPCR2_VAL          0x00003FFF
-#define CFG_GPDR0_VAL          0xC0439330
-#define CFG_GPDR1_VAL          0xFCFFAB82
-#define CFG_GPDR2_VAL          0x0001FFFF
-#define CFG_GAFR0_L_VAL                0x80000000
-#define CFG_GAFR0_U_VAL                0xA5000010
-#define CFG_GAFR1_L_VAL                0x60008018
-#define CFG_GAFR1_U_VAL                0xAAA5AAAA
-#define CFG_GAFR2_L_VAL                0xAAA0000A
-#define CFG_GAFR2_U_VAL                0x00000002
-
-#define CFG_PSSR_VAL           0x20
+#define CONFIG_SYS_GPSR0_VAL           0x00408030
+#define CONFIG_SYS_GPSR1_VAL           0x00BFA882
+#define CONFIG_SYS_GPSR2_VAL           0x0001C000
+#define CONFIG_SYS_GPCR0_VAL           0xC0031100
+#define CONFIG_SYS_GPCR1_VAL           0xFC400300
+#define CONFIG_SYS_GPCR2_VAL           0x00003FFF
+#define CONFIG_SYS_GPDR0_VAL           0xC0439330
+#define CONFIG_SYS_GPDR1_VAL           0xFCFFAB82
+#define CONFIG_SYS_GPDR2_VAL           0x0001FFFF
+#define CONFIG_SYS_GAFR0_L_VAL         0x80000000
+#define CONFIG_SYS_GAFR0_U_VAL         0xA5000010
+#define CONFIG_SYS_GAFR1_L_VAL         0x60008018
+#define CONFIG_SYS_GAFR1_U_VAL         0xAAA5AAAA
+#define CONFIG_SYS_GAFR2_L_VAL         0xAAA0000A
+#define CONFIG_SYS_GAFR2_U_VAL         0x00000002
+
+#define CONFIG_SYS_PSSR_VAL            0x20
 
 /*
  * Memory settings
  */
-#define CFG_MSC0_VAL           0x12447FF0
-#define CFG_MSC1_VAL           0x12BC5554
-#define CFG_MSC2_VAL           0x7FF97FF1
-#define CFG_MDCNFG_VAL         0x00001AC9
-#define CFG_MDREFR_VAL         0x03CDC017
-#define CFG_MDMRS_VAL          0x00000000
+#define CONFIG_SYS_MSC0_VAL            0x12447FF0
+#define CONFIG_SYS_MSC1_VAL            0x12BC5554
+#define CONFIG_SYS_MSC2_VAL            0x7FF97FF1
+#define CONFIG_SYS_MDCNFG_VAL          0x00001AC9
+#define CONFIG_SYS_MDREFR_VAL          0x03CDC017
+#define CONFIG_SYS_MDMRS_VAL           0x00000000
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000000
-#define CFG_MCMEM0_VAL         0x00010504
-#define CFG_MCMEM1_VAL         0x00010504
-#define CFG_MCATT0_VAL         0x00010504
-#define CFG_MCATT1_VAL         0x00010504
-#define CFG_MCIO0_VAL          0x00004715
-#define CFG_MCIO1_VAL          0x00004715
+#define CONFIG_SYS_MECR_VAL            0x00000000
+#define CONFIG_SYS_MCMEM0_VAL          0x00010504
+#define CONFIG_SYS_MCMEM1_VAL          0x00010504
+#define CONFIG_SYS_MCATT0_VAL          0x00010504
+#define CONFIG_SYS_MCATT1_VAL          0x00010504
+#define CONFIG_SYS_MCIO0_VAL           0x00004715
+#define CONFIG_SYS_MCIO1_VAL           0x00004715
 
 #define _LED                   0x08000010      /*check this */
 #define LED_BLANK              0x08000040
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (25*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (25*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
-#define CFG_MONITOR_LEN                0x40000         /* 256 KiB */
+#define CONFIG_SYS_MONITOR_LEN         0x40000         /* 256 KiB */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_ENV_SIZE                0x40000 /* Total Size of Environment Sector     */
 
 
index c9c057c638861efada2746806eafbc1d9406491c..cfe6de79f424885eb06a724d5f25f52998697fc2 100644 (file)
@@ -42,8 +42,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
@@ -56,7 +56,7 @@
 #define        CONFIG_SERIAL1
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "boot > "       /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "boot > "       /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00800000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01000000      /* 16 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x00800000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01000000      /* 16 MB in DRAM        */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x00008000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00008000      /* default load address */
 
-#define CFG_HZ                 (1000)          /* 1ms resolution ticks */
+#define CONFIG_SYS_HZ                  (1000)          /* 1ms resolution ticks */
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 
 #define PHYS_FLASH_1           0x02000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SECT_SIZE    0x00020000 /* 128 KB sectors (x1) */
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of flash banks */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of flash banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_ENV_SIZE                0x20000     /* Total Size of Environment */
 
index 940e3e11bc477c4a09efbbe52f859aaf73226c33..5454c2e5bdb608e56b9c5648f8736795495ffc3b 100644 (file)
@@ -42,8 +42,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
@@ -56,7 +56,7 @@
 #define        CONFIG_SERIAL1
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "boot > "       /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "boot > "       /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00800000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01000000      /* 16 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x00800000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01000000      /* 16 MB in DRAM        */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x00008000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00008000      /* default load address */
 
-#define CFG_HZ                 (1000)          /* 1ms resolution ticks */
+#define CONFIG_SYS_HZ                  (1000)          /* 1ms resolution ticks */
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 
 #define PHYS_FLASH_1           0x02000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SECT_SIZE    0x00020000 /* 128 KB sectors (x1) */
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of flash banks */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of flash banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_ENV_SIZE                0x20000     /* Total Size of Environment */
 
index 5257db328ae283fd09bcfb79ba44daf4e8032ebc..620ffea08d76f28fa8d5b7fb9d9163c8db922479 100644 (file)
@@ -58,7 +58,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                57600   /* ... at 57600 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 #define CONFIG_SILENT_CONSOLE  1       /* needed to silence i2c_init() */
 
 /*
 #define CONFIG_MPC5xxx_FEC     1
 #define CONFIG_PHY_ADDR                0x00
 #define CONFIG_ENV_OVERWRITE   1       /* allow overwriting of ethaddr */
-/* use misc_init_r() to read ethaddr from I2C EEPROM (see CFG_I2C_EEPROM) */
+/* use misc_init_r() to read ethaddr from I2C EEPROM (see CONFIG_SYS_I2C_EEPROM) */
 #define CONFIG_MISC_INIT_R     1
 #define CONFIG_MAC_OFFSET      0x35    /* MAC address offset in I2C EEPROM */
 
 /*
  * POST support
  */
-#define CONFIG_POST            (CFG_POST_MEMORY | CFG_POST_CPU | CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY | CONFIG_SYS_POST_CPU | CONFIG_SYS_POST_I2C)
 #define MPC5XXX_SRAM_POST_SIZE (MPC5XXX_SRAM_SIZE - 4)
 /* List of I2C addresses to be verified by POST */
-#define I2C_ADDR_LIST          { CFG_I2C_SLAVE, CFG_I2C_IO, CFG_I2C_EEPROM }
+#define I2C_ADDR_LIST          { CONFIG_SYS_I2C_SLAVE, CONFIG_SYS_I2C_IO, CONFIG_SYS_I2C_EEPROM }
 
 /* display image timestamps */
 #define CONFIG_TIMESTAMP       1
 /*
  * Clock configuration
  */
-#define CFG_MPC5XXX_CLKIN      33000000        /* SYS_XTAL_IN = 33MHz */
-#define CFG_IPBCLK_EQUALS_XLBCLK       1       /* IPB = 133MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000        /* SYS_XTAL_IN = 33MHz */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK        1       /* IPB = 133MHz */
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
-#define CFG_LOWBOOT            1
+#define CONFIG_SYS_LOWBOOT             1
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 #define CONFIG_BOARD_TYPES     1       /* we use board_type */
 
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (384 << 10)     /* 384 kB for Monitor */
-#define CFG_MALLOC_LEN         (256 << 10)     /* 256 kB for malloc() */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* initial mem map for Linux */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (384 << 10)     /* 384 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* 256 kB for malloc() */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* initial mem map for Linux */
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_BASE         0xfc000000
+#define CONFIG_SYS_FLASH_BASE          0xfc000000
 /* we need these despite using CFI */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks */
-#define CFG_MAX_FLASH_SECT     256     /* max num of sectors on one chip */
-#define CFG_FLASH_SIZE         0x02000000 /* 32 MiB */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sectors on one chip */
+#define CONFIG_SYS_FLASH_SIZE          0x02000000 /* 32 MiB */
 
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT            1
-#undef CFG_LOWBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT             1
+#undef CONFIG_SYS_LOWBOOT
 #endif
 
 
  * Chip selects configuration
  */
 /* Boot Chipselect */
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00087D31      /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00087D31      /* for pci_clk = 33 MHz */
 /* use board_early_init_r to enable flash write in CS_BOOT */
 #define CONFIG_BOARD_EARLY_INIT_R
 
 /* Flash memory addressing */
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 /* No burst, dead cycle = 1 for CS0 (Flash) */
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x00000001
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x00000001
 
 /*
  * SDRAM configuration
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #2 */
-#define CFG_I2C_SPEED          40000   /* 40 kHz */
-#define CFG_I2C_SLAVE          0x0
-#define CFG_I2C_IO             0x38    /* PCA9554AD I2C I/O port address */
-#define CFG_I2C_EEPROM         0x53    /* I2C EEPROM device address */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #2 */
+#define CONFIG_SYS_I2C_SPEED           40000   /* 40 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x0
+#define CONFIG_SYS_I2C_IO              0x38    /* PCA9554AD I2C I/O port address */
+#define CONFIG_SYS_I2C_EEPROM          0x53    /* I2C EEPROM device address */
 
 /*
  * RTC configuration
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE                0x10000
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
 /* Configuration of redundant environment */
 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
  * PSC2: UART
  * PSC1: UART
  */
-#define CFG_GPS_PORT_CONFIG    0x10559C44
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x10559C44
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1       /* undef to save memory */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_LONGHELP            1       /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_ALT_MEMTEST                1
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x03f00000      /* 1 .. 63 MiB in SDRAM */
+#define CONFIG_SYS_ALT_MEMTEST         1
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x03f00000      /* 1 .. 63 MiB in SDRAM */
 
 #define CONFIG_LOOPW           1
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot */
 
-#define CFG_XLB_PIPELINING     1       /* enable transaction pipeling */
+#define CONFIG_SYS_XLB_PIPELINING      1       /* enable transaction pipeling */
 
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #ifdef CONFIG_CMD_KGDB
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*
index 9b744384ac781e9c3994f3a59ff3ad5316abb84b..527921e8fce2190d5ecd530ce0ea8559389f4259 100644 (file)
@@ -42,7 +42,7 @@
 #define CONFIG_INITRD_TAG      1
 
 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
-#define CFG_USE_MAIN_OSCILLATOR                1
+#define CONFIG_SYS_USE_MAIN_OSCILLATOR         1
 /* flash */
 #define MC_PUIA_VAL    0x00000000
 #define MC_PUP_VAL     0x00000000
@@ -76,8 +76,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_BAUDRATE                9600
 
 #define CONFIG_HARD_I2C
 
 #ifdef CONFIG_HARD_I2C
-#define CFG_I2C_SPEED          0       /* not used */
-#define CFG_I2C_SLAVE          0       /* not used */
+#define CONFIG_SYS_I2C_SPEED           0       /* not used */
+#define CONFIG_SYS_I2C_SLAVE           0       /* not used */
 #define CONFIG_RTC_RS5C372A            /* RICOH I2C RTC */
-#define CFG_I2C_RTC_ADDR       0x32
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW
+#define CONFIG_SYS_I2C_RTC_ADDR        0x32
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
 #else
 #define CONFIG_TIMESTAMP
 #endif
 /* still about 20 kB free with this defined */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 #define CONFIG_BOOTDELAY      1
 
 #endif
 
 
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 #define AT91_SMART_MEDIA_ALE   (1 << 22)       /* our ALE is AD22 */
 #define AT91_SMART_MEDIA_CLE   (1 << 21)       /* our CLE is AD21 */
 #define PHYS_SDRAM             0x20000000
 #define PHYS_SDRAM_SIZE                0x1000000       /* 16 megs */
 
-#define CFG_MEMTEST_START      PHYS_SDRAM
-#define CFG_MEMTEST_END                CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
+#define CONFIG_SYS_MEMTEST_START       PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
 
 #define CONFIG_DRIVER_ETHER
 #define CONFIG_NET_RETRY_COUNT         20
 #define CONFIG_AT91C_USE_RMII
 
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                2
-#define CFG_MAX_DATAFLASH_PAGES                16384
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* Logical adress for CS0 */
-#define CFG_DATAFLASH_LOGIC_ADDR_CS3   0xD0000000      /* Logical adress for CS3 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         2
+#define CONFIG_SYS_MAX_DATAFLASH_PAGES         16384
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* Logical adress for CS0 */
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3    0xD0000000      /* Logical adress for CS3 */
 
 #define PHYS_FLASH_1                   0x10000000
 #define PHYS_FLASH_SIZE                        0x800000  /* 8 megs main flash */
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             256
-#define CFG_FLASH_ERASE_TOUT           (11 * CFG_HZ)   /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT           ( 2 * CFG_HZ)   /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              256
+#define CONFIG_SYS_FLASH_ERASE_TOUT            (11 * CONFIG_SYS_HZ)    /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT            ( 2 * CONFIG_SYS_HZ)    /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_OFFSET                      0x20000         /* after u-boot.bin */
 #define CONFIG_ENV_SECT_SIZE           (64 << 10)      /* sectors are 64 kB */
 #define CONFIG_ENV_SIZE                        (16 << 10)      /* Use only 16 kB */
 
-#define CFG_LOAD_ADDR          0x21000000  /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x21000000  /* default load address */
 
-#define CFG_BAUDRATE_TABLE     { 115200, 57600, 38400, 19200, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 57600, 38400, 19200, 9600 }
 
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
-#define CFG_MAXARGS            32              /* max number of command args */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_MAXARGS             32              /* max number of command args */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
 
-#define CFG_HZ 1000
-#define CFG_HZ_CLOCK (AT91C_MASTER_CLOCK/2)    /* AT91C_TC0_CMR is implicitly set to */
+#define CONFIG_SYS_HZ 1000
+#define CONFIG_SYS_HZ_CLOCK (AT91C_MASTER_CLOCK/2)     /* AT91C_TC0_CMR is implicitly set to */
                                                /* AT91C_TC_TIMER_DIV1_CLOCK */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
index 19c28364bcea1c5bc46317e35d7037ac92f37341..fa70a09f6aecd1831ce50fd4834cbf11e06e673d 100644 (file)
  * Miscellaneous configurable options
  */
 
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16             /* max number of command args    */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16             /* max number of command args    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x000fa000      /* 1 MB in SRAM                 */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x000fa000      /* 1 MB in SRAM                 */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address         */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address         */
 
-#define        CFG_HZ                  1000            /* Decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000            /* Decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 1250000 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 1250000 }
 
 
 /*
 /*
  * Internal Memory Mapped (This is not the IMMR content)
  */
-#define CFG_IMMR               0x01000000              /* Physical start adress of internal memory map */
+#define CONFIG_SYS_IMMR                0x01000000              /* Physical start adress of internal memory map */
 
 /*
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_RAM_ADDR      (CFG_IMMR + 0x003f9800) /* Physical start adress of internal MPC555 writable RAM */
-#define        CFG_INIT_RAM_END        (CFG_IMMR + 0x003fffff) /* Physical end adress of internal MPC555 used RAM area */
-#define        CFG_GBL_DATA_SIZE       64                      /* Size in bytes reserved for initial global data */
-#define CFG_GBL_DATA_OFFSET    ((CFG_INIT_RAM_END - CFG_INIT_RAM_ADDR) - CFG_GBL_DATA_SIZE) /* Offset from the beginning of ram */
-#define        CFG_INIT_SP_ADDR        0x013fa000              /* Physical start adress of inital stack */
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_IMMR + 0x003f9800)  /* Physical start adress of internal MPC555 writable RAM */
+#define        CONFIG_SYS_INIT_RAM_END (CONFIG_SYS_IMMR + 0x003fffff)  /* Physical end adress of internal MPC555 used RAM area */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64                      /* Size in bytes reserved for initial global data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     ((CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_INIT_RAM_ADDR) - CONFIG_SYS_GBL_DATA_SIZE) /* Offset from the beginning of ram */
+#define        CONFIG_SYS_INIT_SP_ADDR 0x013fa000              /* Physical start adress of inital stack */
 
 /*
  * Start addresses for the final memory configuration
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000      /* Monitor won't change memory map                      */
-#define CFG_FLASH_BASE         0x02000000      /* External flash */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000      /* Monitor won't change memory map                      */
+#define CONFIG_SYS_FLASH_BASE          0x02000000      /* External flash */
 #define PLD_BASE               0x03000000      /* PLD  */
 #define ANYBUS_BASE            0x03010000      /* Anybus Module */
 
-#define CFG_RESET_ADRESS       0x01000000      /* Adress which causes reset */
-#define        CFG_MONITOR_BASE        CFG_FLASH_BASE  /* TEXT_BASE is defined in the board config.mk file.    */
+#define CONFIG_SYS_RESET_ADRESS        0x01000000      /* Adress which causes reset */
+#define        CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE   /* TEXT_BASE is defined in the board config.mk file.    */
                                                /* This adress is given to the linker with -Ttext to    */
                                                /* locate the text section at this adress.              */
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor                           */
-#define        CFG_MALLOC_LEN          (64 << 10)      /* Reserve 128 kB for malloc()                          */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor                           */
+#define        CONFIG_SYS_MALLOC_LEN           (64 << 10)      /* Reserve 128 kB for malloc()                          */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux         */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux         */
 
 
 /*-----------------------------------------------------------------------
  *
  */
 
-#define CFG_MAX_FLASH_BANKS    1               /* Max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64              /* Max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT   180000          /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   600             /* Timeout for Flash Write (in ms)      */
-#define CFG_FLASH_PROTECTION    1              /* Physically section protection on     */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64              /* Max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    180000          /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    600             /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_PROTECTION    1               /* Physically section protection on     */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_OFFSET              0x00020000      /* Environment starts at this adress    */
 #define        CONFIG_ENV_SIZE         0x00010000      /* Set whole sector as env              */
-#define        CFG_USE_PPCENV                          /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                           /* Environment embedded in sect .ppcenv */
 #endif
 
 /*-----------------------------------------------------------------------
  * SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF00
-#define CFG_SCCR       (SCCR_TBS     | SCCR_RTDIV    | SCCR_RTSEL    | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | SCCR_RTDIV    | SCCR_RTSEL    | \
                         SCCR_COM00   | SCCR_DFNL000 | SCCR_DFNH000)
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Data show cycle
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00)         /* Disable data show cycle      */
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00)         /* Disable data show cycle      */
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register
  * Set all bits to 40 Mhz
  *
  */
-#define CFG_OSC_CLK    ((uint)4000000)         /* Oscillator clock is 4MHz     */
-#define CFG_PLPRCR     (PLPRCR_MF_9 | PLPRCR_DIVF_0)
+#define CONFIG_SYS_OSC_CLK     ((uint)4000000)         /* Oscillator clock is 4MHz     */
+#define CONFIG_SYS_PLPRCR      (PLPRCR_MF_9 | PLPRCR_DIVF_0)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_UMCR       (UMCR_FSPEED)           /* IMB clock same as U-bus      */
+#define CONFIG_SYS_UMCR        (UMCR_FSPEED)           /* IMB clock same as U-bus      */
 
 /*-----------------------------------------------------------------------
  * ICTRL - I-Bus Support Control Register
  */
-#define CFG_ICTRL      (ICTRL_ISCT_SER_7)      /* Take out of serialized mode  */
+#define CONFIG_SYS_ICTRL       (ICTRL_ISCT_SER_7)      /* Take out of serialized mode  */
 
 /*-----------------------------------------------------------------------
  * USIU - Memory Controller Register
  *-----------------------------------------------------------------------
  */
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | BR_V | BR_BI | BR_PS_16)
-#define CFG_OR0_PRELIM         (OR_ADDR_MK_FF | OR_SCY_3)
-#define CFG_BR1_PRELIM         (ANYBUS_BASE)
-#define CFG_OR1_PRELIM         (OR_ADDR_MK_FFFF | OR_SCY_1 | OR_ETHR)
-#define CFG_BR2_PRELIM         (CFG_SDRAM_BASE | BR_V | BR_PS_32)
-#define CFG_OR2_PRELIM         (OR_ADDR_MK_FF)
-#define CFG_BR3_PRELIM         (PLD_BASE | BR_V | BR_BI | BR_LBDIR | BR_PS_8)
-#define CFG_OR3_PRELIM         (OR_ADDR_MK_FF | OR_TRLX | OR_BSCY | OR_SCY_8 | \
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | BR_V | BR_BI | BR_PS_16)
+#define CONFIG_SYS_OR0_PRELIM          (OR_ADDR_MK_FF | OR_SCY_3)
+#define CONFIG_SYS_BR1_PRELIM          (ANYBUS_BASE)
+#define CONFIG_SYS_OR1_PRELIM          (OR_ADDR_MK_FFFF | OR_SCY_1 | OR_ETHR)
+#define CONFIG_SYS_BR2_PRELIM          (CONFIG_SYS_SDRAM_BASE | BR_V | BR_PS_32)
+#define CONFIG_SYS_OR2_PRELIM          (OR_ADDR_MK_FF)
+#define CONFIG_SYS_BR3_PRELIM          (PLD_BASE | BR_V | BR_BI | BR_LBDIR | BR_PS_8)
+#define CONFIG_SYS_OR3_PRELIM          (OR_ADDR_MK_FF | OR_TRLX | OR_BSCY | OR_SCY_8 | \
                                 OR_ACS_10 | OR_ETHR | OR_CSNT)
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* We don't realign the flash   */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* We don't realign the flash   */
 
 /*-----------------------------------------------------------------------
  * DER - Timer Decrementer
  *-----------------------------------------------------------------------
  * Initialise to zero
  */
-#define CFG_DER                        0x00000000
+#define CONFIG_SYS_DER                 0x00000000
 
 
 /*
index ee5116e09835f92ede13a58c5eecd264e6f2d2b6..fb32f3f3c05aa47e3ed31225b524601d412b8496 100644 (file)
 /* ---
  * Defines processor clock - important for correct timings concerning serial
  * interface etc.
- * CFG_HZ gives unit: 1000 -> 1 Hz ^= 1000 ms
+ * CONFIG_SYS_HZ gives unit: 1000 -> 1 Hz ^= 1000 ms
  * ---
  */
 
-#define CFG_HZ                 1000
-#define CFG_CLK                        66000000
-#define CFG_SDRAM_SIZE         16              /* SDRAM size in MB */
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_CLK                 66000000
+#define CONFIG_SYS_SDRAM_SIZE          16              /* SDRAM size in MB */
 
 /* ---
  * Enable use of Ethernet
 /* ---
  * Define baudrate for UART1 (console output, tftp, ...)
  * default value of CONFIG_BAUDRATE for Sentec board: 19200 baud
- * CFG_BAUDRATE_TABLE defines values that can be selected in u-boot command
+ * CONFIG_SYS_BAUDRATE_TABLE defines values that can be selected in u-boot command
  * interface
  * ---
  */
 
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                19200
-#define CFG_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
 
 /* ---
  * set "#if 0" to "#if 1" if (Hardware)-WATCHDOG should be enabled & change
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 /*
@@ -211,23 +211,23 @@ considered during boot */
 
 #endif
 
-#define CFG_PROMPT             "COBRA > "      /* Layout of u-boot prompt*/
+#define CONFIG_SYS_PROMPT              "COBRA > "      /* Layout of u-boot prompt*/
 
-#define CFG_LOAD_ADDR          0x20000         /*Defines default RAM address
+#define CONFIG_SYS_LOAD_ADDR           0x20000         /*Defines default RAM address
 from which user programs will be started */
 
 /*---*/
 
-#define CFG_LONGHELP                           /* undef to save memory         */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /*
  *-----------------------------------------------------------------------------
@@ -240,8 +240,8 @@ from which user programs will be started */
  * ---
  */
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
 /* ---
  * Low Level Configuration Settings
@@ -255,39 +255,39 @@ from which user programs will be started */
  * ---
  */
 
-#define CFG_MBAR               0x10000000      /* Register Base Addrs */
+#define CONFIG_SYS_MBAR                0x10000000      /* Register Base Addrs */
 
 /* ---
  * System Conf. Reg. & System Protection Reg.
  * ---
  */
 
-#define CFG_SCR                        0x0003
-#define CFG_SPR                        0xffff
+#define CONFIG_SYS_SCR                 0x0003
+#define CONFIG_SYS_SPR                 0xffff
 
 /* ---
  * Ethernet settings
  * ---
  */
 
-#define CFG_DISCOVER_PHY
-#define CFG_ENET_BD_BASE       0x780000
+#define CONFIG_SYS_DISCOVER_PHY
+#define CONFIG_SYS_ENET_BD_BASE        0x780000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in internal SRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM    */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 
 /*
  *-------------------------------------------------------------------------
@@ -295,42 +295,42 @@ from which user programs will be started */
  *-----------------------------------------------------------------------
  */
 
-/* #define CFG_SDRAM_SIZE              16 */
+/* #define CONFIG_SYS_SDRAM_SIZE               16 */
 
 /*
  *-----------------------------------------------------------------------
  */
 
-#define CFG_FLASH_BASE         0xffe00000
+#define CONFIG_SYS_FLASH_BASE          0xffe00000
 
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#define CFG_MONITOR_BASE       0x20000
+#define CONFIG_SYS_MONITOR_BASE        0x20000
 #else
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     64*1024
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      64*1024
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     11      /* max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT   1000    /* flash timeout */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      11      /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    1000    /* flash timeout */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Memory bank definitions
@@ -338,29 +338,29 @@ from which user programs will be started */
  * Please refer also to Motorola Coldfire user manual - Chapter XXX
  * <http://e-www.motorola.com/files/dsp/doc/ref_manual/MCF5272UM.pdf>
  */
-#define CFG_BR0_PRELIM         0xFFE00201
-#define CFG_OR0_PRELIM         0xFFE00014
+#define CONFIG_SYS_BR0_PRELIM          0xFFE00201
+#define CONFIG_SYS_OR0_PRELIM          0xFFE00014
 
-#define CFG_BR1_PRELIM         0
-#define CFG_OR1_PRELIM         0
+#define CONFIG_SYS_BR1_PRELIM          0
+#define CONFIG_SYS_OR1_PRELIM          0
 
-#define CFG_BR2_PRELIM         0
-#define CFG_OR2_PRELIM         0
+#define CONFIG_SYS_BR2_PRELIM          0
+#define CONFIG_SYS_OR2_PRELIM          0
 
-#define CFG_BR3_PRELIM         0
-#define CFG_OR3_PRELIM         0
+#define CONFIG_SYS_BR3_PRELIM          0
+#define CONFIG_SYS_OR3_PRELIM          0
 
-#define CFG_BR4_PRELIM         0
-#define CFG_OR4_PRELIM         0
+#define CONFIG_SYS_BR4_PRELIM          0
+#define CONFIG_SYS_OR4_PRELIM          0
 
-#define CFG_BR5_PRELIM         0
-#define CFG_OR5_PRELIM         0
+#define CONFIG_SYS_BR5_PRELIM          0
+#define CONFIG_SYS_OR5_PRELIM          0
 
-#define CFG_BR6_PRELIM         0
-#define CFG_OR6_PRELIM         0
+#define CONFIG_SYS_BR6_PRELIM          0
+#define CONFIG_SYS_OR6_PRELIM          0
 
-#define CFG_BR7_PRELIM         0x00000701
-#define CFG_OR7_PRELIM         0xFF00007C
+#define CONFIG_SYS_BR7_PRELIM          0x00000701
+#define CONFIG_SYS_OR7_PRELIM          0xFF00007C
 
 /*-----------------------------------------------------------------------
  * LED config
@@ -377,15 +377,15 @@ from which user programs will be started */
 /*-----------------------------------------------------------------------
  * Port configuration (GPIO)
  */
-#define CFG_PACNT              0x00000000              /* PortA control reg.: All pins are external
+#define CONFIG_SYS_PACNT               0x00000000              /* PortA control reg.: All pins are external
 GPIO*/
-#define CFG_PADDR              0x00FF                  /* PortA direction reg.: PA7 to PA0 are outputs
+#define CONFIG_SYS_PADDR               0x00FF                  /* PortA direction reg.: PA7 to PA0 are outputs
 (1^=output, 0^=input) */
-#define CFG_PADAT              LED_STAT_0              /* PortA value reg.: Turn all LED off */
-#define CFG_PBCNT              0x55554155              /* PortB control reg.: Ethernet/UART
+#define CONFIG_SYS_PADAT               LED_STAT_0              /* PortA value reg.: Turn all LED off */
+#define CONFIG_SYS_PBCNT               0x55554155              /* PortB control reg.: Ethernet/UART
 configuration */
-#define CFG_PBDDR              0x0000                  /* PortB direction: All pins configured as inputs */
-#define CFG_PBDAT              0x0000                  /* PortB value reg. */
-#define CFG_PDCNT              0x00000000              /* PortD control reg. */
+#define CONFIG_SYS_PBDDR               0x0000                  /* PortB direction: All pins configured as inputs */
+#define CONFIG_SYS_PBDAT               0x0000                  /* PortB value reg. */
+#define CONFIG_SYS_PDCNT               0x00000000              /* PortD control reg. */
 
 #endif /* _CONFIG_COBRA5272_H */
index b39f4cb86dc468f5bf25bf51e134e67177e58056..c580230225dc9ff427460efcd8e1dc462871e34c 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01c00000      /* 4 ... 28 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01c00000      /* 4 ... 28 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * Low Level Configuration Settings
 
 /*-----------------------------------------------------------------------
  * Low Level Cogent settings
- * if CFG_CMA_CONS_SERIAL is defined, make sure the 8260 CPM serial is not.
+ * if CONFIG_SYS_CMA_CONS_SERIAL is defined, make sure the 8260 CPM serial is not.
  * also, make sure CONFIG_CONS_INDEX is still defined - the index will be
  * 1 for serialA, 2 for serialB, 3 for ser2A, 4 for ser2B
  * (second 2 for CMA120 only)
  */
-#define CFG_CMA_MB_BASE                0x00000000      /* base of m/b address space */
+#define CONFIG_SYS_CMA_MB_BASE         0x00000000      /* base of m/b address space */
 
 #include <configs/cogent_common.h>
 
 #ifdef CONFIG_CONS_NONE
-#define CFG_CMA_CONS_SERIAL    /* use Cogent motherboard serial for console */
+#define CONFIG_SYS_CMA_CONS_SERIAL     /* use Cogent motherboard serial for console */
 #endif
-#define CFG_CMA_LCD_HEARTBEAT  /* define for sec rotator in lcd corner */
+#define CONFIG_SYS_CMA_LCD_HEARTBEAT   /* define for sec rotator in lcd corner */
 #define CONFIG_SHOW_ACTIVITY
 
 #if (CMA_MB_CAPS & CMA_MB_CAP_FLASH)
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
-#define CFG_HRCW_MASTER        (HRCW_EBM|HRCW_BPS10|HRCW_L2CPC10|HRCW_DPPC11|\
+#define CONFIG_SYS_HRCW_MASTER (HRCW_EBM|HRCW_BPS10|HRCW_L2CPC10|HRCW_DPPC11|\
                         HRCW_ISB100|HRCW_MMR11|HRCW_MODCK_H0101)
 /* no slaves so just duplicate the master hrcw */
-#define CFG_HRCW_SLAVE1        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE2        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE3        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE4        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE5        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE6        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE7        CFG_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE1 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE2 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE3 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE4 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE5 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE6 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE7 CONFIG_SYS_HRCW_MASTER
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x4000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          CMA_MB_RAM_BASE
+#define        CONFIG_SYS_SDRAM_BASE           CMA_MB_RAM_BASE
 #ifdef CONFIG_CMA302
-#define CFG_FLASH_BASE         CMA_MB_SLOT2_BASE       /* cma302 in slot 2 */
+#define CONFIG_SYS_FLASH_BASE          CMA_MB_SLOT2_BASE       /* cma302 in slot 2 */
 #else
-#define CFG_FLASH_BASE         CMA_MB_FLASH_BASE       /* flash on m/b */
+#define CONFIG_SYS_FLASH_BASE          CMA_MB_FLASH_BASE       /* flash on m/b */
 #endif
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()*/
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Mem map for Linux*/
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Mem map for Linux*/
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     67      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
-#define CONFIG_ENV_ADDR                CFG_FLASH_BASE /* Addr of Environment Sector */
+#define CONFIG_ENV_ADDR                CONFIG_SYS_FLASH_BASE /* Addr of Environment Sector */
 #ifdef CONFIG_CMA302
 #define        CONFIG_ENV_SIZE         0x1000  /* Total Size of Environment Sector */
 #define CONFIG_ENV_SECT_SIZE   (512*1024) /* see README - env sect real size */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value*/
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value*/
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL (HID0_ICE|HID0_IFEM|HID0_ABE)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE|HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                    5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR                RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                BCR_EBM
+#define CONFIG_SYS_BCR         BCR_EBM
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     (SIUMCR_DPPC11|SIUMCR_L2CPC10|SIUMCR_MMR11)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC11|SIUMCR_L2CPC10|SIUMCR_MMR11)
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                            4-35
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR       (SCCR_DFBRG01)
+#define CONFIG_SYS_SCCR        (SCCR_DFBRG01)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 #if defined(CONFIG_CMA282)
 
  * (the *_SIZE vars must be a power of 2)
  */
 
-#define CFG_CMA_CS0_BASE       TEXT_BASE       /* EPROM */
-#define CFG_CMA_CS0_SIZE       (1 << 20)
+#define CONFIG_SYS_CMA_CS0_BASE        TEXT_BASE       /* EPROM */
+#define CONFIG_SYS_CMA_CS0_SIZE        (1 << 20)
 #if 0
-#define CFG_CMA_CS2_BASE       0x10000000      /* Local Bus SDRAM */
-#define CFG_CMA_CS2_SIZE       (16 << 20)
+#define CONFIG_SYS_CMA_CS2_BASE        0x10000000      /* Local Bus SDRAM */
+#define CONFIG_SYS_CMA_CS2_SIZE        (16 << 20)
 #endif
 
 /*
  * CS0 maps the EPROM on the cpu module
- * Set it for 10 wait states, address CFG_MONITOR_BASE and size 1M
+ * Set it for 10 wait states, address CONFIG_SYS_MONITOR_BASE and size 1M
  *
  * Note: We must have already transferred control to the final location
  * of the EPROM before these are used, because when BR0/OR0 are set, the
  * mirror of the eprom at any other addresses will disappear.
  */
 
-/* base address = CFG_CMA_CS0_BASE, 16-bit, no parity, r/o, gpcm (60x bus) */
-#define CFG_BR0_PRELIM ((CFG_CMA_CS0_BASE&BRx_BA_MSK)|BRx_PS_16|BRx_WP|BRx_V)
-/* mask size CFG_CMA_CS0_SIZE, csneg 1/4 early, adr-to-cs 1/2, 10-wait states */
-#define CFG_OR0_PRELIM (P2SZ_TO_AM(CFG_CMA_CS0_SIZE)|\
+/* base address = CONFIG_SYS_CMA_CS0_BASE, 16-bit, no parity, r/o, gpcm (60x bus) */
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_CMA_CS0_BASE&BRx_BA_MSK)|BRx_PS_16|BRx_WP|BRx_V)
+/* mask size CONFIG_SYS_CMA_CS0_SIZE, csneg 1/4 early, adr-to-cs 1/2, 10-wait states */
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(CONFIG_SYS_CMA_CS0_SIZE)|\
                                ORxG_CSNT|ORxG_ACS_DIV2|ORxG_SCY_10_CLK)
 
 /*
  */
 
 #if 0
-/* base address = CFG_CMA_CS2_BASE, 32-bit, no parity, ??? */
-#define CFG_BR0_PRELIM ((CFG_CMA_CS2_BASE&BRx_BA_MSK)|BRx_PS_32|/*???*/|BRx_V)
-/* mask size CFG_CMA_CS2_SIZE, CS time normal, ??? */
-#define CFG_OR2_PRELIM ((~(CFG_CMA_CS2_SIZE-1)&ORx_AM_MSK)|/*???*/)
+/* base address = CONFIG_SYS_CMA_CS2_BASE, 32-bit, no parity, ??? */
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_CMA_CS2_BASE&BRx_BA_MSK)|BRx_PS_32|/*???*/|BRx_V)
+/* mask size CONFIG_SYS_CMA_CS2_SIZE, CS time normal, ??? */
+#define CONFIG_SYS_OR2_PRELIM  ((~(CONFIG_SYS_CMA_CS2_SIZE-1)&ORx_AM_MSK)|/*???*/)
 #endif
 
 #endif
index c77f9a25cce8c052bb1bfaec57430912ea75d407..17bd9a027427a8cecdb64ab859b57c1eb34e82e5 100644 (file)
@@ -55,8 +55,8 @@
 #define CONFIG_BAUDRATE                230400
 
 #define CONFIG_HARD_I2C                /* I2C with hardware support */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01c00000      /* 4 ... 28 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01c00000      /* 4 ... 28 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_ALLOC_DPRAM
+#define CONFIG_SYS_ALLOC_DPRAM
 
 /*
  * Low Level Configuration Settings
 
 /*-----------------------------------------------------------------------
  * Low Level Cogent settings
- * if CFG_CMA_CONS_SERIAL is defined, make sure the 8xx CPM serial is not.
+ * if CONFIG_SYS_CMA_CONS_SERIAL is defined, make sure the 8xx CPM serial is not.
  * also, make sure CONFIG_CONS_INDEX is still defined - the index will be
  * 1 for serialA, 2 for serialB, 3 for ser2A, 4 for ser2B
  * (second 2 for CMA120 only)
  */
-#define CFG_CMA_MB_BASE                0x00000000      /* base of m/b address space */
+#define CONFIG_SYS_CMA_MB_BASE         0x00000000      /* base of m/b address space */
 
 #include <configs/cogent_common.h>
 
-#define CFG_CMA_CONS_SERIAL    /* use Cogent motherboard serial for console */
+#define CONFIG_SYS_CMA_CONS_SERIAL     /* use Cogent motherboard serial for console */
 #define CONFIG_CONS_INDEX      1
-#define CFG_CMA_LCD_HEARTBEAT  /* define for sec rotator in lcd corner */
+#define CONFIG_SYS_CMA_LCD_HEARTBEAT   /* define for sec rotator in lcd corner */
 #define CONFIG_SHOW_ACTIVITY
 #if (CMA_MB_CAPS & CMA_MB_CAP_FLASH)
 /*
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          CMA_MB_RAM_BASE
+#define        CONFIG_SYS_SDRAM_BASE           CMA_MB_RAM_BASE
 #ifdef CONFIG_CMA302
-#define CFG_FLASH_BASE         CMA_MB_SLOT2_BASE       /* cma302 in slot 2 */
+#define CONFIG_SYS_FLASH_BASE          CMA_MB_SLOT2_BASE       /* cma302 in slot 2 */
 #else
-#define CFG_FLASH_BASE         CMA_MB_FLASH_BASE       /* flash on m/b */
+#define CONFIG_SYS_FLASH_BASE          CMA_MB_FLASH_BASE       /* flash on m/b */
 #endif
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#define        CFG_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
-#define CONFIG_ENV_ADDR                CFG_FLASH_BASE /* Addr of Environment Sector */
+#define CONFIG_ENV_ADDR                CONFIG_SYS_FLASH_BASE /* Addr of Environment Sector */
 #ifdef CONFIG_CMA302
 #define        CONFIG_ENV_SIZE         0x1000  /* Total Size of Environment Sector     */
 #define CONFIG_ENV_SECT_SIZE   (512*1024) /* see README - env sect real size */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit - leave PLL multiplication factor unchanged !
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_TBS     | SCCR_RTDIV    | SCCR_RTSEL    | \
+#define CONFIG_SYS_SCCR        (SCCR_TBS     | SCCR_RTDIV    | SCCR_RTSEL    | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 #if defined(CONFIG_CMA286_60_OLD)
 
 /*
  * Init Memory Controller:
  *
- * NOTE: although the names (CFG_xRn_PRELIM) suggest preliminary settings,
+ * NOTE: although the names (CONFIG_SYS_xRn_PRELIM) suggest preliminary settings,
  * they are actually the final settings for this cpu/board, because the
  * flash and RAM are on the motherboard, accessed via the CMAbus, and the
  * mappings are pretty much fixed.
  * (the *_SIZE vars must be a power of 2)
  */
 
-#define CFG_CMA_CS0_BASE       TEXT_BASE               /* EPROM */
-#define CFG_CMA_CS0_SIZE       (1 << 20)
-#define CFG_CMA_CS1_BASE       CMA_MB_RAM_BASE         /* RAM + I/O SLOT 1 */
-#define CFG_CMA_CS1_SIZE       (64 << 20)
-#define CFG_CMA_CS2_BASE       CMA_MB_SLOT2_BASE       /* I/O SLOTS 2 + 3 */
-#define CFG_CMA_CS2_SIZE       (64 << 20)
-#define CFG_CMA_CS3_BASE       CMA_MB_ROMLOW_BASE      /* M/B I/O */
-#define CFG_CMA_CS3_SIZE       (32 << 20)
+#define CONFIG_SYS_CMA_CS0_BASE        TEXT_BASE               /* EPROM */
+#define CONFIG_SYS_CMA_CS0_SIZE        (1 << 20)
+#define CONFIG_SYS_CMA_CS1_BASE        CMA_MB_RAM_BASE         /* RAM + I/O SLOT 1 */
+#define CONFIG_SYS_CMA_CS1_SIZE        (64 << 20)
+#define CONFIG_SYS_CMA_CS2_BASE        CMA_MB_SLOT2_BASE       /* I/O SLOTS 2 + 3 */
+#define CONFIG_SYS_CMA_CS2_SIZE        (64 << 20)
+#define CONFIG_SYS_CMA_CS3_BASE        CMA_MB_ROMLOW_BASE      /* M/B I/O */
+#define CONFIG_SYS_CMA_CS3_SIZE        (32 << 20)
 
 /*
  * CS0 maps the EPROM on the cpu module
- * Set it for 4 wait states, address CFG_MONITOR_BASE and size 1M
+ * Set it for 4 wait states, address CONFIG_SYS_MONITOR_BASE and size 1M
  *
  * Note: We must have already transferred control to the final location
  * of the EPROM before these are used, because when BR0/OR0 are set, the
  * mirror of the eprom at any other addresses will disappear.
  */
 
-/* base address = CFG_CMA_CS0_BASE, 16-bit, no parity, r/o, gpcm */
-#define CFG_BR0_PRELIM ((CFG_CMA_CS0_BASE&BR_BA_MSK)|BR_PS_16|BR_WP|BR_V)
-/* mask size CFG_CMA_CS0_SIZE, CS time normal, burst inhibit, 4-wait states */
-#define CFG_OR0_PRELIM ((~(CFG_CMA_CS0_SIZE-1)&OR_AM_MSK)|OR_BI|OR_SCY_4_CLK)
+/* base address = CONFIG_SYS_CMA_CS0_BASE, 16-bit, no parity, r/o, gpcm */
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_CMA_CS0_BASE&BR_BA_MSK)|BR_PS_16|BR_WP|BR_V)
+/* mask size CONFIG_SYS_CMA_CS0_SIZE, CS time normal, burst inhibit, 4-wait states */
+#define CONFIG_SYS_OR0_PRELIM  ((~(CONFIG_SYS_CMA_CS0_SIZE-1)&OR_AM_MSK)|OR_BI|OR_SCY_4_CLK)
 
 /*
  * CS1 maps motherboard DRAM and motherboard I/O slot 1
  * (each 32Mbyte in size)
  */
 
-/* base address = CFG_CMA_CS1_BASE, 32-bit, no parity, r/w, gpcm */
-#define CFG_BR1_PRELIM ((CFG_CMA_CS1_BASE&BR_BA_MSK)|BR_V)
-/* mask size CFG_CMA_CS1_SIZE, CS time normal, burst ok, ext xfer ack */
-#define CFG_OR1_PRELIM ((~(CFG_CMA_CS1_SIZE-1)&OR_AM_MSK)|OR_SETA)
+/* base address = CONFIG_SYS_CMA_CS1_BASE, 32-bit, no parity, r/w, gpcm */
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_CMA_CS1_BASE&BR_BA_MSK)|BR_V)
+/* mask size CONFIG_SYS_CMA_CS1_SIZE, CS time normal, burst ok, ext xfer ack */
+#define CONFIG_SYS_OR1_PRELIM  ((~(CONFIG_SYS_CMA_CS1_SIZE-1)&OR_AM_MSK)|OR_SETA)
 
 /*
  * CS2 maps motherboard I/O slots 2 and 3
  * (each 32Mbyte in size)
  */
 
-/* base address = CFG_CMA_CS2_BASE, 32-bit, no parity, r/w, gpcm */
-#define CFG_BR2_PRELIM ((CFG_CMA_CS2_BASE&BR_BA_MSK)|BR_V)
-/* mask size CFG_CMA_CS2_SIZE, CS time normal, burst ok, ext xfer ack */
-#define CFG_OR2_PRELIM ((~(CFG_CMA_CS2_SIZE-1)&OR_AM_MSK)|OR_SETA)
+/* base address = CONFIG_SYS_CMA_CS2_BASE, 32-bit, no parity, r/w, gpcm */
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_CMA_CS2_BASE&BR_BA_MSK)|BR_V)
+/* mask size CONFIG_SYS_CMA_CS2_SIZE, CS time normal, burst ok, ext xfer ack */
+#define CONFIG_SYS_OR2_PRELIM  ((~(CONFIG_SYS_CMA_CS2_SIZE-1)&OR_AM_MSK)|OR_SETA)
 
 /*
  * CS3 maps motherboard I/O
  * (32Mbyte in size)
  */
 
-/* base address = CFG_CMA_CS3_BASE, 32-bit, no parity, r/w, gpcm */
-#define CFG_BR3_PRELIM ((CFG_CMA_CS3_BASE&BR_BA_MSK)|BR_V)
-/* mask size CFG_CMA_CS3_SIZE, CS time normal, burst inhibit, ext xfer ack */
-#define CFG_OR3_PRELIM ((~(CFG_CMA_CS3_SIZE-1)&OR_AM_MSK)|OR_BI|OR_SETA)
+/* base address = CONFIG_SYS_CMA_CS3_BASE, 32-bit, no parity, r/w, gpcm */
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_CMA_CS3_BASE&BR_BA_MSK)|BR_V)
+/* mask size CONFIG_SYS_CMA_CS3_SIZE, CS time normal, burst inhibit, ext xfer ack */
+#define CONFIG_SYS_OR3_PRELIM  ((~(CONFIG_SYS_CMA_CS3_SIZE-1)&OR_AM_MSK)|OR_BI|OR_SETA)
 
 #endif
 
index 1f53ddcf94d1c3e72679a04b19c016ad6e553221..b9dabac989d864ded3b892e3622431f529abbc86 100644 (file)
@@ -45,7 +45,7 @@
 #define CONFIG_CPCI5200                1       /* ... on CPCI5200  board */
 #define CONFIG_MPC5200_DDR     1       /* ... use DDR RAM        */
 
-#define CFG_MPC5XXX_CLKIN      33000000        /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000        /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -57,7 +57,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                9600    /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #ifdef CONFIG_MPC5200          /* MPC5100 PCI is not supported yet. */
 /*
@@ -86,7 +86,7 @@
 #if 0                          /* test-only !!! */
 #define CONFIG_NET_MULTI       1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8       /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8       /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 #endif
 
 #define CONFIG_CMD_DATE
 
 #if (TEXT_BASE == 0xFF000000)  /* Boot low with 16 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT16       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT16        1
 #endif
 #if (TEXT_BASE == 0xFF800000)  /* Boot low with  8 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT08       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT08        1
 #endif
 
 /*
 #if defined(CONFIG_MPC5200)
 
 #define CONFIG_RTC_M48T35A     1       /* ST Electronics M48 timekeeper */
-#define CFG_NVRAM_BASE_ADDR    0xfd010000
-#define CFG_NVRAM_SIZE         32*1024
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xfd010000
+#define CONFIG_SYS_NVRAM_SIZE          32*1024
 
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 #endif
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         1       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          1       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          86000   /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           86000   /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
-#define CFG_I2C_MULTI_EEPROMS          1
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
+#define CONFIG_SYS_I2C_MULTI_EEPROMS           1
 /*
  * Flash configuration
  */
 
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant           */
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_SIZE         0x02000000
-#define CFG_FLASH_INCREMENT    0x01000000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00000000)
-#define CFG_MAX_FLASH_BANKS    2       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant           */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_SIZE          0x02000000
+#define CONFIG_SYS_FLASH_INCREMENT     0x01000000
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00000000)
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128
 
-#define CFG_FLASH_PROTECTION   1       /* use hardware protection           */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)  */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware protection           */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)  */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x01052444
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x01052444
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_VXWORKS_MAC_PTR    0x00000000      /* Pass Ethernet MAC to VxWorks */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     0x00000000      /* Pass Ethernet MAC to VxWorks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x0004DD00
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x0004DD00
 
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS1_START          0xfd000000
-#define CFG_CS1_SIZE           0x00010000
-#define CFG_CS1_CFG            0x10101410
+#define CONFIG_SYS_CS1_START           0xfd000000
+#define CONFIG_SYS_CS1_SIZE            0x00010000
+#define CONFIG_SYS_CS1_CFG             0x10101410
 
-#define CFG_CS3_START          0xfd010000
-#define CFG_CS3_SIZE           0x00010000
-#define CFG_CS3_CFG            0x10109410
+#define CONFIG_SYS_CS3_START           0xfd010000
+#define CONFIG_SYS_CS3_SIZE            0x00010000
+#define CONFIG_SYS_CS3_CFG             0x10109410
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define        CONFIG_IDE_RESET        /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                               */
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 /*-----------------------------------------------------------------------
  * CPLD stuff
  */
-#define CFG_FPGA_XC95XL                1       /* using Xilinx XC95XL CPLD      */
-#define CFG_FPGA_MAX_SIZE      32*1024 /* 32kByte is enough for CPLD    */
+#define CONFIG_SYS_FPGA_XC95XL         1       /* using Xilinx XC95XL CPLD      */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024 /* 32kByte is enough for CPLD    */
 
 /* CPLD program pin configuration */
-#define CFG_FPGA_PRG           0x20000000      /* JTAG TMS pin (ppc output)           */
-#define CFG_FPGA_CLK           0x10000000      /* JTAG TCK pin (ppc output)           */
-#define CFG_FPGA_DATA          0x20000000      /* JTAG TDO->TDI data pin (ppc output) */
-#define CFG_FPGA_DONE          0x10000000      /* JTAG TDI->TDO pin (ppc input)       */
+#define CONFIG_SYS_FPGA_PRG            0x20000000      /* JTAG TMS pin (ppc output)           */
+#define CONFIG_SYS_FPGA_CLK            0x10000000      /* JTAG TCK pin (ppc output)           */
+#define CONFIG_SYS_FPGA_DATA           0x20000000      /* JTAG TDO->TDI data pin (ppc output) */
+#define CONFIG_SYS_FPGA_DONE           0x10000000      /* JTAG TDI->TDO pin (ppc input)       */
 
-#define JTAG_GPIO_ADDR_TMS     (CFG_MBAR + 0xB10)      /* JTAG TMS pin (GPS data out value reg.)      */
-#define JTAG_GPIO_ADDR_TCK     (CFG_MBAR + 0xC0C)      /* JTAG TCK pin (GPW data out value reg.)      */
-#define JTAG_GPIO_ADDR_TDI     (CFG_MBAR + 0xC0C)      /* JTAG TDO->TDI pin (GPW data out value reg.) */
-#define JTAG_GPIO_ADDR_TDO     (CFG_MBAR + 0xB14)      /* JTAG TDI->TDO pin (GPS data in value reg.)  */
+#define JTAG_GPIO_ADDR_TMS     (CONFIG_SYS_MBAR + 0xB10)       /* JTAG TMS pin (GPS data out value reg.)      */
+#define JTAG_GPIO_ADDR_TCK     (CONFIG_SYS_MBAR + 0xC0C)       /* JTAG TCK pin (GPW data out value reg.)      */
+#define JTAG_GPIO_ADDR_TDI     (CONFIG_SYS_MBAR + 0xC0C)       /* JTAG TDO->TDI pin (GPW data out value reg.) */
+#define JTAG_GPIO_ADDR_TDO     (CONFIG_SYS_MBAR + 0xB14)       /* JTAG TDI->TDO pin (GPS data in value reg.)  */
 
-#define JTAG_GPIO_ADDR_CFG     (CFG_MBAR + 0xB00)
+#define JTAG_GPIO_ADDR_CFG     (CONFIG_SYS_MBAR + 0xB00)
 #define JTAG_GPIO_CFG_SET      0x00000000
 #define JTAG_GPIO_CFG_RESET    0x00F00000
 
-#define JTAG_GPIO_ADDR_EN_TMS  (CFG_MBAR + 0xB04)
+#define JTAG_GPIO_ADDR_EN_TMS  (CONFIG_SYS_MBAR + 0xB04)
 #define JTAG_GPIO_TMS_EN_SET   0x20000000      /* Enable for GPIO */
 #define JTAG_GPIO_TMS_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TMS (CFG_MBAR + 0xB0C)
+#define JTAG_GPIO_ADDR_DDR_TMS (CONFIG_SYS_MBAR + 0xB0C)
 #define JTAG_GPIO_TMS_DDR_SET  0x20000000      /* Set as output   */
 #define JTAG_GPIO_TMS_DDR_RESET 0x00000000
 
-#define JTAG_GPIO_ADDR_EN_TCK  (CFG_MBAR + 0xC00)
+#define JTAG_GPIO_ADDR_EN_TCK  (CONFIG_SYS_MBAR + 0xC00)
 #define JTAG_GPIO_TCK_EN_SET   0x20000000      /* Enable for GPIO */
 #define JTAG_GPIO_TCK_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TCK (CFG_MBAR + 0xC08)
+#define JTAG_GPIO_ADDR_DDR_TCK (CONFIG_SYS_MBAR + 0xC08)
 #define JTAG_GPIO_TCK_DDR_SET  0x20000000      /* Set as output   */
 #define JTAG_GPIO_TCK_DDR_RESET 0x00000000
 
-#define JTAG_GPIO_ADDR_EN_TDI  (CFG_MBAR + 0xC00)
+#define JTAG_GPIO_ADDR_EN_TDI  (CONFIG_SYS_MBAR + 0xC00)
 #define JTAG_GPIO_TDI_EN_SET   0x10000000      /* Enable as GPIO  */
 #define JTAG_GPIO_TDI_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TDI (CFG_MBAR + 0xC08)
+#define JTAG_GPIO_ADDR_DDR_TDI (CONFIG_SYS_MBAR + 0xC08)
 #define JTAG_GPIO_TDI_DDR_SET  0x10000000      /* Set as output   */
 #define JTAG_GPIO_TDI_DDR_RESET 0x00000000
 
-#define JTAG_GPIO_ADDR_EN_TDO  (CFG_MBAR + 0xB04)
+#define JTAG_GPIO_ADDR_EN_TDO  (CONFIG_SYS_MBAR + 0xB04)
 #define JTAG_GPIO_TDO_EN_SET   0x10000000      /* Enable as GPIO  */
 #define JTAG_GPIO_TDO_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TDO (CFG_MBAR + 0xB0C)
+#define JTAG_GPIO_ADDR_DDR_TDO (CONFIG_SYS_MBAR + 0xB0C)
 #define JTAG_GPIO_TDO_DDR_SET  0x00000000
 #define JTAG_GPIO_TDO_DDR_RESET 0x10000000     /* Set as input    */
 
index 34a265d5d7a96aa0c4aaab37b4284610b751473b..e80504a09ffc20bfbd03e074b3220e514cd075e3 100644 (file)
@@ -40,8 +40,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                            /* undef to save memory         */
-#define CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
-#define CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE            CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE      /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START       0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR           0xa2000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa2000000      /* default load address */
 
-#define CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Stack sizes
 #define PHYS_FLASH_2            0x04000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SIZE         0x02000000 /* 32 MB */
 
-#define CFG_DRAM_BASE           0xa0000000
-#define CFG_DRAM_SIZE           0x04000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000
+#define CONFIG_SYS_DRAM_SIZE           0x04000000
 
-#define CFG_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS     1     /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT      32    /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1     /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      32    /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT    (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT    (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                                0x00020000      /* absolute address for now   */
  */
 /* Pin direction control */
 /* NOTE GPIO 0, 61, 62 are set for inputs due to CPLD SPAREs */
-#define CFG_GPDR0_VAL       0xfff3bf02
-#define CFG_GPDR1_VAL       0xfbffbf83
-#define CFG_GPDR2_VAL       0x0001ffff
+#define CONFIG_SYS_GPDR0_VAL       0xfff3bf02
+#define CONFIG_SYS_GPDR1_VAL       0xfbffbf83
+#define CONFIG_SYS_GPDR2_VAL       0x0001ffff
 /* Set and Clear registers */
-#define CFG_GPSR0_VAL       0x00400800
-#define CFG_GPSR1_VAL       0x00000480
-#define CFG_GPSR2_VAL       0x00014000
-#define CFG_GPCR0_VAL       0x00000000
-#define CFG_GPCR1_VAL       0x00000000
-#define CFG_GPCR2_VAL       0x00000000
+#define CONFIG_SYS_GPSR0_VAL       0x00400800
+#define CONFIG_SYS_GPSR1_VAL       0x00000480
+#define CONFIG_SYS_GPSR2_VAL       0x00014000
+#define CONFIG_SYS_GPCR0_VAL       0x00000000
+#define CONFIG_SYS_GPCR1_VAL       0x00000000
+#define CONFIG_SYS_GPCR2_VAL       0x00000000
 /* Edge detect registers (these are set by the kernel) */
-#define CFG_GRER0_VAL       0x00000000
-#define CFG_GRER1_VAL       0x00000000
-#define CFG_GRER2_VAL       0x00000000
-#define CFG_GFER0_VAL       0x00000000
-#define CFG_GFER1_VAL       0x00000000
-#define CFG_GFER2_VAL       0x00000000
+#define CONFIG_SYS_GRER0_VAL       0x00000000
+#define CONFIG_SYS_GRER1_VAL       0x00000000
+#define CONFIG_SYS_GRER2_VAL       0x00000000
+#define CONFIG_SYS_GFER0_VAL       0x00000000
+#define CONFIG_SYS_GFER1_VAL       0x00000000
+#define CONFIG_SYS_GFER2_VAL       0x00000000
 /* Alternate function registers */
-#define CFG_GAFR0_L_VAL     0x00000000
-#define CFG_GAFR0_U_VAL     0x00000010
-#define CFG_GAFR1_L_VAL     0x900a9550
-#define CFG_GAFR1_U_VAL     0x00000008
-#define CFG_GAFR2_L_VAL     0x20000000
-#define CFG_GAFR2_U_VAL     0x00000002
+#define CONFIG_SYS_GAFR0_L_VAL     0x00000000
+#define CONFIG_SYS_GAFR0_U_VAL     0x00000010
+#define CONFIG_SYS_GAFR1_L_VAL     0x900a9550
+#define CONFIG_SYS_GAFR1_U_VAL     0x00000008
+#define CONFIG_SYS_GAFR2_L_VAL     0x20000000
+#define CONFIG_SYS_GAFR2_U_VAL     0x00000002
 
 /*
  * Clocks, power control and interrupts
  */
-#define CFG_PSSR_VAL        0x00000020
-#define CFG_CCCR_VAL        0x00000141  /* 100 MHz memory, 200 MHz CPU  */
-#define CFG_CKEN_VAL        0x00000060  /* FFUART and STUART enabled    */
-#define CFG_ICMR_VAL        0x00000000  /* No interrupts enabled        */
+#define CONFIG_SYS_PSSR_VAL        0x00000020
+#define CONFIG_SYS_CCCR_VAL        0x00000141  /* 100 MHz memory, 200 MHz CPU  */
+#define CONFIG_SYS_CKEN_VAL        0x00000060  /* FFUART and STUART enabled    */
+#define CONFIG_SYS_ICMR_VAL        0x00000000  /* No interrupts enabled        */
 
 /* FIXME
  *
  * FIXME Can ethernet be burst read and/or write?? This is set for lubbock
  *       Verify timings on all
  */
-#define CFG_MSC0_VAL        0x000023FA  /* flash bank    (cs0)   */
-/*#define CFG_MSC1_VAL        0x00003549  / * SuperIO bank  (cs2)   */
-#define CFG_MSC1_VAL        0x0000354c  /* SuperIO bank  (cs2)   */
-#define CFG_MSC2_VAL        0x00001224  /* Ethernet bank (cs4)   */
+#define CONFIG_SYS_MSC0_VAL        0x000023FA  /* flash bank    (cs0)   */
+/*#define CONFIG_SYS_MSC1_VAL        0x00003549  / * SuperIO bank  (cs2)   */
+#define CONFIG_SYS_MSC1_VAL        0x0000354c  /* SuperIO bank  (cs2)   */
+#define CONFIG_SYS_MSC2_VAL        0x00001224  /* Ethernet bank (cs4)   */
 #ifdef REDBOOT_WAY
-#define CFG_MDCNFG_VAL      0x00001aa1  /* FIXME can DTC be 01?     */
-#define CFG_MDMRS_VAL       0x00000000
-#define CFG_MDREFR_VAL      0x00018018
+#define CONFIG_SYS_MDCNFG_VAL      0x00001aa1  /* FIXME can DTC be 01?     */
+#define CONFIG_SYS_MDMRS_VAL       0x00000000
+#define CONFIG_SYS_MDREFR_VAL      0x00018018
 #else
-#define CFG_MDCNFG_VAL      0x00001aa1  /* FIXME can DTC be 01?     */
-#define CFG_MDMRS_VAL       0x00000000
-#define CFG_MDREFR_VAL      0x00403018  /* Initial setting, individual bits set in lowlevel_init.S */
+#define CONFIG_SYS_MDCNFG_VAL      0x00001aa1  /* FIXME can DTC be 01?     */
+#define CONFIG_SYS_MDMRS_VAL       0x00000000
+#define CONFIG_SYS_MDREFR_VAL      0x00403018  /* Initial setting, individual bits set in lowlevel_init.S */
 #endif
 
 /*
  * PCMCIA and CF Interfaces (NOT USED, these values from lubbock init)
  */
-#define CFG_MECR_VAL          0x00000000
-#define CFG_MCMEM0_VAL        0x00010504
-#define CFG_MCMEM1_VAL        0x00010504
-#define CFG_MCATT0_VAL        0x00010504
-#define CFG_MCATT1_VAL        0x00010504
-#define CFG_MCIO0_VAL         0x00004715
-#define CFG_MCIO1_VAL         0x00004715
+#define CONFIG_SYS_MECR_VAL          0x00000000
+#define CONFIG_SYS_MCMEM0_VAL        0x00010504
+#define CONFIG_SYS_MCMEM1_VAL        0x00010504
+#define CONFIG_SYS_MCATT0_VAL        0x00010504
+#define CONFIG_SYS_MCATT1_VAL        0x00010504
+#define CONFIG_SYS_MCIO0_VAL         0x00004715
+#define CONFIG_SYS_MCIO1_VAL         0x00004715
 
 /* Board specific defines */
 
index 266e0e6533c0b8504298d8100b69460ed78c173b..a24e34a5089634fac82b7e2f863879e6dbeb3a8b 100644 (file)
  * used for the RAM copy of the uboot code
  *
  */
-#define CFG_MALLOC_LEN         (128*1024)
-#define CFG_GBL_DATA_SIZE      128             /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* size in bytes reserved for initial data */
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "uboot> "       /* Monitor Command Prompt       */
-#define CFG_CBSIZE             128             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "uboot> "       /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              128             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR           0xa3000000     /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa3000000      /* default load address */
                                                /* RS: where is this documented? */
                                                /* RS: is this where U-Boot is  */
                                                /* RS: relocated to in RAM?      */
 
-#define CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
                                                /* RS: the oscillator is actually 3680130?? */
-#define CFG_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
                                                /* 0101000001 */
                                                /*      ^^^^^ Memory Speed 99.53 MHz         */
                                                /*    ^^      Run Mode Speed = 2x Mem Speed  */
                                                /* ^^         Turbo Mode Sp. = 1x Run M. Sp. */
 
-#define CFG_MONITOR_LEN                0x20000         /* 128 KiB */
+#define CONFIG_SYS_MONITOR_LEN         0x20000         /* 128 KiB */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Network chip
 #define PHYS_FLASH_1           0x00000000      /* Flash Bank #1            */
 #define PHYS_FLASH_SIZE                0x02000000      /* 32 MB                    */
 
-#define CFG_DRAM_BASE          0xa0000000      /* RAM starts here          */
-#define CFG_DRAM_SIZE          0x02000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000      /* RAM starts here          */
+#define CONFIG_SYS_DRAM_SIZE           0x02000000
 
-#define CFG_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 # if 0
 /* FIXME: switch to _documented_ registers */
  * GP79 == nCS3      is 1
  * GP80 == nCS4      is 1
  */
-#define CFG_GPSR0_VAL       0x03008000
-#define CFG_GPSR1_VAL       0xC0028282
-#define CFG_GPSR2_VAL       0x0001C000
+#define CONFIG_SYS_GPSR0_VAL       0x03008000
+#define CONFIG_SYS_GPSR1_VAL       0xC0028282
+#define CONFIG_SYS_GPSR2_VAL       0x0001C000
 
 /* GP02 == DON_RST   is 0
  * GP23 == SCLK      is 0
  * GP61 == LED_A     is 0
  * GP73 == SWUPD_LED is 0
  */
-#define CFG_GPCR0_VAL       0x00800004
-#define CFG_GPCR1_VAL       0x30002000
-#define CFG_GPCR2_VAL       0x00000100
+#define CONFIG_SYS_GPCR0_VAL       0x00800004
+#define CONFIG_SYS_GPCR1_VAL       0x30002000
+#define CONFIG_SYS_GPCR2_VAL       0x00000100
 
 /* GP00 == DON_READY is input
  * GP01 == DON_OK    is input
  * GP79 == nCS3      is output
  * GP80 == nCS4      is output
  */
-#define CFG_GPDR0_VAL       0x03808004
-#define CFG_GPDR1_VAL       0xF002A282
-#define CFG_GPDR2_VAL       0x0001C200
+#define CONFIG_SYS_GPDR0_VAL       0x03808004
+#define CONFIG_SYS_GPDR1_VAL       0xF002A282
+#define CONFIG_SYS_GPDR2_VAL       0x0001C200
 
 /* GP15 == nCS1  is AF10
  * GP18 == RDY   is AF01
  * GP79 == nCS3  is AF10
  * GP80 == nCS4  is AF10
  */
-#define CFG_GAFR0_L_VAL     0x80000000
-#define CFG_GAFR0_U_VAL     0x001A8010
-#define CFG_GAFR1_L_VAL     0x60088058
-#define CFG_GAFR1_U_VAL     0x00000008
-#define CFG_GAFR2_L_VAL     0xA0000000
-#define CFG_GAFR2_U_VAL     0x00000002
+#define CONFIG_SYS_GAFR0_L_VAL     0x80000000
+#define CONFIG_SYS_GAFR0_U_VAL     0x001A8010
+#define CONFIG_SYS_GAFR1_L_VAL     0x60088058
+#define CONFIG_SYS_GAFR1_U_VAL     0x00000008
+#define CONFIG_SYS_GAFR2_L_VAL     0xA0000000
+#define CONFIG_SYS_GAFR2_U_VAL     0x00000002
 
 
 /* FIXME: set GPIO_RER/FER */
  * BFS = 1
  * SSS = 1
  */
-#define CFG_PSSR_VAL           0x37
+#define CONFIG_SYS_PSSR_VAL            0x37
 
 /*
  * Memory settings
  * [03]    1    - 16 Bit bus width
  * [02:00] 000  - nonburst RAM or FLASH
  */
-#define CFG_MSC0_VAL           0x25b825b8 /* flash banks                   */
+#define CONFIG_SYS_MSC0_VAL            0x25b825b8 /* flash banks                   */
 
 /* This is the configuration for nCS2/3 -> TDM-Switch, DSP
  * configuration for nCS3: DSP
  * [03]    1    - 16 Bit bus width
  * [02:00] 100  - variable latency I/O
  */
-#define CFG_MSC1_VAL           0x123C593C /* TDM switch, DSP               */
+#define CONFIG_SYS_MSC1_VAL            0x123C593C /* TDM switch, DSP               */
 
 /* This is the configuration for nCS4/5 -> ExtBus, LAN Controller
  *
  * [03]    1    - 16 Bit bus width
  * [02:00] 100  - variable latency I/O
  */
-#define CFG_MSC2_VAL           0x123C6CDC /* extra bus, LAN controller     */
+#define CONFIG_SYS_MSC2_VAL            0x123C6CDC /* extra bus, LAN controller     */
 
 /* MDCNFG: SDRAM Configuration Register
  *
  * [00]      1   - enable  SDRAM partition 0
  */
 /* use the configuration above but disable partition 0 */
-#define CFG_MDCNFG_VAL         0x000019c8
+#define CONFIG_SYS_MDCNFG_VAL          0x000019c8
 
 /* MDREFR: SDRAM Refresh Control Register
  *
  * [12]    1     - E0PIN: disable SDCKE0
  * [11:00] 000000011000 - (64ms/8192)*MemClkFreq/32 = 24
  */
-#define CFG_MDREFR_VAL         0x0081D018
+#define CONFIG_SYS_MDREFR_VAL          0x0081D018
 
 /* MDMRS: Mode Register Set Configuration Register
  *
  * [03]      0       - MDADD0: SDRAM0/1 burst Type. Fixed to sequential.
  * [02:00]   010     - MDBL0:  SDRAM0/1 burst Length. Fixed to 4.
  */
-#define CFG_MDMRS_VAL          0x00020022
+#define CONFIG_SYS_MDMRS_VAL           0x00020022
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000000
-#define CFG_MCMEM0_VAL         0x00000000
-#define CFG_MCMEM1_VAL         0x00000000
-#define CFG_MCATT0_VAL         0x00000000
-#define CFG_MCATT1_VAL         0x00000000
-#define CFG_MCIO0_VAL          0x00000000
-#define CFG_MCIO1_VAL          0x00000000
+#define CONFIG_SYS_MECR_VAL            0x00000000
+#define CONFIG_SYS_MCMEM0_VAL          0x00000000
+#define CONFIG_SYS_MCMEM1_VAL          0x00000000
+#define CONFIG_SYS_MCATT0_VAL          0x00000000
+#define CONFIG_SYS_MCATT1_VAL          0x00000000
+#define CONFIG_SYS_MCIO0_VAL           0x00000000
+#define CONFIG_SYS_MCIO1_VAL           0x00000000
 #endif
 
 /*
  * GPIO settings
  */
-#define CFG_GPSR0_VAL          0xFFFFFFFF
-#define CFG_GPSR1_VAL          0xFFFFFFFF
-#define CFG_GPSR2_VAL          0xFFFFFFFF
-#define CFG_GPCR0_VAL          0x08022080
-#define CFG_GPCR1_VAL          0x00000000
-#define CFG_GPCR2_VAL          0x00000000
-#define CFG_GPDR0_VAL          0xCD82A878
-#define CFG_GPDR1_VAL          0xFCFFAB80
-#define CFG_GPDR2_VAL          0x0001FFFF
-#define CFG_GAFR0_L_VAL                0x80000000
-#define CFG_GAFR0_U_VAL                0xA5254010
-#define CFG_GAFR1_L_VAL                0x599A9550
-#define CFG_GAFR1_U_VAL                0xAAA5AAAA
-#define CFG_GAFR2_L_VAL                0xAAAAAAAA
-#define CFG_GAFR2_U_VAL                0x00000002
+#define CONFIG_SYS_GPSR0_VAL           0xFFFFFFFF
+#define CONFIG_SYS_GPSR1_VAL           0xFFFFFFFF
+#define CONFIG_SYS_GPSR2_VAL           0xFFFFFFFF
+#define CONFIG_SYS_GPCR0_VAL           0x08022080
+#define CONFIG_SYS_GPCR1_VAL           0x00000000
+#define CONFIG_SYS_GPCR2_VAL           0x00000000
+#define CONFIG_SYS_GPDR0_VAL           0xCD82A878
+#define CONFIG_SYS_GPDR1_VAL           0xFCFFAB80
+#define CONFIG_SYS_GPDR2_VAL           0x0001FFFF
+#define CONFIG_SYS_GAFR0_L_VAL         0x80000000
+#define CONFIG_SYS_GAFR0_U_VAL         0xA5254010
+#define CONFIG_SYS_GAFR1_L_VAL         0x599A9550
+#define CONFIG_SYS_GAFR1_U_VAL         0xAAA5AAAA
+#define CONFIG_SYS_GAFR2_L_VAL         0xAAAAAAAA
+#define CONFIG_SYS_GAFR2_U_VAL         0x00000002
 
 /* FIXME: set GPIO_RER/FER */
 
-#define CFG_PSSR_VAL        0x20
+#define CONFIG_SYS_PSSR_VAL        0x20
 
 /*
  * Memory settings
  */
 
-#define CFG_MSC0_VAL            0x2ef15af0
-#define CFG_MSC1_VAL            0x00003ff4
-#define CFG_MSC2_VAL            0x7ff07ff0
-#define CFG_MDCNFG_VAL          0x09a909a9
-#define CFG_MDREFR_VAL          0x038ff030
-#define CFG_MDMRS_VAL           0x00220022
+#define CONFIG_SYS_MSC0_VAL            0x2ef15af0
+#define CONFIG_SYS_MSC1_VAL            0x00003ff4
+#define CONFIG_SYS_MSC2_VAL            0x7ff07ff0
+#define CONFIG_SYS_MDCNFG_VAL          0x09a909a9
+#define CONFIG_SYS_MDREFR_VAL          0x038ff030
+#define CONFIG_SYS_MDMRS_VAL           0x00220022
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL        0x00000000
-#define CFG_MCMEM0_VAL      0x00000000
-#define CFG_MCMEM1_VAL      0x00000000
-#define CFG_MCATT0_VAL      0x00000000
-#define CFG_MCATT1_VAL      0x00000000
-#define CFG_MCIO0_VAL       0x00000000
-#define CFG_MCIO1_VAL       0x00000000
+#define CONFIG_SYS_MECR_VAL        0x00000000
+#define CONFIG_SYS_MCMEM0_VAL      0x00000000
+#define CONFIG_SYS_MCMEM1_VAL      0x00000000
+#define CONFIG_SYS_MCATT0_VAL      0x00000000
+#define CONFIG_SYS_MCATT1_VAL      0x00000000
+#define CONFIG_SYS_MCIO0_VAL       0x00000000
+#define CONFIG_SYS_MCIO1_VAL       0x00000000
 
 #define CSB226_USER_LED0       0x00000008
 #define CSB226_USER_LED1       0x00000010
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS     1      /* max number of memory banks       */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sect. on one chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sect. on one chip  */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT    (2*CFG_HZ) /* Timeout for Flash Erase       */
-#define CFG_FLASH_WRITE_TOUT    (2*CFG_HZ) /* Timeout for Flash Write       */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase       */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write       */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR            (PHYS_FLASH_1 + 0x1C000)
index 13892e6c135bc117a139a565886025118afb4bf0..393e9929a143d83a0904a5115fb9e9aa96aa3dc8 100644 (file)
  *
  */
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 /*
  * KGDB Configuration
  * Miscellaneous configurable options
  *
  */
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "    /* hush shell secondary prompt */
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "    /* hush shell secondary prompt */
 #endif
 
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
-#define CFG_CLKS_IN_HZ         1       /* everything, incl board info, in Hz */
-#define CFG_EXTBDINFO          1       /* To use extended board_info (bd_t) */
-#define CFG_LOAD_ADDR          0x100000 /* default load address */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_CLKS_IN_HZ          1       /* everything, incl board info, in Hz */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_info (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000 /* default load address */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * watchdog configuration
  * UART configuration
  *
  */
-#define CFG_EXT_SERIAL_CLOCK   3868400 /* use external serial clock */
-#undef  CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59 */
-#undef  CFG_BASE_BAUD
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    3868400 /* use external serial clock */
+#undef  CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59 */
+#undef  CONFIG_SYS_BASE_BAUD
 #define CONFIG_BAUDRATE                38400   /* Default baud rate */
-#define CFG_BAUDRATE_TABLE      \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
     { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  *
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
-#define CFG_I2C_SPEED          100000  /* I2C speed                    */
-#define CFG_I2C_SLAVE          0x7F    /* I2C slave address            */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed                    */
+#define CONFIG_SYS_I2C_SLAVE           0x7F    /* I2C slave address            */
 
 /*
  * MII PHY configuration
 #undef  CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 #define CONFIG_PCI_BOOTDELAY    0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS  0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*
  * IDE stuff
  *
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_SIZE         0x02000000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 KB for Monitor */
-#define CFG_MALLOC_LEN         (128 * 1024) /* Reserve 128 KB for malloc() */
-
-#if CFG_MONITOR_BASE < CFG_FLASH_BASE
-#define CFG_RAMSTART
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_SIZE          0x02000000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 KB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024) /* Reserve 128 KB for malloc() */
+
+#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_RAMSTART
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
  * FLASH Device configuration
  *
  */
-#define CFG_FLASH_CFI          1       /* flash is CFI conformant      */
+#define CONFIG_SYS_FLASH_CFI           1       /* flash is CFI conformant      */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* use common cfi driver        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_BANKS    1       /* max # of memory banks        */
-#define CFG_FLASH_INCREMENT    0       /* there is only one bank       */
-#define CFG_MAX_FLASH_SECT     128     /* max # of sectors on one chip */
-#define CFG_FLASH_PROTECTION   1       /* hardware flash protection    */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max # of memory banks        */
+#define CONFIG_SYS_FLASH_INCREMENT     0       /* there is only one bank       */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max # of sectors on one chip */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* hardware flash protection    */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
 /*
  * On Chip Memory location/size
  *
  */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
 
 /*
  * Global info and initial stack
  *
  */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of on-chip SRAM */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128 /* byte size reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of on-chip SRAM */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* byte size reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Miscellaneous board specific definitions
  *
  */
-#define CFG_I2C_PLL_ADDR       0x58    /* I2C address of AMIS FS6377-01 PLL */
+#define CONFIG_SYS_I2C_PLL_ADDR        0x58    /* I2C address of AMIS FS6377-01 PLL */
 #define CONFIG_I2CFAST         1       /* enable "i2cfast" env. setting     */
 
 /*
index 064498271663a31396c3270c55fb5ac73d3f3ded..af382526fa2ae5ce7f5a2010548912f0a0fcc9b3 100644 (file)
  *
  */
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 /*
  * KGDB Configuration
  * Miscellaneous configurable options
  *
  */
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "    /* hush shell secondary prompt */
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "    /* hush shell secondary prompt */
 #endif
 
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
-#define CFG_CLKS_IN_HZ         1       /* everything, incl board info, in Hz */
-#define CFG_EXTBDINFO          1       /* To use extended board_info (bd_t) */
-#define CFG_LOAD_ADDR          0x100000 /* default load address */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_CLKS_IN_HZ          1       /* everything, incl board info, in Hz */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_info (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000 /* default load address */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * watchdog configuration
  * UART configuration
  *
  */
-#undef CFG_EXT_SERIAL_CLOCK            /* use internal serial clock */
-#undef  CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59 */
-#define CFG_BASE_BAUD          691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* use internal serial clock */
+#undef  CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59 */
+#define CONFIG_SYS_BASE_BAUD           691200
 #define CONFIG_BAUDRATE                38400   /* Default baud rate */
-#define CFG_BAUDRATE_TABLE      \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
     { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  *
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
-#define CFG_I2C_SPEED          100000  /* I2C speed                    */
-#define CFG_I2C_SLAVE          0x7F    /* I2C slave address            */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed                    */
+#define CONFIG_SYS_I2C_SLAVE           0x7F    /* I2C slave address            */
 
 /*
  * MII PHY configuration
 #undef  CONFIG_PCI_SCAN_SHOW            /* print pci devices @ startup  */
 #define CONFIG_PCI_BOOTDELAY    0       /* enable pci bootdelay variable*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
-#define CFG_PCI_PTM1LA  0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA  0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS  0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*
  * IDE stuff
  *
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF800000
-#define CFG_FLASH_SIZE         0x00800000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 KB for Monitor */
-#define CFG_MALLOC_LEN         (128 * 1024) /* Reserve 128 KB for malloc() */
-
-#if CFG_MONITOR_BASE < CFG_FLASH_BASE
-#define CFG_RAMSTART
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF800000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 KB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024) /* Reserve 128 KB for malloc() */
+
+#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_RAMSTART
 #endif
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
  * FLASH Device configuration
  *
  */
-#define CFG_FLASH_CFI          1       /* flash is CFI conformant      */
+#define CONFIG_SYS_FLASH_CFI           1       /* flash is CFI conformant      */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* use common cfi driver        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_BANKS    1       /* max # of memory banks        */
-#define CFG_FLASH_INCREMENT    0       /* there is only one bank       */
-#define CFG_MAX_FLASH_SECT     64      /* max # of sectors on one chip */
-#define CFG_FLASH_PROTECTION   1       /* hardware flash protection    */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max # of memory banks        */
+#define CONFIG_SYS_FLASH_INCREMENT     0       /* there is only one bank       */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max # of sectors on one chip */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* hardware flash protection    */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
 /*
  * On Chip Memory location/size
  *
  */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
 
 /*
  * Global info and initial stack
  *
  */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of on-chip SRAM */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128 /* byte size reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of on-chip SRAM */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128 /* byte size reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Miscellaneous board specific definitions
index 0760084fb24c6c908f3a1650d4f2f9647a3e22ae..38fd25cb66825d5003ee44621cec7c12b8a34ba1 100644 (file)
@@ -43,7 +43,7 @@
 #define CONFIG_INITRD_TAG      1
 
 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
-#define CFG_USE_MAIN_OSCILLATOR                1
+#define CONFIG_SYS_USE_MAIN_OSCILLATOR         1
 /* flash */
 #define MC_PUIA_VAL    0x00000000
 #define MC_PUP_VAL     0x00000000
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_BAUDRATE 115200
 
-#define CFG_AT91C_BRGR_DIVISOR 75      /* hardcode so no __divsi3 : AT91C_MASTER_CLOCK / baudrate / 16 */
+#define CONFIG_SYS_AT91C_BRGR_DIVISOR  75      /* hardcode so no __divsi3 : AT91C_MASTER_CLOCK / baudrate / 16 */
 
 /*
  * Hardware drivers
 
 #ifdef NAND_SUPPORT_HAS_BEEN_FIXED     /* NAND support is broken / unimplemented */
 
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
 #define SECTORSIZE 512
 
 #define ADDR_COLUMN 1
 #define PHYS_SDRAM                     0x20000000
 #define PHYS_SDRAM_SIZE                        0x4000000  /* 64 megs */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 512*1024 - 4
-#define CFG_ALT_MEMTEST                        1
-#define CFG_MEMTEST_SCRATCH            CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 4
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 512*1024 - 4
+#define CONFIG_SYS_ALT_MEMTEST                 1
+#define CONFIG_SYS_MEMTEST_SCRATCH             CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 4
 
 #define CONFIG_DRIVER_ETHER
 #define CONFIG_NET_RETRY_COUNT         20
 #undef CONFIG_AT91C_USE_RMII
 
 #undef CONFIG_HAS_DATAFLASH
-#define CFG_SPI_WRITE_TOUT             (5*CFG_HZ)
-#define CFG_MAX_DATAFLASH_BANKS                0
-#define CFG_MAX_DATAFLASH_PAGES                16384
-#define CFG_DATAFLASH_LOGIC_ADDR_CS0   0xC0000000      /* Logical adress for CS0 */
-#define CFG_DATAFLASH_LOGIC_ADDR_CS3   0xD0000000      /* Logical adress for CS3 */
+#define CONFIG_SYS_SPI_WRITE_TOUT              (5*CONFIG_SYS_HZ)
+#define CONFIG_SYS_MAX_DATAFLASH_BANKS         0
+#define CONFIG_SYS_MAX_DATAFLASH_PAGES         16384
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0    0xC0000000      /* Logical adress for CS0 */
+#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS3    0xD0000000      /* Logical adress for CS3 */
 
 /*
  * FLASH Device configuration
  */
 #define PHYS_FLASH_1                   0x10000000
 #define PHYS_FLASH_SIZE                        0x800000  /* 8 megs main flash */
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_FLASH_CFI          1       /* flash is CFI conformant      */
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_CFI           1       /* flash is CFI conformant      */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* use common cfi driver        */
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_BANKS    1       /* max # of memory banks        */
-#define CFG_FLASH_INCREMENT    0       /* there is only one bank       */
-#define CFG_FLASH_PROTECTION   1       /* hardware flash protection    */
-#define CFG_MAX_FLASH_SECT             64
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max # of memory banks        */
+#define CONFIG_SYS_FLASH_INCREMENT     0       /* there is only one bank       */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* hardware flash protection    */
+#define CONFIG_SYS_MAX_FLASH_SECT              64
 
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_FIRST_SECTOR 3
-#define CFG_JFFS2_NUM_BANKS    1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  3
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #undef CONFIG_ENV_IS_IN_DATAFLASH
 
 #ifdef CONFIG_ENV_IS_IN_DATAFLASH
 #define CONFIG_ENV_OFFSET                      0x20000
-#define CONFIG_ENV_ADDR                        (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                        0x2000  /* 0x8000 */
 #else
 #define CONFIG_ENV_IS_IN_FLASH         1
 #endif /* CONFIG_ENV_IS_IN_DATAFLASH */
 
 
-#define CFG_LOAD_ADDR          0x21000000  /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x21000000  /* default load address */
 
-#define CFG_BAUDRATE_TABLE     { 115200, 57600, 38400, 19200, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 57600, 38400, 19200, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "      /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_PROMPT              "U-Boot> "      /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
 
-#define CFG_HZ 1000
-#define CFG_HZ_CLOCK AT91C_MASTER_CLOCK/2      /* AT91C_TC0_CMR is implicitly set to */
+#define CONFIG_SYS_HZ 1000
+#define CONFIG_SYS_HZ_CLOCK AT91C_MASTER_CLOCK/2       /* AT91C_TC0_CMR is implicitly set to */
                                                /* AT91C_TC_TIMER_DIV1_CLOCK */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
index ae2f6a5a34c83b619e2e6fd0aaf36e82085a6aa2..6885b2cbde0110be414ef6fb96f6d8f233571e95 100644 (file)
 /* Board */
 /*=======*/
 #define DV_EVM
-#define CFG_NAND_SMALLPAGE
-#define CFG_USE_NOR
+#define CONFIG_SYS_NAND_SMALLPAGE
+#define CONFIG_SYS_USE_NOR
 /*===================*/
 /* SoC Configuration */
 /*===================*/
 #define CONFIG_ARM926EJS                       /* arm926ejs CPU core */
 #define CONFIG_SYS_CLK_FREQ    297000000       /* Arm Clock frequency */
-#define CFG_TIMERBASE          0x01c21400      /* use timer 0 */
-#define CFG_HZ_CLOCK           27000000        /* Timer Input clock freq */
-#define CFG_HZ                 1000
+#define CONFIG_SYS_TIMERBASE           0x01c21400      /* use timer 0 */
+#define CONFIG_SYS_HZ_CLOCK            27000000        /* Timer Input clock freq */
+#define CONFIG_SYS_HZ                  1000
 /*====================================================*/
 /* EEPROM definitions for Atmel 24C256BN SEEPROM chip */
 /* on Sonata/DV_EVM board. No EEPROM on schmoogie.    */
 /*====================================================*/
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_I2C_EEPROM_ADDR            0x50
-#define CFG_EEPROM_PAGE_WRITE_BITS     6
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      6
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 /*=============*/
 /* Memory Info */
 /*=============*/
-#define CFG_MALLOC_LEN         (0x10000 + 128*1024)    /* malloc() len */
-#define CFG_GBL_DATA_SIZE      128             /* reserved for initial data */
-#define CFG_MEMTEST_START      0x80000000      /* memtest start address */
-#define CFG_MEMTEST_END                0x81000000      /* 16MB RAM test */
+#define CONFIG_SYS_MALLOC_LEN          (0x10000 + 128*1024)    /* malloc() len */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* reserved for initial data */
+#define CONFIG_SYS_MEMTEST_START       0x80000000      /* memtest start address */
+#define CONFIG_SYS_MEMTEST_END         0x81000000      /* 16MB RAM test */
 #define CONFIG_NR_DRAM_BANKS   1               /* we have 1 bank of DRAM */
 #define CONFIG_STACKSIZE       (256*1024)      /* regular stack */
 #define PHYS_SDRAM_1           0x80000000      /* DDR Start */
 /*====================*/
 /* Serial Driver info */
 /*====================*/
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   4               /* NS16550 register size */
-#define CFG_NS16550_COM1       0x01c20000      /* Base address of UART0 */
-#define CFG_NS16550_CLK                27000000        /* Input clock to NS16550 */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    4               /* NS16550 register size */
+#define CONFIG_SYS_NS16550_COM1        0x01c20000      /* Base address of UART0 */
+#define CONFIG_SYS_NS16550_CLK         27000000        /* Input clock to NS16550 */
 #define CONFIG_CONS_INDEX      1               /* use UART0 for console */
 #define CONFIG_BAUDRATE                115200          /* Default baud rate */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 /*===================*/
 /* I2C Configuration */
 /*===================*/
 #define CONFIG_HARD_I2C
 #define CONFIG_DRIVER_DAVINCI_I2C
-#define CFG_I2C_SPEED          80000   /* 100Kbps won't work, silicon bug */
-#define CFG_I2C_SLAVE          10      /* Bogus, master-only in U-Boot */
+#define CONFIG_SYS_I2C_SPEED           80000   /* 100Kbps won't work, silicon bug */
+#define CONFIG_SYS_I2C_SLAVE           10      /* Bogus, master-only in U-Boot */
 /*==================================*/
 /* Network & Ethernet Configuration */
 /*==================================*/
 /*=====================*/
 /* Flash & Environment */
 /*=====================*/
-#ifdef CFG_USE_NAND
+#ifdef CONFIG_SYS_USE_NAND
 #undef CONFIG_ENV_IS_IN_FLASH
-#define CFG_NO_FLASH
+#define CONFIG_SYS_NO_FLASH
 #define CONFIG_ENV_IS_IN_NAND          /* U-Boot env in NAND Flash  */
-#ifdef CFG_NAND_SMALLPAGE
+#ifdef CONFIG_SYS_NAND_SMALLPAGE
 #define CONFIG_ENV_SECT_SIZE   512     /* Env sector Size */
 #define CONFIG_ENV_SIZE                SZ_16K
 #else
 #endif
 #define CONFIG_SKIP_LOWLEVEL_INIT      /* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT     /* to a proper address, init done */
-#define CFG_NAND_BASE          0x02000000
-#define CFG_NAND_HW_ECC
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices */
+#define CONFIG_SYS_NAND_BASE           0x02000000
+#define CONFIG_SYS_NAND_HW_ECC
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices */
 #define NAND_MAX_CHIPS         1
 #define CONFIG_ENV_OFFSET              0x0     /* Block 0--not used by bootcode */
 #define DEF_BOOTM              ""
-#elif defined(CFG_USE_NOR)
+#elif defined(CONFIG_SYS_USE_NOR)
 #ifdef CONFIG_NOR_UART_BOOT
 #define CONFIG_SKIP_LOWLEVEL_INIT      /* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT     /* to a proper address, init done */
 #undef CONFIG_SKIP_RELOCATE_UBOOT
 #endif
 #define CONFIG_ENV_IS_IN_FLASH
-#undef CFG_NO_FLASH
+#undef CONFIG_SYS_NO_FLASH
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_MAX_FLASH_BANKS    1               /* max number of flash banks */
-#define CFG_FLASH_SECT_SZ      0x10000         /* 64KB sect size AMD Flash */
-#define CONFIG_ENV_OFFSET              (CFG_FLASH_SECT_SZ*3)
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of flash banks */
+#define CONFIG_SYS_FLASH_SECT_SZ       0x10000         /* 64KB sect size AMD Flash */
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_FLASH_SECT_SZ*3)
 #define PHYS_FLASH_1           0x02000000      /* CS2 Base address      */
-#define CFG_FLASH_BASE         PHYS_FLASH_1    /* Flash Base for U-Boot */
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1    /* Flash Base for U-Boot */
 #define PHYS_FLASH_SIZE                0x2000000       /* Flash size 32MB       */
-#define CFG_MAX_FLASH_SECT     (PHYS_FLASH_SIZE/CFG_FLASH_SECT_SZ)
-#define CONFIG_ENV_SECT_SIZE   CFG_FLASH_SECT_SZ       /* Env sector Size */
+#define CONFIG_SYS_MAX_FLASH_SECT      (PHYS_FLASH_SIZE/CONFIG_SYS_FLASH_SECT_SZ)
+#define CONFIG_ENV_SECT_SIZE   CONFIG_SYS_FLASH_SECT_SZ        /* Env sector Size */
 #endif
 /*==============================*/
 /* U-Boot general configuration */
 #define CONFIG_MISC_INIT_R
 #undef CONFIG_BOOTDELAY
 #define CONFIG_BOOTFILE                "uImage"        /* Boot file name */
-#define CFG_PROMPT             "U-Boot > "     /* Monitor Command Prompt */
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size  */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print buffer sz */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_LOAD_ADDR          0x80700000      /* default Linux kernel load address */
+#define CONFIG_SYS_PROMPT              "U-Boot > "     /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print buffer sz */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_LOAD_ADDR           0x80700000      /* default Linux kernel load address */
 #define CONFIG_VERSION_VARIABLE
 #define CONFIG_AUTO_COMPLETE           /* Won't work with hush so far, may be later */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #define CONFIG_CMDLINE_EDITING
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 #define CONFIG_CRC32_VERIFY
 #define CONFIG_MX_CYCLIC
 /*===================*/
 #undef CONFIG_CMD_BDI
 #undef CONFIG_CMD_FPGA
 #undef CONFIG_CMD_SETGETDCR
-#ifdef CFG_USE_NAND
+#ifdef CONFIG_SYS_USE_NAND
 #undef CONFIG_CMD_FLASH
 #undef CONFIG_CMD_IMLS
 #define CONFIG_CMD_NAND
-#elif defined(CFG_USE_NOR)
+#elif defined(CONFIG_SYS_USE_NOR)
 #define CONFIG_CMD_JFFS2
 #else
-#error "Either CFG_USE_NAND or CFG_USE_NOR _MUST_ be defined !!!"
+#error "Either CONFIG_SYS_USE_NAND or CONFIG_SYS_USE_NOR _MUST_ be defined !!!"
 #endif
 /*=======================*/
 /* KGDB support (if any) */
index 016a8970d9e65068ba9847a284b99cfcb8b0af49..8d7bcf57cc928149893d83f4662a63f57f02363f 100644 (file)
 /* Board */
 /*=======*/
 #define SCHMOOGIE
-#define CFG_NAND_LARGEPAGE
-#define CFG_USE_NAND
+#define CONFIG_SYS_NAND_LARGEPAGE
+#define CONFIG_SYS_USE_NAND
 /*===================*/
 /* SoC Configuration */
 /*===================*/
 #define CONFIG_ARM926EJS                       /* arm926ejs CPU core */
 #define CONFIG_SYS_CLK_FREQ    297000000       /* Arm Clock frequency */
-#define CFG_TIMERBASE          0x01c21400      /* use timer 0 */
-#define CFG_HZ_CLOCK           27000000        /* Timer Input clock freq */
-#define CFG_HZ                 1000
+#define CONFIG_SYS_TIMERBASE           0x01c21400      /* use timer 0 */
+#define CONFIG_SYS_HZ_CLOCK            27000000        /* Timer Input clock freq */
+#define CONFIG_SYS_HZ                  1000
 /*=============*/
 /* Memory Info */
 /*=============*/
-#define CFG_MALLOC_LEN         (0x10000 + 256*1024)    /* malloc() len */
-#define CFG_GBL_DATA_SIZE      128             /* reserved for initial data */
-#define CFG_MEMTEST_START      0x80000000      /* memtest start address */
-#define CFG_MEMTEST_END                0x81000000      /* 16MB RAM test */
+#define CONFIG_SYS_MALLOC_LEN          (0x10000 + 256*1024)    /* malloc() len */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* reserved for initial data */
+#define CONFIG_SYS_MEMTEST_START       0x80000000      /* memtest start address */
+#define CONFIG_SYS_MEMTEST_END         0x81000000      /* 16MB RAM test */
 #define CONFIG_NR_DRAM_BANKS   1               /* we have 1 bank of DRAM */
 #define CONFIG_STACKSIZE       (256*1024)      /* regular stack */
 #define PHYS_SDRAM_1           0x80000000      /* DDR Start */
 /*====================*/
 /* Serial Driver info */
 /*====================*/
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   4               /* NS16550 register size */
-#define CFG_NS16550_COM1       0x01c20000      /* Base address of UART0 */
-#define CFG_NS16550_CLK                27000000        /* Input clock to NS16550 */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    4               /* NS16550 register size */
+#define CONFIG_SYS_NS16550_COM1        0x01c20000      /* Base address of UART0 */
+#define CONFIG_SYS_NS16550_CLK         27000000        /* Input clock to NS16550 */
 #define CONFIG_CONS_INDEX      1               /* use UART0 for console */
 #define CONFIG_BAUDRATE                115200          /* Default baud rate */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 /*===================*/
 /* I2C Configuration */
 /*===================*/
 #define CONFIG_HARD_I2C
 #define CONFIG_DRIVER_DAVINCI_I2C
-#define CFG_I2C_SPEED          80000   /* 100Kbps won't work, silicon bug */
-#define CFG_I2C_SLAVE          10      /* Bogus, master-only in U-Boot */
+#define CONFIG_SYS_I2C_SPEED           80000   /* 100Kbps won't work, silicon bug */
+#define CONFIG_SYS_I2C_SLAVE           10      /* Bogus, master-only in U-Boot */
 /*==================================*/
 /* Network & Ethernet Configuration */
 /*==================================*/
 /* Flash & Environment */
 /*=====================*/
 #undef CONFIG_ENV_IS_IN_FLASH
-#define CFG_NO_FLASH
+#define CONFIG_SYS_NO_FLASH
 #define CONFIG_ENV_IS_IN_NAND          /* U-Boot env in NAND Flash  */
 #define CONFIG_ENV_SECT_SIZE   2048    /* Env sector Size */
 #define CONFIG_ENV_SIZE                SZ_128K
 #define CONFIG_SKIP_LOWLEVEL_INIT      /* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT     /* to a proper address, init done */
-#define CFG_NAND_BASE          0x02000000
-#define CFG_NAND_HW_ECC
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices */
+#define CONFIG_SYS_NAND_BASE           0x02000000
+#define CONFIG_SYS_NAND_HW_ECC
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices */
 #define NAND_MAX_CHIPS         1
 #define CONFIG_ENV_OFFSET              0x0     /* Block 0--not used by bootcode */
 /*=====================*/
 /* Board related stuff */
 /*=====================*/
 #define CONFIG_RTC_DS1307              /* RTC chip on SCHMOOGIE */
-#define CFG_I2C_RTC_ADDR       0x6f    /* RTC chip I2C address */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x6f    /* RTC chip I2C address */
 #define CONFIG_HAS_UID
 #define CONFIG_UID_DS28CM00            /* Unique ID on SCHMOOGIE */
-#define CFG_UID_ADDR           0x50    /* UID chip I2C address */
+#define CONFIG_SYS_UID_ADDR            0x50    /* UID chip I2C address */
 /*==============================*/
 /* U-Boot general configuration */
 /*==============================*/
 #define CONFIG_MISC_INIT_R
 #undef CONFIG_BOOTDELAY
 #define CONFIG_BOOTFILE                "uImage"        /* Boot file name */
-#define CFG_PROMPT             "U-Boot > "     /* Monitor Command Prompt */
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size  */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print buffer sz */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_LOAD_ADDR          0x80700000      /* default Linux kernel load address */
+#define CONFIG_SYS_PROMPT              "U-Boot > "     /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print buffer sz */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_LOAD_ADDR           0x80700000      /* default Linux kernel load address */
 #define CONFIG_VERSION_VARIABLE
 #define CONFIG_AUTO_COMPLETE           /* Won't work with hush so far, may be later */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #define CONFIG_CMDLINE_EDITING
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 #define CONFIG_CRC32_VERIFY
 #define CONFIG_MX_CYCLIC
 /*===================*/
index 39fb2a560356715bef9c84b17e3d627875c67950..e9cd5a6621040807306d5056c5d34103afed3578 100644 (file)
 
 /* Board */
 #define SFFSDR
-#define CFG_NAND_LARGEPAGE
-#define CFG_USE_NAND
-#define CFG_USE_DSPLINK                /* This is to prevent U-Boot from
+#define CONFIG_SYS_NAND_LARGEPAGE
+#define CONFIG_SYS_USE_NAND
+#define CONFIG_SYS_USE_DSPLINK         /* This is to prevent U-Boot from
                                 * powering ON the DSP. */
 /* SoC Configuration */
 #define CONFIG_ARM926EJS                       /* arm926ejs CPU core */
 #define CONFIG_SYS_CLK_FREQ    297000000       /* Arm Clock frequency */
-#define CFG_TIMERBASE          0x01c21400      /* use timer 0 */
-#define CFG_HZ_CLOCK           27000000        /* Timer Input clock freq */
-#define CFG_HZ                 1000
+#define CONFIG_SYS_TIMERBASE           0x01c21400      /* use timer 0 */
+#define CONFIG_SYS_HZ_CLOCK            27000000        /* Timer Input clock freq */
+#define CONFIG_SYS_HZ                  1000
 /* EEPROM definitions for Atmel 24LC64 EEPROM chip */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_I2C_EEPROM_ADDR            0x50
-#define CFG_EEPROM_PAGE_WRITE_BITS     5
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 /* Memory Info */
-#define CFG_MALLOC_LEN         (0x10000 + 256*1024)    /* malloc() len */
-#define CFG_GBL_DATA_SIZE      128             /* reserved for initial data */
-#define CFG_MEMTEST_START      0x80000000      /* memtest start address */
-#define CFG_MEMTEST_END                0x81000000      /* 16MB RAM test */
+#define CONFIG_SYS_MALLOC_LEN          (0x10000 + 256*1024)    /* malloc() len */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* reserved for initial data */
+#define CONFIG_SYS_MEMTEST_START       0x80000000      /* memtest start address */
+#define CONFIG_SYS_MEMTEST_END         0x81000000      /* 16MB RAM test */
 #define CONFIG_NR_DRAM_BANKS   1               /* we have 1 bank of DRAM */
 #define CONFIG_STACKSIZE       (256*1024)      /* regular stack */
 #define PHYS_SDRAM_1           0x80000000      /* DDR Start */
 #define PHYS_SDRAM_1_SIZE      0x08000000      /* DDR size 128MB */
 #define DDR_4BANKS                             /* 4-bank DDR2 (128MB) */
 /* Serial Driver info */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   4               /* NS16550 register size */
-#define CFG_NS16550_COM1       0x01c20000      /* Base address of UART0 */
-#define CFG_NS16550_CLK                27000000        /* Input clock to NS16550 */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    4               /* NS16550 register size */
+#define CONFIG_SYS_NS16550_COM1        0x01c20000      /* Base address of UART0 */
+#define CONFIG_SYS_NS16550_CLK         27000000        /* Input clock to NS16550 */
 #define CONFIG_CONS_INDEX      1               /* use UART0 for console */
 #define CONFIG_BAUDRATE                115200          /* Default baud rate */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 /* I2C Configuration */
 #define CONFIG_HARD_I2C
 #define CONFIG_DRIVER_DAVINCI_I2C
-#define CFG_I2C_SPEED          80000   /* 100Kbps won't work, silicon bug */
-#define CFG_I2C_SLAVE          10      /* Bogus, master-only in U-Boot */
+#define CONFIG_SYS_I2C_SPEED           80000   /* 100Kbps won't work, silicon bug */
+#define CONFIG_SYS_I2C_SLAVE           10      /* Bogus, master-only in U-Boot */
 /* Network & Ethernet Configuration */
 #define CONFIG_DRIVER_TI_EMAC
 #define CONFIG_MII
 #define CONFIG_OVERWRITE_ETHADDR_ONCE
 /* Flash & Environment */
 #undef CONFIG_ENV_IS_IN_FLASH
-#define CFG_NO_FLASH
+#define CONFIG_SYS_NO_FLASH
 #define CONFIG_ENV_IS_IN_NAND          /* U-Boot env in NAND Flash  */
 #define CONFIG_ENV_SECT_SIZE   2048    /* Env sector Size */
 #define CONFIG_ENV_SIZE                SZ_128K
 #define CONFIG_SKIP_LOWLEVEL_INIT      /* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT     /* to a proper address, init done */
-#define CFG_NAND_BASE          0x02000000
-#define CFG_NAND_HW_ECC
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices */
+#define CONFIG_SYS_NAND_BASE           0x02000000
+#define CONFIG_SYS_NAND_HW_ECC
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices */
 #define NAND_MAX_CHIPS         1
 #define CONFIG_ENV_OFFSET              0x0     /* Block 0--not used by bootcode */
 /* I2C switch definitions for PCA9543 chip */
-#define CFG_I2C_PCA9543_ADDR           0x70
-#define CFG_I2C_PCA9543_ADDR_LEN       0       /* Single register. */
-#define CFG_I2C_PCA9543_ENABLE_CH0     0x01    /* Enable channel 0. */
+#define CONFIG_SYS_I2C_PCA9543_ADDR            0x70
+#define CONFIG_SYS_I2C_PCA9543_ADDR_LEN        0       /* Single register. */
+#define CONFIG_SYS_I2C_PCA9543_ENABLE_CH0      0x01    /* Enable channel 0. */
 /* U-Boot general configuration */
 #undef CONFIG_USE_IRQ                          /* No IRQ/FIQ in U-Boot */
 #define CONFIG_MISC_INIT_R
 #define CONFIG_BOOTDELAY       5               /* Autoboot after 5 seconds. */
 #define CONFIG_BOOTFILE                "uImage"        /* Boot file name */
-#define CFG_PROMPT             "U-Boot > "     /* Monitor Command Prompt */
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size  */
-#define CFG_PBSIZE                                                     \
-               (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)  /* Print buffer size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_LOAD_ADDR          0x80700000      /* Default Linux kernel
+#define CONFIG_SYS_PROMPT              "U-Boot > "     /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_PBSIZE                                                      \
+               (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)    /* Print buffer size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_LOAD_ADDR           0x80700000      /* Default Linux kernel
                                                 * load address. */
 #define CONFIG_VERSION_VARIABLE
 #define CONFIG_AUTO_COMPLETE           /* Won't work with hush so far,
                                         * may be later */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #define CONFIG_CMDLINE_EDITING
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 #define CONFIG_CRC32_VERIFY
 #define CONFIG_MX_CYCLIC
 /* Linux Information */
index bb42a545852998608d0cba5982a9fe9c116a5464..381eeb7a1f765bc3ef62fb79056f2dd09b2c0f68 100644 (file)
 /* Board */
 /*=======*/
 #define SONATA_BOARD
-#define CFG_NAND_SMALLPAGE
-#define CFG_USE_NOR
+#define CONFIG_SYS_NAND_SMALLPAGE
+#define CONFIG_SYS_USE_NOR
 /*===================*/
 /* SoC Configuration */
 /*===================*/
 #define CONFIG_ARM926EJS                       /* arm926ejs CPU core */
 #define CONFIG_SYS_CLK_FREQ    297000000       /* Arm Clock frequency */
-#define CFG_TIMERBASE          0x01c21400      /* use timer 0 */
-#define CFG_HZ_CLOCK           27000000        /* Timer Input clock freq */
-#define CFG_HZ                 1000
+#define CONFIG_SYS_TIMERBASE           0x01c21400      /* use timer 0 */
+#define CONFIG_SYS_HZ_CLOCK            27000000        /* Timer Input clock freq */
+#define CONFIG_SYS_HZ                  1000
 /*====================================================*/
 /* EEPROM definitions for Atmel 24C256BN SEEPROM chip */
 /* on Sonata/DV_EVM board. No EEPROM on schmoogie.    */
 /*====================================================*/
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_I2C_EEPROM_ADDR            0x50
-#define CFG_EEPROM_PAGE_WRITE_BITS     6
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      6
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 /*=============*/
 /* Memory Info */
 /*=============*/
-#define CFG_MALLOC_LEN         (0x10000 + 128*1024)    /* malloc() len */
-#define CFG_GBL_DATA_SIZE      128             /* reserved for initial data */
-#define CFG_MEMTEST_START      0x80000000      /* memtest start address */
-#define CFG_MEMTEST_END                0x81000000      /* 16MB RAM test */
+#define CONFIG_SYS_MALLOC_LEN          (0x10000 + 128*1024)    /* malloc() len */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* reserved for initial data */
+#define CONFIG_SYS_MEMTEST_START       0x80000000      /* memtest start address */
+#define CONFIG_SYS_MEMTEST_END         0x81000000      /* 16MB RAM test */
 #define CONFIG_NR_DRAM_BANKS   1               /* we have 1 bank of DRAM */
 #define CONFIG_STACKSIZE       (256*1024)      /* regular stack */
 #define PHYS_SDRAM_1           0x80000000      /* DDR Start */
 /*====================*/
 /* Serial Driver info */
 /*====================*/
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   4               /* NS16550 register size */
-#define CFG_NS16550_COM1       0x01c20000      /* Base address of UART0 */
-#define CFG_NS16550_CLK                27000000        /* Input clock to NS16550 */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    4               /* NS16550 register size */
+#define CONFIG_SYS_NS16550_COM1        0x01c20000      /* Base address of UART0 */
+#define CONFIG_SYS_NS16550_CLK         27000000        /* Input clock to NS16550 */
 #define CONFIG_CONS_INDEX      1               /* use UART0 for console */
 #define CONFIG_BAUDRATE                115200          /* Default baud rate */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 /*===================*/
 /* I2C Configuration */
 /*===================*/
 #define CONFIG_HARD_I2C
 #define CONFIG_DRIVER_DAVINCI_I2C
-#define CFG_I2C_SPEED          80000   /* 100Kbps won't work, silicon bug */
-#define CFG_I2C_SLAVE          10      /* Bogus, master-only in U-Boot */
+#define CONFIG_SYS_I2C_SPEED           80000   /* 100Kbps won't work, silicon bug */
+#define CONFIG_SYS_I2C_SLAVE           10      /* Bogus, master-only in U-Boot */
 /*==================================*/
 /* Network & Ethernet Configuration */
 /*==================================*/
 /*=====================*/
 /* Flash & Environment */
 /*=====================*/
-#ifdef CFG_USE_NAND
+#ifdef CONFIG_SYS_USE_NAND
 #undef CONFIG_ENV_IS_IN_FLASH
-#define CFG_NO_FLASH
+#define CONFIG_SYS_NO_FLASH
 #define CONFIG_ENV_IS_IN_NAND          /* U-Boot env in NAND Flash  */
 #define CONFIG_ENV_SECT_SIZE   512     /* Env sector Size */
 #define CONFIG_ENV_SIZE                SZ_16K
 #define CONFIG_SKIP_LOWLEVEL_INIT      /* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT     /* to a proper address, init done */
-#define CFG_NAND_BASE          0x02000000
-#define CFG_NAND_HW_ECC
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices */
+#define CONFIG_SYS_NAND_BASE           0x02000000
+#define CONFIG_SYS_NAND_HW_ECC
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices */
 #define NAND_MAX_CHIPS         1
 #define CONFIG_ENV_OFFSET              0x0     /* Block 0--not used by bootcode */
 #define DEF_BOOTM              ""
-#elif defined(CFG_USE_NOR)
+#elif defined(CONFIG_SYS_USE_NOR)
 #ifdef CONFIG_NOR_UART_BOOT
 #define CONFIG_SKIP_LOWLEVEL_INIT      /* U-Boot is loaded by a bootloader */
 #define CONFIG_SKIP_RELOCATE_UBOOT     /* to a proper address, init done */
 #undef CONFIG_SKIP_RELOCATE_UBOOT
 #endif
 #define CONFIG_ENV_IS_IN_FLASH
-#undef CFG_NO_FLASH
+#undef CONFIG_SYS_NO_FLASH
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_MAX_FLASH_BANKS    1               /* max number of flash banks */
-#define CFG_FLASH_SECT_SZ      0x20000         /* 128KB sect size AMD Flash */
-#define CONFIG_ENV_OFFSET              (CFG_FLASH_SECT_SZ*2)
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of flash banks */
+#define CONFIG_SYS_FLASH_SECT_SZ       0x20000         /* 128KB sect size AMD Flash */
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_FLASH_SECT_SZ*2)
 #define PHYS_FLASH_1           0x02000000      /* CS2 Base address      */
-#define CFG_FLASH_BASE         PHYS_FLASH_1    /* Flash Base for U-Boot */
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1    /* Flash Base for U-Boot */
 #define PHYS_FLASH_SIZE                0x2000000       /* Flash size 32MB       */
-#define CFG_MAX_FLASH_SECT     (PHYS_FLASH_SIZE/CFG_FLASH_SECT_SZ)
-#define CONFIG_ENV_SECT_SIZE   CFG_FLASH_SECT_SZ       /* Env sector Size */
+#define CONFIG_SYS_MAX_FLASH_SECT      (PHYS_FLASH_SIZE/CONFIG_SYS_FLASH_SECT_SZ)
+#define CONFIG_ENV_SECT_SIZE   CONFIG_SYS_FLASH_SECT_SZ        /* Env sector Size */
 #endif
 /*==============================*/
 /* U-Boot general configuration */
 #define CONFIG_MISC_INIT_R
 #undef CONFIG_BOOTDELAY
 #define CONFIG_BOOTFILE                "uImage"        /* Boot file name */
-#define CFG_PROMPT             "U-Boot > "     /* Monitor Command Prompt */
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size  */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print buffer sz */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_LOAD_ADDR          0x80700000      /* default Linux kernel load address */
+#define CONFIG_SYS_PROMPT              "U-Boot > "     /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size  */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print buffer sz */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_LOAD_ADDR           0x80700000      /* default Linux kernel load address */
 #define CONFIG_VERSION_VARIABLE
 #define CONFIG_AUTO_COMPLETE           /* Won't work with hush so far, may be later */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #define CONFIG_CMDLINE_EDITING
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 #define CONFIG_CRC32_VERIFY
 #define CONFIG_MX_CYCLIC
 /*===================*/
 #undef CONFIG_CMD_BDI
 #undef CONFIG_CMD_FPGA
 #undef CONFIG_CMD_SETGETDCR
-#ifdef CFG_USE_NAND
+#ifdef CONFIG_SYS_USE_NAND
 #undef CONFIG_CMD_FLASH
 #undef CONFIG_CMD_IMLS
 #define CONFIG_CMD_NAND
-#elif defined(CFG_USE_NOR)
+#elif defined(CONFIG_SYS_USE_NOR)
 #define CONFIG_CMD_JFFS2
 #else
-#error "Either CFG_USE_NAND or CFG_USE_NOR _MUST_ be defined !!!"
+#error "Either CONFIG_SYS_USE_NAND or CONFIG_SYS_USE_NOR _MUST_ be defined !!!"
 #endif
 /*=======================*/
 /* KGDB support (if any) */
index d7e48d0bc1fdeb23948f1cff8389af06a5c5d85f..a578038b541f4075f542a06cc62bc8a1468507d3 100644 (file)
@@ -59,7 +59,7 @@
 #define CONFIG_BAUDRATE                115200
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define        CONFIG_TIMESTAMP                /* Print image info with timestamp */
 #undef CONFIG_BOOTARGS
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory      */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory      */
 
-#define        CFG_PROMPT              "DbAu1xx0 # "   /* Monitor Command Prompt    */
+#define        CONFIG_SYS_PROMPT               "DbAu1xx0 # "   /* Monitor Command Prompt    */
 
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size   */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args*/
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size   */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args*/
 
-#define CFG_MALLOC_LEN         128*1024
+#define CONFIG_SYS_MALLOC_LEN          128*1024
 
-#define CFG_BOOTPARAMS_LEN     128*1024
+#define CONFIG_SYS_BOOTPARAMS_LEN      128*1024
 
-#define CFG_MHZ                        396
+#define CONFIG_SYS_MHZ                 396
 
-#if (CFG_MHZ % 12) != 0
+#if (CONFIG_SYS_MHZ % 12) != 0
 #error "Invalid CPU frequency - must be multiple of 12!"
 #endif
 
-#define CFG_MIPS_TIMER_FREQ    (CFG_MHZ * 1000000)
+#define CONFIG_SYS_MIPS_TIMER_FREQ     (CONFIG_SYS_MHZ * 1000000)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_SDRAM_BASE         0x80000000     /* Cached addr */
+#define CONFIG_SYS_SDRAM_BASE          0x80000000     /* Cached addr */
 
-#define        CFG_LOAD_ADDR           0x81000000     /* default load address  */
+#define        CONFIG_SYS_LOAD_ADDR            0x81000000     /* default load address  */
 
-#define CFG_MEMTEST_START      0x80100000
-#define CFG_MEMTEST_END                0x80800000
+#define CONFIG_SYS_MEMTEST_START       0x80100000
+#define CONFIG_SYS_MEMTEST_END         0x80800000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 #ifdef CONFIG_DBAU1550
 
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (512)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (512)   /* max number of sectors on one chip */
 
 #define PHYS_FLASH_1           0xb8000000 /* Flash Bank #1 */
 #define PHYS_FLASH_2           0xbc000000 /* Flash Bank #2 */
 
 #else /* CONFIG_DBAU1550 */
 
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
 
 #define PHYS_FLASH_1           0xbec00000 /* Flash Bank #1 */
 #define PHYS_FLASH_2           0xbfc00000 /* Flash Bank #2 */
 
 #endif /* CONFIG_DBAU1550 */
 
-#define CFG_FLASH_BANKS_LIST {PHYS_FLASH_1, PHYS_FLASH_2}
+#define CONFIG_SYS_FLASH_BANKS_LIST {PHYS_FLASH_1, PHYS_FLASH_2}
 
-#define CFG_FLASH_CFI           1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER    1
 
 /* The following #defines are needed to get flash environment right */
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#define        CFG_MONITOR_LEN         (192 << 10)
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)
 
-#define CFG_INIT_SP_OFFSET     0x400000
+#define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
 /* We boot from this flash, selected with dip switch */
-#define CFG_FLASH_BASE         PHYS_FLASH_2
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_2
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_NOWHERE   1
 
 
 #ifndef CONFIG_DBAU1550
 /*---ATA PCMCIA ------------------------------------*/
-#define CFG_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
-#define CFG_PCMCIA_MEM_ADDR 0x20000000
+#define CONFIG_SYS_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
+#define CONFIG_SYS_PCMCIA_MEM_ADDR 0x20000000
 #define CONFIG_PCMCIA_SLOT_A
 
 #define CONFIG_ATAPI 1
 #define CONFIG_IDE_PCMCIA 1
 
 /* We only support one slot for now */
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR       CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET     8
+#define CONFIG_SYS_ATA_DATA_OFFSET     8
 
 /* Offset for normal register accesses  */
-#define CFG_ATA_REG_OFFSET      0
+#define CONFIG_SYS_ATA_REG_OFFSET      0
 
 /* Offset for alternate registers       */
-#define CFG_ATA_ALT_OFFSET      0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 #endif /* CONFIG_DBAU1550 */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                16384
-#define CFG_ICACHE_SIZE                16384
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_DCACHE_SIZE         16384
+#define CONFIG_SYS_ICACHE_SIZE         16384
+#define CONFIG_SYS_CACHELINE_SIZE      32
 
 #endif /* __CONFIG_H */
index 3ea4fa68859c01fd0d8a51bc92b142f9856c0a57..4d65f6a44beb763edfde0191c31d436dc2d627f2 100644 (file)
@@ -76,7 +76,7 @@
 #define CONFIG_SERVERIP        192.168.0.1
 
 /* autoload */
-#undef CFG_AUTOLOAD
+#undef CONFIG_SYS_AUTOLOAD
 
 /* rootpath */
 #define CONFIG_ROOTPATH /tftpboot/target
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1               /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP            1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_NET_MULTI               /* Multi ethernet cards support */
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8       /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8       /* use 8 rx buffer on eepro100  */
 #define CONFIG_EEPRO100_SROM_WRITE
 
 #define PCI_ENET0_IOADDR       0x80000000
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x20000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x20000000
 #define CONFIG_VERY_BIG_RAM
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #if defined (USE_DINK32)
-#define CFG_MONITOR_LEN                0x00040000
-#define CFG_MONITOR_BASE       0x00090000
-#define CFG_RAMBOOT            1
-#define CFG_INIT_RAM_ADDR      (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_INIT_RAM_END       0x10000
-#define CFG_GBL_DATA_SIZE      256  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_MONITOR_LEN         0x00040000
+#define CONFIG_SYS_MONITOR_BASE        0x00090000
+#define CONFIG_SYS_RAMBOOT             1
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_INIT_RAM_END        0x10000
+#define CONFIG_SYS_GBL_DATA_SIZE       256  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 #else
-#undef CFG_RAMBOOT
-#define CFG_MONITOR_LEN                0x00040000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_MONITOR_LEN         0x00040000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-/*#define CFG_GBL_DATA_SIZE    256*/
-#define CFG_GBL_DATA_SIZE      128
+/*#define CONFIG_SYS_GBL_DATA_SIZE    256*/
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 #endif
 
-#define CFG_FLASH_BASE         0x7C000000
-#define CFG_FLASH_SIZE         (16*1024*1024)  /* debris has tiny eeprom       */
+#define CONFIG_SYS_FLASH_BASE          0x7C000000
+#define CONFIG_SYS_FLASH_SIZE          (16*1024*1024)  /* debris has tiny eeprom       */
 
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x04000000      /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x04000000      /* 0 ... 32 MB in DRAM          */
 
-#define CFG_EUMB_ADDR          0xFC000000
+#define CONFIG_SYS_EUMB_ADDR           0xFC000000
 
-#define CFG_FLASH_RANGE_BASE   0xFF000000      /* flash memory address range   */
-#define CFG_FLASH_RANGE_SIZE   0x01000000
+#define CONFIG_SYS_FLASH_RANGE_BASE    0xFF000000      /* flash memory address range   */
+#define CONFIG_SYS_FLASH_RANGE_SIZE    0x01000000
 #define FLASH_BASE0_PRELIM     0x7C000000      /* debris flash         */
 
 /*
 
 #define CONFIG_ENV_IS_IN_NVRAM      1
 #define CONFIG_ENV_OVERWRITE     1
-#define CFG_NVRAM_ACCESS_ROUTINE 1
+#define CONFIG_SYS_NVRAM_ACCESS_ROUTINE 1
 #define CONFIG_ENV_ADDR                0xFF000000 /* right at the start of NVRAM  */
 #define CONFIG_ENV_SIZE                0x400   /* Size of the Environment - 8K    */
 #define CONFIG_ENV_OFFSET              0       /* starting right at the beginning */
 
-#define CFG_NVRAM_BASE_ADDR    0xff000000
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xff000000
 
 /*
- * CFG_NVRAM_BASE_ADDR + CFG_NVRAM_VXWORKS_OFFS =
+ * CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_VXWORKS_OFFS =
  * NV_RAM_ADDRS + NV_BOOT_OFFSET + NV_ENET_OFFSET
  */
-#define CFG_NVRAM_VXWORKS_OFFS 0x6900
+#define CONFIG_SYS_NVRAM_VXWORKS_OFFS  0x6900
 
 /*
  * select i2c support configuration
  */
 #define CONFIG_HARD_I2C                1               /* To enable I2C support        */
 #undef  CONFIG_SOFT_I2C                                /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 #ifdef CONFIG_SOFT_I2C
 #error "Soft I2C is not configured properly.  Please review!"
 #define I2C_DELAY              udelay(5)       /* 1/4 I2C clock duration */
 #endif /* CONFIG_SOFT_I2C */
 
-#define CFG_I2C_EEPROM_ADDR    0x57            /* EEPROM IS24C02               */
-#define CFG_I2C_EEPROM_ADDR_LEN        1               /* Bytes of address             */
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x57            /* EEPROM IS24C02               */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_FLASH_BANKS                { FLASH_BASE0_PRELIM }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_FLASH_BANKS         { FLASH_BASE0_PRELIM }
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                7372800
+#define CONFIG_SYS_NS16550_CLK         7372800
 
-#define CFG_NS16550_COM1       0xFF080000
-#define CFG_NS16550_COM2       (CFG_NS16550_COM1 + 8)
-#define CFG_NS16550_COM3       (CFG_NS16550_COM1 + 16)
-#define CFG_NS16550_COM4       (CFG_NS16550_COM1 + 24)
+#define CONFIG_SYS_NS16550_COM1        0xFF080000
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_NS16550_COM1 + 8)
+#define CONFIG_SYS_NS16550_COM3        (CONFIG_SYS_NS16550_COM1 + 16)
+#define CONFIG_SYS_NS16550_COM4        (CONFIG_SYS_NS16550_COM1 + 24)
 
 /*
  * Low Level Configuration Settings
 #define CONFIG_SYS_CLK_FREQ  33333333  /* external frequency to pll */
 #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER 3
 
-#define CFG_DLL_EXTEND         0x00
-#define CFG_PCI_HOLD_DEL       0x20
+#define CONFIG_SYS_DLL_EXTEND          0x00
+#define CONFIG_SYS_PCI_HOLD_DEL        0x20
 
-#define CFG_ROMNAL     15      /* rom/flash next access time */
-#define CFG_ROMFAL     31      /* rom/flash access time */
+#define CONFIG_SYS_ROMNAL      15      /* rom/flash next access time */
+#define CONFIG_SYS_ROMFAL      31      /* rom/flash access time */
 
-#define CFG_REFINT     430     /* # of clocks between CBR refresh cycles */
+#define CONFIG_SYS_REFINT      430     /* # of clocks between CBR refresh cycles */
 
-#define CFG_DBUS_SIZE2 1       /* set for 8-bit RCS1, clear for 32,64 */
+#define CONFIG_SYS_DBUS_SIZE2  1       /* set for 8-bit RCS1, clear for 32,64 */
 
 /* the following are for SDRAM only*/
-#define CFG_BSTOPRE    121     /* Burst To Precharge, sets open page interval */
-#define CFG_REFREC     8       /* Refresh to activate interval         */
-#define CFG_RDLAT      4       /* data latency from read command       */
-#define CFG_PRETOACT   3       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE   5       /* Activate to Precharge interval       */
-#define CFG_ACTORW             3       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_BSTOPRE     121     /* Burst To Precharge, sets open page interval */
+#define CONFIG_SYS_REFREC      8       /* Refresh to activate interval         */
+#define CONFIG_SYS_RDLAT       4       /* data latency from read command       */
+#define CONFIG_SYS_PRETOACT    3       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE    5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              3       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
 #if 0
-#define CFG_SDMODE_BURSTLEN    2       /* OBSOLETE!  SDMODE Burst length 2=4, 3=8              */
+#define CONFIG_SYS_SDMODE_BURSTLEN     2       /* OBSOLETE!  SDMODE Burst length 2=4, 3=8              */
 #endif
 
-#define CFG_REGISTERD_TYPE_BUFFER   1
-#define CFG_EXTROM 1
-#define CFG_REGDIMM 0
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_EXTROM 1
+#define CONFIG_SYS_REGDIMM 0
 
 
 /* memory bank settings*/
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (0x4000000 - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x04000000
-#define CFG_BANK1_END          (0x8000000 - 1)
-#define CFG_BANK1_ENABLE       1
-#define CFG_BANK2_START                0x3ff00000
-#define CFG_BANK2_END          0x3fffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x3ff00000
-#define CFG_BANK3_END          0x3fffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (0x4000000 - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x04000000
+#define CONFIG_SYS_BANK1_END           (0x8000000 - 1)
+#define CONFIG_SYS_BANK1_ENABLE        1
+#define CONFIG_SYS_BANK2_START         0x3ff00000
+#define CONFIG_SYS_BANK2_END           0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x3ff00000
+#define CONFIG_SYS_BANK3_END           0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
 /*
  * Memory bank enable bitmask, specifying which of the banks defined above
  are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
-#define CFG_ODCR               0x75    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0x75    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 1GB (no backing mem) */
 #if defined(USE_DINK32)
-#define CFG_IBAT1L     (0x40000000 | BATL_PP_00 )
-#define CFG_IBAT1U     (0x40000000 | BATU_BL_128K )
+#define CONFIG_SYS_IBAT1L      (0x40000000 | BATL_PP_00 )
+#define CONFIG_SYS_IBAT1U      (0x40000000 | BATU_BL_128K )
 #else
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 #endif
 
 /* PCI memory */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Flash, config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8240 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8240 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
index 4b75e158bd91975867834b3f9d14f81979c7526a..08b28ca8ac7f3e5809924495c356d76c527ba676 100644 (file)
@@ -43,8 +43,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 256*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 256*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 #endif
 
 #define CONFIG_HARD_I2C                1       /* required for DA9030 access */
-#define CFG_I2C_SPEED          400000  /* I2C speed */
-#define CFG_I2C_SLAVE          1       /* I2C controllers address */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed */
+#define CONFIG_SYS_I2C_SLAVE           1       /* I2C controllers address */
 #define DA9030_I2C_ADDR                0x49    /* I2C address of DA9030 */
-#define CFG_DA9030_EXTON_DELAY 100000  /* wait x us after DA9030 reset via EXTON */
-#define CFG_I2C_INIT_BOARD     1
+#define CONFIG_SYS_DA9030_EXTON_DELAY  100000  /* wait x us after DA9030 reset via EXTON */
+#define CONFIG_SYS_I2C_INIT_BOARD      1
 /* #define CONFIG_HW_WATCHDOG  1       /\* Required for hitting the DA9030 WD *\/ */
 
 #define DELTA_CHECK_KEYBD      1       /* check for keys pressed during boot */
 
 #include <asm/arch/pxa-regs.h> /* for OHCI_REGS_BASE */
 
-#undef CFG_USB_OHCI_BOARD_INIT
-#define CFG_USB_OHCI_CPU_INIT  1
-#define CFG_USB_OHCI_REGS_BASE OHCI_REGS_BASE
-#define CFG_USB_OHCI_SLOT_NAME "delta"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    3
+#undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  OHCI_REGS_BASE
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "delta"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     3
 
 #define LITTLEENDIAN            1       /* used by usb_ohci.c  */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "$ "            /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "$ "            /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0x80400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x80800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x80400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x80800000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR  (CFG_DRAM_BASE + 0x8000) /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_DRAM_BASE + 0x8000) /* default load address */
 
-#define CFG_HZ                 3250000         /* incrementer freq: 3.25 MHz */
+#define CONFIG_SYS_HZ                  3250000         /* incrementer freq: 3.25 MHz */
 
 /* Monahans Core Frequency */
-#define CFG_MONAHANS_RUN_MODE_OSC_RATIO                16 /* valid values: 8, 16, 24, 31 */
-#define CFG_MONAHANS_TURBO_RUN_MODE_RATIO      1  /* valid values: 1, 2 */
+#define CONFIG_SYS_MONAHANS_RUN_MODE_OSC_RATIO         16 /* valid values: 8, 16, 24, 31 */
+#define CONFIG_SYS_MONAHANS_TURBO_RUN_MODE_RATIO       1  /* valid values: 1, 2 */
 
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-/* #define CFG_MMC_BASE                0xF0000000 */
+/* #define CONFIG_SYS_MMC_BASE         0xF0000000 */
 
 /*
  * Stack sizes
 #define PHYS_SDRAM_4           0x83000000 /* SDRAM Bank #4 */
 #define PHYS_SDRAM_4_SIZE      0x1000000  /* 64 MB */
 
-#define CFG_DRAM_BASE          0x80000000 /* at CS0 */
-#define CFG_DRAM_SIZE          0x04000000 /* 64 MB Ram */
+#define CONFIG_SYS_DRAM_BASE           0x80000000 /* at CS0 */
+#define CONFIG_SYS_DRAM_SIZE           0x04000000 /* 64 MB Ram */
 
-#undef CFG_SKIP_DRAM_SCRUB
+#undef CONFIG_SYS_SKIP_DRAM_SCRUB
 
 /*
  * NAND Flash
  */
 #undef CONFIG_NAND_LEGACY
 
-#define CFG_NAND0_BASE         0x0 /* 0x43100040 */ /* 0x10000000 */
-#undef CFG_NAND1_BASE
+#define CONFIG_SYS_NAND0_BASE          0x0 /* 0x43100040 */ /* 0x10000000 */
+#undef CONFIG_SYS_NAND1_BASE
 
-#define CFG_NAND_BASE_LIST     { CFG_NAND0_BASE }
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices */
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND0_BASE }
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices */
 
 /* nand timeout values */
-#define CFG_NAND_PROG_ERASE_TO 3000
-#define CFG_NAND_OTHER_TO      100
-#define CFG_NAND_SENDCMD_RETRY 3
+#define CONFIG_SYS_NAND_PROG_ERASE_TO  3000
+#define CONFIG_SYS_NAND_OTHER_TO       100
+#define CONFIG_SYS_NAND_SENDCMD_RETRY  3
 #undef NAND_ALLOW_ERASE_ALL    /* Allow erasing bad blocks - don't use */
 
 /* NAND Timing Parameters (in ns) */
 #define NAND_TIMING_tAR                10
 
 /* NAND debugging */
-#define CFG_DFC_DEBUG1 /* usefull */
-#undef CFG_DFC_DEBUG2  /* noisy */
-#undef CFG_DFC_DEBUG3  /* extremly noisy  */
+#define CONFIG_SYS_DFC_DEBUG1 /* usefull */
+#undef CONFIG_SYS_DFC_DEBUG2  /* noisy */
+#undef CONFIG_SYS_DFC_DEBUG3  /* extremly noisy  */
 
 #define CONFIG_MTD_DEBUG
 #define CONFIG_MTD_DEBUG_VERBOSE 1
 #define NAND_MAX_FLOORS                1
 #define NAND_MAX_CHIPS         1
 
-#define CFG_NO_FLASH           1
+#define CONFIG_SYS_NO_FLASH            1
 
 #define CONFIG_ENV_IS_IN_NAND  1
 #define CONFIG_ENV_OFFSET              0x40000
index 2249fc8dd0dcb0a1711796baac406b5254643b8f..e329fd3a0258590da37270fbd7aa12706e897948 100644 (file)
@@ -46,8 +46,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "DNP1110 # "    /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "DNP1110 # "    /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xc0200000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xc0200000      /* default load address */
 
-#define        CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x0b            /* set core clock to 220 MHz */
+#define        CONFIG_SYS_HZ                   3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x0b            /* set core clock to 220 MHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_BANK_SIZE    0x01000000 /* 32 MB Banks */
 #define PHYS_FLASH_SECT_SIZE    0x00020000 /* 256 KB sectors (x2) */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128             /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                        (PHYS_FLASH_1 + 0xF80000)       /* Addr of Environment Sector   */
index ecf4c5e0b90378f532636bf2ca05c4255f5100a2..fc3174c63f3888a0c0a44e0bcda1d86274e927a2 100644 (file)
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           1       /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            8       /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00100000      /* default load address         */
+#define CONFIG_SYS_LONGHELP            1       /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             8       /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address         */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_MISC_INIT_R     1
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MAX_RAM_SIZE       0x10000000      /* 1 GBytes - initdram() will      */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE        0x10000000      /* 1 GBytes - initdram() will      */
                                             /* return real value.              */
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
-#undef CFG_RAMBOOT
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor       */
-#define CFG_MONITOR_BASE       TEXT_BASE
+#undef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_DATA_SIZE     128
+#define CONFIG_SYS_INIT_DATA_SIZE      128
 
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_INIT_DATA_OFFSET   (CFG_INIT_RAM_END - CFG_INIT_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_INIT_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_INIT_DATA_SIZE)
 
-#define CFG_GBL_DATA_SIZE       256    /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE        256    /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 #if defined (CONFIG_MPC8240)
-#define CFG_FLASH_BASE     0xFFE00000
-#define CFG_FLASH_SIZE     (2 * 1024 * 1024)   /* onboard 2MByte flash     */
+#define CONFIG_SYS_FLASH_BASE      0xFFE00000
+#define CONFIG_SYS_FLASH_SIZE      (2 * 1024 * 1024)   /* onboard 2MByte flash     */
 #elif defined (CONFIG_MPC8245)
-#define CFG_FLASH_BASE     0xFFC00000
-#define CFG_FLASH_SIZE     (4 * 1024 * 1024)   /* onboard 4MByte flash     */
+#define CONFIG_SYS_FLASH_BASE      0xFFC00000
+#define CONFIG_SYS_FLASH_SIZE      (4 * 1024 * 1024)   /* onboard 4MByte flash     */
 #else
 #error Specific type of MPC824x must be defined (i.e. CONFIG_MPC8240)
 #endif
 #define CONFIG_ENV_ADDR                0xFFFC0000
 #define CONFIG_ENV_OFFSET              0       /* starting right at the beginning  */
 
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
-#define CFG_ALT_MEMTEST                1       /* use real memory test     */
-#define CFG_MEMTEST_START      0x00004000      /* memtest works on         */
-#define CFG_MEMTEST_END                0x02000000      /* 0 ... 32 MB in DRAM      */
+#define CONFIG_SYS_ALT_MEMTEST         1       /* use real memory test     */
+#define CONFIG_SYS_MEMTEST_START       0x00004000      /* memtest works on         */
+#define CONFIG_SYS_MEMTEST_END         0x02000000      /* 0 ... 32 MB in DRAM      */
 
-#define CFG_EUMB_ADDR          0xFC000000
+#define CONFIG_SYS_EUMB_ADDR           0xFC000000
 
-/* #define CFG_ISA_MEM            0xFD000000 */
-#define CFG_ISA_IO             0xFE000000
+/* #define CONFIG_SYS_ISA_MEM             0xFD000000 */
+#define CONFIG_SYS_ISA_IO              0xFE000000
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks        */
-#define CFG_MAX_FLASH_SECT     64      /* Max number of sectors per flash  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks        */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* Max number of sectors per flash  */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE
 #define FLASH_BASE1_PRELIM     0
 
 
  * FLASH and environment organization
  */
 
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant              */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant              */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver                */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_FLASH_INCREMENT    0       /* there is only one bank               */
-#define CFG_FLASH_PROTECTION   1       /* use hardware protection              */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_FLASH_INCREMENT     0       /* there is only one bank               */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware protection              */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
 
 
 /*-----------------------------------------------------------------------
 /*-----------------------------------------------------------------------
  * NS16550 Configuration
  */
-#define CFG_NS16550            1
-#define CFG_NS16550_SERIAL     1
+#define CONFIG_SYS_NS16550             1
+#define CONFIG_SYS_NS16550_SERIAL      1
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                38400
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
 #if (CONFIG_CONS_INDEX == 1)
-#define CFG_NS16550_CLK                1843200 /* COM1 only !  */
+#define CONFIG_SYS_NS16550_CLK         1843200 /* COM1 only !  */
 #else
-#define CFG_NS16550_CLK ({ extern ulong get_bus_freq (ulong); get_bus_freq (0); })
+#define CONFIG_SYS_NS16550_CLK ({ extern ulong get_bus_freq (ulong); get_bus_freq (0); })
 #endif
 
-#define CFG_NS16550_COM1       (CFG_ISA_IO + 0x3F8)
-#define CFG_NS16550_COM2       (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM3       (CFG_EUMB_ADDR + 0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_ISA_IO + 0x3F8)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM3        (CONFIG_SYS_EUMB_ADDR + 0x4600)
 
 /*-----------------------------------------------------------------------
  * select i2c support configuration
  */
 #define CONFIG_HARD_I2C                1       /* To enable I2C support        */
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*-----------------------------------------------------------------------
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
  * You should know what you are doing if you make changes here.
  */
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 #define CONFIG_SYS_CLK_FREQ    33333333        /* external frequency to pll    */
 #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER  2    /* for MPC8240 only             */
 #if defined (CONFIG_MPC8245)
 /* Bit-field values for PMCR2.                                                 */
 #if defined (CONFIG_133MHZ_DRAM)
-#define CFG_DLL_EXTEND         0x80    /* use DLL extended range - 133MHz only */
-#define CFG_PCI_HOLD_DEL       0x20    /* delay and hold timing - 133MHz only  */
+#define CONFIG_SYS_DLL_EXTEND          0x80    /* use DLL extended range - 133MHz only */
+#define CONFIG_SYS_PCI_HOLD_DEL        0x20    /* delay and hold timing - 133MHz only  */
 #endif
 
 /* Bit-field values for MIOCR1.                                                        */
 #if !defined (CONFIG_133MHZ_DRAM)
-#define CFG_DLL_MAX_DELAY      0x04    /*  longer DLL delay line - 66MHz only  */
+#define CONFIG_SYS_DLL_MAX_DELAY       0x04    /*  longer DLL delay line - 66MHz only  */
 #endif
 /* Bit-field values for MIOCR2.                                                        */
-#define CFG_SDRAM_DSCD         0x20    /* SDRAM data in sample clock delay     */
+#define CONFIG_SYS_SDRAM_DSCD          0x20    /* SDRAM data in sample clock delay     */
                                        /*      - note bottom 3 bits MUST be 0  */
 #endif
 
 /* Bit-field values for MCCR1.                                                 */
-#define CFG_ROMNAL             7       /*rom/flash next access time            */
-#define CFG_ROMFAL            11       /*rom/flash access time                 */
+#define CONFIG_SYS_ROMNAL              7       /*rom/flash next access time            */
+#define CONFIG_SYS_ROMFAL             11       /*rom/flash access time                 */
 
 /* Bit-field values for MCCR2.                                                 */
-#define CFG_TSWAIT             0x5     /* Transaction Start Wait States timer  */
+#define CONFIG_SYS_TSWAIT              0x5     /* Transaction Start Wait States timer  */
 #if defined (CONFIG_133MHZ_DRAM)
-#define CFG_REFINT             1300    /* no of clock cycles between CBR       */
+#define CONFIG_SYS_REFINT              1300    /* no of clock cycles between CBR       */
 #else  /* refresh cycles */
-#define CFG_REFINT             750
+#define CONFIG_SYS_REFINT              750
 #endif
 
 /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.               */
 #if defined (CONFIG_133MHZ_DRAM)
-#define CFG_BSTOPRE            1023
+#define CONFIG_SYS_BSTOPRE             1023
 #else
-#define CFG_BSTOPRE            250
+#define CONFIG_SYS_BSTOPRE             250
 #endif
 
 /* Bit-field values for MCCR3.                                                 */
 /* the following are for SDRAM only                                            */
 
 #if defined (CONFIG_133MHZ_DRAM)
-#define CFG_REFREC             9       /* Refresh to activate interval         */
+#define CONFIG_SYS_REFREC              9       /* Refresh to activate interval         */
 #else
-#define CFG_REFREC             5       /* Refresh to activate interval         */
+#define CONFIG_SYS_REFREC              5       /* Refresh to activate interval         */
 #endif
 #if defined (CONFIG_MPC8240)
-#define CFG_RDLAT              2       /* data latency from read command       */
+#define CONFIG_SYS_RDLAT               2       /* data latency from read command       */
 #endif
 
 /* Bit-field values for MCCR4. */
 #if defined (CONFIG_133MHZ_DRAM)
-#define CFG_PRETOACT           3       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           7       /* Activate to Precharge interval       */
-#define CFG_ACTORW             5       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_PRETOACT            3       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            7       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              5       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
 #else
 #if 0
-#define CFG_PRETOACT           2       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           3       /* Activate to Precharge interval       */
-#define CFG_ACTORW             3       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     2       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_PRETOACT            2       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            3       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              3       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      2       /* SDMODE CAS latency                   */
 #endif
-#define CFG_PRETOACT           2       /* Precharge to activate interval       */
-#define CFG_ACTTOPRE           5       /* Activate to Precharge interval       */
-#define CFG_ACTORW             3       /* Activate to R/W                      */
-#define CFG_SDMODE_CAS_LAT     3       /* SDMODE CAS latency                   */
+#define CONFIG_SYS_PRETOACT            2       /* Precharge to activate interval       */
+#define CONFIG_SYS_ACTTOPRE            5       /* Activate to Precharge interval       */
+#define CONFIG_SYS_ACTORW              3       /* Activate to R/W                      */
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* SDMODE CAS latency                   */
 #endif
-#define CFG_SDMODE_WRAP                0       /* SDMODE wrap type                     */
-#define CFG_SDMODE_BURSTLEN    2       /* SDMODE Burst length 2=4, 3=8         */
-#define CFG_REGDIMM            0
+#define CONFIG_SYS_SDMODE_WRAP         0       /* SDMODE wrap type                     */
+#define CONFIG_SYS_SDMODE_BURSTLEN     2       /* SDMODE Burst length 2=4, 3=8         */
+#define CONFIG_SYS_REGDIMM             0
 #if defined (CONFIG_MPC8240)
-#define CFG_REGISTERD_TYPE_BUFFER   0
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   0
 #elif defined (CONFIG_MPC8245)
-#define CFG_REGISTERD_TYPE_BUFFER   1
-#define CFG_EXTROM                 0
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER   1
+#define CONFIG_SYS_EXTROM                  0
 #else
 #error Specific type of MPC824x must be defined (i.e. CONFIG_MPC8240)
 #endif
  * bits will be set to 0x00000 for a start address, or 0xfffff for an
  * end address
  */
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x3ff00000
-#define CFG_BANK1_END          0x3fffffff
-#define CFG_BANK1_ENABLE       0
-#define CFG_BANK2_START                0x3ff00000
-#define CFG_BANK2_END          0x3fffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x3ff00000
-#define CFG_BANK3_END          0x3fffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x3ff00000
+#define CONFIG_SYS_BANK1_END           0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE        0
+#define CONFIG_SYS_BANK2_START         0x3ff00000
+#define CONFIG_SYS_BANK2_END           0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x3ff00000
+#define CONFIG_SYS_BANK3_END           0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
 
 /*-----------------------------------------------------------------------
  * Memory bank enable bitmask, specifying which of the banks defined above
  are actually present. MSB is for bank #7, LSB is for bank #0.
  */
-#define CFG_BANK_ENABLE                0x01
+#define CONFIG_SYS_BANK_ENABLE         0x01
 
 #if defined (CONFIG_MPC8240)
-#define CFG_ODCR               0xDF    /* configures line driver impedances,   */
+#define CONFIG_SYS_ODCR                0xDF    /* configures line driver impedances,   */
                                        /* see 8240 book for bit definitions    */
 #elif defined (CONFIG_MPC8245)
 #if defined (CONFIG_133MHZ_DRAM)
-#define CFG_ODCR               0xFE    /* configures line driver impedances - 133MHz   */
+#define CONFIG_SYS_ODCR                0xFE    /* configures line driver impedances - 133MHz   */
 #else
-#define CFG_ODCR               0xDE    /* configures line driver impedances - 66MHz    */
+#define CONFIG_SYS_ODCR                0xDE    /* configures line driver impedances - 66MHz    */
 #endif
 #else
 #error Specific type of MPC824x must be defined (i.e. CONFIG_MPC8240)
 #endif
 
-#define CFG_PGMAX              0x32    /* how long the 8240 retains the        */
+#define CONFIG_SYS_PGMAX               0x32    /* how long the 8240 retains the        */
                                        /* currently accessed page in memory    */
                                        /* see 8240 book for details            */
 
  * Block Address Translation (BAT) register settings.
  */
 /* SDRAM 0 - 256MB */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in DCACHE @ 1GB (no backing mem) */
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 
 /* PCI memory */
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* Flash, config addrs, etc */
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff
  */
-#define CFG_IDE_MAXBUS     1   /* max. 2 IDE busses    */
-#define CFG_IDE_MAXDEVICE   (CFG_IDE_MAXBUS*1) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS      1   /* max. 2 IDE busses    */
+#define CONFIG_SYS_IDE_MAXDEVICE   (CONFIG_SYS_IDE_MAXBUS*1)   /* max. 2 drives per IDE bus */
 
-#define CFG_ATA_BASE_ADDR   CFG_ISA_IO /* base address */
-#define CFG_ATA_IDE0_OFFSET 0x01F0     /* ide0 offste */
-#define CFG_ATA_IDE1_OFFSET 0x0170     /* ide1 offset */
-#define CFG_ATA_DATA_OFFSET 0  /* data reg offset  */
-#define CFG_ATA_REG_OFFSET  0  /* reg offset */
-#define CFG_ATA_ALT_OFFSET  0x200      /* alternate register offset */
+#define CONFIG_SYS_ATA_BASE_ADDR   CONFIG_SYS_ISA_IO   /* base address */
+#define CONFIG_SYS_ATA_IDE0_OFFSET 0x01F0      /* ide0 offste */
+#define CONFIG_SYS_ATA_IDE1_OFFSET 0x0170      /* ide1 offset */
+#define CONFIG_SYS_ATA_DATA_OFFSET 0   /* data reg offset  */
+#define CONFIG_SYS_ATA_REG_OFFSET  0   /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET  0x200       /* alternate register offset */
 
 #define CONFIG_ATAPI
 
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 #endif /* __CONFIG_H */
index 2c9c9c1d353c0dfe18328dcf79527d44a93feb93..10f425dd1ed72e9b302b2917c6c760ccc95d896b 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_SDRAM_BASE     0x00000000      /* _must_ be 0              */
-#define CFG_FLASH_BASE     0xff800000      /* start of FLASH           */
-#define CFG_PCI_MEMBASE            0x80000000      /* mapped pci memory        */
-#define CFG_PERIPHERAL_BASE 0xe0000000     /* internal peripherals     */
-#define CFG_ISRAM_BASE     0xc0000000      /* internal SRAM            */
-#define CFG_PCI_BASE       0xd0000000      /* internal PCI regs        */
+#define CONFIG_SYS_SDRAM_BASE      0x00000000      /* _must_ be 0              */
+#define CONFIG_SYS_FLASH_BASE      0xff800000      /* start of FLASH           */
+#define CONFIG_SYS_PCI_MEMBASE     0x80000000      /* mapped pci memory        */
+#define CONFIG_SYS_PERIPHERAL_BASE 0xe0000000      /* internal peripherals     */
+#define CONFIG_SYS_ISRAM_BASE      0xc0000000      /* internal SRAM            */
+#define CONFIG_SYS_PCI_BASE        0xd0000000      /* internal PCI regs        */
 
-#define CFG_NVRAM_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x08000000)
-#define CFG_FPGA_BASE      (CFG_PERIPHERAL_BASE + 0x08300000)
+#define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
+#define CONFIG_SYS_FPGA_BASE       (CONFIG_SYS_PERIPHERAL_BASE + 0x08300000)
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_INIT_RAM_ADDR   CFG_ISRAM_BASE  /* Initial RAM address     */
-#define CFG_INIT_RAM_END    0x2000         /* End of used area in RAM  */
-#define CFG_GBL_DATA_SIZE  128             /* num bytes initial data   */
+#define CONFIG_SYS_INIT_RAM_ADDR   CONFIG_SYS_ISRAM_BASE  /* Initial RAM address       */
+#define CONFIG_SYS_INIT_RAM_END    0x2000          /* End of used area in RAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE  128              /* num bytes initial data   */
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_EXT_SERIAL_CLOCK   (1843200 * 6)   /* Ext clk @ 11.059 MHz */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    (1843200 * 6)   /* Ext clk @ 11.059 MHz */
 
 /*-----------------------------------------------------------------------
  * NVRAM/RTC
  * The DS1743 code assumes this condition (i.e. -- it assumes the base
  * address for the RTC registers is:
  *
- *     CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE
+ *     CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE
  *
  *----------------------------------------------------------------------*/
-#define CFG_NVRAM_SIZE     (0x2000 - 8)    /* NVRAM size(8k)- RTC regs */
+#define CONFIG_SYS_NVRAM_SIZE      (0x2000 - 8)    /* NVRAM size(8k)- RTC regs */
 #define CONFIG_RTC_DS174x      1                   /* DS1743 RTC               */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x1000      /* Size of Environment vars */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)
 #endif /* CONFIG_ENV_IS_IN_NVRAM */
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS    3                   /* number of banks      */
-#define CFG_MAX_FLASH_SECT     32                  /* sectors per device   */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3                   /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      32                  /* sectors per device   */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
-#define CFG_FLASH_ADDR0         0x5555
-#define CFG_FLASH_ADDR1         0x2aaa
-#define CFG_FLASH_WORD_SIZE     unsigned char
+#define CONFIG_SYS_FLASH_ADDR0         0x5555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aaa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /*
  * Default environment variables
 #define CONFIG_PCI                                 /* include pci support              */
 #define CONFIG_PCI_PNP                         /* do pci plug-and-play         */
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT                /* let board init pci target    */
+#define CONFIG_SYS_PCI_TARGET_INIT                 /* let board init pci target    */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
 
 #endif /* __CONFIG_H */
index 60c87bdce83a317dd349d106aa2f61f8eea3bd1e..0581842ec22b74bd4ff0c1bc01e5ad33b96ec221 100644 (file)
@@ -41,8 +41,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "EP7312 # "     /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "EP7312 # "     /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xc0500000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xc0500000      /* default load address */
 
-#define        CFG_HZ                  2000            /* decrementer freq: 2 kHz */
+#define        CONFIG_SYS_HZ                   2000            /* decrementer freq: 2 kHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SIZE                0x01000000 /* 16 MB */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + 0x20000)        /* Addr of Environment Sector   */
index d8f1aaf1c455a931687fe89500ff9a2ab1539e13..f7b3fdea88dd8536a0360eb16d17177a7b45ad4c 100644 (file)
@@ -48,7 +48,7 @@
 #undef CONFIG_CONS_NONE                /* It's not on external UART */
 #define CONFIG_CONS_INDEX      1       /* SMC1 is used for console  */
 
-#define CFG_BCSR               0xFA000000
+#define CONFIG_SYS_BCSR                0xFA000000
 
 /*
  * Select ethernet configuration
  * - BDs/buffers on 60x bus
  * - Full duplex
  */
-#define CFG_CMXFCR_MASK        (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
-#define CFG_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK10 | CMXFCR_TF1CS_CLK11)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_MASK (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE        (CMXFCR_RF1CS_CLK10 | CMXFCR_TF1CS_CLK11)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #elif (CONFIG_ETHER_INDEX == 2)
 
  * - BDs/buffers on 60x bus
  * - Full duplex
  */
-#define CFG_CMXFCR_MASK        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-#define CFG_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_MASK (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE        (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_INDEX */
 
  * GPIO pins used for bit-banged MII communications
  */
 #define MDIO_PORT              0       /* Not used - implemented in BCSR */
-#define MDIO_ACTIVE            (*(vu_char *)(CFG_BCSR + 8) &= 0xFB)
-#define MDIO_TRISTATE          (*(vu_char *)(CFG_BCSR + 8) |= 0x04)
-#define MDIO_READ              (*(vu_char *)(CFG_BCSR + 8) & 1)
+#define MDIO_ACTIVE            (*(vu_char *)(CONFIG_SYS_BCSR + 8) &= 0xFB)
+#define MDIO_TRISTATE          (*(vu_char *)(CONFIG_SYS_BCSR + 8) |= 0x04)
+#define MDIO_READ              (*(vu_char *)(CONFIG_SYS_BCSR + 8) & 1)
 
-#define MDIO(bit)              if(bit) *(vu_char *)(CFG_BCSR + 8) |= 0x01; \
-                               else    *(vu_char *)(CFG_BCSR + 8) &= 0xFE
+#define MDIO(bit)              if(bit) *(vu_char *)(CONFIG_SYS_BCSR + 8) |= 0x01; \
+                               else    *(vu_char *)(CONFIG_SYS_BCSR + 8) &= 0xFE
 
-#define MDC(bit)               if(bit) *(vu_char *)(CFG_BCSR + 8) |= 0x02; \
-                               else    *(vu_char *)(CFG_BCSR + 8) &= 0xFD
+#define MDC(bit)               if(bit) *(vu_char *)(CONFIG_SYS_BCSR + 8) |= 0x02; \
+                               else    *(vu_char *)(CONFIG_SYS_BCSR + 8) &= 0xFD
 
 #define MIIDELAY               udelay(1)
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size  */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size  */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_FLASH_BASE         0xFF800000
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_BASE          0xFF800000
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks       */
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
 
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 #if defined(CONFIG_CMD_JFFS2)
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    CFG_MAX_FLASH_BANKS
-#define CFG_JFFS2_FIRST_SECTOR  0
-#define CFG_JFFS2_LAST_SECTOR   62
-#define CFG_JFFS2_SORT_FRAGMENTS
-#define CFG_JFFS_CUSTOM_PART
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     CONFIG_SYS_MAX_FLASH_BANKS
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  0
+#define CONFIG_SYS_JFFS2_LAST_SECTOR   62
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
+#define CONFIG_SYS_JFFS_CUSTOM_PART
 #endif
 
 #if defined(CONFIG_CMD_I2C)
 #define CONFIG_HARD_I2C                1       /* To enable I2C support        */
-#define CFG_I2C_SPEED          100000  /* I2C speed                    */
-#define CFG_I2C_SLAVE          0x7F    /* I2C slave address            */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed                    */
+#define CONFIG_SYS_I2C_SLAVE           0x7F    /* I2C slave address            */
 #endif
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256KB for Monitor */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256KB for Monitor */
 
 #define CONFIG_ENV_IS_IN_FLASH
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 
-#define CFG_DEFAULT_IMMR       0x00010000
+#define CONFIG_SYS_DEFAULT_IMMR        0x00010000
 
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /* Hard reset configuration word */
-#define CFG_HRCW_MASTER                0x0C40025A /* Not used - provided by FPGA */
+#define CONFIG_SYS_HRCW_MASTER         0x0C40025A /* Not used - provided by FPGA */
 /* No slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                  */
 
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         (HID0_ICE | HID0_IFEM | HID0_ABE)
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE | HID0_IFEM | HID0_ABE)
 
-#define CFG_HID2               0
+#define CONFIG_SYS_HID2                0
 
-#define CFG_SIUMCR             0x01240200
-#define CFG_SYPCR              0xFFFF0683
-#define CFG_BCR                        0x00000000
-#define CFG_SCCR               SCCR_DFBRG01
+#define CONFIG_SYS_SIUMCR              0x01240200
+#define CONFIG_SYS_SYPCR               0xFFFF0683
+#define CONFIG_SYS_BCR                 0x00000000
+#define CONFIG_SYS_SCCR                SCCR_DFBRG01
 
-#define CFG_RMR                        RMR_CSRE
-#define CFG_TMCNTSC            (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
-#define CFG_PISCR              (PISCR_PS|PISCR_PTF|PISCR_PTE)
-#define CFG_RCCR               0
+#define CONFIG_SYS_RMR                 RMR_CSRE
+#define CONFIG_SYS_TMCNTSC             (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_PISCR               (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_RCCR                0
 
-#define CFG_MPTPR              0x1300
-#define CFG_PSDMR              0x82672522
-#define CFG_PSRT               0x4B
+#define CONFIG_SYS_MPTPR               0x1300
+#define CONFIG_SYS_PSDMR               0x82672522
+#define CONFIG_SYS_PSRT                0x4B
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_BR           (CFG_SDRAM_BASE | 0x00001841)
-#define CFG_SDRAM_OR           0xFF0030C0
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_BR            (CONFIG_SYS_SDRAM_BASE | 0x00001841)
+#define CONFIG_SYS_SDRAM_OR            0xFF0030C0
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | 0x00001801)
-#define CFG_OR0_PRELIM         0xFF8008C2
-#define CFG_BR2_PRELIM         (CFG_BCSR | 0x00000801)
-#define CFG_OR2_PRELIM         0xFFF00864
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | 0x00001801)
+#define CONFIG_SYS_OR0_PRELIM          0xFF8008C2
+#define CONFIG_SYS_BR2_PRELIM          (CONFIG_SYS_BCSR | 0x00000801)
+#define CONFIG_SYS_OR2_PRELIM          0xFFF00864
 
-#define CFG_RESET_ADDRESS      0xC0000000
+#define CONFIG_SYS_RESET_ADDRESS       0xC0000000
 
 #endif /* __CONFIG_H */
index 9a602c3afb91642f96db9303451f6fceb99cf764..d49d02f2872311ed05b9dfa532a717208292645a 100644 (file)
@@ -33,7 +33,7 @@
  *     - 16M Flash (4 x AM29DL323DB90WDI)
  *     - 128k NVRAM with RTC
  *
- * "EP8260 H2, V.1.3" (CFG_EP8260_H2)
+ * "EP8260 H2, V.1.3" (CONFIG_SYS_EP8260_H2)
  *     - 300MHz/133MHz/66MHz
  *     - 64M 60x Bus SDRAM
  *     - 32M Local Bus SDRAM
@@ -45,8 +45,8 @@
 #define __CONFIG_H
 
 /* Define this to enable support the EP8260 H2 version */
-#define CFG_EP8260_H2  1
-/* #undef CFG_EP8260_H2  */
+#define CONFIG_SYS_EP8260_H2   1
+/* #undef CONFIG_SYS_EP8260_H2  */
 
 #define CONFIG_CPM2            1       /* Has a CPM2 */
 
  * 0x6      0x1         66     133    266
  * 0x6      0x2         66     133    300
  */
-#ifdef CFG_EP8260_H2
-#define CFG_SBC_MODCK_H  (HRCW_MODCK_H0110)
+#ifdef CONFIG_SYS_EP8260_H2
+#define CONFIG_SYS_SBC_MODCK_H  (HRCW_MODCK_H0110)
 #else
-#define CFG_SBC_MODCK_H  (HRCW_MODCK_H0110)
+#define CONFIG_SYS_SBC_MODCK_H  (HRCW_MODCK_H0110)
 #endif
 
 /* Define this if you want to boot from 0x00000100. If you don't define
  * way to do that is to program the bootloader at both addresses.
  * It is suggested that you just let U-Boot live at 0x00000000.
  */
-/* #define CFG_SBC_BOOT_LOW 1 */       /* only for HRCW */
-/* #undef CFG_SBC_BOOT_LOW */
+/* #define CONFIG_SYS_SBC_BOOT_LOW 1 */        /* only for HRCW */
+/* #undef CONFIG_SYS_SBC_BOOT_LOW */
 
 /* The reset command will not work as expected if the reset address does
  * not point to the correct address.
  */
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/ep8260/config.mk
  * The main FLASH is whichever is connected to *CS0. U-Boot expects
  * this to be the SIMM.
  */
-#ifdef CFG_EP8260_H2
-#define CFG_FLASH0_BASE 0xFE000000
-#define CFG_FLASH0_SIZE 32
+#ifdef CONFIG_SYS_EP8260_H2
+#define CONFIG_SYS_FLASH0_BASE 0xFE000000
+#define CONFIG_SYS_FLASH0_SIZE 32
 #else
-#define CFG_FLASH0_BASE 0xFF000000
-#define CFG_FLASH0_SIZE 16
+#define CONFIG_SYS_FLASH0_BASE 0xFF000000
+#define CONFIG_SYS_FLASH0_SIZE 16
 #endif
 
 /* What should the base address of the secondary FLASH be and how big
  * to *CS6. U-Boot expects this to be the on board FLASH. If you don't
  * want it enabled, don't define these constants.
  */
-#define CFG_FLASH1_BASE 0
-#define CFG_FLASH1_SIZE 0
-#undef CFG_FLASH1_BASE
-#undef CFG_FLASH1_SIZE
+#define CONFIG_SYS_FLASH1_BASE 0
+#define CONFIG_SYS_FLASH1_SIZE 0
+#undef CONFIG_SYS_FLASH1_BASE
+#undef CONFIG_SYS_FLASH1_SIZE
 
 /* What should be the base address of SDRAM DIMM (60x bus) and how big is
  * it (in Mbytes)?
 */
-#define CFG_SDRAM0_BASE 0x00000000
-#define CFG_SDRAM0_SIZE 64
+#define CONFIG_SYS_SDRAM0_BASE 0x00000000
+#define CONFIG_SYS_SDRAM0_SIZE 64
 
-/* define CFG_LSDRAM if you want to enable the 32M SDRAM on the
+/* define CONFIG_SYS_LSDRAM if you want to enable the 32M SDRAM on the
  * local bus (8260 local bus is NOT cacheable!)
 */
-/* #define CFG_LSDRAM */
-#undef CFG_LSDRAM
+/* #define CONFIG_SYS_LSDRAM */
+#undef CONFIG_SYS_LSDRAM
 
-#ifdef CFG_LSDRAM
+#ifdef CONFIG_SYS_LSDRAM
 /* What should be the base address of SDRAM DIMM (local bus) and how big is
  * it (in Mbytes)?
 */
-  #define CFG_SDRAM1_BASE 0x04000000
-  #define CFG_SDRAM1_SIZE 32
+  #define CONFIG_SYS_SDRAM1_BASE 0x04000000
+  #define CONFIG_SYS_SDRAM1_SIZE 32
 #else
-  #define CFG_SDRAM1_BASE 0
-  #define CFG_SDRAM1_SIZE 0
-  #undef CFG_SDRAM1_BASE
-  #undef CFG_SDRAM1_SIZE
-#endif /* CFG_LSDRAM */
+  #define CONFIG_SYS_SDRAM1_BASE 0
+  #define CONFIG_SYS_SDRAM1_SIZE 0
+  #undef CONFIG_SYS_SDRAM1_BASE
+  #undef CONFIG_SYS_SDRAM1_SIZE
+#endif /* CONFIG_SYS_LSDRAM */
 
 /* What should be the base address of NVRAM and how big is
  * it (in Bytes)
  */
-#define CFG_NVRAM_BASE_ADDR  0xFA080000
-#define CFG_NVRAM_SIZE       (128*1024)-16
+#define CONFIG_SYS_NVRAM_BASE_ADDR  0xFA080000
+#define CONFIG_SYS_NVRAM_SIZE       (128*1024)-16
 
 /* The RTC is a Dallas DS1556
  */
 /* What should be the base address of the LEDs and switch S0?
  * If you don't want them enabled, don't define this.
  */
-#define CFG_LED_BASE 0x00000000
-#undef CFG_LED_BASE
+#define CONFIG_SYS_LED_BASE 0x00000000
+#undef CONFIG_SYS_LED_BASE
 
 /*
  * select serial console configuration
  * - RAM for BD/Buffers is on the local Bus (see 28-13)
  * - Enable Half Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
 
 /*
  * - RAM for BD/Buffers is on the local Bus (see 28-13)
  */
-#ifdef CFG_LSDRAM
-  #define CFG_CPMFCR_RAMTYPE   3
-#else /* CFG_LSDRAM */
-  #define CFG_CPMFCR_RAMTYPE   0
-#endif /* CFG_LSDRAM */
+#ifdef CONFIG_SYS_LSDRAM
+  #define CONFIG_SYS_CPMFCR_RAMTYPE    3
+#else /* CONFIG_SYS_LSDRAM */
+  #define CONFIG_SYS_CPMFCR_RAMTYPE    0
+#endif /* CONFIG_SYS_LSDRAM */
 
 /* - Enable Half Duplex in FSMR */
-/* # define CFG_FCC_PSMR               (FCC_PSMR_FDE|FCC_PSMR_LPB) */
-# define CFG_FCC_PSMR          0
+/* # define CONFIG_SYS_FCC_PSMR                (FCC_PSMR_FDE|FCC_PSMR_LPB) */
+# define CONFIG_SYS_FCC_PSMR           0
 
 #else /* CONFIG_ETHER_INDEX */
 # error "on EP8260 ethernet must be FCC3"
  */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 #define CONFIG_ENV_OVERWRITE
 
 /* What should the console's baud rate be? */
-#ifdef CFG_EP8260_H2
+#ifdef CONFIG_SYS_EP8260_H2
 #define CONFIG_BAUDRATE         9600
 #else
 #define CONFIG_BAUDRATE         115200
 #define CONFIG_BOOTDELAY        -1
 
 /* undef this to save memory */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 /* Monitor Command Prompt       */
-#define CFG_PROMPT              "=> "
+#define CONFIG_SYS_PROMPT              "=> "
 
 /* Define this variable to enable the "hush" shell (from
    Busybox) as command line interpreter, thus enabling
    If undefined, you get the old, much simpler behaviour
    with a somewhat smapper memory footprint.
 */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 
 /*
 #undef CONFIG_CMD_XIMG
 
 /* Where do the internal registers live? */
-#define CFG_IMMR               0xF0000000
-#define CFG_DEFAULT_IMMR       0x00010000
+#define CONFIG_SYS_IMMR               0xF0000000
+#define CONFIG_SYS_DEFAULT_IMMR       0x00010000
 
 /* Where do the on board registers (CS4) live? */
-#define CFG_REGS_BASE          0xFA000000
+#define CONFIG_SYS_REGS_BASE          0xFA000000
 
 /*****************************************************************************
  *
  * Miscellaneous configurable options
  */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE              1024       /* Console I/O Buffer Size      */
+#  define CONFIG_SYS_CBSIZE              1024       /* Console I/O Buffer Size      */
 #else
-#  define CFG_CBSIZE              256        /* Console I/O Buffer Size      */
+#  define CONFIG_SYS_CBSIZE              256        /* Console I/O Buffer Size      */
 #endif
 
 /* Print Buffer Size */
-#define CFG_PBSIZE        (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE        (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16)
 
-#define CFG_MAXARGS       8            /* max number of command args   */
+#define CONFIG_SYS_MAXARGS       8            /* max number of command args   */
 
-#define CFG_BARGSIZE      CFG_CBSIZE   /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_BARGSIZE      CONFIG_SYS_CBSIZE   /* Boot Argument Buffer Size    */
 
-#ifdef CFG_LSDRAM
-  #define CFG_MEMTEST_START 0x04000000   /* memtest works on  */
-  #define CFG_MEMTEST_END   0x06000000   /* 64-96 MB in SDRAM */
+#ifdef CONFIG_SYS_LSDRAM
+  #define CONFIG_SYS_MEMTEST_START 0x04000000   /* memtest works on  */
+  #define CONFIG_SYS_MEMTEST_END   0x06000000   /* 64-96 MB in SDRAM */
 #else
-  #define CFG_MEMTEST_START 0x00000000   /* memtest works on  */
-  #define CFG_MEMTEST_END   0x02000000   /* 0-32 MB in SDRAM */
-#endif /* CFG_LSDRAM */
+  #define CONFIG_SYS_MEMTEST_START 0x00000000   /* memtest works on  */
+  #define CONFIG_SYS_MEMTEST_END   0x02000000   /* 0-32 MB in SDRAM */
+#endif /* CONFIG_SYS_LSDRAM */
 
 #define        CONFIG_CLOCKS_IN_MHZ    1      /* clocks passsed to Linux in MHz */
 
-#define CFG_LOAD_ADDR     0x00100000   /* default load address */
-#define CFG_TFTP_LOADADDR 0x00100000   /* default load address for network file downloads */
+#define CONFIG_SYS_LOAD_ADDR     0x00100000   /* default load address */
+#define CONFIG_SYS_TFTP_LOADADDR 0x00100000   /* default load address for network file downloads */
 
-#define CFG_HZ            1000         /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ            1000         /* decrementer freq: 1 ms ticks */
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_FLASH_BASE    CFG_FLASH0_BASE
-#define CFG_SDRAM_BASE    CFG_SDRAM0_BASE
+#define CONFIG_SYS_FLASH_BASE    CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_SDRAM_BASE    CONFIG_SYS_SDRAM0_BASE
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  */
 
-#if defined(CFG_SBC_BOOT_LOW)
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
+#if defined(CONFIG_SYS_SBC_BOOT_LOW)
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
 #else
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (0x00000000)
-#endif /* defined(CFG_SBC_BOOT_LOW) */
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (0x00000000)
+#endif /* defined(CONFIG_SYS_SBC_BOOT_LOW) */
 
-#ifdef CFG_EP8260_H2
-/* get the HRCW ISB field from CFG_DEFAULT_IMMR */
-#define CFG_SBC_HRCW_IMMR ( ((CFG_DEFAULT_IMMR & 0x10000000) >> 10) |\
-                           ((CFG_DEFAULT_IMMR & 0x01000000) >> 7)  |\
-                           ((CFG_DEFAULT_IMMR & 0x00100000) >> 4) )
+#ifdef CONFIG_SYS_EP8260_H2
+/* get the HRCW ISB field from CONFIG_SYS_DEFAULT_IMMR */
+#define CONFIG_SYS_SBC_HRCW_IMMR ( ((CONFIG_SYS_DEFAULT_IMMR & 0x10000000) >> 10) |\
+                           ((CONFIG_SYS_DEFAULT_IMMR & 0x01000000) >> 7)  |\
+                           ((CONFIG_SYS_DEFAULT_IMMR & 0x00100000) >> 4) )
 
-#define CFG_HRCW_MASTER (HRCW_EBM                |\
+#define CONFIG_SYS_HRCW_MASTER (HRCW_EBM                |\
                         HRCW_L2CPC01            |\
-                        CFG_SBC_HRCW_IMMR       |\
+                        CONFIG_SYS_SBC_HRCW_IMMR       |\
                         HRCW_APPC10             |\
                         HRCW_CS10PC01           |\
-                        CFG_SBC_MODCK_H         |\
-                        CFG_SBC_HRCW_BOOT_FLAGS)
+                        CONFIG_SYS_SBC_MODCK_H  |\
+                        CONFIG_SYS_SBC_HRCW_BOOT_FLAGS)
 #else
-#define CFG_HRCW_MASTER 0x10400245
+#define CONFIG_SYS_HRCW_MASTER 0x10400245
 #endif
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1 0
-#define CFG_HRCW_SLAVE2 0
-#define CFG_HRCW_SLAVE3 0
-#define CFG_HRCW_SLAVE4 0
-#define CFG_HRCW_SLAVE5 0
-#define CFG_HRCW_SLAVE6 0
-#define CFG_HRCW_SLAVE7 0
+#define CONFIG_SYS_HRCW_SLAVE1 0
+#define CONFIG_SYS_HRCW_SLAVE2 0
+#define CONFIG_SYS_HRCW_SLAVE3 0
+#define CONFIG_SYS_HRCW_SLAVE4 0
+#define CONFIG_SYS_HRCW_SLAVE5 0
+#define CONFIG_SYS_HRCW_SLAVE6 0
+#define CONFIG_SYS_HRCW_SLAVE7 0
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR       CFG_IMMR
-#define CFG_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE      128     /* bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
- * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependent.
  */
-#define CFG_MONITOR_BASE          TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE          TEXT_BASE
 
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#  define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#  define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN      (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN       (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN      (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN       (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ        (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS   1       /* max number of memory banks         */
-#ifdef CFG_EP8260_H2
-#define CFG_MAX_FLASH_SECT    128      /* max number of sectors on one chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS   1       /* max number of memory banks         */
+#ifdef CONFIG_SYS_EP8260_H2
+#define CONFIG_SYS_MAX_FLASH_SECT    128      /* max number of sectors on one chip  */
 #else
-#define CFG_MAX_FLASH_SECT    71      /* max number of sectors on one chip  */
+#define CONFIG_SYS_MAX_FLASH_SECT    71      /* max number of sectors on one chip  */
 #endif
 
-#ifdef CFG_EP8260_H2
-#define CFG_FLASH_ERASE_TOUT  240000  /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT  500     /* Timeout for Flash Write (in ms)    */
+#ifdef CONFIG_SYS_EP8260_H2
+#define CONFIG_SYS_FLASH_ERASE_TOUT  240000  /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT  500     /* Timeout for Flash Write (in ms)    */
 #else
-#define CFG_FLASH_ERASE_TOUT  8000    /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT  1       /* Timeout for Flash Write (in ms)    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT  8000    /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT  1       /* Timeout for Flash Write (in ms)    */
 #endif
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #  define CONFIG_ENV_IS_IN_FLASH  1
 
 #  ifdef CONFIG_ENV_IN_OWN_SECT
-#    define CONFIG_ENV_ADDR       (CFG_MONITOR_BASE + 0x40000)
+#    define CONFIG_ENV_ADDR       (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #    define CONFIG_ENV_SECT_SIZE  0x40000
 #  else
-#    define CONFIG_ENV_ADDR (CFG_FLASH_BASE + CFG_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
+#    define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
 #    define CONFIG_ENV_SIZE       0x1000  /* Total Size of Environment Sector */
 #    define CONFIG_ENV_SECT_SIZE  0x10000 /* see README - env sect real size */
 #  endif /* CONFIG_ENV_IN_OWN_SECT */
 #else
 #  define CONFIG_ENV_IS_IN_NVRAM  1
-#  define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+#  define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #  define CONFIG_ENV_SIZE         0x200
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE      32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT     5     /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT     5     /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE  |\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE  |\
                         HID0_DCE  |\
                         HID0_ICFI |\
                         HID0_DCI  |\
                         HID0_IFEM |\
                         HID0_ABE)
-#ifdef CFG_LSDRAM
+#ifdef CONFIG_SYS_LSDRAM
 /* 8260 local bus is NOT cacheable */
-#define CFG_HID0_FINAL  (/*HID0_ICE  |*/\
+#define CONFIG_SYS_HID0_FINAL  (/*HID0_ICE  |*/\
                         HID0_IFEM |\
                         HID0_ABE  |\
                         HID0_EMCP)
-#else /* !CFG_LSDRAM */
-#define CFG_HID0_FINAL  (HID0_ICE  |\
+#else /* !CONFIG_SYS_LSDRAM */
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE  |\
                         HID0_IFEM |\
                         HID0_ABE  |\
                         HID0_EMCP)
-#endif /* CFG_LSDRAM */
+#endif /* CONFIG_SYS_LSDRAM */
 
-#define CFG_HID2        0
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMR         0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                       4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR         (BCR_EBM   |\
+#define CONFIG_SYS_BCR         (BCR_EBM   |\
                         BCR_PLDP  |\
                         BCR_EAV   |\
                         BCR_NPQM0)
  * SIUMCR - SIU Module Configuration                             4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR      (SIUMCR_L2CPC01 |\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_L2CPC01 |\
                         SIUMCR_APPC10  |\
                         SIUMCR_CS10PC01)
 
  *-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
-#ifdef CFG_EP8260_H2
+#ifdef CONFIG_SYS_EP8260_H2
 /* TBD: Find out why setting the BMT to 0xff causes the FCC to
  * generate TX buffer underrun errors for large packets under
  * Linux
  */
-#define CFG_SYPCR_BMT  0x00000600
+#define CONFIG_SYS_SYPCR_BMT   0x00000600
 #else
-#define CFG_SYPCR_BMT  SYPCR_BMT
+#define CONFIG_SYS_SYPCR_BMT   SYPCR_BMT
 #endif
 
-#ifdef CFG_LSDRAM
-#define CFG_SYPCR       (SYPCR_SWTC |\
-                        CFG_SYPCR_BMT  |\
+#ifdef CONFIG_SYS_LSDRAM
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
+                        CONFIG_SYS_SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_LBME |\
                         SYPCR_SWP)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC |\
-                        CFG_SYPCR_BMT  |\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
+                        CONFIG_SYS_SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_SWP)
 #endif
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC |\
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC |\
                         TMCNTSC_ALR |\
                         TMCNTSC_TCF |\
                         TMCNTSC_TCE)
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#ifdef CFG_EP8260_H2
-#define CFG_PISCR       (PISCR_PS  |\
+#ifdef CONFIG_SYS_EP8260_H2
+#define CONFIG_SYS_PISCR       (PISCR_PS  |\
                         PISCR_PTF |\
                         PISCR_PTE)
 #else
-#define CFG_PISCR      0
+#define CONFIG_SYS_PISCR       0
 #endif
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                   9-8
  *-----------------------------------------------------------------------
  */
-#ifdef CFG_EP8260_H2
-#define CFG_SCCR        (SCCR_DFBRG00)
+#ifdef CONFIG_SYS_EP8260_H2
+#define CONFIG_SYS_SCCR        (SCCR_DFBRG00)
 #else
-#define CFG_SCCR        (SCCR_DFBRG01)
+#define CONFIG_SYS_SCCR        (SCCR_DFBRG01)
 #endif
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*-----------------------------------------------------------------------
  * MPTPR - Memory Refresh Timer Prescale Register               10-32
  *-----------------------------------------------------------------------
  */
-#define CFG_MPTPR      (0x0A00 & MPTPR_PTP_MSK)
+#define CONFIG_SYS_MPTPR       (0x0A00 & MPTPR_PTP_MSK)
 
 /*
  * Init Memory Controller:
 /* Bank 0 - FLASH
  *
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_DECC_NONE                  |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH0_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH0_SIZE)     |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_8_CLK                 |\
 /* Bank 1 - SDRAM
  * PSDRAM
  */
-#define CFG_BR1_PRELIM  ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM  (MEG_TO_AM(CFG_SDRAM0_SIZE)     |\
+#define CONFIG_SYS_OR1_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE)     |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A6             |\
                         ORxS_NUMR_12)
 
-#ifdef CFG_EP8260_H2
-#define CFG_PSDMR       0xC34E246E
+#ifdef CONFIG_SYS_EP8260_H2
+#define CONFIG_SYS_PSDMR       0xC34E246E
 #else
-#define CFG_PSDMR       0xC34E2462
+#define CONFIG_SYS_PSDMR       0xC34E2462
 #endif
 
-#define CFG_PSRT       0x64
+#define CONFIG_SYS_PSRT        0x64
 
-#ifdef CFG_LSDRAM
+#ifdef CONFIG_SYS_LSDRAM
 /* Bank 2 - SDRAM
  * LSDRAM
  */
 
-  #define CFG_BR2_PRELIM  ((CFG_SDRAM1_BASE & BRx_BA_MSK) |\
+  #define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM1_BASE & BRx_BA_MSK) |\
                           BRx_PS_32                      |\
                           BRx_MS_SDRAM_L                 |\
                           BRx_V)
 
-  #define CFG_OR2_PRELIM  (MEG_TO_AM(CFG_SDRAM1_SIZE)     |\
+  #define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM1_SIZE)     |\
                           ORxS_BPD_4                     |\
                           ORxS_ROWST_PBI0_A9             |\
                           ORxS_NUMR_12)
 
-  #define CFG_LSDMR      0x416A2562
-  #define CFG_LSRT     0x64
+  #define CONFIG_SYS_LSDMR      0x416A2562
+  #define CONFIG_SYS_LSRT      0x64
 #else
-  #define CFG_LSRT     0x0
-#endif /* CFG_LSDRAM */
+  #define CONFIG_SYS_LSRT      0x0
+#endif /* CONFIG_SYS_LSDRAM */
 
 /* Bank 4 - On board registers
  * NVRTC and BCSR
  */
-#define CFG_BR4_PRELIM   ((CFG_REGS_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR4_PRELIM   ((CONFIG_SYS_REGS_BASE & BRx_BA_MSK)  |\
                           BRx_PS_8                     |\
                           BRx_MS_GPCM_P                |\
                           BRx_V)
 /*
-#define CFG_OR4_PRELIM    (ORxG_AM_MSK                 |\
+#define CONFIG_SYS_OR4_PRELIM    (ORxG_AM_MSK                 |\
                           ORxG_CSNT                   |\
                           ORxG_ACS_DIV1               |\
                           ORxG_SCY_10_CLK              |\
                           ORxG_TRLX)
 */
-#define CFG_OR4_PRELIM 0xfff00854
+#define CONFIG_SYS_OR4_PRELIM 0xfff00854
 
 #ifdef _NOT_USED_SINCE_NOT_WORKING_
 /* Bank 8 - On board registers
  * PCMCIA (currently not working!)
  */
-#define CFG_BR8_PRELIM   ((CFG_REGS_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR8_PRELIM   ((CONFIG_SYS_REGS_BASE & BRx_BA_MSK)  |\
                           BRx_PS_16                     |\
                           BRx_MS_GPCM_P                |\
                           BRx_V)
 
-#define CFG_OR8_PRELIM    (ORxG_AM_MSK                 |\
+#define CONFIG_SYS_OR8_PRELIM    (ORxG_AM_MSK                 |\
                           ORxG_CSNT                   |\
                           ORxG_ACS_DIV1               |\
                           ORxG_SETA                   |\
index 60df12fcea59d468ec6467a8665fcc4d6b73fa45..239ff6733091eaf9470a7fcfddc0974a5b3d58bb 100644 (file)
@@ -48,7 +48,7 @@
 #undef CONFIG_CONS_NONE                /* It's not on external UART */
 #define CONFIG_CONS_INDEX      1       /* SMC1 is used for console  */
 
-#define CFG_BCSR               0xFA000000
+#define CONFIG_SYS_BCSR                0xFA000000
 
 /*
  * Select ethernet configuration
 #define CONFIG_ETHER_ON_FCC2
 #define CONFIG_ETHER_ON_FCC3
 
-#define CFG_CMXFCR_MASK3       (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
-#define CFG_CMXFCR_VALUE3      (CMXFCR_RF3CS_CLK15 | CMXFCR_TF3CS_CLK16)
-#define CFG_CMXFCR_MASK2       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-#define CFG_CMXFCR_VALUE2      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+#define CONFIG_SYS_CMXFCR_MASK3        (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE3       (CMXFCR_RF3CS_CLK15 | CMXFCR_TF3CS_CLK16)
+#define CONFIG_SYS_CMXFCR_MASK2        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE2       (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
 
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #define CONFIG_MII                     /* MII PHY management        */
 #define CONFIG_BITBANGMII              /* Bit-banged MDIO interface */
  * GPIO pins used for bit-banged MII communications
  */
 #define MDIO_PORT              0       /* Not used - implemented in BCSR */
-#define MDIO_ACTIVE            (*(vu_char *)(CFG_BCSR + 8) &= 0xFB)
-#define MDIO_TRISTATE          (*(vu_char *)(CFG_BCSR + 8) |= 0x04)
-#define MDIO_READ              (*(vu_char *)(CFG_BCSR + 8) & 1)
+#define MDIO_ACTIVE            (*(vu_char *)(CONFIG_SYS_BCSR + 8) &= 0xFB)
+#define MDIO_TRISTATE          (*(vu_char *)(CONFIG_SYS_BCSR + 8) |= 0x04)
+#define MDIO_READ              (*(vu_char *)(CONFIG_SYS_BCSR + 8) & 1)
 
-#define MDIO(bit)              if(bit) *(vu_char *)(CFG_BCSR + 8) |= 0x01; \
-                               else    *(vu_char *)(CFG_BCSR + 8) &= 0xFE
+#define MDIO(bit)              if(bit) *(vu_char *)(CONFIG_SYS_BCSR + 8) |= 0x01; \
+                               else    *(vu_char *)(CONFIG_SYS_BCSR + 8) &= 0xFE
 
-#define MDC(bit)               if(bit) *(vu_char *)(CFG_BCSR + 8) |= 0x02; \
-                               else    *(vu_char *)(CFG_BCSR + 8) &= 0xFD
+#define MDC(bit)               if(bit) *(vu_char *)(CONFIG_SYS_BCSR + 8) |= 0x02; \
+                               else    *(vu_char *)(CONFIG_SYS_BCSR + 8) &= 0xFD
 
 #define MIIDELAY               udelay(1)
 
 
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_VXWORKS_MAC_PTR 0x4300 /* Pass Ethernet MAC to VxWorks */
+#define CONFIG_SYS_VXWORKS_MAC_PTR 0x4300 /* Pass Ethernet MAC to VxWorks */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "ep82xxm=> "    /* Monitor Command Prompt   */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "ep82xxm=> "    /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size  */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size  */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*-----------------------------------------------------------------------
  * Environment
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xFC000000
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_BASE          0xFC000000
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks       */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector in flinfo */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector in flinfo */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
 /* EEPROM Configuration */
-#define CFG_EEPROM_SIZE        0x1000
-#define CFG_I2C_EEPROM_ADDR    0x54
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_EEPROM_SIZE 0x1000
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x54
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 #ifdef CONFIG_ENV_IS_IN_EEPROM
 #define CONFIG_ENV_SIZE                0x200       /* Size of Environment vars */
 
 /* RTC Configuration */
 #define CONFIG_RTC_M41T11      1       /* uses a M41T81 */
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 #define CONFIG_M41T11_BASE_YEAR        1900
 
 /* I2C SYSMON (LM75) */
 #define CONFIG_DTT_LM75                1
 #define CONFIG_DTT_SENSORS     {0}
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define        CFG_DTT_HYSTERESIS      3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define        CONFIG_SYS_DTT_HYSTERESIS       3
 
 /*-----------------------------------------------------------------------
  * NVRAM Configuration
  *-----------------------------------------------------------------------
  */
-#define CFG_NVRAM_BASE_ADDR    0xFA080000
-#define CFG_NVRAM_SIZE         (128*1024)-16
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xFA080000
+#define CONFIG_SYS_NVRAM_SIZE          (128*1024)-16
 
 
 /*-----------------------------------------------------------------------
 #define CONFIG_PCI_BOOTDELAY   0
 
 /* PCI Memory map (if different from default map */
-#define CFG_PCI_SLV_MEM_LOCAL  CFG_SDRAM_BASE          /* Local base */
-#define CFG_PCI_SLV_MEM_BUS            0x00000000      /* PCI base */
-#define CFG_PICMR0_MASK_ATTRIB (PICMR_MASK_512MB | PICMR_ENABLE | \
+#define CONFIG_SYS_PCI_SLV_MEM_LOCAL   CONFIG_SYS_SDRAM_BASE           /* Local base */
+#define CONFIG_SYS_PCI_SLV_MEM_BUS             0x00000000      /* PCI base */
+#define CONFIG_SYS_PICMR0_MASK_ATTRIB  (PICMR_MASK_512MB | PICMR_ENABLE | \
                                 PICMR_PREFETCH_EN)
 
 /*
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_MEM_LOCAL 0x80000000          /* Local base */
-#define CFG_PCI_MSTR_MEM_BUS   0x80000000          /* PCI base   */
-#define        CFG_CPU_PCI_MEM_START   PCI_MSTR_MEM_LOCAL
-#define CFG_PCI_MSTR_MEM_SIZE  0x20000000          /* 512MB */
-#define CFG_POCMR0_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
+#define CONFIG_SYS_PCI_MSTR_MEM_LOCAL  0x80000000          /* Local base */
+#define CONFIG_SYS_PCI_MSTR_MEM_BUS    0x80000000          /* PCI base   */
+#define        CONFIG_SYS_CPU_PCI_MEM_START    PCI_MSTR_MEM_LOCAL
+#define CONFIG_SYS_PCI_MSTR_MEM_SIZE   0x20000000          /* 512MB */
+#define CONFIG_SYS_POCMR0_MASK_ATTRIB  (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
 
 /*
  * Master window that allows the CPU to access PCI Memory (non-prefetch).
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_MEMIO_LOCAL    0xA0000000          /* Local base */
-#define CFG_PCI_MSTR_MEMIO_BUS      0xA0000000          /* PCI base   */
-#define CFG_CPU_PCI_MEMIO_START     PCI_MSTR_MEMIO_LOCAL
-#define CFG_PCI_MSTR_MEMIO_SIZE     0x20000000          /* 512MB */
-#define CFG_POCMR1_MASK_ATTRIB      (POCMR_MASK_512MB | POCMR_ENABLE)
+#define CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL    0xA0000000          /* Local base */
+#define CONFIG_SYS_PCI_MSTR_MEMIO_BUS      0xA0000000          /* PCI base   */
+#define CONFIG_SYS_CPU_PCI_MEMIO_START     PCI_MSTR_MEMIO_LOCAL
+#define CONFIG_SYS_PCI_MSTR_MEMIO_SIZE     0x20000000          /* 512MB */
+#define CONFIG_SYS_POCMR1_MASK_ATTRIB      (POCMR_MASK_512MB | POCMR_ENABLE)
 
 /*
  * Master window that allows the CPU to access PCI IO space.
  * in the bridge.
  */
 
-#define CFG_PCI_MSTR_IO_LOCAL       0xF6000000          /* Local base */
-#define CFG_PCI_MSTR_IO_BUS         0x00000000          /* PCI base   */
-#define CFG_CPU_PCI_IO_START        PCI_MSTR_IO_LOCAL
-#define CFG_PCI_MSTR_IO_SIZE        0x02000000          /* 64MB */
-#define CFG_POCMR2_MASK_ATTRIB      (POCMR_MASK_32MB | POCMR_ENABLE | POCMR_PCI_IO)
+#define CONFIG_SYS_PCI_MSTR_IO_LOCAL       0xF6000000          /* Local base */
+#define CONFIG_SYS_PCI_MSTR_IO_BUS         0x00000000          /* PCI base   */
+#define CONFIG_SYS_CPU_PCI_IO_START        PCI_MSTR_IO_LOCAL
+#define CONFIG_SYS_PCI_MSTR_IO_SIZE        0x02000000          /* 64MB */
+#define CONFIG_SYS_POCMR2_MASK_ATTRIB      (POCMR_MASK_32MB | POCMR_ENABLE | POCMR_PCI_IO)
 
 
 /* PCIBR0 - for PCI IO*/
-#define CFG_PCI_MSTR0_LOCAL            CFG_PCI_MSTR_IO_LOCAL           /* Local base */
-#define CFG_PCIMSK0_MASK               ~(CFG_PCI_MSTR_IO_SIZE - 1U)    /* Size of window */
+#define CONFIG_SYS_PCI_MSTR0_LOCAL             CONFIG_SYS_PCI_MSTR_IO_LOCAL            /* Local base */
+#define CONFIG_SYS_PCIMSK0_MASK                ~(CONFIG_SYS_PCI_MSTR_IO_SIZE - 1U)     /* Size of window */
 /* PCIBR1 - prefetch and non-prefetch regions joined together */
-#define CFG_PCI_MSTR1_LOCAL            CFG_PCI_MSTR_MEM_LOCAL
-#define CFG_PCIMSK1_MASK               ~(CFG_PCI_MSTR_MEM_SIZE + CFG_PCI_MSTR_MEMIO_SIZE - 1U)
+#define CONFIG_SYS_PCI_MSTR1_LOCAL             CONFIG_SYS_PCI_MSTR_MEM_LOCAL
+#define CONFIG_SYS_PCIMSK1_MASK                ~(CONFIG_SYS_PCI_MSTR_MEM_SIZE + CONFIG_SYS_PCI_MSTR_MEMIO_SIZE - 1U)
 
 
-#define        CFG_DIRECT_FLASH_TFTP
+#define        CONFIG_SYS_DIRECT_FLASH_TFTP
 
 #if defined(CONFIG_CMD_JFFS2)
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    CFG_MAX_FLASH_BANKS
-#define CFG_JFFS2_FIRST_SECTOR  0
-#define CFG_JFFS2_LAST_SECTOR   62
-#define CFG_JFFS2_SORT_FRAGMENTS
-#define CFG_JFFS_CUSTOM_PART
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     CONFIG_SYS_MAX_FLASH_BANKS
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  0
+#define CONFIG_SYS_JFFS2_LAST_SECTOR   62
+#define CONFIG_SYS_JFFS2_SORT_FRAGMENTS
+#define CONFIG_SYS_JFFS_CUSTOM_PART
 #endif
 
 #if defined(CONFIG_CMD_I2C)
 #define CONFIG_HARD_I2C                1       /* To enable I2C support        */
-#define CFG_I2C_SPEED          100000  /* I2C speed                    */
-#define CFG_I2C_SLAVE          0x7F    /* I2C slave address            */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed                    */
+#define CONFIG_SYS_I2C_SLAVE           0x7F    /* I2C slave address            */
 #endif
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (512 << 10)     /* Reserve 256KB for Monitor */
+#define CONFIG_SYS_MONITOR_LEN         (512 << 10)     /* Reserve 256KB for Monitor */
 
-#define CFG_DEFAULT_IMMR       0x00010000
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_DEFAULT_IMMR        0x00010000
+#define CONFIG_SYS_IMMR                0xF0000000
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 
 /* Hard reset configuration word */
-#define CFG_HRCW_MASTER                0 /*0x1C800641*/  /* Not used - provided by CPLD */
+#define CONFIG_SYS_HRCW_MASTER         0 /*0x1C800641*/  /* Not used - provided by CPLD */
 /* No slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                  */
 
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 
-#define CFG_HID2               0
+#define CONFIG_SYS_HID2                0
 
-#define CFG_SIUMCR             0x02610000
-#define CFG_SYPCR              0xFFFF0689
-#define CFG_BCR                        0x8080E000
-#define CFG_SCCR               0x00000001
+#define CONFIG_SYS_SIUMCR              0x02610000
+#define CONFIG_SYS_SYPCR               0xFFFF0689
+#define CONFIG_SYS_BCR                 0x8080E000
+#define CONFIG_SYS_SCCR                0x00000001
 
-#define CFG_RMR                        0
-#define CFG_TMCNTSC            0x000000C3
-#define CFG_PISCR              0x00000083
-#define CFG_RCCR               0
+#define CONFIG_SYS_RMR                 0
+#define CONFIG_SYS_TMCNTSC             0x000000C3
+#define CONFIG_SYS_PISCR               0x00000083
+#define CONFIG_SYS_RCCR                0
 
-#define CFG_MPTPR              0x0A00
-#define CFG_PSDMR              0xC432246E
-#define CFG_PSRT               0x32
+#define CONFIG_SYS_MPTPR               0x0A00
+#define CONFIG_SYS_PSDMR               0xC432246E
+#define CONFIG_SYS_PSRT                0x32
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_BR           (CFG_SDRAM_BASE | 0x00000041)
-#define CFG_SDRAM_OR           0xF0002900
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_BR            (CONFIG_SYS_SDRAM_BASE | 0x00000041)
+#define CONFIG_SYS_SDRAM_OR            0xF0002900
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE | 0x00001801)
-#define CFG_OR0_PRELIM         0xFC000882
-#define CFG_BR4_PRELIM         (CFG_BCSR | 0x00001001)
-#define CFG_OR4_PRELIM         0xFFF00050
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE | 0x00001801)
+#define CONFIG_SYS_OR0_PRELIM          0xFC000882
+#define CONFIG_SYS_BR4_PRELIM          (CONFIG_SYS_BCSR | 0x00001001)
+#define CONFIG_SYS_OR4_PRELIM          0xFFF00050
 
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
 #endif /* __CONFIG_H */
index 63ca2a5cb4e37c77ffd09647c1646fc298b0c371..cbaae62059c92b0cba315892cca4540604bcfe51 100644 (file)
@@ -51,8 +51,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_PROMPT             "evb4510 # "    /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "evb4510 # "    /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
 #define CONFIG_CMDLINE_TAG                      /* allow passing of command line args to linux */
 #define CONFIG_SETUP_MEMORY_TAGS
 #define CONFIG_INITRD_TAG
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00780000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00780000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x00000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00000000      /* default load address */
 
-#define CFG_SYS_CLK_FREQ       50000000        /* CPU freq: 50 MHz */
-#define CFG_HZ                 1000            /* decrementer freq: 1 KHz */
+#define CONFIG_SYS_SYS_CLK_FREQ        50000000        /* CPU freq: 50 MHz */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 KHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_2           0x02000000 /* Flash Bank #2 */
 #define PHYS_FLASH_2_SIZE      0x00080000 /* 512KB (one chip, 8bit access) */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
-#define CFG_FLASH_SIZE         PHYS_FLASH_1_SIZE
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_SIZE          PHYS_FLASH_1_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     35      /* max number of sectors on one chip */
-#define CFG_MAIN_SECT_SIZE     0x00010000  /* main size of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAIN_SECT_SIZE      0x00010000  /* main size of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (4*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (4*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* environment settings */
 #define CONFIG_ENV_IS_IN_FLASH
 #undef CONFIG_ENV_IS_NOWHERE
 
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x20000) /* environment start address */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x20000) /* environment start address */
 #define CONFIG_ENV_SECT_SIZE   0x10000    /* Total Size of Environment Sector */
 #define CONFIG_ENV_SIZE                0x1000     /* max size for environment */
 
index e445a135bf5743e9a4db5362cea3abcb9f636469..3cef4196df47cc8eda148e799e9138d6617eba62 100644 (file)
  * Timer clock frequency. We're using the CPU-internal COUNT register
  * for this, so this is equivalent to the CPU core clock frequency
  */
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
  * frequency, the HSB and PBB at 1/2, and the PBA to run at 1/4 the
  * PLL frequency.
- * (CFG_OSC0_HZ * CFG_PLL0_MUL) / CFG_PLL0_DIV = PLL MHz
+ * (CONFIG_SYS_OSC0_HZ * CONFIG_SYS_PLL0_MUL) / CONFIG_SYS_PLL0_DIV = PLL MHz
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    20000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   7
-#define CFG_PLL0_SUPPRESS_CYCLES       16
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     20000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    7
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
 /*
  * Set the CPU running at:
- * PLL / (2^CFG_CLKDIV_CPU) = CPU MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_CPU) = CPU MHz
  */
-#define CFG_CLKDIV_CPU                 0
+#define CONFIG_SYS_CLKDIV_CPU                  0
 /*
  * Set the HSB running at:
- * PLL / (2^CFG_CLKDIV_HSB) = HSB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_HSB) = HSB MHz
  */
-#define CFG_CLKDIV_HSB                 1
+#define CONFIG_SYS_CLKDIV_HSB                  1
 /*
  * Set the PBA running at:
- * PLL / (2^CFG_CLKDIV_PBA) = PBA MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBA) = PBA MHz
  */
-#define CFG_CLKDIV_PBA                 2
+#define CONFIG_SYS_CLKDIV_PBA                  2
 /*
  * Set the PBB running at:
- * PLL / (2^CFG_CLKDIV_PBB) = PBB MHz
+ * PLL / (2^CONFIG_SYS_CLKDIV_PBB) = PBB MHz
  */
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -77,7 +77,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #undef CONFIG_USART0
 #undef CONFIG_USART1
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_MACB                    1
 #define CONFIG_PIO2                    1
-#define CFG_NR_PIOS                    5
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_NR_PIOS                     5
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
 /* External flash on Favr-32 */
 #if 0
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 #endif
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        INTERNAL_SRAM_BASE
-#define CFG_INTRAM_SIZE                        INTERNAL_SRAM_SIZE
-#define CFG_SDRAM_BASE                 EBI_SDRAM_BASE
+#define CONFIG_SYS_INTRAM_BASE                 INTERNAL_SRAM_BASE
+#define CONFIG_SYS_INTRAM_SIZE                 INTERNAL_SRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE                  EBI_SDRAM_BASE
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (256*1024)
-#define CFG_DMA_ALLOC_LEN              (16384)
+#define CONFIG_SYS_MALLOC_LEN                  (256*1024)
+#define CONFIG_SYS_DMA_ALLOC_LEN               (16384)
 
 /* Allow 4MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (EBI_SDRAM_BASE + 0x00400000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (EBI_SDRAM_BASE + 0x00400000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "U-Boot> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
-
-#define CFG_MEMTEST_START              EBI_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x700000)
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_PROMPT                      "U-Boot> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
+
+#define CONFIG_SYS_MEMTEST_START               EBI_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x700000)
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index 5863f83395a94d006435c66d39b47499fc96f854..c0b3ab91e433c74cdb9263419100b9b0bffe5ce8 100644 (file)
@@ -57,8 +57,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE       128     /* size rsrvd for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size rsrvd for initial data */
 
 
 /*
@@ -98,7 +98,7 @@
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_BOOTARGS                "console=ttySA0,38400n8 mtdparts=sa1100-flash:1m@0(zImage),3m@1m(ramdisk.gz),12m@4m(userfs) root=/dev/nfs ip=bootp"
 #define CONFIG_BOOTCOMMAND     "bootp;tftp;bootm"
-#define CFG_AUTOLOAD            "n"             /* No autoload */
+#define CONFIG_SYS_AUTOLOAD            "n"             /* No autoload */
 
 #if defined(CONFIG_CMD_KGDB)
 #define CONFIG_KGDB_BAUDRATE   38400           /* speed to run kgdb serial port */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "ADS GCPlus # " /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "ADS GCPlus # " /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xc0000000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xc0000000      /* default load address */
 
-#define        CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x0a            /* set core clock to 206MHz */
+#define        CONFIG_SYS_HZ                   3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x0a            /* set core clock to 206MHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_BANK_SIZE    0x01000000 /* 16 MB Banks */
 #define PHYS_FLASH_SECT_SIZE    0x00040000 /* 256 KB sectors (x2) */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 #if    1
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 #else
 /* REVISIT: This doesn't work on ADS GCPlus just yet: */
-#define CFG_FLASH_CFI           1       /* flash is CFI conformant      */
+#define CONFIG_SYS_FLASH_CFI           1       /* flash is CFI conformant      */
 #define CONFIG_FLASH_CFI_DRIVER    1       /* use common cfi driver        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_BANKS     1       /* max # of memory banks        */
-#define CFG_FLASH_INCREMENT     0       /* there is only one bank       */
-#define CFG_MAX_FLASH_SECT      128     /* max # of sectors on one chip */
-/*#define CFG_FLASH_PROTECTION    1       /--* hardware flash protection    */
-#define CFG_FLASH_BANKS_LIST    { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max # of memory banks        */
+#define CONFIG_SYS_FLASH_INCREMENT     0       /* there is only one bank       */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max # of sectors on one chip */
+/*#define CONFIG_SYS_FLASH_PROTECTION    1       /--* hardware flash protection    */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 #endif
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
index 5a7a580b0950b42f9eca972ecf3b09c398d59e2e..bbe635b9fe1dec099931cd62cc426e141b8a1cf9 100644 (file)
 #define CONFIG_SYS_CLK_FREQ    20000000        /* 20MHz */
 
 /* Number of SPARC register windows */
-#define CFG_SPARC_NWINDOWS 8
+#define CONFIG_SYS_SPARC_NWINDOWS 8
 
 /*
  * Serial console configuration
  */
 #define CONFIG_BAUDRATE                38400   /* ... at 38400 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_DOS_PARTITION
  *               0xFF000000 for 16 MB
  *               0xFF800000 for  8 MB
  */
-/*#define CFG_NO_FLASH         1*/
-#define CFG_FLASH_BASE         0x00000000
-#define CFG_FLASH_SIZE         0x00800000
+/*#define CONFIG_SYS_NO_FLASH          1*/
+#define CONFIG_SYS_FLASH_BASE          0x00000000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 128 KB sectors */
-#define CFG_MAX_FLASH_SECT     64      /* max num of sects on one chip */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION   /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION    /* "Real" (hardware) sectors protection */
 
 /*** CFI CONFIG ***/
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 /* Bypass cache when reading regs from flash memory */
-#define CFG_FLASH_CFI_BYPASS_READ
+#define CONFIG_SYS_FLASH_CFI_BYPASS_READ
 /* Buffered writes (32byte/go) instead of single accesses */
-#define CFG_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /*
  * Environment settings
 /* CONFIG_ENV_ADDR need to be at sector boundary */
 #define CONFIG_ENV_SIZE                0x8000
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+CFG_FLASH_SIZE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_OVERWRITE   1
 
 /*
  */
 
 #if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SDRAM_NOSRAM
-#define CFG_SDRAM_BASE         0x40000000
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
 #else
-#define CFG_SDRAM_BASE         0x60000000
+#define CONFIG_SYS_SDRAM_BASE          0x60000000
 #endif
 
-#define CFG_SDRAM_SIZE         0x08000000
-#define CFG_SDRAM_END          (CFG_SDRAM_BASE+CFG_SDRAM_SIZE)
+#define CONFIG_SYS_SDRAM_SIZE          0x08000000
+#define CONFIG_SYS_SDRAM_END           (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE)
 
 /* 4Mb SRAM available */
 #if CONFIG_LEON_RAM_SELECT != CONFIG_LEON_RAM_SDRAM_NOSRAM
-#define CFG_SRAM_BASE 0x40000000
-#define CFG_SRAM_SIZE 0x400000
-#define CFG_SRAM_END  (CFG_SRAM_BASE+CFG_SRAM_SIZE)
+#define CONFIG_SYS_SRAM_BASE 0x40000000
+#define CONFIG_SYS_SRAM_SIZE 0x400000
+#define CONFIG_SYS_SRAM_END  (CONFIG_SYS_SRAM_BASE+CONFIG_SYS_SRAM_SIZE)
 #endif
 
 /* Select RAM used to run U-BOOT from... */
 #if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SRAM
-#define CFG_RAM_BASE CFG_SRAM_BASE
-#define CFG_RAM_SIZE CFG_SRAM_SIZE
-#define CFG_RAM_END CFG_SRAM_END
+#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SRAM_BASE
+#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SRAM_SIZE
+#define CONFIG_SYS_RAM_END CONFIG_SYS_SRAM_END
 #else
-#define CFG_RAM_BASE CFG_SDRAM_BASE
-#define CFG_RAM_SIZE CFG_SDRAM_SIZE
-#define CFG_RAM_END CFG_SDRAM_END
+#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE
+#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END
 #endif
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
-#define CFG_PROM_SIZE          (8192-CFG_GBL_DATA_SIZE)
-#define CFG_PROM_OFFSET                (CFG_GBL_DATA_OFFSET-CFG_PROM_SIZE)
+#define CONFIG_SYS_PROM_SIZE           (8192-CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_PROM_OFFSET         (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE)
 
-#define CFG_INIT_SP_OFFSET     (CFG_PROM_OFFSET-32)
-#define CFG_STACK_SIZE         (0x10000-32)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_PROM_OFFSET-32)
+#define CONFIG_SYS_STACK_SIZE          (0x10000-32)
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MALLOC_END         (CFG_INIT_SP_OFFSET-CFG_STACK_SIZE)
-#define CFG_MALLOC_BASE                (CFG_MALLOC_END-CFG_MALLOC_LEN)
+#define CONFIG_SYS_MALLOC_END          (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE)
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN)
 
 /* relocated monitor area */
-#define CFG_RELOC_MONITOR_MAX_END   CFG_MALLOC_BASE
-#define CFG_RELOC_MONITOR_BASE     (CFG_RELOC_MONITOR_MAX_END-CFG_MONITOR_LEN)
+#define CONFIG_SYS_RELOC_MONITOR_MAX_END   CONFIG_SYS_MALLOC_BASE
+#define CONFIG_SYS_RELOC_MONITOR_BASE     (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN)
 
 /* make un relocated address from relocated address */
-#define UN_RELOC(address) (address-(CFG_RELOC_MONITOR_BASE-TEXT_BASE))
+#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE))
 
 /*
  * Ethernet configuration uses on board SMC91C111
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * Various low-level settings
 /***** Gaisler GRLIB IP-Cores Config ********/
 
 /* AMBA Plug & Play info display on startup */
-/*#define CFG_AMBAPP_PRINT_ON_STARTUP*/
+/*#define CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP*/
 
-#define CFG_GRLIB_SDRAM    0
+#define CONFIG_SYS_GRLIB_SDRAM    0
 
 /* See, GRLIB Docs (grip.pdf) on how to set up
  * These the memory controller registers.
  */
-#define CFG_GRLIB_MEMCFG1   (0x10f800ff | (1<<11))
+#define CONFIG_SYS_GRLIB_MEMCFG1   (0x10f800ff | (1<<11))
 #if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SDRAM_NOSRAM
-#define CFG_GRLIB_MEMCFG2   0x82206000
+#define CONFIG_SYS_GRLIB_MEMCFG2   0x82206000
 #else
-#define CFG_GRLIB_MEMCFG2   0x82205260
+#define CONFIG_SYS_GRLIB_MEMCFG2   0x82205260
 #endif
-#define CFG_GRLIB_MEMCFG3   0x0809a000
+#define CONFIG_SYS_GRLIB_MEMCFG3   0x0809a000
 
-#define CFG_GRLIB_FT_MEMCFG1   (0x10f800ff | (1<<11))
+#define CONFIG_SYS_GRLIB_FT_MEMCFG1   (0x10f800ff | (1<<11))
 #if CONFIG_LEON_RAM_SELECT == CONFIG_LEON_RAM_SDRAM_NOSRAM
-#define CFG_GRLIB_FT_MEMCFG2   0x82206000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG2   0x82206000
 #else
-#define CFG_GRLIB_FT_MEMCFG2   0x82205260
+#define CONFIG_SYS_GRLIB_FT_MEMCFG2   0x82205260
 #endif
-#define CFG_GRLIB_FT_MEMCFG3   0x0809a000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG3   0x0809a000
 
 /* no DDR controller */
-#define CFG_GRLIB_DDR_CFG   0x00000000
+#define CONFIG_SYS_GRLIB_DDR_CFG   0x00000000
 
 /* no DDR2 Controller */
-#define CFG_GRLIB_DDR2_CFG1 0x00000000
-#define CFG_GRLIB_DDR2_CFG3 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG1 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG3 0x00000000
 
 /* Calculate scaler register value from default baudrate */
-#define CFG_GRLIB_APBUART_SCALER \
+#define CONFIG_SYS_GRLIB_APBUART_SCALER \
  ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
 
 /* Identification string */
index 3133c0d2b8c9fa9373cf1a3fd53534d163805276..6f58bac91f212360f9df8bbe800787be60d688e1 100644 (file)
@@ -45,7 +45,7 @@
 #define CONFIG_SYS_CLK_FREQ    96000000        /* 96MHz */
 
 /* Number of SPARC register windows */
-#define CFG_SPARC_NWINDOWS 8
+#define CONFIG_SYS_SPARC_NWINDOWS 8
 
 /* Define this is the GR-2S60-MEZZ mezzanine is available and you
  * want to use the USB and GRETH functionality of the board
@@ -61,7 +61,7 @@
  * Serial console configuration
  */
 #define CONFIG_BAUDRATE                38400   /* ... at 38400 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_DOS_PARTITION
@@ -87,7 +87,7 @@
 #define CONFIG_CMD_USB
 #define CONFIG_USB_STORAGE
 /* Enable needed helper functions */
-#define CFG_DEVICE_DEREGISTER  /* needs device_deregister */
+#define CONFIG_SYS_DEVICE_DEREGISTER   /* needs device_deregister */
 #endif
 
 /*
  *               0xFF000000 for 16 MB
  *               0xFF800000 for  8 MB
  */
-/*#define CFG_NO_FLASH         1*/
-#define CFG_FLASH_BASE         0x00000000
-#define CFG_FLASH_SIZE         0x00400000      /* FPGA Bit file is in top of FLASH, we only ues the bottom 4Mb */
+/*#define CONFIG_SYS_NO_FLASH          1*/
+#define CONFIG_SYS_FLASH_BASE          0x00000000
+#define CONFIG_SYS_FLASH_SIZE          0x00400000      /* FPGA Bit file is in top of FLASH, we only ues the bottom 4Mb */
 
 #define PHYS_FLASH_SECT_SIZE   0x00010000      /* 64 KB sectors */
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION   /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION    /* "Real" (hardware) sectors protection */
 
 /*** CFI CONFIG ***/
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 /* Bypass cache when reading regs from flash memory */
-#define CFG_FLASH_CFI_BYPASS_READ
+#define CONFIG_SYS_FLASH_CFI_BYPASS_READ
 /* Buffered writes (32byte/go) instead of single accesses */
-#define CFG_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /*
  * Environment settings
 /* CONFIG_ENV_ADDR need to be at sector boundary */
 #define CONFIG_ENV_SIZE                0x8000
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+CFG_FLASH_SIZE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_OVERWRITE   1
 
 /*
  * Memory map
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         0x02000000
-#define CFG_SDRAM_END          (CFG_SDRAM_BASE+CFG_SDRAM_SIZE)
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          0x02000000
+#define CONFIG_SYS_SDRAM_END           (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE)
 
 /* no SRAM available */
-#undef CFG_SRAM_BASE
-#undef CFG_SRAM_SIZE
+#undef CONFIG_SYS_SRAM_BASE
+#undef CONFIG_SYS_SRAM_SIZE
 
-#define CFG_RAM_BASE CFG_SDRAM_BASE
-#define CFG_RAM_SIZE CFG_SDRAM_SIZE
-#define CFG_RAM_END CFG_SDRAM_END
+#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE
+#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_SDRAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_SDRAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
-#define CFG_PROM_SIZE          (8192-CFG_GBL_DATA_SIZE)
-#define CFG_PROM_OFFSET                (CFG_GBL_DATA_OFFSET-CFG_PROM_SIZE)
+#define CONFIG_SYS_PROM_SIZE           (8192-CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_PROM_OFFSET         (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE)
 
-#define CFG_INIT_SP_OFFSET     (CFG_PROM_OFFSET-32)
-#define CFG_STACK_SIZE         (0x10000-32)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_PROM_OFFSET-32)
+#define CONFIG_SYS_STACK_SIZE          (0x10000-32)
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (512 << 10)     /* Reserve 512 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MALLOC_END         (CFG_INIT_SP_OFFSET-CFG_STACK_SIZE)
-#define CFG_MALLOC_BASE                (CFG_MALLOC_END-CFG_MALLOC_LEN)
+#define CONFIG_SYS_MALLOC_END          (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE)
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN)
 
 /* relocated monitor area */
-#define CFG_RELOC_MONITOR_MAX_END   CFG_MALLOC_BASE
-#define CFG_RELOC_MONITOR_BASE     (CFG_RELOC_MONITOR_MAX_END-CFG_MONITOR_LEN)
+#define CONFIG_SYS_RELOC_MONITOR_MAX_END   CONFIG_SYS_MALLOC_BASE
+#define CONFIG_SYS_RELOC_MONITOR_BASE     (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN)
 
 /* make un relocated address from relocated address */
-#define UN_RELOC(address) (address-(CFG_RELOC_MONITOR_BASE-TEXT_BASE))
+#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE))
 
 /*
  * Ethernet configuration uses on board SMC91C111, however if a mezzanine
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * USB stuff
 /***** Gaisler GRLIB IP-Cores Config ********/
 
 /* AMBA Plug & Play info display on startup */
-/*#define CFG_AMBAPP_PRINT_ON_STARTUP*/
+/*#define CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP*/
 
-#define CFG_GRLIB_SDRAM    0
+#define CONFIG_SYS_GRLIB_SDRAM    0
 
 /* See, GRLIB Docs (grip.pdf) on how to set up
  * These the memory controller registers.
  */
-#define CFG_GRLIB_MEMCFG1  (0x10f800ff | (1<<11))
-#define CFG_GRLIB_MEMCFG2  0x00000000
-#define CFG_GRLIB_MEMCFG3  0x00000000
+#define CONFIG_SYS_GRLIB_MEMCFG1  (0x10f800ff | (1<<11))
+#define CONFIG_SYS_GRLIB_MEMCFG2  0x00000000
+#define CONFIG_SYS_GRLIB_MEMCFG3  0x00000000
 
-#define CFG_GRLIB_FT_MEMCFG1  (0x10f800ff | (1<<11))
-#define CFG_GRLIB_FT_MEMCFG2  0x00000000
-#define CFG_GRLIB_FT_MEMCFG3  0x00000000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG1  (0x10f800ff | (1<<11))
+#define CONFIG_SYS_GRLIB_FT_MEMCFG2  0x00000000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG3  0x00000000
 
-#define CFG_GRLIB_DDR_CFG  0xa900830a
+#define CONFIG_SYS_GRLIB_DDR_CFG  0xa900830a
 
-#define CFG_GRLIB_DDR2_CFG1 0x00000000
-#define CFG_GRLIB_DDR2_CFG3 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG1 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG3 0x00000000
 
 /* Calculate scaler register value from default baudrate */
-#define CFG_GRLIB_APBUART_SCALER \
+#define CONFIG_SYS_GRLIB_APBUART_SCALER \
  ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
 
 /* Identification string */
index 316b003c59eebcac8640c34625036067e5bce804..4dd9a0f3c91233708ddb7ed4a6bb14b3f526b77c 100644 (file)
 #define CONFIG_SYS_CLK_FREQ    40000000        /* 40MHz */
 
 /* Number of SPARC register windows */
-#define CFG_SPARC_NWINDOWS 8
+#define CONFIG_SYS_SPARC_NWINDOWS 8
 
 /*
  * Serial console configuration
  */
 #define CONFIG_BAUDRATE                38400   /* ... at 38400 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_DOS_PARTITION
  *               0xFF000000 for 16 MB
  *               0xFF800000 for  8 MB
  */
-/*#define CFG_NO_FLASH         1*/
-#define CFG_FLASH_BASE         0x00000000
-#define CFG_FLASH_SIZE         0x00800000
+/*#define CONFIG_SYS_NO_FLASH          1*/
+#define CONFIG_SYS_FLASH_BASE          0x00000000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 128 KB sectors */
-#define CFG_MAX_FLASH_SECT     64      /* max num of sects on one chip */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION   /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION    /* "Real" (hardware) sectors protection */
 
 /*** CFI CONFIG ***/
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 /* Bypass cache when reading regs from flash memory */
-#define CFG_FLASH_CFI_BYPASS_READ
+#define CONFIG_SYS_FLASH_CFI_BYPASS_READ
 /* Buffered writes (32byte/go) instead of single accesses */
-#define CFG_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
 
 /*
  * Environment settings
 /* CONFIG_ENV_ADDR need to be at sector boundary */
 #define CONFIG_ENV_SIZE                0x8000
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+CFG_FLASH_SIZE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_OVERWRITE   1
 
 /*
  * Memory map
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         0x4000000
-#define CFG_SDRAM_END          (CFG_SDRAM_BASE+CFG_SDRAM_SIZE)
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          0x4000000
+#define CONFIG_SYS_SDRAM_END           (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE)
 
 /* no SRAM available */
-#undef CFG_SRAM_BASE
-#undef CFG_SRAM_SIZE
+#undef CONFIG_SYS_SRAM_BASE
+#undef CONFIG_SYS_SRAM_SIZE
 
 /* Always Run U-Boot from SDRAM */
-#define CFG_RAM_BASE CFG_SDRAM_BASE
-#define CFG_RAM_SIZE CFG_SDRAM_SIZE
-#define CFG_RAM_END CFG_SDRAM_END
+#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE
+#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
-#define CFG_PROM_SIZE          (8192-CFG_GBL_DATA_SIZE)
-#define CFG_PROM_OFFSET                (CFG_GBL_DATA_OFFSET-CFG_PROM_SIZE)
+#define CONFIG_SYS_PROM_SIZE           (8192-CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_PROM_OFFSET         (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE)
 
-#define CFG_INIT_SP_OFFSET     (CFG_PROM_OFFSET-32)
-#define CFG_STACK_SIZE         (0x10000-32)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_PROM_OFFSET-32)
+#define CONFIG_SYS_STACK_SIZE          (0x10000-32)
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MALLOC_END         (CFG_INIT_SP_OFFSET-CFG_STACK_SIZE)
-#define CFG_MALLOC_BASE                (CFG_MALLOC_END-CFG_MALLOC_LEN)
+#define CONFIG_SYS_MALLOC_END          (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE)
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN)
 
 /* relocated monitor area */
-#define CFG_RELOC_MONITOR_MAX_END   CFG_MALLOC_BASE
-#define CFG_RELOC_MONITOR_BASE     (CFG_RELOC_MONITOR_MAX_END-CFG_MONITOR_LEN)
+#define CONFIG_SYS_RELOC_MONITOR_MAX_END   CONFIG_SYS_MALLOC_BASE
+#define CONFIG_SYS_RELOC_MONITOR_BASE     (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN)
 
 /* make un relocated address from relocated address */
-#define UN_RELOC(address) (address-(CFG_RELOC_MONITOR_BASE-TEXT_BASE))
+#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE))
 
 /*
  * Ethernet configuration
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * Various low-level settings
 /***** Gaisler GRLIB IP-Cores Config ********/
 
 /* AMBA Plug & Play info display on startup */
-/*#define CFG_AMBAPP_PRINT_ON_STARTUP*/
+/*#define CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP*/
 
-#define CFG_GRLIB_SDRAM    0
+#define CONFIG_SYS_GRLIB_SDRAM    0
 
 /* See, GRLIB Docs (grip.pdf) on how to set up
  * These the memory controller registers.
  */
-#define CFG_GRLIB_MEMCFG1   (0x000000ff | (1<<11))
-#define CFG_GRLIB_MEMCFG2   0x82206000
-#define CFG_GRLIB_MEMCFG3   0x00136000
+#define CONFIG_SYS_GRLIB_MEMCFG1   (0x000000ff | (1<<11))
+#define CONFIG_SYS_GRLIB_MEMCFG2   0x82206000
+#define CONFIG_SYS_GRLIB_MEMCFG3   0x00136000
 
-#define CFG_GRLIB_FT_MEMCFG1   (0x000000ff | (1<<11))
-#define CFG_GRLIB_FT_MEMCFG2   0x82206000
-#define CFG_GRLIB_FT_MEMCFG3   0x00136000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG1   (0x000000ff | (1<<11))
+#define CONFIG_SYS_GRLIB_FT_MEMCFG2   0x82206000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG3   0x00136000
 
 /* no DDR controller */
-#define CFG_GRLIB_DDR_CFG   0x00000000
+#define CONFIG_SYS_GRLIB_DDR_CFG   0x00000000
 
 /* no DDR2 Controller */
-#define CFG_GRLIB_DDR2_CFG1 0x00000000
-#define CFG_GRLIB_DDR2_CFG3 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG1 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG3 0x00000000
 
 /* Calculate scaler register value from default baudrate */
-#define CFG_GRLIB_APBUART_SCALER \
+#define CONFIG_SYS_GRLIB_APBUART_SCALER \
  ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
 
 /* Identification string */
index a5ef6e1d4cb831ef6b6edd15d8c88ff08b77cc62..a9eaa4a2c16ec8485f374b6a4c72a080a313b239 100644 (file)
 #define CONFIG_SYS_CLK_FREQ    40000000        /* 40MHz */
 
 /* Number of SPARC register windows */
-#define CFG_SPARC_NWINDOWS 8
+#define CONFIG_SYS_SPARC_NWINDOWS 8
 
 /*
  * Serial console configuration
  */
 #define CONFIG_BAUDRATE                38400   /* ... at 38400 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_DOS_PARTITION
@@ -93,9 +93,9 @@
        "echo"
 
 #undef CONFIG_BOOTARGS
-/*#define CFG_HUSH_PARSER 0*/
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+/*#define CONFIG_SYS_HUSH_PARSER 0*/
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #define        CONFIG_EXTRA_ENV_SETTINGS                                       \
  *               0xFF000000 for 16 MB
  *               0xFF800000 for  8 MB
  */
-#define CFG_NO_FLASH           1
-#define CFG_FLASH_BASE         0x00000000
-#define CFG_FLASH_SIZE         0x00800000
+#define CONFIG_SYS_NO_FLASH            1
+#define CONFIG_SYS_FLASH_BASE          0x00000000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 #define CONFIG_ENV_SIZE                0x8000
 
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+CFG_FLASH_SIZE-CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SIZE)
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 128 KB sectors */
-#define CFG_MAX_FLASH_SECT     64      /* max num of sects on one chip */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
 
 #ifdef ENABLE_FLASH_SUPPORT
 /* For use with grsim FLASH emulation extension */
-#define CFG_FLASH_PROTECTION   /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_PROTECTION    /* "Real" (hardware) sectors protection */
 
 #undef CONFIG_FLASH_8BIT       /* Flash is 32-bit */
 
 /*** CFI CONFIG ***/
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #endif
 
 /*
 /*
  * Memory map
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         0x02000000
-#define CFG_SDRAM_END          (CFG_SDRAM_BASE+CFG_SDRAM_SIZE)
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          0x02000000
+#define CONFIG_SYS_SDRAM_END           (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE)
 
 /* no SRAM available */
-#undef CFG_SRAM_BASE
-#undef CFG_SRAM_SIZE
+#undef CONFIG_SYS_SRAM_BASE
+#undef CONFIG_SYS_SRAM_SIZE
 
 /* Always Run U-Boot from SDRAM */
-#define CFG_RAM_BASE CFG_SDRAM_BASE
-#define CFG_RAM_SIZE CFG_SDRAM_SIZE
-#define CFG_RAM_END CFG_SDRAM_END
+#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE
+#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
-#define CFG_PROM_SIZE          (8192-CFG_GBL_DATA_SIZE)
-#define CFG_PROM_OFFSET                (CFG_GBL_DATA_OFFSET-CFG_PROM_SIZE)
+#define CONFIG_SYS_PROM_SIZE           (8192-CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_PROM_OFFSET         (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE)
 
-#define CFG_INIT_SP_OFFSET     (CFG_PROM_OFFSET-32)
-#define CFG_STACK_SIZE         (0x10000-32)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_PROM_OFFSET-32)
+#define CONFIG_SYS_STACK_SIZE          (0x10000-32)
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MALLOC_END         (CFG_INIT_SP_OFFSET-CFG_STACK_SIZE)
-#define CFG_MALLOC_BASE                (CFG_MALLOC_END-CFG_MALLOC_LEN)
+#define CONFIG_SYS_MALLOC_END          (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE)
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN)
 
 /* relocated monitor area */
-#define CFG_RELOC_MONITOR_MAX_END   CFG_MALLOC_BASE
-#define CFG_RELOC_MONITOR_BASE     (CFG_RELOC_MONITOR_MAX_END-CFG_MONITOR_LEN)
+#define CONFIG_SYS_RELOC_MONITOR_MAX_END   CONFIG_SYS_MALLOC_BASE
+#define CONFIG_SYS_RELOC_MONITOR_BASE     (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN)
 
 /* make un relocated address from relocated address */
-#define UN_RELOC(address) (address-(CFG_RELOC_MONITOR_BASE-TEXT_BASE))
+#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE))
 
 /*
  * Ethernet configuration
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /***** Gaisler GRLIB IP-Cores Config ********/
 
 /* AMBA Plug & Play info display on startup */
-/*#define CFG_AMBAPP_PRINT_ON_STARTUP*/
+/*#define CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP*/
 
-#define CFG_GRLIB_SDRAM     0
-#define CFG_GRLIB_MEMCFG1   (0x000000ff | (1<<11))
+#define CONFIG_SYS_GRLIB_SDRAM     0
+#define CONFIG_SYS_GRLIB_MEMCFG1   (0x000000ff | (1<<11))
 #if CONFIG_GRSIM
 /* GRSIM configuration */
-#define CFG_GRLIB_MEMCFG2   0x82206000
+#define CONFIG_SYS_GRLIB_MEMCFG2   0x82206000
 #else
 /* TSIM configuration */
-#define CFG_GRLIB_MEMCFG2   0x00001820
+#define CONFIG_SYS_GRLIB_MEMCFG2   0x00001820
 #endif
-#define CFG_GRLIB_MEMCFG3   0x00136000
+#define CONFIG_SYS_GRLIB_MEMCFG3   0x00136000
 
-#define CFG_GRLIB_FT_MEMCFG1   (0x000000ff | (1<<11))
-#define CFG_GRLIB_FT_MEMCFG2   0x82206000
-#define CFG_GRLIB_FT_MEMCFG3   0x00136000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG1   (0x000000ff | (1<<11))
+#define CONFIG_SYS_GRLIB_FT_MEMCFG2   0x82206000
+#define CONFIG_SYS_GRLIB_FT_MEMCFG3   0x00136000
 
 /* no DDR controller */
-#define CFG_GRLIB_DDR_CFG   0x00000000
+#define CONFIG_SYS_GRLIB_DDR_CFG   0x00000000
 
 /* no DDR2 Controller */
-#define CFG_GRLIB_DDR2_CFG1 0x00000000
-#define CFG_GRLIB_DDR2_CFG3 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG1 0x00000000
+#define CONFIG_SYS_GRLIB_DDR2_CFG3 0x00000000
 
-#define CFG_GRLIB_APBUART_SCALER \
+#define CONFIG_SYS_GRLIB_APBUART_SCALER \
  ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
 
 /* default kernel command line */
index a88ddb3d6f508546323f4e9e2b40d3c975d2b44e..58f26fd5a500d15f994570acfef676a6f9a22af5 100644 (file)
 #define CONFIG_SYS_CLK_FREQ    40000000        /* 40MHz */
 
 /* Number of SPARC register windows */
-#define CFG_SPARC_NWINDOWS 8
+#define CONFIG_SYS_SPARC_NWINDOWS 8
 
 /*
  * Serial console configuration
  */
 #define CONFIG_BAUDRATE                38400   /* ... at 38400 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_DOS_PARTITION
@@ -90,9 +90,9 @@
        "echo"
 
 #undef CONFIG_BOOTARGS
-/*#define CFG_HUSH_PARSER 0*/
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+/*#define CONFIG_SYS_HUSH_PARSER 0*/
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #define        CONFIG_EXTRA_ENV_SETTINGS                                       \
  *               0xFF000000 for 16 MB
  *               0xFF800000 for  8 MB
  */
-#define CFG_NO_FLASH           1
-#define CFG_FLASH_BASE         0x00000000
-#define CFG_FLASH_SIZE         0x00800000
+#define CONFIG_SYS_NO_FLASH            1
+#define CONFIG_SYS_FLASH_BASE          0x00000000
+#define CONFIG_SYS_FLASH_SIZE          0x00800000
 #define CONFIG_ENV_SIZE                0x8000
 
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+CFG_FLASH_SIZE-CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_FLASH_SIZE-CONFIG_ENV_SIZE)
 
 #define PHYS_FLASH_SECT_SIZE   0x00020000      /* 128 KB sectors */
-#define CFG_MAX_FLASH_SECT     64      /* max num of sects on one chip */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_LOCK_TOUT    5       /* Timeout for Flash Set Lock Bit (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     5       /* Timeout for Flash Set Lock Bit (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
 
 #ifdef ENABLE_FLASH_SUPPORT
 /* For use with grsim FLASH emulation extension */
-#define CFG_FLASH_PROTECTION   /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_PROTECTION    /* "Real" (hardware) sectors protection */
 
 #undef CONFIG_FLASH_8BIT       /* Flash is 32-bit */
 
 /*** CFI CONFIG ***/
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #endif
 
 /*
 /*
  * Memory map
  */
-#define CFG_SDRAM_BASE         0x40000000
-#define CFG_SDRAM_SIZE         0x00800000
-#define CFG_SDRAM_END          (CFG_SDRAM_BASE+CFG_SDRAM_SIZE)
+#define CONFIG_SYS_SDRAM_BASE          0x40000000
+#define CONFIG_SYS_SDRAM_SIZE          0x00800000
+#define CONFIG_SYS_SDRAM_END           (CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_SDRAM_SIZE)
 
 /* no SRAM available */
-#undef CFG_SRAM_BASE
-#undef CFG_SRAM_SIZE
+#undef CONFIG_SYS_SRAM_BASE
+#undef CONFIG_SYS_SRAM_SIZE
 
 
 /* Always Run U-Boot from SDRAM */
-#define CFG_RAM_BASE CFG_SDRAM_BASE
-#define CFG_RAM_SIZE CFG_SDRAM_SIZE
-#define CFG_RAM_END CFG_SDRAM_END
+#define CONFIG_SYS_RAM_BASE CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_RAM_SIZE CONFIG_SYS_SDRAM_SIZE
+#define CONFIG_SYS_RAM_END CONFIG_SYS_SDRAM_END
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
-#define CFG_PROM_SIZE          (8192-CFG_GBL_DATA_SIZE)
-#define CFG_PROM_OFFSET                (CFG_GBL_DATA_OFFSET-CFG_PROM_SIZE)
+#define CONFIG_SYS_PROM_SIZE           (8192-CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_PROM_OFFSET         (CONFIG_SYS_GBL_DATA_OFFSET-CONFIG_SYS_PROM_SIZE)
 
-#define CFG_INIT_SP_OFFSET     (CFG_PROM_OFFSET-32)
-#define CFG_STACK_SIZE         (0x10000-32)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_PROM_OFFSET-32)
+#define CONFIG_SYS_STACK_SIZE          (0x10000-32)
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MALLOC_END         (CFG_INIT_SP_OFFSET-CFG_STACK_SIZE)
-#define CFG_MALLOC_BASE                (CFG_MALLOC_END-CFG_MALLOC_LEN)
+#define CONFIG_SYS_MALLOC_END          (CONFIG_SYS_INIT_SP_OFFSET-CONFIG_SYS_STACK_SIZE)
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MALLOC_END-CONFIG_SYS_MALLOC_LEN)
 
 /* relocated monitor area */
-#define CFG_RELOC_MONITOR_MAX_END   CFG_MALLOC_BASE
-#define CFG_RELOC_MONITOR_BASE     (CFG_RELOC_MONITOR_MAX_END-CFG_MONITOR_LEN)
+#define CONFIG_SYS_RELOC_MONITOR_MAX_END   CONFIG_SYS_MALLOC_BASE
+#define CONFIG_SYS_RELOC_MONITOR_BASE     (CONFIG_SYS_RELOC_MONITOR_MAX_END-CONFIG_SYS_MONITOR_LEN)
 
 /* make un relocated address from relocated address */
-#define UN_RELOC(address) (address-(CFG_RELOC_MONITOR_BASE-TEXT_BASE))
+#define UN_RELOC(address) (address-(CONFIG_SYS_RELOC_MONITOR_BASE-TEXT_BASE))
 
 /*
  * Ethernet configuration
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /***** Gaisler GRLIB IP-Cores Config ********/
 
-#define CFG_GRLIB_SDRAM    0
-#define CFG_GRLIB_MEMCFG1  (0x000000ff | (1<<11))
+#define CONFIG_SYS_GRLIB_SDRAM    0
+#define CONFIG_SYS_GRLIB_MEMCFG1  (0x000000ff | (1<<11))
 #if CONFIG_GRSIM
-#define CFG_GRLIB_MEMCFG2  0x82206000
+#define CONFIG_SYS_GRLIB_MEMCFG2  0x82206000
 #else
-#define CFG_GRLIB_MEMCFG2  0x00001820
+#define CONFIG_SYS_GRLIB_MEMCFG2  0x00001820
 #endif
-#define CFG_GRLIB_MEMCFG3  0x00136000
+#define CONFIG_SYS_GRLIB_MEMCFG3  0x00136000
 
 /*** LEON2 UART 1 ***/
-#define CFG_LEON2_UART1_SCALER \
+#define CONFIG_SYS_LEON2_UART1_SCALER \
        ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
 
 /* UART1 Define to 1 or 0 */
 
 /*** LEON2 UART 2 ***/
 
-#define CFG_LEON2_UART2_SCALER \
+#define CONFIG_SYS_LEON2_UART2_SCALER \
        ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
 
 /* UART2 Define to 1 or 0 */
index aaf1e4ac5504e033136fb504c6dfcf3e15a76488..aeede046655503616899f5b6a2eced7ed8f56537 100644 (file)
@@ -49,7 +49,7 @@
 #define CONFIG_BAUDRATE                115200
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }
 
 /* Only interrupt boot if space is pressed */
 /* If a long serial cable is connected but */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory      */
-#define CFG_PROMPT             "GTH2 # "       /* Monitor Command Prompt    */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size   */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args*/
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory      */
+#define CONFIG_SYS_PROMPT              "GTH2 # "       /* Monitor Command Prompt    */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size   */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args*/
 
-#define CFG_MALLOC_LEN         128*1024
+#define CONFIG_SYS_MALLOC_LEN          128*1024
 
-#define CFG_BOOTPARAMS_LEN     128*1024
+#define CONFIG_SYS_BOOTPARAMS_LEN      128*1024
 
-#define CFG_MHZ                        500
+#define CONFIG_SYS_MHZ                 500
 
-#define CFG_MIPS_TIMER_FREQ    (CFG_MHZ * 1000000)
+#define CONFIG_SYS_MIPS_TIMER_FREQ     (CONFIG_SYS_MHZ * 1000000)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_SDRAM_BASE         0x80000000     /* Cached addr */
+#define CONFIG_SYS_SDRAM_BASE          0x80000000     /* Cached addr */
 
-#define CFG_LOAD_ADDR          0x81000000     /* default load address  */
+#define CONFIG_SYS_LOAD_ADDR           0x81000000     /* default load address  */
 
-#define CFG_MEMTEST_START      0x80100000
-#define CFG_MEMTEST_END                0x83000000
+#define CONFIG_SYS_MEMTEST_START       0x80100000
+#define CONFIG_SYS_MEMTEST_END         0x83000000
 
 #define CONFIG_HW_WATCHDOG     1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
 
 #define PHYS_FLASH             0xbfc00000 /* Flash Bank #1 */
 
 /* The following #defines are needed to get flash environment right */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 << 10)
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)
 
-#define CFG_INIT_SP_OFFSET     0x400000
+#define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
 /* We boot from this flash, selected with dip switch */
-#define CFG_FLASH_BASE         PHYS_FLASH
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_NOWHERE  1
 
 #define CONFIG_MEMSIZE_IN_BYTES
 
 /*---ATA PCMCIA ------------------------------------*/
-#define CFG_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
+#define CONFIG_SYS_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
 
-#define CFG_PCMCIA_MEM_ADDR  0x20000000
-#define CFG_PCMCIA_IO_BASE   0x28000000
-#define CFG_PCMCIA_ATTR_BASE 0x30000000
+#define CONFIG_SYS_PCMCIA_MEM_ADDR  0x20000000
+#define CONFIG_SYS_PCMCIA_IO_BASE   0x28000000
+#define CONFIG_SYS_PCMCIA_ATTR_BASE 0x30000000
 
 #define CONFIG_PCMCIA_SLOT_A
 
 #define CONFIG_IDE_PCMCIA 1
 
 /* We only support one slot for now */
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_ATA_IDE0_OFFSET    0
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_IO_BASE
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_IO_BASE
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    0
+#define CONFIG_SYS_ATA_DATA_OFFSET     0
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     0
+#define CONFIG_SYS_ATA_REG_OFFSET      0
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0200
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0200
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                16384
-#define CFG_ICACHE_SIZE                16384
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_DCACHE_SIZE         16384
+#define CONFIG_SYS_ICACHE_SIZE         16384
+#define CONFIG_SYS_CACHELINE_SIZE      32
 
 #define GPIO_CACONFIG  (1<<0)
 #define GPIO_DPACONFIG (1<<6)
index e187764e2e5987ed2727c755228cc42834d4cbff..53a001d21192417f40628310d500cb2e5d3ff0b4 100644 (file)
@@ -72,7 +72,7 @@
  * 0x6       0x1     66 133     266    Close Close  Open
  * 0x6       0x2     66 133     300    Close Open   Close
  */
-#define CFG_SBC_MODCK_H 0x05
+#define CONFIG_SYS_SBC_MODCK_H 0x05
 
 /* Define this if you want to boot from 0x00000100. If you don't define
  * this, you will need to program the bootloader to 0xfff00000, and
  * way to do that is to program the bootloader at both addresses.
  * It is suggested that you just let U-Boot live at 0x00000000.
  */
-#define CFG_SBC_BOOT_LOW 1
+#define CONFIG_SYS_SBC_BOOT_LOW 1
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/sbc8260/config.mk
  * The main FLASH is whichever is connected to *CS0. U-Boot expects
  * this to be the SIMM.
  */
-#define CFG_FLASH0_BASE 0x40000000
-#define CFG_FLASH0_SIZE 8
+#define CONFIG_SYS_FLASH0_BASE 0x40000000
+#define CONFIG_SYS_FLASH0_SIZE 8
 
-/* Define CFG_FLASH_CHECKSUM to enable flash checksum during boot.
+/* Define CONFIG_SYS_FLASH_CHECKSUM to enable flash checksum during boot.
  * Note: the 'flashchecksum' environment variable must also be set to 'y'.
  */
-#define CFG_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_CHECKSUM
 
 /* What should be the base address of SDRAM DIMM and how big is
  * it (in Mbytes)?
  */
-#define CFG_SDRAM0_BASE 0x00000000
-#define CFG_SDRAM0_SIZE 64
+#define CONFIG_SYS_SDRAM0_BASE 0x00000000
+#define CONFIG_SYS_SDRAM0_SIZE 64
 
 /*
  * DRAM tests
- *   CFG_DRAM_TEST - enables the following tests.
+ *   CONFIG_SYS_DRAM_TEST - enables the following tests.
  *
- *   CFG_DRAM_TEST_DATA - Enables test for shorted or open data lines
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test for shorted or open data lines
  *                        Environment variable 'test_dram_data' must be
  *                        set to 'y'.
- *   CFG_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
+ *   CONFIG_SYS_DRAM_TEST_DATA - Enables test to verify that each word is uniquely
  *                        addressable. Environment variable
  *                        'test_dram_address' must be set to 'y'.
- *   CFG_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
+ *   CONFIG_SYS_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test.
  *                        This test takes about 6 minutes to test 64 MB.
  *                        Environment variable 'test_dram_walk' must be
  *                        set to 'y'.
  */
-#define CFG_DRAM_TEST
-#if defined(CFG_DRAM_TEST)
-#define CFG_DRAM_TEST_DATA
-#define CFG_DRAM_TEST_ADDRESS
-#define CFG_DRAM_TEST_WALK
-#endif /* CFG_DRAM_TEST */
+#define CONFIG_SYS_DRAM_TEST
+#if defined(CONFIG_SYS_DRAM_TEST)
+#define CONFIG_SYS_DRAM_TEST_DATA
+#define CONFIG_SYS_DRAM_TEST_ADDRESS
+#define CONFIG_SYS_DRAM_TEST_WALK
+#endif /* CONFIG_SYS_DRAM_TEST */
 
 /*
  * GW8260 with 16 MB DIMM:
  *     0x00F5 FFB0     Board Info Data
  *     0x00F6 0000     Malloc Arena
  *           :          CONFIG_ENV_SECT_SIZE, 256k
- *           :          CFG_MALLOC_LEN,    128k
+ *           :          CONFIG_SYS_MALLOC_LEN,    128k
  *     0x00FC 0000     RAM Copy of Monitor Code
- *           :              CFG_MONITOR_LEN,   256k
- *     0x00FF FFFF     [End of RAM], CFG_SDRAM_SIZE - 1
+ *           :              CONFIG_SYS_MONITOR_LEN,   256k
+ *     0x00FF FFFF     [End of RAM], CONFIG_SYS_SDRAM_SIZE - 1
  */
 
 /*
  *     0x03F5 FFB0     Board Info Data
  *     0x03F6 0000     Malloc Arena
  *           :          CONFIG_ENV_SECT_SIZE, 256k
- *           :          CFG_MALLOC_LEN,    128k
+ *           :          CONFIG_SYS_MALLOC_LEN,    128k
  *     0x03FC 0000     RAM Copy of Monitor Code
- *           :              CFG_MONITOR_LEN,   256k
- *     0x03FF FFFF     [End of RAM], CFG_SDRAM_SIZE - 1
+ *           :              CONFIG_SYS_MONITOR_LEN,   256k
+ *     0x03FF FFFF     [End of RAM], CONFIG_SYS_SDRAM_SIZE - 1
  */
 
 
  * - Select bus for bd/buffers (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE | FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 3)
 
  * - Select bus for bd/buffers (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE | FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
 #define CONFIG_BOOTP_DNS
 
 /* undef this to save memory */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 /* Monitor Command Prompt */
-#define CFG_PROMPT      "=> "
+#define CONFIG_SYS_PROMPT      "=> "
 
 
 /*
 
 
 /* Where do the internal registers live? */
-#define CFG_IMMR        0xf0000000
+#define CONFIG_SYS_IMMR        0xf0000000
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* What is the address of IO controller */
-#define CFG_IO_BASE 0xe0000000
+#define CONFIG_SYS_IO_BASE 0xe0000000
 
 /*****************************************************************************
  *
  * Miscellaneous configurable options
  */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE        1024    /* Console I/O Buffer Size       */
+#  define CONFIG_SYS_CBSIZE        1024    /* Console I/O Buffer Size       */
 #else
-#  define CFG_CBSIZE        256     /* Console I/O Buffer Size       */
+#  define CONFIG_SYS_CBSIZE        256     /* Console I/O Buffer Size       */
 #endif
 
 /* Print Buffer Size */
-#define CFG_PBSIZE    (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE    (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16)
 
-#define CFG_MAXARGS     8          /* max number of command args   */
+#define CONFIG_SYS_MAXARGS     8          /* max number of command args   */
 
-#define CFG_BARGSIZE    CFG_CBSIZE /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size    */
 
 /* Convert clocks to MHZ when passing board info to kernel.
  * This must be defined for eariler 2.4 kernels (~2.4.4).
  */
 #define CONFIG_CLOCKS_IN_MHZ
 
-#define CFG_LOAD_ADDR   0x100000 /* default load address */
-#define CFG_HZ          1000     /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LOAD_ADDR   0x100000 /* default load address */
+#define CONFIG_SYS_HZ          1000     /* decrementer freq: 1 ms ticks */
 
 
 /* memtest works from the end of the exception vector table
  * to the end of the DRAM less monitor and malloc area
  */
-#define CFG_MEMTEST_START   0x2000
+#define CONFIG_SYS_MEMTEST_START   0x2000
 
-#define CFG_STACK_USAGE     0x10000 /* Reserve 64k for the stack usage */
+#define CONFIG_SYS_STACK_USAGE     0x10000 /* Reserve 64k for the stack usage */
 
-#define CFG_MEM_END_USAGE   ( CFG_MONITOR_LEN \
-                           + CFG_MALLOC_LEN \
+#define CONFIG_SYS_MEM_END_USAGE   ( CONFIG_SYS_MONITOR_LEN \
+                           + CONFIG_SYS_MALLOC_LEN \
                            + CONFIG_ENV_SECT_SIZE \
-                           + CFG_STACK_USAGE )
+                           + CONFIG_SYS_STACK_USAGE )
 
-#define CFG_MEMTEST_END     ( CFG_SDRAM_SIZE * 1024 * 1024 \
-                           - CFG_MEM_END_USAGE )
+#define CONFIG_SYS_MEMTEST_END     ( CONFIG_SYS_SDRAM_SIZE * 1024 * 1024 \
+                           - CONFIG_SYS_MEM_END_USAGE )
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE  { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE  { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_FLASH_BASE  CFG_FLASH0_BASE
-#define CFG_FLASH_SIZE  CFG_FLASH0_SIZE
-#define CFG_SDRAM_BASE  CFG_SDRAM0_BASE
-#define CFG_SDRAM_SIZE  CFG_SDRAM0_SIZE
+#define CONFIG_SYS_FLASH_BASE  CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_FLASH_SIZE  CONFIG_SYS_FLASH0_SIZE
+#define CONFIG_SYS_SDRAM_BASE  CONFIG_SYS_SDRAM0_BASE
+#define CONFIG_SYS_SDRAM_SIZE  CONFIG_SYS_SDRAM0_SIZE
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  */
-#if defined(CFG_SBC_BOOT_LOW)
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
+#if defined(CONFIG_SYS_SBC_BOOT_LOW)
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
 #else
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (0)
-#endif /* defined(CFG_SBC_BOOT_LOW) */
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (0)
+#endif /* defined(CONFIG_SYS_SBC_BOOT_LOW) */
 
-/* get the HRCW ISB field from CFG_IMMR */
-#define CFG_SBC_HRCW_IMMR   ( ((CFG_IMMR & 0x10000000) >> 10) | \
-                 ((CFG_IMMR & 0x01000000) >>  7) | \
-                 ((CFG_IMMR & 0x00100000) >>  4) )
+/* get the HRCW ISB field from CONFIG_SYS_IMMR */
+#define CONFIG_SYS_SBC_HRCW_IMMR   ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) | \
+                 ((CONFIG_SYS_IMMR & 0x01000000) >>  7) | \
+                 ((CONFIG_SYS_IMMR & 0x00100000) >>  4) )
 
-#define CFG_HRCW_MASTER     ( HRCW_BPS11                | \
+#define CONFIG_SYS_HRCW_MASTER     ( HRCW_BPS11                | \
                  HRCW_DPPC11               | \
-                 CFG_SBC_HRCW_IMMR         | \
+                 CONFIG_SYS_SBC_HRCW_IMMR         | \
                  HRCW_MMR00                | \
                  HRCW_LBPC11               | \
                  HRCW_APPC10               | \
                  HRCW_CS10PC00             | \
-                 (CFG_SBC_MODCK_H & HRCW_MODCK_H1111)  | \
-                 CFG_SBC_HRCW_BOOT_FLAGS )
+                 (CONFIG_SYS_SBC_MODCK_H & HRCW_MODCK_H1111)  | \
+                 CONFIG_SYS_SBC_HRCW_BOOT_FLAGS )
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1     0
-#define CFG_HRCW_SLAVE2     0
-#define CFG_HRCW_SLAVE3     0
-#define CFG_HRCW_SLAVE4     0
-#define CFG_HRCW_SLAVE5     0
-#define CFG_HRCW_SLAVE6     0
-#define CFG_HRCW_SLAVE7     0
+#define CONFIG_SYS_HRCW_SLAVE1     0
+#define CONFIG_SYS_HRCW_SLAVE2     0
+#define CONFIG_SYS_HRCW_SLAVE3     0
+#define CONFIG_SYS_HRCW_SLAVE4     0
+#define CONFIG_SYS_HRCW_SLAVE5     0
+#define CONFIG_SYS_HRCW_SLAVE6     0
+#define CONFIG_SYS_HRCW_SLAVE7     0
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR    CFG_IMMR
-#define CFG_INIT_RAM_END     0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE   128 /* bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET   CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR    CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END     0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE   128 /* bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET   CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
- * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependent.
  */
-#define CFG_MONITOR_BASE    CFG_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE    CONFIG_SYS_FLASH0_BASE
 
-#define CFG_MONITOR_LEN     (256 * 1024) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN      (128 * 1024) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN     (256 * 1024) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 * 1024) /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ       (8 * 1024 * 1024) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 * 1024 * 1024) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS   1    /* max number of memory banks        */
-#define CFG_MAX_FLASH_SECT    32   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS   1    /* max number of memory banks        */
+#define CONFIG_SYS_MAX_FLASH_SECT    32   /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT  8000 /* Timeout for Flash Erase (in ms)   */
-#define CFG_FLASH_WRITE_TOUT  1    /* Timeout for Flash Write (in ms)   */
+#define CONFIG_SYS_FLASH_ERASE_TOUT  8000 /* Timeout for Flash Erase (in ms)   */
+#define CONFIG_SYS_FLASH_WRITE_TOUT  1    /* Timeout for Flash Write (in ms)   */
 
 #define CONFIG_ENV_IS_IN_FLASH   1
 
 #ifdef CONFIG_ENV_IN_OWN_SECT
-#  define CONFIG_ENV_ADDR        (CFG_MONITOR_BASE +  (256 * 1024))
+#  define CONFIG_ENV_ADDR        (CONFIG_SYS_MONITOR_BASE +  (256 * 1024))
 #  define CONFIG_ENV_SECT_SIZE   (256 * 1024)
 #else
 #  define CONFIG_ENV_SIZE        (16 * 1024)/* Size of Environment Sector  */
-#  define CONFIG_ENV_ADD  ((CFG_MONITOR_BASE + CFG_MONITOR_LEN) - CONFIG_ENV_SIZE)
+#  define CONFIG_ENV_ADD  ((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) - CONFIG_ENV_SIZE)
 #  define CONFIG_ENV_SECT_SIZE (256 * 1024)/* see README - env sect real size  */
 #endif /* CONFIG_ENV_IN_OWN_SECT */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE  32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE  32      /* For MPC8260 CPU */
 
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT    5   /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5   /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT   (HID0_ICE  |\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE  |\
                         HID0_DCE  |\
                         HID0_ICFI |\
                         HID0_DCI  |\
                         HID0_IFEM |\
                         HID0_ABE)
 
-#define CFG_HID0_FINAL  (HID0_ICE  |\
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE  |\
                         HID0_IFEM |\
                         HID0_ABE  |\
                         HID0_EMCP)
-#define CFG_HID2    0
+#define CONFIG_SYS_HID2    0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMR     0
+#define CONFIG_SYS_RMR     0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                           4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR     (BCR_ETM)
+#define CONFIG_SYS_BCR     (BCR_ETM)
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                 4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR  (SIUMCR_DPPC11  |\
+#define CONFIG_SYS_SIUMCR  (SIUMCR_DPPC11  |\
                     SIUMCR_L2CPC00 |\
                     SIUMCR_APPC10  |\
                     SIUMCR_MMR00)
  *-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
-#define CFG_SYPCR   (SYPCR_SWTC |\
+#define CONFIG_SYS_SYPCR   (SYPCR_SWTC |\
                     SYPCR_BMT  |\
                     SYPCR_PBME |\
                     SYPCR_LBME |\
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC (TMCNTSC_SEC |\
+#define CONFIG_SYS_TMCNTSC (TMCNTSC_SEC |\
                     TMCNTSC_ALR |\
                     TMCNTSC_TCF |\
                     TMCNTSC_TCE)
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR   (PISCR_PS  |\
+#define CONFIG_SYS_PISCR   (PISCR_PS  |\
                     PISCR_PTF |\
                     PISCR_PTE)
 
  * SCCR - System Clock Control                           9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR    0
+#define CONFIG_SYS_SCCR    0
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                 13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR    0
+#define CONFIG_SYS_RCCR    0
 
 /*
  * Initialize Memory Controller:
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH0_BASE & BRx_BA_MSK) |\
                          BRx_PS_32                     |\
                          BRx_MS_GPCM_P                 |\
                          BRx_V)
  *     - One idle clock is inserted between a read access from the
  *       current bank and the next access.
  */
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH0_SIZE) |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH0_SIZE) |\
                         ORxG_CSNT          |\
                         ORxG_ACS_DIV1      |\
                         ORxG_SCY_5_CLK     |\
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR2_PRELIM  ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                          BRx_PS_64          |\
                          BRx_MS_SDRAM_P     |\
                          BRx_V)
  *     - Back-to-back page mode
  *     - Internal bank interleaving within save device enabled
  */
-#if (CFG_SDRAM0_SIZE == 16)
-#define CFG_OR2_PRELIM  (MEG_TO_AM(CFG_SDRAM0_SIZE) |\
+#if (CONFIG_SYS_SDRAM0_SIZE == 16)
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE) |\
                         ORxS_BPD_2         |\
                         ORxS_ROWST_PBI0_A9 |\
                         ORxS_NUMR_11)
  *     Ref: Section 10.3.3 on page 10-21
  *-----------------------------------------------------------------------
  */
-#define CFG_PSDMR   (PSDMR_RFEN       |\
+#define CONFIG_SYS_PSDMR   (PSDMR_RFEN       |\
                     PSDMR_SDAM_A14_IS_A5 |\
                     PSDMR_BSMA_A16_A18   |\
                     PSDMR_SDA10_PBI0_A9  |\
                     PSDMR_LDOTOPRE_1C    |\
                     PSDMR_WRC_1C         |\
                     PSDMR_CL_2)
-#endif /* (CFG_SDRAM0_SIZE == 16) */
+#endif /* (CONFIG_SYS_SDRAM0_SIZE == 16) */
 
 /* With a 64 MB DIMM, the OR2 is configured as follows:
  *
  *     - Back-to-back page mode
  *     - Internal bank interleaving within save device enabled
  */
-#if (CFG_SDRAM0_SIZE == 64)
-#define CFG_OR2_PRELIM  (MEG_TO_AM(CFG_SDRAM0_SIZE) |\
+#if (CONFIG_SYS_SDRAM0_SIZE == 64)
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE) |\
             ORxS_BPD_4         |\
             ORxS_ROWST_PBI0_A8     |\
             ORxS_NUMR_12)
  *     Ref: Section 10.3.3 on page 10-21
  *-----------------------------------------------------------------------
  */
-#define CFG_PSDMR   (PSDMR_RFEN       |\
+#define CONFIG_SYS_PSDMR   (PSDMR_RFEN       |\
                     PSDMR_SDAM_A14_IS_A5 |\
                     PSDMR_BSMA_A14_A16   |\
                     PSDMR_SDA10_PBI0_A9  |\
                     PSDMR_LDOTOPRE_1C    |\
                     PSDMR_WRC_1C         |\
                     PSDMR_CL_2)
-#endif  /* (CFG_SDRAM0_SIZE == 64) */
+#endif  /* (CONFIG_SYS_SDRAM0_SIZE == 64) */
 
-#define CFG_PSRT    0x0e
-#define CFG_MPTPR   MPTPR_PTP_DIV32
+#define CONFIG_SYS_PSRT    0x0e
+#define CONFIG_SYS_MPTPR   MPTPR_PTP_DIV32
 
 
 /*-----------------------------------------------------------------------
  *     - 11 wait states
  */
 
-#ifdef CFG_IO_BASE
-#  define CFG_BR4_PRELIM  ((CFG_IO_BASE & BRx_BA_MSK)  |\
+#ifdef CONFIG_SYS_IO_BASE
+#  define CONFIG_SYS_BR4_PRELIM  ((CONFIG_SYS_IO_BASE & BRx_BA_MSK)  |\
                            BRx_PS_8                   |\
                            BRx_MS_GPCM_L              |\
                            BRx_V)
 
-#  define CFG_OR4_PRELIM   (ORxG_AM_MSK                |\
+#  define CONFIG_SYS_OR4_PRELIM   (ORxG_AM_MSK                |\
                            ORxG_SCY_11_CLK            |\
                            ORxG_EHTR)
-#endif /* CFG_IO_BASE */
+#endif /* CONFIG_SYS_IO_BASE */
 
 /*
  * Internal Definitions
index 5426c7a4ede25a10a0b27b9e1a1d99f9b1c23d07..317a3d7dd78c552ff2d9577f89ddec98d77fcdfd 100644 (file)
@@ -29,7 +29,7 @@
 #define CONFIG_AT32AP7000              1
 #define CONFIG_HAMMERHEAD              1
 
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 125 MHz, the CPU to run at the PLL
  * and the PBA bus to run at 1/4 the PLL frequency.
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    25000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   5
-#define CFG_PLL0_SUPPRESS_CYCLES       16
-#define CFG_CLKDIV_CPU                 0
-#define CFG_CLKDIV_HSB                 1
-#define CFG_CLKDIV_PBA                 2
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     25000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    5
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
+#define CONFIG_SYS_CLKDIV_CPU                  0
+#define CONFIG_SYS_CLKDIV_HSB                  1
+#define CONFIG_SYS_CLKDIV_PBA                  2
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -54,7 +54,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #define CONFIG_USART1                  1
 
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_MACB                    1
 #define CONFIG_PIO2                    1
-#define CFG_NR_PIOS                    5
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_NR_PIOS                     5
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        0x24000000
-#define CFG_INTRAM_SIZE                        0x8000
+#define CONFIG_SYS_INTRAM_BASE                 0x24000000
+#define CONFIG_SYS_INTRAM_SIZE                 0x8000
 
-#define CFG_SDRAM_BASE                 0x10000000
+#define CONFIG_SYS_SDRAM_BASE                  0x10000000
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (256*1024)
+#define CONFIG_SYS_MALLOC_LEN                  (256*1024)
 
-#define CFG_DMA_ALLOC_LEN              (16384)
+#define CONFIG_SYS_DMA_ALLOC_LEN               (16384)
 
 /* Allow 4MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (CFG_SDRAM_BASE + 0x00400000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (CONFIG_SYS_SDRAM_BASE + 0x00400000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "Hammerhead> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
+#define CONFIG_SYS_PROMPT                      "Hammerhead> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
 
-#define CFG_MEMTEST_START              CFG_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x1f00000)
+#define CONFIG_SYS_MEMTEST_START               CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x1f00000)
 
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index 0a9800a1f5b188aedd6cc5df72f182970aa48ae0..9b03ac2f4eb525a533a9efe471ebe25b74800762 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
 *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN        (320 * 1024)    /* Reserve 320 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024) /* Reserve 256 kB for malloc() */
+#define CONFIG_SYS_MONITOR_LEN (320 * 1024)    /* Reserve 320 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024) /* Reserve 256 kB for malloc() */
 
 
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_FLASH_BASE         0xfff80000      /* start of FLASH       */
-#define CFG_MONITOR_BASE       TEXT_BASE
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_FLASH_BASE          0xfff80000      /* start of FLASH       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
 /* ... with on-chip memory here (4KBytes) */
-#define CFG_OCM_DATA_ADDR 0xF4000000
-#define CFG_OCM_DATA_SIZE 0x00001000
+#define CONFIG_SYS_OCM_DATA_ADDR 0xF4000000
+#define CONFIG_SYS_OCM_DATA_SIZE 0x00001000
 /* Do not set up locked dcache as init ram. */
-#undef CFG_INIT_DCACHE_CS
+#undef CONFIG_SYS_INIT_DCACHE_CS
 
 /* Use the On-Chip-Memory (OCM) as a temporary stack for the startup code. */
-#define CFG_TEMP_STACK_OCM 1
+#define CONFIG_SYS_TEMP_STACK_OCM 1
 
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR       /* OCM          */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR        /* OCM          */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
-#undef CFG_EXT_SERIAL_CLOCK           /* external serial clock */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* external serial clock */
 #define CONFIG_SERIAL_MULTI  1
 /* needed to be able to define CONFIG_SERIAL_SOFTWARE_FIFO */
-#undef CFG_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_405_UART_ERRATA_59          /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* Size (bytes) of interrupt driven serial port buffer.
  * Set to 0 to use polling instead of interrupts.
@@ -96,7 +96,7 @@
 #define CONFIG_BAUDRATE                9600
 
 
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
  *----------------------------------------------------------------------*/
 
 /* Use common CFI driver */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
 /* board provides its own flash_init code */
 #define CONFIG_FLASH_CFI_LEGACY                1
-#define CFG_FLASH_CFI_WIDTH            FLASH_CFI_8BIT
-#define CFG_FLASH_LEGACY_512Kx8 1
+#define CONFIG_SYS_FLASH_CFI_WIDTH             FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_LEGACY_512Kx8 1
 
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip */
 
 /*-----------------------------------------------------------------------
  * Environment
 #ifdef CONFIG_ENV_IS_IN_FLASH
 /* Put the environment in Flash */
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         8*1024  /* 8 KB Environment Sector      */
 
 /* Address and size of Redundant Environment Sector    */
  * I2C stuff for a ATMEL AT24C16 (2kB holding ENV, we are using the
  * the first internal I2C controller of the PPC440EPx
  *----------------------------------------------------------------------*/
-#define CFG_SPD_BUS_NUM                0
+#define CONFIG_SYS_SPD_BUS_NUM         0
 
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /* This is the 7bit address of the device, not including P. */
-#define CFG_I2C_EEPROM_ADDR 0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 
 /* The EEPROM can do 16byte ( 1 << 4 ) page writes. */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
-#undef CFG_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
+#undef CONFIG_SYS_I2C_MULTI_EEPROMS
 
 
 #define CONFIG_PREBOOT "echo;"                                         \
 #define CONFIG_OVERWRITE_ETHADDR_ONCE
 #define CONFIG_SERVERIP                172.25.1.3
 
-#define CFG_TFTP_LOADADDR 0x01000000 /* @16 MB */
+#define CONFIG_SYS_TFTP_LOADADDR 0x01000000 /* @16 MB */
 
 #define        CONFIG_EXTRA_ENV_SETTINGS                               \
        "netdev=eth0\0"                                                 \
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR        1       /* PHY address                  */
 #define CONFIG_PHY_RESET        1      /* reset phy upon startup */
 
 #define CONFIG_HAS_ETH0
-#define CFG_RX_ETH_BUFFER      16 /* Number of ethernet rx buffers & desC */
+#define CONFIG_SYS_RX_ETH_BUFFER       16 /* Number of ethernet rx buffers & desC */
 
 /*
  * BOOTP options
 #define SPD_EEPROM_ADDRESS      0x50
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_UART     | \
-                                CFG_POST_I2C      | \
-                                CFG_POST_CACHE    | \
-                                CFG_POST_ETHER    | \
-                                CFG_POST_SPR)
-
-#define CFG_POST_UART_TABLE    {UART0_BASE}
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_UART      | \
+                                CONFIG_SYS_POST_I2C       | \
+                                CONFIG_SYS_POST_CACHE     | \
+                                CONFIG_SYS_POST_ETHER     | \
+                                CONFIG_SYS_POST_SPR)
+
+#define CONFIG_SYS_POST_UART_TABLE     {UART0_BASE}
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
 #undef  CONFIG_LOGBUFFER
-#define CFG_POST_CACHE_ADDR    0x00800000 /* free virtual address      */
-#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x00800000 /* free virtual address      */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024            /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256             /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
  * External Bus Controller (EBC) Setup
  */
 
-#define CFG_EBC_CFG    0x98400000
+#define CONFIG_SYS_EBC_CFG     0x98400000
 
 /* Memory Bank 0 (Flash Bank 0) initialization */
-#define CFG_EBC_PB0AP  0x02005400
-#define CFG_EBC_PB0CR  0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit */
+#define CONFIG_SYS_EBC_PB0AP   0x02005400
+#define CONFIG_SYS_EBC_PB0CR   0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit */
 
-#define CFG_EBC_PB1AP  0x03041200
-#define CFG_EBC_PB1CR  0x7009A000  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB1AP   0x03041200
+#define CONFIG_SYS_EBC_PB1CR   0x7009A000  /* BAS=,BS=MB,BU=R/W,BW=bit */
 
-#define CFG_EBC_PB2AP  0x02054500
-#define CFG_EBC_PB2CR  0x78018000  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB2AP   0x02054500
+#define CONFIG_SYS_EBC_PB2CR   0x78018000  /* BAS=,BS=MB,BU=R/W,BW=bit */
 
-#define CFG_EBC_PB3AP  0x01840300
-#define CFG_EBC_PB3CR  0x7c0ba000  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB3AP   0x01840300
+#define CONFIG_SYS_EBC_PB3CR   0x7c0ba000  /* BAS=,BS=MB,BU=R/W,BW=bit */
 
-#define CFG_EBC_PB4AP  0x01800300
-#define CFG_EBC_PB4CR  0x7e0ba000  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB4AP   0x01800300
+#define CONFIG_SYS_EBC_PB4CR   0x7e0ba000  /* BAS=,BS=MB,BU=R/W,BW=bit */
 
-#define CFG_GPIO0_OR   0xF27FFFFF  /* GPIO value */
-#define CFG_GPIO0_TCR  0x7FFE0000  /* GPIO value */
-#define CFG_GPIO0_ODR  0x00E897FC  /* GPIO value */
+#define CONFIG_SYS_GPIO0_OR    0xF27FFFFF  /* GPIO value */
+#define CONFIG_SYS_GPIO0_TCR   0x7FFE0000  /* GPIO value */
+#define CONFIG_SYS_GPIO0_ODR   0x00E897FC  /* GPIO value */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)/* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)/* Initial Memory map for Linux */
 
 /* Init Memory Controller:
  *
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0               /* FLASH bank #1        */
 
 
 /* Configuration Port location */
 #define CONFIG_PORT_ADDR       0xF0000500
 
-#define CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* use "hush" command parser    */
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
index 6b23839ecc5f4543fe7a1090cd3b08feaa83706d..1ba46eb96d398fb0ce7e19920bc6c9528dbe2b34 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN        (320 * 1024)    /* Reserve 320 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024) /* Reserve 256 kB for malloc() */
-
-#define CFG_TLB_FOR_BOOT_FLASH  3
-#define CFG_BOOT_BASE_ADDR     0xfff00000
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_FLASH_BASE         0xfff80000      /* start of FLASH       */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_OCM_BASE           0xe0010000      /* ocm                  */
-#define CFG_OCM_DATA_ADDR      CFG_OCM_BASE
-#define CFG_PCI_BASE           0xe0000000      /* Internal PCI regs    */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory    */
-#define CFG_PCI_MEMBASE1       CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2       CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3       CFG_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_MONITOR_LEN (320 * 1024)    /* Reserve 320 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024) /* Reserve 256 kB for malloc() */
+
+#define CONFIG_SYS_TLB_FOR_BOOT_FLASH  3
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xfff00000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_FLASH_BASE          0xfff80000      /* start of FLASH       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_OCM_BASE            0xe0010000      /* ocm                  */
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_OCM_BASE
+#define CONFIG_SYS_PCI_BASE            0xe0000000      /* Internal PCI regs    */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory    */
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
 
 /* Don't change either of these */
-#define CFG_PERIPHERAL_BASE    0xef600000      /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000      /* internal peripherals */
 
-#define CFG_USB2D0_BASE                0xe0000100
-#define CFG_USB_DEVICE         0xe0000000
-#define CFG_USB_HOST           0xe0000400
+#define CONFIG_SYS_USB2D0_BASE         0xe0000100
+#define CONFIG_SYS_USB_DEVICE          0xe0000000
+#define CONFIG_SYS_USB_HOST            0xe0000400
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer
  *----------------------------------------------------------------------*/
 /* 440EPx/440GRx have 16KB of internal SRAM, so no need for D-Cache    */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_BASE    /* OCM                  */
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_BASE     /* OCM                  */
 
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK           /* external serial clock */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* external serial clock */
 #define CONFIG_BAUDRATE                9600
 #define CONFIG_SERIAL_MULTI     1
 /* needed to be able to define
@@ -99,7 +99,7 @@
 #undef CONFIG_UART1_CONSOLE
 
 #undef CONFIG_CMD_HWFLOW
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
 #ifdef  CONFIG_ENV_IS_IN_EEPROM
 /* Put the environment after the SDRAM and bootstrap configuration */
 #define PROM_SIZE      2048
-#define CFG_BOOSTRAP_OPTION_OFFSET      512
-#define CONFIG_ENV_OFFSET       (CFG_BOOSTRAP_OPTION_OFFSET + 0x10)
+#define CONFIG_SYS_BOOSTRAP_OPTION_OFFSET       512
+#define CONFIG_ENV_OFFSET       (CONFIG_SYS_BOOSTRAP_OPTION_OFFSET + 0x10)
 #define CONFIG_ENV_SIZE        (PROM_SIZE-CONFIG_ENV_OFFSET)
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 /* Put the environment in Flash */
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                8*1024  /* 8 KB Environment Sector      */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
-#define CFG_MBYTES_SDRAM        (128)          /* 128 MB or 256 MB     */
-#define CFG_DDR_CACHED_ADDR    0x50000000      /* setup 2nd TLB cached here */
+#define CONFIG_SYS_MBYTES_SDRAM        (128)           /* 128 MB or 256 MB     */
+#define CONFIG_SYS_DDR_CACHED_ADDR     0x50000000      /* setup 2nd TLB cached here */
 #undef  CONFIG_DDR_DATA_EYE            /* Do not use DDR2 optimization */
 #define CONFIG_DDR_ECC         1       /* enable ECC                   */
 
  * I2C stuff for a ATMEL AT24C16 (2kB holding ENV, we are using the
  * the second internal I2C controller of the PPC440EPx
  *----------------------------------------------------------------------*/
-#define CFG_SPD_BUS_NUM        1
+#define CONFIG_SYS_SPD_BUS_NUM 1
 
 #define CONFIG_HARD_I2C        1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /* This is the 7bit address of the device, not including P. */
-#define CFG_I2C_EEPROM_ADDR 0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 
 /* The EEPROM can do 16byte ( 1 << 4 ) page writes. */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
-#undef CFG_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
+#undef CONFIG_SYS_I2C_MULTI_EEPROMS
 
 
 #define CONFIG_PREBOOT "echo;"                                         \
 #define CONFIG_OVERWRITE_ETHADDR_ONCE
 #define CONFIG_SERVERIP                172.25.1.3
 
-#define CFG_TFTP_LOADADDR 0x01000000 /* @16 MB */
+#define CONFIG_SYS_TFTP_LOADADDR 0x01000000 /* @16 MB */
 
 #define        CONFIG_EXTRA_ENV_SETTINGS                                       \
        "netdev=eth0\0"                                                 \
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_M88E1111_PHY    1
 #define        CONFIG_IBM_EMAC4_V4     1
 #define CONFIG_PHY_RESET       1       /* reset phy upon startup         */
 
 #define CONFIG_HAS_ETH0
-#define CFG_RX_ETH_BUFFER      32 /* Number of ethernet rx buffers & desc. */
+#define CONFIG_SYS_RX_ETH_BUFFER       32 /* Number of ethernet rx buffers & desc. */
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_HAS_ETH1        1       /* add support for "eth1addr" */
 #define CONFIG_CMD_USB
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_UART     | \
-                                CFG_POST_I2C      | \
-                                CFG_POST_CACHE    | \
-                                CFG_POST_FPU      | \
-                                CFG_POST_ETHER    | \
-                                CFG_POST_SPR)
-#define CFG_POST_UART_TABLE    {UART0_BASE}
-
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_POST_CACHE_ADDR    0x7fff0000 /* free virtual address      */
-#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_UART      | \
+                                CONFIG_SYS_POST_I2C       | \
+                                CONFIG_SYS_POST_CACHE     | \
+                                CONFIG_SYS_POST_FPU       | \
+                                CONFIG_SYS_POST_ETHER     | \
+                                CONFIG_SYS_POST_SPR)
+#define CONFIG_SYS_POST_UART_TABLE     {UART0_BASE}
+
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_POST_CACHE_ADDR     0x7fff0000 /* free virtual address      */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
 
 #define CONFIG_SUPPORT_VFAT
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END        0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x100000  /* default load address       */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000  /* default load address       */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 #define CONFIG_PCI             1       /* include pci support          */
 #undef CONFIG_PCI_PNP                  /* do (not) pci plug-and-play   */
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE        0x80000000 /* PCIaddr map to CFG_PCI_MEMBASE*/
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr map to CONFIG_SYS_PCI_MEMBASE*/
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC                         */
-#define CFG_PCI_SUBSYS_ID       0xcafe /* Whatever                     */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC                         */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe  /* Whatever                     */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Flash
  *----------------------------------------------------------------------*/
 
 /* Use common CFI driver */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
 /* board provides its own flash_init code */
 #define CONFIG_FLASH_CFI_LEGACY                1
-#define CFG_FLASH_CFI_WIDTH            FLASH_CFI_8BIT
-#define CFG_FLASH_LEGACY_512Kx8 1
+#define CONFIG_SYS_FLASH_CFI_WIDTH             FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_LEGACY_512Kx8 1
 
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
-#define CFG_FLASH              CFG_FLASH_BASE
-#define CFG_CS_1               0xC8000000 /* CAN */
-#define CFG_CS_2               0xCC000000 /* CPLD and IMC-Bus Standard */
-#define CFG_CPLD               CFG_CS_2
-#define CFG_CS_3               0xCE000000 /* CPLD and IMC-Bus Fast  */
+#define CONFIG_SYS_FLASH               CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS_1                0xC8000000 /* CAN */
+#define CONFIG_SYS_CS_2                0xCC000000 /* CPLD and IMC-Bus Standard */
+#define CONFIG_SYS_CPLD                CONFIG_SYS_CS_2
+#define CONFIG_SYS_CS_3                0xCE000000 /* CPLD and IMC-Bus Fast  */
 
-#define CFG_BOOTFLASH_CS       0       /* Boot Flash chip connected to CSx */
-#define CFG_EBC_PB0AP          0x02005400
-#define CFG_EBC_PB0CR          0xFFF18000 /* (CFG_FLASH | 0xda000)  */
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define CONFIG_SYS_BOOTFLASH_CS        0       /* Boot Flash chip connected to CSx */
+#define CONFIG_SYS_EBC_PB0AP           0x02005400
+#define CONFIG_SYS_EBC_PB0CR           0xFFF18000 /* (CONFIG_SYS_FLASH | 0xda000)  */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 
 /* Memory Bank 1 CAN-Chips initialization                              */
-#define CFG_EBC_PB1AP          0x02054500
-#define CFG_EBC_PB1CR          0xC8018000
+#define CONFIG_SYS_EBC_PB1AP           0x02054500
+#define CONFIG_SYS_EBC_PB1CR           0xC8018000
 
 /* Memory Bank 2 CPLD/IMC-Bus standard initialization                  */
-#define CFG_EBC_PB2AP          0x01840300
-#define CFG_EBC_PB2CR          0xCC0BA000
+#define CONFIG_SYS_EBC_PB2AP           0x01840300
+#define CONFIG_SYS_EBC_PB2CR           0xCC0BA000
 
 /* Memory Bank 3 IMC-Bus fast mode initialization                      */
-#define CFG_EBC_PB3AP          0x01800300
-#define CFG_EBC_PB3CR          0xCE0BA000
+#define CONFIG_SYS_EBC_PB3AP           0x01800300
+#define CONFIG_SYS_EBC_PB3CR           0xCE0BA000
 
 /* Memory Bank 4 (not used) initialization                             */
-#undef CFG_EBC_PB4AP
-#undef CFG_EBC_PB4CR
+#undef CONFIG_SYS_EBC_PB4AP
+#undef CONFIG_SYS_EBC_PB4CR
 
 /* Memory Bank 5 (not used) initialization                             */
-#undef CFG_EBC_PB5AP
-#undef CFG_EBC_PB5CR
+#undef CONFIG_SYS_EBC_PB5AP
+#undef CONFIG_SYS_EBC_PB5CR
 
-#define HCU_CPLD_VERSION_REGISTER ( CFG_CPLD + 0x0F00000 )
-#define HCU_HW_VERSION_REGISTER   ( CFG_CPLD + 0x1400000 )
+#define HCU_CPLD_VERSION_REGISTER ( CONFIG_SYS_CPLD + 0x0F00000 )
+#define HCU_HW_VERSION_REGISTER   ( CONFIG_SYS_CPLD + 0x1400000 )
 
-#define CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef  CFG_HUSH_PARSER
-       #define CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* use "hush" command parser    */
+#ifdef  CONFIG_SYS_HUSH_PARSER
+       #define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
index e1a0846d48ccdc1907cc07e0a951a79f51c535d3..0df46fa4de1f7eddb96fe35fafe398d4dec8a572 100644 (file)
@@ -60,7 +60,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x00100000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00100000      /* default load address */
 
-#define        CFG_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
+#define        CONFIG_SYS_PIO_MODE             0       /* IDE interface in PIO Mode 0  */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define        CFG_ALLOC_DPRAM         1       /* use allocation routines      */
+#define        CONFIG_SYS_ALLOC_DPRAM          1       /* use allocation routines      */
 /*
  * Low Level Configuration Settings
  * (address mappings, register initial values, etc.)
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000      /* Non-Standard value!  */
+#define CONFIG_SYS_IMMR                0xFF000000      /* Non-Standard value!  */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0xFE000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
 #ifdef DEBUG
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (128 << 10)     /* Reserve 128 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     124     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      124     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x4000  /*   Offset   of Environment Sector     */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * +0x0004
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * +0x0000 => 0x000000C0
  */
-#define CFG_SIUMCR     0
+#define CONFIG_SYS_SIUMCR      0
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  * Clear Reference Interrupt Status, Timebase freezing enabled
  * +0x0200 => 0x00C2
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  * +0x0240 => 0x0082
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit, set PLL multiplication factor !
  */
 /* +0x0286 => 0x00B0D0C0 */
-#define CFG_PLPRCR                                                     \
+#define CONFIG_SYS_PLPRCR                                                      \
                (       (11 << PLPRCR_MF_SHIFT) |                       \
                        PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST |    \
                        /*PLPRCR_CSRC|*/ PLPRCR_LPM_NORMAL |            \
  */
 #define SCCR_MASK      SCCR_EBDF11
 /* +0x0282 => 0x03800000 */
-#define CFG_SCCR       (SCCR_COM00     |   SCCR_TBS      |     \
+#define CONFIG_SYS_SCCR        (SCCR_COM00     |   SCCR_TBS      |     \
                         SCCR_RTDIV     |   SCCR_RTSEL    |     \
                         /*SCCR_CRQEN|*/  /*SCCR_PRQEN|*/       \
                         SCCR_EBDF00    |   SCCR_DFSYNC00 |     \
  *-----------------------------------------------------------------------
  */
 /* +0x0220 => 0x00C3 */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  */
 /* +0x09C4 => TIMEP=1 */
-#define CFG_RCCR 0x0100
+#define CONFIG_SYS_RCCR 0x0100
 
 /*-----------------------------------------------------------------------
  * RMDS - RISC Microcode Development Support Control Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMDS 0
+#define CONFIG_SYS_RMDS 0
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * but not too much to meddle with FLASH accesses
  */
 /* allow for max 4 MB of Flash */
-#define CFG_REMAP_OR_AM                0xFFC00000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFFC00000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFFC00000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFFC00000      /* OR addr mask */
 
 /* FLASH timing: ACS = 11, TRLX = 1, CSNT = 1, SCY = 5, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    ( OR_CSNT_SAM | /*OR_ACS_DIV4 |*/ OR_BI | \
+#define CONFIG_SYS_OR_TIMING_FLASH     ( OR_CSNT_SAM | /*OR_ACS_DIV4 |*/ OR_BI | \
                                 OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
 /* 8 bit, bank valid */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR1/OR1 - SDRAM
 
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB SDRAM */
 
-#define CFG_OR1_PRELIM (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
-#define CFG_BR1_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * BR2/OR2 - HPRO2: PEB2256   @ 0xE0000000, 8 Bit wide
 #define HPRO2_OR_AM            0xFFFF8000
 #define HPRO2_TIMING           0x00000934
 
-#define CFG_OR2 (HPRO2_OR_AM | HPRO2_TIMING)
-#define CFG_BR2        ((HPRO2_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
+#define CONFIG_SYS_OR2 (HPRO2_OR_AM | HPRO2_TIMING)
+#define CONFIG_SYS_BR2 ((HPRO2_BASE & BR_BA_MSK) | BR_PS_8 | BR_V )
 
 /*
  * BR3/OR3: not used
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz       */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
index e816b6d64ccb27a094c817506bb82b8a6ff66855..16b06cd8b684675888c14e320a73f7fa3d919a2c 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MPC5200         1       /* (more precisely an MPC5200 CPU)      */
 #define CONFIG_HMI1001         1       /* HMI1001 board                        */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz         */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz         */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH     */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                      */
@@ -47,7 +47,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1   */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps    */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_DOS_PARTITION
@@ -81,7 +81,7 @@
 #define        CONFIG_TIMESTAMP        1       /* Print image info with timestamp */
 
 #if (TEXT_BASE == 0xFFF00000) /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x58
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFF800000
+#define CONFIG_SYS_FLASH_BASE          0xFF800000
 
-#define CFG_FLASH_SIZE         0x00800000 /* 8 MByte */
-#define CFG_MAX_FLASH_SECT     67      /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000 /* 8 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max num of sects on one chip */
 
 #define CONFIG_ENV_ADDR                (TEXT_BASE+0x40000) /* second sector */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_CFI_AMD_RESET
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
-#define CFG_DISPLAY_BASE       0x80600000
-#define CFG_STATUS1_BASE       0x80600200
-#define CFG_STATUS2_BASE       0x80600300
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
+#define CONFIG_SYS_DISPLAY_BASE        0x80600000
+#define CONFIG_SYS_STATUS1_BASE        0x80600200
+#define CONFIG_SYS_STATUS2_BASE        0x80600300
 
 /* Settings for XLB = 132 MHz */
 #define SDRAM_DDR       1
 #define SDRAM_TAPDELAY  0x10000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x01051004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x01051004
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs                     */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs                     */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * Enable loopw command.
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x0004FB00
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x0004FB00
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 /* 8Mbit SRAM @0x80100000 */
-#define CFG_CS1_START          0x80100000
-#define CFG_CS1_SIZE           0x00100000
-#define CFG_CS1_CFG            0x19B00
+#define CONFIG_SYS_CS1_START           0x80100000
+#define CONFIG_SYS_CS1_SIZE            0x00100000
+#define CONFIG_SYS_CS1_CFG             0x19B00
 
 /* FRAM 32Kbyte @0x80700000 */
-#define CFG_CS2_START          0x80700000
-#define CFG_CS2_SIZE           0x00008000
-#define CFG_CS2_CFG            0x19800
+#define CONFIG_SYS_CS2_START           0x80700000
+#define CONFIG_SYS_CS2_SIZE            0x00008000
+#define CONFIG_SYS_CS2_CFG             0x19800
 
 /* Display H1, Status Inputs, EPLD @0x80600000 */
-#define CFG_CS3_START          0x80600000
-#define CFG_CS3_SIZE           0x00100000
-#define CFG_CS3_CFG            0x00019800
+#define CONFIG_SYS_CS3_START           0x80600000
+#define CONFIG_SYS_CS3_SIZE            0x00100000
+#define CONFIG_SYS_CS3_CFG             0x00019800
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff Supports IDE harddisk
 #undef CONFIG_IDE_8xx_DIRECT           /* Direct IDE    not supported  */
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 2 drives per IDE bus    */
 
 #define CONFIG_IDE_PREINIT     1
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                                */
-#define CFG_ATA_STRIDE          4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #define CONFIG_ATAPI            1
 
 #define CONFIG_PCI_IO_PHYS     CONFIG_PCI_IO_BUS
 #define CONFIG_PCI_IO_SIZE     0x01000000
 
-#define CFG_ISA_IO             CONFIG_PCI_IO_BUS
+#define CONFIG_SYS_ISA_IO              CONFIG_PCI_IO_BUS
 
 /*---------------------------------------------------------------------*/
 /* Display addresses                                                  */
 /*---------------------------------------------------------------------*/
 
-#define CFG_DISP_CHR_RAM       (CFG_DISPLAY_BASE + 0x38)
-#define CFG_DISP_CWORD         (CFG_DISPLAY_BASE + 0x30)
+#define CONFIG_SYS_DISP_CHR_RAM        (CONFIG_SYS_DISPLAY_BASE + 0x38)
+#define CONFIG_SYS_DISP_CWORD          (CONFIG_SYS_DISPLAY_BASE + 0x30)
 
 #endif /* __CONFIG_H */
index 4c83193f8c130eeb8517bcd8e35cbeb977827fd9..0fdcda230177282f76f037aff1e38e681ac11758 100644 (file)
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF1CS_CLK10|CMXFCR_TF1CS_CLK11)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC1|CMXFCR_RF1CS_MSK|CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK10|CMXFCR_TF1CS_CLK11)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 # define MDIO_PORT             0               /* Port A */
 # define MDIO_DATA_PINMASK     0x00040000      /* Pin 13 */
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 # define MDIO_PORT             0               /* Port A */
 # define MDIO_DATA_PINMASK     0x00000040      /* Pin 25 */
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC3|CMXFCR_RF3CS_MSK|CMXFCR_TF3CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF3CS_CLK15|CMXFCR_TF3CS_CLK16)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 # define MDIO_PORT             0               /* Port A */
 # define MDIO_DATA_PINMASK     0x00000100      /* Pin 23 */
 /*
  * Hymod specific configurable options
  */
-#undef CFG_HYMOD_DBLEDS                        /* walk mezz board LEDs */
+#undef CONFIG_SYS_HYMOD_DBLEDS                 /* walk mezz board LEDs */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x03c00000      /* 4 ... 60 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x03c00000      /* 4 ... 60 MB in DRAM  */
 
-#define CFG_CLKS_IN_HZ         1       /* everything, incl board info, in Hz */
+#define CONFIG_SYS_CLKS_IN_HZ          1       /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define        CFG_I2C_SPEED           50000
-#define        CFG_I2C_SLAVE           0x7e
+#define        CONFIG_SYS_I2C_SPEED            50000
+#define        CONFIG_SYS_I2C_SLAVE            0x7e
 
 /* these are for the ST M24C02 2kbit serial i2c eeprom */
-#define CFG_I2C_EEPROM_ADDR    0x50            /* base address */
-#define CFG_I2C_EEPROM_ADDR_LEN        1               /* bytes of address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* base address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* bytes of address */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
 
-#define CFG_EEPROM_PAGE_WRITE_BITS     4       /* 16 byte write page size */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4       /* 16 byte write page size */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
-#define CFG_I2C_MULTI_EEPROMS  1               /* hymod has two eeproms */
+#define CONFIG_SYS_I2C_MULTI_EEPROMS   1               /* hymod has two eeproms */
 
-#define CFG_I2C_RTC_ADDR       0x51    /* philips PCF8563 RTC address */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51    /* philips PCF8563 RTC address */
 
 /*
  * standard dtt sensor configuration - bottom bit will determine local or
  * remote sensor of the ADM1021, the rest determines index into
- * CFG_DTT_ADM1021 array below.
+ * CONFIG_SYS_DTT_ADM1021 array below.
  *
  * On HYMOD board, the remote sensor should be connected to the MPC8260
  * temperature diode thingy, but an errata said this didn't work and
  * - local temp sensor enabled, min set to 0 deg, max set to 85 deg
  * - remote temp sensor disabled (see comment for CONFIG_DTT_SENSORS above)
  */
-#define CFG_DTT_ADM1021                { { 0x2a, 0x02, 0, 1, 0, 85, 0, } }
+#define CONFIG_SYS_DTT_ADM1021         { { 0x2a, 0x02, 0, 1, 0, 85, 0, } }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  *
- * if you change bits in the HRCW, you must also change the CFG_*
+ * if you change bits in the HRCW, you must also change the CONFIG_SYS_*
  * defines for the various registers affected by the HRCW e.g. changing
- * HRCW_DPPCxx requires you to also change CFG_SIUMCR.
+ * HRCW_DPPCxx requires you to also change CONFIG_SYS_SIUMCR.
  */
 #ifdef DEBUG
-#define CFG_HRCW_MASTER        (HRCW_BPS11|HRCW_CIP|HRCW_L2CPC01|HRCW_DPPC10|\
+#define CONFIG_SYS_HRCW_MASTER (HRCW_BPS11|HRCW_CIP|HRCW_L2CPC01|HRCW_DPPC10|\
                         HRCW_ISB100|HRCW_BMS|HRCW_MMR11|HRCW_APPC10|\
                         HRCW_MODCK_H0010)
 #else
-#define CFG_HRCW_MASTER        (HRCW_BPS11|HRCW_CIP|HRCW_L2CPC01|HRCW_DPPC10|\
+#define CONFIG_SYS_HRCW_MASTER (HRCW_BPS11|HRCW_CIP|HRCW_L2CPC01|HRCW_DPPC10|\
                         HRCW_ISB100|HRCW_BMS|HRCW_MMR11|HRCW_APPC10|\
                         HRCW_MODCK_H0101)
 #endif
 /* no slaves so just duplicate the master hrcw */
-#define CFG_HRCW_SLAVE1        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE2        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE3        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE4        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE5        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE6        CFG_HRCW_MASTER
-#define CFG_HRCW_SLAVE7        CFG_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE1 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE2 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE3 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE4 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE5 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE6 CONFIG_SYS_HRCW_MASTER
+#define CONFIG_SYS_HRCW_SLAVE7 CONFIG_SYS_HRCW_MASTER
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x4000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         TEXT_BASE
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#define CFG_FPGA_BASE          0x80000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          TEXT_BASE
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#define CONFIG_SYS_FPGA_BASE           0x80000000
 /*
- * unfortunately, CFG_MONITOR_LEN must include the
+ * unfortunately, CONFIG_SYS_MONITOR_LEN must include the
  * (very large i.e. 256kB) environment flash sector
  */
-#define        CFG_MONITOR_LEN         (512 << 10)     /* Reserve 512 kB for Monitor*/
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()*/
+#define        CONFIG_SYS_MONITOR_LEN          (512 << 10)     /* Reserve 512 kB for Monitor*/
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()*/
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Mem map for Linux*/
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Mem map for Linux*/
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     67      /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_SIZE         0x40000 /* Total Size of Environment Sector */
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* see README - env sect real size */
-#define        CONFIG_ENV_ADDR (CFG_FLASH_BASE+CFG_MONITOR_LEN-CONFIG_ENV_SECT_SIZE)
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE+CONFIG_SYS_MONITOR_LEN-CONFIG_ENV_SECT_SIZE)
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU              */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU              */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value*/
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value*/
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|\
                                HID0_IFEM|HID0_ABE)
 #ifdef DEBUG
-#define CFG_HID0_FINAL 0
+#define CONFIG_SYS_HID0_FINAL  0
 #else
-#define CFG_HID0_FINAL (HID0_ICE|HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE|HID0_IFEM|HID0_ABE)
 #endif
-#define CFG_HID2       0
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                    5-5
  * turn on Checkstop Reset Enable
  */
 #ifdef DEBUG
-#define CFG_RMR                0
+#define CONFIG_SYS_RMR         0
 #else
-#define CFG_RMR                RMR_CSRE
+#define CONFIG_SYS_RMR         RMR_CSRE
 #endif
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                (BCR_ETM)
+#define CONFIG_SYS_BCR         (BCR_ETM)
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     (SIUMCR_DPPC10|SIUMCR_L2CPC01|\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC10|SIUMCR_L2CPC01|\
                         SIUMCR_APPC10|SIUMCR_MMR11)
 
 /*-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x & Local Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  * Ensure DFBRG is Divide by 16
  */
-#define CFG_SCCR       (SCCR_DFBRG01)
+#define CONFIG_SYS_SCCR        (SCCR_DFBRG01)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
  */
 
 /* 32 bit, read-write, GPCM on 60x bus */
-#define        CFG_BR0_PRELIM  ((CFG_FLASH_BASE&BRx_BA_MSK)|\
+#define        CONFIG_SYS_BR0_PRELIM   ((CONFIG_SYS_FLASH_BASE&BRx_BA_MSK)|\
                                BRx_PS_32|BRx_MS_GPCM_P|BRx_V)
 /* up to 32 Mb */
-#define        CFG_OR0_PRELIM  (MEG_TO_AM(32)|ORxG_CSNT|ORxG_ACS_DIV2|ORxG_SCY_10_CLK)
+#define        CONFIG_SYS_OR0_PRELIM   (MEG_TO_AM(32)|ORxG_CSNT|ORxG_ACS_DIV2|ORxG_SCY_10_CLK)
 
 /*
  * Bank 2 - SDRAM
  *  address lines to be configured to the required multiplexing scheme."
  */
 
-#define CFG_SDRAM_SIZE 64
+#define CONFIG_SYS_SDRAM_SIZE  64
 
 /* 64 bit, read-write, SDRAM on 60x bus */
-#define        CFG_BR2_PRELIM  ((CFG_SDRAM_BASE&BRx_BA_MSK)|\
+#define        CONFIG_SYS_BR2_PRELIM   ((CONFIG_SYS_SDRAM_BASE&BRx_BA_MSK)|\
                                BRx_PS_64|BRx_MS_SDRAM_P|BRx_V)
 /* 64 Mb, 4 int banks per dev, row start addr bit = A6, 12 row addr lines */
-#define        CFG_OR2_PRELIM  (MEG_TO_AM(CFG_SDRAM_SIZE)|\
+#define        CONFIG_SYS_OR2_PRELIM   (MEG_TO_AM(CONFIG_SYS_SDRAM_SIZE)|\
                                ORxS_BPD_4|ORxS_ROWST_PBI1_A6|ORxS_NUMR_12)
 
 /*
  * was written is 1 clock, CAS Latency is 2.
  */
 
-#define CFG_PSDMR      (PSDMR_PBI|PSDMR_SDAM_A16_IS_A5|\
+#define CONFIG_SYS_PSDMR       (PSDMR_PBI|PSDMR_SDAM_A16_IS_A5|\
                                PSDMR_BSMA_A14_A16|PSDMR_SDA10_PBI1_A7|\
                                PSDMR_RFRC_6_CLK|PSDMR_PRETOACT_2W|\
                                PSDMR_ACTTORW_2W|PSDMR_LDOTOPRE_1C|\
  */
 
 #ifdef DEBUG
-#define CFG_PSRT       39
-#define CFG_MPTPR      MPTPR_PTP_DIV8
+#define CONFIG_SYS_PSRT        39
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV8
 #else
-#define CFG_PSRT       31
-#define CFG_MPTPR      MPTPR_PTP_DIV32
+#define CONFIG_SYS_PSRT        31
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV32
 #endif
 
 /*
  */
 
 /* all the bank sizes must be a power of two, greater or equal to 32768 */
-#define FPGA_MAIN_CFG_BASE     (CFG_FPGA_BASE)
+#define FPGA_MAIN_CFG_BASE     (CONFIG_SYS_FPGA_BASE)
 #define FPGA_MAIN_CFG_SIZE     32768
 #define FPGA_MAIN_REG_BASE     (FPGA_MAIN_CFG_BASE + FPGA_MAIN_CFG_SIZE)
 #define FPGA_MAIN_REG_SIZE     32768
 #define FPGA_MEZZ_CFG_SIZE     32768
 
 /* 8 bit, read-write, UPMC */
-#define        CFG_BR3_PRELIM  (FPGA_MAIN_CFG_BASE|BRx_PS_8|BRx_MS_UPMC|BRx_V)
+#define        CONFIG_SYS_BR3_PRELIM   (FPGA_MAIN_CFG_BASE|BRx_PS_8|BRx_MS_UPMC|BRx_V)
 /* up to 32Kbyte, burst inhibit */
-#define        CFG_OR3_PRELIM  (P2SZ_TO_AM(FPGA_MAIN_CFG_SIZE)|ORxU_BI)
+#define        CONFIG_SYS_OR3_PRELIM   (P2SZ_TO_AM(FPGA_MAIN_CFG_SIZE)|ORxU_BI)
 
 /* 32 bit, read-write, GPCM */
-#define        CFG_BR4_PRELIM  (FPGA_MAIN_REG_BASE|BRx_PS_32|BRx_MS_GPCM_L|BRx_V)
+#define        CONFIG_SYS_BR4_PRELIM   (FPGA_MAIN_REG_BASE|BRx_PS_32|BRx_MS_GPCM_L|BRx_V)
 /* up to 32Kbyte */
-#define        CFG_OR4_PRELIM  (P2SZ_TO_AM(FPGA_MAIN_REG_SIZE))
+#define        CONFIG_SYS_OR4_PRELIM   (P2SZ_TO_AM(FPGA_MAIN_REG_SIZE))
 
 /* 32 bit, read-write, UPMB */
-#define        CFG_BR5_PRELIM  (FPGA_MAIN_PORT_BASE|BRx_PS_32|BRx_MS_UPMB|BRx_V)
+#define        CONFIG_SYS_BR5_PRELIM   (FPGA_MAIN_PORT_BASE|BRx_PS_32|BRx_MS_UPMB|BRx_V)
 /* up to 32Kbyte */
-#define        CFG_OR5_PRELIM  (P2SZ_TO_AM(FPGA_MAIN_PORT_SIZE)|ORxU_BI)
+#define        CONFIG_SYS_OR5_PRELIM   (P2SZ_TO_AM(FPGA_MAIN_PORT_SIZE)|ORxU_BI)
 
 /* 8 bit, write-only, UPMC */
-#define        CFG_BR6_PRELIM  (FPGA_MEZZ_CFG_BASE|BRx_PS_8|BRx_MS_UPMC|BRx_V)
+#define        CONFIG_SYS_BR6_PRELIM   (FPGA_MEZZ_CFG_BASE|BRx_PS_8|BRx_MS_UPMC|BRx_V)
 /* up to 32Kbyte, burst inhibit */
-#define        CFG_OR6_PRELIM  (P2SZ_TO_AM(FPGA_MEZZ_CFG_SIZE)|ORxU_BI)
+#define        CONFIG_SYS_OR6_PRELIM   (P2SZ_TO_AM(FPGA_MEZZ_CFG_SIZE)|ORxU_BI)
 
 /*-----------------------------------------------------------------------
  * MBMR - Machine B Mode                                       10-27
  *-----------------------------------------------------------------------
  */
-#define CFG_MBMR       (MxMR_BSEL|MxMR_OP_NORM)        /* XXX - needs more */
+#define CONFIG_SYS_MBMR        (MxMR_BSEL|MxMR_OP_NORM)        /* XXX - needs more */
 
 /*-----------------------------------------------------------------------
  * MCMR - Machine C Mode                                       10-27
  *-----------------------------------------------------------------------
  */
-#define CFG_MCMR       (MxMR_BSEL|MxMR_DSx_2_CYCL)     /* XXX - needs more */
+#define CONFIG_SYS_MCMR        (MxMR_BSEL|MxMR_DSx_2_CYCL)     /* XXX - needs more */
 
 /*
  * FPGA I/O Port/Bit information
index a1f1517dfb7d3336b45240f7286662ba54021ef7..1dd89f90c7bd64aa328bee2368710c788f7048ed 100644 (file)
@@ -45,9 +45,9 @@
 #define CONFIG_BOOTCOMMAND     "run net_nfs"
 #define CONFIG_BOOTDELAY       5
 #define CONFIG_MCFUART
-#define CFG_UART_PORT          (0)
+#define CONFIG_SYS_UART_PORT           (0)
 #define CONFIG_BAUDRATE                19200
-#define CFG_BAUDRATE_TABLE     { 9600 , 19200 , 38400 , 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600 , 19200 , 38400 , 57600, 115200 }
 #define CONFIG_ETHADDR         00:06:3b:01:41:55
 #define CONFIG_ETHPRIME
 #define CONFIG_IPADDR          192.168.30.1
 #define CONFIG_ENV_IS_IN_FLASH
 #endif /* !CONFIG_MONITOR_IS_IN_RAM */
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
-#define CFG_PROMPT             "=> "
-#define CFG_LONGHELP                           /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define CFG_MEMTEST_START      0x400
-#define CFG_MEMTEST_END                0x380000
+#define CONFIG_SYS_MEMTEST_START       0x400
+#define CONFIG_SYS_MEMTEST_END         0x380000
 
-#define CFG_HZ                 (50000000 / 64)
-#define CFG_CLK                        100000000
+#define CONFIG_SYS_HZ                  (50000000 / 64)
+#define CONFIG_SYS_CLK                 100000000
 
-#define CFG_MBAR               0x40000000      /* Register Base Addrs */
+#define CONFIG_SYS_MBAR                0x40000000      /* Register Base Addrs */
 
 /*
  * Ethernet
 #      define CONFIG_NET_MULTI         1
 #      define CONFIG_MII               1
 #      define CONFIG_MII_INIT          1
-#      define CFG_DISCOVER_PHY
-#      define CFG_RX_ETH_BUFFER        8
-#      define CFG_FAULT_ECHO_LINK_DOWN
+#      define CONFIG_SYS_DISCOVER_PHY
+#      define CONFIG_SYS_RX_ETH_BUFFER 8
+#      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 
-#      define CFG_FEC0_PINMUX          0
-#      define CFG_FEC0_MIIBASE         CFG_FEC0_IOBASE
+#      define CONFIG_SYS_FEC0_PINMUX           0
+#      define CONFIG_SYS_FEC0_MIIBASE          CONFIG_SYS_FEC0_IOBASE
 #      define MCFFEC_TOUT_LOOP         50000
-/* If CFG_DISCOVER_PHY is not defined - hardcoded */
-#      ifndef CFG_DISCOVER_PHY
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#      ifndef CONFIG_SYS_DISCOVER_PHY
 #              define FECDUPLEX        FULL
 #              define FECSPEED         _100BASET
 #      else
-#              ifndef CFG_FAULT_ECHO_LINK_DOWN
-#                      define CFG_FAULT_ECHO_LINK_DOWN
+#              ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#                      define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 #              endif
-#      endif                   /* CFG_DISCOVER_PHY */
+#      endif                   /* CONFIG_SYS_DISCOVER_PHY */
 #endif
 
 /*
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      0x20000000
-#define CFG_INIT_RAM_END       0x1000  /* End of used area in internal SRAM */
-#define CFG_GBL_DATA_SIZE      64      /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x20000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000  /* End of used area in internal SRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       64      /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         16              /* SDRAM size in MB */
-#define CFG_FLASH_BASE         0xff800000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          16              /* SDRAM size in MB */
+#define CONFIG_SYS_FLASH_BASE          0xff800000
 
 #ifdef CONFIG_MONITOR_IS_IN_RAM
-#define CFG_MONITOR_BASE       0x20000
+#define CONFIG_SYS_MONITOR_BASE        0x20000
 #else /* !CONFIG_MONITOR_IS_IN_RAM */
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE + 0x400)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE + 0x400)
 #endif /* CONFIG_MONITOR_IS_IN_RAM */
 
-#define CFG_MONITOR_LEN                0x20000
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_BOOTPARAMS_LEN     (64*1024)
+#define CONFIG_SYS_MONITOR_LEN         0x20000
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_BOOTPARAMS_LEN      (64*1024)
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization ??
  */
-#define CFG_BOOTMAPSZ          (CFG_SDRAM_BASE + (CFG_SDRAM_SIZE << 20))
+#define CONFIG_SYS_BOOTMAPSZ           (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
 
 /* FLASH organization */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip */
-#define CFG_FLASH_ERASE_TOUT   1000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    1000
 
-#define CFG_FLASH_SIZE         0x800000
+#define CONFIG_SYS_FLASH_SIZE          0x800000
 /*
- * #define CFG_FLASH_USE_BUFFER_WRITE  1
+ * #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE   1
  */
 
 /* Cache Configuration */
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /* Port configuration */
-#define CFG_FECI2C             0xF0
+#define CONFIG_SYS_FECI2C              0xF0
 
 
 /* Dynamic MTD partition support */
index 52eb88811161f6b12f610a47940fc38f9567a2c5..bb3c02e72a2c32a2445a0ca01bc9cc97ae7d826d 100644 (file)
@@ -41,8 +41,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "impA7 # "              /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "impA7 # "              /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xc1000000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xc1000000      /* default load address */
 
-#define        CFG_HZ                  2000            /* decrementer freq: 2 kHz */
+#define        CONFIG_SYS_HZ                   2000            /* decrementer freq: 2 kHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_2           0x10000000 /* Flash Bank #2 */
 #define PHYS_FLASH_SIZE                0x00800000 /* 16 MB */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + 0x1C000)        /* Addr of Environment Sector   */
index 9a655aa6255ee17a35511f7152d56d97fdead016..6c150aed3995228d0089e9befe372a48af3b8b53 100644 (file)
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128 * 1024)
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
  */
 
 #define CONFIG_MX31_UART       1
-#define CFG_MX31_UART1         1
+#define CONFIG_SYS_MX31_UART1          1
 
 #define CONFIG_HARD_SPI                1
 #define CONFIG_MXC_SPI         1
@@ -77,7 +77,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {9600, 19200, 38400, 57600, 115200}
+#define CONFIG_SYS_BAUDRATE_TABLE      {9600, 19200, 38400, 57600, 115200}
 
 /***********************************************************
  * Command definition
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_PROMPT             "uboot> "
-#define CFG_CBSIZE             256  /* Console I/O Buffer Size */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "uboot> "
+#define CONFIG_SYS_CBSIZE              256  /* Console I/O Buffer Size */
 /* Print Buffer Size */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16          /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16          /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0  /* memtest works on */
-#define CFG_MEMTEST_END                0x10000
+#define CONFIG_SYS_MEMTEST_START       0  /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x10000
 
-#define CFG_LOAD_ADDR          0 /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0 /* default load address */
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 #define CONFIG_CMDLINE_EDITING 1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_FLASH_BASE         CS0_BASE
-#define CFG_MAX_FLASH_BANKS    1           /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     128          /* max number of sectors on one chip */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE /* Monitor at beginning of flash */
+#define CONFIG_SYS_FLASH_BASE          CS0_BASE
+#define CONFIG_SYS_MAX_FLASH_BANKS     1           /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128          /* max number of sectors on one chip */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE /* Monitor at beginning of flash */
 
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x001f0000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x001f0000)
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   (64 * 1024)
 #define CONFIG_ENV_SIZE                (64 * 1024)
 /*-----------------------------------------------------------------------
  * CFI FLASH driver setup
  */
-#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use drivers/cfi_flash.c */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* Use buffered writes (~10x faster) */
-#define CFG_FLASH_PROTECTION   1       /* Use hardware sector protection */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* Use buffered writes (~10x faster) */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* Use hardware sector protection */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (100*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (100*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (100*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (100*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /*
  * JFFS2 partitions
index 15402030afd50fd9abe6aa950d1069c7931ef7da..f0d28ee05f335ebdc87123f4bdf2b992143c112a 100644 (file)
@@ -51,8 +51,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128 * 1024)
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 
 #define CONFIG_HARD_I2C                1
 #define CONFIG_I2C_MXC         1
-#define CFG_I2C_MX31_PORT2     1
-#define CFG_I2C_SPEED          100000
-#define CFG_I2C_SLAVE          0xfe
+#define CONFIG_SYS_I2C_MX31_PORT2      1
+#define CONFIG_SYS_I2C_SPEED           100000
+#define CONFIG_SYS_I2C_SLAVE           0xfe
 
 #define CONFIG_MX31_UART       1
-#define CFG_MX31_UART1         1
+#define CONFIG_SYS_MX31_UART1          1
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {9600, 19200, 38400, 57600, 115200}
+#define CONFIG_SYS_BAUDRATE_TABLE      {9600, 19200, 38400, 57600, 115200}
 
 /***********************************************************
  * Command definition
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_PROMPT             "uboot> "
-#define CFG_CBSIZE             256  /* Console I/O Buffer Size */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "uboot> "
+#define CONFIG_SYS_CBSIZE              256  /* Console I/O Buffer Size */
 /* Print Buffer Size */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16          /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16          /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0  /* memtest works on */
-#define CFG_MEMTEST_END                0x10000
+#define CONFIG_SYS_MEMTEST_START       0  /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x10000
 
-#define CFG_LOAD_ADDR          0 /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0 /* default load address */
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 #define CONFIG_CMDLINE_EDITING 1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_FLASH_BASE         0xa0000000
-#define CFG_MAX_FLASH_BANKS    1           /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     259          /* max number of sectors on one chip */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE /* Monitor at beginning of flash */
+#define CONFIG_SYS_FLASH_BASE          0xa0000000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1           /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      259          /* max number of sectors on one chip */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE /* Monitor at beginning of flash */
 
 #define        CONFIG_ENV_IS_IN_EEPROM         1
 #define CONFIG_ENV_OFFSET                      0x00    /* environment starts here     */
 #define CONFIG_ENV_SIZE                        4096
-#define CFG_I2C_EEPROM_ADDR            0x52
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* 5 bits = 32 octets          */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* between stop and start      */
-#define CFG_I2C_EEPROM_ADDR_LEN                2       /* length of byte address      */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x52
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* 5 bits = 32 octets          */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* between stop and start      */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2       /* length of byte address      */
 
 /*-----------------------------------------------------------------------
  * CFI FLASH driver setup
  */
-#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use drivers/cfi_flash.c */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* Use buffered writes (~10x faster) */
-#define CFG_FLASH_PROTECTION   1       /* Use hardware sector protection */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* Use buffered writes (~10x faster) */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* Use hardware sector protection */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (100*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (100*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (100*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (100*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /*
  * JFFS2 partitions
index 5368ac8e5e12ab18bcc928f8b2c3b7b642acb09b..a18ba801925fa4f0ec8395d9e89a5914485b1cf1 100644 (file)
@@ -43,7 +43,7 @@
 #define CONFIG_BAUDRATE                115200
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define        CONFIG_TIMESTAMP                /* Print image info with timestamp */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory      */
-#define        CFG_PROMPT              "INCA-IP # "    /* Monitor Command Prompt    */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size   */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args*/
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory      */
+#define        CONFIG_SYS_PROMPT               "INCA-IP # "    /* Monitor Command Prompt    */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size   */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args*/
 
-#define CFG_MALLOC_LEN         128*1024
+#define CONFIG_SYS_MALLOC_LEN          128*1024
 
-#define CFG_BOOTPARAMS_LEN     128*1024
+#define CONFIG_SYS_BOOTPARAMS_LEN      128*1024
 
-#define CFG_MIPS_TIMER_FREQ    (incaip_get_cpuclk() / 2)
+#define CONFIG_SYS_MIPS_TIMER_FREQ     (incaip_get_cpuclk() / 2)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_SDRAM_BASE         0x80000000
+#define CONFIG_SYS_SDRAM_BASE          0x80000000
 
-#define        CFG_LOAD_ADDR           0x80100000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x80100000      /* default load address */
 
-#define CFG_MEMTEST_START      0x80100000
-#define CFG_MEMTEST_END                0x80800000
+#define CONFIG_SYS_MEMTEST_START       0x80100000
+#define CONFIG_SYS_MEMTEST_END         0x80800000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
 
 #define PHYS_FLASH_1           0xb0000000 /* Flash Bank #1 */
 #define PHYS_FLASH_2           0xb0800000 /* Flash Bank #2 */
 
 /* The following #defines are needed to get flash environment right */
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#define        CFG_MONITOR_LEN         (192 << 10)
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)
 
-#define CFG_INIT_SP_OFFSET     0x400000
+#define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                4096
-#define CFG_ICACHE_SIZE                4096
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_DCACHE_SIZE         4096
+#define CONFIG_SYS_ICACHE_SIZE         4096
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 #endif /* __CONFIG_H */
index 32d48719d2b7218e26da81da10703f276abc55a3..405234cc851700aa84a781f7e0763e0b285a3386 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MPC5200         1       /* (more precisely an MPC5200 CPU)      */
 #define CONFIG_INKA4X0         1       /* INKA4x0 board                        */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz         */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz         */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH     */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                      */
@@ -47,7 +47,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1   */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps    */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * PCI Mapping:
@@ -67,7 +67,7 @@
 #define CONFIG_PCI_IO_PHYS     CONFIG_PCI_IO_BUS
 #define CONFIG_PCI_IO_SIZE     0x01000000
 
-#define CFG_XLB_PIPELINING     1
+#define CONFIG_SYS_XLB_PIPELINING      1
 
 /* Partitions */
 #define CONFIG_MAC_PARTITION
 #define        CONFIG_TIMESTAMP        1       /* Print image info with timestamp */
 
 #if (TEXT_BASE == 0xFFE00000)          /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_BASE         0xffe00000
-#define CFG_FLASH_SIZE         0x00200000
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster) */
+#define CONFIG_SYS_FLASH_BASE          0xffe00000
+#define CONFIG_SYS_FLASH_SIZE          0x00200000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x4000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x4000)
 #define CONFIG_ENV_SIZE                0x2000
 #define CONFIG_ENV_SECT_SIZE   0x2000
 #define CONFIG_ENV_OVERWRITE   1
-#define CFG_USE_PPCENV                 /* Environment embedded in sect .ppcenv */
+#define CONFIG_SYS_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /*
  * SDRAM controller configuration
 #define CONFIG_DDR_K4H511638C
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  * use PSC6_1 and PSC6_3 as GPIO: Bits 9:11 (mask: 0x07000000):
  *     011 -> PSC6 could not be used as UART or CODEC. IrDA still possible.
  */
-#define CFG_GPS_PORT_CONFIG    0x01001004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x01001004
 
 /*
  * RTC configuration
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs                     */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs                     */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * Enable loopw command.
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00087800 /* for pci_clk  = 66 MHz */
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00087800 /* for pci_clk  = 66 MHz */
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 /* 32Mbit SRAM @0x30000000 */
-#define CFG_CS1_START          0x30000000
-#define CFG_CS1_SIZE           0x00400000
-#define CFG_CS1_CFG            0x31800 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_CS1_START           0x30000000
+#define CONFIG_SYS_CS1_SIZE            0x00400000
+#define CONFIG_SYS_CS1_CFG             0x31800 /* for pci_clk = 33 MHz */
 
 /* 2 quad UART @0x80000000 (MBAR is relocated to 0xF0000000) */
-#define CFG_CS2_START          0x80000000
-#define CFG_CS2_SIZE           0x0001000
-#define CFG_CS2_CFG            0x21800  /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_CS2_START           0x80000000
+#define CONFIG_SYS_CS2_SIZE            0x0001000
+#define CONFIG_SYS_CS2_CFG             0x21800  /* for pci_clk = 33 MHz */
 
 /* GPIO in @0x30400000 */
-#define CFG_CS3_START          0x30400000
-#define CFG_CS3_SIZE           0x00100000
-#define CFG_CS3_CFG            0x31800 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_CS3_START           0x30400000
+#define CONFIG_SYS_CS3_SIZE            0x00100000
+#define CONFIG_SYS_CS3_CFG             0x31800 /* for pci_clk = 33 MHz */
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define        CONFIG_IDE_RESET                /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
-#define CFG_ATA_DATA_OFFSET    0x0060  /* Offset for data I/O          */
-#define CFG_ATA_REG_OFFSET (CFG_ATA_DATA_OFFSET) /* Offset for normal register accesses */
-#define CFG_ATA_ALT_OFFSET     0x005C  /* Offset for alternate registers */
-#define CFG_ATA_STRIDE          4      /* Interval between registers   */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0060  /* Offset for data I/O          */
+#define CONFIG_SYS_ATA_REG_OFFSET (CONFIG_SYS_ATA_DATA_OFFSET) /* Offset for normal register accesses */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x005C  /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_STRIDE          4       /* Interval between registers   */
 
 #define CONFIG_ATAPI            1
 
-#define CFG_BRIGHTNESS          0xFF   /* LCD Default Brightness (255 = off) */
+#define CONFIG_SYS_BRIGHTNESS          0xFF    /* LCD Default Brightness (255 = off) */
 
 #endif /* __CONFIG_H */
index f9535c9840d3ba26e1c26b35057a89cdc89a60aa..1b05b8058a51e9f3031961c0a669f6c4daad1944 100644 (file)
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (256*1024)
-#define CFG_GBL_DATA_SIZE      128             /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (256*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* size in bytes reserved for initial data */
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "uboot> "       /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "uboot> "       /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR           0xa3000000      /* load kernel to this address   */
+#define CONFIG_SYS_LOAD_ADDR           0xa3000000      /* load kernel to this address   */
 
-#define CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
                                                /* RS: the oscillator is actually 3680130?? */
 
-#define CFG_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
                                                /* 0101000001 */
                                                /*      ^^^^^ Memory Speed 99.53 MHz         */
                                                /*    ^^      Run Mode Speed = 2x Mem Speed  */
                                                /* ^^         Turbo Mode Sp. = 1x Run M. Sp. */
 
-#define CFG_MONITOR_LEN                0x20000         /* 128 KiB */
+#define CONFIG_SYS_MONITOR_LEN         0x20000         /* 128 KiB */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * I2C bus
  */
 #define CONFIG_HARD_I2C                        1
-#define CFG_I2C_SPEED                  50000
-#define CFG_I2C_SLAVE                  0xfe
+#define CONFIG_SYS_I2C_SPEED                   50000
+#define CONFIG_SYS_I2C_SLAVE                   0xfe
 
 #define CONFIG_ENV_IS_IN_EEPROM                1
 
 #define CONFIG_ENV_OFFSET                      0x00    /* environment starts here  */
 #define CONFIG_ENV_SIZE                        1024    /* 1 KiB                    */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* A0 = 0 (hardwired)       */
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* 5 bits = 32 octets       */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 15      /* between stop and start   */
-#define CFG_I2C_EEPROM_ADDR_LEN                2       /* length of address        */
-#define CFG_EEPROM_SIZE                        4096    /* size in bytes            */
-#define CFG_I2C_INIT_BOARD             1       /* board has it's own init  */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* A0 = 0 (hardwired)       */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* 5 bits = 32 octets       */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  15      /* between stop and start   */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2       /* length of address        */
+#define CONFIG_SYS_EEPROM_SIZE                 4096    /* size in bytes            */
+#define CONFIG_SYS_I2C_INIT_BOARD              1       /* board has it's own init  */
 
 /*
  * SMSC91C111 Network Card
 #define PHYS_FLASH_1           0x00000000      /* Flash Bank #1            */
 #define PHYS_FLASH_SIZE                0x01000000      /* 16 MB                    */
 
-#define CFG_DRAM_BASE          0xa0000000      /* RAM starts here          */
-#define CFG_DRAM_SIZE          0x04000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000      /* RAM starts here          */
+#define CONFIG_SYS_DRAM_SIZE           0x04000000
 
-#define CFG_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*
  * JFFS2 partitions
  * GP79 == nCS3      is 1
  * GP80 == nCS4      is 1
  */
-#define CFG_GPSR0_VAL       0x03008000
-#define CFG_GPSR1_VAL       0xC0028282
-#define CFG_GPSR2_VAL       0x0001C000
+#define CONFIG_SYS_GPSR0_VAL       0x03008000
+#define CONFIG_SYS_GPSR1_VAL       0xC0028282
+#define CONFIG_SYS_GPSR2_VAL       0x0001C000
 
 /* GP02 == DON_RST   is 0
  * GP23 == SCLK      is 0
  * GP61 == LED_A     is 0
  * GP73 == SWUPD_LED is 0
  */
-#define CFG_GPCR0_VAL       0x00800004
-#define CFG_GPCR1_VAL       0x30002000
-#define CFG_GPCR2_VAL       0x00000100
+#define CONFIG_SYS_GPCR0_VAL       0x00800004
+#define CONFIG_SYS_GPCR1_VAL       0x30002000
+#define CONFIG_SYS_GPCR2_VAL       0x00000100
 
 /* GP00 == DON_READY is input
  * GP01 == DON_OK    is input
  * GP79 == nCS3      is output
  * GP80 == nCS4      is output
  */
-#define CFG_GPDR0_VAL       0x03808004
-#define CFG_GPDR1_VAL       0xF002A282
-#define CFG_GPDR2_VAL       0x0001C200
+#define CONFIG_SYS_GPDR0_VAL       0x03808004
+#define CONFIG_SYS_GPDR1_VAL       0xF002A282
+#define CONFIG_SYS_GPDR2_VAL       0x0001C200
 
 /* GP15 == nCS1  is AF10
  * GP18 == RDY   is AF01
  * GP79 == nCS3  is AF10
  * GP80 == nCS4  is AF10
  */
-#define CFG_GAFR0_L_VAL     0x80000000
-#define CFG_GAFR0_U_VAL     0x001A8010
-#define CFG_GAFR1_L_VAL     0x60088058
-#define CFG_GAFR1_U_VAL     0x00000008
-#define CFG_GAFR2_L_VAL     0xA0000000
-#define CFG_GAFR2_U_VAL     0x00000002
+#define CONFIG_SYS_GAFR0_L_VAL     0x80000000
+#define CONFIG_SYS_GAFR0_U_VAL     0x001A8010
+#define CONFIG_SYS_GAFR1_L_VAL     0x60088058
+#define CONFIG_SYS_GAFR1_U_VAL     0x00000008
+#define CONFIG_SYS_GAFR2_L_VAL     0xA0000000
+#define CONFIG_SYS_GAFR2_U_VAL     0x00000002
 
 
 /* FIXME: set GPIO_RER/FER */
  * BFS = 1
  * SSS = 1
  */
-#define CFG_PSSR_VAL           0x37
+#define CONFIG_SYS_PSSR_VAL            0x37
 
 /*
  * Memory settings
  * [03]    1    - 16 Bit bus width
  * [02:00] 000  - nonburst RAM or FLASH
  */
-#define CFG_MSC0_VAL           0x25b825b8 /* flash banks                   */
+#define CONFIG_SYS_MSC0_VAL            0x25b825b8 /* flash banks                   */
 
 /* This is the configuration for nCS2/3 -> TDM-Switch, DSP
  * configuration for nCS3: DSP
  * [03]    1    - 16 Bit bus width
  * [02:00] 100  - variable latency I/O
  */
-#define CFG_MSC1_VAL           0x123C593C /* TDM switch, DSP               */
+#define CONFIG_SYS_MSC1_VAL            0x123C593C /* TDM switch, DSP               */
 
 /* This is the configuration for nCS4/5 -> ExtBus, LAN Controller
  *
  * [03]    1    - 16 Bit bus width
  * [02:00] 100  - variable latency I/O
  */
-#define CFG_MSC2_VAL           0x123C6CDC /* extra bus, LAN controller     */
+#define CONFIG_SYS_MSC2_VAL            0x123C6CDC /* extra bus, LAN controller     */
 
 /* MDCNFG: SDRAM Configuration Register
  *
  * [00]      1   - enable  SDRAM partition 0
  */
 /* use the configuration above but disable partition 0 */
-#define CFG_MDCNFG_VAL         0x000019c8
+#define CONFIG_SYS_MDCNFG_VAL          0x000019c8
 
 /* MDREFR: SDRAM Refresh Control Register
  *
  * [12]    1     - E0PIN: disable SDCKE0
  * [11:00] 000000011000 - (64ms/8192)*MemClkFreq/32 = 24
  */
-#define CFG_MDREFR_VAL         0x0081D018
+#define CONFIG_SYS_MDREFR_VAL          0x0081D018
 
 /* MDMRS: Mode Register Set Configuration Register
  *
  * [03]      0       - MDADD0: SDRAM0/1 burst Type. Fixed to sequential.
  * [02:00]   010     - MDBL0:  SDRAM0/1 burst Length. Fixed to 4.
  */
-#define CFG_MDMRS_VAL          0x00020022
+#define CONFIG_SYS_MDMRS_VAL           0x00020022
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000000
-#define CFG_MCMEM0_VAL         0x00000000
-#define CFG_MCMEM1_VAL         0x00000000
-#define CFG_MCATT0_VAL         0x00000000
-#define CFG_MCATT1_VAL         0x00000000
-#define CFG_MCIO0_VAL          0x00000000
-#define CFG_MCIO1_VAL          0x00000000
+#define CONFIG_SYS_MECR_VAL            0x00000000
+#define CONFIG_SYS_MCMEM0_VAL          0x00000000
+#define CONFIG_SYS_MCMEM1_VAL          0x00000000
+#define CONFIG_SYS_MCATT0_VAL          0x00000000
+#define CONFIG_SYS_MCATT1_VAL          0x00000000
+#define CONFIG_SYS_MCIO0_VAL           0x00000000
+#define CONFIG_SYS_MCIO1_VAL           0x00000000
 
 /*
 #define CSB226_USER_LED0       0x00000008
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS     1      /* max number of memory banks       */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sect. on one chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sect. on one chip  */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT    (2*CFG_HZ) /* Timeout for Flash Erase       */
-#define CFG_FLASH_WRITE_TOUT    (2*CFG_HZ) /* Timeout for Flash Write       */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase       */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write       */
 
 #endif  /* __CONFIG_H */
index f951a016d235c00a06844254cf515cfad3a1a1b7..6ce3b4dc014ed2063677d9fb9e618a1eb9441ec1 100644 (file)
  * High Level Configuration Options
  * (easy to change)
  */
-#define CFG_MEMTEST_START      0x100000
-#define CFG_MEMTEST_END                0x10000000
-#define CFG_HZ                 1000
-#define CFG_HZ_CLOCK           24000000        /* Timer 1 is clocked at 24Mhz */
-#define CFG_TIMERBASE          0x13000100      /* Timer1                      */
+#define CONFIG_SYS_MEMTEST_START       0x100000
+#define CONFIG_SYS_MEMTEST_END         0x10000000
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_HZ_CLOCK            24000000        /* Timer 1 is clocked at 24Mhz */
+#define CONFIG_SYS_TIMERBASE           0x13000100      /* Timer1                      */
 
 #define CONFIG_CMDLINE_TAG     1       /* enable passing of ATAGs  */
 #define CONFIG_SETUP_MEMORY_TAGS       1
@@ -52,8 +52,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * PL010 Configuration
 #define CONFIG_PL010_SERIAL
 #define CONFIG_CONS_INDEX      0
 #define CONFIG_BAUDRATE                38400
-#define CONFIG_PL01x_PORTS     { (void *) (CFG_SERIAL0), (void *) (CFG_SERIAL1) }
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_SERIAL0            0x16000000
-#define CFG_SERIAL1            0x17000000
+#define CONFIG_PL01x_PORTS     { (void *) (CONFIG_SYS_SERIAL0), (void *) (CONFIG_SYS_SERIAL1) }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_SERIAL0             0x16000000
+#define CONFIG_SYS_SERIAL1             0x17000000
 
 /*#define CONFIG_NET_MULTI */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP   /* undef to save memory     */
-#define CFG_PROMPT     "Integrator-AP # "      /* Monitor Command Prompt   */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size  */
+#define CONFIG_SYS_LONGHELP    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT      "Integrator-AP # "      /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size  */
 /* Print Buffer Size */
-#define CFG_PBSIZE     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
-#define CFG_LOAD_ADDR  0x7fc0  /* default load address */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
+#define CONFIG_SYS_LOAD_ADDR   0x7fc0  /* default load address */
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_SDRAM_1           0x00000000      /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      0x02000000      /* 32 MB */
 
-#define CFG_FLASH_BASE         0x24000000
+#define CONFIG_SYS_FLASH_BASE          0x24000000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 #define CONFIG_ENV_IS_NOWHERE
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks */
 #define PHYS_FLASH_SIZE                0x01000000      /* 16MB */
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ)      /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ)      /* Timeout for Flash Write */
-#define CFG_MAX_FLASH_SECT     128
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ)       /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ)       /* Timeout for Flash Write */
+#define CONFIG_SYS_MAX_FLASH_SECT      128
 #define CONFIG_ENV_SIZE                32768
 
-#define PHYS_FLASH_1           (CFG_FLASH_BASE)
+#define PHYS_FLASH_1           (CONFIG_SYS_FLASH_BASE)
 
 /*-----------------------------------------------------------------------
  * PCI definitions
 #define DEBUG
 
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8       /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8       /* use 8 rx buffer on eepro100  */
 
 
 #define INTEGRATOR_BOOT_ROM_BASE       0x20000000
index 6dbe4b307ce489bb34957ed171ad0b69ab83c161..1a70af620c6e07e8e2d27992a866d8c4547995d3 100644 (file)
  * High Level Configuration Options
  * (easy to change)
  */
-#define CFG_MEMTEST_START      0x100000
-#define CFG_MEMTEST_END                0x10000000
-#define CFG_HZ                 1000
-#define CFG_HZ_CLOCK           1000000 /* Timer 1 is clocked at 1Mhz */
-#define CFG_TIMERBASE          0x13000100
+#define CONFIG_SYS_MEMTEST_START       0x100000
+#define CONFIG_SYS_MEMTEST_END         0x10000000
+#define CONFIG_SYS_HZ                  1000
+#define CONFIG_SYS_HZ_CLOCK            1000000 /* Timer 1 is clocked at 1Mhz */
+#define CONFIG_SYS_TIMERBASE           0x13000100
 
 #define CONFIG_CMDLINE_TAG             1       /* enable passing of ATAGs  */
 #define CONFIG_SETUP_MEMORY_TAGS       1
@@ -47,8 +47,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
  */
 #define CONFIG_PL011_SERIAL
 #define CONFIG_PL011_CLOCK     14745600
-#define CONFIG_PL01x_PORTS     { (void *)CFG_SERIAL0, (void *)CFG_SERIAL1 }
+#define CONFIG_PL01x_PORTS     { (void *)CONFIG_SYS_SERIAL0, (void *)CONFIG_SYS_SERIAL1 }
 #define CONFIG_CONS_INDEX      0
 #define CONFIG_BAUDRATE                38400
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_SERIAL0            0x16000000
-#define CFG_SERIAL1            0x17000000
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_SERIAL0             0x16000000
+#define CONFIG_SYS_SERIAL1             0x17000000
 
 
 /*
@@ -113,16 +113,16 @@ SIB at Block62 End Block62 address 0x24f80000
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_PROMPT     "Integrator-CP # "      /* Monitor Command Prompt */
-#define CFG_CBSIZE     256                     /* Console I/O Buffer Size*/
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_PROMPT      "Integrator-CP # "      /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE      256                     /* Console I/O Buffer Size*/
 /* Print Buffer Size */
-#define CFG_PBSIZE     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS    16                      /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE              /* Boot Argument Buffer Size*/
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS     16                      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE               /* Boot Argument Buffer Size*/
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
-#define CFG_LOAD_ADDR  0x7fc0  /* default load address */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
+#define CONFIG_SYS_LOAD_ADDR   0x7fc0  /* default load address */
 
 /*-----------------------------------------------------------------------
  * Stack sizes
@@ -155,38 +155,38 @@ SIB at Block62 End Block62 address 0x24f80000
  * Base is always 0x24000000
 
  */
-#define CFG_FLASH_BASE         0x24000000
-#define CFG_MAX_FLASH_SECT     64
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks */
+#define CONFIG_SYS_FLASH_BASE          0x24000000
+#define CONFIG_SYS_MAX_FLASH_SECT      64
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks */
 #define PHYS_FLASH_SIZE                0x01000000      /* 16MB */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ)      /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ)      /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ)       /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ)       /* Timeout for Flash Write */
 
-#define CFG_MONITOR_LEN                0x00100000
+#define CONFIG_SYS_MONITOR_LEN         0x00100000
 #define CONFIG_ENV_IS_IN_FLASH 1
 
 /*
  * Move up the U-Boot & monitor area if more flash is fitted.
  * If this U-Boot is to be run on Integrators with varying flash sizes,
  * drivers/mtd/cfi_flash.c::flash_init() can read the Integrator CP_FLASHPROG
- * register and dynamically assign CONFIG_ENV_ADDR & CFG_MONITOR_BASE
- * - CFG_MONITOR_BASE is set to indicate that the environment is not
+ * register and dynamically assign CONFIG_ENV_ADDR & CONFIG_SYS_MONITOR_BASE
+ * - CONFIG_SYS_MONITOR_BASE is set to indicate that the environment is not
  * embedded in the boot monitor(s) area
  */
 #if ( PHYS_FLASH_SIZE == 0x04000000 )
 
 #define CONFIG_ENV_ADDR                0x27F00000
-#define CFG_MONITOR_BASE       0x27F40000
+#define CONFIG_SYS_MONITOR_BASE        0x27F40000
 
 #elif (PHYS_FLASH_SIZE == 0x02000000 )
 
 #define CONFIG_ENV_ADDR                0x25F00000
-#define CFG_MONITOR_BASE       0x25F40000
+#define CONFIG_SYS_MONITOR_BASE        0x25F40000
 
 #else
 
 #define CONFIG_ENV_ADDR                0x24F00000
-#define CFG_MONITOR_BASE       0x27F40000
+#define CONFIG_SYS_MONITOR_BASE        0x27F40000
 
 #endif
 
index b9334759fe35acceb031e1051221c606d69dc17d..35b045127cb872462483f76d4629a03724ce9229 100644 (file)
@@ -45,8 +45,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                            /* undef to save memory         */
-#define CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
-#define CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE            CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE      /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START       0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END         0x00800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR           0x00010000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00010000      /* default load address */
 
-#define CFG_HZ                  3333333         /* spec says 66.666 MHz, but it appears to be 33 */
+#define CONFIG_SYS_HZ                  3333333         /* spec says 66.666 MHz, but it appears to be 33 */
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Stack sizes
 /*
  * select serial console configuration
  */
-#define CFG_IXP425_CONSOLE     IXP425_UART1   /* we use UART1 for console */
+#define CONFIG_SYS_IXP425_CONSOLE      IXP425_UART1   /* we use UART1 for console */
 
 /*
  * Physical Memory Map
 #define PHYS_FLASH_BANK_SIZE    0x00800000 /* 8 MB Banks */
 #define PHYS_FLASH_SECT_SIZE    0x00020000 /* 128 KB sectors (x1) */
 
-#define CFG_DRAM_BASE           0x00000000
-#define CFG_DRAM_SIZE           0x01000000
+#define CONFIG_SYS_DRAM_BASE           0x00000000
+#define CONFIG_SYS_DRAM_SIZE           0x01000000
 
-#define CFG_FLASH_BASE          PHYS_FLASH_1
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 
 /*
  * Expansion bus settings
  */
-#define CFG_EXP_CS0                            0xbcd23c42
+#define CONFIG_SYS_EXP_CS0                             0xbcd23c42
 
 /*
  * SDRAM settings
  */
-#define CFG_SDR_CONFIG         0xd
-#define CFG_SDR_MODE_CONFIG    0x1
-#define CFG_SDRAM_REFRESH_CNT  0x81a
+#define CONFIG_SYS_SDR_CONFIG          0xd
+#define CONFIG_SYS_SDR_MODE_CONFIG     0x1
+#define CONFIG_SYS_SDRAM_REFRESH_CNT   0x81a
 
 /*
  * GPIO settings
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS     1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT      128    /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
-#define CFG_FLASH_BANKS_LIST   { PHYS_FLASH_1 }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { PHYS_FLASH_1 }
 
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT /* no byte writes on IXP4xx     */
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT /* no byte writes on IXP4xx     */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector  */
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + 0x20000)
index 241728da4902ac34d379c3053d1c9d919af81cac..528bccdabd20d0c223c78d03684ece6998607751 100644 (file)
@@ -48,7 +48,7 @@
 #define CONFIG_HAS_ETH1
 #define CONFIG_PHY1_ADDR       4       /* NPE1 PHY address             */
 #define CONFIG_MII             1       /* MII PHY management           */
-#define CFG_RX_ETH_BUFFER      16      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* Number of ethernet rx buffers & descriptors */
 
 /*
  * Misc configuration options
@@ -57,7 +57,7 @@
 #define CONFIG_USE_IRQ          1      /* we need IRQ stuff for timer  */
 
 #define CONFIG_BOOTCOUNT_LIMIT         /* support for bootcount limit  */
-#define CFG_BOOTCOUNT_ADDR     0x60003000 /* inside qmrg sram          */
+#define CONFIG_SYS_BOOTCOUNT_ADDR      0x60003000 /* inside qmrg sram          */
 
 #define CONFIG_CMDLINE_TAG     1       /* enable passing of ATAGs      */
 #define CONFIG_SETUP_MEMORY_TAGS 1
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (256 << 10)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 
 #define CONFIG_BAUDRATE         115200
-#define CFG_IXP425_CONSOLE     IXP425_UART1   /* we use UART1 for console */
+#define CONFIG_SYS_IXP425_CONSOLE      IXP425_UART1   /* we use UART1 for console */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                            /* undef to save memory         */
-#define CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
-#define CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE            CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE      /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START       0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END         0x00800000      /* 4 ... 8 MB in DRAM   */
-#define CFG_LOAD_ADDR           0x00010000      /* default load address */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_LOAD_ADDR           0x00010000      /* default load address */
 
-#undef  CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Stack sizes
 #define PHYS_FLASH_BANK_SIZE    0x01000000 /* 16 MB Banks */
 #define PHYS_FLASH_SECT_SIZE    0x00020000 /* 128 KB sectors (x1) */
 
-#define CFG_DRAM_BASE           0x00000000
-#define CFG_DRAM_SIZE           0x01000000
+#define CONFIG_SYS_DRAM_BASE           0x00000000
+#define CONFIG_SYS_DRAM_SIZE           0x01000000
 
-#define CFG_FLASH_BASE          PHYS_FLASH_1
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 
 /*
  * Expansion bus settings
  */
-#define CFG_EXP_CS0            0xbcd23c42
+#define CONFIG_SYS_EXP_CS0             0xbcd23c42
 
 /*
  * SDRAM settings
  */
-#define CFG_SDR_CONFIG         0x18
-#define CFG_SDR_MODE_CONFIG    0x1
-#define CFG_SDRAM_REFRESH_CNT  0x81a
+#define CONFIG_SYS_SDR_CONFIG          0x18
+#define CONFIG_SYS_SDR_MODE_CONFIG     0x1
+#define CONFIG_SYS_SDRAM_REFRESH_CNT   0x81a
 
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS     1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT      128    /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION   1       /* hardware flash protection            */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* hardware flash protection            */
 
-#define CFG_FLASH_BANKS_LIST   { PHYS_FLASH_1 }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { PHYS_FLASH_1 }
 
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT /* no byte writes on IXP4xx     */
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT /* no byte writes on IXP4xx     */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector  */
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + 0x40000)
 /*
  * GPIO settings
  */
-#define CFG_GPIO_PCI_INTA_N    6
-#define CFG_GPIO_PCI_INTB_N    7
-#define CFG_GPIO_SWITCH_RESET_N        8
-#define CFG_GPIO_SLIC_RESET_N  13
-#define CFG_GPIO_PCI_CLK       14
-#define CFG_GPIO_EXTBUS_CLK    15
+#define CONFIG_SYS_GPIO_PCI_INTA_N     6
+#define CONFIG_SYS_GPIO_PCI_INTB_N     7
+#define CONFIG_SYS_GPIO_SWITCH_RESET_N 8
+#define CONFIG_SYS_GPIO_SLIC_RESET_N   13
+#define CONFIG_SYS_GPIO_PCI_CLK        14
+#define CONFIG_SYS_GPIO_EXTBUS_CLK     15
 
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 
 #endif  /* __CONFIG_H */
index 5d8e3a6fb2cd14f32a18a022a9c791b40363fada..2ebe3705752696e7fd2f72e9796e1693070c3658 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MPC5200         1       /* especially an MPC5200 */
 #define CONFIG_JUPITER         1       /* ... on Jupiter board */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define CONFIG_BOARD_EARLY_INIT_R      1
 #define CONFIG_BOARD_EARLY_INIT_F      1
@@ -48,7 +48,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * PCI Mapping:
 #define CONFIG_PCI_IO_SIZE     0x01000000
 #endif
 
-#define CFG_XLB_PIPELINING     1
+#define CONFIG_SYS_XLB_PIPELINING      1
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_MII             1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 
 /* Partitions */
 #define CONFIG_MAC_PARTITION
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBSPEED_133                        /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBSPEED_133                 /* define for 133MHz speed */
 
 #if 0
 /* pass open firmware flat tree */
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 #endif
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_SIZE         0x01000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_SIZE          0x01000000
 
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
 #define CONFIG_ENV_ADDR                (TEXT_BASE + 0x40000) /* third sector */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_8BIT
-#define CFG_UPDATE_FLASH_SIZE  1
-#define CFG_FLASH_USE_BUFFER_WRITE     1
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_8BIT
+#define CONFIG_SYS_UPDATE_FLASH_SIZE   1
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x10000004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x10000004
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
-#define CFG_ALT_MEMTEST                1
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_ALT_MEMTEST         1
 
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047801
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047801
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 #endif /* __CONFIG_H */
index b0dc175afed2ad5360bdd1d691e3c0566230f6ea..58694cca4b1cbc5e6152e267b1332740d4c9ed53 100644 (file)
@@ -38,7 +38,7 @@
 #define CONFIG_440                     1       /* ... PPC440 family    */
 #define CONFIG_440SPE                  1       /* Specifc SPe support  */
 #define CONFIG_SYS_CLK_FREQ    33333333        /* external freq to pll */
-#define CFG_4xx_RESET_TYPE     0x2     /* use chip reset on this board */
+#define CONFIG_SYS_4xx_RESET_TYPE      0x2     /* use chip reset on this board */
 
 /*
  * Enable this board for more than 2GB of SDRAM
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xff000000      /* start of FLASH       */
-#define CFG_PERIPHERAL_BASE    0xa0000000      /* internal peripherals */
-#define CFG_ISRAM_BASE         0x90000000      /* internal SRAM        */
+#define CONFIG_SYS_FLASH_BASE          0xff000000      /* start of FLASH       */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xa0000000      /* internal peripherals */
+#define CONFIG_SYS_ISRAM_BASE          0x90000000      /* internal SRAM        */
 
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped PCI memory    */
-#define CFG_PCI_BASE           0xd0000000      /* internal PCI regs    */
-#define CFG_PCI_TARGBASE       CFG_PCI_MEMBASE
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped PCI memory    */
+#define CONFIG_SYS_PCI_BASE            0xd0000000      /* internal PCI regs    */
+#define CONFIG_SYS_PCI_TARGBASE        CONFIG_SYS_PCI_MEMBASE
 
-#define CFG_PCIE_MEMBASE       0xb0000000      /* mapped PCIe memory   */
-#define CFG_PCIE_MEMSIZE       0x08000000      /* smallest incr for PCIe port */
-#define CFG_PCIE_BASE          0xe0000000      /* PCIe UTL regs */
+#define CONFIG_SYS_PCIE_MEMBASE        0xb0000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE_MEMSIZE        0x08000000      /* smallest incr for PCIe port */
+#define CONFIG_SYS_PCIE_BASE           0xe0000000      /* PCIe UTL regs */
 
-#define CFG_PCIE0_CFGBASE      0xc0000000
-#define CFG_PCIE1_CFGBASE      0xc1000000
-#define CFG_PCIE2_CFGBASE      0xc2000000
-#define CFG_PCIE0_XCFGBASE     0xc3000000
-#define CFG_PCIE1_XCFGBASE     0xc3001000
-#define CFG_PCIE2_XCFGBASE     0xc3002000
+#define CONFIG_SYS_PCIE0_CFGBASE       0xc0000000
+#define CONFIG_SYS_PCIE1_CFGBASE       0xc1000000
+#define CONFIG_SYS_PCIE2_CFGBASE       0xc2000000
+#define CONFIG_SYS_PCIE0_XCFGBASE      0xc3000000
+#define CONFIG_SYS_PCIE1_XCFGBASE      0xc3001000
+#define CONFIG_SYS_PCIE2_XCFGBASE      0xc3002000
 
 /* base address of inbound PCIe window */
-#define CFG_PCIE_INBOUND_BASE  0x0000000000000000ULL
+#define CONFIG_SYS_PCIE_INBOUND_BASE   0x0000000000000000ULL
 
 /* System RAM mapped to PCI space */
-#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CONFIG_SYS_SDRAM_BASE
 #define CONFIG_PCI_SYS_MEM_SIZE        (1024 * 1024 * 1024)
 
-#define CFG_ACE_BASE           0xfe000000      /* Xilinx ACE controller - Compact Flash */
+#define CONFIG_SYS_ACE_BASE            0xfe000000      /* Xilinx ACE controller - Compact Flash */
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM     1
-#define CFG_OCM_DATA_ADDR      CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR      CFG_ISRAM_BASE  /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x2000          /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_ISRAM_BASE   /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000          /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
 #undef CONFIG_UART1_CONSOLE
-#undef CFG_EXT_SERIAL_CLOCK
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
 
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_SPD_BUS_NUM                0       /* The I2C bus for SPD          */
+#define CONFIG_SYS_SPD_BUS_NUM         0       /* The I2C bus for SPD          */
 
 #define IIC0_BOOTPROM_ADDR     0x50
 #define IIC0_ALT_BOOTPROM_ADDR 0x54
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0x50)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0x50)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /* I2C RTC */
 #define CONFIG_RTC_M41T11      1
-#define CFG_RTC_BUS_NUM                1       /* The I2C bus for RTC          */
-#define CFG_I2C_RTC_ADDR       0x68
-#define CFG_M41T11_BASE_YEAR   1900    /* play along with linux        */
+#define CONFIG_SYS_RTC_BUS_NUM         1       /* The I2C bus for RTC          */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
+#define CONFIG_SYS_M41T11_BASE_YEAR    1900    /* play along with linux        */
 
 /* I2C DTT */
 #define CONFIG_DTT_ADM1021     1       /* ADM1021 temp sensor support  */
-#define CFG_DTT_BUS_NUM                1       /* The I2C bus for DTT          */
+#define CONFIG_SYS_DTT_BUS_NUM         1       /* The I2C bus for DTT          */
 /*
  * standard dtt sensor configuration - bottom bit will determine local or
  * remote sensor of the ADM1021, the rest determines index into
- * CFG_DTT_ADM1021 array below.
+ * CONFIG_SYS_DTT_ADM1021 array below.
  */
 #define CONFIG_DTT_SENSORS     { 0, 1 }
 
  * - local temp sensor enabled, min set to 0 deg, max set to 85 deg
  * - remote temp sensor enabled, min set to 0 deg, max set to 85 deg
  */
-#define CFG_DTT_ADM1021                { { 0x18, 0x02, 0, 1, 0, 85, 1, 0, 58} }
+#define CONFIG_SYS_DTT_ADM1021         { { 0x18, 0x02, 0, 1, 0, 85, 1, 0, 58} }
 
 /*-----------------------------------------------------------------------
  * Environment
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
 
-#define CFG_FLASH_BANKS_LIST    {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS     1                  /* number of banks      */
-#define CFG_MAX_FLASH_SECT     1024                /* sectors per device   */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1                   /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024                /* sectors per device   */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT            /* let board init pci target    */
-#undef CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT             /* let board init pci target    */
+#undef CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x1014 /* IBM                          */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever                     */
-/* #define CFG_PCI_SUBSYS_ID   CFG_PCI_SUBSYS_DEVICEID */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014  /* IBM                          */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever                     */
+/* #define CONFIG_SYS_PCI_SUBSYS_ID    CONFIG_SYS_PCI_SUBSYS_DEVICEID */
 
 /*
  *  NETWORK Support (PCI):
  * Xilinx System ACE support
  *----------------------------------------------------------------------*/
 #define CONFIG_SYSTEMACE       1       /* Enable SystemACE support     */
-#define CFG_SYSTEMACE_WIDTH    16      /* Data bus width is 16         */
-#define CFG_SYSTEMACE_BASE     CFG_ACE_BASE
+#define CONFIG_SYS_SYSTEMACE_WIDTH     16      /* Data bus width is 16         */
+#define CONFIG_SYS_SYSTEMACE_BASE      CONFIG_SYS_ACE_BASE
 #define CONFIG_DOS_PARTITION   1
 
 /*-----------------------------------------------------------------------
  *----------------------------------------------------------------------*/
 
 /* Memory Bank 0 (Flash) initialization                                        */
-#define CFG_EBC_PB0AP          (EBC_BXAP_BME_DISABLED      |           \
+#define CONFIG_SYS_EBC_PB0AP           (EBC_BXAP_BME_DISABLED      |           \
                                 EBC_BXAP_TWT_ENCODE(7)     |           \
                                 EBC_BXAP_BCE_DISABLE       |           \
                                 EBC_BXAP_BCT_2TRANS        |           \
                                 EBC_BXAP_SOR_DELAYED       |           \
                                 EBC_BXAP_BEM_WRITEONLY     |           \
                                 EBC_BXAP_PEN_DISABLED)
-#define CFG_EBC_PB0CR          (EBC_BXCR_BAS_ENCODE(CFG_FLASH_BASE) |  \
+#define CONFIG_SYS_EBC_PB0CR           (EBC_BXCR_BAS_ENCODE(CONFIG_SYS_FLASH_BASE) |   \
                                 EBC_BXCR_BS_16MB                    |  \
                                 EBC_BXCR_BU_RW                      |  \
                                 EBC_BXCR_BW_16BIT)
 
 /* Memory Bank 1 (Xilinx System ACE controller) initialization         */
-#define CFG_EBC_PB1AP          (EBC_BXAP_BME_DISABLED      |           \
+#define CONFIG_SYS_EBC_PB1AP           (EBC_BXAP_BME_DISABLED      |           \
                                 EBC_BXAP_TWT_ENCODE(4)     |           \
                                 EBC_BXAP_BCE_DISABLE       |           \
                                 EBC_BXAP_BCT_2TRANS        |           \
                                 EBC_BXAP_SOR_NONDELAYED    |           \
                                 EBC_BXAP_BEM_WRITEONLY     |           \
                                 EBC_BXAP_PEN_DISABLED)
-#define CFG_EBC_PB1CR          (EBC_BXCR_BAS_ENCODE(CFG_ACE_BASE)  |   \
+#define CONFIG_SYS_EBC_PB1CR           (EBC_BXCR_BAS_ENCODE(CONFIG_SYS_ACE_BASE)  |    \
                                 EBC_BXCR_BS_1MB                    |   \
                                 EBC_BXCR_BU_RW                     |   \
                                 EBC_BXCR_BW_16BIT)
  * Keep the Default value, but the bit PDT which has to be set to 1 ?TBC
  * default value : 0x07C00000 - 0 0 000 1 1 1 1 1 0000 0 00000 000000000000
  *-------------------------------------------------------------------------*/
-#define CFG_EBC_CFG            (EBC_CFG_LE_UNLOCK    | \
+#define CONFIG_SYS_EBC_CFG             (EBC_CFG_LE_UNLOCK    | \
                                 EBC_CFG_PTD_ENABLE   | \
                                 EBC_CFG_RTC_16PERCLK | \
                                 EBC_CFG_ATC_PREVIOUS | \
 /*-----------------------------------------------------------------------
  * GPIO Setup
  *----------------------------------------------------------------------*/
-#define CFG_GPIO_PCIE_PRESENT0 17
-#define CFG_GPIO_PCIE_PRESENT1 21
-#define CFG_GPIO_PCIE_PRESENT2 23
-#define CFG_GPIO_RS232_FORCEOFF        30
-
-#define CFG_PFC0               (GPIO_VAL(CFG_GPIO_PCIE_PRESENT0) | \
-                                GPIO_VAL(CFG_GPIO_PCIE_PRESENT1) | \
-                                GPIO_VAL(CFG_GPIO_PCIE_PRESENT2) | \
-                                GPIO_VAL(CFG_GPIO_RS232_FORCEOFF))
-#define CFG_GPIO_OR            GPIO_VAL(CFG_GPIO_RS232_FORCEOFF)
-#define CFG_GPIO_TCR           GPIO_VAL(CFG_GPIO_RS232_FORCEOFF)
-#define CFG_GPIO_ODR           0
+#define CONFIG_SYS_GPIO_PCIE_PRESENT0  17
+#define CONFIG_SYS_GPIO_PCIE_PRESENT1  21
+#define CONFIG_SYS_GPIO_PCIE_PRESENT2  23
+#define CONFIG_SYS_GPIO_RS232_FORCEOFF 30
+
+#define CONFIG_SYS_PFC0                (GPIO_VAL(CONFIG_SYS_GPIO_PCIE_PRESENT0) | \
+                                GPIO_VAL(CONFIG_SYS_GPIO_PCIE_PRESENT1) | \
+                                GPIO_VAL(CONFIG_SYS_GPIO_PCIE_PRESENT2) | \
+                                GPIO_VAL(CONFIG_SYS_GPIO_RS232_FORCEOFF))
+#define CONFIG_SYS_GPIO_OR             GPIO_VAL(CONFIG_SYS_GPIO_RS232_FORCEOFF)
+#define CONFIG_SYS_GPIO_TCR            GPIO_VAL(CONFIG_SYS_GPIO_RS232_FORCEOFF)
+#define CONFIG_SYS_GPIO_ODR            0
 
 #endif /* __CONFIG_H */
index 3c514177ff32e8f1ccf64a71b4381254299f4afe..55cda329ee9e9495cfe024100408133cc8062c80 100644 (file)
@@ -52,7 +52,7 @@
 
 #define        CONFIG_SKIP_LOWLEVEL_INIT
 
-#define        CFG_LONGHELP
+#define        CONFIG_SYS_LONGHELP
 
 #ifndef roundup
 #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
@@ -60,8 +60,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (roundup(CONFIG_ENV_SIZE,4096) + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (roundup(CONFIG_ENV_SIZE,4096) + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_BAUDRATE 115200
 
 #define PHYS_SDRAM 0x20000000
 #define PHYS_SDRAM_SIZE 0x2000000  /* 32 megs */
 
-#define CFG_MEMTEST_START              PHYS_SDRAM
-#define CFG_MEMTEST_END                        CFG_MEMTEST_START + PHYS_SDRAM_SIZE - (512*1024)
+#define CONFIG_SYS_MEMTEST_START               PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END                 CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - (512*1024)
 
 #define CONFIG_DRIVER_ETHER
 #define CONFIG_NET_RETRY_COUNT         20
 
-#define CFG_FLASH_BASE                 0x10000000
+#define CONFIG_SYS_FLASH_BASE                  0x10000000
 
 #ifdef CONFIG_KB9202
 #define PHYS_FLASH_SIZE                        0x1000000
 #define PHYS_FLASH_SIZE                        0x200000
 #endif
 
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             256
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              256
 
 #define        CONFIG_HARD_I2C
 
 #define CONFIG_ENV_OFFSET                      0x1000
 #define CONFIG_ENV_SIZE                        0x1000
 #endif
-#define        CFG_I2C_EEPROM_ADDR             0x50
-#define        CFG_EEPROM_PAGE_WRITE_BITS      6
-#define        CFG_I2C_EEPROM_ADDR_LEN         2
-#define        CFG_I2C_SPEED                   50000
-#define        CFG_I2C_SLAVE                   0 /* not used */
-#define        CFG_EEPROM_PAGE_WRITE_DELAY_MS  10
+#define        CONFIG_SYS_I2C_EEPROM_ADDR              0x50
+#define        CONFIG_SYS_EEPROM_PAGE_WRITE_BITS       6
+#define        CONFIG_SYS_I2C_EEPROM_ADDR_LEN          2
+#define        CONFIG_SYS_I2C_SPEED                    50000
+#define        CONFIG_SYS_I2C_SLAVE                    0 /* not used */
+#define        CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS   10
 
-#define CFG_LOAD_ADDR          0x21000000  /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x21000000  /* default load address */
 
-#define CFG_BAUDRATE_TABLE     {115200 , 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {115200 , 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> "      /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_PROMPT              "U-Boot> "      /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
 
 #define        CONFIG_FLASH_CFI_DRIVER
-#define        CFG_FLASH_CFI
+#define        CONFIG_SYS_FLASH_CFI
 
 #ifndef __ASSEMBLY__
 /*-----------------------------------------------------------------------
@@ -175,8 +175,8 @@ struct bd_info_ext {
 };
 #endif
 
-#define CFG_HZ 1000
-#define CFG_HZ_CLOCK AT91C_MASTER_CLOCK/2      /* AT91C_TC0_CMR is implicitly set to */
+#define CONFIG_SYS_HZ 1000
+#define CONFIG_SYS_HZ_CLOCK AT91C_MASTER_CLOCK/2       /* AT91C_TC0_CMR is implicitly set to */
                                        /* AT91C_TC_TIMER_DIV1_CLOCK */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
index 58918d491863cc9ce314924fb7c70103d47418eb..237a9c56a324bc8660991d69149da3532bf91ea4 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xFC000000
-#define CFG_NAND_ADDR          0xF8000000
-#define CFG_FPGA_BASE          0xF0000000
-#define CFG_PERIPHERAL_BASE    0xEF600000      /* internal peripherals*/
+#define CONFIG_SYS_FLASH_BASE          0xFC000000
+#define CONFIG_SYS_NAND_ADDR           0xF8000000
+#define CONFIG_SYS_FPGA_BASE           0xF0000000
+#define CONFIG_SYS_PERIPHERAL_BASE     0xEF600000      /* internal peripherals*/
 
 /*-----------------------------------------------------------------------
  * Initial RAM & Stack Pointer Configuration Options
  *   the latter of which is less than desireable since it requires
  *   setting up the SDRAM and ECC in assembly code.
  *
- *   To use (2), define 'CFG_INIT_DCACHE_CS' to be an unused chip
+ *   To use (2), define 'CONFIG_SYS_INIT_DCACHE_CS' to be an unused chip
  *   select on the External Bus Controller (EBC) and then select a
- *   value for 'CFG_INIT_RAM_ADDR' outside of the range of valid,
- *   physical SDRAM. Otherwise, undefine 'CFG_INIT_DCACHE_CS' and
- *   select a value for 'CFG_INIT_RAM_ADDR' within the range of valid,
+ *   value for 'CONFIG_SYS_INIT_RAM_ADDR' outside of the range of valid,
+ *   physical SDRAM. Otherwise, undefine 'CONFIG_SYS_INIT_DCACHE_CS' and
+ *   select a value for 'CONFIG_SYS_INIT_RAM_ADDR' within the range of valid,
  *   physical SDRAM to use (3).
  *-----------------------------------------------------------------------*/
 
-#define CFG_INIT_DCACHE_CS     4
+#define CONFIG_SYS_INIT_DCACHE_CS      4
 
-#if defined(CFG_INIT_DCACHE_CS)
-#define CFG_INIT_RAM_ADDR      (CFG_SDRAM_BASE + ( 1 << 30))   /*  1 GiB */
+#if defined(CONFIG_SYS_INIT_DCACHE_CS)
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_SDRAM_BASE + ( 1 << 30))    /*  1 GiB */
 #else
-#define CFG_INIT_RAM_ADDR      (CFG_SDRAM_BASE + (32 << 20))   /* 32 MiB */
-#endif /* defined(CFG_INIT_DCACHE_CS) */
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_SDRAM_BASE + (32 << 20))    /* 32 MiB */
+#endif /* defined(CONFIG_SYS_INIT_DCACHE_CS) */
 
-#define CFG_INIT_RAM_END        (4 << 10)                      /*  4 KiB */
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)                       /*  4 KiB */
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * If the data cache is being used for the primordial stack and global
  * for the POST word.
  */
 
-#if defined(CFG_INIT_DCACHE_CS)
-# define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
-# define CFG_POST_ALT_WORD_ADDR        (CFG_PERIPHERAL_BASE + GPT0_COMP6)
+#if defined(CONFIG_SYS_INIT_DCACHE_CS)
+# define CONFIG_SYS_INIT_SP_OFFSET     CONFIG_SYS_GBL_DATA_OFFSET
+# define CONFIG_SYS_POST_ALT_WORD_ADDR (CONFIG_SYS_PERIPHERAL_BASE + GPT0_COMP6)
 #else
-# define CFG_INIT_EXTRA_SIZE   16
-# define CFG_INIT_SP_OFFSET    (CFG_GBL_DATA_OFFSET - CFG_INIT_EXTRA_SIZE)
-# define CFG_POST_WORD_ADDR    (CFG_GBL_DATA_OFFSET - 4)
-# define CFG_OCM_DATA_ADDR     CFG_INIT_RAM_ADDR
-#endif /* defined(CFG_INIT_DCACHE_CS) */
+# define CONFIG_SYS_INIT_EXTRA_SIZE    16
+# define CONFIG_SYS_INIT_SP_OFFSET     (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_INIT_EXTRA_SIZE)
+# define CONFIG_SYS_POST_WORD_ADDR     (CONFIG_SYS_GBL_DATA_OFFSET - 4)
+# define CONFIG_SYS_OCM_DATA_ADDR      CONFIG_SYS_INIT_RAM_ADDR
+#endif /* defined(CONFIG_SYS_INIT_DCACHE_CS) */
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#define CFG_EXT_SERIAL_CLOCK   11059200        /* ext. 11.059MHz clk   */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    11059200        /* ext. 11.059MHz clk   */
 /* define this if you want console on UART1 */
 #undef CONFIG_UART1_CONSOLE
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST    {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  * set up. While still running from location 0xfffff000...0xffffffff the
  * NAND controller cannot be accessed since it is attached to CS0 too.
  */
-#define CFG_NAND_BOOT_SPL_SRC  0xfffff000      /* SPL location                 */
-#define CFG_NAND_BOOT_SPL_SIZE (4 << 10)       /* SPL size                     */
-#define CFG_NAND_BOOT_SPL_DST  0x00800000      /* Copy SPL here                */
-#define CFG_NAND_U_BOOT_DST    0x01000000      /* Load NUB to this addr        */
-#define CFG_NAND_U_BOOT_START  CFG_NAND_U_BOOT_DST /* Start NUB from this addr */
-#define CFG_NAND_BOOT_SPL_DELTA        (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
+#define CONFIG_SYS_NAND_BOOT_SPL_SRC   0xfffff000      /* SPL location                 */
+#define CONFIG_SYS_NAND_BOOT_SPL_SIZE  (4 << 10)       /* SPL size                     */
+#define CONFIG_SYS_NAND_BOOT_SPL_DST   0x00800000      /* Copy SPL here                */
+#define CONFIG_SYS_NAND_U_BOOT_DST     0x01000000      /* Load NUB to this addr        */
+#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST /* Start NUB from this addr  */
+#define CONFIG_SYS_NAND_BOOT_SPL_DELTA (CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST)
 
 /*
  * Define the partitioning of the NAND chip (only RAM U-Boot is needed here)
  */
-#define CFG_NAND_U_BOOT_OFFS   (16 << 10)      /* Offset to RAM U-Boot image   */
-#define CFG_NAND_U_BOOT_SIZE   (384 << 10)     /* Size of RAM U-Boot image     */
+#define CONFIG_SYS_NAND_U_BOOT_OFFS    (16 << 10)      /* Offset to RAM U-Boot image   */
+#define CONFIG_SYS_NAND_U_BOOT_SIZE    (384 << 10)     /* Size of RAM U-Boot image     */
 
 /*
  * Now the NAND chip has to be defined (no autodetection used!)
  */
-#define CFG_NAND_PAGE_SIZE     512             /* NAND chip page size          */
-#define CFG_NAND_BLOCK_SIZE    (16 << 10)      /* NAND chip block size         */
-#define CFG_NAND_PAGE_COUNT    32              /* NAND chip page count         */
-#define CFG_NAND_BAD_BLOCK_POS 5               /* Location of bad block marker */
-#define CFG_NAND_4_ADDR_CYCLE  1               /* Fourth addr used (>32MB)     */
-
-#define CFG_NAND_ECCSIZE       256
-#define CFG_NAND_ECCBYTES      3
-#define CFG_NAND_ECCSTEPS      (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
-#define CFG_NAND_OOBSIZE       16
-#define CFG_NAND_ECCTOTAL      (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
-#define CFG_NAND_ECCPOS                {0, 1, 2, 3, 6, 7}
+#define CONFIG_SYS_NAND_PAGE_SIZE      512             /* NAND chip page size          */
+#define CONFIG_SYS_NAND_BLOCK_SIZE     (16 << 10)      /* NAND chip block size         */
+#define CONFIG_SYS_NAND_PAGE_COUNT     32              /* NAND chip page count         */
+#define CONFIG_SYS_NAND_BAD_BLOCK_POS  5               /* Location of bad block marker */
+#define CONFIG_SYS_NAND_4_ADDR_CYCLE   1               /* Fourth addr used (>32MB)     */
+
+#define CONFIG_SYS_NAND_ECCSIZE        256
+#define CONFIG_SYS_NAND_ECCBYTES       3
+#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
+#define CONFIG_SYS_NAND_OOBSIZE        16
+#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
+#define CONFIG_SYS_NAND_ECCPOS         {0, 1, 2, 3, 6, 7}
 
 #ifdef CONFIG_ENV_IS_IN_NAND
 /*
  * For NAND booting the environment is embedded in the U-Boot image. Please take
  * look at the file board/amcc/sequoia/u-boot-nand.lds for details.
  */
-#define CONFIG_ENV_SIZE                CFG_NAND_BLOCK_SIZE
-#define CONFIG_ENV_OFFSET              (CFG_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
+#define CONFIG_ENV_SIZE                CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #endif
 
 /*-----------------------------------------------------------------------
  * NAND FLASH
  *----------------------------------------------------------------------*/
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE          (CFG_NAND_ADDR + CFG_NAND_CS)
-#define CFG_NAND_SELECT_DEVICE  1      /* nand driver supports mutipl. chips   */
+#define CONFIG_SYS_NAND_BASE           (CONFIG_SYS_NAND_ADDR + CONFIG_SYS_NAND_CS)
+#define CONFIG_SYS_NAND_SELECT_DEVICE  1       /* nand driver supports mutipl. chips   */
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
-#define CFG_MBYTES_SDRAM        (256)          /* 256MB                        */
+#define CONFIG_SYS_MBYTES_SDRAM        (256)           /* 256MB                        */
 
 /*
  * CONFIG_PPC4xx_DDR_AUTOCALIBRATION
 #define        DEBUG_PPC4xx_DDR_AUTOCALIBRATION        /* dynamic DDR autocal debug */
 #undef CONFIG_PPC4xx_DDR_METHOD_A
 
-#define        CFG_SDRAM0_MB0CF_BASE   ((  0 << 20) + CFG_SDRAM_BASE)
+#define        CONFIG_SYS_SDRAM0_MB0CF_BASE    ((  0 << 20) + CONFIG_SYS_SDRAM_BASE)
 
 /* DDR1/2 SDRAM Device Control Register Data Values */
-#define CFG_SDRAM0_MB0CF       ((CFG_SDRAM0_MB0CF_BASE >> 3)   | \
+#define CONFIG_SYS_SDRAM0_MB0CF        ((CONFIG_SYS_SDRAM0_MB0CF_BASE >> 3)    | \
                                 SDRAM_RXBAS_SDSZ_256MB         | \
                                 SDRAM_RXBAS_SDAM_MODE7         | \
                                 SDRAM_RXBAS_SDBE_ENABLE)
-#define CFG_SDRAM0_MB1CF       SDRAM_RXBAS_SDBE_DISABLE
-#define CFG_SDRAM0_MB2CF       SDRAM_RXBAS_SDBE_DISABLE
-#define CFG_SDRAM0_MB3CF       SDRAM_RXBAS_SDBE_DISABLE
-#define CFG_SDRAM0_MCOPT1      (SDRAM_MCOPT1_PMU_OPEN          | \
+#define CONFIG_SYS_SDRAM0_MB1CF        SDRAM_RXBAS_SDBE_DISABLE
+#define CONFIG_SYS_SDRAM0_MB2CF        SDRAM_RXBAS_SDBE_DISABLE
+#define CONFIG_SYS_SDRAM0_MB3CF        SDRAM_RXBAS_SDBE_DISABLE
+#define CONFIG_SYS_SDRAM0_MCOPT1       (SDRAM_MCOPT1_PMU_OPEN          | \
                                 SDRAM_MCOPT1_8_BANKS           | \
                                 SDRAM_MCOPT1_DDR2_TYPE         | \
                                 SDRAM_MCOPT1_QDEP              | \
                                 SDRAM_MCOPT1_DCOO_DISABLED)
-#define CFG_SDRAM0_MCOPT2      0x00000000
-#define CFG_SDRAM0_MODT0       (SDRAM_MODT_EB0W_ENABLE | \
+#define CONFIG_SYS_SDRAM0_MCOPT2       0x00000000
+#define CONFIG_SYS_SDRAM0_MODT0        (SDRAM_MODT_EB0W_ENABLE | \
                                 SDRAM_MODT_EB0R_ENABLE)
-#define CFG_SDRAM0_MODT1       0x00000000
-#define CFG_SDRAM0_CODT                (SDRAM_CODT_RK0R_ON             | \
+#define CONFIG_SYS_SDRAM0_MODT1        0x00000000
+#define CONFIG_SYS_SDRAM0_CODT         (SDRAM_CODT_RK0R_ON             | \
                                 SDRAM_CODT_CKLZ_36OHM          | \
                                 SDRAM_CODT_DQS_1_8_V_DDR2      | \
                                 SDRAM_CODT_IO_NMODE)
-#define CFG_SDRAM0_RTR         SDRAM_RTR_RINT_ENCODE(1560)
-#define CFG_SDRAM0_INITPLR0    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_RTR          SDRAM_RTR_RINT_ENCODE(1560)
+#define CONFIG_SYS_SDRAM0_INITPLR0     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(80)                           | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_NOP))
-#define CFG_SDRAM0_INITPLR1    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR1     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(3)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_PRECHARGE)          | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_MR)                   | \
                SDRAM_INITPLR_IMA_ENCODE(JEDEC_MA_PRECHARGE_ALL))
-#define CFG_SDRAM0_INITPLR2    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR2     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(2)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_EMR)                | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_EMR2)                 | \
                SDRAM_INITPLR_IMA_ENCODE(JEDEC_MA_EMR2_TEMP_COMMERCIAL))
-#define CFG_SDRAM0_INITPLR3    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR3     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(2)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_EMR)                | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_EMR3)                 | \
                SDRAM_INITPLR_IMA_ENCODE(0))
-#define CFG_SDRAM0_INITPLR4    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR4     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(2)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_EMR)                | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_EMR)                  | \
                SDRAM_INITPLR_IMA_ENCODE(JEDEC_MA_EMR_DQS_DISABLE | \
                                         JEDEC_MA_EMR_RTT_75OHM))
-#define CFG_SDRAM0_INITPLR5    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR5     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(2)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_EMR)                | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_MR)                   | \
                                         JEDEC_MA_MR_CL_DDR2_4_0_CLK | \
                                         JEDEC_MA_MR_BLEN_4 | \
                                         JEDEC_MA_MR_DLL_RESET))
-#define CFG_SDRAM0_INITPLR6    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR6     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(3)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_PRECHARGE)          | \
                SDRAM_INITPLR_IBA_ENCODE(0x0)                           | \
                SDRAM_INITPLR_IMA_ENCODE(JEDEC_MA_PRECHARGE_ALL))
-#define CFG_SDRAM0_INITPLR7    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR7     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(26)                           | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_REFRESH))
-#define CFG_SDRAM0_INITPLR8    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR8     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(26)                           | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_REFRESH))
-#define CFG_SDRAM0_INITPLR9    (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR9     (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(26)                           | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_REFRESH))
-#define CFG_SDRAM0_INITPLR10   (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR10    (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(26)                           | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_REFRESH))
-#define CFG_SDRAM0_INITPLR11   (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR11    (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(2)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_EMR)                | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_MR)                   | \
                SDRAM_INITPLR_IMA_ENCODE(JEDEC_MA_MR_WR_DDR2_3_CYC | \
                                         JEDEC_MA_MR_CL_DDR2_4_0_CLK | \
                                         JEDEC_MA_MR_BLEN_4))
-#define CFG_SDRAM0_INITPLR12   (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR12    (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(2)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_EMR)                | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_EMR)                  | \
                                         JEDEC_MA_EMR_DQS_DISABLE | \
                                         JEDEC_MA_EMR_RTT_DISABLED | \
                                         JEDEC_MA_EMR_ODS_NORMAL))
-#define CFG_SDRAM0_INITPLR13   (SDRAM_INITPLR_ENABLE                   | \
+#define CONFIG_SYS_SDRAM0_INITPLR13    (SDRAM_INITPLR_ENABLE                   | \
                SDRAM_INITPLR_IMWT_ENCODE(2)                            | \
                SDRAM_INITPLR_ICMD_ENCODE(JEDEC_CMD_EMR)                | \
                SDRAM_INITPLR_IBA_ENCODE(JEDEC_BA_EMR)                  | \
                                         JEDEC_MA_EMR_DQS_DISABLE | \
                                         JEDEC_MA_EMR_RTT_DISABLED | \
                                         JEDEC_MA_EMR_ODS_NORMAL))
-#define CFG_SDRAM0_INITPLR14   (SDRAM_INITPLR_DISABLE)
-#define CFG_SDRAM0_INITPLR15   (SDRAM_INITPLR_DISABLE)
-#define CFG_SDRAM0_RQDC                (SDRAM_RQDC_RQDE_ENABLE | \
+#define CONFIG_SYS_SDRAM0_INITPLR14    (SDRAM_INITPLR_DISABLE)
+#define CONFIG_SYS_SDRAM0_INITPLR15    (SDRAM_INITPLR_DISABLE)
+#define CONFIG_SYS_SDRAM0_RQDC         (SDRAM_RQDC_RQDE_ENABLE | \
                                 SDRAM_RQDC_RQFD_ENCODE(56))
-#define CFG_SDRAM0_RFDC                SDRAM_RFDC_RFFD_ENCODE(521)
-#define CFG_SDRAM0_RDCC                (SDRAM_RDCC_RDSS_T2)
-#define CFG_SDRAM0_DLCR                (SDRAM_DLCR_DCLM_AUTO           | \
+#define CONFIG_SYS_SDRAM0_RFDC         SDRAM_RFDC_RFFD_ENCODE(521)
+#define CONFIG_SYS_SDRAM0_RDCC         (SDRAM_RDCC_RDSS_T2)
+#define CONFIG_SYS_SDRAM0_DLCR         (SDRAM_DLCR_DCLM_AUTO           | \
                                 SDRAM_DLCR_DLCS_CONT_DONE      | \
                                 SDRAM_DLCR_DLCV_ENCODE(165))
-#define CFG_SDRAM0_CLKTR       (SDRAM_CLKTR_CLKP_180_DEG_ADV)
-#define CFG_SDRAM0_WRDTR       0x00000000
-#define CFG_SDRAM0_SDTR1       (SDRAM_SDTR1_LDOF_2_CLK | \
+#define CONFIG_SYS_SDRAM0_CLKTR        (SDRAM_CLKTR_CLKP_180_DEG_ADV)
+#define CONFIG_SYS_SDRAM0_WRDTR        0x00000000
+#define CONFIG_SYS_SDRAM0_SDTR1        (SDRAM_SDTR1_LDOF_2_CLK | \
                                 SDRAM_SDTR1_RTW_2_CLK  | \
                                 SDRAM_SDTR1_RTRO_1_CLK)
-#define CFG_SDRAM0_SDTR2       (SDRAM_SDTR2_RCD_3_CLK          | \
+#define CONFIG_SYS_SDRAM0_SDTR2        (SDRAM_SDTR2_RCD_3_CLK          | \
                                 SDRAM_SDTR2_WTR_2_CLK          | \
                                 SDRAM_SDTR2_XSNR_32_CLK        | \
                                 SDRAM_SDTR2_WPC_4_CLK          | \
                                 SDRAM_SDTR2_RPC_2_CLK          | \
                                 SDRAM_SDTR2_RP_3_CLK           | \
                                 SDRAM_SDTR2_RRD_2_CLK)
-#define CFG_SDRAM0_SDTR3       (SDRAM_SDTR3_RAS_ENCODE(8)      | \
+#define CONFIG_SYS_SDRAM0_SDTR3        (SDRAM_SDTR3_RAS_ENCODE(8)      | \
                                 SDRAM_SDTR3_RC_ENCODE(11)      | \
                                 SDRAM_SDTR3_XCS                | \
                                 SDRAM_SDTR3_RFC_ENCODE(26))
-#define CFG_SDRAM0_MMODE       (SDRAM_MMODE_WR_DDR2_3_CYC | \
+#define CONFIG_SYS_SDRAM0_MMODE        (SDRAM_MMODE_WR_DDR2_3_CYC | \
                                 SDRAM_MMODE_DCL_DDR2_4_0_CLK | \
                                 SDRAM_MMODE_BLEN_4)
-#define CFG_SDRAM0_MEMODE      (SDRAM_MEMODE_DQS_DISABLE | \
+#define CONFIG_SYS_SDRAM0_MEMODE       (SDRAM_MEMODE_DQS_DISABLE | \
                                 SDRAM_MEMODE_RTT_75OHM)
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 6       /* 24C02 requires 5ms delay */
-#define CFG_I2C_EEPROM_ADDR    0x52    /* I2C boot EEPROM (24C02BN)    */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  6       /* 24C02 requires 5ms delay */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x52    /* I2C boot EEPROM (24C02BN)    */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 
 /* Standard DTT sensor configuration */
 #define CONFIG_DTT_DS1775      1
 #define CONFIG_DTT_SENSORS     { 0 }
-#define CFG_I2C_DTT_ADDR       0x48
+#define CONFIG_SYS_I2C_DTT_ADDR        0x48
 
 /* RTC configuration */
 #define CONFIG_RTC_DS1338      1
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 /*-----------------------------------------------------------------------
  * Ethernet
 #define CONFIG_CMD_SNTP
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_CACHE         | \
-                                CFG_POST_CPU           | \
-                                CFG_POST_ETHER         | \
-                                CFG_POST_I2C           | \
-                                CFG_POST_MEMORY        | \
-                                CFG_POST_UART)
+#define CONFIG_POST            (CONFIG_SYS_POST_CACHE          | \
+                                CONFIG_SYS_POST_CPU            | \
+                                CONFIG_SYS_POST_ETHER          | \
+                                CONFIG_SYS_POST_I2C            | \
+                                CONFIG_SYS_POST_MEMORY | \
+                                CONFIG_SYS_POST_UART)
 
 /* Define here the base-addresses of the UARTs to test in POST */
-#define CFG_POST_UART_TABLE    {UART0_BASE, UART1_BASE}
+#define CONFIG_SYS_POST_UART_TABLE     {UART0_BASE, UART1_BASE}
 
 #define CONFIG_LOGBUFFER
-#define CFG_POST_CACHE_ADDR    0x00800000 /* free virtual address      */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x00800000 /* free virtual address      */
 
-#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 /*-----------------------------------------------------------------------
  * PCIe stuff
  *----------------------------------------------------------------------*/
-#define CFG_PCIE_MEMBASE       0x90000000      /* mapped PCIe memory   */
-#define CFG_PCIE_MEMSIZE       0x08000000      /* 128 Meg, smallest incr per port */
+#define CONFIG_SYS_PCIE_MEMBASE        0x90000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE_MEMSIZE        0x08000000      /* 128 Meg, smallest incr per port */
 
-#define        CFG_PCIE0_CFGBASE       0xa0000000      /* remote access */
-#define        CFG_PCIE0_XCFGBASE      0xb0000000      /* local access */
-#define        CFG_PCIE0_CFGMASK       0xe0000001      /* 512 Meg */
+#define        CONFIG_SYS_PCIE0_CFGBASE        0xa0000000      /* remote access */
+#define        CONFIG_SYS_PCIE0_XCFGBASE       0xb0000000      /* local access */
+#define        CONFIG_SYS_PCIE0_CFGMASK        0xe0000001      /* 512 Meg */
 
-#define        CFG_PCIE1_CFGBASE       0xc0000000      /* remote access */
-#define        CFG_PCIE1_XCFGBASE      0xd0000000      /* local access */
-#define        CFG_PCIE1_CFGMASK       0xe0000001      /* 512 Meg */
+#define        CONFIG_SYS_PCIE1_CFGBASE        0xc0000000      /* remote access */
+#define        CONFIG_SYS_PCIE1_XCFGBASE       0xd0000000      /* local access */
+#define        CONFIG_SYS_PCIE1_CFGMASK        0xe0000001      /* 512 Meg */
 
-#define        CFG_PCIE0_UTLBASE       0xef502000
-#define        CFG_PCIE1_UTLBASE       0xef503000
+#define        CONFIG_SYS_PCIE0_UTLBASE        0xef502000
+#define        CONFIG_SYS_PCIE1_UTLBASE        0xef503000
 
 /* base address of inbound PCIe window */
-#define CFG_PCIE_INBOUND_BASE  0x0000000000000000ULL
+#define CONFIG_SYS_PCIE_INBOUND_BASE   0x0000000000000000ULL
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
 #if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
 /* booting from NAND, so NAND chips select has to be on CS 0 */
-#define CFG_NAND_CS            0               /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             0               /* NAND chip connected to CSx   */
 
 /* Memory Bank 1 (NOR-FLASH) initialization                                    */
-#define CFG_EBC_PB1AP          0x05806500
-#define CFG_EBC_PB1CR           0xFC0DA000  /* BAS=0xFC0,BS=64MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB1AP           0x05806500
+#define CONFIG_SYS_EBC_PB1CR           0xFC0DA000  /* BAS=0xFC0,BS=64MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 0 (NAND-FLASH) initialization                                   */
-#define CFG_EBC_PB0AP          0x018003c0
-#define CFG_EBC_PB0CR          (CFG_NAND_ADDR | 0x1e000)
+#define CONFIG_SYS_EBC_PB0AP           0x018003c0
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_NAND_ADDR | 0x1e000)
 #else
-#define CFG_NAND_CS            1               /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             1               /* NAND chip connected to CSx   */
 
 /* Memory Bank 0 (NOR-FLASH) initialization                                    */
-#define CFG_EBC_PB0AP          0x05806500
-#define CFG_EBC_PB0CR           0xFC0DA000  /* BAS=0xFC0,BS=64MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB0AP           0x05806500
+#define CONFIG_SYS_EBC_PB0CR           0xFC0DA000  /* BAS=0xFC0,BS=64MB,BU=R/W,BW=16bit*/
 
 /* Memory Bank 1 (NAND-FLASH) initialization                                   */
-#define CFG_EBC_PB1AP          0x018003c0
-#define CFG_EBC_PB1CR          (CFG_NAND_ADDR | 0x1e000)
+#define CONFIG_SYS_EBC_PB1AP           0x018003c0
+#define CONFIG_SYS_EBC_PB1CR           (CONFIG_SYS_NAND_ADDR | 0x1e000)
 #endif
 
 /* Memory Bank 2 (FPGA) initialization                                         */
-#define CFG_EBC_PB2AP           0x9400C800
-#define CFG_EBC_PB2CR          (CFG_FPGA_BASE | 0x18000)
+#define CONFIG_SYS_EBC_PB2AP           0x9400C800
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_FPGA_BASE | 0x18000)
 
-#define CFG_EBC_CFG            0x7FC00000 /*  EBC0_CFG */
+#define CONFIG_SYS_EBC_CFG             0x7FC00000 /*  EBC0_CFG */
 
 /*-----------------------------------------------------------------------
  * GPIO Setup
  *----------------------------------------------------------------------*/
-#define CFG_4xx_GPIO_TABLE { /*          Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_IN,  GPIO_SEL,  GPIO_OUT_0}, /* GPIO0        EBC_DATA_PAR(0)                 */      \
 /*-----------------------------------------------------------------------
  * Some Kilauea stuff..., mainly fpga registers
  */
-#define CFG_FPGA_REG_BASE              CFG_FPGA_BASE
-#define CFG_FPGA_FIFO_BASE             (in32(CFG_FPGA_BASE) | (1 << 10))
+#define CONFIG_SYS_FPGA_REG_BASE               CONFIG_SYS_FPGA_BASE
+#define CONFIG_SYS_FPGA_FIFO_BASE              (in32(CONFIG_SYS_FPGA_BASE) | (1 << 10))
 
 /* interrupt */
-#define CFG_FPGA_SLIC0_R_DPRAM_INT     0x80000000
-#define CFG_FPGA_SLIC0_W_DPRAM_INT     0x40000000
-#define CFG_FPGA_SLIC1_R_DPRAM_INT     0x20000000
-#define CFG_FPGA_SLIC1_W_DPRAM_INT     0x10000000
-#define CFG_FPGA_PHY0_INT              0x08000000
-#define CFG_FPGA_PHY1_INT              0x04000000
-#define CFG_FPGA_SLIC0_INT             0x02000000
-#define CFG_FPGA_SLIC1_INT             0x01000000
+#define CONFIG_SYS_FPGA_SLIC0_R_DPRAM_INT      0x80000000
+#define CONFIG_SYS_FPGA_SLIC0_W_DPRAM_INT      0x40000000
+#define CONFIG_SYS_FPGA_SLIC1_R_DPRAM_INT      0x20000000
+#define CONFIG_SYS_FPGA_SLIC1_W_DPRAM_INT      0x10000000
+#define CONFIG_SYS_FPGA_PHY0_INT               0x08000000
+#define CONFIG_SYS_FPGA_PHY1_INT               0x04000000
+#define CONFIG_SYS_FPGA_SLIC0_INT              0x02000000
+#define CONFIG_SYS_FPGA_SLIC1_INT              0x01000000
 
 /* DPRAM setting */
 /* 00: 32B; 01: 64B; 10: 128B; 11: 256B  */
-#define CFG_FPGA_DPRAM_R_INT_LINE      0x00400000      /* 64 B */
-#define CFG_FPGA_DPRAM_W_INT_LINE      0x00100000      /* 64 B */
-#define CFG_FPGA_DPRAM_RW_TYPE         0x00080000
-#define CFG_FPGA_DPRAM_RST             0x00040000
-#define CFG_FPGA_UART0_FO              0x00020000
-#define CFG_FPGA_UART1_FO              0x00010000
+#define CONFIG_SYS_FPGA_DPRAM_R_INT_LINE       0x00400000      /* 64 B */
+#define CONFIG_SYS_FPGA_DPRAM_W_INT_LINE       0x00100000      /* 64 B */
+#define CONFIG_SYS_FPGA_DPRAM_RW_TYPE          0x00080000
+#define CONFIG_SYS_FPGA_DPRAM_RST              0x00040000
+#define CONFIG_SYS_FPGA_UART0_FO               0x00020000
+#define CONFIG_SYS_FPGA_UART1_FO               0x00010000
 
 /* loopback */
-#define CFG_FPGA_CHIPSIDE_LOOPBACK     0x00004000
-#define CFG_FPGA_LINESIDE_LOOPBACK     0x00008000
-#define CFG_FPGA_SLIC0_ENABLE          0x00002000
-#define CFG_FPGA_SLIC1_ENABLE          0x00001000
-#define CFG_FPGA_SLIC0_CS              0x00000800
-#define CFG_FPGA_SLIC1_CS              0x00000400
-#define CFG_FPGA_USER_LED0             0x00000200
-#define CFG_FPGA_USER_LED1             0x00000100
+#define CONFIG_SYS_FPGA_CHIPSIDE_LOOPBACK      0x00004000
+#define CONFIG_SYS_FPGA_LINESIDE_LOOPBACK      0x00008000
+#define CONFIG_SYS_FPGA_SLIC0_ENABLE           0x00002000
+#define CONFIG_SYS_FPGA_SLIC1_ENABLE           0x00001000
+#define CONFIG_SYS_FPGA_SLIC0_CS               0x00000800
+#define CONFIG_SYS_FPGA_SLIC1_CS               0x00000400
+#define CONFIG_SYS_FPGA_USER_LED0              0x00000200
+#define CONFIG_SYS_FPGA_USER_LED1              0x00000100
 
 #endif /* __CONFIG_H */
index 214cb429bcd97d03c9fbabf2d49b222c552b0ca6..ca3e8a9fc4fb289c927622f60707975869ef107c 100644 (file)
  * Base addresses -- Note these are effective addresses where the actual
  * resources get mapped (not physical addresses).
  */
-#define CFG_MONITOR_LEN                (384 * 1024) /* Reserve 384 kiB for Monitor  */
-#define CFG_MALLOC_LEN         (256 * 1024) /* Reserve 256 kiB for malloc() */
-
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_FLASH0_SIZE                0x01000000
-#define CFG_FLASH0_ADDR                (-CFG_FLASH0_SIZE)
-#define CFG_FLASH1_TOP         0xF8000000
-#define CFG_FLASH1_MAX_SIZE    0x08000000
-#define CFG_FLASH1_ADDR                (CFG_FLASH1_TOP - CFG_FLASH1_MAX_SIZE)
-#define CFG_FLASH_BASE         CFG_FLASH1_ADDR /* start of FLASH       */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_OCM_BASE           0xe0010000      /* ocm                  */
-#define CFG_OCM_DATA_ADDR      CFG_OCM_BASE
-#define CFG_PCI_BASE           0xe0000000      /* Internal PCI regs    */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory    */
+#define CONFIG_SYS_MONITOR_LEN         (384 * 1024) /* Reserve 384 kiB for Monitor  */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024) /* Reserve 256 kiB for malloc() */
+
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_FLASH0_SIZE         0x01000000
+#define CONFIG_SYS_FLASH0_ADDR         (-CONFIG_SYS_FLASH0_SIZE)
+#define CONFIG_SYS_FLASH1_TOP          0xF8000000
+#define CONFIG_SYS_FLASH1_MAX_SIZE     0x08000000
+#define CONFIG_SYS_FLASH1_ADDR         (CONFIG_SYS_FLASH1_TOP - CONFIG_SYS_FLASH1_MAX_SIZE)
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH1_ADDR  /* start of FLASH       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_OCM_BASE            0xe0010000      /* ocm                  */
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_OCM_BASE
+#define CONFIG_SYS_PCI_BASE            0xe0000000      /* Internal PCI regs    */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory    */
 
 /* Don't change either of these */
-#define CFG_PERIPHERAL_BASE    0xef600000      /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000      /* internal peripherals */
 
-#define CFG_USB2D0_BASE                0xe0000100
-#define CFG_USB_DEVICE         0xe0000000
-#define CFG_USB_HOST           0xe0000400
-#define CFG_CPLD_BASE          0xc0000000
+#define CONFIG_SYS_USB2D0_BASE         0xe0000100
+#define CONFIG_SYS_USB_DEVICE          0xe0000000
+#define CONFIG_SYS_USB_HOST            0xe0000400
+#define CONFIG_SYS_CPLD_BASE           0xc0000000
 
 /*
  * Initial RAM & stack pointer
  */
 /* 440EPx has 16KB of internal SRAM, so no need for D-Cache            */
-#undef CFG_INIT_RAM_DCACHE
-#define CFG_INIT_RAM_ADDR      CFG_OCM_BASE    /* OCM                  */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256     /* num bytes initial data       */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#undef CONFIG_SYS_INIT_RAM_DCACHE
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_BASE     /* OCM                  */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256     /* num bytes initial data       */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*
  * Serial Port
  */
-#define CFG_EXT_SERIAL_CLOCK   11059200        /* ext. 11.059MHz clk   */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    11059200        /* ext. 11.059MHz clk   */
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI    1
 /* define this if you want console on UART1 */
 #undef CONFIG_UART1_CONSOLE
 
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*
 /*
  * FLASH related
  */
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible        */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible        */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver              */
 #define CONFIG_FLASH_CFI_LEGACY                /* Allow hard-coded config for FLASH0 */
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH1_ADDR, CFG_FLASH0_ADDR }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH1_ADDR, CONFIG_SYS_FLASH0_ADDR }
 
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks         */
-#define CFG_MAX_FLASH_SECT     1024    /* max number of sectors on one chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks         */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024    /* max number of sectors on one chip  */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)    */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)   */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection      */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)   */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection      */
 
-#define CFG_FLASH_EMPTY_INFO         /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash      */
+#define CONFIG_SYS_FLASH_EMPTY_INFO          /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash      */
 
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector        */
-#define CONFIG_ENV_ADDR                (CFG_FLASH1_TOP - CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH1_TOP - CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                0x2000  /* Total Size of Environment Sector   */
 
 /* Address and size of Redundant Environment Sector */
 /*
  * DDR SDRAM
  */
-#define CFG_MBYTES_SDRAM        (512)  /* 512 MiB      TODO: remove    */
+#define CONFIG_SYS_MBYTES_SDRAM        (512)   /* 512 MiB      TODO: remove    */
 #define CONFIG_DDR_DATA_EYE            /* use DDR2 optimization        */
 #define CONFIG_SPD_EEPROM              /* Use SPD EEPROM for setup     */
 #define CONFIG_ZERO_SDRAM              /* Zero SDRAM after setup       */
 #define CONFIG_DDR_ECC                 /* Use ECC when available       */
 #define SPD_EEPROM_ADDRESS     {0x50}
 #define CONFIG_PROG_SDRAM_TLB
-#define CFG_MEM_TOP_HIDE       (4 << 10) /* don't use last 4kbytes     */
+#define CONFIG_SYS_MEM_TOP_HIDE        (4 << 10) /* don't use last 4kbytes     */
                                        /* 440EPx errata CHIP 11        */
 
 /*
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /* I2C RTC */
 #define CONFIG_RTC_M41T60      1
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 /* I2C SYSMON (LM73)                                                   */
 #define CONFIG_DTT_LM73                1       /* National Semi's LM73         */
 #define CONFIG_DTT_SENSORS     {2}     /* Sensor addresses             */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_MIN_TEMP       -30
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_MIN_TEMP        -30
 
 #define CONFIG_PREBOOT "echo;"                                         \
        "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
 
 /* Setup some board specific values for the default environment variables */
 #define CONFIG_HOSTNAME                korat
-#define CFG_BOOTFILE           "bootfile=/tftpboot/korat/uImage\0"
-#define CFG_ROOTPATH           "rootpath=/opt/eldk/ppc_4xxFP\0"
+#define CONFIG_SYS_BOOTFILE            "bootfile=/tftpboot/korat/uImage\0"
+#define CONFIG_SYS_ROOTPATH            "rootpath=/opt/eldk/ppc_4xxFP\0"
 
 /* Note: kernel_addr and ramdisk_addr assume that FLASH1 is 64 MiB. */
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
-       CFG_BOOTFILE                                                    \
-       CFG_ROOTPATH                                                    \
+       CONFIG_SYS_BOOTFILE                                                     \
+       CONFIG_SYS_ROOTPATH                                                     \
        "netdev=eth0\0"                                                 \
        "nfsargs=setenv bootargs root=/dev/nfs rw "                     \
                "nfsroot=${serverip}:${rootpath}\0"                     \
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_IBM_EMAC4_V4    1
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_GIGE                1       /* Include GbE speed/duplex detection */
 
 #define CONFIG_HAS_ETH0
-#define CFG_RX_ETH_BUFFER      32      /* Number of ethernet rx        */
+#define CONFIG_SYS_RX_ETH_BUFFER       32      /* Number of ethernet rx        */
                                        /*   buffers & descriptors      */
 #define CONFIG_NET_MULTI       1
 #define CONFIG_HAS_ETH1                1       /* add support for "eth1addr"   */
 #define CONFIG_CMD_USB
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_CACHE    | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_ECC      | \
-                                CFG_POST_ETHER    | \
-                                CFG_POST_FPU      | \
-                                CFG_POST_I2C      | \
-                                CFG_POST_MEMORY   | \
-                                CFG_POST_RTC      | \
-                                CFG_POST_SPR      | \
-                                CFG_POST_UART)
-
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_POST            (CONFIG_SYS_POST_CACHE     | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_ECC       | \
+                                CONFIG_SYS_POST_ETHER     | \
+                                CONFIG_SYS_POST_FPU       | \
+                                CONFIG_SYS_POST_I2C       | \
+                                CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_RTC       | \
+                                CONFIG_SYS_POST_SPR       | \
+                                CONFIG_SYS_POST_UART)
+
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
 #define CONFIG_LOGBUFFER
-#define CFG_POST_CACHE_ADDR    0xC8000000      /* free virtual address     */
+#define CONFIG_SYS_POST_CACHE_ADDR     0xC8000000      /* free virtual address     */
 
-#define CFG_CONSOLE_IS_IN_ENV  /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   /* Otherwise it catches logbuffer as output */
 
 #define CONFIG_SUPPORT_VFAT
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
                                        /* Print Buffer Size            */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x100000  /* default load address       */
-#define CFG_EXTBDINFO          1  /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000  /* default load address       */
+#define CONFIG_SYS_EXTBDINFO           1  /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW           1       /* enable loopw command         */
 /*
  * Korat-specific options
  */
-#define CFG_KORAT_MAN_RESET_MS 10000   /* timeout for manufacturer reset */
+#define CONFIG_SYS_KORAT_MAN_RESET_MS  10000   /* timeout for manufacturer reset */
 
 /*
  * PCI stuff
 /* General PCI */
 #define CONFIG_PCI                     /* include pci support          */
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
-#define CFG_PCI_CACHE_LINE_SIZE        0       /* to avoid problems with PNP   */
+#define CONFIG_SYS_PCI_CACHE_LINE_SIZE 0       /* to avoid problems with PNP   */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE       0x80000000      /* PCIaddr mapped to    */
-                                               /*   CFG_PCI_MEMBASE    */
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000      /* PCIaddr mapped to    */
+                                               /*   CONFIG_SYS_PCI_MEMBASE     */
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC                         */
-#define CFG_PCI_SUBSYS_ID       0xcafe /* Whatever                     */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC                         */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe  /* Whatever                     */
 
 /*
  * For booting Linux, the board info and command line data have to be in the
  * first 8 MB of memory, since this is the maximum mapped by the Linux kernel
  * during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * External Bus Controller (EBC) Setup
  */
 
 /* Memory Bank 0 (NOR-FLASH) initialization                            */
-#if CFG_FLASH0_SIZE == 0x01000000
-#define CFG_EBC_PB0AP          0x04017300
-#define CFG_EBC_PB0CR          (CFG_FLASH0_ADDR | 0x0009A000)
-#elif CFG_FLASH0_SIZE == 0x04000000
-#define CFG_EBC_PB0AP          0x04017300
-#define CFG_EBC_PB0CR          (CFG_FLASH0_ADDR | 0x000DA000)
+#if CONFIG_SYS_FLASH0_SIZE == 0x01000000
+#define CONFIG_SYS_EBC_PB0AP           0x04017300
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH0_ADDR | 0x0009A000)
+#elif CONFIG_SYS_FLASH0_SIZE == 0x04000000
+#define CONFIG_SYS_EBC_PB0AP           0x04017300
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH0_ADDR | 0x000DA000)
 #else
-#error Unable to configure chip select for current CFG_FLASH0_SIZE
+#error Unable to configure chip select for current CONFIG_SYS_FLASH0_SIZE
 #endif
 
 /* Memory Bank 1 (NOR-FLASH) initialization                            */
-#if CFG_FLASH1_MAX_SIZE == 0x08000000
-#define CFG_EBC_PB1AP          0x04017300
-#define CFG_EBC_PB1CR          (CFG_FLASH1_ADDR | 0x000FA000)
+#if CONFIG_SYS_FLASH1_MAX_SIZE == 0x08000000
+#define CONFIG_SYS_EBC_PB1AP           0x04017300
+#define CONFIG_SYS_EBC_PB1CR           (CONFIG_SYS_FLASH1_ADDR | 0x000FA000)
 #else
-#error Unable to configure chip select for current CFG_FLASH1_MAX_SIZE
+#error Unable to configure chip select for current CONFIG_SYS_FLASH1_MAX_SIZE
 #endif
 
 /* Memory Bank 2 (CPLD) initialization                                 */
-#define CFG_EBC_PB2AP          0x04017300
-#define CFG_EBC_PB2CR          (CFG_CPLD_BASE | 0x00038000)
+#define CONFIG_SYS_EBC_PB2AP           0x04017300
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_CPLD_BASE | 0x00038000)
 
 /*
  * GPIO Setup
  * GPIO63  xxxx   x    x   (reserved for trace port)
  */
 
-#define CFG_GPIO_ATMEGA_RESET_ 12
-#define CFG_GPIO_ATMEGA_SS_    13
-#define CFG_GPIO_PHY0_FIBER_SEL        27
-#define CFG_GPIO_PHY1_FIBER_SEL        28
-#define CFG_GPIO_SFP0_PRESENT_ 30
-#define CFG_GPIO_SFP1_PRESENT_ 31
-#define CFG_GPIO_SFP0_TX_EN_   32
-#define CFG_GPIO_SFP1_TX_EN_   33
-#define CFG_GPIO_PHY0_EN       45
-#define CFG_GPIO_PHY1_EN       46
-#define CFG_GPIO_RESET_PRESSED_        47
+#define CONFIG_SYS_GPIO_ATMEGA_RESET_  12
+#define CONFIG_SYS_GPIO_ATMEGA_SS_     13
+#define CONFIG_SYS_GPIO_PHY0_FIBER_SEL 27
+#define CONFIG_SYS_GPIO_PHY1_FIBER_SEL 28
+#define CONFIG_SYS_GPIO_SFP0_PRESENT_  30
+#define CONFIG_SYS_GPIO_SFP1_PRESENT_  31
+#define CONFIG_SYS_GPIO_SFP0_TX_EN_    32
+#define CONFIG_SYS_GPIO_SFP1_TX_EN_    33
+#define CONFIG_SYS_GPIO_PHY0_EN        45
+#define CONFIG_SYS_GPIO_PHY1_EN        46
+#define CONFIG_SYS_GPIO_RESET_PRESSED_ 47
 
 /*
  * PPC440 GPIO Configuration
  */
-#define CFG_4xx_GPIO_TABLE { /*          Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_BI , GPIO_ALT1, GPIO_OUT_0}, /* GPIO0        EBC_ADDR(7)     DMA_REQ(2)      */      \
index 098b92b4749e67efcf31fc23fe3962f1bee0db08..0d95263dacb44d0c42373c7d0c3352d84b4c5215 100644 (file)
@@ -56,7 +56,7 @@
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_LOADS_ECHO      1
-#undef CFG_LOADS_BAUD_CHANGE
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE
 
 #undef CONFIG_WATCHDOG
 
 
 #define CONFIG_NETCONSOLE
 
-#define CFG_LONGHELP
-#define CFG_PROMPT             "=> "
-#define CFG_CBSIZE             256
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS            16
-#define CFG_BARGSIZE           CFG_CBSIZE
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
 
-#define CFG_MEMTEST_START      0x00400000
-#define CFG_MEMTEST_END                0x07C00000
+#define CONFIG_SYS_MEMTEST_START       0x00400000
+#define CONFIG_SYS_MEMTEST_END         0x07C00000
 
-#define CFG_LOAD_ADDR          0x00100000
-#define CFG_HZ                 1000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_INIT_RAM_ADDR      0x40000000
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE       128
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x7C000000
-#define CFG_EUMB_ADDR          0xFC000000
-#define CFG_NVRAM_BASE_ADDR    0xFF000000
-#define CFG_NS16550_COM1       0xFF080000
-#define CFG_NS16550_COM2       0xFF080010
-#define CFG_NS16550_COM3       0xFF080020
-#define CFG_NS16550_COM4       0xFF080030
-#define CFG_RESET_ADDRESS      0xFFF00100
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x7C000000
+#define CONFIG_SYS_EUMB_ADDR           0xFC000000
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xFF000000
+#define CONFIG_SYS_NS16550_COM1        0xFF080000
+#define CONFIG_SYS_NS16550_COM2        0xFF080010
+#define CONFIG_SYS_NS16550_COM3        0xFF080020
+#define CONFIG_SYS_NS16550_COM4        0xFF080030
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
 
-#define CFG_MAX_RAM_SIZE       0x20000000
-#define CFG_FLASH_SIZE         (16 * 1024 * 1024)
-#define CFG_NVRAM_SIZE         0x7FFF8
+#define CONFIG_SYS_MAX_RAM_SIZE        0x20000000
+#define CONFIG_SYS_FLASH_SIZE          (16 * 1024 * 1024)
+#define CONFIG_SYS_NVRAM_SIZE          0x7FFF8
 
 #define CONFIG_VERY_BIG_RAM
 
-#define CFG_MONITOR_LEN                0x00040000
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_LEN         (512 << 10)
+#define CONFIG_SYS_MONITOR_LEN         0x00040000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)
 
-#define CFG_BOOTMAPSZ          (8 << 20)
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)
 
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_USE_BUFFER_WRITE
-#define CFG_FLASH_PROTECTION
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_PROTECT_CLEAR
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_PROTECT_CLEAR
 
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_MAX_FLASH_SECT     256
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      256
 
-#define CFG_FLASH_ERASE_TOUT   120000
-#define CFG_FLASH_WRITE_TOUT   500
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500
 
-#define CFG_JFFS2_FIRST_BANK   0
-#define CFG_JFFS2_NUM_BANKS    1
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #define CONFIG_ENV_IS_IN_NVRAM 1
 #define CONFIG_ENV_OVERWRITE   1
-#define CFG_NVRAM_ACCESS_ROUTINE
-#define CONFIG_ENV_ADDR                CFG_NVRAM_BASE_ADDR
+#define CONFIG_SYS_NVRAM_ACCESS_ROUTINE
+#define CONFIG_ENV_ADDR                CONFIG_SYS_NVRAM_BASE_ADDR
 #define CONFIG_ENV_SIZE                0x400
 #define CONFIG_ENV_OFFSET              0
 
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                14745600
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         14745600
 
 #define CONFIG_PCI
 #define CONFIG_PCI_PNP
 #define CONFIG_EEPRO100
 #define CONFIG_EEPRO100_SROM_WRITE
 
-#define CFG_RX_ETH_BUFFER      8
+#define CONFIG_SYS_RX_ETH_BUFFER       8
 
 #define CONFIG_HARD_I2C                1
-#define CFG_I2C_SPEED          400000
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR            0x57
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x57
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 #define CONFIG_SYS_CLK_FREQ    33333333
 
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5
+#  define CONFIG_SYS_CACHELINE_SHIFT   5
 #endif
 
-#define CFG_DLL_EXTEND         0x00
-#define CFG_PCI_HOLD_DEL       0x20
-
-#define CFG_ROMNAL             15
-#define CFG_ROMFAL             31
-
-#define CFG_REFINT             430
-
-#define CFG_DBUS_SIZE2         1
-
-#define CFG_BSTOPRE            121
-#define CFG_REFREC             8
-#define CFG_RDLAT              4
-#define CFG_PRETOACT           3
-#define CFG_ACTTOPRE           5
-#define CFG_ACTORW             3
-#define CFG_SDMODE_CAS_LAT     3
-#define CFG_SDMODE_WRAP                0
-
-#define CFG_REGISTERD_TYPE_BUFFER      1
-#define CFG_EXTROM                     1
-#define CFG_REGDIMM                    0
-
-#define CFG_BANK0_START                0x00000000
-#define CFG_BANK0_END          (0x4000000 - 1)
-#define CFG_BANK0_ENABLE       1
-#define CFG_BANK1_START                0x04000000
-#define CFG_BANK1_END          (0x8000000 - 1)
-#define CFG_BANK1_ENABLE       1
-#define CFG_BANK2_START                0x3ff00000
-#define CFG_BANK2_END          0x3fffffff
-#define CFG_BANK2_ENABLE       0
-#define CFG_BANK3_START                0x3ff00000
-#define CFG_BANK3_END          0x3fffffff
-#define CFG_BANK3_ENABLE       0
-#define CFG_BANK4_START                0x00000000
-#define CFG_BANK4_END          0x00000000
-#define CFG_BANK4_ENABLE       0
-#define CFG_BANK5_START                0x00000000
-#define CFG_BANK5_END          0x00000000
-#define CFG_BANK5_ENABLE       0
-#define CFG_BANK6_START                0x00000000
-#define CFG_BANK6_END          0x00000000
-#define CFG_BANK6_ENABLE       0
-#define CFG_BANK7_START                0x00000000
-#define CFG_BANK7_END          0x00000000
-#define CFG_BANK7_ENABLE       0
-
-#define CFG_BANK_ENABLE                0x03
-
-#define CFG_ODCR               0x75
-#define CFG_PGMAX              0x32
-
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L     (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L     (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L     (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_DLL_EXTEND          0x00
+#define CONFIG_SYS_PCI_HOLD_DEL        0x20
+
+#define CONFIG_SYS_ROMNAL              15
+#define CONFIG_SYS_ROMFAL              31
+
+#define CONFIG_SYS_REFINT              430
+
+#define CONFIG_SYS_DBUS_SIZE2          1
+
+#define CONFIG_SYS_BSTOPRE             121
+#define CONFIG_SYS_REFREC              8
+#define CONFIG_SYS_RDLAT               4
+#define CONFIG_SYS_PRETOACT            3
+#define CONFIG_SYS_ACTTOPRE            5
+#define CONFIG_SYS_ACTORW              3
+#define CONFIG_SYS_SDMODE_CAS_LAT      3
+#define CONFIG_SYS_SDMODE_WRAP         0
+
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER       1
+#define CONFIG_SYS_EXTROM                      1
+#define CONFIG_SYS_REGDIMM                     0
+
+#define CONFIG_SYS_BANK0_START         0x00000000
+#define CONFIG_SYS_BANK0_END           (0x4000000 - 1)
+#define CONFIG_SYS_BANK0_ENABLE        1
+#define CONFIG_SYS_BANK1_START         0x04000000
+#define CONFIG_SYS_BANK1_END           (0x8000000 - 1)
+#define CONFIG_SYS_BANK1_ENABLE        1
+#define CONFIG_SYS_BANK2_START         0x3ff00000
+#define CONFIG_SYS_BANK2_END           0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE        0
+#define CONFIG_SYS_BANK3_START         0x3ff00000
+#define CONFIG_SYS_BANK3_END           0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE        0
+#define CONFIG_SYS_BANK4_START         0x00000000
+#define CONFIG_SYS_BANK4_END           0x00000000
+#define CONFIG_SYS_BANK4_ENABLE        0
+#define CONFIG_SYS_BANK5_START         0x00000000
+#define CONFIG_SYS_BANK5_END           0x00000000
+#define CONFIG_SYS_BANK5_ENABLE        0
+#define CONFIG_SYS_BANK6_START         0x00000000
+#define CONFIG_SYS_BANK6_END           0x00000000
+#define CONFIG_SYS_BANK6_ENABLE        0
+#define CONFIG_SYS_BANK7_START         0x00000000
+#define CONFIG_SYS_BANK7_END           0x00000000
+#define CONFIG_SYS_BANK7_ENABLE        0
+
+#define CONFIG_SYS_BANK_ENABLE         0x03
+
+#define CONFIG_SYS_ODCR                0x75
+#define CONFIG_SYS_PGMAX               0x32
+
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L      (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L      (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 #define BOOTFLAG_COLD  0x01
 #define BOOTFLAG_WARM  0x02
index d7b8cfc8a2839cd8724ae5c0c2570b486cf70b2d..38b8e75f458420caea7f13d225220457962cfe03 100644 (file)
@@ -39,8 +39,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "LART # "       /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "LART # "       /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xc8000000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xc8000000      /* default load address */
 
-#define        CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x0b            /* set core clock to 220 MHz */
+#define        CONFIG_SYS_HZ                   3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x0b            /* set core clock to 220 MHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SIZE                0x00400000 /* 4 MB */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     (31+8)  /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      (31+8)  /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + 0x1C000)        /* Addr of Environment Sector   */
index be2f71cb72761396af69733972473915436eb927..2feb3ae31d41b25d6b1b9e8584a301eadd0937f2 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
 
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS            16              /* Max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR          0x00800000      /* Default load address: 8 MB   */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS             16              /* Max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR           0x00800000      /* Default load address: 8 MB   */
 
 #define CONFIG_BOOTCOMMAND     "run bootcmd1"
 #define CONFIG_BOOTARGS                "root=/dev/sda1 console=ttyS1,57600 netconsole=@192.168.1.7/eth0,@192.168.1.1/00:50:BF:A4:59:71 rtc-rs5c372.probe=0,0x32 debug"
 #define CONFIG_NFSBOOTCOMMAND  "bootp;run nfsargs;bootm"
 
-#define CFG_CONSOLE_IS_IN_ENV
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
 
 #define XMK_STR(x)             #x
 #define MK_STR(x)              XMK_STR(x)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 
-#define CFG_FLASH_BASE         0xFFC00000
-#define CFG_FLASH_SIZE         0x00400000
-#define CFG_MONITOR_BASE       TEXT_BASE
+#define CONFIG_SYS_FLASH_BASE          0xFFC00000
+#define CONFIG_SYS_FLASH_SIZE          0x00400000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
-#define CFG_RESET_ADDRESS      0xFFF00100
-#define CFG_EUMB_ADDR          0x80000000
-#define CFG_PCI_MEM_ADDR       0xB0000000
-#define CFG_MISC_REGION_ADDR   0xFE000000
+#define CONFIG_SYS_RESET_ADDRESS       0xFFF00100
+#define CONFIG_SYS_EUMB_ADDR           0x80000000
+#define CONFIG_SYS_PCI_MEM_ADDR        0xB0000000
+#define CONFIG_SYS_MISC_REGION_ADDR    0xFE000000
 
-#define CFG_MONITOR_LEN                0x00040000      /* 256 kB                       */
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve some kB for malloc() */
+#define CONFIG_SYS_MONITOR_LEN         0x00040000      /* 256 kB                       */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve some kB for malloc() */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on             */
-#define CFG_MEMTEST_END                0x00800000      /* 1M ... 8M in DRAM            */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x00800000      /* 1M ... 8M in DRAM            */
 
 /* Maximum amount of RAM */
 #if defined(CONFIG_HLAN) || defined(CONFIG_LAN)
-#define CFG_MAX_RAM_SIZE       0x04000000      /* 64MB of SDRAM  */
+#define CONFIG_SYS_MAX_RAM_SIZE        0x04000000      /* 64MB of SDRAM  */
 #elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL)
-#define CFG_MAX_RAM_SIZE       0x08000000      /* 128MB of SDRAM */
+#define CONFIG_SYS_MAX_RAM_SIZE        0x08000000      /* 128MB of SDRAM */
 #else
 #error Unknown LinkStation type
 #endif
  *
  * Always do "make clean" after changing the build type
  */
-#if CFG_MONITOR_BASE < CFG_FLASH_BASE
-#define CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
 #if 1 /* RAM is available when the first C function is called */
-#define CFG_INIT_RAM_ADDR      (CFG_SDRAM_BASE + CFG_MAX_RAM_SIZE - 0x1000)
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MAX_RAM_SIZE - 0x1000)
 #else
-#define CFG_INIT_RAM_ADDR      0x40000000
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000
 #endif
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE       128
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*----------------------------------------------------------------------
  * Serial configuration
  */
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                57600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_NS16550_COM1       (CFG_EUMB_ADDR + 0x4600)        /* Console port */
-#define CFG_NS16550_COM2       (CFG_EUMB_ADDR + 0x4500)        /* AVR port     */
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_EUMB_ADDR + 0x4600) /* Console port */
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_EUMB_ADDR + 0x4500) /* AVR port     */
 
 /*
  * Low Level Configuration Settings
 /* FIXME: 32.768 MHz is the crystal frequency but */
 /* the real frequency is lower by about 0.75%     */
 #define CONFIG_SYS_CLK_FREQ    32768000
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 /* Bit-field values for MCCR1.  */
-#define CFG_ROMNAL      0
-#define CFG_ROMFAL      11
-
-#define CFG_BANK0_ROW  2       /* Only bank 0 used: 13 x n x 4 */
-#define CFG_BANK1_ROW  0
-#define CFG_BANK2_ROW  0
-#define CFG_BANK3_ROW  0
-#define CFG_BANK4_ROW  0
-#define CFG_BANK5_ROW  0
-#define CFG_BANK6_ROW  0
-#define CFG_BANK7_ROW  0
+#define CONFIG_SYS_ROMNAL      0
+#define CONFIG_SYS_ROMFAL      11
+
+#define CONFIG_SYS_BANK0_ROW   2       /* Only bank 0 used: 13 x n x 4 */
+#define CONFIG_SYS_BANK1_ROW   0
+#define CONFIG_SYS_BANK2_ROW   0
+#define CONFIG_SYS_BANK3_ROW   0
+#define CONFIG_SYS_BANK4_ROW   0
+#define CONFIG_SYS_BANK5_ROW   0
+#define CONFIG_SYS_BANK6_ROW   0
+#define CONFIG_SYS_BANK7_ROW   0
 
 /* Bit-field values for MCCR2.  */
-#define CFG_TSWAIT      0
+#define CONFIG_SYS_TSWAIT      0
 #if defined(CONFIG_LAN) || defined(CONFIG_HLAN)
-#define CFG_REFINT      0x15e0
+#define CONFIG_SYS_REFINT      0x15e0
 #elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL)
-#define CFG_REFINT      0x1580
+#define CONFIG_SYS_REFINT      0x1580
 #endif
 
 /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4. */
-#define CFG_BSTOPRE    0x91c
+#define CONFIG_SYS_BSTOPRE     0x91c
 
 /* Bit-field values for MCCR3.  */
-#define CFG_REFREC      7
+#define CONFIG_SYS_REFREC      7
 
 /* Bit-field values for MCCR4.  */
-#define CFG_PRETOACT           2
-#define CFG_ACTTOPRE           2       /* Original value was 2 */
-#define CFG_ACTORW             2
+#define CONFIG_SYS_PRETOACT            2
+#define CONFIG_SYS_ACTTOPRE            2       /* Original value was 2 */
+#define CONFIG_SYS_ACTORW              2
 #if defined(CONFIG_LAN) || defined(CONFIG_HLAN)
-#define CFG_SDMODE_CAS_LAT     2       /* For 100MHz bus       */
-/*#define CFG_SDMODE_BURSTLEN  3*/
+#define CONFIG_SYS_SDMODE_CAS_LAT      2       /* For 100MHz bus       */
+/*#define CONFIG_SYS_SDMODE_BURSTLEN   3*/
 #elif defined(CONFIG_HGLAN) || defined(CONFIG_HTGL)
-#define CFG_SDMODE_CAS_LAT     3       /* For 133MHz bus       */
-/*#define CFG_SDMODE_BURSTLEN  2*/
+#define CONFIG_SYS_SDMODE_CAS_LAT      3       /* For 133MHz bus       */
+/*#define CONFIG_SYS_SDMODE_BURSTLEN   2*/
 #endif
-#define CFG_REGISTERD_TYPE_BUFFER 1
-#define CFG_EXTROM             1       /* Original setting but there is no EXTROM */
-#define CFG_REGDIMM            0
-#define CFG_DBUS_SIZE2         1
-#define CFG_SDMODE_WRAP                0
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_EXTROM              1       /* Original setting but there is no EXTROM */
+#define CONFIG_SYS_REGDIMM             0
+#define CONFIG_SYS_DBUS_SIZE2          1
+#define CONFIG_SYS_SDMODE_WRAP         0
 
-#define CFG_PGMAX              0x32    /* All boards use this setting. Original 0x92 */
-#define CFG_SDRAM_DSCD         0x30
+#define CONFIG_SYS_PGMAX               0x32    /* All boards use this setting. Original 0x92 */
+#define CONFIG_SYS_SDRAM_DSCD          0x30
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START     0x3ff00000
-#define CFG_BANK1_END       0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START     0x3ff00000
-#define CFG_BANK2_END       0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START     0x3ff00000
-#define CFG_BANK3_END       0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START     0x3ff00000
-#define CFG_BANK4_END       0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START     0x3ff00000
-#define CFG_BANK5_END       0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START     0x3ff00000
-#define CFG_BANK6_END       0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START     0x3ff00000
-#define CFG_BANK7_END       0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR           0x15
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0x15
 
 /*----------------------------------------------------------------------
  * Initial BAT mappings
  */
 
 /* SDRAM */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_128M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_128M | BATU_VS | BATU_VP)
 
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
 
 /* EUMB: 1MB of address space */
-#define CFG_IBAT1L     (CFG_EUMB_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U     (CFG_EUMB_ADDR | BATU_BL_1M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_EUMB_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_EUMB_ADDR | BATU_BL_1M | BATU_VS | BATU_VP)
 
-#define CFG_DBAT1L     (CFG_IBAT1L | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT1U     CFG_IBAT1U
+#define CONFIG_SYS_DBAT1L      (CONFIG_SYS_IBAT1L | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
 
 /* PCI Mem: 256MB of address space */
-#define CFG_IBAT2L     (CFG_PCI_MEM_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     (CFG_PCI_MEM_ADDR | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_PCI_MEM_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_PCI_MEM_ADDR | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_DBAT2L     (CFG_IBAT2L | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U     CFG_IBAT2U
+#define CONFIG_SYS_DBAT2L      (CONFIG_SYS_IBAT2L | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
 
 /* PCI and local ROM/Flash: last 32MB of address space */
-#define CFG_IBAT3L     (CFG_MISC_REGION_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     (CFG_MISC_REGION_ADDR | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_MISC_REGION_ADDR | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_MISC_REGION_ADDR | BATU_BL_32M | BATU_VS | BATU_VP)
 
-#define CFG_DBAT3L     (CFG_IBAT3L | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     CFG_IBAT3U
+#define CONFIG_SYS_DBAT3L      (CONFIG_SYS_IBAT3L | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * FIXME: This doesn't appear to be true for the newer kernels
  * which map more that 8 MB
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
 
-#undef  CFG_FLASH_PROTECTION
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     72      /* Max number of sectors per flash      */
+#undef  CONFIG_SYS_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      72      /* Max number of sectors per flash      */
 
-#define CFG_FLASH_ERASE_TOUT   12000
-#define CFG_FLASH_WRITE_TOUT   1000
+#define CONFIG_SYS_FLASH_ERASE_TOUT    12000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash        */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash        */
 
 #define CONFIG_ENV_IS_IN_FLASH
 /*
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #ifdef CONFIG_CMD_KGDB
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
 #define CONFIG_LBA48                           /* 48 bit LBA supported         */
 
 #if defined(CONFIG_LAN) || defined(CONFIG_HLAN) || defined(CONFIG_HGLAN)
-#define CFG_IDE_MAXBUS         1               /* Scan only 1 IDE bus          */
-#define CFG_IDE_MAXDEVICE      1               /* Only 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1               /* Scan only 1 IDE bus          */
+#define CONFIG_SYS_IDE_MAXDEVICE       1               /* Only 1 drive per IDE bus     */
 #elif defined(CONFIG_HGTL)
-#define CFG_IDE_MAXBUS         2               /* Max. 2 IDE busses            */
-#define CFG_IDE_MAXDEVICE      2               /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          2               /* Max. 2 IDE busses            */
+#define CONFIG_SYS_IDE_MAXDEVICE       2               /* max. 2 drives per IDE bus    */
 #else
 #error Config IDE: Unknown LinkStation type
 #endif
 
-#define CFG_ATA_BASE_ADDR      0
+#define CONFIG_SYS_ATA_BASE_ADDR       0
 
-#define CFG_ATA_DATA_OFFSET    0               /* Offset for data I/O          */
-#define CFG_ATA_REG_OFFSET     0               /* Offset for normal registers  */
-#define CFG_ATA_ALT_OFFSET     0               /* Offset for alternate registers */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0               /* Offset for data I/O          */
+#define CONFIG_SYS_ATA_REG_OFFSET      0               /* Offset for normal registers  */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0               /* Offset for alternate registers */
 
 /*-----------------------------------------------------------------------
  * Partitions and file system
index dcbae9795eb801a5c6da4ff413ee753d97754a6a..bb6f943aebb3475905a54ae4ceb5b00fdbf4fa2f 100644 (file)
  * used for the RAM copy of the uboot code
  *
  */
-#define CFG_MALLOC_LEN         (256*1024)
+#define CONFIG_SYS_MALLOC_LEN          (256*1024)
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "uboot> "       /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "uboot> "       /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x08000000      /* memtest works on             */
-#define CFG_MEMTEST_END         0x0800ffff     /* 64 KiB                       */
+#define CONFIG_SYS_MEMTEST_START       0x08000000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0x0800ffff      /* 64 KiB                       */
 
-#undef  CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR           0x08000000      /* load kernel to this address   */
+#define CONFIG_SYS_LOAD_ADDR           0x08000000      /* load kernel to this address   */
 
-#define CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
                                                /* RS: the oscillator is actually 3680130?? */
 
-#define CFG_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
                                                /* 0101000001 */
                                                /*      ^^^^^ Memory Speed 99.53 MHz         */
                                                /*    ^^      Run Mode Speed = 2x Mem Speed  */
                                                /* ^^         Turbo Mode Sp. = 1x Run M. Sp. */
 
-#define CFG_MONITOR_LEN                0x20000         /* 128 KiB */
+#define CONFIG_SYS_MONITOR_LEN         0x20000         /* 128 KiB */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * SMSC91C111 Network Card
 #define PHYS_FLASH_2           0x01000000      /* Flash Bank #2            */
 #define PHYS_FLASH_SIZE                (32*1024*1024)  /* 32 MB                    */
 
-#define CFG_DRAM_BASE          PHYS_SDRAM_1    /* RAM starts here          */
-#define CFG_DRAM_SIZE          PHYS_SDRAM_1_SIZE
+#define CONFIG_SYS_DRAM_BASE           PHYS_SDRAM_1    /* RAM starts here          */
+#define CONFIG_SYS_DRAM_SIZE           PHYS_SDRAM_1_SIZE
 
-#define CFG_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 
 /*
 #define _BIT31      0x80000000
 
 
-#define CFG_LED_A_BIT           (_BIT18)
-#define CFG_LED_A_SR            GPSR0
-#define CFG_LED_A_CR            GPCR0
+#define CONFIG_SYS_LED_A_BIT           (_BIT18)
+#define CONFIG_SYS_LED_A_SR            GPSR0
+#define CONFIG_SYS_LED_A_CR            GPCR0
 
-#define CFG_LED_B_BIT           (_BIT16)
-#define CFG_LED_B_SR            GPSR1
-#define CFG_LED_B_CR            GPCR1
+#define CONFIG_SYS_LED_B_BIT           (_BIT16)
+#define CONFIG_SYS_LED_B_SR            GPSR1
+#define CONFIG_SYS_LED_B_CR            GPCR1
 
 
 /* LED A: off, LED B: off */
-#define CFG_GPSR0_VAL       (_BIT1+_BIT6+_BIT8+_BIT9+_BIT11+_BIT15+_BIT16+_BIT18)
-#define CFG_GPSR1_VAL       (_BIT0+_BIT1+_BIT16+_BIT24+_BIT25  +_BIT7+_BIT8+_BIT9+_BIT11+_BIT13)
-#define CFG_GPSR2_VAL       (_BIT14+_BIT15+_BIT16)
+#define CONFIG_SYS_GPSR0_VAL       (_BIT1+_BIT6+_BIT8+_BIT9+_BIT11+_BIT15+_BIT16+_BIT18)
+#define CONFIG_SYS_GPSR1_VAL       (_BIT0+_BIT1+_BIT16+_BIT24+_BIT25  +_BIT7+_BIT8+_BIT9+_BIT11+_BIT13)
+#define CONFIG_SYS_GPSR2_VAL       (_BIT14+_BIT15+_BIT16)
 
-#define CFG_GPCR0_VAL       0x00000000
-#define CFG_GPCR1_VAL       0x00000000
-#define CFG_GPCR2_VAL       0x00000000
+#define CONFIG_SYS_GPCR0_VAL       0x00000000
+#define CONFIG_SYS_GPCR1_VAL       0x00000000
+#define CONFIG_SYS_GPCR2_VAL       0x00000000
 
-#define CFG_GPDR0_VAL       (_BIT1+_BIT6+_BIT8+_BIT9+_BIT11+_BIT15+_BIT16+_BIT17+_BIT18)
-#define CFG_GPDR1_VAL       (_BIT0+_BIT1+_BIT16+_BIT24+_BIT25  +_BIT7+_BIT8+_BIT9+_BIT11+_BIT13)
-#define CFG_GPDR2_VAL       (_BIT14+_BIT15+_BIT16)
+#define CONFIG_SYS_GPDR0_VAL       (_BIT1+_BIT6+_BIT8+_BIT9+_BIT11+_BIT15+_BIT16+_BIT17+_BIT18)
+#define CONFIG_SYS_GPDR1_VAL       (_BIT0+_BIT1+_BIT16+_BIT24+_BIT25  +_BIT7+_BIT8+_BIT9+_BIT11+_BIT13)
+#define CONFIG_SYS_GPDR2_VAL       (_BIT14+_BIT15+_BIT16)
 
-#define CFG_GAFR0_L_VAL     (_BIT22+_BIT24+_BIT31)
-#define CFG_GAFR0_U_VAL     (_BIT15+_BIT17+_BIT19+\
+#define CONFIG_SYS_GAFR0_L_VAL     (_BIT22+_BIT24+_BIT31)
+#define CONFIG_SYS_GAFR0_U_VAL     (_BIT15+_BIT17+_BIT19+\
                             _BIT20+_BIT22+_BIT24+_BIT26+_BIT29+_BIT31)
-#define CFG_GAFR1_L_VAL     (_BIT3+_BIT4+_BIT6+_BIT8+_BIT10+_BIT12+_BIT15+_BIT17+_BIT19+\
+#define CONFIG_SYS_GAFR1_L_VAL     (_BIT3+_BIT4+_BIT6+_BIT8+_BIT10+_BIT12+_BIT15+_BIT17+_BIT19+\
                             _BIT20+_BIT23+_BIT24+_BIT27+_BIT28+_BIT31)
-#define CFG_GAFR1_U_VAL     (_BIT21+_BIT23+_BIT25+_BIT27+_BIT29+_BIT31)
-#define CFG_GAFR2_L_VAL     (_BIT1+_BIT3+_BIT5+_BIT7+_BIT9+_BIT11+_BIT13+_BIT15+_BIT17+\
+#define CONFIG_SYS_GAFR1_U_VAL     (_BIT21+_BIT23+_BIT25+_BIT27+_BIT29+_BIT31)
+#define CONFIG_SYS_GAFR2_L_VAL     (_BIT1+_BIT3+_BIT5+_BIT7+_BIT9+_BIT11+_BIT13+_BIT15+_BIT17+\
                             _BIT19+_BIT21+_BIT23+_BIT25+_BIT27+_BIT29+_BIT31)
-#define CFG_GAFR2_U_VAL     (_BIT1)
+#define CONFIG_SYS_GAFR2_U_VAL     (_BIT1)
 
-#define CFG_PSSR_VAL        (0x20)
+#define CONFIG_SYS_PSSR_VAL        (0x20)
 
 /*
  * Memory settings
  */
-#define CFG_MSC0_VAL   0x123c2980
-#define CFG_MSC1_VAL   0x123c2661
-#define CFG_MSC2_VAL   0x7ff87ff8
+#define CONFIG_SYS_MSC0_VAL    0x123c2980
+#define CONFIG_SYS_MSC1_VAL    0x123c2661
+#define CONFIG_SYS_MSC2_VAL    0x7ff87ff8
 
 
 /* no sdram/pcmcia here */
-#define CFG_MDCNFG_VAL         0x00000000
-#define CFG_MDREFR_VAL         0x00000000
-#define CFG_MDREFR_VAL_100     0x00000000
-#define CFG_MDMRS_VAL          0x00000000
+#define CONFIG_SYS_MDCNFG_VAL          0x00000000
+#define CONFIG_SYS_MDREFR_VAL          0x00000000
+#define CONFIG_SYS_MDREFR_VAL_100      0x00000000
+#define CONFIG_SYS_MDMRS_VAL           0x00000000
 
 /* only SRAM */
 #define SXCNFG_SETTINGS        0x00000000
  * PCMCIA and CF Interfaces
  */
 
-#define CFG_MECR_VAL        0x00000000
-#define CFG_MCMEM0_VAL      0x00010504
-#define CFG_MCMEM1_VAL      0x00010504
-#define CFG_MCATT0_VAL      0x00010504
-#define CFG_MCATT1_VAL      0x00010504
-#define CFG_MCIO0_VAL       0x00004715
-#define CFG_MCIO1_VAL       0x00004715
+#define CONFIG_SYS_MECR_VAL        0x00000000
+#define CONFIG_SYS_MCMEM0_VAL      0x00010504
+#define CONFIG_SYS_MCMEM1_VAL      0x00010504
+#define CONFIG_SYS_MCATT0_VAL      0x00010504
+#define CONFIG_SYS_MCATT1_VAL      0x00010504
+#define CONFIG_SYS_MCIO0_VAL       0x00004715
+#define CONFIG_SYS_MCIO1_VAL       0x00004715
 
 
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS     2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT      128  /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128  /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT    (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT    (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* FIXME */
 #define        CONFIG_ENV_IS_IN_FLASH  1
index 3d173d71fe2346364449c6c8563999b7c732cbd2..563d35b20cccd895152d640d34ab0d8098a1f700 100644 (file)
@@ -49,8 +49,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "LPC2292SODIMM # " /* Monitor Command Prompt    */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "LPC2292SODIMM # " /* Monitor Command Prompt    */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x40000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x40000000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x40000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x40000000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x00040000      /* default load address for     */
+#define        CONFIG_SYS_LOAD_ADDR            0x00040000      /* default load address for     */
                                                /* armadillo: kernel img is here*/
 
-#define CFG_SYS_CLK_FREQ       58982400        /* Hz */
-#define        CFG_HZ                  2048            /* decrementer freq in Hz */
+#define CONFIG_SYS_SYS_CLK_FREQ        58982400        /* Hz */
+#define        CONFIG_SYS_HZ                   2048            /* decrementer freq in Hz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_1           0x80000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SIZE                0x00200000 /* 2 MB */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     1024    /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024    /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (0x0 + 0x3C000) /* Addr of Environment Sector   */
index 3722fd293388b7d9939da595388412c3fef5d3cc..6145c37f78f5937a45ea57cedd3e622e5b41b51e 100644 (file)
@@ -34,7 +34,7 @@
 #define CONFIG_SYS_CLK_FREQ            14745600   /* System Clock PLL Input (Hz) */
 
 /* ticks per second */
-#define CFG_HZ (508469)
+#define CONFIG_SYS_HZ  (508469)
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_SDRAM_1           0xc0000000 /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      0x02000000 /* 32 MB */
 
-#define CFG_FLASH_BASE         0x00000000 /* Flash Bank #1 */
+#define CONFIG_SYS_FLASH_BASE          0x00000000 /* Flash Bank #1 */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (64)    /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (64)    /* max number of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /*----------------------------------------------------------------------
  * Using SMC91C111 LAN chip
index 9e6ea1a286eaad6899c0875e940803b3125359f8..575f2a1c5eacc8913e8c172dc64ed7799ea6abba 100644 (file)
@@ -37,8 +37,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * select serial console configuration
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "LPD7A400> "    /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "LPD7A400> "    /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0300000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0500000      /* 2 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0xc0300000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0500000      /* 2 MB in DRAM */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xc0f00000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xc0f00000      /* default load address */
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /* size and location of u-boot in flash */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256<<10)
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256<<10)
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /* Address and size of Primary Environment Sector      */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0xFC0000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0xFC0000)
 #define CONFIG_ENV_SIZE                0x40000
 
 #endif  /* __LPD7A400_H_ */
index a8af950b65d39004bde584dbcd487025f1dbffa6..ce23f3d60253fc1c1e62e1a603de747dfae00fd5 100644 (file)
@@ -34,7 +34,7 @@
 #define CONFIG_SYS_CLK_FREQ            14745600   /* System Clock PLL Input (Hz) */
 
 /* ticks per second */
-#define CFG_HZ (508469)
+#define CONFIG_SYS_HZ  (508469)
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_SDRAM_1           0xc0000000 /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      0x02000000 /* 32 MB */
 
-#define CFG_FLASH_BASE         0x00000000 /* Flash Bank #1 */
+#define CONFIG_SYS_FLASH_BASE          0x00000000 /* Flash Bank #1 */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (64)    /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (64)    /* max number of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /*----------------------------------------------------------------------
  * Using SMC91C111 LAN chip
index 9c9591341191ee83309a202fac4d3f74e392687a..3e726a01deb0d5bba8099edcd118296fe28c6232 100644 (file)
@@ -37,8 +37,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * select serial console configuration
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "LPD7A404> "    /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "LPD7A404> "    /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0300000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0500000      /* 2 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0xc0300000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0500000      /* 2 MB in DRAM */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xc0f00000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xc0f00000      /* default load address */
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /* size and location of u-boot in flash */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (256<<10)
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (256<<10)
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /* Address and size of Primary Environment Sector      */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0xFC0000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0xFC0000)
 #define CONFIG_ENV_SIZE                0x40000
 
 #endif  /* __LPD7A404_H_ */
index 21a6c2987fae802f0689d2fcac6067d7d342d21d..b158b741ba36d58021759308ead28c74d5c77c4c 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_LARGE_FLASH                0xffc00000      /* 4MB flash address CS0 */
-#define CFG_SMALL_FLASH                0xff900000      /* 1MB flash address CS2 */
-#define CFG_SRAM_BASE          0xff800000      /* 1MB SRAM  address CS2 */
-#define CFG_EPLD_BASE          0xff000000      /* EPLD and FRAM     CS1 */
+#define CONFIG_SYS_LARGE_FLASH         0xffc00000      /* 4MB flash address CS0 */
+#define CONFIG_SYS_SMALL_FLASH         0xff900000      /* 1MB flash address CS2 */
+#define CONFIG_SYS_SRAM_BASE           0xff800000      /* 1MB SRAM  address CS2 */
+#define CONFIG_SYS_EPLD_BASE           0xff000000      /* EPLD and FRAM     CS1 */
 
-#define CFG_ISRAM_BASE         0xf8000000      /* internal 8k SRAM (L2 cache) */
+#define CONFIG_SYS_ISRAM_BASE          0xf8000000      /* internal 8k SRAM (L2 cache) */
 
-#define CFG_PERIPHERAL_BASE     0xf0000000     /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xf0000000      /* internal peripherals */
 
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory */
-#define CFG_PCI_BASE           0xd0000000      /* internal PCI regs */
-#define CFG_PCI_TARGBASE       0x80000000      /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory */
+#define CONFIG_SYS_PCI_BASE            0xd0000000      /* internal PCI regs */
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000      /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 
-#if CFG_LARGE_FLASH == 0xffc00000
-#define CFG_FLASH_BASE         CFG_LARGE_FLASH
+#if CONFIG_SYS_LARGE_FLASH == 0xffc00000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_LARGE_FLASH
 #else
-#define CFG_FLASH_BASE         CFG_SMALL_FLASH
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_SMALL_FLASH
 #endif
 
-#if CFG_SRAM_BASE
-#define CFG_KBYTES_SDRAM       1024*2
+#if CONFIG_SYS_SRAM_BASE
+#define CONFIG_SYS_KBYTES_SDRAM        1024*2
 #else
-#define CFG_KBYTES_SDRAM       1024
+#define CONFIG_SYS_KBYTES_SDRAM        1024
 #endif
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in SDRAM)
  *----------------------------------------------------------------------*/
-#define CFG_INIT_RAM_ADDR      CFG_ISRAM_BASE
-#define CFG_INIT_RAM_END       (8 << 10)
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_END        (8 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#define CFG_EXT_SERIAL_CLOCK   11059200 /* external 11.059MHz clk */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    11059200 /* external 11.059MHz clk */
 #undef  CONFIG_UART1_CONSOLE           /* define if you want console on UART1 */
 
 /*-----------------------------------------------------------------------
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS    3       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
-#define CFG_FLASH_ADDR0         0x555
-#define CFG_FLASH_ADDR1         0x2aa
-#define CFG_FLASH_WORD_SIZE     unsigned char
+#define CONFIG_SYS_FLASH_ADDR0         0x555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /*
  * Default environment variables
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#undef  CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#undef  CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0x4403 /* whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x4403  /* whatever */
 
 #endif
 
index 3c921c0c9240dace45537de3064ad2c69938f8d1..208910eb9447f5b06b6eb3ed5a8c85a1d3319955 100644 (file)
@@ -49,8 +49,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "$ "            /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "$ "            /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR  (CFG_DRAM_BASE + 0x8000) /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_DRAM_BASE + 0x8000) /* default load address */
 
-#define CFG_HZ                 3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x161           /* set core clock to 400/200/100 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x161           /* set core clock to 400/200/100 MHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_MMC_BASE           0xF0000000
+#define CONFIG_SYS_MMC_BASE            0xF0000000
 
 /*
  * Stack sizes
 #define PHYS_FLASH_BANK_SIZE   0x02000000 /* 32 MB Banks */
 #define PHYS_FLASH_SECT_SIZE   0x00040000 /* 256 KB sectors (x2) */
 
-#define CFG_DRAM_BASE          0xa0000000
-#define CFG_DRAM_SIZE          0x04000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000
+#define CONFIG_SYS_DRAM_SIZE           0x04000000
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 #define FPGA_REGS_BASE_PHYSICAL 0x08000000
 
 /*
  * GPIO settings
  */
-#define CFG_GPSR0_VAL          0x00008000
-#define CFG_GPSR1_VAL          0x00FC0382
-#define CFG_GPSR2_VAL          0x0001FFFF
-#define CFG_GPCR0_VAL          0x00000000
-#define CFG_GPCR1_VAL          0x00000000
-#define CFG_GPCR2_VAL          0x00000000
-#define CFG_GPDR0_VAL          0x0060A800
-#define CFG_GPDR1_VAL          0x00FF0382
-#define CFG_GPDR2_VAL          0x0001C000
-#define CFG_GAFR0_L_VAL                0x98400000
-#define CFG_GAFR0_U_VAL                0x00002950
-#define CFG_GAFR1_L_VAL                0x000A9558
-#define CFG_GAFR1_U_VAL                0x0005AAAA
-#define CFG_GAFR2_L_VAL                0xA0000000
-#define CFG_GAFR2_U_VAL                0x00000002
-
-#define CFG_PSSR_VAL           0x20
+#define CONFIG_SYS_GPSR0_VAL           0x00008000
+#define CONFIG_SYS_GPSR1_VAL           0x00FC0382
+#define CONFIG_SYS_GPSR2_VAL           0x0001FFFF
+#define CONFIG_SYS_GPCR0_VAL           0x00000000
+#define CONFIG_SYS_GPCR1_VAL           0x00000000
+#define CONFIG_SYS_GPCR2_VAL           0x00000000
+#define CONFIG_SYS_GPDR0_VAL           0x0060A800
+#define CONFIG_SYS_GPDR1_VAL           0x00FF0382
+#define CONFIG_SYS_GPDR2_VAL           0x0001C000
+#define CONFIG_SYS_GAFR0_L_VAL         0x98400000
+#define CONFIG_SYS_GAFR0_U_VAL         0x00002950
+#define CONFIG_SYS_GAFR1_L_VAL         0x000A9558
+#define CONFIG_SYS_GAFR1_U_VAL         0x0005AAAA
+#define CONFIG_SYS_GAFR2_L_VAL         0xA0000000
+#define CONFIG_SYS_GAFR2_U_VAL         0x00000002
+
+#define CONFIG_SYS_PSSR_VAL            0x20
 
 /*
  * Memory settings
  */
-#define CFG_MSC0_VAL           0x23F223F2
-#define CFG_MSC1_VAL           0x3FF1A441
-#define CFG_MSC2_VAL           0x7FF97FF1
-#define CFG_MDCNFG_VAL         0x00001AC9
-#define CFG_MDREFR_VAL         0x00018018
-#define CFG_MDMRS_VAL          0x00000000
+#define CONFIG_SYS_MSC0_VAL            0x23F223F2
+#define CONFIG_SYS_MSC1_VAL            0x3FF1A441
+#define CONFIG_SYS_MSC2_VAL            0x7FF97FF1
+#define CONFIG_SYS_MDCNFG_VAL          0x00001AC9
+#define CONFIG_SYS_MDREFR_VAL          0x00018018
+#define CONFIG_SYS_MDMRS_VAL           0x00000000
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000000
-#define CFG_MCMEM0_VAL         0x00010504
-#define CFG_MCMEM1_VAL         0x00010504
-#define CFG_MCATT0_VAL         0x00010504
-#define CFG_MCATT1_VAL         0x00010504
-#define CFG_MCIO0_VAL          0x00004715
-#define CFG_MCIO1_VAL          0x00004715
+#define CONFIG_SYS_MECR_VAL            0x00000000
+#define CONFIG_SYS_MCMEM0_VAL          0x00010504
+#define CONFIG_SYS_MCMEM1_VAL          0x00010504
+#define CONFIG_SYS_MCATT0_VAL          0x00010504
+#define CONFIG_SYS_MCATT1_VAL          0x00010504
+#define CONFIG_SYS_MCIO0_VAL           0x00004715
+#define CONFIG_SYS_MCIO1_VAL           0x00004715
 
 #define _LED                   0x08000010
 #define LED_BLANK              0x08000040
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128  /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128  /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (25*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (25*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* NOTE: many default partitioning schemes assume the kernel starts at the
  * second sector, not an environment.  You have been warned!
  */
-#define        CFG_MONITOR_LEN         PHYS_FLASH_SECT_SIZE
+#define        CONFIG_SYS_MONITOR_LEN          PHYS_FLASH_SECT_SIZE
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + PHYS_FLASH_SECT_SIZE)
 #define CONFIG_ENV_SECT_SIZE   PHYS_FLASH_SECT_SIZE
index e4ee099fa8526f2bbbc2a1579f5c89f147824ddc..d52a5e0cf45d812f35332df723da52a724a98885 100644 (file)
 #undef CONFIG_BOOTARGS
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_CACHE    | \
-                                CFG_POST_WATCHDOG | \
-                                CFG_POST_RTC      | \
-                                CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_UART     | \
-                                CFG_POST_ETHER    | \
-                                CFG_POST_I2C      | \
-                                CFG_POST_SPI      | \
-                                CFG_POST_USB      | \
-                                CFG_POST_SPR      | \
-                                CFG_POST_SYSMON)
+#define CONFIG_POST            (CONFIG_SYS_POST_CACHE     | \
+                                CONFIG_SYS_POST_WATCHDOG | \
+                                CONFIG_SYS_POST_RTC       | \
+                                CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_UART      | \
+                                CONFIG_SYS_POST_ETHER    | \
+                                CONFIG_SYS_POST_I2C       | \
+                                CONFIG_SYS_POST_SPI       | \
+                                CONFIG_SYS_POST_USB       | \
+                                CONFIG_SYS_POST_SPR       | \
+                                CONFIG_SYS_POST_SYSMON)
 
 /*
  * Keyboard commands:
        "verify=no"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #define        CONFIG_WATCHDOG         1       /* watchdog enabled             */
-#define        CFG_WATCHDOG_FREQ       (CFG_HZ / 20)
+#define        CONFIG_SYS_WATCHDOG_FREQ       (CONFIG_SYS_HZ / 20)
 
 #undef CONFIG_STATUS_LED               /* Status LED disabled          */
 
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define        CONFIG_SYS_HUSH_PARSER          1       /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define CFG_LOAD_ADDR          0x00100000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x00100000      /* default load address */
 
-#define CFG_PIO_MODE           0       /* IDE interface in PIO Mode 0  */
+#define CONFIG_SYS_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*
  * When the watchdog is enabled, output must be fast enough in Linux.
  */
 #ifdef CONFIG_WATCHDOG
-#define CFG_BAUDRATE_TABLE     {               38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {               38400, 57600, 115200 }
 #else
-#define CFG_BAUDRATE_TABLE     {  9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      {  9600, 19200, 38400, 57600, 115200 }
 #endif
 
 /*----------------------------------------------------------------------*/
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      68  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       68  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG) || defined(CONFIG_CMD_IDE)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define CFG_MONITOR_LEN                (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   180000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   600     /* Timeout for Flash Write (in ms)      */
-#define CFG_FLASH_USE_BUFFER_WRITE
-#define CFG_FLASH_BUFFER_WRITE_TOUT    2048    /* Timeout for Flash Buffer Write (in ms)       */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    180000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    600     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_BUFFER_WRITE_TOUT     2048    /* Timeout for Flash Buffer Write (in ms)       */
 /* Buffer size.
    We have two flash devices connected in parallel.
    Each device incorporates a Write Buffer of 32 bytes.
  */
-#define CFG_FLASH_BUFFER_SIZE  (2*32)
+#define CONFIG_SYS_FLASH_BUFFER_SIZE   (2*32)
 
 /* Put environment in flash which is much faster to boot than using the EEPROM */
 #define CONFIG_ENV_IS_IN_FLASH 1
  * I2C/EEPROM Configuration
  */
 
-#define CFG_I2C_AUDIO_ADDR     0x28    /* Audio volume control                 */
-#define CFG_I2C_SYSMON_ADDR    0x2E    /* LM87 System Monitor                  */
-#define CFG_I2C_RTC_ADDR       0x51    /* PCF8563 RTC                          */
-#define CFG_I2C_POWER_A_ADDR   0x52    /* PCMCIA/USB power switch, channel A   */
-#define CFG_I2C_POWER_B_ADDR   0x53    /* PCMCIA/USB power switch, channel B   */
-#define CFG_I2C_KEYBD_ADDR     0x56    /* PIC LWE keyboard                     */
-#define CFG_I2C_PICIO_ADDR     0x57    /* PIC IO Expander                      */
+#define CONFIG_SYS_I2C_AUDIO_ADDR      0x28    /* Audio volume control                 */
+#define CONFIG_SYS_I2C_SYSMON_ADDR     0x2E    /* LM87 System Monitor                  */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51    /* PCF8563 RTC                          */
+#define CONFIG_SYS_I2C_POWER_A_ADDR    0x52    /* PCMCIA/USB power switch, channel A   */
+#define CONFIG_SYS_I2C_POWER_B_ADDR    0x53    /* PCMCIA/USB power switch, channel B   */
+#define CONFIG_SYS_I2C_KEYBD_ADDR      0x56    /* PIC LWE keyboard                     */
+#define CONFIG_SYS_I2C_PICIO_ADDR      0x57    /* PIC IO Expander                      */
 
 #undef CONFIG_USE_FRAM                 /* Use FRAM instead of EEPROM   */
 
 #ifdef CONFIG_USE_FRAM /* use FRAM */
-#define CFG_I2C_EEPROM_ADDR    0x55    /* FRAM FM24CL64                */
-#define CFG_I2C_EEPROM_ADDR_LEN        2
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x55    /* FRAM FM24CL64                */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 #else                  /* use EEPROM */
-#define CFG_I2C_EEPROM_ADDR    0x58    /* EEPROM AT24C164              */
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* takes up to 10 msec  */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x58    /* EEPROM AT24C164              */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* takes up to 10 msec  */
 #endif /* CONFIG_USE_FRAM */
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
 
 /* List of I2C addresses to be verified by POST */
 #ifdef CONFIG_USE_FRAM
-#define I2C_ADDR_LIST  {  /*   CFG_I2C_AUDIO_ADDR, */  \
-                               CFG_I2C_SYSMON_ADDR,    \
-                               CFG_I2C_RTC_ADDR,       \
-                               CFG_I2C_POWER_A_ADDR,   \
-                               CFG_I2C_POWER_B_ADDR,   \
-                               CFG_I2C_KEYBD_ADDR,     \
-                               CFG_I2C_PICIO_ADDR,     \
-                               CFG_I2C_EEPROM_ADDR,    \
+#define I2C_ADDR_LIST  {  /*   CONFIG_SYS_I2C_AUDIO_ADDR, */   \
+                               CONFIG_SYS_I2C_SYSMON_ADDR,     \
+                               CONFIG_SYS_I2C_RTC_ADDR,        \
+                               CONFIG_SYS_I2C_POWER_A_ADDR,    \
+                               CONFIG_SYS_I2C_POWER_B_ADDR,    \
+                               CONFIG_SYS_I2C_KEYBD_ADDR,      \
+                               CONFIG_SYS_I2C_PICIO_ADDR,      \
+                               CONFIG_SYS_I2C_EEPROM_ADDR,     \
                        }
 #else  /* Use EEPROM - which show up on 8 consequtive addresses */
-#define I2C_ADDR_LIST  {  /*   CFG_I2C_AUDIO_ADDR, */  \
-                               CFG_I2C_SYSMON_ADDR,    \
-                               CFG_I2C_RTC_ADDR,       \
-                               CFG_I2C_POWER_A_ADDR,   \
-                               CFG_I2C_POWER_B_ADDR,   \
-                               CFG_I2C_KEYBD_ADDR,     \
-                               CFG_I2C_PICIO_ADDR,     \
-                               CFG_I2C_EEPROM_ADDR+0,  \
-                               CFG_I2C_EEPROM_ADDR+1,  \
-                               CFG_I2C_EEPROM_ADDR+2,  \
-                               CFG_I2C_EEPROM_ADDR+3,  \
-                               CFG_I2C_EEPROM_ADDR+4,  \
-                               CFG_I2C_EEPROM_ADDR+5,  \
-                               CFG_I2C_EEPROM_ADDR+6,  \
-                               CFG_I2C_EEPROM_ADDR+7,  \
+#define I2C_ADDR_LIST  {  /*   CONFIG_SYS_I2C_AUDIO_ADDR, */   \
+                               CONFIG_SYS_I2C_SYSMON_ADDR,     \
+                               CONFIG_SYS_I2C_RTC_ADDR,        \
+                               CONFIG_SYS_I2C_POWER_A_ADDR,    \
+                               CONFIG_SYS_I2C_POWER_B_ADDR,    \
+                               CONFIG_SYS_I2C_KEYBD_ADDR,      \
+                               CONFIG_SYS_I2C_PICIO_ADDR,      \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+0,   \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+1,   \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+2,   \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+3,   \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+4,   \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+5,   \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+6,   \
+                               CONFIG_SYS_I2C_EEPROM_ADDR+7,   \
                        }
 #endif /* CONFIG_USE_FRAM */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if 0 && defined(CONFIG_WATCHDOG)      /* LWMON uses external MAX706TESA WD */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  */
 /* EARB, DBGC and DBPC are initialised by the HCW */
 /* => 0x000000C0 */
-#define CFG_SIUMCR     (SIUMCR_GB5E)
-/*#define CFG_SIUMCR   (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01) */
+#define CONFIG_SYS_SIUMCR      (SIUMCR_GB5E)
+/*#define CONFIG_SYS_SIUMCR    (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01) */
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit, set PLL multiplication factor !
  */
 /* 0x00405000 */
-#define CFG_PLPRCR_MF  4       /* (4+1) * 13.2 = 66 MHz Clock */
-#define CFG_PLPRCR                                                     \
-               (       (CFG_PLPRCR_MF << PLPRCR_MF_SHIFT) |            \
+#define CONFIG_SYS_PLPRCR_MF   4       /* (4+1) * 13.2 = 66 MHz Clock */
+#define CONFIG_SYS_PLPRCR                                                      \
+               (       (CONFIG_SYS_PLPRCR_MF << PLPRCR_MF_SHIFT) |             \
                        PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST |    \
                        /*PLPRCR_CSRC|*/ PLPRCR_LPM_NORMAL |            \
                        PLPRCR_CSR    /*| PLPRCR_LOLRE|PLPRCR_FIOPD*/   \
                )
 
-#define CONFIG_8xx_GCLK_FREQ   ((CFG_PLPRCR_MF+1)*13200000)
+#define CONFIG_8xx_GCLK_FREQ   ((CONFIG_SYS_PLPRCR_MF+1)*13200000)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF11
 /* 0x01800000 */
-#define CFG_SCCR       (SCCR_COM00     | /*SCCR_TBS|*/         \
+#define CONFIG_SYS_SCCR        (SCCR_COM00     | /*SCCR_TBS|*/         \
                         SCCR_RTDIV     |   SCCR_RTSEL    |     \
                         /*SCCR_CRQEN|*/  /*SCCR_PRQEN|*/       \
                         SCCR_EBDF00 |   SCCR_DFSYNC00 |        \
  *-----------------------------------------------------------------------
  */
 /* 0x00C3 => 0x0003 */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration Register               19-4
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR 0x0000
+#define CONFIG_SYS_RCCR 0x0000
 
 /*-----------------------------------------------------------------------
  * RMDS - RISC Microcode Development Support Control Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMDS 0
+#define CONFIG_SYS_RMDS 0
 
 /*-----------------------------------------------------------------------
  *
  * Interrupt Levels
  *-----------------------------------------------------------------------
  */
-#define CFG_CPM_INTERRUPT      13      /* SIU_LEVEL6   */
+#define CONFIG_SYS_CPM_INTERRUPT       13      /* SIU_LEVEL6   */
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0x50000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0x54000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0x58000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0x5C000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0x50000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0x54000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0x58000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0x5C000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 #define CONFIG_SUPPORT_VFAT            /* enable VFAT support */
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0xFF000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFF000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFF000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 00, TRLX = 0, CSNT = 1, SCY = 8, EHTR = 0       */
-#define CFG_OR_TIMING_FLASH    (OR_SCY_8_CLK)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_SCY_8_CLK)
 
-#define CFG_OR0_REMAP  ( CFG_REMAP_OR_AM | OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
-                               CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | OR_ACS_DIV1 | OR_BI | \
-                               CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   ( CONFIG_SYS_REMAP_OR_AM | OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
+                               CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | OR_ACS_DIV1 | OR_BI | \
+                               CONFIG_SYS_OR_TIMING_FLASH)
 /* 16 bit, bank valid */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V )
 
 /*
  * BR3/OR3: SDRAM
 
 #define SDRAM_MAX_SIZE         0x08000000      /* max 128 MB SDRAM */
 
-#define CFG_OR3_PRELIM (SDRAM_PRELIM_OR_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING )
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR3_PRELIM  (SDRAM_PRELIM_OR_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING )
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /*
  * BR5/OR5: Touch Panel
 #define TOUCHPNL_OR_AM         0xFFFF8000
 #define TOUCHPNL_TIMING                OR_SCY_0_CLK
 
-#define CFG_OR5_PRELIM (TOUCHPNL_OR_AM | OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
+#define CONFIG_SYS_OR5_PRELIM  (TOUCHPNL_OR_AM | OR_CSNT_SAM | OR_ACS_DIV1 | OR_BI | \
                         TOUCHPNL_TIMING )
-#define CFG_BR5_PRELIM ((TOUCHPNL_BASE & BR_BA_MSK) | BR_PS_32 | BR_V )
+#define CONFIG_SYS_BR5_PRELIM  ((TOUCHPNL_BASE & BR_BA_MSK) | BR_PS_32 | BR_V )
 
-#define        CFG_MEMORY_75
-#undef CFG_MEMORY_7E
-#undef CFG_MEMORY_8E
+#define        CONFIG_SYS_MEMORY_75
+#undef CONFIG_SYS_MEMORY_7E
+#undef CONFIG_SYS_MEMORY_8E
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MPTPR      0x200
+#define CONFIG_SYS_MPTPR       0x200
 
 /*
  * MAMR settings for SDRAM
  */
 
-#define CFG_MAMR_8COL  0x80802114
-#define CFG_MAMR_9COL  0x80904114
+#define CONFIG_SYS_MAMR_8COL   0x80802114
+#define CONFIG_SYS_MAMR_9COL   0x80904114
 
 /*
  * MAR setting for SDRAM
  */
-#define CFG_MAR                0x00000088
+#define CONFIG_SYS_MAR         0x00000088
 
 /*
  * Internal Definitions
index 7540c8e852a665694a487de2b3a9f3b6b2d94568..e0dbd6113c749fa9fe9a4bd435acc86c16e4a0db 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (512 * 1024)    /* Reserve 512 kB for Monitor   */
-#define CFG_MALLOC_LEN         (512 * 1024)    /* Reserve 512 kB for malloc()  */
-
-#define CFG_BOOT_BASE_ADDR     0xf0000000
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_FLASH_BASE         0xf8000000      /* start of FLASH       */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_LIME_BASE_0         0xc0000000
-#define CFG_LIME_BASE_1         0xc1000000
-#define CFG_LIME_BASE_2         0xc2000000
-#define CFG_LIME_BASE_3         0xc3000000
-#define CFG_FPGA_BASE_0         0xc4000000
-#define CFG_FPGA_BASE_1         0xc4200000
-#define CFG_OCM_BASE           0xe0010000      /* ocm                  */
-#define CFG_PCI_BASE           0xe0000000      /* Internal PCI regs    */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory    */
-#define CFG_PCI_MEMBASE1       CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2       CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3       CFG_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024)    /* Reserve 512 kB for malloc()  */
+
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xf0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_FLASH_BASE          0xf8000000      /* start of FLASH       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_LIME_BASE_0         0xc0000000
+#define CONFIG_SYS_LIME_BASE_1         0xc1000000
+#define CONFIG_SYS_LIME_BASE_2         0xc2000000
+#define CONFIG_SYS_LIME_BASE_3         0xc3000000
+#define CONFIG_SYS_FPGA_BASE_0         0xc4000000
+#define CONFIG_SYS_FPGA_BASE_1         0xc4200000
+#define CONFIG_SYS_OCM_BASE            0xe0010000      /* ocm                  */
+#define CONFIG_SYS_PCI_BASE            0xe0000000      /* Internal PCI regs    */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory    */
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
 
 /* Don't change either of these */
-#define CFG_PERIPHERAL_BASE    0xef600000      /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000      /* internal peripherals */
 
-#define CFG_USB2D0_BASE                0xe0000100
-#define CFG_USB_DEVICE         0xe0000000
-#define CFG_USB_HOST           0xe0000400
+#define CONFIG_SYS_USB2D0_BASE         0xe0000100
+#define CONFIG_SYS_USB_DEVICE          0xe0000000
+#define CONFIG_SYS_USB_HOST            0xe0000400
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer
  * content during reset (GPT0_COMP6). This way we reserve the OCM (16k)
  * for logbuffer only. (GPT0_COMP1-COMP5 are reserved for logbuffer header.)
  */
-#define CFG_INIT_RAM_DCACHE    1               /* d-cache as init ram  */
-#define CFG_INIT_RAM_ADDR      0x70000000              /* DCache       */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
-#define CFG_POST_ALT_WORD_ADDR (CFG_PERIPHERAL_BASE + GPT0_COMP6)
+#define CONFIG_SYS_INIT_RAM_DCACHE     1               /* d-cache as init ram  */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x70000000              /* DCache       */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
+#define CONFIG_SYS_POST_ALT_WORD_ADDR  (CONFIG_SYS_PERIPHERAL_BASE + GPT0_COMP6)
                                                /* unused GPT0 COMP reg */
-#define CFG_MEM_TOP_HIDE       (4 << 10) /* don't use last 4kbytes     */
+#define CONFIG_SYS_MEM_TOP_HIDE        (4 << 10) /* don't use last 4kbytes     */
                                        /* 440EPx errata CHIP 11        */
-#define CFG_OCM_SIZE           (16 << 10)
+#define CONFIG_SYS_OCM_SIZE            (16 << 10)
 
 /* Additional registers for watchdog timer post test */
 
-#define CFG_WATCHDOG_TIME_ADDR (CFG_PERIPHERAL_BASE + GPT0_MASK2)
-#define CFG_WATCHDOG_FLAGS_ADDR        (CFG_PERIPHERAL_BASE + GPT0_MASK1)
-#define CFG_DSPIC_TEST_ADDR    CFG_WATCHDOG_FLAGS_ADDR
-#define CFG_OCM_STATUS_ADDR    CFG_WATCHDOG_FLAGS_ADDR
-#define CFG_WATCHDOG_MAGIC     0x12480000
-#define CFG_WATCHDOG_MAGIC_MASK        0xFFFF0000
-#define CFG_DSPIC_TEST_MASK    0x00000001
-#define CFG_OCM_STATUS_OK      0x00009A00
-#define CFG_OCM_STATUS_FAIL    0x0000A300
-#define CFG_OCM_STATUS_MASK    0x0000FF00
+#define CONFIG_SYS_WATCHDOG_TIME_ADDR  (CONFIG_SYS_PERIPHERAL_BASE + GPT0_MASK2)
+#define CONFIG_SYS_WATCHDOG_FLAGS_ADDR (CONFIG_SYS_PERIPHERAL_BASE + GPT0_MASK1)
+#define CONFIG_SYS_DSPIC_TEST_ADDR     CONFIG_SYS_WATCHDOG_FLAGS_ADDR
+#define CONFIG_SYS_OCM_STATUS_ADDR     CONFIG_SYS_WATCHDOG_FLAGS_ADDR
+#define CONFIG_SYS_WATCHDOG_MAGIC      0x12480000
+#define CONFIG_SYS_WATCHDOG_MAGIC_MASK 0xFFFF0000
+#define CONFIG_SYS_DSPIC_TEST_MASK     0x00000001
+#define CONFIG_SYS_OCM_STATUS_OK       0x00009A00
+#define CONFIG_SYS_OCM_STATUS_FAIL     0x0000A300
+#define CONFIG_SYS_OCM_STATUS_MASK     0x0000FF00
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK            /* no external clock provided   */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* no external clock provided   */
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI     1
 /* define this if you want console on UART1 */
 #define CONFIG_UART1_CONSOLE   1       /* use UART1 as console         */
 
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
 
-#define CFG_FLASH0             0xFC000000
-#define CFG_FLASH1             0xF8000000
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH1, CFG_FLASH0 }
+#define CONFIG_SYS_FLASH0              0xFC000000
+#define CONFIG_SYS_FLASH1              0xF8000000
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH1, CONFIG_SYS_FLASH0 }
 
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash        */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash        */
 
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
-#define CFG_MBYTES_SDRAM       (256)           /* 256MB                        */
-#define CFG_DDR_CACHED_ADDR    0x40000000      /* setup 2nd TLB cached here    */
+#define CONFIG_SYS_MBYTES_SDRAM        (256)           /* 256MB                        */
+#define CONFIG_SYS_DDR_CACHED_ADDR     0x40000000      /* setup 2nd TLB cached here    */
 #define CONFIG_DDR_DATA_EYE    1               /* use DDR2 optimization        */
 #define CONFIG_DDR_ECC         1               /* enable ECC                   */
-#define CFG_POST_ECC_ON                CFG_POST_ECC
+#define CONFIG_SYS_POST_ECC_ON         CONFIG_SYS_POST_ECC
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_CACHE    | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_ECC_ON   | \
-                                CFG_POST_ETHER    | \
-                                CFG_POST_FPU      | \
-                                CFG_POST_I2C      | \
-                                CFG_POST_MEMORY   | \
-                                CFG_POST_OCM      | \
-                                CFG_POST_RTC      | \
-                                CFG_POST_SPR      | \
-                                CFG_POST_UART     | \
-                                CFG_POST_SYSMON   | \
-                                CFG_POST_WATCHDOG | \
-                                CFG_POST_DSP      | \
-                                CFG_POST_BSPEC1   | \
-                                CFG_POST_BSPEC2   | \
-                                CFG_POST_BSPEC3   | \
-                                CFG_POST_BSPEC4   | \
-                                CFG_POST_BSPEC5)
+#define CONFIG_POST            (CONFIG_SYS_POST_CACHE    | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_ECC_ON   | \
+                                CONFIG_SYS_POST_ETHER     | \
+                                CONFIG_SYS_POST_FPU       | \
+                                CONFIG_SYS_POST_I2C       | \
+                                CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_OCM      | \
+                                CONFIG_SYS_POST_RTC      | \
+                                CONFIG_SYS_POST_SPR      | \
+                                CONFIG_SYS_POST_UART     | \
+                                CONFIG_SYS_POST_SYSMON   | \
+                                CONFIG_SYS_POST_WATCHDOG | \
+                                CONFIG_SYS_POST_DSP      | \
+                                CONFIG_SYS_POST_BSPEC1   | \
+                                CONFIG_SYS_POST_BSPEC2   | \
+                                CONFIG_SYS_POST_BSPEC3   | \
+                                CONFIG_SYS_POST_BSPEC4   | \
+                                CONFIG_SYS_POST_BSPEC5)
 
 #define CONFIG_POST_WATCHDOG  {\
        "Watchdog timer test",                          \
        &lwmon5_watchdog_post_test,                     \
        NULL,                                           \
        NULL,                                           \
-       CFG_POST_WATCHDOG                               \
+       CONFIG_SYS_POST_WATCHDOG                                \
        }
 
 #define CONFIG_POST_BSPEC1    {\
        &dspic_init_post_test,                          \
        NULL,                                           \
        NULL,                                           \
-       CFG_POST_BSPEC1                                 \
+       CONFIG_SYS_POST_BSPEC1                                  \
        }
 
 #define CONFIG_POST_BSPEC2    {\
        &dspic_post_test,                               \
        NULL,                                           \
        NULL,                                           \
-       CFG_POST_BSPEC2                                 \
+       CONFIG_SYS_POST_BSPEC2                                  \
        }
 
 #define CONFIG_POST_BSPEC3    {\
        &fpga_post_test,                                \
        NULL,                                           \
        NULL,                                           \
-       CFG_POST_BSPEC3                                 \
+       CONFIG_SYS_POST_BSPEC3                                  \
        }
 
 #define CONFIG_POST_BSPEC4    {\
        &gdc_post_test,                                 \
        NULL,                                           \
        NULL,                                           \
-       CFG_POST_BSPEC4                                 \
+       CONFIG_SYS_POST_BSPEC4                                  \
        }
 
 #define CONFIG_POST_BSPEC5    {\
        &sysmon1_post_test,                             \
        NULL,                                           \
        NULL,                                           \
-       CFG_POST_BSPEC5                                 \
+       CONFIG_SYS_POST_BSPEC5                                  \
        }
 
-#define CFG_POST_CACHE_ADDR    0x7fff0000 /* free virtual address      */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x7fff0000 /* free virtual address      */
 #define CONFIG_LOGBUFFER
 /* Reserve GPT0_COMP1-COMP5 for logbuffer header */
-#define CONFIG_ALT_LH_ADDR     (CFG_PERIPHERAL_BASE + GPT0_COMP1)
-#define CONFIG_ALT_LB_ADDR     (CFG_OCM_BASE)
-#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
+#define CONFIG_ALT_LH_ADDR     (CONFIG_SYS_PERIPHERAL_BASE + GPT0_COMP1)
+#define CONFIG_ALT_LB_ADDR     (CONFIG_SYS_OCM_BASE)
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1               /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          100000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x53    /* EEPROM AT24C128              */
-#define CFG_I2C_EEPROM_ADDR_LEN 2      /* Bytes of address             */
-#define CFG_EEPROM_PAGE_WRITE_BITS 6   /* The Atmel AT24C128 has       */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x53    /* EEPROM AT24C128              */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6    /* The Atmel AT24C128 has       */
                                        /* 64 byte page write mode using*/
                                        /* last 6 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10   /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10   /* and takes up to 10 msec */
 
 #define CONFIG_RTC_PCF8563     1               /* enable Philips PCF8563 RTC   */
-#define CFG_I2C_RTC_ADDR       0x51            /* Philips PCF8563 RTC address  */
-#define CFG_I2C_KEYBD_ADDR     0x56            /* PIC LWE keyboard             */
-#define CFG_I2C_DSPIC_IO_ADDR  0x57            /* PIC I/O addr               */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51            /* Philips PCF8563 RTC address  */
+#define CONFIG_SYS_I2C_KEYBD_ADDR      0x56            /* PIC LWE keyboard             */
+#define CONFIG_SYS_I2C_DSPIC_IO_ADDR   0x57            /* PIC I/O addr               */
 
 #define        CONFIG_POST_KEY_MAGIC   "3C+3E" /* press F3 + F5 keys to force POST */
 #if 0
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define        CONFIG_IBM_EMAC4_V4     1
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_RESET_DELAY 300
 
 #define CONFIG_HAS_ETH0
-#define CFG_RX_ETH_BUFFER      32      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       32      /* Number of ethernet rx buffers & descriptors */
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_HAS_ETH1                1       /* add support for "eth1addr"   */
  *----------------------------------------------------------------------*/
 #define CONFIG_SUPPORT_VFAT
 
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x100000  /* default load address       */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000  /* default load address       */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 #define CONFIG_PCI                     /* include pci support          */
 #undef CONFIG_PCI_PNP                  /* do (not) pci plug-and-play   */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE*/
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC                         */
-#define CFG_PCI_SUBSYS_ID       0xcafe /* Whatever                     */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC                         */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe  /* Whatever                     */
 
 #define CONFIG_HW_WATCHDOG     1       /* Use external HW-Watchdog     */
 #define CONFIG_WD_PERIOD       40000   /* in usec */
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
-#define CFG_FLASH              CFG_FLASH_BASE
+#define CONFIG_SYS_FLASH               CONFIG_SYS_FLASH_BASE
 
 /* Memory Bank 0 (NOR-FLASH) initialization                                    */
-#define CFG_EBC_PB0AP          0x03050200
-#define CFG_EBC_PB0CR          (CFG_FLASH | 0xfc000)
+#define CONFIG_SYS_EBC_PB0AP           0x03050200
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH | 0xfc000)
 
 /* Memory Bank 1 (Lime) initialization                                         */
-#define CFG_EBC_PB1AP          0x01004380
-#define CFG_EBC_PB1CR          (CFG_LIME_BASE_0 | 0xdc000)
+#define CONFIG_SYS_EBC_PB1AP           0x01004380
+#define CONFIG_SYS_EBC_PB1CR           (CONFIG_SYS_LIME_BASE_0 | 0xdc000)
 
 /* Memory Bank 2 (FPGA) initialization                                         */
-#define CFG_EBC_PB2AP          0x01004400
-#define CFG_EBC_PB2CR          (CFG_FPGA_BASE_0 | 0x1c000)
+#define CONFIG_SYS_EBC_PB2AP           0x01004400
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_FPGA_BASE_0 | 0x1c000)
 
 /* Memory Bank 3 (FPGA2) initialization                                                */
-#define CFG_EBC_PB3AP          0x01004400
-#define CFG_EBC_PB3CR          (CFG_FPGA_BASE_1 | 0x1c000)
+#define CONFIG_SYS_EBC_PB3AP           0x01004400
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_FPGA_BASE_1 | 0x1c000)
 
-#define CFG_EBC_CFG            0xb8400000
+#define CONFIG_SYS_EBC_CFG             0xb8400000
 
 /*-----------------------------------------------------------------------
  * Graphics (Fujitsu Lime)
  *----------------------------------------------------------------------*/
 /* SDRAM Clock frequency adjustment register */
-#define CFG_LIME_SDRAM_CLOCK   0xC1FC0038
+#define CONFIG_SYS_LIME_SDRAM_CLOCK    0xC1FC0038
 /* Lime Clock frequency is to set 100MHz */
-#define CFG_LIME_CLOCK_100MHZ  0x00000
+#define CONFIG_SYS_LIME_CLOCK_100MHZ   0x00000
 #if 0
 /* Lime Clock frequency for 133MHz */
-#define CFG_LIME_CLOCK_133MHZ  0x10000
+#define CONFIG_SYS_LIME_CLOCK_133MHZ   0x10000
 #endif
 
 /* SDRAM Parameter register */
-#define CFG_LIME_MMR           0xC1FCFFFC
+#define CONFIG_SYS_LIME_MMR            0xC1FCFFFC
 /* SDRAM parameter value; was 0x414FB7F2, caused several vertical bars
    and pixel flare on display when 133MHz was configured. According to
    SDRAM chip datasheet CAS Latency is 3 for 133MHz and -75 Speed Grade */
-#ifdef CFG_LIME_CLOCK_133MHZ
-#define CFG_LIME_MMR_VALUE     0x414FB7F3
+#ifdef CONFIG_SYS_LIME_CLOCK_133MHZ
+#define CONFIG_SYS_LIME_MMR_VALUE      0x414FB7F3
 #else
-#define CFG_LIME_MMR_VALUE     0x414FB7F2
+#define CONFIG_SYS_LIME_MMR_VALUE      0x414FB7F2
 #endif
 
 /*-----------------------------------------------------------------------
  * GPIO Setup
  *----------------------------------------------------------------------*/
-#define CFG_GPIO_PHY1_RST      12
-#define CFG_GPIO_FLASH_WP      14
-#define CFG_GPIO_PHY0_RST      22
-#define CFG_GPIO_DSPIC_READY   51
-#define CFG_GPIO_EEPROM_EXT_WP 55
-#define CFG_GPIO_HIGHSIDE      56
-#define CFG_GPIO_EEPROM_INT_WP 57
-#define CFG_GPIO_BOARD_RESET   58
-#define CFG_GPIO_LIME_S                59
-#define CFG_GPIO_LIME_RST      60
-#define CFG_GPIO_SYSMON_STATUS 62
-#define CFG_GPIO_WATCHDOG      63
+#define CONFIG_SYS_GPIO_PHY1_RST       12
+#define CONFIG_SYS_GPIO_FLASH_WP       14
+#define CONFIG_SYS_GPIO_PHY0_RST       22
+#define CONFIG_SYS_GPIO_DSPIC_READY    51
+#define CONFIG_SYS_GPIO_EEPROM_EXT_WP  55
+#define CONFIG_SYS_GPIO_HIGHSIDE       56
+#define CONFIG_SYS_GPIO_EEPROM_INT_WP  57
+#define CONFIG_SYS_GPIO_BOARD_RESET    58
+#define CONFIG_SYS_GPIO_LIME_S         59
+#define CONFIG_SYS_GPIO_LIME_RST       60
+#define CONFIG_SYS_GPIO_SYSMON_STATUS  62
+#define CONFIG_SYS_GPIO_WATCHDOG       63
 
 /*-----------------------------------------------------------------------
  * PPC440 GPIO Configuration
  */
-#define CFG_4xx_GPIO_TABLE { /*          Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_0}, /* GPIO0        EBC_ADDR(7)     DMA_REQ(2)      */      \
index 32403f7de6ec2c03db300ecd3fa6db91c575f6ce..f09214dce9c37d5b76c57f4a2653a5e541000755 100644 (file)
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* Bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* Bytes reserved for initial data */
 
 #define CONFIG_BAUDRATE                        115200
 
 /* Hardcode so no __divsi3 : AT91C_MASTER_CLOCK / baudrate / 16 */
-#define CFG_AT91C_BRGR_DIVISOR 33
+#define CONFIG_SYS_AT91C_BRGR_DIVISOR  33
 
 /*
  * Hardware drivers
  */
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER        1
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CFG_FLASH_USE_BUFFER_WRITE
-#define CFG_FLASH_PROTECTION   /*for Intel P30 Flash*/
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+#define CONFIG_SYS_FLASH_PROTECTION    /*for Intel P30 Flash*/
 #define CONFIG_HARD_I2C
-#define CFG_I2C_SPEED          100
-#define CFG_I2C_SLAVE          0
-#define CFG_CONSOLE_INFO_QUIET
+#define CONFIG_SYS_I2C_SPEED           100
+#define CONFIG_SYS_I2C_SLAVE           0
+#define CONFIG_SYS_CONSOLE_INFO_QUIET
 #undef CONFIG_ENV_IS_IN_EEPROM
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_EEPROM_AT24C16
-#define CFG_I2C_RTC_ADDR               0x32
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_AT24C16
+#define CONFIG_SYS_I2C_RTC_ADDR                0x32
 #undef CONFIG_RTC_DS1338
 #define CONFIG_RTC_RS5C372A
 #undef CONFIG_POST
 #define CONFIG_CMD_FLASH
 #define CONFIG_CMD_ENV
 
-#define CFG_HUSH_PARSER
+#define CONFIG_SYS_HUSH_PARSER
 #define CONFIG_AUTO_COMPLETE
-#define CFG_PROMPT_HUSH_PS2        ">>"
+#define CONFIG_SYS_PROMPT_HUSH_PS2         ">>"
 
-#define CFG_MAX_NAND_DEVICE    0 /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE     0 /* Max number of NAND devices */
 #define SECTORSIZE                          512
 
 #define ADDR_COLUMN            1
 #define PHYS_SDRAM             0x20000000
 #define PHYS_SDRAM_SIZE        0x2000000 /* 32 megs */
 
-#define CFG_MEMTEST_START      0x21000000 /* PHYS_SDRAM */
-/* CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 262144 */
-#define CFG_MEMTEST_END        0x00100000
+#define CONFIG_SYS_MEMTEST_START       0x21000000 /* PHYS_SDRAM */
+/* CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144 */
+#define CONFIG_SYS_MEMTEST_END 0x00100000
 
 #define CONFIG_DRIVER_ETHER
 #define CONFIG_NET_RETRY_COUNT 20
 
 #define PHYS_FLASH_1           0x10000000
 #define PHYS_FLASH_SIZE        0x800000 /* 8 megs main flash */
-#define CFG_FLASH_BASE         PHYS_FLASH_1
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_MAX_FLASH_SECT     256
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      256
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #ifdef CONFIG_ENV_IS_IN_DATAFLASH
 #define CONFIG_ENV_OFFSET              0x20000
-#define CONFIG_ENV_ADDR                (CFG_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                0x2000
 #else
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SIZE                1024
 #endif
 
-#define CFG_LOAD_ADDR          0x21000000 /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x21000000 /* default load address */
 
 /* use for protect flash sectors */
-#define CFG_BOOT_SIZE          0x6000 /* 24 KBytes */
-#define CFG_U_BOOT_BASE        (PHYS_FLASH_1 + 0x10000)
-#define CFG_U_BOOT_SIZE        0x10000 /* 64 KBytes */
+#define CONFIG_SYS_BOOT_SIZE           0x6000 /* 24 KBytes */
+#define CONFIG_SYS_U_BOOT_BASE (PHYS_FLASH_1 + 0x10000)
+#define CONFIG_SYS_U_BOOT_SIZE 0x10000 /* 64 KBytes */
 
-#define CFG_BAUDRATE_TABLE     { 115200 , 19200, 38400, 57600, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 , 19200, 38400, 57600, 9600 }
 
-#define CFG_PROMPT             "U-Boot> " /* Monitor Command Prompt */
-#define CFG_CBSIZE             512 /* Console I/O Buffer Size */
-#define CFG_MAXARGS            16 /* max number of command args */
+#define CONFIG_SYS_PROMPT              "U-Boot> " /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              512 /* Console I/O Buffer Size */
+#define CONFIG_SYS_MAXARGS             16 /* max number of command args */
 /* Print Buffer Size */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
 
-#define CFG_HZ 1000
-#define CFG_HZ_CLOCK           AT91C_MASTER_CLOCK/2
+#define CONFIG_SYS_HZ 1000
+#define CONFIG_SYS_HZ_CLOCK            AT91C_MASTER_CLOCK/2
 
 #define CONFIG_STACKSIZE       (32*1024) /* regular stack */
 
index b7dddb70ea338673bcf85f5b042aa83bb5a96bec..52339f9c6351a03e9a451983dcd005b5bef61bb0 100644 (file)
@@ -53,9 +53,9 @@
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xFC000000
-#define CFG_FPGA_BASE          0xF0000000
-#define CFG_PERIPHERAL_BASE    0xEF600000      /* internal peripherals*/
+#define CONFIG_SYS_FLASH_BASE          0xFC000000
+#define CONFIG_SYS_FPGA_BASE           0xF0000000
+#define CONFIG_SYS_PERIPHERAL_BASE     0xEF600000      /* internal peripherals*/
 
 /*-----------------------------------------------------------------------
  * Initial RAM & Stack Pointer Configuration Options
  *   the latter of which is less than desireable since it requires
  *   setting up the SDRAM and ECC in assembly code.
  *
- *   To use (2), define 'CFG_INIT_DCACHE_CS' to be an unused chip
+ *   To use (2), define 'CONFIG_SYS_INIT_DCACHE_CS' to be an unused chip
  *   select on the External Bus Controller (EBC) and then select a
- *   value for 'CFG_INIT_RAM_ADDR' outside of the range of valid,
- *   physical SDRAM. Otherwise, undefine 'CFG_INIT_DCACHE_CS' and
- *   select a value for 'CFG_INIT_RAM_ADDR' within the range of valid,
+ *   value for 'CONFIG_SYS_INIT_RAM_ADDR' outside of the range of valid,
+ *   physical SDRAM. Otherwise, undefine 'CONFIG_SYS_INIT_DCACHE_CS' and
+ *   select a value for 'CONFIG_SYS_INIT_RAM_ADDR' within the range of valid,
  *   physical SDRAM to use (3).
  *-----------------------------------------------------------------------*/
 
-#define CFG_INIT_DCACHE_CS     4
+#define CONFIG_SYS_INIT_DCACHE_CS      4
 
-#if defined(CFG_INIT_DCACHE_CS)
-#define CFG_INIT_RAM_ADDR      (CFG_SDRAM_BASE + ( 1 << 30))   /*  1 GiB */
+#if defined(CONFIG_SYS_INIT_DCACHE_CS)
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_SDRAM_BASE + ( 1 << 30))    /*  1 GiB */
 #else
-#define CFG_INIT_RAM_ADDR      (CFG_SDRAM_BASE + (32 << 20))   /* 32 MiB */
-#endif /* defined(CFG_INIT_DCACHE_CS) */
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_SDRAM_BASE + (32 << 20))    /* 32 MiB */
+#endif /* defined(CONFIG_SYS_INIT_DCACHE_CS) */
 
-#define CFG_INIT_RAM_END        (4 << 10)                      /*  4 KiB */
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)                       /*  4 KiB */
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * If the data cache is being used for the primordial stack and global
  * for the POST word.
  */
 
-#if defined(CFG_INIT_DCACHE_CS)
-# define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
-# define CFG_POST_ALT_WORD_ADDR        (CFG_PERIPHERAL_BASE + GPT0_COMP6)
+#if defined(CONFIG_SYS_INIT_DCACHE_CS)
+# define CONFIG_SYS_INIT_SP_OFFSET     CONFIG_SYS_GBL_DATA_OFFSET
+# define CONFIG_SYS_POST_ALT_WORD_ADDR (CONFIG_SYS_PERIPHERAL_BASE + GPT0_COMP6)
 #else
-# define CFG_INIT_EXTRA_SIZE   16
-# define CFG_INIT_SP_OFFSET    (CFG_GBL_DATA_OFFSET - CFG_INIT_EXTRA_SIZE)
-# define CFG_POST_WORD_ADDR    (CFG_GBL_DATA_OFFSET - 4)
-# define CFG_OCM_DATA_ADDR     CFG_INIT_RAM_ADDR
-#endif /* defined(CFG_INIT_DCACHE_CS) */
+# define CONFIG_SYS_INIT_EXTRA_SIZE    16
+# define CONFIG_SYS_INIT_SP_OFFSET     (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_INIT_EXTRA_SIZE)
+# define CONFIG_SYS_POST_WORD_ADDR     (CONFIG_SYS_GBL_DATA_OFFSET - 4)
+# define CONFIG_SYS_OCM_DATA_ADDR      CONFIG_SYS_INIT_RAM_ADDR
+#endif /* defined(CONFIG_SYS_INIT_DCACHE_CS) */
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK                    /* no ext. clk          */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK                     /* no ext. clk          */
 /* define this if you want console on UART1 */
 #undef CONFIG_UART1_CONSOLE
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST    {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
-#define CFG_MBYTES_SDRAM        (256)          /* 256MB                        */
+#define CONFIG_SYS_MBYTES_SDRAM        (256)           /* 256MB                        */
 
-#define        CFG_SDRAM0_MB0CF_BASE   ((  0 << 20) + CFG_SDRAM_BASE)
-#define        CFG_SDRAM0_MB1CF_BASE   ((128 << 20) + CFG_SDRAM_BASE)
+#define        CONFIG_SYS_SDRAM0_MB0CF_BASE    ((  0 << 20) + CONFIG_SYS_SDRAM_BASE)
+#define        CONFIG_SYS_SDRAM0_MB1CF_BASE    ((128 << 20) + CONFIG_SYS_SDRAM_BASE)
 
 /* DDR1/2 SDRAM Device Control Register Data Values */
-#define CFG_SDRAM0_MB0CF       ((CFG_SDRAM0_MB0CF_BASE >> 3)   | \
+#define CONFIG_SYS_SDRAM0_MB0CF        ((CONFIG_SYS_SDRAM0_MB0CF_BASE >> 3)    | \
                                 SDRAM_RXBAS_SDSZ_128MB         | \
                                 SDRAM_RXBAS_SDAM_MODE2         | \
                                 SDRAM_RXBAS_SDBE_ENABLE)
-#define CFG_SDRAM0_MB1CF       ((CFG_SDRAM0_MB1CF_BASE >> 3)   | \
+#define CONFIG_SYS_SDRAM0_MB1CF        ((CONFIG_SYS_SDRAM0_MB1CF_BASE >> 3)    | \
                                 SDRAM_RXBAS_SDSZ_128MB         | \
                                 SDRAM_RXBAS_SDAM_MODE2         | \
                                 SDRAM_RXBAS_SDBE_ENABLE)
-#define CFG_SDRAM0_MB2CF       SDRAM_RXBAS_SDBE_DISABLE
-#define CFG_SDRAM0_MB3CF       SDRAM_RXBAS_SDBE_DISABLE
-#define CFG_SDRAM0_MCOPT1      0x04322000
-#define CFG_SDRAM0_MCOPT2      0x00000000
-#define CFG_SDRAM0_MODT0       0x01800000
-#define CFG_SDRAM0_MODT1       0x00000000
-#define CFG_SDRAM0_CODT                0x0080f837
-#define CFG_SDRAM0_RTR         0x06180000
-#define CFG_SDRAM0_INITPLR0    0xa8380000
-#define CFG_SDRAM0_INITPLR1    0x81900400
-#define CFG_SDRAM0_INITPLR2    0x81020000
-#define CFG_SDRAM0_INITPLR3    0x81030000
-#define CFG_SDRAM0_INITPLR4    0x81010404
-#define CFG_SDRAM0_INITPLR5    0x81000542
-#define CFG_SDRAM0_INITPLR6    0x81900400
-#define CFG_SDRAM0_INITPLR7    0x8D080000
-#define CFG_SDRAM0_INITPLR8    0x8D080000
-#define CFG_SDRAM0_INITPLR9    0x8D080000
-#define CFG_SDRAM0_INITPLR10   0x8D080000
-#define CFG_SDRAM0_INITPLR11   0x81000442
-#define CFG_SDRAM0_INITPLR12   0x81010780
-#define CFG_SDRAM0_INITPLR13   0x81010400
-#define CFG_SDRAM0_INITPLR14   0x00000000
-#define CFG_SDRAM0_INITPLR15   0x00000000
-#define CFG_SDRAM0_RQDC                0x80000038
-#define CFG_SDRAM0_RFDC                0x00000209
-#define CFG_SDRAM0_RDCC                0x40000000
-#define CFG_SDRAM0_DLCR                0x030000a5
-#define CFG_SDRAM0_CLKTR       0x80000000
-#define CFG_SDRAM0_WRDTR       0x00000000
-#define CFG_SDRAM0_SDTR1       0x80201000
-#define CFG_SDRAM0_SDTR2       0x32204232
-#define CFG_SDRAM0_SDTR3       0x080b0d1a
-#define CFG_SDRAM0_MMODE       0x00000442
-#define CFG_SDRAM0_MEMODE      0x00000404
+#define CONFIG_SYS_SDRAM0_MB2CF        SDRAM_RXBAS_SDBE_DISABLE
+#define CONFIG_SYS_SDRAM0_MB3CF        SDRAM_RXBAS_SDBE_DISABLE
+#define CONFIG_SYS_SDRAM0_MCOPT1       0x04322000
+#define CONFIG_SYS_SDRAM0_MCOPT2       0x00000000
+#define CONFIG_SYS_SDRAM0_MODT0        0x01800000
+#define CONFIG_SYS_SDRAM0_MODT1        0x00000000
+#define CONFIG_SYS_SDRAM0_CODT         0x0080f837
+#define CONFIG_SYS_SDRAM0_RTR          0x06180000
+#define CONFIG_SYS_SDRAM0_INITPLR0     0xa8380000
+#define CONFIG_SYS_SDRAM0_INITPLR1     0x81900400
+#define CONFIG_SYS_SDRAM0_INITPLR2     0x81020000
+#define CONFIG_SYS_SDRAM0_INITPLR3     0x81030000
+#define CONFIG_SYS_SDRAM0_INITPLR4     0x81010404
+#define CONFIG_SYS_SDRAM0_INITPLR5     0x81000542
+#define CONFIG_SYS_SDRAM0_INITPLR6     0x81900400
+#define CONFIG_SYS_SDRAM0_INITPLR7     0x8D080000
+#define CONFIG_SYS_SDRAM0_INITPLR8     0x8D080000
+#define CONFIG_SYS_SDRAM0_INITPLR9     0x8D080000
+#define CONFIG_SYS_SDRAM0_INITPLR10    0x8D080000
+#define CONFIG_SYS_SDRAM0_INITPLR11    0x81000442
+#define CONFIG_SYS_SDRAM0_INITPLR12    0x81010780
+#define CONFIG_SYS_SDRAM0_INITPLR13    0x81010400
+#define CONFIG_SYS_SDRAM0_INITPLR14    0x00000000
+#define CONFIG_SYS_SDRAM0_INITPLR15    0x00000000
+#define CONFIG_SYS_SDRAM0_RQDC         0x80000038
+#define CONFIG_SYS_SDRAM0_RFDC         0x00000209
+#define CONFIG_SYS_SDRAM0_RDCC         0x40000000
+#define CONFIG_SYS_SDRAM0_DLCR         0x030000a5
+#define CONFIG_SYS_SDRAM0_CLKTR        0x80000000
+#define CONFIG_SYS_SDRAM0_WRDTR        0x00000000
+#define CONFIG_SYS_SDRAM0_SDTR1        0x80201000
+#define CONFIG_SYS_SDRAM0_SDTR2        0x32204232
+#define CONFIG_SYS_SDRAM0_SDTR3        0x080b0d1a
+#define CONFIG_SYS_SDRAM0_MMODE        0x00000442
+#define CONFIG_SYS_SDRAM0_MEMODE       0x00000404
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 6       /* 24C02 requires 5ms delay */
-#define CFG_I2C_EEPROM_ADDR    0x52    /* I2C boot EEPROM (24C02BN)    */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  6       /* 24C02 requires 5ms delay */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x52    /* I2C boot EEPROM (24C02BN)    */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 
 /* Standard DTT sensor configuration */
 #define CONFIG_DTT_DS1775      1
 #define CONFIG_DTT_SENSORS     { 0 }
-#define CFG_I2C_DTT_ADDR       0x48
+#define CONFIG_SYS_I2C_DTT_ADDR        0x48
 
 /* RTC configuration */
 #define CONFIG_RTC_X1205       1
-#define CFG_I2C_RTC_ADDR       0x6f
+#define CONFIG_SYS_I2C_RTC_ADDR        0x6f
 
 /*-----------------------------------------------------------------------
  * Ethernet
 #define CONFIG_CMD_SNTP
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_CACHE         | \
-                                CFG_POST_CPU           | \
-                                CFG_POST_ETHER         | \
-                                CFG_POST_I2C           | \
-                                CFG_POST_MEMORY        | \
-                                CFG_POST_UART)
+#define CONFIG_POST            (CONFIG_SYS_POST_CACHE          | \
+                                CONFIG_SYS_POST_CPU            | \
+                                CONFIG_SYS_POST_ETHER          | \
+                                CONFIG_SYS_POST_I2C            | \
+                                CONFIG_SYS_POST_MEMORY | \
+                                CONFIG_SYS_POST_UART)
 
 /* Define here the base-addresses of the UARTs to test in POST */
-#define CFG_POST_UART_TABLE    {UART0_BASE, UART1_BASE}
+#define CONFIG_SYS_POST_UART_TABLE     {UART0_BASE, UART1_BASE}
 
 #define CONFIG_LOGBUFFER
-#define CFG_POST_CACHE_ADDR    0x00800000 /* free virtual address      */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x00800000 /* free virtual address      */
 
-#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 /*-----------------------------------------------------------------------
  * PCIe stuff
  *----------------------------------------------------------------------*/
-#define CFG_PCIE_MEMBASE       0x90000000      /* mapped PCIe memory   */
-#define CFG_PCIE_MEMSIZE       0x08000000      /* 128 Meg, smallest incr per port */
+#define CONFIG_SYS_PCIE_MEMBASE        0x90000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE_MEMSIZE        0x08000000      /* 128 Meg, smallest incr per port */
 
-#define        CFG_PCIE0_CFGBASE       0xa0000000      /* remote access */
-#define        CFG_PCIE0_XCFGBASE      0xb0000000      /* local access */
-#define        CFG_PCIE0_CFGMASK       0xe0000001      /* 512 Meg */
+#define        CONFIG_SYS_PCIE0_CFGBASE        0xa0000000      /* remote access */
+#define        CONFIG_SYS_PCIE0_XCFGBASE       0xb0000000      /* local access */
+#define        CONFIG_SYS_PCIE0_CFGMASK        0xe0000001      /* 512 Meg */
 
-#define        CFG_PCIE1_CFGBASE       0xc0000000      /* remote access */
-#define        CFG_PCIE1_XCFGBASE      0xd0000000      /* local access */
-#define        CFG_PCIE1_CFGMASK       0xe0000001      /* 512 Meg */
+#define        CONFIG_SYS_PCIE1_CFGBASE        0xc0000000      /* remote access */
+#define        CONFIG_SYS_PCIE1_XCFGBASE       0xd0000000      /* local access */
+#define        CONFIG_SYS_PCIE1_CFGMASK        0xe0000001      /* 512 Meg */
 
-#define        CFG_PCIE0_UTLBASE       0xef502000
-#define        CFG_PCIE1_UTLBASE       0xef503000
+#define        CONFIG_SYS_PCIE0_UTLBASE        0xef502000
+#define        CONFIG_SYS_PCIE1_UTLBASE        0xef503000
 
 /* base address of inbound PCIe window */
-#define CFG_PCIE_INBOUND_BASE  0x0000000000000000ULL
+#define CONFIG_SYS_PCIE_INBOUND_BASE   0x0000000000000000ULL
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
 /* Memory Bank 0 (NOR-FLASH) initialization                                    */
-#define CFG_EBC_PB0AP          0x08033700
-#define CFG_EBC_PB0CR          (CFG_FLASH_BASE | 0xda000)
+#define CONFIG_SYS_EBC_PB0AP           0x08033700
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH_BASE | 0xda000)
 
 /* Memory Bank 2 (CPLD) initialization                                         */
-#define CFG_EBC_PB2AP           0x9400C800
-#define CFG_EBC_PB2CR           0xF0018000 /*  BAS=0x800,BS=1MB,BU=R/W,BW=8bit */
+#define CONFIG_SYS_EBC_PB2AP           0x9400C800
+#define CONFIG_SYS_EBC_PB2CR           0xF0018000 /*  BAS=0x800,BS=1MB,BU=R/W,BW=8bit  */
 
-#define CFG_EBC_CFG            0x7FC00000 /*  EBC0_CFG */
+#define CONFIG_SYS_EBC_CFG             0x7FC00000 /*  EBC0_CFG */
 
 /*-----------------------------------------------------------------------
  * GPIO Setup
  *----------------------------------------------------------------------*/
-#define CFG_4xx_GPIO_TABLE { /*          Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_IN,  GPIO_SEL,  GPIO_OUT_0}, /* GPIO0        EBC_DATA_PAR(0)                 */      \
 }                                                                                              \
 }
 
-#define CFG_GPIO_PCIE_RST      23
-#define CFG_GPIO_PCIE_CLKREQ   27
-#define CFG_GPIO_PCIE_WAKE     28
+#define CONFIG_SYS_GPIO_PCIE_RST       23
+#define CONFIG_SYS_GPIO_PCIE_CLKREQ    27
+#define CONFIG_SYS_GPIO_PCIE_WAKE      28
 
 #endif /* __CONFIG_H */
index c3a600e6776afe62b60a645dd9d85b29b0d95c71..e64cc3704b06da7d4b6e574cd332ab4c48df2f12 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MPC5xxx         1       /* This is an MPC5xxx CPU               */
 #define CONFIG_MCC200          1       /* ... on MCC200 board                  */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33MHz                */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33MHz                */
 
 #define CONFIG_MISC_INIT_R
 
@@ -81,7 +81,7 @@
 #error "Select only one console device!"
 #endif
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #define CONFIG_MII             1
 
 #define MK_STR(x)              XMK_STR(x)
 
 #ifdef CONFIG_PRS200
-# define CFG__BOARDNAME                "prs200"
-# define CFG__LINUX_CONSOLE    "ttyS0"
+# define CONFIG_SYS__BOARDNAME         "prs200"
+# define CONFIG_SYS__LINUX_CONSOLE     "ttyS0"
 #else
-# define CFG__BOARDNAME                "mcc200"
-# define CFG__LINUX_CONSOLE    "ttyEU5"
+# define CONFIG_SYS__BOARDNAME         "mcc200"
+# define CONFIG_SYS__LINUX_CONSOLE     "ttyEU5"
 #endif
 
 /* Network */
 #define CONFIG_EXTRA_ENV_SETTINGS                                      \
        "ubootver=" U_BOOT_VERSION "\0"                                 \
        "netdev=eth0\0"                                                 \
-       "hostname=" CFG__BOARDNAME "\0"                                 \
+       "hostname=" CONFIG_SYS__BOARDNAME "\0"                                  \
        "nfsargs=setenv bootargs root=/dev/nfs rw "                     \
                "nfsroot=${serverip}:${rootpath}\0"                     \
        "ramargs=setenv bootargs root=/dev/mtdblock2 "                  \
                "bootm ${kernel_addr} ${ramdisk_addr}\0"                \
        "net_nfs=tftp 200000 ${bootfile};"                              \
                "run nfsargs addip addcons;bootm\0"                     \
-       "console=" CFG__LINUX_CONSOLE "\0"                              \
+       "console=" CONFIG_SYS__LINUX_CONSOLE "\0"                               \
        "rootpath=/opt/eldk/ppc_6xx\0"                                  \
-       "bootfile=/tftpboot/" CFG__BOARDNAME "/uImage\0"                \
-       "load=tftp 200000 /tftpboot/" CFG__BOARDNAME "/u-boot.bin\0"    \
+       "bootfile=/tftpboot/" CONFIG_SYS__BOARDNAME "/uImage\0"         \
+       "load=tftp 200000 /tftpboot/" CONFIG_SYS__BOARDNAME "/u-boot.bin\0"     \
        "text_base=" MK_STR(TEXT_BASE) "\0"                             \
        "kernel_addr=0xFC0C0000\0"                                      \
        "update=protect off ${text_base} +${filesize};"                 \
 
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
-#define CFG_HUSH_PARSER                1       /* use "hush" command parser    */
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* use "hush" command parser    */
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Flash configuration (8,16 or 32 MB)
  *              0xFF000000 for 16 MB
  *              0xFF800000 for  8 MB
  */
-#define CFG_FLASH_BASE         0xfc000000
-#define CFG_FLASH_SIZE         0x04000000
+#define CONFIG_SYS_FLASH_BASE          0xfc000000
+#define CONFIG_SYS_FLASH_SIZE          0x04000000
 
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION   1       /* hardware flash protection            */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* hardware flash protection            */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash        */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash        */
 
 #define CONFIG_ENV_IS_IN_FLASH 1       /* use FLASH for environment vars       */
 
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 
 #define CONFIG_ENV_OVERWRITE   1       /* allow modification of vendor params */
 
-#if TEXT_BASE == CFG_FLASH_BASE
-#define CFG_LOWBOOT    1
+#if TEXT_BASE == CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_LOWBOOT     1
 #endif
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xf0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xf0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 512 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 512 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 
 #if defined(CONFIG_LCD)
 #define CONFIG_SPLASH_SCREEN   1
-#define CFG_CONSOLE_IS_IN_ENV  1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   1
 #define LCD_BPP                        LCD_MONOCHROME
 #endif
 
 /* 0x90000004 = 64MB SDRAM */
 #if defined(CONFIG_LCD)
 /* set PSC2 in UART mode */
-#define CFG_GPS_PORT_CONFIG    0x00000044
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x00000044
 #else
-#define CFG_GPS_PORT_CONFIG    0x00000004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x00000004
 #endif
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size    */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs                     */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs                     */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x0004fb00
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x0004fb00
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 /* Quad UART @0x80000000 (MBAR is relocated to 0xF0000000) */
-#define CFG_CS2_START          0x80000000
-#define CFG_CS2_SIZE           0x00001000
-#define CFG_CS2_CFG            0x1d300
+#define CONFIG_SYS_CS2_START           0x80000000
+#define CONFIG_SYS_CS2_SIZE            0x00001000
+#define CONFIG_SYS_CS2_CFG             0x1d300
 
 /* Second Quad UART @0x80010000 */
-#define CFG_CS1_START          0x80010000
-#define CFG_CS1_SIZE           0x00001000
-#define CFG_CS1_CFG            0x1d300
+#define CONFIG_SYS_CS1_START           0x80010000
+#define CONFIG_SYS_CS1_SIZE            0x00001000
+#define CONFIG_SYS_CS1_CFG             0x1d300
 
 /* Leica - build revision resistors */
 /*
-#define CFG_CS3_START          0x80020000
-#define CFG_CS3_SIZE           0x00000004
-#define CFG_CS3_CFG            0x1d300
+#define CONFIG_SYS_CS3_START           0x80020000
+#define CONFIG_SYS_CS3_SIZE            0x00000004
+#define CONFIG_SYS_CS3_CFG             0x1d300
 */
 
 /*
  * console. If undefined - PSC console
  * wil be default
  */
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*
  * QUART Expanders support
 /*
  * We'll use NS16550 chip routines,
  */
-#define CFG_NS16550            1
-#define CFG_NS16550_SERIAL     1
+#define CONFIG_SYS_NS16550             1
+#define CONFIG_SYS_NS16550_SERIAL      1
 #define CONFIG_CONS_INDEX      1
 /*
  *  To achieve necessary offset on SC16C554
  * should be 4, because A0-A2 pins are connected
  * to DA2-DA4 address bus lines.
  */
-#define CFG_NS16550_REG_SIZE   4
+#define CONFIG_SYS_NS16550_REG_SIZE    4
 /*
  * LocalPlus Bus already inited in cpu_init_f(),
  * so can work with QUART's chip selects.
  * A3-A4 (DA5-DA6) lines.
  */
 #if (CONFIG_QUART_CONSOLE > 0) && (CONFIG_QUART_CONSOLE < 5) && !defined(CONFIG_PRS200)
-#define CFG_NS16550_COM1       (CFG_CS2_START | (CONFIG_QUART_CONSOLE - 1)<<5)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CS2_START | (CONFIG_QUART_CONSOLE - 1)<<5)
 #elif (CONFIG_QUART_CONSOLE > 4) && (CONFIG_QUART_CONSOLE < 9)
-#define CFG_NS16550_COM1       (CFG_CS1_START | (CONFIG_QUART_CONSOLE - 5)<<5)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CS1_START | (CONFIG_QUART_CONSOLE - 5)<<5)
 #elif
 #error "Wrong QUART expander number."
 #endif
  * SC16C554 chip's external crystal oscillator frequency
  * is 7.3728 MHz
  */
-#define CFG_NS16550_CLK                7372800
+#define CONFIG_SYS_NS16550_CLK         7372800
 #endif /* CONFIG_QUART_CONSOLE */
 /*-----------------------------------------------------------------------
  * USB stuff
index 80011eb044a43cbe9f961a771c1199156e2d4d5b..e4489696b2d8d2b7f1f65756f4096d6038014158 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
 *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (320 * 1024) /* Reserve 320 kB for Monitor */
-#define CFG_MALLOC_LEN         (256 * 1024) /* Reserve 256 kB for malloc() */
+#define CONFIG_SYS_MONITOR_LEN         (320 * 1024) /* Reserve 320 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024) /* Reserve 256 kB for malloc() */
 
 
-#define CFG_SDRAM_BASE         0x00000000      /* _must_ be 0          */
-#define CFG_FLASH_BASE         0xfff80000      /* start of FLASH       */
-#define CFG_MONITOR_BASE       TEXT_BASE
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* _must_ be 0          */
+#define CONFIG_SYS_FLASH_BASE          0xfff80000      /* start of FLASH       */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
 
 /* ... with on-chip memory here (4KBytes) */
-#define CFG_OCM_DATA_ADDR      0xF4000000
-#define CFG_OCM_DATA_SIZE      0x00001000
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF4000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x00001000
 /* Do not set up locked dcache as init ram. */
-#undef CFG_INIT_DCACHE_CS
+#undef CONFIG_SYS_INIT_DCACHE_CS
 
 /* Use the On-Chip-Memory (OCM) as a temporary stack for the startup code. */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR       /* OCM          */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE
-#define CFG_GBL_DATA_SIZE      256             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR        /* OCM          */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE
+#define CONFIG_SYS_GBL_DATA_SIZE       256             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
-#undef CFG_EXT_SERIAL_CLOCK           /* external serial clock */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* external serial clock */
 #define CONFIG_SERIAL_MULTI  1
 /* needed to be able to define CONFIG_SERIAL_SOFTWARE_FIFO */
-#undef CFG_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_405_UART_ERRATA_59          /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /* Size (bytes) of interrupt driven serial port buffer.
  * Set to 0 to use polling instead of interrupts.
@@ -96,7 +96,7 @@
 #define CONFIG_BAUDRATE                9600
 
 
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
  *----------------------------------------------------------------------*/
 
 /* Use common CFI driver */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
 /* board provides its own flash_init code */
 #define CONFIG_FLASH_CFI_LEGACY                1
-#define CFG_FLASH_CFI_WIDTH            FLASH_CFI_8BIT
-#define CFG_FLASH_LEGACY_512Kx8 1
+#define CONFIG_SYS_FLASH_CFI_WIDTH             FLASH_CFI_8BIT
+#define CONFIG_SYS_FLASH_LEGACY_512Kx8 1
 
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     8       /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      8       /* max number of sectors on one chip */
 
 /*-----------------------------------------------------------------------
  * Environment
 #ifdef CONFIG_ENV_IS_IN_FLASH
 /* Put the environment in Flash */
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         8*1024  /* 8 KB Environment Sector */
 
 /* Address and size of Redundant Environment Sector    */
  * I2C stuff for a ATMEL AT24C16 (2kB holding ENV, we are using the
  * the first internal I2C controller of the PPC440EPx
  *----------------------------------------------------------------------*/
-#define CFG_SPD_BUS_NUM                0
+#define CONFIG_SYS_SPD_BUS_NUM         0
 
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /* This is the 7bit address of the device, not including P. */
-#define CFG_I2C_EEPROM_ADDR 0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 
 /* The EEPROM can do 16byte ( 1 << 4 ) page writes. */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
-#undef CFG_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
+#undef CONFIG_SYS_I2C_MULTI_EEPROMS
 
 
 #define CONFIG_PREBOOT "echo;"                                         \
 #define CONFIG_OVERWRITE_ETHADDR_ONCE
 #define CONFIG_SERVERIP                172.25.1.3
 
-#define CFG_TFTP_LOADADDR 0x01000000 /* @16 MB */
+#define CONFIG_SYS_TFTP_LOADADDR 0x01000000 /* @16 MB */
 
 #define        CONFIG_EXTRA_ENV_SETTINGS                               \
        "netdev=eth0\0"                                                 \
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR        1       /* PHY address                  */
 #define CONFIG_PHY_RESET        1      /* reset phy upon startup */
 
 #define CONFIG_HAS_ETH0
-#define CFG_RX_ETH_BUFFER      16 /* Number of ethernet rx buffers & descr */
+#define CONFIG_SYS_RX_ETH_BUFFER       16 /* Number of ethernet rx buffers & descr */
 
 /*
  * BOOTP options
 #define SPD_EEPROM_ADDRESS      0x50
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_UART     | \
-                                CFG_POST_I2C      | \
-                                CFG_POST_CACHE    | \
-                                CFG_POST_ETHER    | \
-                                CFG_POST_SPR)
-
-#define CFG_POST_UART_TABLE    {UART0_BASE}
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_UART      | \
+                                CONFIG_SYS_POST_I2C       | \
+                                CONFIG_SYS_POST_CACHE     | \
+                                CONFIG_SYS_POST_ETHER     | \
+                                CONFIG_SYS_POST_SPR)
+
+#define CONFIG_SYS_POST_UART_TABLE     {UART0_BASE}
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
 #undef  CONFIG_LOGBUFFER
-#define CFG_POST_CACHE_ADDR    0x00800000 /* free virtual address      */
-#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x00800000 /* free virtual address      */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024            /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256             /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
  * External Bus Controller (EBC) Setup
  */
 
-#define CFG_EBC_CFG            0x98400000
+#define CONFIG_SYS_EBC_CFG            0x98400000
 
 /* Memory Bank 0 (Flash Bank 0) initialization */
-#define CFG_EBC_PB0AP          0x02005400
-#define CFG_EBC_PB0CR          0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit*/
+#define CONFIG_SYS_EBC_PB0AP           0x02005400
+#define CONFIG_SYS_EBC_PB0CR           0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit*/
 
-#define CFG_EBC_PB1AP          0x03041200
-#define CFG_EBC_PB1CR          0x7009A000  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB1AP           0x03041200
+#define CONFIG_SYS_EBC_PB1CR           0x7009A000  /* BAS=,BS=MB,BU=R/W,BW=bit */
 
-#define CFG_EBC_PB2AP          0x01845200u  /* BAS=,BS=MB,BU=R/W,BW=bit */
-#define CFG_EBC_PB2CR          0x7A09A000u
+#define CONFIG_SYS_EBC_PB2AP           0x01845200u  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB2CR           0x7A09A000u
 
-#define CFG_EBC_PB3AP          0x01845200u  /* BAS=,BS=MB,BU=R/W,BW=bit */
-#define CFG_EBC_PB3CR          0x7B09A000u
+#define CONFIG_SYS_EBC_PB3AP           0x01845200u  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB3CR           0x7B09A000u
 
-#define CFG_EBC_PB4AP          0x01845200u  /* BAS=,BS=MB,BU=R/W,BW=bit */
-#define CFG_EBC_PB4CR          0x7C09A000u
+#define CONFIG_SYS_EBC_PB4AP           0x01845200u  /* BAS=,BS=MB,BU=R/W,BW=bit */
+#define CONFIG_SYS_EBC_PB4CR           0x7C09A000u
 
-#define CFG_EBC_PB5AP          0x00800200u
-#define CFG_EBC_PB5CR          0x7D81A000u
+#define CONFIG_SYS_EBC_PB5AP           0x00800200u
+#define CONFIG_SYS_EBC_PB5CR           0x7D81A000u
 
-#define CFG_EBC_PB6AP          0x01040200u
-#define CFG_EBC_PB6CR          0x7D91A000u
+#define CONFIG_SYS_EBC_PB6AP           0x01040200u
+#define CONFIG_SYS_EBC_PB6CR           0x7D91A000u
 
-#define CFG_GPIO0_OR           0x087FFFFF  /* GPIO value */
-#define CFG_GPIO0_TCR          0x7FFF8000  /* GPIO value */
-#define CFG_GPIO0_ODR          0xFFFF0000  /* GPIO value */
+#define CONFIG_SYS_GPIO0_OR            0x087FFFFF  /* GPIO value */
+#define CONFIG_SYS_GPIO0_TCR           0x7FFF8000  /* GPIO value */
+#define CONFIG_SYS_GPIO0_ODR           0xFFFF0000  /* GPIO value */
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /* Init Memory Controller:
  *
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0               /* FLASH bank #1        */
 
 
 /* Configuration Port location */
 #define CONFIG_PORT_ADDR       0xF0000500
 
-#define CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* use "hush" command parser    */
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
index 8b13fc0acb4d122089beb0204bec28e42e002c4b..7ef5bdfd9d68056a67cf24bc05678a7f3e86e2b3 100644 (file)
@@ -45,7 +45,7 @@
 #define CONFIG_MECP5200                1       /* ... on MECP5200  board */
 #define CONFIG_MPC5200_DDR      1       /* ... use DDR RAM      */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -61,7 +61,7 @@
 #else
 #define CONFIG_BAUDRATE                9600    /* ... at 115200 bps */
 #endif
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 
 #ifdef CONFIG_MPC5200  /* MPC5100 PCI is not supported yet. */
@@ -70,7 +70,7 @@
 #if 0 /* test-only !!! */
 #define CONFIG_NET_MULTI       1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 #endif
 
 
 
 #if (TEXT_BASE == 0xFF000000)          /* Boot low with 16 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT16       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT16        1
 #endif
 #if (TEXT_BASE == 0xFF800000)          /* Boot low with  8 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT08       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT08        1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBSPEED_133                        /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBSPEED_133                 /* define for 133MHz speed */
 #endif
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          86000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           86000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
-#define CFG_I2C_MULTI_EEPROMS          1
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
+#define CONFIG_SYS_I2C_MULTI_EEPROMS           1
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFFC00000
-#define CFG_FLASH_SIZE         0x00400000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x003E0000)
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     512
+#define CONFIG_SYS_FLASH_BASE          0xFFC00000
+#define CONFIG_SYS_FLASH_SIZE          0x00400000
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x003E0000)
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      512
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /*
  * Environment settings
 #endif
 
 #define CONFIG_FLASH_CFI_DRIVER        1          /* Flash is CFI conformant           */
-#define CFG_FLASH_CFI          1          /* Flash is CFI conformant           */
-#define CFG_FLASH_PROTECTION   1          /* use hardware protection           */
+#define CONFIG_SYS_FLASH_CFI           1          /* Flash is CFI conformant           */
+#define CONFIG_SYS_FLASH_PROTECTION    1          /* use hardware protection           */
 #if 0
-#define CFG_FLASH_USE_BUFFER_WRITE 1       /* use buffered writes (20x faster)  */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1       /* use buffered writes (20x faster)  */
 #endif
-#define CFG_FLASH_INCREMENT    0x00400000 /* size of  flash bank               */
-#define CFG_FLASH_BANKS_LIST  { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO   1          /* show if bank is empty             */
+#define CONFIG_SYS_FLASH_INCREMENT     0x00400000 /* size of  flash bank               */
+#define CONFIG_SYS_FLASH_BANKS_LIST  { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO    1          /* show if bank is empty             */
 
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x01052444
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x01052444
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_VXWORKS_MAC_PTR    0x00000000      /* Pass Ethernet MAC to VxWorks */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     0x00000000      /* Pass Ethernet MAC to VxWorks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00085d00
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00085d00
 
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS1_START          0xfd000000
-#define CFG_CS1_SIZE           0x00010000
-#define CFG_CS1_CFG            0x10101410
+#define CONFIG_SYS_CS1_START           0xfd000000
+#define CONFIG_SYS_CS1_SIZE            0x00010000
+#define CONFIG_SYS_CS1_CFG             0x10101410
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define        CONFIG_IDE_RESET                /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers          */
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #endif /* __CONFIG_H */
index ecf93e923211ecfd864765bec9b80d681cf24104..a0de8a449e0e322cc35b9f56e608d042a88ec0a2 100644 (file)
@@ -66,9 +66,9 @@
 #undef CONFIG_ETHER_NONE               /* No external Ethernet   */
 
 #define CONFIG_ETHER_INDEX     4
-#define CFG_SCC_TOUT_LOOP      10000000
+#define CONFIG_SYS_SCC_TOUT_LOOP       10000000
 
-# define CFG_CMXSCR_VALUE      (CMXSCR_RS4CS_CLK7 | CMXSCR_TS4CS_CLK8)
+# define CONFIG_SYS_CMXSCR_VALUE       (CMXSCR_RS4CS_CLK7 | CMXSCR_TS4CS_CLK8)
 
 #ifndef CONFIG_8260_CLKIN
 #define CONFIG_8260_CLKIN      66000000        /* in Hz */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #define CONFIG_HUSH_INIT_VAR   1
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size  */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size  */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_SIZE         32
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_SIZE          32
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_MAX_FLASH_BANKS    2       /* max num of flash banks       */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of flash banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
 
-#define CFG_FLASH_BASE_1       0x50000000
-#define CFG_FLASH_SIZE_1       64
+#define CONFIG_SYS_FLASH_BASE_1        0x50000000
+#define CONFIG_SYS_FLASH_SIZE_1        64
 
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE_1 }
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE_1 }
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256KB for Monitor */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256KB for Monitor */
 
 #define CONFIG_ENV_IS_IN_FLASH
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 
 /* enable I2C and select the hardware/software driver */
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          50000   /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           50000   /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 
 #define CONFIG_I2C_MULTI_BUS   1
 #define CONFIG_I2C_CMD_TREE    1
-#define CFG_MAX_I2C_BUS                2
-#define CFG_I2C_INIT_BOARD     1
+#define CONFIG_SYS_MAX_I2C_BUS         2
+#define CONFIG_SYS_I2C_INIT_BOARD      1
 #define CONFIG_I2C_MUX         1
 
 /* EEprom support */
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_I2C_MULTI_EEPROMS  1
-#define CFG_EEPROM_PAGE_WRITE_ENABLE
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_MULTI_EEPROMS   1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /* Support the IVM EEprom */
-#define        CFG_IVM_EEPROM_ADR      0x50
-#define CFG_IVM_EEPROM_MAX_LEN 0x400
-#define CFG_IVM_EEPROM_PAGE_LEN        0x100
+#define        CONFIG_SYS_IVM_EEPROM_ADR       0x50
+#define CONFIG_SYS_IVM_EEPROM_MAX_LEN  0x400
+#define CONFIG_SYS_IVM_EEPROM_PAGE_LEN 0x100
 
 /* I2C SYSMON (LM75, AD7414 is almost compatible)                      */
 #define CONFIG_DTT_LM75                1       /* ON Semi's LM75               */
 #define CONFIG_DTT_SENSORS     {0}     /* Sensor addresses             */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
-#define CFG_DTT_BUS_NUM                (CFG_MAX_I2C_BUS)
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
+#define CONFIG_SYS_DTT_BUS_NUM         (CONFIG_SYS_MAX_I2C_BUS)
 
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /* Hard reset configuration word */
-#define CFG_HRCW_MASTER                0x0604b211
+#define CONFIG_SYS_HRCW_MASTER         0x0604b211
 
 /* No slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                  */
 
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         (HID0_ICE | HID0_IFEM | HID0_ABE)
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE | HID0_IFEM | HID0_ABE)
 
-#define CFG_HID2               0
+#define CONFIG_SYS_HID2                0
 
-#define CFG_SIUMCR             0x4020c200
-#define CFG_SYPCR              0xFFFFFFC3
-#define CFG_BCR                        0x10000000
-#define CFG_SCCR               (SCCR_PCI_MODE | SCCR_PCI_MODCK)
+#define CONFIG_SYS_SIUMCR              0x4020c200
+#define CONFIG_SYS_SYPCR               0xFFFFFFC3
+#define CONFIG_SYS_BCR                 0x10000000
+#define CONFIG_SYS_SCCR                (SCCR_PCI_MODE | SCCR_PCI_MODCK)
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register                                     5-5
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * TMCNTSC - Time Counter Status and Control                     4-40
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
  */
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)   |\
                         BRx_PS_8                       |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM  (MEG_TO_AM(CFG_FLASH_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH_SIZE)       |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV2                  |\
                         ORxG_SCY_5_CLK                 |\
 /* Bank 1 - 60x bus SDRAM
  */
 #define SDRAM_MAX_SIZE 0x08000000      /* max. 128 MB          */
-#define CFG_GLOBAL_SDRAM_LIMIT (256 << 20)     /* less than 256 MB */
+#define CONFIG_SYS_GLOBAL_SDRAM_LIMIT  (256 << 20)     /* less than 256 MB */
 
-#define CFG_MPTPR       0x1800
+#define CONFIG_SYS_MPTPR       0x1800
 
 /*-----------------------------------------------------------------------------
  * Address for Mode Register Set (MRS) command
  *-----------------------------------------------------------------------------
  */
-#define CFG_MRS_OFFS   0x00000110
-#define CFG_PSRT        0x0e
+#define CONFIG_SYS_MRS_OFFS    0x00000110
+#define CONFIG_SYS_PSRT        0x0e
 
-#define CFG_BR1_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM CFG_OR1
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR1
 
 /* SDRAM initialization values
 */
 
-#define CFG_OR1    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1    ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_8                     |\
                         ORxS_ROWST_PBI0_A7             |\
                         ORxS_NUMR_13)
 
-#define CFG_PSDMR  (PSDMR_SDAM_A14_IS_A5 |\
+#define CONFIG_SYS_PSDMR  (PSDMR_SDAM_A14_IS_A5 |\
                         PSDMR_BSMA_A14_A16           |\
                         PSDMR_SDA10_PBI0_A9            |\
                         PSDMR_RFRC_5_CLK               |\
 
 /* GPIO/PIGGY on CS3 initialization values
 */
-#define CFG_PIGGY_BASE 0x30000000
-#define CFG_PIGGY_SIZE 128
+#define CONFIG_SYS_PIGGY_BASE  0x30000000
+#define CONFIG_SYS_PIGGY_SIZE  128
 
-#define CFG_BR3_PRELIM ((CFG_PIGGY_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_PIGGY_BASE & BRx_BA_MSK) |\
                         BRx_PS_8 | BRx_MS_GPCM_P | BRx_V)
 
-#define CFG_OR3_PRELIM (MEG_TO_AM(CFG_PIGGY_SIZE) |\
+#define CONFIG_SYS_OR3_PRELIM  (MEG_TO_AM(CONFIG_SYS_PIGGY_SIZE) |\
                         ORxG_CSNT | ORxG_ACS_DIV2 |\
                         ORxG_SCY_3_CLK | ORxG_TRLX )
 
 /* CFG-Flash on CS5 initialization values
 */
-#define CFG_BR5_PRELIM ((CFG_FLASH_BASE_1 & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR5_PRELIM  ((CONFIG_SYS_FLASH_BASE_1 & BRx_BA_MSK) |\
                         BRx_PS_16 | BRx_MS_GPCM_P | BRx_V)
 
-#define CFG_OR5_PRELIM (MEG_TO_AM(CFG_FLASH_SIZE_1) |\
+#define CONFIG_SYS_OR5_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH_SIZE_1) |\
                         ORxG_CSNT | ORxG_ACS_DIV2 |\
                         ORxG_SCY_5_CLK | ORxG_TRLX )
 
-#define        CFG_RESET_ADDRESS 0xFDFFFFFC    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFDFFFFFC     /* "bad" address                */
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_LIBFDT       1
index 4ecaeac637cc7584ffb970eee96f5214d6b7bb8e..7a80dad0eb269c1873f4da62a4d0229a1de4b960 100644 (file)
 
 #define CONFIG_8xx_GCLK_FREQ           66000000
 
-#define CFG_SMC_UCODE_PATCH    1       /* Relocate SMC1 */
-#define CFG_SMC_DPMEM_OFFSET   0x1fc0
+#define CONFIG_SYS_SMC_UCODE_PATCH     1       /* Relocate SMC1 */
+#define CONFIG_SYS_SMC_DPMEM_OFFSET    0x1fc0
 #define CONFIG_8xx_CONS_SMC1   1       /* Console is on SMC1           */
 
 #define CONFIG_BAUDRATE                115200  /* console baudrate = 115kbps   */
 
 #define CONFIG_BOOTCOUNT_LIMIT
-#define CFG_CPM_BOOTCOUNT_ADDR 0x1eb0  /* In case of SMC relocation, the
+#define CONFIG_SYS_CPM_BOOTCOUNT_ADDR  0x1eb0  /* In case of SMC relocation, the
                                         * default value is not working */
 
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
@@ -91,7 +91,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #define CONFIG_HUSH_INIT_VAR   1
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xf0000000
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xf0000000
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_FLASH_SIZE         32
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_FLASH_SIZE          32
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_MAX_FLASH_SECT     256     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max num of sects on one chip */
 
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0x40000 /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
-#define CFG_SYPCR      0xffffff89
+#define CONFIG_SYS_SYPCR       0xffffff89
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                           11-6
  *-----------------------------------------------------------------------
  */
-#define CFG_SIUMCR     0x00610480
+#define CONFIG_SYS_SIUMCR      0x00610480
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      0x01800000
-#define CFG_SCCR       0x01800000
+#define CONFIG_SYS_SCCR        0x01800000
 
-#define CFG_DER 0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing: Default value of OR0 after reset
  */
-#define CFG_OR0_PRELIM 0xfe000954
-#define CFG_BR0_PRELIM 0xf0000401
+#define CONFIG_SYS_OR0_PRELIM  0xfe000954
+#define CONFIG_SYS_BR0_PRELIM  0xf0000401
 
 /*
  * BR1 and OR1 (SDRAM)
 #define SDRAM_MAX_SIZE         (64 << 20)      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR1_PRELIM 0xfc000800
-#define CFG_BR1_PRELIM (0x000000C0 | 0x01)
+#define CONFIG_SYS_OR1_PRELIM  0xfc000800
+#define CONFIG_SYS_BR1_PRELIM  (0x000000C0 | 0x01)
 
-#define CFG_MPTPR      0x0200
+#define CONFIG_SYS_MPTPR       0x0200
 /* PTB=16, AMB=001, FIXME 1 RAS precharge cycles, 1 READ loop cycle (not used),
    1 Write loop Cycle (not used), 1 Timer Loop Cycle */
-#define CFG_MBMR       0x10964111
-#define CFG_MAR                0x00000088
+#define CONFIG_SYS_MBMR        0x10964111
+#define CONFIG_SYS_MAR         0x00000088
 
 /*
  * 4096        Rows from SDRAM example configuration
  * 4   Number of refresh cycles per period
  * 64  Refresh cycle in ms per number of rows
  */
-#define CFG_PTA_PER_CLK        ((4096 * 64 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 64 * 1000) / (4 * 64))
 
 /* GPIO/PIGGY on CS3 initialization values
 */
-#define CFG_PIGGY_BASE (0x30000000)
-#define CFG_OR3_PRELIM (0xfe000d24)
-#define CFG_BR3_PRELIM (0x30000401)
+#define CONFIG_SYS_PIGGY_BASE  (0x30000000)
+#define CONFIG_SYS_OR3_PRELIM  (0xfe000d24)
+#define CONFIG_SYS_BR3_PRELIM  (0x30000401)
 
 /*
  * Internal Definitions
 /* enable I2C and select the hardware/software driver */
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          50000   /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           50000   /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 #define I2C_SOFT_DECLARATIONS
 
 /*
  * Software (bit-bang) I2C driver configuration
  */
-#define I2C_BASE_DIR   (CFG_PIGGY_BASE + 0x04)
-#define I2C_BASE_PORT  (CFG_PIGGY_BASE + 0x09)
+#define I2C_BASE_DIR   (CONFIG_SYS_PIGGY_BASE + 0x04)
+#define I2C_BASE_PORT  (CONFIG_SYS_PIGGY_BASE + 0x09)
 
 #define SDA_BIT                0x40
 #define SCL_BIT                0x80
 
 #define CONFIG_I2C_MULTI_BUS   1
 #define CONFIG_I2C_CMD_TREE    1
-#define CFG_MAX_I2C_BUS                2
-#define CFG_I2C_INIT_BOARD     1
+#define CONFIG_SYS_MAX_I2C_BUS         2
+#define CONFIG_SYS_I2C_INIT_BOARD      1
 #define CONFIG_I2C_MUX         1
 
 /* EEprom support */
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_I2C_MULTI_EEPROMS  1
-#define CFG_EEPROM_PAGE_WRITE_ENABLE
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_MULTI_EEPROMS   1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /* Support the IVM EEprom */
-#define        CFG_IVM_EEPROM_ADR      0x50
-#define CFG_IVM_EEPROM_MAX_LEN 0x400
-#define CFG_IVM_EEPROM_PAGE_LEN        0x100
+#define        CONFIG_SYS_IVM_EEPROM_ADR       0x50
+#define CONFIG_SYS_IVM_EEPROM_MAX_LEN  0x400
+#define CONFIG_SYS_IVM_EEPROM_PAGE_LEN 0x100
 
 /* I2C SYSMON (LM75, AD7414 is almost compatible)                      */
 #define CONFIG_DTT_LM75                1       /* ON Semi's LM75               */
 #define CONFIG_DTT_SENSORS     {0, 2, 4, 6}    /* Sensor addresses             */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
-#define CFG_DTT_BUS_NUM                (CFG_MAX_I2C_BUS)
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
+#define CONFIG_SYS_DTT_BUS_NUM         (CONFIG_SYS_MAX_I2C_BUS)
 
 #endif /* __CONFIG_H */
index da307aca2d855e0d196e9fa5b293a1594e6a588e..312fdc9e4d1b1ac92f6672620dd4f85bfdd2324d 100644 (file)
@@ -33,7 +33,7 @@
 
 #define CONFIG_MIMC200_EXT_FLASH       1
 
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
 /*
  * Set up the PLL to run at 140 MHz, the CPU to run at the PLL
  * and the PBA bus to run at 1/4 the PLL frequency.
  */
 #define CONFIG_PLL                     1
-#define CFG_POWER_MANAGER              1
-#define CFG_OSC0_HZ                    10000000
-#define CFG_PLL0_DIV                   1
-#define CFG_PLL0_MUL                   15
-#define CFG_PLL0_SUPPRESS_CYCLES       16
-#define CFG_CLKDIV_CPU                 0
-#define CFG_CLKDIV_HSB                 1
-#define CFG_CLKDIV_PBA                 2
-#define CFG_CLKDIV_PBB                 1
+#define CONFIG_SYS_POWER_MANAGER               1
+#define CONFIG_SYS_OSC0_HZ                     10000000
+#define CONFIG_SYS_PLL0_DIV                    1
+#define CONFIG_SYS_PLL0_MUL                    15
+#define CONFIG_SYS_PLL0_SUPPRESS_CYCLES        16
+#define CONFIG_SYS_CLKDIV_CPU                  0
+#define CONFIG_SYS_CLKDIV_HSB                  1
+#define CONFIG_SYS_CLKDIV_PBA                  2
+#define CONFIG_SYS_CLKDIV_PBB                  1
 
 /*
  * The PLLOPT register controls the PLL like this:
@@ -58,7 +58,7 @@
  *
  * We want icp=1 (default) and ivco=0 (80-160 MHz) or ivco=2 (150-240MHz).
  */
-#define CFG_PLL0_OPT                   0x04
+#define CONFIG_SYS_PLL0_OPT                    0x04
 
 #define CONFIG_USART1                  1
 #define CONFIG_MIMC200_DBGLINK         1
@@ -80,7 +80,7 @@
 
 #define CONFIG_SILENT_CONSOLE          1       /* enable silent startup */
 #define CONFIG_SILENT_CONSOLE_INPUT    1       /* disable console inputs */
-#define CFG_DEVICE_NULLDEV             1       /* include nulldev device */
+#define CONFIG_SYS_DEVICE_NULLDEV              1       /* include nulldev device */
 
 /*
  * Only interrupt autoboot if <space> is pressed. Otherwise, garbage
 #define CONFIG_ATMEL_USART             1
 #define CONFIG_MACB                    1
 #define CONFIG_PIO2                    1
-#define CFG_NR_PIOS                    5
-#define CFG_HSDRAMC                    1
+#define CONFIG_SYS_NR_PIOS                     5
+#define CONFIG_SYS_HSDRAMC                     1
 #define CONFIG_MMC                     1
 #define CONFIG_ATMEL_MCI               1
 
-#define CFG_DCACHE_LINESZ              32
-#define CFG_ICACHE_LINESZ              32
+#define CONFIG_SYS_DCACHE_LINESZ               32
+#define CONFIG_SYS_ICACHE_LINESZ               32
 
 #define CONFIG_NR_DRAM_BANKS           1
 
-#define CFG_FLASH_CFI                  1
+#define CONFIG_SYS_FLASH_CFI                   1
 #define CONFIG_FLASH_CFI_DRIVER                1
 
-#define CFG_FLASH_BASE                 0x00000000
-#define CFG_FLASH_SIZE                 0x800000
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             135
+#define CONFIG_SYS_FLASH_BASE                  0x00000000
+#define CONFIG_SYS_FLASH_SIZE                  0x800000
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              135
 
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
 
-#define CFG_INTRAM_BASE                        INTERNAL_SRAM_BASE
-#define CFG_INTRAM_SIZE                        INTERNAL_SRAM_SIZE
-#define CFG_SDRAM_BASE                 EBI_SDRAM_BASE
+#define CONFIG_SYS_INTRAM_BASE                 INTERNAL_SRAM_BASE
+#define CONFIG_SYS_INTRAM_SIZE                 INTERNAL_SRAM_SIZE
+#define CONFIG_SYS_SDRAM_BASE                  EBI_SDRAM_BASE
 
-#define CFG_FRAM_BASE                  0x08000000
-#define CFG_FRAM_SIZE                  0x20000
+#define CONFIG_SYS_FRAM_BASE                   0x08000000
+#define CONFIG_SYS_FRAM_SIZE                   0x20000
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_SIZE                        65536
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE + CFG_FLASH_SIZE - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)
 
-#define CFG_INIT_SP_ADDR               (CFG_INTRAM_BASE + CFG_INTRAM_SIZE)
+#define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INTRAM_BASE + CONFIG_SYS_INTRAM_SIZE)
 
-#define CFG_MALLOC_LEN                 (1024*1024)
-#define CFG_DMA_ALLOC_LEN              (16384)
+#define CONFIG_SYS_MALLOC_LEN                  (1024*1024)
+#define CONFIG_SYS_DMA_ALLOC_LEN               (16384)
 
 /* Allow 4MB for the kernel run-time image */
-#define CFG_LOAD_ADDR                  (EBI_SDRAM_BASE + 0x00400000)
-#define CFG_BOOTPARAMS_LEN             (16 * 1024)
+#define CONFIG_SYS_LOAD_ADDR                   (EBI_SDRAM_BASE + 0x00400000)
+#define CONFIG_SYS_BOOTPARAMS_LEN              (16 * 1024)
 
 /* Other configuration settings that shouldn't have to change all that often */
-#define CFG_PROMPT                     "U-Boot> "
-#define CFG_CBSIZE                     256
-#define CFG_MAXARGS                    16
-#define CFG_PBSIZE                     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_LONGHELP                   1
+#define CONFIG_SYS_PROMPT                      "U-Boot> "
+#define CONFIG_SYS_CBSIZE                      256
+#define CONFIG_SYS_MAXARGS                     16
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_LONGHELP                    1
 
-#define CFG_MEMTEST_START              EBI_SDRAM_BASE
-#define CFG_MEMTEST_END                        (CFG_MEMTEST_START + 0x1f00000)
+#define CONFIG_SYS_MEMTEST_START               EBI_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END                 (CONFIG_SYS_MEMTEST_START + 0x1f00000)
 
-#define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
+#define CONFIG_SYS_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 }
 
 #endif /* __CONFIG_H */
index 8d482216dd62f712ac3cf8a42a06a253446badf5..68d0c85e1afc1a130cbfc5c700f30298c78c351b 100644 (file)
 
 #define CONFIG_SYSTEMACE       1
 #define CONFIG_DOS_PARTITION   1
-#define CFG_SYSTEMACE_BASE     XPAR_OPB_SYSACE_0_BASEADDR
-#define CFG_SYSTEMACE_WIDTH    XPAR_XSYSACE_MEM_WIDTH
+#define CONFIG_SYS_SYSTEMACE_BASE      XPAR_OPB_SYSACE_0_BASEADDR
+#define CONFIG_SYS_SYSTEMACE_WIDTH     XPAR_XSYSACE_MEM_WIDTH
 
 #define CONFIG_ENV_IS_IN_EEPROM        1       /* environment is in EEPROM */
 
 /* following are used only if env is in EEPROM */
 #ifdef CONFIG_ENV_IS_IN_EEPROM
-#define CFG_I2C_EEPROM_ADDR    XPAR_PERSISTENT_0_IIC_0_EEPROMADDR
-#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR     XPAR_PERSISTENT_0_IIC_0_EEPROMADDR
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 #define CONFIG_ENV_OFFSET              XPAR_PERSISTENT_0_IIC_0_BASEADDR
 #define CONFIG_MISC_INIT_R     1       /* used to call out convert_env() */
 #define CONFIG_ENV_OVERWRITE   1       /* allow users to update ethaddr and serial# */
@@ -75,7 +75,7 @@
 
 #include "../board/xilinx/ml300/xparameters.h"
 
-#define CFG_NO_FLASH           1       /* no flash */
+#define CONFIG_SYS_NO_FLASH            1       /* no flash */
 #define CONFIG_ENV_SIZE                XPAR_PERSISTENT_0_IIC_0_HIGHADDR - XPAR_PERSISTENT_0_IIC_0_BASEADDR + 1
 #define CONFIG_BAUDRATE                9600
 #define CONFIG_BOOTDELAY       3       /* autoboot after 3 seconds     */
@@ -86,7 +86,7 @@
                                "root=/dev/xsysace/disc0/part3 rw"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory         */
-#define CFG_PROMPT     "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "   /* Monitor Command Prompt       */
 
-#define CFG_CBSIZE     256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256     /* Console I/O Buffer Size      */
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS    16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_DUART_CHAN         0
-#define CFG_NS16550_REG_SIZE -4
-#define CFG_NS16550 1
-#define CFG_INIT_CHAN1  1
+#define CONFIG_SYS_DUART_CHAN          0
+#define CONFIG_SYS_NS16550_REG_SIZE -4
+#define CONFIG_SYS_NS16550 1
+#define CONFIG_SYS_INIT_CHAN1   1
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
-#define CFG_LOAD_ADDR          0x400000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x400000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000    /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MONITOR_BASE       0x04000000
-#define CFG_MONITOR_LEN                (192 * 1024)    /* Reserve 196 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MONITOR_BASE        0x04000000
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)    /* Reserve 196 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
 
-#define CFG_INIT_RAM_ADDR      0x800000  /* inside of SDRAM */
-#define CFG_INIT_RAM_END       0x2000    /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128       /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x800000  /* inside of SDRAM */
+#define CONFIG_SYS_INIT_RAM_END        0x2000    /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128       /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
index 2a6c68c656b9bc8c3177b588bdce8552d14703cc..63d07ffd2eb0fe26e30e6e219c62e39d34e9d55a 100644 (file)
 #define        CONFIG_XILINX_UARTLITE
 #define        CONFIG_SERIAL_BASE      XILINX_UARTLITE_BASEADDR
 #define        CONFIG_BAUDRATE         XILINX_UARTLITE_BAUDRATE
-#define        CFG_BAUDRATE_TABLE      { CONFIG_BAUDRATE }
+#define        CONFIG_SYS_BAUDRATE_TABLE       { CONFIG_BAUDRATE }
 #else
 #ifdef XILINX_UART16550_BASEADDR
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   4
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    4
 #define CONFIG_CONS_INDEX      1
-#define CFG_NS16550_COM1       XILINX_UART16550_BASEADDR
-#define CFG_NS16550_CLK                XILINX_UART16550_CLOCK_HZ
+#define CONFIG_SYS_NS16550_COM1        XILINX_UART16550_BASEADDR
+#define CONFIG_SYS_NS16550_CLK         XILINX_UART16550_CLOCK_HZ
 #define        CONFIG_BAUDRATE         115200
-#define        CFG_BAUDRATE_TABLE      { 9600, 115200 }
+#define        CONFIG_SYS_BAUDRATE_TABLE       { 9600, 115200 }
 #endif
 #endif
 
 /* setting reset address */
-/*#define      CFG_RESET_ADDRESS       TEXT_BASE*/
+/*#define      CONFIG_SYS_RESET_ADDRESS        TEXT_BASE*/
 
 /* ethernet */
 #ifdef XILINX_EMAC_BASEADDR
 #define CONFIG_XILINX_EMAC     1
-#define CFG_ENET
+#define CONFIG_SYS_ENET
 #else
 #ifdef XILINX_EMACLITE_BASEADDR
 #define CONFIG_XILINX_EMACLITE 1
-#define CFG_ENET
+#define CONFIG_SYS_ENET
 #endif
 #endif
 #undef ET_DEBUG
 
 /* gpio */
 #ifdef XILINX_GPIO_BASEADDR
-#define        CFG_GPIO_0              1
-#define        CFG_GPIO_0_ADDR         XILINX_GPIO_BASEADDR
+#define        CONFIG_SYS_GPIO_0               1
+#define        CONFIG_SYS_GPIO_0_ADDR          XILINX_GPIO_BASEADDR
 #endif
 
 /* interrupt controller */
 #ifdef XILINX_INTC_BASEADDR
-#define        CFG_INTC_0              1
-#define        CFG_INTC_0_ADDR         XILINX_INTC_BASEADDR
-#define        CFG_INTC_0_NUM          XILINX_INTC_NUM_INTR_INPUTS
+#define        CONFIG_SYS_INTC_0               1
+#define        CONFIG_SYS_INTC_0_ADDR          XILINX_INTC_BASEADDR
+#define        CONFIG_SYS_INTC_0_NUM           XILINX_INTC_NUM_INTR_INPUTS
 #endif
 
 /* timer */
 #ifdef XILINX_TIMER_BASEADDR
 #if (XILINX_TIMER_IRQ != -1)
-#define        CFG_TIMER_0             1
-#define        CFG_TIMER_0_ADDR        XILINX_TIMER_BASEADDR
-#define        CFG_TIMER_0_IRQ         XILINX_TIMER_IRQ
+#define        CONFIG_SYS_TIMER_0              1
+#define        CONFIG_SYS_TIMER_0_ADDR XILINX_TIMER_BASEADDR
+#define        CONFIG_SYS_TIMER_0_IRQ          XILINX_TIMER_IRQ
 #define        FREQUENCE               XILINX_CLOCK_FREQ
-#define        CFG_TIMER_0_PRELOAD     ( FREQUENCE/1000 )
+#define        CONFIG_SYS_TIMER_0_PRELOAD      ( FREQUENCE/1000 )
 #endif
 #else
 #ifdef XILINX_CLOCK_FREQ
 #endif
 #endif
 /* FSL */
-/* #define     CFG_FSL_2 */
+/* #define     CONFIG_SYS_FSL_2 */
 /* #define     FSL_INTR_2      1 */
 
 /*
  * memory layout - Example
  * TEXT_BASE = 0x1200_0000;
- * CFG_SRAM_BASE = 0x1000_0000;
- * CFG_SRAM_SIZE = 0x0400_0000;
+ * CONFIG_SYS_SRAM_BASE = 0x1000_0000;
+ * CONFIG_SYS_SRAM_SIZE = 0x0400_0000;
  *
- * CFG_GBL_DATA_OFFSET = 0x1000_0000 + 0x0400_0000 - 0x1000 = 0x13FF_F000
- * CFG_MONITOR_BASE = 0x13FF_F000 - 0x40000 = 0x13FB_F000
- * CFG_MALLOC_BASE = 0x13FB_F000 - 0x40000 = 0x13F7_F000
+ * CONFIG_SYS_GBL_DATA_OFFSET = 0x1000_0000 + 0x0400_0000 - 0x1000 = 0x13FF_F000
+ * CONFIG_SYS_MONITOR_BASE = 0x13FF_F000 - 0x40000 = 0x13FB_F000
+ * CONFIG_SYS_MALLOC_BASE = 0x13FB_F000 - 0x40000 = 0x13F7_F000
  *
- * 0x1000_0000 CFG_SDRAM_BASE
+ * 0x1000_0000 CONFIG_SYS_SDRAM_BASE
  *                                     FREE
  * 0x1200_0000 TEXT_BASE
  *             U-BOOT code
  *                                     FREE
  *
  *                                     STACK
- * 0x13F7_F000 CFG_MALLOC_BASE
+ * 0x13F7_F000 CONFIG_SYS_MALLOC_BASE
  *                                     MALLOC_AREA     256kB   Alloc
- * 0x11FB_F000 CFG_MONITOR_BASE
+ * 0x11FB_F000 CONFIG_SYS_MONITOR_BASE
  *                                     MONITOR_CODE    256kB   Env
- * 0x13FF_F000 CFG_GBL_DATA_OFFSET
+ * 0x13FF_F000 CONFIG_SYS_GBL_DATA_OFFSET
  *                                     GLOBAL_DATA     4kB     bd, gd
- * 0x1400_0000 CFG_SDRAM_BASE + CFG_SDRAM_SIZE
+ * 0x1400_0000 CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE
  */
 
 /* ddr sdram - main memory */
-#define        CFG_SDRAM_BASE          XILINX_RAM_START
-#define        CFG_SDRAM_SIZE          XILINX_RAM_SIZE
-#define        CFG_MEMTEST_START       CFG_SDRAM_BASE
-#define        CFG_MEMTEST_END         (CFG_SDRAM_BASE + 0x1000)
+#define        CONFIG_SYS_SDRAM_BASE           XILINX_RAM_START
+#define        CONFIG_SYS_SDRAM_SIZE           XILINX_RAM_SIZE
+#define        CONFIG_SYS_MEMTEST_START        CONFIG_SYS_SDRAM_BASE
+#define        CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_SDRAM_BASE + 0x1000)
 
 /* global pointer */
-#define        CFG_GBL_DATA_SIZE       0x1000  /* size of global data */
+#define        CONFIG_SYS_GBL_DATA_SIZE        0x1000  /* size of global data */
 /* start of global data */
-#define        CFG_GBL_DATA_OFFSET     (CFG_SDRAM_BASE + CFG_SDRAM_SIZE - CFG_GBL_DATA_SIZE)
+#define        CONFIG_SYS_GBL_DATA_OFFSET      (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
 
 /* monitor code */
 #define        SIZE                    0x40000
-#define        CFG_MONITOR_LEN         SIZE
-#define        CFG_MONITOR_BASE        (CFG_GBL_DATA_OFFSET - CFG_MONITOR_LEN)
-#define        CFG_MONITOR_END         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define        CFG_MALLOC_LEN          SIZE
-#define        CFG_MALLOC_BASE         (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
+#define        CONFIG_SYS_MONITOR_LEN          SIZE
+#define        CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN)
+#define        CONFIG_SYS_MONITOR_END          (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define        CONFIG_SYS_MALLOC_LEN           SIZE
+#define        CONFIG_SYS_MALLOC_BASE          (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
 
 /* stack */
-#define        CFG_INIT_SP_OFFSET      CFG_MONITOR_BASE
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_MONITOR_BASE
 
 /*#define      RAMENV */
 #define        FLASH
 
 #ifdef FLASH
-       #define CFG_FLASH_BASE          XILINX_FLASH_START
-       #define CFG_FLASH_SIZE          XILINX_FLASH_SIZE
-       #define CFG_FLASH_CFI           1
+       #define CONFIG_SYS_FLASH_BASE           XILINX_FLASH_START
+       #define CONFIG_SYS_FLASH_SIZE           XILINX_FLASH_SIZE
+       #define CONFIG_SYS_FLASH_CFI            1
        #define CONFIG_FLASH_CFI_DRIVER 1
-       #define CFG_FLASH_EMPTY_INFO    1       /* ?empty sector */
-       #define CFG_MAX_FLASH_BANKS     1       /* max number of memory banks */
-       #define CFG_MAX_FLASH_SECT      128     /* max number of sectors on one chip */
-       #define CFG_FLASH_PROTECTION            /* hardware flash protection */
+       #define CONFIG_SYS_FLASH_EMPTY_INFO     1       /* ?empty sector */
+       #define CONFIG_SYS_MAX_FLASH_BANKS      1       /* max number of memory banks */
+       #define CONFIG_SYS_MAX_FLASH_SECT       128     /* max number of sectors on one chip */
+       #define CONFIG_SYS_FLASH_PROTECTION             /* hardware flash protection */
 
        #ifdef  RAMENV
                #define CONFIG_ENV_IS_NOWHERE   1
                #define CONFIG_ENV_SIZE         0x1000
-               #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - CONFIG_ENV_SIZE)
+               #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
 
        #else   /* !RAMENV */
                #define CONFIG_ENV_IS_IN_FLASH  1
                #define CONFIG_ENV_SECT_SIZE    0x40000 /* 256K(one sector) for env */
-               #define CONFIG_ENV_ADDR         (CFG_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
+               #define CONFIG_ENV_ADDR         (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
                #define CONFIG_ENV_SIZE         0x40000
        #endif /* !RAMBOOT */
 #else /* !FLASH */
        /* ENV in RAM */
-       #define CFG_NO_FLASH            1
+       #define CONFIG_SYS_NO_FLASH             1
        #define CONFIG_ENV_IS_NOWHERE   1
        #define CONFIG_ENV_SIZE         0x1000
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - CONFIG_ENV_SIZE)
-       #define CFG_FLASH_PROTECTION            /* hardware flash protection */
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
+       #define CONFIG_SYS_FLASH_PROTECTION             /* hardware flash protection */
 #endif /* !FLASH */
 
 /* system ace */
        #define CONFIG_SYSTEMACE
        /* #define DEBUG_SYSTEMACE */
        #define SYSTEMACE_CONFIG_FPGA
-       #define CFG_SYSTEMACE_BASE      XILINX_SYSACE_BASEADDR
-       #define CFG_SYSTEMACE_WIDTH     XILINX_SYSACE_MEM_WIDTH
+       #define CONFIG_SYS_SYSTEMACE_BASE       XILINX_SYSACE_BASEADDR
+       #define CONFIG_SYS_SYSTEMACE_WIDTH      XILINX_SYSACE_MEM_WIDTH
        #define CONFIG_DOS_PARTITION
 #endif
 
 #define CONFIG_CMD_IRQ
 #define CONFIG_CMD_MFSL
 
-#ifndef CFG_ENET
+#ifndef CONFIG_SYS_ENET
        #undef CONFIG_CMD_NET
 #else
        #define CONFIG_CMD_PING
 #endif
 
 /* Miscellaneous configurable options */
-#define        CFG_PROMPT      "U-Boot-mONStR> "
-#define        CFG_CBSIZE      512     /* size of console buffer */
-#define        CFG_PBSIZE      (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) /* print buffer size */
-#define        CFG_MAXARGS     15      /* max number of command args */
-#define        CFG_LONGHELP
-#define        CFG_LOAD_ADDR   0x12000000 /* default load address */
+#define        CONFIG_SYS_PROMPT       "U-Boot-mONStR> "
+#define        CONFIG_SYS_CBSIZE       512     /* size of console buffer */
+#define        CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* print buffer size */
+#define        CONFIG_SYS_MAXARGS      15      /* max number of command args */
+#define        CONFIG_SYS_LONGHELP
+#define        CONFIG_SYS_LOAD_ADDR    0x12000000 /* default load address */
 
 #define        CONFIG_BOOTDELAY        30
 #define        CONFIG_BOOTARGS         "root=romfs"
 #define        CONFIG_ETHADDR          00:E0:0C:00:00:FD
 
 /* architecture dependent code */
-#define        CFG_USR_EXCEP   /* user exception */
-#define CFG_HZ 1000
+#define        CONFIG_SYS_USR_EXCEP    /* user exception */
+#define CONFIG_SYS_HZ  1000
 
 #define        CONFIG_PREBOOT          "echo U-BOOT for ML401;setenv preboot;echo"
 
index 22a972f3bcf0f977f0344f50b832271252e1d0ef..c637904fe949fc9b864ccaa06cc7fe768f7ed99c 100644 (file)
@@ -24,7 +24,7 @@
 #include "../board/xilinx/ml507/xparameters.h"
 
 /*Mem Map*/
-#define CFG_SDRAM_SIZE_MB      256
+#define CONFIG_SYS_SDRAM_SIZE_MB       256
 
 /*Env*/
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (XPAR_FLASH_MEM0_BASEADDR+CONFIG_ENV_OFFSET)
 
 /*Misc*/
-#define CFG_PROMPT             "ml507:/# "     /* Monitor Command Prompt    */
+#define CONFIG_SYS_PROMPT              "ml507:/# "     /* Monitor Command Prompt    */
 #define CONFIG_PREBOOT         "echo U-Boot is up and runnining;"
 
 /*Flash*/
-#define        CFG_FLASH_SIZE          (32*1024*1024)
-#define        CFG_MAX_FLASH_SECT      259
+#define        CONFIG_SYS_FLASH_SIZE           (32*1024*1024)
+#define        CONFIG_SYS_MAX_FLASH_SECT       259
 #define MTDIDS_DEFAULT         "nor0=ml507-flash"
 #define MTDPARTS_DEFAULT       "mtdparts=ml507-flash:-(user)"
 
index 8f4011a1c1aa2f6303cfa55571c3a686ee52f968..c4f52868804aa855496ef9569f56497c929ffd79 100644 (file)
@@ -45,8 +45,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128
 
 /*
  * Hardware drivers
@@ -84,7 +84,7 @@
 #define CONFIG_NETMASK          255.255.255.0
 #define CONFIG_IPADDR          192.168.30.2
 #define CONFIG_SERVERIP         192.168.30.122
-#define CFG_ETH_PHY_ADDR        0x100
+#define CONFIG_SYS_ETH_PHY_ADDR        0x100
 #define CONFIG_CMDLINE_TAG      /* submit bootargs to kernel */
 
 /*#define CONFIG_BOOTDELAY     10*/
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory */
-#define        CFG_PROMPT              "modnet50 # "   /* Monitor Command Prompt */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size */
-#define        CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory */
+#define        CONFIG_SYS_PROMPT               "modnet50 # "   /* Monitor Command Prompt */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size */
+#define        CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x00500000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00500000      /* default load address */
 
-#define        CFG_HZ                  900             /* decrementer freq: 2 kHz */
+#define        CONFIG_SYS_HZ                   900             /* decrementer freq: 2 kHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_EXT_1             0x30000000 /* Extensions Bank #1 */
 #define PHYS_EXT_SIZE          0x01000000 /* 32 MB memory mapped I/O */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
-#define CFG_FLASH_SIZE         PHYS_FLASH_1_SIZE
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_SIZE          PHYS_FLASH_1_SIZE
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     35      /* max number of sectors on one chip */
-#define CFG_MAIN_SECT_SIZE      0x00010000  /* main size of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAIN_SECT_SIZE      0x00010000  /* main size of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* environment settings */
 #define        CONFIG_ENV_IS_IN_FLASH
index cae49de1a29d385ea41c6302d2cedb698036ad6a..b3f16d5e7c411183845e16dd06b6e2e400190184 100644 (file)
@@ -75,7 +75,7 @@
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_NETCONSOLE      1       /* network console */
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 
 /*
 /*
  * Clock configuration: SYS_XTALIN = 33MHz
  */
-#define CFG_MPC5XXX_CLKIN      33000000
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000
 
 
 /*
  * Set IPB speed to 100MHz
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK
 
 
 /*
  * Setting MBAR to otherwise will cause system hang when using SmartDMA such
  * as network commands.
  */
-#define CFG_MBAR               0xf0000000
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_MBAR                0xf0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 
 /*
  * If building for running out of SDRAM, then MBAR has been set up beforehand
  * MBAR, as given in the doccumentation.
  */
 #if TEXT_BASE == 0x00100000
-#define CFG_DEFAULT_MBAR       0xf0000000
+#define CONFIG_SYS_DEFAULT_MBAR        0xf0000000
 #else /* TEXT_BASE != 0x00100000 */
-#define CFG_DEFAULT_MBAR       0x80000000
-#define CFG_LOWBOOT            1
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
+#define CONFIG_SYS_LOWBOOT             1
 #endif /* TEXT_BASE == 0x00100000 */
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT            1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT             1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* 256 kB for Monitor */
-#define CFG_MALLOC_LEN         (1024 << 10)    /* 1 MiB for malloc() */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* initial mem map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* 256 kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (1024 << 10)    /* 1 MiB for malloc() */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* initial mem map for Linux */
 
 
 /*
  * Chip selects configuration
  */
 /* Boot Chipselect */
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00045D00
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00045D00
 
 /* Flash memory addressing */
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
-#define CFG_CS0_CFG            CFG_BOOTCS_CFG
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_CS0_CFG             CONFIG_SYS_BOOTCS_CFG
 
 /* Dual Port SRAM -- Kollmorgen Drive memory addressing */
-#define CFG_CS1_START          0x50000000
-#define CFG_CS1_SIZE           0x10000
-#define CFG_CS1_CFG            0x05055800
+#define CONFIG_SYS_CS1_START           0x50000000
+#define CONFIG_SYS_CS1_SIZE            0x10000
+#define CONFIG_SYS_CS1_CFG             0x05055800
 
 /* Local register access */
-#define CFG_CS2_START          0x50010000
-#define CFG_CS2_SIZE           0x10000
-#define CFG_CS2_CFG            0x05055800
+#define CONFIG_SYS_CS2_START           0x50010000
+#define CONFIG_SYS_CS2_SIZE            0x10000
+#define CONFIG_SYS_CS2_CFG             0x05055800
 
 /* Anybus CompactCom Module memory addressing */
-#define CFG_CS3_START          0x50020000
-#define CFG_CS3_SIZE           0x10000
-#define CFG_CS3_CFG            0x05055800
+#define CONFIG_SYS_CS3_START           0x50020000
+#define CONFIG_SYS_CS3_SIZE            0x10000
+#define CONFIG_SYS_CS3_CFG             0x05055800
 
 /* No burst and dead cycle = 2 for all CSs */
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x22222222
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x22222222
 
 
 /*
 /*
  * Flash configuration
  */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_BASE         0xff000000
-#define CFG_FLASH_SIZE         0x01000000
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_BASE          0xff000000
+#define CONFIG_SYS_FLASH_SIZE          0x01000000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 #define CONFIG_FLASH_16BIT             /* Flash is 16-bit */
 
 /*
 /*
  * IDE/ATA configuration
  */
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
-#define CFG_IDE_MAXBUS         1
-#define CFG_IDE_MAXDEVICE      1
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
+#define CONFIG_SYS_IDE_MAXBUS          1
+#define CONFIG_SYS_IDE_MAXDEVICE       1
 #define CONFIG_IDE_PREINIT
 
-#define CFG_ATA_DATA_OFFSET    0x0060
-#define CFG_ATA_REG_OFFSET     CFG_ATA_DATA_OFFSET
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0060
+#define CONFIG_SYS_ATA_REG_OFFSET      CONFIG_SYS_ATA_DATA_OFFSET
+#define CONFIG_SYS_ATA_STRIDE          4
 #define CONFIG_DOS_PARTITION
 
 
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* select I2C module #2 */
-#define CFG_I2C_SPEED          100000  /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_MODULE          2       /* select I2C module #2 */
+#define CONFIG_SYS_I2C_SPEED           100000  /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     1       /* 2 bytes per write cycle */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 5       /* 2ms/cycle + 3ms extra */
-#define CFG_I2C_MULTI_EEPROMS          1       /* 2 EEPROMs (addr:50,52) */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      1       /* 2 bytes per write cycle */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  5       /* 2ms/cycle + 3ms extra */
+#define CONFIG_SYS_I2C_MULTI_EEPROMS           1       /* 2 EEPROMs (addr:50,52) */
 
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_DS1337      1
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 
 /*
@@ -354,7 +354,7 @@ extern void __led_set(led_id_t id, int state);
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
 /* This has to be a multiple of the Flash sector size */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_ENV_SIZE                0x1000
 #define CONFIG_ENV_SECT_SIZE   0x20000
 
@@ -374,48 +374,48 @@ extern void __led_set(led_id_t id, int state);
  * Timer: CAN2/GPIO
  * PSC6/IRDA: GPIO (default)
  */
-#define CFG_GPS_PORT_CONFIG    0x1105a004
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x1105a004
 
 
 /*
  * Motion-PRO's CPLD revision control register
  */
-#define CPLD_REV_REGISTER      (CFG_CS2_START + 0x06)
+#define CPLD_REV_REGISTER      (CONFIG_SYS_CS2_START + 0x06)
 
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory    */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory    */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x03e00000      /* 1 ... 62 MiB in DRAM */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x03e00000      /* 1 ... 62 MiB in DRAM */
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_LOAD_ADDR          0x200000        /* default kernel load addr */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default kernel load addr */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 
 
 /* Not needed for MPC 5xxx U-Boot, but used by tools/updater */
-#define CFG_RESET_ADDRESS      0xfff00100
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_LIBFDT       1
index ba1ed0dcad4236ab40aa1aa84ff8d8ad96aee533..2ffeae608b388a3c985931570ce823ec859f8196 100644 (file)
@@ -45,9 +45,9 @@
 #define CONFIG_SETUP_MEMORY_TAGS 1
 #define CONFIG_INITRD_TAG      1
 
-#define CFG_ATMEL_PLL_INIT_BUG 1
+#define CONFIG_SYS_ATMEL_PLL_INIT_BUG  1
 #ifndef CONFIG_SKIP_LOWLEVEL_INIT
-#define CFG_USE_MAIN_OSCILLATOR        1
+#define CONFIG_SYS_USE_MAIN_OSCILLATOR 1
 /* flash */
 #define MC_PUIA_VAL    0x00000000
 #define MC_PUP_VAL     0x00000000
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_AT91C_BRGR_DIVISOR 33      /* hardcode so no __divsi3 : AT91C_MASTER_CLOCK /(baudrate * 16) */
+#define CONFIG_SYS_AT91C_BRGR_DIVISOR  33      /* hardcode so no __divsi3 : AT91C_MASTER_CLOCK /(baudrate * 16) */
 
 /*
  * Hardware drivers
 #define CONFIG_DOS_PARTITION   1
 #define CONFIG_AT91C_PQFP_UHPBUG 1
 
-#undef CFG_USB_OHCI_BOARD_INIT
-#define CFG_USB_OHCI_CPU_INIT          1
-#define CFG_USB_OHCI_REGS_BASE         AT91_USB_HOST_BASE
-#define CFG_USB_OHCI_SLOT_NAME         "at91rm9200"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
+#undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#define CONFIG_SYS_USB_OHCI_CPU_INIT           1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE          AT91_USB_HOST_BASE
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "at91rm9200"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
 
 #undef CONFIG_HARD_I2C
 
 #ifdef CONFIG_HARD_I2C
-#define CFG_I2C_SPEED          0       /* not used */
-#define CFG_I2C_SLAVE          0       /* not used */
+#define CONFIG_SYS_I2C_SPEED           0       /* not used */
+#define CONFIG_SYS_I2C_SLAVE           0       /* not used */
 #define CONFIG_RTC_RS5C372A            /* RICOH I2C RTC */
-#define CFG_I2C_RTC_ADDR       0x32
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW
+#define CONFIG_SYS_I2C_RTC_ADDR        0x32
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
 #endif
 /* still about 20 kB free with this defined */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 #define CONFIG_BOOTDELAY      3
 
 #endif
 
 
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 #define CONFIG_NR_DRAM_BANKS   1
 #define PHYS_SDRAM             0x20000000
 #define PHYS_SDRAM_SIZE                0x08000000      /* 128 megs */
 
-#define CFG_MEMTEST_START      PHYS_SDRAM
-#define CFG_MEMTEST_END                CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
+#define CONFIG_SYS_MEMTEST_START       PHYS_SDRAM
+#define CONFIG_SYS_MEMTEST_END         CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
 
 #define CONFIG_DRIVER_ETHER
 #define CONFIG_NET_RETRY_COUNT         20
 
 #define PHYS_FLASH_1                   0x10000000
 #define PHYS_FLASH_SIZE                        0x1000000  /* 16 megs main flash */
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
-#define CFG_MONITOR_BASE               CFG_FLASH_BASE
-#define CFG_MAX_FLASH_BANKS            1
-#define CFG_MAX_FLASH_SECT             256
-#define CFG_FLASH_ERASE_TOUT           (2 * CFG_HZ)    /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT           (2 * CFG_HZ)    /* Timeout for Flash Write */
-#define CFG_FLASH_LOCK_TOUT            (10*CFG_HZ)     /* Timeout for Flash Set Lock Bit */
-#define CFG_FLASH_UNLOCK_TOUT          (10*CFG_HZ)     /* Timeout for Flash Clear Lock Bits */
-#define CFG_FLASH_PROTECTION                           /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MAX_FLASH_BANKS             1
+#define CONFIG_SYS_MAX_FLASH_SECT              256
+#define CONFIG_SYS_FLASH_ERASE_TOUT            (2 * CONFIG_SYS_HZ)     /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT            (2 * CONFIG_SYS_HZ)     /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_LOCK_TOUT             (10*CONFIG_SYS_HZ)      /* Timeout for Flash Set Lock Bit */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT           (10*CONFIG_SYS_HZ)      /* Timeout for Flash Clear Lock Bits */
+#define CONFIG_SYS_FLASH_PROTECTION                            /* "Real" (hardware) sectors protection */
 
 #define CONFIG_ENV_IS_IN_FLASH         1
 #define CONFIG_ENV_OFFSET                      0x20000         /* after u-boot.bin */
-#define CONFIG_ENV_ADDR                        (CFG_FLASH_BASE+CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                        (CONFIG_SYS_FLASH_BASE+CONFIG_ENV_OFFSET)
 #define CONFIG_ENV_SIZE                        0x20000
 
-#define CFG_LOAD_ADDR          0x21000000  /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x21000000  /* default load address */
 
-#define CFG_BAUDRATE_TABLE     { 115200, 57600, 38400, 19200, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 57600, 38400, 19200, 9600 }
 
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
-#define CFG_MAXARGS            32              /* max number of command args */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_MAXARGS             32              /* max number of command args */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
 
-#define CFG_DEVICE_DEREGISTER           /* needs device_deregister */
+#define CONFIG_SYS_DEVICE_DEREGISTER           /* needs device_deregister */
 #define LITTLEENDIAN            1       /* used by usb_ohci.c  */
 
-#define CFG_HZ 1000
-#define CFG_HZ_CLOCK (AT91C_MASTER_CLOCK/2)    /* AT91C_TC0_CMR is implicitly set to */
+#define CONFIG_SYS_HZ 1000
+#define CONFIG_SYS_HZ_CLOCK (AT91C_MASTER_CLOCK/2)     /* AT91C_TC0_CMR is implicitly set to */
                                                /* AT91C_TC_TIMER_DIV1_CLOCK */
 
 #define CONFIG_STACKSIZE       (32*1024)       /* regular stack */
 #error CONFIG_USE_IRQ not supported
 #endif
 
-#define CFG_DEVICE_NULLDEV      1      /* enble null device            */
+#define CONFIG_SYS_DEVICE_NULLDEV       1      /* enble null device            */
 #undef CONFIG_SILENT_CONSOLE           /* enable silent startup        */
 
 #define CONFIG_AUTOBOOT_KEYED
index 308a7b94299cc76a327afb2b24310e783bed7797..483bc5305cc01dcb13b6110bb0c757a271f5c776 100644 (file)
 #define CONFIG_HIGH_BATS       /* High BATs supported */
 #define CONFIG_ALTIVEC         /* undef to disable */
 
-#define CFG_BOARD_NAME         "MPC7448 HPC II"
+#define CONFIG_SYS_BOARD_NAME          "MPC7448 HPC II"
 #define CONFIG_IDENT_STRING    " Freescale MPC7448 HPC II"
 
-#define CFG_OCN_CLK            133000000       /* 133 MHz */
-#define CFG_CONFIG_BUS_CLK     133000000
+#define CONFIG_SYS_OCN_CLK             133000000       /* 133 MHz */
+#define CONFIG_SYS_CONFIG_BUS_CLK      133000000
 
-#define CFG_CLK_SPREAD         /* Enable Spread-Spectrum Clock generation */
+#define CONFIG_SYS_CLK_SPREAD          /* Enable Spread-Spectrum Clock generation */
 
 #undef  CONFIG_ECC             /* disable ECC support */
 
 /* Board-specific Initialization Functions to be called */
-#define CFG_BOARD_ASM_INIT
+#define CONFIG_SYS_BOARD_ASM_INIT
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_BOARD_EARLY_INIT_R
 #define CONFIG_MISC_INIT_R
 
 #define CONFIG_BAUDRATE                115200  /* console baudrate = 115000 */
 
-/*#define CFG_HUSH_PARSER */
-#undef CFG_HUSH_PARSER
+/*#define CONFIG_SYS_HUSH_PARSER */
+#undef CONFIG_SYS_HUSH_PARSER
 
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 /* Pass open firmware flat tree */
 #define CONFIG_OF_LIBFDT       1
  *
  * what to do:
  * If you have hacked a serial cable onto the second DUART channel,
- * change the CFG_DUART port from 1 to 0 below.
+ * change the CONFIG_SYS_DUART port from 1 to 0 below.
  *
  */
 
 #define CONFIG_CONS_INDEX      1
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                CFG_OCN_CLK * 8
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         CONFIG_SYS_OCN_CLK * 8
 
-#define CFG_NS16550_COM1       (CFG_TSI108_CSR_RST_BASE+0x7808)
-#define CFG_NS16550_COM2       (CFG_TSI108_CSR_RST_BASE+0x7C08)
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_TSI108_CSR_RST_BASE+0x7808)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_TSI108_CSR_RST_BASE+0x7C08)
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_BOOTDELAY       3       /* autoboot after 3 seconds */
 #define CONFIG_ZERO_BOOTDELAY_CHECK
 /*-------------------------------------------------------------------------- */
 
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#define CFG_LOADS_BAUD_CHANGE  /* allow baudrate changes */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   /* allow baudrate changes */
 
 #undef CONFIG_WATCHDOG         /* watchdog disabled */
 
 
 /*set date in u-boot*/
 #define CONFIG_RTC_M48T35A
-#define CFG_NVRAM_BASE_ADDR    0xfc000000
-#define CFG_NVRAM_SIZE         0x8000
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xfc000000
+#define CONFIG_SYS_NVRAM_SIZE          0x8000
 /*
  * Miscellaneous configurable options
  */
 #define CONFIG_VERSION_VARIABLE                1
 #define CONFIG_TSI108_I2C
 
-#define CFG_I2C_EEPROM_ADDR            0x50    /* I2C EEPROM page 1 */
-#define CFG_I2C_EEPROM_ADDR_LEN                1       /* Bytes of address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* I2C EEPROM page 1 */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1       /* Bytes of address */
 
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_PROMPT     "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_PROMPT      "=> "   /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size */
 #define CONFIG_KGDB_BAUDRATE   115200  /* speed to run kgdb serial port at */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)/* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)/* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on */
-#define CFG_MEMTEST_END                0x07c00000      /* 4 ... 124 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x07c00000      /* 4 ... 124 MB in DRAM */
 
-#define CFG_LOAD_ADDR  0x00400000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x00400000      /* default load address */
 
-#define CFG_HZ         1000            /* decr freq: 1ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decr freq: 1ms ticks */
 
 /*
  * Low Level Configuration Settings
  */
 
 /*
- * When locking data in cache you should point the CFG_INIT_RAM_ADDRESS
+ * When locking data in cache you should point the CONFIG_SYS_INIT_RAM_ADDRESS
  * To an unused memory region. The stack will remain in cache until RAM
  * is initialized
  */
-#undef  CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0x07d00000      /* unused memory region */
-#define CFG_INIT_RAM_END       0x4000/* larger space - we have SDRAM initialized */
+#undef  CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x07d00000      /* unused memory region */
+#define CONFIG_SYS_INIT_RAM_END        0x4000/* larger space - we have SDRAM initialized */
 
-#define CFG_GBL_DATA_SIZE      128/* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128/* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
 
-#define CFG_SDRAM_BASE         0x00000000      /* first 256 MB of SDRAM */
-#define CFG_SDRAM1_BASE                0x10000000      /* next 256MB of SDRAM */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000      /* first 256 MB of SDRAM */
+#define CONFIG_SYS_SDRAM1_BASE         0x10000000      /* next 256MB of SDRAM */
 
-#define CFG_SDRAM2_BASE        0x40000000      /* beginning of non-cacheable alias for SDRAM - first 256MB */
-#define CFG_SDRAM3_BASE        0x50000000      /* next Non-Cacheable 256MB of SDRAM */
+#define CONFIG_SYS_SDRAM2_BASE 0x40000000      /* beginning of non-cacheable alias for SDRAM - first 256MB */
+#define CONFIG_SYS_SDRAM3_BASE 0x50000000      /* next Non-Cacheable 256MB of SDRAM */
 
-#define CFG_PCI_PFM_BASE       0x80000000      /* Prefetchable (cacheable) PCI/X PFM and SDRAM OCN (128MB+128MB) */
+#define CONFIG_SYS_PCI_PFM_BASE        0x80000000      /* Prefetchable (cacheable) PCI/X PFM and SDRAM OCN (128MB+128MB) */
 
-#define CFG_PCI_MEM32_BASE     0xE0000000      /* Non-Cacheable PCI/X MEM and SDRAM OCN (128MB+128MB) */
+#define CONFIG_SYS_PCI_MEM32_BASE      0xE0000000      /* Non-Cacheable PCI/X MEM and SDRAM OCN (128MB+128MB) */
 
-#define CFG_MISC_REGION_BASE   0xf0000000      /* Base Address for (PCI/X + Flash) region */
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000      /* Base Address for (PCI/X + Flash) region */
 
-#define CFG_FLASH_BASE 0xff000000      /* Base Address of Flash device */
-#define CFG_FLASH_BASE2        0xfe000000      /* Alternate Flash Base Address */
+#define CONFIG_SYS_FLASH_BASE  0xff000000      /* Base Address of Flash device */
+#define CONFIG_SYS_FLASH_BASE2 0xfe000000      /* Alternate Flash Base Address */
 
 #define CONFIG_VERY_BIG_RAM    /* we will use up to 256M memory for cause we are short of BATS */
 
 #define PCI0_IO_BASE_BOOTM     0xfd000000
 
-#define CFG_RESET_ADDRESS      0x3fffff00
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* u-boot code base */
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_RESET_ADDRESS       0x3fffff00
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* u-boot code base */
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
 
 /* Peripheral Device section */
 
  * Resources on the Tsi108
  */
 
-#define CFG_TSI108_CSR_RST_BASE        0xC0000000      /* Tsi108 CSR base after reset */
-#define CFG_TSI108_CSR_BASE    CFG_TSI108_CSR_RST_BASE /* Runtime Tsi108 CSR base */
+#define CONFIG_SYS_TSI108_CSR_RST_BASE 0xC0000000      /* Tsi108 CSR base after reset */
+#define CONFIG_SYS_TSI108_CSR_BASE     CONFIG_SYS_TSI108_CSR_RST_BASE  /* Runtime Tsi108 CSR base */
 
 #define ENABLE_PCI_CSR_BAR     /* enables access to Tsi108 CSRs from the PCI/X bus */
 
 /* PCI MEMORY MAP section */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 /* PCI Memory Space */
-#define CFG_PCI_MEM_BUS                (CFG_PCI_MEM_PHYS)
-#define CFG_PCI_MEM_PHYS       (CFG_PCI_MEM32_BASE)    /* 0xE0000000 */
-#define CFG_PCI_MEM_SIZE       0x10000000      /* 256 MB space for PCI/X Mem + SDRAM OCN */
+#define CONFIG_SYS_PCI_MEM_BUS         (CONFIG_SYS_PCI_MEM_PHYS)
+#define CONFIG_SYS_PCI_MEM_PHYS        (CONFIG_SYS_PCI_MEM32_BASE)     /* 0xE0000000 */
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000      /* 256 MB space for PCI/X Mem + SDRAM OCN */
 
 /* PCI I/O Space */
-#define CFG_PCI_IO_BUS         0x00000000
-#define CFG_PCI_IO_PHYS                0xfa000000      /* Changed from fd000000 */
+#define CONFIG_SYS_PCI_IO_BUS          0x00000000
+#define CONFIG_SYS_PCI_IO_PHYS         0xfa000000      /* Changed from fd000000 */
 
-#define CFG_PCI_IO_SIZE                0x01000000      /* 16MB */
+#define CONFIG_SYS_PCI_IO_SIZE         0x01000000      /* 16MB */
 
 #define _IO_BASE               0x00000000      /* points to PCI I/O space      */
 
 /* PCI Config Space mapping */
-#define CFG_PCI_CFG_BASE       0xfb000000      /* Changed from FE000000 */
-#define CFG_PCI_CFG_SIZE       0x01000000      /* 16MB */
+#define CONFIG_SYS_PCI_CFG_BASE        0xfb000000      /* Changed from FE000000 */
+#define CONFIG_SYS_PCI_CFG_SIZE        0x01000000      /* 16MB */
 
-#define CFG_IBAT0U     0xFE0003FF
-#define CFG_IBAT0L     0xFE000002
+#define CONFIG_SYS_IBAT0U      0xFE0003FF
+#define CONFIG_SYS_IBAT0L      0xFE000002
 
-#define CFG_IBAT1U     0x00007FFF
-#define CFG_IBAT1L     0x00000012
+#define CONFIG_SYS_IBAT1U      0x00007FFF
+#define CONFIG_SYS_IBAT1L      0x00000012
 
-#define CFG_IBAT2U     0x80007FFF
-#define CFG_IBAT2L     0x80000022
+#define CONFIG_SYS_IBAT2U      0x80007FFF
+#define CONFIG_SYS_IBAT2L      0x80000022
 
-#define CFG_IBAT3U     0x00000000
-#define CFG_IBAT3L     0x00000000
+#define CONFIG_SYS_IBAT3U      0x00000000
+#define CONFIG_SYS_IBAT3L      0x00000000
 
-#define CFG_IBAT4U     0x00000000
-#define CFG_IBAT4L     0x00000000
+#define CONFIG_SYS_IBAT4U      0x00000000
+#define CONFIG_SYS_IBAT4L      0x00000000
 
-#define CFG_IBAT5U     0x00000000
-#define CFG_IBAT5L     0x00000000
+#define CONFIG_SYS_IBAT5U      0x00000000
+#define CONFIG_SYS_IBAT5L      0x00000000
 
-#define CFG_IBAT6U     0x00000000
-#define CFG_IBAT6L     0x00000000
+#define CONFIG_SYS_IBAT6U      0x00000000
+#define CONFIG_SYS_IBAT6L      0x00000000
 
-#define CFG_IBAT7U     0x00000000
-#define CFG_IBAT7L     0x00000000
+#define CONFIG_SYS_IBAT7U      0x00000000
+#define CONFIG_SYS_IBAT7L      0x00000000
 
-#define CFG_DBAT0U     0xE0003FFF
-#define CFG_DBAT0L     0xE000002A
+#define CONFIG_SYS_DBAT0U      0xE0003FFF
+#define CONFIG_SYS_DBAT0L      0xE000002A
 
-#define CFG_DBAT1U     0x00007FFF
-#define CFG_DBAT1L     0x00000012
+#define CONFIG_SYS_DBAT1U      0x00007FFF
+#define CONFIG_SYS_DBAT1L      0x00000012
 
-#define CFG_DBAT2U     0x00000000
-#define CFG_DBAT2L     0x00000000
+#define CONFIG_SYS_DBAT2U      0x00000000
+#define CONFIG_SYS_DBAT2L      0x00000000
 
-#define CFG_DBAT3U     0xC0000003
-#define CFG_DBAT3L     0xC000002A
+#define CONFIG_SYS_DBAT3U      0xC0000003
+#define CONFIG_SYS_DBAT3L      0xC000002A
 
-#define CFG_DBAT4U     0x00000000
-#define CFG_DBAT4L     0x00000000
+#define CONFIG_SYS_DBAT4U      0x00000000
+#define CONFIG_SYS_DBAT4L      0x00000000
 
-#define CFG_DBAT5U     0x00000000
-#define CFG_DBAT5L     0x00000000
+#define CONFIG_SYS_DBAT5U      0x00000000
+#define CONFIG_SYS_DBAT5L      0x00000000
 
-#define CFG_DBAT6U     0x00000000
-#define CFG_DBAT6L     0x00000000
+#define CONFIG_SYS_DBAT6U      0x00000000
+#define CONFIG_SYS_DBAT6L      0x00000000
 
-#define CFG_DBAT7U     0x00000000
-#define CFG_DBAT7L     0x00000000
+#define CONFIG_SYS_DBAT7U      0x00000000
+#define CONFIG_SYS_DBAT7L      0x00000000
 
 /* I2C addresses for the two DIMM SPD chips */
 #define DIMM0_I2C_ADDR 0x51
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8<<20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8<<20) /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1               /* Flash can be at one of two addresses */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Flash can be at one of two addresses */
 #define FLASH_BANK_SIZE                0x01000000      /* 16 MB Total */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, /* CFG_FLASH_BASE2 */ }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, /* CONFIG_SYS_FLASH_BASE2 */ }
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_WRITE_SWAPPED_DATA
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_WRITE_SWAPPED_DATA
 
 #define PHYS_FLASH_SIZE                0x01000000
-#define CFG_MAX_FLASH_SECT     (128)
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)
 
 #define CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_ADDR                0xFC000000
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * L2CR setup -- make sure this is right for your board!
  * look in include/mpc74xx.h for the defines used here
  */
-#undef CFG_L2
+#undef CONFIG_SYS_L2
 
 #define L2_INIT                0
 #define L2_ENABLE      (L2_INIT | L2CR_L2E)
  */
 #define BOOTFLAG_COLD  0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM  0x02    /* Software reboot */
-#define CFG_SERIAL_HANG_IN_EXCEPTION
+#define CONFIG_SYS_SERIAL_HANG_IN_EXCEPTION
 #endif /* __CONFIG_H */
index 6b378ac7d0302dee04078dc5d9d3d62501960d4f..6ebb1e17b5d7a61cca849171cb869aca2fbc0c3c 100644 (file)
 #define CONFIG_MPR2            1
 
 /* U-Boot internals */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
-#define CFG_CBSIZE             256     /* Buffer size for input from the Console */
-#define CFG_PBSIZE             256     /* Buffer size for Console output */
-#define CFG_MAXARGS            16      /* max args accepted for monitor commands */
-#define CFG_BARGSIZE           512     /* Buffer size for Boot Arguments passed to kernel */
-#define CFG_BAUDRATE_TABLE     { 115200 }      /* List of legal baudrate settings for this board */
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 32 * 1024 * 1024)
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define CFG_MONITOR_LEN                (128 * 1024)
-#define CFG_MALLOC_LEN         (256 * 1024)
-#define CFG_GBL_DATA_SIZE      256
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256     /* Buffer size for input from the Console */
+#define CONFIG_SYS_PBSIZE              256     /* Buffer size for Console output */
+#define CONFIG_SYS_MAXARGS             16      /* max args accepted for monitor commands */
+#define CONFIG_SYS_BARGSIZE            512     /* Buffer size for Boot Arguments passed to kernel */
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }      /* List of legal baudrate settings for this board */
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       256
 
 /* Memory */
-#define CFG_SDRAM_BASE         0x8C000000
-#define CFG_SDRAM_SIZE         (64 * 1024 * 1024)
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + (60 * 1024 * 1024))
+#define CONFIG_SYS_SDRAM_BASE          0x8C000000
+#define CONFIG_SYS_SDRAM_SIZE          (64 * 1024 * 1024)
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
 
 /* Flash */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_BASE         0xA0000000
-#define CFG_MAX_FLASH_SECT     256
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_BASE          0xA0000000
+#define CONFIG_SYS_MAX_FLASH_SECT      256
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   (128 * 1024)
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_FLASH_ERASE_TOUT   120000
-#define CFG_FLASH_WRITE_TOUT   500
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500
 
 /* Clocks */
 #define CONFIG_SYS_CLK_FREQ    24000000
 #define TMU_CLK_DIVIDER                4       /* 4 (default), 16, 64, 256 or 1024 */
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 /* UART */
 #define CONFIG_SCIF_CONSOLE    1
index f308460c75cd50d2811af61813dac43b8ed2adfc..520bac074994cee5dafcbb43737b950055d393d8 100644 (file)
 #define MS7720SE_FLASH_BASE_1          0xA0000000
 #define MS7720SE_FLASH_BANK_SIZE       (8 * 1024 * 1024)
 
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_PROMPT     "=> "   /* Monitor Command Prompt */
-#define CFG_CBSIZE     256     /* Buffer size for input from the Console */
-#define CFG_PBSIZE     256     /* Buffer size for Console output */
-#define CFG_MAXARGS    16      /* max args accepted for monitor commands */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_PROMPT      "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE      256     /* Buffer size for input from the Console */
+#define CONFIG_SYS_PBSIZE      256     /* Buffer size for Console output */
+#define CONFIG_SYS_MAXARGS     16      /* max args accepted for monitor commands */
 /* Buffer size for Boot Arguments passed to kernel */
-#define CFG_BARGSIZE   512
+#define CONFIG_SYS_BARGSIZE    512
 /* List of legal baudrate settings for this board */
-#define CFG_BAUDRATE_TABLE     { 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }
 
 /* SCIF */
 #define CONFIG_SCIF_CONSOLE    1
 #define CONFIG_CONS_SCIF0      1
 
-#define CFG_MEMTEST_START      MS7720SE_SDRAM_BASE
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + (60 * 1024 * 1024))
+#define CONFIG_SYS_MEMTEST_START       MS7720SE_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
 
-#define CFG_SDRAM_BASE         MS7720SE_SDRAM_BASE
-#define CFG_SDRAM_SIZE         (64 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE          MS7720SE_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_SIZE          (64 * 1024 * 1024)
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 32 * 1024 * 1024)
-#define CFG_MONITOR_BASE       MS7720SE_FLASH_BASE_1
-#define CFG_MONITOR_LEN                (128 * 1024)
-#define CFG_MALLOC_LEN         (256 * 1024)
-#define CFG_GBL_DATA_SIZE      256
-#define CFG_BOOTMAPSZ          (8 * 1024 * 1024)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        MS7720SE_FLASH_BASE_1
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       256
+#define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
 
 
 /* FLASH */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#undef  CFG_FLASH_QUIET_TEST
-#define CFG_FLASH_EMPTY_INFO   /* print 'E' for empty sector on flinfo */
+#undef  CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_EMPTY_INFO    /* print 'E' for empty sector on flinfo */
 
-#define CFG_FLASH_BASE         MS7720SE_FLASH_BASE_1
+#define CONFIG_SYS_FLASH_BASE          MS7720SE_FLASH_BASE_1
 
-#define CFG_MAX_FLASH_SECT     150
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_MAX_FLASH_SECT      150
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   (64 * 1024)
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_FLASH_ERASE_TOUT   120000
-#define CFG_FLASH_WRITE_TOUT   500
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500
 
 /* Board Clock */
 #define CONFIG_SYS_CLK_FREQ    33333333
 #define TMU_CLK_DIVIDER                4       /* 4 (default), 16, 64, 256 or 1024 */
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 /* PCMCIA */
 #define CONFIG_IDE_PCMCIA      1
 #define CONFIG_MARUBUN_PCCARD  1
 #define CONFIG_PCMCIA_SLOT_A   1
-#define CFG_IDE_MAXDEVICE      1
-#define CFG_MARUBUN_MRSHPC     0xb83fffe0
-#define CFG_MARUBUN_MW1                0xb8400000
-#define CFG_MARUBUN_MW2                0xb8500000
-#define CFG_MARUBUN_IO         0xb8600000
-
-#define CFG_PIO_MODE           1
-#define CFG_IDE_MAXBUS         1
+#define CONFIG_SYS_IDE_MAXDEVICE       1
+#define CONFIG_SYS_MARUBUN_MRSHPC      0xb83fffe0
+#define CONFIG_SYS_MARUBUN_MW1         0xb8400000
+#define CONFIG_SYS_MARUBUN_MW2         0xb8500000
+#define CONFIG_SYS_MARUBUN_IO          0xb8600000
+
+#define CONFIG_SYS_PIO_MODE            1
+#define CONFIG_SYS_IDE_MAXBUS          1
 #define CONFIG_DOS_PARTITION   1
-#define CFG_ATA_BASE_ADDR      CFG_MARUBUN_IO  /* base address */
-#define CFG_ATA_IDE0_OFFSET    0x01F0          /* ide0 offste */
-#define CFG_ATA_DATA_OFFSET    0               /* data reg offset */
-#define CFG_ATA_REG_OFFSET     0               /* reg offset */
-#define CFG_ATA_ALT_OFFSET     0x200           /* alternate register offset */
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_MARUBUN_IO   /* base address */
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x01F0          /* ide0 offste */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0               /* data reg offset */
+#define CONFIG_SYS_ATA_REG_OFFSET      0               /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x200           /* alternate register offset */
 
 #endif /* __MS7720SE_H */
index 5f5970b54d1ba18e1a5b17d0be0244c16acca019..9997c9b017831367ecb9fa70e30a9090e6352970 100644 (file)
 #define MS7722SE_FLASH_BASE_1  (0xA0000000)
 #define MS7722SE_FLASH_BANK_SIZE       (8*1024 * 1024)
 
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
-#define CFG_CBSIZE             256             /* Buffer size for input from the Console */
-#define CFG_PBSIZE             256             /* Buffer size for Console output */
-#define CFG_MAXARGS            16              /* max args accepted for monitor commands */
-#define CFG_BARGSIZE           512             /* Buffer size for Boot Arguments passed to kernel */
-#define CFG_BAUDRATE_TABLE     { 115200 }      /* List of legal baudrate settings for this board */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256             /* Buffer size for input from the Console */
+#define CONFIG_SYS_PBSIZE              256             /* Buffer size for Console output */
+#define CONFIG_SYS_MAXARGS             16              /* max args accepted for monitor commands */
+#define CONFIG_SYS_BARGSIZE            512             /* Buffer size for Boot Arguments passed to kernel */
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }      /* List of legal baudrate settings for this board */
 
 /* SCIF */
 #define CONFIG_SCIF_CONSOLE    1
 #define CONFIG_CONS_SCIF0      1
-#undef  CFG_CONSOLE_INFO_QUIET                 /* Suppress display of console information at boot */
-#undef  CFG_CONSOLE_OVERWRITE_ROUTINE
-#undef  CFG_CONSOLE_ENV_OVERWRITE
+#undef  CONFIG_SYS_CONSOLE_INFO_QUIET                  /* Suppress display of console information at boot */
+#undef  CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#undef  CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 
-#define CFG_MEMTEST_START      (MS7722SE_SDRAM_BASE)
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + (60 * 1024 * 1024))
+#define CONFIG_SYS_MEMTEST_START       (MS7722SE_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
 
-#undef  CFG_ALT_MEMTEST                /* Enable alternate, more extensive, memory test */
-#undef  CFG_MEMTEST_SCRATCH    /* Scratch address used by the alternate memory test */
+#undef  CONFIG_SYS_ALT_MEMTEST         /* Enable alternate, more extensive, memory test */
+#undef  CONFIG_SYS_MEMTEST_SCRATCH     /* Scratch address used by the alternate memory test */
 
-#undef  CFG_LOADS_BAUD_CHANGE  /* Enable temporary baudrate change while serial download */
+#undef  CONFIG_SYS_LOADS_BAUD_CHANGE   /* Enable temporary baudrate change while serial download */
 
-#define CFG_SDRAM_BASE (MS7722SE_SDRAM_BASE)
-#define CFG_SDRAM_SIZE (64 * 1024 * 1024)      /* maybe more, but if so u-boot doesn't know about it... */
+#define CONFIG_SYS_SDRAM_BASE  (MS7722SE_SDRAM_BASE)
+#define CONFIG_SYS_SDRAM_SIZE  (64 * 1024 * 1024)      /* maybe more, but if so u-boot doesn't know about it... */
 
-#define CFG_LOAD_ADDR  (CFG_SDRAM_BASE + 4 * 1024 * 1024)      /* default load address for scripts ?!? */
+#define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024)       /* default load address for scripts ?!? */
 
-#define CFG_MONITOR_BASE       (MS7722SE_FLASH_BASE_1) /* Address of u-boot image
+#define CONFIG_SYS_MONITOR_BASE        (MS7722SE_FLASH_BASE_1) /* Address of u-boot image
                                                        in Flash (NOT run time address in SDRAM) ?!? */
-#define CFG_MONITOR_LEN        (128 * 1024)            /* */
-#define CFG_MALLOC_LEN (256 * 1024)            /* Size of DRAM reserved for malloc() use */
-#define CFG_GBL_DATA_SIZE      (256)           /* size in bytes reserved for initial data */
-#define CFG_BOOTMAPSZ  (8 * 1024 * 1024)
+#define CONFIG_SYS_MONITOR_LEN (128 * 1024)            /* */
+#define CONFIG_SYS_MALLOC_LEN  (256 * 1024)            /* Size of DRAM reserved for malloc() use */
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)           /* size in bytes reserved for initial data */
+#define CONFIG_SYS_BOOTMAPSZ   (8 * 1024 * 1024)
 
 /* FLASH */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#undef  CFG_FLASH_QUIET_TEST
-#define CFG_FLASH_EMPTY_INFO                   /* print 'E' for empty sector on flinfo */
+#undef  CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_EMPTY_INFO                    /* print 'E' for empty sector on flinfo */
 
-#define CFG_FLASH_BASE         (MS7722SE_FLASH_BASE_1) /* Physical start address of Flash memory */
+#define CONFIG_SYS_FLASH_BASE          (MS7722SE_FLASH_BASE_1) /* Physical start address of Flash memory */
 
-#define CFG_MAX_FLASH_SECT     150             /* Max number of sectors on each
+#define CONFIG_SYS_MAX_FLASH_SECT      150             /* Max number of sectors on each
                                                        Flash chip */
 
 /* if you use all NOR Flash , you change dip-switch. Please see MS7722SE01 Manual. */
-#define CFG_MAX_FLASH_BANKS    2
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE + (0 * MS7722SE_FLASH_BANK_SIZE), \
-                                 CFG_FLASH_BASE + (1 * MS7722SE_FLASH_BANK_SIZE), \
+#define CONFIG_SYS_MAX_FLASH_BANKS     2
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE + (0 * MS7722SE_FLASH_BANK_SIZE), \
+                                 CONFIG_SYS_FLASH_BASE + (1 * MS7722SE_FLASH_BANK_SIZE), \
                                }
 
-#define CFG_FLASH_ERASE_TOUT   (3 * 1000)      /* Timeout for Flash erase operations (in ms) */
-#define CFG_FLASH_WRITE_TOUT   (3 * 1000)      /* Timeout for Flash write operations (in ms) */
-#define CFG_FLASH_LOCK_TOUT    (3 * 1000)      /* Timeout for Flash set sector lock bit operations (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  (3 * 1000)      /* Timeout for Flash clear lock bit operations (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (3 * 1000)      /* Timeout for Flash erase operations (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (3 * 1000)      /* Timeout for Flash write operations (in ms) */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     (3 * 1000)      /* Timeout for Flash set sector lock bit operations (in ms) */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   (3 * 1000)      /* Timeout for Flash clear lock bit operations (in ms) */
 
-#undef  CFG_FLASH_PROTECTION                   /* Use hardware flash sectors protection instead of U-Boot software protection */
+#undef  CONFIG_SYS_FLASH_PROTECTION                    /* Use hardware flash sectors protection instead of U-Boot software protection */
 
-#undef  CFG_DIRECT_FLASH_TFTP
+#undef  CONFIG_SYS_DIRECT_FLASH_TFTP
 
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_OVERWRITE   1
 #define CONFIG_ENV_SECT_SIZE   (8 * 1024)
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE))
-#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CFG_FLASH_BASE)      /* Offset of env Flash sector relative to CFG_FLASH_BASE */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE))
+#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)       /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR_REDUND (CFG_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
 
 /* Board Clock */
 #define CONFIG_SYS_CLK_FREQ    33333333
 #define TMU_CLK_DIVIDER                (4)     /* 4 (default), 16, 64, 256 or 1024 */
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 #endif /* __MS7722SE_H */
index acb4d6d32eafb5df71f58959f8d1762c214951b8..af9933cad9c3874370ba90e61fe718445febecf1 100644 (file)
 #define CONFIG_ENV_OVERWRITE   1
 
 /* SDRAM */
-#define CFG_SDRAM_BASE         (0x8C000000)
-#define CFG_SDRAM_SIZE         (64 * 1024 * 1024)
-
-#define CFG_LONGHELP
-#define CFG_PROMPT             "=> "
-#define CFG_CBSIZE             256
-#define CFG_PBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_BARGSIZE           512
+#define CONFIG_SYS_SDRAM_BASE          (0x8C000000)
+#define CONFIG_SYS_SDRAM_SIZE          (64 * 1024 * 1024)
+
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_PBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_BARGSIZE            512
 /* List of legal baudrate settings for this board */
-#define CFG_BAUDRATE_TABLE     { 115200, 57600, 38400, 19200, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 57600, 38400, 19200, 9600 }
 
-#define CFG_MEMTEST_START      (CFG_SDRAM_BASE)
-#define CFG_MEMTEST_END                (TEXT_BASE - 0x100000)
+#define CONFIG_SYS_MEMTEST_START       (CONFIG_SYS_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (TEXT_BASE - 0x100000)
 
 /* NOR Flash */
-/* #define CFG_FLASH_BASE              (0xA1000000)*/
-#define CFG_FLASH_BASE         (0xA0000000)
-#define CFG_MAX_FLASH_BANKS    (1)     /* Max number of
+/* #define CONFIG_SYS_FLASH_BASE               (0xA1000000)*/
+#define CONFIG_SYS_FLASH_BASE          (0xA0000000)
+#define CONFIG_SYS_MAX_FLASH_BANKS     (1)     /* Max number of
                                         * Flash memory banks
                                         */
-#define CFG_MAX_FLASH_SECT     142
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_MAX_FLASH_SECT      142
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 4 * 1024 * 1024)
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE)        /* Address of u-boot image in Flash */
-#define CFG_MONITOR_LEN                (128 * 1024)
-#define CFG_MALLOC_LEN         (256 * 1024)            /* Size of DRAM reserved for malloc() use */
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE) /* Address of u-boot image in Flash */
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)            /* Size of DRAM reserved for malloc() use */
 
-#define CFG_GBL_DATA_SIZE      (256)                   /* size in bytes reserved for initial data */
-#define CFG_BOOTMAPSZ          (8 * 1024 * 1024)
-#define CFG_RX_ETH_BUFFER      (8)
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)                   /* size in bytes reserved for initial data */
+#define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
+#define CONFIG_SYS_RX_ETH_BUFFER       (8)
 
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#undef CFG_FLASH_CFI_BROKEN_TABLE
-#undef  CFG_FLASH_QUIET_TEST
-#define CFG_FLASH_EMPTY_INFO                           /* print 'E' for empty sector on flinfo */
+#undef CONFIG_SYS_FLASH_CFI_BROKEN_TABLE
+#undef  CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_EMPTY_INFO                            /* print 'E' for empty sector on flinfo */
 
 
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_FLASH_ERASE_TOUT   120000
-#define CFG_FLASH_WRITE_TOUT   500
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500
 
 /* Board Clock */
 #define CONFIG_SYS_CLK_FREQ    33333333
 #define TMU_CLK_DIVIDER                4
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 #endif /* __MS7750SE_H */
index 1e91b621682dcb2f151381d3e09dcf7a28f7c48c..f031a17b271667258bb6c25bcad498f2e27c6427 100644 (file)
  * - Rx-CLK is CLK11
  * - Tx-CLK is CLK12
  */
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK12)
-# define CFG_CMXFCR_MASK       (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK12)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)
 /*
  * - RAM for BD/Buffers is on the 60x Bus (see 28-13)
  */
-# define CFG_CPMFCR_RAMTYPE    (0)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     (0)
 /* know on local Bus */
-/* define CFG_CPMFCR_RAMTYPE   (CPMFCR_DTB | CPMFCR_BDB) */
+/* define CONFIG_SYS_CPMFCR_RAMTYPE    (CPMFCR_DTB | CPMFCR_BDB) */
 /*
  * - Enable Full Duplex in FSMR
  */
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE|FCC_PSMR_LPB)
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE|FCC_PSMR_LPB)
 
 #define CONFIG_MII                     /* MII PHY management           */
 #define CONFIG_BITBANGMII              /* bit-bang MII PHY management  */
-# define CFG_PHY_ADDR          1
+# define CONFIG_SYS_PHY_ADDR           1
 /*
  * GPIO pins used for bit-banged MII communications
  */
 #define MDIO_PORT      0               /* Port A */
 
-#define CFG_MDIO_PIN   0x00200000      /* PA10 */
-#define CFG_MDC_PIN    0x00400000      /* PA9  */
+#define CONFIG_SYS_MDIO_PIN    0x00200000      /* PA10 */
+#define CONFIG_SYS_MDC_PIN     0x00400000      /* PA9  */
 
-#define MDIO_ACTIVE    (iop->pdir |=  CFG_MDIO_PIN)
-#define MDIO_TRISTATE  (iop->pdir &= ~CFG_MDIO_PIN)
-#define MDIO_READ      ((iop->pdat &  CFG_MDIO_PIN) != 0)
+#define MDIO_ACTIVE    (iop->pdir |=  CONFIG_SYS_MDIO_PIN)
+#define MDIO_TRISTATE  (iop->pdir &= ~CONFIG_SYS_MDIO_PIN)
+#define MDIO_READ      ((iop->pdat &  CONFIG_SYS_MDIO_PIN) != 0)
 
-#define MDIO(bit)      if(bit) iop->pdat |=  CFG_MDIO_PIN; \
-                       else    iop->pdat &= ~CFG_MDIO_PIN
+#define MDIO(bit)      if(bit) iop->pdat |=  CONFIG_SYS_MDIO_PIN; \
+                       else    iop->pdat &= ~CONFIG_SYS_MDIO_PIN
 
-#define MDC(bit)       if(bit) iop->pdat |=  CFG_MDC_PIN; \
-                       else    iop->pdat &= ~CFG_MDC_PIN
+#define MDC(bit)       if(bit) iop->pdat |=  CONFIG_SYS_MDC_PIN; \
+                       else    iop->pdat &= ~CONFIG_SYS_MDC_PIN
 
 #define MIIDELAY       udelay(1)
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size  */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size  */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_SIZE         32
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_SIZE          32
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks       */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks       */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
 
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256KB for Monitor */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256KB for Monitor */
 
 #define CONFIG_ENV_IS_IN_FLASH
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 
 /*
  * I2C Bus
  */
 #define CONFIG_HARD_I2C                1       /* To enable I2C support        */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define        CFG_EEPROM_PAGE_WRITE_BITS 3
+#define        CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
 /* I2C SYSMON (LM75, AD7414 is almost compatible)                       */
 #define        CONFIG_DTT_LM75         1       /* ON Semi's LM75               */
 #define        CONFIG_DTT_SENSORS      {0}     /* Sensor addresses             */
-#define        CFG_DTT_MAX_TEMP        70
-#define        CFG_DTT_LOW_TEMP        -30
-#define        CFG_DTT_HYSTERESIS      3
+#define        CONFIG_SYS_DTT_MAX_TEMP 70
+#define        CONFIG_SYS_DTT_LOW_TEMP -30
+#define        CONFIG_SYS_DTT_HYSTERESIS       3
 
-#define CFG_IMMR               0xF0000000
-#define CFG_DEFAULT_IMMR       0x0F010000
+#define CONFIG_SYS_IMMR                0xF0000000
+#define CONFIG_SYS_DEFAULT_IMMR        0x0F010000
 
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /* Hard reset configuration word */
-#define CFG_HRCW_MASTER                0x0E028200      /* BPS=11 CIP=1 ISB=010 BMS=1 */
+#define CONFIG_SYS_HRCW_MASTER         0x0E028200      /* BPS=11 CIP=1 ISB=010 BMS=1 */
 
 /* No slaves */
-#define CFG_HRCW_SLAVE1        0
-#define CFG_HRCW_SLAVE2        0
-#define CFG_HRCW_SLAVE3        0
-#define CFG_HRCW_SLAVE4        0
-#define CFG_HRCW_SLAVE5        0
-#define CFG_HRCW_SLAVE6        0
-#define CFG_HRCW_SLAVE7        0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                  */
 
-#define CFG_MALLOC_LEN         (4096 << 10)    /* Reserve 4 MB for malloc()    */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MALLOC_LEN          (4096 << 10)    /* Reserve 4 MB for malloc()    */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         (HID0_ICE | HID0_IFEM | HID0_ABE)
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          (HID0_ICE | HID0_IFEM | HID0_ABE)
 
-#define CFG_HID2               0
+#define CONFIG_SYS_HID2                0
 
-#define CFG_SIUMCR             0x00200000
-#define CFG_BCR                        0x004c0000
-#define CFG_SCCR               0x0
+#define CONFIG_SYS_SIUMCR              0x00200000
+#define CONFIG_SYS_BCR                 0x004c0000
+#define CONFIG_SYS_SCCR                0x0
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                             4-35
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP|SYPCR_SWE)
 #else
-#define CFG_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC|SYPCR_BMT|SYPCR_PBME|SYPCR_LBME|\
                         SYPCR_SWRI|SYPCR_SWP)
 #endif /* CONFIG_WATCHDOG */
 
  *-----------------------------------------------------------------------
  * turn on Checkstop Reset Enable
  */
-#define CFG_RMR         0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * TMCNTSC - Time Counter Status and Control                     4-40
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                 4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                         13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR        0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
  */
 /* Bank 0 - FLASH
  */
-#define CFG_BR0_PRELIM  ((CFG_FLASH_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH_BASE & BRx_BA_MSK)   |\
                         BRx_PS_32                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
 
-#define CFG_OR0_PRELIM (0xff000020)
+#define CONFIG_SYS_OR0_PRELIM (0xff000020)
 
 /* Bank 1 - 60x bus SDRAM
  */
-#define CFG_GLOBAL_SDRAM_LIMIT (256 << 20)     /* less than 256 MB */
+#define CONFIG_SYS_GLOBAL_SDRAM_LIMIT  (256 << 20)     /* less than 256 MB */
 
-#define CFG_MPTPR       0x2800
+#define CONFIG_SYS_MPTPR       0x2800
 
 /*-----------------------------------------------------------------------------
  * Address for Mode Register Set (MRS) command
  *-----------------------------------------------------------------------------
  */
-#define CFG_MRS_OFFS   0x00000110
-#define CFG_PSRT        0x13
+#define CONFIG_SYS_MRS_OFFS    0x00000110
+#define CONFIG_SYS_PSRT        0x13
 
-#define CFG_BR1_PRELIM  ((CFG_SDRAM_BASE & BRx_BA_MSK)  |\
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK)  |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_OR1_PRELIM CFG_OR1_LITTLE
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR1_LITTLE
 
 /* SDRAM initialization values
 */
-#define CFG_OR1_LITTLE ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_LITTLE  ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A7             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_LITTLE       0x004b36a3
+#define CONFIG_SYS_PSDMR_LITTLE        0x004b36a3
 
-#define CFG_OR1_BIG    ((~(CFG_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
+#define CONFIG_SYS_OR1_BIG     ((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & ORxS_SDAM_MSK) |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI1_A4             |\
                         ORxS_NUMR_12)
 
-#define CFG_PSDMR_BIG          0x014f36a3
+#define CONFIG_SYS_PSDMR_BIG           0x014f36a3
 
 /* IO on CS4 initialization values
 */
-#define CFG_IO_BASE    0xc0000000
-#define CFG_IO_SIZE    1
+#define CONFIG_SYS_IO_BASE     0xc0000000
+#define CONFIG_SYS_IO_SIZE     1
 
-#define CFG_BR4_PRELIM ((CFG_IO_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR4_PRELIM  ((CONFIG_SYS_IO_BASE & BRx_BA_MSK) |\
                         BRx_PS_16 | BRx_MS_GPCM_L | BRx_V)
 
-#define CFG_OR4_PRELIM (0xfff80020)
+#define CONFIG_SYS_OR4_PRELIM  (0xfff80020)
 
-#define        CFG_RESET_ADDRESS 0xFDFFFFFC    /* "bad" address                */
+#define        CONFIG_SYS_RESET_ADDRESS 0xFDFFFFFC     /* "bad" address                */
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_LIBFDT       1
index 517b3b7e4c91841170dc4505de31c001c3e07306..2f48a0f251cd06cb415562afeafc8895be6ec26d 100644 (file)
 #define        CONFIG_MPC5200          1       /* (more precisely an MPC5200 CPU)      */
 #define        CONFIG_MUCMC52          1       /* MUCMC52 board                        */
 
-#define        CFG_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz         */
+#define        CONFIG_SYS_MPC5XXX_CLKIN        33000000 /* ... running at 33.000000MHz         */
 
 #define        BOOTFLAG_COLD           0x01    /* Normal Power-On: Boot from FLASH     */
 #define        BOOTFLAG_WARM           0x02    /* Software reboot                      */
 
-#define        CFG_CACHELINE_SIZE      32      /* For MPC5xxx CPUs                     */
-#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
-#  define      CFG_CACHELINE_SHIFT     5       /* log base 2 of the above value        */
+#define        CONFIG_SYS_CACHELINE_SIZE       32      /* For MPC5xxx CPUs                     */
+#if (CONFIG_COMMANDS & CONFIG_SYS_CMD_KGDB)
+#  define      CONFIG_SYS_CACHELINE_SHIFT      5       /* log base 2 of the above value        */
 #endif
 
 #define        CONFIG_BOARD_EARLY_INIT_R
@@ -56,7 +56,7 @@
  */
 #define        CONFIG_PSC_CONSOLE      1       /* console is on PSC1   */
 #define        CONFIG_BAUDRATE         38400   /* ... at 38400 bps     */
-#define        CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define        CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define        CONFIG_DOS_PARTITION
@@ -83,7 +83,7 @@
 #define        CONFIG_TIMESTAMP        1       /* Print image info with timestamp */
 
 #if (TEXT_BASE == 0xFFF00000) /* Boot low */
-#   define     CFG_LOWBOOT             1
+#   define     CONFIG_SYS_LOWBOOT              1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 
 /*
  * I2C configuration
  */
 #define        CONFIG_HARD_I2C         1       /* I2C with hardware support */
-#define        CFG_I2C_MODULE          2       /* Select I2C module #1 or #2 */
+#define        CONFIG_SYS_I2C_MODULE           2       /* Select I2C module #1 or #2 */
 
-#define        CFG_I2C_SPEED           100000 /* 100 kHz */
-#define        CFG_I2C_SLAVE           0x7F
+#define        CONFIG_SYS_I2C_SPEED            100000 /* 100 kHz */
+#define        CONFIG_SYS_I2C_SLAVE            0x7F
 
 /*
  * EEPROM configuration
  */
-#define        CFG_I2C_EEPROM_ADDR             0x58
-#define        CFG_I2C_EEPROM_ADDR_LEN         1
-#define        CFG_EEPROM_PAGE_WRITE_BITS      4
-#define        CFG_EEPROM_PAGE_WRITE_DELAY_MS  10
+#define        CONFIG_SYS_I2C_EEPROM_ADDR              0x58
+#define        CONFIG_SYS_I2C_EEPROM_ADDR_LEN          1
+#define        CONFIG_SYS_EEPROM_PAGE_WRITE_BITS       4
+#define        CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS   10
 
 /*
  * RTC configuration
  */
 #define        CONFIG_RTC_PCF8563
-#define        CFG_I2C_RTC_ADDR                0x51
+#define        CONFIG_SYS_I2C_RTC_ADDR         0x51
 
 /* I2C SYSMON (LM75) */
 #define        CONFIG_DTT_LM81                 1       /* ON Semi's LM75               */
 #define        CONFIG_DTT_SENSORS              {0}     /* Sensor addresses             */
-#define        CFG_DTT_MAX_TEMP                70
-#define        CFG_DTT_LOW_TEMP                -30
-#define        CFG_DTT_HYSTERESIS              3
+#define        CONFIG_SYS_DTT_MAX_TEMP         70
+#define        CONFIG_SYS_DTT_LOW_TEMP         -30
+#define        CONFIG_SYS_DTT_HYSTERESIS               3
 
 /*
  * Flash configuration
  */
-#define        CFG_FLASH_BASE          0xFF800000
+#define        CONFIG_SYS_FLASH_BASE           0xFF800000
 
-#define        CFG_FLASH_SIZE          0x00800000 /* 8 MByte */
-#define        CFG_MAX_FLASH_SECT      67      /* max num of sects on one chip */
+#define        CONFIG_SYS_FLASH_SIZE           0x00800000 /* 8 MByte */
+#define        CONFIG_SYS_MAX_FLASH_SECT       67      /* max num of sects on one chip */
 
 #define        CONFIG_ENV_ADDR         (TEXT_BASE+0x40000) /* second sector */
-#define        CFG_MAX_FLASH_BANKS     1       /* max num of flash banks
+#define        CONFIG_SYS_MAX_FLASH_BANKS      1       /* max num of flash banks
                                           (= chip selects) */
-#define        CFG_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
-#define        CFG_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define        CONFIG_SYS_FLASH_ERASE_TOUT     240000  /* Flash Erase Timeout (in ms)  */
+#define        CONFIG_SYS_FLASH_WRITE_TOUT     500     /* Flash Write Timeout (in ms)  */
 
 #define        CONFIG_FLASH_CFI_DRIVER
-#define        CFG_FLASH_CFI
-#define        CFG_FLASH_EMPTY_INFO
-#define        CFG_FLASH_CFI_AMD_RESET
+#define        CONFIG_SYS_FLASH_CFI
+#define        CONFIG_SYS_FLASH_EMPTY_INFO
+#define        CONFIG_SYS_FLASH_CFI_AMD_RESET
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define        CFG_MBAR                0xF0000000
-#define        CFG_SDRAM_BASE          0x00000000
-#define        CFG_DEFAULT_MBAR        0x80000000
-#define        CFG_DISPLAY_BASE        0x80600000
-#define        CFG_STATUS1_BASE        0x80600200
-#define        CFG_STATUS2_BASE        0x80600300
-#define        CFG_PMI_UNI_BASE        0x80800000
-#define        CFG_PMI_BROAD_BASE      0x80810000
+#define        CONFIG_SYS_MBAR         0xF0000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define        CONFIG_SYS_DEFAULT_MBAR 0x80000000
+#define        CONFIG_SYS_DISPLAY_BASE 0x80600000
+#define        CONFIG_SYS_STATUS1_BASE 0x80600200
+#define        CONFIG_SYS_STATUS2_BASE 0x80600300
+#define        CONFIG_SYS_PMI_UNI_BASE 0x80800000
+#define        CONFIG_SYS_PMI_BROAD_BASE       0x80810000
 
 /* Settings for XLB = 132 MHz */
 #define        SDRAM_DDR        1
 #define        SDRAM_TAPDELAY  0x10000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define        CFG_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define        CONFIG_SYS_INIT_RAM_ADDR        MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define        CFG_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
+#define        CONFIG_SYS_INIT_RAM_END MPC5XXX_SRAM_POST_SIZE
 #else
-#define        CFG_INIT_RAM_END        MPC5XXX_SRAM_SIZE
+#define        CONFIG_SYS_INIT_RAM_END MPC5XXX_SRAM_SIZE
 #endif
 
-#define        CFG_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
-#define        CFG_GBL_DATA_OFFSET     (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define        CONFIG_SYS_GBL_DATA_SIZE        128     /* size in bytes reserved for initial data */
+#define        CONFIG_SYS_GBL_DATA_OFFSET      (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define     CFG_RAMBOOT     1
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define     CONFIG_SYS_RAMBOOT      1
 #endif
 
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define        CFG_MALLOC_LEN          (512 << 10)     /* Reserve 128 kB for malloc()  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MALLOC_LEN           (512 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define        CFG_GPS_PORT_CONFIG     0x8D550644
+#define        CONFIG_SYS_GPS_PORT_CONFIG      0x8D550644
 
 /*use  Hardware WDT */
 #define CONFIG_HW_WATCHDOG
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory     */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt   */
-#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size  */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory     */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt   */
+#if (CONFIG_COMMANDS & CONFIG_SYS_CMD_KGDB)
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size  */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size  */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size  */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define        CFG_BARGSIZE            CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define        CONFIG_SYS_BARGSIZE             CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /* Enable an alternate, more extensive memory test */
-#define        CFG_ALT_MEMTEST
+#define        CONFIG_SYS_ALT_MEMTEST
 
-#define        CFG_MEMTEST_START       0x00100000      /* memtest works on */
-#define        CFG_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define        CONFIG_SYS_MEMTEST_START        0x00100000      /* memtest works on */
+#define        CONFIG_SYS_MEMTEST_END          0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
 /*
- * Enable loopw commando. This has only affect, if CFG_CMD_MEM is defined,
+ * Enable loopw commando. This has only affect, if CONFIG_SYS_CMD_MEM is defined,
  * which is normally part of the default commands (CFV_CMD_DFL)
  */
 #define        CONFIG_LOOPW
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define        CFG_HID0_INIT           HID0_ICE | HID0_ICFI
-#define        CFG_HID0_FINAL          HID0_ICE
+#define        CONFIG_SYS_HID0_INIT            HID0_ICE | HID0_ICFI
+#define        CONFIG_SYS_HID0_FINAL           HID0_ICE
 #else
-#define        CFG_HID0_INIT           0
-#define        CFG_HID0_FINAL          0
+#define        CONFIG_SYS_HID0_INIT            0
+#define        CONFIG_SYS_HID0_FINAL           0
 #endif
 
-#define        CFG_BOOTCS_START        CFG_FLASH_BASE
-#define        CFG_BOOTCS_SIZE         CFG_FLASH_SIZE
-#define        CFG_BOOTCS_CFG          0x0004FB00
-#define        CFG_CS0_START           CFG_FLASH_BASE
-#define        CFG_CS0_SIZE            CFG_FLASH_SIZE
+#define        CONFIG_SYS_BOOTCS_START CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_BOOTCS_SIZE          CONFIG_SYS_FLASH_SIZE
+#define        CONFIG_SYS_BOOTCS_CFG           0x0004FB00
+#define        CONFIG_SYS_CS0_START            CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_CS0_SIZE             CONFIG_SYS_FLASH_SIZE
 
 /* 8Mbit SRAM @0x80100000 */
-#define        CFG_CS1_START           0x80100000
-#define        CFG_CS1_SIZE            0x00100000
-#define        CFG_CS1_CFG             0x00019B00
+#define        CONFIG_SYS_CS1_START            0x80100000
+#define        CONFIG_SYS_CS1_SIZE             0x00100000
+#define        CONFIG_SYS_CS1_CFG              0x00019B00
 
 /* FRAM 32Kbyte @0x80700000 */
-#define        CFG_CS2_START           0x80700000
-#define        CFG_CS2_SIZE            0x00008000
-#define        CFG_CS2_CFG             0x00019800
+#define        CONFIG_SYS_CS2_START            0x80700000
+#define        CONFIG_SYS_CS2_SIZE             0x00008000
+#define        CONFIG_SYS_CS2_CFG              0x00019800
 
 /* Display H1, Status Inputs, EPLD @0x80600000 */
-#define        CFG_CS3_START           0x80600000
-#define        CFG_CS3_SIZE            0x00100000
-#define        CFG_CS3_CFG             0x00019800
+#define        CONFIG_SYS_CS3_START            0x80600000
+#define        CONFIG_SYS_CS3_SIZE             0x00100000
+#define        CONFIG_SYS_CS3_CFG              0x00019800
 
 /* PMI Unicast 32Kbyte @0x80800000 */
-#define        CFG_CS6_START           CFG_PMI_UNI_BASE
-#define        CFG_CS6_SIZE            0x00008000
-#define        CFG_CS6_CFG             0xFFFFF930
+#define        CONFIG_SYS_CS6_START            CONFIG_SYS_PMI_UNI_BASE
+#define        CONFIG_SYS_CS6_SIZE             0x00008000
+#define        CONFIG_SYS_CS6_CFG              0xFFFFF930
 
 /* PMI Broadcast 32Kbyte @0x80810000 */
-#define        CFG_CS7_START           CFG_PMI_BROAD_BASE
-#define        CFG_CS7_SIZE            0x00008000
-#define        CFG_CS7_CFG             0xFF00F930
+#define        CONFIG_SYS_CS7_START            CONFIG_SYS_PMI_BROAD_BASE
+#define        CONFIG_SYS_CS7_SIZE             0x00008000
+#define        CONFIG_SYS_CS7_CFG              0xFF00F930
 
-#define        CFG_CS_BURST            0x00000000
-#define        CFG_CS_DEADCYCLE        0x33333333
+#define        CONFIG_SYS_CS_BURST             0x00000000
+#define        CONFIG_SYS_CS_DEADCYCLE 0x33333333
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff Supports IDE harddisk
 #undef CONFIG_IDE_8xx_DIRECT           /* Direct IDE    not supported  */
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 
-#define        CFG_IDE_MAXBUS          1       /* max. 1 IDE bus               */
-#define        CFG_IDE_MAXDEVICE       1       /* max. 2 drives per IDE bus    */
+#define        CONFIG_SYS_IDE_MAXBUS           1       /* max. 1 IDE bus               */
+#define        CONFIG_SYS_IDE_MAXDEVICE        1       /* max. 2 drives per IDE bus    */
 
 #define        CONFIG_IDE_PREINIT      1
 
-#define        CFG_ATA_IDE0_OFFSET     0x0000
+#define        CONFIG_SYS_ATA_IDE0_OFFSET      0x0000
 
-#define        CFG_ATA_BASE_ADDR       MPC5XXX_ATA
+#define        CONFIG_SYS_ATA_BASE_ADDR        MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define        CFG_ATA_DATA_OFFSET     (0x0060)
+#define        CONFIG_SYS_ATA_DATA_OFFSET      (0x0060)
 
 /* Offset for normal register accesses */
-#define        CFG_ATA_REG_OFFSET      (CFG_ATA_DATA_OFFSET)
+#define        CONFIG_SYS_ATA_REG_OFFSET       (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define        CFG_ATA_ALT_OFFSET      (0x005C)
+#define        CONFIG_SYS_ATA_ALT_OFFSET       (0x005C)
 
 /* Interval between registers           */
-#define        CFG_ATA_STRIDE          4
+#define        CONFIG_SYS_ATA_STRIDE          4
 
 #define        CONFIG_ATAPI            1
 
 #define        CONFIG_PCI_IO_PHYS      CONFIG_PCI_IO_BUS
 #define        CONFIG_PCI_IO_SIZE      0x01000000
 
-#define        CFG_ISA_IO              CONFIG_PCI_IO_BUS
+#define        CONFIG_SYS_ISA_IO               CONFIG_PCI_IO_BUS
 
 /*---------------------------------------------------------------------*/
 /* Display addresses                                                  */
 /*---------------------------------------------------------------------*/
 
-#define        CFG_DISP_CHR_RAM        (CFG_DISPLAY_BASE + 0x38)
-#define        CFG_DISP_CWORD          (CFG_DISPLAY_BASE + 0x30)
+#define        CONFIG_SYS_DISP_CHR_RAM (CONFIG_SYS_DISPLAY_BASE + 0x38)
+#define        CONFIG_SYS_DISP_CWORD           (CONFIG_SYS_DISPLAY_BASE + 0x30)
 
 #endif /* __CONFIG_H */
index 8f3071a72da9cdb0ca32d79e82783cf4af6e5ccc..7682faa32aa651acbc8379d695cf5c6b0b1f7de3 100644 (file)
 #define CONFIG_MPC5200         1       /* (more precisely an MPC5200 CPU) */
 #define CONFIG_MPC5200_DDR     1       /* (with DDR-SDRAM) */
 #define CONFIG_MUNICES         1       /* ... on MUNICes board */
-#define CFG_MPC5XXX_CLKIN      33333333 /* ... running at 33.333333MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33333333 /* ... running at 33.333333MHz */
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /*
@@ -50,7 +50,7 @@
 #define CONFIG_CMD_REGINFO
 
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
@@ -58,7 +58,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #define        CONFIG_TIMESTAMP        1       /* Print image info with timestamp */
 #define CONFIG_BOOTDELAY       5   /* autoboot after 5 seconds */
 /*
  * IPB Bus clocking configuration.
  */
-#define  CFG_IPBSPEED_133              /* define for 133MHz speed */
-#if defined(CFG_IPBSPEED_133)
+#define  CONFIG_SYS_IPBSPEED_133               /* define for 133MHz speed */
+#if defined(CONFIG_SYS_IPBSPEED_133)
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBSPEED_133 is defined. This is because a PCI Clock of 66 MHz yet hasn't
+ * CONFIG_SYS_IPBSPEED_133 is defined. This is because a PCI Clock of 66 MHz yet hasn't
  * been tested with a IPB Bus Clock of 66 MHz.
  */
-#define CFG_PCISPEED_66                /* define for 66MHz speed */
+#define CONFIG_SYS_PCISPEED_66         /* define for 66MHz speed */
 #else
-#undef CFG_PCISPEED_66                 /* for 33MHz speed */
+#undef CONFIG_SYS_PCISPEED_66                  /* for 33MHz speed */
 #endif
 
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000 /* MBAR hast to be switched by other bootloader or debugger config  */
+#define CONFIG_SYS_MBAR                0xF0000000 /* MBAR hast to be switched by other bootloader or debugger config  */
 
-#define CFG_DEFAULT_MBAR       0x80000000
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
-
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
+
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_SIZE         0x01000000 /* 16 MByte */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
-#define CFG_MAX_FLASH_BANKS    1        /* max num of flash banks (= chip selects) */
-#define CFG_FLASH_USE_BUFFER_WRITE     /* not supported yet for AMD */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_SIZE          0x01000000 /* 16 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1        /* max num of flash banks (= chip selects) */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      /* not supported yet for AMD */
 
 /*
  * Chip selects configuration
  */
 /* Boot Chipselect */
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047800
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047800
 
 /*
  * Environment settings
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x00058044 /* PSC1=UART, PSC2=UART ; Ether=100MBit with MD
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x00058044 /* PSC1=UART, PSC2=UART ; Ether=100MBit with MD
                                                no PCI */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x200000        /* default load address */
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LOAD_ADDR           0x200000        /* default load address */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_DISPLAY_BOARDINFO 1
 #define CONFIG_CMDLINE_EDITING  1
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /* pass open firmware flat tree */
 #define CONFIG_OF_LIBFDT       1
index 2eb43bf73d7004b698747c990badbb80fde3a896..f136b0ca8c6e2b8487edfcdaa3086c609265b1e2 100644 (file)
 #define USE_920T_MMU           1
 
 #if 0
-#define CFG_MX1_GPCR           0x000003AB      /* for MX1ADS 0L44N             */
-#define CFG_MX1_GPCR           0x000003AB      /* for MX1ADS 0L44N             */
-#define CFG_MX1_GPCR           0x000003AB      /* for MX1ADS 0L44N             */
+#define CONFIG_SYS_MX1_GPCR            0x000003AB      /* for MX1ADS 0L44N             */
+#define CONFIG_SYS_MX1_GPCR            0x000003AB      /* for MX1ADS 0L44N             */
+#define CONFIG_SYS_MX1_GPCR            0x000003AB      /* for MX1ADS 0L44N             */
 #endif
 
 /*
  * Size of malloc() pool
  */
 
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  *  CS8900 Ethernet drivers
  * Miscellaneous configurable options
  */
 
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                           /* undef to save memory         */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
 
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "MX1ADS$ "      /* Monitor Command Prompt */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "MX1ADS$ "      /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "MX1ADS=> "     /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "MX1ADS=> "     /* Monitor Command Prompt */
 #endif
 
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE             (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
                                                /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x09000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x0AF00000      /* 63 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x09000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0AF00000      /* 63 MB in DRAM        */
 
-#undef CFG_CLKS_IN_HZ                          /* everything, incl board info, in Hz */
-#define CFG_LOAD_ADDR          0x08800000      /* default load address */
-/*#define      CFG_HZ                  1000 */
-#define CFG_HZ                 3686400
-#define CFG_CPUSPEED           0x141
+#undef CONFIG_SYS_CLKS_IN_HZ                           /* everything, incl board info, in Hz */
+#define CONFIG_SYS_LOAD_ADDR           0x08800000      /* default load address */
+/*#define      CONFIG_SYS_HZ                   1000 */
+#define CONFIG_SYS_HZ                  3686400
+#define CONFIG_SYS_CPUSPEED            0x141
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_SDRAM_1           0x08000000      /* SDRAM  on CSD0               */
 #define PHYS_SDRAM_1_SIZE      0x04000000      /* 64 MB                        */
 
-#define CFG_MAX_FLASH_BANKS    1               /* 1 bank of SyncFlash          */
-#define CFG_FLASH_BASE         0x0C000000      /* SyncFlash on CSD1            */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* 1 bank of SyncFlash          */
+#define CONFIG_SYS_FLASH_BASE          0x0C000000      /* SyncFlash on CSD1            */
 #define FLASH_BANK_SIZE                0x01000000      /* 16 MB Total                  */
 
 /*-----------------------------------------------------------------------
 
 #define CONFIG_SYNCFLASH       1
 #define PHYS_FLASH_SIZE                0x01000000
-#define CFG_MAX_FLASH_SECT     (16)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE+0x00ff8000)
+#define CONFIG_SYS_MAX_FLASH_SECT      (16)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE+0x00ff8000)
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE                0x04000 /* Total Size of Environment Sector */
index 39950dc5411f64f10f9c7b47d2ebb99b0e6152c9..aaa4e985220d68ab1ac3599293b0811f9334fefb 100644 (file)
 /*
  * General options for u-boot. Modify to save memory foot print
  */
-#define CFG_LONGHELP                                 /* undef saves memory  */
-#define CFG_PROMPT             "mx1fs2> "            /* prompt string       */
-#define CFG_CBSIZE             256                   /* console I/O buffer  */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* print buffer size   */
-#define CFG_MAXARGS            16                    /* max command args    */
-#define CFG_BARGSIZE           CFG_CBSIZE            /* boot args buf size  */
+#define CONFIG_SYS_LONGHELP                                  /* undef saves memory  */
+#define CONFIG_SYS_PROMPT              "mx1fs2> "            /* prompt string       */
+#define CONFIG_SYS_CBSIZE              256                   /* console I/O buffer  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* print buffer size   */
+#define CONFIG_SYS_MAXARGS             16                    /* max command args    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE             /* boot args buf size  */
 
-#define CFG_MEMTEST_START      0x08100000            /* memtest test area   */
-#define CFG_MEMTEST_END                0x08F00000
+#define CONFIG_SYS_MEMTEST_START       0x08100000            /* memtest test area   */
+#define CONFIG_SYS_MEMTEST_END         0x08F00000
 
-#undef CFG_CLKS_IN_HZ                       /* use HZ for freq. display     */
+#undef CONFIG_SYS_CLKS_IN_HZ                        /* use HZ for freq. display     */
 
-#define CFG_HZ                 3686400      /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x141        /* core clock - register value  */
+#define CONFIG_SYS_HZ                  3686400      /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141        /* core clock - register value  */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 #define CONFIG_BAUDRATE 115200
 /*
  * Definitions related to passing arguments to kernel.
 /*
  * Malloc pool need to host env + 128 Kb reserve for other allocations.
  */
-#define CFG_MALLOC_LEN   (CONFIG_ENV_SIZE + (128<<10) )
+#define CONFIG_SYS_MALLOC_LEN    (CONFIG_ENV_SIZE + (128<<10) )
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_STACKSIZE       (120<<10)      /* stack size */
 
  * Flash Controller settings
  */
 
-#define CFG_MAX_FLASH_BANKS    1       /* FLASH banks count (not chip count)*/
-#define CFG_MAX_FLASH_SECT     256     /* number of sector in FLASH bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* FLASH banks count (not chip count)*/
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* number of sector in FLASH bank    */
 
 #ifdef BUS32BIT_VERSION
 #define MX1FS2_FLASH_BUS_WIDTH 4       /* we use 32 bit FLASH memory...     */
    is not so clear to me. In other words we can provide more informations
    to user, but this expects more complex flash handling we do not provide
    now.*/
-#undef CFG_FLASH_CFI
+#undef CONFIG_SYS_FLASH_CFI
 
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ)    /* timeout for Erase operation */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ)    /* timeout for Write operation */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ)    /* timeout for Erase operation */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ)    /* timeout for Write operation */
 
-#define CFG_FLASH_BASE         MX1FS2_FLASH_BASE
+#define CONFIG_SYS_FLASH_BASE          MX1FS2_FLASH_BASE
 
 /*
  * This is setting for JFFS2 support in u-boot.
  * env. has no sense to us.
  */
 
-#define CFG_MONITOR_BASE       0x10000000
-#define CFG_MONITOR_LEN                0x20000         /* 128b ( 1 flash sector )   */
+#define CONFIG_SYS_MONITOR_BASE        0x10000000
+#define CONFIG_SYS_MONITOR_LEN         0x20000         /* 128b ( 1 flash sector )   */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                0x10020000      /* absolute address for now  */
 #define CONFIG_ENV_SIZE                0x20000
 #define         CONFIG_ENV_OVERWRITE   1               /* env is not writable now   */
 
 /* Setup CS4 and CS5 */
-#define CFG_GIUS_A_VAL         0x0003fffe
+#define CONFIG_SYS_GIUS_A_VAL          0x0003fffe
 
 /*
  * CSxU_VAL:
  *   |  OEA   |   OEN   |   WEA   |   WEN   |   CSA   |EBC| DSZ  | 0|SP|0|WP| 0 0|PA|CSEN|
  */
 
-#define CFG_CS0U_VAL 0x00008C00
-#define CFG_CS0L_VAL 0x22222601
-#define CFG_CS1U_VAL 0x00008C00
-#define CFG_CS1L_VAL 0x22222301
-#define CFG_CS4U_VAL 0x00008C00
-#define CFG_CS4L_VAL 0x22222301
-#define CFG_CS5U_VAL 0x00008C00
-#define CFG_CS5L_VAL 0x22222301
+#define CONFIG_SYS_CS0U_VAL 0x00008C00
+#define CONFIG_SYS_CS0L_VAL 0x22222601
+#define CONFIG_SYS_CS1U_VAL 0x00008C00
+#define CONFIG_SYS_CS1L_VAL 0x22222301
+#define CONFIG_SYS_CS4U_VAL 0x00008C00
+#define CONFIG_SYS_CS4L_VAL 0x22222301
+#define CONFIG_SYS_CS5U_VAL 0x00008C00
+#define CONFIG_SYS_CS5L_VAL 0x22222301
 
 /* f_{dpll}=2*f{ref}*(MFI+MFN/(MFD+1))/(PD+1)
    f_ref=16,777MHz
    31 |x x x x|x x x x|x x x x|x x x x|x x x x|x x x x|x x x x|x x x x| 0
       |XXX|--PD---|-------MFD---------|XXX|--MFI--|-----MFN-----------|            */
 
-#define CFG_MPCTL0_VAL         0x07E723AD
-#define CFG_MPCTL1_VAL         0x00000040
-#define CFG_PCDR_VAL           0x00010005
-#define CFG_GPCR_VAL           0x00000FFB
+#define CONFIG_SYS_MPCTL0_VAL          0x07E723AD
+#define CONFIG_SYS_MPCTL1_VAL          0x00000040
+#define CONFIG_SYS_PCDR_VAL            0x00010005
+#define CONFIG_SYS_GPCR_VAL            0x00000FFB
 
 #define USE_16M_OSZI /* If you have one, you want to use it
                        The internal 32kHz oszillator jitters */
 #ifdef USE_16M_OSZI
 
-#define CFG_SPCTL0_VAL         0x04001401
-#define CFG_SPCTL1_VAL         0x0C000040
-#define CFG_CSCR_VAL           0x07030003
+#define CONFIG_SYS_SPCTL0_VAL          0x04001401
+#define CONFIG_SYS_SPCTL1_VAL          0x0C000040
+#define CONFIG_SYS_CSCR_VAL            0x07030003
 #define CONFIG_SYS_CLK_FREQ    16780000
 #define CONFIG_SYSPLL_CLK_FREQ 16000000
 
 #else
 
-#define CFG_SPCTL0_VAL         0x07E716D1
-#define CFG_CSCR_VAL           0x06000003
+#define CONFIG_SYS_SPCTL0_VAL          0x07E716D1
+#define CONFIG_SYS_CSCR_VAL            0x06000003
 #define CONFIG_SYS_CLK_FREQ    16780000
 #define CONFIG_SYSPLL_CLK_FREQ 16780000
 
  * one may expect. For instance loadb command do not cares :-)
  * So advice is - do not relay on this...
  */
-#define CFG_LOAD_ADDR          0x08400000
+#define CONFIG_SYS_LOAD_ADDR           0x08400000
 
-#define CFG_FMCR_VAL           0x00000003 /* Reset Default */
+#define CONFIG_SYS_FMCR_VAL            0x00000003 /* Reset Default */
 
 /* Bit[0:3] contain PERCLK1DIV for UART 1
    0x000b00b ->b<- -> 192MHz/12=16MHz
 #define CONFIG_IMX_SERIAL2
 #elif defined _CONFIG_UART3 | defined _CONFIG_UART4
 #define CONFIG_IMX_SERIAL_NONE
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_CLK                3686400
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_CLK         3686400
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 #define CONFIG_CONS_INDEX      1
 #ifdef _CONFIG_UART3
-#define CFG_NS16550_COM1       0x15000000
+#define CONFIG_SYS_NS16550_COM1        0x15000000
 #elif defined _CONFIG_UART4
-#define CFG_NS16550_COM1       0x16000000
+#define CONFIG_SYS_NS16550_COM1        0x16000000
 #endif
 #endif
 
index 04790fd92665395b747824fbaa81f5682efa9082..1649f1fa85d01a52cf79484dac24e6238b3c99e8 100644 (file)
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128 * 1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
  */
 
 #define CONFIG_MX31_UART       1
-#define CFG_MX31_UART1         1
+#define CONFIG_SYS_MX31_UART1          1
 
 #define CONFIG_HARD_SPI                1
 #define CONFIG_MXC_SPI         1
@@ -74,7 +74,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     {9600, 19200, 38400, 57600, 115200}
+#define CONFIG_SYS_BAUDRATE_TABLE      {9600, 19200, 38400, 57600, 115200}
 
 /***********************************************************
  * Command definition
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_PROMPT             "=> "
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
 /* Print Buffer Size */
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0               /* memtest works on */
-#define CFG_MEMTEST_END                0x10000
+#define CONFIG_SYS_MEMTEST_START       0               /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x10000
 
-#define CFG_LOAD_ADDR          CONFIG_LOADADDR
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_LOADADDR
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 #define CONFIG_CMDLINE_EDITING 1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_FLASH_BASE         CS0_BASE
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     262             /* max number of sectors on one chip */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE  /* Monitor at beginning of flash */
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256KiB */
+#define CONFIG_SYS_FLASH_BASE          CS0_BASE
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      262             /* max number of sectors on one chip */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE   /* Monitor at beginning of flash */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256KiB */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   (32 * 1024)
  * The rest of 32MiB is in 128KiB big sectors. U-Boot occupies the low 4 sectors,
  * if we put environment next to it, we will have to occupy 128KiB for it.
  * Putting it at the top of flash we use only 32KiB. */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_ENV_SECT_SIZE)
 
 /*-----------------------------------------------------------------------
  * CFI FLASH driver setup
  */
-#define CFG_FLASH_CFI                  1 /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_CFI                   1 /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER                1 /* Use drivers/cfi_flash.c */
 #define CONFIG_FLASH_SPANSION_S29WS_N  1 /* A non-standard buffered write algorithm */
-#define CFG_FLASH_USE_BUFFER_WRITE     1 /* Use buffered writes (~10x faster) */
-#define CFG_FLASH_PROTECTION           1 /* Use hardware sector protection */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1 /* Use buffered writes (~10x faster) */
+#define CONFIG_SYS_FLASH_PROTECTION            1 /* Use hardware sector protection */
 
 /*
  * JFFS2 partitions
index 23fd18b8f185785bbcef972e7020bf85cfbedd2e..dda6597844244062f5a54f44b00d1557f0cee900 100644 (file)
@@ -49,7 +49,7 @@
 #define CONFIG_INITRD_TAG              1
 
 #define CONFIG_SILENT_CONSOLE          1       /* enable silent startup */
-#define CFG_CONSOLE_INFO_QUIET
+#define CONFIG_SYS_CONSOLE_INFO_QUIET
 
 /*
  * Physical Memory Map
 /*
  * FLASH organization
  */
-#define CFG_FLASH_BASE         PHYS_FLASH_1
-#define CFG_MAX_FLASH_BANKS    1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
 #define PHYS_FLASH_1_SIZE      (1 * 1024 * 1024)
-#define CFG_MAX_FLASH_SECT     19
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* in ticks */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ)
+#define CONFIG_SYS_MAX_FLASH_SECT      19
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* in ticks */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ)
 
-#define CFG_MONITOR_BASE       PHYS_FLASH_1
-#define CFG_MONITOR_LEN                (256 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)
 
 /*
  * Environment settings
@@ -86,8 +86,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_MALLOC_LEN         (4 * 1024 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (4 * 1024 * 1024)
 
 /*
  * The stack size is set up in start.S using the settings below
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   (-4)
-#define CFG_NS16550_CLK                (CONFIG_XTAL_FREQ)      /* can be 12M/32Khz or 48Mhz  */
-#define CFG_NS16550_COM1       OMAP1510_UART1_BASE     /* uart1 */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
+#define CONFIG_SYS_NS16550_CLK         (CONFIG_XTAL_FREQ)      /* can be 12M/32Khz or 48Mhz  */
+#define CONFIG_SYS_NS16550_COM1        OMAP1510_UART1_BASE     /* uart1 */
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*#define CONFIG_SKIP_RELOCATE_UBOOT*/
 /*#define CONFIG_SKIP_LOWLEVEL_INIT */
 /*
  * NAND flash
  */
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE  0x04000000 + (2 << 23)
+#define CONFIG_SYS_NAND_BASE   0x04000000 + (2 << 23)
 #define NAND_ALLOW_ERASE_ALL   1
 
 /*
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* allow to break in always */
 #undef  CONFIG_BOOTARGS                /* the boot command will set bootargs*/
-#define CFG_AUTOLOAD           "n"             /* No autoload */
+#define CONFIG_SYS_AUTOLOAD            "n"             /* No autoload */
 #define CONFIG_BOOTCOMMAND     "run fboot"
 #define CONFIG_PREBOOT         "run setup"
 #define        CONFIG_EXTRA_ENV_SETTINGS                                               \
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "# "            /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "# "            /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #define CONFIG_AUTO_COMPLETE
 
-#define CFG_MEMTEST_START      PHYS_SDRAM_1
-#define CFG_MEMTEST_END                PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE - \
-                               (CFG_MONITOR_LEN + CFG_MALLOC_LEN + CONFIG_STACKSIZE)
+#define CONFIG_SYS_MEMTEST_START       PHYS_SDRAM_1
+#define CONFIG_SYS_MEMTEST_END         PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE - \
+                               (CONFIG_SYS_MONITOR_LEN + CONFIG_SYS_MALLOC_LEN + CONFIG_STACKSIZE)
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          PHYS_SDRAM_1 + 0x400000 /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           PHYS_SDRAM_1 + 0x400000 /* default load address */
 
 /* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1.
  * This time is further subdivided by a local divisor.
  */
-#define CFG_TIMERBASE          OMAP1510_TIMER1_BASE
-#define CFG_PVT                        7               /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ                 ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE           OMAP1510_TIMER1_BASE
+#define CONFIG_SYS_PVT                 7               /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ                  ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 #define OMAP5910_DPLL_DIV      1
 #define OMAP5910_DPLL_MUL      ((CONFIG_SYS_CLK_FREQ * \
index 5b5c6eb2dc2433b9f3139bf7103e5f76ed9ef360..b22c33cc809af6ecc00d298f2e299ea834436849 100644 (file)
@@ -49,8 +49,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE       128     /* size in bytes reserved for initial
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial
                                         * data */
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "NS9750DEV # "  /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "NS9750DEV # "  /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00780000      /* 7,5 MB in DRAM       */ /* @TODO */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00780000      /* 7,5 MB in DRAM       */ /* @TODO */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x00600000      /* default load address */ /* @TODO */
+#define        CONFIG_SYS_LOAD_ADDR            0x00600000      /* default load address */ /* @TODO */
 
-#define        CFG_HZ                  (CPU_CLK_FREQ/64)
+#define        CONFIG_SYS_HZ                   (CPU_CLK_FREQ/64)
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define NS9750_ETH_PHY_ADDRESS (0x0000)
 
 
 #define PHYS_FLASH_1           0x50000000 /* Flash Bank #1 */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
 #define CONFIG_AMD_LV800       1       /* uncomment this if you have a LV800 flash */
 #endif
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
 #ifdef CONFIG_AMD_LV800
 #define PHYS_FLASH_SIZE                0x00100000 /* 1MB */
-#define CFG_MAX_FLASH_SECT     (19)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x0F0000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (19)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x0F0000) /* addr of environment */
 #endif
 #ifdef CONFIG_AMD_LV400
 #define PHYS_FLASH_SIZE                0x00080000 /* 512KB */
-#define CFG_MAX_FLASH_SECT     (11)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x070000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (11)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x070000) /* addr of environment */
 #endif
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* @TODO */
 /*#define      CONFIG_ENV_IS_IN_FLASH  1*/
index b515388b53c1a6a4e064a85e5295910f24cdebdf..bfae7b429153116b80e914417b6e30cdaf8ab8bc 100644 (file)
@@ -32,7 +32,7 @@
 #define CONFIG_MPC5200
 #define CONFIG_O2DNT           1       /* ... on O2DNT board */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -44,7 +44,7 @@
  */
 #define CONFIG_PSC_CONSOLE     5       /* console is on PSC5 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * PCI Mapping:
 #define CONFIG_PCI_IO_PHYS     CONFIG_PCI_IO_BUS
 #define CONFIG_PCI_IO_SIZE     0x01000000
 
-#define CFG_XLB_PIPELINING     1
+#define CONFIG_SYS_XLB_PIPELINING      1
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 
 /* Partitions */
 
 
 #if (TEXT_BASE == 0xFF000000)          /* Boot low with 16 MB Flash */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #else
 #   error "TEXT_BASE must be 0xFF000000"
 #endif
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
-#if defined(CFG_IPBCLK_EQUALS_XLBCLK)
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
+ * CONFIG_SYS_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
  *  of 66 MHz yet hasn't been tested with a IPB Bus Clock of 66 MHz.
  */
-#define CFG_PCICLK_EQUALS_IPBCLK_DIV2  /* define for 66MHz speed */
+#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2   /* define for 66MHz speed */
 #endif
 #endif
 
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         1       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          1       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration:
  * 0x50 ... 0x57 each 256 bytes in size
  *
  */
-#define CFG_I2C_FRAM
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
+#define CONFIG_SYS_I2C_FRAM
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
 /*
  * There is no write delay with FRAM, write operations are performed at bus
  * speed. Thus, no status polling or write delay is needed.
  */
-/*#define CFG_EEPROM_PAGE_WRITE_DELAY_MS       70*/
+/*#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS        70*/
 
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_SIZE         0x01000000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00040000)
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_SIZE          0x01000000
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00040000)
 
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     128     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max num of sects on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
-#define CFG_FLASH_UNLOCK_TOUT  10000   /* Timeout for Flash Clear Lock Bits (in ms) */
-#define CFG_FLASH_PROTECTION           /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   10000   /* Timeout for Flash Clear Lock Bits (in ms) */
+#define CONFIG_SYS_FLASH_PROTECTION            /* "Real" (hardware) sectors protection */
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-/*#define CFG_GPS_PORT_CONFIG  0x10002004 */
-#define CFG_GPS_PORT_CONFIG    0x00002006      /* no CAN */
+/*#define CONFIG_SYS_GPS_PORT_CONFIG   0x10002004 */
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x00002006      /* no CAN */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
 
-#ifdef CFG_PCICLK_EQUALS_IPBCLK_DIV2
+#ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
 /*
  * For 66 MHz PCI clock additional Wait State is needed for CS0 (flash).
  */
-#define CFG_BOOTCS_CFG         0x00057801 /* for pci_clk = 66 MHz */
+#define CONFIG_SYS_BOOTCS_CFG          0x00057801 /* for pci_clk = 66 MHz */
 #else
-#define CFG_BOOTCS_CFG         0x00047801 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_BOOTCS_CFG          0x00047801 /* for pci_clk = 33 MHz */
 #endif
 
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 #endif /* __CONFIG_H */
index d9b277c0e48ae7be4b66fe5bfb7b78ba61436926..2e809b0f33860dacf579851a95df1aac5a3b4e06 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE     0xff800000      /* start of FLASH           */
-#define CFG_PCI_MEMBASE            0x80000000      /* mapped pci memory        */
-#define CFG_PERIPHERAL_BASE 0xe0000000     /* internal peripherals     */
-#define CFG_ISRAM_BASE     0xc0000000      /* internal SRAM            */
-#define CFG_PCI_BASE       0xd0000000      /* internal PCI regs        */
+#define CONFIG_SYS_FLASH_BASE      0xff800000      /* start of FLASH           */
+#define CONFIG_SYS_PCI_MEMBASE     0x80000000      /* mapped pci memory        */
+#define CONFIG_SYS_PERIPHERAL_BASE 0xe0000000      /* internal peripherals     */
+#define CONFIG_SYS_ISRAM_BASE      0xc0000000      /* internal SRAM            */
+#define CONFIG_SYS_PCI_BASE        0xd0000000      /* internal PCI regs        */
 
-#define CFG_FPGA_BASE      (CFG_PERIPHERAL_BASE + 0x08300000)
-#define CFG_NVRAM_BASE_ADDR (CFG_PERIPHERAL_BASE + 0x08000000)
+#define CONFIG_SYS_FPGA_BASE       (CONFIG_SYS_PERIPHERAL_BASE + 0x08300000)
+#define CONFIG_SYS_NVRAM_BASE_ADDR (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM  1
-#define CFG_OCM_DATA_ADDR   CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR   CFG_ISRAM_BASE  /* Initial RAM address     */
-#define CFG_INIT_RAM_END    0x2000         /* End of used area in RAM  */
-#define CFG_GBL_DATA_SIZE   128                    /* num bytes initial data   */
+#define CONFIG_SYS_TEMP_STACK_OCM  1
+#define CONFIG_SYS_OCM_DATA_ADDR   CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR   CONFIG_SYS_ISRAM_BASE  /* Initial RAM address       */
+#define CONFIG_SYS_INIT_RAM_END    0x2000          /* End of used area in RAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE   128             /* num bytes initial data   */
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_EXT_SERIAL_CLOCK   (1843200 * 6)   /* Ext clk @ 11.059 MHz */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    (1843200 * 6)   /* Ext clk @ 11.059 MHz */
 
 /*-----------------------------------------------------------------------
  * Environment
  * The DS1743 code assumes this condition (i.e. -- it assumes the base
  * address for the RTC registers is:
  *
- *     CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE
+ *     CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_SIZE
  *
  *----------------------------------------------------------------------*/
-#define CFG_NVRAM_SIZE     (0x2000 - 8)    /* NVRAM size(8k)- RTC regs */
+#define CONFIG_SYS_NVRAM_SIZE      (0x2000 - 8)    /* NVRAM size(8k)- RTC regs */
 #define CONFIG_RTC_DS174x      1                   /* DS1743 RTC               */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x1000      /* Size of Environment vars */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)
 #endif /* CONFIG_ENV_IS_IN_NVRAM */
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS    3                   /* number of banks      */
-#define CFG_MAX_FLASH_SECT     64                  /* sectors per device   */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3                   /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      64                  /* sectors per device   */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_ADDR0         0x5555
-#define CFG_FLASH_ADDR1         0x2aaa
-#define CFG_FLASH_WORD_SIZE     unsigned char
+#define CONFIG_SYS_FLASH_ADDR0         0x5555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aaa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000         /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /*
  * Default environment variables
 #define CONFIG_PCI                     /* include pci support          */
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE    0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT            /* let board init pci target    */
+#define CONFIG_SYS_PCI_TARGET_INIT             /* let board init pci target    */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
 
 #endif /* __CONFIG_H */
index d390d856f7f7af946330a5a3708ff40a05d5c0fc..c7d1b6c039e4e95ab9be29be588cf5852231f3c8 100644 (file)
@@ -49,8 +49,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   (-4)
-#define CFG_NS16550_CLK                (CONFIG_SYS_CLK_FREQ)   /* can be 12M/32Khz or 48Mhz  */
-#define CFG_NS16550_COM1       0xfffb0000              /* uart1, bluetooth uart on helen */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
+#define CONFIG_SYS_NS16550_CLK         (CONFIG_SYS_CLK_FREQ)   /* can be 12M/32Khz or 48Mhz  */
+#define CONFIG_SYS_NS16550_COM1        0xfffb0000              /* uart1, bluetooth uart on helen */
 
 /*
  * select serial console configuration
@@ -84,7 +84,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_BOOTARGS                "console=ttyS0,115200n8 noinitrd root=/dev/nfs ip=bootp"
 #define CONFIG_BOOTCOMMAND     "bootp;tftp;bootm"
-#define CFG_AUTOLOAD           "n"             /* No autoload */
+#define CONFIG_SYS_AUTOLOAD            "n"             /* No autoload */
 
 #if defined(CONFIG_CMD_KGDB)
 #define CONFIG_KGDB_BAUDRATE   115200          /* speed to run kgdb serial port */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "OMAP1510 Innovator # " /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "OMAP1510 Innovator # " /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x10000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x12000000      /* 32 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x10000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x12000000      /* 32 MB in DRAM        */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0x10000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x10000000      /* default load address */
 
 /* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1.
  * This time is further subdivided by a local divisor.
  */
-#define CFG_TIMERBASE  0xFFFEC500          /* use timer 1 */
-#define CFG_PVT                7                   /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ                 ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE   0xFFFEC500          /* use timer 1 */
+#define CONFIG_SYS_PVT         7                   /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ                  ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
 #define PHYS_FLASH_SIZE                0x01000000 /* 16MB */
 #define PHYS_FLASH_SECT_SIZE   (128*1024)      /* Size of a sector (128kB) */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + PHYS_FLASH_SECT_SIZE)
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE  /* Monitor at beginning of flash */
-#define CFG_MONITOR_LEN                PHYS_FLASH_SECT_SIZE    /* Reserve 1 sector */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE + PHYS_FLASH_SIZE }
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SECT_SIZE)
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE   /* Monitor at beginning of flash */
+#define CONFIG_SYS_MONITOR_LEN         PHYS_FLASH_SECT_SIZE    /* Reserve 1 sector */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SIZE }
 
 /*-----------------------------------------------------------------------
  * FLASH driver setup
  */
-#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use drivers/mtd/cfi_flash.c */
-#define CFG_FLASH_USE_BUFFER_WRITE     1       /* Use buffered writes (~10x faster) */
-#define CFG_FLASH_PROTECTION   1       /* Use hardware sector protection */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1       /* Use buffered writes (~10x faster) */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* Use hardware sector protection */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SECT_SIZE   PHYS_FLASH_SECT_SIZE    /* Total Size of Environment Sector */
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE
-#define CONFIG_ENV_OFFSET              ( CFG_MONITOR_BASE + CFG_MONITOR_LEN )  /* Environment after Monitor */
+#define CONFIG_ENV_OFFSET              ( CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN )    /* Environment after Monitor */
 
 #endif /* __CONFIG_H */
index aeb2fec9c20c2e0e900bbe1932080c43e72db1d5..e2a63607c08472ea629b382dc7781c6b1b86e5b0 100644 (file)
@@ -51,8 +51,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   (-4)
-#define CFG_NS16550_CLK        (48000000)              /* can be 12M/32Khz or 48Mhz */
-#define CFG_NS16550_COM1       0xfffb0000      /* uart1, bluetooth uart */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
+#define CONFIG_SYS_NS16550_CLK (48000000)              /* can be 12M/32Khz or 48Mhz */
+#define CONFIG_SYS_NS16550_COM1        0xfffb0000      /* uart1, bluetooth uart */
 
 /*
  * select serial console configuration
@@ -79,7 +79,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE        115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_BOOTARGS        "console=ttyS0,115200n8 noinitrd root=/dev/nfs ip=dhcp"
 #define CONFIG_BOOTCOMMAND      "bootp;tftp;bootm"
-#define CFG_AUTOLOAD            "n"             /* No autoload */
+#define CONFIG_SYS_AUTOLOAD            "n"             /* No autoload */
 
 #if defined(CONFIG_CMD_KGDB)
 #define CONFIG_KGDB_BAUDRATE   115200  /* speed to run kgdb serial port */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP   /* undef to save memory */
-#define CFG_PROMPT     "OMAP1610 H2 # "        /* Monitor Command Prompt */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_LONGHELP    /* undef to save memory */
+#define CONFIG_SYS_PROMPT      "OMAP1610 H2 # "        /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 /* Print Buffer Size */
-#define CFG_PBSIZE     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x10000000      /* memtest works on */
-#define CFG_MEMTEST_END        0x12000000      /* 32 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x10000000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END 0x12000000      /* 32 MB in DRAM */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR  0x10000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x10000000      /* default load address */
 
 /* The 1610 has 6 timers, they can be driven by the RefClk (12Mhz) or by
  * DPLL1. This time is further subdivided by a local divisor.
  */
-#define CFG_TIMERBASE  0xFFFEC500      /* use timer 1 */
-#define CFG_PVT        7       /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE   0xFFFEC500      /* use timer 1 */
+#define CONFIG_SYS_PVT 7       /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ  ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #ifndef __ASSEMBLY__
 extern unsigned long omap_flash_base;          /* set in flash__init */
 #endif
-#define CFG_FLASH_BASE         omap_flash_base
+#define CONFIG_SYS_FLASH_BASE          omap_flash_base
 
 #elif defined(CONFIG_CS0_BOOT)
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1_BM0
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1_BM0
 
 #else
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1_BM1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1_BM1
 
 #endif
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
 #define PHYS_FLASH_SIZE        0x02000000      /* 32MB */
-#define CFG_MAX_FLASH_SECT     (259)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      (259)   /* max number of sectors on one chip */
 /* addr of environment */
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + 0x020000)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + 0x020000)
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE        0x20000 /* Total Size of Environment Sector */
index 68cf91c78af29530be8129c3a9e084e2ac4a4176..5dcfce15920da942ae1c454e3b98459a274fc57c 100644 (file)
@@ -50,8 +50,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   (-4)
-#define CFG_NS16550_CLK                (48000000)      /* can be 12M/32Khz or 48Mhz */
-#define CFG_NS16550_COM1       0xfffb0000      /* uart1, bluetooth uart on helen */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
+#define CONFIG_SYS_NS16550_CLK         (48000000)      /* can be 12M/32Khz or 48Mhz */
+#define CONFIG_SYS_NS16550_COM1        0xfffb0000      /* uart1, bluetooth uart on helen */
 
 /*
  * select serial console configuration
@@ -80,7 +80,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE        115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP   /* undef to save memory     */
-#define CFG_PROMPT     "OMAP1610 Innovator # " /* Monitor Command Prompt   */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size  */
+#define CONFIG_SYS_LONGHELP    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT      "OMAP1610 Innovator # " /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size  */
 /* Print Buffer Size */
-#define CFG_PBSIZE     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x10000000      /* memtest works on */
-#define CFG_MEMTEST_END        0x12000000      /* 32 MB in DRAM    */
+#define CONFIG_SYS_MEMTEST_START       0x10000000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END 0x12000000      /* 32 MB in DRAM    */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR  0x10000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x10000000      /* default load address */
 
 /* The 1610 has 6 timers, they can be driven by the RefClk (12Mhz) or by
  * DPLL1. This time is further subdivided by a local divisor.
  */
-#define CFG_TIMERBASE  0xFFFEC500      /* use timer 1 */
-#define CFG_PVT        7       /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE   0xFFFEC500      /* use timer 1 */
+#define CONFIG_SYS_PVT 7       /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ  ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #ifndef __ASSEMBLY__
 extern unsigned long omap_flash_base;          /* set in flash__init */
 #endif
-#define CFG_FLASH_BASE         omap_flash_base
+#define CONFIG_SYS_FLASH_BASE          omap_flash_base
 
 #elif defined(CONFIG_CS0_BOOT)
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1_BM0
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1_BM0
 
 #else
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1_BM1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1_BM1
 
 #endif
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
 #define PHYS_FLASH_SIZE        0x02000000      /* 32MB */
-#define CFG_MAX_FLASH_SECT     (259)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      (259)   /* max number of sectors on one chip */
 /* addr of environment */
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + 0x020000)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + 0x020000)
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SIZE        0x20000 /* Total Size of Environment Sector */
index 9018440d1ac11898a3726b785ffefa72141736a5..d11868e08b70c92dc2da4f7a742bc841c10e9c3e 100644 (file)
@@ -47,7 +47,7 @@
 /* On H4, NOR and NAND flash are mutual exclusive.
    Define this if you want to use NAND
  */
-/*#define CFG_NAND_BOOT */
+/*#define CONFIG_SYS_NAND_BOOT */
 
 #ifdef CONFIG_APTIX
 #define V_SCLK                   1500000
@@ -71,8 +71,8 @@
  * Size of malloc() pool
  */
 #define CONFIG_ENV_SIZE             SZ_128K     /* Total Size of Environment Sector */
-#define CFG_MALLOC_LEN           (CONFIG_ENV_SIZE + SZ_128K)
-#define CFG_GBL_DATA_SIZE        128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN           (CONFIG_ENV_SIZE + SZ_128K)
+#define CONFIG_SYS_GBL_DATA_SIZE        128  /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 #define V_NS16550_CLK            (48000000)  /* 48MHz (APLL96/2) */
 #endif
 
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE     (-4)
-#define CFG_NS16550_CLK          V_NS16550_CLK   /* 3MHz (1.5MHz*2) */
-#define CFG_NS16550_COM1         OMAP2420_UART1
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE     (-4)
+#define CONFIG_SYS_NS16550_CLK          V_NS16550_CLK   /* 3MHz (1.5MHz*2) */
+#define CONFIG_SYS_NS16550_COM1         OMAP2420_UART1
 
 /*
  * select serial console configuration
    * I2C configuration
    */
 #define CONFIG_HARD_I2C
-#define CFG_I2C_SPEED          100000
-#define CFG_I2C_SLAVE          1
+#define CONFIG_SYS_I2C_SPEED          100000
+#define CONFIG_SYS_I2C_SLAVE          1
 #define CONFIG_DRIVER_OMAP24XX_I2C
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX        1
 #define CONFIG_BAUDRATE          115200
-#define CFG_BAUDRATE_TABLE       {9600, 19200, 38400, 57600, 115200}
+#define CONFIG_SYS_BAUDRATE_TABLE       {9600, 19200, 38400, 57600, 115200}
 
 
 /*
  */
 #include <config_cmd_default.h>
 
-#ifdef CFG_NAND_BOOT
+#ifdef CONFIG_SYS_NAND_BOOT
     #define CONFIG_CMD_DHCP
     #define CONFIG_CMD_I2C
     #define CONFIG_CMD_NAND
  *  Board NAND Info.
  */
 #define CONFIG_NAND_LEGACY
-#define CFG_NAND_ADDR 0x04000000  /* physical address to access nand at CS0*/
+#define CONFIG_SYS_NAND_ADDR 0x04000000  /* physical address to access nand at CS0*/
 
-#define CFG_MAX_NAND_DEVICE 1  /* Max number of NAND devices */
+#define CONFIG_SYS_MAX_NAND_DEVICE 1   /* Max number of NAND devices */
 #define SECTORSIZE          512
 
 #define ADDR_COLUMN         1
 
 #define NAND_NO_RB          1
 
-#define CFG_NAND_WP
+#define CONFIG_SYS_NAND_WP
 #define NAND_WP_OFF()  do {*(volatile u32 *)(0x6800A050) |= 0x00000010;} while(0)
 #define NAND_WP_ON()  do {*(volatile u32 *)(0x6800A050) &= ~0x00000010;} while(0)
 
 #define V_PROMPT                 "OMAP242x H4 # "
 #endif
 
-#define CFG_LONGHELP             /* undef to save memory */
-#define CFG_PROMPT               V_PROMPT
-#define CFG_CBSIZE               256  /* Console I/O Buffer Size */
+#define CONFIG_SYS_LONGHELP             /* undef to save memory */
+#define CONFIG_SYS_PROMPT               V_PROMPT
+#define CONFIG_SYS_CBSIZE               256  /* Console I/O Buffer Size */
 /* Print Buffer Size */
-#define CFG_PBSIZE               (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS              16          /* max number of command args */
-#define CFG_BARGSIZE             CFG_CBSIZE  /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE               (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS              16          /* max number of command args */
+#define CONFIG_SYS_BARGSIZE             CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START        (OMAP2420_SDRC_CS0)  /* memtest works on */
-#define CFG_MEMTEST_END          (OMAP2420_SDRC_CS0+SZ_31M)
+#define CONFIG_SYS_MEMTEST_START        (OMAP2420_SDRC_CS0)  /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END          (OMAP2420_SDRC_CS0+SZ_31M)
 
-#undef CFG_CLKS_IN_HZ           /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR            (OMAP2420_SDRC_CS0) /* default load address */
+#define CONFIG_SYS_LOAD_ADDR            (OMAP2420_SDRC_CS0) /* default load address */
 
 /* The 2420 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by
  * 32KHz clk, or from external sig. This rate is divided by a local divisor.
 #define V_PVT                    7  /* use with 12MHz/128 */
 #endif
 
-#define CFG_TIMERBASE            OMAP2420_GPT2
-#define CFG_PVT                  V_PVT  /* 2^(pvt+1) */
-#define CFG_HZ                  ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE            OMAP2420_GPT2
+#define CONFIG_SYS_PVT                  V_PVT  /* 2^(pvt+1) */
+#define CONFIG_SYS_HZ                   ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_FLASH_BASE           PHYS_FLASH_1
-#define CFG_MAX_FLASH_BANKS      2           /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT       (259)      /* max number of sectors on one chip */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE /* Monitor at beginning of flash */
-#define CFG_MONITOR_LEN                SZ_128K      /* Reserve 1 sector */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE + PHYS_FLASH_SIZE_1 }
-
-#ifdef CFG_NAND_BOOT
+#define CONFIG_SYS_FLASH_BASE           PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_BANKS      2           /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT       (259)       /* max number of sectors on one chip */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE /* Monitor at beginning of flash */
+#define CONFIG_SYS_MONITOR_LEN         SZ_128K      /* Reserve 1 sector */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + PHYS_FLASH_SIZE_1 }
+
+#ifdef CONFIG_SYS_NAND_BOOT
 #define CONFIG_ENV_IS_IN_NAND  1
 #define CONFIG_ENV_OFFSET      0x80000 /* environment starts here  */
 #else
-#define CONFIG_ENV_ADDR             (CFG_FLASH_BASE + SZ_128K)
+#define CONFIG_ENV_ADDR             (CONFIG_SYS_FLASH_BASE + SZ_128K)
 #define        CONFIG_ENV_IS_IN_FLASH      1
 #define CONFIG_ENV_SECT_SIZE   PHYS_FLASH_SECT_SIZE
-#define CONFIG_ENV_OFFSET      ( CFG_MONITOR_BASE + CFG_MONITOR_LEN ) /* Environment after Monitor */
+#define CONFIG_ENV_OFFSET      ( CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN ) /* Environment after Monitor */
 #endif
 
 /*-----------------------------------------------------------------------
  * CFI FLASH driver setup
  */
-#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use drivers/mtd/cfi_flash.c */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* Use buffered writes (~10x faster) */
-#define CFG_FLASH_PROTECTION   1       /* Use hardware sector protection */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* Use buffered writes (~10x faster) */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* Use hardware sector protection */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT     (100*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT     (100*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT     (100*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT     (100*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
-#define CFG_JFFS2_MEM_NAND
+#define CONFIG_SYS_JFFS2_MEM_NAND
 
 /*
  * JFFS2 partitions
index dd3f7de4f623925bd3fb109ecbe0ae6515a0dbcd..63cd9c6b76378282df409004d2750408bd004cb2 100644 (file)
@@ -53,8 +53,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   (-4)
-#define CFG_NS16550_CLK        (48000000)      /* can be 12M/32Khz or 48Mhz */
-#define CFG_NS16550_COM1       0xfffb0000      /* uart1, bluetooth uart
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
+#define CONFIG_SYS_NS16550_CLK (48000000)      /* can be 12M/32Khz or 48Mhz */
+#define CONFIG_SYS_NS16550_COM1        0xfffb0000      /* uart1, bluetooth uart
                                                on helen */
 
 /*
@@ -84,7 +84,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE        115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP   /* undef to save memory     */
-#define CFG_PROMPT     "OMAP5912 OSK # "       /* Monitor Command Prompt   */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size  */
+#define CONFIG_SYS_LONGHELP    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT      "OMAP5912 OSK # "       /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size  */
 /* Print Buffer Size */
-#define CFG_PBSIZE     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x10000000      /* memtest works on */
-#define CFG_MEMTEST_END        0x12000000      /* 32 MB in DRAM    */
+#define CONFIG_SYS_MEMTEST_START       0x10000000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END 0x12000000      /* 32 MB in DRAM    */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR  0x10000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   0x10000000      /* default load address */
 
 /* The 1610 has 6 timers, they can be driven by the RefClk (12Mhz) or by
  * DPLL1. This time is further subdivided by a local divisor.
  */
-#define CFG_TIMERBASE  0xFFFEC500      /* use timer 1 */
-#define CFG_PVT        7       /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE   0xFFFEC500      /* use timer 1 */
+#define CONFIG_SYS_PVT 7       /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ  ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_FLASH_1           0x00000000      /* Flash Bank #1 */
 #define PHYS_FLASH_2           0x01000000      /* Flash Bank #2 */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE  /* Monitor at beginning of flash */
+#define CONFIG_SYS_MONITOR_BASE       CONFIG_SYS_FLASH_BASE  /* Monitor at beginning of flash */
 
 /*-----------------------------------------------------------------------
  * FLASH driver setup
  */
-#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_CFI          1       /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER   1       /* Use drivers/mtd/cfi_flash.c */
 
-#define CFG_FLASH_BANKS_LIST { PHYS_FLASH_1, PHYS_FLASH_2 }
+#define CONFIG_SYS_FLASH_BANKS_LIST { PHYS_FLASH_1, PHYS_FLASH_2 }
 
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
 #define PHYS_FLASH_SIZE        0x02000000      /* 32MB */
-#define CFG_MAX_FLASH_SECT     (259)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      (259)   /* max number of sectors on one chip */
 
-#define CFG_FLASH_USE_BUFFER_WRITE     1       /* Use buffered writes (~10x faster) */
-#define CFG_FLASH_PROTECTION   1       /* Use hardware sector protection */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE     1       /* Use buffered writes (~10x faster) */
+#define CONFIG_SYS_FLASH_PROTECTION   1       /* Use hardware sector protection */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Write */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
 /* addr of environment */
-#define CONFIG_ENV_ADDR        (CFG_FLASH_BASE + 0x020000)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_FLASH_BASE + 0x020000)
 
 #define CONFIG_ENV_SIZE        0x20000 /* Total Size of Environment Sector */
 #define CONFIG_ENV_OFFSET      0x20000 /* environment starts here  */
index b1c4a305783209230516f3057c9670be01bc767b..166d592ccdbbf5a09d0e03436ade86207843a0c0 100644 (file)
@@ -58,8 +58,8 @@
  * Size of malloc() pool
  */
 
-#define CFG_MALLOC_LEN            (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE         128       /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN             (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE          128       /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
  * NS16550 Configuration
  */
 
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE      (1)
-#define CFG_NS16550_CLK                   (48000000)     /* can be 12M/32Khz or 48Mhz */
-#define CFG_NS16550_COM1          0xfffb0000     /* uart1, bluetooth uart
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE       (1)
+#define CONFIG_SYS_NS16550_CLK            (48000000)     /* can be 12M/32Khz or 48Mhz */
+#define CONFIG_SYS_NS16550_COM1           0xfffb0000     /* uart1, bluetooth uart
                                                   * on perseus */
 
 /*
@@ -88,7 +88,7 @@
 
 #define CONFIG_CONS_INDEX         1
 #define CONFIG_BAUDRATE                   115200
-#define CFG_BAUDRATE_TABLE        { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE         { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
  * Miscellaneous configurable options
  */
 
-#define CFG_LONGHELP                                  /* undef to save memory     */
-#define CFG_PROMPT                "OMAP730 P2 # "     /* Monitor Command Prompt   */
-#define CFG_CBSIZE                256                 /* Console I/O Buffer Size  */
+#define CONFIG_SYS_LONGHELP                                   /* undef to save memory     */
+#define CONFIG_SYS_PROMPT                 "OMAP730 P2 # "     /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE                 256                 /* Console I/O Buffer Size  */
 /* Print Buffer Size */
-#define CFG_PBSIZE                (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS               16                  /* max number of command args   */
-#define CFG_BARGSIZE              CFG_CBSIZE          /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE                 (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS                16                  /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE               CONFIG_SYS_CBSIZE           /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START         0x10000000          /* memtest works on */
-#define CFG_MEMTEST_END                   0x12000000          /* 32 MB in DRAM    */
+#define CONFIG_SYS_MEMTEST_START          0x10000000          /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END            0x12000000          /* 32 MB in DRAM    */
 
-#undef CFG_CLKS_IN_HZ               /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ                /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR             0x10000000          /* default load address */
+#define CONFIG_SYS_LOAD_ADDR              0x10000000          /* default load address */
 
 /* The OMAP730 has 3 general purpose MPU timers, they can be driven by
  * the RefClk (12Mhz) or by DPLL1. This time is further subdivided by a
  * local divisor.
  */
 
-#define CFG_TIMERBASE             0xFFFEC500          /* use timer 1 */
-#define CFG_PVT                           7                   /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ                    ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE              0xFFFEC500          /* use timer 1 */
+#define CONFIG_SYS_PVT                    7                   /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ                     ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #error Unknown Boot Chip-Select number
 #endif
 
-#define CFG_FLASH_BASE            PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE             PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 
-#define CFG_MAX_FLASH_BANKS       1              /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS        1              /* max number of memory banks */
 #define PHYS_FLASH_SIZE                   0x02000000     /* 32MB */
-#define CFG_MAX_FLASH_SECT        (259)          /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT         (259)          /* max number of sectors on one chip */
 /* addr of environment */
-#define CONFIG_ENV_ADDR                   (CFG_FLASH_BASE + 0x020000)
+#define CONFIG_ENV_ADDR                   (CONFIG_SYS_FLASH_BASE + 0x020000)
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT       (20*CFG_HZ)   /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT       (20*CFG_HZ)   /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT        (20*CONFIG_SYS_HZ)    /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT        (20*CONFIG_SYS_HZ)    /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH    1
 #define CONFIG_ENV_SIZE                   0x20000        /* Total Size of Environment Sector */
index 2df1d9d34b6597df08a03a59dab816e0303bd42f..5e4d30b8a568f801df343d1d18416552ebb0cb36 100644 (file)
 #if defined (CONFIG_P3M750)
 #define CONFIG_750FX                   /* 750GL/GX/FX                  */
 #define CONFIG_HIGH_BATS               /* High BATs supported          */
-#define CFG_BOARD_NAME         "P3M750"
-#define CFG_BUS_HZ             100000000
-#define CFG_BUS_CLK            CFG_BUS_HZ
-#define CFG_TCLK               100000000
+#define CONFIG_SYS_BOARD_NAME          "P3M750"
+#define CONFIG_SYS_BUS_HZ              100000000
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
+#define CONFIG_SYS_TCLK                100000000
 #elif defined (CONFIG_P3M7448)
 #define CONFIG_74xx
-#define CFG_BOARD_NAME         "P3M7448"
-#define CFG_BUS_HZ             133333333
-#define CFG_BUS_CLK            CFG_BUS_HZ
-#define CFG_TCLK               133333333
+#define CONFIG_SYS_BOARD_NAME          "P3M7448"
+#define CONFIG_SYS_BUS_HZ              133333333
+#define CONFIG_SYS_BUS_CLK             CONFIG_SYS_BUS_HZ
+#define CONFIG_SYS_TCLK                133333333
 #endif
-#define CFG_GT_DUAL_CPU                        /* also for JTAG even with one cpu */
+#define CONFIG_SYS_GT_DUAL_CPU                 /* also for JTAG even with one cpu */
 
 /* which initialization functions to call for this board */
-#define CFG_BOARD_ASM_INIT     1
+#define CONFIG_SYS_BOARD_ASM_INIT      1
 #define CONFIG_BOARD_EARLY_INIT_F 1     /* Call board_early_init_f     */
 #define CONFIG_BOARD_EARLY_INIT_R 1     /* Call board_early_init_f     */
 #define CONFIG_MISC_INIT_R      1      /* Call misc_init_r()           */
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_SDRAM_BASE         0x00000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
 #ifdef CONFIG_P3M750
-#define CFG_SDRAM1_BASE                0x10000000      /* each 256 MByte       */
+#define CONFIG_SYS_SDRAM1_BASE         0x10000000      /* each 256 MByte       */
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
 #if defined (CONFIG_P3M750)
-#define CFG_FLASH_BASE         0xff800000      /* start of flash banks */
-#define CFG_BOOT_SIZE          _8M             /* boot flash           */
+#define CONFIG_SYS_FLASH_BASE          0xff800000      /* start of flash banks */
+#define CONFIG_SYS_BOOT_SIZE           _8M             /* boot flash           */
 #elif defined (CONFIG_P3M7448)
-#define CFG_FLASH_BASE         0xff000000      /* start of flash banks */
-#define CFG_BOOT_SIZE          _16M            /* boot flash           */
+#define CONFIG_SYS_FLASH_BASE          0xff000000      /* start of flash banks */
+#define CONFIG_SYS_BOOT_SIZE           _16M            /* boot flash           */
 #endif
-#define CFG_BOOT_SPACE         CFG_FLASH_BASE  /* BOOT_CS0 flash 0    */
-#define CFG_MONITOR_BASE       0xfff00000
-#define CFG_RESET_ADDRESS      0xfff00100
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc */
-#define CFG_MISC_REGION_BASE   0xf0000000
+#define CONFIG_SYS_BOOT_SPACE          CONFIG_SYS_FLASH_BASE   /* BOOT_CS0 flash 0    */
+#define CONFIG_SYS_MONITOR_BASE        0xfff00000
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_MISC_REGION_BASE    0xf0000000
 
-#define CFG_DFL_GT_REGS                0xf1000000      /* boot time GT_REGS */
-#define CFG_GT_REGS            0xf1000000      /* GT Registers are mapped here */
-#define CFG_INT_SRAM_BASE      0x42000000      /* GT offers 256k internal SRAM */
+#define CONFIG_SYS_DFL_GT_REGS         0xf1000000      /* boot time GT_REGS */
+#define CONFIG_SYS_GT_REGS             0xf1000000      /* GT Registers are mapped here */
+#define CONFIG_SYS_INT_SRAM_BASE       0x42000000      /* GT offers 256k internal SRAM */
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
  /*
- * When locking data in cache you should point the CFG_INIT_RAM_ADDRESS
+ * When locking data in cache you should point the CONFIG_SYS_INIT_RAM_ADDRESS
  * To an unused memory region. The stack will remain in cache until RAM
  * is initialized
 */
-#undef CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0x42000000
-#define CFG_INIT_RAM_END       0x1000
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for init data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#undef CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x42000000
+#define CONFIG_SYS_INIT_RAM_END        0x1000
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for init data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 
 /*-----------------------------------------------------------------------
 #define CONFIG_MPSC                    /* MV64460 Serial               */
 #define CONFIG_MPSC_PORT       0
 #define CONFIG_BAUDRATE                115200  /* console baudrate             */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 /*-----------------------------------------------------------------------
  * Ethernet
  *----------------------------------------------------------------------*/
 /* Change the default ethernet port, use this define (options: 0, 1, 2) */
-#define CFG_ETH_PORT           ETH_0
+#define CONFIG_SYS_ETH_PORT            ETH_0
 #define CONFIG_NET_MULTI
 #define MV_ETH_DEVS            2
 #define CONFIG_PHY_RESET        1      /* reset phy upon startup         */
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible          */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible          */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver                */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection        */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection        */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define CONFIG_ENV_IS_IN_FLASH     1   /* use FLASH for environment vars       */
 #if defined (CONFIG_P3M750)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* two sectors (2 devices parallel      */
 #endif
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          100000          /* I2C speed default    */
+#define CONFIG_SYS_I2C_SPEED           100000          /* I2C speed default    */
 
 /* I2C RTC */
 #define CONFIG_RTC_M41T11      1
-#define CFG_I2C_RTC_ADDR       0x68
-#define CFG_M41T11_BASE_YEAR   1900    /* play along with linux        */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
+#define CONFIG_SYS_M41T11_BASE_YEAR    1900    /* play along with linux        */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #endif /* CONFIG_PCI */
 
 /* PCI MEMORY MAP section */
-#define CFG_PCI0_MEM_BASE      0x80000000
-#define CFG_PCI0_MEM_SIZE      _128M
-#define CFG_PCI1_MEM_BASE      0x88000000
-#define CFG_PCI1_MEM_SIZE      _128M
+#define CONFIG_SYS_PCI0_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI0_MEM_SIZE       _128M
+#define CONFIG_SYS_PCI1_MEM_BASE       0x88000000
+#define CONFIG_SYS_PCI1_MEM_SIZE       _128M
 
-#define CFG_PCI0_0_MEM_SPACE   (CFG_PCI0_MEM_BASE)
-#define CFG_PCI1_0_MEM_SPACE   (CFG_PCI1_MEM_BASE)
+#define CONFIG_SYS_PCI0_0_MEM_SPACE    (CONFIG_SYS_PCI0_MEM_BASE)
+#define CONFIG_SYS_PCI1_0_MEM_SPACE    (CONFIG_SYS_PCI1_MEM_BASE)
 
 /* PCI I/O MAP section */
-#define CFG_PCI0_IO_BASE       0xfa000000
-#define CFG_PCI0_IO_SIZE       _16M
-#define CFG_PCI1_IO_BASE       0xfb000000
-#define CFG_PCI1_IO_SIZE       _16M
+#define CONFIG_SYS_PCI0_IO_BASE        0xfa000000
+#define CONFIG_SYS_PCI0_IO_SIZE        _16M
+#define CONFIG_SYS_PCI1_IO_BASE        0xfb000000
+#define CONFIG_SYS_PCI1_IO_SIZE        _16M
 
-#define CFG_PCI0_IO_SPACE      (CFG_PCI0_IO_BASE)
-#define CFG_PCI0_IO_SPACE_PCI  0x00000000
-#define CFG_PCI1_IO_SPACE      (CFG_PCI1_IO_BASE)
-#define CFG_PCI1_IO_SPACE_PCI  0x00000000
+#define CONFIG_SYS_PCI0_IO_SPACE       (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI0_IO_SPACE_PCI   0x00000000
+#define CONFIG_SYS_PCI1_IO_SPACE       (CONFIG_SYS_PCI1_IO_BASE)
+#define CONFIG_SYS_PCI1_IO_SPACE_PCI   0x00000000
 
-#define CFG_ISA_IO_BASE_ADDRESS (CFG_PCI0_IO_BASE)
-#define CFG_PCI_IDSEL 0x30
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS (CONFIG_SYS_PCI0_IO_BASE)
+#define CONFIG_SYS_PCI_IDSEL 0x30
 
 #undef CONFIG_BOOTARGS
 #define        CONFIG_EXTRA_ENV_SETTINGS_COMMON                                \
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x08000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x08000000      /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
  *----------------------------------------------------------------------*/
 /* Reset values for Port behavior (8bit/ 32bit, etc.) only corrected device width */
 #if defined (CONFIG_P3M750)
-#define CFG_BOOT_PAR           0x8FDFF87F      /* 16 bit flash, disable burst*/
+#define CONFIG_SYS_BOOT_PAR            0x8FDFF87F      /* 16 bit flash, disable burst*/
 #elif defined (CONFIG_P3M7448)
-#define CFG_BOOT_PAR           0x8FEFFFFF      /* 32 bit flash, burst enabled */
+#define CONFIG_SYS_BOOT_PAR            0x8FEFFFFF      /* 32 bit flash, burst enabled */
 #endif
 
 /*
  * MPP[30]     Module reset            GPIO    OUT     Board reset
  * MPP[31]     PCI EReady              GPIO    IN      Connected to P12
  */
-#define CFG_MPP_CONTROL_0      0x00303022
-#define CFG_MPP_CONTROL_1      0x00000000
-#define CFG_MPP_CONTROL_2      0x00004000
-#define CFG_MPP_CONTROL_3      0x00000004
-#define CFG_GPP_LEVEL_CONTROL  0x280730D0
+#define CONFIG_SYS_MPP_CONTROL_0       0x00303022
+#define CONFIG_SYS_MPP_CONTROL_1       0x00000000
+#define CONFIG_SYS_MPP_CONTROL_2       0x00004000
+#define CONFIG_SYS_MPP_CONTROL_3       0x00000004
+#define CONFIG_SYS_GPP_LEVEL_CONTROL   0x280730D0
 
 /*----------------------------------------------------------------------
  * Initial BAT mappings
  * 2) CACHEINHIBIT and WRITETHROUGH not allowed together in same BAT
  */
 /* SDRAM */
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_GUARDEDSTORAGE | BATL_CACHEINHIBIT)
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_GUARDEDSTORAGE | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
 /* init ram */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
 
 /* PCI0, PCI1 in one BAT */
-#define CFG_IBAT2L BATL_NO_ACCESS
-#define CFG_IBAT2U CFG_DBAT2U
-#define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L BATL_NO_ACCESS
+#define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U
+#define CONFIG_SYS_DBAT2L (CONFIG_SYS_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (CONFIG_SYS_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* GT regs, bootrom, all the devices, PCI I/O */
-#define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
-#define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
-#define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
+#define CONFIG_SYS_IBAT3U (CONFIG_SYS_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
+#define CONFIG_SYS_DBAT3L (CONFIG_SYS_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
 
-#define CFG_IBAT4L (CFG_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT4U (CFG_SDRAM1_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT4L (CFG_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U CFG_IBAT4U
+#define CONFIG_SYS_IBAT4L (CONFIG_SYS_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT4U (CONFIG_SYS_SDRAM1_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT4L (CONFIG_SYS_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT4U CONFIG_SYS_IBAT4U
 
 /* set rest out of range for Linux !!!!!!!!!!! */
 
 /* IBAT5 and DBAT5 */
-#define CFG_IBAT5L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT5U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT5L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT5U CFG_IBAT5U
+#define CONFIG_SYS_IBAT5L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT5U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT5L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT5U CONFIG_SYS_IBAT5U
 
 /* IBAT6 and DBAT6 */
-#define CFG_IBAT6L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT6U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT6L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT6U CFG_IBAT6U
+#define CONFIG_SYS_IBAT6L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT6U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT6L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U
 
 /* IBAT7 and DBAT7 */
-#define CFG_IBAT7L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT7U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT7L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT7U CFG_IBAT7U
+#define CONFIG_SYS_IBAT7L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT7U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT7L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT7U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8<<20) /* Initial Memory map for Linux */
-#define CFG_VXWORKS_MAC_PTR    0x42010000 /* use some memory in SRAM that's not used!!! */
+#define CONFIG_SYS_BOOTMAPSZ           (8<<20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     0x42010000 /* use some memory in SRAM that's not used!!! */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For all MPC74xx CPUs          */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For all MPC74xx CPUs          */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * L2CR setup -- make sure this is right for your board!
  * look in include/mpc74xx.h for the defines used here
  */
-#define CFG_L2
+#define CONFIG_SYS_L2
 
 #if defined (CONFIG_750CX) || defined (CONFIG_750FX)
 #define L2_INIT 0
index da3ce5456a728d3c275970f0d9be47c8d3129e39..1dc8656bfb93f7a484be9081fc363b51a24632cc 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_SDRAM_BASE     0x00000000      /* _must_ be 0              */
-#define CFG_FLASH_BASE     0xff800000      /* start of FLASH           */
-#define CFG_MONITOR_BASE    0xfffc0000     /* start of monitor         */
-#define CFG_PCI_MEMBASE            0x80000000      /* mapped pci memory        */
-#define CFG_PERIPHERAL_BASE 0xe0000000     /* internal peripherals     */
-#define CFG_ISRAM_BASE     0xc0000000      /* internal SRAM            */
-#define CFG_PCI_BASE       0xd0000000      /* internal PCI regs        */
+#define CONFIG_SYS_SDRAM_BASE      0x00000000      /* _must_ be 0              */
+#define CONFIG_SYS_FLASH_BASE      0xff800000      /* start of FLASH           */
+#define CONFIG_SYS_MONITOR_BASE    0xfffc0000      /* start of monitor         */
+#define CONFIG_SYS_PCI_MEMBASE     0x80000000      /* mapped pci memory        */
+#define CONFIG_SYS_PERIPHERAL_BASE 0xe0000000      /* internal peripherals     */
+#define CONFIG_SYS_ISRAM_BASE      0xc0000000      /* internal SRAM            */
+#define CONFIG_SYS_PCI_BASE        0xd0000000      /* internal PCI regs        */
 
-#define CFG_USB_BASE       (CFG_PERIPHERAL_BASE + 0x00000000)
+#define CONFIG_SYS_USB_BASE        (CONFIG_SYS_PERIPHERAL_BASE + 0x00000000)
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_INIT_RAM_ADDR      CFG_ISRAM_BASE  /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x2000      /* End of used area in RAM  */
-#define CFG_GBL_DATA_SIZE      128         /* num bytes initial data   */
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_ISRAM_BASE  /* Initial RAM address   */
+#define CONFIG_SYS_INIT_RAM_END        0x2000      /* End of used area in RAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE       128         /* num bytes initial data   */
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon*/
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc*/
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon*/
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc*/
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
  *----------------------------------------------------------------------*/
 #define CONFIG_SDRAM_BANK0     1       /* init onboard DDR SDRAM bank 0*/
 #define CONFIG_SDRAM_ECC               /* enable ECC support           */
-#define CFG_SDRAM_TABLE        { \
+#define CONFIG_SYS_SDRAM_TABLE { \
                {(256 << 20), 13, 0x000C4001}, /* 256MB mode 3, 13x10(4)*/ \
                {(64 << 20),  12, 0x00082001}} /* 64MB mode 2, 12x9(4)  */
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_BAUDRATE_TABLE                                             \
+#define CONFIG_SYS_BAUDRATE_TABLE                                              \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,               \
                        57600, 115200, 230400, 460800, 921600 }
 
@@ -92,9 +92,9 @@
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs      */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs      */
 
 /*-----------------------------------------------------------------------
  * I2C RTC
 /*-----------------------------------------------------------------------
  * I2C EEPROM (PCF8594C) for environment
  *----------------------------------------------------------------------*/
-#define CFG_I2C_EEPROM_ADDR    0x54    /* EEPROM PCF8594C              */
-#define CFG_I2C_EEPROM_ADDR_LEN 1      /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x54    /* EEPROM PCF8594C              */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 /* mask of address bits that overflow into the "EEPROM chip address"   */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
-#define CFG_EEPROM_PAGE_WRITE_BITS 3   /* The Philips PCF8594C has     */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3    /* The Philips PCF8594C has     */
                                        /* 8 byte page write mode using */
                                        /* last 3 bits of the address   */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 40   /* and takes up to 40 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  40   /* and takes up to 40 msec */
 
 /*-----------------------------------------------------------------------
  * Default configuration (environment varibles...)
 #define CONFIG_BAUDRATE                115200
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0x1c    /* PHY address                  */
 #define CONFIG_HAS_ETH1
 #define CONFIG_PHY1_ADDR       0x1d    /* EMAC1 PHY address            */
 #define CONFIG_NET_MULTI       1
-#define CFG_RX_ETH_BUFFER      32      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       32      /* Number of ethernet rx buffers & descriptors */
 
 #define CONFIG_NETCONSOLE              /* include NetConsole support   */
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
 #define CONFIG_PCI                                 /* include pci support              */
 #define CONFIG_PCI_PNP                         /* do pci plug-and-play         */
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT                /* let board init pci target    */
+#define CONFIG_SYS_PCI_TARGET_INIT                 /* let board init pci target    */
 
 #define CONFIG_DISABLE_PISE_TEST       /* disable PISE test (PCIX only)*/
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
-#define CFG_FLASH0             0xFF800000
-#define CFG_FLASH1             0xFF000000
-#define CFG_FLASH2             0xFE800000
-#define CFG_FLASH3             0xFE000000
-#define CFG_USB                        0xF0000000
+#define CONFIG_SYS_FLASH0              0xFF800000
+#define CONFIG_SYS_FLASH1              0xFF000000
+#define CONFIG_SYS_FLASH2              0xFE800000
+#define CONFIG_SYS_FLASH3              0xFE000000
+#define CONFIG_SYS_USB                 0xF0000000
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x03050200
-#define CFG_EBC_PB0CR          (CFG_FLASH0 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x03050200
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH0 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (Flash Bank 1, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB1AP          0x03050200
-#define CFG_EBC_PB1CR          (CFG_FLASH1 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x03050200
+#define CONFIG_SYS_EBC_PB1CR           (CONFIG_SYS_FLASH1 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (Flash Bank 2, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB2AP          0x03050200
-#define CFG_EBC_PB2CR          (CFG_FLASH2 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB2AP           0x03050200
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_FLASH2 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 3 (Flash Bank 3, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB3AP          0x03050200
-#define CFG_EBC_PB3CR          (CFG_FLASH3 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB3AP           0x03050200
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_FLASH3 | 0x7A000) /* BAS=0xFF8,BS=8MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 7 (USB controller) initialization                               */
-#define CFG_EBC_PB7AP          0x02015000
-#define CFG_EBC_PB7CR          (CFG_USB | 0xFE000) /* BAS=0xF00,BS=128MB,BU=R/W,BW=16bit*/
+#define CONFIG_SYS_EBC_PB7AP           0x02015000
+#define CONFIG_SYS_EBC_PB7CR           (CONFIG_SYS_USB | 0xFE000) /* BAS=0xF00,BS=128MB,BU=R/W,BW=16bit*/
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH3, CFG_FLASH2, CFG_FLASH1, CFG_FLASH0 }
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH3, CONFIG_SYS_FLASH2, CONFIG_SYS_FLASH1, CONFIG_SYS_FLASH0 }
 
-#define CFG_MAX_FLASH_BANKS    4       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     4       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash        */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash        */
 
 #define CONFIG_ENV_IS_IN_FLASH     1   /* use FLASH for environment vars       */
 
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index 480a59f05bbed6d3d17e0cb68f79d946b39626fa..7c7bebac3b1d2f3252c99d8c129d64bc8c5a7e96 100644 (file)
@@ -53,7 +53,7 @@
 #define CONFIG_BAUDRATE                115200
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define        CONFIG_TIMESTAMP                /* Print image info with timestamp */
 #undef CONFIG_BOOTARGS
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory      */
-#define        CFG_PROMPT              "Pb1x00 # "     /* Monitor Command Prompt    */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size   */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args*/
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory      */
+#define        CONFIG_SYS_PROMPT               "Pb1x00 # "     /* Monitor Command Prompt    */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size   */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args*/
 
-#define CFG_MALLOC_LEN         128*1024
+#define CONFIG_SYS_MALLOC_LEN          128*1024
 
-#define CFG_BOOTPARAMS_LEN     128*1024
+#define CONFIG_SYS_BOOTPARAMS_LEN      128*1024
 
-#define CFG_MIPS_TIMER_FREQ    396000000
+#define CONFIG_SYS_MIPS_TIMER_FREQ     396000000
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_SDRAM_BASE         0x80000000     /* Cached addr */
+#define CONFIG_SYS_SDRAM_BASE          0x80000000     /* Cached addr */
 
-#define        CFG_LOAD_ADDR           0x81000000     /* default load address  */
+#define        CONFIG_SYS_LOAD_ADDR            0x81000000     /* default load address  */
 
-#define CFG_MEMTEST_START      0x80100000
-#undef CFG_MEMTEST_START
-#define CFG_MEMTEST_START       0x80200000
-#define CFG_MEMTEST_END                0x83800000
+#define CONFIG_SYS_MEMTEST_START       0x80100000
+#undef CONFIG_SYS_MEMTEST_START
+#define CONFIG_SYS_MEMTEST_START       0x80200000
+#define CONFIG_SYS_MEMTEST_END         0x83800000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
 
 #define PHYS_FLASH_1           0xbec00000 /* Flash Bank #1 */
 #define PHYS_FLASH_2           0xbfc00000 /* Flash Bank #2 */
 
 /* The following #defines are needed to get flash environment right */
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#define        CFG_MONITOR_LEN         (192 << 10)
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)
 
-#define CFG_INIT_SP_OFFSET     0x4000000
+#define CONFIG_SYS_INIT_SP_OFFSET      0x4000000
 
 /* We boot from this flash, selected with dip switch */
-#define CFG_FLASH_BASE         PHYS_FLASH_2
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_2
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_NOWHERE   1
 
 
 /*---ATA PCMCIA ------------------------------------*/
 #if 0
-#define CFG_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
-#define CFG_PCMCIA_MEM_ADDR 0x20000000
+#define CONFIG_SYS_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
+#define CONFIG_SYS_PCMCIA_MEM_ADDR 0x20000000
 #define CONFIG_PCMCIA_SLOT_A
 
 #define CONFIG_ATAPI 1
 #define CONFIG_IDE_PCMCIA 1
 
 /* We only support one slot for now */
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR       CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET     8
+#define CONFIG_SYS_ATA_DATA_OFFSET     8
 
 /* Offset for normal register accesses  */
-#define CFG_ATA_REG_OFFSET      0
+#define CONFIG_SYS_ATA_REG_OFFSET      0
 
 /* Offset for alternate registers       */
-#define CFG_ATA_ALT_OFFSET      0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 #endif
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                16384
-#define CFG_ICACHE_SIZE                16384
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_DCACHE_SIZE         16384
+#define CONFIG_SYS_ICACHE_SIZE         16384
+#define CONFIG_SYS_CACHELINE_SIZE      32
 
 
 /*
index 66075d282497552623568589f3c27120a87684ea..6e2d9067c8d6243af4b615debde609f793b72859 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_MONITOR_LEN                (384 * 1024)    /* Reserve 384 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 * 1024)    /* Reserve 256 kB for malloc()  */
-#define CFG_MONITOR_BASE       (-CFG_MONITOR_LEN)
-#define CFG_SDRAM_BASE         0x00000000          /* _must_ be 0      */
-#define CFG_FLASH_BASE         0xfff00000          /* start of FLASH   */
-#define CFG_PCI_MEMBASE                0xa0000000          /* mapped pci memory*/
-#define CFG_PCI_MEMBASE1        CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2        CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3        CFG_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_MONITOR_LEN         (384 * 1024)    /* Reserve 384 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)    /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        (-CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_SDRAM_BASE          0x00000000          /* _must_ be 0      */
+#define CONFIG_SYS_FLASH_BASE          0xfff00000          /* start of FLASH   */
+#define CONFIG_SYS_PCI_MEMBASE         0xa0000000          /* mapped pci memory*/
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
 
 /*Don't change either of these*/
-#define CFG_PERIPHERAL_BASE     0xef600000         /* internal peripherals*/
-#define CFG_PCI_BASE           0xe0000000          /* internal PCI regs*/
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000          /* internal peripherals*/
+#define CONFIG_SYS_PCI_BASE            0xe0000000          /* internal PCI regs*/
 /*Don't change either of these*/
 
-#define CFG_USB_DEVICE          0x50000000
-#define CFG_BOOT_BASE_ADDR      0xf0000000
+#define CONFIG_SYS_USB_DEVICE          0x50000000
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xf0000000
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in SDRAM)
  *----------------------------------------------------------------------*/
-#define CFG_INIT_RAM_DCACHE    1               /* d-cache as init ram  */
-#define CFG_INIT_RAM_ADDR      0x70000000              /* DCache       */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256                     /* num bytes initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_DCACHE     1               /* d-cache as init ram  */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x70000000              /* DCache       */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256                     /* num bytes initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK            /* no external clk used         */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* no external clk used         */
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI     1
 /*define this if you want console on UART1*/
 #undef CONFIG_UART1_CONSOLE
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
 
 /*-----------------------------------------------------------------------
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                0x2000  /* Total Size of Environment Sector     */
 
 #define CONFIG_ENV_OVERWRITE   1
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1           /* I2C with hardware support        */
 #undef CONFIG_SOFT_I2C                     /* I2C bit-banged           */
-#define CFG_I2C_SPEED          100000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    (0xa4>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa4>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 #define CONFIG_PREBOOT "echo;" \
        "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
 
 /* check U-Boot image with SHA1 sum */
 #define CONFIG_SHA1_CHECK_UB_IMG       1
-#define CONFIG_SHA1_START              CFG_MONITOR_BASE
-#define CONFIG_SHA1_LEN                        CFG_MONITOR_LEN
+#define CONFIG_SHA1_START              CONFIG_SYS_MONITOR_BASE
+#define CONFIG_SHA1_LEN                        CONFIG_SYS_MONITOR_LEN
 
 /*-----------------------------------------------------------------------
  * Definitions for status LED
 #define CONFIG_BOARD_SPECIFIC_LED      1
 
 #define STATUS_LED_BIT         0x08                    /* DIAG1 is on GPIO_PPC_1 */
-#define STATUS_LED_PERIOD      ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
+#define STATUS_LED_PERIOD      ((CONFIG_SYS_HZ / 2) / 5)       /* blink at 5 Hz */
 #define STATUS_LED_STATE       STATUS_LED_OFF
 #define STATUS_LED_BIT1                0x04                    /* DIAG2 is on GPIO_PPC_2 */
-#define STATUS_LED_PERIOD1     ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
+#define STATUS_LED_PERIOD1     ((CONFIG_SYS_HZ / 2) / 5)       /* blink at 5 Hz */
 #define STATUS_LED_STATE1      STATUS_LED_ON
 #define STATUS_LED_BIT2                0x02                    /* DIAG3 is on GPIO_PPC_3 */
-#define STATUS_LED_PERIOD2     ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
+#define STATUS_LED_PERIOD2     ((CONFIG_SYS_HZ / 2) / 5)       /* blink at 5 Hz */
 #define STATUS_LED_STATE2      STATUS_LED_OFF
 #define STATUS_LED_BIT3                0x01                    /* DIAG4 is on GPIO_PPC_4 */
-#define STATUS_LED_PERIOD3     ((CFG_HZ / 2) / 5)      /* blink at 5 Hz */
+#define STATUS_LED_PERIOD3     ((CONFIG_SYS_HZ / 2) / 5)       /* blink at 5 Hz */
 #define STATUS_LED_STATE3      STATUS_LED_OFF
 
 #define CONFIG_SHOW_BOOT_PROGRESS      1
 #define CONFIG_BAUDRATE                115200
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_NET_MULTI        1      /* required for netconsole      */
 #define CONFIG_PHY_ADDR                1       /* PHY address, See schematics  */
 #define CONFIG_PHY1_ADDR        2
 
-#define CFG_RX_ETH_BUFFER      32      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       32      /* Number of ethernet rx buffers & descriptors */
 
 #define CONFIG_NETCONSOLE              /* include NetConsole support   */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 #define CONFIG_LYNXKDI          1       /* support kdi files            */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI                     /* include pci support          */
 #undef  CONFIG_PCI_PNP                 /* do (not) pci plug-and-play   */
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE*/
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_ID       0xcafe /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe  /* Whatever */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
 #define FLASH_BASE0_PRELIM     0xFFF00000      /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0xFFF80000      /* FLASH bank #1        */
 
-#define CFG_FLASH              FLASH_BASE0_PRELIM
-#define CFG_SRAM               0xF1000000
-#define CFG_FPGA               0xF2000000
-#define CFG_CF1                        0xF0000000
-#define CFG_CF2                        0xF0100000
+#define CONFIG_SYS_FLASH               FLASH_BASE0_PRELIM
+#define CONFIG_SYS_SRAM                0xF1000000
+#define CONFIG_SYS_FPGA                0xF2000000
+#define CONFIG_SYS_CF1                 0xF0000000
+#define CONFIG_SYS_CF2                 0xF0100000
 
 /* Memory Bank 0 (Flash Bank 0, NOR-FLASH) initialization                      */
-#define CFG_EBC_PB0AP          0x02010000      /* TWT=4,OEN=1                  */
-#define CFG_EBC_PB0CR          (CFG_FLASH | 0x18000) /* BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB0AP           0x02010000      /* TWT=4,OEN=1                  */
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH | 0x18000) /* BS=1MB,BU=R/W,BW=8bit   */
 
 /* Memory Bank 1 (SRAM) initialization                                         */
-#define CFG_EBC_PB1AP          0x01810040      /* TWT=3,OEN=1,BEM=1            */
-#define CFG_EBC_PB1CR          (CFG_SRAM | 0x5A000) /* BS=4MB,BU=R/W,BW=16bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x01810040      /* TWT=3,OEN=1,BEM=1            */
+#define CONFIG_SYS_EBC_PB1CR           (CONFIG_SYS_SRAM | 0x5A000) /* BS=4MB,BU=R/W,BW=16bit   */
 
 /* Memory Bank 2 (FPGA) initialization                                         */
-#define CFG_EBC_PB2AP          0x01010440      /* TWT=2,OEN=1,TH=2,BEM=1       */
-#define CFG_EBC_PB2CR          (CFG_FPGA | 0x5A000) /* BS=4MB,BU=R/W,BW=16bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x01010440      /* TWT=2,OEN=1,TH=2,BEM=1       */
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_FPGA | 0x5A000) /* BS=4MB,BU=R/W,BW=16bit   */
 
 /* Memory Bank 3 (CompactFlash) initialization                                 */
-#define CFG_EBC_PB3AP          0x080BD400
-#define CFG_EBC_PB3CR          (CFG_CF1 | 0x1A000) /* BS=1MB,BU=R/W,BW=16bit   */
+#define CONFIG_SYS_EBC_PB3AP           0x080BD400
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_CF1 | 0x1A000) /* BS=1MB,BU=R/W,BW=16bit    */
 
 /* Memory Bank 4 (CompactFlash) initialization                                 */
-#define CFG_EBC_PB4AP          0x080BD400
-#define CFG_EBC_PB4CR          (CFG_CF2 | 0x1A000) /* BS=1MB,BU=R/W,BW=16bit   */
+#define CONFIG_SYS_EBC_PB4AP           0x080BD400
+#define CONFIG_SYS_EBC_PB4CR           (CONFIG_SYS_CF2 | 0x1A000) /* BS=1MB,BU=R/W,BW=16bit    */
 
 /*-----------------------------------------------------------------------
  * PPC440 GPIO Configuration
  */
-#define CFG_4xx_GPIO_TABLE { /*          Out                  GPIO     Alternate1      Alternate2   Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out                  GPIO     Alternate1      Alternate2   Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG},  /* GPIO0   EBC_ADDR(7)     DMA_REQ(2)      */ \
 #undef  CONFIG_IDE_8xx_DIRECT          /* Direct IDE    not supported  */
 #undef  CONFIG_IDE_LED                 /* LED   for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 2 drives per IDE bus    */
 
 #define CONFIG_IDE_PREINIT     1
 #define CONFIG_IDE_RESET       1
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_CF1
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_CF1
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    0
+#define CONFIG_SYS_ATA_DATA_OFFSET     0
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x0000)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x0000)
 
 #endif /* __CONFIG_H */
index 664a885fff60330825bf485c610cf7072530f107..921451927b3430da98cb76f86f202bfce86a80e3 100644 (file)
@@ -61,7 +61,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
@@ -75,8 +75,8 @@
 #define        CONFIG_SPI_X                    /* 16 bit EEPROM addressing     */
 
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 
 /* ----------------------------------------------------------------
@@ -87,7 +87,7 @@
  * far enough from the start of the data area (as well as from the
  * stack pointer).
  * ---------------------------------------------------------------- */
-#define CFG_SPI_INIT_OFFSET            0xB00
+#define CONFIG_SYS_SPI_INIT_OFFSET             0xB00
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x00F00000      /* 1 ... 15MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00F00000      /* 1 ... 15MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x00100000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x00100000      /* default load address */
 
-#define        CFG_PIO_MODE            0       /* IDE interface in PIO Mode 0  */
+#define        CONFIG_SYS_PIO_MODE             0       /* IDE interface in PIO Mode 0  */
 
 /* Ethernet hardware configuration done using port pins */
-#define CFG_PB_ETH_RESET       0x00000020              /* PB 26        */
+#define CONFIG_SYS_PB_ETH_RESET        0x00000020              /* PB 26        */
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_PA_ETH_MDDIS       0x4000                  /* PA  1        */
-#define CFG_PB_ETH_POWERDOWN   0x00000800              /* PB 20        */
-#define CFG_PB_ETH_CFG1                0x00000400              /* PB 21        */
-#define CFG_PB_ETH_CFG2                0x00000200              /* PB 22        */
-#define CFG_PB_ETH_CFG3                0x00000100              /* PB 23        */
+#define CONFIG_SYS_PA_ETH_MDDIS        0x4000                  /* PA  1        */
+#define CONFIG_SYS_PB_ETH_POWERDOWN    0x00000800              /* PB 20        */
+#define CONFIG_SYS_PB_ETH_CFG1         0x00000400              /* PB 21        */
+#define CONFIG_SYS_PB_ETH_CFG2         0x00000200              /* PB 22        */
+#define CONFIG_SYS_PB_ETH_CFG3         0x00000100              /* PB 23        */
 #else /* XXX */
-#define CFG_PB_ETH_MDDIS       0x00000010              /* PB 27        */
-#define CFG_PB_ETH_POWERDOWN   0x00000100              /* PB 23        */
-#define CFG_PB_ETH_CFG1                0x00000200              /* PB 22        */
-#define CFG_PB_ETH_CFG2                0x00000400              /* PB 21        */
-#define CFG_PB_ETH_CFG3                0x00000800              /* PB 20        */
+#define CONFIG_SYS_PB_ETH_MDDIS        0x00000010              /* PB 27        */
+#define CONFIG_SYS_PB_ETH_POWERDOWN    0x00000100              /* PB 23        */
+#define CONFIG_SYS_PB_ETH_CFG1         0x00000200              /* PB 22        */
+#define CONFIG_SYS_PB_ETH_CFG2         0x00000400              /* PB 21        */
+#define CONFIG_SYS_PB_ETH_CFG3         0x00000800              /* PB 20        */
 #endif /* XXX */
 
 /* Ethernet settings:
  * MDIO enabled, autonegotiation, 10/100Mbps, half/full duplex
  */
-#define CFG_ETH_MDDIS_VALUE    0
-#define CFG_ETH_CFG1_VALUE     1
-#define CFG_ETH_CFG2_VALUE     1
-#define CFG_ETH_CFG3_VALUE     1
+#define CONFIG_SYS_ETH_MDDIS_VALUE     0
+#define CONFIG_SYS_ETH_CFG1_VALUE      1
+#define CONFIG_SYS_ETH_CFG2_VALUE      1
+#define CONFIG_SYS_ETH_CFG3_VALUE      1
 
 /* PUMA configuration */
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_PB_PUMA_PROG       0x00000010              /* PB 27        */
+#define CONFIG_SYS_PB_PUMA_PROG        0x00000010              /* PB 27        */
 #else /* XXX */
-#define CFG_PA_PUMA_PROG       0x4000                  /* PA  1        */
+#define CONFIG_SYS_PA_PUMA_PROG        0x4000                  /* PA  1        */
 #endif /* XXX */
-#define CFG_PC_PUMA_DONE       0x0008                  /* PC 12        */
-#define CFG_PC_PUMA_INIT       0x0004                  /* PC 13        */
+#define CONFIG_SYS_PC_PUMA_DONE        0x0008                  /* PC 12        */
+#define CONFIG_SYS_PC_PUMA_INIT        0x0004                  /* PC 13        */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFE000000
+#define CONFIG_SYS_IMMR                0xFE000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Address accessed to reset the board - must not be mapped/assigned
  */
-#define        CFG_RESET_ADDRESS       0xFEFFFFFF
+#define        CONFIG_SYS_RESET_ADDRESS        0xFEFFFFFF
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
 /* this is an ugly hack needed because of the silly non-constant address map */
-#define CFG_FLASH_BASE         (0-flash_info[0].size-flash_info[1].size)
+#define CONFIG_SYS_FLASH_BASE          (0-flash_info[0].size-flash_info[1].size)
 
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     160     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      160     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   180000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    180000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
 #if 0
 /* Start port with environment in flash; switch to SPI EEPROM later */
 #else
 /* Final version: environment in EEPROM */
 #define CONFIG_ENV_IS_IN_EEPROM        1
-#define CFG_I2C_EEPROM_ADDR    0
-#define CFG_I2C_EEPROM_ADDR_LEN        2
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 #define CONFIG_ENV_OFFSET              1024
 #define CONFIG_ENV_SIZE                1024
 #endif
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control                           11-9
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * Asynchronous external master enable.
  */
 /* => 0x70600200 */
-#define CFG_SIUMCR     (SIUMCR_EARP7 | SIUMCR_DBGC11 | SIUMCR_AEME)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_EARP7 | SIUMCR_DBGC11 | SIUMCR_AEME)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit, set PLL multiplication factor !
  */
 /* 0x00004080 */
-#define        CFG_PLPRCR_MF   0       /* (0+1) * 50 = 50 MHz Clock */
-#define CFG_PLPRCR                                                     \
-               (       (CFG_PLPRCR_MF << PLPRCR_MF_SHIFT) |            \
+#define        CONFIG_SYS_PLPRCR_MF    0       /* (0+1) * 50 = 50 MHz Clock */
+#define CONFIG_SYS_PLPRCR                                                      \
+               (       (CONFIG_SYS_PLPRCR_MF << PLPRCR_MF_SHIFT) |             \
                        PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST |    \
                        /*PLPRCR_CSRC|*/ PLPRCR_LPM_NORMAL |            \
                        PLPRCR_CSR    /*| PLPRCR_LOLRE|PLPRCR_FIOPD*/   \
                )
 
-#define        CONFIG_8xx_GCLK_FREQ    ((CFG_PLPRCR_MF+1)*50000000)
+#define        CONFIG_8xx_GCLK_FREQ    ((CONFIG_SYS_PLPRCR_MF+1)*50000000)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF11
 /* 0x01800000 */
-#define CFG_SCCR       (SCCR_COM00     | /*SCCR_TBS|*/         \
+#define CONFIG_SYS_SCCR        (SCCR_COM00     | /*SCCR_TBS|*/         \
                         SCCR_RTDIV     |   SCCR_RTSEL    |     \
                         /*SCCR_CRQEN|*/  /*SCCR_PRQEN|*/       \
                         SCCR_EBDF00 |   SCCR_DFSYNC00 |        \
  * Don't expect the "date" command to work without a 32kHz clock input!
  */
 /* 0x00C3 => 0x0003 */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration Register               19-4
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR 0x0000
+#define CONFIG_SYS_RCCR 0x0000
 
 /*-----------------------------------------------------------------------
  * RMDS - RISC Microcode Development Support Control Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMDS 0
+#define CONFIG_SYS_RMDS 0
 
 /*-----------------------------------------------------------------------
  *
  * Interrupt Levels
  *-----------------------------------------------------------------------
  */
-#define CFG_CPM_INTERRUPT      13      /* SIU_LEVEL6   */
+#define CONFIG_SYS_CPM_INTERRUPT       13      /* SIU_LEVEL6   */
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * used to re-map FLASH: restrict access enough but not too much to
  * meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0xFF800000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF800000      /* OR addr mask */
 
 /* FLASH timing: CSNT = 0, ACS = 00, SCY = 8, EHTR = 1                 */
-#define CFG_OR_TIMING_FLASH    (OR_SCY_8_CLK | OR_EHTR)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_SCY_8_CLK | OR_EHTR)
 
-#define CFG_OR0_REMAP  ( CFG_REMAP_OR_AM | OR_ACS_DIV1 | OR_BI | \
-                               CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | OR_ACS_DIV1 | OR_BI | \
-                               CFG_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_REMAP   ( CONFIG_SYS_REMAP_OR_AM | OR_ACS_DIV1 | OR_BI | \
+                               CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | OR_ACS_DIV1 | OR_BI | \
+                               CONFIG_SYS_OR_TIMING_FLASH)
 /* 16 bit, bank valid */
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_OR6_REMAP  CFG_OR0_REMAP
-#define CFG_OR6_PRELIM CFG_OR0_PRELIM
-#define CFG_BR6_PRELIM ((FLASH_BASE6_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR6_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR6_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR6_PRELIM  ((FLASH_BASE6_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 #else /* XXX */
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 #endif /* XXX */
 
 /*
 #define SDRAM_MAX_SIZE         0x04000000      /* max 64 MB SDRAM */
 
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_OR5_PRELIM (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
-#define CFG_BR5_PRELIM ((SDRAM_BASE5_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR5_PRELIM  (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
+#define CONFIG_SYS_BR5_PRELIM  ((SDRAM_BASE5_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else /* XXX */
-#define CFG_OR2_PRELIM (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (SDRAM_PRELIM_OR_AM | SDRAM_TIMING )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #endif /* XXX */
 
 /*
 #define CAN_CTRLR_TIMING       (OR_BI | OR_SCY_8_CLK | OR_SETA | OR_EHTR)
 
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_BR4_PRELIM         ((CAN_CTRLR_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
-#define CFG_OR4_PRELIM         (CAN_CTRLR_OR_AM | CAN_CTRLR_TIMING)
+#define CONFIG_SYS_BR4_PRELIM          ((CAN_CTRLR_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR4_PRELIM          (CAN_CTRLR_OR_AM | CAN_CTRLR_TIMING)
 #else /* XXX */
-#define CFG_BR3_PRELIM         ((CAN_CTRLR_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
-#define CFG_OR3_PRELIM         (CAN_CTRLR_OR_AM | CAN_CTRLR_TIMING)
+#define CONFIG_SYS_BR3_PRELIM          ((CAN_CTRLR_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR3_PRELIM          (CAN_CTRLR_OR_AM | CAN_CTRLR_TIMING)
 #endif /* XXX */
 
 /*
 #define PUMA_CONF_OR_READ      (PUMA_CONF_OR_AM | PUMA_CONF_READ_TIMING)
 
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_BR3_PRELIM         PUMA_CONF_BR_READ
-#define CFG_OR3_PRELIM         PUMA_CONF_OR_READ
+#define CONFIG_SYS_BR3_PRELIM          PUMA_CONF_BR_READ
+#define CONFIG_SYS_OR3_PRELIM          PUMA_CONF_OR_READ
 #else /* XXX */
-#define CFG_BR4_PRELIM         PUMA_CONF_BR_READ
-#define CFG_OR4_PRELIM         PUMA_CONF_OR_READ
+#define CONFIG_SYS_BR4_PRELIM          PUMA_CONF_BR_READ
+#define CONFIG_SYS_OR4_PRELIM          PUMA_CONF_OR_READ
 #endif /* XXX */
 
 /*
 #define PUMA_SMA8_TIMING       (OR_BI | OR_SCY_0_CLK | OR_EHTR)
 
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_BR2_PRELIM         ((PUMA_SMA8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
-#define CFG_OR2_PRELIM         (PUMA_SMA8_OR_AM | PUMA_SMA8_TIMING | OR_SETA)
+#define CONFIG_SYS_BR2_PRELIM          ((PUMA_SMA8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR2_PRELIM          (PUMA_SMA8_OR_AM | PUMA_SMA8_TIMING | OR_SETA)
 #else /* XXX */
-#define CFG_BR5_PRELIM         ((PUMA_SMA8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
-#define CFG_OR5_PRELIM         (PUMA_SMA8_OR_AM | PUMA_SMA8_TIMING | OR_SETA)
+#define CONFIG_SYS_BR5_PRELIM          ((PUMA_SMA8_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_OR5_PRELIM          (PUMA_SMA8_OR_AM | PUMA_SMA8_TIMING | OR_SETA)
 #endif /* XXX */
 
 /*
 #define PUMA_SMA16_TIMING      (OR_BI | OR_SCY_0_CLK | OR_EHTR)
 
 #if PCU_E_WITH_SWAPPED_CS /* XXX */
-#define CFG_BR1_PRELIM         ((PUMA_SMA16_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
-#define CFG_OR1_PRELIM         (PUMA_SMA16_OR_AM | PUMA_SMA16_TIMING | OR_SETA)
+#define CONFIG_SYS_BR1_PRELIM          ((PUMA_SMA16_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR1_PRELIM          (PUMA_SMA16_OR_AM | PUMA_SMA16_TIMING | OR_SETA)
 #else /* XXX */
-#define CFG_BR6_PRELIM         ((PUMA_SMA16_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
-#define CFG_OR6_PRELIM         (PUMA_SMA16_OR_AM | PUMA_SMA16_TIMING | OR_SETA)
+#define CONFIG_SYS_BR6_PRELIM          ((PUMA_SMA16_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR6_PRELIM          (PUMA_SMA16_OR_AM | PUMA_SMA16_TIMING | OR_SETA)
 #endif /* XXX */
 
 /*
 #define PUMA_FLASH_OR_AM       0xFE000000      /* 32 MB */
 #define PUMA_FLASH_TIMING      (OR_BI | OR_SCY_0_CLK | OR_EHTR)
 
-#define CFG_BR7_PRELIM         ((PUMA_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
-#define CFG_OR7_PRELIM         (PUMA_FLASH_OR_AM | PUMA_FLASH_TIMING | OR_SETA)
+#define CONFIG_SYS_BR7_PRELIM          ((PUMA_FLASH_BASE & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR7_PRELIM          (PUMA_FLASH_OR_AM | PUMA_FLASH_TIMING | OR_SETA)
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MPTPR      0x0200
+#define CONFIG_SYS_MPTPR       0x0200
 
 /*
  * MAMR settings for SDRAM
  * 0x30904114 = - " - | Periodic Timer A Enable, MAMR_TLFB_4X
  */
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   0x30    /* = 48 */
+#define CONFIG_SYS_MAMR_PTA    0x30    /* = 48 */
 
-#define CFG_MAMR       ( (CFG_MAMR_PTA << MAMR_PTA_SHIFT) | \
+#define CONFIG_SYS_MAMR        ( (CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT) | \
                          MAMR_AMA_TYPE_1       | \
                          MAMR_G0CLA_A10        | \
                          MAMR_RLFA_1X          | \
index 856917e7b1c53cc6d6e64ed4c125fe2175998530..8b7890e2c6b2e8b9bf8fd6d2d912d1d4b2ee37f4 100644 (file)
@@ -45,7 +45,7 @@
 #define CONFIG_HAS_ETH1
 #define CONFIG_PHY1_ADDR       18      /* NPE1 PHY address             */
 #define CONFIG_MII             1       /* MII PHY management           */
-#define CFG_RX_ETH_BUFFER      16      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* Number of ethernet rx buffers & descriptors */
 
 /*
  * Misc configuration options
@@ -53,7 +53,7 @@
 #define CONFIG_USE_IRQ          1      /* we need IRQ stuff for timer  */
 
 #define CONFIG_BOOTCOUNT_LIMIT         /* support for bootcount limit  */
-#define CFG_BOOTCOUNT_ADDR     0x60003000 /* inside qmrg sram          */
+#define CONFIG_SYS_BOOTCOUNT_ADDR      0x60003000 /* inside qmrg sram          */
 
 #define CONFIG_CMDLINE_TAG     1       /* enable passing of ATAGs      */
 #define CONFIG_SETUP_MEMORY_TAGS 1
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (1 << 20)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (1 << 20)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 
 #define CONFIG_BAUDRATE         115200
-#define CFG_IXP425_CONSOLE     IXP425_UART1   /* we use UART1 for console */
+#define CONFIG_SYS_IXP425_CONSOLE      IXP425_UART1   /* we use UART1 for console */
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                            /* undef to save memory         */
-#define CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
-#define CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE            CFG_CBSIZE      /* Boot Argument Buffer Size    */
-
-#define CFG_MEMTEST_START       0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END         0x00800000      /* 4 ... 8 MB in DRAM   */
-#define CFG_LOAD_ADDR           0x00010000      /* default load address */
-
-#undef  CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
-#define CFG_HZ                 1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE      /* Boot Argument Buffer Size    */
+
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_LOAD_ADDR           0x00010000      /* default load address */
+
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#define CONFIG_SYS_HZ                  1000            /* decrementer freq: 1 ms ticks */
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Stack sizes
 #define PHYS_SDRAM_1            0x00000000 /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE       0x02000000 /* 32 MB */
 
-#define CFG_FLASH_BASE          0x50000000
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
+#define CONFIG_SYS_FLASH_BASE          0x50000000
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
 #if defined(CONFIG_SCPU)
-#define CFG_MONITOR_LEN                (384 << 10)     /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (384 << 10)     /* Reserve 512 kB for Monitor   */
 #else
-#define CFG_MONITOR_LEN                (504 << 10)     /* Reserve 512 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (504 << 10)     /* Reserve 512 kB for Monitor   */
 #endif
 
 /*
  * Expansion bus settings
  */
 #if defined(CONFIG_SCPU)
-#define CFG_EXP_CS0            0x94d23C42      /* 8bit, max size               */
+#define CONFIG_SYS_EXP_CS0             0x94d23C42      /* 8bit, max size               */
 #else
-#define CFG_EXP_CS0            0x94913C43      /* 8bit, max size               */
+#define CONFIG_SYS_EXP_CS0             0x94913C43      /* 8bit, max size               */
 #endif
-#define CFG_EXP_CS1            0x85000043      /* 8bit, 512bytes               */
+#define CONFIG_SYS_EXP_CS1             0x85000043      /* 8bit, 512bytes               */
 
 /*
  * SDRAM settings
  */
-#define CFG_SDR_CONFIG         0x18
-#define CFG_SDR_MODE_CONFIG    0x1
-#define CFG_SDRAM_REFRESH_CNT  0x81a
+#define CONFIG_SYS_SDR_CONFIG          0x18
+#define CONFIG_SYS_SDR_MODE_CONFIG     0x1
+#define CONFIG_SYS_SDRAM_REFRESH_CNT   0x81a
 
 /*
  * FLASH and environment organization
  */
 #if defined(CONFIG_SCPU)
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT /* no byte writes on IXP4xx     */
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT /* no byte writes on IXP4xx     */
 #endif
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE          /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE           /* FLASH bank #0        */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1000    /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_WORD_SIZE    unsigned char   /* flash word size (width)      */
-#define CFG_FLASH_ADDR0                0x5555  /* 1st address for flash config cycles  */
-#define CFG_FLASH_ADDR1                0x2AAA  /* 2nd address for flash config cycles  */
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char   /* flash word size (width)      */
+#define CONFIG_SYS_FLASH_ADDR0         0x5555  /* 1st address for flash config cycles  */
+#define CONFIG_SYS_FLASH_ADDR1         0x2AAA  /* 2nd address for flash config cycles  */
 /*
  * The following defines are added for buggy IOP480 byte interface.
  * All other boards should use the standard values (CPCI405 etc.)
  */
-#define CFG_FLASH_READ0                0x0000  /* 0 is standard                        */
-#define CFG_FLASH_READ1                0x0001  /* 1 is standard                        */
-#define CFG_FLASH_READ2                0x0002  /* 2 is standard                        */
+#define CONFIG_SYS_FLASH_READ0         0x0000  /* 0 is standard                        */
+#define CONFIG_SYS_FLASH_READ1         0x0001  /* 1 is standard                        */
+#define CONFIG_SYS_FLASH_READ2         0x0002  /* 2 is standard                        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
 #if defined(CONFIG_SCPU)
 /* no redundant environment on SCPU */
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector          */
 /*
  * NAND-FLASH stuff
  */
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE          0x51000000      /* NAND FLASH Base Address      */
+#define CONFIG_SYS_NAND_BASE           0x51000000      /* NAND FLASH Base Address      */
 #endif
 
 /*
  */
 
 /* FPGA program pin configuration */
-#define CFG_GPIO_PRG           12              /* FPGA program pin (cpu output)*/
-#define CFG_GPIO_CLK           10              /* FPGA clk pin (cpu output)    */
-#define CFG_GPIO_DATA          14              /* FPGA data pin (cpu output)   */
-#define CFG_GPIO_INIT          13              /* FPGA init pin (cpu input)    */
-#define CFG_GPIO_DONE          11              /* FPGA done pin (cpu input)    */
+#define CONFIG_SYS_GPIO_PRG            12              /* FPGA program pin (cpu output)*/
+#define CONFIG_SYS_GPIO_CLK            10              /* FPGA clk pin (cpu output)    */
+#define CONFIG_SYS_GPIO_DATA           14              /* FPGA data pin (cpu output)   */
+#define CONFIG_SYS_GPIO_INIT           13              /* FPGA init pin (cpu input)    */
+#define CONFIG_SYS_GPIO_DONE           11              /* FPGA done pin (cpu input)    */
 
 /* other GPIO's */
-#define CFG_GPIO_RESTORE_INT   0
-#define CFG_GPIO_RESTART_INT   1
-#define CFG_GPIO_SYS_RUNNING   2
-#define CFG_GPIO_PCI_INTA      3
-#define CFG_GPIO_PCI_INTB      4
-#define CFG_GPIO_I2C_SCL       6
-#define CFG_GPIO_I2C_SDA       7
-#define CFG_GPIO_FPGA_RESET    9
-#define CFG_GPIO_CLK_33M       15
+#define CONFIG_SYS_GPIO_RESTORE_INT    0
+#define CONFIG_SYS_GPIO_RESTART_INT    1
+#define CONFIG_SYS_GPIO_SYS_RUNNING    2
+#define CONFIG_SYS_GPIO_PCI_INTA       3
+#define CONFIG_SYS_GPIO_PCI_INTB       4
+#define CONFIG_SYS_GPIO_I2C_SCL        6
+#define CONFIG_SYS_GPIO_I2C_SDA        7
+#define CONFIG_SYS_GPIO_FPGA_RESET     9
+#define CONFIG_SYS_GPIO_CLK_33M        15
 
 /*
  * I2C stuff
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          83000   /* 83 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           83000   /* 83 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 /*
  * Software (bit-bang) I2C driver configuration
  */
-#define PB_SCL         (1 << CFG_GPIO_I2C_SCL)
-#define PB_SDA         (1 << CFG_GPIO_I2C_SDA)
+#define PB_SCL         (1 << CONFIG_SYS_GPIO_I2C_SCL)
+#define PB_SDA         (1 << CONFIG_SYS_GPIO_I2C_SDA)
 
-#define I2C_INIT       GPIO_OUTPUT_ENABLE(CFG_GPIO_I2C_SCL)
-#define I2C_ACTIVE     GPIO_OUTPUT_ENABLE(CFG_GPIO_I2C_SDA)
-#define I2C_TRISTATE   GPIO_OUTPUT_DISABLE(CFG_GPIO_I2C_SDA)
+#define I2C_INIT       GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_I2C_SCL)
+#define I2C_ACTIVE     GPIO_OUTPUT_ENABLE(CONFIG_SYS_GPIO_I2C_SDA)
+#define I2C_TRISTATE   GPIO_OUTPUT_DISABLE(CONFIG_SYS_GPIO_I2C_SDA)
 #define I2C_READ       ((*IXP425_GPIO_GPINR & PB_SDA) != 0)
-#define I2C_SDA(bit)   if (bit) GPIO_OUTPUT_SET(CFG_GPIO_I2C_SDA);     \
-                       else     GPIO_OUTPUT_CLEAR(CFG_GPIO_I2C_SDA)
-#define I2C_SCL(bit)   if (bit) GPIO_OUTPUT_SET(CFG_GPIO_I2C_SCL);     \
-                       else     GPIO_OUTPUT_CLEAR(CFG_GPIO_I2C_SCL)
+#define I2C_SDA(bit)   if (bit) GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_I2C_SDA);      \
+                       else     GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_I2C_SDA)
+#define I2C_SCL(bit)   if (bit) GPIO_OUTPUT_SET(CONFIG_SYS_GPIO_I2C_SCL);      \
+                       else     GPIO_OUTPUT_CLEAR(CONFIG_SYS_GPIO_I2C_SCL)
 #define I2C_DELAY      udelay(3)       /* 1/4 I2C clock duration */
 
 /*
  */
 #if 0 /* test-only */
 #define CONFIG_RTC_DS1340      1
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 #else
 /* M41T11 Serial Access Timekeeper(R) SRAM */
 #define CONFIG_RTC_M41T11      1
-#define CFG_I2C_RTC_ADDR       0x68
-#define CFG_M41T11_BASE_YEAR   1900    /* play along with the linux driver */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
+#define CONFIG_SYS_M41T11_BASE_YEAR    1900    /* play along with the linux driver */
 #endif
 
 /*
  * Spartan3 FPGA configuration support
  */
-#define CFG_FPGA_MAX_SIZE      700*1024        /* 700kByte for XC3S500E        */
+#define CONFIG_SYS_FPGA_MAX_SIZE       700*1024        /* 700kByte for XC3S500E        */
 
-#define CFG_FPGA_PRG   (1 << CFG_GPIO_PRG)     /* FPGA program pin (cpu output)*/
-#define CFG_FPGA_CLK   (1 << CFG_GPIO_CLK)     /* FPGA clk pin (cpu output)    */
-#define CFG_FPGA_DATA  (1 << CFG_GPIO_DATA)    /* FPGA data pin (cpu output)   */
-#define CFG_FPGA_INIT  (1 << CFG_GPIO_INIT)    /* FPGA init pin (cpu input)    */
-#define CFG_FPGA_DONE  (1 << CFG_GPIO_DONE)    /* FPGA done pin (cpu input)    */
+#define CONFIG_SYS_FPGA_PRG    (1 << CONFIG_SYS_GPIO_PRG)      /* FPGA program pin (cpu output)*/
+#define CONFIG_SYS_FPGA_CLK    (1 << CONFIG_SYS_GPIO_CLK)      /* FPGA clk pin (cpu output)    */
+#define CONFIG_SYS_FPGA_DATA   (1 << CONFIG_SYS_GPIO_DATA)     /* FPGA data pin (cpu output)   */
+#define CONFIG_SYS_FPGA_INIT   (1 << CONFIG_SYS_GPIO_INIT)     /* FPGA init pin (cpu input)    */
+#define CONFIG_SYS_FPGA_DONE   (1 << CONFIG_SYS_GPIO_DONE)     /* FPGA done pin (cpu input)    */
 
 /*
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 
 #endif  /* __CONFIG_H */
index 66ad01f7eef1ac2c1baabd1779962ededd5b79bd..b2e2a1c4a039e0c0d3737264bead46079d0c999f 100644 (file)
@@ -44,7 +44,7 @@
 #define CONFIG_PF5200          1       /* ... on PF5200  board */
 #define CONFIG_MPC5200_DDR     1       /* ... use DDR RAM      */
 
-#define CFG_MPC5XXX_CLKIN      33000000        /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000        /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -59,7 +59,7 @@
 #else
 #define CONFIG_BAUDRATE                9600    /* ... at 115200 bps */
 #endif
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #ifdef CONFIG_MPC5200          /* MPC5100 PCI is not supported yet. */
 /*
@@ -84,7 +84,7 @@
 #if 0                          /* test-only !!! */
 #define CONFIG_NET_MULTI       1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8       /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8       /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 #endif
 #endif
 
 
 #if (TEXT_BASE == 0xFF000000)  /* Boot low with 16 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT16       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT16        1
 #endif
 #if (TEXT_BASE == 0xFF800000)  /* Boot low with  8 MB Flash */
-#   define CFG_LOWBOOT         1
-#   define CFG_LOWBOOT08       1
+#   define CONFIG_SYS_LOWBOOT          1
+#   define CONFIG_SYS_LOWBOOT08        1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK         /* define for 133MHz speed */
 #endif
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          86000   /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           86000   /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
-#define CFG_I2C_MULTI_EEPROMS          1
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
+#define CONFIG_SYS_I2C_MULTI_EEPROMS           1
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFE000000
-#define CFG_FLASH_SIZE         0x02000000
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00000000)
-#define CFG_MAX_FLASH_BANKS    1       /* max num of memory banks      */
-#define CFG_MAX_FLASH_SECT     512
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_SIZE          0x02000000
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00000000)
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of memory banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      512
 
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x01052444
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x01052444
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP           /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_VXWORKS_MAC_PTR    0x00000000      /* Pass Ethernet MAC to VxWorks */
+#define CONFIG_SYS_VXWORKS_MAC_PTR     0x00000000      /* Pass Ethernet MAC to VxWorks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x0004DD00
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x0004DD00
 
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS1_START          0xfd000000
-#define CFG_CS1_SIZE           0x00010000
-#define CFG_CS1_CFG            0x10101410
+#define CONFIG_SYS_CS1_START           0xfd000000
+#define CONFIG_SYS_CS1_SIZE            0x00010000
+#define CONFIG_SYS_CS1_CFG             0x10101410
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define        CONFIG_IDE_RESET        /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                               */
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 /*-----------------------------------------------------------------------
  * CPLD stuff
  */
-#define CFG_FPGA_XC95XL                1       /* using Xilinx XC95XL CPLD      */
-#define CFG_FPGA_MAX_SIZE      32*1024 /* 32kByte is enough for CPLD    */
+#define CONFIG_SYS_FPGA_XC95XL         1       /* using Xilinx XC95XL CPLD      */
+#define CONFIG_SYS_FPGA_MAX_SIZE       32*1024 /* 32kByte is enough for CPLD    */
 
 /* CPLD program pin configuration */
-#define CFG_FPGA_PRG           0x20000000      /* JTAG TMS pin (ppc output)           */
-#define CFG_FPGA_CLK           0x10000000      /* JTAG TCK pin (ppc output)           */
-#define CFG_FPGA_DATA          0x20000000      /* JTAG TDO->TDI data pin (ppc output) */
-#define CFG_FPGA_DONE          0x10000000      /* JTAG TDI->TDO pin (ppc input)       */
+#define CONFIG_SYS_FPGA_PRG            0x20000000      /* JTAG TMS pin (ppc output)           */
+#define CONFIG_SYS_FPGA_CLK            0x10000000      /* JTAG TCK pin (ppc output)           */
+#define CONFIG_SYS_FPGA_DATA           0x20000000      /* JTAG TDO->TDI data pin (ppc output) */
+#define CONFIG_SYS_FPGA_DONE           0x10000000      /* JTAG TDI->TDO pin (ppc input)       */
 
-#define JTAG_GPIO_ADDR_TMS     (CFG_MBAR + 0xB10)      /* JTAG TMS pin (GPS data out value reg.)      */
-#define JTAG_GPIO_ADDR_TCK     (CFG_MBAR + 0xC0C)      /* JTAG TCK pin (GPW data out value reg.)      */
-#define JTAG_GPIO_ADDR_TDI     (CFG_MBAR + 0xC0C)      /* JTAG TDO->TDI pin (GPW data out value reg.) */
-#define JTAG_GPIO_ADDR_TDO     (CFG_MBAR + 0xB14)      /* JTAG TDI->TDO pin (GPS data in value reg.)  */
+#define JTAG_GPIO_ADDR_TMS     (CONFIG_SYS_MBAR + 0xB10)       /* JTAG TMS pin (GPS data out value reg.)      */
+#define JTAG_GPIO_ADDR_TCK     (CONFIG_SYS_MBAR + 0xC0C)       /* JTAG TCK pin (GPW data out value reg.)      */
+#define JTAG_GPIO_ADDR_TDI     (CONFIG_SYS_MBAR + 0xC0C)       /* JTAG TDO->TDI pin (GPW data out value reg.) */
+#define JTAG_GPIO_ADDR_TDO     (CONFIG_SYS_MBAR + 0xB14)       /* JTAG TDI->TDO pin (GPS data in value reg.)  */
 
-#define JTAG_GPIO_ADDR_CFG     (CFG_MBAR + 0xB00)
+#define JTAG_GPIO_ADDR_CFG     (CONFIG_SYS_MBAR + 0xB00)
 #define JTAG_GPIO_CFG_SET      0x00000000
 #define JTAG_GPIO_CFG_RESET    0x00F00000
 
-#define JTAG_GPIO_ADDR_EN_TMS  (CFG_MBAR + 0xB04)
+#define JTAG_GPIO_ADDR_EN_TMS  (CONFIG_SYS_MBAR + 0xB04)
 #define JTAG_GPIO_TMS_EN_SET   0x20000000      /* Enable for GPIO */
 #define JTAG_GPIO_TMS_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TMS (CFG_MBAR + 0xB0C)
+#define JTAG_GPIO_ADDR_DDR_TMS (CONFIG_SYS_MBAR + 0xB0C)
 #define JTAG_GPIO_TMS_DDR_SET  0x20000000      /* Set as output   */
 #define JTAG_GPIO_TMS_DDR_RESET 0x00000000
 
-#define JTAG_GPIO_ADDR_EN_TCK  (CFG_MBAR + 0xC00)
+#define JTAG_GPIO_ADDR_EN_TCK  (CONFIG_SYS_MBAR + 0xC00)
 #define JTAG_GPIO_TCK_EN_SET   0x20000000      /* Enable for GPIO */
 #define JTAG_GPIO_TCK_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TCK (CFG_MBAR + 0xC08)
+#define JTAG_GPIO_ADDR_DDR_TCK (CONFIG_SYS_MBAR + 0xC08)
 #define JTAG_GPIO_TCK_DDR_SET  0x20000000      /* Set as output   */
 #define JTAG_GPIO_TCK_DDR_RESET 0x00000000
 
-#define JTAG_GPIO_ADDR_EN_TDI  (CFG_MBAR + 0xC00)
+#define JTAG_GPIO_ADDR_EN_TDI  (CONFIG_SYS_MBAR + 0xC00)
 #define JTAG_GPIO_TDI_EN_SET   0x10000000      /* Enable as GPIO  */
 #define JTAG_GPIO_TDI_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TDI (CFG_MBAR + 0xC08)
+#define JTAG_GPIO_ADDR_DDR_TDI (CONFIG_SYS_MBAR + 0xC08)
 #define JTAG_GPIO_TDI_DDR_SET  0x10000000      /* Set as output   */
 #define JTAG_GPIO_TDI_DDR_RESET 0x00000000
 
-#define JTAG_GPIO_ADDR_EN_TDO  (CFG_MBAR + 0xB04)
+#define JTAG_GPIO_ADDR_EN_TDO  (CONFIG_SYS_MBAR + 0xB04)
 #define JTAG_GPIO_TDO_EN_SET   0x10000000      /* Enable as GPIO  */
 #define JTAG_GPIO_TDO_EN_RESET 0x00000000
-#define JTAG_GPIO_ADDR_DDR_TDO (CFG_MBAR + 0xB0C)
+#define JTAG_GPIO_ADDR_DDR_TDO (CONFIG_SYS_MBAR + 0xB0C)
 #define JTAG_GPIO_TDO_DDR_SET  0x00000000
 #define JTAG_GPIO_TDO_DDR_RESET 0x10000000     /* Set as input    */
 
index 66e76e8aa52f95e432e8545753b530de48b56b26..14f8917a97aba0a298117f4141095e07ef248317 100644 (file)
@@ -45,8 +45,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "$ "            /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "$ "            /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0xa2000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa2000000      /* default load address */
 
-#define CFG_HZ                 3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x141           /* set core clock to 200/200/100 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141           /* set core clock to 200/200/100 MHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Stack sizes
 #define PHYS_FLASH_BANK_SIZE   0x02000000 /* 32 MB Banks */
 #define PHYS_FLASH_SECT_SIZE   0x00010000 /* 64 KB sectors (x2) */
 
-#define CFG_DRAM_BASE          PHYS_SDRAM_1
-#define CFG_DRAM_SIZE          PHYS_SDRAM_1_SIZE
+#define CONFIG_SYS_DRAM_BASE           PHYS_SDRAM_1
+#define CONFIG_SYS_DRAM_SIZE           PHYS_SDRAM_1_SIZE
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
 
 /*
  * GPIO settings
  */
-#define CFG_GPSR0_VAL          0x00000000  /* Don't set anything */
-#define CFG_GPSR1_VAL          0x00000080
-#define CFG_GPSR2_VAL          0x00000000
+#define CONFIG_SYS_GPSR0_VAL           0x00000000  /* Don't set anything */
+#define CONFIG_SYS_GPSR1_VAL           0x00000080
+#define CONFIG_SYS_GPSR2_VAL           0x00000000
 
-#define CFG_GPCR0_VAL          0x00000000  /* Don't clear anything */
-#define CFG_GPCR1_VAL          0x00000000
-#define CFG_GPCR2_VAL          0x00000000
+#define CONFIG_SYS_GPCR0_VAL           0x00000000  /* Don't clear anything */
+#define CONFIG_SYS_GPCR1_VAL           0x00000000
+#define CONFIG_SYS_GPCR2_VAL           0x00000000
 
-#define CFG_GPDR0_VAL          0x00000000
-#define CFG_GPDR1_VAL          0x000007C3
-#define CFG_GPDR2_VAL          0x00000000
+#define CONFIG_SYS_GPDR0_VAL           0x00000000
+#define CONFIG_SYS_GPDR1_VAL           0x000007C3
+#define CONFIG_SYS_GPDR2_VAL           0x00000000
 
 /* Edge detect registers (these are set by the kernel) */
-#define CFG_GRER0_VAL      0x00000000
-#define CFG_GRER1_VAL      0x00000000
-#define CFG_GRER2_VAL      0x00000000
-#define CFG_GFER0_VAL      0x00000000
-#define CFG_GFER1_VAL      0x00000000
-#define CFG_GFER2_VAL      0x00000000
-
-#define CFG_GAFR0_L_VAL                0x00000000
-#define CFG_GAFR0_U_VAL                0x00000000
-#define CFG_GAFR1_L_VAL                0x00008010  /* Use FF UART Send and Receive */
-#define CFG_GAFR1_U_VAL                0x00000000
-#define CFG_GAFR2_L_VAL                0x00000000
-#define CFG_GAFR2_U_VAL                0x00000000
-
-#define CFG_PSSR_VAL           0x20
-#define CFG_CCCR_VAL       0x00000141  /* 100 MHz memory, 200 MHz CPU  */
-#define CFG_CKEN_VAL       0x00000060  /* FFUART and STUART enabled    */
-#define CFG_ICMR_VAL       0x00000000  /* No interrupts enabled        */
+#define CONFIG_SYS_GRER0_VAL       0x00000000
+#define CONFIG_SYS_GRER1_VAL       0x00000000
+#define CONFIG_SYS_GRER2_VAL       0x00000000
+#define CONFIG_SYS_GFER0_VAL       0x00000000
+#define CONFIG_SYS_GFER1_VAL       0x00000000
+#define CONFIG_SYS_GFER2_VAL       0x00000000
+
+#define CONFIG_SYS_GAFR0_L_VAL         0x00000000
+#define CONFIG_SYS_GAFR0_U_VAL         0x00000000
+#define CONFIG_SYS_GAFR1_L_VAL         0x00008010  /* Use FF UART Send and Receive */
+#define CONFIG_SYS_GAFR1_U_VAL         0x00000000
+#define CONFIG_SYS_GAFR2_L_VAL         0x00000000
+#define CONFIG_SYS_GAFR2_U_VAL         0x00000000
+
+#define CONFIG_SYS_PSSR_VAL            0x20
+#define CONFIG_SYS_CCCR_VAL        0x00000141  /* 100 MHz memory, 200 MHz CPU  */
+#define CONFIG_SYS_CKEN_VAL        0x00000060  /* FFUART and STUART enabled    */
+#define CONFIG_SYS_ICMR_VAL        0x00000000  /* No interrupts enabled        */
 
 /*
  * Memory settings
  */
-#define CFG_MSC0_VAL           0x00007FF0 /* Not properly calculated - FIXME (DS) */
-#define CFG_MSC1_VAL           0x00000000
-#define CFG_MSC2_VAL           0x00000000
+#define CONFIG_SYS_MSC0_VAL            0x00007FF0 /* Not properly calculated - FIXME (DS) */
+#define CONFIG_SYS_MSC1_VAL            0x00000000
+#define CONFIG_SYS_MSC2_VAL            0x00000000
 
-#define CFG_MDCNFG_VAL         0x00000aC9 /* Memory timings for the SDRAM.
+#define CONFIG_SYS_MDCNFG_VAL          0x00000aC9 /* Memory timings for the SDRAM.
                                              tRP=2, CL=2, tRCD=2, tRAS=5, tRC=8 */
 
-#define CFG_MDREFR_VAL         0x00403018 /* Initial setting, individual       */
+#define CONFIG_SYS_MDREFR_VAL          0x00403018 /* Initial setting, individual       */
                                           /* bits set in lowlevel_init.S       */
-#define CFG_MDMRS_VAL          0x00000000
+#define CONFIG_SYS_MDMRS_VAL           0x00000000
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000000  /* Hangover from Lubbock.
+#define CONFIG_SYS_MECR_VAL            0x00000000  /* Hangover from Lubbock.
                                               Needs calculating. (DS/CHC) */
-#define CFG_MCMEM0_VAL         0x00010504
-#define CFG_MCMEM1_VAL         0x00010504
-#define CFG_MCATT0_VAL         0x00010504
-#define CFG_MCATT1_VAL         0x00010504
-#define CFG_MCIO0_VAL          0x00004715
-#define CFG_MCIO1_VAL          0x00004715
+#define CONFIG_SYS_MCMEM0_VAL          0x00010504
+#define CONFIG_SYS_MCMEM1_VAL          0x00010504
+#define CONFIG_SYS_MCATT0_VAL          0x00010504
+#define CONFIG_SYS_MCATT1_VAL          0x00010504
+#define CONFIG_SYS_MCIO0_VAL           0x00004715
+#define CONFIG_SYS_MCIO1_VAL           0x00004715
 
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
 /* FIXME */
-#define CFG_FLASH_ERASE_TOUT   (25*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (25*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* Flash protection */
-#define CFG_FLASH_PROTECTION   1
+#define CONFIG_SYS_FLASH_PROTECTION    1
 
 /* FIXME */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SECT_SIZE   0x20000
 
 /* Option added to get around byte ordering issues in the flash driver */
-#define CFG_LITTLE_ENDIAN      1
+#define CONFIG_SYS_LITTLE_ENDIAN       1
 
 #endif /* __CONFIG_H */
index fd05c7ef292f43476f97c3054d9f5fc4da380040..577ab8ef6f70abd2f2529b93532f0ae62e30cc67 100644 (file)
 /*
  * SDRAM config - see memory map details above.
  *
- * CFG_SDRAM_BASE              - Start address of SDRAM, this _must_ be zero!
- * CFG_SDRAM_SIZE              - Total size of contiguous SDRAM bank(s)
+ * CONFIG_SYS_SDRAM_BASE               - Start address of SDRAM, this _must_ be zero!
+ * CONFIG_SYS_SDRAM_SIZE               - Total size of contiguous SDRAM bank(s)
  */
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SDRAM_SIZE         0x04000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SDRAM_SIZE          0x04000000
 
 
 /*
  * Flash config - see memory map details above.
  *
- * CFG_FLASH_BASE              - Start address of flash memory
- * CFG_FLASH_SIZE              - Total size of contiguous flash mem
- * CFG_FLASH_ERASE_TOUT                - Erase timeout in ms
- * CFG_FLASH_WRITE_TOUT                - Write timeout in ms
- * CFG_MAX_FLASH_BANKS         - Number of banks of flash on board
- * CFG_MAX_FLASH_SECT          - Number of sectors in a bank
+ * CONFIG_SYS_FLASH_BASE               - Start address of flash memory
+ * CONFIG_SYS_FLASH_SIZE               - Total size of contiguous flash mem
+ * CONFIG_SYS_FLASH_ERASE_TOUT         - Erase timeout in ms
+ * CONFIG_SYS_FLASH_WRITE_TOUT         - Write timeout in ms
+ * CONFIG_SYS_MAX_FLASH_BANKS          - Number of banks of flash on board
+ * CONFIG_SYS_MAX_FLASH_SECT           - Number of sectors in a bank
  */
 
-#define CFG_FLASH_BASE         0xFFC00000
-#define CFG_FLASH_SIZE         0x00400000
-#define CFG_FLASH_ERASE_TOUT   250000
-#define CFG_FLASH_WRITE_TOUT   5000
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_MAX_FLASH_SECT     19
+#define CONFIG_SYS_FLASH_BASE          0xFFC00000
+#define CONFIG_SYS_FLASH_SIZE          0x00400000
+#define CONFIG_SYS_FLASH_ERASE_TOUT    250000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    5000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      19
 
 
 /*
  * Monitor config - see memory map details above
  *
- * CFG_MONITOR_BASE            - Base address of monitor code
- * CFG_MALLOC_LEN              - Size of malloc pool (128KB)
+ * CONFIG_SYS_MONITOR_BASE             - Base address of monitor code
+ * CONFIG_SYS_MALLOC_LEN               - Size of malloc pool (128KB)
  */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MALLOC_LEN         0x20000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MALLOC_LEN          0x20000
 
 
 /*
  * Command shell settings
  *
- * CFG_BARGSIZE                        - Boot Argument buffer size
- * CFG_BOOTMAPSZ               - Size of app's mapped RAM at boot (Linux=8MB)
- * CFG_CBSIZE                  - Console Buffer (input) size
- * CFG_LOAD_ADDR               - Default load address
- * CFG_LONGHELP                        - Provide more detailed help
- * CFG_MAXARGS                 - Number of args accepted by monitor commands
- * CFG_MEMTEST_START           - Start address of test to run on RAM
- * CFG_MEMTEST_END             - End address of RAM test
- * CFG_PBSIZE                  - Print Buffer (output) size
- * CFG_PROMPT                  - Prompt string
+ * CONFIG_SYS_BARGSIZE                 - Boot Argument buffer size
+ * CONFIG_SYS_BOOTMAPSZ                - Size of app's mapped RAM at boot (Linux=8MB)
+ * CONFIG_SYS_CBSIZE                   - Console Buffer (input) size
+ * CONFIG_SYS_LOAD_ADDR                - Default load address
+ * CONFIG_SYS_LONGHELP                 - Provide more detailed help
+ * CONFIG_SYS_MAXARGS                  - Number of args accepted by monitor commands
+ * CONFIG_SYS_MEMTEST_START            - Start address of test to run on RAM
+ * CONFIG_SYS_MEMTEST_END              - End address of RAM test
+ * CONFIG_SYS_PBSIZE                   - Print Buffer (output) size
+ * CONFIG_SYS_PROMPT                   - Prompt string
  */
 
-#define CFG_BARGSIZE           1024
-#define CFG_BOOTMAPSZ          0x800000
-#define CFG_CBSIZE             1024
-#define CFG_LOAD_ADDR          0x100000
-#define CFG_LONGHELP
-#define CFG_MAXARGS            16
-#define CFG_MEMTEST_START      0x00040000
-#define CFG_MEMTEST_END                0x00040100
-#define CFG_PBSIZE             1024
-#define CFG_PROMPT             "=> "
+#define CONFIG_SYS_BARGSIZE            1024
+#define CONFIG_SYS_BOOTMAPSZ           0x800000
+#define CONFIG_SYS_CBSIZE              1024
+#define CONFIG_SYS_LOAD_ADDR           0x100000
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_MEMTEST_START       0x00040000
+#define CONFIG_SYS_MEMTEST_END         0x00040100
+#define CONFIG_SYS_PBSIZE              1024
+#define CONFIG_SYS_PROMPT              "=> "
 
 
 /*
  * in the main system RAM just above the exception vectors. The contents are
  * copied to top of RAM by the init code.
  *
- * CFG_INIT_RAM_ADDR           - Address of Init RAM, above exception vect
- * CFG_INIT_RAM_END            - Size of Init RAM
- * CFG_GBL_DATA_SIZE           - Ammount of RAM to reserve for global data
- * CFG_GBL_DATA_OFFSET         - Start of global data, top of stack
+ * CONFIG_SYS_INIT_RAM_ADDR            - Address of Init RAM, above exception vect
+ * CONFIG_SYS_INIT_RAM_END             - Size of Init RAM
+ * CONFIG_SYS_GBL_DATA_SIZE            - Ammount of RAM to reserve for global data
+ * CONFIG_SYS_GBL_DATA_OFFSET          - Start of global data, top of stack
  */
 
-#define CFG_INIT_RAM_ADDR      (CFG_SDRAM_BASE + 0x4000)
-#define CFG_INIT_RAM_END       0x4000
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_SDRAM_BASE + 0x4000)
+#define CONFIG_SYS_INIT_RAM_END        0x4000
+#define CONFIG_SYS_GBL_DATA_SIZE       128
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 
 /*
  * BAT3 - PCI I/O including Flash Memory
  */
 
-#define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
-#define CFG_DBAT0L CFG_IBAT0L
-#define CFG_DBAT0U CFG_IBAT0U
+#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_64M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
 
-#define CFG_IBAT1L (0x70000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT1L (0x70000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT1U (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L (0x70000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT1L (0x70000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT1U (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT2L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT2L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT2L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT2U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
-#define CFG_IBAT3L (0xF0000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_DBAT3L (0xF0000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L (0xF0000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_DBAT3L (0xF0000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_DBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
 
 
 /*
  * Cache config
  *
- * CFG_CACHELINE_SIZE          - Size of a cache line (CPU specific)
- * CFG_L2                      - L2 cache enabled if defined
+ * CONFIG_SYS_CACHELINE_SIZE           - Size of a cache line (CPU specific)
+ * CONFIG_SYS_L2                       - L2 cache enabled if defined
  * L2_INIT                     - L2 cache init flags
  * L2_ENABLE                   - L2 cache enable flags
  */
 
-#define CFG_CACHELINE_SIZE     32
-#undef CFG_L2
+#define CONFIG_SYS_CACHELINE_SIZE      32
+#undef CONFIG_SYS_L2
 #define L2_INIT                        0
 #define L2_ENABLE              0
 
 /*
  * Clocks config
  *
- * CFG_BUS_HZ                  - Bus clock frequency in Hz
- * CFG_BUS_CLK                 - As above (?)
- * CFG_HZ                      - Decrementer freq in Hz
+ * CONFIG_SYS_BUS_HZ                   - Bus clock frequency in Hz
+ * CONFIG_SYS_BUS_CLK                  - As above (?)
+ * CONFIG_SYS_HZ                       - Decrementer freq in Hz
  */
 
-#define CFG_BUS_HZ             CONFIG_BUS_CLK
-#define CFG_BUS_CLK            CONFIG_BUS_CLK
-#define CFG_HZ                 1000
+#define CONFIG_SYS_BUS_HZ              CONFIG_BUS_CLK
+#define CONFIG_SYS_BUS_CLK             CONFIG_BUS_CLK
+#define CONFIG_SYS_HZ                  1000
 
 
 /*
  * Serial port config
  *
- * CFG_BAUDRATE_TABLE          - List of valid baud rates
- * CFG_NS16550                 - Include the NS16550 driver
- * CFG_NS16550_SERIAL          - Include the serial (wrapper) driver
- * CFG_NS16550_CLK             - Frequency of reference clock
- * CFG_NS16550_REG_SIZE                - 64-bit accesses to 8-bit port
- * CFG_NS16550_COM1            - Base address of 1st serial port
+ * CONFIG_SYS_BAUDRATE_TABLE           - List of valid baud rates
+ * CONFIG_SYS_NS16550                  - Include the NS16550 driver
+ * CONFIG_SYS_NS16550_SERIAL           - Include the serial (wrapper) driver
+ * CONFIG_SYS_NS16550_CLK              - Frequency of reference clock
+ * CONFIG_SYS_NS16550_REG_SIZE         - 64-bit accesses to 8-bit port
+ * CONFIG_SYS_NS16550_COM1             - Base address of 1st serial port
  */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_CLK                3686400
-#define CFG_NS16550_REG_SIZE   -8
-#define CFG_NS16550_COM1       0x7C000000
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_CLK         3686400
+#define CONFIG_SYS_NS16550_REG_SIZE    -8
+#define CONFIG_SYS_NS16550_COM1        0x7C000000
 
 
 /*
  * PCI Config - Address Map B (CHRP)
  */
 
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x40000000
-#define CFG_PCI_MEM_BUS                0x80000000
-#define CFG_PCI_MEM_PHYS       0x80000000
-#define CFG_PCI_MEM_SIZE       0x7D000000
-#define CFG_ISA_MEM_BUS                0x00000000
-#define CFG_ISA_MEM_PHYS       0xFD000000
-#define CFG_ISA_MEM_SIZE       0x01000000
-#define CFG_PCI_IO_BUS         0x00800000
-#define CFG_PCI_IO_PHYS                0xFE800000
-#define CFG_PCI_IO_SIZE                0x00400000
-#define CFG_ISA_IO_BUS         0x00000000
-#define CFG_ISA_IO_PHYS                0xFE000000
-#define CFG_ISA_IO_SIZE                0x00800000
-#define CFG_ISA_IO_BASE_ADDRESS CFG_ISA_IO_PHYS
-#define CFG_ISA_IO             CFG_ISA_IO_PHYS
-#define CFG_60X_PCI_IO_OFFSET  CFG_ISA_IO_PHYS
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x40000000
+#define CONFIG_SYS_PCI_MEM_BUS         0x80000000
+#define CONFIG_SYS_PCI_MEM_PHYS        0x80000000
+#define CONFIG_SYS_PCI_MEM_SIZE        0x7D000000
+#define CONFIG_SYS_ISA_MEM_BUS         0x00000000
+#define CONFIG_SYS_ISA_MEM_PHYS        0xFD000000
+#define CONFIG_SYS_ISA_MEM_SIZE        0x01000000
+#define CONFIG_SYS_PCI_IO_BUS          0x00800000
+#define CONFIG_SYS_PCI_IO_PHYS         0xFE800000
+#define CONFIG_SYS_PCI_IO_SIZE         0x00400000
+#define CONFIG_SYS_ISA_IO_BUS          0x00000000
+#define CONFIG_SYS_ISA_IO_PHYS         0xFE000000
+#define CONFIG_SYS_ISA_IO_SIZE         0x00800000
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_ISA_IO_PHYS
+#define CONFIG_SYS_ISA_IO              CONFIG_SYS_ISA_IO_PHYS
+#define CONFIG_SYS_60X_PCI_IO_OFFSET   CONFIG_SYS_ISA_IO_PHYS
 
 
 /*
  * Extra init functions
  *
- * CFG_BOARD_ASM_INIT          - Call assembly init code
+ * CONFIG_SYS_BOARD_ASM_INIT           - Call assembly init code
  */
 
-#define CFG_BOARD_ASM_INIT
+#define CONFIG_SYS_BOARD_ASM_INIT
 
 
 /*
index dd71862b414a8a0defa85de104ef0590eb9a66a0..ff7d61439bb6a04ebe69f522573f9a2d7065c4c1 100644 (file)
@@ -65,7 +65,7 @@
  * 0x6      0x1         66     133    266   Close  Close  Open
  * 0x6      0x2         66     133    300   Close  Open   Close
  */
-#define CFG_PPMC_MODCK_H 0x05
+#define CONFIG_SYS_PPMC_MODCK_H 0x05
 
 /* Define this if you want to boot from 0x00000100. If you don't define
  * this, you will need to program the bootloader to 0xfff00000, and
  * way to do that is to program the bootloader at both addresses.
  * It is suggested that you just let U-Boot live at 0x00000000.
  */
-#define CFG_PPMC_BOOT_LOW 1
+#define CONFIG_SYS_PPMC_BOOT_LOW 1
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/ppmc8260/config.mk
  * The main FLASH is whichever is connected to *CS0. U-Boot expects
  * this to be the SIMM.
  */
-#define CFG_FLASH0_BASE 0xFE000000
-#define CFG_FLASH0_SIZE 16
+#define CONFIG_SYS_FLASH0_BASE 0xFE000000
+#define CONFIG_SYS_FLASH0_SIZE 16
 
 /* What should be the base address of the first SDRAM DIMM and how big is
  * it (in Mbytes)?
 */
-#define CFG_SDRAM0_BASE 0x00000000
-#define CFG_SDRAM0_SIZE 128
+#define CONFIG_SYS_SDRAM0_BASE 0x00000000
+#define CONFIG_SYS_SDRAM0_SIZE 128
 
 /* What should be the base address of the second SDRAM DIMM and how big is
  * it (in Mbytes)?
 */
-#define CFG_SDRAM1_BASE 0x08000000
-#define CFG_SDRAM1_SIZE 128
+#define CONFIG_SYS_SDRAM1_BASE 0x08000000
+#define CONFIG_SYS_SDRAM1_SIZE 128
 
 /* What should be the base address of the on board SDRAM and how big is
  * it (in Mbytes)?
 */
-#define CFG_SDRAM2_BASE 0x38000000
-#define CFG_SDRAM2_SIZE 16
+#define CONFIG_SYS_SDRAM2_BASE 0x38000000
+#define CONFIG_SYS_SDRAM2_SIZE 16
 
 /* What should be the base address of the MAILBOX  and how big is it
  * (in Bytes)
- * The eeprom lives at CFG_MAILBOX_BASE + 0x80000000
+ * The eeprom lives at CONFIG_SYS_MAILBOX_BASE + 0x80000000
  */
-#define CFG_MAILBOX_BASE 0x32000000
-#define CFG_MAILBOX_SIZE 8192
+#define CONFIG_SYS_MAILBOX_BASE 0x32000000
+#define CONFIG_SYS_MAILBOX_SIZE 8192
 
 /* What is the base address of the I/O select lines and how big is it
  * (In Mbytes)?
  */
 
-#define CFG_IOSELECT_BASE 0xE0000000
-#define CFG_IOSELECT_SIZE 32
+#define CONFIG_SYS_IOSELECT_BASE 0xE0000000
+#define CONFIG_SYS_IOSELECT_SIZE 32
 
 
 /* What should be the base address of the LEDs and switch S0?
  * If you don't want them enabled, don't define this.
  */
-#define CFG_LED_BASE 0xF1000000
+#define CONFIG_SYS_LED_BASE 0xF1000000
 
 /*
  * PPMC8260 with 256 16 MB DIMM:
  *     0x0FF5 FFB0     Board Info Data
  *     0x0FF6 0000     Malloc Arena
  *          :              CONFIG_ENV_SECT_SIZE, 256k
- *          :              CFG_MALLOC_LEN,    128k
+ *          :              CONFIG_SYS_MALLOC_LEN,    128k
  *     0x0FFC 0000     RAM Copy of Monitor Code
- *          :              CFG_MONITOR_LEN,   256k
- *     0x0FFF FFFF     [End of RAM], CFG_SDRAM_SIZE - 1
+ *          :              CONFIG_SYS_MONITOR_LEN,   256k
+ *     0x0FFF FFFF     [End of RAM], CONFIG_SYS_SDRAM_SIZE - 1
  */
 
 
 
 
 /* undef this to save memory */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 /* Monitor Command Prompt */
-#define CFG_PROMPT             "=> "
+#define CONFIG_SYS_PROMPT              "=> "
 
 
 /*
 
 
 /* Where do the internal registers live? */
-#define CFG_IMMR               0xf0000000
+#define CONFIG_SYS_IMMR                0xf0000000
 
 /*****************************************************************************
  *
  * Miscellaneous configurable options
  */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE           1024    /* Console I/O Buffer Size           */
+#  define CONFIG_SYS_CBSIZE            1024    /* Console I/O Buffer Size           */
 #else
-#  define CFG_CBSIZE           256     /* Console I/O Buffer Size           */
+#  define CONFIG_SYS_CBSIZE            256     /* Console I/O Buffer Size           */
 #endif
 
 /* Print Buffer Size */
-#define CFG_PBSIZE       (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE        (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16)
 
-#define CFG_MAXARGS            32      /* max number of command args   */
+#define CONFIG_SYS_MAXARGS             32      /* max number of command args   */
 
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size     */
 
-#define CFG_LOAD_ADDR          0x140000   /* default load address */
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LOAD_ADDR           0x140000   /* default load address */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_MEMTEST_START      0x2000  /* memtest works from the end of */
+#define CONFIG_SYS_MEMTEST_START       0x2000  /* memtest works from the end of */
                                        /* the exception vector table */
                                        /* to the end of the DRAM  */
                                        /* less monitor and malloc area */
-#define CFG_STACK_USAGE                0x10000 /* Reserve 64k for the stack usage */
-#define CFG_MEM_END_USAGE      ( CFG_MONITOR_LEN \
-                               + CFG_MALLOC_LEN \
+#define CONFIG_SYS_STACK_USAGE         0x10000 /* Reserve 64k for the stack usage */
+#define CONFIG_SYS_MEM_END_USAGE       ( CONFIG_SYS_MONITOR_LEN \
+                               + CONFIG_SYS_MALLOC_LEN \
                                + CONFIG_ENV_SECT_SIZE \
-                               + CFG_STACK_USAGE )
+                               + CONFIG_SYS_STACK_USAGE )
 
-#define CFG_MEMTEST_END                ( CFG_SDRAM_SIZE * 1024 * 1024 \
-                               - CFG_MEM_END_USAGE )
+#define CONFIG_SYS_MEMTEST_END         ( CONFIG_SYS_SDRAM_SIZE * 1024 * 1024 \
+                               - CONFIG_SYS_MEM_END_USAGE )
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
  *  - RX clk is CLK11
  *  - TX clk is CLK12
  */
-#define CFG_CMXSCR_VALUE       (CMXSCR_RS1CS_CLK11  |\
+#define CONFIG_SYS_CMXSCR_VALUE       (CMXSCR_RS1CS_CLK11  |\
                                CMXSCR_TS1CS_CLK12)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
  * - Select bus for bd/buffers (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-#define CFG_CMXFCR_MASK                (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-#define CFG_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-#define CFG_CPMFCR_RAMTYPE     0
-#define CFG_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
+#define CONFIG_SYS_CMXFCR_MASK         (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+#define CONFIG_SYS_CMXFCR_VALUE        (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+#define CONFIG_SYS_CPMFCR_RAMTYPE      0
+#define CONFIG_SYS_FCC_PSMR            (FCC_PSMR_FDE | FCC_PSMR_LPB)
 #endif /* CONFIG_ETHER_INDEX */
 
-#define CFG_FLASH_BASE CFG_FLASH0_BASE
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
-#define CFG_SDRAM_BASE CFG_SDRAM0_BASE
-#define CFG_SDRAM_SIZE (CFG_SDRAM0_SIZE + CFG_SDRAM1_SIZE)
+#define CONFIG_SYS_FLASH_BASE  CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_FLASH_SIZE  CONFIG_SYS_FLASH0_SIZE
+#define CONFIG_SYS_SDRAM_BASE  CONFIG_SYS_SDRAM0_BASE
+#define CONFIG_SYS_SDRAM_SIZE  (CONFIG_SYS_SDRAM0_SIZE + CONFIG_SYS_SDRAM1_SIZE)
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  */
-#if defined(CFG_PPMC_BOOT_LOW)
-#  define  CFG_PPMC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
+#if defined(CONFIG_SYS_PPMC_BOOT_LOW)
+#  define  CONFIG_SYS_PPMC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
 #else
-#  define  CFG_PPMC_HRCW_BOOT_FLAGS  (0)
-#endif /* defined(CFG_PPMC_BOOT_LOW) */
+#  define  CONFIG_SYS_PPMC_HRCW_BOOT_FLAGS  (0)
+#endif /* defined(CONFIG_SYS_PPMC_BOOT_LOW) */
 
-/* get the HRCW ISB field from CFG_IMMR */
-#define CFG_PPMC_HRCW_IMMR     ( ((CFG_IMMR & 0x10000000) >> 10) | \
-                                 ((CFG_IMMR & 0x01000000) >>  7) | \
-                                 ((CFG_IMMR & 0x00100000) >>  4) )
+/* get the HRCW ISB field from CONFIG_SYS_IMMR */
+#define CONFIG_SYS_PPMC_HRCW_IMMR      ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) | \
+                                 ((CONFIG_SYS_IMMR & 0x01000000) >>  7) | \
+                                 ((CONFIG_SYS_IMMR & 0x00100000) >>  4) )
 
-#define CFG_HRCW_MASTER                ( HRCW_EBM                              | \
+#define CONFIG_SYS_HRCW_MASTER         ( HRCW_EBM                              | \
                                  HRCW_BPS11                            | \
                                  HRCW_L2CPC10                          | \
                                  HRCW_DPPC00                           | \
-                                 CFG_PPMC_HRCW_IMMR                    | \
+                                 CONFIG_SYS_PPMC_HRCW_IMMR                     | \
                                  HRCW_MMR00                            | \
                                  HRCW_LBPC00                           | \
                                  HRCW_APPC10                           | \
                                  HRCW_CS10PC00                         | \
-                                 (CFG_PPMC_MODCK_H & HRCW_MODCK_H1111) | \
-                                 CFG_PPMC_HRCW_BOOT_FLAGS )
+                                 (CONFIG_SYS_PPMC_MODCK_H & HRCW_MODCK_H1111) | \
+                                 CONFIG_SYS_PPMC_HRCW_BOOT_FLAGS )
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
- * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependent.
  */
-#define CFG_MONITOR_BASE       CFG_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH0_BASE
 
-#ifndef CFG_MONITOR_BASE
-#define CFG_MONITOR_BASE       0x0ff80000
+#ifndef CONFIG_SYS_MONITOR_BASE
+#define CONFIG_SYS_MONITOR_BASE        0x0ff80000
 #endif
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#  define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#  define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 374 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 374 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant              */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant              */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver                */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_FLASH_INCREMENT    0       /* there is only one bank               */
-#define CFG_FLASH_PROTECTION   1       /* use hardware protection              */
-#define CFG_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_FLASH_INCREMENT     0       /* there is only one bank               */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware protection              */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
 
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 
 #  define CONFIG_ENV_IS_IN_FLASH       1
 #  ifdef CONFIG_ENV_IN_OWN_SECT
-#    define CONFIG_ENV_ADDR    (CFG_MONITOR_BASE + 0x40000)
+#    define CONFIG_ENV_ADDR    (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #    define CONFIG_ENV_SECT_SIZE       0x40000
 #  else
-#    define CONFIG_ENV_ADDR (CFG_FLASH_BASE + CFG_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
+#    define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
 #    define CONFIG_ENV_SIZE    0x1000  /* Total Size of Environment Sector     */
 #    define CONFIG_ENV_SECT_SIZE       0x40000 /* see README - env sect real size      */
 #  endif /* CONFIG_ENV_IN_OWN_SECT */
 
 #else
 #  define CONFIG_ENV_IS_IN_FLASH       1
-#  define CONFIG_ENV_ADDR              (CFG_FLASH_BASE + 0x40000)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_FLASH_BASE + 0x40000)
 #define CONFIG_ENV_SIZE                0x1000
 #  define CONFIG_ENV_SECT_SIZE 0x40000
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE  |\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE  |\
                         HID0_DCE  |\
                         HID0_ICFI |\
                         HID0_DCI  |\
                         HID0_IFEM |\
                         HID0_ABE)
 
-#define CFG_HID0_FINAL (HID0_ICE  |\
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE  |\
                         HID0_IFEM |\
                         HID0_ABE  |\
                         HID0_EMCP)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMR                0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                (BCR_EBM      |\
+#define CONFIG_SYS_BCR         (BCR_EBM      |\
                         0x30000000)
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  */
 
-#define CFG_SIUMCR     (SIUMCR_ESE      |\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_ESE      |\
                         SIUMCR_DPPC00   |\
                         SIUMCR_L2CPC10  |\
                         SIUMCR_LBPC00   |\
  *-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
-#define CFG_SYPCR      (SYPCR_SWTC |\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
                         SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_LBME |\
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC |\
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC |\
                         TMCNTSC_ALR |\
                         TMCNTSC_TCF |\
                         TMCNTSC_TCE)
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS  |\
+#define CONFIG_SYS_PISCR       (PISCR_PS  |\
                         PISCR_PTF |\
                         PISCR_PTE)
 
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR       0
+#define CONFIG_SYS_SCCR        0
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Initialize Memory Controller:
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR0_PRELIM ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH0_BASE & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
  *     - One idle clock is inserted between a read access from the
  *      current bank and the next access.
  */
-#define CFG_OR0_PRELIM (MEG_TO_AM(CFG_FLASH0_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH0_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR2_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_BR3_PRELIM ((CFG_SDRAM1_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_SDRAM1_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
  *     - Internal bank interleaving within save device enabled
  */
 
-#define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM0_SIZE)     |\
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE)      |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A7             |\
                         ORxS_NUMR_13)
 
-#define CFG_OR3_PRELIM (MEG_TO_AM(CFG_SDRAM1_SIZE)     |\
+#define CONFIG_SYS_OR3_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM1_SIZE)      |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A7             |\
                         ORxS_NUMR_13)
  *     - External Address Multiplexing enabled
  *     - CAS Latency is 2.
  */
-#define CFG_PSDMR      (PSDMR_RFEN           |\
+#define CONFIG_SYS_PSDMR       (PSDMR_RFEN           |\
                         PSDMR_SDAM_A14_IS_A5 |\
                         PSDMR_BSMA_A13_A15   |\
                         PSDMR_SDA10_PBI0_A9  |\
                         PSDMR_CL_2)
 
 
-#define CFG_PSRT       0x0e
-#define CFG_MPTPR      MPTPR_PTP_DIV32
+#define CONFIG_SYS_PSRT        0x0e
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV32
 
 
 /*-----------------------------------------------------------------------
  *
  */
 
-#define CFG_BR4_PRELIM ((CFG_SDRAM2_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR4_PRELIM  ((CONFIG_SYS_SDRAM2_BASE & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_DECC_NONE                  |\
                         BRx_MS_SDRAM_L                 |\
  *     - Internal bank interleaving within save device enabled
  */
 
-#define CFG_OR4_PRELIM (MEG_TO_AM(CFG_SDRAM2_SIZE)     |\
+#define CONFIG_SYS_OR4_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM2_SIZE)      |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A10            |\
                         ORxS_NUMR_12)
  *     - External Address Multiplexing disabled
  *     - CAS Latency is 2.
  */
-#define CFG_LSDMR      (PSDMR_RFEN           |\
+#define CONFIG_SYS_LSDMR       (PSDMR_RFEN           |\
                         PSDMR_SDAM_A13_IS_A5 |\
                         PSDMR_BSMA_A15_A17   |\
                         PSDMR_SDA10_PBI0_A11 |\
                         PSDMR_WRC_1C         |\
                         PSDMR_CL_2)
 
-#define CFG_LSRT       0x0e
+#define CONFIG_SYS_LSRT        0x0e
 
 /*-----------------------------------------------------------------------
  * BR5 - Base Register
  *     - Valid
  */
 
-#define CFG_BR5_PRELIM ((CFG_MAILBOX_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR5_PRELIM  ((CONFIG_SYS_MAILBOX_BASE & BRx_BA_MSK) |\
                         BRx_PS_8                        |\
                         BRx_DECC_NONE                   |\
                         BRx_MS_GPCM_P                   |\
  *      current bank and the next access.
  */
 
-#define CFG_OR5_PRELIM ((P2SZ_TO_AM(CFG_MAILBOX_SIZE) & ~0x80000000) |\
+#define CONFIG_SYS_OR5_PRELIM ((P2SZ_TO_AM(CONFIG_SYS_MAILBOX_SIZE) & ~0x80000000) |\
                         ORxG_ACS_DIV2                               |\
                         ORxG_SCY_15_CLK                             |\
                         ORxG_TRLX                                   |\
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR6_PRELIM ((CFG_IOSELECT_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR6_PRELIM  ((CONFIG_SYS_IOSELECT_BASE & BRx_BA_MSK) |\
                           BRx_PS_16                      |\
                           BRx_MS_GPCM_P                  |\
                           BRx_V)
  *      current bank and the next access.
  */
 
-#define CFG_OR6_PRELIM (MEG_TO_AM(CFG_IOSELECT_SIZE) |\
+#define CONFIG_SYS_OR6_PRELIM (MEG_TO_AM(CONFIG_SYS_IOSELECT_SIZE) |\
                         ORxG_ACS_DIV2               |\
                         ORxG_SCY_15_CLK             |\
                         ORxG_TRLX                   |\
  *  LEDs     are at 0x00001 (write only)
  *  switches are at 0x00001 (read only)
  */
-#ifdef CFG_LED_BASE
+#ifdef CONFIG_SYS_LED_BASE
 
 /* BR7 is configured as follows:
  *
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR7_PRELIM ((CFG_LED_BASE & BRx_BA_MSK)     |\
+#define CONFIG_SYS_BR7_PRELIM  ((CONFIG_SYS_LED_BASE & BRx_BA_MSK)      |\
                           BRx_PS_8                      |\
                           BRx_DECC_NONE                 |\
                           BRx_MS_GPCM_P                 |\
  *     - One idle clock is inserted between a read access from the
  *      current bank and the next access.
  */
-#define CFG_OR7_PRELIM (ORxG_AM_MSK                   |\
+#define CONFIG_SYS_OR7_PRELIM  (ORxG_AM_MSK                   |\
                         ORxG_CSNT                     |\
                         ORxG_ACS_DIV1                 |\
                         ORxG_SCY_15_CLK               |\
                         ORxG_TRLX                     |\
                         ORxG_EHTR)
-#endif /* CFG_LED_BASE */
+#endif /* CONFIG_SYS_LED_BASE */
 
 /*
  * Internal Definitions
index 5cc4fc774a87d3a0c43d16fef5f7353341f69788..2573aa1e339b535b5432cd3ad3170e9e5508be73 100644 (file)
@@ -43,7 +43,7 @@
 #define CONFIG_BAUDRATE                19200
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define        CONFIG_TIMESTAMP                /* Print image info with timestamp */
 
 #define CONFIG_CMD_ELF
 
 
-#define CFG_SDRAM_BASE         0x80000000
+#define CONFIG_SYS_SDRAM_BASE          0x80000000
 
-#define CFG_INIT_SP_OFFSET      0x400000
+#define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
-#define CFG_MALLOC_LEN         128*1024
+#define CONFIG_SYS_MALLOC_LEN          128*1024
 
-#define CFG_BOOTPARAMS_LEN     128*1024
+#define CONFIG_SYS_BOOTPARAMS_LEN      128*1024
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory      */
-#define        CFG_PROMPT              "PURPLE # "     /* Monitor Command Prompt    */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size   */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MIPS_TIMER_FREQ    (CPU_CLOCK_RATE/2)
-#define CFG_HZ                 1000
-#define        CFG_MAXARGS             16              /* max number of command args*/
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory      */
+#define        CONFIG_SYS_PROMPT               "PURPLE # "     /* Monitor Command Prompt    */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size   */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define CONFIG_SYS_MIPS_TIMER_FREQ     (CPU_CLOCK_RATE/2)
+#define CONFIG_SYS_HZ                  1000
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args*/
 
-#define        CFG_LOAD_ADDR           0x80500000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x80500000      /* default load address */
 
-#define CFG_MEMTEST_START      0x80200000
-#define CFG_MEMTEST_END                0x80800000
+#define CONFIG_SYS_MEMTEST_START       0x80200000
+#define CONFIG_SYS_MEMTEST_END         0x80800000
 
 #define        CONFIG_MISC_INIT_R
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (35)    /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (35)    /* max number of sectors on one chip */
 
 #define PHYS_FLASH_1           0xb0000000 /* Flash Bank #1 */
 
 /* The following #defines are needed to get flash environment right */
-#define        CFG_MONITOR_BASE        TEXT_BASE
-#define        CFG_MONITOR_LEN         (192 << 10)
+#define        CONFIG_SYS_MONITOR_BASE TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (6 * CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (6 * CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (6 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (6 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                16384
-#define CFG_ICACHE_SIZE                16384
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_DCACHE_SIZE         16384
+#define CONFIG_SYS_ICACHE_SIZE         16384
+#define CONFIG_SYS_CACHELINE_SIZE      32
 
 /*
  * Temporary buffer for serial data until the real serial driver
  * is initialised (memtest will destroy this buffer)
  */
-#define CFG_SCONSOLE_ADDR     (CFG_SDRAM_BASE + CFG_INIT_SP_OFFSET - \
-                              CFG_DCACHE_SIZE / 2)
-#define CFG_SCONSOLE_SIZE     (CFG_DCACHE_SIZE / 4)
+#define CONFIG_SYS_SCONSOLE_ADDR     (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_INIT_SP_OFFSET - \
+                              CONFIG_SYS_DCACHE_SIZE / 2)
+#define CONFIG_SYS_SCONSOLE_SIZE     (CONFIG_SYS_DCACHE_SIZE / 4)
 
 #endif /* __CONFIG_H */
index 1afff5e23d794a96d5280d921a1a314cbf9f958f..f81103b795994a4a76eb32d4096b78649dd0b192 100644 (file)
@@ -71,8 +71,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * PXA250 IDP memory map information
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "$ "            /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "$ "            /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0xa0800000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa0800000      /* default load address */
 
-#define CFG_HZ                 3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x161           /* set core clock to 400/200/100 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x161           /* set core clock to 400/200/100 MHz */
 
 #define RTC    1                               /* enable 32KHz osc */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_MMC_BASE           0xF0000000
+#define CONFIG_SYS_MMC_BASE            0xF0000000
 
 /*
  * Stack sizes
 #define PHYS_FLASH_BANK_SIZE   0x02000000 /* 32 MB Banks */
 #define PHYS_FLASH_SECT_SIZE   0x00040000 /* 256 KB sectors (x2) */
 
-#define CFG_DRAM_BASE          0xa0000000
-#define CFG_DRAM_SIZE          0x04000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000
+#define CONFIG_SYS_DRAM_SIZE           0x04000000
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*
  * GPIO settings
  */
 
-#define CFG_GAFR0_L_VAL        0x80001005
-#define CFG_GAFR0_U_VAL        0xa5128012
-#define CFG_GAFR1_L_VAL        0x699a9558
-#define CFG_GAFR1_U_VAL        0xaaa5aa6a
-#define CFG_GAFR2_L_VAL        0xaaaaaaaa
-#define CFG_GAFR2_U_VAL        0x2
-#define CFG_GPCR0_VAL  0x1800400
-#define CFG_GPCR1_VAL  0x0
-#define CFG_GPCR2_VAL  0x0
-#define CFG_GPDR0_VAL  0xc1818440
-#define CFG_GPDR1_VAL  0xfcffab82
-#define CFG_GPDR2_VAL  0x1ffff
-#define CFG_GPSR0_VAL  0x8000
-#define CFG_GPSR1_VAL  0x3f0002
-#define CFG_GPSR2_VAL  0x1c000
-
-#define CFG_PSSR_VAL           0x20
+#define CONFIG_SYS_GAFR0_L_VAL 0x80001005
+#define CONFIG_SYS_GAFR0_U_VAL 0xa5128012
+#define CONFIG_SYS_GAFR1_L_VAL 0x699a9558
+#define CONFIG_SYS_GAFR1_U_VAL 0xaaa5aa6a
+#define CONFIG_SYS_GAFR2_L_VAL 0xaaaaaaaa
+#define CONFIG_SYS_GAFR2_U_VAL 0x2
+#define CONFIG_SYS_GPCR0_VAL   0x1800400
+#define CONFIG_SYS_GPCR1_VAL   0x0
+#define CONFIG_SYS_GPCR2_VAL   0x0
+#define CONFIG_SYS_GPDR0_VAL   0xc1818440
+#define CONFIG_SYS_GPDR1_VAL   0xfcffab82
+#define CONFIG_SYS_GPDR2_VAL   0x1ffff
+#define CONFIG_SYS_GPSR0_VAL   0x8000
+#define CONFIG_SYS_GPSR1_VAL   0x3f0002
+#define CONFIG_SYS_GPSR2_VAL   0x1c000
+
+#define CONFIG_SYS_PSSR_VAL            0x20
 
 /*
  * Memory settings
  */
-#define CFG_MSC0_VAL           0x29DCA4D2
-#define CFG_MSC1_VAL           0x43AC494C
-#define CFG_MSC2_VAL           0x39D449D4
-#define CFG_MDCNFG_VAL         0x090009C9
-#define CFG_MDREFR_VAL         0x0085C017
-#define CFG_MDMRS_VAL          0x00220022
+#define CONFIG_SYS_MSC0_VAL            0x29DCA4D2
+#define CONFIG_SYS_MSC1_VAL            0x43AC494C
+#define CONFIG_SYS_MSC2_VAL            0x39D449D4
+#define CONFIG_SYS_MDCNFG_VAL          0x090009C9
+#define CONFIG_SYS_MDREFR_VAL          0x0085C017
+#define CONFIG_SYS_MDMRS_VAL           0x00220022
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000003
-#define CFG_MCMEM0_VAL         0x00014405
-#define CFG_MCMEM1_VAL         0x00014405
-#define CFG_MCATT0_VAL         0x00014405
-#define CFG_MCATT1_VAL         0x00014405
-#define CFG_MCIO0_VAL          0x00014405
-#define CFG_MCIO1_VAL          0x00014405
+#define CONFIG_SYS_MECR_VAL            0x00000003
+#define CONFIG_SYS_MCMEM0_VAL          0x00014405
+#define CONFIG_SYS_MCMEM1_VAL          0x00014405
+#define CONFIG_SYS_MCATT0_VAL          0x00014405
+#define CONFIG_SYS_MCATT1_VAL          0x00014405
+#define CONFIG_SYS_MCIO0_VAL           0x00014405
+#define CONFIG_SYS_MCIO1_VAL           0x00014405
 
 /*
  * FLASH and environment organization
  */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER        1
 
-#define CFG_MONITOR_BASE       0
-#define CFG_MONITOR_LEN                PHYS_FLASH_SECT_SIZE
+#define CONFIG_SYS_MONITOR_BASE        0
+#define CONFIG_SYS_MONITOR_LEN         PHYS_FLASH_SECT_SIZE
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128  /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128  /* max number of sectors on one chip    */
 
-#define CFG_FLASH_USE_BUFFER_WRITE     1
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (25*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (25*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* put cfg at end of flash for now */
 #define CONFIG_ENV_IS_IN_FLASH 1
index faaa88910bb11776ea34f6e9c3f17165f1ac9473..f028d1ac63a87a91eaeca5fd893a9099911be7a4 100644 (file)
@@ -41,7 +41,7 @@
 #define CONFIG_BAUDRATE                115200
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_TIMESTAMP               /* Print image info with timestamp */
 #undef CONFIG_BOOTARGS
 #define CONFIG_DRIVER_NE2000
 #define CONFIG_DRIVER_NE2000_BASE      (0xb4000300)
 
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                115200
-#define CFG_NS16550_COM1       (0xb40003f8)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         115200
+#define CONFIG_SYS_NS16550_COM1        (0xb40003f8)
 #define CONFIG_CONS_INDEX      1
 
 #define CONFIG_CMD_IDE
 #define CONFIG_DOS_PARTITION
 
-#define CFG_IDE_MAXBUS         2
-#define CFG_ATA_IDE0_OFFSET    (0x1f0)
-#define CFG_ATA_IDE1_OFFSET    (0x170)
-#define CFG_ATA_DATA_OFFSET    (0)
-#define CFG_ATA_REG_OFFSET     (0)
-#define CFG_ATA_BASE_ADDR      (0xb4000000)
+#define CONFIG_SYS_IDE_MAXBUS          2
+#define CONFIG_SYS_ATA_IDE0_OFFSET     (0x1f0)
+#define CONFIG_SYS_ATA_IDE1_OFFSET     (0x170)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0)
+#define CONFIG_SYS_ATA_REG_OFFSET      (0)
+#define CONFIG_SYS_ATA_BASE_ADDR       (0xb4000000)
 
-#define CFG_IDE_MAXDEVICE      (4)
+#define CONFIG_SYS_IDE_MAXDEVICE       (4)
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
 
-#define CFG_PROMPT             "qemu-mips # "  /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "qemu-mips # "  /* Monitor Command Prompt */
 
 #define CONFIG_AUTO_COMPLETE
 #define CONFIG_CMDLINE_EDITING
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
 
-#define CFG_MALLOC_LEN         128*1024
+#define CONFIG_SYS_MALLOC_LEN          128*1024
 
-#define CFG_BOOTPARAMS_LEN     128*1024
+#define CONFIG_SYS_BOOTPARAMS_LEN      128*1024
 
-#define CFG_MHZ                        132
+#define CONFIG_SYS_MHZ                 132
 
-#define CFG_MIPS_TIMER_FREQ    (CFG_MHZ * 1000000)
+#define CONFIG_SYS_MIPS_TIMER_FREQ     (CONFIG_SYS_MHZ * 1000000)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_SDRAM_BASE         0x80000000      /* Cached addr */
+#define CONFIG_SYS_SDRAM_BASE          0x80000000      /* Cached addr */
 
-#define CFG_LOAD_ADDR          0x81000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x81000000      /* default load address */
 
-#define CFG_MEMTEST_START      0x80100000
-#define CFG_MEMTEST_END                0x80800000
+#define CONFIG_SYS_MEMTEST_START       0x80100000
+#define CONFIG_SYS_MEMTEST_END         0x80800000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 
 /* The following #defines are needed to get flash environment right */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 << 10)
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)
 
-#define CFG_INIT_SP_OFFSET     0x400000
+#define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
 /* We boot from this flash, selected with dip switch */
-#define CFG_FLASH_BASE         0xbfc00000
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_MAX_FLASH_SECT     128
-#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CONFIG_SYS_FLASH_BASE          0xbfc00000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_MAX_FLASH_SECT      128
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash memory is CFI compliant */
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_USE_BUFFER_WRITE     1
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
 
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x40000)
 
 /* Address and size of Primary Environment Sector */
 #define CONFIG_ENV_SIZE                0x8000
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                16384
-#define CFG_ICACHE_SIZE                16384
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_DCACHE_SIZE         16384
+#define CONFIG_SYS_ICACHE_SIZE         16384
+#define CONFIG_SYS_CACHELINE_SIZE      32
 
 #endif /* __CONFIG_H */
index 2e73ff7c0df657902b9460bad4b0903ac5018562..1a76301956e372ae41f6fdd205ddb7ea53c2ddf1 100644 (file)
@@ -49,7 +49,7 @@
 #define CONFIG_HAS_ETH1                1
 #define CONFIG_MII             1       /* MII PHY management           */
 #define CONFIG_PHY_ADDR                0x01    /* PHY address                  */
-#define CFG_RX_ETH_BUFFER      16      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* Number of ethernet rx buffers & descriptors */
 #define CONFIG_PHY_RESET       1
 #define CONFIG_PHY_RESET_DELAY 300     /* PHY RESET recovery delay     */
 
 #define CONFIG_SDRAM_BANK0  1
 
 /* FIX! SDRAM timings used in datasheet */
-#define CFG_SDRAM_CL            3       /* CAS latency */
-#define CFG_SDRAM_tRP           20      /* PRECHARGE command period */
-#define CFG_SDRAM_tRC           66      /* ACTIVE-to-ACTIVE command period */
-#define CFG_SDRAM_tRCD          20      /* ACTIVE-to-READ delay */
-#define CFG_SDRAM_tRFC          66      /* Auto refresh period */
+#define CONFIG_SYS_SDRAM_CL            3       /* CAS latency */
+#define CONFIG_SYS_SDRAM_tRP           20      /* PRECHARGE command period */
+#define CONFIG_SYS_SDRAM_tRC           66      /* ACTIVE-to-ACTIVE command period */
+#define CONFIG_SYS_SDRAM_tRCD          20      /* ACTIVE-to-READ delay */
+#define CONFIG_SYS_SDRAM_tRFC          66      /* Auto refresh period */
 
 /*
  * JFFS2
  */
-#define CFG_JFFS2_FIRST_BANK    0
-#ifdef  CFG_KERNEL_IN_JFFS2
-#define CFG_JFFS2_FIRST_SECTOR  0   /* JFFS starts at block 0 */
+#define CONFIG_SYS_JFFS2_FIRST_BANK    0
+#ifdef  CONFIG_SYS_KERNEL_IN_JFFS2
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  0   /* JFFS starts at block 0 */
 #else /* kernel not in JFFS */
-#define CFG_JFFS2_FIRST_SECTOR  8   /* block 0-7 is kernel (1MB = 8 sectors) */
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR  8   /* block 0-7 is kernel (1MB = 8 sectors) */
 #endif
-#define CFG_JFFS2_NUM_BANKS     1
+#define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK                    /* external serial clock */
-#define CFG_BASE_BAUD          691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK                     /* external serial clock */
+#define CONFIG_SYS_BASE_BAUD           691200
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x100000  /* default load address       */
-#define CFG_EXTBDINFO          1       /* To use extended board_info (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000  /* default load address       */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_info (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1               /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
-#define CFG_I2C_EEPROM_ADDR    0x50            /* base address */
-#define CFG_I2C_EEPROM_ADDR_LEN        2               /* bytes of address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* base address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2               /* bytes of address */
 
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* 8 byte write page size */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
-#define CFG_EEPROM_SIZE                        0x2000
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* 8 byte write page size */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_SIZE                 0x2000
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFC00000
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
-#define CFG_MONITOR_BASE       (TEXT_BASE)
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFC00000
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        (TEXT_BASE)
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define        CONFIG_FLASH_CFI_DRIVER
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks   */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster) */
-#define CFG_FLASH_INCREMENT      0       /* there is only one bank         */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster) */
+#define CONFIG_SYS_FLASH_INCREMENT      0       /* there is only one bank         */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
 #ifdef CONFIG_ENV_IS_IN_EEPROM
 #define CONFIG_ENV_SIZE                0x400           /* Size of Environment vars */
 #define CONFIG_ENV_OFFSET              0x00000000
-#define CFG_ENABLE_CRC_16      1       /* Intrinsyc formatting used crc16 */
+#define CONFIG_SYS_ENABLE_CRC_16       1       /* Intrinsyc formatting used crc16 */
 #endif
 
 /* partly from PPCBoot */
 /* NAND */
 #define CONFIG_NAND
 #ifdef CONFIG_NAND
-#define CFG_NAND_BASE   0x60000000
-#define CFG_NAND_CS    10   /* our CS is GPIO10 */
-#define CFG_NAND_RDY   23   /* our RDY is GPIO23 */
-#define CFG_NAND_CE    24   /* our CE is GPIO24  */
-#define CFG_NAND_CLE   31   /* our CLE is GPIO31 */
-#define CFG_NAND_ALE   30   /* our ALE is GPIO30 */
+#define CONFIG_SYS_NAND_BASE   0x60000000
+#define CONFIG_SYS_NAND_CS     10   /* our CS is GPIO10 */
+#define CONFIG_SYS_NAND_RDY    23   /* our RDY is GPIO23 */
+#define CONFIG_SYS_NAND_CE     24   /* our CE is GPIO24  */
+#define CONFIG_SYS_NAND_CLE    31   /* our CLE is GPIO31 */
+#define CONFIG_SYS_NAND_ALE    30   /* our ALE is GPIO30 */
 #define NAND_MAX_CHIPS 1
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #endif
 
 /*-----------------------------------------------------------------------
  */
 /* use on chip memory (OCM) for temperary stack until sdram is tested */
 /* see ./cpu/ppc4xx/start.S */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of OCM              */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of OCM               */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  */
 
 /* see ./cpu/ppc4xx/cpu_init.c ./cpu/ppc4xx/ndfc.c */
-#define CFG_EBC_PB0AP          0x04002480
+#define CONFIG_SYS_EBC_PB0AP           0x04002480
 /* AMD NOR flash - this corresponds to FLASH_BASE so may be correct */
-#define CFG_EBC_PB0CR          0xFFC5A000
-#define CFG_EBC_PB1AP           0x04005480
-#define CFG_EBC_PB1CR           0x60018000
-#define CFG_EBC_PB2AP           0x00000000
-#define CFG_EBC_PB2CR           0x00000000
-#define CFG_EBC_PB3AP           0x00000000
-#define CFG_EBC_PB3CR           0x00000000
-#define CFG_EBC_PB4AP           0x00000000
-#define CFG_EBC_PB4CR           0x00000000
+#define CONFIG_SYS_EBC_PB0CR           0xFFC5A000
+#define CONFIG_SYS_EBC_PB1AP           0x04005480
+#define CONFIG_SYS_EBC_PB1CR           0x60018000
+#define CONFIG_SYS_EBC_PB2AP           0x00000000
+#define CONFIG_SYS_EBC_PB2CR           0x00000000
+#define CONFIG_SYS_EBC_PB3AP           0x00000000
+#define CONFIG_SYS_EBC_PB3CR           0x00000000
+#define CONFIG_SYS_EBC_PB4AP           0x00000000
+#define CONFIG_SYS_EBC_PB4CR           0x00000000
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * Taken in part from PPCBoot board/icecube/icecube.h
  */
 /* see ./cpu/ppc4xx/cpu_init.c ./cpu/ppc4xx/start.S */
-#define CFG_GPIO0_OSRH         0x55555550
-#define CFG_GPIO0_OSRL         0x00000110
-#define CFG_GPIO0_ISR1H                0x00000000
-#define CFG_GPIO0_ISR1L                0x15555445
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xFFFF8097
-#define CFG_GPIO0_ODR          0x00000000
+#define CONFIG_SYS_GPIO0_OSRH          0x55555550
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110
+#define CONFIG_SYS_GPIO0_ISR1H         0x00000000
+#define CONFIG_SYS_GPIO0_ISR1L         0x15555445
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xFFFF8097
+#define CONFIG_SYS_GPIO0_ODR           0x00000000
 
 #if defined(CONFIG_CMD_KGDB)
 #define CONFIG_KGDB_BAUDRATE   230400          /* speed to run kgdb serial port */
index f2646152e2bbd5048c535e7cddc54105c9951de0..e440e93a5a9ad47c21a2416ed6978478241e44b3 100644 (file)
 /*
  * Select the more full-featured memory test (Barr embedded systems)
  */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 
 /* M48T02 Paralled access timekeeper with same interface as the M48T35A*/
@@ -88,8 +88,8 @@
 #endif
 
 /*  NVRAM and RTC */
-#define CFG_NVRAM_BASE_ADDR 0xFA000000
-#define CFG_NVRAM_SIZE 2048
+#define CONFIG_SYS_NVRAM_BASE_ADDR 0xFA000000
+#define CONFIG_SYS_NVRAM_SIZE 2048
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00040000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01f00000      /* 256K ... 15 MB in DRAM       */
+#define CONFIG_SYS_MEMTEST_START       0x00040000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01f00000      /* 256K ... 15 MB in DRAM       */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFA200000
+#define CONFIG_SYS_IMMR                0xFA200000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x2F00  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE 0xFF000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE  0xFF000000
 
 #if 1
     #define CONFIG_FLASH_CFI_DRIVER
 
 
 #ifdef CONFIG_FLASH_CFI_DRIVER
-    #define CFG_FLASH_CFI 1
-    #undef CFG_FLASH_USE_BUFFER_WRITE
-    #define CFG_FLASH_BANKS_LIST {CFG_FLASH_BASE}
+    #define CONFIG_SYS_FLASH_CFI 1
+    #undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+    #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE}
 #endif
 
-/*%%% #define CFG_FLASH_BASE           0xFFF00000 */
+/*%%% #define CONFIG_SYS_FLASH_BASE            0xFFF00000 */
 #if defined(DEBUG) || defined(CONFIG_CMD_IDE)
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define CFG_MONITOR_LEN                (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       0xFFF00000
-/*%%% #define CFG_MONITOR_BASE CFG_FLASH_BASE */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        0xFFF00000
+/*%%% #define CONFIG_SYS_MONITOR_BASE  CONFIG_SYS_FLASH_BASE */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET          0x00F40000  /*   Offset   of Environment Sector     absolute address 0xfff40000*/
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* Total Size of Environment Sector     */
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 
 /* Address and size of Redundant Environment Sector    */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 
 /* FPGA */
 #define CONFIG_MISC_INIT_R
-#define CFG_FPGA_SPARTAN2
-#define CFG_FPGA_PROG_FEEDBACK
+#define CONFIG_SYS_FPGA_SPARTAN2
+#define CONFIG_SYS_FPGA_PROG_FEEDBACK
 
 
 /*-----------------------------------------------------------------------
  * Reset address
  */
-#define CFG_RESET_ADDRESS      ((ulong)((((immap_t *)CFG_IMMR)->im_clkrst.res)))
+#define CONFIG_SYS_RESET_ADDRESS       ((ulong)((((immap_t *)CONFIG_SYS_IMMR)->im_clkrst.res)))
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_MLRC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_MLRC10)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-/*%%%#define CFG_RTCSC (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_RTE)
+/*%%%#define CONFIG_SYS_RTCSC  (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
+#define CONFIG_SYS_PLPRCR      ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF00
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_COM00 | SCCR_TBS)
+#define CONFIG_SYS_SCCR        (SCCR_COM00 | SCCR_TBS)
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER 0
+/*#define      CONFIG_SYS_DER 0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  */
 
 #define FLASH_BASE_PRELIM      0xFE000000      /* FLASH base */
-#define CFG_PRELIM_OR_AM       0xFE000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFE000000      /* OR addr mask */
 
 /* FLASH timing: ACS = 0, TRLX = 0, CSNT = 0, SCY = 4, ETHR = 0, BIH = 1 */
-#define CFG_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
+#define CONFIG_SYS_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
 
 /*
  * BR1 and OR1 (SDRAM)
 #define SDRAM_MAX_SIZE         0x08000000      /* max 128 MB */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000E00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000E00
 
-#define CFG_OR1_PRELIM (0xF0000000 | CFG_OR_TIMING_SDRAM ) /* map 256 MB */
-#define CFG_BR1_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  (0xF0000000 | CONFIG_SYS_OR_TIMING_SDRAM ) /* map 256 MB */
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /* RPXLITE mem setting */
-#define CFG_BR3_PRELIM 0xFA400001              /* FPGA */
-#define CFG_OR3_PRELIM 0xFFFF8910
+#define CONFIG_SYS_BR3_PRELIM  0xFA400001              /* FPGA */
+#define CONFIG_SYS_OR3_PRELIM  0xFFFF8910
 
-#define CFG_BR4_PRELIM 0xFA000401              /* NVRAM&SRAM */
-#define CFG_OR4_PRELIM 0xFFFE0970
+#define CONFIG_SYS_BR4_PRELIM  0xFA000401              /* NVRAM&SRAM */
+#define CONFIG_SYS_OR4_PRELIM  0xFFFE0970
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   20
+#define CONFIG_SYS_MAMR_PTA    20
 
 /*
  * Refresh clock Prescalar
  */
-#define CFG_MPTPR      MPTPR_PTP_DIV2
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV2
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_16X | MAMR_WLFA_16X | MAMR_TLFA_16X)
 
index 41a2a15122f22a9241c840fc37548cb2a7aff4aa..6921759d5549429c7655fbaebd52c11a5d340aed 100644 (file)
 #define CONFIG_ENV_OVERWRITE   1
 
 /* SDRAM */
-#define CFG_SDRAM_BASE         (0x8C000000)
-#define CFG_SDRAM_SIZE         (0x04000000)
-
-#define CFG_LONGHELP
-#define CFG_PROMPT             "=> "
-#define CFG_CBSIZE             256
-#define CFG_PBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_BARGSIZE           512
+#define CONFIG_SYS_SDRAM_BASE          (0x8C000000)
+#define CONFIG_SYS_SDRAM_SIZE          (0x04000000)
+
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_PBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_BARGSIZE            512
 /* List of legal baudrate settings for this board */
-#define CFG_BAUDRATE_TABLE     { 115200, 57600, 38400, 19200, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 57600, 38400, 19200, 9600 }
 
-#define CFG_MEMTEST_START      (CFG_SDRAM_BASE)
-#define CFG_MEMTEST_END                (TEXT_BASE - 0x100000)
+#define CONFIG_SYS_MEMTEST_START       (CONFIG_SYS_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (TEXT_BASE - 0x100000)
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 32 * 1024 * 1024)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
 /* Address of u-boot image in Flash */
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE)
-#define CFG_MONITOR_LEN                (256 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)
 /* Size of DRAM reserved for malloc() use */
-#define CFG_MALLOC_LEN         (1024 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE      (256)
-#define CFG_BOOTMAPSZ          (8 * 1024 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)
+#define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
 
 /*
  * NOR Flash ( Spantion S29GL256P )
  */
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_BASE         (0xA0000000)
-#define CFG_MAX_FLASH_BANKS (1)
-#define CFG_MAX_FLASH_SECT  256
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BASE          (0xA0000000)
+#define CONFIG_SYS_MAX_FLASH_BANKS (1)
+#define CONFIG_SYS_MAX_FLASH_SECT  256
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x40000
 #define CONFIG_ENV_SIZE        (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR        (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR        (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 
 /*
  * SuperH Clock setting
  */
 #define CONFIG_SYS_CLK_FREQ    60000000
 #define TMU_CLK_DIVIDER                4
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
-#define        CFG_PLL_SETTLING_TIME   100/* in us */
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define        CONFIG_SYS_PLL_SETTLING_TIME    100/* in us */
 
 /*
  * IDE support
  */
 #define CONFIG_IDE_RESET       1
-#define CFG_PIO_MODE           1
-#define CFG_IDE_MAXBUS         1 /* IDE bus */
-#define CFG_IDE_MAXDEVICE      1
-#define CFG_ATA_BASE_ADDR      0xb4000000
-#define CFG_ATA_STRIDE         2 /* 1bit shift */
-#define CFG_ATA_DATA_OFFSET    0x1000  /* data reg offset */
-#define CFG_ATA_REG_OFFSET     0x1000  /* reg offset */
-#define CFG_ATA_ALT_OFFSET     0x800   /* alternate register offset */
+#define CONFIG_SYS_PIO_MODE            1
+#define CONFIG_SYS_IDE_MAXBUS          1 /* IDE bus */
+#define CONFIG_SYS_IDE_MAXDEVICE       1
+#define CONFIG_SYS_ATA_BASE_ADDR       0xb4000000
+#define CONFIG_SYS_ATA_STRIDE          2 /* 1bit shift */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x1000  /* data reg offset */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x1000  /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x800   /* alternate register offset */
 
 /*
  * SuperH PCI Bridge Configration
index 4f3f8e53753af24a681d9b5ececf39fdc75ea0ce..f85d5d66959d3a9a36ba7e5addf02a45826c34aa 100644 (file)
@@ -31,7 +31,7 @@
 #define CONFIG_SH4A            1
 #define CONFIG_CPU_SH7780      1
 #define CONFIG_R7780MP         1
-#define CFG_R7780MP_OLD_FLASH  1
+#define CONFIG_SYS_R7780MP_OLD_FLASH   1
 #define __LITTLE_ENDIAN__ 1
 
 /*
 /* check for keypress on bootdelay==0 */
 /*#define CONFIG_ZERO_BOOTDELAY_CHECK*/
 
-#define CFG_SDRAM_BASE         (0x08000000)
-#define CFG_SDRAM_SIZE         (128 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE          (0x08000000)
+#define CONFIG_SYS_SDRAM_SIZE          (128 * 1024 * 1024)
 
-#define CFG_LONGHELP
-#define CFG_PROMPT             "=> "
-#define CFG_CBSIZE             256
-#define CFG_PBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_BARGSIZE   512
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_PBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_BARGSIZE    512
 /* List of legal baudrate settings for this board */
-#define CFG_BAUDRATE_TABLE     { 115200, 57600, 38400, 19200, 9600 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 57600, 38400, 19200, 9600 }
 
-#define CFG_MEMTEST_START      (CFG_SDRAM_BASE)
-#define CFG_MEMTEST_END                (TEXT_BASE - 0x100000)
+#define CONFIG_SYS_MEMTEST_START       (CONFIG_SYS_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (TEXT_BASE - 0x100000)
 
 /* Flash board support */
-#define CFG_FLASH_BASE         (0xA0000000)
-#ifdef CFG_R7780MP_OLD_FLASH
+#define CONFIG_SYS_FLASH_BASE          (0xA0000000)
+#ifdef CONFIG_SYS_R7780MP_OLD_FLASH
 /* NOR Flash (S29PL127J60TFI130) */
-# define CFG_FLASH_CFI_WIDTH   FLASH_CFI_32BIT
-# define CFG_MAX_FLASH_BANKS   (2)
-# define CFG_MAX_FLASH_SECT    270
-# define CFG_FLASH_BANKS_LIST  { CFG_FLASH_BASE,\
-                               CFG_FLASH_BASE + 0x100000,\
-                               CFG_FLASH_BASE + 0x400000,\
-                               CFG_FLASH_BASE + 0x700000, }
-#else /* CFG_R7780MP_OLD_FLASH */
+# define CONFIG_SYS_FLASH_CFI_WIDTH    FLASH_CFI_32BIT
+# define CONFIG_SYS_MAX_FLASH_BANKS    (2)
+# define CONFIG_SYS_MAX_FLASH_SECT     270
+# define CONFIG_SYS_FLASH_BANKS_LIST   { CONFIG_SYS_FLASH_BASE,\
+                               CONFIG_SYS_FLASH_BASE + 0x100000,\
+                               CONFIG_SYS_FLASH_BASE + 0x400000,\
+                               CONFIG_SYS_FLASH_BASE + 0x700000, }
+#else /* CONFIG_SYS_R7780MP_OLD_FLASH */
 /* NOR Flash (Spantion S29GL256P) */
-# define CFG_MAX_FLASH_BANKS   (1)
-# define CFG_MAX_FLASH_SECT            256
-# define CFG_FLASH_BANKS_LIST  { CFG_FLASH_BASE }
-#endif /* CFG_R7780MP_OLD_FLASH */
+# define CONFIG_SYS_MAX_FLASH_BANKS    (1)
+# define CONFIG_SYS_MAX_FLASH_SECT             256
+# define CONFIG_SYS_FLASH_BANKS_LIST   { CONFIG_SYS_FLASH_BASE }
+#endif /* CONFIG_SYS_R7780MP_OLD_FLASH */
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 4 * 1024 * 1024)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024)
 /* Address of u-boot image in Flash */
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE)
-#define CFG_MONITOR_LEN                (256 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)
 /* Size of DRAM reserved for malloc() use */
-#define CFG_MALLOC_LEN         (1204 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (1204 * 1024)
 
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE      (256)
-#define CFG_BOOTMAPSZ          (8 * 1024 * 1024)
-#define CFG_RX_ETH_BUFFER      (8)
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)
+#define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
+#define CONFIG_SYS_RX_ETH_BUFFER       (8)
 
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#undef CFG_FLASH_CFI_BROKEN_TABLE
-#undef  CFG_FLASH_QUIET_TEST
+#undef CONFIG_SYS_FLASH_CFI_BROKEN_TABLE
+#undef  CONFIG_SYS_FLASH_QUIET_TEST
 /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   (256 * 1024)
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_FLASH_ERASE_TOUT   120000
-#define CFG_FLASH_WRITE_TOUT   500
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500
 
 /* Board Clock */
 #define CONFIG_SYS_CLK_FREQ    33333333
 #define TMU_CLK_DIVIDER                4
-#define CFG_HZ (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 /* PCI Controller */
 #if defined(CONFIG_CMD_PCI)
 /* Compact flash Support */
 #if defined(CONFIG_CMD_IDE)
 #define CONFIG_IDE_RESET        1
-#define CFG_PIO_MODE            1
-#define CFG_IDE_MAXBUS          1   /* IDE bus */
-#define CFG_IDE_MAXDEVICE       1
-#define CFG_ATA_BASE_ADDR       0xb4000000
-#define CFG_ATA_STRIDE          2               /* 1bit shift */
-#define CFG_ATA_DATA_OFFSET     0x1000          /* data reg offset */
-#define CFG_ATA_REG_OFFSET      0x1000          /* reg offset */
-#define CFG_ATA_ALT_OFFSET      0x800           /* alternate register offset */
+#define CONFIG_SYS_PIO_MODE            1
+#define CONFIG_SYS_IDE_MAXBUS          1   /* IDE bus */
+#define CONFIG_SYS_IDE_MAXDEVICE       1
+#define CONFIG_SYS_ATA_BASE_ADDR       0xb4000000
+#define CONFIG_SYS_ATA_STRIDE          2               /* 1bit shift */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x1000          /* data reg offset */
+#define CONFIG_SYS_ATA_REG_OFFSET      0x1000          /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x800           /* alternate register offset */
 #endif /* CONFIG_CMD_IDE */
 
 #endif /* __R7780RP_H */
index dac323ba7f7ec973fd95ffa4dff0f3786acf22bd..4b744a79499f757040f721f0239c4f884f6f8ce9 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xfff00000      /* start of FLASH       */
-#define CFG_PERIPHERAL_BASE    0xa0000000      /* internal peripherals */
-#define CFG_ISRAM_BASE         0x90000000      /* internal SRAM        */
+#define CONFIG_SYS_FLASH_BASE          0xfff00000      /* start of FLASH       */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xa0000000      /* internal peripherals */
+#define CONFIG_SYS_ISRAM_BASE          0x90000000      /* internal SRAM        */
 
-#define CFG_PCI_BASE           0xd0000000      /* internal PCI regs    */
+#define CONFIG_SYS_PCI_BASE            0xd0000000      /* internal PCI regs    */
 
-#define CFG_PCIE_MEMBASE       0x90000000      /* mapped PCIe memory   */
-#define CFG_PCIE0_MEMBASE      0x90000000      /* mapped PCIe memory   */
-#define CFG_PCIE1_MEMBASE      0xa0000000      /* mapped PCIe memory   */
-#define CFG_PCIE_MEMSIZE       0x01000000
+#define CONFIG_SYS_PCIE_MEMBASE        0x90000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE0_MEMBASE       0x90000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE1_MEMBASE       0xa0000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE_MEMSIZE        0x01000000
 
-#define CFG_PCIE0_XCFGBASE     0xb0000000
-#define CFG_PCIE1_XCFGBASE     0xb2000000
-#define CFG_PCIE2_XCFGBASE     0xb4000000
-#define CFG_PCIE0_CFGBASE      0xb6000000
-#define CFG_PCIE1_CFGBASE      0xb8000000
-#define CFG_PCIE2_CFGBASE      0xba000000
+#define CONFIG_SYS_PCIE0_XCFGBASE      0xb0000000
+#define CONFIG_SYS_PCIE1_XCFGBASE      0xb2000000
+#define CONFIG_SYS_PCIE2_XCFGBASE      0xb4000000
+#define CONFIG_SYS_PCIE0_CFGBASE       0xb6000000
+#define CONFIG_SYS_PCIE1_CFGBASE       0xb8000000
+#define CONFIG_SYS_PCIE2_CFGBASE       0xba000000
 
 /* PCIe mapped UTL registers */
-#define CFG_PCIE0_REGBASE   0xd0000000
-#define CFG_PCIE1_REGBASE   0xd0010000
-#define CFG_PCIE2_REGBASE   0xd0020000
+#define CONFIG_SYS_PCIE0_REGBASE   0xd0000000
+#define CONFIG_SYS_PCIE1_REGBASE   0xd0010000
+#define CONFIG_SYS_PCIE2_REGBASE   0xd0020000
 
 /* System RAM mapped to PCI space */
-#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CONFIG_SYS_SDRAM_BASE
 #define CONFIG_PCI_SYS_MEM_SIZE        (1024 * 1024 * 1024)
 
-#define CFG_FPGA_BASE          0xe2000000      /* epld                 */
-#define CFG_OPER_FLASH         0xe7000000      /* SRAM - OPER Flash    */
+#define CONFIG_SYS_FPGA_BASE           0xe2000000      /* epld                 */
+#define CONFIG_SYS_OPER_FLASH          0xe7000000      /* SRAM - OPER Flash    */
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM     1
-#define CFG_OCM_DATA_ADDR      CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR      CFG_ISRAM_BASE  /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x2000          /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_ISRAM_BASE   /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000          /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
@@ -96,7 +96,7 @@
 #define CONFIG_SPD_EEPROM      1       /* Use SPD EEPROM for setup     */
 #define CONFIG_DDR_ECC         1       /* with ECC support             */
 
-#define CFG_SPD_MAX_DIMMS      2
+#define CONFIG_SYS_SPD_MAX_DIMMS       2
 
 /* SPD i2c spd addresses */
 #define SPD_EEPROM_ADDRESS     {IIC0_DIMM0_ADDR, IIC0_DIMM1_ADDR}
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed                    */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed                    */
 
 #define IIC0_BOOTPROM_ADDR     0x50
 #define IIC0_ALT_BOOTPROM_ADDR 0x54
 
 /* Don't probe these addrs */
-#define CFG_I2C_NOPROBES       {0x50, 0x52, 0x53, 0x54}
+#define CONFIG_SYS_I2C_NOPROBES        {0x50, 0x52, 0x53, 0x54}
 
-#define CFG_I2C_EEPROM_ADDR_LEN        2       /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
 
 /*-----------------------------------------------------------------------
  * Environment
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
-#define CFG_FLASH_CFI_AMD_RESET 1      /* Use AMD (Spansion) reset cmd */
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1       /* Use AMD (Spansion) reset cmd */
 
-#define CFG_MAX_FLASH_BANKS    3       /* number of banks              */
-#define CFG_MAX_FLASH_SECT     256     /* sectors per device           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* number of banks              */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* sectors per device           */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
index 0c0b206462852de598cc1abd29b7d5666539981b..d88ae81ffe9ad6cea7d0eeddf752d8bf6386db03 100644 (file)
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 /* enable I2C and select the hardware/software driver */
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          40000   /* 40 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           40000   /* 40 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 /* Software (bit-bang) I2C driver configuration */
 #define PB_SCL         0x00000020      /* PB 26 */
@@ -82,8 +82,8 @@
 
 /* M41T11 Serial Access Timekeeper(R) SRAM */
 #define CONFIG_RTC_M41T11 1
-#define CFG_I2C_RTC_ADDR 0x68
-#define CFG_M41T11_BASE_YEAR 1900      /* play along with the linux driver */
+#define CONFIG_SYS_I2C_RTC_ADDR 0x68
+#define CONFIG_SYS_M41T11_BASE_YEAR 1900       /* play along with the linux driver */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0040000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x00C0000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0040000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x00C0000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFA200000
+#define CONFIG_SYS_IMMR                0xFA200000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         (0-flash_info[0].size)  /* Put flash at end     */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          (0-flash_info[0].size)  /* Put flash at end     */
 #if defined(DEBUG) || defined(CONFIG_CMD_IDE)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (128 << 10)     /* Reserve 128 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (128 << 10)     /* Reserve 128 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                ((TEXT_BASE) + 0x40000)
 /*-----------------------------------------------------------------------
  * Reset address
  */
-#define        CFG_RESET_ADDRESS       ((ulong)((((immap_t *)CFG_IMMR)->im_clkrst.res)))
+#define        CONFIG_SYS_RESET_ADDRESS        ((ulong)((((immap_t *)CONFIG_SYS_IMMR)->im_clkrst.res)))
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | 0x00000600 | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_MLRC10)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_MLRC10)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-/*%%%#define CFG_RTCSC (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_RTE)
+/*%%%#define CONFIG_SYS_RTCSC  (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
+#define CONFIG_SYS_PLPRCR      ( (5 << PLPRCR_MF_SHIFT) | PLPRCR_TEXPS )
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF00
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_COM00 | SCCR_TBS)
+#define CONFIG_SYS_SCCR        (SCCR_COM00 | SCCR_TBS)
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  */
 
 #define FLASH_BASE_PRELIM      0xFC000000      /* FLASH base - up to 64 MB of flash */
-#define CFG_PRELIM_OR_AM       0xFC000000      /* OR addr mask - map 64 MB */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFC000000      /* OR addr mask - map 64 MB */
 
 /* FLASH timing: ACS = 0, TRLX = 0, CSNT = 0, SCY = 4, ETHR = 0, BIH = 1 */
-#define CFG_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
+#define CONFIG_SYS_OR_TIMING_FLASH (OR_SCY_4_CLK | OR_BI)
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE_PRELIM & BR_BA_MSK) | BR_V)
 
 /*
  * BR1 and OR1 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x08000000      /* max 128 MB */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000E00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000E00
 
-#define CFG_OR1_PRELIM (0xF0000000 | CFG_OR_TIMING_SDRAM ) /* map 256 MB */
-#define CFG_BR1_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  (0xF0000000 | CONFIG_SYS_OR_TIMING_SDRAM ) /* map 256 MB */
+#define CONFIG_SYS_BR1_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /* RPXLITE mem setting */
-#define CFG_NVRAM_BASE 0xFA000000              /* NVRAM & SRAM base */
+#define CONFIG_SYS_NVRAM_BASE  0xFA000000              /* NVRAM & SRAM base */
 /*      IMMR:          0xFA200000                 IMMR base address - see above */
-#define        CFG_BCSR_BASE   0xFA400000              /* BCSR base address */
+#define        CONFIG_SYS_BCSR_BASE    0xFA400000              /* BCSR base address */
 
-#define        CFG_BR3_PRELIM  (CFG_BCSR_BASE | BR_V)                  /* BCSR */
-#define CFG_OR3_PRELIM 0xFFFF8910
-#define CFG_BR4_PRELIM  (CFG_NVRAM_BASE | BR_PS_8 | BR_V)      /* NVRAM & SRAM */
-#define CFG_OR4_PRELIM 0xFFFE0970
+#define        CONFIG_SYS_BR3_PRELIM   (CONFIG_SYS_BCSR_BASE | BR_V)                   /* BCSR */
+#define CONFIG_SYS_OR3_PRELIM  0xFFFF8910
+#define CONFIG_SYS_BR4_PRELIM  (CONFIG_SYS_NVRAM_BASE | BR_PS_8 | BR_V)        /* NVRAM & SRAM */
+#define CONFIG_SYS_OR4_PRELIM  0xFFFE0970
 
 /*
  * Memory Periodic Timer Prescaler
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   20
+#define CONFIG_SYS_MAMR_PTA    20
 
 /*
  * Refresh clock Prescalar
  */
-#define CFG_MPTPR      MPTPR_PTP_DIV2
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV2
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_16X | MAMR_WLFA_16X | MAMR_TLFA_16X)
 
  *
  */
 
-#define BCSR0  (CFG_BCSR_BASE + 0)
-#define BCSR1  (CFG_BCSR_BASE + 1)
-#define BCSR2  (CFG_BCSR_BASE + 2)
-#define BCSR3  (CFG_BCSR_BASE + 3)
+#define BCSR0  (CONFIG_SYS_BCSR_BASE + 0)
+#define BCSR1  (CONFIG_SYS_BCSR_BASE + 1)
+#define BCSR2  (CONFIG_SYS_BCSR_BASE + 2)
+#define BCSR3  (CONFIG_SYS_BCSR_BASE + 3)
 
 #define BCSR0_ENMONXCVR        0x01    /* Monitor XVCR Control */
 #define BCSR0_ENNVRAM  0x02    /* CS4# Control */
index 09913a906a66c5a507473027402b1105930058d1..820784496074f43ba57bc89aa1febbb6efe03023 100644 (file)
  * - Select bus for bd/buffers (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    (0)
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE | FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     (0)
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_INDEX */
 
@@ -92,8 +92,8 @@
 
 /* enable I2C */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_SPEED          50000   /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x30
+#define CONFIG_SYS_I2C_SPEED           50000   /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x30
 
 
 /* system clock rate (CLKIN) - equal to the 60x and local bus speed */
  * way to do that is to program the bootloader at both addresses.
  * It is suggested that you just let U-Boot live at 0x00000000.
  */
-#define CFG_RSD_BOOT_LOW 1
+#define CONFIG_SYS_RSD_BOOT_LOW 1
 
 #define CONFIG_BOOTDELAY       5
 #define CONFIG_BOOTARGS                "devfs=mount root=ramfs"
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01c00000      /* 4 ... 28 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01c00000      /* 4 ... 28 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000            /* decrementer freq: 1 ms ticks */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 #define PHYS_FLASH             0xFF000000 /* Flash (60x Bus) */
 #define PHYS_FLASH_SIZE                0x01000000 /* 16 MB */
 
-#define CFG_IMMR               PHYS_IMMR
+#define CONFIG_SYS_IMMR                PHYS_IMMR
 
 /*-----------------------------------------------------------------------
  * Reset Address
  *
  * In order to reset the CPU, U-Boot jumps to a special address which
  * causes a machine check exception. The default address for this is
- * CFG_MONITOR_BASE - sizeof (ulong), which might not always work, eg. when
+ * CONFIG_SYS_MONITOR_BASE - sizeof (ulong), which might not always work, eg. when
  * testing the monitor in RAM using a JTAG debugger.
  *
- * Just set CFG_RESET_ADDRESS to an address that you know is sure to
+ * Just set CONFIG_SYS_RESET_ADDRESS to an address that you know is sure to
  * cause a bus error on your hardware.
  */
-#define CFG_RESET_ADDRESS      0x20000000
+#define CONFIG_SYS_RESET_ADDRESS       0x20000000
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  */
 
-#if defined(CFG_RSD_BOOT_LOW)
-#  define  CFG_RSD_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
+#if defined(CONFIG_SYS_RSD_BOOT_LOW)
+#  define  CONFIG_SYS_RSD_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
 #else
-#  define  CFG_RSD_HRCW_BOOT_FLAGS  (0)
-#endif /* defined(CFG_RSD_BOOT_LOW) */
+#  define  CONFIG_SYS_RSD_HRCW_BOOT_FLAGS  (0)
+#endif /* defined(CONFIG_SYS_RSD_BOOT_LOW) */
 
-/* get the HRCW ISB field from CFG_IMMR */
-#define CFG_RSD_HRCW_IMMR ( ((CFG_IMMR & 0x10000000) >> 10) |\
-                           ((CFG_IMMR & 0x01000000) >> 7)  |\
-                           ((CFG_IMMR & 0x00100000) >> 4) )
+/* get the HRCW ISB field from CONFIG_SYS_IMMR */
+#define CONFIG_SYS_RSD_HRCW_IMMR ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) |\
+                           ((CONFIG_SYS_IMMR & 0x01000000) >> 7)  |\
+                           ((CONFIG_SYS_IMMR & 0x00100000) >> 4) )
 
-#define CFG_HRCW_MASTER        (HRCW_L2CPC10 | \
+#define CONFIG_SYS_HRCW_MASTER (HRCW_L2CPC10 | \
                         HRCW_DPPC11 | \
-                        CFG_RSD_HRCW_IMMR |\
+                        CONFIG_SYS_RSD_HRCW_IMMR |\
                         HRCW_MMR00 | \
                         HRCW_APPC10 | \
                         HRCW_CS10PC00 | \
                         HRCW_MODCK_H0000 |\
-                        CFG_RSD_HRCW_BOOT_FLAGS)
+                        CONFIG_SYS_RSD_HRCW_BOOT_FLAGS)
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1        0
-#define CFG_HRCW_SLAVE2        0
-#define CFG_HRCW_SLAVE3        0
-#define CFG_HRCW_SLAVE4        0
-#define CFG_HRCW_SLAVE5        0
-#define CFG_HRCW_SLAVE6        0
-#define CFG_HRCW_SLAVE7        0
+#define CONFIG_SYS_HRCW_SLAVE1 0
+#define CONFIG_SYS_HRCW_SLAVE2 0
+#define CONFIG_SYS_HRCW_SLAVE3 0
+#define CONFIG_SYS_HRCW_SLAVE4 0
+#define CONFIG_SYS_HRCW_SLAVE5 0
+#define CONFIG_SYS_HRCW_SLAVE6 0
+#define CONFIG_SYS_HRCW_SLAVE7 0
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x4000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
- * Note also that the logic that sets CFG_RAMBOOT is platform dependend.
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependend.
  */
-#define        CFG_SDRAM_BASE          PHYS_SDRAM_60X
-#define CFG_FLASH_BASE         PHYS_FLASH
-/*#define      CFG_MONITOR_BASE        0x200000 */
-#define        CFG_MONITOR_BASE        CFG_FLASH_BASE
-#if CFG_MONITOR_BASE < CFG_FLASH_BASE
-#define CFG_RAMBOOT
+#define        CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM_60X
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH
+/*#define      CONFIG_SYS_MONITOR_BASE 0x200000 */
+#define        CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_RAMBOOT
 #endif
-#define        CFG_MONITOR_LEN         (160 << 10)     /* Reserve 160 kB for Monitor   */
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_MONITOR_LEN          (160 << 10)     /* Reserve 160 kB for Monitor   */
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     63      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      63      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   12000   /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   3000    /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    12000   /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    3000    /* Timeout for Flash Write (in ms)      */
 
 /* turn off NVRAM env feature */
 #undef CONFIG_NVRAM_ENV
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU                      */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU                      */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|HID0_IFEM|HID0_ABE)
-#define CFG_HID0_FINAL (HID0_ICE|HID0_IFEM|HID0_ABE|HID0_EMCP)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE|HID0_DCE|HID0_ICFI|HID0_DCI|HID0_IFEM|HID0_ABE)
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE|HID0_IFEM|HID0_ABE|HID0_EMCP)
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMR                0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                0x100c0000
+#define CONFIG_SYS_BCR         0x100c0000
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
 
-#define CFG_SIUMCR     (SIUMCR_DPPC11 | SIUMCR_L2CPC10 | SIUMCR_APPC10 | \
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC11 | SIUMCR_L2CPC10 | SIUMCR_APPC10 | \
                                         SIUMCR_CS10PC01 | SIUMCR_BCTLC01)
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_PBME | SYPCR_LBME | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_PBME | SYPCR_LBME | \
                         SYPCR_SWRI | SYPCR_SWP)
 
 /*-----------------------------------------------------------------------
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC | TMCNTSC_ALR | TMCNTSC_TCF | TMCNTSC_TCE)
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC | TMCNTSC_ALR | TMCNTSC_TCF | TMCNTSC_TCE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control                4-42
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS|PISCR_PTF|PISCR_PTE)
+#define CONFIG_SYS_PISCR       (PISCR_PS|PISCR_PTF|PISCR_PTE)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR       0x00000000
+#define CONFIG_SYS_SCCR        0x00000000
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Init Memory Controller:
  */
 
-#define CFG_PSDMR      0x494D2452
-#define CFG_LSDMR      0x49492552
+#define CONFIG_SYS_PSDMR       0x494D2452
+#define CONFIG_SYS_LSDMR       0x49492552
 
 /* Flash */
-#define CFG_BR0_PRELIM (PHYS_FLASH | BRx_V)
-#define CFG_OR0_PRELIM (P2SZ_TO_AM(PHYS_FLASH_SIZE) | \
+#define CONFIG_SYS_BR0_PRELIM  (PHYS_FLASH | BRx_V)
+#define CONFIG_SYS_OR0_PRELIM  (P2SZ_TO_AM(PHYS_FLASH_SIZE) | \
                         ORxG_BCTLD | \
                         ORxG_SCY_5_CLK)
 
 /* DPRAM to the PCI BUS on the protocol board */
-#define CFG_BR1_PRELIM (PHYS_DPRAM_PCI | BRx_V)
-#define CFG_OR1_PRELIM (P2SZ_TO_AM(PHYS_DPRAM_PCI_SIZE) | \
+#define CONFIG_SYS_BR1_PRELIM  (PHYS_DPRAM_PCI | BRx_V)
+#define CONFIG_SYS_OR1_PRELIM  (P2SZ_TO_AM(PHYS_DPRAM_PCI_SIZE) | \
                         ORxG_ACS_DIV4)
 
 /* 60x Bus SDRAM */
-#define CFG_BR2_PRELIM (PHYS_SDRAM_60X | BRx_MS_SDRAM_P | BRx_V)
-#define CFG_OR2_PRELIM (ORxS_SIZE_TO_AM(PHYS_SDRAM_60X_SIZE) | \
+#define CONFIG_SYS_BR2_PRELIM  (PHYS_SDRAM_60X | BRx_MS_SDRAM_P | BRx_V)
+#define CONFIG_SYS_OR2_PRELIM  (ORxS_SIZE_TO_AM(PHYS_SDRAM_60X_SIZE) | \
                         ORxS_BPD_4 | \
                         ORxS_ROWST_PBI1_A2 | \
                         ORxS_NUMR_13 | \
                         ORxS_IBID)
 
 /* Virtex-FPGA - Register */
-#define CFG_BR3_PRELIM  (PHYS_VIRTEX_REGISTER | BRx_V)
-#define CFG_OR3_PRELIM  (ORxS_SIZE_TO_AM(PHYS_VIRTEX_REGISTER_SIZE) | \
+#define CONFIG_SYS_BR3_PRELIM  (PHYS_VIRTEX_REGISTER | BRx_V)
+#define CONFIG_SYS_OR3_PRELIM  (ORxS_SIZE_TO_AM(PHYS_VIRTEX_REGISTER_SIZE) | \
                         ORxG_SCY_1_CLK | \
                         ORxG_ACS_DIV2 | \
                         ORxG_CSNT )
 
 /* local bus SDRAM */
-#define CFG_BR4_PRELIM (PHYS_SDRAM_LOCAL | BRx_PS_32 | BRx_MS_SDRAM_L | BRx_V)
-#define CFG_OR4_PRELIM (ORxS_SIZE_TO_AM(PHYS_SDRAM_LOCAL_SIZE) | \
+#define CONFIG_SYS_BR4_PRELIM  (PHYS_SDRAM_LOCAL | BRx_PS_32 | BRx_MS_SDRAM_L | BRx_V)
+#define CONFIG_SYS_OR4_PRELIM  (ORxS_SIZE_TO_AM(PHYS_SDRAM_LOCAL_SIZE) | \
                         ORxS_BPD_4 | \
                         ORxS_ROWST_PBI1_A4 | \
                         ORxS_NUMR_13)
 
 /* DPRAM to the Sharc-Bus on the protocol board */
-#define CFG_BR5_PRELIM (PHYS_DPRAM_SHARC | BRx_V)
-#define CFG_OR5_PRELIM (P2SZ_TO_AM(PHYS_DPRAM_SHARC_SIZE) | \
+#define CONFIG_SYS_BR5_PRELIM  (PHYS_DPRAM_SHARC | BRx_V)
+#define CONFIG_SYS_OR5_PRELIM  (P2SZ_TO_AM(PHYS_DPRAM_SHARC_SIZE) | \
                         ORxG_ACS_DIV4)
 
 /*
index 1f20e57197551aef471779a6050209bfc2bad609..f88a7734039ec4fcf34a2f897dc8533d70877c28 100644 (file)
 #define RSK7203_FLASH_BASE_1   0x20000000      /* Non cache */
 #define RSK7203_FLASH_BANK_SIZE        (4 * 1024 * 1024)
 
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_PROMPT     "=> "   /* Monitor Command Prompt */
-#define CFG_CBSIZE     256     /* Buffer size for input from the Console */
-#define CFG_PBSIZE     256     /* Buffer size for Console output */
-#define CFG_MAXARGS    16      /* max args accepted for monitor commands */
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_PROMPT      "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE      256     /* Buffer size for input from the Console */
+#define CONFIG_SYS_PBSIZE      256     /* Buffer size for Console output */
+#define CONFIG_SYS_MAXARGS     16      /* max args accepted for monitor commands */
 /* Buffer size for Boot Arguments passed to kernel */
-#define CFG_BARGSIZE   512
+#define CONFIG_SYS_BARGSIZE    512
 /* List of legal baudrate settings for this board */
-#define CFG_BAUDRATE_TABLE     { 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }
 
 /* SCIF */
 #define CONFIG_SCIF_CONSOLE    1
 #define CONFIG_CONS_SCIF0      1
 
-#define CFG_MEMTEST_START      RSK7203_SDRAM_BASE
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + (3 * 1024 * 1024))
+#define CONFIG_SYS_MEMTEST_START       RSK7203_SDRAM_BASE
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + (3 * 1024 * 1024))
 
-#define CFG_SDRAM_BASE         RSK7203_SDRAM_BASE
-#define CFG_SDRAM_SIZE         (32 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE          RSK7203_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_SIZE          (32 * 1024 * 1024)
 
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 1024 * 1024)
-#define CFG_MONITOR_BASE       RSK7203_FLASH_BASE_1
-#define CFG_MONITOR_LEN                (128 * 1024)
-#define CFG_MALLOC_LEN         (256 * 1024)
-#define CFG_GBL_DATA_SIZE      256
-#define CFG_BOOTMAPSZ          (8 * 1024 * 1024)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 1024 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        RSK7203_FLASH_BASE_1
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (256 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       256
+#define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
 
 /* FLASH */
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_CFI_WIDTH FLASH_CFI_16BIT
-#undef CFG_FLASH_QUIET_TEST
-#define CFG_FLASH_EMPTY_INFO   /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_BASE         RSK7203_FLASH_BASE_1
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_MAX_FLASH_SECT     64
-#define CFG_MAX_FLASH_BANKS    1
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
+#undef CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_EMPTY_INFO    /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_BASE          RSK7203_FLASH_BASE_1
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_MAX_FLASH_SECT      64
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
 
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   (64 * 1024)
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define CFG_FLASH_ERASE_TOUT   12000
-#define CFG_FLASH_WRITE_TOUT   500
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    12000
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500
 
 /* Board Clock */
 #define CONFIG_SYS_CLK_FREQ    33333333
 #define CMT_CLK_DIVIDER        32      /* 8 (default), 32, 128 or 512 */
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / CMT_CLK_DIVIDER)
 
 /* Network interface */
 #define CONFIG_DRIVER_SMC911X
index 560bf055075b2bb21dfe05d54a1ef409efc25614..f4e08c689f1300e12311a29cf9b221f4f0088d12 100644 (file)
@@ -74,7 +74,7 @@
  * 0x6      0x1         66     133    266   Close  Close  Open
  * 0x6      0x2         66     133    300   Close  Open   Close
  */
-#define CFG_SBC_MODCK_H 0x05
+#define CONFIG_SYS_SBC_MODCK_H 0x05
 
 /* Define this if you want to boot from 0x00000100. If you don't define
  * this, you will need to program the bootloader to 0xfff00000, and
  * way to do that is to program the bootloader at both addresses.
  * It is suggested that you just let U-Boot live at 0x00000000.
  */
-#define CFG_SBC_BOOT_LOW 1
+#define CONFIG_SYS_SBC_BOOT_LOW 1
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)?  This must contain TEXT_BASE from board/sacsng/config.mk
  * The main FLASH is whichever is connected to *CS0.
  */
-#define CFG_FLASH0_BASE 0x40000000
-#define CFG_FLASH0_SIZE 2
+#define CONFIG_SYS_FLASH0_BASE 0x40000000
+#define CONFIG_SYS_FLASH0_SIZE 2
 
 /* What should the base address of the secondary FLASH be and how big
  * is it (in Mbytes)?  The secondary FLASH is whichever is connected
  * to *CS6.
  */
-#define CFG_FLASH1_BASE 0x60000000
-#define CFG_FLASH1_SIZE 2
+#define CONFIG_SYS_FLASH1_BASE 0x60000000
+#define CONFIG_SYS_FLASH1_SIZE 2
 
 /* Define CONFIG_VERY_BIG_RAM to allow use of SDRAMs larger than 256MBytes
  */
 /* What should be the base address of SDRAM DIMM and how big is
  * it (in Mbytes)?  This will normally auto-configure via the SPD.
 */
-#define CFG_SDRAM0_BASE 0x00000000
-#define CFG_SDRAM0_SIZE 64
+#define CONFIG_SYS_SDRAM0_BASE 0x00000000
+#define CONFIG_SYS_SDRAM0_SIZE 64
 
 /*
  * Memory map example with 64 MB DIMM:
  *     0x03F5 FFB0     Board Info Data
  *     0x03F6 0000     Malloc Arena
  *          :              CONFIG_ENV_SECT_SIZE, 16k
- *          :              CFG_MALLOC_LEN,    128k
+ *          :              CONFIG_SYS_MALLOC_LEN,    128k
  *     0x03FC 0000     RAM Copy of Monitor Code
- *          :              CFG_MONITOR_LEN,   256k
- *     0x03FF FFFF     [End of RAM], CFG_SDRAM_SIZE - 1
+ *          :              CONFIG_SYS_MONITOR_LEN,   256k
+ *     0x03FF FFFF     [End of RAM], CONFIG_SYS_SDRAM_SIZE - 1
  */
 
-#define CONFIG_POST            (CFG_POST_MEMORY | \
-                                CFG_POST_CPU)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY | \
+                                CONFIG_SYS_POST_CPU)
 
 
 /*
  *  - RX clk is CLK11
  *  - TX clk is CLK12
  */
-# define CFG_CMXSCR_VALUE      (CMXSCR_RS1CS_CLK11  | CMXSCR_TS1CS_CLK12)
+# define CONFIG_SYS_CMXSCR_VALUE       (CMXSCR_RS1CS_CLK11  | CMXSCR_TS1CS_CLK12)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
 
  * - Select bus for bd/buffers (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE | FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
 /*
  * Configure for RAM tests.
  */
-#undef  CFG_DRAM_TEST                  /* calls other tests in board.c */
+#undef  CONFIG_SYS_DRAM_TEST                   /* calls other tests in board.c */
 
 
 /*
 #define STATUS_LED_DAT         im_ioport.iop_pdata
 
 #define STATUS_LED_BIT         0x00000800      /* LED 0 is on PA.20    */
-#define STATUS_LED_PERIOD      (CFG_HZ)
+#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ)
 #define STATUS_LED_STATE       STATUS_LED_OFF
 #define STATUS_LED_BIT1                0x00001000      /* LED 1 is on PA.19    */
-#define STATUS_LED_PERIOD1     (CFG_HZ)
+#define STATUS_LED_PERIOD1     (CONFIG_SYS_HZ)
 #define STATUS_LED_STATE1      STATUS_LED_OFF
 #define STATUS_LED_BIT2                0x00002000      /* LED 2 is on PA.18    */
-#define STATUS_LED_PERIOD2     (CFG_HZ/2)
+#define STATUS_LED_PERIOD2     (CONFIG_SYS_HZ/2)
 #define STATUS_LED_STATE2      STATUS_LED_ON
 
 #define STATUS_LED_ACTIVE      0               /* LED on for bit == 0  */
  */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 
 
 /* undef this to save memory */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 /* Monitor Command Prompt */
-#define CFG_PROMPT             "=> "
+#define CONFIG_SYS_PROMPT              "=> "
 
-#undef  CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2     "> "
+#undef  CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 /* When CONFIG_TIMESTAMP is selected, the timestamp (date and time)
 
 
 /* Where do the internal registers live? */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 #undef CONFIG_WATCHDOG                 /* disable the watchdog */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_BOOTM_HEADER_QUIET 1        /* Suppress the image header dump    */
+#define CONFIG_SYS_BOOTM_HEADER_QUIET 1        /* Suppress the image header dump    */
                                        /* in the bootm command.             */
-#define CFG_BOOTM_PROGESS_QUIET 1       /* Suppress the progress displays,   */
+#define CONFIG_SYS_BOOTM_PROGESS_QUIET 1       /* Suppress the progress displays,   */
                                        /* "## <message>" from the bootm cmd */
-#define CFG_BOOTP_CHECK_HOSTNAME 1      /* If checkhostname environment is   */
+#define CONFIG_SYS_BOOTP_CHECK_HOSTNAME 1      /* If checkhostname environment is   */
                                        /* defined, then the hostname param  */
                                        /* validated against checkhostname.  */
-#define CFG_BOOTP_RETRY_COUNT 0x40000000 /* # of timeouts before giving up   */
-#define CFG_BOOTP_SHORT_RANDOM_DELAY 1  /* Use a short random delay value    */
+#define CONFIG_SYS_BOOTP_RETRY_COUNT 0x40000000 /* # of timeouts before giving up   */
+#define CONFIG_SYS_BOOTP_SHORT_RANDOM_DELAY 1  /* Use a short random delay value    */
                                        /* (limited to maximum of 1024 msec) */
-#define CFG_CHK_FOR_ABORT_AT_LEAST_ONCE 1
+#define CONFIG_SYS_CHK_FOR_ABORT_AT_LEAST_ONCE 1
                                        /* Check for abort key presses       */
                                        /* at least once in dependent of the */
                                        /* CONFIG_BOOTDELAY value.           */
-#define CFG_CONSOLE_INFO_QUIET 1        /* Don't print console @ startup     */
-#define CFG_FAULT_ECHO_LINK_DOWN 1      /* Echo the inverted Ethernet link   */
+#define CONFIG_SYS_CONSOLE_INFO_QUIET 1        /* Don't print console @ startup     */
+#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 1      /* Echo the inverted Ethernet link   */
                                        /* state to the fault LED.           */
-#define CFG_FAULT_MII_ADDR 0x02         /* MII addr of the PHY to check for  */
+#define CONFIG_SYS_FAULT_MII_ADDR 0x02         /* MII addr of the PHY to check for  */
                                        /* the Ethernet link state.          */
-#define CFG_STATUS_FLASH_UNTIL_TFTP_OK 1 /* Keeping the status LED flashing  */
+#define CONFIG_SYS_STATUS_FLASH_UNTIL_TFTP_OK 1 /* Keeping the status LED flashing  */
                                        /* until the TFTP is successful.     */
-#define CFG_STATUS_OFF_AFTER_NETBOOT 1  /* After a successful netboot,       */
+#define CONFIG_SYS_STATUS_OFF_AFTER_NETBOOT 1  /* After a successful netboot,       */
                                        /* turn off the STATUS LEDs.         */
-#define CFG_TFTP_BLINK_STATUS_ON_DATA_IN 1 /* Blink status LED based on      */
+#define CONFIG_SYS_TFTP_BLINK_STATUS_ON_DATA_IN 1 /* Blink status LED based on      */
                                        /* incoming data.                    */
-#define CFG_TFTP_BLOCKS_PER_HASH 100    /* For every XX blocks, output a '#' */
+#define CONFIG_SYS_TFTP_BLOCKS_PER_HASH 100    /* For every XX blocks, output a '#' */
                                        /* to signify that tftp is moving.   */
-#define CFG_TFTP_HASHES_PER_FLASH 200   /* For every '#' hashes,             */
+#define CONFIG_SYS_TFTP_HASHES_PER_FLASH 200   /* For every '#' hashes,             */
                                        /* flash the status LED.             */
-#define CFG_TFTP_HASHES_PER_LINE 65     /* Only output XX '#'s per line      */
+#define CONFIG_SYS_TFTP_HASHES_PER_LINE 65     /* Only output XX '#'s per line      */
                                        /* during the tftp file transfer.    */
-#define CFG_TFTP_PROGESS_QUIET 1        /* Suppress the progress displays    */
+#define CONFIG_SYS_TFTP_PROGESS_QUIET 1        /* Suppress the progress displays    */
                                        /* '#'s from the tftp command.       */
-#define CFG_TFTP_STATUS_QUIET 1         /* Suppress the status displays      */
+#define CONFIG_SYS_TFTP_STATUS_QUIET 1         /* Suppress the status displays      */
                                        /* issued during the tftp command.   */
-#define CFG_TFTP_TIMEOUT_COUNT 5        /* How many timeouts TFTP will allow */
+#define CONFIG_SYS_TFTP_TIMEOUT_COUNT 5        /* How many timeouts TFTP will allow */
                                        /* before it gives up.               */
 
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE           1024    /* Console I/O Buffer Size           */
+#  define CONFIG_SYS_CBSIZE            1024    /* Console I/O Buffer Size           */
 #else
-#  define CFG_CBSIZE           256     /* Console I/O Buffer Size           */
+#  define CONFIG_SYS_CBSIZE            256     /* Console I/O Buffer Size           */
 #endif
 
 /* Print Buffer Size */
-#define CFG_PBSIZE       (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE        (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16)
 
-#define CFG_MAXARGS            32      /* max number of command args   */
+#define CONFIG_SYS_MAXARGS             32      /* max number of command args   */
 
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size     */
 
-#define CFG_LOAD_ADDR          0x400000   /* default load address */
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LOAD_ADDR           0x400000   /* default load address */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_ALT_MEMTEST                 /* Select full-featured memory test */
-#define CFG_MEMTEST_START      0x2000  /* memtest works from the end of */
+#define CONFIG_SYS_ALT_MEMTEST                 /* Select full-featured memory test */
+#define CONFIG_SYS_MEMTEST_START       0x2000  /* memtest works from the end of */
                                        /* the exception vector table */
                                        /* to the end of the DRAM  */
                                        /* less monitor and malloc area */
-#define CFG_STACK_USAGE                0x10000 /* Reserve 64k for the stack usage */
-#define CFG_MEM_END_USAGE      ( CFG_MONITOR_LEN \
-                               + CFG_MALLOC_LEN \
+#define CONFIG_SYS_STACK_USAGE         0x10000 /* Reserve 64k for the stack usage */
+#define CONFIG_SYS_MEM_END_USAGE       ( CONFIG_SYS_MONITOR_LEN \
+                               + CONFIG_SYS_MALLOC_LEN \
                                + CONFIG_ENV_SECT_SIZE \
-                               + CFG_STACK_USAGE )
+                               + CONFIG_SYS_STACK_USAGE )
 
-#define CFG_MEMTEST_END                ( CFG_SDRAM_SIZE * 1024 * 1024 \
-                               - CFG_MEM_END_USAGE )
+#define CONFIG_SYS_MEMTEST_END         ( CONFIG_SYS_SDRAM_SIZE * 1024 * 1024 \
+                               - CONFIG_SYS_MEM_END_USAGE )
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_FLASH_BASE CFG_FLASH0_BASE
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
-#define CFG_SDRAM_BASE CFG_SDRAM0_BASE
-#define CFG_SDRAM_SIZE CFG_SDRAM0_SIZE
+#define CONFIG_SYS_FLASH_BASE  CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_FLASH_SIZE  CONFIG_SYS_FLASH0_SIZE
+#define CONFIG_SYS_SDRAM_BASE  CONFIG_SYS_SDRAM0_BASE
+#define CONFIG_SYS_SDRAM_SIZE  CONFIG_SYS_SDRAM0_SIZE
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  */
-#if defined(CFG_SBC_BOOT_LOW)
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
+#if defined(CONFIG_SYS_SBC_BOOT_LOW)
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
 #else
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (0)
-#endif /* defined(CFG_SBC_BOOT_LOW) */
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (0)
+#endif /* defined(CONFIG_SYS_SBC_BOOT_LOW) */
 
-/* get the HRCW ISB field from CFG_IMMR */
-#define CFG_SBC_HRCW_IMMR      ( ((CFG_IMMR & 0x10000000) >> 10) | \
-                                 ((CFG_IMMR & 0x01000000) >>  7) | \
-                                 ((CFG_IMMR & 0x00100000) >>  4) )
+/* get the HRCW ISB field from CONFIG_SYS_IMMR */
+#define CONFIG_SYS_SBC_HRCW_IMMR       ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) | \
+                                 ((CONFIG_SYS_IMMR & 0x01000000) >>  7) | \
+                                 ((CONFIG_SYS_IMMR & 0x00100000) >>  4) )
 
-#define CFG_HRCW_MASTER                ( HRCW_BPS10                            | \
+#define CONFIG_SYS_HRCW_MASTER         ( HRCW_BPS10                            | \
                                  HRCW_DPPC11                           | \
-                                 CFG_SBC_HRCW_IMMR                     | \
+                                 CONFIG_SYS_SBC_HRCW_IMMR                      | \
                                  HRCW_MMR00                            | \
                                  HRCW_LBPC11                           | \
                                  HRCW_APPC10                           | \
                                  HRCW_CS10PC00                         | \
-                                 (CFG_SBC_MODCK_H & HRCW_MODCK_H1111)  | \
-                                 CFG_SBC_HRCW_BOOT_FLAGS )
+                                 (CONFIG_SYS_SBC_MODCK_H & HRCW_MODCK_H1111)   | \
+                                 CONFIG_SYS_SBC_HRCW_BOOT_FLAGS )
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
- * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependent.
  */
-#define CFG_MONITOR_BASE       CFG_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH0_BASE
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#  define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#  define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
 
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant              */
-#undef  CFG_FLASH_PROTECTION           /* use hardware protection              */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     (64+4)  /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant              */
+#undef  CONFIG_SYS_FLASH_PROTECTION            /* use hardware protection              */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      (64+4)  /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   8000    /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1       /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000    /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1       /* Timeout for Flash Write (in ms)      */
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #  define CONFIG_ENV_IS_IN_FLASH       1
 
 #  ifdef CONFIG_ENV_IN_OWN_SECT
-#    define CONFIG_ENV_ADDR    (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#    define CONFIG_ENV_ADDR    (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #    define CONFIG_ENV_SECT_SIZE       0x10000
 #  else
-#    define CONFIG_ENV_ADDR (CFG_FLASH_BASE + CFG_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
+#    define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
 #    define CONFIG_ENV_SIZE    0x1000  /* Total Size of Environment Sector     */
 #    define CONFIG_ENV_SECT_SIZE       0x10000 /* see README - env sect real size      */
 #  endif /* CONFIG_ENV_IN_OWN_SECT */
 
 #else
 #  define CONFIG_ENV_IS_IN_NVRAM       1
-#  define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #  define CONFIG_ENV_SIZE              0x200
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE  |\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE  |\
                         HID0_DCE  |\
                         HID0_ICFI |\
                         HID0_DCI  |\
                         HID0_IFEM |\
                         HID0_ABE)
 
-#define CFG_HID0_FINAL (HID0_ICE  |\
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE  |\
                         HID0_IFEM |\
                         HID0_ABE  |\
                         HID0_EMCP)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMR                0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                (BCR_ETM)
+#define CONFIG_SYS_BCR         (BCR_ETM)
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
 
-#define CFG_SIUMCR     (SIUMCR_DPPC11  |\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC11  |\
                         SIUMCR_L2CPC00 |\
                         SIUMCR_APPC10  |\
                         SIUMCR_MMR00)
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC |\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
                         SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_LBME |\
                         SYPCR_SWP  |\
                         SYPCR_SWE)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC |\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
                         SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_LBME |\
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC |\
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC |\
                         TMCNTSC_ALR |\
                         TMCNTSC_TCF |\
                         TMCNTSC_TCE)
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS  |\
+#define CONFIG_SYS_PISCR       (PISCR_PS  |\
                         PISCR_PTF |\
                         PISCR_PTE)
 
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR       0
+#define CONFIG_SYS_SCCR        0
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Initialize Memory Controller:
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR0_PRELIM ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH0_BASE & BRx_BA_MSK) |\
                         BRx_PS_16                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
  *     - One idle clock is inserted between a read access from the
  *      current bank and the next access.
  */
-#define CFG_OR0_PRELIM (MEG_TO_AM(CFG_FLASH0_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH0_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR2_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_BR3_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
  *     - Back-to-back page mode
  *     - Internal bank interleaving within save device enabled
  */
-#if (CFG_SDRAM0_SIZE == 64)
-#define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM0_SIZE)     |\
+#if (CONFIG_SYS_SDRAM0_SIZE == 64)
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE)      |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A8             |\
                         ORxS_NUMR_12)
  */
 #define SDRAM_SPD_ADDR 0x50
 
-#if (CFG_SDRAM0_SIZE == 64)
+#if (CONFIG_SYS_SDRAM0_SIZE == 64)
 /* With a 64 MB DIMM, the PSDMR is configured as follows:
  *
  *     - Bank Based Interleaving,
  *     - earliest timing for PRECHARGE after last data was written is 1 clock,
  *     - CAS Latency is 2.
  */
-#define CFG_PSDMR      (PSDMR_RFEN           |\
+#define CONFIG_SYS_PSDMR       (PSDMR_RFEN           |\
                         PSDMR_SDAM_A14_IS_A5 |\
                         PSDMR_BSMA_A14_A16   |\
                         PSDMR_SDA10_PBI0_A9  |\
  * Shoot for approximately 1MHz on the prescaler.
  */
 #if (CONFIG_8260_CLKIN >= (60 * 1000 * 1000))
-#define CFG_MPTPR      MPTPR_PTP_DIV64
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV64
 #elif (CONFIG_8260_CLKIN >= (30 * 1000 * 1000))
-#define CFG_MPTPR      MPTPR_PTP_DIV32
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV32
 #else
-#warning "Unconfigured bus clock freq: check CFG_MPTPR and CFG_PSRT are OK"
-#define CFG_MPTPR      MPTPR_PTP_DIV32
+#warning "Unconfigured bus clock freq: check CONFIG_SYS_MPTPR and CONFIG_SYS_PSRT are OK"
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV32
 #endif
-#define CFG_PSRT       14
+#define CONFIG_SYS_PSRT        14
 
 
 /*-----------------------------------------------------------------------
  *
  * The secondary FLASH is connected to *CS6
  */
-#if (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE))
+#if (defined(CONFIG_SYS_FLASH1_BASE) && defined(CONFIG_SYS_FLASH1_SIZE))
 
 /* BR6 is configured as follows:
  *
  *     - No data pipelining is done
  *     - Valid
  */
-#  define CFG_BR6_PRELIM  ((CFG_FLASH1_BASE & BRx_BA_MSK) |\
+#  define CONFIG_SYS_BR6_PRELIM  ((CONFIG_SYS_FLASH1_BASE & BRx_BA_MSK) |\
                           BRx_PS_16                      |\
                           BRx_MS_GPCM_P                  |\
                           BRx_V)
  *     - One idle clock is inserted between a read access from the
  *      current bank and the next access.
  */
-#  define CFG_OR6_PRELIM  (MEG_TO_AM(CFG_FLASH1_SIZE)  |\
+#  define CONFIG_SYS_OR6_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH1_SIZE)  |\
                           ORxG_CSNT                   |\
                           ORxG_ACS_DIV1               |\
                           ORxG_SCY_5_CLK              |\
                           ORxG_TRLX                   |\
                           ORxG_EHTR)
-#endif /* (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE)) */
+#endif /* (defined(CONFIG_SYS_FLASH1_BASE) && defined(CONFIG_SYS_FLASH1_SIZE)) */
 
 /*
  * Internal Definitions
index 110ab3904dfd9987b1a87af18e7c88b0f067ce45..d7a6ae46c5b5a66e631900a9604f924d4f75463b 100644 (file)
@@ -57,8 +57,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "[ ~ljh@GDLC ]# "       /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "[ ~ljh@GDLC ]# "       /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x30000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x33F00000      /* 63 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x30000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x33F00000      /* 63 MB in DRAM        */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x33000000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x33000000      /* default load address */
 
 /* the PWM TImer 4 uses a counter of 15625 for 10 ms, so we need */
 /* it to wrap 100 times (total 1562500) to get 1 sec. */
-#define        CFG_HZ                  1562500
+#define        CONFIG_SYS_HZ                   1562500
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
 
 #define CONFIG_AMD_LV800       1       /* uncomment this if you have a LV800 flash */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
 
 #ifdef CONFIG_AMD_LV800
 #define PHYS_FLASH_SIZE                0x00100000 /* 1MB */
-#define CFG_MAX_FLASH_SECT     (19)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x0F0000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (19)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x0F0000) /* addr of environment */
 #endif
 
 #ifdef CONFIG_AMD_LV400
 #define PHYS_FLASH_SIZE                0x00080000 /* 512KB */
-#define CFG_MAX_FLASH_SECT     (11)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x070000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (11)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x070000) /* addr of environment */
 #endif
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SIZE                0x10000 /* Total Size of Environment Sector */
  * NAND flash settings
  */
 #if defined(CONFIG_CMD_NAND)
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices           */
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices           */
 #define SECTORSIZE 512
 
 #define ADDR_COLUMN 1
 #define CONFIG_INITRD_TAG
 #define CONFIG_CMDLINE_TAG
 
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2   "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2   "> "
 
 #define CONFIG_CMDLINE_EDITING
 
index 759e4e2acae5b558a1ea59480298e03729c5831c..d93ca2d98f2adaece7c8d70831ef7f8eb3e01893 100644 (file)
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
-#undef CFG_HUSH_PARSER                 /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef CONFIG_SYS_HUSH_PARSER                  /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#undef CFG_EXT_SERIAL_CLOCK            /* no external serial clock used */
-#define CFG_IGNORE_405_UART_ERRATA_59  /* ignore ppc405gp errata #59   */
-#define CFG_BASE_BAUD          691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* no external serial clock used */
+#define CONFIG_SYS_IGNORE_405_UART_ERRATA_59   /* ignore ppc405gp errata #59   */
+#define CONFIG_SYS_BASE_BAUD           691200
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE                                     \
+#define CONFIG_SYS_BAUDRATE_TABLE                                      \
        { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400,       \
         57600, 115200, 230400, 460800, 921600 }
 
-#define CFG_LOAD_ADDR  0x100000        /* default load address */
-#define CFG_EXTBDINFO  1               /* To use extended board_info (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR   0x100000        /* default load address */
+#define CONFIG_SYS_EXTBDINFO   1               /* To use extended board_info (bd_t) */
 
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_VERSION_VARIABLE        1       /* include version env variable */
 
-#define CFG_RX_ETH_BUFFER      16      /* use 16 rx buffer on 405 emac */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* use 16 rx buffer on 405 emac */
 
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support    */
 #undef  CONFIG_SOFT_I2C                        /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 
 #define CONFIG_PCI_SCAN_SHOW           /* print pci devices @ startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID        0x12FE  /* PCI Vendor ID: esd gmbh      */
-#define CFG_PCI_SUBSYS_DEVICEID        0x0408  /* PCI Device ID: PMC-405       */
-#define CFG_PCI_CLASSCODE      0x0b20  /* PCI Class Code: Processor/PPC*/
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0xfc000001      /* 64MB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI        0x00000000      /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0xffc00000      /* point to flash               */
-#define CFG_PCI_PTM2MS 0xffc00001      /* 4MB, enable                  */
-#define CFG_PCI_PTM2PCI        0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0408  /* PCI Device ID: PMC-405       */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0b20  /* PCI Class Code: Processor/PPC*/
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0xfc000001      /* 64MB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
+#define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_MONITOR_BASE       0xFFFC0000
-#define CFG_MONITOR_LEN        (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_MONITOR_BASE        0xFFFC0000
+#define CONFIG_SYS_MONITOR_LEN (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN  (128 * 1024)    /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant              */
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_ERASE_TOUT   120000  /* Flash Erase Timeout (in ms)          */
-#define CFG_FLASH_INCREMENT    0x01000000
-#undef CFG_FLASH_PROTECTION            /* don't use hardware protection        */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)          */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip    */
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant              */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Flash Erase Timeout (in ms)          */
+#define CONFIG_SYS_FLASH_INCREMENT     0x01000000
+#undef CONFIG_SYS_FLASH_PROTECTION             /* don't use hardware protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)          */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip    */
 
 /*-----------------------------------------------------------------------
  * Environment Variable setup
  */
-#define CONFIG_ENV_ADDR        CFG_FLASH_BASE  /* starting right at the beginning      */
+#define CONFIG_ENV_ADDR        CONFIG_SYS_FLASH_BASE   /* starting right at the beginning      */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_OFFSET              0       /* starting right at the beginning      */
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* see README - env sector total size   */
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  */
-#define FLASH0_BA      CFG_FLASH_BASE          /* FLASH 0 Base Address         */
+#define FLASH0_BA      CONFIG_SYS_FLASH_BASE           /* FLASH 0 Base Address         */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP  0x92015480
-#define CFG_EBC_PB0CR  FLASH0_BA | 0x9C000 /* BAS=0xFF0,BS=16MB,BU=R/W,BW=32bit*/
+#define CONFIG_SYS_EBC_PB0AP   0x92015480
+#define CONFIG_SYS_EBC_PB0CR   FLASH0_BA | 0x9C000 /* BAS=0xFF0,BS=16MB,BU=R/W,BW=32bit*/
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 
 /* use on chip memory ( OCM ) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
index 10ff7ab40ed53199c3257b2747a999714f82466f..d19a787e9283123b864f3ac2ddfb797283c0926b 100644 (file)
@@ -45,7 +45,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                9600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_PREBOOT  "echo;echo Welcome to U-Boot for the sbc8240;echo;echo Type \"? or help\" to get on-line help;echo"
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 
 #if 1
-#define CFG_HUSH_PARSER                1       /* use "hush" command parser    */
+#define CONFIG_SYS_HUSH_PARSER         1       /* use "hush" command parser    */
 #endif
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #define CONFIG_ETHADDR          DE:AD:BE:EF:01:01    /* Ethernet address */
 #define CONFIG_BOARD_SPECIFIC_LED       /* version has board specific leds */
 
 #define STATUS_LED_BIT          0x00000001
-#define STATUS_LED_PERIOD       (CFG_HZ / 2)
+#define STATUS_LED_PERIOD       (CONFIG_SYS_HZ / 2)
 #define STATUS_LED_STATE        STATUS_LED_BLINKING
 #define STATUS_LED_ACTIVE       0       /* LED on for bit == 0  */
 #define STATUS_LED_BOOT         0       /* LED 0 used for boot status */
@@ -137,15 +137,15 @@ typedef unsigned int led_id_t;
 
 #define __led_toggle(_msk) \
        do { \
-               *((volatile char *) (CFG_LED_BASE)) ^= (_msk); \
+               *((volatile char *) (CONFIG_SYS_LED_BASE)) ^= (_msk); \
        } while(0)
 
 #define __led_set(_msk, _st) \
        do { \
                if ((_st)) \
-                       *((volatile char *) (CFG_LED_BASE)) |= (_msk); \
+                       *((volatile char *) (CONFIG_SYS_LED_BASE)) |= (_msk); \
                else \
-                       *((volatile char *) (CFG_LED_BASE)) &= ~(_msk); \
+                       *((volatile char *) (CONFIG_SYS_LED_BASE)) &= ~(_msk); \
        } while(0)
 
 #define __led_init(msk, st) __led_set(msk, st)
@@ -153,44 +153,44 @@ typedef unsigned int led_id_t;
 #endif
 
 #define CONFIG_MISC_INIT_R
-#define CFG_LED_BASE   0xFFE80000
+#define CONFIG_SYS_LED_BASE    0xFFE80000
 
 /* Print Buffer Size
  */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
-#define CFG_FLASH_BASE     0xFFF00000
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_FLASH_BASE      0xFFF00000
 
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_EUMB_ADDR      0xFCE00000
+#define CONFIG_SYS_EUMB_ADDR       0xFCE00000
 
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-#define CFG_MEMTEST_START   0x00004000 /* memtest works on             */
-#define CFG_MEMTEST_END            0x02000000  /* 0 ... 32 MB in DRAM          */
+#define CONFIG_SYS_MEMTEST_START   0x00004000  /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END     0x02000000  /* 0 ... 32 MB in DRAM          */
 
        /* Maximum amount of RAM.
         */
-#define CFG_MAX_RAM_SIZE    0x10000000
+#define CONFIG_SYS_MAX_RAM_SIZE    0x10000000
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 /*-----------------------------------------------------------------------
@@ -199,23 +199,23 @@ typedef unsigned int led_id_t;
 
        /* Size in bytes reserved for initial data
         */
-#define CFG_GBL_DATA_SIZE    128
+#define CONFIG_SYS_GBL_DATA_SIZE    128
 
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
-#define CFG_NS16550_CLK                3686400
+#define CONFIG_SYS_NS16550_CLK         3686400
 
-#define CFG_NS16550_COM1       0xFFF80000
+#define CONFIG_SYS_NS16550_COM1        0xFFF80000
 
 /*
  * Low Level Configuration Settings
@@ -225,36 +225,36 @@ typedef unsigned int led_id_t;
  */
 
 #define CONFIG_SYS_CLK_FREQ  33000000
-#define CFG_HZ              1000
+#define CONFIG_SYS_HZ               1000
 #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER 3
 
        /* Bit-field values for MCCR1.
         */
-#define CFG_ROMNAL         0
-#define CFG_ROMFAL         7
+#define CONFIG_SYS_ROMNAL          0
+#define CONFIG_SYS_ROMFAL          7
 
        /* Bit-field values for MCCR2.
         */
-#define CFG_REFINT         430     /* Refresh interval                 */
+#define CONFIG_SYS_REFINT          430     /* Refresh interval                 */
 
        /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4.
         */
-#define CFG_BSTOPRE        192
+#define CONFIG_SYS_BSTOPRE         192
 
        /* Bit-field values for MCCR3.
         */
-#define CFG_REFREC         2       /* Refresh to activate interval     */
-#define CFG_RDLAT          3       /* Data latancy from read command   */
+#define CONFIG_SYS_REFREC          2       /* Refresh to activate interval     */
+#define CONFIG_SYS_RDLAT           3       /* Data latancy from read command   */
 
        /* Bit-field values for MCCR4.
         */
-#define CFG_PRETOACT       2       /* Precharge to activate interval   */
-#define CFG_ACTTOPRE       5       /* Activate to Precharge interval   */
-#define CFG_SDMODE_CAS_LAT  2      /* SDMODE CAS latancy               */
-#define CFG_SDMODE_WRAP            0       /* SDMODE wrap type                 */
-#define CFG_SDMODE_BURSTLEN 2      /* SDMODE Burst length              */
-#define CFG_ACTORW         2
-#define CFG_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_PRETOACT        2       /* Precharge to activate interval   */
+#define CONFIG_SYS_ACTTOPRE        5       /* Activate to Precharge interval   */
+#define CONFIG_SYS_SDMODE_CAS_LAT  2       /* SDMODE CAS latancy               */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type                 */
+#define CONFIG_SYS_SDMODE_BURSTLEN 2       /* SDMODE Burst length              */
+#define CONFIG_SYS_ACTORW          2
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
 
 /* Memory bank settings.
  * Only bits 20-29 are actually used from these vales to set the
@@ -263,69 +263,69 @@ typedef unsigned int led_id_t;
  * address. Refer to the MPC8240 book.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START            0x3ff00000
-#define CFG_BANK1_END      0x3fffffff
-#define CFG_BANK1_ENABLE    0
-#define CFG_BANK2_START            0x3ff00000
-#define CFG_BANK2_END      0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START            0x3ff00000
-#define CFG_BANK3_END      0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START            0x3ff00000
-#define CFG_BANK4_END      0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START            0x3ff00000
-#define CFG_BANK5_END      0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START            0x3ff00000
-#define CFG_BANK6_END      0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START            0x3ff00000
-#define CFG_BANK7_END      0x3fffffff
-#define CFG_BANK7_ENABLE    0
-
-#define CFG_ODCR           0xff
-
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-
-#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT3L  (0xFC000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xFC000000 | BATU_BL_64M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     0x3ff00000
+#define CONFIG_SYS_BANK1_END       0x3fffffff
+#define CONFIG_SYS_BANK1_ENABLE    0
+#define CONFIG_SYS_BANK2_START     0x3ff00000
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
+
+#define CONFIG_SYS_ODCR            0xff
+
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT3L  (0xFC000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xFC000000 | BATU_BL_64M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* Max number of flash banks            */
-#define CFG_MAX_FLASH_SECT     256     /* Max number of sectors in one bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* Max number of flash banks            */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* Max number of sectors in one bank    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /*
  * Init Memory Controller:
@@ -333,7 +333,7 @@ typedef unsigned int led_id_t;
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM      CFG_FLASH_BASE  /* FLASH bank #0        */
+#define FLASH_BASE0_PRELIM      CONFIG_SYS_FLASH_BASE  /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM      0               /* FLASH bank #1        */
 
        /* Warining: environment is not EMBEDDED in the U-Boot code.
@@ -348,9 +348,9 @@ typedef unsigned int led_id_t;
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
@@ -370,5 +370,5 @@ typedef unsigned int led_id_t;
 #define CONFIG_NET_MULTI               /* Multi ethernet cards support */
 #define CONFIG_TULIP
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8       /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8       /* use 8 rx buffer on eepro100  */
 #endif /* __CONFIG_H */
index e96adb949cc4f718b6a3770fda689f4e8c79ae23..26ed55795e20a65bb135016a903a7f0d8f5c6cc8 100644 (file)
@@ -73,7 +73,7 @@
  * 0x6      0x1         66     133    266   Close  Close  Open
  * 0x6      0x2         66     133    300   Close  Open   Close
  */
-#define CFG_SBC_MODCK_H 0x05
+#define CONFIG_SYS_SBC_MODCK_H 0x05
 
 /* Define this if you want to boot from 0x00000100. If you don't define
  * this, you will need to program the bootloader to 0xfff00000, and
  * way to do that is to program the bootloader at both addresses.
  * It is suggested that you just let U-Boot live at 0x00000000.
  */
-#define CFG_SBC_BOOT_LOW 1
+#define CONFIG_SYS_SBC_BOOT_LOW 1
 
 /* What should the base address of the main FLASH be and how big is
  * it (in MBytes)? This must contain TEXT_BASE from board/sbc8260/config.mk
  * The main FLASH is whichever is connected to *CS0. U-Boot expects
  * this to be the SIMM.
  */
-#define CFG_FLASH0_BASE 0x40000000
-#define CFG_FLASH0_SIZE 4
+#define CONFIG_SYS_FLASH0_BASE 0x40000000
+#define CONFIG_SYS_FLASH0_SIZE 4
 
 /* What should the base address of the secondary FLASH be and how big
  * is it (in Mbytes)? The secondary FLASH is whichever is connected
  * to *CS6. U-Boot expects this to be the on board FLASH. If you don't
  * want it enabled, don't define these constants.
  */
-#define CFG_FLASH1_BASE 0x60000000
-#define CFG_FLASH1_SIZE 2
+#define CONFIG_SYS_FLASH1_BASE 0x60000000
+#define CONFIG_SYS_FLASH1_SIZE 2
 
 /* What should be the base address of SDRAM DIMM and how big is
  * it (in Mbytes)?
 */
-#define CFG_SDRAM0_BASE 0x00000000
-#define CFG_SDRAM0_SIZE 64
+#define CONFIG_SYS_SDRAM0_BASE 0x00000000
+#define CONFIG_SYS_SDRAM0_SIZE 64
 
 /* What should be the base address of the LEDs and switch S0?
  * If you don't want them enabled, don't define this.
  */
-#define CFG_LED_BASE 0xa0000000
+#define CONFIG_SYS_LED_BASE 0xa0000000
 
 
 /*
  *     0x00F5 FFB0     Board Info Data
  *     0x00F6 0000     Malloc Arena
  *          :              CONFIG_ENV_SECT_SIZE, 256k
- *          :              CFG_MALLOC_LEN,    128k
+ *          :              CONFIG_SYS_MALLOC_LEN,    128k
  *     0x00FC 0000     RAM Copy of Monitor Code
- *          :              CFG_MONITOR_LEN,   256k
- *     0x00FF FFFF     [End of RAM], CFG_SDRAM_SIZE - 1
+ *          :              CONFIG_SYS_MONITOR_LEN,   256k
+ *     0x00FF FFFF     [End of RAM], CONFIG_SYS_SDRAM_SIZE - 1
  */
 
 /*
  *     0x03F5 FFB0     Board Info Data
  *     0x03F6 0000     Malloc Arena
  *          :              CONFIG_ENV_SECT_SIZE, 256k
- *          :              CFG_MALLOC_LEN,    128k
+ *          :              CONFIG_SYS_MALLOC_LEN,    128k
  *     0x03FC 0000     RAM Copy of Monitor Code
- *          :              CFG_MONITOR_LEN,   256k
- *     0x03FF FFFF     [End of RAM], CFG_SDRAM_SIZE - 1
+ *          :              CONFIG_SYS_MONITOR_LEN,   256k
+ *     0x03FF FFFF     [End of RAM], CONFIG_SYS_SDRAM_SIZE - 1
  */
 
 
  *  - RX clk is CLK11
  *  - TX clk is CLK12
  */
-# define CFG_CMXSCR_VALUE      (CMXSCR_RS1CS_CLK11  | CMXSCR_TS1CS_CLK12)
+# define CONFIG_SYS_CMXSCR_VALUE       (CMXSCR_RS1CS_CLK11  | CMXSCR_TS1CS_CLK12)
 
 #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2)
 
  * - Select bus for bd/buffers (see 28-13)
  * - Enable Full Duplex in FSMR
  */
-# define CFG_CMXFCR_MASK       (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
-# define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
-# define CFG_CPMFCR_RAMTYPE    0
-# define CFG_FCC_PSMR          (FCC_PSMR_FDE | FCC_PSMR_LPB)
+# define CONFIG_SYS_CMXFCR_MASK        (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK)
+# define CONFIG_SYS_CMXFCR_VALUE       (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14)
+# define CONFIG_SYS_CPMFCR_RAMTYPE     0
+# define CONFIG_SYS_FCC_PSMR           (FCC_PSMR_FDE | FCC_PSMR_LPB)
 
 #endif /* CONFIG_ETHER_ON_FCC, CONFIG_ETHER_INDEX */
 
  */
 #undef  CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * Software (bit-bang) I2C driver configuration
 
 
 /* undef this to save memory */
-#define CFG_LONGHELP
+#define CONFIG_SYS_LONGHELP
 
 /* Monitor Command Prompt */
-#define CFG_PROMPT             "=> "
+#define CONFIG_SYS_PROMPT              "=> "
 
-#undef  CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#undef  CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 /* When CONFIG_TIMESTAMP is selected, the timestamp (date and time)
 #undef CONFIG_WATCHDOG                         /* disable the watchdog */
 
 /* Where do the internal registers live? */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*****************************************************************************
  *
  * Miscellaneous configurable options
  */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CBSIZE           1024    /* Console I/O Buffer Size           */
+#  define CONFIG_SYS_CBSIZE            1024    /* Console I/O Buffer Size           */
 #else
-#  define CFG_CBSIZE           256     /* Console I/O Buffer Size           */
+#  define CONFIG_SYS_CBSIZE            256     /* Console I/O Buffer Size           */
 #endif
 
 /* Print Buffer Size */
-#define CFG_PBSIZE       (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)
+#define CONFIG_SYS_PBSIZE        (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16)
 
-#define CFG_MAXARGS            32      /* max number of command args   */
+#define CONFIG_SYS_MAXARGS             32      /* max number of command args   */
 
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size     */
 
-#define CFG_LOAD_ADDR          0x400000   /* default load address */
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_LOAD_ADDR           0x400000   /* default load address */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_ALT_MEMTEST                        /* Select full-featured memory test */
-#define CFG_MEMTEST_START      0x2000  /* memtest works from the end of */
+#define CONFIG_SYS_ALT_MEMTEST                 /* Select full-featured memory test */
+#define CONFIG_SYS_MEMTEST_START       0x2000  /* memtest works from the end of */
                                        /* the exception vector table */
                                        /* to the end of the DRAM  */
                                        /* less monitor and malloc area */
-#define CFG_STACK_USAGE                0x10000 /* Reserve 64k for the stack usage */
-#define CFG_MEM_END_USAGE      ( CFG_MONITOR_LEN \
-                               + CFG_MALLOC_LEN \
+#define CONFIG_SYS_STACK_USAGE         0x10000 /* Reserve 64k for the stack usage */
+#define CONFIG_SYS_MEM_END_USAGE       ( CONFIG_SYS_MONITOR_LEN \
+                               + CONFIG_SYS_MALLOC_LEN \
                                + CONFIG_ENV_SECT_SIZE \
-                               + CFG_STACK_USAGE )
+                               + CONFIG_SYS_STACK_USAGE )
 
-#define CFG_MEMTEST_END                ( CFG_SDRAM_SIZE * 1024 * 1024 \
-                               - CFG_MEM_END_USAGE )
+#define CONFIG_SYS_MEMTEST_END         ( CONFIG_SYS_SDRAM_SIZE * 1024 * 1024 \
+                               - CONFIG_SYS_MEM_END_USAGE )
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
  * You should know what you are doing if you make changes here.
  */
 
-#define CFG_FLASH_BASE CFG_FLASH0_BASE
-#define CFG_FLASH_SIZE CFG_FLASH0_SIZE
-#define CFG_SDRAM_BASE CFG_SDRAM0_BASE
-#define CFG_SDRAM_SIZE CFG_SDRAM0_SIZE
+#define CONFIG_SYS_FLASH_BASE  CONFIG_SYS_FLASH0_BASE
+#define CONFIG_SYS_FLASH_SIZE  CONFIG_SYS_FLASH0_SIZE
+#define CONFIG_SYS_SDRAM_BASE  CONFIG_SYS_SDRAM0_BASE
+#define CONFIG_SYS_SDRAM_SIZE  CONFIG_SYS_SDRAM0_SIZE
 
 /*-----------------------------------------------------------------------
  * Hard Reset Configuration Words
  */
-#if defined(CFG_SBC_BOOT_LOW)
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
+#if defined(CONFIG_SYS_SBC_BOOT_LOW)
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (HRCW_CIP | HRCW_BMS)
 #else
-#  define  CFG_SBC_HRCW_BOOT_FLAGS  (0)
-#endif /* defined(CFG_SBC_BOOT_LOW) */
+#  define  CONFIG_SYS_SBC_HRCW_BOOT_FLAGS  (0)
+#endif /* defined(CONFIG_SYS_SBC_BOOT_LOW) */
 
-/* get the HRCW ISB field from CFG_IMMR */
-#define CFG_SBC_HRCW_IMMR      ( ((CFG_IMMR & 0x10000000) >> 10) | \
-                                 ((CFG_IMMR & 0x01000000) >>  7) | \
-                                 ((CFG_IMMR & 0x00100000) >>  4) )
+/* get the HRCW ISB field from CONFIG_SYS_IMMR */
+#define CONFIG_SYS_SBC_HRCW_IMMR       ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) | \
+                                 ((CONFIG_SYS_IMMR & 0x01000000) >>  7) | \
+                                 ((CONFIG_SYS_IMMR & 0x00100000) >>  4) )
 
-#define CFG_HRCW_MASTER                ( HRCW_BPS11                            | \
+#define CONFIG_SYS_HRCW_MASTER         ( HRCW_BPS11                            | \
                                  HRCW_DPPC11                           | \
-                                 CFG_SBC_HRCW_IMMR                     | \
+                                 CONFIG_SYS_SBC_HRCW_IMMR                      | \
                                  HRCW_MMR00                            | \
                                  HRCW_LBPC11                           | \
                                  HRCW_APPC10                           | \
                                  HRCW_CS10PC00                         | \
-                                 (CFG_SBC_MODCK_H & HRCW_MODCK_H1111)  | \
-                                 CFG_SBC_HRCW_BOOT_FLAGS )
+                                 (CONFIG_SYS_SBC_MODCK_H & HRCW_MODCK_H1111)   | \
+                                 CONFIG_SYS_SBC_HRCW_BOOT_FLAGS )
 
 /* no slaves */
-#define CFG_HRCW_SLAVE1                0
-#define CFG_HRCW_SLAVE2                0
-#define CFG_HRCW_SLAVE3                0
-#define CFG_HRCW_SLAVE4                0
-#define CFG_HRCW_SLAVE5                0
-#define CFG_HRCW_SLAVE6                0
-#define CFG_HRCW_SLAVE7                0
+#define CONFIG_SYS_HRCW_SLAVE1         0
+#define CONFIG_SYS_HRCW_SLAVE2         0
+#define CONFIG_SYS_HRCW_SLAVE3         0
+#define CONFIG_SYS_HRCW_SLAVE4         0
+#define CONFIG_SYS_HRCW_SLAVE5         0
+#define CONFIG_SYS_HRCW_SLAVE6         0
+#define CONFIG_SYS_HRCW_SLAVE7         0
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define CFG_INIT_RAM_END       0x4000  /* End of used area in DPRAM    */
-#define CFG_GBL_DATA_SIZE      128     /* bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define CONFIG_SYS_INIT_RAM_END        0x4000  /* End of used area in DPRAM    */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
- * Note also that the logic that sets CFG_RAMBOOT is platform dependent.
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
+ * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependent.
  */
-#define CFG_MONITOR_BASE       CFG_FLASH0_BASE
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH0_BASE
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#  define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#  define CONFIG_SYS_RAMBOOT
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     16      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      16      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   8000    /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   1       /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    8000    /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    1       /* Timeout for Flash Write (in ms)      */
 
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
 #  define CONFIG_ENV_IS_IN_FLASH       1
 
 #  ifdef CONFIG_ENV_IN_OWN_SECT
-#    define CONFIG_ENV_ADDR    (CFG_MONITOR_BASE + 0x40000)
+#    define CONFIG_ENV_ADDR    (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #    define CONFIG_ENV_SECT_SIZE       0x40000
 #  else
-#    define CONFIG_ENV_ADDR (CFG_FLASH_BASE + CFG_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
+#    define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SECT_SIZE)
 #    define CONFIG_ENV_SIZE    0x1000  /* Total Size of Environment Sector     */
 #    define CONFIG_ENV_SECT_SIZE       0x10000 /* see README - env sect real size      */
 #  endif /* CONFIG_ENV_IN_OWN_SECT */
 
 #else
 #  define CONFIG_ENV_IS_IN_NVRAM       1
-#  define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+#  define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
 #  define CONFIG_ENV_SIZE              0x200
-#endif /* CFG_RAMBOOT */
+#endif /* CONFIG_SYS_RAMBOOT */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32      /* For MPC8260 CPU */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8260 CPU */
 
 #if defined(CONFIG_CMD_KGDB)
-# define CFG_CACHELINE_SHIFT   5       /* log base 2 of the above value */
+# define CONFIG_SYS_CACHELINE_SHIFT    5       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  *
  * HID1 has only read-only information - nothing to set.
  */
-#define CFG_HID0_INIT  (HID0_ICE  |\
+#define CONFIG_SYS_HID0_INIT   (HID0_ICE  |\
                         HID0_DCE  |\
                         HID0_ICFI |\
                         HID0_DCI  |\
                         HID0_IFEM |\
                         HID0_ABE)
 
-#define CFG_HID0_FINAL (HID0_ICE  |\
+#define CONFIG_SYS_HID0_FINAL  (HID0_ICE  |\
                         HID0_IFEM |\
                         HID0_ABE  |\
                         HID0_EMCP)
-#define CFG_HID2       0
+#define CONFIG_SYS_HID2        0
 
 /*-----------------------------------------------------------------------
  * RMR - Reset Mode Register
  *-----------------------------------------------------------------------
  */
-#define CFG_RMR                0
+#define CONFIG_SYS_RMR         0
 
 /*-----------------------------------------------------------------------
  * BCR - Bus Configuration                                      4-25
  *-----------------------------------------------------------------------
  */
-#define CFG_BCR                (BCR_ETM)
+#define CONFIG_SYS_BCR         (BCR_ETM)
 
 /*-----------------------------------------------------------------------
  * SIUMCR - SIU Module Configuration                            4-31
  *-----------------------------------------------------------------------
  */
 
-#define CFG_SIUMCR     (SIUMCR_DPPC11  |\
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DPPC11  |\
                         SIUMCR_L2CPC00 |\
                         SIUMCR_APPC10  |\
                         SIUMCR_MMR00)
  * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC |\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
                         SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_LBME |\
                         SYPCR_SWP  |\
                         SYPCR_SWE)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC |\
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC |\
                         SYPCR_BMT  |\
                         SYPCR_PBME |\
                         SYPCR_LBME |\
  * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk,
  * and enable Time Counter
  */
-#define CFG_TMCNTSC    (TMCNTSC_SEC |\
+#define CONFIG_SYS_TMCNTSC     (TMCNTSC_SEC |\
                         TMCNTSC_ALR |\
                         TMCNTSC_TCF |\
                         TMCNTSC_TCE)
  * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable
  * Periodic timer
  */
-#define CFG_PISCR      (PISCR_PS  |\
+#define CONFIG_SYS_PISCR       (PISCR_PS  |\
                         PISCR_PTF |\
                         PISCR_PTE)
 
  * SCCR - System Clock Control                                  9-8
  *-----------------------------------------------------------------------
  */
-#define CFG_SCCR       0
+#define CONFIG_SYS_SCCR        0
 
 /*-----------------------------------------------------------------------
  * RCCR - RISC Controller Configuration                                13-7
  *-----------------------------------------------------------------------
  */
-#define CFG_RCCR       0
+#define CONFIG_SYS_RCCR        0
 
 /*
  * Initialize Memory Controller:
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR0_PRELIM ((CFG_FLASH0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR0_PRELIM  ((CONFIG_SYS_FLASH0_BASE & BRx_BA_MSK) |\
                         BRx_PS_32                      |\
                         BRx_MS_GPCM_P                  |\
                         BRx_V)
  *     - One idle clock is inserted between a read access from the
  *      current bank and the next access.
  */
-#define CFG_OR0_PRELIM (MEG_TO_AM(CFG_FLASH0_SIZE)     |\
+#define CONFIG_SYS_OR0_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH0_SIZE)      |\
                         ORxG_CSNT                      |\
                         ORxG_ACS_DIV1                  |\
                         ORxG_SCY_5_CLK                 |\
  *     - No data pipelining is done
  *     - Valid
  */
-#define CFG_BR2_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR2_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
 
-#define CFG_BR3_PRELIM ((CFG_SDRAM0_BASE & BRx_BA_MSK) |\
+#define CONFIG_SYS_BR3_PRELIM  ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\
                         BRx_PS_64                      |\
                         BRx_MS_SDRAM_P                 |\
                         BRx_V)
  *     - Back-to-back page mode
  *     - Internal bank interleaving within save device enabled
  */
-#if (CFG_SDRAM0_SIZE == 16)
-#define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM0_SIZE)     |\
+#if (CONFIG_SYS_SDRAM0_SIZE == 16)
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE)      |\
                         ORxS_BPD_2                     |\
                         ORxS_ROWST_PBI0_A9             |\
                         ORxS_NUMR_11)
  *     - Back-to-back page mode
  *     - Internal bank interleaving within save device enabled
  */
-#if (CFG_SDRAM0_SIZE == 64)
-#define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM0_SIZE)     |\
+#if (CONFIG_SYS_SDRAM0_SIZE == 64)
+#define CONFIG_SYS_OR2_PRELIM  (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE)      |\
                         ORxS_BPD_4                     |\
                         ORxS_ROWST_PBI0_A8             |\
                         ORxS_NUMR_12)
  */
 #define SDRAM_SPD_ADDR 0x54
 
-#if (CFG_SDRAM0_SIZE == 16)
+#if (CONFIG_SYS_SDRAM0_SIZE == 16)
 /* With a 16 MB DIMM, the PSDMR is configured as follows:
  *
  *     - Bank Based Interleaving,
  *     - earliest timing for PRECHARGE after last data was written is 1 clock,
  *     - CAS Latency is 2.
  */
-#define CFG_PSDMR      (PSDMR_RFEN           |\
+#define CONFIG_SYS_PSDMR       (PSDMR_RFEN           |\
                         PSDMR_SDAM_A14_IS_A5 |\
                         PSDMR_BSMA_A16_A18   |\
                         PSDMR_SDA10_PBI0_A9  |\
                         PSDMR_CL_2)
 #endif
 
-#if (CFG_SDRAM0_SIZE == 64)
+#if (CONFIG_SYS_SDRAM0_SIZE == 64)
 /* With a 64 MB DIMM, the PSDMR is configured as follows:
  *
  *     - Bank Based Interleaving,
  *     - earliest timing for PRECHARGE after last data was written is 1 clock,
  *     - CAS Latency is 2.
  */
-#define CFG_PSDMR      (PSDMR_RFEN           |\
+#define CONFIG_SYS_PSDMR       (PSDMR_RFEN           |\
                         PSDMR_SDAM_A14_IS_A5 |\
                         PSDMR_BSMA_A14_A16   |\
                         PSDMR_SDA10_PBI0_A9  |\
  * Shoot for approximately 1MHz on the prescaler.
  */
 #if (CONFIG_8260_CLKIN == (66 * 1000 * 1000))
-#define CFG_MPTPR      MPTPR_PTP_DIV64
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV64
 #elif (CONFIG_8260_CLKIN == (33 * 1000 * 1000))
-#define CFG_MPTPR      MPTPR_PTP_DIV32
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV32
 #else
-#warning "Unconfigured bus clock freq: check CFG_MPTPR and CFG_PSRT are OK"
-#define CFG_MPTPR      MPTPR_PTP_DIV32
+#warning "Unconfigured bus clock freq: check CONFIG_SYS_MPTPR and CONFIG_SYS_PSRT are OK"
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV32
 #endif
-#define CFG_PSRT       14
+#define CONFIG_SYS_PSRT        14
 
 
 /* Bank 4 - On board SDRAM
  * This expects the on board FLASH SIMM to be connected to *CS6
  * It consists of 1 AM29F016A part.
  */
-#if (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE))
+#if (defined(CONFIG_SYS_FLASH1_BASE) && defined(CONFIG_SYS_FLASH1_SIZE))
 
 /* BR6 is configured as follows:
  *
  *     - No data pipelining is done
  *     - Valid
  */
-#  define CFG_BR6_PRELIM  ((CFG_FLASH1_BASE & BRx_BA_MSK) |\
+#  define CONFIG_SYS_BR6_PRELIM  ((CONFIG_SYS_FLASH1_BASE & BRx_BA_MSK) |\
                           BRx_PS_8                       |\
                           BRx_MS_GPCM_P                  |\
                           BRx_V)
  *     - One idle clock is inserted between a read access from the
  *      current bank and the next access.
  */
-#  define CFG_OR6_PRELIM  (MEG_TO_AM(CFG_FLASH1_SIZE)  |\
+#  define CONFIG_SYS_OR6_PRELIM  (MEG_TO_AM(CONFIG_SYS_FLASH1_SIZE)  |\
                           ORxG_CSNT                   |\
                           ORxG_ACS_DIV1               |\
                           ORxG_SCY_5_CLK              |\
                           ORxG_TRLX                   |\
                           ORxG_EHTR)
-#endif /* (defined(CFG_FLASH1_BASE) && defined(CFG_FLASH1_SIZE)) */
+#endif /* (defined(CONFIG_SYS_FLASH1_BASE) && defined(CONFIG_SYS_FLASH1_SIZE)) */
 
 /*-----------------------------------------------------------------------
  * BR7 - Base Register
  *  LEDs     are at 0x00001 (write only)
  *  switches are at 0x00001 (read only)
  */
-#ifdef CFG_LED_BASE
+#ifdef CONFIG_SYS_LED_BASE
 
 /* BR7 is configured as follows:
  *
  *     - No data pipelining is done
  *     - Valid
  */
-#  define CFG_BR7_PRELIM  ((CFG_LED_BASE & BRx_BA_MSK)  |\
+#  define CONFIG_SYS_BR7_PRELIM  ((CONFIG_SYS_LED_BASE & BRx_BA_MSK)    |\
                           BRx_PS_8                      |\
                           BRx_MS_GPCM_P                 |\
                           BRx_V)
  *     - One idle clock is inserted between a read access from the
  *      current bank and the next access.
  */
-#  define CFG_OR7_PRELIM  (ORxG_AM_MSK                |\
+#  define CONFIG_SYS_OR7_PRELIM  (ORxG_AM_MSK                 |\
                           ORxG_CSNT                   |\
                           ORxG_ACS_DIV1               |\
                           ORxG_SCY_15_CLK             |\
                           ORxG_TRLX                   |\
                           ORxG_EHTR)
-#endif /* CFG_LED_BASE */
+#endif /* CONFIG_SYS_LED_BASE */
 
 /*
  * Internal Definitions
index dc5a1011d946dfd8212d4d24a5c777429417330c..174149b616a8cdabc6096037b9081e9de58e1736 100644 (file)
 
 #undef CONFIG_BOARD_EARLY_INIT_F               /* call board_pre_init */
 
-#define CFG_IMMR               0xE0000000
+#define CONFIG_SYS_IMMR                0xE0000000
 
-#undef CFG_DRAM_TEST                           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00000000      /* memtest region */
-#define CFG_MEMTEST_END                0x00100000
+#undef CONFIG_SYS_DRAM_TEST                            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00000000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00100000
 
 /*
  * DDR Setup
@@ -75,7 +75,7 @@
 #undef CONFIG_DDR_ECC                  /* only for ECC DDR module */
 #undef CONFIG_DDR_ECC_CMD              /* use DDR ECC user commands */
 #define CONFIG_SPD_EEPROM              /* use SPD EEPROM for DDR setup*/
-#define CFG_83XX_DDR_USES_CS0          /* WRS; Fsl board uses CS2/CS3 */
+#define CONFIG_SYS_83XX_DDR_USES_CS0           /* WRS; Fsl board uses CS2/CS3 */
 
 /*
  * 32-bit data path mode.
  */
 #undef CONFIG_DDR_32BIT
 
-#define CFG_DDR_BASE           0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_BASE
-#define CFG_DDR_SDRAM_BASE     CFG_DDR_BASE
-#define CFG_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \
+#define CONFIG_SYS_DDR_BASE            0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      CONFIG_SYS_DDR_BASE
+#define CONFIG_SYS_DDR_SDRAM_CLK_CNTL  (DDR_SDRAM_CLK_CNTL_SS_EN | \
                                DDR_SDRAM_CLK_CNTL_CLK_ADJUST_075)
 #define CONFIG_DDR_2T_TIMING
 
  * Manually set up DDR parameters
  * NB: manual DDR setup untested on sbc834x
  */
-#define CFG_DDR_SIZE           256             /* MB */
-#define CFG_DDR_CONFIG         (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10)
-#define CFG_DDR_TIMING_1       0x36332321
-#define CFG_DDR_TIMING_2       0x00000800      /* P9-45,may need tuning */
-#define CFG_DDR_CONTROL                0xc2000000      /* unbuffered,no DYN_PWR */
-#define CFG_DDR_INTERVAL       0x04060100      /* autocharge,no open page */
+#define CONFIG_SYS_DDR_SIZE            256             /* MB */
+#define CONFIG_SYS_DDR_CONFIG          (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10)
+#define CONFIG_SYS_DDR_TIMING_1        0x36332321
+#define CONFIG_SYS_DDR_TIMING_2        0x00000800      /* P9-45,may need tuning */
+#define CONFIG_SYS_DDR_CONTROL         0xc2000000      /* unbuffered,no DYN_PWR */
+#define CONFIG_SYS_DDR_INTERVAL        0x04060100      /* autocharge,no open page */
 
 #if defined(CONFIG_DDR_32BIT)
 /* set burst length to 8 for 32-bit data path */
-#define CFG_DDR_MODE           0x00000023      /* DLL,normal,seq,4/2.5, 8 burst len */
+#define CONFIG_SYS_DDR_MODE            0x00000023      /* DLL,normal,seq,4/2.5, 8 burst len */
 #else
 /* the default burst length is 4 - for 64-bit data path */
-#define CFG_DDR_MODE           0x00000022      /* DLL,normal,seq,4/2.5, 4 burst len */
+#define CONFIG_SYS_DDR_MODE            0x00000022      /* DLL,normal,seq,4/2.5, 4 burst len */
 #endif
 #endif
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0x10000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     128             /* LBC SDRAM is 128MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0x10000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      128             /* LBC SDRAM is 128MB */
 
 /*
  * FLASH on the Local Bus
  */
-#define CFG_FLASH_CFI                          /* use the Common Flash Interface */
+#define CONFIG_SYS_FLASH_CFI                           /* use the Common Flash Interface */
 #define CONFIG_FLASH_CFI_DRIVER                        /* use the CFI driver */
-#define CFG_FLASH_BASE         0xFF800000      /* start of FLASH   */
-#define CFG_FLASH_SIZE         8               /* flash size in MB */
-/* #define CFG_FLASH_USE_BUFFER_WRITE */
+#define CONFIG_SYS_FLASH_BASE          0xFF800000      /* start of FLASH   */
+#define CONFIG_SYS_FLASH_SIZE          8               /* flash size in MB */
+/* #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE */
 
-#define CFG_BR0_PRELIM         (CFG_FLASH_BASE |       /* flash Base address */ \
+#define CONFIG_SYS_BR0_PRELIM          (CONFIG_SYS_FLASH_BASE |        /* flash Base address */ \
                                (2 << BR_PS_SHIFT) |    /* 32 bit port size */   \
                                BR_V)                   /* valid */
 
-#define CFG_OR0_PRELIM         0xFF806FF7      /* 8 MB flash size */
-#define CFG_LBLAWBAR0_PRELIM   CFG_FLASH_BASE  /* window base at flash base */
-#define CFG_LBLAWAR0_PRELIM    0x80000016      /* 8 MB window size */
+#define CONFIG_SYS_OR0_PRELIM          0xFF806FF7      /* 8 MB flash size */
+#define CONFIG_SYS_LBLAWBAR0_PRELIM    CONFIG_SYS_FLASH_BASE   /* window base at flash base */
+#define CONFIG_SYS_LBLAWAR0_PRELIM     0x80000016      /* 8 MB window size */
 
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     64              /* sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      64              /* sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MID_FLASH_JUMP     0x7F000000
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MID_FLASH_JUMP      0x7F000000
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xFD000000              /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x1000                  /* End of used area in RAM*/
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xFD000000              /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x1000                  /* End of used area in RAM*/
 
-#define CFG_GBL_DATA_SIZE      0x100                   /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       0x100                   /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)            /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)            /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)            /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)            /* Reserved for malloc */
 
 /*
  * Local Bus LCRR and LBCR regs
  * External Local Bus rate is
  *    CLKIN * HRCWL_CSB_TO_CLKIN / HRCWL_LCL_BUS_TO_SCB_CLK / LCRR_CLKDIV
  */
-#define CFG_LCRR       (LCRR_DBYP | LCRR_CLKDIV_4)
-#define CFG_LBC_LBCR   0x00000000
+#define CONFIG_SYS_LCRR        (LCRR_DBYP | LCRR_CLKDIV_4)
+#define CONFIG_SYS_LBC_LBCR    0x00000000
 
-#undef CFG_LB_SDRAM    /* if board has SDRAM on local bus */
+#undef CONFIG_SYS_LB_SDRAM     /* if board has SDRAM on local bus */
 
-#ifdef CFG_LB_SDRAM
+#ifdef CONFIG_SYS_LB_SDRAM
 /* Local bus BR2, OR2 definition for SDRAM if soldered on the board*/
 /*
  * Base Register 2 and Option Register 2 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR2, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  * 0    4    8    12   16   20   24   28
  * 1111 0000 0000 0000 0001 1000 0110 0001 = F0001861
  *
- * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into
+ * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into
  * FIXME: the top 17 bits of BR2.
  */
 
-#define CFG_BR2_PRELIM         0xF0001861 /* Port-size=32bit, MSEL=SDRAM */
-#define CFG_LBLAWBAR2_PRELIM   0xF0000000
-#define CFG_LBLAWAR2_PRELIM    0x80000019 /* 64M */
+#define CONFIG_SYS_BR2_PRELIM          0xF0001861 /* Port-size=32bit, MSEL=SDRAM */
+#define CONFIG_SYS_LBLAWBAR2_PRELIM    0xF0000000
+#define CONFIG_SYS_LBLAWAR2_PRELIM     0x80000019 /* 64M */
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR2, need:
  *    64MB mask for AM, OR2[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1001 0000 0001 = FC006901
  */
 
-#define CFG_OR2_PRELIM 0xFC006901
+#define CONFIG_SYS_OR2_PRELIM  0xFC006901
 
-#define CFG_LBC_LSRT   0x32000000    /* LB sdram refresh timer, about 6us */
-#define CFG_LBC_MRTPR  0x20000000    /* LB refresh timer prescal, 266MHz/32 */
+#define CONFIG_SYS_LBC_LSRT    0x32000000    /* LB sdram refresh timer, about 6us */
+#define CONFIG_SYS_LBC_MRTPR   0x20000000    /* LB refresh timer prescal, 266MHz/32 */
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR5    (3 << (31 - 16))
-#define CFG_LBC_LSDMR_RFCR8    (5 << (31 - 16))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT3        (3 << (31 - 19))
-#define CFG_LBC_LSDMR_PRETOACT6        (5 << (31 - 19))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW3 (3 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC2     (2 << (31 - 27))
-#define CFG_LBC_LSDMR_WRC3     (3 << (31 - 27))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_BUFCMD   (1 << (31 - 29))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
-
-#define CFG_LBC_LSDMR_COMMON    ( CFG_LBC_LSDMR_RFEN            \
-                               | CFG_LBC_LSDMR_BSMA1516        \
-                               | CFG_LBC_LSDMR_RFCR8           \
-                               | CFG_LBC_LSDMR_PRETOACT6       \
-                               | CFG_LBC_LSDMR_ACTTORW3        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC3            \
-                               | CFG_LBC_LSDMR_CL3             \
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR5     (3 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_RFCR8     (5 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT3 (3 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT6 (5 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW3  (3 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC2      (2 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_WRC3      (3 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_BUFCMD    (1 << (31 - 29))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
+
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_RFEN            \
+                               | CONFIG_SYS_LBC_LSDMR_BSMA1516 \
+                               | CONFIG_SYS_LBC_LSDMR_RFCR8            \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT6        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW3 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC3             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
                                )
 
 /*
  * SDRAM Controller configuration sequence.
  */
-#define CFG_LBC_LSDMR_1                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_PCHALL)
-#define CFG_LBC_LSDMR_2                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_3                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_ARFRSH)
-#define CFG_LBC_LSDMR_4                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_MRW)
-#define CFG_LBC_LSDMR_5                ( CFG_LBC_LSDMR_COMMON \
-                               | CFG_LBC_LSDMR_OP_NORMAL)
+#define CONFIG_SYS_LBC_LSDMR_1         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_PCHALL)
+#define CONFIG_SYS_LBC_LSDMR_2         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_3         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_ARFRSH)
+#define CONFIG_SYS_LBC_LSDMR_4         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_MRW)
+#define CONFIG_SYS_LBC_LSDMR_5         ( CONFIG_SYS_LBC_LSDMR_COMMON \
+                               | CONFIG_SYS_LBC_LSDMR_OP_NORMAL)
 #endif
 
 /*
  */
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_IMMR+0x4500)
-#define CFG_NS16550_COM2        (CFG_IMMR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_IMMR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_IMMR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
 #define CONFIG_FSL_I2C
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C1_OFFSET                0x3000
-#define CFG_I2C2_OFFSET                0x3100
-#define CFG_I2C_OFFSET         CFG_I2C2_OFFSET
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C1_OFFSET         0x3000
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
+#define CONFIG_SYS_I2C_OFFSET          CONFIG_SYS_I2C2_OFFSET
 /* could also use CONFIG_I2C_MULTI_BUS and CONFIG_SPD_BUS_NUM... */
 
 /* TSEC */
-#define CFG_TSEC1_OFFSET 0x24000
-#define CFG_TSEC1 (CFG_IMMR+CFG_TSEC1_OFFSET)
-#define CFG_TSEC2_OFFSET 0x25000
-#define CFG_TSEC2 (CFG_IMMR+CFG_TSEC2_OFFSET)
+#define CONFIG_SYS_TSEC1_OFFSET 0x24000
+#define CONFIG_SYS_TSEC1 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC1_OFFSET)
+#define CONFIG_SYS_TSEC2_OFFSET 0x25000
+#define CONFIG_SYS_TSEC2 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC2_OFFSET)
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI1_MMIO_BASE     0x90000000
-#define CFG_PCI1_MMIO_PHYS     CFG_PCI1_MMIO_BASE
-#define CFG_PCI1_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xE2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
-
-#define CFG_PCI2_MEM_BASE      0xA0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI2_MMIO_BASE     0xB0000000
-#define CFG_PCI2_MMIO_PHYS     CFG_PCI2_MMIO_BASE
-#define CFG_PCI2_MMIO_SIZE     0x10000000      /* 256M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xE2100000
-#define CFG_PCI2_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_MMIO_BASE      0x90000000
+#define CONFIG_SYS_PCI1_MMIO_PHYS      CONFIG_SYS_PCI1_MMIO_BASE
+#define CONFIG_SYS_PCI1_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xE2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
+
+#define CONFIG_SYS_PCI2_MEM_BASE       0xA0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI2_MMIO_BASE      0xB0000000
+#define CONFIG_SYS_PCI2_MMIO_PHYS      CONFIG_SYS_PCI2_MMIO_BASE
+#define CONFIG_SYS_PCI2_MMIO_SIZE      0x10000000      /* 256M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xE2100000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x00100000      /* 1M */
 
 #if defined(CONFIG_PCI)
 
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
 /*
  * Environment
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
        #define CONFIG_ENV_IS_IN_FLASH  1
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE + 0x40000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE + 0x40000)
        #define CONFIG_ENV_SECT_SIZE    0x20000 /* 128K(one sector) for env */
        #define CONFIG_ENV_SIZE         0x2000
 
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
 #else
-       #define CFG_NO_FLASH            1       /* Flash is not usable now */
+       #define CONFIG_SYS_NO_FLASH             1       /* Flash is not usable now */
        #define CONFIG_ENV_IS_NOWHERE   1       /* Store ENV in memory only */
-       #define CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - 0x1000)
+       #define CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - 0x1000)
        #define CONFIG_ENV_SIZE         0x2000
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 
 /*
     #define CONFIG_CMD_PCI
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-       #define CFG_CBSIZE      1024            /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size */
 #else
-       #define CFG_CBSIZE      256             /* Console I/O Buffer Size */
+       #define CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
-#define CFG_RCWH_PCIHOST 0x80000000 /* PCIHOST  */
+#define CONFIG_SYS_RCWH_PCIHOST 0x80000000 /* PCIHOST  */
 
 #if 1 /*528/264*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X2 |\
        HRCWL_CORE_TO_CSB_2X1)
 #elif 0 /*396/132*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X4 |\
        HRCWL_CORE_TO_CSB_3X1)
 #elif 0 /*264/132*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X4 |\
        HRCWL_CORE_TO_CSB_2X1)
 #elif 0 /*132/132*/
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
        HRCWL_VCO_1X4 |\
        HRCWL_CORE_TO_CSB_1X1)
 #elif 0 /*264/264 */
-#define CFG_HRCW_LOW (\
+#define CONFIG_SYS_HRCW_LOW (\
        HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\
        HRCWL_DDR_TO_SCB_CLK_1X1 |\
        HRCWL_CSB_TO_CLKIN |\
 #endif
 
 #if defined(PCI_64BIT)
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_64_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
        HRCWH_TSEC1M_IN_GMII |\
        HRCWH_TSEC2M_IN_GMII )
 #else
-#define CFG_HRCW_HIGH (\
+#define CONFIG_SYS_HRCW_HIGH (\
        HRCWH_PCI_HOST |\
        HRCWH_32_BIT_PCI |\
        HRCWH_PCI1_ARBITER_ENABLE |\
 #endif
 
 /* System IO Config */
-#define CFG_SICRH SICRH_TSOBI1
-#define CFG_SICRL SICRL_LDP_A
+#define CONFIG_SYS_SICRH SICRH_TSOBI1
+#define CONFIG_SYS_SICRL SICRL_LDP_A
 
-#define CFG_HID0_INIT  0x000000000
-#define CFG_HID0_FINAL HID0_ENABLE_MACHINE_CHECK
+#define CONFIG_SYS_HID0_INIT   0x000000000
+#define CONFIG_SYS_HID0_FINAL  HID0_ENABLE_MACHINE_CHECK
 
-/* #define CFG_HID0_FINAL              (\
+/* #define CONFIG_SYS_HID0_FINAL               (\
        HID0_ENABLE_INSTRUCTION_CACHE |\
        HID0_ENABLE_M_BIT |\
        HID0_ENABLE_ADDRESS_BROADCAST ) */
 
 
-#define CFG_HID2 HID2_HBE
+#define CONFIG_SYS_HID2 HID2_HBE
 
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* DDR @ 0x00000000 */
-#define CFG_IBAT0L     (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT0U     (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT0U      (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* PCI @ 0x80000000 */
 #ifdef CONFIG_PCI
-#define CFG_IBAT1L     (CFG_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U     (CFG_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT2U     (CFG_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U      (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT2U      (CONFIG_SYS_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 #else
-#define CFG_IBAT1L     (0)
-#define CFG_IBAT1U     (0)
-#define CFG_IBAT2L     (0)
-#define CFG_IBAT2U     (0)
+#define CONFIG_SYS_IBAT1L      (0)
+#define CONFIG_SYS_IBAT1U      (0)
+#define CONFIG_SYS_IBAT2L      (0)
+#define CONFIG_SYS_IBAT2U      (0)
 #endif
 
 #ifdef CONFIG_MPC83XX_PCI2
-#define CFG_IBAT3L     (CFG_PCI2_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT3U     (CFG_PCI2_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT4L     (CFG_PCI2_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT4U     (CFG_PCI2_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_PCI2_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT3U      (CONFIG_SYS_PCI2_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_PCI2_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT4U      (CONFIG_SYS_PCI2_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 #else
-#define CFG_IBAT3L     (0)
-#define CFG_IBAT3U     (0)
-#define CFG_IBAT4L     (0)
-#define CFG_IBAT4U     (0)
+#define CONFIG_SYS_IBAT3L      (0)
+#define CONFIG_SYS_IBAT3U      (0)
+#define CONFIG_SYS_IBAT4L      (0)
+#define CONFIG_SYS_IBAT4U      (0)
 #endif
 
 /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 */
-#define CFG_IBAT5L     (CFG_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_IBAT5U     (CFG_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      (CONFIG_SYS_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
+#define CONFIG_SYS_IBAT5U      (CONFIG_SYS_IMMR | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* SDRAM @ 0xF0000000, stack in DCACHE 0xFDF00000 & FLASH @ 0xFE000000 */
-#define CFG_IBAT6L     (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_IBAT7L     (0)
-#define CFG_IBAT7U     (0)
-
-#define CFG_DBAT0L     CFG_IBAT0L
-#define CFG_DBAT0U     CFG_IBAT0U
-#define CFG_DBAT1L     CFG_IBAT1L
-#define CFG_DBAT1U     CFG_IBAT1U
-#define CFG_DBAT2L     CFG_IBAT2L
-#define CFG_DBAT2U     CFG_IBAT2U
-#define CFG_DBAT3L     CFG_IBAT3L
-#define CFG_DBAT3U     CFG_IBAT3U
-#define CFG_DBAT4L     CFG_IBAT4L
-#define CFG_DBAT4U     CFG_IBAT4U
-#define CFG_DBAT5L     CFG_IBAT5L
-#define CFG_DBAT5U     CFG_IBAT5U
-#define CFG_DBAT6L     CFG_IBAT6L
-#define CFG_DBAT6U     CFG_IBAT6U
-#define CFG_DBAT7L     CFG_IBAT7L
-#define CFG_DBAT7U     CFG_IBAT7U
+#define CONFIG_SYS_IBAT6L      (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_IBAT7L      (0)
+#define CONFIG_SYS_IBAT7U      (0)
+
+#define CONFIG_SYS_DBAT0L      CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U      CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L      CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U      CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L      CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U      CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L      CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U      CONFIG_SYS_IBAT3U
+#define CONFIG_SYS_DBAT4L      CONFIG_SYS_IBAT4L
+#define CONFIG_SYS_DBAT4U      CONFIG_SYS_IBAT4U
+#define CONFIG_SYS_DBAT5L      CONFIG_SYS_IBAT5L
+#define CONFIG_SYS_DBAT5U      CONFIG_SYS_IBAT5U
+#define CONFIG_SYS_DBAT6L      CONFIG_SYS_IBAT6L
+#define CONFIG_SYS_DBAT6U      CONFIG_SYS_IBAT6U
+#define CONFIG_SYS_DBAT7L      CONFIG_SYS_IBAT7L
+#define CONFIG_SYS_DBAT7U      CONFIG_SYS_IBAT7U
 
 /*
  * Internal Definitions
index 9d436c6fbf8e05a4b4b4c0b98521982c9ae9abdb..54f3e66cee2e99f9b0471ad395a2ae6e79a3e688 100644 (file)
 
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* Call board_pre_init */
 
-#undef CFG_DRAM_TEST                   /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00200000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                    /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR  (CFG_CCSRBAR+0x8000)
-#define CFG_PCI2_ADDR  (CFG_CCSRBAR+0x9000)
-#define CFG_PCIE1_ADDR (CFG_CCSRBAR+0xa000)
+#define CONFIG_SYS_PCI1_ADDR   (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCI2_ADDR   (CONFIG_SYS_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCIE1_ADDR  (CONFIG_SYS_CCSRBAR+0xa000)
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
@@ -96,8 +96,8 @@
 #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER      /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
  * Make sure required options are set
  */
 #ifndef CONFIG_SPD_EEPROM
-       #define CFG_SDRAM_SIZE  256             /* DDR is 256MB */
+       #define CONFIG_SYS_SDRAM_SIZE   256             /* DDR is 256MB */
 #endif
 
 #undef CONFIG_CLOCKS_IN_MHZ
  * 1111 1000 0000 0000 0110 1110 0110 0101 = f8006e65    OR6
  */
 
-#define CFG_BOOT_BLOCK         0xff800000      /* start of 8MB Flash */
-#define CFG_FLASH_BASE         CFG_BOOT_BLOCK  /* start of FLASH 16M */
+#define CONFIG_SYS_BOOT_BLOCK          0xff800000      /* start of 8MB Flash */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_BOOT_BLOCK   /* start of FLASH 16M */
 
-#define CFG_BR0_PRELIM         0xff800801
-#define CFG_BR6_PRELIM         0xfb801801
+#define CONFIG_SYS_BR0_PRELIM          0xff800801
+#define CONFIG_SYS_BR6_PRELIM          0xfb801801
 
-#define        CFG_OR0_PRELIM          0xff806e65
-#define        CFG_OR6_PRELIM          0xf8006e65
+#define        CONFIG_SYS_OR0_PRELIM           0xff806e65
+#define        CONFIG_SYS_OR6_PRELIM           0xf8006e65
 
-#define CFG_FLASH_BANKS_LIST   {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     128             /* sectors per device */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* sectors per device */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
 
 /* CS5 = Local bus peripherals controlled by the EPLD */
 
-#define CFG_BR5_PRELIM         0xf8000801
-#define CFG_OR5_PRELIM         0xff006e65
-#define CFG_EPLD_BASE          0xf8000000
-#define CFG_LED_DISP_BASE      0xf8000000
-#define CFG_USER_SWITCHES_BASE 0xf8100000
-#define CFG_BD_REV             0xf8300000
-#define CFG_EEPROM_BASE                0xf8b00000
+#define CONFIG_SYS_BR5_PRELIM          0xf8000801
+#define CONFIG_SYS_OR5_PRELIM          0xff006e65
+#define CONFIG_SYS_EPLD_BASE           0xf8000000
+#define CONFIG_SYS_LED_DISP_BASE       0xf8000000
+#define CONFIG_SYS_USER_SWITCHES_BASE  0xf8100000
+#define CONFIG_SYS_BD_REV              0xf8300000
+#define CONFIG_SYS_EEPROM_BASE         0xf8b00000
 
 /*
  * SDRAM on the Local Bus
  */
-#define CFG_LBC_SDRAM_BASE     0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB */
 
 /*
  * Base Register 3 and Option Register 3 configure SDRAM.
- * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000.
+ * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000.
  *
  * For BR3, need:
  *    Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0
  *
  */
 
-#define CFG_BR3_PRELIM         0xf0001861
+#define CONFIG_SYS_BR3_PRELIM          0xf0001861
 
 /*
- * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64.
+ * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64.
  *
  * For OR3, need:
  *    64MB mask for AM, OR3[0:7] = 1111 1100
  * 1111 1100 0000 0000 0110 1100 1100 0000 = fc006cc0
  */
 
-#define CFG_OR3_PRELIM         0xfc006cc0
+#define CONFIG_SYS_OR3_PRELIM          0xfc006cc0
 
-#define CFG_LBC_LCRR           0x00000002    /* LB clock ratio reg */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg */
-#define CFG_LBC_LSRT           0x20000000  /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x00000000  /* LB refresh timer prescal*/
+#define CONFIG_SYS_LBC_LCRR            0x00000002    /* LB clock ratio reg */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg */
+#define CONFIG_SYS_LBC_LSRT            0x20000000  /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x00000000  /* LB refresh timer prescal*/
 
 /*
  * LSDMR masks
  */
-#define CFG_LBC_LSDMR_RFEN     (1 << (31 -  1))
-#define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10))
-#define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10))
-#define CFG_LBC_LSDMR_RFCR16   (7 << (31 - 16))
-#define CFG_LBC_LSDMR_PRETOACT7        (7 << (31 - 19))
-#define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22))
-#define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22))
-#define CFG_LBC_LSDMR_BL8      (1 << (31 - 23))
-#define CFG_LBC_LSDMR_WRC4     (0 << (31 - 27))
-#define CFG_LBC_LSDMR_CL3      (3 << (31 - 31))
-
-#define CFG_LBC_LSDMR_OP_NORMAL        (0 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ARFRSH        (1 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_SRFRSH        (2 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_MRW   (3 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_PCHALL        (5 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_ACTBNK        (6 << (31 - 4))
-#define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_RFEN      (1 << (31 -  1))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1516  (3 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_BSMA1617  (4 << (31 - 10))
+#define CONFIG_SYS_LBC_LSDMR_RFCR16    (7 << (31 - 16))
+#define CONFIG_SYS_LBC_LSDMR_PRETOACT7 (7 << (31 - 19))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW7  (7 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_ACTTORW6  (6 << (31 - 22))
+#define CONFIG_SYS_LBC_LSDMR_BL8       (1 << (31 - 23))
+#define CONFIG_SYS_LBC_LSDMR_WRC4      (0 << (31 - 27))
+#define CONFIG_SYS_LBC_LSDMR_CL3       (3 << (31 - 31))
+
+#define CONFIG_SYS_LBC_LSDMR_OP_NORMAL (0 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_MRW    (3 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PRECH  (4 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_PCHALL (5 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4))
+#define CONFIG_SYS_LBC_LSDMR_OP_RWINV  (7 << (31 - 4))
 
 /*
  * Common settings for all Local Bus SDRAM commands.
  *                  or BSMA1617 (for CPU 1.0) (old)
  * is OR'ed in too.
  */
-#define CFG_LBC_LSDMR_COMMON   ( CFG_LBC_LSDMR_RFCR16          \
-                               | CFG_LBC_LSDMR_PRETOACT7       \
-                               | CFG_LBC_LSDMR_ACTTORW7        \
-                               | CFG_LBC_LSDMR_BL8             \
-                               | CFG_LBC_LSDMR_WRC4            \
-                               | CFG_LBC_LSDMR_CL3             \
-                               | CFG_LBC_LSDMR_RFEN            \
+#define CONFIG_SYS_LBC_LSDMR_COMMON    ( CONFIG_SYS_LBC_LSDMR_RFCR16           \
+                               | CONFIG_SYS_LBC_LSDMR_PRETOACT7        \
+                               | CONFIG_SYS_LBC_LSDMR_ACTTORW7 \
+                               | CONFIG_SYS_LBC_LSDMR_BL8              \
+                               | CONFIG_SYS_LBC_LSDMR_WRC4             \
+                               | CONFIG_SYS_LBC_LSDMR_CL3              \
+                               | CONFIG_SYS_LBC_LSDMR_RFEN             \
                                )
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_INIT_L2_ADDR       0xf8f80000      /* relocate boot L2SRAM */
+#define CONFIG_SYS_INIT_L2_ADDR        0xf8f80000      /* relocate boot L2SRAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024) /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024) /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                400000000 /* get_bus_freq(0) */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         400000000 /* get_bus_freq(0) */
 
-#define CFG_BAUDRATE_TABLE \
+#define CONFIG_SYS_BAUDRATE_TABLE \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C         /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
  */
-#define CFG_PCI_PHYS           0x80000000      /* 1G PCI TLB */
+#define CONFIG_SYS_PCI_PHYS            0x80000000      /* 1G PCI TLB */
 
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x00100000      /* 1M */
 
 #ifdef CONFIG_PCI2
-#define CFG_PCI2_MEM_BASE      0xa0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xe2800000
-#define CFG_PCI2_IO_SIZE       0x00100000      /* 1M */
+#define CONFIG_SYS_PCI2_MEM_BASE       0xa0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xe2800000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x00100000      /* 1M */
 #endif
 
 #ifdef CONFIG_PCIE1
-#define CFG_PCIE1_MEM_BASE     0xa0000000
-#define CFG_PCIE1_MEM_PHYS     CFG_PCIE1_MEM_BASE
-#define CFG_PCIE1_MEM_SIZE     0x20000000      /* 512M */
-#define CFG_PCIE1_IO_BASE      0x00000000
-#define CFG_PCIE1_IO_PHYS      0xe3000000
-#define CFG_PCIE1_IO_SIZE      0x00100000      /*   1M */
+#define CONFIG_SYS_PCIE1_MEM_BASE      0xa0000000
+#define CONFIG_SYS_PCIE1_MEM_PHYS      CONFIG_SYS_PCIE1_MEM_BASE
+#define CONFIG_SYS_PCIE1_MEM_SIZE      0x20000000      /* 512M */
+#define CONFIG_SYS_PCIE1_IO_BASE       0x00000000
+#define CONFIG_SYS_PCIE1_IO_PHYS       0xe3000000
+#define CONFIG_SYS_PCIE1_IO_SIZE       0x00100000      /*   1M */
 #endif
 
 #ifdef CONFIG_RIO
 /*
  * RapidIO MMU
  */
-#define CFG_RIO_MEM_BASE       0xC0000000
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xC0000000
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 512M */
 #endif
 
 #ifdef CONFIG_LEGACY
 #undef CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS     0x00000000
-#define CFG_PCI_MEMORY_PHYS    0x00000000
-#define CFG_PCI_MEMORY_SIZE    0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
 #endif /* CONFIG_PCI */
 
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 /*
  * BOOTP options
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /*
  * Internal Definitions
index 38ae1b1adb788fe265c9acfa66e9d0ed47ef391d..43012754d287c0ef5106b179baffb488d145152d 100644 (file)
@@ -73,9 +73,9 @@
 
 #define CONFIG_BOARD_EARLY_INIT_F 1        /* Call board_early_init_f  */
 
-#undef CFG_DRAM_TEST                       /* memory test, takes time  */
-#define CFG_MEMTEST_START      0x00200000  /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                        /* memory test, takes time  */
+#define CONFIG_SYS_MEMTEST_START       0x00200000  /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 #if (defined(CONFIG_PCI) && defined(CONFIG_TSEC_ENET) || \
      defined(CONFIG_PCI) && defined(CONFIG_ETHER_ON_FCC) || \
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default      */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default      */
 
 #if XXX
-  #define CFG_CCSRBAR          0xfdf00000      /* relocated CCSRBAR    */
+  #define CONFIG_SYS_CCSRBAR           0xfdf00000      /* relocated CCSRBAR    */
 #else
-  #define CFG_CCSRBAR          0xff700000      /* default CCSRBAR      */
+  #define CONFIG_SYS_CCSRBAR           0xff700000      /* default CCSRBAR      */
 #endif
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR    */
 
-#define CFG_SDRAM_SIZE         512             /* DDR is 512MB */
+#define CONFIG_SYS_SDRAM_SIZE          512             /* DDR is 512MB */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
 #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER       /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #undef CONFIG_CLOCKS_IN_MHZ
 
 #if defined(CONFIG_RAM_AS_FLASH)
-  #define CFG_LBC_SDRAM_BASE   0xfc000000      /* Localbus SDRAM */
-  #define CFG_FLASH_BASE       0xf8000000      /* start of FLASH 8M  */
-  #define CFG_BR0_PRELIM       0xf8000801      /* port size 8bit */
-  #define CFG_OR0_PRELIM       0xf8000ff7      /* 8MB Flash            */
+  #define CONFIG_SYS_LBC_SDRAM_BASE    0xfc000000      /* Localbus SDRAM */
+  #define CONFIG_SYS_FLASH_BASE        0xf8000000      /* start of FLASH 8M  */
+  #define CONFIG_SYS_BR0_PRELIM        0xf8000801      /* port size 8bit */
+  #define CONFIG_SYS_OR0_PRELIM        0xf8000ff7      /* 8MB Flash            */
 #else /* Boot from real Flash */
-  #define CFG_LBC_SDRAM_BASE   0xf8000000      /* Localbus SDRAM */
-  #define CFG_FLASH_BASE       0xff800000      /* start of FLASH 8M    */
-  #define CFG_BR0_PRELIM       0xff800801      /* port size 8bit      */
-  #define CFG_OR0_PRELIM       0xff800ff7      /* 8MB Flash            */
+  #define CONFIG_SYS_LBC_SDRAM_BASE    0xf8000000      /* Localbus SDRAM */
+  #define CONFIG_SYS_FLASH_BASE        0xff800000      /* start of FLASH 8M    */
+  #define CONFIG_SYS_BR0_PRELIM        0xff800801      /* port size 8bit      */
+  #define CONFIG_SYS_OR0_PRELIM        0xff800ff7      /* 8MB Flash            */
 #endif
-#define CFG_LBC_SDRAM_SIZE     64              /* LBC SDRAM is 64MB    */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      64              /* LBC SDRAM is 64MB    */
 
 /* local bus definitions */
-#define CFG_BR1_PRELIM         0xe4001801      /* 64M, 32-bit flash */
-#define CFG_OR1_PRELIM         0xfc000ff7
+#define CONFIG_SYS_BR1_PRELIM          0xe4001801      /* 64M, 32-bit flash */
+#define CONFIG_SYS_OR1_PRELIM          0xfc000ff7
 
-#define CFG_BR2_PRELIM         0x00000000      /* CS2 not used */
-#define CFG_OR2_PRELIM         0x00000000
+#define CONFIG_SYS_BR2_PRELIM          0x00000000      /* CS2 not used */
+#define CONFIG_SYS_OR2_PRELIM          0x00000000
 
-#define CFG_BR3_PRELIM         0xf0001861      /* 64MB localbus SDRAM  */
-#define CFG_OR3_PRELIM         0xfc000cc1
+#define CONFIG_SYS_BR3_PRELIM          0xf0001861      /* 64MB localbus SDRAM  */
+#define CONFIG_SYS_OR3_PRELIM          0xfc000cc1
 
 #if defined(CONFIG_RAM_AS_FLASH)
-  #define CFG_BR4_PRELIM       0xf4001861      /* 64M localbus SDRAM */
+  #define CONFIG_SYS_BR4_PRELIM        0xf4001861      /* 64M localbus SDRAM */
 #else
-  #define CFG_BR4_PRELIM       0xf8001861      /* 64M localbus SDRAM */
+  #define CONFIG_SYS_BR4_PRELIM        0xf8001861      /* 64M localbus SDRAM */
 #endif
-#define CFG_OR4_PRELIM         0xfc000cc1
+#define CONFIG_SYS_OR4_PRELIM          0xfc000cc1
 
-#define CFG_BR5_PRELIM         0xfc000801      /* 16M CS5 misc devices */
+#define CONFIG_SYS_BR5_PRELIM          0xfc000801      /* 16M CS5 misc devices */
 #if 1
-  #define CFG_OR5_PRELIM       0xff000ff7
+  #define CONFIG_SYS_OR5_PRELIM        0xff000ff7
 #else
-  #define CFG_OR5_PRELIM       0xff0000f0
+  #define CONFIG_SYS_OR5_PRELIM        0xff0000f0
 #endif
 
-#define CFG_BR6_PRELIM         0xe0001801      /* 64M, 32-bit flash */
-#define CFG_OR6_PRELIM         0xfc000ff7
-#define CFG_LBC_LCRR           0x00030002      /* local bus freq       */
-#define CFG_LBC_LBCR           0x00000000
-#define CFG_LBC_LSRT           0x20000000
-#define CFG_LBC_MRTPR          0x20000000
-#define CFG_LBC_LSDMR_1                0x2861b723
-#define CFG_LBC_LSDMR_2                0x0861b723
-#define CFG_LBC_LSDMR_3                0x0861b723
-#define CFG_LBC_LSDMR_4                0x1861b723
-#define CFG_LBC_LSDMR_5                0x4061b723
+#define CONFIG_SYS_BR6_PRELIM          0xe0001801      /* 64M, 32-bit flash */
+#define CONFIG_SYS_OR6_PRELIM          0xfc000ff7
+#define CONFIG_SYS_LBC_LCRR            0x00030002      /* local bus freq       */
+#define CONFIG_SYS_LBC_LBCR            0x00000000
+#define CONFIG_SYS_LBC_LSRT            0x20000000
+#define CONFIG_SYS_LBC_MRTPR           0x20000000
+#define CONFIG_SYS_LBC_LSDMR_1         0x2861b723
+#define CONFIG_SYS_LBC_LSDMR_2         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_3         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_4         0x1861b723
+#define CONFIG_SYS_LBC_LSDMR_5         0x4061b723
 
 /* just hijack the MOT BCSR def for SBC8560 misc devices */
-#define CFG_BCSR               ((CFG_BR5_PRELIM & 0xff000000)|0x00400000)
+#define CONFIG_SYS_BCSR                ((CONFIG_SYS_BR5_PRELIM & 0xff000000)|0x00400000)
 /* the size of CS5 needs to be >= 16M for TLB and LAW setups */
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0x70000000      /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0x70000000      /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #undef  CONFIG_CONS_ON_SCC     /* define if console on SCC */
 
 #define CONFIG_CONS_INDEX      1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                1843200 /* get_bus_freq(0) */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         1843200 /* get_bus_freq(0) */
 #define CONFIG_BAUDRATE                9600
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1       ((CFG_BR5_PRELIM & 0xff000000)+0x00700000)
-#define CFG_NS16550_COM2       ((CFG_BR5_PRELIM & 0xff000000)+0x00800000)
+#define CONFIG_SYS_NS16550_COM1        ((CONFIG_SYS_BR5_PRELIM & 0xff000000)+0x00700000)
+#define CONFIG_SYS_NS16550_COM2        ((CONFIG_SYS_BR5_PRELIM & 0xff000000)+0x00800000)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /* pass open firmware flat tree */
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES       {0x69}  /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
-#define CFG_PCI_MEM_BASE       0xC0000000
-#define CFG_PCI_MEM_PHYS       0xC0000000
-#define CFG_PCI_MEM_SIZE       0x10000000
+#define CONFIG_SYS_PCI_MEM_BASE        0xC0000000
+#define CONFIG_SYS_PCI_MEM_PHYS        0xC0000000
+#define CONFIG_SYS_PCI_MEM_SIZE        0x10000000
 
 #ifdef CONFIG_TSEC_ENET
 
      * - Select bus for bd/buffers
      * - Full duplex
      */
-    #define CFG_CMXFCR_MASK    (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-    #define CFG_CMXFCR_VALUE   (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-    #define CFG_CPMFCR_RAMTYPE 0
-    #define CFG_FCC_PSMR       (FCC_PSMR_FDE)
+    #define CONFIG_SYS_CMXFCR_MASK     (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+    #define CONFIG_SYS_CMXFCR_VALUE    (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+    #define CONFIG_SYS_CPMFCR_RAMTYPE  0
+    #define CONFIG_SYS_FCC_PSMR        (FCC_PSMR_FDE)
 
   #elif (CONFIG_ETHER_INDEX == 3)
     /* need more definitions here for FE3 */
  * FLASH and environment organization
  */
 
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant      */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant      */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver        */
 #if 0
-#define CFG_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)   */
-#define CFG_FLASH_PROTECTION           /* use hardware protection      */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)   */
+#define CONFIG_SYS_FLASH_PROTECTION            /* use hardware protection      */
 #endif
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks   */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   200000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   50000   /* Timeout for Flash Write (in ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    200000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    50000   /* Timeout for Flash Write (in ms) */
 
-#define CFG_MONITOR_BASE       TEXT_BASE /* start of monitor   */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE /* start of monitor   */
 
 #if 0
 /* XXX This doesn't work and I don't want to fix it */
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-  #define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+  #define CONFIG_SYS_RAMBOOT
 #else
-  #undef  CFG_RAMBOOT
+  #undef  CONFIG_SYS_RAMBOOT
 #endif
 #endif
 
 /* Environment */
-#if !defined(CFG_RAMBOOT)
+#if !defined(CONFIG_SYS_RAMBOOT)
   #if defined(CONFIG_RAM_AS_FLASH)
     #define CONFIG_ENV_IS_NOWHERE
-    #define CONFIG_ENV_ADDR    (CFG_FLASH_BASE + 0x100000)
+    #define CONFIG_ENV_ADDR    (CONFIG_SYS_FLASH_BASE + 0x100000)
     #define CONFIG_ENV_SIZE    0x2000
   #else
     #define CONFIG_ENV_IS_IN_FLASH     1
     #define CONFIG_ENV_SECT_SIZE       0x20000 /* 128K(one sector) for env */
-    #define CONFIG_ENV_ADDR    (CFG_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
+    #define CONFIG_ENV_ADDR    (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
     #define CONFIG_ENV_SIZE    0x2000 /* CONFIG_ENV_SECT_SIZE */
   #endif
 #else
-  #define CFG_NO_FLASH         1       /* Flash is not usable now      */
+  #define CONFIG_SYS_NO_FLASH          1       /* Flash is not usable now      */
   #define CONFIG_ENV_IS_NOWHERE        1       /* Store ENV in memory only     */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_BOOTDELAY       5       /* -1 disable autoboot */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 
 /*
     #define CONFIG_CMD_MII
 #endif
 
-#if defined(CFG_RAMBOOT) || defined(CONFIG_RAM_AS_FLASH)
+#if defined(CONFIG_SYS_RAMBOOT) || defined(CONFIG_RAM_AS_FLASH)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #endif
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "SBC8560=> " /* Monitor Command Prompt  */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "SBC8560=> " /* Monitor Command Prompt  */
 #if defined(CONFIG_CMD_KGDB)
-  #define CFG_CBSIZE   1024            /* Console I/O Buffer Size      */
+  #define CONFIG_SYS_CBSIZE    1024            /* Console I/O Buffer Size      */
 #else
-  #define CFG_CBSIZE   256             /* Console I/O Buffer Size      */
+  #define CONFIG_SYS_CBSIZE    256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x1000000       /* default load address */
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x1000000       /* default load address */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index 01003a396e0d368f2da5b681e53a2c4eee737a16..14d1c882b2c202b1e37180b500018e1dfff24f53 100644 (file)
 #define CONFIG_LINUX_RESET_VEC  0x100   /* Reset vector used by Linux */
 
 #ifdef RUN_DIAG
-#define CFG_DIAG_ADDR        0xff800000
+#define CONFIG_SYS_DIAG_ADDR        0xff800000
 #endif
 
-#define CFG_RESET_ADDRESS    0xfff00100
+#define CONFIG_SYS_RESET_ADDRESS    0xfff00100
 
 #define CONFIG_PCI             1       /* Enable PCIE */
 #define CONFIG_PCI1            1       /* PCIE controler 1 (slot 1) */
@@ -76,7 +76,7 @@
 /*
  * L2CR setup -- make sure this is right for your board!
  */
-#define CFG_L2
+#define CONFIG_SYS_L2
 #define L2_INIT                0
 #define L2_ENABLE      (L2CR_L2E)
 
 
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* Call board_pre_init */
 
-#undef CFG_DRAM_TEST                           /* memory test, takes time */
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                            /* memory test, takes time */
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default */
-#define CFG_CCSRBAR            0xf8000000      /* relocated CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default */
+#define CONFIG_SYS_CCSRBAR             0xf8000000      /* relocated CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR */
 
-#define CFG_PCI1_ADDR          (CFG_CCSRBAR+0x8000)
-#define CFG_PCI2_ADDR          (CFG_CCSRBAR+0x9000)
+#define CONFIG_SYS_PCI1_ADDR           (CONFIG_SYS_CCSRBAR+0x8000)
+#define CONFIG_SYS_PCI2_ADDR           (CONFIG_SYS_CCSRBAR+0x9000)
 
 /*
  * DDR Setup
  */
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory */
-#define CFG_DDR_SDRAM_BASE2    0x10000000      /* DDR bank 2 */
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
-#define CFG_SDRAM_BASE2                CFG_DDR_SDRAM_BASE2
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory */
+#define CONFIG_SYS_DDR_SDRAM_BASE2     0x10000000      /* DDR bank 2 */
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
+#define CONFIG_SYS_SDRAM_BASE2         CONFIG_SYS_DDR_SDRAM_BASE2
 #define CONFIG_VERY_BIG_RAM
 
 #define MPC86xx_DDR_SDRAM_CLK_CNTL
      * Manually set up DDR1 & DDR2 parameters
      */
 
-    #define CFG_SDRAM_SIZE     512             /* DDR is 512MB */
-
-    #define CFG_DDR_CS0_BNDS   0x0000000F
-    #define CFG_DDR_CS1_BNDS   0x00000000
-    #define CFG_DDR_CS2_BNDS   0x00000000
-    #define CFG_DDR_CS3_BNDS   0x00000000
-    #define CFG_DDR_CS0_CONFIG 0x80010102
-    #define CFG_DDR_CS1_CONFIG 0x00000000
-    #define CFG_DDR_CS2_CONFIG 0x00000000
-    #define CFG_DDR_CS3_CONFIG 0x00000000
-    #define CFG_DDR_TIMING_3 0x00000000
-    #define CFG_DDR_TIMING_0   0x00220802
-    #define CFG_DDR_TIMING_1   0x38377322
-    #define CFG_DDR_TIMING_2   0x002040c7
-    #define CFG_DDR_CFG_1A     0x43008008
-    #define CFG_DDR_CFG_2      0x24401000
-    #define CFG_DDR_MODE_1     0x23c00542
-    #define CFG_DDR_MODE_2     0x00000000
-    #define CFG_DDR_MODE_CTL   0x00000000
-    #define CFG_DDR_INTERVAL   0x05080100
-    #define CFG_DDR_DATA_INIT  0x00000000
-    #define CFG_DDR_CLK_CTRL   0x03800000
-    #define CFG_DDR_CFG_1B     0xC3008008
-
-    #define CFG_DDR2_CS0_BNDS  0x0010001F
-    #define CFG_DDR2_CS1_BNDS  0x00000000
-    #define CFG_DDR2_CS2_BNDS  0x00000000
-    #define CFG_DDR2_CS3_BNDS  0x00000000
-    #define CFG_DDR2_CS0_CONFIG        0x80010102
-    #define CFG_DDR2_CS1_CONFIG        0x00000000
-    #define CFG_DDR2_CS2_CONFIG        0x00000000
-    #define CFG_DDR2_CS3_CONFIG        0x00000000
-    #define CFG_DDR2_EXT_REFRESH 0x00000000
-    #define CFG_DDR2_TIMING_0  0x00220802
-    #define CFG_DDR2_TIMING_1  0x38377322
-    #define CFG_DDR2_TIMING_2  0x002040c7
-    #define CFG_DDR2_CFG_1A    0x43008008
-    #define CFG_DDR2_CFG_2     0x24401000
-    #define CFG_DDR2_MODE_1    0x23c00542
-    #define CFG_DDR2_MODE_2    0x00000000
-    #define CFG_DDR2_MODE_CTL  0x00000000
-    #define CFG_DDR2_INTERVAL  0x05080100
-    #define CFG_DDR2_DATA_INIT 0x00000000
-    #define CFG_DDR2_CLK_CTRL  0x03800000
-    #define CFG_DDR2_CFG_1B    0xC3008008
+    #define CONFIG_SYS_SDRAM_SIZE      512             /* DDR is 512MB */
+
+    #define CONFIG_SYS_DDR_CS0_BNDS    0x0000000F
+    #define CONFIG_SYS_DDR_CS1_BNDS    0x00000000
+    #define CONFIG_SYS_DDR_CS2_BNDS    0x00000000
+    #define CONFIG_SYS_DDR_CS3_BNDS    0x00000000
+    #define CONFIG_SYS_DDR_CS0_CONFIG  0x80010102
+    #define CONFIG_SYS_DDR_CS1_CONFIG  0x00000000
+    #define CONFIG_SYS_DDR_CS2_CONFIG  0x00000000
+    #define CONFIG_SYS_DDR_CS3_CONFIG  0x00000000
+    #define CONFIG_SYS_DDR_TIMING_3 0x00000000
+    #define CONFIG_SYS_DDR_TIMING_0    0x00220802
+    #define CONFIG_SYS_DDR_TIMING_1    0x38377322
+    #define CONFIG_SYS_DDR_TIMING_2    0x002040c7
+    #define CONFIG_SYS_DDR_CFG_1A      0x43008008
+    #define CONFIG_SYS_DDR_CFG_2       0x24401000
+    #define CONFIG_SYS_DDR_MODE_1      0x23c00542
+    #define CONFIG_SYS_DDR_MODE_2      0x00000000
+    #define CONFIG_SYS_DDR_MODE_CTL    0x00000000
+    #define CONFIG_SYS_DDR_INTERVAL    0x05080100
+    #define CONFIG_SYS_DDR_DATA_INIT   0x00000000
+    #define CONFIG_SYS_DDR_CLK_CTRL    0x03800000
+    #define CONFIG_SYS_DDR_CFG_1B      0xC3008008
+
+    #define CONFIG_SYS_DDR2_CS0_BNDS   0x0010001F
+    #define CONFIG_SYS_DDR2_CS1_BNDS   0x00000000
+    #define CONFIG_SYS_DDR2_CS2_BNDS   0x00000000
+    #define CONFIG_SYS_DDR2_CS3_BNDS   0x00000000
+    #define CONFIG_SYS_DDR2_CS0_CONFIG 0x80010102
+    #define CONFIG_SYS_DDR2_CS1_CONFIG 0x00000000
+    #define CONFIG_SYS_DDR2_CS2_CONFIG 0x00000000
+    #define CONFIG_SYS_DDR2_CS3_CONFIG 0x00000000
+    #define CONFIG_SYS_DDR2_EXT_REFRESH 0x00000000
+    #define CONFIG_SYS_DDR2_TIMING_0   0x00220802
+    #define CONFIG_SYS_DDR2_TIMING_1   0x38377322
+    #define CONFIG_SYS_DDR2_TIMING_2   0x002040c7
+    #define CONFIG_SYS_DDR2_CFG_1A     0x43008008
+    #define CONFIG_SYS_DDR2_CFG_2      0x24401000
+    #define CONFIG_SYS_DDR2_MODE_1     0x23c00542
+    #define CONFIG_SYS_DDR2_MODE_2     0x00000000
+    #define CONFIG_SYS_DDR2_MODE_CTL   0x00000000
+    #define CONFIG_SYS_DDR2_INTERVAL   0x05080100
+    #define CONFIG_SYS_DDR2_DATA_INIT  0x00000000
+    #define CONFIG_SYS_DDR2_CLK_CTRL   0x03800000
+    #define CONFIG_SYS_DDR2_CFG_1B     0xC3008008
 
 
 #endif
 /*
  * The SBC8641D contains 16MB flash space at ff000000.
  */
-#define CFG_FLASH_BASE      0xff000000  /* start of FLASH 16M */
+#define CONFIG_SYS_FLASH_BASE      0xff000000  /* start of FLASH 16M */
 
 /* Flash */
-#define CFG_BR0_PRELIM         0xff001001      /* port size 16bit */
-#define CFG_OR0_PRELIM         0xff006e65      /* 16MB Boot Flash area */
+#define CONFIG_SYS_BR0_PRELIM          0xff001001      /* port size 16bit */
+#define CONFIG_SYS_OR0_PRELIM          0xff006e65      /* 16MB Boot Flash area */
 
 /* 64KB EEPROM */
-#define CFG_BR1_PRELIM         0xf0000801      /* port size 16bit */
-#define CFG_OR1_PRELIM         0xffff6e65      /* 64K EEPROM area */
+#define CONFIG_SYS_BR1_PRELIM          0xf0000801      /* port size 16bit */
+#define CONFIG_SYS_OR1_PRELIM          0xffff6e65      /* 64K EEPROM area */
 
 /* EPLD - User switches, board id, LEDs */
-#define CFG_BR2_PRELIM         0xf1000801      /* port size 16bit */
-#define CFG_OR2_PRELIM         0xfff06e65      /* EPLD (switches, board ID, LEDs) area */
+#define CONFIG_SYS_BR2_PRELIM          0xf1000801      /* port size 16bit */
+#define CONFIG_SYS_OR2_PRELIM          0xfff06e65      /* EPLD (switches, board ID, LEDs) area */
 
 /* Local bus SDRAM 128MB */
-#define CFG_BR3_PRELIM         0xe0001861      /* port size ?bit */
-#define CFG_OR3_PRELIM         0xfc006cc0      /* 128MB local bus SDRAM area (1st half) */
-#define CFG_BR4_PRELIM         0xe4001861      /* port size ?bit */
-#define CFG_OR4_PRELIM         0xfc006cc0      /* 128MB local bus SDRAM area (2nd half) */
+#define CONFIG_SYS_BR3_PRELIM          0xe0001861      /* port size ?bit */
+#define CONFIG_SYS_OR3_PRELIM          0xfc006cc0      /* 128MB local bus SDRAM area (1st half) */
+#define CONFIG_SYS_BR4_PRELIM          0xe4001861      /* port size ?bit */
+#define CONFIG_SYS_OR4_PRELIM          0xfc006cc0      /* 128MB local bus SDRAM area (2nd half) */
 
 /* Disk on Chip (DOC) 128MB */
-#define CFG_BR5_PRELIM         0xe8001001      /* port size ?bit */
-#define CFG_OR5_PRELIM         0xf8006e65      /* 128MB local bus SDRAM area (2nd half) */
+#define CONFIG_SYS_BR5_PRELIM          0xe8001001      /* port size ?bit */
+#define CONFIG_SYS_OR5_PRELIM          0xf8006e65      /* 128MB local bus SDRAM area (2nd half) */
 
 /* LCD */
-#define CFG_BR6_PRELIM         0xf4000801      /* port size ?bit */
-#define CFG_OR6_PRELIM         0xfff06e65      /* 128MB local bus SDRAM area (2nd half) */
+#define CONFIG_SYS_BR6_PRELIM          0xf4000801      /* port size ?bit */
+#define CONFIG_SYS_OR6_PRELIM          0xfff06e65      /* 128MB local bus SDRAM area (2nd half) */
 
 /* Control logic & misc peripherals */
-#define CFG_BR7_PRELIM         0xf2000801      /* port size ?bit */
-#define CFG_OR7_PRELIM         0xfff06e65      /* 128MB local bus SDRAM area (2nd half) */
+#define CONFIG_SYS_BR7_PRELIM          0xf2000801      /* port size ?bit */
+#define CONFIG_SYS_OR7_PRELIM          0xfff06e65      /* 128MB local bus SDRAM area (2nd half) */
 
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks */
-#define CFG_MAX_FLASH_SECT     131             /* sectors per device */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      131             /* sectors per device */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms) */
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms) */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_WRITE_SWAPPED_DATA
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_WRITE_SWAPPED_DATA
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_PROTECTION
 
 #undef CONFIG_CLOCKS_IN_MHZ
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#ifndef CFG_INIT_RAM_LOCK
-#define CFG_INIT_RAM_ADDR      0x0fd00000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#ifndef CONFIG_SYS_INIT_RAM_LOCK
+#define CONFIG_SYS_INIT_RAM_ADDR       0x0fd00000      /* Initial RAM address */
 #else
-#define CFG_INIT_RAM_ADDR      0xf8400000      /* Initial RAM address */
+#define CONFIG_SYS_INIT_RAM_ADDR       0xf8400000      /* Initial RAM address */
 #endif
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
-#define CFG_NS16550_COM1        (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2        (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 #define CONFIG_OF_BOARD_SETUP          1
 #define CONFIG_OF_STDOUT_VIA_ALIAS     1
 
-#define CFG_64BIT_VSPRINTF     1
-#define CFG_64BIT_STRTOUL      1
+#define CONFIG_SYS_64BIT_VSPRINTF      1
+#define CONFIG_SYS_64BIT_STRTOUL       1
 
 /*
  * I2C
 #define        CONFIG_FSL_I2C          /* Use FSL common I2C driver */
 #define        CONFIG_HARD_I2C         /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_NOPROBES        {0x69} /* Don't probe these addrs */
-#define CFG_I2C_OFFSET         0x3100
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_NOPROBES        {0x69}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_OFFSET          0x3100
 
 /*
  * RapidIO MMU
  */
-#define CFG_RIO_MEM_BASE       0xc0000000      /* base address */
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
-#define CFG_RIO_MEM_SIZE       0x20000000      /* 128M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000      /* base address */
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_SIZE        0x20000000      /* 128M */
 
 /*
  * General PCI
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0xe2000000
-#define CFG_PCI1_IO_PHYS       CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE       0x1000000       /* 16M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0xe2000000
+#define CONFIG_SYS_PCI1_IO_PHYS        CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE        0x1000000       /* 16M */
 
 /* PCI view of System Memory */
-#define CFG_PCI_MEMORY_BUS      0x00000000
-#define CFG_PCI_MEMORY_PHYS     0x00000000
-#define CFG_PCI_MEMORY_SIZE     0x80000000
+#define CONFIG_SYS_PCI_MEMORY_BUS      0x00000000
+#define CONFIG_SYS_PCI_MEMORY_PHYS     0x00000000
+#define CONFIG_SYS_PCI_MEMORY_SIZE     0x80000000
 
-#define CFG_PCI2_MEM_BASE      0xa0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x10000000      /* 256M */
-#define CFG_PCI2_IO_BASE       0xe3000000
-#define CFG_PCI2_IO_PHYS       CFG_PCI2_IO_BASE
-#define CFG_PCI2_IO_SIZE       0x1000000       /* 16M */
+#define CONFIG_SYS_PCI2_MEM_BASE       0xa0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x10000000      /* 256M */
+#define CONFIG_SYS_PCI2_IO_BASE        0xe3000000
+#define CONFIG_SYS_PCI2_IO_PHYS        CONFIG_SYS_PCI2_IO_BASE
+#define CONFIG_SYS_PCI2_IO_SIZE        0x1000000       /* 16M */
 
 #if defined(CONFIG_PCI)
 
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
 
-#undef CFG_SCSI_SCAN_BUS_REVERSE
+#undef CONFIG_SYS_SCSI_SCAN_BUS_REVERSE
 
 #define CONFIG_NET_MULTI
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play */
 
 #ifdef CONFIG_SCSI_AHCI
 #define CONFIG_SATA_ULI5288
-#define CFG_SCSI_MAX_SCSI_ID   4
-#define CFG_SCSI_MAX_LUN       1
-#define CFG_SCSI_MAX_DEVICE    (CFG_SCSI_MAX_SCSI_ID * CFG_SCSI_MAX_LUN)
-#define CFG_SCSI_MAXDEVICE     CFG_SCSI_MAX_DEVICE
+#define CONFIG_SYS_SCSI_MAX_SCSI_ID    4
+#define CONFIG_SYS_SCSI_MAX_LUN        1
+#define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_SYS_SCSI_MAXDEVICE      CONFIG_SYS_SCSI_MAX_DEVICE
 #endif
 
 #endif /* CONFIG_PCI */
 #define TSEC3_FLAGS            TSEC_GIGABIT
 #define TSEC4_FLAGS            TSEC_GIGABIT
 
-#define CFG_TBIPA_VALUE        0x1e    /* Set TBI address not to conflict with TSEC1_PHY_ADDR */
+#define CONFIG_SYS_TBIPA_VALUE 0x1e    /* Set TBI address not to conflict with TSEC1_PHY_ADDR */
 
 #define CONFIG_ETHPRIME                "eTSEC1"
 
  * BAT0         2G     Cacheable, non-guarded
  * 0x0000_0000  2G     DDR
  */
-#define CFG_DBAT0L     (BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_DBAT0U     (BATU_BL_2G | BATU_VS | BATU_VP)
-#define CFG_IBAT0L     (BATL_PP_RW | BATL_MEMCOHERENCE )
-#define CFG_IBAT0U     CFG_DBAT0U
+#define CONFIG_SYS_DBAT0L      (BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT0U      (BATU_BL_2G | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L      (BATL_PP_RW | BATL_MEMCOHERENCE )
+#define CONFIG_SYS_IBAT0U      CONFIG_SYS_DBAT0U
 
 /*
  * BAT1         1G     Cache-inhibited, guarded
  * 0xa000_0000  512M   PCI-Express 2 Memory
  *     Changed it for operating from 0xd0000000
  */
-#define CFG_DBAT1L     ( CFG_PCI1_MEM_BASE | BATL_PP_RW \
+#define CONFIG_SYS_DBAT1L      ( CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT1U     (CFG_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
-#define CFG_IBAT1L     (CFG_PCI1_MEM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT1U     CFG_DBAT1U
+#define CONFIG_SYS_DBAT1U      (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L      (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT1U      CONFIG_SYS_DBAT1U
 
 /*
  * BAT2         512M   Cache-inhibited, guarded
  * 0xc000_0000  512M   RapidIO Memory
  */
-#define CFG_DBAT2L     (CFG_RIO_MEM_BASE | BATL_PP_RW \
+#define CONFIG_SYS_DBAT2L      (CONFIG_SYS_RIO_MEM_BASE | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT2U     (CFG_RIO_MEM_BASE | BATU_BL_512M | BATU_VS | BATU_VP)
-#define CFG_IBAT2L     (CFG_RIO_MEM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT2U     CFG_DBAT2U
+#define CONFIG_SYS_DBAT2U      (CONFIG_SYS_RIO_MEM_BASE | BATU_BL_512M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L      (CONFIG_SYS_RIO_MEM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT2U      CONFIG_SYS_DBAT2U
 
 /*
  * BAT3         4M     Cache-inhibited, guarded
  * 0xf800_0000  4M     CCSR
  */
-#define CFG_DBAT3L     ( CFG_CCSRBAR | BATL_PP_RW \
+#define CONFIG_SYS_DBAT3L      ( CONFIG_SYS_CCSRBAR | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT3U     (CFG_CCSRBAR | BATU_BL_4M | BATU_VS | BATU_VP)
-#define CFG_IBAT3L     (CFG_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U     CFG_DBAT3U
+#define CONFIG_SYS_DBAT3U      (CONFIG_SYS_CCSRBAR | BATU_BL_4M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT3L      (CONFIG_SYS_CCSRBAR | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U      CONFIG_SYS_DBAT3U
 
 /*
  * BAT4         32M    Cache-inhibited, guarded
  * 0xe300_0000  16M    PCI-Express 2 I/0
  *    Note that this is at 0xe0000000
  */
-#define CFG_DBAT4L     ( CFG_PCI1_IO_BASE | BATL_PP_RW \
+#define CONFIG_SYS_DBAT4L      ( CONFIG_SYS_PCI1_IO_BASE | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT4U     (CFG_PCI1_IO_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_IBAT4L     (CFG_PCI1_IO_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
-#define CFG_IBAT4U     CFG_DBAT4U
+#define CONFIG_SYS_DBAT4U      (CONFIG_SYS_PCI1_IO_BASE | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT4L      (CONFIG_SYS_PCI1_IO_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT4U      CONFIG_SYS_DBAT4U
 
 /*
  * BAT5         128K   Cacheable, non-guarded
  * 0xe401_0000  128K   Init RAM for stack in the CPU DCache (no backing memory)
  */
-#define CFG_DBAT5L     (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_DBAT5U     (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
-#define CFG_IBAT5L     CFG_DBAT5L
-#define CFG_IBAT5U     CFG_DBAT5U
+#define CONFIG_SYS_DBAT5L      (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_DBAT5U      (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT5L      CONFIG_SYS_DBAT5L
+#define CONFIG_SYS_IBAT5U      CONFIG_SYS_DBAT5U
 
 /*
  * BAT6         32M    Cache-inhibited, guarded
  * 0xfe00_0000  32M    FLASH
  */
-#define CFG_DBAT6L     ((CFG_FLASH_BASE & 0xfe000000) | BATL_PP_RW \
+#define CONFIG_SYS_DBAT6L      ((CONFIG_SYS_FLASH_BASE & 0xfe000000) | BATL_PP_RW \
                        | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
-#define CFG_DBAT6U     ((CFG_FLASH_BASE & 0xfe000000) | BATU_BL_32M | BATU_VS | BATU_VP)
-#define CFG_IBAT6L     ((CFG_FLASH_BASE & 0xfe000000) | BATL_PP_RW | BATL_MEMCOHERENCE)
-#define CFG_IBAT6U     CFG_DBAT6U
+#define CONFIG_SYS_DBAT6U      ((CONFIG_SYS_FLASH_BASE & 0xfe000000) | BATU_BL_32M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT6L      ((CONFIG_SYS_FLASH_BASE & 0xfe000000) | BATL_PP_RW | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT6U      CONFIG_SYS_DBAT6U
 
-#define CFG_DBAT7L     0x00000000
-#define CFG_DBAT7U     0x00000000
-#define CFG_IBAT7L     0x00000000
-#define CFG_IBAT7U     0x00000000
+#define CONFIG_SYS_DBAT7L      0x00000000
+#define CONFIG_SYS_DBAT7U      0x00000000
+#define CONFIG_SYS_IBAT7L      0x00000000
+#define CONFIG_SYS_IBAT7U      0x00000000
 
 /*
  * Environment
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + 0x40000)
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* 256K(one sector) for env */
 #define CONFIG_ENV_SIZE                0x2000
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change */
 
 #include <config_cmd_default.h>
     #define CONFIG_CMD_PING
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt */
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux*/
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux*/
 
 /* Cache Configuration */
-#define CFG_DCACHE_SIZE                32768
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_DCACHE_SIZE         32768
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    5       /*log base 2 of the above value*/
+#define CONFIG_SYS_CACHELINE_SHIFT     5       /*log base 2 of the above value*/
 #endif
 
 /*
index 88a24b87973728a1ffed1f9c746d4dc8acbea4b3..44135dfac5405678969c4bd5751f223cb11c8e1c 100644 (file)
 #undef CONFIG_BOOTCOMMAND
 
 #define CONFIG_SILENT_CONSOLE  1       /* enable silent startup */
-#define CFG_DEVICE_NULLDEV     1       /* include nulldev device       */
+#define CONFIG_SYS_DEVICE_NULLDEV      1       /* include nulldev device       */
 
 #if 1  /* feel free to disable for development */
 #define CONFIG_AUTOBOOT_KEYED          /* Enable password protection   */
 #undef CONFIG_ISP1161_PRESENT
 
 #undef CONFIG_LOADS_ECHO   /* no echo on for serial download   */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_NET_MULTI
 /* #define CONFIG_EEPRO100_SROM_WRITE */
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP   1               /* undef to save memory         */
-#define CFG_PROMPT     "SC3> " /* Monitor Command Prompt       */
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP    1               /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "SC3> " /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
 
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  *
  * Consider the OPB clock! If it get lower the BASE_BAUD must be lower to
  * (see 405GP datasheet for descritpion)
  */
-#undef CFG_EXT_SERIAL_CLOCK            /* external serial clock */
-#undef CFG_405_UART_ERRATA_59          /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD          921600  /* internal clock */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK             /* external serial clock */
+#undef CONFIG_SYS_405_UART_ERRATA_59           /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD           921600  /* internal clock */
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
     {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
-#define CFG_LOAD_ADDR          0x1000000       /* default load address */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x1000000       /* default load address */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
 /*-----------------------------------------------------------------------
  * IIC stuff
 #define I2C_ACTIVE 0
 #define I2C_TRISTATE 0
 
-#define CFG_I2C_SPEED          100000  /* use the standard 100kHz speed */
-#define CFG_I2C_SLAVE          0x7F            /* mask valid bits */
+#define CONFIG_SYS_I2C_SPEED           100000  /* use the standard 100kHz speed */
+#define CONFIG_SYS_I2C_SLAVE           0x7F            /* mask valid bits */
 
 #define CONFIG_RTC_DS1337
-#define CFG_I2C_RTC_ADDR 0x68
+#define CONFIG_SYS_I2C_RTC_ADDR 0x68
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 /* If you want to see, whats connected to your PCI bus */
 /* #define CONFIG_PCI_SCAN_SHOW */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x0000 /* PCI Vendor ID: to-do!!!      */
-#define CFG_PCI_SUBSYS_DEVICEID 0x0000 /* PCI Device ID: to-do!!!      */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x0000  /* PCI Vendor ID: to-do!!!      */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000  /* PCI Device ID: to-do!!!      */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * External peripheral base address
 
 #define        CONFIG_ATAPI
 #define        CONFIG_DOS_PARTITION
-#define        CFG_IDE_MAXDEVICE       (CFG_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
+#define        CONFIG_SYS_IDE_MAXDEVICE        (CONFIG_SYS_IDE_MAXBUS*1) /* max. 1 drives per IDE bus */
 
 #ifndef IDE_USES_ISA_EMULATION
 
 /* New and faster access */
-#define        CFG_ATA_BASE_ADDR               0x7A000000      /* start of ISA IO emulation */
+#define        CONFIG_SYS_ATA_BASE_ADDR                0x7A000000      /* start of ISA IO emulation */
 
 /* How many IDE busses are available */
-#define        CFG_IDE_MAXBUS          1
+#define        CONFIG_SYS_IDE_MAXBUS           1
 
 /* What IDE ports are available */
-#define        CFG_ATA_IDE0_OFFSET     0x000           /* first is available */
-#undef CFG_ATA_IDE1_OFFSET                     /* second not available */
+#define        CONFIG_SYS_ATA_IDE0_OFFSET      0x000           /* first is available */
+#undef CONFIG_SYS_ATA_IDE1_OFFSET                      /* second not available */
 
 /* access to the data port is calculated:
-   CFG_ATA_BASE_ADDR + CFG_ATA_IDE0_OFFSET + CFG_ATA_DATA_OFFSET + 0 */
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O */
+   CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE0_OFFSET + CONFIG_SYS_ATA_DATA_OFFSET + 0 */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O */
 
 /* access to the registers is calculated:
-   CFG_ATA_BASE_ADDR + CFG_ATA_IDE0_OFFSET + CFG_ATA_REG_OFFSET + [1..7] */
-#define        CFG_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+   CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE0_OFFSET + CONFIG_SYS_ATA_REG_OFFSET + [1..7] */
+#define        CONFIG_SYS_ATA_REG_OFFSET       0x0000  /* Offset for normal register accesses  */
 
 /* access to the alternate register is calculated:
-   CFG_ATA_BASE_ADDR + CFG_ATA_IDE0_OFFSET + CFG_ATA_ALT_OFFSET + 6 */
-#define CFG_ATA_ALT_OFFSET     0x008           /* Offset for alternate registers       */
+   CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE0_OFFSET + CONFIG_SYS_ATA_ALT_OFFSET + 6 */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x008           /* Offset for alternate registers       */
 
 #else /* IDE_USES_ISA_EMULATION */
 
-#define        CFG_ATA_BASE_ADDR               0x79000000      /* start of ISA IO emulation */
+#define        CONFIG_SYS_ATA_BASE_ADDR                0x79000000      /* start of ISA IO emulation */
 
 /* How many IDE busses are available */
-#define        CFG_IDE_MAXBUS          1
+#define        CONFIG_SYS_IDE_MAXBUS           1
 
 /* What IDE ports are available */
-#define        CFG_ATA_IDE0_OFFSET     0x01F0  /* first is available */
-#undef CFG_ATA_IDE1_OFFSET                             /* second not available */
+#define        CONFIG_SYS_ATA_IDE0_OFFSET      0x01F0  /* first is available */
+#undef CONFIG_SYS_ATA_IDE1_OFFSET                              /* second not available */
 
 /* access to the data port is calculated:
-   CFG_ATA_BASE_ADDR + CFG_ATA_IDE0_OFFSET + CFG_ATA_DATA_OFFSET + 0 */
-#define CFG_ATA_DATA_OFFSET    0x0000  /* Offset for data I/O */
+   CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE0_OFFSET + CONFIG_SYS_ATA_DATA_OFFSET + 0 */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O */
 
 /* access to the registers is calculated:
-   CFG_ATA_BASE_ADDR + CFG_ATA_IDE0_OFFSET + CFG_ATA_REG_OFFSET + [1..7] */
-#define        CFG_ATA_REG_OFFSET      0x0000  /* Offset for normal register accesses  */
+   CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE0_OFFSET + CONFIG_SYS_ATA_REG_OFFSET + [1..7] */
+#define        CONFIG_SYS_ATA_REG_OFFSET       0x0000  /* Offset for normal register accesses  */
 
 /* access to the alternate register is calculated:
-   CFG_ATA_BASE_ADDR + CFG_ATA_IDE0_OFFSET + CFG_ATA_ALT_OFFSET + 6 */
-#define CFG_ATA_ALT_OFFSET     0x03F0          /* Offset for alternate registers       */
+   CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE0_OFFSET + CONFIG_SYS_ATA_ALT_OFFSET + 6 */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x03F0          /* Offset for alternate registers       */
 
 #endif /* IDE_USES_ISA_EMULATION */
 
 #endif
 
 /*
-#define        CFG_KEY_REG_BASE_ADDR   0xF0100000
-#define        CFG_IR_REG_BASE_ADDR    0xF0200000
-#define        CFG_FPGA_REG_BASE_ADDR  0xF0300000
+#define        CONFIG_SYS_KEY_REG_BASE_ADDR    0xF0100000
+#define        CONFIG_SYS_IR_REG_BASE_ADDR     0xF0200000
+#define        CONFIG_SYS_FPGA_REG_BASE_ADDR   0xF0300000
 */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  *
- * CFG_FLASH_BASE   -> start address of internal flash
- * CFG_MONITOR_BASE -> start of u-boot
+ * CONFIG_SYS_FLASH_BASE   -> start address of internal flash
+ * CONFIG_SYS_MONITOR_BASE -> start of u-boot
  */
 #ifndef __ASSEMBLER__
 extern unsigned long offsetOfBigFlash;
 extern unsigned long offsetOfEnvironment;
 #endif
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFFE00000
-#define CFG_MONITOR_BASE       0xFFFC0000     /* placed last 256k */
-#define CFG_MONITOR_LEN                (224 * 1024)    /* Reserve 224 KiB for Monitor  */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 KiB for malloc() */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFFE00000
+#define CONFIG_SYS_MONITOR_BASE        0xFFFC0000     /* placed last 256k */
+#define CONFIG_SYS_MONITOR_LEN         (224 * 1024)    /* Reserve 224 KiB for Monitor  */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 KiB for malloc() */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MiB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 /*-----------------------------------------------------------------------
  * FLASH organization ## FIXME: lookup in datasheet
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_CFI                  /* flash is CFI compat. */
+#define CONFIG_SYS_FLASH_CFI                   /* flash is CFI compat. */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver*/
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector   */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash*/
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
-#define CFG_WRITE_SWAPPED_DATA         /* swap Databytes between reading/writing */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector   */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash*/
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_WRITE_SWAPPED_DATA          /* swap Databytes between reading/writing */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #ifdef CONFIG_ENV_IS_IN_FLASH
@@ -421,9 +421,9 @@ extern unsigned long offsetOfEnvironment;
 /*
  * NAND-FLASH stuff
  */
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE          0x77D00000
+#define CONFIG_SYS_NAND_BASE           0x77D00000
 
 
 #define CONFIG_JFFS2_NAND 1                    /* jffs2 on nand support */
@@ -439,55 +439,55 @@ extern unsigned long offsetOfEnvironment;
  *
  */
 
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE
 #define FLASH_BASE1_PRELIM     0
 
 /*-----------------------------------------------------------------------
  * Some informations about the internal SRAM (OCM=On Chip Memory)
  *
- * CFG_OCM_DATA_ADDR -> location
- * CFG_OCM_DATA_SIZE -> size
+ * CONFIG_SYS_OCM_DATA_ADDR -> location
+ * CONFIG_SYS_OCM_DATA_SIZE -> size
 */
 
-#define CFG_TEMP_STACK_OCM     1
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM):
  * - we are using the internal 4k SRAM, so we don't need data cache mapping
- * - internal SRAM (OCM=On Chip Memory) is placed to CFG_OCM_DATA_ADDR
+ * - internal SRAM (OCM=On Chip Memory) is placed to CONFIG_SYS_OCM_DATA_ADDR
  * - Stackpointer will be located to
- *   (CFG_INIT_RAM_ADDR&0xFFFF0000) | (CFG_INIT_SP_OFFSET&0x0000FFFF)
+ *   (CONFIG_SYS_INIT_RAM_ADDR&0xFFFF0000) | (CONFIG_SYS_INIT_SP_OFFSET&0x0000FFFF)
  *   in cpu/ppc4xx/start.S
  */
 
-#undef CFG_INIT_DCACHE_CS
+#undef CONFIG_SYS_INIT_DCACHE_CS
 /* Where the internal SRAM starts */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR
 /* Where the internal SRAM ends (only offset) */
-#define CFG_INIT_RAM_END       0x0F00
+#define CONFIG_SYS_INIT_RAM_END        0x0F00
 
 /*
 
- CFG_INIT_RAM_ADDR ------> ------------ lower address
+ CONFIG_SYS_INIT_RAM_ADDR ------> ------------ lower address
                           |          |
                           |  ^       |
                           |  |       |
                           |  | Stack |
- CFG_GBL_DATA_OFFSET ----> ------------
+ CONFIG_SYS_GBL_DATA_OFFSET ----> ------------
                           |          |
                           | 64 Bytes |
                           |          |
- CFG_INIT_RAM_END  ------> ------------ higher address
+ CONFIG_SYS_INIT_RAM_END  ------> ------------ higher address
   (offset only)
 
 */
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE     64
-#define CFG_GBL_DATA_OFFSET   (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE     64
+#define CONFIG_SYS_GBL_DATA_OFFSET   (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 /* Initial value of the stack pointern in internal SRAM */
-#define CFG_INIT_SP_OFFSET    CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_SP_OFFSET    CONFIG_SYS_GBL_DATA_OFFSET
 
 /*
  * Internal Definitions
@@ -504,31 +504,31 @@ extern unsigned long offsetOfEnvironment;
 /* This chip select accesses the boot device */
 /* It depends on boot select switch if this device is 16 or 8 bit */
 
-#undef CFG_EBC_PB0AP
-#undef CFG_EBC_PB0CR
+#undef CONFIG_SYS_EBC_PB0AP
+#undef CONFIG_SYS_EBC_PB0CR
 
-#undef CFG_EBC_PB1AP
-#undef CFG_EBC_PB1CR
+#undef CONFIG_SYS_EBC_PB1AP
+#undef CONFIG_SYS_EBC_PB1CR
 
-#undef CFG_EBC_PB2AP
-#undef CFG_EBC_PB2CR
+#undef CONFIG_SYS_EBC_PB2AP
+#undef CONFIG_SYS_EBC_PB2CR
 
-#undef CFG_EBC_PB3AP
-#undef CFG_EBC_PB3CR
+#undef CONFIG_SYS_EBC_PB3AP
+#undef CONFIG_SYS_EBC_PB3CR
 
-#undef CFG_EBC_PB4AP
-#undef CFG_EBC_PB4CR
+#undef CONFIG_SYS_EBC_PB4AP
+#undef CONFIG_SYS_EBC_PB4CR
 
-#undef CFG_EBC_PB5AP
-#undef CFG_EBC_PB5CR
+#undef CONFIG_SYS_EBC_PB5AP
+#undef CONFIG_SYS_EBC_PB5CR
 
-#undef CFG_EBC_PB6AP
-#undef CFG_EBC_PB6CR
+#undef CONFIG_SYS_EBC_PB6AP
+#undef CONFIG_SYS_EBC_PB6CR
 
-#undef CFG_EBC_PB7AP
-#undef CFG_EBC_PB7CR
+#undef CONFIG_SYS_EBC_PB7AP
+#undef CONFIG_SYS_EBC_PB7CR
 
-#define CFG_EBC_CFG    0xb84ef000
+#define CONFIG_SYS_EBC_CFG    0xb84ef000
 
 #define CONFIG_SDRAM_BANK0     /* use the standard SDRAM initialization */
 #undef CONFIG_SPD_EEPROM
@@ -543,15 +543,15 @@ extern unsigned long offsetOfEnvironment;
  * External peripheral base address
  ***********************************************************************/
 
-#define CFG_ISA_MEM_BASE_ADDRESS 0x78000000
+#define CONFIG_SYS_ISA_MEM_BASE_ADDRESS 0x78000000
 /*
  Die Grafik-Treiber greifen Ã¼ber die Adresse in diesem Macro auf den Chip zu.
  Das funktioniert bei deren Karten, weil sie eine PCI-Bridge benutzen, die
  das gleiche Mapping durchführen kann, wie der SC520 (also Aufteilen von IO-Zugriffen
  auf ISA- und PCI-Zyklen)
  */
-#define CFG_ISA_IO_BASE_ADDRESS  0xE8000000
-/*#define CFG_ISA_IO_BASE_ADDRESS  0x79000000 */
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS  0xE8000000
+/*#define CONFIG_SYS_ISA_IO_BASE_ADDRESS  0x79000000 */
 
 /************************************************************
  * Video support
index 0042e30057379bfcb6a9fcb8e91e066332ee8dda..bf8693e467ff3800d36620fadcd19ffb04d7d899 100644 (file)
 #define CONFIG_SC520           1       /* Include support for AMD SC520 */
 #define CONFIG_ALI152X         1       /* Include support for Ali 152x SIO */
 
-#define CFG_SDRAM_PRECHARGE_DELAY 6     /* 6T */
-#define CFG_SDRAM_REFRESH_RATE    78    /* 7.8uS (choices are 7.8, 15.6, 31.2 or 62.5uS) */
-#define CFG_SDRAM_RAS_CAS_DELAY   3     /* 3T */
+#define CONFIG_SYS_SDRAM_PRECHARGE_DELAY 6     /* 6T */
+#define CONFIG_SYS_SDRAM_REFRESH_RATE    78    /* 7.8uS (choices are 7.8, 15.6, 31.2 or 62.5uS) */
+#define CONFIG_SYS_SDRAM_RAS_CAS_DELAY   3     /* 3T */
 
 /* define at most one of these */
-#undef CFG_SDRAM_CAS_LATENCY_2T
-#define CFG_SDRAM_CAS_LATENCY_3T
-
-#define CFG_SC520_HIGH_SPEED    0       /* 100 or 133MHz */
-#define CFG_RESET_GENERIC       1       /* use tripple-fault to reset cpu */
-#undef  CFG_RESET_SC520                 /* use SC520 MMCR's to reset cpu */
-#undef  CFG_TIMER_SC520                 /* use SC520 swtimers */
-#define CFG_TIMER_GENERIC       1       /* use the i8254 PIT timers */
-#undef  CFG_TIMER_TSC                   /* use the Pentium TSC timers */
-#define  CFG_USE_SIO_UART       0       /* prefer the uarts on the SIO to those
+#undef CONFIG_SYS_SDRAM_CAS_LATENCY_2T
+#define CONFIG_SYS_SDRAM_CAS_LATENCY_3T
+
+#define CONFIG_SYS_SC520_HIGH_SPEED    0       /* 100 or 133MHz */
+#define CONFIG_SYS_RESET_GENERIC       1       /* use tripple-fault to reset cpu */
+#undef  CONFIG_SYS_RESET_SC520                 /* use SC520 MMCR's to reset cpu */
+#undef  CONFIG_SYS_TIMER_SC520                 /* use SC520 swtimers */
+#define CONFIG_SYS_TIMER_GENERIC       1       /* use the i8254 PIT timers */
+#undef  CONFIG_SYS_TIMER_TSC                   /* use the Pentium TSC timers */
+#define  CONFIG_SYS_USE_SIO_UART       0       /* prefer the uarts on the SIO to those
                                         * in the SC520 on the CDP */
 
-#define CFG_STACK_SIZE          0x8000  /* Size of bootloader stack */
+#define CONFIG_SYS_STACK_SIZE          0x8000  /* Size of bootloader stack */
 
 #define CONFIG_SHOW_BOOT_PROGRESS 1
 #define CONFIG_LAST_STAGE_INIT    1
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "boot > "       /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "boot > "       /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01000000      /* 1 ... 16 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01000000      /* 1 ... 16 MB in DRAM  */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1024            /* incrementer freq: 1kHz */
+#define        CONFIG_SYS_HZ                   1024            /* incrementer freq: 1kHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Physical Memory Map
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    3       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     64      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      64      /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_SPI_EEPROM      /* Support for SPI EEPROMs (AT25128) */
 #define CONFIG_MW_EEPROM       /* Support for MicroWire EEPROMs (AT93LC46) */
 *SATA/Native Stuff
 ************************************************************/
 #ifndef GRUSS_TESTING
-#define CFG_SATA_MAXBUS         2       /*Max Sata buses supported */
-#define CFG_SATA_DEVS_PER_BUS   2      /*Max no. of devices per bus/port */
-#define CFG_SATA_MAX_DEVICE     (CFG_SATA_MAXBUS* CFG_SATA_DEVS_PER_BUS)
+#define CONFIG_SYS_SATA_MAXBUS         2       /*Max Sata buses supported */
+#define CONFIG_SYS_SATA_DEVS_PER_BUS   2      /*Max no. of devices per bus/port */
+#define CONFIG_SYS_SATA_MAX_DEVICE     (CONFIG_SYS_SATA_MAXBUS* CONFIG_SYS_SATA_DEVS_PER_BUS)
 #define CONFIG_ATA_PIIX                1       /*Supports ata_piix driver */
 #else
-#undef CFG_SATA_MAXBUS
-#undef CFG_SATA_DEVS_PER_BUS
-#undef CFG_SATA_MAX_DEVICE
+#undef CONFIG_SYS_SATA_MAXBUS
+#undef CONFIG_SYS_SATA_DEVS_PER_BUS
+#undef CONFIG_SYS_SATA_MAX_DEVICE
 #undef CONFIG_ATA_PIIX
 #endif
 
 #undef CONFIG_VIDEO
 #endif
 #define CONFIG_I8042_KBD
-#define CFG_ISA_IO 0
+#define CONFIG_SYS_ISA_IO 0
 
 /************************************************************
  * RTC
 #define CONFIG_PCI_PNP                            /* pci plug-and-play */
 #define CONFIG_PCI_SCAN_SHOW
 
-#define        CFG_FIRST_PCI_IRQ   10
-#define        CFG_SECOND_PCI_IRQ  9
-#define CFG_THIRD_PCI_IRQ   11
-#define        CFG_FORTH_PCI_IRQ   15
+#define        CONFIG_SYS_FIRST_PCI_IRQ   10
+#define        CONFIG_SYS_SECOND_PCI_IRQ  9
+#define CONFIG_SYS_THIRD_PCI_IRQ   11
+#define        CONFIG_SYS_FORTH_PCI_IRQ   15
 #else
 #undef CONFIG_PCI
 #undef CONFIG_PCI_PNP
index 4e5798c8a6961432fed2faa95caaef112492e07e..fbdbeddf66180b93849127e36d041808a96900b7 100644 (file)
 #define CONFIG_X86             1       /* This is a X86 CPU            */
 #define CONFIG_SC520           1       /* Include support for AMD SC520 */
 
-#define CFG_SDRAM_PRECHARGE_DELAY 6     /* 6T */
-#define CFG_SDRAM_REFRESH_RATE    78    /* 7.8uS (choices are 7.8, 15.6, 31.2 or 62.5uS) */
-#define CFG_SDRAM_RAS_CAS_DELAY   3     /* 3T */
+#define CONFIG_SYS_SDRAM_PRECHARGE_DELAY 6     /* 6T */
+#define CONFIG_SYS_SDRAM_REFRESH_RATE    78    /* 7.8uS (choices are 7.8, 15.6, 31.2 or 62.5uS) */
+#define CONFIG_SYS_SDRAM_RAS_CAS_DELAY   3     /* 3T */
 
 /* define at most one of these */
-#undef CFG_SDRAM_CAS_LATENCY_2T
-#define CFG_SDRAM_CAS_LATENCY_3T
+#undef CONFIG_SYS_SDRAM_CAS_LATENCY_2T
+#define CONFIG_SYS_SDRAM_CAS_LATENCY_3T
 
-#define CFG_SC520_HIGH_SPEED    0       /* 100 or 133MHz */
-#define CFG_RESET_GENERIC       1       /* use tripple-fault to reset cpu */
-#undef  CFG_RESET_SC520                 /* use SC520 MMCR's to reset cpu */
-#undef  CFG_TIMER_SC520                 /* use SC520 swtimers */
-#define CFG_TIMER_GENERIC       1       /* use the i8254 PIT timers */
-#undef  CFG_TIMER_TSC                   /* use the Pentium TSC timers */
+#define CONFIG_SYS_SC520_HIGH_SPEED    0       /* 100 or 133MHz */
+#define CONFIG_SYS_RESET_GENERIC       1       /* use tripple-fault to reset cpu */
+#undef  CONFIG_SYS_RESET_SC520                 /* use SC520 MMCR's to reset cpu */
+#undef  CONFIG_SYS_TIMER_SC520                 /* use SC520 swtimers */
+#define CONFIG_SYS_TIMER_GENERIC       1       /* use the i8254 PIT timers */
+#undef  CONFIG_SYS_TIMER_TSC                   /* use the Pentium TSC timers */
 
-#define CFG_STACK_SIZE          0x8000  /* Size of bootloader stack */
+#define CONFIG_SYS_STACK_SIZE          0x8000  /* Size of bootloader stack */
 
 #define CONFIG_SHOW_BOOT_PROGRESS 1
 #define CONFIG_LAST_STAGE_INIT    1
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "boot > "       /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "boot > "       /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x01000000      /* 1 ... 16 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x01000000      /* 1 ... 16 MB in DRAM  */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1024            /* incrementer freq: 1kHz */
+#define        CONFIG_SYS_HZ                   1024            /* incrementer freq: 1kHz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*-----------------------------------------------------------------------
  */
 
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 
 #define CONFIG_SPI_EEPROM       /* SPI EEPROMs such as AT25010 or AT25640 */
  */
 #define CONFIG_NET_MULTI        /* Multi ethernet cards support */
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 
 /************************************************************
  * IDE/ATA stuff
  ************************************************************/
-#define CFG_IDE_MAXBUS         2   /* max. 2 IDE busses        */
-#define CFG_IDE_MAXDEVICE      (CFG_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
-#define CFG_ATA_BASE_ADDR       0
-#define CFG_ATA_IDE0_OFFSET    0x01f0  /* ide0 offset */
-#define CFG_ATA_IDE1_OFFSET    0xe000  /* ide1 offset */
-#define CFG_ATA_DATA_OFFSET    0       /* data reg offset      */
-#define CFG_ATA_REG_OFFSET     0       /* reg offset */
-#define CFG_ATA_ALT_OFFSET     0x200   /* alternate register offset */
+#define CONFIG_SYS_IDE_MAXBUS          2   /* max. 2 IDE busses        */
+#define CONFIG_SYS_IDE_MAXDEVICE       (CONFIG_SYS_IDE_MAXBUS*2) /* max. 2 drives per IDE bus */
+#define CONFIG_SYS_ATA_BASE_ADDR       0
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x01f0  /* ide0 offset */
+#define CONFIG_SYS_ATA_IDE1_OFFSET     0xe000  /* ide1 offset */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0       /* data reg offset      */
+#define CONFIG_SYS_ATA_REG_OFFSET      0       /* reg offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x200   /* alternate register offset */
 
-#define CFG_FIRST_PCMCIA_BUS    1
+#define CONFIG_SYS_FIRST_PCMCIA_BUS    1
 
 #undef CONFIG_IDE_LED                  /* no led for ide supported     */
 #undef  CONFIG_IDE_RESET               /* reset for ide unsupported... */
 #undef  CONFIG_IDE_RESET_ROUTINE       /* no special reset function */
 
 #define CONFIG_IDE_TI_CARDBUS
-#define CFG_PCMCIA_CIS_WIN          0x27f00000
-#define CFG_PCMCIA_CIS_WIN_SIZE     0x00100000
-#define CFG_PCMCIA_IO_WIN           0xe000
-#define CFG_PCMCIA_IO_WIN_SIZE      16
+#define CONFIG_SYS_PCMCIA_CIS_WIN          0x27f00000
+#define CONFIG_SYS_PCMCIA_CIS_WIN_SIZE     0x00100000
+#define CONFIG_SYS_PCMCIA_IO_WIN           0xe000
+#define CONFIG_SYS_PCMCIA_IO_WIN_SIZE      16
 
 /************************************************************
  * DISK Partition support
 #define CONFIG_PCI_PNP                            /* pci plug-and-play */
 #define CONFIG_PCI_SCAN_SHOW
 
-#define        CFG_FIRST_PCI_IRQ   9
-#define        CFG_SECOND_PCI_IRQ  10
-#define        CFG_THIRD_PCI_IRQ   11
-#define        CFG_FORTH_PCI_IRQ   12
+#define        CONFIG_SYS_FIRST_PCI_IRQ   9
+#define        CONFIG_SYS_SECOND_PCI_IRQ  10
+#define        CONFIG_SYS_THIRD_PCI_IRQ   11
+#define        CONFIG_SYS_FORTH_PCI_IRQ   12
 
 #endif /* __CONFIG_H */
index 12799559fb8cd25b32a61a05c0685dbe2c961c7b..5971df72fcbdb1ddd8a58ae5c1359f7e58441e04 100644 (file)
 /*
  * General options for u-boot. Modify to save memory foot print
  */
-#define CFG_LONGHELP                                 /* undef saves memory  */
-#define CFG_PROMPT             "scb9328> "           /* prompt string       */
-#define CFG_CBSIZE             256                   /* console I/O buffer  */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* print buffer size   */
-#define CFG_MAXARGS            16                    /* max command args    */
-#define CFG_BARGSIZE           CFG_CBSIZE            /* boot args buf size  */
+#define CONFIG_SYS_LONGHELP                                  /* undef saves memory  */
+#define CONFIG_SYS_PROMPT              "scb9328> "           /* prompt string       */
+#define CONFIG_SYS_CBSIZE              256                   /* console I/O buffer  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* print buffer size   */
+#define CONFIG_SYS_MAXARGS             16                    /* max command args    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE             /* boot args buf size  */
 
-#define CFG_MEMTEST_START      0x08100000            /* memtest test area   */
-#define CFG_MEMTEST_END                0x08F00000
+#define CONFIG_SYS_MEMTEST_START       0x08100000            /* memtest test area   */
+#define CONFIG_SYS_MEMTEST_END         0x08F00000
 
-#undef CFG_CLKS_IN_HZ                       /* use HZ for freq. display     */
+#undef CONFIG_SYS_CLKS_IN_HZ                        /* use HZ for freq. display     */
 
-#define CFG_HZ                 3686400      /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x141        /* core clock - register value  */
+#define CONFIG_SYS_HZ                  3686400      /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141        /* core clock - register value  */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 #define CONFIG_BAUDRATE 115200
 /*
  * Definitions related to passing arguments to kernel.
 /*
  * Malloc pool need to host env + 128 Kb reserve for other allocations.
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + (128<<10) )
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + (128<<10) )
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_STACKSIZE       (120<<10)      /* stack size                 */
 
 
 /* 32MB */
 #ifdef SCB9328_FLASH_32M
-#define CFG_MAX_FLASH_BANKS            1       /* FLASH banks count (not chip count)*/
-#define CFG_MAX_FLASH_SECT             256     /* number of sector in FLASH bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS             1       /* FLASH banks count (not chip count)*/
+#define CONFIG_SYS_MAX_FLASH_SECT              256     /* number of sector in FLASH bank    */
 #define SCB9328_FLASH_BUS_WIDTH                2       /* we use 16 bit FLASH memory...     */
 #define SCB9328_FLASH_INTERLEAVE       1       /* ... made of 1 chip                */
 #define SCB9328_FLASH_BANK_SIZE         0x02000000     /* size of one flash bank            */
 #else
 
 /* 16MB */
-#define CFG_MAX_FLASH_BANKS            1       /* FLASH banks count (not chip count)*/
-#define CFG_MAX_FLASH_SECT             128     /* number of sector in FLASH bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS             1       /* FLASH banks count (not chip count)*/
+#define CONFIG_SYS_MAX_FLASH_SECT              128     /* number of sector in FLASH bank    */
 #define SCB9328_FLASH_BUS_WIDTH                2       /* we use 16 bit FLASH memory...     */
 #define SCB9328_FLASH_INTERLEAVE       1       /* ... made of 1 chip                */
 #define SCB9328_FLASH_BANK_SIZE         0x01000000     /* size of one flash bank            */
    is not so clear to me. In other words we can provide more informations
    to user, but this expects more complex flash handling we do not provide
    now.*/
-#undef CFG_FLASH_CFI
+#undef CONFIG_SYS_FLASH_CFI
 
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ)    /* timeout for Erase operation */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ)    /* timeout for Write operation */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ)    /* timeout for Erase operation */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ)    /* timeout for Write operation */
 
-#define CFG_FLASH_BASE         SCB9328_FLASH_BASE
+#define CONFIG_SYS_FLASH_BASE          SCB9328_FLASH_BASE
 
 /*
  * This is setting for JFFS2 support in u-boot.
  * footprint.
  * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support.
  */
-#define CFG_JFFS2_FIRST_BANK           0
-#define CFG_JFFS2_FIRST_SECTOR         5
-#define CFG_JFFS2_NUM_BANKS            1
+#define CONFIG_SYS_JFFS2_FIRST_BANK            0
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR          5
+#define CONFIG_SYS_JFFS2_NUM_BANKS             1
 
 /*
  * Environment setup. Definitions of monitor location and size with
 /* Setup for PA23 which is Reset Default PA23 but has to become
    CS5 */
 
-#define CFG_GPR_A_VAL          0x00800000
-#define CFG_GIUS_A_VAL         0x0043fffe
+#define CONFIG_SYS_GPR_A_VAL           0x00800000
+#define CONFIG_SYS_GIUS_A_VAL          0x0043fffe
 
-#define CFG_MONITOR_BASE       0x10000000
-#define CFG_MONITOR_LEN                0x20000         /* 128b ( 1 flash sector )  */
+#define CONFIG_SYS_MONITOR_BASE        0x10000000
+#define CONFIG_SYS_MONITOR_LEN         0x20000         /* 128b ( 1 flash sector )  */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                0x10020000      /* absolute address for now  */
 #define CONFIG_ENV_SIZE                0x20000
  *   |  OEA   |   OEN   |   WEA   |   WEN   |   CSA   |EBC| DSZ  | 0|SP|0|WP| 0 0|PA|CSEN|
  */
 
-#define CFG_CS0U_VAL 0x000F2000
-#define CFG_CS0L_VAL 0x11110d01
-#define CFG_CS1U_VAL 0x000F0a00
-#define CFG_CS1L_VAL 0x11110601
-#define CFG_CS2U_VAL 0x0
-#define CFG_CS2L_VAL 0x0
+#define CONFIG_SYS_CS0U_VAL 0x000F2000
+#define CONFIG_SYS_CS0L_VAL 0x11110d01
+#define CONFIG_SYS_CS1U_VAL 0x000F0a00
+#define CONFIG_SYS_CS1L_VAL 0x11110601
+#define CONFIG_SYS_CS2U_VAL 0x0
+#define CONFIG_SYS_CS2L_VAL 0x0
 
-#define CFG_CS3U_VAL 0x000FFFFF
-#define CFG_CS3L_VAL 0x00000303
+#define CONFIG_SYS_CS3U_VAL 0x000FFFFF
+#define CONFIG_SYS_CS3L_VAL 0x00000303
 
-#define CFG_CS4U_VAL 0x000F0a00
-#define CFG_CS4L_VAL 0x11110301
+#define CONFIG_SYS_CS4U_VAL 0x000F0a00
+#define CONFIG_SYS_CS4L_VAL 0x11110301
 
 /* CNC == 3 too long
-   #define CFG_CS5U_VAL 0x0000C210 */
+   #define CONFIG_SYS_CS5U_VAL 0x0000C210 */
 
-/* #define CFG_CS5U_VAL 0x00008400
+/* #define CONFIG_SYS_CS5U_VAL 0x00008400
    mal laenger mahcen, ob der bei 150MHz laenger haelt dann und
    kaum langsamer ist */
-/* #define CFG_CS5U_VAL 0x00009400
-   #define CFG_CS5L_VAL 0x11010D03 */
+/* #define CONFIG_SYS_CS5U_VAL 0x00009400
+   #define CONFIG_SYS_CS5L_VAL 0x11010D03 */
 
-#define CFG_CS5U_VAL 0x00008400
-#define CFG_CS5L_VAL 0x00000D03
+#define CONFIG_SYS_CS5U_VAL 0x00008400
+#define CONFIG_SYS_CS5L_VAL 0x00000D03
 
 #define CONFIG_DRIVER_DM9000           1
 #define CONFIG_DM9000_BASE             0x16000000
 #define CPU200
 
 #ifdef CPU200
-#define CFG_MPCTL0_VAL 0x00321431
+#define CONFIG_SYS_MPCTL0_VAL 0x00321431
 #else
-#define CFG_MPCTL0_VAL 0x040e200e
+#define CONFIG_SYS_MPCTL0_VAL 0x040e200e
 #endif
 
 /* #define BUS64 */
 #define BUS72
 
 #ifdef BUS72
-#define CFG_SPCTL0_VAL 0x04002400
+#define CONFIG_SYS_SPCTL0_VAL 0x04002400
 #endif
 
 #ifdef BUS96
-#define CFG_SPCTL0_VAL 0x04001800
+#define CONFIG_SYS_SPCTL0_VAL 0x04001800
 #endif
 
 #ifdef BUS64
-#define CFG_SPCTL0_VAL 0x08001800
+#define CONFIG_SYS_SPCTL0_VAL 0x08001800
 #endif
 
 /* Das ist der BCLK Divider, der aus der System PLL
    Bit 21: MPLL Restart */
 
 #ifdef BUS64
-#define CFG_CSCR_VAL 0x2f030003
+#define CONFIG_SYS_CSCR_VAL 0x2f030003
 #endif
 
 #ifdef BUS72
-#define CFG_CSCR_VAL 0x2f030403
+#define CONFIG_SYS_CSCR_VAL 0x2f030403
 #endif
 
 /*
  * one may expect. For instance loadb command do not cares :-)
  * So advice is - do not relay on this...
  */
-#define CFG_LOAD_ADDR 0x08400000
+#define CONFIG_SYS_LOAD_ADDR 0x08400000
 
 #define MHZ16QUARZINUSE
 
 #define CONFIG_SYS_CLK_FREQ 16780000
 
 /* FMCR Bit 0 becomes 0 to make CS3 CS3 :P */
-#define CFG_FMCR_VAL 0x00000001
+#define CONFIG_SYS_FMCR_VAL 0x00000001
 
 /* Bit[0:3] contain PERCLK1DIV for UART 1
    0x000b00b ->b<- -> 192MHz/12=16MHz
    0x000b00b ->3<- -> 64MHz/4=16MHz */
 
 #ifdef BUS96
-#define CFG_PCDR_VAL 0x000b00b5
+#define CONFIG_SYS_PCDR_VAL 0x000b00b5
 #endif
 
 #ifdef BUS64
-#define CFG_PCDR_VAL 0x000b00b3
+#define CONFIG_SYS_PCDR_VAL 0x000b00b3
 #endif
 
 #ifdef BUS72
-#define CFG_PCDR_VAL 0x000b00b8
+#define CONFIG_SYS_PCDR_VAL 0x000b00b8
 #endif
 
 #endif /* __CONFIG_H */
index 35331e8ae748faa0e34572c39289c2232d651c43..9321bdc07b88fceee4df6841997b5943661e7251 100644 (file)
@@ -48,7 +48,7 @@
 #include "amcc-common.h"
 
 /* Detect Sequoia PLL input clock automatically via CPLD bit           */
-#define CONFIG_SYS_CLK_FREQ    ((in8(CFG_BCSR_BASE + 3) & 0x80) ? \
+#define CONFIG_SYS_CLK_FREQ    ((in8(CONFIG_SYS_BCSR_BASE + 3) & 0x80) ? \
                                33333333 : 33000000)
 
 /*
  * Base addresses -- Note these are effective addresses where the actual
  * resources get mapped (not physical addresses).
  */
-#define CFG_TLB_FOR_BOOT_FLASH 0x0003
-#define CFG_BOOT_BASE_ADDR     0xf0000000
-#define CFG_FLASH_BASE         0xfc000000      /* start of FLASH       */
-#define CFG_NAND_ADDR          0xd0000000      /* NAND Flash           */
-#define CFG_OCM_BASE           0xe0010000      /* ocm                  */
-#define CFG_OCM_DATA_ADDR      CFG_OCM_BASE
-#define CFG_PCI_BASE           0xe0000000      /* Internal PCI regs    */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory    */
-#define CFG_PCI_MEMBASE1       CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2       CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3       CFG_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_TLB_FOR_BOOT_FLASH  0x0003
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xf0000000
+#define CONFIG_SYS_FLASH_BASE          0xfc000000      /* start of FLASH       */
+#define CONFIG_SYS_NAND_ADDR           0xd0000000      /* NAND Flash           */
+#define CONFIG_SYS_OCM_BASE            0xe0010000      /* ocm                  */
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_OCM_BASE
+#define CONFIG_SYS_PCI_BASE            0xe0000000      /* Internal PCI regs    */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory    */
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
 
 /* Don't change either of these */
-#define CFG_PERIPHERAL_BASE    0xef600000      /* internal peripherals */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000      /* internal peripherals */
 
-#define CFG_USB2D0_BASE                0xe0000100
-#define CFG_USB_DEVICE         0xe0000000
-#define CFG_USB_HOST           0xe0000400
-#define CFG_BCSR_BASE          0xc0000000
+#define CONFIG_SYS_USB2D0_BASE         0xe0000100
+#define CONFIG_SYS_USB_DEVICE          0xe0000000
+#define CONFIG_SYS_USB_HOST            0xe0000400
+#define CONFIG_SYS_BCSR_BASE           0xc0000000
 
 /*
  * Initial RAM & stack pointer
  */
 /* 440EPx/440GRx have 16KB of internal SRAM, so no need for D-Cache    */
-#define CFG_INIT_RAM_ADDR      CFG_OCM_BASE    /* OCM                  */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256     /* num bytes initial data       */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_BASE     /* OCM                  */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256     /* num bytes initial data       */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*
  * Serial Port
  */
-#define CFG_EXT_SERIAL_CLOCK   11059200        /* ext. 11.059MHz clk   */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    11059200        /* ext. 11.059MHz clk   */
 /* define this if you want console on UART1 */
 #undef CONFIG_UART1_CONSOLE
 
 /*
  * FLASH related
  */
-#define CFG_FLASH_CFI                  /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                   /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks         */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip  */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks         */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip  */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)    */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)    */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)    */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)    */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)   */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection      */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)   */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection      */
 
-#define CFG_FLASH_EMPTY_INFO         /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash      */
+#define CONFIG_SYS_FLASH_EMPTY_INFO          /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash      */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector        */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector   */
 
 /* Address and size of Redundant Environment Sector    */
  * set up. While still running from cache, I experienced problems accessing
  * the NAND controller.        sr - 2006-08-25
  */
-#define CFG_NAND_BOOT_SPL_SRC  0xfffff000      /* SPL location               */
-#define CFG_NAND_BOOT_SPL_SIZE (4 << 10)       /* SPL size                   */
-#define CFG_NAND_BOOT_SPL_DST  (CFG_OCM_BASE + (12 << 10)) /* Copy SPL here  */
-#define CFG_NAND_U_BOOT_DST    0x01000000      /* Load NUB to this addr      */
-#define CFG_NAND_U_BOOT_START  CFG_NAND_U_BOOT_DST     /* Start NUB from     */
+#define CONFIG_SYS_NAND_BOOT_SPL_SRC   0xfffff000      /* SPL location               */
+#define CONFIG_SYS_NAND_BOOT_SPL_SIZE  (4 << 10)       /* SPL size                   */
+#define CONFIG_SYS_NAND_BOOT_SPL_DST   (CONFIG_SYS_OCM_BASE + (12 << 10)) /* Copy SPL here  */
+#define CONFIG_SYS_NAND_U_BOOT_DST     0x01000000      /* Load NUB to this addr      */
+#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST      /* Start NUB from     */
                                                        /*   this addr        */
-#define CFG_NAND_BOOT_SPL_DELTA        (CFG_NAND_BOOT_SPL_SRC - CFG_NAND_BOOT_SPL_DST)
+#define CONFIG_SYS_NAND_BOOT_SPL_DELTA (CONFIG_SYS_NAND_BOOT_SPL_SRC - CONFIG_SYS_NAND_BOOT_SPL_DST)
 
 /*
  * Define the partitioning of the NAND chip (only RAM U-Boot is needed here)
  */
-#define CFG_NAND_U_BOOT_OFFS   (16 << 10)      /* Offset to RAM U-Boot image */
-#define CFG_NAND_U_BOOT_SIZE   (512 << 10)     /* Size of RAM U-Boot image   */
+#define CONFIG_SYS_NAND_U_BOOT_OFFS    (16 << 10)      /* Offset to RAM U-Boot image */
+#define CONFIG_SYS_NAND_U_BOOT_SIZE    (512 << 10)     /* Size of RAM U-Boot image   */
 
 /*
  * Now the NAND chip has to be defined (no autodetection used!)
  */
-#define CFG_NAND_PAGE_SIZE     512             /* NAND chip page size        */
-#define CFG_NAND_BLOCK_SIZE    (16 << 10)      /* NAND chip block size       */
-#define CFG_NAND_PAGE_COUNT    32              /* NAND chip page count       */
-#define CFG_NAND_BAD_BLOCK_POS 5             /* Location of bad block marker */
-#undef CFG_NAND_4_ADDR_CYCLE                 /* No fourth addr used (<=32MB) */
-
-#define CFG_NAND_ECCSIZE       256
-#define CFG_NAND_ECCBYTES      3
-#define CFG_NAND_ECCSTEPS      (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
-#define CFG_NAND_OOBSIZE       16
-#define CFG_NAND_ECCTOTAL      (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
-#define CFG_NAND_ECCPOS                {0, 1, 2, 3, 6, 7}
+#define CONFIG_SYS_NAND_PAGE_SIZE      512             /* NAND chip page size        */
+#define CONFIG_SYS_NAND_BLOCK_SIZE     (16 << 10)      /* NAND chip block size       */
+#define CONFIG_SYS_NAND_PAGE_COUNT     32              /* NAND chip page count       */
+#define CONFIG_SYS_NAND_BAD_BLOCK_POS  5             /* Location of bad block marker */
+#undef CONFIG_SYS_NAND_4_ADDR_CYCLE                  /* No fourth addr used (<=32MB) */
+
+#define CONFIG_SYS_NAND_ECCSIZE        256
+#define CONFIG_SYS_NAND_ECCBYTES       3
+#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
+#define CONFIG_SYS_NAND_OOBSIZE        16
+#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
+#define CONFIG_SYS_NAND_ECCPOS         {0, 1, 2, 3, 6, 7}
 
 #ifdef CONFIG_ENV_IS_IN_NAND
 /*
  * For NAND booting the environment is embedded in the U-Boot image. Please take
  * look at the file board/amcc/sequoia/u-boot-nand.lds for details.
  */
-#define CONFIG_ENV_SIZE                CFG_NAND_BLOCK_SIZE
-#define CONFIG_ENV_OFFSET              (CFG_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
+#define CONFIG_ENV_SIZE                CONFIG_SYS_NAND_BLOCK_SIZE
+#define CONFIG_ENV_OFFSET              (CONFIG_SYS_NAND_U_BOOT_OFFS + CONFIG_ENV_SIZE)
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
 #endif
 
 /*
  * DDR SDRAM
  */
-#define CFG_MBYTES_SDRAM        (256)  /* 256MB                        */
+#define CONFIG_SYS_MBYTES_SDRAM        (256)   /* 256MB                        */
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
 #define CONFIG_DDR_DATA_EYE            /* use DDR2 optimization        */
 #endif
-#define CFG_MEM_TOP_HIDE       (4 << 10) /* don't use last 4kbytes     */
+#define CONFIG_SYS_MEM_TOP_HIDE        (4 << 10) /* don't use last 4kbytes     */
                                        /* 440EPx errata CHIP 11        */
 
 /*
  * I2C
  */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /* I2C SYSMON (LM75, AD7414 is almost compatible)                      */
 #define CONFIG_DTT_LM75                1       /* ON Semi's LM75               */
 #define CONFIG_DTT_AD7414      1       /* use AD7414                   */
 #define CONFIG_DTT_SENSORS     {0}     /* Sensor addresses             */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 /*
  * Default environment variables
 #ifdef CONFIG_440EPX
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_USB_STORAGE
-#define CFG_OHCI_BE_CONTROLLER
+#define CONFIG_SYS_OHCI_BE_CONTROLLER
 
-#undef CFG_USB_OHCI_BOARD_INIT
-#define CFG_USB_OHCI_CPU_INIT  1
-#define CFG_USB_OHCI_REGS_BASE CFG_USB_HOST
-#define CFG_USB_OHCI_SLOT_NAME "ppc440"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS 15
+#undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  CONFIG_SYS_USB_HOST
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "ppc440"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 15
 
 /* Comment this out to enable USB 1.1 device */
 #define USB_2_0_DEVICE
 #endif
 
 #ifndef CONFIG_RAINIER
-#define CFG_POST_FPU_ON                CFG_POST_FPU
+#define CONFIG_SYS_POST_FPU_ON         CONFIG_SYS_POST_FPU
 #else
-#define CFG_POST_FPU_ON                0
+#define CONFIG_SYS_POST_FPU_ON         0
 #endif
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_CACHE    | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_ETHER    | \
-                                CFG_POST_FPU_ON   | \
-                                CFG_POST_I2C      | \
-                                CFG_POST_MEMORY   | \
-                                CFG_POST_SPR      | \
-                                CFG_POST_UART)
-
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_POST            (CONFIG_SYS_POST_CACHE     | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_ETHER     | \
+                                CONFIG_SYS_POST_FPU_ON   | \
+                                CONFIG_SYS_POST_I2C       | \
+                                CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_SPR       | \
+                                CONFIG_SYS_POST_UART)
+
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
 #define CONFIG_LOGBUFFER
-#define CFG_POST_CACHE_ADDR    0x7fff0000      /* free virtual address     */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x7fff0000      /* free virtual address     */
 
-#define CFG_CONSOLE_IS_IN_ENV  /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV   /* Otherwise it catches logbuffer as output */
 
 #define CONFIG_SUPPORT_VFAT
 
 /* General PCI */
 #define CONFIG_PCI                     /* include pci support          */
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
-#define CFG_PCI_CACHE_LINE_SIZE        0       /* to avoid problems with PNP   */
+#define CONFIG_SYS_PCI_CACHE_LINE_SIZE 0       /* to avoid problems with PNP   */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE       0x80000000      /* PCIaddr mapped to    */
-                                               /*   CFG_PCI_MEMBASE    */
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000      /* PCIaddr mapped to    */
+                                               /*   CONFIG_SYS_PCI_MEMBASE     */
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC                         */
-#define CFG_PCI_SUBSYS_ID       0xcafe /* Whatever                     */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC                         */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe  /* Whatever                     */
 
 /*
  * External Bus Controller (EBC) Setup
  * On Sequoia CS0 and CS3 are switched when configuring for NAND booting
  */
 #if !defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL)
-#define CFG_NAND_CS            3       /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             3       /* NAND chip connected to CSx   */
 /* Memory Bank 0 (NOR-FLASH) initialization                            */
-#define CFG_EBC_PB0AP          0x03017200
-#define CFG_EBC_PB0CR          (CFG_FLASH_BASE | 0xda000)
+#define CONFIG_SYS_EBC_PB0AP           0x03017200
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH_BASE | 0xda000)
 
 /* Memory Bank 3 (NAND-FLASH) initialization                           */
-#define CFG_EBC_PB3AP          0x018003c0
-#define CFG_EBC_PB3CR          (CFG_NAND_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB3AP           0x018003c0
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_NAND_ADDR | 0x1c000)
 #else
-#define CFG_NAND_CS            0       /* NAND chip connected to CSx   */
+#define CONFIG_SYS_NAND_CS             0       /* NAND chip connected to CSx   */
 /* Memory Bank 3 (NOR-FLASH) initialization                            */
-#define CFG_EBC_PB3AP          0x03017200
-#define CFG_EBC_PB3CR          (CFG_FLASH_BASE | 0xda000)
+#define CONFIG_SYS_EBC_PB3AP           0x03017200
+#define CONFIG_SYS_EBC_PB3CR           (CONFIG_SYS_FLASH_BASE | 0xda000)
 
 /* Memory Bank 0 (NAND-FLASH) initialization                           */
-#define CFG_EBC_PB0AP          0x018003c0
-#define CFG_EBC_PB0CR          (CFG_NAND_ADDR | 0x1c000)
+#define CONFIG_SYS_EBC_PB0AP           0x018003c0
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_NAND_ADDR | 0x1c000)
 #endif
 
 /* Memory Bank 2 (CPLD) initialization                                 */
-#define CFG_EBC_PB2AP          0x24814580
-#define CFG_EBC_PB2CR          (CFG_BCSR_BASE | 0x38000)
+#define CONFIG_SYS_EBC_PB2AP           0x24814580
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_BCSR_BASE | 0x38000)
 
-#define CFG_BCSR5_PCI66EN      0x80
+#define CONFIG_SYS_BCSR5_PCI66EN       0x80
 
 /*
  * NAND FLASH
  */
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
-#define CFG_NAND_BASE          (CFG_NAND_ADDR + CFG_NAND_CS)
-#define CFG_NAND_SELECT_DEVICE  1      /* nand driver supports mutipl. chips */
+#define CONFIG_SYS_NAND_BASE           (CONFIG_SYS_NAND_ADDR + CONFIG_SYS_NAND_CS)
+#define CONFIG_SYS_NAND_SELECT_DEVICE  1       /* nand driver supports mutipl. chips */
 
 /*
  * PPC440 GPIO Configuration
  */
 /* test-only: take GPIO init from pcs440ep ???? in config file */
-#define CFG_4xx_GPIO_TABLE { /*          Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*   Out             GPIO  Alternate1      Alternate2      Alternate3 */ \
 {                                                                                      \
 /* GPIO Core 0 */                                                                      \
 {GPIO0_BASE, GPIO_BI , GPIO_ALT1, GPIO_OUT_0}, /* GPIO0        EBC_ADDR(7)     DMA_REQ(2)      */      \
 #define CONFIG_BIOSEMU                 /* x86 bios emulator for vga bios */
 #define CONFIG_ATI_RADEON_FB           /* use radeon framebuffer driver */
 #define VIDEO_IO_OFFSET                        0xe8000000
-#define CFG_ISA_IO_BASE_ADDRESS                VIDEO_IO_OFFSET
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS         VIDEO_IO_OFFSET
 #define CONFIG_VIDEO_SW_CURSOR
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_CFB_CONSOLE
index 2daaeb0459d3208088ba5236d5bfc4180715985f..8a76dad5d93580f85cacb18cb9a9ab8aac622a6b 100644 (file)
 #define CONFIG_BAUDRATE         115200
 #define CONFIG_CONS_SCIF2              1
 
-#define CFG_LONGHELP           /* undef to save memory */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
-#define CFG_CBSIZE             256     /* Buffer size for input from the Console */
-#define CFG_PBSIZE             256     /* Buffer size for Console output */
-#define CFG_MAXARGS            16      /* max args accepted for monitor commands */
-#define CFG_BARGSIZE   512     /* Buffer size for Boot Arguments
+#define CONFIG_SYS_LONGHELP            /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE              256     /* Buffer size for input from the Console */
+#define CONFIG_SYS_PBSIZE              256     /* Buffer size for Console output */
+#define CONFIG_SYS_MAXARGS             16      /* max args accepted for monitor commands */
+#define CONFIG_SYS_BARGSIZE    512     /* Buffer size for Boot Arguments
                                                                passed to kernel */
-#define CFG_BAUDRATE_TABLE     { 115200 }      /* List of legal baudrate
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }      /* List of legal baudrate
                                                                                                settings for this board */
 
 /* SDRAM */
-#define CFG_SDRAM_BASE         (0x8C000000)
-#define CFG_SDRAM_SIZE         (64 * 1024 * 1024)
-#define CFG_MEMTEST_START      (CFG_SDRAM_BASE)
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + (60 * 1024 * 1024))
+#define CONFIG_SYS_SDRAM_BASE          (0x8C000000)
+#define CONFIG_SYS_SDRAM_SIZE          (64 * 1024 * 1024)
+#define CONFIG_SYS_MEMTEST_START       (CONFIG_SYS_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + (60 * 1024 * 1024))
 
 /* Flash(NOR) */
-#define CFG_FLASH_BASE         (0xA0000000)
-#define CFG_FLASH_CFI_WIDTH (FLASH_CFI_16BIT)
-#define CFG_MAX_FLASH_BANKS (1)
-#define CFG_MAX_FLASH_SECT  (520)
+#define CONFIG_SYS_FLASH_BASE          (0xA0000000)
+#define CONFIG_SYS_FLASH_CFI_WIDTH (FLASH_CFI_16BIT)
+#define CONFIG_SYS_MAX_FLASH_BANKS (1)
+#define CONFIG_SYS_MAX_FLASH_SECT  (520)
 
 /* U-boot setting */
-#define CFG_LOAD_ADDR          (CFG_SDRAM_BASE + 4 * 1024 * 1024)
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE)
-#define CFG_MONITOR_LEN                (128 * 1024)
+#define CONFIG_SYS_LOAD_ADDR           (CONFIG_SYS_SDRAM_BASE + 4 * 1024 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_MONITOR_LEN         (128 * 1024)
 /* Size of DRAM reserved for malloc() use */
-#define CFG_MALLOC_LEN         (1024 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (1024 * 1024)
 /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_SIZE      (256)
-#define CFG_BOOTMAPSZ          (8 * 1024 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)
+#define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
 
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#undef  CFG_FLASH_QUIET_TEST
-#define CFG_FLASH_EMPTY_INFO   /* print 'E' for empty sector on flinfo */
+#undef  CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_EMPTY_INFO    /* print 'E' for empty sector on flinfo */
 /* Timeout for Flash erase operations (in ms) */
-#define CFG_FLASH_ERASE_TOUT   (3 * 1000)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (3 * 1000)
 /* Timeout for Flash write operations (in ms) */
-#define CFG_FLASH_WRITE_TOUT   (3 * 1000)
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (3 * 1000)
 /* Timeout for Flash set sector lock bit operations (in ms) */
-#define CFG_FLASH_LOCK_TOUT            (3 * 1000)
+#define CONFIG_SYS_FLASH_LOCK_TOUT             (3 * 1000)
 /* Timeout for Flash clear lock bit operations (in ms) */
-#define CFG_FLASH_UNLOCK_TOUT  (3 * 1000)
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   (3 * 1000)
 /* Use hardware flash sectors protection instead of U-Boot software protection */
-#undef  CFG_FLASH_PROTECTION
-#undef  CFG_DIRECT_FLASH_TFTP
+#undef  CONFIG_SYS_FLASH_PROTECTION
+#undef  CONFIG_SYS_DIRECT_FLASH_TFTP
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   (128 * 1024)
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE))
-/* Offset of env Flash sector relative to CFG_FLASH_BASE */
-#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + (1 * CONFIG_ENV_SECT_SIZE))
+/* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
+#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR_REDUND (CFG_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE))
 
 /* Clock */
 #define CONFIG_SYS_CLK_FREQ    66666666
 #define TMU_CLK_DIVIDER                (4)     /* 4 (default), 16, 64, 256 or 1024 */
-#define CFG_HZ                         (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                          (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 /* Ether */
 #define CONFIG_SH_ETHER 1
index bf06f62ba07a5670629be11c847248698446ab9a..1b59059451a6126a821f2ad28ffe27d631692cc4 100644 (file)
 #define SH7785LCR_FLASH_BANK_SIZE      (64 * 1024 * 1024)
 #define SH7785LCR_USB_BASE             (0xb4000000)
 
-#define CFG_LONGHELP
-#define CFG_PROMPT             "=> "
-#define CFG_CBSIZE             256
-#define CFG_PBSIZE             256
-#define CFG_MAXARGS            16
-#define CFG_BARGSIZE           512
-#define CFG_BAUDRATE_TABLE     { 115200 }
+#define CONFIG_SYS_LONGHELP
+#define CONFIG_SYS_PROMPT              "=> "
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_PBSIZE              256
+#define CONFIG_SYS_MAXARGS             16
+#define CONFIG_SYS_BARGSIZE            512
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }
 
 /* SCIF */
 #define CONFIG_SCIF_CONSOLE    1
 #define CONFIG_CONS_SCIF1      1
 #define CONFIG_SCIF_EXT_CLOCK  1
-#undef CFG_CONSOLE_INFO_QUIET
-#undef CFG_CONSOLE_OVERWRITE_ROUTINE
-#undef CFG_CONSOLE_ENV_OVERWRITE
+#undef CONFIG_SYS_CONSOLE_INFO_QUIET
+#undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
+#undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 
 
-#define CFG_MEMTEST_START      (SH7785LCR_SDRAM_BASE)
-#define CFG_MEMTEST_END                (CFG_MEMTEST_START + \
+#define CONFIG_SYS_MEMTEST_START       (SH7785LCR_SDRAM_BASE)
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + \
                                        (SH7785LCR_SDRAM_SIZE) - \
                                         4 * 1024 * 1024)
-#undef CFG_ALT_MEMTEST
-#undef CFG_MEMTEST_SCRATCH
-#undef CFG_LOADS_BAUD_CHANGE
+#undef CONFIG_SYS_ALT_MEMTEST
+#undef CONFIG_SYS_MEMTEST_SCRATCH
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE
 
-#define CFG_SDRAM_BASE (SH7785LCR_SDRAM_BASE)
-#define CFG_SDRAM_SIZE (SH7785LCR_SDRAM_SIZE)
-#define CFG_LOAD_ADDR  (CFG_SDRAM_BASE + 16 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE  (SH7785LCR_SDRAM_BASE)
+#define CONFIG_SYS_SDRAM_SIZE  (SH7785LCR_SDRAM_SIZE)
+#define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024)
 
-#define CFG_MONITOR_BASE       (SH7785LCR_FLASH_BASE_1)
-#define CFG_MONITOR_LEN                (512 * 1024)
-#define CFG_MALLOC_LEN         (512 * 1024)
-#define CFG_GBL_DATA_SIZE      (256)
-#define CFG_BOOTMAPSZ          (8 * 1024 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        (SH7785LCR_FLASH_BASE_1)
+#define CONFIG_SYS_MONITOR_LEN         (512 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       (256)
+#define CONFIG_SYS_BOOTMAPSZ           (8 * 1024 * 1024)
 
 /* FLASH */
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#undef CFG_FLASH_QUIET_TEST
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_BASE         (SH7785LCR_FLASH_BASE_1)
-#define CFG_MAX_FLASH_SECT     512
-
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE + \
+#define CONFIG_SYS_FLASH_CFI
+#undef CONFIG_SYS_FLASH_QUIET_TEST
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_BASE          (SH7785LCR_FLASH_BASE_1)
+#define CONFIG_SYS_MAX_FLASH_SECT      512
+
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE + \
                                 (0 * SH7785LCR_FLASH_BANK_SIZE) }
 
-#define CFG_FLASH_ERASE_TOUT   (3 * 1000)
-#define CFG_FLASH_WRITE_TOUT   (3 * 1000)
-#define CFG_FLASH_LOCK_TOUT    (3 * 1000)
-#define CFG_FLASH_UNLOCK_TOUT  (3 * 1000)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (3 * 1000)
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (3 * 1000)
+#define CONFIG_SYS_FLASH_LOCK_TOUT     (3 * 1000)
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   (3 * 1000)
 
-#undef CFG_FLASH_PROTECTION
-#undef CFG_DIRECT_FLASH_TFTP
+#undef CONFIG_SYS_FLASH_PROTECTION
+#undef CONFIG_SYS_DIRECT_FLASH_TFTP
 
 /* R8A66597 */
 #define LITTLEENDIAN                   /* for include/usb.h */
 #define CONFIG_ENV_OVERWRITE   1
 #define CONFIG_ENV_SECT_SIZE   (256 * 1024)
 #define CONFIG_ENV_SIZE                (CONFIG_ENV_SECT_SIZE)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + CFG_MONITOR_LEN)
-#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
+#define CONFIG_ENV_OFFSET              (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
 
 /* Board Clock */
 /* The SCIF used external clock. system clock only used timer. */
 #define CONFIG_SYS_CLK_FREQ    50000000
 #define TMU_CLK_DIVIDER                4
-#define CFG_HZ                 (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
+#define CONFIG_SYS_HZ                  (CONFIG_SYS_CLK_FREQ / TMU_CLK_DIVIDER)
 
 #endif /* __SH7785LCR_H */
index edc9a2ef126f3d754574e7cc84166edf9699506d..75ba34cdb851b90f3b4ec81654ec1412eb979a1c 100644 (file)
@@ -48,8 +48,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "TuxScreen # "  /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "TuxScreen # "  /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xc0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xc0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xc0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xc0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0xd0000000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0xd0000000      /* default load address */
 
-#define        CFG_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x09            /* 190 MHz for Shannon */
+#define        CONFIG_SYS_HZ                   3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x09            /* 190 MHz for Shannon */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_DOS_PARTITION   1               /* DOS partitiion support */
 
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 #define PHYS_FLASH_SIZE                0x00400000 /* 4 MB */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     (31+4)  /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      (31+4)  /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #ifdef CONFIG_INFERNO
 
 #define CONFIG_PCMCIA_SLOT_A
 
-#define CFG_PCMCIA_IO_ADDR     (0x20000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0x24000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0x2C000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_MEM_ADDR    (0x28000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0x20000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0x24000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0x2C000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0x28000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
 
 /* in fact, MEM and ATTRB are swapped - has to be corrected soon in cmd_pcmcia or so */
 
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
 /* it's simple, all regs are in I/O space */
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_ATTRB_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_ATTRB_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    0
+#define CONFIG_SYS_ATA_DATA_OFFSET     0
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     0
+#define CONFIG_SYS_ATA_REG_OFFSET      0
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0
+#define CONFIG_SYS_ATA_ALT_OFFSET      0
 
 /*-----------------------------------------------------------------------
  */
index 15ae3da1265c2e1bee0db8612c9950a108e24ab2..6388be4d493a87d2e9f202eebc3797cc8e83d51a 100644 (file)
@@ -50,8 +50,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "SMDK2400 # "   /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "SMDK2400 # "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0c000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x0e000000      /* 32 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0c000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0e000000      /* 32 MB in DRAM        */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x0cf00000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x0cf00000      /* default load address */
 
 /* the PWM TImer 4 uses a counter of 15625 for 10 ms, so we need */
 /* it to wrap 100 times (total 1562500) to get 1 sec. */
-#define        CFG_HZ                  1562500
+#define        CONFIG_SYS_HZ                   1562500
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_SDRAM_1           0x0c000000 /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE      0x02000000 /* 32 MB */
 
-#define CFG_FLASH_BASE         0x00000000 /* Flash Bank #1 */
+#define CONFIG_SYS_FLASH_BASE          0x00000000 /* Flash Bank #1 */
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (64)    /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (64)    /* max number of sectors on one chip */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /* Address and size of Primary Environment Sector      */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x40000)
 #define CONFIG_ENV_SIZE                0x40000
 
 /* Address and size of Redundant Environment Sector    */
index cd0093ef7175526518c991563c26538531cb03d3..ecd958b55758843f2521972606e63d7b9fdec2e8 100644 (file)
@@ -47,8 +47,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "SMDK2410 # "   /* Monitor Command Prompt       */
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "SMDK2410 # "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x30000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x33F00000      /* 63 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x30000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x33F00000      /* 63 MB in DRAM        */
 
-#undef  CFG_CLKS_IN_HZ         /* everything, incl board info, in Hz */
+#undef  CONFIG_SYS_CLKS_IN_HZ          /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x33000000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x33000000      /* default load address */
 
 /* the PWM TImer 4 uses a counter of 15625 for 10 ms, so we need */
 /* it to wrap 100 times (total 1562500) to get 1 sec. */
-#define        CFG_HZ                  1562500
+#define        CONFIG_SYS_HZ                   1562500
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
 #define CONFIG_AMD_LV800       1       /* uncomment this if you have a LV800 flash */
 #endif
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
 #ifdef CONFIG_AMD_LV800
 #define PHYS_FLASH_SIZE                0x00100000 /* 1MB */
-#define CFG_MAX_FLASH_SECT     (19)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x0F0000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (19)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x0F0000) /* addr of environment */
 #endif
 #ifdef CONFIG_AMD_LV400
 #define PHYS_FLASH_SIZE                0x00080000 /* 512KB */
-#define CFG_MAX_FLASH_SECT     (11)    /* max number of sectors on one chip */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x070000) /* addr of environment */
+#define CONFIG_SYS_MAX_FLASH_SECT      (11)    /* max number of sectors on one chip */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x070000) /* addr of environment */
 #endif
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SIZE                0x10000 /* Total Size of Environment Sector */
index ea65c0ef1e1e3ac78b14a99dd884f80903b36641..1784cc622ce38c310428223f9fc7674f27749663 100644 (file)
@@ -40,7 +40,7 @@
 #define CONFIG_S3C64XX         1       /* in a SAMSUNG S3C64XX Family  */
 #define CONFIG_SMDK6400                1       /* on a SAMSUNG SMDK6400 Board  */
 
-#define CFG_SDRAM_BASE 0x50000000
+#define CONFIG_SYS_SDRAM_BASE  0x50000000
 
 /* input clock of PLL: SMDK6400 has 12MHz input clock */
 #define CONFIG_SYS_CLK_FREQ    12000000
@@ -68,8 +68,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 1024 * 1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 1024 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes for initial data */
 
 /*
  * Hardware drivers
@@ -83,9 +83,9 @@
  */
 #define CONFIG_SERIAL1          1      /* we use SERIAL 1 on SMDK6400  */
 
-#define CFG_HUSH_PARSER                        /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER                 /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #define CONFIG_CMDLINE_EDITING
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory       */
-#define CFG_PROMPT             "SMDK6400 # "   /* Monitor Command Prompt     */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size    */
-#define CFG_PBSIZE             384             /* Print Buffer Size          */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size  */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory       */
+#define CONFIG_SYS_PROMPT              "SMDK6400 # "   /* Monitor Command Prompt     */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size    */
+#define CONFIG_SYS_PBSIZE              384             /* Print Buffer Size          */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      CFG_SDRAM_BASE  /* memtest works on           */
-#define CFG_MEMTEST_END                (CFG_SDRAM_BASE + 0x7e00000) /* 126MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE   /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_SDRAM_BASE + 0x7e00000) /* 126MB in DRAM */
 
-#define CFG_LOAD_ADDR          CFG_SDRAM_BASE  /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE   /* default load address */
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 
 /* SMDK6400 has 2 banks of DRAM, but we use only one in U-Boot */
 #define CONFIG_NR_DRAM_BANKS   1
-#define PHYS_SDRAM_1           CFG_SDRAM_BASE  /* SDRAM Bank #1        */
+#define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE   /* SDRAM Bank #1        */
 #define PHYS_SDRAM_1_SIZE      0x08000000      /* 128 MB in Bank #1    */
 
-#define CFG_FLASH_BASE         0x10000000
-#define CFG_MONITOR_BASE       0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x10000000
+#define CONFIG_SYS_MONITOR_BASE        0x00000000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks   */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks   */
 /* AM29LV160B has 35 sectors, AM29LV800B - 19 */
-#define CFG_MAX_FLASH_SECT     40
+#define CONFIG_SYS_MAX_FLASH_SECT      40
 
 #define CONFIG_AMD_LV800
-#define CFG_FLASH_CFI          1       /* Use CFI parameters (needed?) */
+#define CONFIG_SYS_FLASH_CFI           1       /* Use CFI parameters (needed?) */
 /* Use drivers/cfi_flash.c, even though the flash is not CFI-compliant */
 #define CONFIG_FLASH_CFI_DRIVER        1
-#define CFG_FLASH_CFI_WIDTH    FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT
 #define CONFIG_FLASH_CFI_LEGACY
-#define CFG_FLASH_LEGACY_512Kx16
+#define CONFIG_SYS_FLASH_LEGACY_512Kx16
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (5 * CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (5 * CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (5 * CONFIG_SYS_HZ) /* Timeout for Flash Erase  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (5 * CONFIG_SYS_HZ) /* Timeout for Flash Write  */
 
 #define CONFIG_ENV_SIZE                0x4000  /* Total Size of Environment Sector */
 
 #define CONFIG_IDENT_STRING    " for SMDK6400"
 
 /* base address for uboot */
-#define CFG_PHY_UBOOT_BASE     (CFG_SDRAM_BASE + 0x07e00000)
+#define CONFIG_SYS_PHY_UBOOT_BASE      (CONFIG_SYS_SDRAM_BASE + 0x07e00000)
 /* total memory available to uboot */
-#define CFG_UBOOT_SIZE         (1024 * 1024)
+#define CONFIG_SYS_UBOOT_SIZE          (1024 * 1024)
 
 #ifdef CONFIG_ENABLE_MMU
-#define CFG_MAPPED_RAM_BASE    0xc0000000
+#define CONFIG_SYS_MAPPED_RAM_BASE     0xc0000000
 #define CONFIG_BOOTCOMMAND     "nand read 0xc0018000 0x60000 0x1c0000;" \
                                "bootm 0xc0018000"
 #else
-#define CFG_MAPPED_RAM_BASE    CFG_SDRAM_BASE
+#define CONFIG_SYS_MAPPED_RAM_BASE     CONFIG_SYS_SDRAM_BASE
 #define CONFIG_BOOTCOMMAND     "nand read 0x50018000 0x60000 0x1c0000;" \
                                "bootm 0x50018000"
 #endif
 
 /* NAND U-Boot load and start address */
-#define CFG_UBOOT_BASE         (CFG_MAPPED_RAM_BASE + 0x07e00000)
+#define CONFIG_SYS_UBOOT_BASE          (CONFIG_SYS_MAPPED_RAM_BASE + 0x07e00000)
 
 #define CONFIG_ENV_OFFSET              0x0040000
 
 /* NAND configuration */
-#define CFG_MAX_NAND_DEVICE    1
-#define CFG_NAND_BASE          0x70200010
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
+#define CONFIG_SYS_NAND_BASE           0x70200010
 #define NAND_MAX_CHIPS         1
-#define CFG_S3C_NAND_HWECC
+#define CONFIG_SYS_S3C_NAND_HWECC
 
-#define CFG_NAND_SKIP_BAD_DOT_I        1  /* ".i" read skips bad blocks              */
-#define CFG_NAND_WP            1
-#define CFG_NAND_YAFFS_WRITE   1  /* support yaffs write                     */
-#define CFG_NAND_BBT_2NDPAGE   1  /* bad-block markers in 1st and 2nd pages  */
+#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1  /* ".i" read skips bad blocks              */
+#define CONFIG_SYS_NAND_WP             1
+#define CONFIG_SYS_NAND_YAFFS_WRITE    1  /* support yaffs write                     */
+#define CONFIG_SYS_NAND_BBT_2NDPAGE    1  /* bad-block markers in 1st and 2nd pages  */
 
-#define CFG_NAND_U_BOOT_DST    CFG_PHY_UBOOT_BASE      /* NUB load-addr      */
-#define CFG_NAND_U_BOOT_START  CFG_NAND_U_BOOT_DST     /* NUB start-addr     */
+#define CONFIG_SYS_NAND_U_BOOT_DST     CONFIG_SYS_PHY_UBOOT_BASE       /* NUB load-addr      */
+#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST      /* NUB start-addr     */
 
-#define CFG_NAND_U_BOOT_OFFS   (4 * 1024)      /* Offset to RAM U-Boot image */
-#define CFG_NAND_U_BOOT_SIZE   (252 * 1024)    /* Size of RAM U-Boot image   */
+#define CONFIG_SYS_NAND_U_BOOT_OFFS    (4 * 1024)      /* Offset to RAM U-Boot image */
+#define CONFIG_SYS_NAND_U_BOOT_SIZE    (252 * 1024)    /* Size of RAM U-Boot image   */
 
 /* NAND chip page size         */
-#define CFG_NAND_PAGE_SIZE     2048
+#define CONFIG_SYS_NAND_PAGE_SIZE      2048
 /* NAND chip block size                */
-#define CFG_NAND_BLOCK_SIZE    (128 * 1024)
+#define CONFIG_SYS_NAND_BLOCK_SIZE     (128 * 1024)
 /* NAND chip page per block count  */
-#define CFG_NAND_PAGE_COUNT    64
+#define CONFIG_SYS_NAND_PAGE_COUNT     64
 /* Location of the bad-block label */
-#define CFG_NAND_BAD_BLOCK_POS 0
+#define CONFIG_SYS_NAND_BAD_BLOCK_POS  0
 /* Extra address cycle for > 128MiB */
-#define CFG_NAND_5_ADDR_CYCLE
+#define CONFIG_SYS_NAND_5_ADDR_CYCLE
 
 /* Size of the block protected by one OOB (Spare Area in Samsung terminology) */
-#define CFG_NAND_ECCSIZE       CFG_NAND_PAGE_SIZE
+#define CONFIG_SYS_NAND_ECCSIZE        CONFIG_SYS_NAND_PAGE_SIZE
 /* Number of ECC bytes per OOB - S3C6400 calculates 4 bytes ECC in 1-bit mode */
-#define CFG_NAND_ECCBYTES      4
+#define CONFIG_SYS_NAND_ECCBYTES       4
 /* Number of ECC-blocks per NAND page */
-#define CFG_NAND_ECCSTEPS      (CFG_NAND_PAGE_SIZE / CFG_NAND_ECCSIZE)
+#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
 /* Size of a single OOB region */
-#define CFG_NAND_OOBSIZE       64
+#define CONFIG_SYS_NAND_OOBSIZE        64
 /* Number of ECC bytes per page */
-#define CFG_NAND_ECCTOTAL      (CFG_NAND_ECCBYTES * CFG_NAND_ECCSTEPS)
+#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
 /* ECC byte positions */
-#define CFG_NAND_ECCPOS                {40, 41, 42, 43, 44, 45, 46, 47, \
+#define CONFIG_SYS_NAND_ECCPOS         {40, 41, 42, 43, 44, 45, 46, 47, \
                                 48, 49, 50, 51, 52, 53, 54, 55, \
                                 56, 57, 58, 59, 60, 61, 62, 63}
 
 #if !defined(CONFIG_ENABLE_MMU)
 #define CONFIG_CMD_USB                 1
 #define CONFIG_USB_OHCI_NEW            1
-#define CFG_USB_OHCI_REGS_BASE         0x74300000
-#define CFG_USB_OHCI_SLOT_NAME         "s3c6400"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    3
-#define CFG_USB_OHCI_CPU_INIT          1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE          0x74300000
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "s3c6400"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     3
+#define CONFIG_SYS_USB_OHCI_CPU_INIT           1
 #define LITTLEENDIAN                   1       /* used by usb_ohci.c   */
 
 #define CONFIG_USB_STORAGE     1
index fd13dcd44555db046122f55e7632774e112c1842..a3f26773870c2f58f1c4be000f043228b7a98736 100644 (file)
@@ -37,7 +37,7 @@
 #define CONFIG_TQM5200         1       /* ... on TQM5200 module */
 #undef CONFIG_TQM5200_REV100           /*  define for revision 100 modules */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
@@ -49,7 +49,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_MAC_PARTITION
@@ -57,9 +57,9 @@
 #define CONFIG_ISO_PARTITION
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_I2C)
 
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
 #define        CONFIG_TIMESTAMP                /* display image timestamps */
 
 #if (TEXT_BASE == 0xFC000000)          /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
-#if defined(CFG_IPBCLK_EQUALS_XLBCLK)
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
+ * CONFIG_SYS_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
  * of 66 MHz yet hasn't been tested with a IPB Bus Clock of 66 MHz.
  */
-#define CFG_PCICLK_EQUALS_IPBCLK_DIV2  /* define for 66MHz speed */
+#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2   /* define for 66MHz speed */
 #endif
 
 /*
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
 #ifdef CONFIG_TQM5200_REV100
-#define CFG_I2C_MODULE         1       /* Select I2C module #1 for rev. 100 board */
+#define CONFIG_SYS_I2C_MODULE          1       /* Select I2C module #1 for rev. 100 board */
 #else
-#define CFG_I2C_MODULE         2       /* Select I2C module #2 for all other revs */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #2 for all other revs */
 #endif
 
 /*
  * Please notice, that the resulting clock frequency could differ from the
  * configured value. This is because the I2C clock is derived from system
  * clock over a frequency divider with only a few divider values. U-boot
- * calculates the best approximation for CFG_I2C_SPEED. However the calculated
+ * calculates the best approximation for CONFIG_SYS_I2C_SPEED. However the calculated
  * approximation allways lies below the configured value, never above.
  */
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration for onboard EEPROM M24C32 (M24C64 should work
  * EEPROM (24C64) is on the same I2C address (but on other I2C bus), so the
  * same configuration could be used.
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         TEXT_BASE /* 0xFC000000 */
+#define CONFIG_SYS_FLASH_BASE          TEXT_BASE /* 0xFC000000 */
 
 /* use CFI flash driver if no module variant is spezified */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_BOOTCS_START }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_SIZE         0x04000000 /* 64 MByte */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
-#undef CFG_FLASH_USE_BUFFER_WRITE      /* not supported yet for AMD */
-
-#if !defined(CFG_LOWBOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00760000 + 0x00800000)
-#else  /* CFG_LOWBOOT */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00060000)
-#endif /* CFG_LOWBOOT */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_BOOTCS_START }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_SIZE          0x04000000 /* 64 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
+#undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE       /* not supported yet for AMD */
+
+#if !defined(CONFIG_SYS_LOWBOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00760000 + 0x00800000)
+#else  /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00060000)
+#endif /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 /* Dynamic MTD partition support */
 #define CONFIG_JFFS2_CMDLINE
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (384 << 10)     /* Reserve 384 kB for Monitor   */
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (384 << 10)     /* Reserve 384 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  *   tests.
  */
 #if defined (CONFIG_MINIFAP)
-# define CFG_GPS_PORT_CONFIG   0x91000004
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x91000004
 #elif defined (CONFIG_STK52XX)
 # if defined (CONFIG_STK52XX_REV100)
-#  define CFG_GPS_PORT_CONFIG  0x81500014
+#  define CONFIG_SYS_GPS_PORT_CONFIG   0x81500014
 # else /* STK52xx REV200 and above */
 #  if defined (CONFIG_TQM5200_REV100)
 #   error TQM5200 REV100 not supported on STK52XX REV200 or above
 #  else/* TQM5200 REV200 and above */
-#   define CFG_GPS_PORT_CONFIG 0x91500004
+#   define CONFIG_SYS_GPS_PORT_CONFIG  0x91500004
 #  endif
 # endif
 #else  /* TMQ5200 Inbetriebnahme-Board */
-# define CFG_GPS_PORT_CONFIG   0x81000004
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x81000004
 #endif
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#ifdef CFG_PCICLK_EQUALS_IPBCLK_DIV2
-#define CFG_BOOTCS_CFG         0x0008DF30 /* for pci_clk  = 66 MHz */
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
+#define CONFIG_SYS_BOOTCS_CFG          0x0008DF30 /* for pci_clk  = 66 MHz */
 #else
-#define CFG_BOOTCS_CFG         0x0004DF30 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_BOOTCS_CFG          0x0004DF30 /* for pci_clk = 33 MHz */
 #endif
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333311      /* 1 dead cycle for flash and SM501 */
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333311      /* 1 dead cycle for flash and SM501 */
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 #endif /* __CONFIG_H */
index c4255f14e70c5c6acd3179cbf1e0629ac55581bb..c67db8f25d9f73ab230002e78e00eca5bf02c68c 100644 (file)
 #define CONFIG_BTB                     /* toggle branch predition      */
 #define CONFIG_ADDR_STREAMING          /* toggle addr streaming        */
 
-#define CFG_INIT_DBCR DBCR_IDM         /* Enable Debug Exceptions      */
+#define CONFIG_SYS_INIT_DBCR DBCR_IDM          /* Enable Debug Exceptions      */
 
-#undef CFG_DRAM_TEST                   /* memory test, takes time      */
-#define CFG_MEMTEST_START      0x00400000
-#define CFG_MEMTEST_END                0x00C00000
+#undef CONFIG_SYS_DRAM_TEST                    /* memory test, takes time      */
+#define CONFIG_SYS_MEMTEST_START       0x00400000
+#define CONFIG_SYS_MEMTEST_END         0x00C00000
 
 /*
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CFG_CCSRBAR_DEFAULT    0xFF700000      /* CCSRBAR Default      */
-#define CFG_CCSRBAR            0xE0000000      /* relocated CCSRBAR    */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xFF700000      /* CCSRBAR Default      */
+#define CONFIG_SYS_CCSRBAR             0xE0000000      /* relocated CCSRBAR    */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR    */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR2
 #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER       /* DDR controller or DMA? */
 #define CONFIG_MEM_INIT_VALUE  0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 #define CONFIG_VERY_BIG_RAM
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DDR_DEFAULT_CL  30              /* CAS latency 3        */
 
 /* Hardcoded values, to use instead of SPD */
-#define CFG_DDR_CS0_BNDS               0x0000000f
-#define CFG_DDR_CS0_CONFIG             0x80010102
-#define CFG_DDR_TIMING_0               0x00260802
-#define CFG_DDR_TIMING_1               0x3935D322
-#define CFG_DDR_TIMING_2               0x14904CC8
-#define CFG_DDR_MODE                   0x00480432
-#define CFG_DDR_INTERVAL               0x030C0100
-#define CFG_DDR_CONFIG_2               0x04400000
-#define CFG_DDR_CONFIG                 0xC3008000
-#define CFG_DDR_CLK_CONTROL            0x03800000
-#define CFG_SDRAM_SIZE                 256 /* in Megs */
+#define CONFIG_SYS_DDR_CS0_BNDS                0x0000000f
+#define CONFIG_SYS_DDR_CS0_CONFIG              0x80010102
+#define CONFIG_SYS_DDR_TIMING_0                0x00260802
+#define CONFIG_SYS_DDR_TIMING_1                0x3935D322
+#define CONFIG_SYS_DDR_TIMING_2                0x14904CC8
+#define CONFIG_SYS_DDR_MODE                    0x00480432
+#define CONFIG_SYS_DDR_INTERVAL                0x030C0100
+#define CONFIG_SYS_DDR_CONFIG_2                0x04400000
+#define CONFIG_SYS_DDR_CONFIG                  0xC3008000
+#define CONFIG_SYS_DDR_CLK_CONTROL             0x03800000
+#define CONFIG_SYS_SDRAM_SIZE                  256 /* in Megs */
 
 /*
  * Flash on the LocalBus
  */
-#define CFG_LBC_CACHE_BASE     0xf0000000      /* Localbus cacheable    */
+#define CONFIG_SYS_LBC_CACHE_BASE      0xf0000000      /* Localbus cacheable    */
 
-#define CFG_FLASH0             0xFE000000
-#define CFG_FLASH1             0xFC000000
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH1, CFG_FLASH0 }
+#define CONFIG_SYS_FLASH0              0xFE000000
+#define CONFIG_SYS_FLASH1              0xFC000000
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH1, CONFIG_SYS_FLASH0 }
 
-#define CFG_LBC_FLASH_BASE     CFG_FLASH1      /* Localbus flash start */
-#define CFG_FLASH_BASE         CFG_LBC_FLASH_BASE /* start of FLASH    */
+#define CONFIG_SYS_LBC_FLASH_BASE      CONFIG_SYS_FLASH1       /* Localbus flash start */
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_LBC_FLASH_BASE /* start of FLASH     */
 
-#define CFG_BR0_PRELIM         0xfe001001      /* port size 16bit      */
-#define CFG_OR0_PRELIM         0xfe000030      /* 32MB Flash           */
-#define CFG_BR1_PRELIM         0xfc001001      /* port size 16bit      */
-#define CFG_OR1_PRELIM         0xfe000030      /* 32MB Flash           */
+#define CONFIG_SYS_BR0_PRELIM          0xfe001001      /* port size 16bit      */
+#define CONFIG_SYS_OR0_PRELIM          0xfe000030      /* 32MB Flash           */
+#define CONFIG_SYS_BR1_PRELIM          0xfc001001      /* port size 16bit      */
+#define CONFIG_SYS_OR1_PRELIM          0xfe000030      /* 32MB Flash           */
 
-#define CFG_FLASH_CFI                          /* flash is CFI compat. */
+#define CONFIG_SYS_FLASH_CFI                           /* flash is CFI compat. */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver*/
 
-#define CFG_MAX_FLASH_BANKS    2               /* number of banks      */
-#define CFG_MAX_FLASH_SECT     256             /* sectors per device   */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Flash Erase Timeout (ms)     */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (ms)     */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2               /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      256             /* sectors per device   */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Flash Erase Timeout (ms)     */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (ms)     */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor     */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor     */
 
-#define CFG_LBC_LCRR           0x00030004    /* LB clock ratio reg     */
-#define CFG_LBC_LBCR           0x00000000    /* LB config reg          */
-#define CFG_LBC_LSRT           0x20000000    /* LB sdram refresh timer */
-#define CFG_LBC_MRTPR          0x20000000    /* LB refresh timer presc.*/
+#define CONFIG_SYS_LBC_LCRR            0x00030004    /* LB clock ratio reg     */
+#define CONFIG_SYS_LBC_LBCR            0x00000000    /* LB config reg          */
+#define CONFIG_SYS_LBC_LSRT            0x20000000    /* LB sdram refresh timer */
+#define CONFIG_SYS_LBC_MRTPR           0x20000000    /* LB refresh timer presc.*/
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0xe4010000      /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x4000          /* End used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0xe4010000      /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256kB for Mon */
-#define CFG_MALLOC_LEN         (4 << 20)       /* Reserve 4 MB for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (4 << 20)       /* Reserve 4 MB for malloc */
 
 /* FPGA and NAND */
-#define CFG_FPGA_BASE          0xc0000000
-#define CFG_FPGA_SIZE          0x00100000      /* 1 MB         */
-#define CFG_HMI_BASE           0xc0010000
-#define CFG_BR3_PRELIM         0xc0001881      /* UPMA, 32-bit */
-#define CFG_OR3_PRELIM         0xfff00000      /* 1 MB         */
-
-#define CFG_NAND_BASE          (CFG_FPGA_BASE + 0x70)
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_FPGA_BASE           0xc0000000
+#define CONFIG_SYS_FPGA_SIZE           0x00100000      /* 1 MB         */
+#define CONFIG_SYS_HMI_BASE            0xc0010000
+#define CONFIG_SYS_BR3_PRELIM          0xc0001881      /* UPMA, 32-bit */
+#define CONFIG_SYS_OR3_PRELIM          0xfff00000      /* 1 MB         */
+
+#define CONFIG_SYS_NAND_BASE           (CONFIG_SYS_FPGA_BASE + 0x70)
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #define NAND_MAX_CHIPS         1
 #define CONFIG_CMD_NAND
 
 /* LIME GDC */
-#define CFG_LIME_BASE          0xc8000000
-#define CFG_LIME_SIZE          0x04000000      /* 64 MB        */
-#define CFG_BR2_PRELIM         0xc80018a1      /* UPMB, 32-bit */
-#define CFG_OR2_PRELIM         0xfc000000      /* 64 MB        */
+#define CONFIG_SYS_LIME_BASE           0xc8000000
+#define CONFIG_SYS_LIME_SIZE           0x04000000      /* 64 MB        */
+#define CONFIG_SYS_BR2_PRELIM          0xc80018a1      /* UPMB, 32-bit */
+#define CONFIG_SYS_OR2_PRELIM          0xfc000000      /* 64 MB        */
 
 #define CONFIG_VIDEO
 #define CONFIG_VIDEO_MB862xx
 #define CONFIG_CONSOLE_EXTRA_INFO
 #define VIDEO_FB_16BPP_PIXEL_SWAP
 #define CONFIG_VGA_AS_SINGLE_DEVICE
-#define CFG_CONSOLE_IS_IN_ENV
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #define CONFIG_VIDEO_SW_CURSOR
 #define CONFIG_SPLASH_SCREEN
 #define CONFIG_VIDEO_BMP_GZIP
-#define CFG_VIDEO_LOGO_MAX_SIZE        (2 << 20)       /* decompressed img */
+#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (2 << 20)       /* decompressed img */
 
 /* Serial Port */
 
 #define CONFIG_CONS_INDEX     1
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 #define CONFIG_BAUDRATE         115200
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                        /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged               */
-#define CFG_I2C_SPEED          102124  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           102124  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 #define CONFIG_I2C_MULTI_BUS
 #define CONFIG_I2C_CMD_TREE
-#define CFG_I2C2_OFFSET                0x3100
+#define CONFIG_SYS_I2C2_OFFSET         0x3100
 
 /* I2C RTC */
 #define CONFIG_RTC_RX8025              /* Use Epson rx8025 rtc via i2c */
-#define CFG_I2C_RTC_ADDR       0x32    /* at address 0x32              */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x32    /* at address 0x32              */
 
 /* I2C W83782G HW-Monitoring IC */
-#define CFG_I2C_W83782G_ADDR   0x28    /* W83782G address              */
+#define CONFIG_SYS_I2C_W83782G_ADDR    0x28    /* W83782G address              */
 
 /* I2C temp sensor */
 /* Socrates uses Maxim's       DS75, which is compatible with LM75 */
 #define CONFIG_DTT_LM75                1
 #define CONFIG_DTT_SENSORS     {4}             /* Sensor addresses     */
-#define CFG_DTT_MAX_TEMP       125
-#define CFG_DTT_LOW_TEMP       -55
-#define CFG_DTT_HYSTERESIS     3
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
+#define CONFIG_SYS_DTT_MAX_TEMP        125
+#define CONFIG_SYS_DTT_LOW_TEMP        -55
+#define CONFIG_SYS_DTT_HYSTERESIS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
 
 /*
  * General PCI
  * Memory space is mapped 1-1.
  */
-#define CFG_PCI_PHYS           0x80000000      /* 1G PCI TLB */
+#define CONFIG_SYS_PCI_PHYS            0x80000000      /* 1G PCI TLB */
 
 /* PCI is clocked by the external source at 33 MHz */
 #define CONFIG_PCI_CLK_FREQ    33000000
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M                 */
-#define CFG_PCI1_IO_BASE       0xE2000000
-#define CFG_PCI1_IO_PHYS       CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE       0x01000000      /* 16M                  */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M                 */
+#define CONFIG_SYS_PCI1_IO_BASE        0xE2000000
+#define CONFIG_SYS_PCI1_IO_PHYS        CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE        0x01000000      /* 16M                  */
 
 #if defined(CONFIG_PCI)
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* 128K(one sector) for env     */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                0x4000
 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define        CONFIG_TIMESTAMP                /* Print image info with ts     */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_LOAD_ADDR  0x2000000       /* default load address         */
-#define CFG_PROMPT     "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_LOAD_ADDR   0x2000000       /* default load address         */
+#define CONFIG_SYS_PROMPT      "=> "           /* Monitor Command Prompt       */
 
 #if defined(CONFIG_CMD_KGDB)
-    #define CFG_CBSIZE 1024            /* Console I/O Buffer Size      */
+    #define CONFIG_SYS_CBSIZE  1024            /* Console I/O Buffer Size      */
 #else
-    #define CFG_CBSIZE 256             /* Console I/O Buffer Size      */
+    #define CONFIG_SYS_CBSIZE  256             /* Console I/O Buffer Size      */
 #endif
 
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buf Size        */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_HZ         1000            /* decrementer freq: 1ms ticks  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buf Size   */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1ms ticks  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ  (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ   (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
 #define CONFIG_PCI_OHCI                        1
 #define CONFIG_PCI_OHCI_DEVNO          3 /* Number in PCI list */
 #define CONFIG_PCI_EHCI_DEVNO          (CONFIG_PCI_OHCI_DEVNO / 2)
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
-#define CFG_USB_OHCI_SLOT_NAME         "ohci_pci"
-#define CFG_OHCI_SWAP_REG_ACCESS       1
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME          "ohci_pci"
+#define CONFIG_SYS_OHCI_SWAP_REG_ACCESS        1
 #define CONFIG_DOS_PARTITION           1
 #define CONFIG_USB_STORAGE             1
 
index 4bc4afba5facbfe88c31f47ac0adff3ec8ffe330..5db1379e07307fc57a83290b24787e8fe6f59142 100644 (file)
@@ -35,8 +35,8 @@
 
 /* Input clock running at 60Mhz, read Hid1 for the CPU multiplier to
    determine the CPU speed. */
-#define CFG_MPC8220_CLKIN      60000000 /* ... running at 60MHz */
-#define CFG_MPC8220_SYSPLL_VCO_MULTIPLIER 8 /* VCO multiplier can't be read from any register */
+#define CONFIG_SYS_MPC8220_CLKIN       60000000 /* ... running at 60MHz */
+#define CONFIG_SYS_MPC8220_SYSPLL_VCO_MULTIPLIER 8 /* VCO multiplier can't be read from any register */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH */
 #define BOOTFLAG_WARM          0x02    /* Software reboot      */
@@ -47,7 +47,7 @@
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC */
 
 #define CONFIG_BAUDRATE                115200      /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* PCI */
 #define CONFIG_PCI              1
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1
-#define CFG_I2C_MODULE         1
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_MODULE          1
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
  */
 
 /* Flash */
-#define CFG_CS0_BASE           0xf800
-#define CFG_CS0_MASK           0x08000000 /* 128 MB (two chips) */
-#define CFG_CS0_CTRL           0x001019c0
+#define CONFIG_SYS_CS0_BASE            0xf800
+#define CONFIG_SYS_CS0_MASK            0x08000000 /* 128 MB (two chips) */
+#define CONFIG_SYS_CS0_CTRL            0x001019c0
 
 /* NVM */
-#define CFG_CS1_BASE           0xf7e8
-#define CFG_CS1_MASK           0x00040000 /* 256K */
-#define CFG_CS1_CTRL           0x00101940 /* 8bit port size */
+#define CONFIG_SYS_CS1_BASE            0xf7e8
+#define CONFIG_SYS_CS1_MASK            0x00040000 /* 256K */
+#define CONFIG_SYS_CS1_CTRL            0x00101940 /* 8bit port size */
 
 /* Atlas2 + Gemini */
-#define CFG_CS2_BASE           0xf7e7
-#define CFG_CS2_MASK           0x00010000 /* 64K*/
-#define CFG_CS2_CTRL           0x001011c0 /* 16bit port size */
+#define CONFIG_SYS_CS2_BASE            0xf7e7
+#define CONFIG_SYS_CS2_MASK            0x00010000 /* 64K*/
+#define CONFIG_SYS_CS2_CTRL            0x001011c0 /* 16bit port size */
 
 /* CAN Controller */
-#define CFG_CS3_BASE           0xf7e6
-#define CFG_CS3_MASK           0x00010000 /* 64K */
-#define CFG_CS3_CTRL           0x00102140 /* 8Bit port size */
+#define CONFIG_SYS_CS3_BASE            0xf7e6
+#define CONFIG_SYS_CS3_MASK            0x00010000 /* 64K */
+#define CONFIG_SYS_CS3_CTRL            0x00102140 /* 8Bit port size */
 
 /* Foreign interface */
-#define CFG_CS4_BASE           0xf7e5
-#define CFG_CS4_MASK           0x00010000 /* 64K */
-#define CFG_CS4_CTRL           0x00101dc0 /* 16bit port size */
+#define CONFIG_SYS_CS4_BASE            0xf7e5
+#define CONFIG_SYS_CS4_MASK            0x00010000 /* 64K */
+#define CONFIG_SYS_CS4_CTRL            0x00101dc0 /* 16bit port size */
 
 /* CPLD */
-#define CFG_CS5_BASE           0xf7e4
-#define CFG_CS5_MASK           0x00010000 /* 64K */
-#define CFG_CS5_CTRL           0x001000c0 /* 16bit port size */
+#define CONFIG_SYS_CS5_BASE            0xf7e4
+#define CONFIG_SYS_CS5_MASK            0x00010000 /* 64K */
+#define CONFIG_SYS_CS5_CTRL            0x001000c0 /* 16bit port size */
 
-#define CFG_FLASH0_BASE                (CFG_CS0_BASE << 16)
-#define CFG_FLASH_BASE         (CFG_FLASH0_BASE)
+#define CONFIG_SYS_FLASH0_BASE         (CONFIG_SYS_CS0_BASE << 16)
+#define CONFIG_SYS_FLASH_BASE          (CONFIG_SYS_FLASH0_BASE)
 
-#define CFG_MAX_FLASH_BANKS    2       /* max num of flash banks */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max num of flash banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE,  \
-                               CFG_FLASH_BASE+0x04000000 } /* two banks */
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE,  \
+                               CONFIG_SYS_FLASH_BASE+0x04000000 } /* two banks */
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x8000000 - 0x40000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x8000000 - 0x40000)
 #define CONFIG_ENV_SIZE                0x4000                       /* 16K */
 #define CONFIG_ENV_SECT_SIZE   0x20000
 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + 0x20000)
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
-#define CFG_SRAM_BASE          (CFG_MBAR + 0x20000)
-#define CFG_SRAM_SIZE          0x8000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
+#define CONFIG_SYS_SRAM_BASE           (CONFIG_SYS_MBAR + 0x20000)
+#define CONFIG_SYS_SRAM_SIZE           0x8000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      (CFG_MBAR + 0x20000)
-#define CFG_INIT_RAM_END       0x8000  /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       (CONFIG_SYS_MBAR + 0x20000)
+#define CONFIG_SYS_INIT_RAM_END        0x8000  /* End of used area in DPRAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10) /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)   /* Initial Memory map for Linux */
 
 /* SDRAM configuration (for SPD) */
-#define CFG_SDRAM_TOTAL_BANKS          1
-#define CFG_SDRAM_SPD_I2C_ADDR         0x50            /* 7bit */
-#define CFG_SDRAM_SPD_SIZE             0x100
-#define CFG_SDRAM_CAS_LATENCY          5               /* (CL=2.5)x2 */
+#define CONFIG_SYS_SDRAM_TOTAL_BANKS           1
+#define CONFIG_SYS_SDRAM_SPD_I2C_ADDR          0x50            /* 7bit */
+#define CONFIG_SYS_SDRAM_SPD_SIZE              0x100
+#define CONFIG_SYS_SDRAM_CAS_LATENCY           5               /* (CL=2.5)x2 */
 
 /* SDRAM drive strength register (for SSTL_2 class II)*/
-#define CFG_SDRAM_DRIVE_STRENGTH       ((DRIVE_STRENGTH_HIGH << SDRAMDS_SBE_SHIFT) | \
+#define CONFIG_SYS_SDRAM_DRIVE_STRENGTH        ((DRIVE_STRENGTH_HIGH << SDRAMDS_SBE_SHIFT) | \
                                         (DRIVE_STRENGTH_HIGH << SDRAMDS_SBC_SHIFT) | \
                                         (DRIVE_STRENGTH_HIGH << SDRAMDS_SBA_SHIFT) | \
                                         (DRIVE_STRENGTH_HIGH << SDRAMDS_SBS_SHIFT) | \
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                       /* undef to save memory     */
-#define CFG_PROMPT             "=> "       /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                        /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "       /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024        /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024        /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256         /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256         /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16          /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE  /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16          /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE  /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x00100000  /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000  /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000  /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000  /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000    /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000    /* default load address */
 
-#define CFG_HZ                 1000        /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000        /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC8220 CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC8220 CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 
 /*
-#define CFG_HID0_INIT           HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL          HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 */
 
 #endif /* __CONFIG_H */
index 6594849953d4b890d4246e3b0488fe2c7623d6ac..1fe2a04cea5930d7217a4bab3ce93ba4b08b3ce2 100644 (file)
 #define CONFIG_BAUDRATE                19200
 
 /* use PLD CLK4 instead of brg */
-#define CFG_SPC1920_SMC1_CLK4
+#define CONFIG_SYS_SPC1920_SMC1_CLK4
 
 #define CONFIG_8xx_OSCLK               10000000 /* 10 MHz oscillator on EXTCLK  */
 #define CONFIG_8xx_CPUCLK_DEFAULT      50000000
-#define CFG_8xx_CPUCLK_MIN             40000000
-#define CFG_8xx_CPUCLK_MAX             133000000
+#define CONFIG_SYS_8xx_CPUCLK_MIN              40000000
+#define CONFIG_SYS_8xx_CPUCLK_MAX              133000000
 
-#define CFG_RESET_ADDRESS              0xC0000000
+#define CONFIG_SYS_RESET_ADDRESS               0xC0000000
 
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_LAST_STAGE_INIT
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "=>"            /* Monitor Command Prompt       */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=>"            /* Monitor Command Prompt       */
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
 #endif
 
-#define        CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) /* Print Buffer Size  */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buffer Size     */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_LOAD_ADDR          0x00100000
+#define CONFIG_SYS_LOAD_ADDR           0x00100000
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 2400, 4800, 9600, 19200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 2400, 4800, 9600, 19200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 KB for monitor   */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 KB for monitor   */
 
 #ifdef CONFIG_BZIP2
-#define        CFG_MALLOC_LEN          (2500 << 10)    /* Reserve ~2.5 MB for malloc() */
+#define        CONFIG_SYS_MALLOC_LEN           (2500 << 10)    /* Reserve ~2.5 MB for malloc() */
 #else
-#define        CFG_MALLOC_LEN          (384 << 10)     /* Reserve 384 kB for malloc()  */
+#define        CONFIG_SYS_MALLOC_LEN           (384 << 10)     /* Reserve 384 kB for malloc()  */
 #endif /* CONFIG_BZIP2 */
 
-#define        CFG_ALLOC_DPRAM         1       /* use allocation routines      */
+#define        CONFIG_SYS_ALLOC_DPRAM          1       /* use allocation routines      */
 
 /*
  * Flash
 /*-----------------------------------------------------------------------
  * Flash organisation
  */
-#define CFG_FLASH_BASE          0xFE000000
-#define CFG_FLASH_CFI                           /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_BASE          0xFE000000
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                    /* Use common CFI driver        */
-#define CFG_MAX_FLASH_BANKS     1               /* Max number of flash banks    */
-#define CFG_MAX_FLASH_SECT      128             /* Max num of sects on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* Max number of flash banks    */
+#define CONFIG_SYS_MAX_FLASH_SECT      128             /* Max num of sects on one chip */
 
 /* Environment is in flash */
 #define CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE       0x40000         /* We use one complete sector   */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 
 #define CONFIG_ENV_OVERWRITE
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 
 #ifdef CONFIG_CMD_DATE
 # define CONFIG_RTC_DS3231
-# define CFG_I2C_RTC_ADDR      0x68
+# define CONFIG_SYS_I2C_RTC_ADDR      0x68
 #endif
 
 /*-----------------------------------------------------------------------
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define CONFIG_SOFT_I2C                1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE          0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR      (SIUMCR_FRC)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_FRC)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-/* #define CFG_SCCR    SCCR_TBS */
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+/* #define CONFIG_SYS_SCCR     SCCR_TBS */
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  * Set to zero to prevent the processor from entering debug mode
  */
-#define CFG_DER                 0
+#define CONFIG_SYS_DER          0
 
 
 /* Because of the way the 860 starts up and assigns CS0 the entire
  */
 
 /* BR0 and OR0 (FLASH) */
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0 */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0 */
 
 
 /* used to re-map FLASH both when starting from SRAM or FLASH:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_6_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
 
 /*
  * SDRAM CS1 UPMB
  */
-#define        CFG_SDRAM_BASE  0x00000000
-#define CFG_SDRAM_BASE_PRELIM CFG_SDRAM_BASE
+#define        CONFIG_SYS_SDRAM_BASE   0x00000000
+#define CONFIG_SYS_SDRAM_BASE_PRELIM CONFIG_SYS_SDRAM_BASE
 #define SDRAM_MAX_SIZE 0x4000000 /* max 64 MB */
 
-#define CFG_PRELIM_OR1_AM      0xF0000000
-/* #define CFG_OR1_TIMING  OR_CSNT_SAM/\*  | OR_G5LS /\\* *\\/ *\/ */
+#define CONFIG_SYS_PRELIM_OR1_AM       0xF0000000
+/* #define CONFIG_SYS_OR1_TIMING  OR_CSNT_SAM/\*  | OR_G5LS /\\* *\\/ *\/ */
 #define SDRAM_TIMING   OR_SCY_0_CLK    /* SDRAM-Timing */
 
-#define CFG_OR1_PRELIM (CFG_PRELIM_OR1_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING)
-#define CFG_BR1_PRELIM  ((CFG_SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V)
+#define CONFIG_SYS_OR1_PRELIM  (CONFIG_SYS_PRELIM_OR1_AM | OR_CSNT_SAM | OR_G5LS | SDRAM_TIMING)
+#define CONFIG_SYS_BR1_PRELIM  ((CONFIG_SYS_SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMB | BR_V)
 
-/* #define CFG_OR1_FINAL   ((CFG_OR1_AM & OR_AM_MSK) | CFG_OR1_TIMING) */
-/* #define CFG_BR1_FINAL   ((CFG_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V) */
+/* #define CONFIG_SYS_OR1_FINAL   ((CONFIG_SYS_OR1_AM & OR_AM_MSK) | CONFIG_SYS_OR1_TIMING) */
+/* #define CONFIG_SYS_BR1_FINAL   ((CONFIG_SYS_SDRAM_BASE & BR_BA_MSK) | BR_MS_UPMB | BR_V) */
 
-#define CFG_PTB_PER_CLK        ((4096 * 16 * 1000) / (4 * 64))
-#define CFG_PTA_PER_CLK 195
-#define CFG_MBMR_PTB   195
-#define CFG_MPTPR      MPTPR_PTP_DIV16
-#define CFG_MAR                0x88
+#define CONFIG_SYS_PTB_PER_CLK ((4096 * 16 * 1000) / (4 * 64))
+#define CONFIG_SYS_PTA_PER_CLK 195
+#define CONFIG_SYS_MBMR_PTB    195
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV16
+#define CONFIG_SYS_MAR         0x88
 
-#define CFG_MBMR_8COL  ((CFG_MBMR_PTB << MBMR_PTB_SHIFT) | \
+#define CONFIG_SYS_MBMR_8COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT) | \
                        MBMR_AMB_TYPE_0 | \
                        MBMR_G0CLB_A10 | \
                        MBMR_DSB_1_CYCL | \
                        MBMR_WLFB_1X | \
                        MBMR_TLFB_4X) /* 0x04804114 */ /* 0x10802114 */
 
-#define CFG_MBMR_9COL  ((CFG_MBMR_PTB << MBMR_PTB_SHIFT) | \
+#define CONFIG_SYS_MBMR_9COL  ((CONFIG_SYS_MBMR_PTB << MBMR_PTB_SHIFT) | \
                        MBMR_AMB_TYPE_1 | \
                        MBMR_G0CLB_A10 | \
                        MBMR_DSB_1_CYCL | \
 /*
  * DSP Host Port Interface CS3
  */
-#define CFG_SPC1920_HPI_BASE   0x90000000
-#define CFG_PRELIM_OR3_AM      0xF8000000
+#define CONFIG_SYS_SPC1920_HPI_BASE   0x90000000
+#define CONFIG_SYS_PRELIM_OR3_AM      0xF8000000
 
-#define CFG_OR3         (CFG_PRELIM_OR3_AM | \
+#define CONFIG_SYS_OR3         (CONFIG_SYS_PRELIM_OR3_AM | \
                                       OR_G5LS | \
                                       OR_SCY_0_CLK | \
                                       OR_BI)
 
-#define CFG_BR3 ((CFG_SPC1920_HPI_BASE & BR_BA_MSK) | \
+#define CONFIG_SYS_BR3 ((CONFIG_SYS_SPC1920_HPI_BASE & BR_BA_MSK) | \
                                               BR_MS_UPMA | \
                                               BR_PS_16 | \
                                               BR_V)
 
-#define CFG_MAMR (MAMR_GPL_A4DIS | \
+#define CONFIG_SYS_MAMR (MAMR_GPL_A4DIS | \
                MAMR_RLFA_5X | \
                MAMR_WLFA_5X)
 
 #define CONFIG_SPC1920_HPI_TEST
 
 #ifdef CONFIG_SPC1920_HPI_TEST
-#define HPI_REG(x)             (*((volatile u16 *) (CFG_SPC1920_HPI_BASE + x)))
+#define HPI_REG(x)             (*((volatile u16 *) (CONFIG_SYS_SPC1920_HPI_BASE + x)))
 #define HPI_HPIC_1             HPI_REG(0)
 #define HPI_HPIC_2             HPI_REG(2)
 #define HPI_HPIA_1             HPI_REG(0x2000008)
 /*
  * Ramtron FM18L08 FRAM 32KB on CS4
  */
-#define CFG_SPC1920_FRAM_BASE  0x80100000
-#define CFG_PRELIM_OR4_AM      0xffff8000
-#define CFG_OR4                (CFG_PRELIM_OR4_AM | \
+#define CONFIG_SYS_SPC1920_FRAM_BASE   0x80100000
+#define CONFIG_SYS_PRELIM_OR4_AM       0xffff8000
+#define CONFIG_SYS_OR4         (CONFIG_SYS_PRELIM_OR4_AM | \
                                        OR_ACS_DIV2 | \
                                        OR_BI | \
                                        OR_SCY_4_CLK | \
                                        OR_TRLX)
 
-#define CFG_BR4 ((CFG_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_BR4 ((CONFIG_SYS_SPC1920_FRAM_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
 
 /*
  * PLD CS5
  */
-#define CFG_SPC1920_PLD_BASE   0x80000000
-#define CFG_PRELIM_OR5_AM      0xffff8000
+#define CONFIG_SYS_SPC1920_PLD_BASE    0x80000000
+#define CONFIG_SYS_PRELIM_OR5_AM       0xffff8000
 
-#define CFG_OR5_PRELIM         (CFG_PRELIM_OR5_AM | \
+#define CONFIG_SYS_OR5_PRELIM          (CONFIG_SYS_PRELIM_OR5_AM | \
                                        OR_CSNT_SAM | \
                                        OR_ACS_DIV1 | \
                                        OR_BI | \
                                        OR_SCY_0_CLK | \
                                        OR_TRLX)
 
-#define CFG_BR5_PRELIM ((CFG_SPC1920_PLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define CONFIG_SYS_BR5_PRELIM ((CONFIG_SYS_SPC1920_PLD_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
 
 /*
  * Internal Definitions
index ab1c6f4e75eb54729c4a2e90a841c37d09d4448e..27dda253fb312060808fb471b62a64ffc141086a 100644 (file)
@@ -39,7 +39,7 @@
 #define CONFIG_STK52XX         1       /* ... on a STK52XX base board */
 #define CONFIG_STK52XX_REV100  1       /*  define for revision 100 baseboards */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot           */
  */
 #define CONFIG_PSC_CONSOLE     6       /* console is on PSC6 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 #ifdef CONFIG_STK52XX
 #undef CONFIG_PS2KBD                   /* AT-PS/2 Keyboard             */
 #define CONFIG_PS2MULT                 /* .. on PS/2 Multiplexer       */
 #define CONFIG_PS2SERIAL       6       /* .. on PSC6                   */
-#define CONFIG_PS2MULT_DELAY   (CFG_HZ/2)      /* Initial delay        */
+#define CONFIG_PS2MULT_DELAY   (CONFIG_SYS_HZ/2)       /* Initial delay        */
 #define CONFIG_BOARD_EARLY_INIT_R
 #endif /* CONFIG_STK52XX */
 
@@ -81,7 +81,7 @@
 
 #define CONFIG_NET_MULTI       1
 #define CONFIG_EEPRO100                1
-#define CFG_RX_ETH_BUFFER      8  /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8  /* use 8 rx buffer on eepro100  */
 #define CONFIG_NS8382X         1
 #endif /* CONFIG_STK52XX */
 
@@ -98,7 +98,7 @@
 #define CONFIG_CONSOLE_EXTRA_INFO
 #define CONFIG_VIDEO_SW_CURSOR
 #define CONFIG_SPLASH_SCREEN
-#define CFG_CONSOLE_IS_IN_ENV
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #endif
 
 /* Partitions */
 #endif
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_I2C)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_I2C)
 
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
 #define        CONFIG_TIMESTAMP                /* display image timestamps */
 
 #if (TEXT_BASE == 0xFC000000)          /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
-#if defined(CFG_IPBCLK_EQUALS_XLBCLK)
+#if defined(CONFIG_SYS_IPBCLK_EQUALS_XLBCLK)
 /*
  * PCI Bus clocking configuration
  *
  * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
- * CFG_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
+ * CONFIG_SYS_IPBCLK_EQUALS_XLBCLK is defined. This is because a PCI Clock
  * of 66 MHz yet hasn't been tested with a IPB Bus Clock of 66 MHz.
  */
-#define CFG_PCICLK_EQUALS_IPBCLK_DIV2  /* define for 66MHz speed */
+#define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2   /* define for 66MHz speed */
 #endif
 
 /*
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
 #ifdef CONFIG_TQM5200_REV100
-#define CFG_I2C_MODULE         1       /* Select I2C module #1 for rev. 100 board */
+#define CONFIG_SYS_I2C_MODULE          1       /* Select I2C module #1 for rev. 100 board */
 #else
-#define CFG_I2C_MODULE         2       /* Select I2C module #2 for all other revs */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #2 for all other revs */
 #endif
 
 /*
  * Please notice, that the resulting clock frequency could differ from the
  * configured value. This is because the I2C clock is derived from system
  * clock over a frequency divider with only a few divider values. U-boot
- * calculates the best approximation for CFG_I2C_SPEED. However the calculated
+ * calculates the best approximation for CONFIG_SYS_I2C_SPEED. However the calculated
  * approximation allways lies below the configured value, never above.
  */
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration for onboard EEPROM M24C32 (M24C64 should work
  * EEPROM (24C64) is on the same I2C address (but on other I2C bus), so the
  * same configuration could be used.
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 
 /*
  * HW-Monitor configuration on Mini-FAP
  */
 #if defined (CONFIG_MINIFAP)
-#define CFG_I2C_HWMON_ADDR             0x2C
+#define CONFIG_SYS_I2C_HWMON_ADDR              0x2C
 #endif
 
 /* List of I2C addresses to be verified by POST */
 #if defined (CONFIG_MINIFAP)
 #undef I2C_ADDR_LIST
-#define I2C_ADDR_LIST  {       CFG_I2C_EEPROM_ADDR,    \
-                               CFG_I2C_HWMON_ADDR,     \
-                               CFG_I2C_SLAVE }
+#define I2C_ADDR_LIST  {       CONFIG_SYS_I2C_EEPROM_ADDR,     \
+                               CONFIG_SYS_I2C_HWMON_ADDR,      \
+                               CONFIG_SYS_I2C_SLAVE }
 #endif
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         TEXT_BASE /* 0xFC000000 */
+#define CONFIG_SYS_FLASH_BASE          TEXT_BASE /* 0xFC000000 */
 
 /* use CFI flash driver if no module variant is spezified */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_BOOTCS_START }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_SIZE         0x04000000 /* 64 MByte */
-#define CFG_MAX_FLASH_SECT     512     /* max num of sects on one chip */
-#undef CFG_FLASH_USE_BUFFER_WRITE      /* not supported yet for AMD */
-
-#if !defined(CFG_LOWBOOT)
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00760000 + 0x00800000)
-#else  /* CFG_LOWBOOT */
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00060000)
-#endif /* CFG_LOWBOOT */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_BOOTCS_START }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_SIZE          0x04000000 /* 64 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max num of sects on one chip */
+#undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE       /* not supported yet for AMD */
+
+#if !defined(CONFIG_SYS_LOWBOOT)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00760000 + 0x00800000)
+#else  /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00060000)
+#endif /* CONFIG_SYS_LOWBOOT */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 
 /*
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (384 << 10)     /* Reserve 384 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (384 << 10)     /* Reserve 384 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
  *   tests.
  */
 #if defined (CONFIG_MINIFAP)
-# define CFG_GPS_PORT_CONFIG   0x91000004
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x91000004
 #elif defined (CONFIG_STK52XX)
 # if defined (CONFIG_STK52XX_REV100)
-#  define CFG_GPS_PORT_CONFIG  0x81500014
+#  define CONFIG_SYS_GPS_PORT_CONFIG   0x81500014
 # else /* STK52xx REV200 and above */
 #  if defined (CONFIG_TQM5200_REV100)
 #   error TQM5200 REV100 not supported on STK52XX REV200 or above
 #  else/* TQM5200 REV200 and above */
-#   define CFG_GPS_PORT_CONFIG 0x91500004
+#   define CONFIG_SYS_GPS_PORT_CONFIG  0x91500004
 #  endif
 # endif
 #else  /* TMQ5200 Inbetriebnahme-Board */
-# define CFG_GPS_PORT_CONFIG   0x81000004
+# define CONFIG_SYS_GPS_PORT_CONFIG    0x81000004
 #endif
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#ifdef CFG_PCICLK_EQUALS_IPBCLK_DIV2
-#define CFG_BOOTCS_CFG         0x0008DF30 /* for pci_clk  = 66 MHz */
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2
+#define CONFIG_SYS_BOOTCS_CFG          0x0008DF30 /* for pci_clk  = 66 MHz */
 #else
-#define CFG_BOOTCS_CFG         0x0004DF30 /* for pci_clk = 33 MHz */
+#define CONFIG_SYS_BOOTCS_CFG          0x0004DF30 /* for pci_clk = 33 MHz */
 #endif
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 #define CONFIG_LAST_STAGE_INIT
 
  * SRAM - Do not map below 2 GB in address space, because this area is used
  * for SDRAM autosizing.
  */
-#define CFG_CS2_START          0xE5000000
-#define CFG_CS2_SIZE           0x100000        /* 1 MByte */
-#define CFG_CS2_CFG            0x0004D930
+#define CONFIG_SYS_CS2_START           0xE5000000
+#define CONFIG_SYS_CS2_SIZE            0x100000        /* 1 MByte */
+#define CONFIG_SYS_CS2_CFG             0x0004D930
 
 /*
  * Grafic controller - Do not map below 2 GB in address space, because this
  * area is used for SDRAM autosizing.
  */
 #define SM501_FB_BASE          0xE0000000
-#define CFG_CS1_START          (SM501_FB_BASE)
-#define CFG_CS1_SIZE           0x4000000       /* 64 MByte */
-#define CFG_CS1_CFG            0x8F48FF70
-#define SM501_MMIO_BASE                CFG_CS1_START + 0x03E00000
+#define CONFIG_SYS_CS1_START           (SM501_FB_BASE)
+#define CONFIG_SYS_CS1_SIZE            0x4000000       /* 64 MByte */
+#define CONFIG_SYS_CS1_CFG             0x8F48FF70
+#define SM501_MMIO_BASE                CONFIG_SYS_CS1_START + 0x03E00000
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333311      /* 1 dead cycle for flash and SM501 */
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333311      /* 1 dead cycle for flash and SM501 */
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*-----------------------------------------------------------------------
  * USB stuff
 #define CONFIG_IDE_RESET               /* reset for ide supported      */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 2 drives per IDE bus    */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                               */
-#define CFG_ATA_STRIDE         4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #endif /* __CONFIG_H */
index e06256d78b7ddc0b26b2da8205e1b2420f8e32c4..2188e5401b34b1e31bc87cd1736efc4cb5d544b4 100644 (file)
 
 #define CONFIG_BOARD_EARLY_INIT_F   1        /* Call board_pre_init      */
 
-#undef  CFG_DRAM_TEST                       /* memory test, takes time  */
-#define CFG_MEMTEST_START       0x00200000  /* memtest region */
-#define CFG_MEMTEST_END         0x00400000
+#undef  CONFIG_SYS_DRAM_TEST                       /* memory test, takes time  */
+#define CONFIG_SYS_MEMTEST_START       0x00200000  /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 
 /* Localbus SDRAM is an option, not all boards have it.
  * This address, however, is used to configure a 256M local bus
  * window that includes the Config latch below.
  */
-#define CFG_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
-#define CFG_LBC_SDRAM_SIZE     256             /* LBC SDRAM is 64MB    */
+#define CONFIG_SYS_LBC_SDRAM_BASE      0xf0000000      /* Localbus SDRAM */
+#define CONFIG_SYS_LBC_SDRAM_SIZE      256             /* LBC SDRAM is 64MB    */
 
-#define CFG_FLASH_BASE        0xff000000      /* start of FLASH 16M    */
-#define CFG_BR0_PRELIM        0xff001801      /* port size 32bit      */
+#define CONFIG_SYS_FLASH_BASE        0xff000000      /* start of FLASH 16M    */
+#define CONFIG_SYS_BR0_PRELIM        0xff001801      /* port size 32bit      */
 
-#define CFG_OR0_PRELIM          0xff000ff7      /* 16 MB Flash           */
-#define CFG_MAX_FLASH_BANKS    1               /* number of banks      */
-#define CFG_MAX_FLASH_SECT     136             /* sectors per device   */
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   60000   /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_OR0_PRELIM          0xff000ff7      /* 16 MB Flash           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      136             /* sectors per device   */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    60000   /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 /* The configuration latch is Chip Select 1.
  * It's an 8-bit latch in the lower 8 bits of the word.
  */
-#define CFG_BR1_PRELIM         0xfc001801      /* 32-bit port */
-#define CFG_OR1_PRELIM         0xffff0ff7      /* 64K is enough */
-#define CFG_LBC_LCLDEVS_BASE   0xfc000000      /* Base of localbus devices */
+#define CONFIG_SYS_BR1_PRELIM          0xfc001801      /* 32-bit port */
+#define CONFIG_SYS_OR1_PRELIM          0xffff0ff7      /* 64K is enough */
+#define CONFIG_SYS_LBC_LCLDEVS_BASE    0xfc000000      /* Base of localbus devices */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor     */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor     */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef  CFG_RAMBOOT
+#undef  CONFIG_SYS_RAMBOOT
 #endif
 
-#ifdef CFG_RAMBOOT
-#define CFG_CCSRBAR_DEFAULT    0x40000000      /* CCSRBAR by BDI cfg   */
+#ifdef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0x40000000      /* CCSRBAR by BDI cfg   */
 #else
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default      */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default      */
 #endif
-#define CFG_CCSRBAR             0xfdf00000      /* relocated CCSRBAR    */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
+#define CONFIG_SYS_CCSRBAR             0xfdf00000      /* relocated CCSRBAR    */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR    */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
 
 #define CONFIG_MEM_INIT_VALUE          0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
 #undef CONFIG_CLOCKS_IN_MHZ
 
 /* local bus definitions */
-#define CFG_BR2_PRELIM         0xf8001861      /* 64MB localbus SDRAM  */
-#define CFG_OR2_PRELIM         0xfc006901
-#define CFG_LBC_LCRR           0x00030004      /* local bus freq       */
-#define CFG_LBC_LBCR           0x00000000
-#define CFG_LBC_LSRT           0x20000000
-#define CFG_LBC_MRTPR          0x20000000
-#define CFG_LBC_LSDMR_1                0x2861b723
-#define CFG_LBC_LSDMR_2                0x0861b723
-#define CFG_LBC_LSDMR_3                0x0861b723
-#define CFG_LBC_LSDMR_4                0x1861b723
-#define CFG_LBC_LSDMR_5                0x4061b723
+#define CONFIG_SYS_BR2_PRELIM          0xf8001861      /* 64MB localbus SDRAM  */
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
+#define CONFIG_SYS_LBC_LCRR            0x00030004      /* local bus freq       */
+#define CONFIG_SYS_LBC_LBCR            0x00000000
+#define CONFIG_SYS_LBC_LSRT            0x20000000
+#define CONFIG_SYS_LBC_MRTPR           0x20000000
+#define CONFIG_SYS_LBC_LSDMR_1         0x2861b723
+#define CONFIG_SYS_LBC_LSDMR_2         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_3         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_4         0x1861b723
+#define CONFIG_SYS_LBC_LSDMR_5         0x4061b723
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR       0x60000000      /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0x60000000      /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_ON_SCC             /* define if console on SCC */
 
 #define CONFIG_BAUDRATE                38400
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
 /* Use the HUSH parser */
-#define CFG_HUSH_PARSER
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 #define CONFIG_FSL_I2C         /* Use FSL common I2C driver */
 #define CONFIG_HARD_I2C                /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 #if 0
-#define CFG_I2C_NOPROBES        {0x00}  /* Don't probe these addrs */
+#define CONFIG_SYS_I2C_NOPROBES        {0x00}  /* Don't probe these addrs */
 #else
 /* I did the 'if 0' so we could keep the syntax above if ever needed. */
-#undef CFG_I2C_NOPROBES
+#undef CONFIG_SYS_I2C_NOPROBES
 #endif
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* RapdIO Map configuration, mapped 1:1.
 */
-#define CFG_RIO_MEM_BASE       0xc0000000
-#define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
-#define CFG_RIO_MEM_SIZE       0x200000000     /* 512 M */
+#define CONFIG_SYS_RIO_MEM_BASE        0xc0000000
+#define CONFIG_SYS_RIO_MEM_PHYS        CONFIG_SYS_RIO_MEM_BASE
+#define CONFIG_SYS_RIO_MEM_SIZE        0x200000000     /* 512 M */
 
 /* Standard 8560 PCI addressing, mapped 1:1.
 */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0xe2000000
-#define CFG_PCI1_IO_PHYS       CFG_PCI1_IO_BASE
-#define CFG_PCI1_IO_SIZE       0x01000000      /* 16 M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0xe2000000
+#define CONFIG_SYS_PCI1_IO_PHYS        CONFIG_SYS_PCI1_IO_BASE
+#define CONFIG_SYS_PCI1_IO_SIZE        0x01000000      /* 16 M */
 
 #if defined(CONFIG_PCI)                        /* PCI Ethernet card */
 
 #endif
 
 #undef CONFIG_PCI_SCAN_SHOW
-#define CFG_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
    * - Select bus for bd/buffers
    * - Full duplex
    */
-  #define CFG_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-  #define CFG_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-  #define CFG_CPMFCR_RAMTYPE    0
+  #define CONFIG_SYS_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+  #define CONFIG_SYS_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+  #define CONFIG_SYS_CPMFCR_RAMTYPE    0
 #if 0
-  #define CFG_FCC_PSMR          (FCC_PSMR_FDE)
+  #define CONFIG_SYS_FCC_PSMR          (FCC_PSMR_FDE)
 #else
-  #define CFG_FCC_PSMR          0
+  #define CONFIG_SYS_FCC_PSMR          0
 #endif
   #define FETH2_RST            0x01
 #elif (CONFIG_ETHER_INDEX == 3)
 /* Environment */
 /* We use the top boot sector flash, so we have some 16K sectors for env
  */
-#ifndef CFG_RAMBOOT
+#ifndef CONFIG_SYS_RAMBOOT
   #define CONFIG_ENV_IS_IN_FLASH       1
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE + 0x60000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE + 0x60000)
   #define CONFIG_ENV_SECT_SIZE 0x4000  /* 16K (one top sector) for env */
   #define CONFIG_ENV_SIZE              0x2000
 #else
-  #define CFG_NO_FLASH         1       /* Flash is not usable now      */
+  #define CONFIG_SYS_NO_FLASH          1       /* Flash is not usable now      */
   #define CONFIG_ENV_IS_NOWHERE        1       /* Store ENV in memory only     */
-  #define CONFIG_ENV_ADDR              (CFG_MONITOR_BASE - 0x1000)
+  #define CONFIG_ENV_ADDR              (CONFIG_SYS_MONITOR_BASE - 0x1000)
   #define CONFIG_ENV_SIZE              0x2000
 #endif
 
 #define CONFIG_BOOTDELAY       3       /* -1 disable autoboot */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 /*
  * BOOTP options
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_I2C
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #else
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "GPPP=> "       /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "GPPP=> "       /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x1000000       /* default load address */
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x1000000       /* default load address */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index c49538e19cbee35dc6620c3f4794a256f548267c..b0bd0508bb7702fbc944404c26d81b9c432bfe30 100644 (file)
@@ -68,9 +68,9 @@
 
 #define CONFIG_BOARD_EARLY_INIT_F   1          /* Call board_pre_init   */
 
-#undef CFG_DRAM_TEST                           /* memory test, takes time      */
-#define CFG_MEMTEST_START      0x00200000      /* memtest region */
-#define CFG_MEMTEST_END                0x00400000
+#undef CONFIG_SYS_DRAM_TEST                            /* memory test, takes time      */
+#define CONFIG_SYS_MEMTEST_START       0x00200000      /* memtest region */
+#define CONFIG_SYS_MEMTEST_END         0x00400000
 
 
 /* Localbus connector. There are many options that can be
  * This address, however, is used to configure a 256M local bus
  * window that includes the Config latch below.
  */
-#define CFG_LBC_OPTION_BASE    0xF0000000      /* Localbus Extension */
-#define CFG_LBC_OPTION_SIZE    256             /* 256MB */
+#define CONFIG_SYS_LBC_OPTION_BASE     0xF0000000      /* Localbus Extension */
+#define CONFIG_SYS_LBC_OPTION_SIZE     256             /* 256MB */
 
 /* There are various flash options used, we configure for the largest,
  * which is 64Mbytes.  The CFI works fine and will discover the proper
  * sizes.
  */
 #ifdef CONFIG_STXSSA_4M
-#define CFG_FLASH_BASE         0xFFC00000      /* start of  4 MiB flash */
+#define CONFIG_SYS_FLASH_BASE          0xFFC00000      /* start of  4 MiB flash */
 #else
-#define CFG_FLASH_BASE         0xFC000000      /* start of 64 MiB flash */
+#define CONFIG_SYS_FLASH_BASE          0xFC000000      /* start of 64 MiB flash */
 #endif
-#define CFG_BR0_PRELIM (CFG_FLASH_BASE | 0x1801) /* port size 32bit     */
-#define CFG_OR0_PRELIM (CFG_FLASH_BASE | 0x0FF7)
+#define CONFIG_SYS_BR0_PRELIM  (CONFIG_SYS_FLASH_BASE | 0x1801) /* port size 32bit      */
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_FLASH_BASE | 0x0FF7)
 
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER        1
-#undef CFG_FLASH_USE_BUFFER_WRITE      /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks   */
+#undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE       /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks   */
 
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_PROTECTION
 
 /* The configuration latch is Chip Select 1.
  * It's an 8-bit latch in the lower 8 bits of the word.
  */
-#define CFG_LBC_CFGLATCH_BASE  0xFB000000      /* Base of config latch */
-#define CFG_BR1_PRELIM         0xFB001801      /* 32-bit port */
-#define CFG_OR1_PRELIM         0xFFFF0FF7      /* 64K is enough */
+#define CONFIG_SYS_LBC_CFGLATCH_BASE   0xFB000000      /* Base of config latch */
+#define CONFIG_SYS_BR1_PRELIM          0xFB001801      /* 32-bit port */
+#define CONFIG_SYS_OR1_PRELIM          0xFFFF0FF7      /* 64K is enough */
 
-#define CFG_MONITOR_BASE       TEXT_BASE       /* start of monitor     */
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE       /* start of monitor     */
 
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#define CFG_RAMBOOT
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#define CONFIG_SYS_RAMBOOT
 #else
-#undef CFG_RAMBOOT
+#undef CONFIG_SYS_RAMBOOT
 #endif
 
-#ifdef CFG_RAMBOOT
-#define CFG_CCSRBAR_DEFAULT    0x40000000      /* CCSRBAR by BDI cfg   */
+#ifdef CONFIG_SYS_RAMBOOT
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0x40000000      /* CCSRBAR by BDI cfg   */
 #else
-#define CFG_CCSRBAR_DEFAULT    0xff700000      /* CCSRBAR Default      */
+#define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000      /* CCSRBAR Default      */
 #endif
-#define CFG_CCSRBAR            0xe0000000      /* relocated CCSRBAR    */
-#define CFG_CCSRBAR_PHYS       CFG_CCSRBAR     /* physical addr of CCSRBAR */
-#define CFG_IMMR               CFG_CCSRBAR     /* PQII uses CFG_IMMR   */
+#define CONFIG_SYS_CCSRBAR             0xe0000000      /* relocated CCSRBAR    */
+#define CONFIG_SYS_CCSRBAR_PHYS        CONFIG_SYS_CCSRBAR      /* physical addr of CCSRBAR */
+#define CONFIG_SYS_IMMR                CONFIG_SYS_CCSRBAR      /* PQII uses CONFIG_SYS_IMMR    */
 
 /* DDR Setup */
 #define CONFIG_FSL_DDR1
 
 #define CONFIG_MEM_INIT_VALUE          0xDeadBeef
 
-#define CFG_DDR_SDRAM_BASE     0x00000000      /* DDR is system memory*/
-#define CFG_SDRAM_BASE         CFG_DDR_SDRAM_BASE
+#define CONFIG_SYS_DDR_SDRAM_BASE      0x00000000      /* DDR is system memory*/
+#define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
 
 #define CONFIG_NUM_DDR_CONTROLLERS     1
 #define CONFIG_DIMM_SLOTS_PER_CTLR     1
 #undef CONFIG_CLOCKS_IN_MHZ
 
 /* local bus definitions */
-#define CFG_BR2_PRELIM         0xf8001861      /* 64MB localbus SDRAM  */
-#define CFG_OR2_PRELIM         0xfc006901
-#define CFG_LBC_LCRR           0x00030004      /* local bus freq       */
-#define CFG_LBC_LBCR           0x00000000
-#define CFG_LBC_LSRT           0x20000000
-#define CFG_LBC_MRTPR          0x20000000
-#define CFG_LBC_LSDMR_1                0x2861b723
-#define CFG_LBC_LSDMR_2                0x0861b723
-#define CFG_LBC_LSDMR_3                0x0861b723
-#define CFG_LBC_LSDMR_4                0x1861b723
-#define CFG_LBC_LSDMR_5                0x4061b723
+#define CONFIG_SYS_BR2_PRELIM          0xf8001861      /* 64MB localbus SDRAM  */
+#define CONFIG_SYS_OR2_PRELIM          0xfc006901
+#define CONFIG_SYS_LBC_LCRR            0x00030004      /* local bus freq       */
+#define CONFIG_SYS_LBC_LBCR            0x00000000
+#define CONFIG_SYS_LBC_LSRT            0x20000000
+#define CONFIG_SYS_LBC_MRTPR           0x20000000
+#define CONFIG_SYS_LBC_LSDMR_1         0x2861b723
+#define CONFIG_SYS_LBC_LSDMR_2         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_3         0x0861b723
+#define CONFIG_SYS_LBC_LSDMR_4         0x1861b723
+#define CONFIG_SYS_LBC_LSDMR_5         0x4061b723
 
 #define CONFIG_L1_INIT_RAM
-#define CFG_INIT_RAM_LOCK      1
-#define CFG_INIT_RAM_ADDR      0x60000000      /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x4000          /* End of used area in RAM */
+#define CONFIG_SYS_INIT_RAM_LOCK       1
+#define CONFIG_SYS_INIT_RAM_ADDR       0x60000000      /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x4000          /* End of used area in RAM */
 
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Mon */
-#define CFG_MALLOC_LEN         (512 * 1024)    /* Reserved for malloc */
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Mon */
+#define CONFIG_SYS_MALLOC_LEN          (512 * 1024)    /* Reserved for malloc */
 
 /* Serial Port */
 #define CONFIG_CONS_INDEX     2
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   1
-#define CFG_NS16550_CLK                get_bus_freq(0)
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    1
+#define CONFIG_SYS_NS16550_CLK         get_bus_freq(0)
 
-#define CFG_BAUDRATE_TABLE  \
+#define CONFIG_SYS_BAUDRATE_TABLE  \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
 
-#define CFG_NS16550_COM1       (CFG_CCSRBAR+0x4500)
-#define CFG_NS16550_COM2       (CFG_CCSRBAR+0x4600)
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_CCSRBAR+0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_CCSRBAR+0x4600)
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define CFG_HUSH_PARSER                1       /* Use the HUSH parser          */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2 "> "
+#define CONFIG_SYS_HUSH_PARSER         1       /* Use the HUSH parser          */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
 /*
 #define CONFIG_FSL_I2C                 /* Use FSL common I2C driver */
 #define  CONFIG_HARD_I2C               /* I2C with hardware support*/
 #undef CONFIG_SOFT_I2C                 /* I2C bit-banged */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
-#undef CFG_I2C_NOPROBES
-#define CFG_I2C_OFFSET         0x3000
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
+#undef CONFIG_SYS_I2C_NOPROBES
+#define CONFIG_SYS_I2C_OFFSET          0x3000
 
 /* I2C RTC */
 #define CONFIG_RTC_DS1337              /* This is really a DS1339 RTC  */
-#define CFG_I2C_RTC_ADDR       0x68    /* at address 0x68              */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68    /* at address 0x68              */
 
 /* I2C EEPROM. AT24C32, we keep our environment in here.
 */
-#define CFG_I2C_EEPROM_ADDR            0x51    /* 1010001x             */
-#define CFG_I2C_EEPROM_ADDR_LEN                2
-#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* =32 Bytes per write  */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x51    /* 1010001x             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         2
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      5       /* =32 Bytes per write  */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
 
 /*
  * Standard 8555 PCI mapping.
  * Addresses are mapped 1-1.
  */
-#define CFG_PCI1_MEM_BASE      0x80000000
-#define CFG_PCI1_MEM_PHYS      CFG_PCI1_MEM_BASE
-#define CFG_PCI1_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI1_IO_BASE       0x00000000
-#define CFG_PCI1_IO_PHYS       0xe2000000
-#define CFG_PCI1_IO_SIZE       0x01000000      /* 16M */
-
-#define CFG_PCI2_MEM_BASE      0xa0000000
-#define CFG_PCI2_MEM_PHYS      CFG_PCI2_MEM_BASE
-#define CFG_PCI2_MEM_SIZE      0x20000000      /* 512M */
-#define CFG_PCI2_IO_BASE       0x00000000
-#define CFG_PCI2_IO_PHYS       0xe3000000
-#define CFG_PCI2_IO_SIZE       0x01000000      /* 16M */
+#define CONFIG_SYS_PCI1_MEM_BASE       0x80000000
+#define CONFIG_SYS_PCI1_MEM_PHYS       CONFIG_SYS_PCI1_MEM_BASE
+#define CONFIG_SYS_PCI1_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI1_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI1_IO_PHYS        0xe2000000
+#define CONFIG_SYS_PCI1_IO_SIZE        0x01000000      /* 16M */
+
+#define CONFIG_SYS_PCI2_MEM_BASE       0xa0000000
+#define CONFIG_SYS_PCI2_MEM_PHYS       CONFIG_SYS_PCI2_MEM_BASE
+#define CONFIG_SYS_PCI2_MEM_SIZE       0x20000000      /* 512M */
+#define CONFIG_SYS_PCI2_IO_BASE        0x00000000
+#define CONFIG_SYS_PCI2_IO_PHYS        0xe3000000
+#define CONFIG_SYS_PCI2_IO_SIZE        0x01000000      /* 16M */
 
 #if defined(CONFIG_PCI)                        /* PCI Ethernet card */
 #define CONFIG_MPC85XX_PCI2    1
 #endif
 
 #define CONFIG_PCI_SCAN_SHOW
-#define CFG_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057  /* Motorola */
 
 #endif /* CONFIG_PCI */
 
    * - Select bus for bd/buffers
    * - Full duplex
    */
-  #define CFG_CMXFCR_MASK      (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
-  #define CFG_CMXFCR_VALUE     (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
-  #define CFG_CPMFCR_RAMTYPE   0
+  #define CONFIG_SYS_CMXFCR_MASK       (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
+  #define CONFIG_SYS_CMXFCR_VALUE      (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
+  #define CONFIG_SYS_CPMFCR_RAMTYPE    0
 #if 0
-  #define CFG_FCC_PSMR         (FCC_PSMR_FDE)
+  #define CONFIG_SYS_FCC_PSMR          (FCC_PSMR_FDE)
 #else
-  #define CFG_FCC_PSMR         0
+  #define CONFIG_SYS_FCC_PSMR          0
 #endif
   #define FETH2_RST            0x01
 #elif (CONFIG_ETHER_INDEX == 3)
 # else /* default configuration - 64 MiB flash */
 #  define CONFIG_ENV_SECT_SIZE 0x40000
 # endif
-# define CONFIG_ENV_ADDR               (CFG_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
+# define CONFIG_ENV_ADDR               (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
 # define CONFIG_ENV_SIZE               0x4000
 # define CONFIG_ENV_ADDR_REDUND        (CONFIG_ENV_ADDR - CONFIG_ENV_SECT_SIZE)
 # define CONFIG_ENV_SIZE_REDUND        (CONFIG_ENV_SIZE)
 #endif
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define        CONFIG_TIMESTAMP                /* Print image info with ts     */
 
     #define CONFIG_CMD_MII
 #endif
 
-#if defined(CFG_RAMBOOT)
+#if defined(CONFIG_SYS_RAMBOOT)
     #undef CONFIG_CMD_ENV
     #undef CONFIG_CMD_LOADS
 #else
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT     "SSA=> "        /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "SSA=> "        /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE     1024            /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      1024            /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x1000000       /* default load address */
-#define CFG_HZ         1000            /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x1000000       /* default load address */
+#define CONFIG_SYS_HZ          1000            /* decrementer freq: 1 ms ticks */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20) /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20) /* Initial Memory map for Linux */
 
 /*
  * Internal Definitions
index 7ba8b770a6c6896f17227ee6512cfd8edf8815e0..bc078cf3762b99497826b7097fb76df7f2ef170a 100644 (file)
@@ -70,7 +70,7 @@
 
 #define CONFIG_AUTOSCRIPT
 #define CONFIG_LOADS_ECHO      0       /* echo off for serial download */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
@@ -95,7 +95,7 @@
 
 #define        CONFIG_NET_MULTI        1       /* the only way to get the FEC in */
 #define        FEC_ENET                1       /* eth.c needs it that way... */
-#undef CFG_DISCOVER_PHY
+#undef CONFIG_SYS_DISCOVER_PHY
 #define CONFIG_MII             1
 #define CONFIG_MII_INIT                1
 #undef CONFIG_RMII
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "xtc> "         /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "xtc> "         /* Monitor Command Prompt       */
 
-#define CFG_HUSH_PARSER        1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER 1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0300000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0700000       /* 3 ... 7 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x0300000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0700000       /* 3 ... 7 MB in DRAM   */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x3000  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x3000  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
 
 /* yes this is weird, I know :) */
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE | 0x00F00000)
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE | 0x00F00000)
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
-#define CFG_RESET_ADDRESS      0x80000000
+#define CONFIG_SYS_RESET_ADDRESS       0x80000000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_SECT_SIZE   0x10000
 
-#define        CONFIG_ENV_ADDR         (CFG_FLASH_BASE + 0x00000000)
+#define        CONFIG_ENV_ADDR         (CONFIG_SYS_FLASH_BASE + 0x00000000)
 #define CONFIG_ENV_OFFSET              0
 #define        CONFIG_ENV_SIZE         0x4000
 
-#define CONFIG_ENV_ADDR_REDUND (CFG_FLASH_BASE + 0x00010000)
+#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE + 0x00010000)
 #define CONFIG_ENV_OFFSET_REDUND       0
 #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
 
-#define CFG_FLASH_CFI          1
+#define CONFIG_SYS_FLASH_CFI           1
 #define CONFIG_FLASH_CFI_DRIVER        1
-#undef CFG_FLASH_USE_BUFFER_WRITE      /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks   */
+#undef CONFIG_SYS_FLASH_USE_BUFFER_WRITE       /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks   */
 
-#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE + 0x2000000 }
+#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE + 0x2000000 }
 
-#define CFG_FLASH_PROTECTION
+#define CONFIG_SYS_FLASH_PROTECTION
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC | SIUMCR_GB5E)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01 | SIUMCR_FRC | SIUMCR_GB5E)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
 #if CONFIG_XIN == 10000000
 
 #if MPC8XX_HZ == 50000000
-#define CFG_PLPRCR     ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((0 << PLPRCR_MFN_SHIFT) | (0 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (10 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #elif MPC8XX_HZ == 66666666
-#define CFG_PLPRCR     ((1 << PLPRCR_MFN_SHIFT) | (2 << PLPRCR_MFD_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      ((1 << PLPRCR_MFN_SHIFT) | (2 << PLPRCR_MFD_SHIFT) | \
                         (1 << PLPRCR_S_SHIFT) | (13 << PLPRCR_MFI_SHIFT) | (0 << PLPRCR_PDF_SHIFT) | \
                         PLPRCR_TEXPS)
 #else
 
 #define SCCR_MASK      SCCR_EBDF11
 #if MPC8XX_HZ > 66666666
-#define CFG_SCCR       (/* SCCR_TBS     | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS     | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00 | SCCR_EBDF01)
 #else
-#define CFG_SCCR       (/* SCCR_TBS     | */ SCCR_CRQEN | \
+#define CONFIG_SYS_SCCR        (/* SCCR_TBS     | */ SCCR_CRQEN | \
                         SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
 
 #define FLASH_BANK_MAX_SIZE    0x01000000      /* max size per chip */
 
-#define CFG_REMAP_OR_AM                0x80000000
-#define CFG_PRELIM_OR_AM       (0xFFFFFFFFLU & ~(FLASH_BANK_MAX_SIZE - 1))
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000
+#define CONFIG_SYS_PRELIM_OR_AM        (0xFFFFFFFFLU & ~(FLASH_BANK_MAX_SIZE - 1))
 
 /* FLASH timing: ACS = 11, TRLX = 0, CSNT = 1, SCY = 5, EHTR = 1       */
-#define CFG_OR_TIMING_FLASH    (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_CSNT_SAM  | OR_BI | OR_SCY_5_CLK | OR_TRLX)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
-#define CFG_OR1_PRELIM ((0xFFFFFFFFLU & ~(FLASH_BANK_MAX_SIZE - 1)) | CFG_OR_TIMING_FLASH)
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
+#define CONFIG_SYS_OR1_PRELIM  ((0xFFFFFFFFLU & ~(FLASH_BANK_MAX_SIZE - 1)) | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V )
 
 /*
  * BR4 and OR4 (SDRAM)
 #define        SDRAM_MAX_SIZE          (256 << 20)     /* max 256MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    (OR_CSNT_SAM | OR_G5LS)
+#define CONFIG_SYS_OR_TIMING_SDRAM     (OR_CSNT_SAM | OR_G5LS)
 
-#define CFG_OR4_PRELIM ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CFG_OR_TIMING_SDRAM)
-#define CFG_BR4_PRELIM ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_PS_32 | BR_V)
+#define CONFIG_SYS_OR4_PRELIM  ((0xFFFFFFFFLU & ~(SDRAM_MAX_SIZE - 1)) | CONFIG_SYS_OR_TIMING_SDRAM)
+#define CONFIG_SYS_BR4_PRELIM  ((SDRAM_BASE1_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_PS_32 | BR_V)
 
 /*
  * Memory Periodic Timer Prescaler
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_MAMR_PTA            234
+#define CONFIG_SYS_MAMR_PTA             234
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 
 /* NAND */
 #define CONFIG_NAND_LEGACY
-#define CFG_NAND_BASE          NAND_BASE
+#define CONFIG_SYS_NAND_BASE           NAND_BASE
 #define CONFIG_MTD_NAND_ECC_JFFS2
 #define CONFIG_MTD_NAND_VERIFY_WRITE
 #define CONFIG_MTD_NAND_UNSAFE
 
-#define CFG_MAX_NAND_DEVICE    1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1
 #undef NAND_NO_RB
 
 #define SECTORSIZE             512
 /* ALE = PC15, CLE = PB23, CE = PA7, F_RY_BY = PA6 */
 #define NAND_DISABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_padat) |=  (1 << (15 - 7)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padat) |=  (1 << (15 - 7)); \
        } while(0)
 
 #define NAND_ENABLE_CE(nand) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_padat) &= ~(1 << (15 - 7)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padat) &= ~(1 << (15 - 7)); \
        } while(0)
 
 #define NAND_CTL_CLRALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat) &= ~(1 << (15 - 15)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat) &= ~(1 << (15 - 15)); \
        } while(0)
 
 #define NAND_CTL_SETALE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_ioport.iop_pcdat) |=  (1 << (15 - 15)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_pcdat) |=  (1 << (15 - 15)); \
        } while(0)
 
 #define NAND_CTL_CLRCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat) &= ~(1 << (31 - 23)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat) &= ~(1 << (31 - 23)); \
        } while(0)
 
 #define NAND_CTL_SETCLE(nandptr) \
        do { \
-               (((volatile immap_t *)CFG_IMMR)->im_cpm.cp_pbdat) |=  (1 << (31 - 23)); \
+               (((volatile immap_t *)CONFIG_SYS_IMMR)->im_cpm.cp_pbdat) |=  (1 << (31 - 23)); \
        } while(0)
 
 #ifndef NAND_NO_RB
 #define NAND_WAIT_READY(nand) \
        do { \
                int _tries = 0; \
-               while ((((volatile immap_t *)CFG_IMMR)->im_ioport.iop_padat & (1 << (15 - 6))) == 0) \
+               while ((((volatile immap_t *)CONFIG_SYS_IMMR)->im_ioport.iop_padat & (1 << (15 - 6))) == 0) \
                        if (++_tries > 100000) \
                                break; \
        } while (0)
 
 /*****************************************************************************/
 
-#define CFG_DIRECT_FLASH_TFTP
-#define CFG_DIRECT_NAND_TFTP
+#define CONFIG_SYS_DIRECT_FLASH_TFTP
+#define CONFIG_SYS_DIRECT_NAND_TFTP
 
 /*****************************************************************************/
 
  */
 #define STATUS_LED_BIT         0x00000080              /* bit 24 */
 
-#define STATUS_LED_PERIOD      (CFG_HZ / 2)
+#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
 #define STATUS_LED_STATE       STATUS_LED_BLINKING
 
 #define STATUS_LED_ACTIVE      0               /* LED on for bit == 0  */
@@ -554,15 +554,15 @@ typedef unsigned int led_id_t;
 
 #define __led_toggle(_msk) \
        do { \
-               ((volatile immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pgcrb ^= (_msk); \
+               ((volatile immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pgcrb ^= (_msk); \
        } while(0)
 
 #define __led_set(_msk, _st) \
        do { \
                if ((_st)) \
-                       ((volatile immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pgcrb |= (_msk); \
+                       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pgcrb |= (_msk); \
                else \
-                       ((volatile immap_t *)CFG_IMMR)->im_pcmcia.pcmc_pgcrb &= ~(_msk); \
+                       ((volatile immap_t *)CONFIG_SYS_IMMR)->im_pcmcia.pcmc_pgcrb &= ~(_msk); \
        } while(0)
 
 #define __led_init(msk, st) __led_set(msk, st)
@@ -571,9 +571,9 @@ typedef unsigned int led_id_t;
 
 /******************************************************************************/
 
-#define CFG_CONSOLE_IS_IN_ENV          1
-#define CFG_CONSOLE_OVERWRITE_ROUTINE  1
-#define CFG_CONSOLE_ENV_OVERWRITE      1
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV           1
+#define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE   1
+#define CONFIG_SYS_CONSOLE_ENV_OVERWRITE       1
 
 /******************************************************************************/
 
index cc9f6bd3959ed29e8d874e9481edddc03e4f71d6..b702de0c58553455bedb62f8f97e07032e8924bb 100644 (file)
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x80000000
-#define CFG_SDRAM_SIZE         0x01000000
-#define CFG_FLASH_BASE         0xfff00000
-#define CFG_FLASH_SIZE         0x00400000
-#define CFG_RESET_ADDRESS      0xfff00100
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256 kB for Monitor */
-#define CFG_MONITOR_BASE       (CFG_SDRAM_BASE + CFG_SDRAM_SIZE - (1024 * 1024))
-#define CFG_MALLOC_LEN         (256 << 10)     /* Reserve 256 kB for malloc */
-#define CFG_MALLOC_BASE                (CFG_MONITOR_BASE - (1024 * 1024))
+#define CONFIG_SYS_SDRAM_BASE          0x80000000
+#define CONFIG_SYS_SDRAM_SIZE          0x01000000
+#define CONFIG_SYS_FLASH_BASE          0xfff00000
+#define CONFIG_SYS_FLASH_SIZE          0x00400000
+#define CONFIG_SYS_RESET_ADDRESS       0xfff00100
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - (1024 * 1024))
+#define CONFIG_SYS_MALLOC_LEN          (256 << 10)     /* Reserve 256 kB for malloc */
+#define CONFIG_SYS_MALLOC_BASE         (CONFIG_SYS_MONITOR_BASE - (1024 * 1024))
 
 #define CONFIG_XILINX_UARTLITE
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 115200 }
 
 /* System Register (GPIO) */
 #define MICROBLAZE_SYSREG_BASE_ADDR 0xFFFFA000
 #undef CONFIG_CMD_NET
 #undef CONFIG_CMD_MISC
 
-#define CFG_UART1_BASE         (0xFFFF2000)
-#define CONFIG_SERIAL_BASE     CFG_UART1_BASE
+#define CONFIG_SYS_UART1_BASE          (0xFFFF2000)
+#define CONFIG_SERIAL_BASE     CONFIG_SYS_UART1_BASE
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define CFG_PROMPT             "SUZAKU> "      /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size     */
-#define CFG_MAXARGS            16              /* max number of command args   */
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "SUZAKU> "      /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size        */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
 
-#define CFG_LOAD_ADDR          CFG_SDRAM_BASE  /* default load address         */
+#define CONFIG_SYS_LOAD_ADDR           CONFIG_SYS_SDRAM_BASE   /* default load address         */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     1       /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      1       /* max number of sectors on one chip    */
 
 /*-----------------------------------------------------------------------
  * NVRAM organization
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
 
-#define CFG_INIT_RAM_ADDR      0x80000000      /* inside of SDRAM */
-#define CFG_INIT_RAM_END       0x2000          /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128             /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x80000000      /* inside of SDRAM */
+#define CONFIG_SYS_INIT_RAM_END        0x2000          /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 #define XILINX_CLOCK_FREQ      50000000
 #define CONFIG_XILINX_CLOCK_FREQ       XILINX_CLOCK_FREQ
index 95078460d892a99d334f811a0fbd944dd64b34ad..3917a1bdd27613a78811970e45e77aed392e522e 100644 (file)
@@ -54,7 +54,7 @@
 /* #define CONFIG_SDRAM_16M */
 #define CONFIG_SDRAM_32M
 /* #define CONFIG_SDRAM_64M */
-#define CFG_RESET_ADDRESS 0xffffffff
+#define CONFIG_SYS_RESET_ADDRESS 0xffffffff
 /*
  * High Level Configuration Options
  * (easy to change)
        "tftpboot 0x210000 pImage-sc855t;bootm 0x210000"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 
 #ifdef CONFIG_LCD
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 
-#ifdef  CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2     "> "
+#ifdef  CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFF000000
+#define CONFIG_SYS_IMMR                0xFF000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (384 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (384 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     67      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      67      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x46454C38      /* 'SVM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x46454C38      /* 'SVM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-/*#define CFG_SYPCR    (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+/*#define CONFIG_SYS_SYPCR     (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 */
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR 0xffffff88
+#define CONFIG_SYS_SYPCR 0xffffff88
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-/*#define CFG_SIUMCR 0x00610c00        */
-#define CFG_SIUMCR 0x00000000
+/*#define CONFIG_SYS_SIUMCR 0x00610c00 */
+#define CONFIG_SYS_SIUMCR 0x00000000
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      0x0001
+#define CONFIG_SYS_TBSCR       0x0001
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      0x00c3
+#define CONFIG_SYS_RTCSC       0x00c3
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      0x0000
+#define CONFIG_SYS_PISCR       0x0000
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * interrupt status bit
  */
 #if defined (CONFIG_100MHz)
-#define CFG_PLPRCR 0x06301000
+#define CONFIG_SYS_PLPRCR 0x06301000
 #define CONFIG_8xx_GCLK_FREQ 100000000
 #elif defined (CONFIG_80MHz)
-#define CFG_PLPRCR 0x04f01000
+#define CONFIG_SYS_PLPRCR 0x04f01000
 #define CONFIG_8xx_GCLK_FREQ 80000000
 #elif defined(CONFIG_75MHz)
-#define CFG_PLPRCR 0x04a00100
+#define CONFIG_SYS_PLPRCR 0x04a00100
 #define CONFIG_8xx_GCLK_FREQ 75000000
 #elif defined(CONFIG_66MHz)
-#define CFG_PLPRCR 0x04101000
+#define CONFIG_SYS_PLPRCR 0x04101000
 #define CONFIG_8xx_GCLK_FREQ 66000000
 #elif defined(CONFIG_50MHz)
-#define CFG_PLPRCR 0x03101000
+#define CONFIG_SYS_PLPRCR 0x03101000
 #define CONFIG_8xx_GCLK_FREQ 50000000
 #endif
 
  */
 #define SCCR_MASK      SCCR_EBDF11
 #ifdef CONFIG_BUS_DIV2
-#define CFG_SCCR       0x02020000 | SCCR_RTSEL
+#define CONFIG_SYS_SCCR        0x02020000 | SCCR_RTSEL
 #else                  /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR    0x02000000 | SCCR_RTSEL
+#define CONFIG_SYS_SCCR    0x02000000 | SCCR_RTSEL
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_BASE_ADDR       0xFE100010
-#define CFG_ATA_IDE0_OFFSET     0x0000
-/*#define CFG_ATA_IDE1_OFFSET     0x0C00 */
-#define CFG_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O
+#define CONFIG_SYS_ATA_BASE_ADDR       0xFE100010
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
+/*#define CONFIG_SYS_ATA_IDE1_OFFSET     0x0C00 */
+#define CONFIG_SYS_ATA_DATA_OFFSET     0x0000  /* Offset for data I/O
                                           */
-#define CFG_ATA_REG_OFFSET      0x0200  /* Offset for normal register accesses
+#define CONFIG_SYS_ATA_REG_OFFSET      0x0200  /* Offset for normal register accesses
                                           */
-#define CFG_ATA_ALT_OFFSET      0x0210  /* Offset for alternate registers
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0210  /* Offset for alternate registers
                                           */
 #define CONFIG_ATAPI
-#define CFG_PIO_MODE 0
+#define CONFIG_SYS_PIO_MODE 0
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-/*#define      CFG_DER 0x2002000F*/
-#define CFG_DER        0x0
+/*#define      CONFIG_SYS_DER  0x2002000F*/
+#define CONFIG_SYS_DER 0x0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
 #if defined(CONFIG_100MHz)
-#define CFG_OR_TIMING_FLASH 0x000002f4
-#define CFG_OR_TIMING_DOC   0x000002f4
-#define CFG_MxMR_PTx 0x61000000
-#define CFG_MPTPR 0x400
+#define CONFIG_SYS_OR_TIMING_FLASH 0x000002f4
+#define CONFIG_SYS_OR_TIMING_DOC   0x000002f4
+#define CONFIG_SYS_MxMR_PTx 0x61000000
+#define CONFIG_SYS_MPTPR 0x400
 
 #elif  defined(CONFIG_80MHz)
-#define CFG_OR_TIMING_FLASH 0x00000ff4
-#define CFG_OR_TIMING_DOC   0x000001f4
-#define CFG_MxMR_PTx 0x4e000000
-#define CFG_MPTPR 0x400
+#define CONFIG_SYS_OR_TIMING_FLASH 0x00000ff4
+#define CONFIG_SYS_OR_TIMING_DOC   0x000001f4
+#define CONFIG_SYS_MxMR_PTx 0x4e000000
+#define CONFIG_SYS_MPTPR 0x400
 
 #elif defined(CONFIG_75MHz)
-#define CFG_OR_TIMING_FLASH 0x000008f4
-#define CFG_OR_TIMING_DOC   0x000002f4
-#define CFG_MxMR_PTx 0x49000000
-#define CFG_MPTPR 0x400
+#define CONFIG_SYS_OR_TIMING_FLASH 0x000008f4
+#define CONFIG_SYS_OR_TIMING_DOC   0x000002f4
+#define CONFIG_SYS_MxMR_PTx 0x49000000
+#define CONFIG_SYS_MPTPR 0x400
 
 #elif defined(CONFIG_66MHz)
-#define CFG_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
        OR_SCY_3_CLK | OR_EHTR | OR_BI)
-/*#define CFG_OR_TIMING_FLASH 0x000001f4 */
-#define CFG_OR_TIMING_DOC   0x000003f4
-#define CFG_MxMR_PTx  0x40000000
-#define CFG_MPTPR 0x400
+/*#define CONFIG_SYS_OR_TIMING_FLASH 0x000001f4 */
+#define CONFIG_SYS_OR_TIMING_DOC   0x000003f4
+#define CONFIG_SYS_MxMR_PTx  0x40000000
+#define CONFIG_SYS_MPTPR 0x400
 
 #else          /*   50 MHz */
-#define CFG_OR_TIMING_FLASH 0x00000ff4
-#define CFG_OR_TIMING_DOC   0x000001f4
-#define CFG_MxMR_PTx  0x30000000
-#define CFG_MPTPR 0x400
+#define CONFIG_SYS_OR_TIMING_FLASH 0x00000ff4
+#define CONFIG_SYS_OR_TIMING_DOC   0x000001f4
+#define CONFIG_SYS_MxMR_PTx  0x30000000
+#define CONFIG_SYS_MPTPR 0x400
 #endif /*CONFIG_??MHz */
 
 
 #if  defined (CONFIG_BOOT_8B)   /* 512K X 8 ,29F040 , 2MB space */
-#define CFG_OR0_PRELIM (0xffe00000 | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_8)
+#define CONFIG_SYS_OR0_PRELIM  (0xffe00000 | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_8)
 #elif  defined (CONFIG_BOOT_16B)   /* 29lv160 X 16 , 4MB space */
-#define CFG_OR0_PRELIM (0xffc00000 | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16)
+#define CONFIG_SYS_OR0_PRELIM  (0xffc00000 | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V | BR_PS_16)
 #elif defined( CONFIG_BOOT_32B )  /* 29lv160 X 2 X 32, 4/8/16MB , 64MB space */
-#define CFG_OR0_PRELIM (0xfc000000 | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_PRELIM  (0xfc000000 | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 #else
 #error Boot device port size missing.
 #endif
  * Disk-On-Chip configuration
  */
 
-#define CFG_DOC_SHORT_TIMEOUT
-#define CFG_MAX_DOC_DEVICE      1       /* Max number of DOC devices    */
+#define CONFIG_SYS_DOC_SHORT_TIMEOUT
+#define CONFIG_SYS_MAX_DOC_DEVICE      1       /* Max number of DOC devices    */
 
-#define CFG_DOC_SUPPORT_2000
-#define CFG_DOC_SUPPORT_MILLENNIUM
-#define CFG_DOC_BASE 0x80000000
+#define CONFIG_SYS_DOC_SUPPORT_2000
+#define CONFIG_SYS_DOC_SUPPORT_MILLENNIUM
+#define CONFIG_SYS_DOC_BASE 0x80000000
 
 
 /*
index bcb8732a65b212422abc7f8f14a59f7e1c05a6ad..8c48c669dcbd61736f427a74c493325000ccfd49 100644 (file)
 #define CONFIG_CMD_SPI
 
 #undef CONFIG_SPD_EEPROM               /* use SPD EEPROM for setup */
-#define CFG_SDRAM_SIZE_PER_BANK 0x04000000 /* 64MB */
-#define CFG_SDRAM_BANKS                2
+#define CONFIG_SYS_SDRAM_SIZE_PER_BANK 0x04000000 /* 64MB */
+#define CONFIG_SYS_SDRAM_BANKS         2
 
 /*
  * SDRAM configuration (please see cpu/ppc/sdram.[ch])
 #define CONFIG_SDRAM_BANK1     1       /* init onboard SDRAM bank 1 */
 
 /* SDRAM timings used in datasheet */
-#define CFG_SDRAM_CL            3      /* CAS latency */
-#define CFG_SDRAM_tRP           20     /* PRECHARGE command period */
-#define CFG_SDRAM_tRC           66     /* ACTIVE-to-ACTIVE command period */
-#define CFG_SDRAM_tRCD          20     /* ACTIVE-to-READ delay */
-#define CFG_SDRAM_tRFC         66      /* Auto refresh period */
+#define CONFIG_SYS_SDRAM_CL            3       /* CAS latency */
+#define CONFIG_SYS_SDRAM_tRP           20      /* PRECHARGE command period */
+#define CONFIG_SYS_SDRAM_tRC           66      /* ACTIVE-to-ACTIVE command period */
+#define CONFIG_SYS_SDRAM_tRCD          20      /* ACTIVE-to-READ delay */
+#define CONFIG_SYS_SDRAM_tRFC          66      /* Auto refresh period */
 
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#undef  CFG_EXT_SERIAL_CLOCK           /* external serial clock */
-#undef  CFG_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD          691200
+#undef  CONFIG_SYS_EXT_SERIAL_CLOCK           /* external serial clock */
+#undef  CONFIG_SYS_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD           691200
 #define CONFIG_UART1_CONSOLE   1
 
 /*-----------------------------------------------------------------------
  * I2C stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_NOPROBES       { 0x69 } /* avoid iprobe hangup (why?) */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 6 /* 24C02 requires 5ms delay */
+#define CONFIG_SYS_I2C_NOPROBES        { 0x69 } /* avoid iprobe hangup (why?) */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  6 /* 24C02 requires 5ms delay */
 
-#define CFG_I2C_EEPROM_ADDR    0x50    /* I2C boot EEPROM (24C02W)     */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* Bytes of address             */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* I2C boot EEPROM (24C02W)     */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
 
 #define CONFIG_SOFT_SPI
 #define SPI_SCL  spi_scl
@@ -159,7 +159,7 @@ unsigned char spi_read(void);
 /* standard dtt sensor configuration */
 #define CONFIG_DTT_DS1775      1
 #define CONFIG_DTT_SENSORS     { 0 }
-#define CFG_I2C_DTT_ADDR       0x49
+#define CONFIG_SYS_I2C_DTT_ADDR        0x49
 
 /*-----------------------------------------------------------------------
  * PCI stuff
@@ -175,39 +175,39 @@ unsigned char spi_read(void);
                                        /* resource configuration      */
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
-#define CFG_PCI_CLASSCODE       0x0600  /* PCI Class Code: bridge/host */
-#define CFG_PCI_PTM1LA     0x00000000  /* point to sdram              */
-#define CFG_PCI_PTM1MS      0x80000001 /* 2GB, enable hard-wired to 1 */
-#define CFG_PCI_PTM1PCI     0x00000000 /* Host: use this pci address  */
-#define CFG_PCI_PTM2LA      0x00000000 /* disabled                    */
-#define CFG_PCI_PTM2MS     0x00000000  /* disabled                    */
-#define CFG_PCI_PTM2PCI     0x04000000 /* Host: use this pci address  */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
+#define CONFIG_SYS_PCI_CLASSCODE       0x0600  /* PCI Class Code: bridge/host */
+#define CONFIG_SYS_PCI_PTM1LA      0x00000000  /* point to sdram              */
+#define CONFIG_SYS_PCI_PTM1MS      0x80000001  /* 2GB, enable hard-wired to 1 */
+#define CONFIG_SYS_PCI_PTM1PCI     0x00000000  /* Host: use this pci address  */
+#define CONFIG_SYS_PCI_PTM2LA      0x00000000  /* disabled                    */
+#define CONFIG_SYS_PCI_PTM2MS      0x00000000  /* disabled                    */
+#define CONFIG_SYS_PCI_PTM2PCI     0x04000000  /* Host: use this pci address  */
 #define CONFIG_EEPRO100                1
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
  */
-#define CFG_FLASH_BASE         0xFFE00000
+#define CONFIG_SYS_FLASH_BASE          0xFFE00000
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_ADDR0         0x555
-#define CFG_FLASH_ADDR1         0x2aa
-#define CFG_FLASH_WORD_SIZE     unsigned short
+#define CONFIG_SYS_FLASH_ADDR0         0x555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned short
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
@@ -218,19 +218,19 @@ unsigned char spi_read(void);
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
-#define CFG_NVRAM_BASE_ADDR    0xf0000000      /* NVRAM base address */
-#define CFG_NVRAM_SIZE         0x1ff8          /* NVRAM size */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0000000      /* NVRAM base address */
+#define CONFIG_SYS_NVRAM_SIZE          0x1ff8          /* NVRAM size */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x0ff8          /* Size of Environment vars */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env*/
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env*/
 #endif
 
 /*-----------------------------------------------------------------------
  * PPC405 GPIO Configuration
  */
-#define CFG_4xx_GPIO_TABLE { /*                                GPIO    Alternate1              */      \
+#define CONFIG_SYS_4xx_GPIO_TABLE { /*                         GPIO    Alternate1              */      \
 {                                                                                              \
 /* GPIO Core 0 */                                                                              \
 { GPIO_BASE, GPIO_OUT, GPIO_SEL,  GPIO_OUT_NO_CHG }, /* GPIO0  PerBLast    SPI CS      */      \
@@ -274,48 +274,48 @@ unsigned char spi_read(void);
  * BR0/1 and OR0/1 (FLASH)
  */
 
-#define FLASH_BASE0_PRELIM CFG_FLASH_BASE /* FLASH bank #0 */
+#define FLASH_BASE0_PRELIM CONFIG_SYS_FLASH_BASE /* FLASH bank #0 */
 #define FLASH_BASE1_PRELIM  0xFC000000 /* FLASH bank #1 */
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory (OCM) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM        1
+#define CONFIG_SYS_TEMP_STACK_OCM        1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of SDRAM            */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM             */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  */
 
 /* Memory Bank 0 (Flash/SRAM) initialization */
-#define CFG_EBC_PB0AP           0x03815600
-#define CFG_EBC_PB0CR           0xFFE3A000  /* BAS=0xFFE,BS=2MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB0AP           0x03815600
+#define CONFIG_SYS_EBC_PB0CR           0xFFE3A000  /* BAS=0xFFE,BS=2MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 1 (NVRAM/RTC) initialization */
-#define CFG_EBC_PB1AP           0x05815600
-#define CFG_EBC_PB1CR           0xFC0BA000  /* BAS=0xFc0,BS=32MB,BU=R/W,BW=16bit */
+#define CONFIG_SYS_EBC_PB1AP           0x05815600
+#define CONFIG_SYS_EBC_PB1CR           0xFC0BA000  /* BAS=0xFc0,BS=32MB,BU=R/W,BW=16bit */
 
 /* Memory Bank 2 (USB device) initialization */
-#define CFG_EBC_PB2AP           0x03016600
-#define CFG_EBC_PB2CR           0x50018000 /* BAS=0x500,BS=1MB,BU=R/W,BW=8bit */
+#define CONFIG_SYS_EBC_PB2AP           0x03016600
+#define CONFIG_SYS_EBC_PB2CR           0x50018000 /* BAS=0x500,BS=1MB,BU=R/W,BW=8bit */
 
 /* Memory Bank 3 (LCM and D-flip-flop) initialization */
-#define CFG_EBC_PB3AP           0x158FF600
-#define CFG_EBC_PB3CR           0x50118000 /* BAS=0x501,BS=1MB,BU=R/W,BW=8bit */
+#define CONFIG_SYS_EBC_PB3AP           0x158FF600
+#define CONFIG_SYS_EBC_PB3CR           0x50118000 /* BAS=0x501,BS=1MB,BU=R/W,BW=8bit */
 
 /* Memory Bank 4 (not install) initialization */
-#define CFG_EBC_PB4AP           0x158FF600
-#define CFG_EBC_PB4CR           0x5021A000
+#define CONFIG_SYS_EBC_PB4AP           0x158FF600
+#define CONFIG_SYS_EBC_PB4CR           0x5021A000
 
 #define CPLD_REG0_ADDR 0x50100000
 #define CPLD_REG1_ADDR 0x50100001
index 2422ae788dd265767311f9a4e1bd824917190f60..6423fd7f48187212914e52e204a5aa764472e7f0 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xfc000000      /* start of FLASH       */
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped pci memory    */
-#define CFG_PERIPHERAL_BASE    0xe0000000      /* internal peripherals */
-#define CFG_ISRAM_BASE         0xc0000000      /* internal SRAM        */
-#define CFG_PCI_BASE           0xd0000000      /* internal PCI regs    */
+#define CONFIG_SYS_FLASH_BASE          0xfc000000      /* start of FLASH       */
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped pci memory    */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xe0000000      /* internal peripherals */
+#define CONFIG_SYS_ISRAM_BASE          0xc0000000      /* internal SRAM        */
+#define CONFIG_SYS_PCI_BASE            0xd0000000      /* internal PCI regs    */
 
-#define CFG_EBC0_FLASH_BASE    CFG_FLASH_BASE
-#define CFG_EBC1_FPGA_BASE     (CFG_PERIPHERAL_BASE + 0x01000000)
-#define CFG_EBC2_LCM_BASE      (CFG_PERIPHERAL_BASE + 0x02000000)
-#define CFG_EBC3_CONN_BASE     (CFG_PERIPHERAL_BASE + 0x08000000)
+#define CONFIG_SYS_EBC0_FLASH_BASE     CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_EBC1_FPGA_BASE      (CONFIG_SYS_PERIPHERAL_BASE + 0x01000000)
+#define CONFIG_SYS_EBC2_LCM_BASE       (CONFIG_SYS_PERIPHERAL_BASE + 0x02000000)
+#define CONFIG_SYS_EBC3_CONN_BASE      (CONFIG_SYS_PERIPHERAL_BASE + 0x08000000)
 
-#define CFG_GPIO_BASE          (CFG_PERIPHERAL_BASE + 0x00000700)
+#define CONFIG_SYS_GPIO_BASE           (CONFIG_SYS_PERIPHERAL_BASE + 0x00000700)
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM     1
-#define CFG_OCM_DATA_ADDR      CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR      CFG_ISRAM_BASE  /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x2000          /* End of used area in RAM*/
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data*/
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_ISRAM_BASE  /* Initial RAM address   */
+#define CONFIG_SYS_INIT_RAM_END        0x2000          /* End of used area in RAM*/
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data*/
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
 #define CONFIG_UART1_CONSOLE   1       /* use of UART1 as console      */
-#define CFG_EXT_SERIAL_CLOCK   (1843200 * 6)   /* Ext clk @ 11.059 MHz */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    (1843200 * 6)   /* Ext clk @ 11.059 MHz */
 
 /*-----------------------------------------------------------------------
  * Environment
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
 
-#define CFG_FLASH_BANKS_LIST    {CFG_FLASH_BASE}
-#define CFG_MAX_FLASH_BANKS     1                  /* number of banks      */
-#define CFG_MAX_FLASH_SECT     1024                /* sectors per device   */
+#define CONFIG_SYS_FLASH_BANKS_LIST    {CONFIG_SYS_FLASH_BASE}
+#define CONFIG_SYS_MAX_FLASH_BANKS     1                   /* number of banks      */
+#define CONFIG_SYS_MAX_FLASH_SECT      1024                /* sectors per device   */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  *----------------------------------------------------------------------*/
 #undef CONFIG_SPD_EEPROM               /* Don't use SPD EEPROM for setup       */
 #define CONFIG_SDRAM_BANK0     1       /* init onboard DDR SDRAM bank 0        */
-#define        CFG_SDRAM0_TR0          0xC10A401A
+#define        CONFIG_SYS_SDRAM0_TR0           0xC10A401A
 #undef CONFIG_SDRAM_ECC                        /* enable ECC support                   */
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#undef CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    0x50
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#undef CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
-#define CFG_BOOTSTRAP_IIC_ADDR 0x50
+#define CONFIG_SYS_BOOTSTRAP_IIC_ADDR  0x50
 
 /* I2C SYSMON (LM75, AD7414 is almost compatible)                      */
 #define CONFIG_DTT_LM75                1               /* ON Semi's LM75       */
 #define CONFIG_DTT_SENSORS     {0}             /* Sensor addresses     */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 /*
  * Default environment variables
 #define CONFIG_PCI_PNP                 /* do pci plug-and-play         */
 #define CONFIG_EEPRO100       1                /* include PCI EEPRO100         */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE    0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE */
+#define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT            /* let board init pci target    */
+#define CONFIG_SYS_PCI_TARGET_INIT             /* let board init pci target    */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
 
 #endif /* __CONFIG_H */
index bfb32fbf7556123e358b749930b3a840826a81e8..9285c9dcc7644b08bcaa703c54ad6232d1f13dc9 100644 (file)
@@ -38,7 +38,7 @@
 
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_TIMESTAMP               /* Print image info with timestamp */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory      */
-#define CFG_PROMPT             "# "            /* Monitor Command Prompt    */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size   */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args*/
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory      */
+#define CONFIG_SYS_PROMPT              "# "            /* Monitor Command Prompt    */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size   */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)  /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args*/
 
-#define CFG_MALLOC_LEN         128*1024
+#define CONFIG_SYS_MALLOC_LEN          128*1024
 
-#define CFG_BOOTPARAMS_LEN     128*1024
+#define CONFIG_SYS_BOOTPARAMS_LEN      128*1024
 
-#define CFG_MIPS_TIMER_FREQ    (CPU_TCLOCK_RATE/4)
+#define CONFIG_SYS_MIPS_TIMER_FREQ     (CPU_TCLOCK_RATE/4)
 
-#define CFG_HZ                 1000
+#define CONFIG_SYS_HZ                  1000
 
-#define CFG_SDRAM_BASE         0x80000000
+#define CONFIG_SYS_SDRAM_BASE          0x80000000
 
-#define CFG_LOAD_ADDR          0x80400000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x80400000      /* default load address */
 
-#define CFG_MEMTEST_START      0x80000000
-#define CFG_MEMTEST_END                0x80800000
+#define CONFIG_SYS_MEMTEST_START       0x80000000
+#define CONFIG_SYS_MEMTEST_END         0x80800000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      (128)   /* max number of sectors on one chip */
 
 #define PHYS_FLASH_1           0xbfc00000 /* Flash Bank #1 */
 
 /* The following #defines are needed to get flash environment right */
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 << 10)
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)
 
-#define CFG_INIT_SP_OFFSET     0x400000
+#define CONFIG_SYS_INIT_SP_OFFSET      0x400000
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20 * CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2 * CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20 * CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2 * CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 
 #define CONFIG_ENV_ADDR                0xBFC40000
 #define CONFIG_ENV_SIZE                0x20000
 
-#define CFG_DIRECT_FLASH_TFTP
+#define CONFIG_SYS_DIRECT_FLASH_TFTP
 
 #define CONFIG_NR_DRAM_BANKS   1
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_DCACHE_SIZE                16384
-#define CFG_ICACHE_SIZE                16384
-#define CFG_CACHELINE_SIZE     16
+#define CONFIG_SYS_DCACHE_SIZE         16384
+#define CONFIG_SYS_ICACHE_SIZE         16384
+#define CONFIG_SYS_CACHELINE_SIZE      16
 
 /*-----------------------------------------------------------------------
  * Serial Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE    1
-#define CFG_NS16550_CLK                 18432000
-#define CFG_NS16550_COM1        0xaf000800
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE     1
+#define CONFIG_SYS_NS16550_CLK          18432000
+#define CONFIG_SYS_NS16550_COM1         0xaf000800
 
 /*-----------------------------------------------------------------------
  * PCI stuff
 #define CONFIG_PCI_PNP
 #define CONFIG_NET_MULTI
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 
 #define CONFIG_RTL8139
 
index d6d463a27956c0acc50762632bb4241c85c6cf5a..562cd6093f25b5c42ea7a8c1d9c20d6508a96321 100644 (file)
@@ -58,7 +58,7 @@
 #define CONFIG_SETUP_MEMORY_TAGS 1
 #define CONFIG_INITRD_TAG       1
 
-#define CFG_DEVICE_NULLDEV      1      /* enble null device            */
+#define CONFIG_SYS_DEVICE_NULLDEV       1      /* enble null device            */
 #define CONFIG_SILENT_CONSOLE   1      /* enable silent startup        */
 
 #define CONFIG_VERSION_VARIABLE        1       /* include version env variable */
  * address 0x54 with 8bit addressing
  ***********************************************************/
 #define CONFIG_HARD_I2C                        /* I2C with hardware support */
-#define CFG_I2C_SPEED          100000  /* I2C speed */
-#define CFG_I2C_SLAVE          0x7F    /* I2C slave addr */
+#define CONFIG_SYS_I2C_SPEED           100000  /* I2C speed */
+#define CONFIG_SYS_I2C_SLAVE           0x7F    /* I2C slave addr */
 
-#define CFG_I2C_EEPROM_ADDR    0x54    /* EEPROM address */
-#define CFG_I2C_EEPROM_ADDR_LEN        1       /* 1 address byte */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x54    /* EEPROM address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* 1 address byte */
 
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW 0x01
-#define CFG_EEPROM_PAGE_WRITE_BITS 3   /* 8 bytes page write mode on 24C04 */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x01
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3    /* 8 bytes page write mode on 24C04 */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /* USB stuff */
 #define CONFIG_USB_OHCI_NEW    1
 #define CONFIG_USB_STORAGE     1
 #define CONFIG_DOS_PARTITION   1
 
-#undef CFG_USB_OHCI_BOARD_INIT
-#define CFG_USB_OHCI_CPU_INIT  1
+#undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
 
-#define CFG_USB_OHCI_REGS_BASE 0x14200000
-#define CFG_USB_OHCI_SLOT_NAME "s3c2400"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  0x14200000
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "s3c2400"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
 
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 
 
 /* moved up */
-#define CFG_HUSH_PARSER                1       /* use "hush" command parser    */
+#define CONFIG_SYS_HUSH_PARSER         1       /* use "hush" command parser    */
 
 #define CONFIG_BOOTDELAY       5
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* allow to break in always */
 #define CONFIG_BOOTCOMMAND     "burn_in"
 
 #ifndef CONFIG_FLASH_8MB       /* current config: 16 MB flash */
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #define        CONFIG_EXTRA_ENV_SETTINGS       \
        "nfs_args=setenv bootargs root=/dev/nfs rw " \
                "nfsroot=$serverip:$rootpath\0" \
        "mdm_init1=ATZ\0" \
        "mdm_init2=ATS0=1\0" \
        "mdm_flow_control=rts/cts\0"
-#else /* !CFG_HUSH_PARSER */
+#else /* !CONFIG_SYS_HUSH_PARSER */
 #define        CONFIG_EXTRA_ENV_SETTINGS       \
        "nfs_args=setenv bootargs root=/dev/nfs rw " \
                "nfsroot=${serverip}:${rootpath}\0" \
        "mdm_init1=ATZ\0" \
        "mdm_init2=ATS0=1\0" \
        "mdm_flow_control=rts/cts\0"
-#endif /* CFG_HUSH_PARSER */
+#endif /* CONFIG_SYS_HUSH_PARSER */
 #else  /* CONFIG_FLASH_8MB      => 8 MB flash */
-#ifdef CFG_HUSH_PARSER
+#ifdef CONFIG_SYS_HUSH_PARSER
 #define        CONFIG_EXTRA_ENV_SETTINGS       \
        "nfs_args=setenv bootargs root=/dev/nfs rw " \
                "nfsroot=$serverip:$rootpath\0" \
        "mdm_init1=ATZ\0" \
        "mdm_init2=ATS0=1\0" \
        "mdm_flow_control=rts/cts\0"
-#else /* !CFG_HUSH_PARSER */
+#else /* !CONFIG_SYS_HUSH_PARSER */
 #define        CONFIG_EXTRA_ENV_SETTINGS       \
        "nfs_args=setenv bootargs root=/dev/nfs rw " \
                "nfsroot=${serverip}:${rootpath}\0" \
        "mdm_init1=ATZ\0" \
        "mdm_init2=ATS0=1\0" \
        "mdm_flow_control=rts/cts\0"
-#endif /* CFG_HUSH_PARSER */
+#endif /* CONFIG_SYS_HUSH_PARSER */
 #endif /* CONFIG_FLASH_8MB */
 
 #if 1  /* feel free to disable for development */
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                            /* undef to save memory         */
-#define        CFG_PROMPT              "TRAB # "       /* Monitor Command Prompt       */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define        CONFIG_SYS_LONGHELP                             /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "TRAB # "       /* Monitor Command Prompt       */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #endif
 
-#define        CFG_CBSIZE              256             /* Console I/O Buffer Size      */
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_CBSIZE               256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0C000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x0D000000      /* 16 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0C000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0D000000      /* 16 MB in DRAM        */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define        CFG_LOAD_ADDR           0x0CF00000      /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x0CF00000      /* default load address */
 
 #ifdef CONFIG_TRAB_50MHZ
 /* the PWM TImer 4 uses a counter of 15625 for 10 ms, so we need */
 /* it to wrap 100 times (total 1562500) to get 1 sec. */
 /* this should _really_ be calculated !! */
-#define        CFG_HZ                  1562500
+#define        CONFIG_SYS_HZ                   1562500
 #else
 /* the PWM TImer 4 uses a counter of 10390 for 10 ms, so we need */
 /* it to wrap 100 times (total 1039000) to get 1 sec. */
 /* this should _really_ be calculated !! */
-#define        CFG_HZ                  1039000
+#define        CONFIG_SYS_HZ                   1039000
 #endif
 
 /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_MISC_INIT_R             /* have misc_init_r() function  */
 
 #define PHYS_SDRAM_1_SIZE      0x01000000      /* 16 MB */
 #endif
 
-#define CFG_FLASH_BASE         0x00000000      /* Flash Bank #1 */
+#define CONFIG_SYS_FLASH_BASE          0x00000000      /* Flash Bank #1 */
 
 /* The following #defines are needed to get flash environment right */
-#define        CFG_MONITOR_BASE        CFG_FLASH_BASE
-#define        CFG_MONITOR_LEN         (256 << 10)
+#define        CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)
 
 /* Dynamic MTD partition support */
 #define CONFIG_JFFS2_CMDLINE
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks */
 #ifndef CONFIG_FLASH_8MB
-#define CFG_MAX_FLASH_SECT     128     /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* max number of sectors on one chip */
 #else
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 #endif
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (15*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (15*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 
 /* Address and size of Primary Environment Sector      */
 #ifndef CONFIG_FLASH_8MB
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x60000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x60000)
 #define CONFIG_ENV_SIZE                0x4000
 #define CONFIG_ENV_SECT_SIZE   0x20000
 #else
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x4000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x4000)
 #define CONFIG_ENV_SIZE                0x4000
 #define CONFIG_ENV_SECT_SIZE   0x4000
 #endif
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_ADDR+CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 /* Initial value of the on-board touch screen brightness */
-#define CFG_BRIGHTNESS 0x20
+#define CONFIG_SYS_BRIGHTNESS 0x20
 
 #endif /* __CONFIG_H */
index b24979b06064dcaa082cea88bb82b8f08bf971f6..b2065ee48b168e6d168ba6e6578a10837e3d7c62 100644 (file)
@@ -54,8 +54,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "$ "            /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "$ "            /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0xa1000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa1000000      /* default load address */
 
-#define CFG_HZ                 3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x207           /* need to look more closely, I think this is Turbo = 2x, L=91Mhz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x207           /* need to look more closely, I think this is Turbo = 2x, L=91Mhz */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-#define CFG_MMC_BASE           0xF0000000
+#define CONFIG_SYS_MMC_BASE            0xF0000000
 
 /*
  * Stack sizes
 
 #define PHYS_FLASH_1           0x00000000 /* Flash Bank #1 */
 
-#define CFG_DRAM_BASE          0xa0000000
-#define CFG_DRAM_SIZE          0x04000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000
+#define CONFIG_SYS_DRAM_SIZE           0x04000000
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*
  * GPIO settings
  */
-#define CFG_GPSR0_VAL          0x00018000
-#define CFG_GPSR1_VAL          0x00000000
-#define CFG_GPSR2_VAL          0x400dc000
-#define CFG_GPSR3_VAL          0x00000000
-#define CFG_GPCR0_VAL          0x00000000
-#define CFG_GPCR1_VAL          0x00000000
-#define CFG_GPCR2_VAL          0x00000000
-#define CFG_GPCR3_VAL          0x00000000
-#define CFG_GPDR0_VAL          0x00018000
-#define CFG_GPDR1_VAL          0x00028801
-#define CFG_GPDR2_VAL          0x520dc000
-#define CFG_GPDR3_VAL          0x0001E000
-#define CFG_GAFR0_L_VAL                0x801c0000
-#define CFG_GAFR0_U_VAL                0x00000013
-#define CFG_GAFR1_L_VAL                0x6990100A
-#define CFG_GAFR1_U_VAL                0x00000008
-#define CFG_GAFR2_L_VAL                0xA0000000
-#define CFG_GAFR2_U_VAL                0x010900F2
-#define CFG_GAFR3_L_VAL                0x54000003
-#define CFG_GAFR3_U_VAL                0x00002401
-#define CFG_GRER0_VAL          0x00000000
-#define CFG_GRER1_VAL          0x00000000
-#define CFG_GRER2_VAL          0x00000000
-#define CFG_GRER3_VAL          0x00000000
-#define CFG_GFER0_VAL          0x00000000
-#define CFG_GFER1_VAL          0x00000000
-#define CFG_GFER2_VAL          0x00000000
-#define CFG_GFER3_VAL          0x00000020
-
-
-#define CFG_PSSR_VAL           0x20    /* CHECK */
+#define CONFIG_SYS_GPSR0_VAL           0x00018000
+#define CONFIG_SYS_GPSR1_VAL           0x00000000
+#define CONFIG_SYS_GPSR2_VAL           0x400dc000
+#define CONFIG_SYS_GPSR3_VAL           0x00000000
+#define CONFIG_SYS_GPCR0_VAL           0x00000000
+#define CONFIG_SYS_GPCR1_VAL           0x00000000
+#define CONFIG_SYS_GPCR2_VAL           0x00000000
+#define CONFIG_SYS_GPCR3_VAL           0x00000000
+#define CONFIG_SYS_GPDR0_VAL           0x00018000
+#define CONFIG_SYS_GPDR1_VAL           0x00028801
+#define CONFIG_SYS_GPDR2_VAL           0x520dc000
+#define CONFIG_SYS_GPDR3_VAL           0x0001E000
+#define CONFIG_SYS_GAFR0_L_VAL         0x801c0000
+#define CONFIG_SYS_GAFR0_U_VAL         0x00000013
+#define CONFIG_SYS_GAFR1_L_VAL         0x6990100A
+#define CONFIG_SYS_GAFR1_U_VAL         0x00000008
+#define CONFIG_SYS_GAFR2_L_VAL         0xA0000000
+#define CONFIG_SYS_GAFR2_U_VAL         0x010900F2
+#define CONFIG_SYS_GAFR3_L_VAL         0x54000003
+#define CONFIG_SYS_GAFR3_U_VAL         0x00002401
+#define CONFIG_SYS_GRER0_VAL           0x00000000
+#define CONFIG_SYS_GRER1_VAL           0x00000000
+#define CONFIG_SYS_GRER2_VAL           0x00000000
+#define CONFIG_SYS_GRER3_VAL           0x00000000
+#define CONFIG_SYS_GFER0_VAL           0x00000000
+#define CONFIG_SYS_GFER1_VAL           0x00000000
+#define CONFIG_SYS_GFER2_VAL           0x00000000
+#define CONFIG_SYS_GFER3_VAL           0x00000020
+
+
+#define CONFIG_SYS_PSSR_VAL            0x20    /* CHECK */
 
 /*
  * Clock settings
  */
-#define CFG_CKEN               0x01FFFFFF      /* CHECK */
-#define CFG_CCCR               0x02000290 /*   520Mhz */
+#define CONFIG_SYS_CKEN                0x01FFFFFF      /* CHECK */
+#define CONFIG_SYS_CCCR                0x02000290 /*   520Mhz */
 
 /*
  * Memory settings
  */
 
-#define CFG_MSC0_VAL           0x4df84df0
-#define CFG_MSC1_VAL           0x7ff87ff4
-#define CFG_MSC2_VAL           0xa26936d4
-#define CFG_MDCNFG_VAL         0x880009C9
-#define CFG_MDREFR_VAL         0x20ca201e
-#define CFG_MDMRS_VAL          0x00220022
+#define CONFIG_SYS_MSC0_VAL            0x4df84df0
+#define CONFIG_SYS_MSC1_VAL            0x7ff87ff4
+#define CONFIG_SYS_MSC2_VAL            0xa26936d4
+#define CONFIG_SYS_MDCNFG_VAL          0x880009C9
+#define CONFIG_SYS_MDREFR_VAL          0x20ca201e
+#define CONFIG_SYS_MDMRS_VAL           0x00220022
 
-#define CFG_FLYCNFG_VAL                0x00000000
-#define CFG_SXCNFG_VAL         0x40044004
+#define CONFIG_SYS_FLYCNFG_VAL         0x00000000
+#define CONFIG_SYS_SXCNFG_VAL          0x40044004
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000001
-#define CFG_MCMEM0_VAL         0x00004204
-#define CFG_MCMEM1_VAL         0x00010204
-#define CFG_MCATT0_VAL         0x00010504
-#define CFG_MCATT1_VAL         0x00010504
-#define CFG_MCIO0_VAL          0x00008407
-#define CFG_MCIO1_VAL          0x0000c108
+#define CONFIG_SYS_MECR_VAL            0x00000001
+#define CONFIG_SYS_MCMEM0_VAL          0x00004204
+#define CONFIG_SYS_MCMEM1_VAL          0x00010204
+#define CONFIG_SYS_MCATT0_VAL          0x00010504
+#define CONFIG_SYS_MCATT1_VAL          0x00010504
+#define CONFIG_SYS_MCIO0_VAL           0x00008407
+#define CONFIG_SYS_MCIO1_VAL           0x0000c108
 
 #define CONFIG_DRIVER_DM9000           1
 #define CONFIG_DM9000_BASE     0x08000000
 #define DM9000_DATA                    (CONFIG_DM9000_BASE+0x8004)
 
 #define CONFIG_USB_OHCI_NEW    1
-#define CFG_USB_OHCI_BOARD_INIT        1
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    3
-#define CFG_USB_OHCI_REGS_BASE 0x4C000000
-#define CFG_USB_OHCI_SLOT_NAME "trizepsiv"
+#define CONFIG_SYS_USB_OHCI_BOARD_INIT 1
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     3
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  0x4C000000
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "trizepsiv"
 #define CONFIG_USB_STORAGE     1
-#define CFG_USB_OHCI_CPU_INIT  1
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
 
 /*
  * FLASH and environment organization
  */
 
-#define CFG_FLASH_CFI
+#define CONFIG_SYS_FLASH_CFI
 #define CONFIG_FLASH_CFI_DRIVER        1
 
-#define CFG_MONITOR_BASE       0
-#define CFG_MONITOR_LEN                0x40000
+#define CONFIG_SYS_MONITOR_BASE        0
+#define CONFIG_SYS_MONITOR_LEN         0x40000
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     4 + 255  /* max number of sectors on one chip   */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      4 + 255  /* max number of sectors on one chip   */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (25*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (25*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* write flash less slowly */
-#define CFG_FLASH_USE_BUFFER_WRITE 1
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
 
 /* Flash environment locations */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + CFG_MONITOR_LEN) /* Addr of Environment Sector  */
+#define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + CONFIG_SYS_MONITOR_LEN) /* Addr of Environment Sector   */
 #define CONFIG_ENV_SIZE                0x40000 /* Total Size of Environment            */
 #define CONFIG_ENV_SECT_SIZE   0x40000 /* Total Size of Environment Sector     */
 
index 22ebf0718f457f864b81ab9ed46e0a9f61bbc64d..23f4c825b7eab99ee943a6e154689dbc664f29ff 100644 (file)
@@ -92,7 +92,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_DOS_PARTITION
 
 #undef CONFIG_RTC_MPC8xx
-#define CFG_I2C_RTC_ADDR       0x51    /* PCF8563 RTC                  */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51    /* PCF8563 RTC                  */
 #define CONFIG_RTC_PCF8563             /* use Philips PCF8563 RTC      */
 
 /*
  * Power On Self Test support
  */
-#define CONFIG_POST          ( CFG_POST_CACHE          | \
-                               CFG_POST_MEMORY         | \
-                               CFG_POST_CPU            | \
-                               CFG_POST_UART           | \
-                               CFG_POST_SPR )
+#define CONFIG_POST          ( CONFIG_SYS_POST_CACHE           | \
+                               CONFIG_SYS_POST_MEMORY          | \
+                               CONFIG_SYS_POST_CPU             | \
+                               CONFIG_SYS_POST_UART            | \
+                               CONFIG_SYS_POST_SPR )
 #undef  CONFIG_POST
 
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #if 0
-#define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
+#define        CONFIG_SYS_HUSH_PARSER          1       /* use "hush" command parser    */
 #endif
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_AUTO_COMPLETE   1       /* add autocompletion support   */
 
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       (CFG_FLASH_BASE+0x00700000) /* resetvec fff00100*/
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        (CONFIG_SYS_FLASH_BASE+0x00700000) /* resetvec fff00100*/
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*-----------------------------------------------------------------------
  * Address accessed to reset the board - must not be mapped/assigned
  */
-#define CFG_RESET_ADDRESS       0x90000000
+#define CONFIG_SYS_RESET_ADDRESS       0x90000000
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CFG_FLASH_CFI_AMD_RESET        1               /* AMD RESET for STM 29W320DB!  */
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1               /* AMD RESET for STM 29W320DB!  */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE+CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE+CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector          */
 #define        CONFIG_ENV_SIZE         0x4000  /* Total Size of Environment Sector     */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_FRC | SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_FRC | SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
+#define CONFIG_SYS_PLPRCR      (((MPC8XX_FACT-1) << PLPRCR_MF_SHIFT) | \
                                PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * power management and some other internal clocks
  */
 #define SCCR_MASK      0x00000000
-#define CFG_SCCR        (SCCR_EBDF11)
+#define CONFIG_SYS_SCCR        (SCCR_EBDF11)
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xFF800000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFF800000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (0x00000d24)
+#define CONFIG_SYS_OR_TIMING_FLASH     (0x00000d24)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_BR1_PRELIM  0x00000081  /* Chip select for SDRAM (32 Bit, UPMA) */
-#define CFG_OR1_PRELIM  0xfc000a00
-#define CFG_BR2_PRELIM  0x80000001  /* Chip select for SRAM (32 Bit, GPCM) */
-#define CFG_OR2_PRELIM  0xfff00d24
-#define CFG_BR3_PRELIM  0x80600401  /* Chip select for Display (8 Bit, GPCM) */
-#define CFG_OR3_PRELIM  0xffff8f44
-#define CFG_BR4_PRELIM  0xc05108c1  /* Chip select for Interbus MPM (16 Bit, UPMB) */
-#define CFG_OR4_PRELIM  0xffff0300
-#define CFG_BR5_PRELIM  0xc0500401  /* Chip select for Interbus Status (8 Bit, GPCM) */
-#define CFG_OR5_PRELIM  0xffff8db0
+#define CONFIG_SYS_BR1_PRELIM  0x00000081  /* Chip select for SDRAM (32 Bit, UPMA) */
+#define CONFIG_SYS_OR1_PRELIM  0xfc000a00
+#define CONFIG_SYS_BR2_PRELIM  0x80000001  /* Chip select for SRAM (32 Bit, GPCM) */
+#define CONFIG_SYS_OR2_PRELIM  0xfff00d24
+#define CONFIG_SYS_BR3_PRELIM  0x80600401  /* Chip select for Display (8 Bit, GPCM) */
+#define CONFIG_SYS_OR3_PRELIM  0xffff8f44
+#define CONFIG_SYS_BR4_PRELIM  0xc05108c1  /* Chip select for Interbus MPM (16 Bit, UPMB) */
+#define CONFIG_SYS_OR4_PRELIM  0xffff0300
+#define CONFIG_SYS_BR5_PRELIM  0xc0500401  /* Chip select for Interbus Status (8 Bit, GPCM) */
+#define CONFIG_SYS_OR5_PRELIM  0xffff8db0
 
 /*
  * Memory Periodic Timer Prescaler
  * 100 Mhz => 100.000.000 / Divider = 195
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
-#define        CFG_MAMR_VAL    0x30904114      /* for SDRAM */
-#define        CFG_MBMR_VAL    0xff001111      /* for Interbus-MPM */
+#define        CONFIG_SYS_MAMR_VAL     0x30904114      /* for SDRAM */
+#define        CONFIG_SYS_MBMR_VAL     0xff001111      /* for Interbus-MPM */
 
 /*-----------------------------------------------------------------------
  * I2C stuff
 #undef CONFIG_HARD_I2C                 /* I2C with hardware support    */
 #define        CONFIG_SOFT_I2C         1       /* I2C bit-banged               */
 
-#define CFG_I2C_SPEED          93000   /* 93 kHz is supposed to work   */
-#define CFG_I2C_SLAVE          0xFE
+#define CONFIG_SYS_I2C_SPEED           93000   /* 93 kHz is supposed to work   */
+#define CONFIG_SYS_I2C_SLAVE           0xFE
 
 #ifdef CONFIG_SOFT_I2C
 /*
 /*-----------------------------------------------------------------------
  * I2C EEPROM (24C164)
  */
-#define CFG_I2C_EEPROM_ADDR    0x58    /* EEPROM AT24C164              */
-#define CFG_I2C_EEPROM_ADDR_LEN        1
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* takes up to 10 msec  */
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x58    /* EEPROM AT24C164              */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* takes up to 10 msec  */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
 
 /*
  * Internal Definitions
 #define FEC_ENET
 #define CONFIG_MII
 #define CONFIG_MII_INIT                1
-#define CFG_DISCOVER_PHY       1
+#define CONFIG_SYS_DISCOVER_PHY        1
 
 #endif /* __CONFIG_H */
index e8daae33b90087a4c6fe88965881f6952d86252b..553eb25fbbd82fef9cea76654967fe12859e5c5f 100644 (file)
@@ -33,7 +33,7 @@
 #define CONFIG_MPC5200         1       /* (more precisely an MPC5200 CPU)      */
 #define CONFIG_UC101           1       /* UC101 board                  */
 
-#define CFG_MPC5XXX_CLKIN      33000000 /* ... running at 33.000000MHz         */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000 /* ... running at 33.000000MHz         */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH     */
 #define BOOTFLAG_WARM          0x02    /* Software reboot                      */
@@ -47,7 +47,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1   */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps    */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /* Partitions */
 #define CONFIG_DOS_PARTITION
@@ -84,7 +84,7 @@
 #define        CONFIG_TIMESTAMP        1       /* Print image info with timestamp */
 
 #if (TEXT_BASE == 0xFFF00000) /* Boot low */
-#   define CFG_LOWBOOT         1
+#   define CONFIG_SYS_LOWBOOT          1
 #endif
 
 /*
 /*
  * IPB Bus clocking configuration.
  */
-#define CFG_IPBCLK_EQUALS_XLBCLK               /* define for 133MHz speed */
+#define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                /* define for 133MHz speed */
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
 
-#define CFG_I2C_SPEED          100000 /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           100000 /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x58
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     4
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x58
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /*
  * RTC configuration
  */
 #define CONFIG_RTC_PCF8563
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 /* I2C SYSMON (LM75) */
 #define CONFIG_DTT_LM81                        1       /* ON Semi's LM75               */
 #define CONFIG_DTT_SENSORS             {0}     /* Sensor addresses             */
-#define CFG_DTT_MAX_TEMP               70
-#define CFG_DTT_LOW_TEMP               -30
-#define CFG_DTT_HYSTERESIS             3
+#define CONFIG_SYS_DTT_MAX_TEMP                70
+#define CONFIG_SYS_DTT_LOW_TEMP                -30
+#define CONFIG_SYS_DTT_HYSTERESIS              3
 
 /*
  * Flash configuration
  */
-#define CFG_FLASH_BASE         0xFF800000
+#define CONFIG_SYS_FLASH_BASE          0xFF800000
 
-#define CFG_FLASH_SIZE         0x00800000 /* 8 MByte */
-#define CFG_MAX_FLASH_SECT     140     /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_SIZE          0x00800000 /* 8 MByte */
+#define CONFIG_SYS_MAX_FLASH_SECT      140     /* max num of sects on one chip */
 
 #define CONFIG_ENV_ADDR                (TEXT_BASE+0x40000) /* second sector */
-#define CFG_MAX_FLASH_BANKS    1       /* max num of flash banks
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max num of flash banks
                                           (= chip selects) */
-#define CFG_FLASH_ERASE_TOUT   240000  /* Flash Erase Timeout (in ms)  */
-#define CFG_FLASH_WRITE_TOUT   500     /* Flash Write Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    240000  /* Flash Erase Timeout (in ms)  */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Flash Write Timeout (in ms)  */
 
 #define CONFIG_FLASH_CFI_DRIVER
-#define CFG_FLASH_CFI
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_CFI_AMD_RESET
+#define CONFIG_SYS_FLASH_CFI
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET
 
 /*
  * Environment settings
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_SRAM_BASE          0x80100000      /* CS 1 */
-#define CFG_DISPLAY_BASE       0x80600000      /* CS 3 */
-#define        CFG_IB_MASTER           0xc0510000      /* CS 6 */
-#define CFG_IB_EPLD            0xc0500000      /* CS 7 */
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_SRAM_BASE           0x80100000      /* CS 1 */
+#define CONFIG_SYS_DISPLAY_BASE        0x80600000      /* CS 3 */
+#define        CONFIG_SYS_IB_MASTER            0xc0510000      /* CS 6 */
+#define CONFIG_SYS_IB_EPLD             0xc0500000      /* CS 7 */
 
 /* Settings for XLB = 132 MHz */
 #define SDRAM_DDR       1
 #define SDRAM_TAPDELAY  0x10000000
 
 /* SRAM */
-#define SRAM_BASE              CFG_SRAM_BASE   /* SRAM base address    */
+#define SRAM_BASE              CONFIG_SYS_SRAM_BASE    /* SRAM base address    */
 #define SRAM_LEN               0x1fffff
 #define SRAM_END               (SRAM_BASE + SRAM_LEN)
 
 /* Use ON-Chip SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
 #ifdef CONFIG_POST
 /* preserve space for the post_word at end of on-chip SRAM */
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_POST_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_POST_SIZE
 #else
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE
 #endif
 
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE    TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (192 << 10)     /* Reserve 192 kB for Monitor   */
-#define CFG_MALLOC_LEN         (512 << 10)     /* Reserve 128 kB for malloc()  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (512 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x4d558044
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x4d558044
 
 /*use  Hardware WDT */
 #define CONFIG_HW_WATCHDOG
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory     */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt   */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt   */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size  */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size  */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size  */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
 /* Enable an alternate, more extensive memory test */
-#define CFG_ALT_MEMTEST
+#define CONFIG_SYS_ALT_MEMTEST
 
-#define CFG_MEMTEST_START      0x00300000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 3 ... 15 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x00300000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 3 ... 15 MB in DRAM  */
 
-#define CFG_LOAD_ADDR          0x300000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x300000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs                     */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs                     */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
  * Various low-level settings
  */
 #if defined(CONFIG_MPC5200)
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 #else
-#define CFG_HID0_INIT          0
-#define CFG_HID0_FINAL         0
+#define CONFIG_SYS_HID0_INIT           0
+#define CONFIG_SYS_HID0_FINAL          0
 #endif
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00045D00
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00045D00
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
 /* 8Mbit SRAM @0x80100000 */
-#define CFG_CS1_START          CFG_SRAM_BASE
-#define CFG_CS1_SIZE           0x00200000
-#define CFG_CS1_CFG            0x21D00
+#define CONFIG_SYS_CS1_START           CONFIG_SYS_SRAM_BASE
+#define CONFIG_SYS_CS1_SIZE            0x00200000
+#define CONFIG_SYS_CS1_CFG             0x21D00
 
 /* Display H1, Status Inputs, EPLD @0x80600000 8 Bit */
-#define CFG_CS3_START          CFG_DISPLAY_BASE
-#define CFG_CS3_SIZE           0x00000100
-#define CFG_CS3_CFG            0x00081802
+#define CONFIG_SYS_CS3_START           CONFIG_SYS_DISPLAY_BASE
+#define CONFIG_SYS_CS3_SIZE            0x00000100
+#define CONFIG_SYS_CS3_CFG             0x00081802
 
 /* Interbus Master 16 Bit */
-#define CFG_CS6_START          CFG_IB_MASTER
-#define CFG_CS6_SIZE           0x00010000
-#define CFG_CS6_CFG            0x00FF3500
+#define CONFIG_SYS_CS6_START           CONFIG_SYS_IB_MASTER
+#define CONFIG_SYS_CS6_SIZE            0x00010000
+#define CONFIG_SYS_CS6_CFG             0x00FF3500
 
 /* Interbus EPLD 8 Bit */
-#define CFG_CS7_START          CFG_IB_EPLD
-#define CFG_CS7_SIZE           0x00010000
-#define CFG_CS7_CFG            0x00081800
+#define CONFIG_SYS_CS7_START           CONFIG_SYS_IB_EPLD
+#define CONFIG_SYS_CS7_SIZE            0x00010000
+#define CONFIG_SYS_CS7_CFG             0x00081800
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff Supports IDE harddisk
 #undef CONFIG_IDE_8xx_DIRECT           /* Direct IDE    not supported  */
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      2       /* max. 2 drives per IDE bus    */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       2       /* max. 2 drives per IDE bus    */
 
 #define CONFIG_IDE_PREINIT     1
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (0x0060)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     (0x005C)
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)
 
 /* Interval between registers                                                */
-#define CFG_ATA_STRIDE          4
+#define CONFIG_SYS_ATA_STRIDE          4
 
 #define CONFIG_ATAPI            1
 
 /*---------------------------------------------------------------------*/
 /* Display addresses                                                  */
 /*---------------------------------------------------------------------*/
-#define CFG_DISP_CHR_RAM       (CFG_DISPLAY_BASE + 0x38)
-#define CFG_DISP_CWORD         (CFG_DISPLAY_BASE + 0x30)
+#define CONFIG_SYS_DISP_CHR_RAM        (CONFIG_SYS_DISPLAY_BASE + 0x38)
+#define CONFIG_SYS_DISP_CWORD          (CONFIG_SYS_DISPLAY_BASE + 0x30)
 
 #endif /* __CONFIG_H */
index 4355e1c8124ea02a759748e7d5cc14ebe2692061..6e9c27c1e1b3d43bd1c58b7d2c8dada4f8d48b45 100644 (file)
@@ -55,7 +55,7 @@
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                57600
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 #define CONFIG_BOOTDELAY       2
 #define CONFIG_AUTOBOOT_PROMPT "autoboot in %d seconds\n", bootdelay
@@ -63,7 +63,7 @@
 #define CONFIG_BOOTARGS                "root=/dev/ram console=ttyS0,57600" /* RAMdisk */
 #define CONFIG_ETHADDR         00:AA:00:14:00:05       /* UTX5 */
 #define CONFIG_SERVERIP                10.8.17.105     /* Spree */
-#define CFG_TFTP_LOADADDR      10000
+#define CONFIG_SYS_TFTP_LOADADDR       10000
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "kernel_addr=FFA00000\0" \
@@ -121,16 +121,16 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT     "=> "                   /* Monitor Command Prompt       */
-#define CFG_CBSIZE     256                             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT      "=> "                   /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE      256                             /* Console I/O Buffer Size      */
 
 /* Print Buffer Size */
-#define CFG_PBSIZE     (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_LOAD_ADDR  0x00100000      /* Default load address         */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LOAD_ADDR   0x00100000      /* Default load address         */
 
 
 /*-----------------------------------------------------------------------
@@ -142,7 +142,7 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
 #define CONFIG_PCI_SCAN_SHOW
 #define CONFIG_NET_MULTI
 #define CONFIG_EEPRO100
-#define CFG_RX_ETH_BUFFER      8               /* use 8 rx buffer on eepro100  */
+#define CONFIG_SYS_RX_ETH_BUFFER       8               /* use 8 rx buffer on eepro100  */
 #define CONFIG_EEPRO100_SROM_WRITE
 
 #define PCI_ENET0_IOADDR       0xF0000000
@@ -161,61 +161,61 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE     0x00000000
-#define CFG_MAX_RAM_SIZE    0x10000000 /* 256MB  */
-/*#define CFG_VERY_BIG_RAM     1 */
+#define CONFIG_SYS_SDRAM_BASE      0x00000000
+#define CONFIG_SYS_MAX_RAM_SIZE    0x10000000  /* 256MB  */
+/*#define CONFIG_SYS_VERY_BIG_RAM      1 */
 
 /* FLASH_BASE is FF800000, with 4MB on RCS0, but the reset vector
  * is actually located at FFF00100.  Therefore, U-Boot is
  * physically located at 0xFFB0_0000, but is also mirrored at
  * 0xFFF0_0000.
  */
-#define CFG_RESET_ADDRESS   0xFFF00100
+#define CONFIG_SYS_RESET_ADDRESS   0xFFF00100
 
-#define CFG_EUMB_ADDR      0xFC000000
+#define CONFIG_SYS_EUMB_ADDR       0xFC000000
 
-#define CFG_MONITOR_BASE    TEXT_BASE
+#define CONFIG_SYS_MONITOR_BASE    TEXT_BASE
 
-#define CFG_MONITOR_LEN            (256 << 10) /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN     (128 << 10) /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_LEN     (256 << 10) /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN      (128 << 10) /* Reserve 128 kB for malloc()  */
 
-/*#define CFG_DRAM_TEST                1 */
-#define CFG_MEMTEST_START   0x00003000 /* memtest works on     0...256 MB      */
-#define CFG_MEMTEST_END            0x0ff8ffa7  /* in SDRAM, skips exception */
+/*#define CONFIG_SYS_DRAM_TEST         1 */
+#define CONFIG_SYS_MEMTEST_START   0x00003000  /* memtest works on     0...256 MB      */
+#define CONFIG_SYS_MEMTEST_END     0x0ff8ffa7  /* in SDRAM, skips exception */
                                                                                /* vectors and U-Boot */
 
 
 /*--------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  *------------------------------------------------------------------*/
-#define CFG_INIT_DATA_SIZE    128      /* Size in bytes reserved for */
+#define CONFIG_SYS_INIT_DATA_SIZE    128       /* Size in bytes reserved for */
                                                                        /* initial data */
-#define CFG_INIT_RAM_ADDR     0x40000000
-#define CFG_INIT_RAM_END      0x1000
-#define CFG_INIT_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_INIT_DATA_SIZE)
-#define CFG_GBL_DATA_SIZE      128
-#define CFG_GBL_DATA_OFFSET  (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_RAM_ADDR     0x40000000
+#define CONFIG_SYS_INIT_RAM_END      0x1000
+#define CONFIG_SYS_INIT_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_INIT_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128
+#define CONFIG_SYS_GBL_DATA_OFFSET  (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 
 /*--------------------------------------------------------------------
  * NS16550 Configuration
  *------------------------------------------------------------------*/
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
 
-#define CFG_NS16550_REG_SIZE   1
+#define CONFIG_SYS_NS16550_REG_SIZE    1
 
 #if (CONFIG_CONS_INDEX == 1 || CONFIG_CONS_INDEX == 2)
-#      define CFG_NS16550_CLK          get_bus_freq(0)
+#      define CONFIG_SYS_NS16550_CLK           get_bus_freq(0)
 #else
-#      define CFG_NS16550_CLK 33000000
+#      define CONFIG_SYS_NS16550_CLK 33000000
 #endif
 
-#define CFG_NS16550_COM1       (CFG_EUMB_ADDR + 0x4500)
-#define CFG_NS16550_COM2       (CFG_EUMB_ADDR + 0x4600)
-#define CFG_NS16550_COM3       0xFF000000
-#define CFG_NS16550_COM4       0xFF000008
+#define CONFIG_SYS_NS16550_COM1        (CONFIG_SYS_EUMB_ADDR + 0x4500)
+#define CONFIG_SYS_NS16550_COM2        (CONFIG_SYS_EUMB_ADDR + 0x4600)
+#define CONFIG_SYS_NS16550_COM3        0xFF000000
+#define CONFIG_SYS_NS16550_COM4        0xFF000008
 
 /*--------------------------------------------------------------------
  * Low Level Configuration Settings
@@ -225,10 +225,10 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
  *------------------------------------------------------------------*/
 
 #define CONFIG_SYS_CLK_FREQ  33000000
-#define CFG_HZ                         1000
+#define CONFIG_SYS_HZ                          1000
 
-/*#define CFG_ETH_DEV_FN            0x7800 */
-/*#define CFG_ETH_IOBASE            0x00104000 */
+/*#define CONFIG_SYS_ETH_DEV_FN             0x7800 */
+/*#define CONFIG_SYS_ETH_IOBASE             0x00104000 */
 
 /*--------------------------------------------------------------------
  * I2C Configuration
@@ -236,13 +236,13 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
 #if 1
 #define CONFIG_HARD_I2C                1               /* To enable I2C support        */
 #undef  CONFIG_SOFT_I2C                                /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 #endif
 
 #define CONFIG_RTC_PCF8563     1               /* enable I2C support for */
                                                                        /* Philips PCF8563 RTC */
-#define CFG_I2C_RTC_ADDR       0x51    /* Philips PCF8563 RTC address */
+#define CONFIG_SYS_I2C_RTC_ADDR        0x51    /* Philips PCF8563 RTC address */
 
 /*--------------------------------------------------------------------
  *     Memory Control Configuration Register values
@@ -250,59 +250,59 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
  *------------------------------------------------------------------*/
 
 /**** MCCR1 ****/
-#define CFG_ROMNAL         0
-#define CFG_ROMFAL         10          /* (tacc=70ns)*mem_freq - 2,
+#define CONFIG_SYS_ROMNAL          0
+#define CONFIG_SYS_ROMFAL          10          /* (tacc=70ns)*mem_freq - 2,
                                                                        mem_freq = 100MHz */
 
-#define CFG_BANK7_ROW  0               /* SDRAM bank 7-0 row address */
-#define CFG_BANK6_ROW  0               /*      bit count */
-#define CFG_BANK5_ROW  0
-#define CFG_BANK4_ROW  0
-#define CFG_BANK3_ROW  0
-#define CFG_BANK2_ROW  0
-#define CFG_BANK1_ROW  2
-#define CFG_BANK0_ROW  2
+#define CONFIG_SYS_BANK7_ROW   0               /* SDRAM bank 7-0 row address */
+#define CONFIG_SYS_BANK6_ROW   0               /*      bit count */
+#define CONFIG_SYS_BANK5_ROW   0
+#define CONFIG_SYS_BANK4_ROW   0
+#define CONFIG_SYS_BANK3_ROW   0
+#define CONFIG_SYS_BANK2_ROW   0
+#define CONFIG_SYS_BANK1_ROW   2
+#define CONFIG_SYS_BANK0_ROW   2
 
 /**** MCCR2, refresh interval clock cycles ****/
-#define CFG_REFINT         480     /* 33 MHz SDRAM clock was 480 */
+#define CONFIG_SYS_REFINT          480     /* 33 MHz SDRAM clock was 480 */
 
 /* Burst To Precharge. Bits of this value go to MCCR3 and MCCR4. */
-#define CFG_BSTOPRE        1023        /* burst to precharge[0..9], */
+#define CONFIG_SYS_BSTOPRE         1023        /* burst to precharge[0..9], */
                                                                /* sets open page interval */
 
 /**** MCCR3 ****/
-#define CFG_REFREC         7       /* Refresh to activate interval, trc */
+#define CONFIG_SYS_REFREC          7       /* Refresh to activate interval, trc */
 
 /**** MCCR4 ****/
-#define CFG_PRETOACT       2       /* trp */
-#define CFG_ACTTOPRE       7       /* trcd + (burst length - 1) + trdl */
-#define CFG_SDMODE_CAS_LAT  3      /* SDMODE CAS latancy */
-#define CFG_SDMODE_WRAP            0       /* SDMODE wrap type, sequential */
-#define CFG_ACTORW             2               /* trcd min */
-#define CFG_DBUS_SIZE2         1               /* set for 8-bit RCS1, clear for 32,64 */
-#define CFG_REGISTERD_TYPE_BUFFER 1
-#define CFG_EXTROM         0                   /* we don't need extended ROM space */
-#define CFG_REGDIMM        0
+#define CONFIG_SYS_PRETOACT        2       /* trp */
+#define CONFIG_SYS_ACTTOPRE        7       /* trcd + (burst length - 1) + trdl */
+#define CONFIG_SYS_SDMODE_CAS_LAT  3       /* SDMODE CAS latancy */
+#define CONFIG_SYS_SDMODE_WRAP     0       /* SDMODE wrap type, sequential */
+#define CONFIG_SYS_ACTORW              2               /* trcd min */
+#define CONFIG_SYS_DBUS_SIZE2          1               /* set for 8-bit RCS1, clear for 32,64 */
+#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
+#define CONFIG_SYS_EXTROM          0                   /* we don't need extended ROM space */
+#define CONFIG_SYS_REGDIMM         0
 
 /* calculate according to formula in sec. 6-22 of 8245 UM */
-#define CFG_PGMAX           50         /* how long the 8245 retains the */
+#define CONFIG_SYS_PGMAX           50          /* how long the 8245 retains the */
                                                                        /* currently accessed page in memory */
                                                                        /* was 45 */
 
-#define CFG_SDRAM_DSCD 0x20    /* SDRAM data in sample clock delay - note */
+#define CONFIG_SYS_SDRAM_DSCD  0x20    /* SDRAM data in sample clock delay - note */
                                                                /* bits 7,6, and 3-0 MUST be 0 */
 
 #if 0
-#define CFG_DLL_MAX_DELAY      0x04
+#define CONFIG_SYS_DLL_MAX_DELAY       0x04
 #else
-#define CFG_DLL_MAX_DELAY      0
+#define CONFIG_SYS_DLL_MAX_DELAY       0
 #endif
 #if 0                                                  /* need for 33MHz SDRAM */
-#define CFG_DLL_EXTEND 0x80
+#define CONFIG_SYS_DLL_EXTEND  0x80
 #else
-#define CFG_DLL_EXTEND 0
+#define CONFIG_SYS_DLL_EXTEND  0
 #endif
-#define CFG_PCI_HOLD_DEL 0x20
+#define CONFIG_SYS_PCI_HOLD_DEL 0x20
 
 
 /* Memory bank settings.
@@ -312,94 +312,94 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
  * address. Refer to the MPC8245 user manual.
  */
 
-#define CFG_BANK0_START            0x00000000
-#define CFG_BANK0_END      (CFG_MAX_RAM_SIZE/2 - 1)
-#define CFG_BANK0_ENABLE    1
-#define CFG_BANK1_START            CFG_MAX_RAM_SIZE/2
-#define CFG_BANK1_END      (CFG_MAX_RAM_SIZE - 1)
-#define CFG_BANK1_ENABLE    1
-#define CFG_BANK2_START            0x3ff00000          /* not available in this design */
-#define CFG_BANK2_END      0x3fffffff
-#define CFG_BANK2_ENABLE    0
-#define CFG_BANK3_START            0x3ff00000
-#define CFG_BANK3_END      0x3fffffff
-#define CFG_BANK3_ENABLE    0
-#define CFG_BANK4_START            0x3ff00000
-#define CFG_BANK4_END      0x3fffffff
-#define CFG_BANK4_ENABLE    0
-#define CFG_BANK5_START            0x3ff00000
-#define CFG_BANK5_END      0x3fffffff
-#define CFG_BANK5_ENABLE    0
-#define CFG_BANK6_START            0x3ff00000
-#define CFG_BANK6_END      0x3fffffff
-#define CFG_BANK6_ENABLE    0
-#define CFG_BANK7_START            0x3ff00000
-#define CFG_BANK7_END      0x3fffffff
-#define CFG_BANK7_ENABLE    0
+#define CONFIG_SYS_BANK0_START     0x00000000
+#define CONFIG_SYS_BANK0_END       (CONFIG_SYS_MAX_RAM_SIZE/2 - 1)
+#define CONFIG_SYS_BANK0_ENABLE    1
+#define CONFIG_SYS_BANK1_START     CONFIG_SYS_MAX_RAM_SIZE/2
+#define CONFIG_SYS_BANK1_END       (CONFIG_SYS_MAX_RAM_SIZE - 1)
+#define CONFIG_SYS_BANK1_ENABLE    1
+#define CONFIG_SYS_BANK2_START     0x3ff00000          /* not available in this design */
+#define CONFIG_SYS_BANK2_END       0x3fffffff
+#define CONFIG_SYS_BANK2_ENABLE    0
+#define CONFIG_SYS_BANK3_START     0x3ff00000
+#define CONFIG_SYS_BANK3_END       0x3fffffff
+#define CONFIG_SYS_BANK3_ENABLE    0
+#define CONFIG_SYS_BANK4_START     0x3ff00000
+#define CONFIG_SYS_BANK4_END       0x3fffffff
+#define CONFIG_SYS_BANK4_ENABLE    0
+#define CONFIG_SYS_BANK5_START     0x3ff00000
+#define CONFIG_SYS_BANK5_END       0x3fffffff
+#define CONFIG_SYS_BANK5_ENABLE    0
+#define CONFIG_SYS_BANK6_START     0x3ff00000
+#define CONFIG_SYS_BANK6_END       0x3fffffff
+#define CONFIG_SYS_BANK6_ENABLE    0
+#define CONFIG_SYS_BANK7_START     0x3ff00000
+#define CONFIG_SYS_BANK7_END       0x3fffffff
+#define CONFIG_SYS_BANK7_ENABLE    0
 
 /*--------------------------------------------------------------------*/
 /* 4.4 - Output Driver Control Register */
 /*--------------------------------------------------------------------*/
-#define CFG_ODCR           0xe5
+#define CONFIG_SYS_ODCR            0xe5
 
 /*--------------------------------------------------------------------*/
 /* 4.8 - Error Handling Registers */
-/*-------------------------------CFG_SDMODE_BURSTLEN-------------------------------------*/
-#define CFG_ERRENR1    0x11    /* enable SDRAM refresh overflow error */
+/*-------------------------------CONFIG_SYS_SDMODE_BURSTLEN-------------------------------------*/
+#define CONFIG_SYS_ERRENR1     0x11    /* enable SDRAM refresh overflow error */
 
 /* SDRAM 0-256 MB */
-#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
-/*#define CFG_IBAT0L  (CFG_SDRAM_BASE | BATL_PP_10 | BATL_CACHEINHIBIT) */
-#define CFG_IBAT0U  (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
+/*#define CONFIG_SYS_IBAT0L  (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_CACHEINHIBIT) */
+#define CONFIG_SYS_IBAT0U  (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* stack in dcache */
-#define CFG_IBAT1L  (CFG_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT1U  (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT1L  (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT1U  (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
 
 
-#define CFG_IBAT2L  (CFG_SDRAM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
-#define CFG_IBAT2U  (CFG_SDRAM_BASE + 0x10000000| BATU_BL_256M | BATU_VS | BATU_VP)
+#define CONFIG_SYS_IBAT2L  (CONFIG_SYS_SDRAM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
+#define CONFIG_SYS_IBAT2U  (CONFIG_SYS_SDRAM_BASE + 0x10000000| BATU_BL_256M | BATU_VS | BATU_VP)
 
 /* PCI memory */
-/*#define CFG_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT) */
-/*#define CFG_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP) */
+/*#define CONFIG_SYS_IBAT2L  (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT) */
+/*#define CONFIG_SYS_IBAT2U  (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP) */
 
 /*Flash, config addrs, etc. */
-#define CFG_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
-#define CFG_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
-
-#define CFG_DBAT0L  CFG_IBAT0L
-#define CFG_DBAT0U  CFG_IBAT0U
-#define CFG_DBAT1L  CFG_IBAT1L
-#define CFG_DBAT1U  CFG_IBAT1U
-#define CFG_DBAT2L  CFG_IBAT2L
-#define CFG_DBAT2U  CFG_IBAT2U
-#define CFG_DBAT3L  CFG_IBAT3L
-#define CFG_DBAT3U  CFG_IBAT3U
+#define CONFIG_SYS_IBAT3L  (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
+#define CONFIG_SYS_IBAT3U  (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
+
+#define CONFIG_SYS_DBAT0L  CONFIG_SYS_IBAT0L
+#define CONFIG_SYS_DBAT0U  CONFIG_SYS_IBAT0U
+#define CONFIG_SYS_DBAT1L  CONFIG_SYS_IBAT1L
+#define CONFIG_SYS_DBAT1U  CONFIG_SYS_IBAT1U
+#define CONFIG_SYS_DBAT2L  CONFIG_SYS_IBAT2L
+#define CONFIG_SYS_DBAT2U  CONFIG_SYS_IBAT2U
+#define CONFIG_SYS_DBAT3L  CONFIG_SYS_IBAT3L
+#define CONFIG_SYS_DBAT3U  CONFIG_SYS_IBAT3U
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ      (8 << 20)   /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ       (8 << 20)   /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE     0xFF800000
-#define CFG_MAX_FLASH_BANKS    1                       /* Max number of flash banks */
+#define CONFIG_SYS_FLASH_BASE      0xFF800000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1                       /* Max number of flash banks */
 
 /*     NOTE: environment is not EMBEDDED in the u-boot code.
        It's stored in flash in its own separate sector.  */
 #define CONFIG_ENV_IS_IN_FLASH     1
 
 #if 1  /* AMD AM29LV033C */
-#define CFG_MAX_FLASH_SECT     64              /* Max number of sectors in one bank */
+#define CONFIG_SYS_MAX_FLASH_SECT      64              /* Max number of sectors in one bank */
 #define CONFIG_ENV_ADDR                0xFFBF0000      /* flash sector SA63 */
 #define CONFIG_ENV_SECT_SIZE   (64*1024)       /* Size of the Environment Sector */
 #else  /* AMD AM29LV116D */
-#define CFG_MAX_FLASH_SECT     35      /* Max number of sectors in one bank */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* Max number of sectors in one bank */
 #define CONFIG_ENV_ADDR                0xFF9FA000      /* flash sector SA33 */
 #define CONFIG_ENV_SECT_SIZE   (8*1024)        /* Size of the Environment Sector */
 #endif /* #if */
@@ -407,22 +407,22 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"
 #define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE            /* Size of the Environment */
 #define CONFIG_ENV_OFFSET              0                       /* starting right at the beginning */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500             /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500             /* Timeout for Flash Write (in ms)      */
 
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE
-#undef CFG_RAMBOOT
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
+#undef CONFIG_SYS_RAMBOOT
 #else
-#define CFG_RAMBOOT
+#define CONFIG_SYS_RAMBOOT
 #endif
 
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     32
+#define CONFIG_SYS_CACHELINE_SIZE      32
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value        */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value        */
 #endif
 
 /*
index 7504fa39b29b407ceda0ff2b0e81b81200420298..a6b0f0daf06ba27c202ac89611822bd3a8299b2a 100644 (file)
@@ -45,7 +45,7 @@
  *-----------------------------------------------------------------------------
  */
 #define CONFIG_I2C              1
-#define CFG_I2C_SLAVE           0x2
+#define CONFIG_SYS_I2C_SLAVE           0x2
 
 #define        CONFIG_8xx_CONS_SMC1    1
 #undef CONFIG_8xx_CONS_SMC2            /* Console is on SMC2           */
@@ -70,7 +70,7 @@
        "bootm"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT      "=> "           /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT       "=> "           /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE      1024            /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       1024            /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE      256             /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE       256             /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS     16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS      16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ          1000            /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ           1000            /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xF0000000
+#define CONFIG_SYS_IMMR                0xF0000000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE0                0x40000000
-#define CFG_FLASH_BASE1                0x60000000
-#define CFG_FLASH_BASE         CFG_FLASH_BASE1
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE0         0x40000000
+#define CONFIG_SYS_FLASH_BASE1         0x60000000
+#define CONFIG_SYS_FLASH_BASE          CONFIG_SYS_FLASH_BASE1
 
 #if defined(DEBUG)
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
 #else
-#define        CFG_MONITOR_LEN         (192 << 10)     /* Reserve 192 kB for Monitor   */
+#define        CONFIG_SYS_MONITOR_LEN          (192 << 10)     /* Reserve 192 kB for Monitor   */
 #endif
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE0
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE0
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     35      /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      35      /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
 #define        CONFIG_ENV_IS_IN_NVRAM  1
 #define        CONFIG_ENV_ADDR         0x80000000/* Address of Environment */
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      0xFFFFFF88
+#define CONFIG_SYS_SYPCR       0xFFFFFF88
 #endif
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_FRC | SIUMCR_GB5E)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_FRC | SIUMCR_GB5E)
 
 /*-----------------------------------------------------------------------
  * TBSCR - Time Base Status and Control                                11-26
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBE)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-/*%%%#define CFG_RTCSC (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_RTE)
+/*%%%#define CONFIG_SYS_RTCSC  (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE) */
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF)
 /*
-#define CFG_PISCR (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF)
 */
 
 /*-----------------------------------------------------------------------
  * If this is a 80 MHz CPU, set PLL multiplication factor to 5 (5*16=80)!
  */
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_PLPRCR     ( (1524 << PLPRCR_MF_SHIFT) | PLPRCR_SPLSS | PLPRCR_TMIST | PLPRCR_TEXPS )
+#define CONFIG_SYS_PLPRCR      ( (1524 << PLPRCR_MF_SHIFT) | PLPRCR_SPLSS | PLPRCR_TMIST | PLPRCR_TEXPS )
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  */
 #define SCCR_MASK      SCCR_EBDF11
 /* up to 50 MHz we use a 1:1 clock */
-#define CFG_SCCR       (SCCR_COM00 | SCCR_TBS)
+#define CONFIG_SYS_SCCR        (SCCR_COM00 | SCCR_TBS)
 
 /*-----------------------------------------------------------------------
  * PCMCIA stuff
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
 #define FLASH_BASE0_PRELIM     0x40000000      /* FLASH bank #0        */
 #define FLASH_BASE1_PRELIM     0x60000000      /* FLASH bank #1        */
 
-#define CFG_PRELIM_OR_AM       0xFE000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xFE000000      /* OR addr mask */
 
-#define CFG_OR_TIMING_FLASH    0xF56
+#define CONFIG_SYS_OR_TIMING_FLASH     0xF56
 
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_PS_16 | BR_V)
 
-#define CFG_OR5_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR5_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V)
+#define CONFIG_SYS_OR5_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR5_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_PS_32 | BR_V)
 
 /*
  * BR1 and OR1 (Battery backed SRAM)
  */
-#define        CFG_BR1_PRELIM  0x80000401
-#define CFG_OR1_PRELIM 0xFFC00736
+#define        CONFIG_SYS_BR1_PRELIM   0x80000401
+#define CONFIG_SYS_OR1_PRELIM  0xFFC00736
 
 /*
  * BR2 and OR2 (SDRAM)
 #define SDRAM_BASE_PRELIM      0x00000000      /* SDRAM base   */
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB */
 
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 /* Marel V37 mem setting */
 
-#define        CFG_BR3_CAN     0xC0000401
-#define CFG_OR3_CAN    0xFFFF0724
+#define        CONFIG_SYS_BR3_CAN      0xC0000401
+#define CONFIG_SYS_OR3_CAN     0xFFFF0724
 
 /*
-#define        CFG_BR3_PRELIM  0xFA400001
-#define CFG_OR3_PRELIM 0xFFFF8910
-#define        CFG_BR4_PRELIM  0xFA000401
-#define CFG_OR4_PRELIM 0xFFFE0970
+#define        CONFIG_SYS_BR3_PRELIM   0xFA400001
+#define CONFIG_SYS_OR3_PRELIM  0xFFFF8910
+#define        CONFIG_SYS_BR4_PRELIM   0xFA000401
+#define CONFIG_SYS_OR4_PRELIM  0xFFFE0970
 */
 
 /*
  */
 
 /* periodic timer for refresh */
-#define CFG_MAMR_PTA   97              /* start with divider for 100 MHz       */
+#define CONFIG_SYS_MAMR_PTA    97              /* start with divider for 100 MHz       */
 
 /*
  * Refresh clock Prescalar
  */
-#define CFG_MPTPR      MPTPR_PTP_DIV16
+#define CONFIG_SYS_MPTPR       MPTPR_PTP_DIV16
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 10 column SDRAM */
-#define CFG_MAMR_10COL ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_10COL  ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_2 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A12 |   \
                         MAMR_GPL_A4DIS | MAMR_RLFA_4X | MAMR_WLFA_3X | MAMR_TLFA_16X)
 
index 0f8d5a91574036a689c18f296533732d646be637..0156ce1c18c0af6bc5be8ebf9a46c1185eaa4c1d 100644 (file)
@@ -29,7 +29,7 @@
 #define CONFIG_MPC5xxx                 1       /* This is an MPC5xxx CPU */
 #define CONFIG_MPC5200                 1       /* This is an MPC5200 CPU */
 #define CONFIG_V38B                    1       /* ...on V38B board */
-#define CFG_MPC5XXX_CLKIN      33000000        /* ...running at 33.000000MHz */
+#define CONFIG_SYS_MPC5XXX_CLKIN       33000000        /* ...running at 33.000000MHz */
 
 #define CONFIG_RTC_PCF8563             1       /* has PCF8563 RTC */
 #define CONFIG_MPC5200_DDR             1       /* has DDR SDRAM */
@@ -41,7 +41,7 @@
 #define CONFIG_BOARD_EARLY_INIT_R      1       /* do board-specific init */
 #define CONFIG_BOARD_EARLY_INIT_F      1       /* do board-specific init */
 
-#define CFG_XLB_PIPELINING             1       /* gives better performance */
+#define CONFIG_SYS_XLB_PIPELINING              1       /* gives better performance */
 
 #define BOOTFLAG_COLD          0x01    /* Normal Power-On: Boot from FLASH  */
 #define BOOTFLAG_WARM          0x02    /* Software reboot */
@@ -53,7 +53,7 @@
  */
 #define CONFIG_PSC_CONSOLE     1       /* console is on PSC1 */
 #define CONFIG_BAUDRATE                115200  /* ... at 115200 bps */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200, 230400 }
 
 /*
  * DDR
 /*
  * Boot low with 16 MB Flash
  */
-#define CFG_LOWBOOT            1
-#define CFG_LOWBOOT16          1
+#define CONFIG_SYS_LOWBOOT             1
+#define CONFIG_SYS_LOWBOOT16           1
 
 /*
  * Autobooting
 /*
  * IPB Bus clocking configuration.
  */
-#undef CFG_IPBCLK_EQUALS_XLBCLK                        /* define for 133MHz speed */
+#undef CONFIG_SYS_IPBCLK_EQUALS_XLBCLK                 /* define for 133MHz speed */
 #endif
 
 /*
  * I2C configuration
  */
 #define CONFIG_HARD_I2C                1       /* I2C with hardware support */
-#define CFG_I2C_MODULE         2       /* Select I2C module #1 or #2 */
-#define CFG_I2C_SPEED          100000  /* 100 kHz */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_MODULE          2       /* Select I2C module #1 or #2 */
+#define CONFIG_SYS_I2C_SPEED           100000  /* 100 kHz */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /*
  * EEPROM configuration
  */
-#define CFG_I2C_EEPROM_ADDR            0x50    /* 1010000x */
-#define CFG_I2C_EEPROM_ADDR_LEN                1
-#define CFG_EEPROM_PAGE_WRITE_BITS     3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x50    /* 1010000x */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  70
 
 /*
  * RTC configuration
  */
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
 /*
  * Flash configuration - use CFI driver
  */
-#define CFG_FLASH_CFI          1               /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1               /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1               /* Use the common driver */
-#define CFG_FLASH_CFI_AMD_RESET        1
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_MAX_FLASH_BANKS    1               /* max num of flash banks */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
-#define CFG_FLASH_SIZE         0x01000000      /* 16 MiB */
-#define CFG_MAX_FLASH_SECT     256             /* max num of sects on one chip */
-#define CFG_FLASH_USE_BUFFER_WRITE     1       /* flash write speed-up */
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max num of flash banks */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
+#define CONFIG_SYS_FLASH_SIZE          0x01000000      /* 16 MiB */
+#define CONFIG_SYS_MAX_FLASH_SECT      256             /* max num of sects on one chip */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1       /* flash write speed-up */
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_FLASH 1
-#define CONFIG_ENV_ADDR                (CFG_FLASH_BASE + 0x00040000)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_FLASH_BASE + 0x00040000)
 #define CONFIG_ENV_SIZE                0x10000
 #define CONFIG_ENV_SECT_SIZE   0x10000
 #define CONFIG_ENV_OVERWRITE   1
 /*
  * Memory map
  */
-#define CFG_MBAR               0xF0000000
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_DEFAULT_MBAR       0x80000000
+#define CONFIG_SYS_MBAR                0xF0000000
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_DEFAULT_MBAR        0x80000000
 
 /* Use SRAM until RAM will be available */
-#define CFG_INIT_RAM_ADDR      MPC5XXX_SRAM
-#define CFG_INIT_RAM_END       MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
+#define CONFIG_SYS_INIT_RAM_ADDR       MPC5XXX_SRAM
+#define CONFIG_SYS_INIT_RAM_END        MPC5XXX_SRAM_SIZE       /* End of used area in DPRAM */
 
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
-#define CFG_MONITOR_BASE       TEXT_BASE
-#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
-#   define CFG_RAMBOOT         1
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
+#   define CONFIG_SYS_RAMBOOT          1
 #endif
 
-#define CFG_MONITOR_LEN                (256 << 10)     /* Reserve 256kB for Monitor */
-#define CFG_MALLOC_LEN         (128 << 10)     /* Reserve 128kB for malloc() */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Linux initial memory map */
+#define CONFIG_SYS_MONITOR_LEN         (256 << 10)     /* Reserve 256kB for Monitor */
+#define CONFIG_SYS_MALLOC_LEN          (128 << 10)     /* Reserve 128kB for malloc() */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Linux initial memory map */
 
 /*
  * Ethernet configuration
 /*
  * GPIO configuration
  */
-#define CFG_GPS_PORT_CONFIG    0x90001404
+#define CONFIG_SYS_GPS_PORT_CONFIG     0x90001404
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                   /* undef to save memory */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size */
 #endif
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)  /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)     /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
 
-#define CFG_MEMTEST_START      0x00100000      /* memtest works on */
-#define CFG_MEMTEST_END                0x00f00000      /* 1 ... 15 MB in DRAM */
+#define CONFIG_SYS_MEMTEST_START       0x00100000      /* memtest works on */
+#define CONFIG_SYS_MEMTEST_END         0x00f00000      /* 1 ... 15 MB in DRAM */
 
-#define CFG_LOAD_ADDR          0x100000        /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0x100000        /* default load address */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_CACHELINE_SIZE     32      /* For MPC5xxx CPUs */
+#define CONFIG_SYS_CACHELINE_SIZE      32      /* For MPC5xxx CPUs */
 #if defined(CONFIG_CMD_KGDB)
-#  define CFG_CACHELINE_SHIFT  5       /* log base 2 of the above value */
+#  define CONFIG_SYS_CACHELINE_SHIFT   5       /* log base 2 of the above value */
 #endif
 
 /*
  * Various low-level settings
  */
-#define CFG_HID0_INIT          HID0_ICE | HID0_ICFI
-#define CFG_HID0_FINAL         HID0_ICE
+#define CONFIG_SYS_HID0_INIT           HID0_ICE | HID0_ICFI
+#define CONFIG_SYS_HID0_FINAL          HID0_ICE
 
-#define CFG_BOOTCS_START       CFG_FLASH_BASE
-#define CFG_BOOTCS_SIZE                CFG_FLASH_SIZE
-#define CFG_BOOTCS_CFG         0x00047801
-#define CFG_CS0_START          CFG_FLASH_BASE
-#define CFG_CS0_SIZE           CFG_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_START        CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_BOOTCS_SIZE         CONFIG_SYS_FLASH_SIZE
+#define CONFIG_SYS_BOOTCS_CFG          0x00047801
+#define CONFIG_SYS_CS0_START           CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CS0_SIZE            CONFIG_SYS_FLASH_SIZE
 
-#define CFG_CS_BURST           0x00000000
-#define CFG_CS_DEADCYCLE       0x33333333
+#define CONFIG_SYS_CS_BURST            0x00000000
+#define CONFIG_SYS_CS_DEADCYCLE        0x33333333
 
-#define CFG_RESET_ADDRESS      0xff000000
+#define CONFIG_SYS_RESET_ADDRESS       0xff000000
 
 /*
  * IDE/ATA (supports IDE harddisk)
 #define CONFIG_IDE_RESET               /* reset for ide supported */
 #define CONFIG_IDE_PREINIT
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      MPC5XXX_ATA
+#define CONFIG_SYS_ATA_BASE_ADDR       MPC5XXX_ATA
 
-#define CFG_ATA_DATA_OFFSET    (0x0060)        /* data I/O offset */
+#define CONFIG_SYS_ATA_DATA_OFFSET     (0x0060)        /* data I/O offset */
 
-#define CFG_ATA_REG_OFFSET     (CFG_ATA_DATA_OFFSET)   /* normal register accesses offset */
+#define CONFIG_SYS_ATA_REG_OFFSET      (CONFIG_SYS_ATA_DATA_OFFSET)    /* normal register accesses offset */
 
-#define CFG_ATA_ALT_OFFSET     (0x005C)        /* alternate registers offset */
+#define CONFIG_SYS_ATA_ALT_OFFSET      (0x005C)        /* alternate registers offset */
 
-#define CFG_ATA_STRIDE         4               /* Interval between registers */
+#define CONFIG_SYS_ATA_STRIDE          4               /* Interval between registers */
 
 /*
  * Status LED
 #define  CONFIG_STATUS_LED             /* Status LED enabled */
 #define  CONFIG_BOARD_SPECIFIC_LED     /* version has board specific leds */
 
-#define CFG_LED_BASE   MPC5XXX_GPT7_ENABLE     /* Timer 7 GPIO */
+#define CONFIG_SYS_LED_BASE    MPC5XXX_GPT7_ENABLE     /* Timer 7 GPIO */
 #ifndef __ASSEMBLY__
 typedef unsigned int led_id_t;
 
 #define __led_toggle(_msk) \
        do { \
-               *((volatile long *) (CFG_LED_BASE)) ^= (_msk); \
+               *((volatile long *) (CONFIG_SYS_LED_BASE)) ^= (_msk); \
        } while(0)
 
 #define __led_set(_msk, _st) \
        do { \
                if ((_st)) \
-                       *((volatile long *) (CFG_LED_BASE)) &= ~(_msk); \
+                       *((volatile long *) (CONFIG_SYS_LED_BASE)) &= ~(_msk); \
                else \
-                       *((volatile long *) (CFG_LED_BASE)) |= (_msk); \
+                       *((volatile long *) (CONFIG_SYS_LED_BASE)) |= (_msk); \
        } while(0)
 
 #define __led_init(_msk, st) \
        do { \
-               *((volatile long *) (CFG_LED_BASE)) |= 0x34; \
+               *((volatile long *) (CONFIG_SYS_LED_BASE)) |= 0x34; \
        } while(0)
 #endif /* __ASSEMBLY__ */
 
index 1636d420d917957d673faff84a71df16ba16733d..d300c4b30d8a8fcaca5fa4140af474af71f98fee 100644 (file)
@@ -24,7 +24,7 @@
 #include "../board/avnet/v5fx30teval/xparameters.h"
 
 /*Mem Map*/
-#define CFG_SDRAM_SIZE_MB      64
+#define CONFIG_SYS_SDRAM_SIZE_MB       64
 
 /*Env*/
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (XPAR_FLASH_MEM0_BASEADDR+CONFIG_ENV_OFFSET)
 
 /*Misc*/
-#define CFG_PROMPT             "v5fx30t:/# "   /* Monitor Command Prompt    */
+#define CONFIG_SYS_PROMPT              "v5fx30t:/# "   /* Monitor Command Prompt    */
 #define CONFIG_PREBOOT         "echo U-Boot is up and runnining;"
 
 /*Flash*/
-#define        CFG_FLASH_SIZE          (16*1024*1024)
-#define        CFG_MAX_FLASH_SECT      131
+#define        CONFIG_SYS_FLASH_SIZE           (16*1024*1024)
+#define        CONFIG_SYS_MAX_FLASH_SECT       131
 #define MTDIDS_DEFAULT         "nor0=v5fx30t-flash"
 #define MTDPARTS_DEFAULT       "mtdparts=v5fx30t-flash:-(user)"
 
index 6034cb7c695768488db7bcc3d1672fe48b5d0601..d8124216540ca4d9fd629c7535afa7b3da526031 100644 (file)
 #define CONFIG_ARCH_VERSATILE   1      /* Specifically, a Versatile    */
 
 
-#define CFG_MEMTEST_START       0x100000
-#define CFG_MEMTEST_END         0x10000000
-#define CFG_HZ                  (1000000 / 256)
-#define CFG_TIMERBASE           0x101E2000     /* Timer 0 and 1 base */
+#define CONFIG_SYS_MEMTEST_START       0x100000
+#define CONFIG_SYS_MEMTEST_END         0x10000000
+#define CONFIG_SYS_HZ                  (1000000 / 256)
+#define CONFIG_SYS_TIMERBASE           0x101E2000      /* Timer 0 and 1 base */
 
-#define CFG_TIMER_INTERVAL     10000
-#define CFG_TIMER_RELOAD       (CFG_TIMER_INTERVAL >> 4)       /* Divide by 16 */
-#define CFG_TIMER_CTRL          0x84                           /* Enable, Clock / 16 */
+#define CONFIG_SYS_TIMER_INTERVAL      10000
+#define CONFIG_SYS_TIMER_RELOAD        (CONFIG_SYS_TIMER_INTERVAL >> 4)        /* Divide by 16 */
+#define CONFIG_SYS_TIMER_CTRL          0x84                            /* Enable, Clock / 16 */
 
 /*
  * control registers
@@ -71,8 +71,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN  (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
  */
 #define CONFIG_PL011_SERIAL
 #define CONFIG_PL011_CLOCK     24000000
-#define CONFIG_PL01x_PORTS     { (void *)CFG_SERIAL0, (void *)CFG_SERIAL1 }
+#define CONFIG_PL01x_PORTS     { (void *)CONFIG_SYS_SERIAL0, (void *)CONFIG_SYS_SERIAL1 }
 #define CONFIG_CONS_INDEX      0
 
 #define CONFIG_BAUDRATE         38400
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
-#define CFG_SERIAL0            0x101F1000
-#define CFG_SERIAL1            0x101F2000
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_SERIAL0             0x101F1000
+#define CONFIG_SYS_SERIAL1             0x101F2000
 
 
 /*
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP   /* undef to save memory     */
-#define CFG_PROMPT     "Versatile # "  /* Monitor Command Prompt   */
-#define CFG_CBSIZE     256             /* Console I/O Buffer Size  */
+#define CONFIG_SYS_LONGHELP    /* undef to save memory     */
+#define CONFIG_SYS_PROMPT      "Versatile # "  /* Monitor Command Prompt   */
+#define CONFIG_SYS_CBSIZE      256             /* Console I/O Buffer Size  */
 /* Print Buffer Size */
-#define CFG_PBSIZE     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)
-#define CFG_MAXARGS    16              /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
+#define CONFIG_SYS_MAXARGS     16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
-#define CFG_LOAD_ADDR  0x7fc0  /* default load address */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
+#define CONFIG_SYS_LOAD_ADDR   0x7fc0  /* default load address */
 
 /*-----------------------------------------------------------------------
  * Stack sizes
 #define PHYS_SDRAM_1            0x00000000     /* SDRAM Bank #1 */
 #define PHYS_SDRAM_1_SIZE       0x08000000     /* 128 MB */
 
-#define CFG_FLASH_BASE          0x34000000
+#define CONFIG_SYS_FLASH_BASE          0x34000000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
 #define VERSATILE_FLASHCTRL                  (VERSATILE_SYS_BASE + VERSATILE_SYS_FLASH_OFFSET)
 #define VERSATILE_FLASHPROG_FLVPPEN          (1 << 0)  /* Enable writing to flash */
 
-#define CFG_MAX_FLASH_BANKS    1               /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1               /* max number of memory banks */
 #define PHYS_FLASH_SIZE         0x34000000     /* 64MB */
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ)     /* Timeout for Flash Write */
-#define CFG_MAX_FLASH_SECT     (256)
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (20*CONFIG_SYS_HZ)      /* Timeout for Flash Write */
+#define CONFIG_SYS_MAX_FLASH_SECT      (256)
 
-#define PHYS_FLASH_1           (CFG_FLASH_BASE)
+#define PHYS_FLASH_1           (CONFIG_SYS_FLASH_BASE)
 
 #define CONFIG_ENV_IS_IN_FLASH     1               /* env in flash instead of CONFIG_ENV_IS_NOWHERE */
 #define CONFIG_ENV_SECT_SIZE       0x00020000      /* 256 KB sectors (x2) */
 #define CONFIG_ENV_SIZE            0x10000         /* Total Size of Environment Sector */
 #define CONFIG_ENV_OFFSET          0x01f00000      /* environment starts here  */
-#define CONFIG_ENV_ADDR            (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_ADDR            (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 
 #endif                                                 /* __CONFIG_H */
index f3f43c3d265148c06f6c8106ea061279b1cca548..38b0a4e94355a58efeb162d291ebf12d6f8941df 100644 (file)
@@ -81,7 +81,7 @@
 #define CONFIG_BOOTCOMMAND     "run flash_self"
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#undef CFG_LOADS_BAUD_CHANGE           /* don't allow baudrate change  */
+#undef CONFIG_SYS_LOADS_BAUD_CHANGE            /* don't allow baudrate change  */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 /*
  * Miscellaneous configurable options
  */
-#define        CFG_LONGHELP                    /* undef to save memory         */
-#define        CFG_PROMPT              "=> "   /* Monitor Command Prompt       */
+#define        CONFIG_SYS_LONGHELP                     /* undef to save memory         */
+#define        CONFIG_SYS_PROMPT               "=> "   /* Monitor Command Prompt       */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
-#define        CFG_HUSH_PARSER         1       /* use "hush" command parser    */
-#ifdef CFG_HUSH_PARSER
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define        CONFIG_SYS_HUSH_PARSER          1       /* use "hush" command parser    */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #endif
 
 #if defined(CONFIG_CMD_KGDB)
-#define        CFG_CBSIZE              1024    /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               1024    /* Console I/O Buffer Size      */
 #else
-#define        CFG_CBSIZE              256     /* Console I/O Buffer Size      */
+#define        CONFIG_SYS_CBSIZE               256     /* Console I/O Buffer Size      */
 #endif
-#define        CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define        CFG_MAXARGS             16      /* max number of command args   */
-#define CFG_BARGSIZE   CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define        CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define        CONFIG_SYS_MAXARGS              16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE    CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0x0400000       /* memtest works on     */
-#define CFG_MEMTEST_END                0x0C00000       /* 4 ... 12 MB in DRAM  */
+#define CONFIG_SYS_MEMTEST_START       0x0400000       /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000       /* 4 ... 12 MB in DRAM  */
 
-#define        CFG_LOAD_ADDR           0x100000        /* default load address */
+#define        CONFIG_SYS_LOAD_ADDR            0x100000        /* default load address */
 
-#define        CFG_HZ                  1000    /* decrementer freq: 1 ms ticks */
+#define        CONFIG_SYS_HZ                   1000    /* decrementer freq: 1 ms ticks */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Low Level Configuration Settings
 /*-----------------------------------------------------------------------
  * Internal Memory Mapped Register
  */
-#define CFG_IMMR               0xFFF00000
+#define CONFIG_SYS_IMMR                0xFFF00000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area (in DPRAM)
  */
-#define CFG_INIT_RAM_ADDR      CFG_IMMR
-#define        CFG_INIT_RAM_END        0x2F00  /* End of used area in DPRAM    */
-#define        CFG_GBL_DATA_SIZE       64  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define        CFG_INIT_SP_OFFSET      CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_IMMR
+#define        CONFIG_SYS_INIT_RAM_END 0x2F00  /* End of used area in DPRAM    */
+#define        CONFIG_SYS_GBL_DATA_SIZE        64  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define        CFG_SDRAM_BASE          0x00000000
-#define CFG_FLASH_BASE         0x40000000
-#define        CFG_MONITOR_LEN         (256 << 10)     /* Reserve 256 kB for Monitor   */
-#define CFG_MONITOR_BASE       CFG_FLASH_BASE
-#define        CFG_MALLOC_LEN          (128 << 10)     /* Reserve 128 kB for malloc()  */
+#define        CONFIG_SYS_SDRAM_BASE           0x00000000
+#define CONFIG_SYS_FLASH_BASE          0x40000000
+#define        CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MONITOR_BASE        CONFIG_SYS_FLASH_BASE
+#define        CONFIG_SYS_MALLOC_LEN           (128 << 10)     /* Reserve 128 kB for malloc()  */
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define        CFG_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
+#define        CONFIG_SYS_BOOTMAPSZ            (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
 
 /* use CFI flash driver */
-#define CFG_FLASH_CFI          1       /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI           1       /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER        1       /* Use the common driver */
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE+flash_info[0].size }
-#define CFG_FLASH_EMPTY_INFO
-#define CFG_FLASH_USE_BUFFER_WRITE     1
-#define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
-#define CFG_MAX_FLASH_SECT     71      /* max number of sectors on one chip */
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE+flash_info[0].size }
+#define CONFIG_SYS_FLASH_EMPTY_INFO
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE      1
+#define CONFIG_SYS_MAX_FLASH_BANKS     2       /* max number of memory banks */
+#define CONFIG_SYS_MAX_FLASH_SECT      71      /* max number of sectors on one chip */
 
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define        CONFIG_ENV_OFFSET               0x8000  /*   Offset   of Environment Sector     */
 #define CONFIG_ENV_OFFSET_REDUND       (CONFIG_ENV_OFFSET+CONFIG_ENV_SIZE)
 #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
 
-#define        CFG_USE_PPCENV                  /* Environment embedded in sect .ppcenv */
+#define        CONFIG_SYS_USE_PPCENV                   /* Environment embedded in sect .ppcenv */
 
 #define CONFIG_MISC_INIT_R             /* Make sure to remap flashes correctly */
 
 /*-----------------------------------------------------------------------
  * Hardware Information Block
  */
-#define CFG_HWINFO_OFFSET      0x0003FFC0      /* offset of HW Info block */
-#define CFG_HWINFO_SIZE                0x00000040      /* size   of HW Info block */
-#define CFG_HWINFO_MAGIC       0x54514D38      /* 'TQM8' */
+#define CONFIG_SYS_HWINFO_OFFSET       0x0003FFC0      /* offset of HW Info block */
+#define CONFIG_SYS_HWINFO_SIZE         0x00000040      /* size   of HW Info block */
+#define CONFIG_SYS_HWINFO_MAGIC        0x54514D38      /* 'TQM8' */
 
 /*-----------------------------------------------------------------------
  * Cache Configuration
  */
-#define CFG_CACHELINE_SIZE     16      /* For all MPC8xx CPUs                  */
+#define CONFIG_SYS_CACHELINE_SIZE      16      /* For all MPC8xx CPUs                  */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CACHELINE_SHIFT    4       /* log base 2 of the above value        */
+#define CONFIG_SYS_CACHELINE_SHIFT     4       /* log base 2 of the above value        */
 #endif
 
 /*-----------------------------------------------------------------------
  * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze
  */
 #if defined(CONFIG_WATCHDOG)
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \
                         SYPCR_SWE  | SYPCR_SWRI| SYPCR_SWP)
 #else
-#define CFG_SYPCR      (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
+#define CONFIG_SYS_SYPCR       (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | SYPCR_SWP)
 #endif
 
 /*-----------------------------------------------------------------------
  * PCMCIA config., multi-function pin tri-state
  */
 #ifndef        CONFIG_CAN_DRIVER
-#define CFG_SIUMCR     (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC00 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #else  /* we must activate GPL5 in the SIUMCR for CAN */
-#define CFG_SIUMCR     (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
+#define CONFIG_SYS_SIUMCR      (SIUMCR_DBGC11 | SIUMCR_DBPC00 | SIUMCR_MLRC01)
 #endif /* CONFIG_CAN_DRIVER */
 
 /*-----------------------------------------------------------------------
  *-----------------------------------------------------------------------
  * Clear Reference Interrupt Status, Timebase freezing enabled
  */
-#define CFG_TBSCR      (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
+#define CONFIG_SYS_TBSCR       (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF)
 
 /*-----------------------------------------------------------------------
  * RTCSC - Real-Time Clock Status and Control Register         11-27
  *-----------------------------------------------------------------------
  */
-#define CFG_RTCSC      (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
+#define CONFIG_SYS_RTCSC       (RTCSC_SEC | RTCSC_ALR | RTCSC_RTF| RTCSC_RTE)
 
 /*-----------------------------------------------------------------------
  * PISCR - Periodic Interrupt Status and Control               11-31
  *-----------------------------------------------------------------------
  * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled
  */
-#define CFG_PISCR      (PISCR_PS | PISCR_PITF)
+#define CONFIG_SYS_PISCR       (PISCR_PS | PISCR_PITF)
 
 /*-----------------------------------------------------------------------
  * PLPRCR - PLL, Low-Power, and Reset Control Register         15-30
  * Reset PLL lock status sticky bit, timer expired status bit and timer
  * interrupt status bit
  */
-#define CFG_PLPRCR     (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
+#define CONFIG_SYS_PLPRCR      (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST)
 
 /*-----------------------------------------------------------------------
  * SCCR - System Clock and reset Control Register              15-27
  * power management and some other internal clocks
  */
 #define SCCR_MASK      SCCR_EBDF11
-#define CFG_SCCR       (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
+#define CONFIG_SYS_SCCR        (SCCR_COM00   | SCCR_DFSYNC00 | SCCR_DFBRG00  | \
                         SCCR_DFNL000 | SCCR_DFNH000  | SCCR_DFLCD000 | \
                         SCCR_DFALCD00)
 
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_PCMCIA_MEM_ADDR    (0xE0000000)
-#define CFG_PCMCIA_MEM_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_DMA_ADDR    (0xE4000000)
-#define CFG_PCMCIA_DMA_SIZE    ( 64 << 20 )
-#define CFG_PCMCIA_ATTRB_ADDR  (0xE8000000)
-#define CFG_PCMCIA_ATTRB_SIZE  ( 64 << 20 )
-#define CFG_PCMCIA_IO_ADDR     (0xEC000000)
-#define CFG_PCMCIA_IO_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_MEM_ADDR     (0xE0000000)
+#define CONFIG_SYS_PCMCIA_MEM_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_DMA_ADDR     (0xE4000000)
+#define CONFIG_SYS_PCMCIA_DMA_SIZE     ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_ATTRB_ADDR   (0xE8000000)
+#define CONFIG_SYS_PCMCIA_ATTRB_SIZE   ( 64 << 20 )
+#define CONFIG_SYS_PCMCIA_IO_ADDR      (0xEC000000)
+#define CONFIG_SYS_PCMCIA_IO_SIZE      ( 64 << 20 )
 
 /*-----------------------------------------------------------------------
  * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter)
 #undef CONFIG_IDE_LED                  /* LED   for ide not supported  */
 #undef CONFIG_IDE_RESET                /* reset for ide not supported  */
 
-#define CFG_IDE_MAXBUS         1       /* max. 1 IDE bus               */
-#define CFG_IDE_MAXDEVICE      1       /* max. 1 drive per IDE bus     */
+#define CONFIG_SYS_IDE_MAXBUS          1       /* max. 1 IDE bus               */
+#define CONFIG_SYS_IDE_MAXDEVICE       1       /* max. 1 drive per IDE bus     */
 
-#define CFG_ATA_IDE0_OFFSET    0x0000
+#define CONFIG_SYS_ATA_IDE0_OFFSET     0x0000
 
-#define CFG_ATA_BASE_ADDR      CFG_PCMCIA_MEM_ADDR
+#define CONFIG_SYS_ATA_BASE_ADDR       CONFIG_SYS_PCMCIA_MEM_ADDR
 
 /* Offset for data I/O                 */
-#define CFG_ATA_DATA_OFFSET    (CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_DATA_OFFSET     (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for normal register accesses */
-#define CFG_ATA_REG_OFFSET     (2 * CFG_PCMCIA_MEM_SIZE + 0x320)
+#define CONFIG_SYS_ATA_REG_OFFSET      (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320)
 
 /* Offset for alternate registers      */
-#define CFG_ATA_ALT_OFFSET     0x0100
+#define CONFIG_SYS_ATA_ALT_OFFSET      0x0100
 
 /*-----------------------------------------------------------------------
  *
  *-----------------------------------------------------------------------
  *
  */
-#define CFG_DER        0
+#define CONFIG_SYS_DER 0
 
 /*
  * Init Memory Controller:
  * restrict access enough to keep SRAM working (if any)
  * but not too much to meddle with FLASH accesses
  */
-#define CFG_REMAP_OR_AM                0x80000000      /* OR addr mask */
-#define CFG_PRELIM_OR_AM       0xE0000000      /* OR addr mask */
+#define CONFIG_SYS_REMAP_OR_AM         0x80000000      /* OR addr mask */
+#define CONFIG_SYS_PRELIM_OR_AM        0xE0000000      /* OR addr mask */
 
 /*
  * FLASH timing:
  */
-#define CFG_OR_TIMING_FLASH    (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_OR_TIMING_FLASH     (OR_ACS_DIV1  | OR_TRLX | OR_CSNT_SAM | \
                                 OR_SCY_3_CLK | OR_EHTR | OR_BI)
 
-#define CFG_OR0_REMAP  (CFG_REMAP_OR_AM  | CFG_OR_TIMING_FLASH)
-#define CFG_OR0_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_FLASH)
-#define CFG_BR0_PRELIM ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR0_REMAP   (CONFIG_SYS_REMAP_OR_AM  | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_OR0_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_FLASH)
+#define CONFIG_SYS_BR0_PRELIM  ((FLASH_BASE0_PRELIM & BR_BA_MSK) | BR_V )
 
-#define CFG_OR1_REMAP  CFG_OR0_REMAP
-#define CFG_OR1_PRELIM CFG_OR0_PRELIM
-#define CFG_BR1_PRELIM ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
+#define CONFIG_SYS_OR1_REMAP   CONFIG_SYS_OR0_REMAP
+#define CONFIG_SYS_OR1_PRELIM  CONFIG_SYS_OR0_PRELIM
+#define CONFIG_SYS_BR1_PRELIM  ((FLASH_BASE1_PRELIM & BR_BA_MSK) | BR_V )
 
 /*
  * BR2/3 and OR2/3 (SDRAM)
 #define        SDRAM_MAX_SIZE          0x04000000      /* max 64 MB per bank   */
 
 /* SDRAM timing: Multiplexed addresses, GPL5 output to GPL5_A (don't care)     */
-#define CFG_OR_TIMING_SDRAM    0x00000A00
+#define CONFIG_SYS_OR_TIMING_SDRAM     0x00000A00
 
-#define CFG_OR2_PRELIM (CFG_PRELIM_OR_AM | CFG_OR_TIMING_SDRAM )
-#define CFG_BR2_PRELIM ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define CONFIG_SYS_OR2_PRELIM  (CONFIG_SYS_PRELIM_OR_AM | CONFIG_SYS_OR_TIMING_SDRAM )
+#define CONFIG_SYS_BR2_PRELIM  ((SDRAM_BASE2_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 
 #ifndef        CONFIG_CAN_DRIVER
-#define        CFG_OR3_PRELIM  CFG_OR2_PRELIM
-#define CFG_BR3_PRELIM ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
+#define        CONFIG_SYS_OR3_PRELIM   CONFIG_SYS_OR2_PRELIM
+#define CONFIG_SYS_BR3_PRELIM  ((SDRAM_BASE3_PRELIM & BR_BA_MSK) | BR_MS_UPMA | BR_V )
 #else  /* CAN uses CS3#, so we can have only one SDRAM bank anyway */
-#define        CFG_CAN_BASE            0xC0000000      /* CAN mapped at 0xC0000000     */
-#define CFG_CAN_OR_AM          0xFFFF8000      /* 32 kB address mask           */
-#define CFG_OR3_CAN            (CFG_CAN_OR_AM | OR_G5LA | OR_BI)
-#define CFG_BR3_CAN            ((CFG_CAN_BASE & BR_BA_MSK) | \
+#define        CONFIG_SYS_CAN_BASE             0xC0000000      /* CAN mapped at 0xC0000000     */
+#define CONFIG_SYS_CAN_OR_AM           0xFFFF8000      /* 32 kB address mask           */
+#define CONFIG_SYS_OR3_CAN             (CONFIG_SYS_CAN_OR_AM | OR_G5LA | OR_BI)
+#define CONFIG_SYS_BR3_CAN             ((CONFIG_SYS_CAN_BASE & BR_BA_MSK) | \
                                        BR_PS_8 | BR_MS_UPMB | BR_V )
 #endif /* CONFIG_CAN_DRIVER */
 
  * 80 Mhz => 80.000.000 / Divider = 156
  */
 
-#define CFG_PTA_PER_CLK        ((4096 * 32 * 1000) / (4 * 64))
-#define CFG_MAMR_PTA   98
+#define CONFIG_SYS_PTA_PER_CLK ((4096 * 32 * 1000) / (4 * 64))
+#define CONFIG_SYS_MAMR_PTA    98
 
 /*
  * For 16 MBit, refresh rates could be 31.3 us
  * (= 64 ms / 2K = 125 / quad bursts).
  * For a simpler initialization, 15.6 us is used instead.
  *
- * #define CFG_MPTPR_2BK_2K    MPTPR_PTP_DIV32         for 2 banks
- * #define CFG_MPTPR_1BK_2K    MPTPR_PTP_DIV64         for 1 bank
+ * #define CONFIG_SYS_MPTPR_2BK_2K     MPTPR_PTP_DIV32         for 2 banks
+ * #define CONFIG_SYS_MPTPR_1BK_2K     MPTPR_PTP_DIV64         for 1 bank
  */
-#define CFG_MPTPR_2BK_4K       MPTPR_PTP_DIV16         /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_4K       MPTPR_PTP_DIV32         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_4K        MPTPR_PTP_DIV16         /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_4K        MPTPR_PTP_DIV32         /* setting for 1 bank   */
 
 /* refresh rate 7.8 us (= 64 ms / 8K = 31.2 / quad bursts) for 256 MBit                */
-#define CFG_MPTPR_2BK_8K       MPTPR_PTP_DIV8          /* setting for 2 banks  */
-#define CFG_MPTPR_1BK_8K       MPTPR_PTP_DIV16         /* setting for 1 bank   */
+#define CONFIG_SYS_MPTPR_2BK_8K        MPTPR_PTP_DIV8          /* setting for 2 banks  */
+#define CONFIG_SYS_MPTPR_1BK_8K        MPTPR_PTP_DIV16         /* setting for 1 bank   */
 
 /*
  * MAMR settings for SDRAM
  */
 
 /* 8 column SDRAM */
-#define CFG_MAMR_8COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_8COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_0 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A11 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 /* 9 column SDRAM */
-#define CFG_MAMR_9COL  ((CFG_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE      |   \
+#define CONFIG_SYS_MAMR_9COL   ((CONFIG_SYS_MAMR_PTA << MAMR_PTA_SHIFT)  | MAMR_PTAE       |   \
                         MAMR_AMA_TYPE_1 | MAMR_DSA_1_CYCL | MAMR_G0CLA_A10 |   \
                         MAMR_RLFA_1X    | MAMR_WLFA_1X    | MAMR_TLFA_4X)
 
 #define BOOTFLAG_WARM  0x02            /* Software reboot                      */
 
 /* Map peripheral control registers on CS4 */
-#define CFG_PERIPHERAL_BASE 0xA0000000
-#define CFG_PERIPHERAL_OR_AM 0xFFFF8000 /* 32 kB address mask */
-#define CFG_OR4_PRELIM (CFG_PERIPHERAL_OR_AM | OR_TRLX | OR_CSNT_SAM | \
+#define CONFIG_SYS_PERIPHERAL_BASE 0xA0000000
+#define CONFIG_SYS_PERIPHERAL_OR_AM 0xFFFF8000 /* 32 kB address mask */
+#define CONFIG_SYS_OR4_PRELIM (CONFIG_SYS_PERIPHERAL_OR_AM | OR_TRLX | OR_CSNT_SAM | \
                                                OR_SCY_2_CLK)
-#define CFG_BR4_PRELIM ((CFG_PERIPHERAL_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
-#define PCMCIA_CTRL (CFG_PERIPHERAL_BASE + 0xB00)
+#define CONFIG_SYS_BR4_PRELIM ((CONFIG_SYS_PERIPHERAL_BASE & BR_BA_MSK) | BR_PS_8 | BR_V)
+#define PCMCIA_CTRL (CONFIG_SYS_PERIPHERAL_BASE + 0xB00)
 #endif /* __CONFIG_H */
index 312f720c64f134aaa504bc8063de8f3ddfcb46bb..866b72d4cf25d447416a92bd88529509bc69881d 100644 (file)
 
 #define PHYS_FLASH_1           0x00000000      /* Flash Bank #1 */
 
-#define CFG_LOAD_ADDR          PHYS_SDRAM_1 + 0x400000 /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           PHYS_SDRAM_1 + 0x400000 /* default load address */
 
 /*
  * FLASH organization
  */
-#define CFG_FLASH_CFI                  /* Flash is CFI conformant */
+#define CONFIG_SYS_FLASH_CFI                   /* Flash is CFI conformant */
 #define CONFIG_FLASH_CFI_DRIVER                /* Use the common driver */
-#define CFG_MAX_FLASH_BANKS    1
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_MAX_FLASH_BANKS     1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /* FIXME: Does not work on AMD flash */
-/* #define CFG_FLASH_USE_BUFFER_WRITE 1 */     /* use buffered writes (20x faster) */
-#define CFG_MAX_FLASH_SECT     512     /* max # of sectors on one chip */
+/* #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 */      /* use buffered writes (20x faster) */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max # of sectors on one chip */
 
-#define CFG_MONITOR_BASE       PHYS_FLASH_1
-#define CFG_MONITOR_LEN                (256 * 1024)
+#define CONFIG_SYS_MONITOR_BASE        PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_FLASH
-#define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + CFG_MONITOR_LEN)
+#define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + CONFIG_SYS_MONITOR_LEN)
 #define CONFIG_ENV_SIZE                (8 * 1024)
 #define CONFIG_ENV_SECT_SIZE   (64 * 1024)
 #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE)
 /*
  * Size of malloc() pool and stack
  */
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
-#define CFG_MALLOC_LEN         (4 * 1024 * 1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (4 * 1024 * 1024)
 #define CONFIG_STACKSIZE       (1 * 1024 * 1024)
-#define PHYS_SDRAM_1_RESERVED  (CFG_MONITOR_LEN + CFG_MALLOC_LEN + CONFIG_STACKSIZE)
+#define PHYS_SDRAM_1_RESERVED  (CONFIG_SYS_MONITOR_LEN + CONFIG_SYS_MALLOC_LEN + CONFIG_STACKSIZE)
 
 /*
  * Hardware drivers
 #define CONFIG_SMC91111_BASE   0x08000300
 
 #define CONFIG_HARD_I2C
-#define CFG_I2C_SPEED          100000
-#define CFG_I2C_SLAVE          1
+#define CONFIG_SYS_I2C_SPEED           100000
+#define CONFIG_SYS_I2C_SLAVE           1
 #define CONFIG_DRIVER_OMAP1510_I2C
 
 #define CONFIG_RTC_DS1307
-#define CFG_I2C_RTC_ADDR       0x68
+#define CONFIG_SYS_I2C_RTC_ADDR        0x68
 
 /*
  * NS16550 Configuration
  */
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   (-4)
-#define CFG_NS16550_CLK                (CONFIG_XTAL_FREQ)      /* can be 12M/32Khz or 48Mhz  */
-#define CFG_NS16550_COM1       OMAP1510_UART1_BASE     /* uart1 */
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    (-4)
+#define CONFIG_SYS_NS16550_CLK         (CONFIG_XTAL_FREQ)      /* can be 12M/32Khz or 48Mhz  */
+#define CONFIG_SYS_NS16550_COM1        OMAP1510_UART1_BASE     /* uart1 */
 
 #define CONFIG_CONS_INDEX      1
 #define CONFIG_BAUDRATE                115200
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 
 /*
 #define CONFIG_BOOTDELAY       3
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* allow to break in always */
 #undef  CONFIG_BOOTARGS                /* the boot command will set bootargs*/
-#define CFG_AUTOLOAD           "n"             /* No autoload */
+#define CONFIG_SYS_AUTOLOAD            "n"             /* No autoload */
 #define CONFIG_BOOTCOMMAND     "run nboot"
 #define CONFIG_PREBOOT         "run setup"
 #define        CONFIG_EXTRA_ENV_SETTINGS                               \
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 #define CONFIG_AUTO_COMPLETE
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "# "            /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "# "            /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      PHYS_SDRAM_1
-#define CFG_MEMTEST_END                PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE - PHYS_SDRAM_1_RESERVED
+#define CONFIG_SYS_MEMTEST_START       PHYS_SDRAM_1
+#define CONFIG_SYS_MEMTEST_END         PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE - PHYS_SDRAM_1_RESERVED
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
 /* The 1510 has 3 timers, they can be driven by the RefClk (12Mhz) or by DPLL1.
  * This time is further subdivided by a local divisor.
  */
-#define CFG_TIMERBASE          OMAP1510_TIMER1_BASE
-#define CFG_PVT                        7               /* 2^(pvt+1), divide by 256 */
-#define CFG_HZ                 ((CONFIG_SYS_CLK_FREQ)/(2 << CFG_PVT))
+#define CONFIG_SYS_TIMERBASE           OMAP1510_TIMER1_BASE
+#define CONFIG_SYS_PVT                 7               /* 2^(pvt+1), divide by 256 */
+#define CONFIG_SYS_HZ                  ((CONFIG_SYS_CLK_FREQ)/(2 << CONFIG_SYS_PVT))
 
 #define OMAP5910_DPLL_DIV      1
 #define OMAP5910_DPLL_MUL      ((CONFIG_SYS_CLK_FREQ * \
index d3d079a8a1ced14f8fe6d3ecbaf691a8af91abb2..630c0d3a3ce6cb03a5b28943743cb3d3b205a7ff 100644 (file)
 #define CONFIG_SPD_EEPROM      1       /* use SPD EEPROM for setup    */
 
 /*
- * If CFG_EXT_SERIAL_CLOCK, then the UART divisor is 1.
- * If CFG_405_UART_ERRATA_59, then UART divisor is 31.
- * Otherwise, UART divisor is determined by CPU Clock and CFG_BASE_BAUD value.
+ * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1.
+ * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31.
+ * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value.
  * The Linux BASE_BAUD define should match this configuration.
  *    baseBaud = cpuClock/(uartDivisor*16)
- * If CFG_405_UART_ERRATA_59 and 200MHz CPU clock,
+ * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock,
  * set Linux BASE_BAUD to 403200.
  */
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#undef CFG_EXT_SERIAL_CLOCK           /* external serial clock */
-#undef CFG_405_UART_ERRATA_59         /* 405GP/CR Rev. D silicon */
-#define CFG_BASE_BAUD      691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK            /* external serial clock */
+#undef CONFIG_SYS_405_UART_ERRATA_59          /* 405GP/CR Rev. D silicon */
+#define CONFIG_SYS_BASE_BAUD       691200
 
 /*-----------------------------------------------------------------------
  * I2C stuff
  *-----------------------------------------------------------------------
  */
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 /*-----------------------------------------------------------------------
  * PCI stuff
                                        /* resource configuration       */
 #define CONFIG_PCI_SCAN_SHOW           /* show pci devices on startup  */
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever */
-#define CFG_PCI_PTM1LA 0x00000000      /* point to sdram               */
-#define CFG_PCI_PTM1MS 0x80000001      /* 2GB, enable hard-wired to 1  */
-#define CFG_PCI_PTM1PCI 0x00000000     /* Host: use this pci address   */
-#define CFG_PCI_PTM2LA 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2MS 0x00000000      /* disabled                     */
-#define CFG_PCI_PTM2PCI 0x04000000     /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever */
+#define CONFIG_SYS_PCI_PTM1LA  0x00000000      /* point to sdram               */
+#define CONFIG_SYS_PCI_PTM1MS  0x80000001      /* 2GB, enable hard-wired to 1  */
+#define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2LA  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2MS  0x00000000      /* disabled                     */
+#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
  */
-#define CFG_FLASH_BASE         0xFFF80000
+#define CONFIG_SYS_FLASH_BASE          0xFFF80000
 
 /*
  * Define here the location of the environment variables (FLASH or NVRAM).
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define FLASH_BASE0_PRELIM     CFG_FLASH_BASE  /* FLASH bank #0                */
+#define FLASH_BASE0_PRELIM     CONFIG_SYS_FLASH_BASE   /* FLASH bank #0                */
 #define FLASH_BASE1_PRELIM     0               /* FLASH bank #1                */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     256     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
-#define CFG_FLASH_ADDR0                0x5555
-#define CFG_FLASH_ADDR1                0x2aaa
-#define CFG_FLASH_WORD_SIZE    unsigned char
+#define CONFIG_SYS_FLASH_ADDR0         0x5555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aaa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000         /* size of one complete sector  */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define CONFIG_ENV_SIZE                0x4000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
 /*-----------------------------------------------------------------------
  * NVRAM organization
  */
-#define CFG_NVRAM_BASE_ADDR    0xf0000000      /* NVRAM base address   */
-#define CFG_NVRAM_SIZE         0x1ff8          /* NVRAM size   */
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0xf0000000      /* NVRAM base address   */
+#define CONFIG_SYS_NVRAM_SIZE          0x1ff8          /* NVRAM size   */
 
 #ifdef CONFIG_ENV_IS_IN_NVRAM
 #define CONFIG_ENV_SIZE                0x1000          /* Size of Environment vars     */
 #define CONFIG_ENV_ADDR                \
-       (CFG_NVRAM_BASE_ADDR+CFG_NVRAM_SIZE-CONFIG_ENV_SIZE)    /* Env  */
+       (CONFIG_SYS_NVRAM_BASE_ADDR+CONFIG_SYS_NVRAM_SIZE-CONFIG_ENV_SIZE)      /* Env  */
 #endif
 
 /*-----------------------------------------------------------------------
  */
 
 /* Memory Bank 0 (Flash Bank 0) initialization                                 */
-#define CFG_EBC_PB0AP          0x9B015480
-#define CFG_EBC_PB0CR          0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB0AP           0x9B015480
+#define CONFIG_SYS_EBC_PB0CR           0xFFF18000  /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit  */
 
-#define CFG_EBC_PB1AP          0x02815480
-#define CFG_EBC_PB1CR          0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB1AP           0x02815480
+#define CONFIG_SYS_EBC_PB1CR           0xF0018000  /* BAS=0xF00,BS=1MB,BU=R/W,BW=8bit  */
 
-#define CFG_EBC_PB2AP          0x04815A80
-#define CFG_EBC_PB2CR          0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB2AP           0x04815A80
+#define CONFIG_SYS_EBC_PB2CR           0xF0118000  /* BAS=0xF01,BS=1MB,BU=R/W,BW=8bit  */
 
-#define CFG_EBC_PB3AP          0x01815280
-#define CFG_EBC_PB3CR          0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB3AP           0x01815280
+#define CONFIG_SYS_EBC_PB3CR           0xF0218000  /* BAS=0xF02,BS=1MB,BU=R/W,BW=8bit  */
 
-#define CFG_EBC_PB7AP          0x01815280
-#define CFG_EBC_PB7CR          0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
+#define CONFIG_SYS_EBC_PB7AP           0x01815280
+#define CONFIG_SYS_EBC_PB7CR           0xF0318000  /* BAS=0xF03,BS=1MB,BU=R/W,BW=8bit  */
 
 /*-----------------------------------------------------------------------
  * External peripheral base address
  *-----------------------------------------------------------------------
  */
-#define CFG_KEY_REG_BASE_ADDR  0xF0100000
-#define CFG_IR_REG_BASE_ADDR   0xF0200000
-#define CFG_FPGA_REG_BASE_ADDR 0xF0300000
+#define CONFIG_SYS_KEY_REG_BASE_ADDR   0xF0100000
+#define CONFIG_SYS_IR_REG_BASE_ADDR    0xF0200000
+#define CONFIG_SYS_FPGA_REG_BASE_ADDR  0xF0300000
 
 /*-----------------------------------------------------------------------
  * Definitions for initial stack pointer and data area
  */
-#define CFG_INIT_DCACHE_CS     4       /* use cs # 4 for data cache memory    */
+#define CONFIG_SYS_INIT_DCACHE_CS      4       /* use cs # 4 for data cache memory    */
 
-#define CFG_INIT_RAM_ADDR      0x40000000  /* inside of SDRAM                     */
-#define CFG_INIT_RAM_END       0x2000  /* End of used area in RAM             */
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x40000000  /* inside of SDRAM                     */
+#define CONFIG_SYS_INIT_RAM_END        0x2000  /* End of used area in RAM             */
+#define CONFIG_SYS_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET    (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Definitions for Serial Presence Detect EEPROM address
index 2072f6ecfef7a28a4af6a0c3dc74489b7c77724f..b70a53139060fdce94badb6edd8eded9bf861ebd 100644 (file)
 /*
  * General options for u-boot. Modify to save memory foot print
  */
-#define CFG_LONGHELP                                  /* undef saves memory  */
-#define CFG_PROMPT              "WEP> "               /* prompt string       */
-#define CFG_CBSIZE              256                   /* console I/O buffer  */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* print buffer size   */
-#define CFG_MAXARGS             16                    /* max command args    */
-#define CFG_BARGSIZE            CFG_CBSIZE            /* boot args buf size  */
+#define CONFIG_SYS_LONGHELP                                  /* undef saves memory  */
+#define CONFIG_SYS_PROMPT              "WEP> "               /* prompt string       */
+#define CONFIG_SYS_CBSIZE              256                   /* console I/O buffer  */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* print buffer size   */
+#define CONFIG_SYS_MAXARGS             16                    /* max command args    */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE            /* boot args buf size  */
 
-#define CFG_MEMTEST_START       0xa0400000            /* memtest test area   */
-#define CFG_MEMTEST_END         0xa0800000
+#define CONFIG_SYS_MEMTEST_START       0xa0400000            /* memtest test area   */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000
 
-#undef  CFG_CLKS_IN_HZ                       /* use HZ for freq. display     */
+#undef  CONFIG_SYS_CLKS_IN_HZ                       /* use HZ for freq. display     */
 
-#define CFG_HZ                  3686400      /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED            0x141        /* core clock - register value  */
+#define CONFIG_SYS_HZ                  3686400      /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141        /* core clock - register value  */
 
-#define CFG_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Definitions related to passing arguments to kernel.
@@ -98,8 +98,8 @@
 /*
  * Malloc pool need to host env + 128 Kb reserve for other allocations.
  */
-#define CFG_MALLOC_LEN   (CONFIG_ENV_SIZE + (128<<10) )
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN    (CONFIG_ENV_SIZE + (128<<10) )
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 #define CONFIG_STACKSIZE        (120<<10)      /* stack size */
 
 #define WEP_SDRAM_4            0xac000000        /* SDRAM bank #4           */
 #define WEP_SDRAM_4_SIZE       0x00000000        /* 0 MB                    */
 
-#define CFG_DRAM_BASE           0xa0000000
-#define CFG_DRAM_SIZE           0x02000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000
+#define CONFIG_SYS_DRAM_SIZE           0x02000000
 
 /* Uncomment used SDRAM chip */
 #define WEP_SDRAM_K4S281633
 /*
  * Configuration for FLASH memory
  */
-#define CFG_MAX_FLASH_BANKS    1       /* FLASH banks count (not chip count)*/
-#define CFG_MAX_FLASH_SECT     128     /* number of sector in FLASH bank    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* FLASH banks count (not chip count)*/
+#define CONFIG_SYS_MAX_FLASH_SECT      128     /* number of sector in FLASH bank    */
 #define WEP_FLASH_BUS_WIDTH    4       /* we use 32 bit FLASH memory...     */
 #define WEP_FLASH_INTERLEAVE   2       /* ... made of 2 chips */
 #define WEP_FLASH_BANK_SIZE  0x2000000  /* size of one flash bank*/
    is not so clear to me. In other words we can provide more informations
    to user, but this expects more complex flash handling we do not provide
    now.*/
-#undef  CFG_FLASH_CFI
+#undef  CONFIG_SYS_FLASH_CFI
 
-#define CFG_FLASH_ERASE_TOUT    (2*CFG_HZ)    /* timeout for Erase operation */
-#define CFG_FLASH_WRITE_TOUT    (2*CFG_HZ)    /* timeout for Write operation */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ)    /* timeout for Erase operation */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ)    /* timeout for Write operation */
 
-#define CFG_FLASH_BASE          WEP_FLASH_BASE
+#define CONFIG_SYS_FLASH_BASE          WEP_FLASH_BASE
 
 /*
  * This is setting for JFFS2 support in u-boot.
  * footprint.
  * NOTE: Enable CONFIG_CMD_JFFS2 for JFFS2 support.
  */
-#define CFG_JFFS2_FIRST_BANK           0
-#define CFG_JFFS2_FIRST_SECTOR         5
-#define CFG_JFFS2_NUM_BANKS            1
+#define CONFIG_SYS_JFFS2_FIRST_BANK            0
+#define CONFIG_SYS_JFFS2_FIRST_SECTOR          5
+#define CONFIG_SYS_JFFS2_NUM_BANKS             1
 
 /*
  * Environment setup. Definitions of monitor location and size with
  * env. has no sense to us.
  */
 
-#define CFG_MONITOR_BASE       PHYS_FLASH_1
-#define CFG_MONITOR_LEN                0x20000         /* 128kb ( 1 flash sector )  */
+#define CONFIG_SYS_MONITOR_BASE        PHYS_FLASH_1
+#define CONFIG_SYS_MONITOR_LEN         0x20000         /* 128kb ( 1 flash sector )  */
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                0x20000         /* absolute address for now  */
 #define CONFIG_ENV_SIZE                0x2000
  * one may expect. For instance loadb command do not cares :-)
  * So advice is - do not relay on this...
  */
-#define CFG_LOAD_ADDR        0x40000
+#define CONFIG_SYS_LOAD_ADDR        0x40000
 
 #endif  /* __CONFIG_H */
index ec73224fb1116778f9df8b4a3b65bce235d2787c..324f03e24c51a4bf4d587cfcbe91b0924e431ad2 100644 (file)
@@ -62,7 +62,7 @@
 
 #define CONFIG_BAUDRATE                115200
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 } /* valid baudrates */
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 } /* valid baudrates */
 
 
 /*
  * Size of malloc() pool; this lives below the uppermost 128 KiB which are
  * used for the RAM copy of the uboot code
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory */
-#define CFG_HUSH_PARSER                1
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory */
+#define CONFIG_SYS_HUSH_PARSER         1
 
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "u-boot$ "      /* Monitor Command Prompt */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "u-boot$ "      /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "u-boot=> "     /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "u-boot=> "     /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on     */
-#define CFG_MEMTEST_END                0xa0800000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ                          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ                           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0xa1000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa1000000      /* default load address */
 
-#define CFG_HZ                 3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x141           /* set core clock to 400/200/100 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x141           /* set core clock to 400/200/100 MHz */
 
 /*
  * Physical Memory Map
 #define PHYS_FLASH_BANK_SIZE   0x02000000 /* 32 MB Banks */
 #define PHYS_FLASH_SECT_SIZE   0x00040000 /* 256 KB sectors (x2) */
 
-#define CFG_DRAM_BASE          0xa0000000
-#define CFG_DRAM_SIZE          0x04000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000
+#define CONFIG_SYS_DRAM_SIZE           0x04000000
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1    /* max number of memory banks              */
-#define CFG_MAX_FLASH_SECT     128  /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1    /* max number of memory banks              */
+#define CONFIG_SYS_MAX_FLASH_SECT      128  /* max number of sectors on one chip    */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (25*CFG_HZ) /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT   (25*CFG_HZ) /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */
 
 /* FIXME */
 #define CONFIG_ENV_IS_IN_FLASH 1
  * GP82 == NSSPSFRM  is 1
  * GP83 == NSSPTXD   is 1
  */
-#define CFG_GPSR0_VAL          0x8320E420
-#define CFG_GPSR1_VAL          0x00FFAA82
-#define CFG_GPSR2_VAL          0x000DC000
+#define CONFIG_SYS_GPSR0_VAL           0x8320E420
+#define CONFIG_SYS_GPSR1_VAL           0x00FFAA82
+#define CONFIG_SYS_GPSR2_VAL           0x000DC000
 
 /*
  * GP03 == LANReset  is 0
  * GP30 == SDATA_OUT is 0
  * GP81 == NSSPCLK   is 0
  */
-#define CFG_GPCR0_VAL          0x40C31848
-#define CFG_GPCR1_VAL          0x00000000
-#define CFG_GPCR2_VAL          0x00020000
+#define CONFIG_SYS_GPCR0_VAL           0x40C31848
+#define CONFIG_SYS_GPCR1_VAL           0x00000000
+#define CONFIG_SYS_GPCR2_VAL           0x00020000
 
 /*
  * GP00 == CPUWakeUpUSB is input
  * GP83 == NSSPTXD   is output
  * GP84 == NSSPRXD   is input
  */
-#define CFG_GPDR0_VAL          0xD3E3FC68
-#define CFG_GPDR1_VAL          0xFCFFAB83
-#define CFG_GPDR2_VAL          0x000FFFFF
+#define CONFIG_SYS_GPDR0_VAL           0xD3E3FC68
+#define CONFIG_SYS_GPDR1_VAL           0xFCFFAB83
+#define CONFIG_SYS_GPDR2_VAL           0x000FFFFF
 
 /*
  * GP01 == GP reset is AF01
  * GP83 == NSSPTXD  is AF01
  * GP84 == NSSPRXD  is AF10
  */
-#define CFG_GAFR0_L_VAL                0x80000004
-#define CFG_GAFR0_U_VAL                0x595A801A
-#define CFG_GAFR1_L_VAL                0x699A9559
-#define CFG_GAFR1_U_VAL                0xAAA5AAAA
-#define CFG_GAFR2_L_VAL                0xAAAAAAAA
-#define CFG_GAFR2_U_VAL                0x00000256
+#define CONFIG_SYS_GAFR0_L_VAL         0x80000004
+#define CONFIG_SYS_GAFR0_U_VAL         0x595A801A
+#define CONFIG_SYS_GAFR1_L_VAL         0x699A9559
+#define CONFIG_SYS_GAFR1_U_VAL         0xAAA5AAAA
+#define CONFIG_SYS_GAFR2_L_VAL         0xAAAAAAAA
+#define CONFIG_SYS_GAFR2_U_VAL         0x00000256
 
 /*
  * clock settings
  * BFS = 0
  * SSS = 0
  */
-#define CFG_PSSR_VAL           0x00000030
+#define CONFIG_SYS_PSSR_VAL            0x00000030
 
-#define CFG_CKEN_VAL            0x00000080  /*  */
-#define CFG_ICMR_VAL            0x00000000  /* No interrupts enabled        */
+#define CONFIG_SYS_CKEN_VAL            0x00000080  /*  */
+#define CONFIG_SYS_ICMR_VAL            0x00000000  /* No interrupts enabled        */
 
 
 /*
  * [03]    0    - 32 Bit bus width
  * [02:00] 010  - burst OF 4 ROM or FLASH
 */
-#define CFG_MSC0_VAL           0x000023D2
+#define CONFIG_SYS_MSC0_VAL            0x000023D2
 
 /* This is the configuration for nCS2/3 -> USB controller, LAN
  * configuration for nCS3: LAN
  * [03]    1    - 16 Bit bus width
  * [02:00] 100  - variable latency I/O
  */
-#define CFG_MSC1_VAL           0x1224A26C
+#define CONFIG_SYS_MSC1_VAL            0x1224A26C
 
 /* This is the configuration for nCS4/5 -> LAN
  * configuration for nCS5:
  * [03]    0    - 32 Bit bus width
  * [02:00] 100  - variable latency I/O
  */
-#define CFG_MSC2_VAL           0x00001224
+#define CONFIG_SYS_MSC2_VAL            0x00001224
 
 /* MDCNFG: SDRAM Configuration Register
  *
  * [00]      1   - enable  SDRAM partition 0
  */
 /* use the configuration above but disable partition 0 */
-#define CFG_MDCNFG_VAL         0x00000AC9
+#define CONFIG_SYS_MDCNFG_VAL          0x00000AC9
 
 /* MDREFR: SDRAM Refresh Control Register
  *
  * [12]    0     - E0PIN: disable SDCKE0
  * [11:00] 000000011000 - (64ms/8192)*MemClkFreq/32 = 24
  */
-#define CFG_MDREFR_VAL         0x00138018 /* mh: was 0x00118018 */
+#define CONFIG_SYS_MDREFR_VAL          0x00138018 /* mh: was 0x00118018 */
 
 /* MDMRS: Mode Register Set Configuration Register
  *
  * [03]      0       - MDADD0: SDRAM0/1 burst Type. Fixed to sequential.
  * [02:00]   010     - MDBL0:  SDRAM0/1 burst Length. Fixed to 4.
  */
-#define CFG_MDMRS_VAL          0x00320032
+#define CONFIG_SYS_MDMRS_VAL           0x00320032
 
 /*
  * PCMCIA and CF Interfaces
  */
-#define CFG_MECR_VAL           0x00000000
-#define CFG_MCMEM0_VAL         0x00010504
-#define CFG_MCMEM1_VAL         0x00010504
-#define CFG_MCATT0_VAL         0x00010504
-#define CFG_MCATT1_VAL         0x00010504
-#define CFG_MCIO0_VAL          0x00004715
-#define CFG_MCIO1_VAL          0x00004715
+#define CONFIG_SYS_MECR_VAL            0x00000000
+#define CONFIG_SYS_MCMEM0_VAL          0x00010504
+#define CONFIG_SYS_MCMEM1_VAL          0x00010504
+#define CONFIG_SYS_MCATT0_VAL          0x00010504
+#define CONFIG_SYS_MCATT1_VAL          0x00010504
+#define CONFIG_SYS_MCIO0_VAL           0x00004715
+#define CONFIG_SYS_MCIO1_VAL           0x00004715
 
 
 #endif /* __CONFIG_H */
index e968651c4c245bcd1048507ff429a99d9d00fce4..fc0f932aa49d75f14796d2720b096ce598d61c19 100644 (file)
@@ -24,7 +24,7 @@
 #include "../board/xilinx/ppc440-generic/xparameters.h"
 
 /*Mem Map*/
-#define CFG_SDRAM_SIZE_MB      256
+#define CONFIG_SYS_SDRAM_SIZE_MB       256
 
 /*Env*/
 #define        CONFIG_ENV_IS_IN_FLASH  1
 #define CONFIG_ENV_ADDR                (XPAR_FLASH_MEM0_BASEADDR+CONFIG_ENV_OFFSET)
 
 /*Misc*/
-#define CFG_PROMPT             "board:/# "     /* Monitor Command Prompt    */
+#define CONFIG_SYS_PROMPT              "board:/# "     /* Monitor Command Prompt    */
 #define CONFIG_PREBOOT         "echo U-Boot is up and runnining;"
 
 /*Flash*/
-#define        CFG_FLASH_SIZE          (32*1024*1024)
-#define        CFG_MAX_FLASH_SECT      259
+#define        CONFIG_SYS_FLASH_SIZE           (32*1024*1024)
+#define        CONFIG_SYS_MAX_FLASH_SECT       259
 #define MTDIDS_DEFAULT         "nor0=ml507-flash"
 #define MTDPARTS_DEFAULT       "mtdparts=ml507-flash:-(user)"
 
index 6c7abb208992f72daca5fe618d6b6e7606ac79ec..ac78420bb4de8110a2644a215a71371ccda7ffa3 100644 (file)
 #define CONFIG_4xx             1
 
 /*Mem Map*/
-#define CFG_SDRAM_BASE         0x0
-#define CFG_MONITOR_BASE       TEXT_BASE
-#define CFG_MONITOR_LEN                (192 * 1024)
-#define CFG_MALLOC_LEN         (CONFIG_ENV_SIZE + 128 * 1024)
+#define CONFIG_SYS_SDRAM_BASE          0x0
+#define CONFIG_SYS_MONITOR_BASE        TEXT_BASE
+#define CONFIG_SYS_MONITOR_LEN         (192 * 1024)
+#define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 128 * 1024)
 
 /*Uart*/
 #define CONFIG_XILINX_UARTLITE
 #define CONFIG_BAUDRATE                XPAR_UARTLITE_0_BAUDRATE
-#define CFG_BAUDRATE_TABLE     { XPAR_UARTLITE_0_BAUDRATE }
+#define CONFIG_SYS_BAUDRATE_TABLE      { XPAR_UARTLITE_0_BAUDRATE }
 #define CONFIG_SERIAL_BASE     XPAR_UARTLITE_0_BASEADDR
 
 /*Cmd*/
 
 /*Misc*/
 #define CONFIG_BOOTDELAY       5       /* autoboot after 5 seconds     */
-#define CFG_LONGHELP                   /* undef to save memory         */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE             (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16)
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size */
-#define CFG_MEMTEST_START      0x00400000      /* memtest works on           */
-#define CFG_MEMTEST_END                0x00C00000      /* 4 ... 12 MB in DRAM        */
-#define CFG_LOAD_ADDR          0x00400000      /* default load address       */
-#define CFG_EXTBDINFO          1       /* Extended board_into (bd_t) */
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size */
+#define CONFIG_SYS_MEMTEST_START       0x00400000      /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x00C00000      /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_LOAD_ADDR           0x00400000      /* default load address       */
+#define CONFIG_SYS_EXTBDINFO           1       /* Extended board_into (bd_t) */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 #define CONFIG_CMDLINE_EDITING         /* add command line history     */
 #define CONFIG_AUTO_COMPLETE           /* add autocompletion support   */
 #define CONFIG_LOOPW                   /* enable loopw command         */
 #define CONFIG_MX_CYCLIC               /* enable mdc/mwc commands      */
 #define CONFIG_ZERO_BOOTDELAY_CHECK    /* check for keypress on bootdelay==0 */
 #define CONFIG_VERSION_VARIABLE                /* include version env variable */
-#define CFG_CONSOLE_INFO_QUIET         /* don't print console @ startup */
-#define CFG_HUSH_PARSER                        /* Use the HUSH parser          */
-#define        CFG_PROMPT_HUSH_PS2     "> "
+#define CONFIG_SYS_CONSOLE_INFO_QUIET          /* don't print console @ startup */
+#define CONFIG_SYS_HUSH_PARSER                 /* Use the HUSH parser          */
+#define        CONFIG_SYS_PROMPT_HUSH_PS2      "> "
 #define CONFIG_LOADS_ECHO              /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE          /* allow baudrate change        */
-#define CFG_BOOTMAPSZ          (8 << 20)/* Initial Memory map for Linux */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE           /* allow baudrate change        */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)/* Initial Memory map for Linux */
 
 /*Stack*/
-#define CFG_INIT_RAM_ADDR      0x800000        /* Initial RAM address    */
-#define CFG_INIT_RAM_END       0x2000          /* End of used area in RAM  */
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data   */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_ADDR       0x800000        /* Initial RAM address    */
+#define CONFIG_SYS_INIT_RAM_END        0x2000          /* End of used area in RAM  */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data   */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 /*Speed*/
 #define CONFIG_SYS_CLK_FREQ    XPAR_CORE_CLOCK_FREQ_HZ
 
 /*Flash*/
-#define        CFG_FLASH_BASE          XPAR_FLASH_MEM0_BASEADDR
-#define        CFG_FLASH_CFI           1
+#define        CONFIG_SYS_FLASH_BASE           XPAR_FLASH_MEM0_BASEADDR
+#define        CONFIG_SYS_FLASH_CFI            1
 #define        CONFIG_FLASH_CFI_DRIVER 1
-#define        CFG_FLASH_EMPTY_INFO    1
-#define        CFG_MAX_FLASH_BANKS     1
-#define        CFG_FLASH_PROTECTION
+#define        CONFIG_SYS_FLASH_EMPTY_INFO     1
+#define        CONFIG_SYS_MAX_FLASH_BANKS      1
+#define        CONFIG_SYS_FLASH_PROTECTION
 
 #endif                                         /* __CONFIG_H */
index aac03a17aa14213d1cd529d84e3289806dc61c85..16af845001edf374d5eb83224ee4f9370c3247f7 100644 (file)
@@ -41,8 +41,8 @@
  * used for the RAM copy of the uboot code
  *
  */
-#define CFG_MALLOC_LEN         (256*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN          (256*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
  * I2C bus
  */
 #define CONFIG_HARD_I2C                        1
-#define CFG_I2C_SPEED                  50000
-#define CFG_I2C_SLAVE                  0xfe
+#define CONFIG_SYS_I2C_SPEED                   50000
+#define CONFIG_SYS_I2C_SLAVE                   0xfe
 
 #define CONFIG_RTC_PCF8563             1
-#define CFG_I2C_RTC_ADDR               0x51
+#define CONFIG_SYS_I2C_RTC_ADDR                0x51
 
-#define CFG_I2C_EEPROM_ADDR            0x58    /* A0 = 0 (hardwired)           */
-#define CFG_EEPROM_PAGE_WRITE_BITS     4       /* 4 bits = 16 octets           */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* between stop and start       */
-#define CFG_I2C_EEPROM_ADDR_LEN                1       /* length of address            */
-#define CFG_EEPROM_SIZE                        2048    /* size in bytes                */
-#undef CFG_I2C_INIT_BOARD                      /* board has no own init        */
+#define CONFIG_SYS_I2C_EEPROM_ADDR             0x58    /* A0 = 0 (hardwired)           */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4       /* 4 bits = 16 octets           */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* between stop and start       */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1       /* length of address            */
+#define CONFIG_SYS_EEPROM_SIZE                 2048    /* size in bytes                */
+#undef CONFIG_SYS_I2C_INIT_BOARD                       /* board has no own init        */
 
 /*
  * select serial console configuration
 /*
  * Miscellaneous configurable options
  */
-#define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt       */
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
 
-#define CFG_MEMTEST_START      0xa0400000      /* memtest works on             */
-#define CFG_MEMTEST_END                0xa0800000      /* 4 ... 8 MB in DRAM           */
+#define CONFIG_SYS_MEMTEST_START       0xa0400000      /* memtest works on             */
+#define CONFIG_SYS_MEMTEST_END         0xa0800000      /* 4 ... 8 MB in DRAM           */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR          0xa3000000      /* default load address */
+#define CONFIG_SYS_LOAD_ADDR           0xa3000000      /* default load address */
 
-#define CFG_HZ                 3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED           0x161           /* set core clock to 400/400/100 MHz */
+#define CONFIG_SYS_HZ                  3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED            0x161           /* set core clock to 400/400/100 MHz */
 
                                                /* valid baudrates */
 
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
 /*
  * Definitions related to passing arguments to kernel.
 #define PHYS_FLASH_BANK_SIZE   0x01000000 /* 16 MB Banks       */
 #define PHYS_FLASH_SECT_SIZE   0x00040000 /* 256 KB sectors (x2) */
 
-#define CFG_DRAM_BASE          0xa0000000
-#define CFG_DRAM_SIZE          0x04000000
+#define CONFIG_SYS_DRAM_BASE           0xa0000000
+#define CONFIG_SYS_DRAM_SIZE           0x04000000
 
-#define CFG_FLASH_BASE         PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE          PHYS_FLASH_1
 
 /*
  * FLASH and environment organization
  */
-#define CFG_MAX_FLASH_BANKS    1     /* max number of memory banks             */
-#define CFG_MAX_FLASH_SECT     128   /* max number of sectors on one chip      */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1     /* max number of memory banks             */
+#define CONFIG_SYS_MAX_FLASH_SECT      128   /* max number of sectors on one chip      */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT   (2*CFG_HZ)      /* Timeout for Flash Erase      */
-#define CFG_FLASH_WRITE_TOUT   (2*CFG_HZ)      /* Timeout for Flash Write      */
-#define CFG_FLASH_LOCK_TOUT    (2*CFG_HZ)      /* Timeout for Flash Set Lock Bit */
-#define CFG_FLASH_UNLOCK_TOUT  (2*CFG_HZ)      /* Timeout for Flash Clear Lock Bits */
-#define CFG_FLASH_PROTECTION                   /* "Real" (hardware) sectors protection */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    (2*CONFIG_SYS_HZ)       /* Timeout for Flash Erase      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    (2*CONFIG_SYS_HZ)       /* Timeout for Flash Write      */
+#define CONFIG_SYS_FLASH_LOCK_TOUT     (2*CONFIG_SYS_HZ)       /* Timeout for Flash Set Lock Bit */
+#define CONFIG_SYS_FLASH_UNLOCK_TOUT   (2*CONFIG_SYS_HZ)       /* Timeout for Flash Clear Lock Bits */
+#define CONFIG_SYS_FLASH_PROTECTION                    /* "Real" (hardware) sectors protection */
 
 #define CONFIG_ENV_IS_IN_FLASH 1
 #define CONFIG_ENV_ADDR                (PHYS_FLASH_1 + 0x40000)        /* Addr of Environment Sector   */
 #define CONFIG_ENV_SIZE                0x4000
 #define CONFIG_ENV_SECT_SIZE   0x40000                         /* Size of the Environment Sector       */
-#define CFG_MONITOR_LEN                0x20000                         /* 128 KiB */
+#define CONFIG_SYS_MONITOR_LEN         0x20000                         /* 128 KiB */
 
 /******************************************************************************
  *
  *
  */
 /* Pin direction control */
-#define CFG_GPDR0_VAL      0xd3808000
-#define CFG_GPDR1_VAL      0xfcffab83
-#define CFG_GPDR2_VAL      0x0001ffff
+#define CONFIG_SYS_GPDR0_VAL       0xd3808000
+#define CONFIG_SYS_GPDR1_VAL       0xfcffab83
+#define CONFIG_SYS_GPDR2_VAL       0x0001ffff
 /* Set and Clear registers */
-#define CFG_GPSR0_VAL      0x00008000
-#define CFG_GPSR1_VAL      0x00ff0002
-#define CFG_GPSR2_VAL      0x0001c000
-#define CFG_GPCR0_VAL      0x00000000
-#define CFG_GPCR1_VAL      0x00000000
-#define CFG_GPCR2_VAL      0x00000000
+#define CONFIG_SYS_GPSR0_VAL       0x00008000
+#define CONFIG_SYS_GPSR1_VAL       0x00ff0002
+#define CONFIG_SYS_GPSR2_VAL       0x0001c000
+#define CONFIG_SYS_GPCR0_VAL       0x00000000
+#define CONFIG_SYS_GPCR1_VAL       0x00000000
+#define CONFIG_SYS_GPCR2_VAL       0x00000000
 /* Edge detect registers (these are set by the kernel) */
-#define CFG_GRER0_VAL      0x00002180
-#define CFG_GRER1_VAL      0x00000000
-#define CFG_GRER2_VAL      0x00000000
-#define CFG_GFER0_VAL      0x000043e0
-#define CFG_GFER1_VAL      0x00000000
-#define CFG_GFER2_VAL      0x00000000
+#define CONFIG_SYS_GRER0_VAL       0x00002180
+#define CONFIG_SYS_GRER1_VAL       0x00000000
+#define CONFIG_SYS_GRER2_VAL       0x00000000
+#define CONFIG_SYS_GFER0_VAL       0x000043e0
+#define CONFIG_SYS_GFER1_VAL       0x00000000
+#define CONFIG_SYS_GFER2_VAL       0x00000000
 /* Alternate function registers */
-#define CFG_GAFR0_L_VAL            0x80000004
-#define CFG_GAFR0_U_VAL            0x595a8010
-#define CFG_GAFR1_L_VAL            0x699a9559
-#define CFG_GAFR1_U_VAL            0xaaa5aaaa
-#define CFG_GAFR2_L_VAL            0xaaaaaaaa
-#define CFG_GAFR2_U_VAL            0x00000002
+#define CONFIG_SYS_GAFR0_L_VAL     0x80000004
+#define CONFIG_SYS_GAFR0_U_VAL     0x595a8010
+#define CONFIG_SYS_GAFR1_L_VAL     0x699a9559
+#define CONFIG_SYS_GAFR1_U_VAL     0xaaa5aaaa
+#define CONFIG_SYS_GAFR2_L_VAL     0xaaaaaaaa
+#define CONFIG_SYS_GAFR2_U_VAL     0x00000002
 
 /*
  * Clocks, power control and interrupts
  */
-#define CFG_PSSR_VAL       0x00000030
-#define CFG_CCCR_VAL       0x00000161  /* 100 MHz memory, 400 MHz CPU, 400 Turbo  */
-#define CFG_CKEN_VAL       0x000141ec  /* FFUART and STUART enabled    */
-#define CFG_ICMR_VAL       0x00000000  /* No interrupts enabled        */
+#define CONFIG_SYS_PSSR_VAL        0x00000030
+#define CONFIG_SYS_CCCR_VAL        0x00000161  /* 100 MHz memory, 400 MHz CPU, 400 Turbo  */
+#define CONFIG_SYS_CKEN_VAL        0x000141ec  /* FFUART and STUART enabled    */
+#define CONFIG_SYS_ICMR_VAL        0x00000000  /* No interrupts enabled        */
 
 /* FIXME
  *
  * Memory settings
  *
  */
-#define CFG_MSC0_VAL       0x122423f0  /* FLASH   / LAN            (cs0)/(cS1)   */
-#define CFG_MSC1_VAL       0x35f4aa4c  /* USB     / ST3+ST5        (cs2)/(cS3)   */
-#define CFG_MSC2_VAL       0x35f435fc  /* IDE     / BCR + WatchDog (cs4)/(cS5)   */
-#define CFG_MDCNFG_VAL     0x000009c9
-#define CFG_MDMRS_VAL      0x00220022
-#define CFG_MDREFR_VAL     0x000da018  /* Initial setting, individual bits set in lowlevel_init.S */
+#define CONFIG_SYS_MSC0_VAL        0x122423f0  /* FLASH   / LAN            (cs0)/(cS1)   */
+#define CONFIG_SYS_MSC1_VAL        0x35f4aa4c  /* USB     / ST3+ST5        (cs2)/(cS3)   */
+#define CONFIG_SYS_MSC2_VAL        0x35f435fc  /* IDE     / BCR + WatchDog (cs4)/(cS5)   */
+#define CONFIG_SYS_MDCNFG_VAL      0x000009c9
+#define CONFIG_SYS_MDMRS_VAL       0x00220022
+#define CONFIG_SYS_MDREFR_VAL      0x000da018  /* Initial setting, individual bits set in lowlevel_init.S */
 
 /*
  * PCMCIA and CF Interfaces (NOT USED, these values from lubbock init)
  */
-#define CFG_MECR_VAL         0x00000000
-#define CFG_MCMEM0_VAL       0x00010504
-#define CFG_MCMEM1_VAL       0x00010504
-#define CFG_MCATT0_VAL       0x00010504
-#define CFG_MCATT1_VAL       0x00010504
-#define CFG_MCIO0_VAL        0x00004715
-#define CFG_MCIO1_VAL        0x00004715
+#define CONFIG_SYS_MECR_VAL          0x00000000
+#define CONFIG_SYS_MCMEM0_VAL        0x00010504
+#define CONFIG_SYS_MCMEM1_VAL        0x00010504
+#define CONFIG_SYS_MCATT0_VAL        0x00010504
+#define CONFIG_SYS_MCATT1_VAL        0x00010504
+#define CONFIG_SYS_MCIO0_VAL         0x00004715
+#define CONFIG_SYS_MCIO1_VAL         0x00004715
 
 /* Board specific defines */
 
index 443392f6d9d21a287139fe7381a4f3c43bc86f8f..b72741375349df7c0e2dd747c261cfb6b0ac51f2 100644 (file)
 #define CONFIG_DOS_PARTITION           1
 #define BOARD_LATE_INIT                        1
 #undef  CONFIG_USE_IRQ                                 /* we don't need IRQ/FIQ stuff */
-#define CFG_HZ                         3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_HZ                          3686400         /* incrementer freq: 3.6864 MHz */
 
 #undef  CONFIG_USE_IRQ                                 /* we don't need IRQ/FIQ stuff */
-#define CFG_HZ                         3686400         /* incrementer freq: 3.6864 MHz */
-#define CFG_CPUSPEED                   0x161           /* set core clock to 400/200/100 MHz */
+#define CONFIG_SYS_HZ                          3686400         /* incrementer freq: 3.6864 MHz */
+#define CONFIG_SYS_CPUSPEED                    0x161           /* set core clock to 400/200/100 MHz */
 
 #define CONFIG_NR_DRAM_BANKS           1               /* we have 1 bank of DRAM */
 #define PHYS_SDRAM_1                   0xa0000000      /* SDRAM Bank #1 */
 #define PHYS_SDRAM_3_SIZE              0x00000000      /* 0 MB */
 #define PHYS_SDRAM_4                   0xac000000      /* SDRAM Bank #4 */
 #define PHYS_SDRAM_4_SIZE              0x00000000      /* 0 MB */
-#define CFG_DRAM_BASE                  0xa0000000
-#define CFG_DRAM_SIZE                  0x04000000
+#define CONFIG_SYS_DRAM_BASE                   0xa0000000
+#define CONFIG_SYS_DRAM_SIZE                   0x04000000
 
 /* FLASH organization */
-#define CFG_MAX_FLASH_BANKS            1               /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT             128             /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS             1               /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT              128             /* max number of sectors on one chip    */
 #define PHYS_FLASH_1                   0x00000000      /* Flash Bank #1 */
 #define PHYS_FLASH_2                   0x00000000      /* Flash Bank #2 */
 #define PHYS_FLASH_SECT_SIZE           0x00020000      /* 127 KB sectors */
-#define CFG_FLASH_BASE                 PHYS_FLASH_1
+#define CONFIG_SYS_FLASH_BASE                  PHYS_FLASH_1
 
 /*
  * JFFS2 partitions
 #define CONFIG_ENV_SIZE                    0x4000                              /* 16kB Total Size of Environment Sector */
 
 /* timeout values are in ticks */
-#define CFG_FLASH_ERASE_TOUT           (75*CFG_HZ)     /* Timeout for Flash Erase */
-#define CFG_FLASH_WRITE_TOUT           (50*CFG_HZ)     /* Timeout for Flash Write */
+#define CONFIG_SYS_FLASH_ERASE_TOUT            (75*CONFIG_SYS_HZ)      /* Timeout for Flash Erase */
+#define CONFIG_SYS_FLASH_WRITE_TOUT            (50*CONFIG_SYS_HZ)      /* Timeout for Flash Write */
 
 /* Size of malloc() pool */
-#define CFG_MALLOC_LEN                 (CONFIG_ENV_SIZE + 256*1024)
-#define CFG_GBL_DATA_SIZE              128             /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN                  (CONFIG_ENV_SIZE + 256*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE               128             /* size in bytes reserved for initial data */
 
 /* Hardware drivers */
 #define CONFIG_DRIVER_SMC91111
 #define CONFIG_CMDLINE_TAG
 
 /* Miscellaneous configurable options */
-#define CFG_HUSH_PARSER                        1
-#define CFG_PROMPT_HUSH_PS2            "> "
-#define CFG_LONGHELP                                                           /* undef to save memory */
-#define CFG_PROMPT                     "XS-Engine u-boot> "                    /* Monitor Command Prompt */
-#define CFG_CBSIZE                     256                                     /* Console I/O Buffer Size */
-#define CFG_PBSIZE                     (CFG_CBSIZE+sizeof(CFG_PROMPT)+16)      /* Print Buffer Size */
-#define CFG_MAXARGS                    16                                      /* max number of command args */
-#define CFG_BARGSIZE                   CFG_CBSIZE                              /* Boot Argument Buffer Size */
-#define CFG_MEMTEST_START              0xA0400000                              /* memtest works on     */
-#define CFG_MEMTEST_END                        0xA0800000                              /* 4 ... 8 MB in DRAM   */
-#undef  CFG_CLKS_IN_HZ                                                         /* everything, incl board info, in Hz */
-#define CFG_BAUDRATE_TABLE             { 9600, 19200, 38400, 57600, 115200 }   /* valid baudrates */
-#define CFG_MMC_BASE                   0xF0000000
-#define CFG_LOAD_ADDR                  0xA0000000                              /* load kernel to this address   */
+#define CONFIG_SYS_HUSH_PARSER                 1
+#define CONFIG_SYS_PROMPT_HUSH_PS2             "> "
+#define CONFIG_SYS_LONGHELP                                                            /* undef to save memory */
+#define CONFIG_SYS_PROMPT                      "XS-Engine u-boot> "                    /* Monitor Command Prompt */
+#define CONFIG_SYS_CBSIZE                      256                                     /* Console I/O Buffer Size */
+#define CONFIG_SYS_PBSIZE                      (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)        /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS                     16                                      /* max number of command args */
+#define CONFIG_SYS_BARGSIZE                    CONFIG_SYS_CBSIZE                               /* Boot Argument Buffer Size */
+#define CONFIG_SYS_MEMTEST_START               0xA0400000                              /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END                 0xA0800000                              /* 4 ... 8 MB in DRAM   */
+#undef  CONFIG_SYS_CLKS_IN_HZ                                                          /* everything, incl board info, in Hz */
+#define CONFIG_SYS_BAUDRATE_TABLE              { 9600, 19200, 38400, 57600, 115200 }   /* valid baudrates */
+#define CONFIG_SYS_MMC_BASE                    0xF0000000
+#define CONFIG_SYS_LOAD_ADDR                   0xA0000000                              /* load kernel to this address   */
 
 /* Stack sizes - The stack sizes are set up in start.S using the settings below */
 #define CONFIG_STACKSIZE               (128*1024)      /* regular stack */
 #endif
 
 /* GP set register */
-#define CFG_GPSR0_VAL                  0x0000A000      /* CS1, PROG(FPGA) */
-#define CFG_GPSR1_VAL                  0x00020000      /* nPWE */
-#define CFG_GPSR2_VAL                  0x0000C000      /* CS2, CS3 */
+#define CONFIG_SYS_GPSR0_VAL                   0x0000A000      /* CS1, PROG(FPGA) */
+#define CONFIG_SYS_GPSR1_VAL                   0x00020000      /* nPWE */
+#define CONFIG_SYS_GPSR2_VAL                   0x0000C000      /* CS2, CS3 */
 
 /* GP clear register */
-#define CFG_GPCR0_VAL                  0x00000000
-#define CFG_GPCR1_VAL                  0x00000000
-#define CFG_GPCR2_VAL                  0x00000000
+#define CONFIG_SYS_GPCR0_VAL                   0x00000000
+#define CONFIG_SYS_GPCR1_VAL                   0x00000000
+#define CONFIG_SYS_GPCR2_VAL                   0x00000000
 
 /* GP direction register */
-#define CFG_GPDR0_VAL                  0x0000A000      /* CS1, PROG(FPGA) */
-#define CFG_GPDR1_VAL                  0x00022A80      /* nPWE, FFUART + BTUART pins */
-#define CFG_GPDR2_VAL                  0x0000C000      /* CS2, CS3 */
+#define CONFIG_SYS_GPDR0_VAL                   0x0000A000      /* CS1, PROG(FPGA) */
+#define CONFIG_SYS_GPDR1_VAL                   0x00022A80      /* nPWE, FFUART + BTUART pins */
+#define CONFIG_SYS_GPDR2_VAL                   0x0000C000      /* CS2, CS3 */
 
 /* GP rising edge detect register */
-#define CFG_GRER0_VAL                  0x00000000
-#define CFG_GRER1_VAL                  0x00000000
-#define CFG_GRER2_VAL                  0x00000000
+#define CONFIG_SYS_GRER0_VAL                   0x00000000
+#define CONFIG_SYS_GRER1_VAL                   0x00000000
+#define CONFIG_SYS_GRER2_VAL                   0x00000000
 
 /* GP falling edge detect register */
-#define CFG_GFER0_VAL                  0x00000000
-#define CFG_GFER1_VAL                  0x00000000
-#define CFG_GFER2_VAL                  0x00000000
+#define CONFIG_SYS_GFER0_VAL                   0x00000000
+#define CONFIG_SYS_GFER1_VAL                   0x00000000
+#define CONFIG_SYS_GFER2_VAL                   0x00000000
 
 /* GP alternate function register */
-#define CFG_GAFR0_L_VAL                        0x80000000      /* CS1 */
-#define CFG_GAFR0_U_VAL                        0x00000010      /* RDY */
-#define CFG_GAFR1_L_VAL                        0x09988050      /* FFUART + BTUART pins */
-#define CFG_GAFR1_U_VAL                        0x00000008      /* nPWE */
-#define CFG_GAFR2_L_VAL                        0xA0000000      /* CS2, CS3 */
-#define CFG_GAFR2_U_VAL                        0x00000000
-
-#define CFG_PSSR_VAL                   0x00000020      /* Power manager sleep status */
-#define CFG_CCCR_VAL                   0x00000161      /* 100 MHz memory, 400 MHz CPU  */
-#define CFG_CKEN_VAL                   0x000000C0      /* BTUART and FFUART enabled    */
-#define CFG_ICMR_VAL                   0x00000000      /* No interrupts enabled        */
+#define CONFIG_SYS_GAFR0_L_VAL                 0x80000000      /* CS1 */
+#define CONFIG_SYS_GAFR0_U_VAL                 0x00000010      /* RDY */
+#define CONFIG_SYS_GAFR1_L_VAL                 0x09988050      /* FFUART + BTUART pins */
+#define CONFIG_SYS_GAFR1_U_VAL                 0x00000008      /* nPWE */
+#define CONFIG_SYS_GAFR2_L_VAL                 0xA0000000      /* CS2, CS3 */
+#define CONFIG_SYS_GAFR2_U_VAL                 0x00000000
+
+#define CONFIG_SYS_PSSR_VAL                    0x00000020      /* Power manager sleep status */
+#define CONFIG_SYS_CCCR_VAL                    0x00000161      /* 100 MHz memory, 400 MHz CPU  */
+#define CONFIG_SYS_CKEN_VAL                    0x000000C0      /* BTUART and FFUART enabled    */
+#define CONFIG_SYS_ICMR_VAL                    0x00000000      /* No interrupts enabled        */
 
 /* Memory settings */
-#define CFG_MSC0_VAL                   0x25F425F0
+#define CONFIG_SYS_MSC0_VAL                    0x25F425F0
 
 /* MDCNFG: SDRAM Configuration Register */
-#define CFG_MDCNFG_VAL                 0x000009C9
+#define CONFIG_SYS_MDCNFG_VAL                  0x000009C9
 
 /* MDREFR: SDRAM Refresh Control Register */
-#define CFG_MDREFR_VAL                 0x00018018
+#define CONFIG_SYS_MDREFR_VAL                  0x00018018
 
 /* MDMRS: Mode Register Set Configuration Register */
-#define CFG_MDMRS_VAL                  0x00220022
+#define CONFIG_SYS_MDMRS_VAL                   0x00220022
 
 #endif /* __CONFIG_H */
index 0e337146576a0f4b1e1ea9f8c3be55c043e54344..6a9270306dac81ff363fdf98d7ef7ecd485b1765 100644 (file)
 #define        CONFIG_XILINX_UARTLITE
 #define        CONFIG_SERIAL_BASE      XILINX_UARTLITE_BASEADDR
 #define        CONFIG_BAUDRATE         XILINX_UARTLITE_BAUDRATE
-#define        CFG_BAUDRATE_TABLE      { CONFIG_BAUDRATE }
+#define        CONFIG_SYS_BAUDRATE_TABLE       { CONFIG_BAUDRATE }
 #else
 #ifdef XILINX_UART16550_BASEADDR
-#define CFG_NS16550
-#define CFG_NS16550_SERIAL
-#define CFG_NS16550_REG_SIZE   4
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE    4
 #define CONFIG_CONS_INDEX      1
-#define CFG_NS16550_COM1       XILINX_UART16550_BASEADDR
-#define CFG_NS16550_CLK                XILINX_UART16550_CLOCK_HZ
+#define CONFIG_SYS_NS16550_COM1        XILINX_UART16550_BASEADDR
+#define CONFIG_SYS_NS16550_CLK         XILINX_UART16550_CLOCK_HZ
 #define        CONFIG_BAUDRATE         115200
-#define        CFG_BAUDRATE_TABLE      { 9600, 115200 }
+#define        CONFIG_SYS_BAUDRATE_TABLE       { 9600, 115200 }
 #endif
 #endif
 
  * setting reset address
  *
  * TEXT_BASE is set to place, where the U-BOOT run in RAM, but
- * if you want to store U-BOOT in flash, set CFG_RESET_ADDRESS
+ * if you want to store U-BOOT in flash, set CONFIG_SYS_RESET_ADDRESS
  * to FLASH memory and after loading bitstream jump to FLASH.
  * U-BOOT auto-relocate to TEXT_BASE. After RESET command Microblaze
- * jump to CFG_RESET_ADDRESS where is the original U-BOOT code.
+ * jump to CONFIG_SYS_RESET_ADDRESS where is the original U-BOOT code.
  */
-/* #define     CFG_RESET_ADDRESS       0x36000000 */
+/* #define     CONFIG_SYS_RESET_ADDRESS        0x36000000 */
 
 /* ethernet */
 #ifdef XILINX_EMAC_BASEADDR
 #define CONFIG_XILINX_EMAC     1
-#define CFG_ENET
+#define CONFIG_SYS_ENET
 #else
 #ifdef XILINX_EMACLITE_BASEADDR
 #define CONFIG_XILINX_EMACLITE 1
-#define CFG_ENET
+#define CONFIG_SYS_ENET
 #endif
 #endif
 #undef ET_DEBUG
 
 /* gpio */
 #ifdef XILINX_GPIO_BASEADDR
-#define        CFG_GPIO_0              1
-#define        CFG_GPIO_0_ADDR         XILINX_GPIO_BASEADDR
+#define        CONFIG_SYS_GPIO_0               1
+#define        CONFIG_SYS_GPIO_0_ADDR          XILINX_GPIO_BASEADDR
 #endif
 
 /* interrupt controller */
 #ifdef XILINX_INTC_BASEADDR
-#define        CFG_INTC_0              1
-#define        CFG_INTC_0_ADDR         XILINX_INTC_BASEADDR
-#define        CFG_INTC_0_NUM          XILINX_INTC_NUM_INTR_INPUTS
+#define        CONFIG_SYS_INTC_0               1
+#define        CONFIG_SYS_INTC_0_ADDR          XILINX_INTC_BASEADDR
+#define        CONFIG_SYS_INTC_0_NUM           XILINX_INTC_NUM_INTR_INPUTS
 #endif
 
 /* timer */
 #ifdef XILINX_TIMER_BASEADDR
 #if (XILINX_TIMER_IRQ != -1)
-#define        CFG_TIMER_0             1
-#define        CFG_TIMER_0_ADDR        XILINX_TIMER_BASEADDR
-#define        CFG_TIMER_0_IRQ         XILINX_TIMER_IRQ
+#define        CONFIG_SYS_TIMER_0              1
+#define        CONFIG_SYS_TIMER_0_ADDR XILINX_TIMER_BASEADDR
+#define        CONFIG_SYS_TIMER_0_IRQ          XILINX_TIMER_IRQ
 #define        FREQUENCE               XILINX_CLOCK_FREQ
-#define        CFG_TIMER_0_PRELOAD     ( FREQUENCE/1000 )
+#define        CONFIG_SYS_TIMER_0_PRELOAD      ( FREQUENCE/1000 )
 #endif
 #else
 #ifdef XILINX_CLOCK_FREQ
 /*
  * memory layout - Example
  * TEXT_BASE = 0x3600_0000;
- * CFG_SRAM_BASE = 0x3000_0000;
- * CFG_SRAM_SIZE = 0x1000_0000;
+ * CONFIG_SYS_SRAM_BASE = 0x3000_0000;
+ * CONFIG_SYS_SRAM_SIZE = 0x1000_0000;
  *
- * CFG_GBL_DATA_OFFSET = 0x3000_0000 + 0x1000_0000 - 0x1000 = 0x3FFF_F000
- * CFG_MONITOR_BASE = 0x3FFF_F000 - 0x40000 = 0x3FFB_F000
- * CFG_MALLOC_BASE = 0x3FFB_F000 - 0x40000 = 0x3FF7_F000
+ * CONFIG_SYS_GBL_DATA_OFFSET = 0x3000_0000 + 0x1000_0000 - 0x1000 = 0x3FFF_F000
+ * CONFIG_SYS_MONITOR_BASE = 0x3FFF_F000 - 0x40000 = 0x3FFB_F000
+ * CONFIG_SYS_MALLOC_BASE = 0x3FFB_F000 - 0x40000 = 0x3FF7_F000
  *
- * 0x3000_0000 CFG_SDRAM_BASE
+ * 0x3000_0000 CONFIG_SYS_SDRAM_BASE
  *                                     FREE
  * 0x3600_0000 TEXT_BASE
  *             U-BOOT code
  *                                     FREE
  *
  *                                     STACK
- * 0x3FF7_F000 CFG_MALLOC_BASE
+ * 0x3FF7_F000 CONFIG_SYS_MALLOC_BASE
  *                                     MALLOC_AREA     256kB   Alloc
- * 0x3FFB_F000 CFG_MONITOR_BASE
+ * 0x3FFB_F000 CONFIG_SYS_MONITOR_BASE
  *                                     MONITOR_CODE    256kB   Env
- * 0x3FFF_F000 CFG_GBL_DATA_OFFSET
+ * 0x3FFF_F000 CONFIG_SYS_GBL_DATA_OFFSET
  *                                     GLOBAL_DATA     4kB     bd, gd
- * 0x4000_0000 CFG_SDRAM_BASE + CFG_SDRAM_SIZE
+ * 0x4000_0000 CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE
  */
 
 /* ddr sdram - main memory */
-#define        CFG_SDRAM_BASE          XILINX_RAM_START
-#define        CFG_SDRAM_SIZE          XILINX_RAM_SIZE
-#define        CFG_MEMTEST_START       CFG_SDRAM_BASE
-#define        CFG_MEMTEST_END         (CFG_SDRAM_BASE + 0x1000)
+#define        CONFIG_SYS_SDRAM_BASE           XILINX_RAM_START
+#define        CONFIG_SYS_SDRAM_SIZE           XILINX_RAM_SIZE
+#define        CONFIG_SYS_MEMTEST_START        CONFIG_SYS_SDRAM_BASE
+#define        CONFIG_SYS_MEMTEST_END          (CONFIG_SYS_SDRAM_BASE + 0x1000)
 
 /* global pointer */
-#define        CFG_GBL_DATA_SIZE       0x1000  /* size of global data */
-#define        CFG_GBL_DATA_OFFSET     (CFG_SDRAM_BASE + CFG_SDRAM_SIZE - CFG_GBL_DATA_SIZE) /* start of global data */
+#define        CONFIG_SYS_GBL_DATA_SIZE        0x1000  /* size of global data */
+#define        CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE) /* start of global data */
 
 /* monitor code */
 #define        SIZE                    0x40000
-#define        CFG_MONITOR_LEN         SIZE
-#define        CFG_MONITOR_BASE        (CFG_GBL_DATA_OFFSET - CFG_MONITOR_LEN)
-#define        CFG_MONITOR_END         (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
-#define        CFG_MALLOC_LEN          SIZE
-#define        CFG_MALLOC_BASE         (CFG_MONITOR_BASE - CFG_MALLOC_LEN)
+#define        CONFIG_SYS_MONITOR_LEN          SIZE
+#define        CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_MONITOR_LEN)
+#define        CONFIG_SYS_MONITOR_END          (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
+#define        CONFIG_SYS_MALLOC_LEN           SIZE
+#define        CONFIG_SYS_MALLOC_BASE          (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
 
 /* stack */
-#define        CFG_INIT_SP_OFFSET      CFG_MALLOC_BASE
+#define        CONFIG_SYS_INIT_SP_OFFSET       CONFIG_SYS_MALLOC_BASE
 
-#define        CFG_NO_FLASH            1
+#define        CONFIG_SYS_NO_FLASH             1
 #define        CONFIG_ENV_IS_NOWHERE   1
 #define        CONFIG_ENV_SIZE         0x1000
-#define        CONFIG_ENV_ADDR         (CFG_MONITOR_BASE - CONFIG_ENV_SIZE)
+#define        CONFIG_ENV_ADDR         (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE)
 
 /*
  * BOOTP options
 #define CONFIG_CMD_CACHE
 #define CONFIG_CMD_IRQ
 
-#ifndef CFG_ENET
+#ifndef CONFIG_SYS_ENET
        #undef CONFIG_CMD_NET
 #else
        #define CONFIG_CMD_PING
 #endif
 
 /* Miscellaneous configurable options */
-#define        CFG_PROMPT      "U-Boot-mONStR> "
-#define        CFG_CBSIZE      512     /* size of console buffer */
-#define        CFG_PBSIZE      (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) /* print buffer size */
-#define        CFG_MAXARGS     15      /* max number of command args */
-#define        CFG_LONGHELP
-#define        CFG_LOAD_ADDR   0x12000000 /* default load address */
+#define        CONFIG_SYS_PROMPT       "U-Boot-mONStR> "
+#define        CONFIG_SYS_CBSIZE       512     /* size of console buffer */
+#define        CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* print buffer size */
+#define        CONFIG_SYS_MAXARGS      15      /* max number of command args */
+#define        CONFIG_SYS_LONGHELP
+#define        CONFIG_SYS_LOAD_ADDR    0x12000000 /* default load address */
 
 #define        CONFIG_BOOTDELAY        30
 #define        CONFIG_BOOTARGS         "root=romfs"
 #define        CONFIG_ETHADDR          00:E0:0C:00:00:FD
 
 /* architecture dependent code */
-#define        CFG_USR_EXCEP   /* user exception */
-#define CFG_HZ 1000
+#define        CONFIG_SYS_USR_EXCEP    /* user exception */
+#define CONFIG_SYS_HZ  1000
 
 #define CONFIG_PREBOOT "echo U-BOOT by mONStR;"        \
        "base 0;" \
 #define        CONFIG_SYSTEMACE
 /* #define DEBUG_SYSTEMACE */
 #define        SYSTEMACE_CONFIG_FPGA
-#define        CFG_SYSTEMACE_BASE      XILINX_SYSACE_BASEADDR
-#define        CFG_SYSTEMACE_WIDTH     XILINX_SYSACE_MEM_WIDTH
+#define        CONFIG_SYS_SYSTEMACE_BASE       XILINX_SYSACE_BASEADDR
+#define        CONFIG_SYS_SYSTEMACE_WIDTH      XILINX_SYSACE_MEM_WIDTH
 #define        CONFIG_DOS_PARTITION
 #endif
 
index 06389f3804b42deab51c6698621ad6d6a7952477..b66ab58d86fcdfa623ebce0c83663d3bf0814114 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xfc000000          /* start of FLASH   */
-#define CFG_PCI_MEMBASE                0xa0000000          /* mapped pci memory*/
-#define CFG_PCI_MEMBASE1        CFG_PCI_MEMBASE  + 0x10000000
-#define CFG_PCI_MEMBASE2        CFG_PCI_MEMBASE1 + 0x10000000
-#define CFG_PCI_MEMBASE3        CFG_PCI_MEMBASE2 + 0x10000000
+#define CONFIG_SYS_FLASH_BASE          0xfc000000          /* start of FLASH   */
+#define CONFIG_SYS_PCI_MEMBASE         0xa0000000          /* mapped pci memory*/
+#define CONFIG_SYS_PCI_MEMBASE1        CONFIG_SYS_PCI_MEMBASE  + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE2        CONFIG_SYS_PCI_MEMBASE1 + 0x10000000
+#define CONFIG_SYS_PCI_MEMBASE3        CONFIG_SYS_PCI_MEMBASE2 + 0x10000000
 
 /*Don't change either of these*/
-#define CFG_PERIPHERAL_BASE     0xef600000         /* internal peripherals*/
-#define CFG_PCI_BASE           0xe0000000          /* internal PCI regs*/
+#define CONFIG_SYS_PERIPHERAL_BASE     0xef600000          /* internal peripherals*/
+#define CONFIG_SYS_PCI_BASE            0xe0000000          /* internal PCI regs*/
 /*Don't change either of these*/
 
-#define CFG_USB_DEVICE          0x50000000
-#define CFG_NVRAM_BASE_ADDR     0x80000000
-#define CFG_BCSR_BASE          (CFG_NVRAM_BASE_ADDR | 0x2000)
-#define CFG_BOOT_BASE_ADDR      0xf0000000
+#define CONFIG_SYS_USB_DEVICE          0x50000000
+#define CONFIG_SYS_NVRAM_BASE_ADDR     0x80000000
+#define CONFIG_SYS_BCSR_BASE           (CONFIG_SYS_NVRAM_BASE_ADDR | 0x2000)
+#define CONFIG_SYS_BOOT_BASE_ADDR      0xf0000000
 
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in SDRAM)
  *----------------------------------------------------------------------*/
-#define CFG_INIT_RAM_DCACHE    1               /* d-cache as init ram  */
-#define CFG_INIT_RAM_ADDR      0x70000000              /* DCache       */
-#define CFG_INIT_RAM_END       (4 << 10)
-#define CFG_GBL_DATA_SIZE      256                     /* num bytes initial data*/
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
+#define CONFIG_SYS_INIT_RAM_DCACHE     1               /* d-cache as init ram  */
+#define CONFIG_SYS_INIT_RAM_ADDR       0x70000000              /* DCache       */
+#define CONFIG_SYS_INIT_RAM_END        (4 << 10)
+#define CONFIG_SYS_GBL_DATA_SIZE       256                     /* num bytes initial data*/
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_GBL_DATA_OFFSET
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#define CFG_EXT_SERIAL_CLOCK   11059200 /* use external 11.059MHz clk  */
+#define CONFIG_SYS_EXT_SERIAL_CLOCK    11059200 /* use external 11.059MHz clk  */
 /*define this if you want console on UART1*/
 #undef CONFIG_UART1_CONSOLE
 
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
-#define CFG_FLASH_CFI_AMD_RESET 1              /* AMD RESET for STM 29W320DB!  */
+#define CONFIG_SYS_FLASH_CFI_AMD_RESET 1               /* AMD RESET for STM 29W320DB!  */
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  * DDR SDRAM
  *----------------------------------------------------------------------*/
 #undef CONFIG_SPD_EEPROM              /* Don't use SPD EEPROM for setup    */
-#define CFG_KBYTES_SDRAM        (128 * 1024)    /* 128MB                   */
-#define CFG_SDRAM_BANKS                (2)
+#define CONFIG_SYS_KBYTES_SDRAM        (128 * 1024)    /* 128MB                    */
+#define CONFIG_SYS_SDRAM_BANKS         (2)
 
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CFG_I2C_MULTI_EEPROMS
-#define CFG_I2C_EEPROM_ADDR    (0xa8>>1)
-#define CFG_I2C_EEPROM_ADDR_LEN 1
-#define CFG_EEPROM_PAGE_WRITE_BITS 3
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#define CONFIG_SYS_I2C_EEPROM_ADDR     (0xa8>>1)
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 #ifdef CONFIG_ENV_IS_IN_EEPROM
 #define CONFIG_ENV_SIZE                0x200       /* Size of Environment vars */
 #define CONFIG_DTT_LM75                1               /* ON Semi's LM75       */
 #define CONFIG_DTT_AD7414      1               /* use AD7414           */
 #define CONFIG_DTT_SENSORS     {0}             /* Sensor addresses     */
-#define CFG_DTT_MAX_TEMP       70
-#define CFG_DTT_LOW_TEMP       -30
-#define CFG_DTT_HYSTERESIS     3
+#define CONFIG_SYS_DTT_MAX_TEMP        70
+#define CONFIG_SYS_DTT_LOW_TEMP        -30
+#define CONFIG_SYS_DTT_HYSTERESIS      3
 
 /*
  * Default environment variables
 /* USB */
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_USB_STORAGE
-#define CFG_OHCI_BE_CONTROLLER
+#define CONFIG_SYS_OHCI_BE_CONTROLLER
 
-#undef CFG_USB_OHCI_BOARD_INIT
-#define CFG_USB_OHCI_CPU_INIT  1
-#define CFG_USB_OHCI_REGS_BASE (CFG_PERIPHERAL_BASE | 0x1000)
-#define CFG_USB_OHCI_SLOT_NAME "ppc440"
-#define CFG_USB_OHCI_MAX_ROOT_PORTS    15
+#undef CONFIG_SYS_USB_OHCI_BOARD_INIT
+#define CONFIG_SYS_USB_OHCI_CPU_INIT   1
+#define CONFIG_SYS_USB_OHCI_REGS_BASE  (CONFIG_SYS_PERIPHERAL_BASE | 0x1000)
+#define CONFIG_SYS_USB_OHCI_SLOT_NAME  "ppc440"
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS     15
 
 /* Comment this out to enable USB 1.1 device */
 #define USB_2_0_DEVICE
 #define CONFIG_PCI                     /* include pci support          */
 #undef  CONFIG_PCI_PNP                 /* do (not) pci plug-and-play   */
 #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */
-#define CFG_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CFG_PCI_MEMBASE*/
+#define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT
-#define CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT
+#define CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x10e8 /* AMCC */
-#define CFG_PCI_SUBSYS_ID       0xcafe /* Whatever */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8  /* AMCC */
+#define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe  /* Whatever */
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  *----------------------------------------------------------------------*/
-#define CFG_FLASH              CFG_FLASH_BASE
-#define CFG_CPLD               0x80000000
+#define CONFIG_SYS_FLASH               CONFIG_SYS_FLASH_BASE
+#define CONFIG_SYS_CPLD                0x80000000
 
 /* Memory Bank 0 (NOR-FLASH) initialization                                    */
-#define CFG_EBC_PB0AP          0x03017300
-#define CFG_EBC_PB0CR          (CFG_FLASH | 0xda000)
+#define CONFIG_SYS_EBC_PB0AP           0x03017300
+#define CONFIG_SYS_EBC_PB0CR           (CONFIG_SYS_FLASH | 0xda000)
 
 /* Memory Bank 2 (CPLD) initialization                                         */
-#define CFG_EBC_PB2AP          0x04814500
-#define CFG_EBC_PB2CR          (CFG_CPLD | 0x18000)
+#define CONFIG_SYS_EBC_PB2AP           0x04814500
+#define CONFIG_SYS_EBC_PB2CR           (CONFIG_SYS_CPLD | 0x18000)
 
-#define CFG_BCSR5_PCI66EN      0x80
+#define CONFIG_SYS_BCSR5_PCI66EN       0x80
 
 #endif /* __CONFIG_H */
index 92d45d0344e2a09791841a9a95636b489ed1b9fb..b165bd7a118d330a004b61eb01a25cbe52f4e9f4 100644 (file)
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  *----------------------------------------------------------------------*/
-#define CFG_FLASH_BASE         0xfff00000      /* start of FLASH       */
-#define CFG_PERIPHERAL_BASE    0xa0000000      /* internal peripherals */
-#define CFG_ISRAM_BASE         0x90000000      /* internal SRAM        */
+#define CONFIG_SYS_FLASH_BASE          0xfff00000      /* start of FLASH       */
+#define CONFIG_SYS_PERIPHERAL_BASE     0xa0000000      /* internal peripherals */
+#define CONFIG_SYS_ISRAM_BASE          0x90000000      /* internal SRAM        */
 
-#define CFG_PCI_MEMBASE                0x80000000      /* mapped PCI memory    */
-#define CFG_PCI_BASE           0xd0000000      /* internal PCI regs    */
-#define CFG_PCI_TARGBASE       CFG_PCI_MEMBASE
+#define CONFIG_SYS_PCI_MEMBASE         0x80000000      /* mapped PCI memory    */
+#define CONFIG_SYS_PCI_BASE            0xd0000000      /* internal PCI regs    */
+#define CONFIG_SYS_PCI_TARGBASE        CONFIG_SYS_PCI_MEMBASE
 
-#define CFG_PCIE_MEMBASE       0xb0000000      /* mapped PCIe memory   */
-#define CFG_PCIE_MEMSIZE       0x08000000      /* smallest incr for PCIe port */
-#define CFG_PCIE_BASE          0xe0000000      /* PCIe UTL regs */
+#define CONFIG_SYS_PCIE_MEMBASE        0xb0000000      /* mapped PCIe memory   */
+#define CONFIG_SYS_PCIE_MEMSIZE        0x08000000      /* smallest incr for PCIe port */
+#define CONFIG_SYS_PCIE_BASE           0xe0000000      /* PCIe UTL regs */
 
-#define CFG_PCIE0_CFGBASE      0xc0000000
-#define CFG_PCIE1_CFGBASE      0xc1000000
-#define CFG_PCIE2_CFGBASE      0xc2000000
-#define CFG_PCIE0_XCFGBASE     0xc3000000
-#define CFG_PCIE1_XCFGBASE     0xc3001000
-#define CFG_PCIE2_XCFGBASE     0xc3002000
+#define CONFIG_SYS_PCIE0_CFGBASE       0xc0000000
+#define CONFIG_SYS_PCIE1_CFGBASE       0xc1000000
+#define CONFIG_SYS_PCIE2_CFGBASE       0xc2000000
+#define CONFIG_SYS_PCIE0_XCFGBASE      0xc3000000
+#define CONFIG_SYS_PCIE1_XCFGBASE      0xc3001000
+#define CONFIG_SYS_PCIE2_XCFGBASE      0xc3002000
 
 /* base address of inbound PCIe window */
-#define CFG_PCIE_INBOUND_BASE  0x0000000400000000ULL
+#define CONFIG_SYS_PCIE_INBOUND_BASE   0x0000000400000000ULL
 
 /* System RAM mapped to PCI space */
-#define CONFIG_PCI_SYS_MEM_BUS CFG_SDRAM_BASE
-#define CONFIG_PCI_SYS_MEM_PHYS        CFG_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_BUS CONFIG_SYS_SDRAM_BASE
+#define CONFIG_PCI_SYS_MEM_PHYS        CONFIG_SYS_SDRAM_BASE
 #define CONFIG_PCI_SYS_MEM_SIZE        (1024 * 1024 * 1024)
 
-#define CFG_FPGA_BASE          0xe2000000      /* epld                 */
-#define CFG_OPER_FLASH         0xe7000000      /* SRAM - OPER Flash    */
+#define CONFIG_SYS_FPGA_BASE           0xe2000000      /* epld                 */
+#define CONFIG_SYS_OPER_FLASH          0xe7000000      /* SRAM - OPER Flash    */
 
-/* #define CFG_NVRAM_BASE_ADDR 0x08000000 */
+/* #define CONFIG_SYS_NVRAM_BASE_ADDR 0x08000000 */
 /*-----------------------------------------------------------------------
  * Initial RAM & stack pointer (placed in internal SRAM)
  *----------------------------------------------------------------------*/
-#define CFG_TEMP_STACK_OCM     1
-#define CFG_OCM_DATA_ADDR      CFG_ISRAM_BASE
-#define CFG_INIT_RAM_ADDR      CFG_ISRAM_BASE  /* Initial RAM address  */
-#define CFG_INIT_RAM_END       0x2000          /* End of used area in RAM */
-#define CFG_GBL_DATA_SIZE      128             /* num bytes initial data */
+#define CONFIG_SYS_TEMP_STACK_OCM      1
+#define CONFIG_SYS_OCM_DATA_ADDR       CONFIG_SYS_ISRAM_BASE
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_ISRAM_BASE   /* Initial RAM address  */
+#define CONFIG_SYS_INIT_RAM_END        0x2000          /* End of used area in RAM */
+#define CONFIG_SYS_GBL_DATA_SIZE       128             /* num bytes initial data */
 
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 0x4)
-#define CFG_INIT_SP_OFFSET     CFG_POST_WORD_ADDR
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 0x4)
+#define CONFIG_SYS_INIT_SP_OFFSET      CONFIG_SYS_POST_WORD_ADDR
 
 /*-----------------------------------------------------------------------
  * Serial Port
 #undef CONFIG_UART1_CONSOLE
 
 #undef CONFIG_SERIAL_SOFTWARE_FIFO
-#undef CFG_EXT_SERIAL_CLOCK
-/* #define CFG_EXT_SERIAL_CLOCK        (1843200 * 6) */ /* Ext clk @ 11.059 MHz */
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK
+/* #define CONFIG_SYS_EXT_SERIAL_CLOCK (1843200 * 6) */ /* Ext clk @ 11.059 MHz */
 
 /*-----------------------------------------------------------------------
  * DDR SDRAM
 /*-----------------------------------------------------------------------
  * I2C
  *----------------------------------------------------------------------*/
-#define CFG_I2C_SPEED          400000  /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
 #define IIC0_BOOTPROM_ADDR     0x50
 #define IIC0_ALT_BOOTPROM_ADDR 0x54
 
 /* Don't probe these addrs */
-#define CFG_I2C_NOPROBES       {0x50, 0x52, 0x53, 0x54}
+#define CONFIG_SYS_I2C_NOPROBES        {0x50, 0x52, 0x53, 0x54}
 
 /* #if defined(CONFIG_CMD_EEPROM) */
-/* #define CFG_I2C_EEPROM_ADDR 0x50 */ /* I2C boot EEPROM              */
-#define CFG_I2C_EEPROM_ADDR_LEN        2       /* Bytes of address             */
+/* #define CONFIG_SYS_I2C_EEPROM_ADDR  0x50 */ /* I2C boot EEPROM              */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2       /* Bytes of address             */
 /* #endif */
 
 /*-----------------------------------------------------------------------
  * Environment
  *----------------------------------------------------------------------*/
-/* #define CFG_NVRAM_SIZE      (0x2000 - 8) */ /* NVRAM size(8k)- RTC regs */
+/* #define CONFIG_SYS_NVRAM_SIZE       (0x2000 - 8) */ /* NVRAM size(8k)- RTC regs */
 
 #undef  CONFIG_ENV_IS_IN_NVRAM         /* ... not in NVRAM             */
 #define        CONFIG_ENV_IS_IN_FLASH  1       /* Environment uses flash       */
 /*-----------------------------------------------------------------------
  * FLASH related
  *----------------------------------------------------------------------*/
-#define CFG_MAX_FLASH_BANKS    3       /* number of banks              */
-#define CFG_MAX_FLASH_SECT     256     /* sectors per device           */
+#define CONFIG_SYS_MAX_FLASH_BANKS     3       /* number of banks              */
+#define CONFIG_SYS_MAX_FLASH_SECT      256     /* sectors per device           */
 
-#undef CFG_FLASH_CHECKSUM
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms) */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms) */
+#undef CONFIG_SYS_FLASH_CHECKSUM
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms) */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms) */
 
-#define CFG_FLASH_ADDR0                0x5555
-#define CFG_FLASH_ADDR1                0x2aaa
-#define CFG_FLASH_WORD_SIZE    unsigned char
+#define CONFIG_SYS_FLASH_ADDR0         0x5555
+#define CONFIG_SYS_FLASH_ADDR1         0x2aaa
+#define CONFIG_SYS_FLASH_WORD_SIZE     unsigned char
 
-#define CFG_FLASH_2ND_16BIT_DEV        1       /* evb440SPe has 8 and 16bit device */
-#define CFG_FLASH_2ND_ADDR     0xe7c00000 /* evb440SPe has 8 and 16bit device*/
+#define CONFIG_SYS_FLASH_2ND_16BIT_DEV 1       /* evb440SPe has 8 and 16bit device */
+#define CONFIG_SYS_FLASH_2ND_ADDR      0xe7c00000 /* evb440SPe has 8 and 16bit device*/
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x10000 /* size of one complete sector  */
 #define CONFIG_ENV_ADDR                0xfffa0000
-/* #define CONFIG_ENV_ADDR             (CFG_MONITOR_BASE-CONFIG_ENV_SECT_SIZE) */
+/* #define CONFIG_ENV_ADDR             (CONFIG_SYS_MONITOR_BASE-CONFIG_ENV_SECT_SIZE) */
 #define CONFIG_ENV_SIZE                0x10000 /* Size of Environment vars     */
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 /*-----------------------------------------------------------------------
 #define CONFIG_PCI_CONFIG_HOST_BRIDGE
 
 /* Board-specific PCI */
-#define CFG_PCI_TARGET_INIT            /* let board init pci target    */
-#undef CFG_PCI_MASTER_INIT
+#define CONFIG_SYS_PCI_TARGET_INIT             /* let board init pci target    */
+#undef CONFIG_SYS_PCI_MASTER_INIT
 
-#define CFG_PCI_SUBSYS_VENDORID 0x1014 /* IBM                          */
-#define CFG_PCI_SUBSYS_DEVICEID 0xcafe /* Whatever                     */
-/* #define CFG_PCI_SUBSYS_ID   CFG_PCI_SUBSYS_DEVICEID */
+#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1014  /* IBM                          */
+#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0xcafe  /* Whatever                     */
+/* #define CONFIG_SYS_PCI_SUBSYS_ID    CONFIG_SYS_PCI_SUBSYS_DEVICEID */
 
 /*
  *  NETWORK Support (PCI):
index abf6bd3023f3f0a59e10c0b335046116d6493945..b75e8a118a7042084600f8c24a4bd97a1807d29f 100644 (file)
@@ -51,7 +51,7 @@
 #define CONFIG_HAS_ETH1                1
 #define CONFIG_PHY1_ADDR       0x11    /* EMAC1 PHY address            */
 #define CONFIG_NET_MULTI       1
-#define CFG_RX_ETH_BUFFER      16      /* Number of ethernet rx buffers & descriptors */
+#define CONFIG_SYS_RX_ETH_BUFFER       16      /* Number of ethernet rx buffers & descriptors */
 #define CONFIG_PHY_RESET       1
 #define CONFIG_PHY_RESET_DELAY 300     /* PHY RESET recovery delay     */
 
 #define CONFIG_CMD_REGINFO
 
 /* POST support */
-#define CONFIG_POST            (CFG_POST_MEMORY   | \
-                                CFG_POST_CPU      | \
-                                CFG_POST_CACHE    | \
-                                CFG_POST_UART     | \
-                                CFG_POST_ETHER)
+#define CONFIG_POST            (CONFIG_SYS_POST_MEMORY   | \
+                                CONFIG_SYS_POST_CPU       | \
+                                CONFIG_SYS_POST_CACHE     | \
+                                CONFIG_SYS_POST_UART      | \
+                                CONFIG_SYS_POST_ETHER)
 
-#define CFG_POST_ETHER_EXT_LOOPBACK    /* eth POST using ext loopack connector */
+#define CONFIG_SYS_POST_ETHER_EXT_LOOPBACK     /* eth POST using ext loopack connector */
 
 /* Define here the base-addresses of the UARTs to test in POST */
-#define CFG_POST_UART_TABLE    {UART0_BASE}
+#define CONFIG_SYS_POST_UART_TABLE     {UART0_BASE}
 
 #define CONFIG_LOGBUFFER
-#define CFG_POST_CACHE_ADDR    0x00800000 /* free virtual address      */
+#define CONFIG_SYS_POST_CACHE_ADDR     0x00800000 /* free virtual address      */
 
-#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
+#define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
 
 #undef CONFIG_WATCHDOG                 /* watchdog disabled            */
 
 #define CONFIG_SDRAM_BANK1     1       /* init onboard SDRAM bank 1 */
 
 /* SDRAM timings used in datasheet */
-#define CFG_SDRAM_CL            3      /* CAS latency */
-#define CFG_SDRAM_tRP           20     /* PRECHARGE command period */
-#define CFG_SDRAM_tRC           66     /* ACTIVE-to-ACTIVE command period */
-#define CFG_SDRAM_tRCD          20     /* ACTIVE-to-READ delay */
-#define CFG_SDRAM_tRFC         66      /* Auto refresh period */
+#define CONFIG_SYS_SDRAM_CL            3       /* CAS latency */
+#define CONFIG_SYS_SDRAM_tRP           20      /* PRECHARGE command period */
+#define CONFIG_SYS_SDRAM_tRC           66      /* ACTIVE-to-ACTIVE command period */
+#define CONFIG_SYS_SDRAM_tRCD          20      /* ACTIVE-to-READ delay */
+#define CONFIG_SYS_SDRAM_tRFC          66      /* Auto refresh period */
 
 /*-----------------------------------------------------------------------
  * Serial Port
  *----------------------------------------------------------------------*/
-#undef CFG_EXT_SERIAL_CLOCK                    /* external serial clock */
-#define CFG_BASE_BAUD          691200
+#undef CONFIG_SYS_EXT_SERIAL_CLOCK                     /* external serial clock */
+#define CONFIG_SYS_BASE_BAUD           691200
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_SERIAL_MULTI
 
 /* The following table includes the supported baudrates */
-#define CFG_BAUDRATE_TABLE     \
+#define CONFIG_SYS_BAUDRATE_TABLE      \
        {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
 
 /*-----------------------------------------------------------------------
  * Miscellaneous configurable options
  *----------------------------------------------------------------------*/
-#define CFG_LONGHELP                   /* undef to save memory         */
-#define CFG_PROMPT             "=> "   /* Monitor Command Prompt       */
+#define CONFIG_SYS_LONGHELP                    /* undef to save memory         */
+#define CONFIG_SYS_PROMPT              "=> "   /* Monitor Command Prompt       */
 #if defined(CONFIG_CMD_KGDB)
-#define CFG_CBSIZE             1024    /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              1024    /* Console I/O Buffer Size      */
 #else
-#define CFG_CBSIZE             256     /* Console I/O Buffer Size      */
+#define CONFIG_SYS_CBSIZE              256     /* Console I/O Buffer Size      */
 #endif
-#define CFG_PBSIZE              (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16      /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE /* Boot Argument Buffer Size */
+#define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16      /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size  */
 
-#define CFG_MEMTEST_START      0x0400000 /* memtest works on           */
-#define CFG_MEMTEST_END                0x0C00000 /* 4 ... 12 MB in DRAM        */
+#define CONFIG_SYS_MEMTEST_START       0x0400000 /* memtest works on           */
+#define CONFIG_SYS_MEMTEST_END         0x0C00000 /* 4 ... 12 MB in DRAM        */
 
-#define CFG_LOAD_ADDR          0x100000  /* default load address       */
-#define CFG_EXTBDINFO          1       /* To use extended board_into (bd_t) */
+#define CONFIG_SYS_LOAD_ADDR           0x100000  /* default load address       */
+#define CONFIG_SYS_EXTBDINFO           1       /* To use extended board_into (bd_t) */
 
-#define CFG_HZ                 1000    /* decrementer freq: 1 ms ticks */
+#define CONFIG_SYS_HZ                  1000    /* decrementer freq: 1 ms ticks */
 
 #define CONFIG_LOADS_ECHO      1       /* echo on for serial download  */
-#define CFG_LOADS_BAUD_CHANGE  1       /* allow baudrate change        */
+#define CONFIG_SYS_LOADS_BAUD_CHANGE   1       /* allow baudrate change        */
 
 #define CONFIG_CMDLINE_EDITING 1       /* add command line history     */
 #define CONFIG_LOOPW            1       /* enable loopw command         */
  *----------------------------------------------------------------------*/
 #define CONFIG_HARD_I2C                1               /* I2C with hardware support    */
 #undef CONFIG_SOFT_I2C                         /* I2C bit-banged               */
-#define CFG_I2C_SPEED          400000          /* I2C speed and slave address  */
-#define CFG_I2C_SLAVE          0x7F
+#define CONFIG_SYS_I2C_SPEED           400000          /* I2C speed and slave address  */
+#define CONFIG_SYS_I2C_SLAVE           0x7F
 
 /* these are for the ST M24C02 2kbit serial i2c eeprom */
-#define CFG_I2C_EEPROM_ADDR    0x50            /* base address */
-#define CFG_I2C_EEPROM_ADDR_LEN        1               /* bytes of address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50            /* base address */
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1               /* bytes of address */
 /* mask of address bits that overflow into the "EEPROM chip address"    */
-#define CFG_I2C_EEPROM_ADDR_OVERFLOW   0x07
+#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW    0x07
 
-#define CFG_EEPROM_PAGE_WRITE_BITS     3       /* 8 byte write page size */
-#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* and takes up to 10 msec */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3       /* 8 byte write page size */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10      /* and takes up to 10 msec */
 
 /*
  * The layout of the I2C EEPROM, used for bootstrap setup and for board-
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
  * (Set up by the startup code)
- * Please note that CFG_SDRAM_BASE _must_ start at 0
+ * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  */
-#define CFG_SDRAM_BASE         0x00000000
-#define CFG_FLASH_BASE         0xFF000000
-#define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve 256 kB for Monitor   */
-#define CFG_MALLOC_LEN         (128 * 1024)    /* Reserve 128 kB for malloc()  */
-#define CFG_MONITOR_BASE       (-CFG_MONITOR_LEN)
+#define CONFIG_SYS_SDRAM_BASE          0x00000000
+#define CONFIG_SYS_FLASH_BASE          0xFF000000
+#define CONFIG_SYS_MONITOR_LEN         (256 * 1024)    /* Reserve 256 kB for Monitor   */
+#define CONFIG_SYS_MALLOC_LEN          (128 * 1024)    /* Reserve 128 kB for malloc()  */
+#define CONFIG_SYS_MONITOR_BASE        (-CONFIG_SYS_MONITOR_LEN)
 
 /*
  * For booting Linux, the board info and command line data
  * have to be in the first 8 MB of memory, since this is
  * the maximum mapped by the Linux kernel during initialization.
  */
-#define CFG_BOOTMAPSZ          (8 << 20)       /* Initial Memory map for Linux */
+#define CONFIG_SYS_BOOTMAPSZ           (8 << 20)       /* Initial Memory map for Linux */
 
 /*-----------------------------------------------------------------------
  * FLASH organization
  */
-#define CFG_FLASH_CFI                          /* The flash is CFI compatible  */
+#define CONFIG_SYS_FLASH_CFI                           /* The flash is CFI compatible  */
 #define CONFIG_FLASH_CFI_DRIVER                        /* Use common CFI driver        */
 
-#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE }
+#define CONFIG_SYS_FLASH_BANKS_LIST    { CONFIG_SYS_FLASH_BASE }
 
-#define CFG_MAX_FLASH_BANKS    1       /* max number of memory banks           */
-#define CFG_MAX_FLASH_SECT     512     /* max number of sectors on one chip    */
+#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks           */
+#define CONFIG_SYS_MAX_FLASH_SECT      512     /* max number of sectors on one chip    */
 
-#define CFG_FLASH_ERASE_TOUT   120000  /* Timeout for Flash Erase (in ms)      */
-#define CFG_FLASH_WRITE_TOUT   500     /* Timeout for Flash Write (in ms)      */
+#define CONFIG_SYS_FLASH_ERASE_TOUT    120000  /* Timeout for Flash Erase (in ms)      */
+#define CONFIG_SYS_FLASH_WRITE_TOUT    500     /* Timeout for Flash Write (in ms)      */
 
-#define CFG_FLASH_USE_BUFFER_WRITE 1   /* use buffered writes (20x faster)     */
-#define CFG_FLASH_PROTECTION   1       /* use hardware flash protection        */
+#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1    /* use buffered writes (20x faster)     */
+#define CONFIG_SYS_FLASH_PROTECTION    1       /* use hardware flash protection        */
 
-#define CFG_FLASH_EMPTY_INFO           /* print 'E' for empty sector on flinfo */
-#define CFG_FLASH_QUIET_TEST   1       /* don't warn upon unknown flash        */
+#define CONFIG_SYS_FLASH_EMPTY_INFO            /* print 'E' for empty sector on flinfo */
+#define CONFIG_SYS_FLASH_QUIET_TEST    1       /* don't warn upon unknown flash        */
 
 #ifdef CONFIG_ENV_IS_IN_FLASH
 #define CONFIG_ENV_SECT_SIZE   0x20000 /* size of one complete sector          */
-#define CONFIG_ENV_ADDR                ((-CFG_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
+#define CONFIG_ENV_ADDR                ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE)
 #define        CONFIG_ENV_SIZE         0x2000  /* Total Size of Environment Sector     */
 
 /* Address and size of Redundant Environment Sector    */
  * Definitions for initial stack pointer and data area (in data cache)
  */
 /* use on chip memory (OCM) for temperary stack until sdram is tested */
-#define CFG_TEMP_STACK_OCM     1
+#define CONFIG_SYS_TEMP_STACK_OCM      1
 
 /* On Chip Memory location */
-#define CFG_OCM_DATA_ADDR      0xF8000000
-#define CFG_OCM_DATA_SIZE      0x1000
-#define CFG_INIT_RAM_ADDR      CFG_OCM_DATA_ADDR /* inside of OCM              */
-#define CFG_INIT_RAM_END       CFG_OCM_DATA_SIZE /* End of used area in RAM    */
+#define CONFIG_SYS_OCM_DATA_ADDR       0xF8000000
+#define CONFIG_SYS_OCM_DATA_SIZE       0x1000
+#define CONFIG_SYS_INIT_RAM_ADDR       CONFIG_SYS_OCM_DATA_ADDR /* inside of OCM               */
+#define CONFIG_SYS_INIT_RAM_END        CONFIG_SYS_OCM_DATA_SIZE /* End of used area in RAM     */
 
-#define CFG_GBL_DATA_SIZE      128  /* size in bytes reserved for initial data */
-#define CFG_GBL_DATA_OFFSET    (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
+#define CONFIG_SYS_GBL_DATA_SIZE       128  /* size in bytes reserved for initial data */
+#define CONFIG_SYS_GBL_DATA_OFFSET     (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
 /* reserve some memory for POST and BOOT limit info */
-#define CFG_INIT_SP_OFFSET     (CFG_GBL_DATA_OFFSET - 16)
+#define CONFIG_SYS_INIT_SP_OFFSET      (CONFIG_SYS_GBL_DATA_OFFSET - 16)
 
 /* extra data in OCM */
-#define CFG_POST_WORD_ADDR     (CFG_GBL_DATA_OFFSET - 4)
-#define CFG_POST_MAGIC         (CFG_OCM_DATA_ADDR + CFG_GBL_DATA_OFFSET - 8)
-#define CFG_POST_VAL           (CFG_OCM_DATA_ADDR + CFG_GBL_DATA_OFFSET - 12)
+#define CONFIG_SYS_POST_WORD_ADDR      (CONFIG_SYS_GBL_DATA_OFFSET - 4)
+#define CONFIG_SYS_POST_MAGIC          (CONFIG_SYS_OCM_DATA_ADDR + CONFIG_SYS_GBL_DATA_OFFSET - 8)
+#define CONFIG_SYS_POST_VAL            (CONFIG_SYS_OCM_DATA_ADDR + CONFIG_SYS_GBL_DATA_OFFSET - 12)
 
 /*-----------------------------------------------------------------------
  * External Bus Controller (EBC) Setup
  */
 
 /* Memory Bank 0 (Flash 16M) initialization                                    */
-#define CFG_EBC_PB0AP          0x05815600
-#define CFG_EBC_PB0CR          0xFF09A000  /* BAS=0xFF0,BS=16MB,BU=R/W,BW=16bit  */
+#define CONFIG_SYS_EBC_PB0AP           0x05815600
+#define CONFIG_SYS_EBC_PB0CR           0xFF09A000  /* BAS=0xFF0,BS=16MB,BU=R/W,BW=16bit  */
 
 /*-----------------------------------------------------------------------
  * Definitions for GPIO setup (PPC405EP specific)
  * GPIO0[28-29] - UART1 data signal input/output
  * GPIO0[30-31] - EMAC0 and EMAC1 reject packet inputs
  */
-#define CFG_GPIO0_OSRH         0x15555550      /* Chip selects */
-#define CFG_GPIO0_OSRL         0x00000110      /* UART_DTR-pin 27 alt out */
-#define CFG_GPIO0_ISR1H                0x10000041      /* Pin 2, 12 is input */
-#define CFG_GPIO0_ISR1L                0x15505440      /* OUT: LEDs 22/23; IN: pin12,2, NVALID# */
-#define CFG_GPIO0_TSRH         0x00000000
-#define CFG_GPIO0_TSRL         0x00000000
-#define CFG_GPIO0_TCR          0xBFF68317      /* 3-state OUT: 22/23/29; 12,2 is not 3-state */
-#define CFG_GPIO0_ODR          0x00000000
-
-#define CFG_GPIO_SW_RESET      1
-#define CFG_GPIO_ZEUS_PE       12
-#define CFG_GPIO_LED_RED       22
-#define CFG_GPIO_LED_GREEN     23
+#define CONFIG_SYS_GPIO0_OSRH          0x15555550      /* Chip selects */
+#define CONFIG_SYS_GPIO0_OSRL          0x00000110      /* UART_DTR-pin 27 alt out */
+#define CONFIG_SYS_GPIO0_ISR1H         0x10000041      /* Pin 2, 12 is input */
+#define CONFIG_SYS_GPIO0_ISR1L         0x15505440      /* OUT: LEDs 22/23; IN: pin12,2, NVALID# */
+#define CONFIG_SYS_GPIO0_TSRH          0x00000000
+#define CONFIG_SYS_GPIO0_TSRL          0x00000000
+#define CONFIG_SYS_GPIO0_TCR           0xBFF68317      /* 3-state OUT: 22/23/29; 12,2 is not 3-state */
+#define CONFIG_SYS_GPIO0_ODR           0x00000000
+
+#define CONFIG_SYS_GPIO_SW_RESET       1
+#define CONFIG_SYS_GPIO_ZEUS_PE        12
+#define CONFIG_SYS_GPIO_LED_RED        22
+#define CONFIG_SYS_GPIO_LED_GREEN      23
 
 /* Time in milli-seconds */
-#define CFG_TIME_POST          5000
-#define CFG_TIME_FACTORY_RESET 10000
+#define CONFIG_SYS_TIME_POST           5000
+#define CONFIG_SYS_TIME_FACTORY_RESET  10000
 
 /*
  * Internal Definitions
index 148079c000cc5c9d0e2c4710f354891790902832..53397d807f7d88925ad1ca3589885daf77f92fcd 100644 (file)
@@ -50,8 +50,8 @@
 /*
  * Size of malloc() pool
  */
-#define CFG_MALLOC_LEN     (CONFIG_ENV_SIZE + 128*1024)
-#define CFG_GBL_DATA_SIZE      128     /* size in bytes reserved for initial data */
+#define CONFIG_SYS_MALLOC_LEN      (CONFIG_ENV_SIZE + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE       128     /* size in bytes reserved for initial data */
 
 /*
  * Hardware drivers
 /*
  * Miscellaneous configurable options
  */
-#define CFG_HUSH_PARSER                1
-#define CFG_PROMPT_HUSH_PS2    "> "
+#define CONFIG_SYS_HUSH_PARSER         1
+#define CONFIG_SYS_PROMPT_HUSH_PS2     "> "
 
-#define CFG_LONGHELP                           /* undef to save memory         */
-#ifdef CFG_HUSH_PARSER
-#define CFG_PROMPT             "$ "            /* Monitor Command Prompt */
+#define CONFIG_SYS_LONGHELP                            /* undef to save memory         */
+#ifdef CONFIG_SYS_HUSH_PARSER
+#define CONFIG_SYS_PROMPT              "$ "            /* Monitor Command Prompt */
 #else
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt */
+#define CONFIG_SYS_PROMPT              "=> "           /* Monitor Command Prompt */
 #endif
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
-#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
-#define CFG_MAXARGS            16              /* max number of command args   */
-#define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
-#define CFG_DEVICE_NULLDEV     1
+#define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size      */
+#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
+#define CONFIG_SYS_MAXARGS             16              /* max number of command args   */
+#define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE       /* Boot Argument Buffer Size    */
+#define CONFIG_SYS_DEVICE_NULLDEV      1
 
-#define CFG_MEMTEST_START      0x9c000000      /* memtest works on     */
-#define CFG_MEMTEST_END                0x9c400000      /* 4 ... 8 MB in DRAM   */
+#define CONFIG_SYS_MEMTEST_START       0x9c000000      /* memtest works on     */
+#define CONFIG_SYS_MEMTEST_END         0x9c400000      /* 4 ... 8 MB in DRAM   */
 
-#undef CFG_CLKS_IN_HZ          /* everything, incl board info, in Hz */
+#undef CONFIG_SYS_CLKS_IN_HZ           /* everything, incl board info, in Hz */
 
-#define CFG_LOAD_ADDR  (CFG_DRAM_BASE + 0x8000) /* default load address */
+#define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_DRAM_BASE + 0x8000) /* default load address */
 
-#define CFG_HZ                 3250000         /* incrementer freq: 3.25 MHz */
+#define CONFIG_SYS_HZ                  3250000         /* incrementer freq: 3.25 MHz */
 
 /* Monahans Core Frequency */
-#define CFG_MONAHANS_RUN_MODE_OSC_RATIO                16 /* valid values: 8, 16, 24, 31 */
-#define CFG_MONAHANS_TURBO_RUN_MODE_RATIO      1  /* valid values: 1, 2 */
+#define CONFIG_SYS_MONAHANS_RUN_MODE_OSC_RATIO         16 /* valid values: 8, 16, 24, 31 */
+#define CONFIG_SYS_MONAHANS_TURBO_RUN_MODE_RATIO       1  /* valid values: 1, 2 */
 
                                                /* valid baudrates */
-#define CFG_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
+#define CONFIG_SYS_BAUDRATE_TABLE      { 9600, 19200, 38400, 57600, 115200 }
 
-/* #define CFG_MMC_BASE                0xF0000000 */
+/* #define CONFIG_SYS_MMC_BASE         0xF0000000 */
 
 /*
  * Stack sizes
 #define PHYS_SDRAM_4           0xac000000 /* SDRAM Bank #4 */
 #define PHYS_SDRAM_4_SIZE      0x00000000 /* 0 MB */
 
-#define CFG_DRAM_BASE          0x80000000 /* at CS0 */
-#define CFG_DRAM_SIZE          0x04000000 /* 64 MB Ram */
+#define CONFIG_SYS_DRAM_BASE           0x80000000 /* at CS0 */
+#define CONFIG_SYS_DRAM_SIZE           0x04000000 /* 64 MB Ram */
 
-#undef CFG_SKIP_DRAM_SCRUB
+#undef CONFIG_SYS_SKIP_DRAM_SCRUB
 
 
 /*
  * NAND Flash
  */
 #define CONFIG_NEW_NAND_CODE
-#define CFG_NAND0_BASE         0x0
-#undef CFG_NAND1_BASE
+#define CONFIG_SYS_NAND0_BASE          0x0
+#undef CONFIG_SYS_NAND1_BASE
 
-#define CFG_NAND_BASE_LIST     { CFG_NAND0_BASE }
-#define CFG_MAX_NAND_DEVICE    1       /* Max number of NAND devices */
+#define CONFIG_SYS_NAND_BASE_LIST      { CONFIG_SYS_NAND0_BASE }
+#define CONFIG_SYS_MAX_NAND_DEVICE     1       /* Max number of NAND devices */
 
 /* nand timeout values */
-#define CFG_NAND_PROG_ERASE_TO 3000
-#define CFG_NAND_OTHER_TO      100
-#define CFG_NAND_SENDCMD_RETRY 3
+#define CONFIG_SYS_NAND_PROG_ERASE_TO  3000
+#define CONFIG_SYS_NAND_OTHER_TO       100
+#define CONFIG_SYS_NAND_SENDCMD_RETRY  3
 #undef NAND_ALLOW_ERASE_ALL    /* Allow erasing bad blocks - don't use */
 
 /* NAND Timing Parameters (in ns) */
 #define NAND_TIMING_tAR                10
 
 /* NAND debugging */
-#define CFG_DFC_DEBUG1 /* usefull */
-#undef CFG_DFC_DEBUG2  /* noisy */
-#undef CFG_DFC_DEBUG3  /* extremly noisy  */
+#define CONFIG_SYS_DFC_DEBUG1 /* usefull */
+#undef CONFIG_SYS_DFC_DEBUG2  /* noisy */
+#undef CONFIG_SYS_DFC_DEBUG3  /* extremly noisy  */
 
 #define CONFIG_MTD_DEBUG
 #define CONFIG_MTD_DEBUG_VERBOSE 1
 #define NAND_MAX_FLOORS                1
 #define NAND_MAX_CHIPS         1
 
-#define CFG_NO_FLASH           1
+#define CONFIG_SYS_NO_FLASH            1
 
 #define CONFIG_ENV_IS_IN_NAND  1
 #define CONFIG_ENV_OFFSET              0x40000
index de041397d35f0a906d00c81d2187cfa1471bbefe..63b3bf9634334e7ccd7c7ead82a0e095fed9afb2 100644 (file)
@@ -40,7 +40,7 @@
 /*number of protected area*/
 #define NB_DATAFLASH_AREA              5
 
-#ifdef CFG_NO_FLASH
+#ifdef CONFIG_SYS_NO_FLASH
 
 /*-----------------------------------------------------------------------
  * return codes from flash_write():
@@ -66,7 +66,7 @@
  * Set Environment according to label:
  */
 # define       FLAG_SETENV             0x80
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
 
 /*define the area structure*/
 typedef struct {
@@ -213,7 +213,7 @@ extern void dataflash_print_info (void);
 extern void dataflash_perror (int err);
 extern void AT91F_DataflashSetEnv (void);
 
-extern struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS];
+extern struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS];
 extern dataflash_protect_t area_list[NB_DATAFLASH_AREA];
 extern AT91S_DATAFLASH_INFO dataflash_info[];
 #endif
index 965e82eb04fcbfae01e9e0b9b70d3fa06d383d0c..399b64abac133c978af74909d4b09d35be28964d 100644 (file)
 #define DTT_INDUSTRIAL_MAX_TEMP        85              /* -40 - +85 C */
 #define DTT_AUTOMOTIVE_MAX_TEMP        105             /* -40 - +105 C */
 
-#ifndef CFG_DTT_MAX_TEMP
-#define CFG_DTT_MAX_TEMP DTT_COMMERCIAL_MAX_TEMP
+#ifndef CONFIG_SYS_DTT_MAX_TEMP
+#define CONFIG_SYS_DTT_MAX_TEMP DTT_COMMERCIAL_MAX_TEMP
 #endif
 
-#ifndef CFG_DTT_HYSTERESIS
-#define CFG_DTT_HYSTERESIS     5               /* 5 C */
+#ifndef CONFIG_SYS_DTT_HYSTERESIS
+#define CONFIG_SYS_DTT_HYSTERESIS      5               /* 5 C */
 #endif
 #endif /* CONFIG_DTT_ADM1021 */
 
index 1479eb641aae89511ac0d0b05f99cb5dc650518f..ea6b4d12ec6b61439da0bb5accfe711f1093c41d 100644 (file)
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_OFFSET
-#  define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#  define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 # endif
 # if !defined(CONFIG_ENV_ADDR_REDUND) && defined(CONFIG_ENV_OFFSET_REDUND)
-#  define CONFIG_ENV_ADDR_REDUND       (CFG_FLASH_BASE + CONFIG_ENV_OFFSET_REDUND)
+#  define CONFIG_ENV_ADDR_REDUND       (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET_REDUND)
 # endif
 # if defined(CONFIG_ENV_SECT_SIZE) || defined(CONFIG_ENV_SIZE)
 #  ifndef  CONFIG_ENV_SECT_SIZE
 # if defined(CONFIG_ENV_ADDR_REDUND) && !defined(CONFIG_ENV_SIZE_REDUND)
 #  define CONFIG_ENV_SIZE_REDUND       CONFIG_ENV_SIZE
 # endif
-# if (CONFIG_ENV_ADDR >= CFG_MONITOR_BASE) && \
-     (CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) <= (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
+# if (CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) && \
+     (CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) <= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
 #  define ENV_IS_EMBEDDED      1
 # endif
 # if defined(CONFIG_ENV_ADDR_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
-#  define CFG_REDUNDAND_ENVIRONMENT    1
+#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT     1
 # endif
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 
@@ -77,7 +77,7 @@
 #  error "Need to define CONFIG_ENV_SIZE when using CONFIG_ENV_IS_IN_NAND"
 # endif
 # ifdef CONFIG_ENV_OFFSET_REDUND
-#  define CFG_REDUNDAND_ENVIRONMENT
+#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT
 # endif
 # ifdef CONFIG_ENV_IS_EMBEDDED
 #  define ENV_IS_EMBEDDED      1
@@ -90,7 +90,7 @@
 # include <linux/types.h>
 #endif
 
-#ifdef CFG_REDUNDAND_ENVIRONMENT
+#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
 # define ENV_HEADER_SIZE       (sizeof(uint32_t) + 1)
 #else
 # define ENV_HEADER_SIZE       (sizeof(uint32_t))
 
 typedef        struct environment_s {
        uint32_t        crc;            /* CRC32 over data bytes        */
-#ifdef CFG_REDUNDAND_ENVIRONMENT
+#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
        unsigned char   flags;          /* active/obsolete flags        */
 #endif
        unsigned char   data[ENV_SIZE]; /* Environment data             */
index 6f5d7d5325439407425c47c2e7e17c61892c6a61..a6e91b5e69fb1a8fc8711ea1afdcab7a9d86f529 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef _FLASH_H_
 #define _FLASH_H_
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
 /*-----------------------------------------------------------------------
  * FLASH Info: contains chip specific data, per FLASH bank
  */
@@ -33,9 +33,9 @@ typedef struct {
        ulong   size;                   /* total bank size in bytes             */
        ushort  sector_count;           /* number of erase units                */
        ulong   flash_id;               /* combined device & manufacturer code  */
-       ulong   start[CFG_MAX_FLASH_SECT];   /* physical sector start addresses */
-       uchar   protect[CFG_MAX_FLASH_SECT]; /* sector protection status        */
-#ifdef CFG_FLASH_CFI
+       ulong   start[CONFIG_SYS_MAX_FLASH_SECT];   /* physical sector start addresses */
+       uchar   protect[CONFIG_SYS_MAX_FLASH_SECT]; /* sector protection status */
+#ifdef CONFIG_SYS_FLASH_CFI
        uchar   portwidth;              /* the width of the port                */
        uchar   chipwidth;              /* the width of the chip                */
        ushort  buffer_size;            /* # of bytes in write buffer           */
@@ -100,11 +100,11 @@ extern flash_info_t *addr2info (ulong);
 extern int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt);
 
 /* board/?/flash.c */
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
 extern int flash_real_protect(flash_info_t *info, long sector, int prot);
 extern void flash_read_user_serial(flash_info_t * info, void * buffer, int offset, int len);
 extern void flash_read_factory_serial(flash_info_t * info, void * buffer, int offset, int len);
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
 #ifdef CONFIG_FLASH_CFI_LEGACY
 extern ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info);
@@ -486,6 +486,6 @@ extern int jedec_flash_match(flash_info_t *info, ulong base);
 #define FLASH_ERASE_TIMEOUT    120000  /* timeout for erasing in ms            */
 #define FLASH_WRITE_TIMEOUT    500     /* timeout for writes  in ms            */
 
-#endif /* !CFG_NO_FLASH */
+#endif /* !CONFIG_SYS_NO_FLASH */
 
 #endif /* _FLASH_H_ */
index 52d93b10096517361f50bcd3117671ba1e7957ca..a48b89b3c5f1e37d24d74d205128fbf952ea22bc 100644 (file)
 #endif
 
 /* CONFIG_FPGA bit assignments */
-#define CFG_FPGA_MAN(x)                (x)
-#define CFG_FPGA_DEV(x)                ((x) << 8 )
-#define CFG_FPGA_IF(x)         ((x) << 16 )
+#define CONFIG_SYS_FPGA_MAN(x)         (x)
+#define CONFIG_SYS_FPGA_DEV(x)         ((x) << 8 )
+#define CONFIG_SYS_FPGA_IF(x)          ((x) << 16 )
 
 /* FPGA Manufacturer bits in CONFIG_FPGA */
-#define CFG_FPGA_XILINX                CFG_FPGA_MAN( 0x1 )
-#define CFG_FPGA_ALTERA                CFG_FPGA_MAN( 0x2 )
+#define CONFIG_SYS_FPGA_XILINX         CONFIG_SYS_FPGA_MAN( 0x1 )
+#define CONFIG_SYS_FPGA_ALTERA         CONFIG_SYS_FPGA_MAN( 0x2 )
 
 
 /* fpga_xxxx function return value definitions */
index 49f4dd2d2101c4f89584e396899981e49ae04cbe..c277509298a65c4209de470b9f281034987fafcf 100644 (file)
@@ -23,13 +23,13 @@ extern unsigned int INTERNAL_REG_BASE_ADDR;
 #define GT_64260       0  /* includes both 64260A and 64260B */
 #define GT_64261       1
 
-#if (CFG_GT_6426x == GT_64260)
+#if (CONFIG_SYS_GT_6426x == GT_64260)
 #ifdef CONFIG_ETHER_PORT_MII
 #define GAL_ETH_DEVS 2
 #else
 #define GAL_ETH_DEVS 3
 #endif
-#elif (CFG_GT_6426x == GT_64261)
+#elif (CONFIG_SYS_GT_6426x == GT_64261)
 #define GAL_ETH_DEVS 2
 #else
 #define GAL_ETH_DEVS 3 /* default to a 64260 */
index 9f771dda1057ac7bfe2df90bd97b49685c40dc5f..8d6f867422c4bd6165d5954b5d92ad94e536fd79 100644 (file)
 #define I2C_RXTX_LEN   128     /* maximum tx/rx buffer length */
 
 #if defined(CONFIG_I2C_MULTI_BUS)
-#define CFG_MAX_I2C_BUS                2
+#define CONFIG_SYS_MAX_I2C_BUS         2
 #define I2C_GET_BUS()          i2c_get_bus_num()
 #define I2C_SET_BUS(a)         i2c_set_bus_num(a)
 #else
-#define CFG_MAX_I2C_BUS                1
+#define CONFIG_SYS_MAX_I2C_BUS         1
 #define I2C_GET_BUS()          0
 #define I2C_SET_BUS(a)
 #endif
 
 /* define the I2C bus number for RTC and DTT if not already done */
-#if !defined(CFG_RTC_BUS_NUM)
-#define CFG_RTC_BUS_NUM                0
+#if !defined(CONFIG_SYS_RTC_BUS_NUM)
+#define CONFIG_SYS_RTC_BUS_NUM         0
 #endif
-#if !defined(CFG_DTT_BUS_NUM)
-#define CFG_DTT_BUS_NUM                0
+#if !defined(CONFIG_SYS_DTT_BUS_NUM)
+#define CONFIG_SYS_DTT_BUS_NUM         0
 #endif
-#if !defined(CFG_SPD_BUS_NUM)
-#define CFG_SPD_BUS_NUM                0
+#if !defined(CONFIG_SYS_SPD_BUS_NUM)
+#define CONFIG_SYS_SPD_BUS_NUM         0
 #endif
 
 #ifndef I2C_SOFT_DECLARATIONS
 # if defined(CONFIG_MPC8260)
-#  define I2C_SOFT_DECLARATIONS volatile ioport_t *iop = ioport_addr((immap_t *)CFG_IMMR, I2C_PORT);
+#  define I2C_SOFT_DECLARATIONS volatile ioport_t *iop = ioport_addr((immap_t *)CONFIG_SYS_IMMR, I2C_PORT);
 # elif defined(CONFIG_8xx)
-#  define I2C_SOFT_DECLARATIONS        volatile immap_t *immr = (immap_t *)CFG_IMMR;
+#  define I2C_SOFT_DECLARATIONS        volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
 # else
 #  define I2C_SOFT_DECLARATIONS
 # endif
@@ -81,7 +81,7 @@
  * repeatedly to change the speed and slave addresses.
  */
 void i2c_init(int speed, int slaveaddr);
-#ifdef CFG_I2C_INIT_BOARD
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
 void i2c_init_board(void);
 #endif
 
index f77239fddef7cbfc539c87f45d5654681f671c62..13952899bae08550183381c5cc1c77994e5d5794 100644 (file)
@@ -35,9 +35,9 @@
 
 /* defines */
 
-#define I8042_DATA_REG      (CFG_ISA_IO + 0x0060)    /* keyboard i/o buffer */
-#define I8042_STATUS_REG    (CFG_ISA_IO + 0x0064)    /* keyboard status read */
-#define I8042_COMMAND_REG   (CFG_ISA_IO + 0x0064)    /* keyboard ctrl write */
+#define I8042_DATA_REG      (CONFIG_SYS_ISA_IO + 0x0060)    /* keyboard i/o buffer */
+#define I8042_STATUS_REG    (CONFIG_SYS_ISA_IO + 0x0064)    /* keyboard status read */
+#define I8042_COMMAND_REG   (CONFIG_SYS_ISA_IO + 0x0064)    /* keyboard ctrl write */
 
 #define KBD_US              0        /* default US layout */
 #define KBD_GER             1        /* german layout */
index 222f4f84e48664f25e983b48557cf695c2f883df..ddb9579f8fa07307b807ee1118dea11cf242b7ff 100644 (file)
@@ -26,7 +26,7 @@
 
 #define        IDE_BUS(dev)    (dev >> 1)
 
-#define        ATA_CURR_BASE(dev)      (CFG_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)])
+#define        ATA_CURR_BASE(dev)      (CONFIG_SYS_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)])
 
 #ifdef CONFIG_IDE_LED
 
@@ -40,7 +40,7 @@
 
 #endif /* CONFIG_IDE_LED */
 
-#ifdef CFG_64BIT_LBA
+#ifdef CONFIG_SYS_64BIT_LBA
 typedef uint64_t lbaint_t;
 #else
 typedef ulong lbaint_t;
index 44ac8ef8c7049c602907091b01d8e9620932ccf5..15affb85cbed89d2b7e3cbf7518e8ebcb848fdfe 100644 (file)
@@ -211,8 +211,8 @@ void        lcd_printf      (const char *fmt, ...);
  *  the LCD controller and memory allocation. Someone has to know what
  *  is connected, as we can't autodetect anything.
  */
-#define CFG_HIGH       0       /* Pins are active high                 */
-#define CFG_LOW                1       /* Pins are active low                  */
+#define CONFIG_SYS_HIGH        0       /* Pins are active high                 */
+#define CONFIG_SYS_LOW         1       /* Pins are active low                  */
 
 #define LCD_MONOCHROME 0
 #define LCD_COLOR2     1
index c897a7ceeb5e38931132ceb1320d985972651c07..09a463c8414ad3e8ce41e98b7695a345d30f3135 100644 (file)
@@ -273,7 +273,7 @@ typedef struct {
 #define LH7A40X_GPIOINT_PTR     ((lh7a40x_gpioint_t*) LH7A40X_GPIOINT_BASE)
 
 /* Embedded SRAM */
-#define CFG_SRAM_BASE  (0xB0000000)
-#define CFG_SRAM_SIZE  (80*1024)       /* 80kB */
+#define CONFIG_SYS_SRAM_BASE   (0xB0000000)
+#define CONFIG_SYS_SRAM_SIZE   (80*1024)       /* 80kB */
 
 #endif  /* __LH7A40X_H__ */
index 5518a0a89c217af215a1cc4f192280fb527f57ed..32f0a6140849510998f444e502dd6ae3477cc725 100644 (file)
@@ -42,7 +42,7 @@ int miiphy_reset (char *devname, unsigned char addr);
 int miiphy_speed (char *devname, unsigned char addr);
 int miiphy_duplex (char *devname, unsigned char addr);
 int miiphy_is_1000base_x (char *devname, unsigned char addr);
-#ifdef CFG_FAULT_ECHO_LINK_DOWN
+#ifdef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 int miiphy_link (char *devname, unsigned char addr);
 #endif
 
index a4459c092c2f1a90d6624e1f4e3bec483d659f58..e213fb898fead797ba8f6a7659c85ed2a61709af 100644 (file)
@@ -28,9 +28,9 @@
 
 #if defined(CONFIG_RTC_MK48T59) && defined(CONFIG_CMD_DATE)
 
-#define RTC_PORT_ADDR0         CFG_ISA_IO +  0x70
+#define RTC_PORT_ADDR0         CONFIG_SYS_ISA_IO +  0x70
 #define RTC_PORT_ADDR1         RTC_PORT_ADDR0 +  0x1
-#define RTC_PORT_DATA          CFG_ISA_IO +  0x76
+#define RTC_PORT_DATA          CONFIG_SYS_ISA_IO +  0x76
 
 /* RTC Offsets */
 #define RTC_SECONDS             0x1FF9
index 10ed0f46321864c4e0d6c3a0d428b24363aeb7f4..ef5a95f78df7bb78cd7d5f06afde30aee04fccb7 100644 (file)
@@ -35,7 +35,7 @@
  */
 #define        MPC106_REG                      0x80000000
 
-#ifdef CFG_ADDRESS_MAP_A
+#ifdef CONFIG_SYS_ADDRESS_MAP_A
 #define MPC106_REG_ADDR                        0x80000cf8
 #define        MPC106_REG_DATA                 0x80000cfc
 #define MPC106_ISA_IO_PHYS             0x80000000
index cb418d1e91fdc03c99a22062d8257938d0129ffd..05a206358b04a2b5af0fff8d72dadfdfbea72429 100644 (file)
@@ -572,7 +572,7 @@ void iopin_initialize(iopin_t *,int);
 #define IOCTRL_MUX_DDR         0x00000036
 
  /* Register Offset Base */
-#define MPC512X_FEC            (CFG_IMMR + 0x02800)
+#define MPC512X_FEC            (CONFIG_SYS_IMMR + 0x02800)
 
 /* Number of I2C buses */
 #define I2C_BUS_CNT    3
index 414651fa0f8b81c6b401ecabcf87fb843410c7e4..de6d215d35c7d58a82187357b2f0cc5955fd7d69 100644 (file)
@@ -42,7 +42,7 @@
  * ISB bit in IMMR to set internal memory map
  */
 
-#define CFG_ISB                        ((CFG_IMMR / 0x00400000) << 1)
+#define CONFIG_SYS_ISB                 ((CONFIG_SYS_IMMR / 0x00400000) << 1)
 
 /*-----------------------------------------------------------------------
  * SYPCR - System Protection Control Register
index 0f5bee574edaee4f79563b6d659d23519e9bae1f..3a3282152a83f4538d2c6200d3167d7ba9c58c8e 100644 (file)
 
 /* Internal memory map */
 
-#define MPC5XXX_CS0_START      (CFG_MBAR + 0x0004)
-#define MPC5XXX_CS0_STOP       (CFG_MBAR + 0x0008)
-#define MPC5XXX_CS1_START      (CFG_MBAR + 0x000c)
-#define MPC5XXX_CS1_STOP       (CFG_MBAR + 0x0010)
-#define MPC5XXX_CS2_START      (CFG_MBAR + 0x0014)
-#define MPC5XXX_CS2_STOP       (CFG_MBAR + 0x0018)
-#define MPC5XXX_CS3_START      (CFG_MBAR + 0x001c)
-#define MPC5XXX_CS3_STOP       (CFG_MBAR + 0x0020)
-#define MPC5XXX_CS4_START      (CFG_MBAR + 0x0024)
-#define MPC5XXX_CS4_STOP       (CFG_MBAR + 0x0028)
-#define MPC5XXX_CS5_START      (CFG_MBAR + 0x002c)
-#define MPC5XXX_CS5_STOP       (CFG_MBAR + 0x0030)
-#define MPC5XXX_BOOTCS_START   (CFG_MBAR + 0x004c)
-#define MPC5XXX_BOOTCS_STOP    (CFG_MBAR + 0x0050)
-#define MPC5XXX_ADDECR         (CFG_MBAR + 0x0054)
+#define MPC5XXX_CS0_START      (CONFIG_SYS_MBAR + 0x0004)
+#define MPC5XXX_CS0_STOP       (CONFIG_SYS_MBAR + 0x0008)
+#define MPC5XXX_CS1_START      (CONFIG_SYS_MBAR + 0x000c)
+#define MPC5XXX_CS1_STOP       (CONFIG_SYS_MBAR + 0x0010)
+#define MPC5XXX_CS2_START      (CONFIG_SYS_MBAR + 0x0014)
+#define MPC5XXX_CS2_STOP       (CONFIG_SYS_MBAR + 0x0018)
+#define MPC5XXX_CS3_START      (CONFIG_SYS_MBAR + 0x001c)
+#define MPC5XXX_CS3_STOP       (CONFIG_SYS_MBAR + 0x0020)
+#define MPC5XXX_CS4_START      (CONFIG_SYS_MBAR + 0x0024)
+#define MPC5XXX_CS4_STOP       (CONFIG_SYS_MBAR + 0x0028)
+#define MPC5XXX_CS5_START      (CONFIG_SYS_MBAR + 0x002c)
+#define MPC5XXX_CS5_STOP       (CONFIG_SYS_MBAR + 0x0030)
+#define MPC5XXX_BOOTCS_START   (CONFIG_SYS_MBAR + 0x004c)
+#define MPC5XXX_BOOTCS_STOP    (CONFIG_SYS_MBAR + 0x0050)
+#define MPC5XXX_ADDECR         (CONFIG_SYS_MBAR + 0x0054)
 
 #if defined(CONFIG_MGT5100)
-#define MPC5XXX_SDRAM_START    (CFG_MBAR + 0x0034)
-#define MPC5XXX_SDRAM_STOP     (CFG_MBAR + 0x0038)
-#define MPC5XXX_PCI1_START     (CFG_MBAR + 0x003c)
-#define MPC5XXX_PCI1_STOP      (CFG_MBAR + 0x0040)
-#define MPC5XXX_PCI2_START     (CFG_MBAR + 0x0044)
-#define MPC5XXX_PCI2_STOP      (CFG_MBAR + 0x0048)
+#define MPC5XXX_SDRAM_START    (CONFIG_SYS_MBAR + 0x0034)
+#define MPC5XXX_SDRAM_STOP     (CONFIG_SYS_MBAR + 0x0038)
+#define MPC5XXX_PCI1_START     (CONFIG_SYS_MBAR + 0x003c)
+#define MPC5XXX_PCI1_STOP      (CONFIG_SYS_MBAR + 0x0040)
+#define MPC5XXX_PCI2_START     (CONFIG_SYS_MBAR + 0x0044)
+#define MPC5XXX_PCI2_STOP      (CONFIG_SYS_MBAR + 0x0048)
 #elif defined(CONFIG_MPC5200)
-#define MPC5XXX_CS6_START      (CFG_MBAR + 0x0058)
-#define MPC5XXX_CS6_STOP       (CFG_MBAR + 0x005c)
-#define MPC5XXX_CS7_START      (CFG_MBAR + 0x0060)
-#define MPC5XXX_CS7_STOP       (CFG_MBAR + 0x0064)
-#define MPC5XXX_SDRAM_CS0CFG   (CFG_MBAR + 0x0034)
-#define MPC5XXX_SDRAM_CS1CFG   (CFG_MBAR + 0x0038)
+#define MPC5XXX_CS6_START      (CONFIG_SYS_MBAR + 0x0058)
+#define MPC5XXX_CS6_STOP       (CONFIG_SYS_MBAR + 0x005c)
+#define MPC5XXX_CS7_START      (CONFIG_SYS_MBAR + 0x0060)
+#define MPC5XXX_CS7_STOP       (CONFIG_SYS_MBAR + 0x0064)
+#define MPC5XXX_SDRAM_CS0CFG   (CONFIG_SYS_MBAR + 0x0034)
+#define MPC5XXX_SDRAM_CS1CFG   (CONFIG_SYS_MBAR + 0x0038)
 #endif
 
-#define MPC5XXX_SDRAM          (CFG_MBAR + 0x0100)
-#define MPC5XXX_CDM            (CFG_MBAR + 0x0200)
-#define MPC5XXX_LPB            (CFG_MBAR + 0x0300)
-#define MPC5XXX_ICTL           (CFG_MBAR + 0x0500)
-#define MPC5XXX_GPT            (CFG_MBAR + 0x0600)
-#define MPC5XXX_GPIO           (CFG_MBAR + 0x0b00)
-#define MPC5XXX_WU_GPIO         (CFG_MBAR + 0x0c00)
-#define MPC5XXX_PCI            (CFG_MBAR + 0x0d00)
-#define MPC5XXX_SPI            (CFG_MBAR + 0x0f00)
-#define MPC5XXX_USB            (CFG_MBAR + 0x1000)
-#define MPC5XXX_SDMA           (CFG_MBAR + 0x1200)
-#define MPC5XXX_XLBARB         (CFG_MBAR + 0x1f00)
+#define MPC5XXX_SDRAM          (CONFIG_SYS_MBAR + 0x0100)
+#define MPC5XXX_CDM            (CONFIG_SYS_MBAR + 0x0200)
+#define MPC5XXX_LPB            (CONFIG_SYS_MBAR + 0x0300)
+#define MPC5XXX_ICTL           (CONFIG_SYS_MBAR + 0x0500)
+#define MPC5XXX_GPT            (CONFIG_SYS_MBAR + 0x0600)
+#define MPC5XXX_GPIO           (CONFIG_SYS_MBAR + 0x0b00)
+#define MPC5XXX_WU_GPIO         (CONFIG_SYS_MBAR + 0x0c00)
+#define MPC5XXX_PCI            (CONFIG_SYS_MBAR + 0x0d00)
+#define MPC5XXX_SPI            (CONFIG_SYS_MBAR + 0x0f00)
+#define MPC5XXX_USB            (CONFIG_SYS_MBAR + 0x1000)
+#define MPC5XXX_SDMA           (CONFIG_SYS_MBAR + 0x1200)
+#define MPC5XXX_XLBARB         (CONFIG_SYS_MBAR + 0x1f00)
 
 #if defined(CONFIG_MGT5100)
-#define        MPC5XXX_PSC1            (CFG_MBAR + 0x2000)
-#define        MPC5XXX_PSC2            (CFG_MBAR + 0x2400)
-#define        MPC5XXX_PSC3            (CFG_MBAR + 0x2800)
+#define        MPC5XXX_PSC1            (CONFIG_SYS_MBAR + 0x2000)
+#define        MPC5XXX_PSC2            (CONFIG_SYS_MBAR + 0x2400)
+#define        MPC5XXX_PSC3            (CONFIG_SYS_MBAR + 0x2800)
 #elif defined(CONFIG_MPC5200)
-#define        MPC5XXX_PSC1            (CFG_MBAR + 0x2000)
-#define        MPC5XXX_PSC2            (CFG_MBAR + 0x2200)
-#define        MPC5XXX_PSC3            (CFG_MBAR + 0x2400)
-#define        MPC5XXX_PSC4            (CFG_MBAR + 0x2600)
-#define        MPC5XXX_PSC5            (CFG_MBAR + 0x2800)
-#define        MPC5XXX_PSC6            (CFG_MBAR + 0x2c00)
+#define        MPC5XXX_PSC1            (CONFIG_SYS_MBAR + 0x2000)
+#define        MPC5XXX_PSC2            (CONFIG_SYS_MBAR + 0x2200)
+#define        MPC5XXX_PSC3            (CONFIG_SYS_MBAR + 0x2400)
+#define        MPC5XXX_PSC4            (CONFIG_SYS_MBAR + 0x2600)
+#define        MPC5XXX_PSC5            (CONFIG_SYS_MBAR + 0x2800)
+#define        MPC5XXX_PSC6            (CONFIG_SYS_MBAR + 0x2c00)
 #endif
 
-#define        MPC5XXX_FEC             (CFG_MBAR + 0x3000)
-#define MPC5XXX_ATA             (CFG_MBAR + 0x3A00)
+#define        MPC5XXX_FEC             (CONFIG_SYS_MBAR + 0x3000)
+#define MPC5XXX_ATA             (CONFIG_SYS_MBAR + 0x3A00)
 
-#define MPC5XXX_I2C1           (CFG_MBAR + 0x3D00)
-#define MPC5XXX_I2C2           (CFG_MBAR + 0x3D40)
+#define MPC5XXX_I2C1           (CONFIG_SYS_MBAR + 0x3D00)
+#define MPC5XXX_I2C2           (CONFIG_SYS_MBAR + 0x3D40)
 
 #if defined(CONFIG_MGT5100)
-#define MPC5XXX_SRAM           (CFG_MBAR + 0x4000)
+#define MPC5XXX_SRAM           (CONFIG_SYS_MBAR + 0x4000)
 #define MPC5XXX_SRAM_SIZE      (8*1024)
 #elif defined(CONFIG_MPC5200)
-#define MPC5XXX_SRAM           (CFG_MBAR + 0x8000)
+#define MPC5XXX_SRAM           (CONFIG_SYS_MBAR + 0x8000)
 #define MPC5XXX_SRAM_SIZE      (16*1024)
 #endif
 
index d3b1457f9c5d104735d373e80c912c47e0911b8a..c4900a0f1103c37100645b88099f3c813abb2516 100644 (file)
 
 /* Internal memory map */
 /* MPC8220 Internal Register MMAP */
-#define MMAP_MBAR      (CFG_MBAR + 0x00000000) /* chip selects              */
-#define MMAP_MEMCTL    (CFG_MBAR + 0x00000100) /* sdram controller          */
-#define MMAP_XLBARB    (CFG_MBAR + 0x00000200) /* xlb arbitration control   */
-#define MMAP_CDM       (CFG_MBAR + 0x00000300) /* clock distribution module */
-#define MMAP_VDOPLL    (CFG_MBAR + 0x00000400) /* video PLL                 */
-#define MMAP_FB                (CFG_MBAR + 0x00000500) /* flex bus controller       */
-#define MMAP_PCFG      (CFG_MBAR + 0x00000600) /* port config               */
-#define MMAP_ICTL      (CFG_MBAR + 0x00000700) /* interrupt controller      */
-#define MMAP_GPTMR     (CFG_MBAR + 0x00000800) /* general purpose timers    */
-#define MMAP_SLTMR     (CFG_MBAR + 0x00000900) /* slice timers              */
-#define MMAP_GPIO      (CFG_MBAR + 0x00000A00) /* gpio module               */
-#define MMAP_XCPCI     (CFG_MBAR + 0x00000B00) /* pci controller            */
-#define MMAP_PCIARB    (CFG_MBAR + 0x00000C00) /* pci arbiter               */
-#define MMAP_EXTDMA1   (CFG_MBAR + 0x00000D00) /* external dma1             */
-#define MMAP_EXTDMA2   (CFG_MBAR + 0x00000E00) /* external dma1             */
-#define MMAP_USBH      (CFG_MBAR + 0x00001000) /* usb host                  */
-#define MMAP_CMTMR     (CFG_MBAR + 0x00007f00) /* comm timers               */
-#define MMAP_DMA       (CFG_MBAR + 0x00008000) /* dma                       */
-#define MMAP_USBD      (CFG_MBAR + 0x00008200) /* usb device                */
-#define MMAP_COMMPCI   (CFG_MBAR + 0x00008400) /* pci comm Bus regs         */
-#define MMAP_1284      (CFG_MBAR + 0x00008500) /* 1284                      */
-#define MMAP_PEV       (CFG_MBAR + 0x00008600) /* print engine video        */
-#define MMAP_PSC1      (CFG_MBAR + 0x00008800) /* psc1 block                */
-#define MMAP_I2C       (CFG_MBAR + 0x00008f00) /* i2c controller            */
-#define MMAP_FEC1      (CFG_MBAR + 0x00009000) /* fast ethernet 1           */
-#define MMAP_FEC2      (CFG_MBAR + 0x00009800) /* fast ethernet 2           */
-#define MMAP_JBIGRAM   (CFG_MBAR + 0x0000a000) /* jbig RAM                  */
-#define MMAP_JBIG      (CFG_MBAR + 0x0000c000) /* jbig                      */
-#define MMAP_PDLA      (CFG_MBAR + 0x00010000) /*                           */
-#define MMAP_SRAMCFG   (CFG_MBAR + 0x0001ff00) /* SRAM config               */
-#define MMAP_SRAM      (CFG_MBAR + 0x00020000) /* SRAM                      */
+#define MMAP_MBAR      (CONFIG_SYS_MBAR + 0x00000000) /* chip selects               */
+#define MMAP_MEMCTL    (CONFIG_SYS_MBAR + 0x00000100) /* sdram controller           */
+#define MMAP_XLBARB    (CONFIG_SYS_MBAR + 0x00000200) /* xlb arbitration control   */
+#define MMAP_CDM       (CONFIG_SYS_MBAR + 0x00000300) /* clock distribution module */
+#define MMAP_VDOPLL    (CONFIG_SYS_MBAR + 0x00000400) /* video PLL                  */
+#define MMAP_FB                (CONFIG_SYS_MBAR + 0x00000500) /* flex bus controller        */
+#define MMAP_PCFG      (CONFIG_SYS_MBAR + 0x00000600) /* port config                */
+#define MMAP_ICTL      (CONFIG_SYS_MBAR + 0x00000700) /* interrupt controller       */
+#define MMAP_GPTMR     (CONFIG_SYS_MBAR + 0x00000800) /* general purpose timers    */
+#define MMAP_SLTMR     (CONFIG_SYS_MBAR + 0x00000900) /* slice timers               */
+#define MMAP_GPIO      (CONFIG_SYS_MBAR + 0x00000A00) /* gpio module                */
+#define MMAP_XCPCI     (CONFIG_SYS_MBAR + 0x00000B00) /* pci controller             */
+#define MMAP_PCIARB    (CONFIG_SYS_MBAR + 0x00000C00) /* pci arbiter                */
+#define MMAP_EXTDMA1   (CONFIG_SYS_MBAR + 0x00000D00) /* external dma1      */
+#define MMAP_EXTDMA2   (CONFIG_SYS_MBAR + 0x00000E00) /* external dma1      */
+#define MMAP_USBH      (CONFIG_SYS_MBAR + 0x00001000) /* usb host                   */
+#define MMAP_CMTMR     (CONFIG_SYS_MBAR + 0x00007f00) /* comm timers                */
+#define MMAP_DMA       (CONFIG_SYS_MBAR + 0x00008000) /* dma                        */
+#define MMAP_USBD      (CONFIG_SYS_MBAR + 0x00008200) /* usb device                 */
+#define MMAP_COMMPCI   (CONFIG_SYS_MBAR + 0x00008400) /* pci comm Bus regs          */
+#define MMAP_1284      (CONFIG_SYS_MBAR + 0x00008500) /* 1284                       */
+#define MMAP_PEV       (CONFIG_SYS_MBAR + 0x00008600) /* print engine video         */
+#define MMAP_PSC1      (CONFIG_SYS_MBAR + 0x00008800) /* psc1 block                 */
+#define MMAP_I2C       (CONFIG_SYS_MBAR + 0x00008f00) /* i2c controller             */
+#define MMAP_FEC1      (CONFIG_SYS_MBAR + 0x00009000) /* fast ethernet 1            */
+#define MMAP_FEC2      (CONFIG_SYS_MBAR + 0x00009800) /* fast ethernet 2            */
+#define MMAP_JBIGRAM   (CONFIG_SYS_MBAR + 0x0000a000) /* jbig RAM                   */
+#define MMAP_JBIG      (CONFIG_SYS_MBAR + 0x0000c000) /* jbig                       */
+#define MMAP_PDLA      (CONFIG_SYS_MBAR + 0x00010000) /*                            */
+#define MMAP_SRAMCFG   (CONFIG_SYS_MBAR + 0x0001ff00) /* SRAM config                */
+#define MMAP_SRAM      (CONFIG_SYS_MBAR + 0x00020000) /* SRAM                       */
 
 #define SRAM_SIZE      0x8000                  /* 32 KB */
 
 /*
  * Port configuration
  */
-#define CFG_FEC1_PORT0_CONFIG  0x00000000
-#define CFG_FEC1_PORT1_CONFIG  0x00000000
-#define CFG_1284_PORT0_CONFIG  0x00000000
-#define CFG_1284_PORT1_CONFIG  0x00000000
-#define CFG_FEC2_PORT2_CONFIG  0x00000000
-#define CFG_PEV_PORT2_CONFIG   0x00000000
-#define CFG_GP0_PORT0_CONFIG   0x00000000
-#define CFG_GP1_PORT2_CONFIG   0xaaaaaac0
-#define CFG_PSC_PORT3_CONFIG   0x00020000
-#define CFG_CS1_PORT3_CONFIG   0x00000000
-#define CFG_CS2_PORT3_CONFIG   0x10000000
-#define CFG_CS3_PORT3_CONFIG   0x40000000
-#define CFG_CS4_PORT3_CONFIG   0x00000400
-#define CFG_CS5_PORT3_CONFIG   0x00000200
-#define CFG_PCI_PORT3_CONFIG   0x01400180
-#define CFG_I2C_PORT3_CONFIG   0x00000000
-#define CFG_GP2_PORT3_CONFIG   0x000200a0
+#define CONFIG_SYS_FEC1_PORT0_CONFIG   0x00000000
+#define CONFIG_SYS_FEC1_PORT1_CONFIG   0x00000000
+#define CONFIG_SYS_1284_PORT0_CONFIG  0x00000000
+#define CONFIG_SYS_1284_PORT1_CONFIG  0x00000000
+#define CONFIG_SYS_FEC2_PORT2_CONFIG   0x00000000
+#define CONFIG_SYS_PEV_PORT2_CONFIG   0x00000000
+#define CONFIG_SYS_GP0_PORT0_CONFIG   0x00000000
+#define CONFIG_SYS_GP1_PORT2_CONFIG   0xaaaaaac0
+#define CONFIG_SYS_PSC_PORT3_CONFIG   0x00020000
+#define CONFIG_SYS_CS1_PORT3_CONFIG   0x00000000
+#define CONFIG_SYS_CS2_PORT3_CONFIG    0x10000000
+#define CONFIG_SYS_CS3_PORT3_CONFIG    0x40000000
+#define CONFIG_SYS_CS4_PORT3_CONFIG    0x00000400
+#define CONFIG_SYS_CS5_PORT3_CONFIG    0x00000200
+#define CONFIG_SYS_PCI_PORT3_CONFIG   0x01400180
+#define CONFIG_SYS_I2C_PORT3_CONFIG   0x00000000
+#define CONFIG_SYS_GP2_PORT3_CONFIG   0x000200a0
 
 /* ------------------------------------------------------------------------ */
 /*
@@ -571,9 +571,9 @@ typedef struct mpc8220_xcpci {
 /* PCI->XLB space translation (MPC8220 target), reg0 can address max 256MB,
    reg1 - 1GB */
 #define PCI_BASE_ADDR_REG0                     0x40000000
-#define PCI_BASE_ADDR_REG1                     (CFG_SDRAM_BASE)
-#define PCI_TARGET_BASE_ADDR_REG0              (CFG_MBAR)
-#define PCI_TARGET_BASE_ADDR_REG1              (CFG_SDRAM_BASE)
+#define PCI_BASE_ADDR_REG1                     (CONFIG_SYS_SDRAM_BASE)
+#define PCI_TARGET_BASE_ADDR_REG0              (CONFIG_SYS_MBAR)
+#define PCI_TARGET_BASE_ADDR_REG1              (CONFIG_SYS_SDRAM_BASE)
 #define PCI_TARGET_BASE_ADDR_EN                        1<<0
 
 
index 30f01d5aa8999d69b4a70832b84566f19dc17d3f..5aa9370b1963f4100e8ff7cd90ef2dbed50441c6 100644 (file)
 #define MAP_B_CONFIG_DATA_LOW  0x0000  /* Lower half of CONFIG_DAT for Map B */
 
 
-#if defined(CFG_ADDR_MAP_A)
+#if defined(CONFIG_SYS_ADDR_MAP_A)
 #define CONFIG_ADDR_HIGH    MAP_A_CONFIG_ADDR_HIGH  /* Upper half of CONFIG_ADDR */
 #define CONFIG_ADDR_LOW            MAP_A_CONFIG_ADDR_LOW   /* Lower half of CONFIG_ADDR */
 #define CONFIG_DATA_HIGH    MAP_A_CONFIG_DATA_HIGH  /* Upper half of CONFIG_DAT */
index ce3d784da03f3f35b5401b1e5449b6f806ff8e78..f119d5bb15fdeb564aaaf177eaf8fefdd80cabfb 100644 (file)
@@ -16,9 +16,9 @@
  * platform register addresses
  */
 
-#define GUTS_SVR       (CFG_CCSRBAR + 0xE00A4)
-#define MCM_ABCR       (CFG_CCSRBAR + 0x01000)
-#define MCM_DBCR       (CFG_CCSRBAR + 0x01008)
+#define GUTS_SVR       (CONFIG_SYS_CCSRBAR + 0xE00A4)
+#define MCM_ABCR       (CONFIG_SYS_CCSRBAR + 0x01000)
+#define MCM_DBCR       (CONFIG_SYS_CCSRBAR + 0x01008)
 
 /*
  * l2cr values.  Look in config_<BOARD>.h for the actual setup
index d2a81c00dcfd56a04732e7e490b4f64ce1e59380..15cf693fa65ffcd78b7efff7a22a4dc7373b5c5d 100644 (file)
@@ -45,8 +45,8 @@
  * MBX PCI/ISA/IDE interrupts.
  */
 
-#ifdef CFG_CPM_INTERRUPT
-# define CPM_INTERRUPT         CFG_CPM_INTERRUPT
+#ifdef CONFIG_SYS_CPM_INTERRUPT
+# define CPM_INTERRUPT         CONFIG_SYS_CPM_INTERRUPT
 #else
 # define CPM_INTERRUPT         SIU_LEVEL2
 #endif
index 3296e109e77631b5a1236d6ed3918115345f1f3e..b4f316f71a31a4a644ea0c805bae1acb3da6b31e 100644 (file)
@@ -122,7 +122,7 @@ int nand_lock( nand_info_t *meminfo, int tight );
 int nand_unlock( nand_info_t *meminfo, ulong start, ulong length );
 int nand_get_lock_status(nand_info_t *meminfo, ulong offset);
 
-#ifdef CFG_NAND_SELECT_DEVICE
+#ifdef CONFIG_SYS_NAND_SELECT_DEVICE
 void board_nand_select_device(struct nand_chip *nand, int chip);
 #endif
 
index 79ddfa294acd82499677086218b3e8b35660a2b9..a5a256bcd083b82780ea52570d09b893a2af74f2 100644 (file)
 #define CONFIG_NET_MULTI
 #if (CONFIG_ETHER_INDEX == 1)
 #define        CONFIG_ETHER_ON_FCC1
-# define CFG_CMXFCR_MASK1      CFG_CMXFCR_MASK
-# define CFG_CMXFCR_VALUE1     CFG_CMXFCR_VALUE
+# define CONFIG_SYS_CMXFCR_MASK1       CONFIG_SYS_CMXFCR_MASK
+# define CONFIG_SYS_CMXFCR_VALUE1      CONFIG_SYS_CMXFCR_VALUE
 #elif (CONFIG_ETHER_INDEX == 2)
 #define        CONFIG_ETHER_ON_FCC2
-# define CFG_CMXFCR_MASK2      CFG_CMXFCR_MASK
-# define CFG_CMXFCR_VALUE2     CFG_CMXFCR_VALUE
+# define CONFIG_SYS_CMXFCR_MASK2       CONFIG_SYS_CMXFCR_MASK
+# define CONFIG_SYS_CMXFCR_VALUE2      CONFIG_SYS_CMXFCR_VALUE
 #elif (CONFIG_ETHER_INDEX == 3)
 #define        CONFIG_ETHER_ON_FCC3
-# define CFG_CMXFCR_MASK3      CFG_CMXFCR_MASK
-# define CFG_CMXFCR_VALUE3     CFG_CMXFCR_VALUE
+# define CONFIG_SYS_CMXFCR_MASK3       CONFIG_SYS_CMXFCR_MASK
+# define CONFIG_SYS_CMXFCR_VALUE3      CONFIG_SYS_CMXFCR_VALUE
 #endif /* CONFIG_ETHER_INDEX */
 #endif /* CONFIG_ETHER_ON_FCC */
 #endif /* !CONFIG_NET_MULTI && CONFIG_8260 */
@@ -61,8 +61,8 @@
  *
  */
 
-#ifdef CFG_RX_ETH_BUFFER
-# define PKTBUFSRX     CFG_RX_ETH_BUFFER
+#ifdef CONFIG_SYS_RX_ETH_BUFFER
+# define PKTBUFSRX     CONFIG_SYS_RX_ETH_BUFFER
 #else
 # define PKTBUFSRX     4
 #endif
index 34888a1028bd34d21c3c2c838c6e1944ff24ec33..e6ade61a226beab883488376c53ae513c599785f 100644 (file)
@@ -2,7 +2,7 @@
  * NS16550 Serial Port
  * originally from linux source (arch/ppc/boot/ns16550.h)
  * modified slightly to
- * have addresses as offsets from CFG_ISA_BASE
+ * have addresses as offsets from CONFIG_SYS_ISA_BASE
  * added a few more definitions
  * added prototypes for ns16550.c
  * reduced no of com ports to 2
@@ -12,7 +12,7 @@
  * by Richard Danter (richard.danter@windriver.com), (C) 2005 Wind River Systems
  */
 
-#if (CFG_NS16550_REG_SIZE == 1)
+#if (CONFIG_SYS_NS16550_REG_SIZE == 1)
 struct NS16550 {
        unsigned char rbr;              /* 0 */
        unsigned char ier;              /* 1 */
@@ -35,7 +35,7 @@ struct NS16550 {
        unsigned char ssr;              /* 11*/
 #endif
 } __attribute__ ((packed));
-#elif (CFG_NS16550_REG_SIZE == 2)
+#elif (CONFIG_SYS_NS16550_REG_SIZE == 2)
 struct NS16550 {
        unsigned short rbr;             /* 0 */
        unsigned short ier;             /* 1 */
@@ -46,7 +46,7 @@ struct NS16550 {
        unsigned short msr;             /* 6 */
        unsigned short scr;             /* 7 */
 } __attribute__ ((packed));
-#elif (CFG_NS16550_REG_SIZE == 4)
+#elif (CONFIG_SYS_NS16550_REG_SIZE == 4)
 struct NS16550 {
        unsigned long rbr;              /* 0 r  */
        unsigned long ier;              /* 1 rw */
@@ -57,7 +57,7 @@ struct NS16550 {
        unsigned long msr;              /* 6 r  */
        unsigned long scr;              /* 7 rw */
 }; /* No need to pack an already aligned struct */
-#elif (CFG_NS16550_REG_SIZE == -4)
+#elif (CONFIG_SYS_NS16550_REG_SIZE == -4)
 struct NS16550 {
        unsigned char rbr;              /* 0 */
        int pad1:24;
@@ -85,7 +85,7 @@ struct NS16550 {
        int pad10:24;
 #endif
 } __attribute__ ((packed));
-#elif (CFG_NS16550_REG_SIZE == -8)
+#elif (CONFIG_SYS_NS16550_REG_SIZE == -8)
 struct NS16550 {
        unsigned char rbr;              /* 0 */
        unsigned char pad0[7];
index feeb940703cb3b822a477c97ce44829f189afef9..6177bb4c242ecc72e7bdee0d6fcf4b7f06d20635 100644 (file)
@@ -74,15 +74,15 @@ struct GPIO
 #define IO_DATA_OFFSET_10  0x015D  /* PnP motherboard mode */
 #define IO_DATA_OFFSET_11  0x002F  /* PnP motherboard mode */
 
-#if defined(CFG_NS87308_BADDR_0x)
-#define IO_INDEX (CFG_ISA_IO + IO_INDEX_OFFSET_0x)
-#define IO_DATA  (CFG_ISA_IO + IO_DATA_OFFSET_0x)
-#elif defined(CFG_NS87308_BADDR_10)
-#define IO_INDEX (CFG_ISA_IO + IO_INDEX_OFFSET_10)
-#define IO_DATA  (CFG_ISA_IO + IO_DATA_OFFSET_10)
-#elif defined(CFG_NS87308_BADDR_11)
-#define IO_INDEX (CFG_ISA_IO + IO_INDEX_OFFSET_11)
-#define IO_DATA  (CFG_ISA_IO + IO_DATA_OFFSET_11)
+#if defined(CONFIG_SYS_NS87308_BADDR_0x)
+#define IO_INDEX (CONFIG_SYS_ISA_IO + IO_INDEX_OFFSET_0x)
+#define IO_DATA  (CONFIG_SYS_ISA_IO + IO_DATA_OFFSET_0x)
+#elif defined(CONFIG_SYS_NS87308_BADDR_10)
+#define IO_INDEX (CONFIG_SYS_ISA_IO + IO_INDEX_OFFSET_10)
+#define IO_DATA  (CONFIG_SYS_ISA_IO + IO_DATA_OFFSET_10)
+#elif defined(CONFIG_SYS_NS87308_BADDR_11)
+#define IO_INDEX (CONFIG_SYS_ISA_IO + IO_INDEX_OFFSET_11)
+#define IO_DATA  (CONFIG_SYS_ISA_IO + IO_DATA_OFFSET_11)
 #endif
 
 /* PnP register definitions */
@@ -132,16 +132,16 @@ struct GPIO
 #define LDEV_GPIO           0x07    /*General Purpose IO and chip select output signals*/
 #define LDEV_POWRMAN        0x08    /*Power Managment*/
 
-#define CFG_NS87308_KBC1       (1 << LDEV_KBC1)
-#define CFG_NS87308_KBC2       (1 << LDEV_KBC2)
-#define CFG_NS87308_MOUSE      (1 << LDEV_MOUSE)
-#define CFG_NS87308_RTC_APC    (1 << LDEV_RTC_APC)
-#define CFG_NS87308_FDC                (1 << LDEV_FDC)
-#define CFG_NS87308_PARP       (1 << LDEV_PARP)
-#define CFG_NS87308_UART2      (1 << LDEV_UART2)
-#define CFG_NS87308_UART1      (1 << LDEV_UART1)
-#define CFG_NS87308_GPIO       (1 << LDEV_GPIO)
-#define CFG_NS87308_POWRMAN    (1 << LDEV_POWRMAN)
+#define CONFIG_SYS_NS87308_KBC1        (1 << LDEV_KBC1)
+#define CONFIG_SYS_NS87308_KBC2        (1 << LDEV_KBC2)
+#define CONFIG_SYS_NS87308_MOUSE       (1 << LDEV_MOUSE)
+#define CONFIG_SYS_NS87308_RTC_APC     (1 << LDEV_RTC_APC)
+#define CONFIG_SYS_NS87308_FDC         (1 << LDEV_FDC)
+#define CONFIG_SYS_NS87308_PARP        (1 << LDEV_PARP)
+#define CONFIG_SYS_NS87308_UART2       (1 << LDEV_UART2)
+#define CONFIG_SYS_NS87308_UART1       (1 << LDEV_UART1)
+#define CONFIG_SYS_NS87308_GPIO        (1 << LDEV_GPIO)
+#define CONFIG_SYS_NS87308_POWRMAN     (1 << LDEV_POWRMAN)
 
 /*some functions and macro's for doing configuration */
 
@@ -164,9 +164,9 @@ static inline void pnp_set_device(unsigned char dev)
 
 static inline void write_pm_reg(unsigned short base, unsigned char index, unsigned char data)
 {
-    pci_writeb(index, CFG_ISA_IO + base);
+    pci_writeb(index, CONFIG_SYS_ISA_IO + base);
     eieio();
-    pci_writeb(data, CFG_ISA_IO + base + 1);
+    pci_writeb(data, CONFIG_SYS_ISA_IO + base + 1);
 }
 
 /*void write_pnp_config(unsigned char index, unsigned char data);
@@ -228,23 +228,23 @@ static inline void write_pgcs_config(unsigned char index, unsigned char data)
 /*
  * Default NS87308 configuration
  */
-#ifndef CFG_NS87308_KBC1_BASE
-#define CFG_NS87308_KBC1_BASE  0x0060
+#ifndef CONFIG_SYS_NS87308_KBC1_BASE
+#define CONFIG_SYS_NS87308_KBC1_BASE   0x0060
 #endif
-#ifndef CFG_NS87308_RTC_BASE
-#define CFG_NS87308_RTC_BASE   0x0070
+#ifndef CONFIG_SYS_NS87308_RTC_BASE
+#define CONFIG_SYS_NS87308_RTC_BASE    0x0070
 #endif
-#ifndef CFG_NS87308_FDC_BASE
-#define CFG_NS87308_FDC_BASE   0x03F0
+#ifndef CONFIG_SYS_NS87308_FDC_BASE
+#define CONFIG_SYS_NS87308_FDC_BASE    0x03F0
 #endif
-#ifndef CFG_NS87308_LPT_BASE
-#define CFG_NS87308_LPT_BASE   0x0278
+#ifndef CONFIG_SYS_NS87308_LPT_BASE
+#define CONFIG_SYS_NS87308_LPT_BASE    0x0278
 #endif
-#ifndef CFG_NS87308_UART1_BASE
-#define CFG_NS87308_UART1_BASE 0x03F8
+#ifndef CONFIG_SYS_NS87308_UART1_BASE
+#define CONFIG_SYS_NS87308_UART1_BASE  0x03F8
 #endif
-#ifndef CFG_NS87308_UART2_BASE
-#define CFG_NS87308_UART2_BASE 0x02F8
+#ifndef CONFIG_SYS_NS87308_UART2_BASE
+#define CONFIG_SYS_NS87308_UART2_BASE  0x02F8
 #endif
 
 #endif /*_NS87308_H_*/
index 7305805e40c39fd3b16f17a6c67d20da8fa935be..b60323d3c09cedc278e465899e839caaec43d72f 100644 (file)
@@ -138,8 +138,8 @@ typedef struct {
  *     Common Memory Space
  */
 
-#define CFG_PCMCIA_PBR0                0xFE100000
-#define CFG_PCMCIA_POR0            (   PCMCIA_BSIZE_2  \
+#define CONFIG_SYS_PCMCIA_PBR0         0xFE100000
+#define CONFIG_SYS_PCMCIA_POR0     (   PCMCIA_BSIZE_2  \
                            |   PCMCIA_PPS_16   \
                            |   PCMCIA_PRS_MEM  \
                            |   PCMCIA_SLOT_x   \
@@ -153,8 +153,8 @@ typedef struct {
  *     Common Memory Space
  */
 
-#define CFG_PCMCIA_PBR1                0xFE100080
-#define CFG_PCMCIA_POR1            (   PCMCIA_BSIZE_8  \
+#define CONFIG_SYS_PCMCIA_PBR1         0xFE100080
+#define CONFIG_SYS_PCMCIA_POR1     (   PCMCIA_BSIZE_8  \
                            |   PCMCIA_PPS_8    \
                            |   PCMCIA_PRS_MEM  \
                            |   PCMCIA_SLOT_x   \
@@ -168,8 +168,8 @@ typedef struct {
  *     Common Memory Space
  */
 
-#define CFG_PCMCIA_PBR2                0xFE100100
-#define CFG_PCMCIA_POR2            (   PCMCIA_BSIZE_8  \
+#define CONFIG_SYS_PCMCIA_PBR2         0xFE100100
+#define CONFIG_SYS_PCMCIA_POR2     (   PCMCIA_BSIZE_8  \
                            |   PCMCIA_PPS_8    \
                            |   PCMCIA_PRS_MEM  \
                            |   PCMCIA_SLOT_x   \
@@ -179,8 +179,8 @@ typedef struct {
 /* Window 3:
  *     not used
  */
-#define CFG_PCMCIA_PBR3                0
-#define CFG_PCMCIA_POR3                0
+#define CONFIG_SYS_PCMCIA_PBR3         0
+#define CONFIG_SYS_PCMCIA_POR3         0
 
 /* Window 4:
  *     Base: 0xFE100C00        CS1
@@ -189,8 +189,8 @@ typedef struct {
  *     Common Memory Space
  */
 
-#define CFG_PCMCIA_PBR4                0xFE100C00
-#define CFG_PCMCIA_POR4            (   PCMCIA_BSIZE_2  \
+#define CONFIG_SYS_PCMCIA_PBR4         0xFE100C00
+#define CONFIG_SYS_PCMCIA_POR4     (   PCMCIA_BSIZE_2  \
                            |   PCMCIA_PPS_16   \
                            |   PCMCIA_PRS_MEM  \
                            |   PCMCIA_SLOT_x   \
@@ -204,8 +204,8 @@ typedef struct {
  *     Common Memory Space
  */
 
-#define CFG_PCMCIA_PBR5                0xFE100C80
-#define CFG_PCMCIA_POR5            (   PCMCIA_BSIZE_8  \
+#define CONFIG_SYS_PCMCIA_PBR5         0xFE100C80
+#define CONFIG_SYS_PCMCIA_POR5     (   PCMCIA_BSIZE_8  \
                            |   PCMCIA_PPS_8    \
                            |   PCMCIA_PRS_MEM  \
                            |   PCMCIA_SLOT_x   \
@@ -219,8 +219,8 @@ typedef struct {
  *     Common Memory Space
  */
 
-#define CFG_PCMCIA_PBR6                0xFE100D00
-#define CFG_PCMCIA_POR6            (   PCMCIA_BSIZE_8  \
+#define CONFIG_SYS_PCMCIA_PBR6         0xFE100D00
+#define CONFIG_SYS_PCMCIA_POR6     (   PCMCIA_BSIZE_8  \
                            |   PCMCIA_PPS_8    \
                            |   PCMCIA_PRS_MEM  \
                            |   PCMCIA_SLOT_x   \
@@ -230,8 +230,8 @@ typedef struct {
 /* Window 7:
  *     not used
  */
-#define CFG_PCMCIA_PBR7                0
-#define CFG_PCMCIA_POR7                0
+#define CONFIG_SYS_PCMCIA_PBR7         0
+#define CONFIG_SYS_PCMCIA_POR7         0
 
 /**********************************************************************/
 
index 123623f5c85981cf465262916252303f0b47d3af..97583b7e9a31c87ccd8a82e9911299d79036358f 100644 (file)
@@ -82,28 +82,28 @@ extern int post_hotkeys_pressed(void);
 
 #endif /* __ASSEMBLY__ */
 
-#define CFG_POST_RTC           0x00000001
-#define CFG_POST_WATCHDOG      0x00000002
-#define CFG_POST_MEMORY                0x00000004
-#define CFG_POST_CPU           0x00000008
-#define CFG_POST_I2C           0x00000010
-#define CFG_POST_CACHE         0x00000020
-#define CFG_POST_UART          0x00000040
-#define CFG_POST_ETHER         0x00000080
-#define CFG_POST_SPI           0x00000100
-#define CFG_POST_USB           0x00000200
-#define CFG_POST_SPR           0x00000400
-#define CFG_POST_SYSMON                0x00000800
-#define CFG_POST_DSP           0x00001000
-#define CFG_POST_OCM           0x00002000
-#define CFG_POST_FPU           0x00004000
-#define CFG_POST_ECC           0x00008000
-#define CFG_POST_BSPEC1                0x00010000
-#define CFG_POST_BSPEC2                0x00020000
-#define CFG_POST_BSPEC3                0x00040000
-#define CFG_POST_BSPEC4                0x00080000
-#define CFG_POST_BSPEC5                0x00100000
-#define CFG_POST_CODEC         0x00200000
+#define CONFIG_SYS_POST_RTC            0x00000001
+#define CONFIG_SYS_POST_WATCHDOG       0x00000002
+#define CONFIG_SYS_POST_MEMORY         0x00000004
+#define CONFIG_SYS_POST_CPU            0x00000008
+#define CONFIG_SYS_POST_I2C            0x00000010
+#define CONFIG_SYS_POST_CACHE          0x00000020
+#define CONFIG_SYS_POST_UART           0x00000040
+#define CONFIG_SYS_POST_ETHER          0x00000080
+#define CONFIG_SYS_POST_SPI            0x00000100
+#define CONFIG_SYS_POST_USB            0x00000200
+#define CONFIG_SYS_POST_SPR            0x00000400
+#define CONFIG_SYS_POST_SYSMON         0x00000800
+#define CONFIG_SYS_POST_DSP            0x00001000
+#define CONFIG_SYS_POST_OCM            0x00002000
+#define CONFIG_SYS_POST_FPU            0x00004000
+#define CONFIG_SYS_POST_ECC            0x00008000
+#define CONFIG_SYS_POST_BSPEC1         0x00010000
+#define CONFIG_SYS_POST_BSPEC2         0x00020000
+#define CONFIG_SYS_POST_BSPEC3         0x00040000
+#define CONFIG_SYS_POST_BSPEC4         0x00080000
+#define CONFIG_SYS_POST_BSPEC5         0x00100000
+#define CONFIG_SYS_POST_CODEC          0x00200000
 
 #endif /* CONFIG_POST */
 
index f19b67f1bb71011d55f0fd623deb47b517b5a5f7..917afecfa7178e87a70fef75333adc5e12143b9c 100644 (file)
@@ -27,9 +27,9 @@
 #define PPC_128MB_SACR_VALUE(addr)     PPC_REG_VAL(PPC_128MB_SACR_BIT(addr),1)
 
 #ifndef CONFIG_IOP480
-#define CFG_DCACHE_SIZE                (16 << 10)      /* For AMCC 405 CPUs    */
+#define CONFIG_SYS_DCACHE_SIZE         (16 << 10)      /* For AMCC 405 CPUs    */
 #else
-#define CFG_DCACHE_SIZE                (2 << 10)       /* For PLX IOP480 (403) */
+#define CONFIG_SYS_DCACHE_SIZE         (2 << 10)       /* For PLX IOP480 (403) */
 #endif
 
 /*--------------------------------------------------------------------- */
index be8d3ffef7978db5464c31b78b42aed685df545c..664f8021fe00bd0d9c4a116250ec8e67ab422eaf 100644 (file)
@@ -46,7 +46,7 @@
 #ifndef __PPC440_H__
 #define __PPC440_H__
 
-#define CFG_DCACHE_SIZE                (32 << 10)      /* For AMCC 440 CPUs    */
+#define CONFIG_SYS_DCACHE_SIZE         (32 << 10)      /* For AMCC 440 CPUs    */
 
 /*--------------------------------------------------------------------- */
 /* Special Purpose Registers                                           */
 /*-----------------------------------------------------------------------------
 | PCI Internal Registers et. al. (accessed via plb)
 +----------------------------------------------------------------------------*/
-#define PCIX0_CFGADR           (CFG_PCI_BASE + 0x0ec00000)
-#define PCIX0_CFGDATA          (CFG_PCI_BASE + 0x0ec00004)
-#define PCIX0_CFGBASE          (CFG_PCI_BASE + 0x0ec80000)
-#define PCIX0_IOBASE           (CFG_PCI_BASE + 0x08000000)
+#define PCIX0_CFGADR           (CONFIG_SYS_PCI_BASE + 0x0ec00000)
+#define PCIX0_CFGDATA          (CONFIG_SYS_PCI_BASE + 0x0ec00004)
+#define PCIX0_CFGBASE          (CONFIG_SYS_PCI_BASE + 0x0ec80000)
+#define PCIX0_IOBASE           (CONFIG_SYS_PCI_BASE + 0x08000000)
 
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
 
 /* PCI Local Configuration Registers
    --------------------------------- */
-#define PCI_MMIO_LCR_BASE (CFG_PCI_BASE + 0x0f400000)    /* Real => 0x0EF400000 */
+#define PCI_MMIO_LCR_BASE (CONFIG_SYS_PCI_BASE + 0x0f400000)    /* Real => 0x0EF400000 */
 
 /* PCI Master Local Configuration Registers */
 #define PCIX0_PMM0LA         (PCI_MMIO_LCR_BASE + 0x00) /* PMM0 Local Address */
 #if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
 
 /* USB2.0 Device */
-#define USB2D0_BASE         CFG_USB2D0_BASE
+#define USB2D0_BASE         CONFIG_SYS_USB2D0_BASE
 
 #define USB2D0_INTRIN       (USB2D0_BASE + 0x00000000)
 
 #if defined(CONFIG_440GP) || defined(CONFIG_440GX) || \
     defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
     defined(CONFIG_460SX)
-#define GPIO0_BASE             (CFG_PERIPHERAL_BASE+0x00000700)
+#define GPIO0_BASE             (CONFIG_SYS_PERIPHERAL_BASE+0x00000700)
 
 #define GPIO0_OR               (GPIO0_BASE+0x0)
 #define GPIO0_TCR              (GPIO0_BASE+0x4)
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define GPIO0_BASE             (CFG_PERIPHERAL_BASE+0x00000B00)
-#define GPIO1_BASE             (CFG_PERIPHERAL_BASE+0x00000C00)
+#define GPIO0_BASE             (CONFIG_SYS_PERIPHERAL_BASE+0x00000B00)
+#define GPIO1_BASE             (CONFIG_SYS_PERIPHERAL_BASE+0x00000C00)
 
 #define GPIO0_OR               (GPIO0_BASE+0x0)
 #define GPIO0_TCR              (GPIO0_BASE+0x4)
index e216663a86de7a4a1864a0af10ad6bfc07f61e82..ce4b29a1939fbb19c29a1909cc9046634e3bb23b 100644 (file)
  * Enable long long (%ll ...) printf format on 440 PPC's since most of
  * them support 36bit physical addressing
  */
-#define CFG_64BIT_VSPRINTF
-#define CFG_64BIT_STRTOUL
+#define CONFIG_SYS_64BIT_VSPRINTF
+#define CONFIG_SYS_64BIT_STRTOUL
 #include <ppc440.h>
 #else
 #include <ppc405.h>
 #define _START_OFFSET          (EXC_OFF_SYS_RESET + 0x2000)
 
 #define RESET_VECTOR   0xfffffffc
-#define CACHELINE_MASK (CFG_CACHELINE_SIZE - 1) /* Address mask for cache
+#define CACHELINE_MASK (CONFIG_SYS_CACHELINE_SIZE - 1) /* Address mask for cache
                                                     line aligned data. */
 
 #define CPR0_DCR_BASE  0x0C
index 00669a717aaddf742eb1d970fac38f227d9e8b28..3e10883f984ab8bcdea241a3a80b493d50308c15 100644 (file)
@@ -171,9 +171,9 @@ typedef struct emac_4xx_hw_st {
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define ZMII_BASE              (CFG_PERIPHERAL_BASE + 0x0D00)
+#define ZMII_BASE              (CONFIG_SYS_PERIPHERAL_BASE + 0x0D00)
 #else
-#define ZMII_BASE              (CFG_PERIPHERAL_BASE + 0x0780)
+#define ZMII_BASE              (CONFIG_SYS_PERIPHERAL_BASE + 0x0780)
 #endif
 #define ZMII_FER               (ZMII_BASE)
 #define ZMII_SSR               (ZMII_BASE + 4)
@@ -216,13 +216,13 @@ typedef struct emac_4xx_hw_st {
 
 /* RGMII Register Addresses */
 #if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
-#define RGMII_BASE             (CFG_PERIPHERAL_BASE + 0x1000)
+#define RGMII_BASE             (CONFIG_SYS_PERIPHERAL_BASE + 0x1000)
 #elif defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define RGMII_BASE             (CFG_PERIPHERAL_BASE + 0x1500)
+#define RGMII_BASE             (CONFIG_SYS_PERIPHERAL_BASE + 0x1500)
 #elif defined(CONFIG_405EX)
-#define RGMII_BASE             (CFG_PERIPHERAL_BASE + 0xB00)
+#define RGMII_BASE             (CONFIG_SYS_PERIPHERAL_BASE + 0xB00)
 #else
-#define RGMII_BASE             (CFG_PERIPHERAL_BASE + 0x0790)
+#define RGMII_BASE             (CONFIG_SYS_PERIPHERAL_BASE + 0x0790)
 #endif
 #define RGMII_FER              (RGMII_BASE + 0x00)
 #define RGMII_SSR              (RGMII_BASE + 0x04)
@@ -260,7 +260,7 @@ typedef struct emac_4xx_hw_st {
 |  TCP/IP Acceleration Hardware (TAH) 440GX Only
 +---------------------------------------------------------------------------*/
 #if defined(CONFIG_440GX)
-#define TAH_BASE               (CFG_PERIPHERAL_BASE + 0x0B50)
+#define TAH_BASE               (CONFIG_SYS_PERIPHERAL_BASE + 0x0B50)
 #define TAH_REVID              (TAH_BASE + 0x0)    /* Revision ID (RO)*/
 #define TAH_MR                 (TAH_BASE + 0x10)   /* Mode Register (R/W) */
 #define TAH_SSR0               (TAH_BASE + 0x14)   /* Segment Size Reg 0 (R/W) */
@@ -326,9 +326,9 @@ typedef struct emac_4xx_hw_st {
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
     defined(CONFIG_460EX) || defined(CONFIG_460GT)
-#define EMAC_BASE              (CFG_PERIPHERAL_BASE + 0x0E00)
+#define EMAC_BASE              (CONFIG_SYS_PERIPHERAL_BASE + 0x0E00)
 #else
-#define EMAC_BASE              (CFG_PERIPHERAL_BASE + 0x0800)
+#define EMAC_BASE              (CONFIG_SYS_PERIPHERAL_BASE + 0x0800)
 #endif
 #else
 #if defined(CONFIG_405EZ) || defined(CONFIG_405EX)
index e68581751c965493c96770d3749f5121ecc971bc..599cb6dc42ddbf82ac524d10d4dedaf145baf331 100644 (file)
@@ -22,7 +22,7 @@
 #define        PS2BUF_SIZE                     512     /* power of 2, please */
 
 #ifndef CONFIG_PS2MULT_DELAY
-#define CONFIG_PS2MULT_DELAY   (CFG_HZ/2)      /* Initial delay        */
+#define CONFIG_PS2MULT_DELAY   (CONFIG_SYS_HZ/2)       /* Initial delay        */
 #endif
 
   /* PS/2 controller interface (include/asm/keyboard.h)
index 35875f177222c83bfcad222450325e70ec225ad9..da6c26bbe3bf4d4e7c9bdb813b42f2009467a502 100644 (file)
 #define PLL_WR_EN                      0x00000080
 
 /* CONFIG_CNTL bit constants */
-#define CFG_VGA_RAM_EN                 0x00000100
-#define CFG_ATI_REV_ID_MASK            (0xf << 16)
-#define CFG_ATI_REV_A11                        (0 << 16)
-#define CFG_ATI_REV_A12                        (1 << 16)
-#define CFG_ATI_REV_A13                        (2 << 16)
+#define CONFIG_SYS_VGA_RAM_EN                  0x00000100
+#define CONFIG_SYS_ATI_REV_ID_MASK             (0xf << 16)
+#define CONFIG_SYS_ATI_REV_A11                 (0 << 16)
+#define CONFIG_SYS_ATI_REV_A12                 (1 << 16)
+#define CONFIG_SYS_ATI_REV_A13                 (2 << 16)
 
 /* CRTC_EXT_CNTL bit constants */
 #define VGA_ATI_LINEAR                 0x00000008
index 2b99e539c1491500be8cd103f59f2889253de8f8..e3d8b3679b5e8852e1c2caa2c2b857c27b4ea257 100644 (file)
@@ -27,12 +27,12 @@ extern struct serial_device * default_serial_console (void);
     defined(CONFIG_MPC5xxx)
 extern struct serial_device serial0_device;
 extern struct serial_device serial1_device;
-#if defined(CFG_NS16550_SERIAL)
+#if defined(CONFIG_SYS_NS16550_SERIAL)
 extern struct serial_device eserial1_device;
 extern struct serial_device eserial2_device;
 extern struct serial_device eserial3_device;
 extern struct serial_device eserial4_device;
-#endif /* CFG_NS16550_SERIAL */
+#endif /* CONFIG_SYS_NS16550_SERIAL */
 
 #endif
 
index d12bb67c2c8a401091d2f5fee7886734b884ba69..79be6988501fe8626ed9be0bf420bf066ab05127 100644 (file)
@@ -50,7 +50,7 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_cpm.cp_pbdat
 
 # define STATUS_LED_BIT                0x00000001
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
@@ -65,7 +65,7 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_ioport.iop_pddat
 
 # define STATUS_LED_BIT                0x00000001
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
@@ -81,7 +81,7 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_ioport.iop_pddat
 
 # define STATUS_LED_BIT                0x00000001
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     0               /* LED on for bit == 0  */
@@ -97,16 +97,16 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                        im_ioport.iop_padat
 
 # define STATUS_LED_BIT                        0x0800  /* Red LED 0 is on PA.4 */
-# define STATUS_LED_PERIOD             (CFG_HZ / 4)
+# define STATUS_LED_PERIOD             (CONFIG_SYS_HZ / 4)
 # define STATUS_LED_STATE              STATUS_LED_OFF
 # define STATUS_LED_BIT1               0x0400  /* Grn LED 1 is on PA.5 */
-# define STATUS_LED_PERIOD1            (CFG_HZ / 8)
+# define STATUS_LED_PERIOD1            (CONFIG_SYS_HZ / 8)
 # define STATUS_LED_STATE1             STATUS_LED_BLINKING
 # define STATUS_LED_BIT2               0x0080  /* Red LED 2 is on PA.8 */
-# define STATUS_LED_PERIOD2            (CFG_HZ / 4)
+# define STATUS_LED_PERIOD2            (CONFIG_SYS_HZ / 4)
 # define STATUS_LED_STATE2             STATUS_LED_OFF
 # define STATUS_LED_BIT3               0x0040  /* Grn LED 3 is on PA.9 */
-# define STATUS_LED_PERIOD3            (CFG_HZ / 4)
+# define STATUS_LED_PERIOD3            (CONFIG_SYS_HZ / 4)
 # define STATUS_LED_STATE3             STATUS_LED_OFF
 
 # define STATUS_LED_ACTIVE             1       /* LED on for bit == 1  */
@@ -121,21 +121,21 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_cpm.cp_pbdat
 
 # define STATUS_LED_BIT                0x00000010      /* LED 0 is on PB.27    */
-# define STATUS_LED_PERIOD     (1 * CFG_HZ)
+# define STATUS_LED_PERIOD     (1 * CONFIG_SYS_HZ)
 # define STATUS_LED_STATE      STATUS_LED_OFF
 # define STATUS_LED_BIT1       0x00000020      /* LED 1 is on PB.26    */
-# define STATUS_LED_PERIOD1    (1 * CFG_HZ)
+# define STATUS_LED_PERIOD1    (1 * CONFIG_SYS_HZ)
 # define STATUS_LED_STATE1     STATUS_LED_OFF
 /* IDE LED usable for other purposes, too */
 # define STATUS_LED_BIT2       0x00000008      /* LED 2 is on PB.28    */
-# define STATUS_LED_PERIOD2    (1 * CFG_HZ)
+# define STATUS_LED_PERIOD2    (1 * CONFIG_SYS_HZ)
 # define STATUS_LED_STATE2     STATUS_LED_OFF
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
 
 # define STATUS_ILOCK_SWITCH   0x00800000      /* ILOCK switch in IRQ4 */
 
-# define STATUS_ILOCK_PERIOD   (CFG_HZ / 10)   /* about every 100 ms   */
+# define STATUS_ILOCK_PERIOD   (CONFIG_SYS_HZ / 10)    /* about every 100 ms   */
 
 # define STATUS_LED_YELLOW     0
 # define STATUS_LED_GREEN      1
@@ -150,21 +150,21 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_cpm.cp_pbdat
 
 # define STATUS_LED_BIT                0x00000010      /* LED 0 is on PB.27    */
-# define STATUS_LED_PERIOD     (1 * CFG_HZ)
+# define STATUS_LED_PERIOD     (1 * CONFIG_SYS_HZ)
 # define STATUS_LED_STATE      STATUS_LED_OFF
 # define STATUS_LED_BIT1       0x00000020      /* LED 1 is on PB.26    */
-# define STATUS_LED_PERIOD1    (1 * CFG_HZ)
+# define STATUS_LED_PERIOD1    (1 * CONFIG_SYS_HZ)
 # define STATUS_LED_STATE1     STATUS_LED_OFF
 /* IDE LED usable for other purposes, too */
 # define STATUS_LED_BIT2       0x00000008      /* LED 2 is on PB.28    */
-# define STATUS_LED_PERIOD2    (1 * CFG_HZ)
+# define STATUS_LED_PERIOD2    (1 * CONFIG_SYS_HZ)
 # define STATUS_LED_STATE2     STATUS_LED_OFF
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
 
 # define STATUS_ILOCK_SWITCH   0x00004000      /* ILOCK is on PB.17    */
 
-# define STATUS_ILOCK_PERIOD   (CFG_HZ / 10)   /* about every 100 ms   */
+# define STATUS_ILOCK_PERIOD   (CONFIG_SYS_HZ / 10)    /* about every 100 ms   */
 
 # define STATUS_LED_YELLOW     0
 # define STATUS_LED_GREEN      1
@@ -183,7 +183,7 @@ void status_led_set  (int led, int state);
 # else
 #  define STATUS_LED_BIT       0x0800
 # endif
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     0               /* LED on for bit == 0 */
@@ -199,7 +199,7 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_cpm.cp_pbdat
 
 # define STATUS_LED_BIT                0x00010000      /* green LED is on PB.15 */
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1 */
@@ -215,10 +215,10 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_ioport.iop_padat
 
 # define STATUS_LED_BIT                0x4000          /* LED 0 is on PA.1 */
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 # define STATUS_LED_BIT1       0x1000          /* LED 1 is on PA.3 */
-# define STATUS_LED_PERIOD1    (CFG_HZ)
+# define STATUS_LED_PERIOD1    (CONFIG_SYS_HZ)
 # define STATUS_LED_STATE1     STATUS_LED_OFF
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
@@ -244,11 +244,11 @@ void status_led_set  (int led, int state);
 #define STATUS_LED_DAT         im_ioport.iop_pddat
 
 # define STATUS_LED_BIT                0x0080                  /* PD.8 */
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_BIT1       0x0040                  /* PD.9 */
-# define STATUS_LED_PERIOD1    (CFG_HZ / 2)
+# define STATUS_LED_PERIOD1    (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE1     STATUS_LED_OFF
 
 # define STATUS_LED_ACTIVE     0               /* LED on for bit == 0  */
@@ -263,7 +263,7 @@ void status_led_set  (int led, int state);
 
 # define STATUS_LED_BIT                0x2000          /* Select one of the 16 possible*/
                                                /* MIOS outputs */
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)    /* Blinking periode is 500 ms */
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)     /* Blinking periode is 500 ms */
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 0  */
@@ -278,7 +278,7 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_ioport.iop_padat
 
 # define STATUS_LED_BIT                0x00000300  /*  green + red    PA[8]=yellow,  PA[7]=red,  PA[6]=green */
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
@@ -292,7 +292,7 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT         im_cpm.cp_pbdat
 
 # define STATUS_LED_BIT         0x00000001
-# define STATUS_LED_PERIOD      (CFG_HZ / 2)
+# define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE       STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE      1               /* LED on for bit == 1  */
@@ -308,10 +308,10 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT         im_ioport.iop_pcdat
 
 # define STATUS_LED_BIT         0x0002          /* LED 0 is on PC.14 */
-# define STATUS_LED_PERIOD      (CFG_HZ / 2)
+# define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE       STATUS_LED_BLINKING
 # define STATUS_LED_BIT1        0x0004          /* LED 1 is on PC.13 */
-# define STATUS_LED_PERIOD1     (CFG_HZ)
+# define STATUS_LED_PERIOD1     (CONFIG_SYS_HZ)
 # define STATUS_LED_STATE1      STATUS_LED_OFF
 
 # define STATUS_LED_ACTIVE      1               /* LED on for bit == 1  */
@@ -326,7 +326,7 @@ void status_led_set  (int led, int state);
 # define STATUS_LED_DAT                im_ioport.iop_padat
 
 # define STATUS_LED_BIT                0x00000001      /* LED is on PA15 */
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     1               /* LED on for bit == 1  */
@@ -349,7 +349,7 @@ void status_led_set  (int led, int state);
 #elif defined(CONFIG_V38B)
 
 # define STATUS_LED_BIT                0x0010                  /* Timer7 GPIO */
-# define STATUS_LED_PERIOD     (CFG_HZ / 2)
+# define STATUS_LED_PERIOD     (CONFIG_SYS_HZ / 2)
 # define STATUS_LED_STATE      STATUS_LED_BLINKING
 
 # define STATUS_LED_ACTIVE     0               /* LED on for bit == 0 */
@@ -358,11 +358,11 @@ void status_led_set  (int led, int state);
 #elif defined(CONFIG_MOTIONPRO)
 
 #define STATUS_LED_BIT         ((vu_long *) MPC5XXX_GPT6_ENABLE)
-#define STATUS_LED_PERIOD      (CFG_HZ / 10)
+#define STATUS_LED_PERIOD      (CONFIG_SYS_HZ / 10)
 #define STATUS_LED_STATE       STATUS_LED_BLINKING
 
 #define STATUS_LED_BIT1                ((vu_long *) MPC5XXX_GPT7_ENABLE)
-#define STATUS_LED_PERIOD1     (CFG_HZ / 10)
+#define STATUS_LED_PERIOD1     (CONFIG_SYS_HZ / 10)
 #define STATUS_LED_STATE1      STATUS_LED_OFF
 
 #define STATUS_LED_BOOT                0       /* LED 0 used for boot status */
index f7e5857dffb8a033de63498c4bd46e7eee333dde..d2951f6d33bf396d7a2850267fbb65e0ad73ebad 100644 (file)
@@ -20,8 +20,8 @@
 #include <net.h>
 #include <config.h>
 
-#ifndef CFG_TSEC1_OFFSET
-    #define CFG_TSEC1_OFFSET   (0x24000)
+#ifndef CONFIG_SYS_TSEC1_OFFSET
+    #define CONFIG_SYS_TSEC1_OFFSET    (0x24000)
 #endif
 
 #define TSEC_SIZE      0x01000
@@ -29,7 +29,7 @@
 /* FIXME:  Should these be pushed back to 83xx and 85xx config files? */
 #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) \
        || defined(CONFIG_MPC83XX)
-    #define TSEC_BASE_ADDR     (CFG_IMMR + CFG_TSEC1_OFFSET)
+    #define TSEC_BASE_ADDR     (CONFIG_SYS_IMMR + CONFIG_SYS_TSEC1_OFFSET)
 #endif
 
 #define STD_TSEC_INFO(num) \
 #define miim_end -2
 #define miim_read -1
 
-#ifndef CFG_TBIPA_VALUE
-    #define CFG_TBIPA_VALUE    0x1f
+#ifndef CONFIG_SYS_TBIPA_VALUE
+    #define CONFIG_SYS_TBIPA_VALUE     0x1f
 #endif
 #define MIIMCFG_INIT_VALUE     0x00000003
 #define MIIMCFG_RESET          0x80000000
index 88ea9da6a80befe38421bb83aa4ca264f6eaeba3..6a76f5a7b264329f952ac41c1080524b3d42a863 100644 (file)
 /*
  * Interrupt controller
  */
-#define W83C553F_PIC1_ICW1     CFG_ISA_IO + 0x20
-#define W83C553F_PIC1_ICW2     CFG_ISA_IO + 0x21
-#define W83C553F_PIC1_ICW3     CFG_ISA_IO + 0x21
-#define W83C553F_PIC1_ICW4     CFG_ISA_IO + 0x21
-#define W83C553F_PIC1_OCW1     CFG_ISA_IO + 0x21
-#define W83C553F_PIC1_OCW2     CFG_ISA_IO + 0x20
-#define W83C553F_PIC1_OCW3     CFG_ISA_IO + 0x20
-#define W83C553F_PIC1_ELC      CFG_ISA_IO + 0x4D0
-#define W83C553F_PIC2_ICW1     CFG_ISA_IO + 0xA0
-#define W83C553F_PIC2_ICW2     CFG_ISA_IO + 0xA1
-#define W83C553F_PIC2_ICW3     CFG_ISA_IO + 0xA1
-#define W83C553F_PIC2_ICW4     CFG_ISA_IO + 0xA1
-#define W83C553F_PIC2_OCW1     CFG_ISA_IO + 0xA1
-#define W83C553F_PIC2_OCW2     CFG_ISA_IO + 0xA0
-#define W83C553F_PIC2_OCW3     CFG_ISA_IO + 0xA0
-#define W83C553F_PIC2_ELC      CFG_ISA_IO + 0x4D1
-
-#define W83C553F_TMR1_CMOD     CFG_ISA_IO + 0x43
+#define W83C553F_PIC1_ICW1     CONFIG_SYS_ISA_IO + 0x20
+#define W83C553F_PIC1_ICW2     CONFIG_SYS_ISA_IO + 0x21
+#define W83C553F_PIC1_ICW3     CONFIG_SYS_ISA_IO + 0x21
+#define W83C553F_PIC1_ICW4     CONFIG_SYS_ISA_IO + 0x21
+#define W83C553F_PIC1_OCW1     CONFIG_SYS_ISA_IO + 0x21
+#define W83C553F_PIC1_OCW2     CONFIG_SYS_ISA_IO + 0x20
+#define W83C553F_PIC1_OCW3     CONFIG_SYS_ISA_IO + 0x20
+#define W83C553F_PIC1_ELC      CONFIG_SYS_ISA_IO + 0x4D0
+#define W83C553F_PIC2_ICW1     CONFIG_SYS_ISA_IO + 0xA0
+#define W83C553F_PIC2_ICW2     CONFIG_SYS_ISA_IO + 0xA1
+#define W83C553F_PIC2_ICW3     CONFIG_SYS_ISA_IO + 0xA1
+#define W83C553F_PIC2_ICW4     CONFIG_SYS_ISA_IO + 0xA1
+#define W83C553F_PIC2_OCW1     CONFIG_SYS_ISA_IO + 0xA1
+#define W83C553F_PIC2_OCW2     CONFIG_SYS_ISA_IO + 0xA0
+#define W83C553F_PIC2_OCW3     CONFIG_SYS_ISA_IO + 0xA0
+#define W83C553F_PIC2_ELC      CONFIG_SYS_ISA_IO + 0x4D1
+
+#define W83C553F_TMR1_CMOD     CONFIG_SYS_ISA_IO + 0x43
 
 /*
  * DMA controller
  */
-#define W83C553F_DMA1  CFG_ISA_IO + 0x000      /* channel 0 - 3 */
-#define W83C553F_DMA2  CFG_ISA_IO + 0x0C0      /* channel 4 - 7 */
+#define W83C553F_DMA1  CONFIG_SYS_ISA_IO + 0x000       /* channel 0 - 3 */
+#define W83C553F_DMA2  CONFIG_SYS_ISA_IO + 0x0C0       /* channel 4 - 7 */
 
 /* command/status register bit definitions */
 
index ad33e1f288a1eb6cf1e604e3335bb544cb049f07..fdc358725cd6982a90905fccbcabe60f162dc0d7 100644 (file)
 
 /* Xilinx Model definitions
  *********************************************************************/
-#define CFG_SPARTAN2                   CFG_FPGA_DEV( 0x1 )
-#define CFG_VIRTEX_E                   CFG_FPGA_DEV( 0x2 )
-#define CFG_VIRTEX2                    CFG_FPGA_DEV( 0x4 )
-#define CFG_SPARTAN3                   CFG_FPGA_DEV( 0x8 )
-#define CFG_XILINX_SPARTAN2    (CFG_FPGA_XILINX | CFG_SPARTAN2)
-#define CFG_XILINX_VIRTEX_E    (CFG_FPGA_XILINX | CFG_VIRTEX_E)
-#define CFG_XILINX_VIRTEX2     (CFG_FPGA_XILINX | CFG_VIRTEX2)
-#define CFG_XILINX_SPARTAN3    (CFG_FPGA_XILINX | CFG_SPARTAN3)
+#define CONFIG_SYS_SPARTAN2                    CONFIG_SYS_FPGA_DEV( 0x1 )
+#define CONFIG_SYS_VIRTEX_E                    CONFIG_SYS_FPGA_DEV( 0x2 )
+#define CONFIG_SYS_VIRTEX2                     CONFIG_SYS_FPGA_DEV( 0x4 )
+#define CONFIG_SYS_SPARTAN3                    CONFIG_SYS_FPGA_DEV( 0x8 )
+#define CONFIG_SYS_XILINX_SPARTAN2     (CONFIG_SYS_FPGA_XILINX | CONFIG_SYS_SPARTAN2)
+#define CONFIG_SYS_XILINX_VIRTEX_E     (CONFIG_SYS_FPGA_XILINX | CONFIG_SYS_VIRTEX_E)
+#define CONFIG_SYS_XILINX_VIRTEX2      (CONFIG_SYS_FPGA_XILINX | CONFIG_SYS_VIRTEX2)
+#define CONFIG_SYS_XILINX_SPARTAN3     (CONFIG_SYS_FPGA_XILINX | CONFIG_SYS_SPARTAN3)
 /* XXX - Add new models here */
 
 
 /* Xilinx Interface definitions
  *********************************************************************/
-#define CFG_XILINX_IF_SS       CFG_FPGA_IF( 0x1 )      /* slave serial         */
-#define CFG_XILINX_IF_MS       CFG_FPGA_IF( 0x2 )      /* master serial        */
-#define CFG_XILINX_IF_SP       CFG_FPGA_IF( 0x4 )      /* slave parallel       */
-#define CFG_XILINX_IF_JTAG     CFG_FPGA_IF( 0x8 )      /* jtag                 */
-#define CFG_XILINX_IF_MSM      CFG_FPGA_IF( 0x10 )     /* master selectmap     */
-#define CFG_XILINX_IF_SSM      CFG_FPGA_IF( 0x20 )     /* slave selectmap      */
+#define CONFIG_SYS_XILINX_IF_SS        CONFIG_SYS_FPGA_IF( 0x1 )       /* slave serial         */
+#define CONFIG_SYS_XILINX_IF_MS        CONFIG_SYS_FPGA_IF( 0x2 )       /* master serial        */
+#define CONFIG_SYS_XILINX_IF_SP        CONFIG_SYS_FPGA_IF( 0x4 )       /* slave parallel       */
+#define CONFIG_SYS_XILINX_IF_JTAG      CONFIG_SYS_FPGA_IF( 0x8 )       /* jtag                 */
+#define CONFIG_SYS_XILINX_IF_MSM       CONFIG_SYS_FPGA_IF( 0x10 )      /* master selectmap     */
+#define CONFIG_SYS_XILINX_IF_SSM       CONFIG_SYS_FPGA_IF( 0x20 )      /* slave selectmap      */
 
 /* Xilinx types
  *********************************************************************/
index f02fdc87cac6a84312b25be5e77da88016bed1c6..4ba1f5ee781c9ce9ff859ac0da037db6a4a379d6 100644 (file)
@@ -95,7 +95,7 @@ static
 void mem_malloc_init (ulong dest_addr)
 {
        mem_malloc_start = dest_addr;
-       mem_malloc_end = dest_addr + CFG_MALLOC_LEN;
+       mem_malloc_end = dest_addr + CONFIG_SYS_MALLOC_LEN;
        mem_malloc_brk = mem_malloc_start;
 
        memset ((void *) mem_malloc_start, 0,
@@ -202,19 +202,19 @@ static int display_dram_config (void)
        return (0);
 }
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
 static void display_flash_config (ulong size)
 {
        puts ("Flash: ");
        print_size (size, "\n");
 }
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
 
 #if defined(CONFIG_HARD_I2C) || defined(CONFIG_SOFT_I2C)
 static int init_func_i2c (void)
 {
        puts ("I2C:   ");
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        puts ("ready\n");
        return (0);
 }
@@ -274,7 +274,7 @@ void start_armboot (void)
 {
        init_fnc_t **init_fnc_ptr;
        char *s;
-#if !defined(CFG_NO_FLASH) || defined (CONFIG_VFD) || defined(CONFIG_LCD)
+#if !defined(CONFIG_SYS_NO_FLASH) || defined (CONFIG_VFD) || defined(CONFIG_LCD)
        ulong size;
 #endif
 #if defined(CONFIG_VFD) || defined(CONFIG_LCD)
@@ -282,7 +282,7 @@ void start_armboot (void)
 #endif
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t*)(_armboot_start - CFG_MALLOC_LEN - sizeof(gd_t));
+       gd = (gd_t*)(_armboot_start - CONFIG_SYS_MALLOC_LEN - sizeof(gd_t));
        /* compiler optimization barrier needed for GCC >= 3.4 */
        __asm__ __volatile__("": : :"memory");
 
@@ -300,11 +300,11 @@ void start_armboot (void)
                }
        }
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        /* configure available FLASH banks */
        size = flash_init ();
        display_flash_config (size);
-#endif /* CFG_NO_FLASH */
+#endif /* CONFIG_SYS_NO_FLASH */
 
 #ifdef CONFIG_VFD
 #      ifndef PAGE_SIZE
@@ -336,7 +336,7 @@ void start_armboot (void)
 #endif /* CONFIG_LCD */
 
        /* armboot_start is defined in the board-specific linker script */
-       mem_malloc_init (_armboot_start - CFG_MALLOC_LEN);
+       mem_malloc_init (_armboot_start - CONFIG_SYS_MALLOC_LEN);
 
 #if defined(CONFIG_CMD_NAND)
        puts ("NAND:  ");
@@ -498,7 +498,7 @@ int mdm_init (void)
                        serial_puts(init_str);
                        serial_puts("\n");
                        for(;;) {
-                               mdm_readline(console_buffer, CFG_CBSIZE);
+                               mdm_readline(console_buffer, CONFIG_SYS_CBSIZE);
                                dbg("ini%d: [%s]", i, console_buffer);
 
                                if ((strcmp(console_buffer, "OK") == 0) ||
@@ -522,7 +522,7 @@ int mdm_init (void)
        /* final stage - wait for connect */
        for(;i > 1;) { /* if 'i' > 1 - wait for connection
                                  message from modem */
-               mdm_readline(console_buffer, CFG_CBSIZE);
+               mdm_readline(console_buffer, CONFIG_SYS_CBSIZE);
                dbg("ini_f: [%s]", console_buffer);
                if (strncmp(console_buffer, "CONNECT", 7) == 0) {
                        dbg("ini_f: connected");
index f3d0c52270fd7e3b0db48637ed92401add2a6a14..8771de90c37e19ae10189c6b5c54eb720acc3981 100644 (file)
@@ -52,9 +52,9 @@ static void mem_malloc_init(void)
 {
        unsigned long monitor_addr;
 
-       monitor_addr = CFG_MONITOR_BASE + gd->reloc_off;
+       monitor_addr = CONFIG_SYS_MONITOR_BASE + gd->reloc_off;
        mem_malloc_end = monitor_addr;
-       mem_malloc_start = mem_malloc_end - CFG_MALLOC_LEN;
+       mem_malloc_start = mem_malloc_end - CONFIG_SYS_MALLOC_LEN;
        mem_malloc_brk = mem_malloc_start;
 
        printf("malloc: Using memory from 0x%08lx to 0x%08lx\n",
@@ -76,7 +76,7 @@ void *sbrk(ptrdiff_t increment)
        return ((void *)old);
 }
 
-#ifdef CFG_DMA_ALLOC_LEN
+#ifdef CONFIG_SYS_DMA_ALLOC_LEN
 #include <asm/cacheflush.h>
 #include <asm/io.h>
 
@@ -88,9 +88,9 @@ static void dma_alloc_init(void)
 {
        unsigned long monitor_addr;
 
-       monitor_addr = CFG_MONITOR_BASE + gd->reloc_off;
-       dma_alloc_end = monitor_addr - CFG_MALLOC_LEN;
-       dma_alloc_start = dma_alloc_end - CFG_DMA_ALLOC_LEN;
+       monitor_addr = CONFIG_SYS_MONITOR_BASE + gd->reloc_off;
+       dma_alloc_end = monitor_addr - CONFIG_SYS_MALLOC_LEN;
+       dma_alloc_start = dma_alloc_end - CONFIG_SYS_DMA_ALLOC_LEN;
        dma_alloc_brk = dma_alloc_start;
 
        printf("DMA: Using memory from 0x%08lx to 0x%08lx\n",
@@ -107,8 +107,8 @@ void *dma_alloc_coherent(size_t len, unsigned long *handle)
        if (dma_alloc_brk + len > dma_alloc_end)
                return NULL;
 
-       dma_alloc_brk = ((paddr + len + CFG_DCACHE_LINESZ - 1)
-                        & ~(CFG_DCACHE_LINESZ - 1));
+       dma_alloc_brk = ((paddr + len + CONFIG_SYS_DCACHE_LINESZ - 1)
+                        & ~(CONFIG_SYS_DCACHE_LINESZ - 1));
 
        *handle = paddr;
        return uncached(paddr);
@@ -209,7 +209,7 @@ void board_init_f(ulong board_type)
         *  - global data struct
         *  - stack
         */
-       addr = CFG_SDRAM_BASE + sdram_size;
+       addr = CONFIG_SYS_SDRAM_BASE + sdram_size;
        monitor_len = _end - _text;
 
        /*
@@ -221,12 +221,12 @@ void board_init_f(ulong board_type)
        monitor_addr = addr;
 
        /* Reserve memory for malloc() */
-       addr -= CFG_MALLOC_LEN;
+       addr -= CONFIG_SYS_MALLOC_LEN;
 
-#ifdef CFG_DMA_ALLOC_LEN
+#ifdef CONFIG_SYS_DMA_ALLOC_LEN
        /* Reserve DMA memory (must be cache aligned) */
-       addr &= ~(CFG_DCACHE_LINESZ - 1);
-       addr -= CFG_DMA_ALLOC_LEN;
+       addr &= ~(CONFIG_SYS_DCACHE_LINESZ - 1);
+       addr -= CONFIG_SYS_DMA_ALLOC_LEN;
 #endif
 
        /* Allocate a Board Info struct on a word boundary */
@@ -249,7 +249,7 @@ void board_init_f(ulong board_type)
         * Initialize the board information struct with the
         * information we have.
         */
-       bd->bi_dram[0].start = CFG_SDRAM_BASE;
+       bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
        bd->bi_dram[0].size = sdram_size;
        bd->bi_baudrate = gd->baudrate;
 
@@ -272,7 +272,7 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
        bd = gd->bd;
 
        gd->flags |= GD_FLG_RELOC;
-       gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
+       gd->reloc_off = dest_addr - CONFIG_SYS_MONITOR_BASE;
 
        monitor_flash_len = _edata - _text;
 
@@ -293,7 +293,7 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
                        addr = (unsigned long)cmdtp->usage + gd->reloc_off;
                        cmdtp->usage = (typeof(cmdtp->usage))addr;
                }
-#ifdef CFG_LONGHELP
+#ifdef CONFIG_SYS_LONGHELP
                if (cmdtp->help) {
                        addr = (unsigned long)cmdtp->help + gd->reloc_off;
                        cmdtp->help = (typeof(cmdtp->help))addr;
@@ -318,8 +318,8 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
        bd->bi_flashsize = 0;
        bd->bi_flashoffset = 0;
 
-#ifndef CFG_NO_FLASH
-       bd->bi_flashstart = CFG_FLASH_BASE;
+#ifndef CONFIG_SYS_NO_FLASH
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
        bd->bi_flashsize = flash_init();
        bd->bi_flashoffset = (unsigned long)_edata - (unsigned long)_text;
 
@@ -330,7 +330,7 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
        if (bd->bi_dram[0].size)
                display_dram_config();
 
-       gd->bd->bi_boot_params = malloc(CFG_BOOTPARAMS_LEN);
+       gd->bd->bi_boot_params = malloc(CONFIG_SYS_BOOTPARAMS_LEN);
        if (!gd->bd->bi_boot_params)
                puts("WARNING: Cannot allocate space for boot parameters\n");
 
index 0b8e664141a6e8e8639232e752238c4784905698..ba573928b9e6abe24cb5d367efdaadac3a40cdc1 100644 (file)
@@ -91,8 +91,8 @@ static void *mem_malloc_start, *mem_malloc_end, *mem_malloc_brk;
 
 static void mem_malloc_init(void)
 {
-       mem_malloc_start = (void *)CFG_MALLOC_BASE;
-       mem_malloc_end = (void *)(CFG_MALLOC_BASE + CFG_MALLOC_LEN);
+       mem_malloc_start = (void *)CONFIG_SYS_MALLOC_BASE;
+       mem_malloc_end = (void *)(CONFIG_SYS_MALLOC_BASE + CONFIG_SYS_MALLOC_LEN);
        mem_malloc_brk = mem_malloc_start;
        memset(mem_malloc_start, 0, mem_malloc_end - mem_malloc_start);
 }
@@ -192,16 +192,16 @@ void init_cplbtables(void)
        dcplb_add(0xFF800000, L1_DMEMORY);
        ++i;
 
-       icplb_add(CFG_MONITOR_BASE & CPLB_PAGE_MASK, SDRAM_IKERNEL);
-       dcplb_add(CFG_MONITOR_BASE & CPLB_PAGE_MASK, SDRAM_DKERNEL);
+       icplb_add(CONFIG_SYS_MONITOR_BASE & CPLB_PAGE_MASK, SDRAM_IKERNEL);
+       dcplb_add(CONFIG_SYS_MONITOR_BASE & CPLB_PAGE_MASK, SDRAM_DKERNEL);
        ++i;
 
        /* If the monitor crosses a 4 meg boundary, we'll need
         * to lock two entries for it.
         */
-       if ((CFG_MONITOR_BASE & CPLB_PAGE_MASK) != ((CFG_MONITOR_BASE + CFG_MONITOR_LEN) & CPLB_PAGE_MASK)) {
-               icplb_add((CFG_MONITOR_BASE + CFG_MONITOR_LEN) & CPLB_PAGE_MASK, SDRAM_IKERNEL);
-               dcplb_add((CFG_MONITOR_BASE + CFG_MONITOR_LEN) & CPLB_PAGE_MASK, SDRAM_DKERNEL);
+       if ((CONFIG_SYS_MONITOR_BASE & CPLB_PAGE_MASK) != ((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) & CPLB_PAGE_MASK)) {
+               icplb_add((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) & CPLB_PAGE_MASK, SDRAM_IKERNEL);
+               dcplb_add((CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) & CPLB_PAGE_MASK, SDRAM_DKERNEL);
                ++i;
        }
 
@@ -222,7 +222,7 @@ void init_cplbtables(void)
        ++i;
 #endif
 
-       while (i < 16 && extern_memory < (CFG_MONITOR_BASE & CPLB_PAGE_MASK)) {
+       while (i < 16 && extern_memory < (CONFIG_SYS_MONITOR_BASE & CPLB_PAGE_MASK)) {
                icplb_add(extern_memory, SDRAM_IGENERIC);
                dcplb_add(extern_memory, SDRAM_DGENERIC);
                extern_memory += CPLB_PAGE_SIZE;
@@ -279,11 +279,11 @@ void board_init_f(ulong bootflag)
 #endif
 
        serial_early_puts("Init global data\n");
-       gd = (gd_t *) (CFG_GBL_DATA_ADDR);
+       gd = (gd_t *) (CONFIG_SYS_GBL_DATA_ADDR);
        memset((void *)gd, 0, sizeof(gd_t));
 
        /* Board data initialization */
-       addr = (CFG_GBL_DATA_ADDR + sizeof(gd_t));
+       addr = (CONFIG_SYS_GBL_DATA_ADDR + sizeof(gd_t));
 
        /* Align to 4 byte boundary */
        addr &= ~(4 - 1);
@@ -336,7 +336,7 @@ void board_init_f(ulong bootflag)
 static int init_func_i2c(void)
 {
        puts("I2C:   ");
-       i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        puts("ready\n");
        return (0);
 }
@@ -356,16 +356,16 @@ void board_init_r(gd_t * id, ulong dest_addr)
        post_reloc();
 #endif
 
-#if    !defined(CFG_NO_FLASH)
+#if    !defined(CONFIG_SYS_NO_FLASH)
        /* There are some other pointer constants we must deal with */
        /* configure available FLASH banks */
        extern flash_info_t flash_info[];
        ulong size = flash_init();
        puts("Flash: ");
        print_size(size, "\n");
-       flash_protect(FLAG_PROTECT_SET, CFG_FLASH_BASE,
-                     CFG_FLASH_BASE + 0x1ffff, &flash_info[0]);
-       bd->bi_flashstart = CFG_FLASH_BASE;
+       flash_protect(FLAG_PROTECT_SET, CONFIG_SYS_FLASH_BASE,
+                     CONFIG_SYS_FLASH_BASE + 0x1ffff, &flash_info[0]);
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
        bd->bi_flashsize = size;
        bd->bi_flashoffset = 0;
 #else
index 3c4d5c51ddac0ec49164ca34e3c836b00faac11b..4ab9e8bf034efa40a3539ace5531fa2516886e5d 100644 (file)
@@ -345,7 +345,7 @@ int post_log(char *format, ...)
 {
        va_list args;
        uint i;
-       char printbuffer[CFG_PBSIZE];
+       char printbuffer[CONFIG_SYS_PBSIZE];
 
        va_start(args, format);
 
@@ -419,7 +419,7 @@ void post_reloc(void)
  */
 unsigned long post_time_ms(unsigned long base)
 {
-       return (unsigned long)get_ticks() / (get_tbclk() / CFG_HZ) - base;
+       return (unsigned long)get_ticks() / (get_tbclk() / CONFIG_SYS_HZ) - base;
 }
 
 #endif                         /* CONFIG_POST */
index 051649d2329b62e1acc423133a11785e06263cef..c2319ecb7b88e64b70928051cc4df0836596ce1d 100644 (file)
@@ -21,7 +21,7 @@
  * MA 02111-1307 USA
  *
  * Be sure to mark tests to be run before relocation as such with the
- * CFG_POST_PREREL flag so that logging is done correctly if the
+ * CONFIG_SYS_POST_PREREL flag so that logging is done correctly if the
  * logbuffer support is enabled.
  */
 
@@ -30,9 +30,9 @@
 #ifdef CONFIG_POST
 
 #include <post.h>
-#define CFG_POST_FLASH  0x00004000
-#define CFG_POST_LED    0x00008000
-#define CFG_POST_BUTTON 0x00010000
+#define CONFIG_SYS_POST_FLASH  0x00004000
+#define CONFIG_SYS_POST_LED    0x00008000
+#define CONFIG_SYS_POST_BUTTON 0x00010000
 
 extern int cache_post_test(int flags);
 extern int watchdog_post_test(int flags);
@@ -58,7 +58,7 @@ extern int led_post_test(int flags);
 extern int button_post_test(int flags);
 
 struct post_test post_list[] = {
-#if CONFIG_POST & CFG_POST_CACHE
+#if CONFIG_POST & CONFIG_SYS_POST_CACHE
        {
         "Cache test",
         "cache",
@@ -67,9 +67,9 @@ struct post_test post_list[] = {
         &cache_post_test,
         NULL,
         NULL,
-        CFG_POST_CACHE},
+        CONFIG_SYS_POST_CACHE},
 #endif
-#if CONFIG_POST & CFG_POST_WATCHDOG
+#if CONFIG_POST & CONFIG_SYS_POST_WATCHDOG
        {
         "Watchdog timer test",
         "watchdog",
@@ -78,9 +78,9 @@ struct post_test post_list[] = {
         &watchdog_post_test,
         NULL,
         NULL,
-        CFG_POST_WATCHDOG},
+        CONFIG_SYS_POST_WATCHDOG},
 #endif
-#if CONFIG_POST & CFG_POST_I2C
+#if CONFIG_POST & CONFIG_SYS_POST_I2C
        {
         "I2C test",
         "i2c",
@@ -89,9 +89,9 @@ struct post_test post_list[] = {
         &i2c_post_test,
         NULL,
         NULL,
-        CFG_POST_I2C},
+        CONFIG_SYS_POST_I2C},
 #endif
-#if CONFIG_POST & CFG_POST_RTC
+#if CONFIG_POST & CONFIG_SYS_POST_RTC
        {
         "RTC test",
         "rtc",
@@ -100,9 +100,9 @@ struct post_test post_list[] = {
         &rtc_post_test,
         NULL,
         NULL,
-        CFG_POST_RTC},
+        CONFIG_SYS_POST_RTC},
 #endif
-#if CONFIG_POST & CFG_POST_MEMORY
+#if CONFIG_POST & CONFIG_SYS_POST_MEMORY
        {
         "Memory test",
         "memory",
@@ -111,9 +111,9 @@ struct post_test post_list[] = {
         &memory_post_test,
         NULL,
         NULL,
-        CFG_POST_MEMORY},
+        CONFIG_SYS_POST_MEMORY},
 #endif
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
        {
         "CPU test",
         "cpu",
@@ -122,9 +122,9 @@ struct post_test post_list[] = {
         &cpu_post_test,
         NULL,
         NULL,
-        CFG_POST_CPU},
+        CONFIG_SYS_POST_CPU},
 #endif
-#if CONFIG_POST & CFG_POST_UART
+#if CONFIG_POST & CONFIG_SYS_POST_UART
        {
         "UART test",
         "uart",
@@ -133,9 +133,9 @@ struct post_test post_list[] = {
         &uart_post_test,
         NULL,
         NULL,
-        CFG_POST_UART},
+        CONFIG_SYS_POST_UART},
 #endif
-#if CONFIG_POST & CFG_POST_ETHER
+#if CONFIG_POST & CONFIG_SYS_POST_ETHER
        {
         "ETHERNET test",
         "ethernet",
@@ -144,9 +144,9 @@ struct post_test post_list[] = {
         &ether_post_test,
         NULL,
         NULL,
-        CFG_POST_ETHER},
+        CONFIG_SYS_POST_ETHER},
 #endif
-#if CONFIG_POST & CFG_POST_SPI
+#if CONFIG_POST & CONFIG_SYS_POST_SPI
        {
         "SPI test",
         "spi",
@@ -155,9 +155,9 @@ struct post_test post_list[] = {
         &spi_post_test,
         NULL,
         NULL,
-        CFG_POST_SPI},
+        CONFIG_SYS_POST_SPI},
 #endif
-#if CONFIG_POST & CFG_POST_USB
+#if CONFIG_POST & CONFIG_SYS_POST_USB
        {
         "USB test",
         "usb",
@@ -166,9 +166,9 @@ struct post_test post_list[] = {
         &usb_post_test,
         NULL,
         NULL,
-        CFG_POST_USB},
+        CONFIG_SYS_POST_USB},
 #endif
-#if CONFIG_POST & CFG_POST_SPR
+#if CONFIG_POST & CONFIG_SYS_POST_SPR
        {
         "SPR test",
         "spr",
@@ -177,9 +177,9 @@ struct post_test post_list[] = {
         &spr_post_test,
         NULL,
         NULL,
-        CFG_POST_SPR},
+        CONFIG_SYS_POST_SPR},
 #endif
-#if CONFIG_POST & CFG_POST_SYSMON
+#if CONFIG_POST & CONFIG_SYS_POST_SYSMON
        {
         "SYSMON test",
         "sysmon",
@@ -188,9 +188,9 @@ struct post_test post_list[] = {
         &sysmon_post_test,
         &sysmon_init_f,
         &sysmon_reloc,
-        CFG_POST_SYSMON},
+        CONFIG_SYS_POST_SYSMON},
 #endif
-#if CONFIG_POST & CFG_POST_DSP
+#if CONFIG_POST & CONFIG_SYS_POST_DSP
        {
         "DSP test",
         "dsp",
@@ -199,9 +199,9 @@ struct post_test post_list[] = {
         &dsp_post_test,
         NULL,
         NULL,
-        CFG_POST_DSP},
+        CONFIG_SYS_POST_DSP},
 #endif
-#if CONFIG_POST & CFG_POST_CODEC
+#if CONFIG_POST & CONFIG_SYS_POST_CODEC
        {
         "CODEC test",
         "codec",
@@ -210,9 +210,9 @@ struct post_test post_list[] = {
         &codec_post_test,
         NULL,
         NULL,
-        CFG_POST_CODEC},
+        CONFIG_SYS_POST_CODEC},
 #endif
-#if CONFIG_POST & CFG_POST_FLASH
+#if CONFIG_POST & CONFIG_SYS_POST_FLASH
        {
         "FLASH test",
         "flash",
@@ -221,9 +221,9 @@ struct post_test post_list[] = {
         &flash_post_test,
         NULL,
         NULL,
-        CFG_POST_FLASH},
+        CONFIG_SYS_POST_FLASH},
 #endif
-#if CONFIG_POST & CFG_POST_LED
+#if CONFIG_POST & CONFIG_SYS_POST_LED
        {
         "LED test",
         "LED",
@@ -232,9 +232,9 @@ struct post_test post_list[] = {
         &led_post_test,
         NULL,
         NULL,
-        CFG_POST_LED},
+        CONFIG_SYS_POST_LED},
 #endif
-#if CONFIG_POST & CFG_POST_BUTTON
+#if CONFIG_POST & CONFIG_SYS_POST_BUTTON
        {
         "Button test",
         "button",
@@ -243,7 +243,7 @@ struct post_test post_list[] = {
         &button_post_test,
         NULL,
         NULL,
-        CFG_POST_BUTTON},
+        CONFIG_SYS_POST_BUTTON},
 #endif
 
 };
index 7c9cfe16cefa83e9a665fc04b3776f875acd8b43..6e903dbb3d5ef8066c266ec41393fce1eca96a15 100644 (file)
@@ -55,7 +55,7 @@ long simple_strtol(const char *cp,char **endp,unsigned int base)
        return simple_strtoul(cp,endp,base);
 }
 
-#ifdef CFG_64BIT_STRTOUL
+#ifdef CONFIG_SYS_64BIT_STRTOUL
 unsigned long long simple_strtoull (const char *cp, char **endp, unsigned int base)
 {
        unsigned long long result = 0, value;
@@ -83,7 +83,7 @@ unsigned long long simple_strtoull (const char *cp, char **endp, unsigned int ba
                *endp = (char *) cp;
        return result;
 }
-#endif /* CFG_64BIT_STRTOUL */
+#endif /* CONFIG_SYS_64BIT_STRTOUL */
 
 /* we use this so that we can do without the ctype library */
 #define is_digit(c)    ((c) >= '0' && (c) <= '9')
@@ -105,7 +105,7 @@ static int skip_atoi(const char **s)
 #define SPECIAL        32              /* 0x */
 #define LARGE  64              /* use 'ABCDEF' instead of 'abcdef' */
 
-#ifdef CFG_64BIT_VSPRINTF
+#ifdef CONFIG_SYS_64BIT_VSPRINTF
 #define do_div(n,base) ({ \
        unsigned int __res; \
        __res = ((unsigned long long) n) % base; \
@@ -121,7 +121,7 @@ static int skip_atoi(const char **s)
 })
 #endif
 
-#ifdef CFG_64BIT_VSPRINTF
+#ifdef CONFIG_SYS_64BIT_VSPRINTF
 static char * number(char * str, long long num, unsigned int base, int size, int precision ,int type)
 #else
 static char * number(char * str, long num, unsigned int base, int size, int precision ,int type)
@@ -197,7 +197,7 @@ int sprintf(char * buf, const char *fmt, ...);
 int vsprintf(char *buf, const char *fmt, va_list args)
 {
        int len;
-#ifdef CFG_64BIT_VSPRINTF
+#ifdef CONFIG_SYS_64BIT_VSPRINTF
        unsigned long long num;
 #else
        unsigned long num;
@@ -352,7 +352,7 @@ int vsprintf(char *buf, const char *fmt, va_list args)
                                --fmt;
                        continue;
                }
-#ifdef CFG_64BIT_VSPRINTF
+#ifdef CONFIG_SYS_64BIT_VSPRINTF
                if (qualifier == 'q')  /* "quad" for 64 bit variables */
                        num = va_arg(args, unsigned long long);
                else
index f3da0a292c2f63d14a0a11567d448949db041a13..659f9a243abe2a21a1ce9809e015aedd0b5047e3 100644 (file)
@@ -84,7 +84,7 @@ static int mem_malloc_init(void)
 {
        /* start malloc area right after the stack */
        mem_malloc_start = i386boot_bss_start +
-               i386boot_bss_size + CFG_STACK_SIZE;
+               i386boot_bss_size + CONFIG_SYS_STACK_SIZE;
        mem_malloc_start = (mem_malloc_start+3)&~3;
 
        /* Use all available RAM for malloc() */
@@ -137,7 +137,7 @@ static int display_banner (void)
                i386boot_romdata_dest, i386boot_romdata_dest+i386boot_romdata_size-1,
                i386boot_bss_start, i386boot_bss_start+i386boot_bss_size-1,
                i386boot_bss_start+i386boot_bss_size,
-               i386boot_bss_start+i386boot_bss_size+CFG_STACK_SIZE-1);
+               i386boot_bss_start+i386boot_bss_size+CONFIG_SYS_STACK_SIZE-1);
 
 
        return (0);
index fa6ab6bd8e0012ff4d3276ceafa44afa57136333..583ce1072c182d084e6c5d4b89aa9f0bbff7b7c6 100644 (file)
@@ -49,7 +49,7 @@
 #if defined(CONFIG_CMD_BEDBUG)
 #include <cmd_bedbug.h>
 #endif
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
 #include <commproc.h>
 #endif
 #include <version.h>
@@ -75,12 +75,12 @@ extern flash_info_t flash_info[];
 
 #include <environment.h>
 
-#if ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CFG_MONITOR_BASE) || \
-      (CONFIG_ENV_ADDR >= (CFG_MONITOR_BASE + CFG_MONITOR_LEN)) ) || \
+#if ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CONFIG_SYS_MONITOR_BASE) || \
+      (CONFIG_ENV_ADDR >= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)) ) || \
     defined(CONFIG_ENV_IS_IN_NVRAM)
-#define        TOTAL_MALLOC_LEN        (CFG_MALLOC_LEN + CONFIG_ENV_SIZE)
+#define        TOTAL_MALLOC_LEN        (CONFIG_SYS_MALLOC_LEN + CONFIG_ENV_SIZE)
 #else
-#define        TOTAL_MALLOC_LEN        CFG_MALLOC_LEN
+#define        TOTAL_MALLOC_LEN        CONFIG_SYS_MALLOC_LEN
 #endif
 
 extern ulong __init_end;
@@ -118,7 +118,7 @@ static      ulong   mem_malloc_brk   = 0;
  */
 static void mem_malloc_init (void)
 {
-       ulong dest_addr = CFG_MONITOR_BASE + gd->reloc_off;
+       ulong dest_addr = CONFIG_SYS_MONITOR_BASE + gd->reloc_off;
 
        mem_malloc_end = dest_addr;
        mem_malloc_start = dest_addr - TOTAL_MALLOC_LEN;
@@ -195,7 +195,7 @@ static int init_func_ram (void)
 static int init_func_i2c (void)
 {
        puts ("I2C:   ");
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        puts ("ready\n");
        return (0);
 }
@@ -234,9 +234,9 @@ init_fnc_t *init_sequence[] = {
        init_func_spi,
 #endif
        init_func_ram,
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
        testdram,
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
        INIT_FUNC_WATCHDOG_INIT
        NULL,                   /* Terminate this list */
 };
@@ -273,7 +273,7 @@ board_init_f (ulong bootflag)
 #endif
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
        /* compiler optimization barrier needed for GCC >= 3.4 */
        __asm__ __volatile__("": : :"memory");
 
@@ -296,9 +296,9 @@ board_init_f (ulong bootflag)
         *      - monitor code
         *      - board info struct
         */
-       len = (ulong)&_end - CFG_MONITOR_BASE;
+       len = (ulong)&_end - CONFIG_SYS_MONITOR_BASE;
 
-       addr = CFG_SDRAM_BASE + gd->ram_size;
+       addr = CONFIG_SYS_SDRAM_BASE + gd->ram_size;
 
 #ifdef CONFIG_LOGBUFFER
        /* reserve kernel log buffer */
@@ -357,10 +357,10 @@ board_init_f (ulong bootflag)
                        sizeof (gd_t), addr_sp);
 
        /* Reserve memory for boot params. */
-       addr_sp -= CFG_BOOTPARAMS_LEN;
+       addr_sp -= CONFIG_SYS_BOOTPARAMS_LEN;
        bd->bi_boot_params = addr_sp;
        debug ("Reserving %dk for boot parameters at: %08lx\n",
-                       CFG_BOOTPARAMS_LEN >> 10, addr_sp);
+                       CONFIG_SYS_BOOTPARAMS_LEN >> 10, addr_sp);
 
        /*
         * Finally, we set up a new (bigger) stack.
@@ -381,13 +381,13 @@ board_init_f (ulong bootflag)
        /*
         * Save local variables to board info struct
         */
-       bd->bi_memstart  = CFG_SDRAM_BASE;      /* start of  DRAM memory      */
+       bd->bi_memstart  = CONFIG_SYS_SDRAM_BASE;       /* start of  DRAM memory      */
        bd->bi_memsize   = gd->ram_size;        /* size  of  DRAM memory in bytes */
-#ifdef CFG_INIT_RAM_ADDR
-       bd->bi_sramstart = CFG_INIT_RAM_ADDR;   /* start of  SRAM memory        */
-       bd->bi_sramsize  = CFG_INIT_RAM_END;    /* size  of  SRAM memory        */
+#ifdef CONFIG_SYS_INIT_RAM_ADDR
+       bd->bi_sramstart = CONFIG_SYS_INIT_RAM_ADDR;    /* start of  SRAM memory        */
+       bd->bi_sramsize  = CONFIG_SYS_INIT_RAM_END;     /* size  of  SRAM memory        */
 #endif
-       bd->bi_mbar_base = CFG_MBAR;            /* base of internal registers */
+       bd->bi_mbar_base = CONFIG_SYS_MBAR;             /* base of internal registers */
 
        bd->bi_bootflags = bootflag;            /* boot / reboot flag (for LynxOS)    */
 
@@ -404,7 +404,7 @@ board_init_f (ulong bootflag)
 #endif
        bd->bi_baudrate = gd->baudrate; /* Console Baudrate     */
 
-#ifdef CFG_EXTBDINFO
+#ifdef CONFIG_SYS_EXTBDINFO
        strncpy (bd->bi_s_version, "1.2", sizeof (bd->bi_s_version));
        strncpy (bd->bi_r_version, U_BOOT_VERSION, sizeof (bd->bi_r_version));
 #endif
@@ -420,7 +420,7 @@ board_init_f (ulong bootflag)
 
        memcpy (id, (void *)gd, sizeof (gd_t));
 
-       debug ("Start relocate of code from %08x to %08lx\n", CFG_MONITOR_BASE, addr);
+       debug ("Start relocate of code from %08x to %08lx\n", CONFIG_SYS_MONITOR_BASE, addr);
        relocate_code (addr_sp, id, addr);
 
        /* NOTREACHED - jump_to_ram() does not return */
@@ -446,7 +446,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
 #ifndef CONFIG_ENV_IS_NOWHERE
        extern char * env_name_spec;
 #endif
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        ulong flash_size;
 #endif
        gd = id;                /* initialize RAM version of global data */
@@ -462,7 +462,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
 
        WATCHDOG_RESET ();
 
-       gd->reloc_off =  dest_addr - CFG_MONITOR_BASE;
+       gd->reloc_off =  dest_addr - CONFIG_SYS_MONITOR_BASE;
 
        monitor_flash_len = (ulong)&__init_end - dest_addr;
 
@@ -486,7 +486,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
                        addr = (ulong)(cmdtp->usage) + gd->reloc_off;
                        cmdtp->usage = (char *)addr;
                }
-#ifdef CFG_LONGHELP
+#ifdef CONFIG_SYS_LONGHELP
                if (cmdtp->help) {
                        addr = (ulong)(cmdtp->help) + gd->reloc_off;
                        cmdtp->help = (char *)addr;
@@ -517,13 +517,13 @@ void board_init_r (gd_t *id, ulong dest_addr)
        /*
         * Setup trap handlers
         */
-       trap_init (CFG_SDRAM_BASE);
+       trap_init (CONFIG_SYS_SDRAM_BASE);
 
-#if !defined(CFG_NO_FLASH)
+#if !defined(CONFIG_SYS_NO_FLASH)
        puts ("FLASH: ");
 
        if ((flash_size = flash_init ()) > 0) {
-# ifdef CFG_FLASH_CHECKSUM
+# ifdef CONFIG_SYS_FLASH_CHECKSUM
                print_size (flash_size, "");
                /*
                 * Compute and print flash CRC if flashchecksum is set to 'y'
@@ -534,27 +534,27 @@ void board_init_r (gd_t *id, ulong dest_addr)
                if (s && (*s == 'y')) {
                        printf ("  CRC: %08lX",
                                        crc32 (0,
-                                                  (const unsigned char *) CFG_FLASH_BASE,
+                                                  (const unsigned char *) CONFIG_SYS_FLASH_BASE,
                                                   flash_size)
                                        );
                }
                putc ('\n');
-# else /* !CFG_FLASH_CHECKSUM */
+# else /* !CONFIG_SYS_FLASH_CHECKSUM */
                print_size (flash_size, "\n");
-# endif /* CFG_FLASH_CHECKSUM */
+# endif /* CONFIG_SYS_FLASH_CHECKSUM */
        } else {
                puts (failed);
                hang ();
        }
 
-       bd->bi_flashstart = CFG_FLASH_BASE;     /* update start of FLASH memory    */
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;      /* update start of FLASH memory    */
        bd->bi_flashsize = flash_size;  /* size of FLASH memory (final value) */
        bd->bi_flashoffset = 0;
-#else  /* CFG_NO_FLASH */
+#else  /* CONFIG_SYS_NO_FLASH */
        bd->bi_flashsize = 0;
        bd->bi_flashstart = 0;
        bd->bi_flashoffset = 0;
-#endif /* !CFG_NO_FLASH */
+#endif /* !CONFIG_SYS_NO_FLASH */
 
        WATCHDOG_RESET ();
 
index 6504cc9174cee48e2f861d8127119a1b7138b7c5..a73f6ebb99d4d0f3bb0f297fe4a1ae3002ef6c39 100644 (file)
@@ -64,7 +64,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
         *
         * Allocate space for command line and board info - the
         * address should be as high as possible within the reach of
-        * the kernel (see CFG_BOOTMAPSZ settings), but in unused
+        * the kernel (see CONFIG_SYS_BOOTMAPSZ settings), but in unused
         * memory, which means far enough below the current stack
         * pointer.
         */
@@ -73,7 +73,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 
        /* adjust sp by 1K to be safe */
        sp -= 1024;
-       lmb_reserve(lmb, sp, (CFG_SDRAM_BASE + gd->ram_size - sp));
+       lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + gd->ram_size - sp));
 
        /* allocate space and init command line */
        ret = boot_get_cmdline (lmb, &cmd_start, &cmd_end, bootmap_base);
index 1635d6fed5ec6e406580d7d3114f63936e451101..2dc079beea705ed52cc793bfd8103748fb12190a 100644 (file)
@@ -29,7 +29,7 @@
 #include <asm/processor.h>
 #include <asm/immap.h>
 
-#define        NR_IRQS         (CFG_NUM_IRQS)
+#define        NR_IRQS         (CONFIG_SYS_NUM_IRQS)
 
 /*
  * Interrupt vector functions.
index 6eba784b5c12844b13826cdddfb1758ce9286c78..697d67edc6966bbb86bf15f94b59c9fbb1306f9e 100644 (file)
@@ -33,18 +33,18 @@ DECLARE_GLOBAL_DATA_PTR;
 static ulong timestamp;
 
 #if defined(CONFIG_MCFTMR)
-#ifndef CFG_UDELAY_BASE
+#ifndef CONFIG_SYS_UDELAY_BASE
 #      error   "uDelay base not defined!"
 #endif
 
-#if !defined(CFG_TMR_BASE) || !defined(CFG_INTR_BASE) || !defined(CFG_TMRINTR_NO) || !defined(CFG_TMRINTR_MASK)
+#if !defined(CONFIG_SYS_TMR_BASE) || !defined(CONFIG_SYS_INTR_BASE) || !defined(CONFIG_SYS_TMRINTR_NO) || !defined(CONFIG_SYS_TMRINTR_MASK)
 #      error   "TMR_BASE, INTR_BASE, TMRINTR_NO or TMRINTR_MASk not defined!"
 #endif
 extern void dtimer_intr_setup(void);
 
 void udelay(unsigned long usec)
 {
-       volatile dtmr_t *timerp = (dtmr_t *) (CFG_UDELAY_BASE);
+       volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_UDELAY_BASE);
        uint start, now, tmp;
 
        while (usec > 0) {
@@ -59,7 +59,7 @@ void udelay(unsigned long usec)
                timerp->tcn = 0;
                /* set period to 1 us */
                timerp->tmr =
-                   CFG_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | DTIM_DTMR_FRR |
+                   CONFIG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | DTIM_DTMR_FRR |
                    DTIM_DTMR_RST_EN;
 
                start = now = timerp->tcn;
@@ -70,10 +70,10 @@ void udelay(unsigned long usec)
 
 void dtimer_interrupt(void *not_used)
 {
-       volatile dtmr_t *timerp = (dtmr_t *) (CFG_TMR_BASE);
+       volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE);
 
        /* check for timer interrupt asserted */
-       if ((CFG_TMRPND_REG & CFG_TMRINTR_MASK) == CFG_TMRINTR_PEND) {
+       if ((CONFIG_SYS_TMRPND_REG & CONFIG_SYS_TMRINTR_MASK) == CONFIG_SYS_TMRINTR_PEND) {
                timerp->ter = (DTIM_DTER_CAP | DTIM_DTER_REF);
                timestamp++;
                return;
@@ -82,7 +82,7 @@ void dtimer_interrupt(void *not_used)
 
 void timer_init(void)
 {
-       volatile dtmr_t *timerp = (dtmr_t *) (CFG_TMR_BASE);
+       volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE);
 
        timestamp = 0;
 
@@ -93,7 +93,7 @@ void timer_init(void)
        timerp->tmr = DTIM_DTMR_RST_RST;
 
        /* initialize and enable timer interrupt */
-       irq_install_handler(CFG_TMRINTR_NO, dtimer_interrupt, 0);
+       irq_install_handler(CONFIG_SYS_TMRINTR_NO, dtimer_interrupt, 0);
 
        timerp->tcn = 0;
        timerp->trr = 1000;     /* Interrupt every ms */
@@ -101,7 +101,7 @@ void timer_init(void)
        dtimer_intr_setup();
 
        /* set a period of 1us, set timer mode to restart and enable timer and interrupt */
-       timerp->tmr = CFG_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 |
+       timerp->tmr = CONFIG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 |
            DTIM_DTMR_FRR | DTIM_DTMR_ORRI | DTIM_DTMR_RST_EN;
 }
 
@@ -122,15 +122,15 @@ void set_timer(ulong t)
 #endif                         /* CONFIG_MCFTMR */
 
 #if defined(CONFIG_MCFPIT)
-#if !defined(CFG_PIT_BASE)
-#      error   "CFG_PIT_BASE not defined!"
+#if !defined(CONFIG_SYS_PIT_BASE)
+#      error   "CONFIG_SYS_PIT_BASE not defined!"
 #endif
 
 static unsigned short lastinc;
 
 void udelay(unsigned long usec)
 {
-       volatile pit_t *timerp = (pit_t *) (CFG_UDELAY_BASE);
+       volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_UDELAY_BASE);
        uint tmp;
 
        while (usec > 0) {
@@ -144,7 +144,7 @@ void udelay(unsigned long usec)
                timerp->pcsr = PIT_PCSR_OVW;
                timerp->pmr = 0;
                /* set period to 1 us */
-               timerp->pcsr |= PIT_PCSR_PRE(CFG_PIT_PRESCALE) | PIT_PCSR_EN;
+               timerp->pcsr |= PIT_PCSR_PRE(CONFIG_SYS_PIT_PRESCALE) | PIT_PCSR_EN;
 
                timerp->pmr = tmp;
                while (timerp->pcntr > 0) ;
@@ -153,18 +153,18 @@ void udelay(unsigned long usec)
 
 void timer_init(void)
 {
-       volatile pit_t *timerp = (pit_t *) (CFG_PIT_BASE);
+       volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_PIT_BASE);
        timestamp = 0;
 
        /* Set up TIMER 4 as poll clock */
        timerp->pcsr = PIT_PCSR_OVW;
        timerp->pmr = lastinc = 0;
-       timerp->pcsr |= PIT_PCSR_PRE(CFG_PIT_PRESCALE) | PIT_PCSR_EN;
+       timerp->pcsr |= PIT_PCSR_PRE(CONFIG_SYS_PIT_PRESCALE) | PIT_PCSR_EN;
 }
 
 void set_timer(ulong t)
 {
-       volatile pit_t *timerp = (pit_t *) (CFG_PIT_BASE);
+       volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_PIT_BASE);
 
        timestamp = 0;
        timerp->pmr = lastinc = 0;
@@ -173,7 +173,7 @@ void set_timer(ulong t)
 ulong get_timer(ulong base)
 {
        unsigned short now, diff;
-       volatile pit_t *timerp = (pit_t *) (CFG_PIT_BASE);
+       volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_PIT_BASE);
 
        now = timerp->pcntr;
        diff = -(now - lastinc);
@@ -211,6 +211,6 @@ unsigned long usec2ticks(unsigned long usec)
 ulong get_tbclk(void)
 {
        ulong tbclk;
-       tbclk = CFG_HZ;
+       tbclk = CONFIG_SYS_HZ;
        return tbclk;
 }
index 09d4d943de7566233b4f7aa2654cd8687b4ad5d1..cd619185b482945097ae9c689e6b226c7bf1c1dd 100644 (file)
@@ -34,10 +34,10 @@ DECLARE_GLOBAL_DATA_PTR;
 
 const char version_string[] = U_BOOT_VERSION " (" __DATE__ " - " __TIME__ ")";
 
-#ifdef CFG_GPIO_0
+#ifdef CONFIG_SYS_GPIO_0
 extern int gpio_init (void);
 #endif
-#ifdef CFG_INTC_0
+#ifdef CONFIG_SYS_INTC_0
 extern int interrupts_init (void);
 #endif
 #if defined(CONFIG_CMD_NET)
@@ -54,13 +54,13 @@ static ulong mem_malloc_brk;
 
 /*
  * The Malloc area is immediately below the monitor copy in DRAM
- * aka CFG_MONITOR_BASE - Note there is no need for reloc_off
+ * aka CONFIG_SYS_MONITOR_BASE - Note there is no need for reloc_off
  * as our monitory code is run from SDRAM
  */
 static void mem_malloc_init (void)
 {
-       mem_malloc_end = (CFG_MALLOC_BASE + CFG_MALLOC_LEN);
-       mem_malloc_start = CFG_MALLOC_BASE;
+       mem_malloc_end = (CONFIG_SYS_MALLOC_BASE + CONFIG_SYS_MALLOC_LEN);
+       mem_malloc_start = CONFIG_SYS_MALLOC_BASE;
        mem_malloc_brk = mem_malloc_start;
        memset ((void *)mem_malloc_start, 0, mem_malloc_end - mem_malloc_start);
 }
@@ -94,10 +94,10 @@ typedef int (init_fnc_t) (void);
 init_fnc_t *init_sequence[] = {
        env_init,
        serial_init,
-#ifdef CFG_GPIO_0
+#ifdef CONFIG_SYS_GPIO_0
        gpio_init,
 #endif
-#ifdef CFG_INTC_0
+#ifdef CONFIG_SYS_INTC_0
        interrupts_init,
 #endif
        NULL,
@@ -107,18 +107,18 @@ void board_init (void)
 {
        bd_t *bd;
        init_fnc_t **init_fnc_ptr;
-       gd = (gd_t *) CFG_GBL_DATA_OFFSET;
+       gd = (gd_t *) CONFIG_SYS_GBL_DATA_OFFSET;
 #if defined(CONFIG_CMD_FLASH)
        ulong flash_size = 0;
 #endif
        asm ("nop");    /* FIXME gd is not initialize - wait */
-       memset ((void *)gd, 0, CFG_GBL_DATA_SIZE);
+       memset ((void *)gd, 0, CONFIG_SYS_GBL_DATA_SIZE);
        gd->bd = (bd_t *) (gd + 1);     /* At end of global data */
        gd->baudrate = CONFIG_BAUDRATE;
        bd = gd->bd;
        bd->bi_baudrate = CONFIG_BAUDRATE;
-       bd->bi_memstart = CFG_SDRAM_BASE;
-       bd->bi_memsize = CFG_SDRAM_SIZE;
+       bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
 
        /* Initialise malloc() area */
        mem_malloc_init ();
@@ -131,10 +131,10 @@ void board_init (void)
        }
 
 #if defined(CONFIG_CMD_FLASH)
-       bd->bi_flashstart = CFG_FLASH_BASE;
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
        if (0 < (flash_size = flash_init ())) {
                bd->bi_flashsize = flash_size;
-               bd->bi_flashoffset = CFG_FLASH_BASE + flash_size;
+               bd->bi_flashoffset = CONFIG_SYS_FLASH_BASE + flash_size;
        } else {
                puts ("Flash init FAILED");
                bd->bi_flashstart = 0;
index b5d8f19379ec6de7a7c4c6cf0ba5a9bb707ed799..cbb43414f9cf860b0ad83bb899012e2bbb58d454 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <common.h>
 
-#ifdef CFG_TIMER_0
+#ifdef CONFIG_SYS_TIMER_0
 void udelay (unsigned long usec)
 {
        int i;
index 8c1af769c82fddcbbeeda32e6ad2eb544fab457a..77e1cc8e3c34aa32d3b5d9b56cc5f8eac1e284bf 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#if ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CFG_MONITOR_BASE) || \
-      (CONFIG_ENV_ADDR >= (CFG_MONITOR_BASE + CFG_MONITOR_LEN)) ) || \
+#if ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CONFIG_SYS_MONITOR_BASE) || \
+      (CONFIG_ENV_ADDR >= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)) ) || \
     defined(CONFIG_ENV_IS_IN_NVRAM)
-#define        TOTAL_MALLOC_LEN        (CFG_MALLOC_LEN + CONFIG_ENV_SIZE)
+#define        TOTAL_MALLOC_LEN        (CONFIG_SYS_MALLOC_LEN + CONFIG_ENV_SIZE)
 #else
-#define        TOTAL_MALLOC_LEN        CFG_MALLOC_LEN
+#define        TOTAL_MALLOC_LEN        CONFIG_SYS_MALLOC_LEN
 #endif
 
 #undef DEBUG
@@ -75,7 +75,7 @@ unsigned long mips_io_port_base = -1;
  */
 static void mem_malloc_init (void)
 {
-       ulong dest_addr = CFG_MONITOR_BASE + gd->reloc_off;
+       ulong dest_addr = CONFIG_SYS_MONITOR_BASE + gd->reloc_off;
 
        mem_malloc_end = dest_addr;
        mem_malloc_start = dest_addr - TOTAL_MALLOC_LEN;
@@ -123,7 +123,7 @@ static int display_banner(void)
        return (0);
 }
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
 static void display_flash_config(ulong size)
 {
        puts ("Flash: ");
@@ -187,7 +187,7 @@ void board_init_f(ulong bootflag)
        gd_t gd_data, *id;
        bd_t *bd;
        init_fnc_t **init_fnc_ptr;
-       ulong addr, addr_sp, len = (ulong)&uboot_end - CFG_MONITOR_BASE;
+       ulong addr, addr_sp, len = (ulong)&uboot_end - CONFIG_SYS_MONITOR_BASE;
        ulong *s;
 #ifdef CONFIG_PURPLE
        void copy_code (ulong);
@@ -211,7 +211,7 @@ void board_init_f(ulong bootflag)
         * Now that we have DRAM mapped and working, we can
         * relocate the code and continue running from DRAM.
         */
-       addr = CFG_SDRAM_BASE + gd->ram_size;
+       addr = CONFIG_SYS_SDRAM_BASE + gd->ram_size;
 
        /* We can reserve some RAM "on top" here.
         */
@@ -252,10 +252,10 @@ void board_init_f(ulong bootflag)
 
        /* Reserve memory for boot params.
         */
-       addr_sp -= CFG_BOOTPARAMS_LEN;
+       addr_sp -= CONFIG_SYS_BOOTPARAMS_LEN;
        bd->bi_boot_params = addr_sp;
        debug ("Reserving %dk for boot params() at: %08lx\n",
-                       CFG_BOOTPARAMS_LEN >> 10, addr_sp);
+                       CONFIG_SYS_BOOTPARAMS_LEN >> 10, addr_sp);
 
        /*
         * Finally, we set up a new (bigger) stack.
@@ -274,7 +274,7 @@ void board_init_f(ulong bootflag)
        /*
         * Save local variables to board info struct
         */
-       bd->bi_memstart = CFG_SDRAM_BASE;       /* start of  DRAM memory */
+       bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;        /* start of  DRAM memory */
        bd->bi_memsize  = gd->ram_size;         /* size  of  DRAM memory in bytes */
        bd->bi_baudrate = gd->baudrate;         /* Console Baudrate */
 
@@ -304,7 +304,7 @@ void board_init_f(ulong bootflag)
 void board_init_r (gd_t *id, ulong dest_addr)
 {
        cmd_tbl_t *cmdtp;
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        ulong size;
 #endif
        extern void malloc_bin_reloc (void);
@@ -320,7 +320,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
 
        debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
 
-       gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
+       gd->reloc_off = dest_addr - CONFIG_SYS_MONITOR_BASE;
 
        monitor_flash_len = (ulong)&uboot_end_data - dest_addr;
 
@@ -345,7 +345,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
                        addr = (ulong)(cmdtp->usage) + gd->reloc_off;
                        cmdtp->usage = (char *)addr;
                }
-#ifdef CFG_LONGHELP
+#ifdef CONFIG_SYS_LONGHELP
                if (cmdtp->help) {
                        addr = (ulong)(cmdtp->help) + gd->reloc_off;
                        cmdtp->help = (char *)addr;
@@ -359,15 +359,15 @@ void board_init_r (gd_t *id, ulong dest_addr)
 
        bd = gd->bd;
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        /* configure available FLASH banks */
        size = flash_init();
        display_flash_config (size);
        bd->bi_flashsize = size;
 #endif
 
-       bd->bi_flashstart = CFG_FLASH_BASE;
-#if CFG_MONITOR_BASE == CFG_FLASH_BASE
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
+#if CONFIG_SYS_MONITOR_BASE == CONFIG_SYS_FLASH_BASE
        bd->bi_flashoffset = monitor_flash_len; /* reserved area for U-Boot */
 #else
        bd->bi_flashoffset = 0;
index 1e9278996e54d2f43589106e9a52c48f3349ef24..07e356d235653e031734cb0dc8c34fb4c49911f9 100644 (file)
@@ -27,7 +27,7 @@
 static unsigned long timestamp;
 
 /* how many counter cycles in a jiffy */
-#define CYCLES_PER_JIFFY       (CFG_MIPS_TIMER_FREQ + CFG_HZ / 2) / CFG_HZ
+#define CYCLES_PER_JIFFY       (CONFIG_SYS_MIPS_TIMER_FREQ + CONFIG_SYS_HZ / 2) / CONFIG_SYS_HZ
 
 /*
  * timer without interrupts
@@ -74,7 +74,7 @@ void udelay(unsigned long usec)
 {
        unsigned int tmo;
 
-       tmo = read_c0_count() + (usec * (CFG_MIPS_TIMER_FREQ / 1000000));
+       tmo = read_c0_count() + (usec * (CONFIG_SYS_MIPS_TIMER_FREQ / 1000000));
        while ((tmo - read_c0_count()) < 0x7fffffff)
                /*NOP*/;
 }
@@ -94,5 +94,5 @@ unsigned long long get_ticks(void)
  */
 ulong get_tbclk(void)
 {
-       return CFG_HZ;
+       return CONFIG_SYS_HZ;
 }
index cdaf753ac7dd449a241a19f20f60f3428fc30351..024beb51503833a487df0d52e62d8471a829b912 100644 (file)
@@ -63,8 +63,8 @@ static        ulong   mem_malloc_brk   = 0;
  */
 static void mem_malloc_init (void)
 {
-       mem_malloc_start = CFG_MALLOC_BASE;
-       mem_malloc_end = mem_malloc_start + CFG_MALLOC_LEN;
+       mem_malloc_start = CONFIG_SYS_MALLOC_BASE;
+       mem_malloc_end = mem_malloc_start + CONFIG_SYS_MALLOC_LEN;
        mem_malloc_brk = mem_malloc_start;
        memset ((void *) mem_malloc_start,
                0,
@@ -113,25 +113,25 @@ void board_init (void)
        int i;
 
        /* Pointer is writable since we allocated a register for it.
-        * Nios treats CFG_GBL_DATA_OFFSET as an address.
+        * Nios treats CONFIG_SYS_GBL_DATA_OFFSET as an address.
         */
-       gd = (gd_t *)CFG_GBL_DATA_OFFSET;
+       gd = (gd_t *)CONFIG_SYS_GBL_DATA_OFFSET;
        /* compiler optimization barrier needed for GCC >= 3.4 */
        __asm__ __volatile__("": : :"memory");
 
-       memset( gd, 0, CFG_GBL_DATA_SIZE );
+       memset( gd, 0, CONFIG_SYS_GBL_DATA_SIZE );
 
        gd->bd = (bd_t *)(gd+1);        /* At end of global data */
        gd->baudrate = CONFIG_BAUDRATE;
        gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
 
        bd = gd->bd;
-       bd->bi_memstart = CFG_SDRAM_BASE;
-       bd->bi_memsize = CFG_SDRAM_SIZE;
-       bd->bi_flashstart = CFG_FLASH_BASE;
-#if    defined(CFG_SRAM_BASE) && defined(CFG_SRAM_SIZE)
-       bd->bi_sramstart= CFG_SRAM_BASE;
-       bd->bi_sramsize = CFG_SRAM_SIZE;
+       bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
+#if    defined(CONFIG_SYS_SRAM_BASE) && defined(CONFIG_SYS_SRAM_SIZE)
+       bd->bi_sramstart= CONFIG_SYS_SRAM_BASE;
+       bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE;
 #endif
        bd->bi_baudrate = CONFIG_BAUDRATE;
 
index 66bb64d0c18b8a0a5f178bee061845192b6747dd..ec8139ed5a63dea4c00e2452f0290b6bcb34598e 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <common.h>
 
-#if !defined(CFG_NIOS_MULT_HW) && !defined(CFG_NIOS_MULT_MSTEP)
+#if !defined(CONFIG_SYS_NIOS_MULT_HW) && !defined(CONFIG_SYS_NIOS_MULT_MSTEP)
 
 #include "math.h"
 
@@ -53,4 +53,4 @@ UHItype __mulhi3 (UHItype a, UHItype b)
        return c;
 }
 
-#endif /*!defined(CFG_NIOS_MULT_HW) && !defined(CFG_NIOS_MULT_MSTEP) */
+#endif /*!defined(CONFIG_SYS_NIOS_MULT_HW) && !defined(CONFIG_SYS_NIOS_MULT_MSTEP) */
index 7ffb3f019b96ecaae1f8f631282051b5b0d24988..d759f0fd8042362dc43117ee2e00aa9f0750397d 100644 (file)
@@ -31,7 +31,7 @@
 #ifdef CONFIG_STATUS_LED
 #include <status_led.h>
 #endif
-#if defined(CFG_NIOS_EPCSBASE)
+#if defined(CONFIG_SYS_NIOS_EPCSBASE)
 #include <nios2-epcs.h>
 #endif
 
@@ -66,8 +66,8 @@ static        ulong   mem_malloc_brk   = 0;
  */
 static void mem_malloc_init (void)
 {
-       mem_malloc_start = CFG_MALLOC_BASE;
-       mem_malloc_end = mem_malloc_start + CFG_MALLOC_LEN;
+       mem_malloc_start = CONFIG_SYS_MALLOC_BASE;
+       mem_malloc_end = mem_malloc_start + CONFIG_SYS_MALLOC_LEN;
        mem_malloc_brk = mem_malloc_start;
        memset ((void *) mem_malloc_start,
                0,
@@ -96,7 +96,7 @@ init_fnc_t *init_sequence[] = {
 #if defined(CONFIG_BOARD_EARLY_INIT_F)
        board_early_init_f,     /* Call board-specific init code early.*/
 #endif
-#if defined(CFG_NIOS_EPCSBASE)
+#if defined(CONFIG_SYS_NIOS_EPCSBASE)
        epcs_reset,
 #endif
 
@@ -119,25 +119,25 @@ void board_init (void)
        int i;
 
        /* Pointer is writable since we allocated a register for it.
-        * Nios treats CFG_GBL_DATA_OFFSET as an address.
+        * Nios treats CONFIG_SYS_GBL_DATA_OFFSET as an address.
         */
-       gd = (gd_t *)CFG_GBL_DATA_OFFSET;
+       gd = (gd_t *)CONFIG_SYS_GBL_DATA_OFFSET;
        /* compiler optimization barrier needed for GCC >= 3.4 */
        __asm__ __volatile__("": : :"memory");
 
-       memset( gd, 0, CFG_GBL_DATA_SIZE );
+       memset( gd, 0, CONFIG_SYS_GBL_DATA_SIZE );
 
        gd->bd = (bd_t *)(gd+1);        /* At end of global data */
        gd->baudrate = CONFIG_BAUDRATE;
        gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
 
        bd = gd->bd;
-       bd->bi_memstart = CFG_SDRAM_BASE;
-       bd->bi_memsize = CFG_SDRAM_SIZE;
-       bd->bi_flashstart = CFG_FLASH_BASE;
-#if    defined(CFG_SRAM_BASE) && defined(CFG_SRAM_SIZE)
-       bd->bi_sramstart= CFG_SRAM_BASE;
-       bd->bi_sramsize = CFG_SRAM_SIZE;
+       bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
+#if    defined(CONFIG_SYS_SRAM_BASE) && defined(CONFIG_SYS_SRAM_SIZE)
+       bd->bi_sramstart= CONFIG_SYS_SRAM_BASE;
+       bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE;
 #endif
        bd->bi_baudrate = CONFIG_BAUDRATE;
 
index eb7735af7ddd9374f9b4aca5d9ecfa127d1ffc6a..ee3b4b79bf1a3d96810e4b9d65bdbf4605656534 100644 (file)
@@ -29,8 +29,8 @@
 
 flush_dcache:
        add     r5, r5, r4
-       movhi   r8, %hi(CFG_DCACHELINE_SIZE)
-       ori     r8, r8, %lo(CFG_DCACHELINE_SIZE)
+       movhi   r8, %hi(CONFIG_SYS_DCACHELINE_SIZE)
+       ori     r8, r8, %lo(CONFIG_SYS_DCACHELINE_SIZE)
 0:     flushd  0(r4)
        add     r4, r4, r8
        bltu    r4, r5, 0b
@@ -41,8 +41,8 @@ flush_dcache:
 
 flush_icache:
        add     r5, r5, r4
-       movhi   r8, %hi(CFG_ICACHELINE_SIZE)
-       ori     r8, r8, %lo(CFG_ICACHELINE_SIZE)
+       movhi   r8, %hi(CONFIG_SYS_ICACHELINE_SIZE)
+       ori     r8, r8, %lo(CONFIG_SYS_ICACHELINE_SIZE)
 1:     flushi  r4
        add     r4, r4, r8
        bltu    r4, r5, 1b
@@ -55,16 +55,16 @@ flush_cache:
        mov     r9, r4
        mov     r10, r5
 
-       movhi   r8, %hi(CFG_DCACHELINE_SIZE)
-       ori     r8, r8, %lo(CFG_DCACHELINE_SIZE)
+       movhi   r8, %hi(CONFIG_SYS_DCACHELINE_SIZE)
+       ori     r8, r8, %lo(CONFIG_SYS_DCACHELINE_SIZE)
 0:     flushd  0(r4)
        add     r4, r4, r8
        bltu    r4, r5, 0b
 
        mov     r4, r9
        mov     r5, r10
-       movhi   r8, %hi(CFG_ICACHELINE_SIZE)
-       ori     r8, r8, %lo(CFG_ICACHELINE_SIZE)
+       movhi   r8, %hi(CONFIG_SYS_ICACHELINE_SIZE)
+       ori     r8, r8, %lo(CONFIG_SYS_ICACHELINE_SIZE)
 1:     flushi  r4
        add     r4, r4, r8
        bltu    r4, r5, 1b
index 66bb64d0c18b8a0a5f178bee061845192b6747dd..ec8139ed5a63dea4c00e2452f0290b6bcb34598e 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <common.h>
 
-#if !defined(CFG_NIOS_MULT_HW) && !defined(CFG_NIOS_MULT_MSTEP)
+#if !defined(CONFIG_SYS_NIOS_MULT_HW) && !defined(CONFIG_SYS_NIOS_MULT_MSTEP)
 
 #include "math.h"
 
@@ -53,4 +53,4 @@ UHItype __mulhi3 (UHItype a, UHItype b)
        return c;
 }
 
-#endif /*!defined(CFG_NIOS_MULT_HW) && !defined(CFG_NIOS_MULT_MSTEP) */
+#endif /*!defined(CONFIG_SYS_NIOS_MULT_HW) && !defined(CONFIG_SYS_NIOS_MULT_MSTEP) */
index 3fdd94b73952ade4544abd3c841159565ffdde7b..ce07c4ed86ace5a92be5792af4114836dcbd6291 100644 (file)
@@ -52,7 +52,7 @@
 #endif
 #include <net.h>
 #include <serial.h>
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
 #if !defined(CONFIG_CPM2)
 #include <commproc.h>
 #endif
 #if defined(CONFIG_LOGBUFFER)
 #include <logbuff.h>
 #endif
-#if defined(CFG_INIT_RAM_LOCK) && defined(CONFIG_E500)
+#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)
 #include <asm/cache.h>
 #endif
 #ifdef CONFIG_PS2KBD
 #include <keyboard.h>
 #endif
 
-#ifdef CFG_UPDATE_FLASH_SIZE
+#ifdef CONFIG_SYS_UPDATE_FLASH_SIZE
 extern int update_flash_size (int flash_size);
 #endif
 
@@ -107,17 +107,17 @@ extern int board_start_ide(void);
 DECLARE_GLOBAL_DATA_PTR;
 
 #if defined(CONFIG_ENV_IS_EMBEDDED)
-#define TOTAL_MALLOC_LEN       CFG_MALLOC_LEN
-#elif ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CFG_MONITOR_BASE) || \
-       (CONFIG_ENV_ADDR >= (CFG_MONITOR_BASE + CFG_MONITOR_LEN)) ) || \
+#define TOTAL_MALLOC_LEN       CONFIG_SYS_MALLOC_LEN
+#elif ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CONFIG_SYS_MONITOR_BASE) || \
+       (CONFIG_ENV_ADDR >= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)) ) || \
       defined(CONFIG_ENV_IS_IN_NVRAM)
-#define        TOTAL_MALLOC_LEN        (CFG_MALLOC_LEN + CONFIG_ENV_SIZE)
+#define        TOTAL_MALLOC_LEN        (CONFIG_SYS_MALLOC_LEN + CONFIG_ENV_SIZE)
 #else
-#define        TOTAL_MALLOC_LEN        CFG_MALLOC_LEN
+#define        TOTAL_MALLOC_LEN        CONFIG_SYS_MALLOC_LEN
 #endif
 
-#if !defined(CFG_MEM_TOP_HIDE)
-#define CFG_MEM_TOP_HIDE       0
+#if !defined(CONFIG_SYS_MEM_TOP_HIDE)
+#define CONFIG_SYS_MEM_TOP_HIDE        0
 #endif
 
 extern ulong __init_end;
@@ -146,7 +146,7 @@ static      ulong   mem_malloc_brk   = 0;
 static void mem_malloc_init (void)
 {
 #if !defined(CONFIG_RELOC_FIXUP_WORKS)
-       mem_malloc_end = CFG_MONITOR_BASE + gd->reloc_off;
+       mem_malloc_end = CONFIG_SYS_MONITOR_BASE + gd->reloc_off;
 #endif
        mem_malloc_start = mem_malloc_end - TOTAL_MALLOC_LEN;
        mem_malloc_brk = mem_malloc_start;
@@ -234,7 +234,7 @@ static int init_func_ram (void)
 static int init_func_i2c (void)
 {
        puts ("I2C:   ");
-       i2c_init (CFG_I2C_SPEED, CFG_I2C_SLAVE);
+       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
        puts ("ready\n");
        return (0);
 }
@@ -291,7 +291,7 @@ init_fnc_t *init_sequence[] = {
 #endif
        init_timebase,
 #endif
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
 #if !defined(CONFIG_CPM2)
        dpram_init,
 #endif
@@ -343,9 +343,9 @@ init_fnc_t *init_sequence[] = {
 #endif
        INIT_FUNC_WATCHDOG_RESET
        init_func_ram,
-#if defined(CFG_DRAM_TEST)
+#if defined(CONFIG_SYS_DRAM_TEST)
        testdram,
-#endif /* CFG_DRAM_TEST */
+#endif /* CONFIG_SYS_DRAM_TEST */
        INIT_FUNC_WATCHDOG_RESET
 
        NULL,                   /* Terminate this list */
@@ -384,7 +384,7 @@ ulong get_effective_memsize(void)
 #ifdef CONFIG_LOGBUFFER
 unsigned long logbuffer_base(void)
 {
-       return CFG_SDRAM_BASE + get_effective_memsize() - LOGBUFF_LEN;
+       return CONFIG_SYS_SDRAM_BASE + get_effective_memsize() - LOGBUFF_LEN;
 }
 #endif
 
@@ -402,7 +402,7 @@ void board_init_f (ulong bootflag)
 #endif
 
        /* Pointer is writable since we allocated a register for it */
-       gd = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
        /* compiler optimization barrier needed for GCC >= 3.4 */
        __asm__ __volatile__("": : :"memory");
 
@@ -430,7 +430,7 @@ void board_init_f (ulong bootflag)
         *  - monitor code
         *  - board info struct
         */
-       len = (ulong)&_end - CFG_MONITOR_BASE;
+       len = (ulong)&_end - CONFIG_SYS_MONITOR_BASE;
 
        /*
         * Subtract specified amount of memory to hide so that it won't
@@ -442,9 +442,9 @@ void board_init_f (ulong bootflag)
         * memory size from the SDRAM controller setup will have to
         * get fixed.
         */
-       gd->ram_size -= CFG_MEM_TOP_HIDE;
+       gd->ram_size -= CONFIG_SYS_MEM_TOP_HIDE;
 
-       addr = CFG_SDRAM_BASE + get_effective_memsize();
+       addr = CONFIG_SYS_SDRAM_BASE + get_effective_memsize();
 
 #ifdef CONFIG_LOGBUFFER
 #ifndef CONFIG_ALT_LB_ADDR
@@ -536,15 +536,15 @@ void board_init_f (ulong bootflag)
         * Save local variables to board info struct
         */
 
-       bd->bi_memstart  = CFG_SDRAM_BASE;      /* start of  DRAM memory        */
+       bd->bi_memstart  = CONFIG_SYS_SDRAM_BASE;       /* start of  DRAM memory        */
        bd->bi_memsize   = gd->ram_size;        /* size  of  DRAM memory in bytes */
 
 #ifdef CONFIG_IP860
        bd->bi_sramstart = SRAM_BASE;   /* start of  SRAM memory        */
        bd->bi_sramsize  = SRAM_SIZE;   /* size  of  SRAM memory        */
 #elif defined CONFIG_MPC8220
-       bd->bi_sramstart = CFG_SRAM_BASE;       /* start of  SRAM memory        */
-       bd->bi_sramsize  = CFG_SRAM_SIZE;       /* size  of  SRAM memory        */
+       bd->bi_sramstart = CONFIG_SYS_SRAM_BASE;        /* start of  SRAM memory        */
+       bd->bi_sramsize  = CONFIG_SYS_SRAM_SIZE;        /* size  of  SRAM memory        */
 #else
        bd->bi_sramstart = 0;           /* FIXME */ /* start of  SRAM memory    */
        bd->bi_sramsize  = 0;           /* FIXME */ /* size  of  SRAM memory    */
@@ -552,16 +552,16 @@ void board_init_f (ulong bootflag)
 
 #if defined(CONFIG_8xx) || defined(CONFIG_8260) || defined(CONFIG_5xx) || \
     defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
-       bd->bi_immr_base = CFG_IMMR;    /* base  of IMMR register     */
+       bd->bi_immr_base = CONFIG_SYS_IMMR;     /* base  of IMMR register     */
 #endif
 #if defined(CONFIG_MPC5xxx)
-       bd->bi_mbar_base = CFG_MBAR;    /* base of internal registers */
+       bd->bi_mbar_base = CONFIG_SYS_MBAR;     /* base of internal registers */
 #endif
 #if defined(CONFIG_MPC83XX)
-       bd->bi_immrbar = CFG_IMMR;
+       bd->bi_immrbar = CONFIG_SYS_IMMR;
 #endif
 #if defined(CONFIG_MPC8220)
-       bd->bi_mbar_base = CFG_MBAR;    /* base of internal registers */
+       bd->bi_mbar_base = CONFIG_SYS_MBAR;     /* base of internal registers */
        bd->bi_inpfreq   = gd->inp_clk;
        bd->bi_pcifreq   = gd->pci_clk;
        bd->bi_vcofreq   = gd->vco_clk;
@@ -570,7 +570,7 @@ void board_init_f (ulong bootflag)
 
        /* store bootparam to sram (backward compatible), here? */
        {
-               u32 *sram = (u32 *)CFG_SRAM_BASE;
+               u32 *sram = (u32 *)CONFIG_SYS_SRAM_BASE;
                *sram++ = gd->ram_size;
                *sram++ = gd->bus_clk;
                *sram++ = gd->inp_clk;
@@ -601,7 +601,7 @@ void board_init_f (ulong bootflag)
 #endif /* CONFIG_MPC5xxx */
        bd->bi_baudrate = gd->baudrate; /* Console Baudrate     */
 
-#ifdef CFG_EXTBDINFO
+#ifdef CONFIG_SYS_EXTBDINFO
        strncpy ((char *)bd->bi_s_version, "1.2", sizeof (bd->bi_s_version));
        strncpy ((char *)bd->bi_r_version, U_BOOT_VERSION, sizeof (bd->bi_r_version));
 
@@ -665,7 +665,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
        extern char * env_name_spec;
 #endif
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        ulong flash_size;
 #endif
 
@@ -678,7 +678,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
        gd->reloc_off = 0;
        mem_malloc_end = dest_addr;
 #else
-       gd->reloc_off = dest_addr - CFG_MONITOR_BASE;
+       gd->reloc_off = dest_addr - CONFIG_SYS_MONITOR_BASE;
 #endif
 
 #ifdef CONFIG_SERIAL_MULTI
@@ -715,7 +715,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
                        addr = (ulong)(cmdtp->usage) + gd->reloc_off;
                        cmdtp->usage = (char *)addr;
                }
-#ifdef CFG_LONGHELP
+#ifdef CONFIG_SYS_LONGHELP
                if (cmdtp->help) {
                        addr = (ulong)(cmdtp->help) + gd->reloc_off;
                        cmdtp->help = (char *)addr;
@@ -744,7 +744,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
        icache_enable ();       /* it's time to enable the instruction cache */
 #endif
 
-#if defined(CFG_INIT_RAM_LOCK) && defined(CONFIG_E500)
+#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)
        unlock_ram_in_cache();  /* it's time to unlock D-cache in e500 */
 #endif
 
@@ -770,11 +770,11 @@ void board_init_r (gd_t *id, ulong dest_addr)
         */
        trap_init (dest_addr);
 
-#if !defined(CFG_NO_FLASH)
+#if !defined(CONFIG_SYS_NO_FLASH)
        puts ("FLASH: ");
 
        if ((flash_size = flash_init ()) > 0) {
-# ifdef CFG_FLASH_CHECKSUM
+# ifdef CONFIG_SYS_FLASH_CHECKSUM
                print_size (flash_size, "");
                /*
                 * Compute and print flash CRC if flashchecksum is set to 'y'
@@ -784,22 +784,22 @@ void board_init_r (gd_t *id, ulong dest_addr)
                s = getenv ("flashchecksum");
                if (s && (*s == 'y')) {
                        printf ("  CRC: %08X",
-                               crc32 (0, (const unsigned char *) CFG_FLASH_BASE, flash_size)
+                               crc32 (0, (const unsigned char *) CONFIG_SYS_FLASH_BASE, flash_size)
                        );
                }
                putc ('\n');
-# else /* !CFG_FLASH_CHECKSUM */
+# else /* !CONFIG_SYS_FLASH_CHECKSUM */
                print_size (flash_size, "\n");
-# endif /* CFG_FLASH_CHECKSUM */
+# endif /* CONFIG_SYS_FLASH_CHECKSUM */
        } else {
                puts (failed);
                hang ();
        }
 
-       bd->bi_flashstart = CFG_FLASH_BASE;     /* update start of FLASH memory    */
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;      /* update start of FLASH memory    */
        bd->bi_flashsize = flash_size;  /* size of FLASH memory (final value) */
 
-#if defined(CFG_UPDATE_FLASH_SIZE)
+#if defined(CONFIG_SYS_UPDATE_FLASH_SIZE)
        /* Make a update of the Memctrl. */
        update_flash_size (flash_size);
 #endif
@@ -808,17 +808,17 @@ void board_init_r (gd_t *id, ulong dest_addr)
 # if defined(CONFIG_PCU_E) || defined(CONFIG_OXC) || defined(CONFIG_RMU)
        /* flash mapped at end of memory map */
        bd->bi_flashoffset = TEXT_BASE + flash_size;
-# elif CFG_MONITOR_BASE == CFG_FLASH_BASE
+# elif CONFIG_SYS_MONITOR_BASE == CONFIG_SYS_FLASH_BASE
        bd->bi_flashoffset = monitor_flash_len; /* reserved area for startup monitor  */
 # else
        bd->bi_flashoffset = 0;
 # endif
-#else  /* CFG_NO_FLASH */
+#else  /* CONFIG_SYS_NO_FLASH */
 
        bd->bi_flashsize = 0;
        bd->bi_flashstart = 0;
        bd->bi_flashoffset = 0;
-#endif /* !CFG_NO_FLASH */
+#endif /* !CONFIG_SYS_NO_FLASH */
 
        WATCHDOG_RESET ();
 
@@ -855,7 +855,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
         * the environment is in EEPROM.
         */
 
-#if defined(CFG_EXTBDINFO)
+#if defined(CONFIG_SYS_EXTBDINFO)
 #if defined(CONFIG_405GP) || defined(CONFIG_405EP)
 #if defined(CONFIG_I2CFAST)
        /*
@@ -877,13 +877,13 @@ void board_init_r (gd_t *id, ulong dest_addr)
        bd->bi_iic_fast[1] = 0;
 #endif /* CONFIG_I2CFAST */
 #endif /* CONFIG_405GP, CONFIG_405EP */
-#endif /* CFG_EXTBDINFO */
+#endif /* CONFIG_SYS_EXTBDINFO */
 
 #if defined(CONFIG_SC3)
        sc3_read_eeprom();
 #endif
 
-#if defined (CONFIG_ID_EEPROM) || defined (CFG_I2C_MAC_OFFSET)
+#if defined (CONFIG_ID_EEPROM) || defined (CONFIG_SYS_I2C_MAC_OFFSET)
        mac_read_from_eeprom();
 #endif
 
@@ -1287,7 +1287,7 @@ int mdm_init (void)
                        serial_puts(init_str);
                        serial_puts("\n");
                        for(;;) {
-                               mdm_readline(console_buffer, CFG_CBSIZE);
+                               mdm_readline(console_buffer, CONFIG_SYS_CBSIZE);
                                dbg("ini%d: [%s]", i, console_buffer);
 
                                if ((strcmp(console_buffer, "OK") == 0) ||
@@ -1311,7 +1311,7 @@ int mdm_init (void)
        /* final stage - wait for connect */
        for(;i > 1;) { /* if 'i' > 1 - wait for connection
                                  message from modem */
-               mdm_readline(console_buffer, CFG_CBSIZE);
+               mdm_readline(console_buffer, CONFIG_SYS_CBSIZE);
                dbg("ini_f: [%s]", console_buffer);
                if (strncmp(console_buffer, "CONNECT", 7) == 0) {
                        dbg("ini_f: connected");
@@ -1332,7 +1332,7 @@ int mdm_init (void)
  */
 #undef XTRN_DECLARE_GLOBAL_DATA_PTR
 #define XTRN_DECLARE_GLOBAL_DATA_PTR   /* empty = allocate here */
-DECLARE_GLOBAL_DATA_PTR = (gd_t *) (CFG_INIT_RAM_ADDR + CFG_GBL_DATA_OFFSET);
+DECLARE_GLOBAL_DATA_PTR = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 #endif  /* 0 */
 
 /************************************************************************/
index 5af25dd222f1eb23d6a896f307d9472839fecb08..d49881837058201db90b85e71fe5fc58187b53cd 100644 (file)
@@ -41,7 +41,7 @@
 
 #endif
 
-#ifdef CFG_INIT_RAM_LOCK
+#ifdef CONFIG_SYS_INIT_RAM_LOCK
 #include <asm/cache.h>
 #endif
 
@@ -51,8 +51,8 @@ extern ulong get_effective_memsize(void);
 static ulong get_sp (void);
 static void set_clocks_in_mhz (bd_t *kbd);
 
-#ifndef CFG_LINUX_LOWMEM_MAX_SIZE
-#define CFG_LINUX_LOWMEM_MAX_SIZE      (768*1024*1024)
+#ifndef CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE
+#define CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE       (768*1024*1024)
 #endif
 
 __attribute__((noinline))
@@ -85,14 +85,14 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 
 #ifdef DEBUG
        if (((u64)bootmap_base + bootm_size) >
-           (CFG_SDRAM_BASE + (u64)gd->ram_size))
+           (CONFIG_SYS_SDRAM_BASE + (u64)gd->ram_size))
                puts("WARNING: bootm_low + bootm_size exceed total memory\n");
        if ((bootmap_base + bootm_size) > get_effective_memsize())
                puts("WARNING: bootm_low + bootm_size exceed eff. memory\n");
 #endif
 
        size = min(bootm_size, get_effective_memsize());
-       size = min(size, CFG_LINUX_LOWMEM_MAX_SIZE);
+       size = min(size, CONFIG_SYS_LINUX_LOWMEM_MAX_SIZE);
 
        if (size < bootm_size) {
                ulong base = bootmap_base + size;
@@ -105,7 +105,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
         *
         * Allocate space for command line and board info - the
         * address should be as high as possible within the reach of
-        * the kernel (see CFG_BOOTMAPSZ settings), but in unused
+        * the kernel (see CONFIG_SYS_BOOTMAPSZ settings), but in unused
         * memory, which means far enough below the current stack
         * pointer.
         */
@@ -114,7 +114,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 
        /* adjust sp by 1K to be safe */
        sp -= 1024;
-       lmb_reserve(lmb, sp, (CFG_SDRAM_BASE + get_effective_memsize() - sp));
+       lmb_reserve(lmb, sp, (CONFIG_SYS_SDRAM_BASE + get_effective_memsize() - sp));
 
        if (!of_size) {
                /* allocate space and init command line */
@@ -189,7 +189,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 
        show_boot_progress (15);
 
-#if defined(CFG_INIT_RAM_LOCK) && !defined(CONFIG_E500)
+#if defined(CONFIG_SYS_INIT_RAM_LOCK) && !defined(CONFIG_E500)
        unlock_ram_in_cache();
 #endif
 
@@ -213,7 +213,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 
                debug ("   Booting using OF flat tree...\n");
                (*kernel) ((bd_t *)of_flat_tree, 0, 0, EPAPR_MAGIC,
-                          CFG_BOOTMAPSZ, 0, 0);
+                          CONFIG_SYS_BOOTMAPSZ, 0, 0);
                /* does not return */
        } else
 #endif
index 5bfb22070727e6d1103398990374d002d42a2e6c..72c838e4181dd7c7a8be6e864d5de26aebc6135f 100644 (file)
@@ -30,11 +30,11 @@ void flush_cache (ulong start_addr, ulong size)
 #ifndef CONFIG_5xx
        ulong addr, end_addr = start_addr + size;
 
-       if (CFG_CACHELINE_SIZE) {
-               addr = start_addr & (CFG_CACHELINE_SIZE - 1);
+       if (CONFIG_SYS_CACHELINE_SIZE) {
+               addr = start_addr & (CONFIG_SYS_CACHELINE_SIZE - 1);
                for (addr = start_addr;
                     addr < end_addr;
-                    addr += CFG_CACHELINE_SIZE) {
+                    addr += CONFIG_SYS_CACHELINE_SIZE) {
                        asm ("dcbst 0,%0": :"r" (addr));
                        WATCHDOG_RESET();
                }
@@ -42,7 +42,7 @@ void flush_cache (ulong start_addr, ulong size)
 
                for (addr = start_addr;
                     addr < end_addr;
-                    addr += CFG_CACHELINE_SIZE) {
+                    addr += CONFIG_SYS_CACHELINE_SIZE) {
                        asm ("icbi 0,%0": :"r" (addr));
                        WATCHDOG_RESET();
                }
index 2d995fa30a3a26178c369170844aaf25018eb98d..91e2b3d246186d56466781e09e4da462bac43dc9 100644 (file)
@@ -53,7 +53,7 @@ search_one_table(const struct exception_table_entry *first,
                 unsigned long value)
 {
        long diff;
-       if ((ulong) first > CFG_MONITOR_BASE) {
+       if ((ulong) first > CONFIG_SYS_MONITOR_BASE) {
                /* exception occurs in FLASH, before u-boot relocation.
                 * No relocation offset is needed.
                 */
@@ -87,7 +87,7 @@ search_exception_table(unsigned long addr)
        /* There is only the kernel to search.  */
        ret = search_one_table(__start___ex_table, __stop___ex_table-1, addr);
        /* if the serial port does not hang in exception, printf can be used */
-#if !defined(CFG_SERIAL_HANG_IN_EXCEPTION)
+#if !defined(CONFIG_SYS_SERIAL_HANG_IN_EXCEPTION)
        if (ex_tab_message)
                debug("Bus Fault @ 0x%08lx, fixup 0x%08lx\n", addr, ret);
 #endif
index c5951e99ca765d5cd19cc0d0b9045280fa628ed0..f6031707aeb1805f7f7ad5e253a5bc910b27e660 100644 (file)
@@ -40,8 +40,8 @@ void __board_show_activity (ulong dummy)
 }
 #endif /* CONFIG_SHOW_ACTIVITY */
 
-#ifndef CFG_WATCHDOG_FREQ
-#define CFG_WATCHDOG_FREQ (CFG_HZ / 2)
+#ifndef CONFIG_SYS_WATCHDOG_FREQ
+#define CONFIG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2)
 #endif
 
 extern int interrupt_init_cpu (unsigned *);
@@ -124,7 +124,7 @@ void timer_interrupt (struct pt_regs *regs)
        timestamp++;
 
 #if defined(CONFIG_WATCHDOG) || defined (CONFIG_HW_WATCHDOG)
-       if ((timestamp % (CFG_WATCHDOG_FREQ)) == 0)
+       if ((timestamp % (CONFIG_SYS_WATCHDOG_FREQ)) == 0)
                WATCHDOG_RESET ();
 #endif    /* CONFIG_WATCHDOG || CONFIG_HW_WATCHDOG */
 
index f093a57854383e50fb73d580350665e8a3559b99..173ffab3e8b371b457ee7d6f24f91a208851dd71 100644 (file)
@@ -89,7 +89,7 @@ unsigned long ticks2usec(unsigned long ticks)
 int init_timebase (void)
 {
 #if defined(CONFIG_5xx) || defined(CONFIG_8xx)
-       volatile immap_t *immap = (immap_t *) CFG_IMMR;
+       volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
 
        /* unlock */
        immap->im_sitk.sitk_tbk = KAPWR_KEY;
index 6dfab4ec9e0c54c354cbc6584dcedc24c8e7e4f2..b6be22ed8cf54ee36c99929a044788c892f20fcc 100644 (file)
@@ -35,7 +35,7 @@ extern int timer_init(void);
 
 const char version_string[] = U_BOOT_VERSION" (" __DATE__ " - " __TIME__ ")";
 
-unsigned long monitor_flash_len = CFG_MONITOR_LEN;
+unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN;
 
 static unsigned long mem_malloc_start;
 static unsigned long mem_malloc_end;
@@ -44,8 +44,8 @@ static unsigned long mem_malloc_brk;
 static void mem_malloc_init(void)
 {
 
-       mem_malloc_start = (TEXT_BASE - CFG_GBL_DATA_SIZE - CFG_MALLOC_LEN);
-       mem_malloc_end = (mem_malloc_start + CFG_MALLOC_LEN - 16);
+       mem_malloc_start = (TEXT_BASE - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN);
+       mem_malloc_end = (mem_malloc_start + CONFIG_SYS_MALLOC_LEN - 16);
        mem_malloc_brk = mem_malloc_start;
        memset((void *) mem_malloc_start, 0,
                (mem_malloc_end - mem_malloc_start));
@@ -178,7 +178,7 @@ void sh_generic_init(void)
        bd_t *bd;
        init_fnc_t **init_fnc_ptr;
 
-       memset(gd, 0, CFG_GBL_DATA_SIZE);
+       memset(gd, 0, CONFIG_SYS_GBL_DATA_SIZE);
 
        gd->flags |= GD_FLG_RELOC;      /* tell others: relocation done */
 
@@ -188,12 +188,12 @@ void sh_generic_init(void)
        gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
 
        bd = gd->bd;
-       bd->bi_memstart = CFG_SDRAM_BASE;
-       bd->bi_memsize = CFG_SDRAM_SIZE;
-       bd->bi_flashstart = CFG_FLASH_BASE;
-#if defined(CFG_SRAM_BASE) && defined(CFG_SRAM_SIZE)
-       bd->bi_sramstart = CFG_SRAM_BASE;
-       bd->bi_sramsize = CFG_SRAM_SIZE;
+       bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
+       bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
+#if defined(CONFIG_SYS_SRAM_BASE) && defined(CONFIG_SYS_SRAM_SIZE)
+       bd->bi_sramstart = CONFIG_SYS_SRAM_BASE;
+       bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE;
 #endif
        bd->bi_baudrate = CONFIG_BAUDRATE;
 
index e3d49855a86b2425e246de0cbd4ddd5c18650d98..078a24dea123d4dc22d4781c49b617ebaddc2368 100644 (file)
@@ -28,7 +28,7 @@
 #include <command.h>
 #include <asm/byteorder.h>
 
-#ifdef CFG_DEBUG
+#ifdef CONFIG_SYS_DEBUG
 static void hexdump(unsigned char *buf, int len)
 {
        int i;
index 9c1dc509bb7cc757deda31db43925e02296acb6a..e637e95a31689f2ff4c1dc029f9971a64d825aa9 100644 (file)
@@ -63,7 +63,7 @@ void reset_timer (void)
 void udelay (unsigned long usec)
 {
        unsigned int start = get_timer (0);
-       unsigned int end = start + (usec * ((CFG_HZ + 500000) / 1000000));
+       unsigned int end = start + (usec * ((CONFIG_SYS_HZ + 500000) / 1000000));
 
        while (get_timer (0) < end)
                continue;
@@ -71,5 +71,5 @@ void udelay (unsigned long usec)
 
 unsigned long get_tbclk (void)
 {
-       return CFG_HZ;
+       return CONFIG_SYS_HZ;
 }
index 9780bf26744fb45e4580628b256c879c5bd2b9e0..e972d3e2c6be8dadf8ef0a53daf9d518cfeea2ad 100644 (file)
@@ -66,7 +66,7 @@ extern int prom_init(void);
 void doc_init(void);
 #endif
 
-#if !defined(CFG_NO_FLASH)
+#if !defined(CONFIG_SYS_NO_FLASH)
 static char *failed = "*** failed ***\n";
 #endif
 
@@ -91,8 +91,8 @@ static ulong mem_malloc_brk = 0;
  */
 static void mem_malloc_init(void)
 {
-       mem_malloc_start = CFG_MALLOC_BASE;
-       mem_malloc_end = CFG_MALLOC_END;
+       mem_malloc_start = CONFIG_SYS_MALLOC_BASE;
+       mem_malloc_end = CONFIG_SYS_MALLOC_END;
        mem_malloc_brk = mem_malloc_start;
        memset((void *)mem_malloc_start, 0, mem_malloc_end - mem_malloc_start);
 }
@@ -211,11 +211,11 @@ void board_init_f(ulong bootflag)
        int i;
        char *e;
 
-#ifndef CFG_NO_FLASH
+#ifndef CONFIG_SYS_NO_FLASH
        ulong flash_size;
 #endif
 
-       gd = (gd_t *) (CFG_GBL_DATA_OFFSET);
+       gd = (gd_t *) (CONFIG_SYS_GBL_DATA_OFFSET);
 
        /* Clear initial global data */
        memset((void *)gd, 0, sizeof(gd_t));
@@ -225,18 +225,18 @@ void board_init_f(ulong bootflag)
        gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
 
        bd = gd->bd;
-       bd->bi_memstart = CFG_RAM_BASE;
-       bd->bi_memsize = CFG_RAM_SIZE;
-       bd->bi_flashstart = CFG_FLASH_BASE;
-#if    defined(CFG_SRAM_BASE) && defined(CFG_SRAM_SIZE)
-       bd->bi_sramstart = CFG_SRAM_BASE;
-       bd->bi_sramsize = CFG_SRAM_SIZE;
+       bd->bi_memstart = CONFIG_SYS_RAM_BASE;
+       bd->bi_memsize = CONFIG_SYS_RAM_SIZE;
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
+#if    defined(CONFIG_SYS_SRAM_BASE) && defined(CONFIG_SYS_SRAM_SIZE)
+       bd->bi_sramstart = CONFIG_SYS_SRAM_BASE;
+       bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE;
 #endif
        bd->bi_baudrate = CONFIG_BAUDRATE;
        bd->bi_bootflags = bootflag;    /* boot / reboot flag (for LynxOS)    */
 
        gd->flags |= GD_FLG_RELOC;      /* tell others: relocation done */
-       gd->reloc_off = CFG_RELOC_MONITOR_BASE - CFG_MONITOR_BASE;
+       gd->reloc_off = CONFIG_SYS_RELOC_MONITOR_BASE - CONFIG_SYS_MONITOR_BASE;
 
        for (init_fnc_ptr = init_sequence, j = 0; *init_fnc_ptr;
             ++init_fnc_ptr, j++) {
@@ -266,18 +266,18 @@ void board_init_f(ulong bootflag)
         *  - board info struct
         */
 #ifdef DEBUG_MEM_LAYOUT
-       printf("CFG_MONITOR_BASE:       0x%lx\n", CFG_MONITOR_BASE);
+       printf("CONFIG_SYS_MONITOR_BASE:       0x%lx\n", CONFIG_SYS_MONITOR_BASE);
        printf("CONFIG_ENV_ADDR:           0x%lx\n", CONFIG_ENV_ADDR);
-       printf("CFG_RELOC_MONITOR_BASE: 0x%lx (%d)\n", CFG_RELOC_MONITOR_BASE,
-              CFG_MONITOR_LEN);
-       printf("CFG_MALLOC_BASE:        0x%lx (%d)\n", CFG_MALLOC_BASE,
-              CFG_MALLOC_LEN);
-       printf("CFG_INIT_SP_OFFSET:     0x%lx (%d)\n", CFG_INIT_SP_OFFSET,
-              CFG_STACK_SIZE);
-       printf("CFG_PROM_OFFSET:        0x%lx (%d)\n", CFG_PROM_OFFSET,
-              CFG_PROM_SIZE);
-       printf("CFG_GBL_DATA_OFFSET:    0x%lx (%d)\n", CFG_GBL_DATA_OFFSET,
-              CFG_GBL_DATA_SIZE);
+       printf("CONFIG_SYS_RELOC_MONITOR_BASE: 0x%lx (%d)\n", CONFIG_SYS_RELOC_MONITOR_BASE,
+              CONFIG_SYS_MONITOR_LEN);
+       printf("CONFIG_SYS_MALLOC_BASE:        0x%lx (%d)\n", CONFIG_SYS_MALLOC_BASE,
+              CONFIG_SYS_MALLOC_LEN);
+       printf("CONFIG_SYS_INIT_SP_OFFSET:     0x%lx (%d)\n", CONFIG_SYS_INIT_SP_OFFSET,
+              CONFIG_SYS_STACK_SIZE);
+       printf("CONFIG_SYS_PROM_OFFSET:        0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET,
+              CONFIG_SYS_PROM_SIZE);
+       printf("CONFIG_SYS_GBL_DATA_OFFSET:    0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET,
+              CONFIG_SYS_GBL_DATA_SIZE);
 #endif
 
 #ifdef CONFIG_POST
@@ -305,7 +305,7 @@ void board_init_f(ulong bootflag)
                        addr = (ulong) (cmdtp->usage) + gd->reloc_off;
                        cmdtp->usage = (char *)addr;
                }
-#ifdef CFG_LONGHELP
+#ifdef CONFIG_SYS_LONGHELP
                if (cmdtp->help) {
                        addr = (ulong) (cmdtp->help) + gd->reloc_off;
                        cmdtp->help = (char *)addr;
@@ -313,7 +313,7 @@ void board_init_f(ulong bootflag)
 #endif
        }
 
-#if defined(CONFIG_CMD_AMBAPP) && defined(CFG_AMBAPP_PRINT_ON_STARTUP)
+#if defined(CONFIG_CMD_AMBAPP) && defined(CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP)
        puts("AMBA:\n");
        do_ambapp_print(NULL, 0, 0, NULL);
 #endif
@@ -331,11 +331,11 @@ void board_init_f(ulong bootflag)
         */
        interrupt_init();
 
-#if !defined(CFG_NO_FLASH)
+#if !defined(CONFIG_SYS_NO_FLASH)
        puts("FLASH: ");
 
        if ((flash_size = flash_init()) > 0) {
-# ifdef CFG_FLASH_CHECKSUM
+# ifdef CONFIG_SYS_FLASH_CHECKSUM
                print_size(flash_size, "");
                /*
                 * Compute and print flash CRC if flashchecksum is set to 'y'
@@ -345,31 +345,31 @@ void board_init_f(ulong bootflag)
                s = getenv("flashchecksum");
                if (s && (*s == 'y')) {
                        printf("  CRC: %08lX",
-                              crc32(0, (const unsigned char *)CFG_FLASH_BASE,
+                              crc32(0, (const unsigned char *)CONFIG_SYS_FLASH_BASE,
                                     flash_size)
                            );
                }
                putc('\n');
-# else                         /* !CFG_FLASH_CHECKSUM */
+# else                         /* !CONFIG_SYS_FLASH_CHECKSUM */
                print_size(flash_size, "\n");
-# endif                                /* CFG_FLASH_CHECKSUM */
+# endif                                /* CONFIG_SYS_FLASH_CHECKSUM */
        } else {
                puts(failed);
                hang();
        }
 
-       bd->bi_flashstart = CFG_FLASH_BASE;     /* update start of FLASH memory    */
+       bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;      /* update start of FLASH memory    */
        bd->bi_flashsize = flash_size;  /* size of FLASH memory (final value) */
-#if CFG_MONITOR_BASE == CFG_FLASH_BASE
+#if CONFIG_SYS_MONITOR_BASE == CONFIG_SYS_FLASH_BASE
        bd->bi_flashoffset = monitor_flash_len; /* reserved area for startup monitor  */
 #else
        bd->bi_flashoffset = 0;
 #endif
-#else                          /* CFG_NO_FLASH */
+#else                          /* CONFIG_SYS_NO_FLASH */
        bd->bi_flashsize = 0;
        bd->bi_flashstart = 0;
        bd->bi_flashoffset = 0;
-#endif                         /* !CFG_NO_FLASH */
+#endif                         /* !CONFIG_SYS_NO_FLASH */
 
        /* initialize malloc() area */
        mem_malloc_init();
index 4e8c92048e1b9eb266a45cb4299963510e9dd57a..2baafcc555998021bf01f01ea6cbda0f914bf558 100644 (file)
@@ -129,7 +129,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t * images)
                 * to avoid that the RAM image is copied over stack or
                 * PROM.
                 */
-               lmb_reserve(lmb, CFG_RELOC_MONITOR_BASE, CFG_RAM_END);
+               lmb_reserve(lmb, CONFIG_SYS_RELOC_MONITOR_BASE, CONFIG_SYS_RAM_END);
 
                ret = boot_ramdisk_high(lmb, images->rd_start, rd_len,
                                        &initrd_start, &initrd_end);
@@ -144,7 +144,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t * images)
                 * Set INITRD Image address relative to RAM Start
                 */
                linux_hdr->hdr_input.ver_0203.sparc_ramdisk_image =
-                   initrd_start - CFG_RAM_BASE;
+                   initrd_start - CONFIG_SYS_RAM_BASE;
                linux_hdr->hdr_input.ver_0203.sparc_ramdisk_size = rd_len;
                /* Clear READ ONLY flag if set to non-zero */
                linux_hdr->hdr_input.ver_0203.root_flags = 1;
index 3b140fa7e8d0da760e6be58f88bb72ba154f77b1..fcc838ac815186269cc694be378c1ef5a86f2ccc 100644 (file)
@@ -43,5 +43,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index f7ec7514f0078b221233828fc9b3d64050bc4b72..6377b52b3d76ffc6ba4d2b3a062e2aeb501dec36 100644 (file)
@@ -45,5 +45,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index adede44c37e9b920c37d8d5b6ebb57d8077abe1d..54be2566c0c6f614eaf618f8750b2ca58a661076 100644 (file)
@@ -88,5 +88,5 @@ phys_size_t initdram(int board_type)
        mtsdram(mem_cfg0, 0x80000000); /* DCEN=1, PMUD=0*/
        wait_init_complete();
 
-       return CFG_MBYTES_SDRAM << 20;
+       return CONFIG_SYS_MBYTES_SDRAM << 20;
 }
index c8d7c235267bbd8cb547b7328e47dfcd5c23dab5..688c92bf5a746eb81e681b144a305795cee53627 100644 (file)
@@ -45,5 +45,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 29d7d3f819f7d86cc35ddef5a2829ddfbbc87811..371bbb3945eae60091a2d8f9f79c2597bc85c886 100644 (file)
@@ -94,5 +94,5 @@ phys_size_t initdram(int board_type)
        mtsdram(SDRAM_RQDC, 0x80000038);
        mtsdram(SDRAM_RFDC, 0x00000257);
 
-       return CFG_MBYTES_SDRAM << 20;
+       return CONFIG_SYS_MBYTES_SDRAM << 20;
 }
index d89ed3f0478d4b65cbcd73762579bddec558917f..f6bcd21a52e43123bf1441334719403f8b3fa64a 100644 (file)
@@ -44,5 +44,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index a29ba5fd0dc71c6e5aa51b8a980c44dc9311448f..e8c6333827f21a28e41f30e661c8cdfd03131302 100644 (file)
@@ -45,5 +45,5 @@ PLATFORM_CPPFLAGS += -DDEBUG
 endif
 
 ifeq ($(dbcr),1)
-PLATFORM_CPPFLAGS += -DCFG_INIT_DBCR=0x8cff0000
+PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8cff0000
 endif
index 0c06e53637771e8f4d980f27db7b451ec96c5bbf..87c50e123c5d580a05e150f3aa0e32a15080e34e 100644 (file)
 #include <nand.h>
 #include <asm/io.h>
 
-#define CFG_NAND_READ_DELAY \
+#define CONFIG_SYS_NAND_READ_DELAY \
        { volatile int dummy; int i; for (i=0; i<10000; i++) dummy = i; }
 
-static int nand_ecc_pos[] = CFG_NAND_ECCPOS;
+static int nand_ecc_pos[] = CONFIG_SYS_NAND_ECCPOS;
 
 extern void board_nand_init(struct nand_chip *nand);
 
-#if (CFG_NAND_PAGE_SIZE <= 512)
+#if (CONFIG_SYS_NAND_PAGE_SIZE <= 512)
 /*
  * NAND command for small page NAND devices (512)
  */
 static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8 cmd)
 {
        struct nand_chip *this = mtd->priv;
-       int page_addr = page + block * CFG_NAND_PAGE_COUNT;
+       int page_addr = page + block * CONFIG_SYS_NAND_PAGE_COUNT;
 
        if (this->dev_ready)
                while (!this->dev_ready(mtd))
                        ;
        else
-               CFG_NAND_READ_DELAY;
+               CONFIG_SYS_NAND_READ_DELAY;
 
        /* Begin command latch cycle */
        this->cmd_ctrl(mtd, cmd, NAND_CTRL_CLE | NAND_CTRL_CHANGE);
@@ -51,7 +51,7 @@ static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8
        this->cmd_ctrl(mtd, offs, NAND_CTRL_ALE | NAND_CTRL_CHANGE);
        this->cmd_ctrl(mtd, page_addr & 0xff, 0); /* A[16:9] */
        this->cmd_ctrl(mtd, (page_addr >> 8) & 0xff, 0); /* A[24:17] */
-#ifdef CFG_NAND_4_ADDR_CYCLE
+#ifdef CONFIG_SYS_NAND_4_ADDR_CYCLE
        /* One more address cycle for devices > 32MiB */
        this->cmd_ctrl(mtd, (page_addr >> 16) & 0x0f, 0); /* A[28:25] */
 #endif
@@ -65,7 +65,7 @@ static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8
                while (!this->dev_ready(mtd))
                        ;
        else
-               CFG_NAND_READ_DELAY;
+               CONFIG_SYS_NAND_READ_DELAY;
 
        return 0;
 }
@@ -76,17 +76,17 @@ static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8
 static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8 cmd)
 {
        struct nand_chip *this = mtd->priv;
-       int page_addr = page + block * CFG_NAND_PAGE_COUNT;
+       int page_addr = page + block * CONFIG_SYS_NAND_PAGE_COUNT;
 
        if (this->dev_ready)
                while (!this->dev_ready(mtd))
                        ;
        else
-               CFG_NAND_READ_DELAY;
+               CONFIG_SYS_NAND_READ_DELAY;
 
        /* Emulate NAND_CMD_READOOB */
        if (cmd == NAND_CMD_READOOB) {
-               offs += CFG_NAND_PAGE_SIZE;
+               offs += CONFIG_SYS_NAND_PAGE_SIZE;
                cmd = NAND_CMD_READ0;
        }
 
@@ -100,7 +100,7 @@ static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8
        /* Row address */
        this->cmd_ctrl(mtd, (page_addr & 0xff), 0); /* A[19:12] */
        this->cmd_ctrl(mtd, ((page_addr >> 8) & 0xff), 0); /* A[27:20] */
-#ifdef CFG_NAND_5_ADDR_CYCLE
+#ifdef CONFIG_SYS_NAND_5_ADDR_CYCLE
        /* One more address cycle for devices > 128MiB */
        this->cmd_ctrl(mtd, (page_addr >> 16) & 0x0f, 0); /* A[31:28] */
 #endif
@@ -116,7 +116,7 @@ static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8
                while (!this->dev_ready(mtd))
                        ;
        else
-               CFG_NAND_READ_DELAY;
+               CONFIG_SYS_NAND_READ_DELAY;
 
        return 0;
 }
@@ -126,7 +126,7 @@ static int nand_is_bad_block(struct mtd_info *mtd, int block)
 {
        struct nand_chip *this = mtd->priv;
 
-       nand_command(mtd, block, 0, CFG_NAND_BAD_BLOCK_POS, NAND_CMD_READOOB);
+       nand_command(mtd, block, 0, CONFIG_SYS_NAND_BAD_BLOCK_POS, NAND_CMD_READOOB);
 
        /*
         * Read one byte
@@ -144,9 +144,9 @@ static int nand_read_page(struct mtd_info *mtd, int block, int page, uchar *dst)
        u_char *ecc_code;
        u_char *oob_data;
        int i;
-       int eccsize = CFG_NAND_ECCSIZE;
-       int eccbytes = CFG_NAND_ECCBYTES;
-       int eccsteps = CFG_NAND_ECCSTEPS;
+       int eccsize = CONFIG_SYS_NAND_ECCSIZE;
+       int eccbytes = CONFIG_SYS_NAND_ECCBYTES;
+       int eccsteps = CONFIG_SYS_NAND_ECCSTEPS;
        uint8_t *p = dst;
        int stat;
 
@@ -155,7 +155,7 @@ static int nand_read_page(struct mtd_info *mtd, int block, int page, uchar *dst)
        /* No malloc available for now, just use some temporary locations
         * in SDRAM
         */
-       ecc_calc = (u_char *)(CFG_SDRAM_BASE + 0x10000);
+       ecc_calc = (u_char *)(CONFIG_SYS_SDRAM_BASE + 0x10000);
        ecc_code = ecc_calc + 0x100;
        oob_data = ecc_calc + 0x200;
 
@@ -164,13 +164,13 @@ static int nand_read_page(struct mtd_info *mtd, int block, int page, uchar *dst)
                this->read_buf(mtd, p, eccsize);
                this->ecc.calculate(mtd, p, &ecc_calc[i]);
        }
-       this->read_buf(mtd, oob_data, CFG_NAND_OOBSIZE);
+       this->read_buf(mtd, oob_data, CONFIG_SYS_NAND_OOBSIZE);
 
        /* Pick the ECC bytes out of the oob data */
-       for (i = 0; i < CFG_NAND_ECCTOTAL; i++)
+       for (i = 0; i < CONFIG_SYS_NAND_ECCTOTAL; i++)
                ecc_code[i] = oob_data[nand_ecc_pos[i]];
 
-       eccsteps = CFG_NAND_ECCSTEPS;
+       eccsteps = CONFIG_SYS_NAND_ECCSTEPS;
        p = dst;
 
        for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
@@ -193,18 +193,18 @@ static int nand_load(struct mtd_info *mtd, unsigned int offs,
        /*
         * offs has to be aligned to a page address!
         */
-       block = offs / CFG_NAND_BLOCK_SIZE;
-       lastblock = (offs + uboot_size - 1) / CFG_NAND_BLOCK_SIZE;
-       page = (offs % CFG_NAND_BLOCK_SIZE) / CFG_NAND_PAGE_SIZE;
+       block = offs / CONFIG_SYS_NAND_BLOCK_SIZE;
+       lastblock = (offs + uboot_size - 1) / CONFIG_SYS_NAND_BLOCK_SIZE;
+       page = (offs % CONFIG_SYS_NAND_BLOCK_SIZE) / CONFIG_SYS_NAND_PAGE_SIZE;
 
        while (block <= lastblock) {
                if (!nand_is_bad_block(mtd, block)) {
                        /*
                         * Skip bad blocks
                         */
-                       while (page < CFG_NAND_PAGE_COUNT) {
+                       while (page < CONFIG_SYS_NAND_PAGE_COUNT) {
                                nand_read_page(mtd, block, page, dst);
-                               dst += CFG_NAND_PAGE_SIZE;
+                               dst += CONFIG_SYS_NAND_PAGE_SIZE;
                                page++;
                        }
 
@@ -235,7 +235,7 @@ void nand_boot(void)
         * Init board specific nand support
         */
        nand_info.priv = &nand_chip;
-       nand_chip.IO_ADDR_R = nand_chip.IO_ADDR_W = (void  __iomem *)CFG_NAND_BASE;
+       nand_chip.IO_ADDR_R = nand_chip.IO_ADDR_W = (void  __iomem *)CONFIG_SYS_NAND_BASE;
        nand_chip.dev_ready = NULL;     /* preset to NULL */
        board_nand_init(&nand_chip);
 
@@ -245,8 +245,8 @@ void nand_boot(void)
        /*
         * Load U-Boot image from NAND into RAM
         */
-       ret = nand_load(&nand_info, CFG_NAND_U_BOOT_OFFS, CFG_NAND_U_BOOT_SIZE,
-                       (uchar *)CFG_NAND_U_BOOT_DST);
+       ret = nand_load(&nand_info, CONFIG_SYS_NAND_U_BOOT_OFFS, CONFIG_SYS_NAND_U_BOOT_SIZE,
+                       (uchar *)CONFIG_SYS_NAND_U_BOOT_DST);
 
        if (nand_chip.select_chip)
                nand_chip.select_chip(&nand_info, -1);
@@ -254,6 +254,6 @@ void nand_boot(void)
        /*
         * Jump to U-Boot image
         */
-       uboot = (void *)CFG_NAND_U_BOOT_START;
+       uboot = (void *)CONFIG_SYS_NAND_U_BOOT_START;
        (*uboot)();
 }
index 53392243d7697304d152f946de2de8afd2be9ddb..273478f72c9f74643faf1bcd1f2726e1bf672215 100644 (file)
@@ -33,7 +33,7 @@
 
 static void nand_wait(void)
 {
-       lbus83xx_t *regs = (lbus83xx_t *)(CFG_IMMR + 0x5000);
+       lbus83xx_t *regs = (lbus83xx_t *)(CONFIG_SYS_IMMR + 0x5000);
 
        for (;;) {
                uint32_t status = in_be32(&regs->ltesr);
@@ -50,8 +50,8 @@ static void nand_wait(void)
 
 static void nand_load(unsigned int offs, int uboot_size, uchar *dst)
 {
-       lbus83xx_t *regs = (lbus83xx_t *)(CFG_IMMR + 0x5000);
-       uchar *buf = (uchar *)CFG_NAND_BASE;
+       lbus83xx_t *regs = (lbus83xx_t *)(CONFIG_SYS_IMMR + 0x5000);
+       uchar *buf = (uchar *)CONFIG_SYS_NAND_BASE;
        int large = in_be32(&regs->bank[0].or) & OR_FCM_PGS;
        int block_shift = large ? 17 : 14;
        int block_size = 1 << block_shift;
@@ -136,13 +136,13 @@ void nand_boot(void)
        /*
         * Load U-Boot image from NAND into RAM
         */
-       nand_load(CFG_NAND_U_BOOT_OFFS, CFG_NAND_U_BOOT_SIZE,
-                 (uchar *)CFG_NAND_U_BOOT_DST);
+       nand_load(CONFIG_SYS_NAND_U_BOOT_OFFS, CONFIG_SYS_NAND_U_BOOT_SIZE,
+                 (uchar *)CONFIG_SYS_NAND_U_BOOT_DST);
 
        /*
         * Jump to U-Boot image
         */
        puts("transfering control\n");
-       uboot = (void *)CFG_NAND_U_BOOT_START;
+       uboot = (void *)CONFIG_SYS_NAND_U_BOOT_START;
        uboot();
 }
index c2078c6c8cf16ab3cdc938208ebad6d3145d3000..83465e41aa9de081c24c0f9c6a51c2c10e5bd14d 100644 (file)
@@ -912,11 +912,11 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
                 * OFFER from a server we want.
                 */
                debug ("DHCP: state=SELECTING bp_file: \"%s\"\n", bp->bp_file);
-#ifdef CFG_BOOTFILE_PREFIX
+#ifdef CONFIG_SYS_BOOTFILE_PREFIX
                if (strncmp(bp->bp_file,
-                           CFG_BOOTFILE_PREFIX,
-                           strlen(CFG_BOOTFILE_PREFIX)) == 0 ) {
-#endif /* CFG_BOOTFILE_PREFIX */
+                           CONFIG_SYS_BOOTFILE_PREFIX,
+                           strlen(CONFIG_SYS_BOOTFILE_PREFIX)) == 0 ) {
+#endif /* CONFIG_SYS_BOOTFILE_PREFIX */
 
                        debug ("TRANSITIONING TO REQUESTING STATE\n");
                        dhcp_state = REQUESTING;
@@ -926,9 +926,9 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
 
                        NetSetTimeout(TIMEOUT, BootpTimeout);
                        DhcpSendRequestPkt(bp);
-#ifdef CFG_BOOTFILE_PREFIX
+#ifdef CONFIG_SYS_BOOTFILE_PREFIX
                }
-#endif /* CFG_BOOTFILE_PREFIX */
+#endif /* CONFIG_SYS_BOOTFILE_PREFIX */
 
                return;
                break;
index 80262b933686b8231280a4647efc09197f02b113..77e83b5bd0a986a1f8853a52caf4b6e0e3284dd0 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -472,16 +472,16 @@ restart:
        }
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-#if defined(CFG_FAULT_ECHO_LINK_DOWN) && defined(CONFIG_STATUS_LED) && defined(STATUS_LED_RED)
+#if defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN) && defined(CONFIG_STATUS_LED) && defined(STATUS_LED_RED)
        /*
         * Echo the inverted link state to the fault LED.
         */
-       if(miiphy_link(eth_get_dev()->name, CFG_FAULT_MII_ADDR)) {
+       if(miiphy_link(eth_get_dev()->name, CONFIG_SYS_FAULT_MII_ADDR)) {
                status_led_set (STATUS_LED_RED, STATUS_LED_OFF);
        } else {
                status_led_set (STATUS_LED_RED, STATUS_LED_ON);
        }
-#endif /* CFG_FAULT_ECHO_LINK_DOWN, ... */
+#endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
 #endif /* CONFIG_MII, ... */
 
        /*
@@ -521,18 +521,18 @@ restart:
                        thand_f *x;
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-#  if defined(CFG_FAULT_ECHO_LINK_DOWN) && \
+#  if defined(CONFIG_SYS_FAULT_ECHO_LINK_DOWN) && \
       defined(CONFIG_STATUS_LED) &&       \
       defined(STATUS_LED_RED)
                        /*
                         * Echo the inverted link state to the fault LED.
                         */
-                       if(miiphy_link(eth_get_dev()->name, CFG_FAULT_MII_ADDR)) {
+                       if(miiphy_link(eth_get_dev()->name, CONFIG_SYS_FAULT_MII_ADDR)) {
                                status_led_set (STATUS_LED_RED, STATUS_LED_OFF);
                        } else {
                                status_led_set (STATUS_LED_RED, STATUS_LED_ON);
                        }
-#  endif /* CFG_FAULT_ECHO_LINK_DOWN, ... */
+#  endif /* CONFIG_SYS_FAULT_ECHO_LINK_DOWN, ... */
 #endif /* CONFIG_MII, ... */
                        x = timeHandler;
                        timeHandler = (thand_f *)0;
index 0c8f08c9ae2e5a2067c4f48c3fa35fb3ea27a150..f2900149d4980919c94ed864160b78079cee4fbe 100644 (file)
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -69,10 +69,10 @@ static __inline__ int
 store_block (uchar * src, unsigned offset, unsigned len)
 {
        ulong newsize = offset + len;
-#ifdef CFG_DIRECT_FLASH_NFS
+#ifdef CONFIG_SYS_DIRECT_FLASH_NFS
        int i, rc = 0;
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; i++) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                /* start address in flash? */
                if (load_addr + offset >= flash_info[i].start[0]) {
                        rc = 1;
@@ -87,7 +87,7 @@ store_block (uchar * src, unsigned offset, unsigned len)
                        return -1;
                }
        } else
-#endif /* CFG_DIRECT_FLASH_NFS */
+#endif /* CONFIG_SYS_DIRECT_FLASH_NFS */
        {
                (void)memcpy ((void *)(load_addr + offset), src, len);
        }
index f7cc1116e2111291614769cafd1794879be2fe59..ce6ea3d9f5ae126678f7e61192ef83aa13a74bb2 100644 (file)
@@ -79,7 +79,7 @@ static char default_filename[DEFAULT_NAME_LEN];
 
 static char tftp_filename[MAX_LEN];
 
-#ifdef CFG_DIRECT_FLASH_TFTP
+#ifdef CONFIG_SYS_DIRECT_FLASH_TFTP
 extern flash_info_t flash_info[];
 #endif
 
@@ -121,10 +121,10 @@ store_block (unsigned block, uchar * src, unsigned len)
 {
        ulong offset = block * TftpBlkSize + TftpBlockWrapOffset;
        ulong newsize = offset + len;
-#ifdef CFG_DIRECT_FLASH_TFTP
+#ifdef CONFIG_SYS_DIRECT_FLASH_TFTP
        int i, rc = 0;
 
-       for (i=0; i<CFG_MAX_FLASH_BANKS; i++) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; i++) {
                /* start address in flash? */
                if (flash_info[i].flash_id == FLASH_UNKNOWN)
                        continue;
@@ -143,7 +143,7 @@ store_block (unsigned block, uchar * src, unsigned len)
                }
        }
        else
-#endif /* CFG_DIRECT_FLASH_TFTP */
+#endif /* CONFIG_SYS_DIRECT_FLASH_TFTP */
        {
                (void)memcpy((void *)(load_addr + offset), src, len);
        }
index acf5c2998f3b1d46e74150a6c14847fa160df0a9..4936e00f17ab78099433d03f3b203853d718b397 100644 (file)
@@ -37,7 +37,7 @@ int board_init(void)
        return 0;
 }
 
-#ifdef CFG_PRINTF
+#ifdef CONFIG_SYS_PRINTF
 /* Pin Muxing registers used for UART1 */
 /****************************************
  * Routine: muxSetupUART1  (ostboot)
@@ -63,7 +63,7 @@ static void muxSetupUART1(void)
  **********************************************************/
 int s_init(int skip)
 {
-#ifdef CFG_PRINTF
+#ifdef CONFIG_SYS_PRINTF
        muxSetupUART1();
 #endif
        return 0;
index 35668ac84f765f50f165849eb1abd5e8a5511f36..aff62d29bb7d6d23fb36e895775b5c5c42e1c003 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "onenand_ipl.h"
 
-#ifdef CFG_PRINTF
+#ifdef CONFIG_SYS_PRINTF
 int print_info(void)
 {
        printf(XLOADER_VERSION);
@@ -41,7 +41,7 @@ typedef int (init_fnc_t)(void);
 
 init_fnc_t *init_sequence[] = {
        board_init,             /* basic board dependent setup */
-#ifdef CFG_PRINTF
+#ifdef CONFIG_SYS_PRINTF
        serial_init,            /* serial communications setup */
        print_info,
 #endif
@@ -58,17 +58,17 @@ void start_oneboot(void)
                        hang();
        }
 
-       buf = (uchar *) CFG_LOAD_ADDR;
+       buf = (uchar *) CONFIG_SYS_LOAD_ADDR;
 
        if (!onenand_read_block0(buf))
                buf += ONENAND_BLOCK_SIZE;
 
-       if (buf == (uchar *)CFG_LOAD_ADDR)
+       if (buf == (uchar *)CONFIG_SYS_LOAD_ADDR)
                hang();
 
        /* go run U-Boot and never return */
        printf("Starting OS Bootloader...\n");
-       ((init_fnc_t *)CFG_LOAD_ADDR)();
+       ((init_fnc_t *)CONFIG_SYS_LOAD_ADDR)();
 
        /* should never come here */
 }
index 9188b96625dca9bad0112d40a8c5579637da8514..3387998a97aa380357c04bc18adcf3c9ad7499c6 100644 (file)
 
 #define ONENAND_BLOCK_SIZE              2048
 
-#ifndef CFG_PRINTF
+#ifndef CONFIG_SYS_PRINTF
 #define printf(format, args...)
 #endif
 
 #define onenand_readw(a)        readw(a)
 #define onenand_writew(v, a)    writew(v, a)
 
-#define THIS_ONENAND(a)         (CFG_ONENAND_BASE + (a))
+#define THIS_ONENAND(a)         (CONFIG_SYS_ONENAND_BASE + (a))
 
 #define READ_INTERRUPT()                                                \
        onenand_readw(THIS_ONENAND(ONENAND_REG_INTERRUPT))
index 669b1ef5fa63acff6322d681e4696394a6f42130..6d04943ba1b5e2aad65a62bc8f5e4e944d7f9215 100644 (file)
@@ -67,7 +67,7 @@ static inline int onenand_read_page(ulong block, ulong page,
 #ifndef __HAVE_ARCH_MEMCPY32
        p = (unsigned long *) buf;
 #endif
-       base = (unsigned long *) (CFG_ONENAND_BASE + ONENAND_DATARAM);
+       base = (unsigned long *) (CONFIG_SYS_ONENAND_BASE + ONENAND_DATARAM);
 
        while (!(READ_INTERRUPT() & ONENAND_INT_READ))
                continue;
index ea8b5a9c66144613b0b87df395aebbdf3bf107fc..79a5151c01cd86c1a18d62b8f2322d43a172e06c 100644 (file)
@@ -48,7 +48,7 @@
 #include <watchdog.h>
 #include <i2c.h>
 
-#if CONFIG_POST & CFG_POST_SYSMON
+#if CONFIG_POST & CONFIG_SYS_POST_SYSMON
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -76,11 +76,11 @@ struct sysmon_s
 };
 
 static sysmon_t sysmon_lm87 =
-       {CFG_I2C_SYSMON_ADDR, sysmon_lm87_init, sysmon_i2c_read};
+       {CONFIG_SYS_I2C_SYSMON_ADDR, sysmon_lm87_init, sysmon_i2c_read};
 static sysmon_t sysmon_lm87_sgn =
-       {CFG_I2C_SYSMON_ADDR, sysmon_lm87_init, sysmon_i2c_read_sgn};
+       {CONFIG_SYS_I2C_SYSMON_ADDR, sysmon_lm87_init, sysmon_i2c_read_sgn};
 static sysmon_t sysmon_pic =
-       {CFG_I2C_PICIO_ADDR, sysmon_pic_init, sysmon_i2c_read};
+       {CONFIG_SYS_I2C_PICIO_ADDR, sysmon_pic_init, sysmon_i2c_read};
 
 static sysmon_t * sysmon_list[] =
 {
@@ -325,4 +325,4 @@ int sysmon_post_test (int flags)
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_SYSMON */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_SYSMON */
index a96ac7d681b2fe7038a129c39c48e7b4f645c215..0e6d9084a319b04d3f93b63d921ad6bbe9cde591 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_DSP
+#if CONFIG_POST & CONFIG_SYS_POST_DSP
 #include <asm/io.h>
 
 /* This test verifies DSP status bits in FPGA */
@@ -50,4 +50,4 @@ int dsp_post_test(int flags)
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_DSP */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_DSP */
index eb1c31ce30a1fc2342f13974c56864d7651a52d1..ff2ed0566fcbf177a45066d40ac7fc57464d6b9e 100644 (file)
@@ -40,12 +40,12 @@ DECLARE_GLOBAL_DATA_PTR;
 #define DSPIC_SYS_ERROR_REG    0x802
 #define DSPIC_VERSION_REG      0x804
 
-#if CONFIG_POST & CFG_POST_BSPEC1
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC1
 
 /* Verify that dsPIC ready test done early at hw init passed ok */
 int dspic_init_post_test(int flags)
 {
-       if (in_be32((void *)CFG_DSPIC_TEST_ADDR) & CFG_DSPIC_TEST_MASK) {
+       if (in_be32((void *)CONFIG_SYS_DSPIC_TEST_ADDR) & CONFIG_SYS_DSPIC_TEST_MASK) {
                post_log("dsPIC init test failed\n");
                return 1;
        }
@@ -53,15 +53,15 @@ int dspic_init_post_test(int flags)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_BSPEC1 */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_BSPEC1 */
 
-#if CONFIG_POST & CFG_POST_BSPEC2
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC2
 /* Read a register from the dsPIC. */
 int dspic_read(ushort reg)
 {
        uchar buf[2];
 
-       if (i2c_read(CFG_I2C_DSPIC_IO_ADDR, reg, 2, buf, 2))
+       if (i2c_read(CONFIG_SYS_I2C_DSPIC_IO_ADDR, reg, 2, buf, 2))
                return -1;
 
        return (uint)((buf[0] << 8) | buf[1]);
@@ -102,4 +102,4 @@ int dspic_post_test(int flags)
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_BSPEC2 */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_BSPEC2 */
index ef641d7899060c33c503191033bc7399343f32f3..2b842908db2f2e037c233eabd464438539d6ad55 100644 (file)
@@ -39,7 +39,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define FPGA_RAM_END           0xC4203FFF
 #define FPGA_STAT              0xC400000C
 
-#if CONFIG_POST & CFG_POST_BSPEC3
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC3
 
 /* Testpattern for fpga memorytest */
 static uint pattern[] = {
@@ -127,7 +127,7 @@ int fpga_post_test(int flags)
        /* Enable write to FPGA RAM */
        out_be32((void *)FPGA_STAT, in_be32((void *)FPGA_STAT) | 0x1000);
 
-       read_value = get_ram_size((void *)CFG_FPGA_BASE_1, 0x4000);
+       read_value = get_ram_size((void *)CONFIG_SYS_FPGA_BASE_1, 0x4000);
        post_log("FPGA RAM size: %d bytes\n", read_value);
 
        for (address = 0; address < 0x1000; address++) {
@@ -141,4 +141,4 @@ out:
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_BSPEC3 */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_BSPEC3 */
index bc166850f8e49a94b6de0cb75066abbbd421c285..eb16e36fcb7733a33b398d111164dff470da24a5 100644 (file)
@@ -38,7 +38,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define GDC_RAM_START   0xC0000000
 #define GDC_RAM_END     0xC2000000
 
-#if CONFIG_POST & CFG_POST_BSPEC4
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC4
 
 static int gdc_test_reg_one(uint value)
 {
@@ -93,4 +93,4 @@ int gdc_post_test(int flags)
 
        return ret;
 }
-#endif /* CONFIG_POST & CFG_POST_BSPEC4 */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_BSPEC4 */
index 2766224872c6bbde17343c8fbd962e1aad9bec71..aef5bd018a36f3e5ea69eb56991960fa3b223028 100644 (file)
@@ -51,7 +51,7 @@
 #include <mb862xx.h>
 #endif
 
-#if CONFIG_POST & CFG_POST_SYSMON
+#if CONFIG_POST & CONFIG_SYS_POST_SYSMON
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -90,7 +90,7 @@ struct sysmon_s
 };
 
 static sysmon_t sysmon_dspic =
-       {CFG_I2C_DSPIC_IO_ADDR, sysmon_dspic_init, sysmon_dspic_read};
+       {CONFIG_SYS_I2C_DSPIC_IO_ADDR, sysmon_dspic_init, sysmon_dspic_read};
 
 static sysmon_t * sysmon_list[] =
 {
@@ -267,4 +267,4 @@ int sysmon_post_test (int flags)
 
        return res;
 }
-#endif /* CONFIG_POST & CFG_POST_SYSMON */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_SYSMON */
index 1246278a58195484f28f06fb09cd6863f6bfe00f..44f048832343bde96114620b6c08cd2d9dabf383 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_WATCHDOG
+#if CONFIG_POST & CONFIG_SYS_POST_WATCHDOG
 
 #include <watchdog.h>
 #include <asm/gpio.h>
 
 static uint watchdog_magic_read(void)
 {
-       return in_be32((void *)CFG_WATCHDOG_FLAGS_ADDR) &
-               CFG_WATCHDOG_MAGIC_MASK;
+       return in_be32((void *)CONFIG_SYS_WATCHDOG_FLAGS_ADDR) &
+               CONFIG_SYS_WATCHDOG_MAGIC_MASK;
 }
 
 static void watchdog_magic_write(uint value)
 {
-       out_be32((void *)CFG_WATCHDOG_FLAGS_ADDR, value |
-               (in_be32((void *)CFG_WATCHDOG_FLAGS_ADDR) &
-                       ~CFG_WATCHDOG_MAGIC_MASK));
+       out_be32((void *)CONFIG_SYS_WATCHDOG_FLAGS_ADDR, value |
+               (in_be32((void *)CONFIG_SYS_WATCHDOG_FLAGS_ADDR) &
+                       ~CONFIG_SYS_WATCHDOG_MAGIC_MASK));
 }
 
 int sysmon1_post_test(int flags)
 {
-       if (gpio_read_in_bit(CFG_GPIO_SYSMON_STATUS) == 0) {
+       if (gpio_read_in_bit(CONFIG_SYS_GPIO_SYSMON_STATUS) == 0) {
                /*
                 * 3.1. GPIO62 is low
                 * Assuming system voltage failure.
@@ -79,7 +79,7 @@ int lwmon5_watchdog_post_test(int flags)
                return 1;
        }
 
-       if (watchdog_magic_read() != CFG_WATCHDOG_MAGIC) {
+       if (watchdog_magic_read() != CONFIG_SYS_WATCHDOG_MAGIC) {
                /* 3.2. Scratch register 1 differs from magic value 0x1248xxxx
                 * Assuming PowerOn
                 */
@@ -88,18 +88,18 @@ int lwmon5_watchdog_post_test(int flags)
                ulong time;
 
                /* 3.2.1. Set magic value to scratch register */
-               watchdog_magic_write(CFG_WATCHDOG_MAGIC);
+               watchdog_magic_write(CONFIG_SYS_WATCHDOG_MAGIC);
 
                ints = disable_interrupts ();
                /* 3.2.2. strobe watchdog once */
                WATCHDOG_RESET();
-               out_be32((void *)CFG_WATCHDOG_TIME_ADDR, 0);
+               out_be32((void *)CONFIG_SYS_WATCHDOG_TIME_ADDR, 0);
                /* 3.2.3. save time of strobe in scratch register 2 */
                base = post_time_ms (0);
 
                /* 3.2.4. Wait for 150 ms (enough for reset to happen) */
                while ((time = post_time_ms (base)) < 150)
-                       out_be32((void *)CFG_WATCHDOG_TIME_ADDR, time);
+                       out_be32((void *)CONFIG_SYS_WATCHDOG_TIME_ADDR, time);
                if (ints)
                        enable_interrupts ();
 
@@ -116,7 +116,7 @@ int lwmon5_watchdog_post_test(int flags)
                 */
                ulong time;
                /* 3.3.1. So, the test succeed, save measured time to syslog. */
-               time = in_be32((void *)CFG_WATCHDOG_TIME_ADDR);
+               time = in_be32((void *)CONFIG_SYS_WATCHDOG_TIME_ADDR);
                post_log("hw watchdog time : %u ms, passed ", time);
                /* 3.3.2. Set scratch register 1 to 0x0000xxxx */
                watchdog_magic_write(0);
@@ -125,4 +125,4 @@ int lwmon5_watchdog_post_test(int flags)
        return -1;
 }
 
-#endif /* CONFIG_POST & CFG_POST_WATCHDOG */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_WATCHDOG */
index 115e331fdbf2b4d08d5fafdd7ea1f667eebea2fb..a095a9179e06ffe74a8fdc2ae4d6ed9c1c52c554 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_CODEC
+#if CONFIG_POST & CONFIG_SYS_POST_CODEC
 
 extern int board_post_codec(int flags);
 
@@ -42,4 +42,4 @@ int codec_post_test (int flags)
        return board_post_codec(flags);
 }
 
-#endif /* CONFIG_POST & CFG_POST_CODEC */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_CODEC */
index dcef4e821e3782c15994d02c86e787ef47e069e6..438ced553f7bc31b31e45c262101abf27230c9a5 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_DSP
+#if CONFIG_POST & CONFIG_SYS_POST_DSP
 
 extern int board_post_dsp(int flags);
 
@@ -42,4 +42,4 @@ int dsp_post_test (int flags)
        return board_post_dsp(flags);
 }
 
-#endif /* CONFIG_POST & CFG_POST_DSP */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_DSP */
index 36965a1672b71a20719488742379fea9fadc78f4..06cb501bd5d1bbbe186c1deffa67a370038cefac 100644 (file)
@@ -32,7 +32,7 @@
 #include <post.h>
 #include <watchdog.h>
 
-#if CONFIG_POST & CFG_POST_CACHE
+#if CONFIG_POST & CONFIG_SYS_POST_CACHE
 
 #define CACHE_POST_SIZE        1024
 
@@ -75,4 +75,4 @@ int cache_post_test (int flags)
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_CACHE */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_CACHE */
index a3fc39bda11c125b2b5b5b4116e1f6a84ddae8ba..097eedb42103448fe312f1247c9e10c81c986c4f 100644 (file)
@@ -33,7 +33,7 @@
 #include <ppc_defs.h>
 #include <asm/cache.h>
 
-#if CONFIG_POST & CFG_POST_CACHE
+#if CONFIG_POST & CONFIG_SYS_POST_CACHE
 
        .text
 
@@ -490,4 +490,4 @@ cache_post_test6_data:
        blr
 
 #endif /* CONFIG_MPC823 || MPC850 || MPC855 || MPC860 */
-#endif /* CONFIG_POST & CFG_POST_CACHE */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_CACHE */
index 2fa5cf4ac991cf7f456977261b0b859208ae03ad..5622cb7d2a6679ab4bdc5241ce504bf2f39b85e7 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 #include <post.h>
-#if CONFIG_POST & CFG_POST_ETHER
+#if CONFIG_POST & CONFIG_SYS_POST_ETHER
 #if defined(CONFIG_8xx)
 #include <commproc.h>
 #elif defined(CONFIG_MPC8260)
@@ -120,7 +120,7 @@ CPM_CR_CH_SCC4 };
        int i;
        scc_enet_t *pram_ptr;
 
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        immr->im_cpm.cp_scc[scc_index].scc_gsmrl &=
                        ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);
@@ -143,7 +143,7 @@ CPM_CR_CH_SCC4 };
        rxIdx = 0;
        txIdx = 0;
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        rtx = (RTXBD *) (immr->im_cpm.cp_dpmem +
                                         dpram_alloc_align (sizeof (RTXBD), 8));
 #else
@@ -452,7 +452,7 @@ CPM_CR_CH_SCC4 };
 
 static void scc_halt (int scc_index)
 {
-       volatile immap_t *immr = (immap_t *) CFG_IMMR;
+       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
 
        immr->im_cpm.cp_scc[scc_index].scc_gsmrl &=
                        ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);
@@ -624,4 +624,4 @@ int ether_post_test (int flags)
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_ETHER */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_ETHER */
index 83f04da55d7cf699de03cc7ae6af144e4b8fb4ce..db84dbe50437198686a6468f3c7de51c7d176147 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_SPR
+#if CONFIG_POST & CONFIG_SYS_POST_SPR
 
 static struct
 {
@@ -80,7 +80,7 @@ static struct
        {159,   "BAR",          0x00000000,     0x00000000},
        {630,   "DPDR",         0x00000000,     0x00000000},
        {631,   "DPIR",         0x00000000,     0x00000000},
-       {638,   "IMMR",         0xFFFF0000,     CFG_IMMR  },
+       {638,   "IMMR",         0xFFFF0000,     CONFIG_SYS_IMMR  },
        {560,   "IC_CST",       0x8E380000,     0x00000000},
        {561,   "IC_ADR",       0x00000000,     0x00000000},
        {562,   "IC_DAT",       0x00000000,     0x00000000},
@@ -146,4 +146,4 @@ int spr_post_test (int flags)
 
        return ret;
 }
-#endif /* CONFIG_POST & CFG_POST_SPR */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_SPR */
index 635debe8d3eb33de37566e5de184ad1b80fc042a..f351ac06d72468fa68bda7de6bf67f73d6489722 100644 (file)
@@ -37,7 +37,7 @@
  */
 
 #include <post.h>
-#if CONFIG_POST & CFG_POST_UART
+#if CONFIG_POST & CONFIG_SYS_POST_UART
 #if defined(CONFIG_8xx)
 #include <commproc.h>
 #elif defined(CONFIG_MPC8260)
@@ -84,7 +84,7 @@ static void smc_init (int smc_index)
 {
        static int cpm_cr_ch[] = { CPM_CR_CH_SMC1, CPM_CR_CH_SMC2 };
 
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile smc_t *sp;
        volatile smc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -105,15 +105,15 @@ static void smc_init (int smc_index)
        im->im_siu_conf.sc_sdcr = 1;
 
        /* clear error conditions */
-#ifdef CFG_SDSR
-       im->im_sdma.sdma_sdsr = CFG_SDSR;
+#ifdef CONFIG_SYS_SDSR
+       im->im_sdma.sdma_sdsr = CONFIG_SYS_SDSR;
 #else
        im->im_sdma.sdma_sdsr = 0x83;
 #endif
 
        /* clear SDMA interrupt mask */
-#ifdef CFG_SDMR
-       im->im_sdma.sdma_sdmr = CFG_SDMR;
+#ifdef CONFIG_SYS_SDMR
+       im->im_sdma.sdma_sdmr = CONFIG_SYS_SDMR;
 #else
        im->im_sdma.sdma_sdmr = 0x00;
 #endif
@@ -133,7 +133,7 @@ static void smc_init (int smc_index)
         * the buffer descriptors.
         */
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = dpram_alloc_align (sizeof (cbd_t) * 2 + 2, 8);
 #else
        dpaddr = CPM_POST_BASE;
@@ -218,7 +218,7 @@ static void smc_putc (int smc_index, const char c)
        volatile cbd_t *tbdf;
        volatile char *buf;
        volatile smc_uart_t *up;
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cpmp = &(im->im_cpm);
 
        up = (smc_uart_t *) & cpmp->cp_dparam[proff_smc[smc_index]];
@@ -250,7 +250,7 @@ static int smc_getc (int smc_index)
        volatile cbd_t *rbdf;
        volatile unsigned char *buf;
        volatile smc_uart_t *up;
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cpmp = &(im->im_cpm);
        unsigned char c;
        int i;
@@ -293,7 +293,7 @@ static void scc_init (int scc_index)
                CPM_CR_CH_SCC4,
        };
 
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile scc_t *sp;
        volatile scc_uart_t *up;
        volatile cbd_t *tbdf, *rbdf;
@@ -313,7 +313,7 @@ static void scc_init (int scc_index)
        /* Allocate space for two buffer descriptors in the DP ram.
         */
 
-#ifdef CFG_ALLOC_DPRAM
+#ifdef CONFIG_SYS_ALLOC_DPRAM
        dpaddr = dpram_alloc_align (sizeof (cbd_t) * 2 + 2, 8);
 #else
        dpaddr = CPM_POST_BASE;
@@ -420,7 +420,7 @@ static void scc_init (int scc_index)
 
 static void scc_halt(int scc_index)
 {
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(im->im_cpm);
        volatile scc_t *sp = (scc_t *) & (cp->cp_scc[scc_index]);
 
@@ -432,7 +432,7 @@ static void scc_putc (int scc_index, const char c)
        volatile cbd_t *tbdf;
        volatile char *buf;
        volatile scc_uart_t *up;
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cpmp = &(im->im_cpm);
 
        up = (scc_uart_t *) & cpmp->cp_dparam[proff_scc[scc_index]];
@@ -464,7 +464,7 @@ static int scc_getc (int scc_index)
        volatile cbd_t *rbdf;
        volatile unsigned char *buf;
        volatile scc_uart_t *up;
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cpmp = &(im->im_cpm);
        unsigned char c;
        int i;
@@ -553,4 +553,4 @@ int uart_post_test (int flags)
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_UART */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_UART */
index 58779812f6afc6ca98e22a287d0b1f227981a4ce..e3fe075be5d654f29d09cb858e1dd26bf202f18d 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_USB
+#if CONFIG_POST & CONFIG_SYS_POST_USB
 
 #include <commproc.h>
 #include <command.h>
@@ -105,7 +105,7 @@ typedef struct usb {
 int usb_post_test (int flags)
 {
        int res = -1;
-       volatile immap_t *im = (immap_t *) CFG_IMMR;
+       volatile immap_t *im = (immap_t *) CONFIG_SYS_IMMR;
        volatile cpm8xx_t *cp = &(im->im_cpm);
        volatile usb_param_t *pram_ptr;
        uint dpram;
@@ -262,4 +262,4 @@ int usb_post_test (int flags)
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_USB */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_USB */
index f94158aa6f34499b0c46aaf5a1685f63dc9040ce..da191c232c276a6abca7a3a84112c218bddda749 100644 (file)
@@ -36,7 +36,7 @@
 #include <post.h>
 #include <watchdog.h>
 
-#if CONFIG_POST & CFG_POST_WATCHDOG
+#if CONFIG_POST & CONFIG_SYS_POST_WATCHDOG
 
 static ulong gettbl (void)
 {
@@ -72,4 +72,4 @@ int watchdog_post_test (int flags)
        }
 }
 
-#endif /* CONFIG_POST & CFG_POST_WATCHDOG */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_WATCHDOG */
index be6a2bf54ccf13836f0551dff5fe482d3109ba1c..482f819f2d92cd28223e41957ce4928b318d64ae 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_CACHE
+#if CONFIG_POST & CONFIG_SYS_POST_CACHE
 
 #include <asm/mmu.h>
 #include <watchdog.h>
@@ -54,7 +54,7 @@ __attribute__((__aligned__(CACHE_POST_SIZE)));
 
 int cache_post_test (int flags)
 {
-       void *virt = (void *)CFG_POST_CACHE_ADDR;
+       void *virt = (void *)CONFIG_SYS_POST_CACHE_ADDR;
        int ints;
        int res = 0;
        int tlb = -1;           /* index to the victim TLB entry */
@@ -119,4 +119,4 @@ int cache_post_test (int flags)
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_CACHE */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_CACHE */
index 455ffa072691108b85d9b1aae32b3ce55514638f..3f3e5850f9cc13bbcaf45e7d3ee1303df51933a0 100644 (file)
@@ -31,7 +31,7 @@
 #include <asm/cache.h>
 #include <asm/mmu.h>
 
-#if CONFIG_POST & CFG_POST_CACHE
+#if CONFIG_POST & CONFIG_SYS_POST_CACHE
 
        .text
 
@@ -115,8 +115,8 @@ cache_post_wb:
  */
 cache_post_dinvalidate:
        dcbi    r0, r3
-       addi    r3, r3, CFG_CACHELINE_SIZE
-       subic.  r4, r4, CFG_CACHELINE_SIZE
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE
+       subic.  r4, r4, CONFIG_SYS_CACHELINE_SIZE
        bgt     cache_post_dinvalidate
        sync
        blr
@@ -125,8 +125,8 @@ cache_post_dinvalidate:
  */
 cache_post_dstore:
        dcbst   r0, r3
-       addi    r3, r3, CFG_CACHELINE_SIZE
-       subic.  r4, r4, CFG_CACHELINE_SIZE
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE
+       subic.  r4, r4, CONFIG_SYS_CACHELINE_SIZE
        bgt     cache_post_dstore
        sync
        blr
@@ -135,8 +135,8 @@ cache_post_dstore:
  */
 cache_post_dtouch:
        dcbt    r0, r3
-       addi    r3, r3, CFG_CACHELINE_SIZE
-       subic.  r4, r4, CFG_CACHELINE_SIZE
+       addi    r3, r3, CONFIG_SYS_CACHELINE_SIZE
+       subic.  r4, r4, CONFIG_SYS_CACHELINE_SIZE
        bgt     cache_post_dtouch
        sync
        blr
@@ -486,4 +486,4 @@ cache_post_test_inst:
        li      r3, -1
        blr
 
-#endif /* CONFIG_POST & CFG_POST_CACHE */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_CACHE */
index 12a1bbfa87686f99c516d7bddd1bb500bc55877f..6ab1593138519fc43143bd70cbf31eb46dbd4e9a 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_ECC
+#if CONFIG_POST & CONFIG_SYS_POST_ECC
 
 /*
  * MEMORY ECC test
@@ -267,5 +267,5 @@ int ecc_post_test(int flags)
        debug("ecc_post_test() returning %d\n", ret);
        return ret;
 }
-#endif /* CONFIG_POST & CFG_POST_ECC */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_ECC */
 #endif /* defined(CONFIG_440EPX) || defined(CONFIG_440GRX) */
index ccbfcf91aea7e691838d18578840c5e447d6d50a..e40e19be235faf48d1288317a14eb05b5be6e130 100644 (file)
@@ -39,7 +39,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_ETHER
+#if CONFIG_POST & CONFIG_SYS_POST_ETHER
 
 #include <asm/cache.h>
 #include <asm/io.h>
@@ -209,7 +209,7 @@ static void ether_post_init (int devnum, int hw_addr)
        mtdcr (malrxcasr, (MAL_TXRX_CASR >> devnum));
 
        /* set internal loopback mode */
-#ifdef CFG_POST_ETHER_EXT_LOOPBACK
+#ifdef CONFIG_SYS_POST_ETHER_EXT_LOOPBACK
        out_be32 ((void*)(EMAC_M1 + hw_addr), EMAC_M1_FDE | 0 |
                  EMAC_M1_RFS_4K | EMAC_M1_TX_FIFO_2K |
                  EMAC_M1_MF_100MBPS | EMAC_M1_IST |
@@ -406,8 +406,8 @@ int ether_post_test (int flags)
        int i;
 
        /* Allocate tx & rx packet buffers */
-       tx_buf = malloc (PKTSIZE_ALIGN + CFG_CACHELINE_SIZE);
-       rx_buf = malloc (PKTSIZE_ALIGN + CFG_CACHELINE_SIZE);
+       tx_buf = malloc (PKTSIZE_ALIGN + CONFIG_SYS_CACHELINE_SIZE);
+       rx_buf = malloc (PKTSIZE_ALIGN + CONFIG_SYS_CACHELINE_SIZE);
 
        if (!tx_buf || !rx_buf) {
                printf ("Failed to allocate packet buffers\n");
@@ -427,4 +427,4 @@ out_free:
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_ETHER */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_ETHER */
index 88aa93ea1e04254f93a6817f545c19a24c1215f6..584e30cf8f3951e5e99b5b04d6c46d4f5b9a1dc1 100644 (file)
@@ -38,19 +38,19 @@ DECLARE_GLOBAL_DATA_PTR;
 #define OCM_TEST_PATTERN1      0x55555555
 #define OCM_TEST_PATTERN2      0xAAAAAAAA
 
-#if CONFIG_POST & CFG_POST_OCM
+#if CONFIG_POST & CONFIG_SYS_POST_OCM
 
 static uint ocm_status_read(void)
 {
-       return in_be32((void *)CFG_OCM_STATUS_ADDR) &
-               CFG_OCM_STATUS_MASK;
+       return in_be32((void *)CONFIG_SYS_OCM_STATUS_ADDR) &
+               CONFIG_SYS_OCM_STATUS_MASK;
 }
 
 static void ocm_status_write(uint value)
 {
-       out_be32((void *)CFG_OCM_STATUS_ADDR, value |
-               (in_be32((void *)CFG_OCM_STATUS_ADDR) &
-                       ~CFG_OCM_STATUS_MASK));
+       out_be32((void *)CONFIG_SYS_OCM_STATUS_ADDR, value |
+               (in_be32((void *)CONFIG_SYS_OCM_STATUS_ADDR) &
+                       ~CONFIG_SYS_OCM_STATUS_MASK));
 }
 
 static inline int ocm_test_word(uint value, uint *address)
@@ -68,11 +68,11 @@ int ocm_post_test(int flags)
 {
        uint   old_value;
        int    ret = 0;
-       uint  *address = (uint*)CFG_OCM_BASE;
+       uint  *address = (uint*)CONFIG_SYS_OCM_BASE;
 
-       if (ocm_status_read() == CFG_OCM_STATUS_OK)
+       if (ocm_status_read() == CONFIG_SYS_OCM_STATUS_OK)
                return 0;
-       for (; address < (uint*)(CFG_OCM_BASE + CFG_OCM_SIZE); address++) {
+       for (; address < (uint*)(CONFIG_SYS_OCM_BASE + CONFIG_SYS_OCM_SIZE); address++) {
                old_value = *address;
                if (ocm_test_word(OCM_TEST_PATTERN1, address) ||
                                ocm_test_word(OCM_TEST_PATTERN2, address)) {
@@ -83,7 +83,7 @@ int ocm_post_test(int flags)
                }
                *address = old_value;
        }
-       ocm_status_write(ret ? CFG_OCM_STATUS_FAIL : CFG_OCM_STATUS_OK);
+       ocm_status_write(ret ? CONFIG_SYS_OCM_STATUS_FAIL : CONFIG_SYS_OCM_STATUS_OK);
        return ret;
 }
-#endif /* CONFIG_POST & CFG_POST_OCM */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_OCM */
index 110df6e9103d7145c63e467bcff23c96719f3a66..ecb87b53acc8d2ef8573671db46d19e5019fd0c2 100644 (file)
@@ -37,7 +37,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_SPR
+#if CONFIG_POST & CONFIG_SYS_POST_SPR
 
 #include <asm/processor.h>
 
@@ -198,4 +198,4 @@ int spr_post_test (int flags)
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_SPR */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_SPR */
index 1a57c3dd1f22acb9414510935364c2715ac470ef..84a4d0a0d6381a2a6c8e68f22f36e442cb1c1f13 100644 (file)
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_UART
+#if CONFIG_POST & CONFIG_SYS_POST_UART
 
 /*
  * This table defines the UART's that should be tested and can
  * be overridden in the board config file
  */
-#ifndef CFG_POST_UART_TABLE
-#define CFG_POST_UART_TABLE    {UART0_BASE, UART1_BASE, UART2_BASE, UART3_BASE}
+#ifndef CONFIG_SYS_POST_UART_TABLE
+#define CONFIG_SYS_POST_UART_TABLE     {UART0_BASE, UART1_BASE, UART2_BASE, UART3_BASE}
 #endif
 
 #include <asm/processor.h>
 #if defined(CONFIG_440)
 #if defined(CONFIG_440EP) || defined(CONFIG_440GR) || \
     defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
-#define UART0_BASE  CFG_PERIPHERAL_BASE + 0x00000300
-#define UART1_BASE  CFG_PERIPHERAL_BASE + 0x00000400
-#define UART2_BASE  CFG_PERIPHERAL_BASE + 0x00000500
-#define UART3_BASE  CFG_PERIPHERAL_BASE + 0x00000600
+#define UART0_BASE  CONFIG_SYS_PERIPHERAL_BASE + 0x00000300
+#define UART1_BASE  CONFIG_SYS_PERIPHERAL_BASE + 0x00000400
+#define UART2_BASE  CONFIG_SYS_PERIPHERAL_BASE + 0x00000500
+#define UART3_BASE  CONFIG_SYS_PERIPHERAL_BASE + 0x00000600
 #else
-#define UART0_BASE  CFG_PERIPHERAL_BASE + 0x00000200
-#define UART1_BASE  CFG_PERIPHERAL_BASE + 0x00000300
+#define UART0_BASE  CONFIG_SYS_PERIPHERAL_BASE + 0x00000200
+#define UART1_BASE  CONFIG_SYS_PERIPHERAL_BASE + 0x00000300
 #endif
 
 #if defined(CONFIG_440SP) || defined(CONFIG_440SPE)
-#define UART2_BASE  CFG_PERIPHERAL_BASE + 0x00000600
+#define UART2_BASE  CONFIG_SYS_PERIPHERAL_BASE + 0x00000600
 #endif
 
 #if defined(CONFIG_440GP)
 DECLARE_GLOBAL_DATA_PTR;
 
 #if defined(CONFIG_440) || defined(CONFIG_405EX)
-#if !defined(CFG_EXT_SERIAL_CLOCK)
+#if !defined(CONFIG_SYS_EXT_SERIAL_CLOCK)
 static void serial_divs (int baudrate, unsigned long *pudiv,
                         unsigned short *pbdiv)
 {
@@ -196,7 +196,7 @@ static int uart_post_init (unsigned long dev_base)
        unsigned long udiv;
        unsigned short bdiv;
        volatile char val;
-#ifdef CFG_EXT_SERIAL_CLOCK
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
        unsigned long tmp;
 #endif
        int i;
@@ -209,11 +209,11 @@ static int uart_post_init (unsigned long dev_base)
        MFREG(UART0_SDR, reg);
        reg &= ~CR0_MASK;
 
-#ifdef CFG_EXT_SERIAL_CLOCK
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
        reg |= CR0_EXTCLK_ENA;
        udiv = 1;
        tmp  = gd->baudrate * 16;
-       bdiv = (CFG_EXT_SERIAL_CLOCK + tmp / 2) / tmp;
+       bdiv = (CONFIG_SYS_EXT_SERIAL_CLOCK + tmp / 2) / tmp;
 #else
        /* For 440, the cpu clock is on divider chain A, UART on divider
         * chain B ... so cpu clock is irrelevant. Get the "optimized"
@@ -278,7 +278,7 @@ static int uart_post_init (unsigned long dev_base)
 #ifdef CONFIG_405EP
        reg = mfdcr(cpc0_ucr) & ~(UCR0_MASK | UCR1_MASK);
        clk = gd->cpu_clk;
-       tmp = CFG_BASE_BAUD * 16;
+       tmp = CONFIG_SYS_BASE_BAUD * 16;
        udiv = (clk + tmp / 2) / tmp;
        if (udiv > UDIV_MAX)                    /* max. n bits for udiv */
                udiv = UDIV_MAX;
@@ -287,16 +287,16 @@ static int uart_post_init (unsigned long dev_base)
        mtdcr (cpc0_ucr, reg);
 #else /* CONFIG_405EP */
        reg = mfdcr(cntrl0) & ~CR0_MASK;
-#ifdef CFG_EXT_SERIAL_CLOCK
-       clk = CFG_EXT_SERIAL_CLOCK;
+#ifdef CONFIG_SYS_EXT_SERIAL_CLOCK
+       clk = CONFIG_SYS_EXT_SERIAL_CLOCK;
        udiv = 1;
        reg |= CR0_EXTCLK_ENA;
 #else
        clk = gd->cpu_clk;
-#ifdef CFG_405_UART_ERRATA_59
+#ifdef CONFIG_SYS_405_UART_ERRATA_59
        udiv = 31;                      /* Errata 59: stuck at 31 */
 #else
-       tmp = CFG_BASE_BAUD * 16;
+       tmp = CONFIG_SYS_BASE_BAUD * 16;
        udiv = (clk + tmp / 2) / tmp;
        if (udiv > UDIV_MAX)                    /* max. n bits for udiv */
                udiv = UDIV_MAX;
@@ -375,7 +375,7 @@ done:
 int uart_post_test (int flags)
 {
        int i, res = 0;
-       static unsigned long base[] = CFG_POST_UART_TABLE;
+       static unsigned long base[] = CONFIG_SYS_POST_UART_TABLE;
 
        for (i = 0; i < sizeof (base) / sizeof (base[0]); i++) {
                if (test_ctlr (base[i], i))
@@ -386,4 +386,4 @@ int uart_post_test (int flags)
        return res;
 }
 
-#endif /* CONFIG_POST & CFG_POST_UART */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_UART */
index 7fdecb485c8524864ff9fed4afc823c579c69174..221adfc1158c04335f7987b5d7e52dc306f2dc29 100644 (file)
@@ -37,7 +37,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_WATCHDOG
+#if CONFIG_POST & CONFIG_SYS_POST_WATCHDOG
 
 #include <watchdog.h>
 
@@ -65,4 +65,4 @@ int watchdog_post_test (int flags)
        }
 }
 
-#endif /* CONFIG_POST & CFG_POST_WATCHDOG */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_WATCHDOG */
index f54fe9970a28e7f41b48bf780647feae4e74f853..b152deaf6abf52c91d164b49b0349b1b7795b004 100644 (file)
@@ -39,7 +39,7 @@
 #include <post.h>
 #include <i2c.h>
 
-#if CONFIG_POST & CFG_POST_I2C
+#if CONFIG_POST & CONFIG_SYS_POST_I2C
 
 int i2c_post_test (int flags)
 {
@@ -88,4 +88,4 @@ int i2c_post_test (int flags)
 #endif
 }
 
-#endif /* CONFIG_POST & CFG_POST_I2C */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_I2C */
index e32020f8234018b176c592e2cce49fb11267b528..006236009917e7f912d8ddee0efca2e7c0759573 100644 (file)
 #include <post.h>
 #include <watchdog.h>
 
-#if CONFIG_POST & CFG_POST_MEMORY
+#if CONFIG_POST & CONFIG_SYS_POST_MEMORY
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -460,11 +460,11 @@ int memory_post_test (int flags)
                                 256 << 20 : bd->bi_memsize) - (1 << 20);
 
        /* Limit area to be tested with the board info struct */
-       if (CFG_SDRAM_BASE + memsize > (ulong)bd)
-               memsize = (ulong)bd - CFG_SDRAM_BASE;
+       if (CONFIG_SYS_SDRAM_BASE + memsize > (ulong)bd)
+               memsize = (ulong)bd - CONFIG_SYS_SDRAM_BASE;
 
        if (flags & POST_SLOWTEST) {
-               ret = memory_post_tests (CFG_SDRAM_BASE, memsize);
+               ret = memory_post_tests (CONFIG_SYS_SDRAM_BASE, memsize);
        } else {                        /* POST_NORMAL */
 
                unsigned long i;
@@ -480,4 +480,4 @@ int memory_post_test (int flags)
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_MEMORY */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_MEMORY */
index 66e52651673e2dec2c33463f7dcf52bdec927886..8b0f463b8034fc657af77d040e07ef7f79f6a78d 100644 (file)
@@ -43,7 +43,7 @@
 #include <post.h>
 #include <rtc.h>
 
-#if CONFIG_POST & CFG_POST_RTC
+#if CONFIG_POST & CONFIG_SYS_POST_RTC
 
 static int rtc_post_skip (ulong * diff)
 {
@@ -192,4 +192,4 @@ int rtc_post_test (int flags)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_RTC */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_RTC */
index 75ba7a66a225ab294afd370e9e48ec623acee0e4..52ec7c4d4e919c384bd3b62e3a9636d3399d34e2 100644 (file)
@@ -35,7 +35,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op);
 extern ulong cpu_post_makecr (long v);
index 6220ed2bb1b7e691de28bf5f92413bc68b3a5266..f6b329aa4df2592f0f52466a2f5ac1fc738a6a63 100644 (file)
@@ -27,7 +27,7 @@
 #include <ppc_defs.h>
 #include <asm/cache.h>
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 /* void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2); */
        .global cpu_post_exec_02
index 7a2583dc7472ba7a771d938585f6db7ca2cbae05..492fba4c535e0b42b87ec55f1bd1ab9ce3138d66 100644 (file)
@@ -40,7 +40,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1);
 extern void cpu_post_exec_31 (ulong *code, ulong *ctr, ulong *lr, ulong *jump,
index 13809d417bb61fa6ab89459169fd9338dd8ee3d3..5f6a3b904666ac9ea1b0af5adb166ede5f36d5c2 100644 (file)
@@ -39,7 +39,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_12 (ulong *code, ulong *res, ulong op1, ulong op2);
 
index 5ecfe872a4f692d79f3aa6e816dfe2b4f2833c00..1a2fc3d094bd5ff70d9d796f84d8c5b04253f693 100644 (file)
@@ -39,7 +39,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1);
 
index 4983c51919e825b0b06469c2d1eeb1b05443952f..4a3bc0003101a8cea84d29a53fae9c59cd68c754 100644 (file)
@@ -34,7 +34,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern int cpu_post_complex_1_asm (int a1, int a2, int a3, int a4, int n);
 extern int cpu_post_complex_2_asm (int x, int n);
index 5c7f76191d4d316eca7c9feaeb58ec842b0ebbf4..3793a60c3e0a1e53a4470091654bd184eac69f8d 100644 (file)
@@ -36,7 +36,7 @@
 #include <post.h>
 #include <asm/mmu.h>
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern int cpu_post_test_cmp (void);
 extern int cpu_post_test_cmpi (void);
@@ -144,4 +144,4 @@ int cpu_post_test (int flags)
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_CPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_CPU */
index 2c7976ac311c1244731e69768f9a97f7a0092de0..fbee6d5c406ff4b856414449d8ad524bcc74befe 100644 (file)
@@ -49,7 +49,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1);
 extern void cpu_post_exec_21x (ulong *code, ulong *op1, ulong *op2, ulong op3);
index dece6148351cce276d6700d3bae9a620e3bed56c..a8537fa6a196370d4f55f92f21030344b72cbb4c 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 int fpu_post_test_math1 (void)
 {
@@ -56,4 +56,4 @@ int fpu_post_test_math1 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index 8a172174c311400279606dc0e57c2e13eb919ed9..91e3631d0c48be4adbd54ec672ff12f35a258358 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 static float rintf (float x)
 {
@@ -60,4 +60,4 @@ int fpu_post_test_math2 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index f366252e66799e4fc7247a55b11cf4e0a0d66c26..b00386b18970de982899942fbff923edbad02f29 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 int fpu_post_test_math3 (void)
 {
@@ -48,4 +48,4 @@ int fpu_post_test_math3 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index 7f26482a57d43516d59d3abf0013492ace48dea3..ceb2b76bf53c485bc5a9019900cae490aa2635ce 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 int fpu_post_test_math4 (void)
 {
@@ -54,4 +54,4 @@ int fpu_post_test_math4 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index 921282e8b697ce9728c99207e187e994f27c7531..8a6519383639733a70eb988c51584f686aaeffea 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 static double func (const double *array)
 {
@@ -51,4 +51,4 @@ int fpu_post_test_math5 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index be8f6208ac2bcd99fe09449f54f2aebc47b998a0..ab476579e7fb5c6e70107a3d281acb583c3bca59 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 static int failed;
 
@@ -219,4 +219,4 @@ int fpu_post_test_math6 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index 9ddb67a21d44a171c55f749543011155662609df..846b76d875052115b019a8f0be2b087496de9e86 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 #include <watchdog.h>
 
@@ -86,4 +86,4 @@ int fpu_post_test (int flags)
        return ret;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index 7e6fe87b013025820570f592533c0fccac212220..9c514e116706674c88b0e729a938ff2709a8d5d0 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <post.h>
 
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
 
 union uf
 {
@@ -97,4 +97,4 @@ int fpu_post_test_math7 (void)
        return 0;
 }
 
-#endif /* CONFIG_POST & CFG_POST_FPU */
+#endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */
index eccebb7ca142cdfb9224eca4ceb1219569565fdc..98d437318c6956c8a8c5d2ddbdc150178fcc634a 100644 (file)
@@ -44,7 +44,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_22w (ulong *code, ulong *op1, ulong op2, ulong *op3);
 extern void cpu_post_exec_21w (ulong *code, ulong *op1, ulong *op2);
index 47135abd4ca431b28d7b82b551109f60200ff7d5..e42a7c07ebe4b60f373898cf78ed288cabc5b0d6 100644 (file)
@@ -36,7 +36,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2);
 
index 8662db16cdc62f2f0bb54647d12a3ff6be95d848..fd628b31f966620b6895f0a10e6ef1d3572f80ed 100644 (file)
@@ -35,7 +35,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
     ulong op2);
index 4398a101abebd4d04bf1afb57381f9a975911b58..88a28c6431faab479c41bfdd4b3da00a5043c92f 100644 (file)
@@ -35,7 +35,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1);
 extern ulong cpu_post_makecr (long v);
index c547bd779c8f78aa60c94fdd532506dd2c5eac79..60bcb6d26c072c0ddc8f037c18c3ff49ecae0706 100644 (file)
@@ -35,7 +35,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
     ulong op2);
index 4a3dddb92ee82f54d51d05dd0af8013758327dd9..be153aded21fa9f4e2685a22834022066e534c25 100644 (file)
@@ -35,7 +35,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op);
 extern ulong cpu_post_makecr (long v);
index c96f263e3008b0c27ecbf3869b45bbb41dacfad1..1956f6baa3b0df549d22cfaf17a918d7c4818335 100644 (file)
@@ -44,7 +44,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_12w (ulong *code, ulong *op1, ulong op2, ulong op3);
 extern void cpu_post_exec_11w (ulong *code, ulong *op1, ulong op2);
index 3683ac9956ad0387d0c4833e929276823e48b455..c0ddeaf6550ca850a9cc82fcbc0ed91c3c65d0ea 100644 (file)
@@ -36,7 +36,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2);
 extern void cpu_post_exec_04 (ulong *code, ulong op1, ulong op2, ulong op3,
index 3fa513b91de036b3dfe8c47105da6e9caa5e4edf..7f8c1e2b8644c04c2ea2b0b8ea04e08bfc2271cd 100644 (file)
@@ -38,7 +38,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
     ulong op2);
index 89f8fc8466f6bb66ad788853f6758e8dfab9253c..31953f93543498f1f9d84748001c16ca947af5d5 100644 (file)
@@ -37,7 +37,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op);
 extern ulong cpu_post_makecr (long v);
index 1dfcc2ce0663abeb4afefeb15a328a479807a7f6..350a12ae78ca56726870078415d31e915df86fc9 100644 (file)
@@ -38,7 +38,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
     ulong op2);
index 3d6b3c016c62155a9d24279ab01e659e041d120d..2b111472b6ecfcafe8922043499ca5da38e54fa2 100644 (file)
@@ -38,7 +38,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1);
 extern ulong cpu_post_makecr (long v);
index 519b4320021b77e8960eaf158764f0c0796925b0..d6714f9861c18998c642f92f47967faccce71c7a 100644 (file)
@@ -38,7 +38,7 @@
 #include <post.h>
 #include "cpu_asm.h"
 
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
 
 extern void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1);
 extern ulong cpu_post_makecr (long v);
index 99dc8c9a74a3d191c894534a1b465f417eed63be..c982e27fff1f54e3e8b2bb2b73b21b130b837e55 100644 (file)
@@ -372,7 +372,7 @@ int post_log (char *format, ...)
 {
        va_list args;
        uint i;
-       char printbuffer[CFG_PBSIZE];
+       char printbuffer[CONFIG_SYS_PBSIZE];
 
        va_start (args, format);
 
@@ -448,7 +448,7 @@ void post_reloc (void)
 unsigned long post_time_ms (unsigned long base)
 {
 #ifdef CONFIG_PPC
-       return (unsigned long)(get_ticks () / (get_tbclk () / CFG_HZ)) - base;
+       return (unsigned long)(get_ticks () / (get_tbclk () / CONFIG_SYS_HZ)) - base;
 #else
 #warning "Not implemented yet"
        return 0; /* Not implemented yet */
index e88d92ed7450f28aad950e2a40fb110652b297f5..3224f009a67d883fe4632114d318ea74b6e72877 100644 (file)
@@ -21,7 +21,7 @@
  * MA 02111-1307 USA
  *
  * Be sure to mark tests to be run before relocation as such with the
- * CFG_POST_PREREL flag so that logging is done correctly if the
+ * CONFIG_SYS_POST_PREREL flag so that logging is done correctly if the
  * logbuffer support is enabled.
  */
 
@@ -61,7 +61,7 @@ extern void sysmon_reloc (void);
 
 struct post_test post_list[] =
 {
-#if CONFIG_POST & CFG_POST_OCM
+#if CONFIG_POST & CONFIG_SYS_POST_OCM
     {
        "OCM test",
        "ocm",
@@ -70,10 +70,10 @@ struct post_test post_list[] =
        &ocm_post_test,
        NULL,
        NULL,
-       CFG_POST_OCM
+       CONFIG_SYS_POST_OCM
     },
 #endif
-#if CONFIG_POST & CFG_POST_CACHE
+#if CONFIG_POST & CONFIG_SYS_POST_CACHE
     {
        "Cache test",
        "cache",
@@ -82,10 +82,10 @@ struct post_test post_list[] =
        &cache_post_test,
        NULL,
        NULL,
-       CFG_POST_CACHE
+       CONFIG_SYS_POST_CACHE
     },
 #endif
-#if CONFIG_POST & CFG_POST_WATCHDOG
+#if CONFIG_POST & CONFIG_SYS_POST_WATCHDOG
 #if defined(CONFIG_POST_WATCHDOG)
        CONFIG_POST_WATCHDOG,
 #else
@@ -97,11 +97,11 @@ struct post_test post_list[] =
        &watchdog_post_test,
        NULL,
        NULL,
-       CFG_POST_WATCHDOG
+       CONFIG_SYS_POST_WATCHDOG
     },
 #endif
 #endif
-#if CONFIG_POST & CFG_POST_I2C
+#if CONFIG_POST & CONFIG_SYS_POST_I2C
     {
        "I2C test",
        "i2c",
@@ -110,10 +110,10 @@ struct post_test post_list[] =
        &i2c_post_test,
        NULL,
        NULL,
-       CFG_POST_I2C
+       CONFIG_SYS_POST_I2C
     },
 #endif
-#if CONFIG_POST & CFG_POST_RTC
+#if CONFIG_POST & CONFIG_SYS_POST_RTC
     {
        "RTC test",
        "rtc",
@@ -122,10 +122,10 @@ struct post_test post_list[] =
        &rtc_post_test,
        NULL,
        NULL,
-       CFG_POST_RTC
+       CONFIG_SYS_POST_RTC
     },
 #endif
-#if CONFIG_POST & CFG_POST_MEMORY
+#if CONFIG_POST & CONFIG_SYS_POST_MEMORY
     {
        "Memory test",
        "memory",
@@ -134,10 +134,10 @@ struct post_test post_list[] =
        &memory_post_test,
        NULL,
        NULL,
-       CFG_POST_MEMORY
+       CONFIG_SYS_POST_MEMORY
     },
 #endif
-#if CONFIG_POST & CFG_POST_CPU
+#if CONFIG_POST & CONFIG_SYS_POST_CPU
     {
        "CPU test",
        "cpu",
@@ -147,10 +147,10 @@ struct post_test post_list[] =
        &cpu_post_test,
        NULL,
        NULL,
-       CFG_POST_CPU
+       CONFIG_SYS_POST_CPU
     },
 #endif
-#if CONFIG_POST & CFG_POST_FPU
+#if CONFIG_POST & CONFIG_SYS_POST_FPU
     {
        "FPU test",
        "fpu",
@@ -160,10 +160,10 @@ struct post_test post_list[] =
        &fpu_post_test,
        NULL,
        NULL,
-       CFG_POST_FPU
+       CONFIG_SYS_POST_FPU
     },
 #endif
-#if CONFIG_POST & CFG_POST_UART
+#if CONFIG_POST & CONFIG_SYS_POST_UART
     {
        "UART test",
        "uart",
@@ -172,10 +172,10 @@ struct post_test post_list[] =
        &uart_post_test,
        NULL,
        NULL,
-       CFG_POST_UART
+       CONFIG_SYS_POST_UART
     },
 #endif
-#if CONFIG_POST & CFG_POST_ETHER
+#if CONFIG_POST & CONFIG_SYS_POST_ETHER
     {
        "ETHERNET test",
        "ethernet",
@@ -184,10 +184,10 @@ struct post_test post_list[] =
        &ether_post_test,
        NULL,
        NULL,
-       CFG_POST_ETHER
+       CONFIG_SYS_POST_ETHER
     },
 #endif
-#if CONFIG_POST & CFG_POST_SPI
+#if CONFIG_POST & CONFIG_SYS_POST_SPI
     {
        "SPI test",
        "spi",
@@ -196,10 +196,10 @@ struct post_test post_list[] =
        &spi_post_test,
        NULL,
        NULL,
-       CFG_POST_SPI
+       CONFIG_SYS_POST_SPI
     },
 #endif
-#if CONFIG_POST & CFG_POST_USB
+#if CONFIG_POST & CONFIG_SYS_POST_USB
     {
        "USB test",
        "usb",
@@ -208,10 +208,10 @@ struct post_test post_list[] =
        &usb_post_test,
        NULL,
        NULL,
-       CFG_POST_USB
+       CONFIG_SYS_POST_USB
     },
 #endif
-#if CONFIG_POST & CFG_POST_SPR
+#if CONFIG_POST & CONFIG_SYS_POST_SPR
     {
        "SPR test",
        "spr",
@@ -220,10 +220,10 @@ struct post_test post_list[] =
        &spr_post_test,
        NULL,
        NULL,
-       CFG_POST_SPR
+       CONFIG_SYS_POST_SPR
     },
 #endif
-#if CONFIG_POST & CFG_POST_SYSMON
+#if CONFIG_POST & CONFIG_SYS_POST_SYSMON
     {
        "SYSMON test",
        "sysmon",
@@ -232,10 +232,10 @@ struct post_test post_list[] =
        &sysmon_post_test,
        &sysmon_init_f,
        &sysmon_reloc,
-       CFG_POST_SYSMON
+       CONFIG_SYS_POST_SYSMON
     },
 #endif
-#if CONFIG_POST & CFG_POST_DSP
+#if CONFIG_POST & CONFIG_SYS_POST_DSP
     {
        "DSP test",
        "dsp",
@@ -244,10 +244,10 @@ struct post_test post_list[] =
        &dsp_post_test,
        NULL,
        NULL,
-       CFG_POST_DSP
+       CONFIG_SYS_POST_DSP
     },
 #endif
-#if CONFIG_POST & CFG_POST_CODEC
+#if CONFIG_POST & CONFIG_SYS_POST_CODEC
     {
        "CODEC test",
        "codec",
@@ -256,10 +256,10 @@ struct post_test post_list[] =
        &codec_post_test,
        NULL,
        NULL,
-       CFG_POST_CODEC
+       CONFIG_SYS_POST_CODEC
     },
 #endif
-#if CONFIG_POST & CFG_POST_ECC
+#if CONFIG_POST & CONFIG_SYS_POST_ECC
     {
        "ECC test",
        "ecc",
@@ -268,22 +268,22 @@ struct post_test post_list[] =
        &ecc_post_test,
        NULL,
        NULL,
-       CFG_POST_ECC
+       CONFIG_SYS_POST_ECC
     },
 #endif
-#if CONFIG_POST & CFG_POST_BSPEC1
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC1
        CONFIG_POST_BSPEC1,
 #endif
-#if CONFIG_POST & CFG_POST_BSPEC2
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC2
        CONFIG_POST_BSPEC2,
 #endif
-#if CONFIG_POST & CFG_POST_BSPEC3
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC3
        CONFIG_POST_BSPEC3,
 #endif
-#if CONFIG_POST & CFG_POST_BSPEC4
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC4
        CONFIG_POST_BSPEC4,
 #endif
-#if CONFIG_POST & CFG_POST_BSPEC5
+#if CONFIG_POST & CONFIG_SYS_POST_BSPEC5
        CONFIG_POST_BSPEC5,
 #endif
 };
index 6e9c34f3de928c337f613c1ae9cfc9b13bdc5c43..a46205d868735b17b2686956d2a52efcd0f29fa7 100644 (file)
@@ -172,8 +172,8 @@ static char default_environment[] = {
 #ifdef CONFIG_SERVERIP
        "serverip=" MK_STR (CONFIG_SERVERIP) "\0"
 #endif
-#ifdef CFG_AUTOLOAD
-       "autoload=" CFG_AUTOLOAD "\0"
+#ifdef CONFIG_SYS_AUTOLOAD
+       "autoload=" CONFIG_SYS_AUTOLOAD "\0"
 #endif
 #ifdef CONFIG_ROOTPATH
        "rootpath=" MK_STR (CONFIG_ROOTPATH) "\0"
index ba28fa0d3daaae92be07f1d3c3be2166258869d8..4334cdf746d987378ff5a780d64b347612871856 100644 (file)
 
 #if defined(CONFIG_ENV_IS_IN_FLASH)
 # ifndef  CONFIG_ENV_ADDR
-#  define CONFIG_ENV_ADDR      (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)
+#  define CONFIG_ENV_ADDR      (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET)
 # endif
 # ifndef  CONFIG_ENV_OFFSET
-#  define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CFG_FLASH_BASE)
+#  define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
 # endif
 # if !defined(CONFIG_ENV_ADDR_REDUND) && defined(CONFIG_ENV_OFFSET_REDUND)
-#  define CONFIG_ENV_ADDR_REDUND       (CFG_FLASH_BASE + CONFIG_ENV_OFFSET_REDUND)
+#  define CONFIG_ENV_ADDR_REDUND       (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET_REDUND)
 # endif
 # ifndef  CONFIG_ENV_SIZE
 #  define CONFIG_ENV_SIZE      CONFIG_ENV_SECT_SIZE
 # if defined(CONFIG_ENV_ADDR_REDUND) && !defined(CONFIG_ENV_SIZE_REDUND)
 #  define CONFIG_ENV_SIZE_REDUND       CONFIG_ENV_SIZE
 # endif
-# if (CONFIG_ENV_ADDR >= CFG_MONITOR_BASE) && \
-     ((CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= (CFG_MONITOR_BASE + CFG_MONITOR_LEN))
+# if (CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) && \
+     ((CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN))
 #  define ENV_IS_EMBEDDED      1
 # endif
 # if defined(CONFIG_ENV_ADDR_REDUND) || defined(CONFIG_ENV_OFFSET_REDUND)
-#  define CFG_REDUNDAND_ENVIRONMENT    1
+#  define CONFIG_SYS_REDUNDAND_ENVIRONMENT     1
 # endif
 #endif /* CONFIG_ENV_IS_IN_FLASH */
 
-#ifdef CFG_REDUNDAND_ENVIRONMENT
+#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
 # define ENV_HEADER_SIZE       (sizeof(uint32_t) + 1)
 #else
 # define ENV_HEADER_SIZE       (sizeof(uint32_t))
index 0f6f62b9444c6b3fc1c07abff2d8f58d77e79185..5ff7336599bb06b59b2368c39ae18d7da39711f9 100644 (file)
@@ -64,7 +64,7 @@ abbrev_spec(char *str, flash_info_t **pinfo, int *psf, int *psl)
 
     bank = simple_strtoul(str, &ep, 10);
     if (ep == str || *ep != '\0' ||
-      bank < 1 || bank > CFG_MAX_FLASH_BANKS ||
+      bank < 1 || bank > CONFIG_SYS_MAX_FLASH_BANKS ||
       (fp = &flash_info[bank - 1])->flash_id == FLASH_UNKNOWN)
        return -1;
 
@@ -96,7 +96,7 @@ int do_flinfo (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
        ulong bank;
 
        if (argc == 1) {        /* print info for all FLASH banks */
-               for (bank=0; bank <CFG_MAX_FLASH_BANKS; ++bank) {
+               for (bank=0; bank <CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        printf ("\nBank # %ld: ", bank+1);
 
                        flash_print_info (&flash_info[bank]);
@@ -105,9 +105,9 @@ int do_flinfo (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
        }
 
        bank = simple_strtoul(argv[1], NULL, 16);
-       if ((bank < 1) || (bank > CFG_MAX_FLASH_BANKS)) {
+       if ((bank < 1) || (bank > CONFIG_SYS_MAX_FLASH_BANKS)) {
                printf ("Only FLASH Banks # 1 ... # %d supported\n",
-                       CFG_MAX_FLASH_BANKS);
+                       CONFIG_SYS_MAX_FLASH_BANKS);
                return 1;
        }
        printf ("\nBank # %ld: ", bank);
@@ -127,7 +127,7 @@ int do_flerase(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
        }
 
        if (strcmp(argv[1], "all") == 0) {
-               for (bank=1; bank<=CFG_MAX_FLASH_BANKS; ++bank) {
+               for (bank=1; bank<=CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        printf ("Erase Flash Bank # %ld ", bank);
                        info = &flash_info[bank-1];
                        rcode = flash_erase (info, 0, info->sector_count-1);
@@ -153,9 +153,9 @@ int do_flerase(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
 
        if (strcmp(argv[1], "bank") == 0) {
                bank = simple_strtoul(argv[2], NULL, 16);
-               if ((bank < 1) || (bank > CFG_MAX_FLASH_BANKS)) {
+               if ((bank < 1) || (bank > CONFIG_SYS_MAX_FLASH_BANKS)) {
                        printf ("Only FLASH Banks # 1 ... # %d supported\n",
-                               CFG_MAX_FLASH_BANKS);
+                               CONFIG_SYS_MAX_FLASH_BANKS);
                        return 1;
                }
                printf ("Erase Flash Bank # %ld ", bank);
@@ -187,7 +187,7 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
 
        erased = 0;
 
-       for (bank=0,info = &flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
+       for (bank=0,info = &flash_info[0]; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank, ++info) {
                ulong b_end;
                int sect;
 
@@ -258,7 +258,7 @@ int do_protect(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
        }
 
        if (strcmp(argv[2], "all") == 0) {
-               for (bank=1; bank<=CFG_MAX_FLASH_BANKS; ++bank) {
+               for (bank=1; bank<=CONFIG_SYS_MAX_FLASH_BANKS; ++bank) {
                        info = &flash_info[bank-1];
                        if (info->flash_id == FLASH_UNKNOWN) {
                                continue;
@@ -267,19 +267,19 @@ int do_protect(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
                        /*      p ? "" : "Un-", bank); */
 
                        for (i=0; i<info->sector_count; ++i) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                if (flash_real_protect(info, i, p))
                                        rcode = 1;
                                putc ('.');
 #else
                                info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                        }
                }
 
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                if (!rcode) puts (" done\n");
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
                return rcode;
        }
@@ -293,18 +293,18 @@ int do_protect(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
                /*      p ? "" : "Un-", sect_first, sect_last, */
                /*      (info-flash_info)+1); */
                for (i = sect_first; i <= sect_last; i++) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                        if (flash_real_protect(info, i, p))
                                rcode =  1;
                        putc ('.');
 #else
                        info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                }
 
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                if (!rcode) puts (" done\n");
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
                return rcode;
        }
@@ -316,9 +316,9 @@ int do_protect(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
 
        if (strcmp(argv[2], "bank") == 0) {
                bank = simple_strtoul(argv[3], NULL, 16);
-               if ((bank < 1) || (bank > CFG_MAX_FLASH_BANKS)) {
+               if ((bank < 1) || (bank > CONFIG_SYS_MAX_FLASH_BANKS)) {
                        printf ("Only FLASH Banks # 1 ... # %d supported\n",
-                               CFG_MAX_FLASH_BANKS);
+                               CONFIG_SYS_MAX_FLASH_BANKS);
                        return 1;
                }
                printf ("%sProtect Flash Bank # %ld\n",
@@ -330,18 +330,18 @@ int do_protect(cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
                        return 1;
                }
                for (i=0; i<info->sector_count; ++i) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                        if (flash_real_protect(info, i, p))
                                rcode =  1;
                        putc ('.');
 #else
                        info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                }
 
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                if (!rcode) puts (" done\n");
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
                return rcode;
        }
@@ -366,7 +366,7 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
 
        protected = 0;
 
-       for (bank=0,info = &flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
+       for (bank=0,info = &flash_info[0]; bank < CONFIG_SYS_MAX_FLASH_BANKS; ++bank, ++info) {
                ulong b_end;
                int sect;
 
@@ -402,18 +402,18 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
                if (s_first>=0 && s_first<=s_last) {
                        protected += s_last - s_first + 1;
                        for (i=s_first; i<=s_last; ++i) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                if (flash_real_protect(info, i, p))
                                        rcode = 1;
                                putc ('.');
 #else
                                info->protect[i] = p;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                        }
                }
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                if (!rcode) putc ('\n');
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
 
        }
        if (protected) {
index a73159ff9bf8df06415438461fde4bf582e8ba83..5be5f1b099645ee32e09f616773ae4bec3c44acc 100644 (file)
@@ -66,18 +66,18 @@ flash_protect (int flag, ulong from, ulong to, flash_info_t *info)
                 */
                if (from <= end && to >= info->start[i]) {
                        if (flag & FLAG_PROTECT_CLEAR) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                flash_real_protect(info, i, 0);
 #else
                                info->protect[i] = 0;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                        }
                        else if (flag & FLAG_PROTECT_SET) {
-#if defined(CFG_FLASH_PROTECTION)
+#if defined(CONFIG_SYS_FLASH_PROTECTION)
                                flash_real_protect(info, i, 1);
 #else
                                info->protect[i] = 1;
-#endif /* CFG_FLASH_PROTECTION */
+#endif /* CONFIG_SYS_FLASH_PROTECTION */
                        }
                }
        }
@@ -93,7 +93,7 @@ addr2info (ulong addr)
        flash_info_t *info;
        int i;
 
-       for (i=0, info = &flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
+       for (i=0, info = &flash_info[0]; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i, ++info) {
                if (info->flash_id != FLASH_UNKNOWN &&
                    addr >= info->start[0] &&
                    /* WARNING - The '- 1' is needed if the flash
index 638844e8737ac08d1e6e05b4fbb71ec7a79c3af8..8af4b454ec03c9d9b06eedb0cd5ae39e26cf0a89 100644 (file)
@@ -80,7 +80,7 @@ unsigned long flash_init_old(void)
 {
     int i;
 
-    for (i = 0; i < CFG_MAX_FLASH_BANKS; i++)
+    for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
     {
        flash_info[i].flash_id = FLASH_UNKNOWN;
        flash_info[i].sector_count = 0;
@@ -101,25 +101,25 @@ unsigned long flash_init (void)
        flash_to_xd();
 
        /* Init: no FLASHes known */
-       for (i=0; i<CFG_MAX_FLASH_BANKS; ++i) {
+       for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
                flash_info[i].flash_id = FLASH_UNKNOWN;
                flash_info[i].sector_count = 0;
                flash_info[i].size = 0;
        }
 
-       DEBUGF("\n## Get flash size @ 0x%08x\n", CFG_FLASH_BASE);
+       DEBUGF("\n## Get flash size @ 0x%08x\n", CONFIG_SYS_FLASH_BASE);
 
-       flash_size = flash_get_size (CFG_FLASH_BASE, flash_info);
+       flash_size = flash_get_size (CONFIG_SYS_FLASH_BASE, flash_info);
 
        DEBUGF("## Flash bank size: %08lx\n", flash_size);
 
        if (flash_size) {
-#if CFG_MONITOR_BASE >= CFG_FLASH_BASE && \
-    CFG_MONITOR_BASE < CFG_FLASH_BASE + CFG_FLASH_MAX_SIZE
+#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE && \
+    CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_MAX_SIZE
                /* monitor protection ON by default */
                flash_protect(FLAG_PROTECT_SET,
-                             CFG_MONITOR_BASE,
-                             CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1,
+                             CONFIG_SYS_MONITOR_BASE,
+                             CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN - 1,
                              &flash_info[0]);
 #endif
 
@@ -286,10 +286,10 @@ static ulong flash_get_size (ulong addr, flash_info_t *info)
 
        }
 
-       if (info->sector_count > CFG_MAX_FLASH_SECT) {
+       if (info->sector_count > CONFIG_SYS_MAX_FLASH_SECT) {
                printf ("** ERROR: sector count %d > max (%d) **\n",
-                       info->sector_count, CFG_MAX_FLASH_SECT);
-               info->sector_count = CFG_MAX_FLASH_SECT;
+                       info->sector_count, CONFIG_SYS_MAX_FLASH_SECT);
+               info->sector_count = CONFIG_SYS_MAX_FLASH_SECT;
        }
 
        if (! flash_get_offsets (addr, info)) {
@@ -418,10 +418,10 @@ int flash_erase (flash_info_t *info, int s_first, int s_last)
        last  = start;
        addr = info->start[l_sect];
 
-       DEBUGF ("Start erase timeout: %d\n", CFG_FLASH_ERASE_TOUT);
+       DEBUGF ("Start erase timeout: %d\n", CONFIG_SYS_FLASH_ERASE_TOUT);
 
        while ((in8(addr) & 0x80) != 0x80) {
-               if ((now = get_timer(start)) > CFG_FLASH_ERASE_TOUT) {
+               if ((now = get_timer(start)) > CONFIG_SYS_FLASH_ERASE_TOUT) {
                        printf ("Timeout\n");
                        flash_reset (info->start[0]);
                        flash_to_mem();
@@ -570,7 +570,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
                /* data polling for D7 */
                start = get_timer (0);
                while ((in8(dest+i) & 0x80) != (data_ch[i] & 0x80)) {
-                       if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+                       if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                                flash_reset (addr);
                                flash_to_mem();
                                return (1);
index 0304f94c107d40b289877a74231a061faa029c73..61a611876c4fd7e5075abf1c270928be65089861 100644 (file)
@@ -132,16 +132,16 @@ do_reset (void)
        __asm__ __volatile__ ("isync");
        __asm__ __volatile__ ("sync");
 
-#ifdef CFG_RESET_ADDRESS
-       addr = CFG_RESET_ADDRESS;
+#ifdef CONFIG_SYS_RESET_ADDRESS
+       addr = CONFIG_SYS_RESET_ADDRESS;
 #else
        /*
-        * note: when CFG_MONITOR_BASE points to a RAM address,
-        * CFG_MONITOR_BASE - sizeof (ulong) is usually a valid
+        * note: when CONFIG_SYS_MONITOR_BASE points to a RAM address,
+        * CONFIG_SYS_MONITOR_BASE - sizeof (ulong) is usually a valid
         * address. Better pick an address known to be invalid on your
-        * system and assign it to CFG_RESET_ADDRESS.
+        * system and assign it to CONFIG_SYS_RESET_ADDRESS.
         */
-       addr = CFG_MONITOR_BASE - sizeof (ulong);
+       addr = CONFIG_SYS_MONITOR_BASE - sizeof (ulong);
 #endif
        soft_restart(addr);
        while(1);       /* not reached */